2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
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.
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
770 SHARED_CATALOG_TARGETS
850 TRAY_MONITOR_CPPFLAGS
859 INTL_LIBTOOL_SUFFIX_PREFIX
866 BUILD_INCLUDED_LIBINTL
897 HAVE_OPENBSD_OS_FALSE
901 HAVE_FREEBSD_OS_FALSE
913 INCLUDE_UNINSTALL_TARGET
914 INCLUDE_INSTALL_TARGET
918 LIBTOOL_UNINSTALL_TARGET
919 LIBTOOL_INSTALL_TARGET
920 DEFAULT_SHARED_OBJECT_TYPE
994 LIBBACFIND_LT_RELEASE
995 LIBBACCATS_LT_RELEASE
1040 program_transform_name
1051 ac_subst_files='MCOMMON'
1053 enable_option_checking
1064 with_libiconv_prefix
1066 with_included_gettext
1105 with_mon_dir_password
1106 with_mon_fd_password
1107 with_mon_sd_password
1134 ac_precious_vars='build_alias
1152 # Initialize some variables set by options.
1154 ac_init_version=false
1155 ac_unrecognized_opts=
1156 ac_unrecognized_sep=
1157 # The variables have the same names as the options, with
1158 # dashes changed to underlines.
1159 cache_file=/dev/null
1166 program_transform_name=s,x,x,
1174 # Installation directory options.
1175 # These are left unexpanded so users can "make install exec_prefix=/foo"
1176 # and all the variables that are supposed to be based on exec_prefix
1177 # by default will actually change.
1178 # Use braces instead of parens because sh, perl, etc. also accept them.
1179 # (The list follows the same order as the GNU Coding Standards.)
1180 bindir='${exec_prefix}/bin'
1181 sbindir='${exec_prefix}/sbin'
1182 libexecdir='${exec_prefix}/libexec'
1183 datarootdir='${prefix}/share'
1184 datadir='${datarootdir}'
1185 sysconfdir='${prefix}/etc'
1186 sharedstatedir='${prefix}/com'
1187 localstatedir='${prefix}/var'
1188 includedir='${prefix}/include'
1189 oldincludedir='/usr/include'
1190 docdir='${datarootdir}/doc/${PACKAGE}'
1191 infodir='${datarootdir}/info'
1196 libdir='${exec_prefix}/lib'
1197 localedir='${datarootdir}/locale'
1198 mandir='${datarootdir}/man'
1204 # If the previous option needs an argument, assign it.
1205 if test -n "$ac_prev"; then
1206 eval $ac_prev=\$ac_option
1212 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1216 # Accept the important Cygnus configure options, so we can diagnose typos.
1218 case $ac_dashdash$ac_option in
1222 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1224 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1225 bindir=$ac_optarg ;;
1227 -build | --build | --buil | --bui | --bu)
1228 ac_prev=build_alias ;;
1229 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1230 build_alias=$ac_optarg ;;
1232 -cache-file | --cache-file | --cache-fil | --cache-fi \
1233 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1234 ac_prev=cache_file ;;
1235 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1236 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1237 cache_file=$ac_optarg ;;
1239 --config-cache | -C)
1240 cache_file=config.cache ;;
1242 -datadir | --datadir | --datadi | --datad)
1244 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1245 datadir=$ac_optarg ;;
1247 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1248 | --dataroo | --dataro | --datar)
1249 ac_prev=datarootdir ;;
1250 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1251 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1252 datarootdir=$ac_optarg ;;
1254 -disable-* | --disable-*)
1255 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258 as_fn_error "invalid feature name: $ac_useropt"
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1263 "enable_$ac_useropt"
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1268 eval enable_$ac_useropt=no ;;
1270 -docdir | --docdir | --docdi | --doc | --do)
1272 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1273 docdir=$ac_optarg ;;
1275 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1277 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1278 dvidir=$ac_optarg ;;
1280 -enable-* | --enable-*)
1281 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284 as_fn_error "invalid feature name: $ac_useropt"
1285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1289 "enable_$ac_useropt"
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1294 eval enable_$ac_useropt=\$ac_optarg ;;
1296 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1297 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1298 | --exec | --exe | --ex)
1299 ac_prev=exec_prefix ;;
1300 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1301 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1302 | --exec=* | --exe=* | --ex=*)
1303 exec_prefix=$ac_optarg ;;
1305 -gas | --gas | --ga | --g)
1306 # Obsolete; use --with-gas.
1309 -help | --help | --hel | --he | -h)
1310 ac_init_help=long ;;
1311 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1312 ac_init_help=recursive ;;
1313 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1314 ac_init_help=short ;;
1316 -host | --host | --hos | --ho)
1317 ac_prev=host_alias ;;
1318 -host=* | --host=* | --hos=* | --ho=*)
1319 host_alias=$ac_optarg ;;
1321 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1323 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1325 htmldir=$ac_optarg ;;
1327 -includedir | --includedir | --includedi | --included | --include \
1328 | --includ | --inclu | --incl | --inc)
1329 ac_prev=includedir ;;
1330 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1331 | --includ=* | --inclu=* | --incl=* | --inc=*)
1332 includedir=$ac_optarg ;;
1334 -infodir | --infodir | --infodi | --infod | --info | --inf)
1336 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1337 infodir=$ac_optarg ;;
1339 -libdir | --libdir | --libdi | --libd)
1341 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1342 libdir=$ac_optarg ;;
1344 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1345 | --libexe | --libex | --libe)
1346 ac_prev=libexecdir ;;
1347 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1348 | --libexe=* | --libex=* | --libe=*)
1349 libexecdir=$ac_optarg ;;
1351 -localedir | --localedir | --localedi | --localed | --locale)
1352 ac_prev=localedir ;;
1353 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1354 localedir=$ac_optarg ;;
1356 -localstatedir | --localstatedir | --localstatedi | --localstated \
1357 | --localstate | --localstat | --localsta | --localst | --locals)
1358 ac_prev=localstatedir ;;
1359 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1360 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1361 localstatedir=$ac_optarg ;;
1363 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1365 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1366 mandir=$ac_optarg ;;
1368 -nfp | --nfp | --nf)
1369 # Obsolete; use --without-fp.
1372 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1373 | --no-cr | --no-c | -n)
1376 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1377 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1380 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1381 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1382 | --oldin | --oldi | --old | --ol | --o)
1383 ac_prev=oldincludedir ;;
1384 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1385 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1386 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1387 oldincludedir=$ac_optarg ;;
1389 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1391 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1392 prefix=$ac_optarg ;;
1394 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1395 | --program-pre | --program-pr | --program-p)
1396 ac_prev=program_prefix ;;
1397 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1398 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1399 program_prefix=$ac_optarg ;;
1401 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1402 | --program-suf | --program-su | --program-s)
1403 ac_prev=program_suffix ;;
1404 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1405 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1406 program_suffix=$ac_optarg ;;
1408 -program-transform-name | --program-transform-name \
1409 | --program-transform-nam | --program-transform-na \
1410 | --program-transform-n | --program-transform- \
1411 | --program-transform | --program-transfor \
1412 | --program-transfo | --program-transf \
1413 | --program-trans | --program-tran \
1414 | --progr-tra | --program-tr | --program-t)
1415 ac_prev=program_transform_name ;;
1416 -program-transform-name=* | --program-transform-name=* \
1417 | --program-transform-nam=* | --program-transform-na=* \
1418 | --program-transform-n=* | --program-transform-=* \
1419 | --program-transform=* | --program-transfor=* \
1420 | --program-transfo=* | --program-transf=* \
1421 | --program-trans=* | --program-tran=* \
1422 | --progr-tra=* | --program-tr=* | --program-t=*)
1423 program_transform_name=$ac_optarg ;;
1425 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1427 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1428 pdfdir=$ac_optarg ;;
1430 -psdir | --psdir | --psdi | --psd | --ps)
1432 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1435 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1436 | -silent | --silent | --silen | --sile | --sil)
1439 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1441 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1443 sbindir=$ac_optarg ;;
1445 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1446 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1447 | --sharedst | --shareds | --shared | --share | --shar \
1449 ac_prev=sharedstatedir ;;
1450 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1451 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1452 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1454 sharedstatedir=$ac_optarg ;;
1456 -site | --site | --sit)
1458 -site=* | --site=* | --sit=*)
1461 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1463 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1464 srcdir=$ac_optarg ;;
1466 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1467 | --syscon | --sysco | --sysc | --sys | --sy)
1468 ac_prev=sysconfdir ;;
1469 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1470 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1471 sysconfdir=$ac_optarg ;;
1473 -target | --target | --targe | --targ | --tar | --ta | --t)
1474 ac_prev=target_alias ;;
1475 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1476 target_alias=$ac_optarg ;;
1478 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1481 -version | --version | --versio | --versi | --vers | -V)
1482 ac_init_version=: ;;
1485 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1496 ac_unrecognized_sep=', ';;
1498 eval with_$ac_useropt=\$ac_optarg ;;
1500 -without-* | --without-*)
1501 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1502 # Reject names that are not valid shell variable names.
1503 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1504 as_fn_error "invalid package name: $ac_useropt"
1505 ac_useropt_orig=$ac_useropt
1506 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1507 case $ac_user_opts in
1511 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1512 ac_unrecognized_sep=', ';;
1514 eval with_$ac_useropt=no ;;
1517 # Obsolete; use --with-x.
1520 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1521 | --x-incl | --x-inc | --x-in | --x-i)
1522 ac_prev=x_includes ;;
1523 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1524 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1525 x_includes=$ac_optarg ;;
1527 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1528 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1529 ac_prev=x_libraries ;;
1530 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1531 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1532 x_libraries=$ac_optarg ;;
1534 -*) as_fn_error "unrecognized option: \`$ac_option'
1535 Try \`$0 --help' for more information."
1539 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1540 # Reject names that are not valid shell variable names.
1541 case $ac_envvar in #(
1542 '' | [0-9]* | *[!_$as_cr_alnum]* )
1543 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1545 eval $ac_envvar=\$ac_optarg
1546 export $ac_envvar ;;
1549 # FIXME: should be removed in autoconf 3.0.
1550 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1551 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1552 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1553 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1559 if test -n "$ac_prev"; then
1560 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1561 as_fn_error "missing argument to $ac_option"
1564 if test -n "$ac_unrecognized_opts"; then
1565 case $enable_option_checking in
1567 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1568 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1572 # Check all directory arguments for consistency.
1573 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1574 datadir sysconfdir sharedstatedir localstatedir includedir \
1575 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1576 libdir localedir mandir
1578 eval ac_val=\$$ac_var
1579 # Remove trailing slashes.
1582 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1583 eval $ac_var=\$ac_val;;
1585 # Be sure to have absolute directory names.
1587 [\\/$]* | ?:[\\/]* ) continue;;
1588 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1590 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1593 # There might be people who depend on the old broken behavior: `$host'
1594 # used to hold the argument of --host etc.
1595 # FIXME: To remove some day.
1598 target=$target_alias
1600 # FIXME: To remove some day.
1601 if test "x$host_alias" != x; then
1602 if test "x$build_alias" = x; then
1603 cross_compiling=maybe
1604 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1605 If a cross compiler is detected then cross compile mode will be used." >&2
1606 elif test "x$build_alias" != "x$host_alias"; then
1612 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1614 test "$silent" = yes && exec 6>/dev/null
1617 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1618 ac_ls_di=`ls -di .` &&
1619 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1620 as_fn_error "working directory cannot be determined"
1621 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1622 as_fn_error "pwd does not report name of working directory"
1625 # Find the source files, if location was not specified.
1626 if test -z "$srcdir"; then
1627 ac_srcdir_defaulted=yes
1628 # Try the directory containing this script, then the parent directory.
1629 ac_confdir=`$as_dirname -- "$as_myself" ||
1630 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1631 X"$as_myself" : 'X\(//\)[^/]' \| \
1632 X"$as_myself" : 'X\(//\)$' \| \
1633 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1634 $as_echo X"$as_myself" |
1635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1653 if test ! -r "$srcdir/$ac_unique_file"; then
1657 ac_srcdir_defaulted=no
1659 if test ! -r "$srcdir/$ac_unique_file"; then
1660 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1661 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1663 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1665 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1667 # When building in place, set srcdir=.
1668 if test "$ac_abs_confdir" = "$ac_pwd"; then
1671 # Remove unnecessary trailing slashes from srcdir.
1672 # Double slashes in file names in object file debugging info
1673 # mess up M-x gdb in Emacs.
1675 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1677 for ac_var in $ac_precious_vars; do
1678 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1679 eval ac_env_${ac_var}_value=\$${ac_var}
1680 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1681 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1685 # Report the --help message.
1687 if test "$ac_init_help" = "long"; then
1688 # Omit some internal or obsolete options to make the list less imposing.
1689 # This message is too long to be a string in the A/UX 3.1 sh.
1691 \`configure' configures this package to adapt to many kinds of systems.
1693 Usage: $0 [OPTION]... [VAR=VALUE]...
1695 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1696 VAR=VALUE. See below for descriptions of some of the useful variables.
1698 Defaults for the options are specified in brackets.
1701 -h, --help display this help and exit
1702 --help=short display options specific to this package
1703 --help=recursive display the short help of all the included packages
1704 -V, --version display version information and exit
1705 -q, --quiet, --silent do not print \`checking...' messages
1706 --cache-file=FILE cache test results in FILE [disabled]
1707 -C, --config-cache alias for \`--cache-file=config.cache'
1708 -n, --no-create do not create output files
1709 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1711 Installation directories:
1712 --prefix=PREFIX install architecture-independent files in PREFIX
1713 [$ac_default_prefix]
1714 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1717 By default, \`make install' will install all the files in
1718 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1719 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1720 for instance \`--prefix=\$HOME'.
1722 For better control, use the options below.
1724 Fine tuning of the installation directories:
1725 --bindir=DIR user executables [EPREFIX/bin]
1726 --sbindir=DIR system admin executables [EPREFIX/sbin]
1727 --libexecdir=DIR program executables [EPREFIX/libexec]
1728 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1729 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1730 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1731 --libdir=DIR object code libraries [EPREFIX/lib]
1732 --includedir=DIR C header files [PREFIX/include]
1733 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1734 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1735 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1736 --infodir=DIR info documentation [DATAROOTDIR/info]
1737 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1738 --mandir=DIR man documentation [DATAROOTDIR/man]
1739 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1740 --htmldir=DIR html documentation [DOCDIR]
1741 --dvidir=DIR dvi documentation [DOCDIR]
1742 --pdfdir=DIR pdf documentation [DOCDIR]
1743 --psdir=DIR ps documentation [DOCDIR]
1749 --x-includes=DIR X include files are in DIR
1750 --x-libraries=DIR X library files are in DIR
1753 --build=BUILD configure for building on BUILD [guessed]
1754 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1758 if test -n "$ac_init_help"; then
1763 --disable-option-checking ignore unrecognized --enable/--with options
1764 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1765 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1766 --enable-libtool enable building using GNU libtool [default=yes]
1767 --enable-shared[=PKGS] build shared libraries [default=yes]
1768 --enable-static[=PKGS] build static libraries [default=no]
1769 --enable-fast-install[=PKGS]
1770 optimize for fast installation [default=yes]
1771 --disable-libtool-lock avoid locking (might break parallel builds)
1772 --enable-includes enable installing of include files [default=no]
1773 --disable-nls do not use Native Language Support
1774 --disable-rpath do not hardcode runtime library paths
1775 --enable-gnome enable build of bgnome-console GUI [default=no]
1776 --enable-bat enable build of bat Qt4 GUI [default=no]
1777 --enable-bwx-console enable build of wxWidgets console [default=no]
1778 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1780 --enable-smartalloc enable smartalloc debugging support [default=no]
1781 --enable-lockmgr enable lock manager support [default=no]
1782 --enable-static-tools enable static tape tools [default=no]
1783 --enable-static-fd enable static File daemon [default=no]
1784 --enable-static-sd enable static Storage daemon [default=no]
1785 --enable-static-dir enable static Director [default=no]
1786 --enable-static-cons enable static Console [default=no]
1787 --enable-client-only build client (File daemon) only [default=no]
1788 --enable-build-dird enable building of dird (Director) [default=yes]
1789 --enable-build-stored enable building of stored (Storage daemon)
1791 --disable-conio disable conio support [default=no]
1792 --enable-ipv6 enable ipv6 support [default=yes]
1793 --disable-readline disable readline support [default=yes]
1794 --enable-batch-insert enable the DB batch insert code [default=yes]
1795 --disable-largefile omit support for large files
1796 --disable-afs disable afs support [default=auto]
1797 --disable-acl disable acl support [default=auto]
1798 --disable-xattr disable xattr support [default=auto]
1801 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1802 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1803 --with-pic try to use only PIC/non-PIC objects [default=use
1805 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1806 --with-gnu-ld assume the C compiler uses GNU ld default=no
1807 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1808 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1809 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1810 --without-libintl-prefix don't search for libintl in includedir and libdir
1811 --with-included-gettext use the GNU gettext library included here
1812 --with-readline[=DIR] specify readline library directory
1813 --with-python[=DIR] Include Python support. DIR is the Python base
1814 install directory, default is to search through a
1815 number of common places for the Python files.
1816 --with-tcp-wrappers[=DIR]
1817 enable tcpwrappers support
1818 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1819 --with-working-dir=PATH specify path of Bacula working directory
1820 --with-archivedir=PATH specify path of SD archive directory
1821 --with-basename=RESNAME specify base resource name for daemons
1822 --with-hostname=RESNAME specify host name for daemons
1823 --with-scriptdir=PATH specify path of Bacula scripts directory
1824 --with-bsrdir=PATH specify path of Bacula bsrs directory
1825 --with-logdir=PATH specify path of Bacula logs directory
1826 --with-plugindir=PATH specify path of Bacula plugins directory
1827 --with-dump-email=EMAIL dump email address
1828 --with-job-email=EMAIL job output email address
1829 --with-smtp-host=HOST SMTP mail host address
1830 --with-pid-dir=PATH specify location of Bacula pid files
1831 --with-subsys-dir=PATH specify location of Bacula subsys file
1832 --with-baseport=PORT specify base port address for daemons
1833 --with-dir-password=PASSWORD
1834 specify Director's password
1835 --with-fd-password=PASSWORD
1836 specify Client's password
1837 --with-sd-password=PASSWORD
1838 specify Storage daemon's password
1839 --with-mon-dir-password=PASSWORD
1840 specify Director's password used by the monitor
1841 --with-mon-fd-password=PASSWORD
1842 specify Client's password used by the monitor
1843 --with-mon-sd-password=PASSWORD
1844 specify Storage daemon's password used by the
1846 --with-db-name=DBNAME specify database name [default=bacula]
1847 --with-db-user=UNAME specify database user [default=bacula]
1848 --with-db-password=PWD specify database password [default=*none*]
1849 --with-db-port=DBPORT specify a database port [default=null]
1850 --with-dir-user=USER specify user for Director daemon
1851 --with-dir-group=GROUP specify group for Director daemon
1852 --with-sd-user=USER specify user for Storage daemon
1853 --with-sd-group=GROUP specify group for Storage daemon
1854 --with-fd-user=USER specify user for File daemon
1855 --with-fd-group=GROUP specify group for File daemon
1856 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1857 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1858 base install directory, [default=/usr/local/pgsql]
1859 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1860 directory, default is to search through a number of
1861 common places for the MySQL files.
1862 --with-embedded-mysql[=DIR]
1863 Include MySQL support. DIR is the MySQL base install
1864 directory, default is to search through a number of
1865 common places for the MySQL files.
1866 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1867 install directory, default is to search through a
1868 number of common places for the SQLite3 files.
1869 --with-ingres[=DIR] Include Ingres support. DIR is the Ingres base
1870 install directory, default is to search through a
1871 number of common places for the Ingres files.
1872 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1873 directory, default is to search through a number of
1874 common places for the DBI files.
1875 --with-dbi-driver[=DRIVER]
1876 Suport for DBI driver. DRIVER is the one DBI driver
1877 like Mysql, Postgresql, others. Default is to not
1878 configure any driver.
1879 --with-x use the X Window System
1880 --with-afsdir[=DIR] Directory holding AFS includes/libs
1882 Some influential environment variables:
1883 CC C compiler command
1884 CFLAGS C compiler flags
1885 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1886 nonstandard directory <lib dir>
1887 LIBS libraries to pass to the linker, e.g. -l<library>
1888 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1889 you have headers in a nonstandard directory <include dir>
1890 CXX C++ compiler command
1891 CXXFLAGS C++ compiler flags
1893 WXCONFIG wx-config command. On some systems, you must set it to
1894 wx-config-2.6 to use wxWidgets 2.6.
1895 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1896 CXXCPP C++ preprocessor
1897 XMKMF Path to xmkmf, Makefile generator for X Window System
1899 Use these variables to override the choices made by `configure' or to help
1900 it to find libraries and programs with nonstandard names/locations.
1902 Report bugs to the package provider.
1907 if test "$ac_init_help" = "recursive"; then
1908 # If there are subdirs, report their specific --help.
1909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1910 test -d "$ac_dir" ||
1911 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1916 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1918 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1919 # A ".." for each directory in $ac_dir_suffix.
1920 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1921 case $ac_top_builddir_sub in
1922 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1923 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1926 ac_abs_top_builddir=$ac_pwd
1927 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1928 # for backward compatibility:
1929 ac_top_builddir=$ac_top_build_prefix
1932 .) # We are building in place.
1934 ac_top_srcdir=$ac_top_builddir_sub
1935 ac_abs_top_srcdir=$ac_pwd ;;
1936 [\\/]* | ?:[\\/]* ) # Absolute name.
1937 ac_srcdir=$srcdir$ac_dir_suffix;
1938 ac_top_srcdir=$srcdir
1939 ac_abs_top_srcdir=$srcdir ;;
1941 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1942 ac_top_srcdir=$ac_top_build_prefix$srcdir
1943 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1945 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1947 cd "$ac_dir" || { ac_status=$?; continue; }
1948 # Check for guested configure.
1949 if test -f "$ac_srcdir/configure.gnu"; then
1951 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1952 elif test -f "$ac_srcdir/configure"; then
1954 $SHELL "$ac_srcdir/configure" --help=recursive
1956 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1958 cd "$ac_pwd" || { ac_status=$?; break; }
1962 test -n "$ac_init_help" && exit $ac_status
1963 if $ac_init_version; then
1966 generated by GNU Autoconf 2.65
1968 Copyright (C) 2009 Free Software Foundation, Inc.
1969 This configure script is free software; the Free Software Foundation
1970 gives unlimited permission to copy, distribute and modify it.
1975 ## ------------------------ ##
1976 ## Autoconf initialization. ##
1977 ## ------------------------ ##
1979 # ac_fn_c_try_compile LINENO
1980 # --------------------------
1981 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1982 ac_fn_c_try_compile ()
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 rm -f conftest.$ac_objext
1986 if { { ac_try="$ac_compile"
1988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989 *) ac_try_echo=$ac_try;;
1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 $as_echo "$ac_try_echo"; } >&5
1993 (eval "$ac_compile") 2>conftest.err
1995 if test -s conftest.err; then
1996 grep -v '^ *+' conftest.err >conftest.er1
1997 cat conftest.er1 >&5
1998 mv -f conftest.er1 conftest.err
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; } && {
2002 test -z "$ac_c_werror_flag" ||
2003 test ! -s conftest.err
2004 } && test -s conftest.$ac_objext; then :
2007 $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013 as_fn_set_status $ac_retval
2015 } # ac_fn_c_try_compile
2017 # ac_fn_cxx_try_compile LINENO
2018 # ----------------------------
2019 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2020 ac_fn_cxx_try_compile ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 rm -f conftest.$ac_objext
2024 if { { ac_try="$ac_compile"
2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_compile") 2>conftest.err
2033 if test -s conftest.err; then
2034 grep -v '^ *+' conftest.err >conftest.er1
2035 cat conftest.er1 >&5
2036 mv -f conftest.er1 conftest.err
2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; } && {
2040 test -z "$ac_cxx_werror_flag" ||
2041 test ! -s conftest.err
2042 } && test -s conftest.$ac_objext; then :
2045 $as_echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2050 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051 as_fn_set_status $ac_retval
2053 } # ac_fn_cxx_try_compile
2055 # ac_fn_c_try_cpp LINENO
2056 # ----------------------
2057 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 if { { ac_try="$ac_cpp conftest.$ac_ext"
2063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064 *) ac_try_echo=$ac_try;;
2066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067 $as_echo "$ac_try_echo"; } >&5
2068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2070 if test -s conftest.err; then
2071 grep -v '^ *+' conftest.err >conftest.er1
2072 cat conftest.er1 >&5
2073 mv -f conftest.er1 conftest.err
2075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2076 test $ac_status = 0; } >/dev/null && {
2077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2078 test ! -s conftest.err
2082 $as_echo "$as_me: failed program was:" >&5
2083 sed 's/^/| /' conftest.$ac_ext >&5
2087 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2088 as_fn_set_status $ac_retval
2092 # ac_fn_c_try_link LINENO
2093 # -----------------------
2094 # Try to link conftest.$ac_ext, and return whether this succeeded.
2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098 rm -f conftest.$ac_objext conftest$ac_exeext
2099 if { { ac_try="$ac_link"
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2105 $as_echo "$ac_try_echo"; } >&5
2106 (eval "$ac_link") 2>conftest.err
2108 if test -s conftest.err; then
2109 grep -v '^ *+' conftest.err >conftest.er1
2110 cat conftest.er1 >&5
2111 mv -f conftest.er1 conftest.err
2113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2114 test $ac_status = 0; } && {
2115 test -z "$ac_c_werror_flag" ||
2116 test ! -s conftest.err
2117 } && test -s conftest$ac_exeext && {
2118 test "$cross_compiling" = yes ||
2119 $as_test_x conftest$ac_exeext
2123 $as_echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2128 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2129 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2130 # interfere with the next link command; also delete a directory that is
2131 # left behind by Apple's compiler. We do this before executing the actions.
2132 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2133 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2134 as_fn_set_status $ac_retval
2136 } # ac_fn_c_try_link
2138 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2139 # -------------------------------------------------------
2140 # Tests whether HEADER exists and can be compiled using the include files in
2141 # INCLUDES, setting the cache variable VAR accordingly.
2142 ac_fn_c_check_header_compile ()
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2146 $as_echo_n "checking for $2... " >&6; }
2147 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2148 $as_echo_n "(cached) " >&6
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2155 if ac_fn_c_try_compile "$LINENO"; then :
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2167 } # ac_fn_c_check_header_compile
2169 # ac_fn_c_try_run LINENO
2170 # ----------------------
2171 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2172 # that executables *can* be run.
2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176 if { { ac_try="$ac_link"
2178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179 *) ac_try_echo=$ac_try;;
2181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2182 $as_echo "$ac_try_echo"; } >&5
2183 (eval "$ac_link") 2>&5
2185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2186 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2187 { { case "(($ac_try" in
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2192 $as_echo "$ac_try_echo"; } >&5
2193 (eval "$ac_try") 2>&5
2195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2196 test $ac_status = 0; }; }; then :
2199 $as_echo "$as_me: program exited with status $ac_status" >&5
2200 $as_echo "$as_me: failed program was:" >&5
2201 sed 's/^/| /' conftest.$ac_ext >&5
2203 ac_retval=$ac_status
2205 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2206 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2207 as_fn_set_status $ac_retval
2211 # ac_fn_c_check_func LINENO FUNC VAR
2212 # ----------------------------------
2213 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2214 ac_fn_c_check_func ()
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218 $as_echo_n "checking for $2... " >&6; }
2219 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2220 $as_echo_n "(cached) " >&6
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2224 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2226 #define $2 innocuous_$2
2228 /* System header to define __stub macros and hopefully few prototypes,
2229 which can conflict with char $2 (); below.
2230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2231 <limits.h> exists even on freestanding compilers. */
2234 # include <limits.h>
2236 # include <assert.h>
2241 /* Override any GCC internal prototype to avoid an error.
2242 Use char because int might match the return type of a GCC
2243 builtin and then its argument prototype would still apply. */
2248 /* The GNU C library defines this for functions which it implements
2249 to always fail with ENOSYS. Some functions are actually named
2250 something starting with __ and the normal name is an alias. */
2251 #if defined __stub_$2 || defined __stub___$2
2263 if ac_fn_c_try_link "$LINENO"; then :
2268 rm -f core conftest.err conftest.$ac_objext \
2269 conftest$ac_exeext conftest.$ac_ext
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2276 } # ac_fn_c_check_func
2278 # ac_fn_cxx_try_cpp LINENO
2279 # ------------------------
2280 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2281 ac_fn_cxx_try_cpp ()
2283 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284 if { { ac_try="$ac_cpp conftest.$ac_ext"
2286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287 *) ac_try_echo=$ac_try;;
2289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2290 $as_echo "$ac_try_echo"; } >&5
2291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2293 if test -s conftest.err; then
2294 grep -v '^ *+' conftest.err >conftest.er1
2295 cat conftest.er1 >&5
2296 mv -f conftest.er1 conftest.err
2298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2299 test $ac_status = 0; } >/dev/null && {
2300 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2301 test ! -s conftest.err
2305 $as_echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2310 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2311 as_fn_set_status $ac_retval
2313 } # ac_fn_cxx_try_cpp
2315 # ac_fn_cxx_try_link LINENO
2316 # -------------------------
2317 # Try to link conftest.$ac_ext, and return whether this succeeded.
2318 ac_fn_cxx_try_link ()
2320 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321 rm -f conftest.$ac_objext conftest$ac_exeext
2322 if { { ac_try="$ac_link"
2324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2325 *) ac_try_echo=$ac_try;;
2327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2328 $as_echo "$ac_try_echo"; } >&5
2329 (eval "$ac_link") 2>conftest.err
2331 if test -s conftest.err; then
2332 grep -v '^ *+' conftest.err >conftest.er1
2333 cat conftest.er1 >&5
2334 mv -f conftest.er1 conftest.err
2336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2337 test $ac_status = 0; } && {
2338 test -z "$ac_cxx_werror_flag" ||
2339 test ! -s conftest.err
2340 } && test -s conftest$ac_exeext && {
2341 test "$cross_compiling" = yes ||
2342 $as_test_x conftest$ac_exeext
2346 $as_echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2351 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2352 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2353 # interfere with the next link command; also delete a directory that is
2354 # left behind by Apple's compiler. We do this before executing the actions.
2355 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2356 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2357 as_fn_set_status $ac_retval
2359 } # ac_fn_cxx_try_link
2361 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2362 # -------------------------------------------
2363 # Tests whether TYPE exists after having included INCLUDES, setting cache
2364 # variable VAR accordingly.
2365 ac_fn_c_check_type ()
2367 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2369 $as_echo_n "checking for $2... " >&6; }
2370 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2371 $as_echo_n "(cached) " >&6
2374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h. */
2386 if ac_fn_c_try_compile "$LINENO"; then :
2387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388 /* end confdefs.h. */
2399 if ac_fn_c_try_compile "$LINENO"; then :
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2410 $as_echo "$ac_res" >&6; }
2411 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2413 } # ac_fn_c_check_type
2415 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2416 # -------------------------------------------------------
2417 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2418 # the include files in INCLUDES and setting the cache variable VAR
2420 ac_fn_c_check_header_mongrel ()
2422 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2423 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2425 $as_echo_n "checking for $2... " >&6; }
2426 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2427 $as_echo_n "(cached) " >&6
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2431 $as_echo "$ac_res" >&6; }
2433 # Is the header compilable?
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2435 $as_echo_n "checking $2 usability... " >&6; }
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2441 if ac_fn_c_try_compile "$LINENO"; then :
2442 ac_header_compiler=yes
2444 ac_header_compiler=no
2446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2448 $as_echo "$ac_header_compiler" >&6; }
2450 # Is the header present?
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2452 $as_echo_n "checking $2 presence... " >&6; }
2453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h. */
2457 if ac_fn_c_try_cpp "$LINENO"; then :
2458 ac_header_preproc=yes
2460 ac_header_preproc=no
2462 rm -f conftest.err conftest.$ac_ext
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2464 $as_echo "$ac_header_preproc" >&6; }
2466 # So? What about this header?
2467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2470 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2472 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2476 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2478 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2480 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2482 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2484 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2488 $as_echo_n "checking for $2... " >&6; }
2489 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2490 $as_echo_n "(cached) " >&6
2492 eval "$3=\$ac_header_compiler"
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2496 $as_echo "$ac_res" >&6; }
2498 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2500 } # ac_fn_c_check_header_mongrel
2502 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2503 # --------------------------------------------
2504 # Tries to find the compile-time value of EXPR in a program that includes
2505 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2507 ac_fn_c_compute_int ()
2509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2510 if test "$cross_compiling" = yes; then
2511 # Depending upon the size, compute the lo and hi bounds.
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2518 static int test_array [1 - 2 * !(($2) >= 0)];
2525 if ac_fn_c_try_compile "$LINENO"; then :
2528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h. */
2534 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2541 if ac_fn_c_try_compile "$LINENO"; then :
2542 ac_hi=$ac_mid; break
2544 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2545 if test $ac_lo -le $ac_mid; then
2549 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2560 static int test_array [1 - 2 * !(($2) < 0)];
2567 if ac_fn_c_try_compile "$LINENO"; then :
2570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571 /* end confdefs.h. */
2576 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2583 if ac_fn_c_try_compile "$LINENO"; then :
2584 ac_lo=$ac_mid; break
2586 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2587 if test $ac_mid -le $ac_hi; then
2591 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 # Binary search between lo and hi bounds.
2602 while test "x$ac_lo" != "x$ac_hi"; do
2603 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605 /* end confdefs.h. */
2610 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2617 if ac_fn_c_try_compile "$LINENO"; then :
2620 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2625 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630 /* end confdefs.h. */
2632 static long int longval () { return $2; }
2633 static unsigned long int ulongval () { return $2; }
2640 FILE *f = fopen ("conftest.val", "w");
2645 long int i = longval ();
2648 fprintf (f, "%ld", i);
2652 unsigned long int i = ulongval ();
2655 fprintf (f, "%lu", i);
2657 /* Do not output a trailing newline, as this causes \r\n confusion
2658 on some platforms. */
2659 return ferror (f) || fclose (f) != 0;
2665 if ac_fn_c_try_run "$LINENO"; then :
2666 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2671 conftest.$ac_objext conftest.beam conftest.$ac_ext
2675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2676 as_fn_set_status $ac_retval
2678 } # ac_fn_c_compute_int
2680 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2681 # ----------------------------------------------------
2682 # Tries to find if the field MEMBER exists in type AGGR, after including
2683 # INCLUDES, setting cache variable VAR accordingly.
2684 ac_fn_c_check_member ()
2686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2688 $as_echo_n "checking for $2.$3... " >&6; }
2689 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2690 $as_echo_n "(cached) " >&6
2692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693 /* end confdefs.h. */
2705 if ac_fn_c_try_compile "$LINENO"; then :
2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709 /* end confdefs.h. */
2715 if (sizeof ac_aggr.$3)
2721 if ac_fn_c_try_compile "$LINENO"; then :
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2732 $as_echo "$ac_res" >&6; }
2733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2735 } # ac_fn_c_check_member
2737 # ac_fn_c_check_decl LINENO SYMBOL VAR
2738 # ------------------------------------
2739 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2740 ac_fn_c_check_decl ()
2742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2744 $as_echo_n "checking whether $2 is declared... " >&6; }
2745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2746 $as_echo_n "(cached) " >&6
2748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h. */
2762 if ac_fn_c_try_compile "$LINENO"; then :
2767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2771 $as_echo "$ac_res" >&6; }
2772 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2774 } # ac_fn_c_check_decl
2776 # ac_fn_cxx_try_run LINENO
2777 # ------------------------
2778 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2779 # that executables *can* be run.
2780 ac_fn_cxx_try_run ()
2782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2783 if { { ac_try="$ac_link"
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2789 $as_echo "$ac_try_echo"; } >&5
2790 (eval "$ac_link") 2>&5
2792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2793 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2794 { { case "(($ac_try" in
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2799 $as_echo "$ac_try_echo"; } >&5
2800 (eval "$ac_try") 2>&5
2802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2803 test $ac_status = 0; }; }; then :
2806 $as_echo "$as_me: program exited with status $ac_status" >&5
2807 $as_echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2810 ac_retval=$ac_status
2812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2813 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2814 as_fn_set_status $ac_retval
2816 } # ac_fn_cxx_try_run
2817 cat >config.log <<_ACEOF
2818 This file contains any messages produced by compilers while
2819 running configure, to aid debugging if configure makes a mistake.
2821 It was created by $as_me, which was
2822 generated by GNU Autoconf 2.65. Invocation command line was
2834 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2835 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2836 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2837 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2838 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2840 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2841 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2843 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2844 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2845 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2846 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2847 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2848 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2849 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 test -z "$as_dir" && as_dir=.
2858 $as_echo "PATH: $as_dir"
2874 # Keep a trace of the command line.
2875 # Strip out --no-create and --no-recursion so they do not pile up.
2876 # Strip out --silent because we don't want to record it for future runs.
2877 # Also quote any args containing shell meta-characters.
2878 # Make two passes to allow for proper duplicate-argument suppression.
2882 ac_must_keep_next=false
2888 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2889 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2890 | -silent | --silent | --silen | --sile | --sil)
2893 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2896 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2898 as_fn_append ac_configure_args1 " '$ac_arg'"
2899 if test $ac_must_keep_next = true; then
2900 ac_must_keep_next=false # Got value, back to normal.
2903 *=* | --config-cache | -C | -disable-* | --disable-* \
2904 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2905 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2906 | -with-* | --with-* | -without-* | --without-* | --x)
2907 case "$ac_configure_args0 " in
2908 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2911 -* ) ac_must_keep_next=true ;;
2914 as_fn_append ac_configure_args " '$ac_arg'"
2919 { ac_configure_args0=; unset ac_configure_args0;}
2920 { ac_configure_args1=; unset ac_configure_args1;}
2922 # When interrupted or exit'd, cleanup temporary files, and complete
2923 # config.log. We remove comments because anyway the quotes in there
2924 # would cause problems or look ugly.
2925 # WARNING: Use '\'' to represent an apostrophe within the trap.
2926 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2927 trap 'exit_status=$?
2928 # Save into config.log some information that might help in debugging.
2933 ## ---------------- ##
2934 ## Cache variables. ##
2935 ## ---------------- ##
2938 # The following way of writing the cache mishandles newlines in values,
2940 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2941 eval ac_val=\$$ac_var
2945 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2946 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2949 _ | IFS | as_nl) ;; #(
2950 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2951 *) { eval $ac_var=; unset $ac_var;} ;;
2956 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2957 *${as_nl}ac_space=\ *)
2959 "s/'\''/'\''\\\\'\'''\''/g;
2960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2971 ## ----------------- ##
2972 ## Output variables. ##
2973 ## ----------------- ##
2976 for ac_var in $ac_subst_vars
2978 eval ac_val=\$$ac_var
2980 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2982 $as_echo "$ac_var='\''$ac_val'\''"
2986 if test -n "$ac_subst_files"; then
2988 ## ------------------- ##
2989 ## File substitutions. ##
2990 ## ------------------- ##
2993 for ac_var in $ac_subst_files
2995 eval ac_val=\$$ac_var
2997 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2999 $as_echo "$ac_var='\''$ac_val'\''"
3004 if test -s confdefs.h; then
3014 test "$ac_signal" != 0 &&
3015 $as_echo "$as_me: caught signal $ac_signal"
3016 $as_echo "$as_me: exit $exit_status"
3018 rm -f core *.core core.conftest.* &&
3019 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3022 for ac_signal in 1 2 13 15; do
3023 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3027 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3028 rm -f -r conftest* confdefs.h
3030 $as_echo "/* confdefs.h */" > confdefs.h
3032 # Predefined preprocessor variables.
3034 cat >>confdefs.h <<_ACEOF
3035 #define PACKAGE_NAME "$PACKAGE_NAME"
3038 cat >>confdefs.h <<_ACEOF
3039 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3042 cat >>confdefs.h <<_ACEOF
3043 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3046 cat >>confdefs.h <<_ACEOF
3047 #define PACKAGE_STRING "$PACKAGE_STRING"
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_URL "$PACKAGE_URL"
3059 # Let the site file select an alternate cache file if it wants to.
3060 # Prefer an explicitly selected file to automatically selected ones.
3063 if test -n "$CONFIG_SITE"; then
3064 ac_site_file1=$CONFIG_SITE
3065 elif test "x$prefix" != xNONE; then
3066 ac_site_file1=$prefix/share/config.site
3067 ac_site_file2=$prefix/etc/config.site
3069 ac_site_file1=$ac_default_prefix/share/config.site
3070 ac_site_file2=$ac_default_prefix/etc/config.site
3072 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3074 test "x$ac_site_file" = xNONE && continue
3075 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3077 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3078 sed 's/^/| /' "$ac_site_file" >&5
3083 if test -r "$cache_file"; then
3084 # Some versions of bash will fail to source /dev/null (special files
3085 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3086 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3088 $as_echo "$as_me: loading cache $cache_file" >&6;}
3090 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3091 *) . "./$cache_file";;
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3096 $as_echo "$as_me: creating cache $cache_file" >&6;}
3100 as_fn_append ac_header_list " stdlib.h"
3101 as_fn_append ac_header_list " unistd.h"
3102 as_fn_append ac_header_list " sys/param.h"
3103 # Check that the precious variables saved in the cache have kept the same
3105 ac_cache_corrupted=false
3106 for ac_var in $ac_precious_vars; do
3107 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3108 eval ac_new_set=\$ac_env_${ac_var}_set
3109 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3110 eval ac_new_val=\$ac_env_${ac_var}_value
3111 case $ac_old_set,$ac_new_set in
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3114 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3115 ac_cache_corrupted=: ;;
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3118 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3119 ac_cache_corrupted=: ;;
3122 if test "x$ac_old_val" != "x$ac_new_val"; then
3123 # differences in whitespace do not lead to failure.
3124 ac_old_val_w=`echo x $ac_old_val`
3125 ac_new_val_w=`echo x $ac_new_val`
3126 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3128 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3129 ac_cache_corrupted=:
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3132 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3133 eval $ac_var=\$ac_old_val
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3136 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3138 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3141 # Pass precious variables to config.status.
3142 if test "$ac_new_set" = set; then
3144 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3145 *) ac_arg=$ac_var=$ac_new_val ;;
3147 case " $ac_configure_args " in
3148 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3149 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3153 if $ac_cache_corrupted; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3157 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3158 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3160 ## -------------------- ##
3161 ## Main body of script. ##
3162 ## -------------------- ##
3165 ac_cpp='$CPP $CPPFLAGS'
3166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3179 for ac_t in install-sh install.sh shtool; do
3180 if test -f "$ac_dir/$ac_t"; then
3182 ac_install_sh="$ac_aux_dir/$ac_t -c"
3187 if test -z "$ac_aux_dir"; then
3188 as_fn_error "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3191 # These three variables are undocumented and unsupported,
3192 # and are intended to be withdrawn in a future Autoconf release.
3193 # They can cause serious problems if a builder's source tree is in a directory
3194 # whose full name contains unusual characters.
3195 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3196 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3197 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3200 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3203 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3204 WIN32MAINDIR=${BUILD_DIR}
3205 WIN32TOPDIR=${TOP_DIR}
3212 # Extract the first word of "$ac_prog", so it can be a program name with args.
3213 set dummy $ac_prog; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if test "${ac_cv_path_TRUEPRG+set}" = set; then :
3217 $as_echo_n "(cached) " >&6
3221 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 TRUEPRG=$ac_cv_path_TRUEPRG
3243 if test -n "$TRUEPRG"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3245 $as_echo "$TRUEPRG" >&6; }
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3252 test -n "$TRUEPRG" && break
3254 test -n "$TRUEPRG" || TRUEPRG=":"
3256 for ac_prog in false
3258 # Extract the first word of "$ac_prog", so it can be a program name with args.
3259 set dummy $ac_prog; ac_word=$2
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if test "${ac_cv_path_FALSEPRG+set}" = set; then :
3263 $as_echo_n "(cached) " >&6
3267 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 test -z "$as_dir" && as_dir=.
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3277 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 FALSEPRG=$ac_cv_path_FALSEPRG
3289 if test -n "$FALSEPRG"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3291 $as_echo "$FALSEPRG" >&6; }
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3298 test -n "$FALSEPRG" && break
3300 test -n "$FALSEPRG" || FALSEPRG=":"
3305 if test "x$BACULA" != x; then
3306 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3308 BACULA=${BACULA:-Bacula}
3309 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3310 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3311 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3312 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3314 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3315 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3316 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3318 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3319 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3320 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3323 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3324 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3326 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3327 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3330 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3332 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3335 echo "configuring for ${BACULA} $VERSION ($DATE)"
3340 ac_cpp='$CPP $CPPFLAGS'
3341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3344 if test -n "$ac_tool_prefix"; then
3345 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3346 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348 $as_echo_n "checking for $ac_word... " >&6; }
3349 if test "${ac_cv_prog_CC+set}" = set; then :
3350 $as_echo_n "(cached) " >&6
3352 if test -n "$CC"; then
3353 ac_cv_prog_CC="$CC" # Let the user override the test.
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 test -z "$as_dir" && as_dir=.
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3362 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 if test -n "$CC"; then
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3375 $as_echo "$CC" >&6; }
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 $as_echo "no" >&6; }
3383 if test -z "$ac_cv_prog_CC"; then
3385 # Extract the first word of "gcc", so it can be a program name with args.
3386 set dummy gcc; ac_word=$2
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3390 $as_echo_n "(cached) " >&6
3392 if test -n "$ac_ct_CC"; then
3393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402 ac_cv_prog_ac_ct_CC="gcc"
3403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3413 if test -n "$ac_ct_CC"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3415 $as_echo "$ac_ct_CC" >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3421 if test "x$ac_ct_CC" = x; then
3424 case $cross_compiling:$ac_tool_warned in
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3428 ac_tool_warned=yes ;;
3436 if test -z "$CC"; then
3437 if test -n "$ac_tool_prefix"; then
3438 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3439 set dummy ${ac_tool_prefix}cc; ac_word=$2
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441 $as_echo_n "checking for $ac_word... " >&6; }
3442 if test "${ac_cv_prog_CC+set}" = set; then :
3443 $as_echo_n "(cached) " >&6
3445 if test -n "$CC"; then
3446 ac_cv_prog_CC="$CC" # Let the user override the test.
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455 ac_cv_prog_CC="${ac_tool_prefix}cc"
3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 if test -n "$CC"; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3468 $as_echo "$CC" >&6; }
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3477 if test -z "$CC"; then
3478 # Extract the first word of "cc", so it can be a program name with args.
3479 set dummy cc; ac_word=$2
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if test "${ac_cv_prog_CC+set}" = set; then :
3483 $as_echo_n "(cached) " >&6
3485 if test -n "$CC"; then
3486 ac_cv_prog_CC="$CC" # Let the user override the test.
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 test -z "$as_dir" && as_dir=.
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3497 ac_prog_rejected=yes
3501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3508 if test $ac_prog_rejected = yes; then
3509 # We found a bogon in the path, so make sure we never use it.
3510 set dummy $ac_cv_prog_CC
3512 if test $# != 0; then
3513 # We chose a different compiler from the bogus one.
3514 # However, it has the same basename, so the bogon will be chosen
3515 # first if we set CC to just the basename; use the full file name.
3517 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3523 if test -n "$CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3533 if test -z "$CC"; then
3534 if test -n "$ac_tool_prefix"; then
3535 for ac_prog in cl.exe
3537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 $as_echo_n "checking for $ac_word... " >&6; }
3541 if test "${ac_cv_prog_CC+set}" = set; then :
3542 $as_echo_n "(cached) " >&6
3544 if test -n "$CC"; then
3545 ac_cv_prog_CC="$CC" # Let the user override the test.
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 test -z "$as_dir" && as_dir=.
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3554 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 if test -n "$CC"; then
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3567 $as_echo "$CC" >&6; }
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 $as_echo "no" >&6; }
3574 test -n "$CC" && break
3577 if test -z "$CC"; then
3579 for ac_prog in cl.exe
3581 # Extract the first word of "$ac_prog", so it can be a program name with args.
3582 set dummy $ac_prog; ac_word=$2
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 $as_echo_n "checking for $ac_word... " >&6; }
3585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3586 $as_echo_n "(cached) " >&6
3588 if test -n "$ac_ct_CC"; then
3589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3598 ac_cv_prog_ac_ct_CC="$ac_prog"
3599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3609 if test -n "$ac_ct_CC"; then
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3611 $as_echo "$ac_ct_CC" >&6; }
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3618 test -n "$ac_ct_CC" && break
3621 if test "x$ac_ct_CC" = x; then
3624 case $cross_compiling:$ac_tool_warned in
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3628 ac_tool_warned=yes ;;
3637 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3639 as_fn_error "no acceptable C compiler found in \$PATH
3640 See \`config.log' for more details." "$LINENO" 5; }
3642 # Provide some information about the compiler.
3643 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3646 for ac_option in --version -v -V -qversion; do
3647 { { ac_try="$ac_compiler $ac_option >&5"
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653 $as_echo "$ac_try_echo"; } >&5
3654 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3656 if test -s conftest.err; then
3658 ... rest of stderr output deleted ...
3659 10q' conftest.err >conftest.er1
3660 cat conftest.er1 >&5
3662 rm -f conftest.er1 conftest.err
3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664 test $ac_status = 0; }
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h. */
3678 ac_clean_files_save=$ac_clean_files
3679 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3680 # Try to create an executable without -o first, disregard a.out.
3681 # It will help us diagnose broken compilers, and finding out an intuition
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3684 $as_echo_n "checking whether the C compiler works... " >&6; }
3685 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3687 # The possible output files:
3688 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3691 for ac_file in $ac_files
3694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3695 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3700 if { { ac_try="$ac_link_default"
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706 $as_echo "$ac_try_echo"; } >&5
3707 (eval "$ac_link_default") 2>&5
3709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710 test $ac_status = 0; }; then :
3711 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3712 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3713 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3714 # so that the user can short-circuit this test for compilers unknown to
3716 for ac_file in $ac_files ''
3718 test -f "$ac_file" || continue
3720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3723 # We found the default executable, but exeext='' is most
3727 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3729 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3731 # We set ac_cv_exeext here because the later test for it is not
3732 # safe: cross compilers may not add the suffix if given an `-o'
3733 # argument, so we may need to know it at that point already.
3734 # Even if this section looks crufty: it has the advantage of
3741 test "$ac_cv_exeext" = no && ac_cv_exeext=
3746 if test -z "$ac_file"; then :
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748 $as_echo "no" >&6; }
3749 $as_echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3754 { as_fn_set_status 77
3755 as_fn_error "C compiler cannot create executables
3756 See \`config.log' for more details." "$LINENO" 5; }; }
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3759 $as_echo "yes" >&6; }
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3762 $as_echo_n "checking for C compiler default output file name... " >&6; }
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3764 $as_echo "$ac_file" >&6; }
3765 ac_exeext=$ac_cv_exeext
3767 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3768 ac_clean_files=$ac_clean_files_save
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3770 $as_echo_n "checking for suffix of executables... " >&6; }
3771 if { { ac_try="$ac_link"
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777 $as_echo "$ac_try_echo"; } >&5
3778 (eval "$ac_link") 2>&5
3780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781 test $ac_status = 0; }; then :
3782 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3783 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3784 # work properly (i.e., refer to `conftest.exe'), while it won't with
3786 for ac_file in conftest.exe conftest conftest.*; do
3787 test -f "$ac_file" || continue
3789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3790 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3798 as_fn_error "cannot compute suffix of executables: cannot compile and link
3799 See \`config.log' for more details." "$LINENO" 5; }
3801 rm -f conftest conftest$ac_cv_exeext
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3803 $as_echo "$ac_cv_exeext" >&6; }
3805 rm -f conftest.$ac_ext
3806 EXEEXT=$ac_cv_exeext
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h. */
3814 FILE *f = fopen ("conftest.out", "w");
3815 return ferror (f) || fclose (f) != 0;
3821 ac_clean_files="$ac_clean_files conftest.out"
3822 # Check that the compiler produces executables we can run. If not, either
3823 # the compiler is broken, or we cross compile.
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3825 $as_echo_n "checking whether we are cross compiling... " >&6; }
3826 if test "$cross_compiling" != yes; then
3827 { { ac_try="$ac_link"
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3833 $as_echo "$ac_try_echo"; } >&5
3834 (eval "$ac_link") 2>&5
3836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837 test $ac_status = 0; }
3838 if { ac_try='./conftest$ac_cv_exeext'
3839 { { case "(($ac_try" in
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3844 $as_echo "$ac_try_echo"; } >&5
3845 (eval "$ac_try") 2>&5
3847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3848 test $ac_status = 0; }; }; then
3851 if test "$cross_compiling" = maybe; then
3854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3856 as_fn_error "cannot run C compiled programs.
3857 If you meant to cross compile, use \`--host'.
3858 See \`config.log' for more details." "$LINENO" 5; }
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3863 $as_echo "$cross_compiling" >&6; }
3865 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3866 ac_clean_files=$ac_clean_files_save
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3868 $as_echo_n "checking for suffix of object files... " >&6; }
3869 if test "${ac_cv_objext+set}" = set; then :
3870 $as_echo_n "(cached) " >&6
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3883 rm -f conftest.o conftest.obj
3884 if { { ac_try="$ac_compile"
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_compile") 2>&5
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }; then :
3895 for ac_file in conftest.o conftest.obj conftest.*; do
3896 test -f "$ac_file" || continue;
3898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3899 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3904 $as_echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3909 as_fn_error "cannot compute suffix of object files: cannot compile
3910 See \`config.log' for more details." "$LINENO" 5; }
3912 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3915 $as_echo "$ac_cv_objext" >&6; }
3916 OBJEXT=$ac_cv_objext
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3919 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3920 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3921 $as_echo_n "(cached) " >&6
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h. */
3937 if ac_fn_c_try_compile "$LINENO"; then :
3942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3947 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3948 if test $ac_compiler_gnu = yes; then
3953 ac_test_CFLAGS=${CFLAGS+set}
3954 ac_save_CFLAGS=$CFLAGS
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3956 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3957 if test "${ac_cv_prog_cc_g+set}" = set; then :
3958 $as_echo_n "(cached) " >&6
3960 ac_save_c_werror_flag=$ac_c_werror_flag
3961 ac_c_werror_flag=yes
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3975 if ac_fn_c_try_compile "$LINENO"; then :
3979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h. */
3990 if ac_fn_c_try_compile "$LINENO"; then :
3993 ac_c_werror_flag=$ac_save_c_werror_flag
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
4006 if ac_fn_c_try_compile "$LINENO"; then :
4009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014 ac_c_werror_flag=$ac_save_c_werror_flag
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4017 $as_echo "$ac_cv_prog_cc_g" >&6; }
4018 if test "$ac_test_CFLAGS" = set; then
4019 CFLAGS=$ac_save_CFLAGS
4020 elif test $ac_cv_prog_cc_g = yes; then
4021 if test "$GCC" = yes; then
4027 if test "$GCC" = yes; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4034 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4035 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4036 $as_echo_n "(cached) " >&6
4038 ac_cv_prog_cc_c89=no
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4044 #include <sys/types.h>
4045 #include <sys/stat.h>
4046 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4047 struct buf { int x; };
4048 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4049 static char *e (p, i)
4055 static char *f (char * (*g) (char **, int), char **p, ...)
4060 s = g (p, va_arg (v,int));
4065 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4066 function prototypes and stuff, but not '\xHH' hex character constants.
4067 These don't provoke an error unfortunately, instead are silently treated
4068 as 'x'. The following induces an error, until -std is added to get
4069 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4070 array size at least. It's necessary to write '\x00'==0 to get something
4071 that's true only with -std. */
4072 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4074 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4075 inside strings and character constants. */
4077 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4079 int test (int i, double x);
4080 struct s1 {int (*f) (int a);};
4081 struct s2 {int (*f) (double a);};
4082 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4088 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4093 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4094 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4096 CC="$ac_save_CC $ac_arg"
4097 if ac_fn_c_try_compile "$LINENO"; then :
4098 ac_cv_prog_cc_c89=$ac_arg
4100 rm -f core conftest.err conftest.$ac_objext
4101 test "x$ac_cv_prog_cc_c89" != "xno" && break
4103 rm -f conftest.$ac_ext
4108 case "x$ac_cv_prog_cc_c89" in
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4111 $as_echo "none needed" >&6; } ;;
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4114 $as_echo "unsupported" >&6; } ;;
4116 CC="$CC $ac_cv_prog_cc_c89"
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4118 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4120 if test "x$ac_cv_prog_cc_c89" != xno; then :
4125 ac_cpp='$CPP $CPPFLAGS'
4126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4131 ac_cpp='$CXXCPP $CPPFLAGS'
4132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4135 if test -z "$CXX"; then
4136 if test -n "$CCC"; then
4139 if test -n "$ac_tool_prefix"; then
4140 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4142 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4143 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4145 $as_echo_n "checking for $ac_word... " >&6; }
4146 if test "${ac_cv_prog_CXX+set}" = set; then :
4147 $as_echo_n "(cached) " >&6
4149 if test -n "$CXX"; then
4150 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 test -z "$as_dir" && as_dir=.
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4159 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 if test -n "$CXX"; then
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4172 $as_echo "$CXX" >&6; }
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4175 $as_echo "no" >&6; }
4179 test -n "$CXX" && break
4182 if test -z "$CXX"; then
4184 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4186 # Extract the first word of "$ac_prog", so it can be a program name with args.
4187 set dummy $ac_prog; ac_word=$2
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 $as_echo_n "checking for $ac_word... " >&6; }
4190 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4191 $as_echo_n "(cached) " >&6
4193 if test -n "$ac_ct_CXX"; then
4194 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4203 ac_cv_prog_ac_ct_CXX="$ac_prog"
4204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4214 if test -n "$ac_ct_CXX"; then
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4216 $as_echo "$ac_ct_CXX" >&6; }
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 $as_echo "no" >&6; }
4223 test -n "$ac_ct_CXX" && break
4226 if test "x$ac_ct_CXX" = x; then
4229 case $cross_compiling:$ac_tool_warned in
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4233 ac_tool_warned=yes ;;
4241 # Provide some information about the compiler.
4242 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4245 for ac_option in --version -v -V -qversion; do
4246 { { ac_try="$ac_compiler $ac_option >&5"
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4252 $as_echo "$ac_try_echo"; } >&5
4253 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4255 if test -s conftest.err; then
4257 ... rest of stderr output deleted ...
4258 10q' conftest.err >conftest.er1
4259 cat conftest.er1 >&5
4261 rm -f conftest.er1 conftest.err
4262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4263 test $ac_status = 0; }
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4267 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4268 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4285 if ac_fn_cxx_try_compile "$LINENO"; then :
4290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4295 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4296 if test $ac_compiler_gnu = yes; then
4301 ac_test_CXXFLAGS=${CXXFLAGS+set}
4302 ac_save_CXXFLAGS=$CXXFLAGS
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4304 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4305 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4306 $as_echo_n "(cached) " >&6
4308 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4309 ac_cxx_werror_flag=yes
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4323 if ac_fn_cxx_try_compile "$LINENO"; then :
4324 ac_cv_prog_cxx_g=yes
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4338 if ac_fn_cxx_try_compile "$LINENO"; then :
4341 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4354 if ac_fn_cxx_try_compile "$LINENO"; then :
4355 ac_cv_prog_cxx_g=yes
4357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4365 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4366 if test "$ac_test_CXXFLAGS" = set; then
4367 CXXFLAGS=$ac_save_CXXFLAGS
4368 elif test $ac_cv_prog_cxx_g = yes; then
4369 if test "$GXX" = yes; then
4375 if test "$GXX" = yes; then
4382 ac_cpp='$CPP $CPPFLAGS'
4383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4387 if test "x$CC" != xcc; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4389 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4392 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4394 set dummy $CC; ac_cc=`$as_echo "$2" |
4395 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4396 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4397 $as_echo_n "(cached) " >&6
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4410 # Make sure it works both with $CC and with simple cc.
4411 # We do the test twice because some compilers refuse to overwrite an
4412 # existing .o file with -o, though they will create one.
4413 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4415 if { { case "(($ac_try" in
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4420 $as_echo "$ac_try_echo"; } >&5
4421 (eval "$ac_try") 2>&5
4423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4424 test $ac_status = 0; } &&
4425 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4430 $as_echo "$ac_try_echo"; } >&5
4431 (eval "$ac_try") 2>&5
4433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4434 test $ac_status = 0; };
4436 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4437 if test "x$CC" != xcc; then
4438 # Test first that cc exists at all.
4439 if { ac_try='cc -c conftest.$ac_ext >&5'
4440 { { case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445 $as_echo "$ac_try_echo"; } >&5
4446 (eval "$ac_try") 2>&5
4448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4449 test $ac_status = 0; }; }; then
4450 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4452 if { { case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4457 $as_echo "$ac_try_echo"; } >&5
4458 (eval "$ac_try") 2>&5
4460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4461 test $ac_status = 0; } &&
4462 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4467 $as_echo "$ac_try_echo"; } >&5
4468 (eval "$ac_try") 2>&5
4470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4471 test $ac_status = 0; };
4476 # cc exists but doesn't like -o.
4477 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4482 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4484 rm -f core conftest*
4487 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4489 $as_echo "yes" >&6; }
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492 $as_echo "no" >&6; }
4494 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4499 ac_cpp='$CPP $CPPFLAGS'
4500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4504 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4505 # On Suns, sometimes $CPP names a directory.
4506 if test -n "$CPP" && test -d "$CPP"; then
4509 if test -z "$CPP"; then
4510 if test "${ac_cv_prog_CPP+set}" = set; then :
4511 $as_echo_n "(cached) " >&6
4513 # Double quotes because CPP needs to be expanded
4514 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4517 for ac_c_preproc_warn_flag in '' yes
4519 # Use a header file that comes with gcc, so configuring glibc
4520 # with a fresh cross-compiler works.
4521 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4522 # <limits.h> exists even on freestanding compilers.
4523 # On the NeXT, cc -E runs the code through the compiler's parser,
4524 # not just through cpp. "Syntax error" is here to catch this case.
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4528 # include <limits.h>
4530 # include <assert.h>
4534 if ac_fn_c_try_cpp "$LINENO"; then :
4537 # Broken: fails on valid input.
4540 rm -f conftest.err conftest.$ac_ext
4542 # OK, works on sane cases. Now check whether nonexistent headers
4543 # can be detected and how.
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4546 #include <ac_nonexistent.h>
4548 if ac_fn_c_try_cpp "$LINENO"; then :
4549 # Broken: success on invalid input.
4552 # Passes both tests.
4556 rm -f conftest.err conftest.$ac_ext
4559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4560 rm -f conftest.err conftest.$ac_ext
4561 if $ac_preproc_ok; then :
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4574 $as_echo "$CPP" >&6; }
4576 for ac_c_preproc_warn_flag in '' yes
4578 # Use a header file that comes with gcc, so configuring glibc
4579 # with a fresh cross-compiler works.
4580 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4581 # <limits.h> exists even on freestanding compilers.
4582 # On the NeXT, cc -E runs the code through the compiler's parser,
4583 # not just through cpp. "Syntax error" is here to catch this case.
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4587 # include <limits.h>
4589 # include <assert.h>
4593 if ac_fn_c_try_cpp "$LINENO"; then :
4596 # Broken: fails on valid input.
4599 rm -f conftest.err conftest.$ac_ext
4601 # OK, works on sane cases. Now check whether nonexistent headers
4602 # can be detected and how.
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4605 #include <ac_nonexistent.h>
4607 if ac_fn_c_try_cpp "$LINENO"; then :
4608 # Broken: success on invalid input.
4611 # Passes both tests.
4615 rm -f conftest.err conftest.$ac_ext
4618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4619 rm -f conftest.err conftest.$ac_ext
4620 if $ac_preproc_ok; then :
4623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4625 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4626 See \`config.log' for more details." "$LINENO" 5; }
4630 ac_cpp='$CPP $CPPFLAGS'
4631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4637 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4638 if test "${ac_cv_path_GREP+set}" = set; then :
4639 $as_echo_n "(cached) " >&6
4641 if test -z "$GREP"; then
4642 ac_path_GREP_found=false
4643 # Loop through the user's path and test for each of PROGNAME-LIST
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4648 test -z "$as_dir" && as_dir=.
4649 for ac_prog in grep ggrep; do
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4652 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4653 # Check for GNU ac_path_GREP and select it if it is found.
4654 # Check for GNU $ac_path_GREP
4655 case `"$ac_path_GREP" --version 2>&1` in
4657 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4660 $as_echo_n 0123456789 >"conftest.in"
4663 cat "conftest.in" "conftest.in" >"conftest.tmp"
4664 mv "conftest.tmp" "conftest.in"
4665 cp "conftest.in" "conftest.nl"
4666 $as_echo 'GREP' >> "conftest.nl"
4667 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4668 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4669 as_fn_arith $ac_count + 1 && ac_count=$as_val
4670 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4671 # Best one so far, save it but keep looking for a better one
4672 ac_cv_path_GREP="$ac_path_GREP"
4673 ac_path_GREP_max=$ac_count
4675 # 10*(2^10) chars as input seems more than enough
4676 test $ac_count -gt 10 && break
4678 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4681 $ac_path_GREP_found && break 3
4686 if test -z "$ac_cv_path_GREP"; then
4687 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4690 ac_cv_path_GREP=$GREP
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4695 $as_echo "$ac_cv_path_GREP" >&6; }
4696 GREP="$ac_cv_path_GREP"
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4700 $as_echo_n "checking for egrep... " >&6; }
4701 if test "${ac_cv_path_EGREP+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4704 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4705 then ac_cv_path_EGREP="$GREP -E"
4707 if test -z "$EGREP"; then
4708 ac_path_EGREP_found=false
4709 # Loop through the user's path and test for each of PROGNAME-LIST
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4714 test -z "$as_dir" && as_dir=.
4715 for ac_prog in egrep; do
4716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4718 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4719 # Check for GNU ac_path_EGREP and select it if it is found.
4720 # Check for GNU $ac_path_EGREP
4721 case `"$ac_path_EGREP" --version 2>&1` in
4723 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4726 $as_echo_n 0123456789 >"conftest.in"
4729 cat "conftest.in" "conftest.in" >"conftest.tmp"
4730 mv "conftest.tmp" "conftest.in"
4731 cp "conftest.in" "conftest.nl"
4732 $as_echo 'EGREP' >> "conftest.nl"
4733 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4734 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4735 as_fn_arith $ac_count + 1 && ac_count=$as_val
4736 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4737 # Best one so far, save it but keep looking for a better one
4738 ac_cv_path_EGREP="$ac_path_EGREP"
4739 ac_path_EGREP_max=$ac_count
4741 # 10*(2^10) chars as input seems more than enough
4742 test $ac_count -gt 10 && break
4744 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4747 $ac_path_EGREP_found && break 3
4752 if test -z "$ac_cv_path_EGREP"; then
4753 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4756 ac_cv_path_EGREP=$EGREP
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4762 $as_echo "$ac_cv_path_EGREP" >&6; }
4763 EGREP="$ac_cv_path_EGREP"
4766 if test $ac_cv_c_compiler_gnu = yes; then
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4768 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4769 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
4772 ac_pattern="Autoconf.*'x'"
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4779 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4780 ac_cv_prog_gcc_traditional=yes
4782 ac_cv_prog_gcc_traditional=no
4787 if test $ac_cv_prog_gcc_traditional = no; then
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4794 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4795 ac_cv_prog_gcc_traditional=yes
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4802 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4803 if test $ac_cv_prog_gcc_traditional = yes; then
4804 CC="$CC -traditional"
4808 BASECC=`basename $CC`
4810 if test "x$BASECC" = xgcc; then
4811 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4815 # Extract the first word of "$CXX", so it can be a program name with args.
4816 set dummy $CXX; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if test "${ac_cv_path_CXX+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4824 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4834 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4847 if test -n "$CXX"; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4849 $as_echo "$CXX" >&6; }
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4856 if test ! -e $CXX; then
4857 as_fn_error "Unable to find C++ compiler" "$LINENO" 5
4860 # Find a good install program. We prefer a C program (faster),
4861 # so one script is as good as another. But avoid the broken or
4862 # incompatible versions:
4863 # SysV /etc/install, /usr/sbin/install
4864 # SunOS /usr/etc/install
4865 # IRIX /sbin/install
4867 # AmigaOS /C/install, which installs bootblocks on floppy discs
4868 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4869 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4870 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4871 # OS/2's system install, which has a completely different semantic
4872 # ./install, which can be erroneously created by make from ./install.sh.
4873 # Reject install programs that cannot install multiple files.
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4875 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4876 if test -z "$INSTALL"; then
4877 if test "${ac_cv_path_install+set}" = set; then :
4878 $as_echo_n "(cached) " >&6
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 test -z "$as_dir" && as_dir=.
4885 # Account for people who put trailing slashes in PATH elements.
4886 case $as_dir/ in #((
4887 ./ | .// | /[cC]/* | \
4888 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4889 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4892 # OSF1 and SCO ODT 3.0 have their own names for install.
4893 # Don't use installbsd from OSF since it installs stuff as root
4895 for ac_prog in ginstall scoinst install; do
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4898 if test $ac_prog = install &&
4899 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4900 # AIX install. It has an incompatible calling convention.
4902 elif test $ac_prog = install &&
4903 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4904 # program-specific install script used by HP pwplus--don't use.
4907 rm -rf conftest.one conftest.two conftest.dir
4908 echo one > conftest.one
4909 echo two > conftest.two
4911 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4912 test -s conftest.one && test -s conftest.two &&
4913 test -s conftest.dir/conftest.one &&
4914 test -s conftest.dir/conftest.two
4916 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4929 rm -rf conftest.one conftest.two conftest.dir
4932 if test "${ac_cv_path_install+set}" = set; then
4933 INSTALL=$ac_cv_path_install
4935 # As a last resort, use the slow shell script. Don't cache a
4936 # value for INSTALL within a source directory, because that will
4937 # break other packages using the cache if that directory is
4938 # removed, or if the value is a relative name.
4939 INSTALL=$ac_install_sh
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4943 $as_echo "$INSTALL" >&6; }
4945 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4946 # It thinks the first close brace ends the variable substitution.
4947 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4949 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4951 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4953 # Extract the first word of "mv", so it can be a program name with args.
4954 set dummy mv; ac_word=$2
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956 $as_echo_n "checking for $ac_word... " >&6; }
4957 if test "${ac_cv_path_MV+set}" = set; then :
4958 $as_echo_n "(cached) " >&6
4962 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 test -z "$as_dir" && as_dir=.
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4972 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4985 if test -n "$MV"; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4987 $as_echo "$MV" >&6; }
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4994 # Extract the first word of "rm", so it can be a program name with args.
4995 set dummy rm; ac_word=$2
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 $as_echo_n "checking for $ac_word... " >&6; }
4998 if test "${ac_cv_path_REMOVE+set}" = set; then :
4999 $as_echo_n "(cached) " >&6
5003 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5013 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
5014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5025 REMOVE=$ac_cv_path_REMOVE
5026 if test -n "$REMOVE"; then
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5028 $as_echo "$REMOVE" >&6; }
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5035 # Extract the first word of "cp", so it can be a program name with args.
5036 set dummy cp; ac_word=$2
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038 $as_echo_n "checking for $ac_word... " >&6; }
5039 if test "${ac_cv_path_CP+set}" = set; then :
5040 $as_echo_n "(cached) " >&6
5044 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5054 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5067 if test -n "$CP"; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5069 $as_echo "$CP" >&6; }
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072 $as_echo "no" >&6; }
5076 # Extract the first word of "sed", so it can be a program name with args.
5077 set dummy sed; ac_word=$2
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079 $as_echo_n "checking for $ac_word... " >&6; }
5080 if test "${ac_cv_path_SED+set}" = set; then :
5081 $as_echo_n "(cached) " >&6
5085 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5108 if test -n "$SED"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5110 $as_echo "$SED" >&6; }
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5117 # Extract the first word of "echo", so it can be a program name with args.
5118 set dummy echo; ac_word=$2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if test "${ac_cv_path_ECHO+set}" = set; then :
5122 $as_echo_n "(cached) " >&6
5126 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5136 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5148 ECHO=$ac_cv_path_ECHO
5149 if test -n "$ECHO"; then
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5151 $as_echo "$ECHO" >&6; }
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 $as_echo "no" >&6; }
5158 # Extract the first word of "cmp", so it can be a program name with args.
5159 set dummy cmp; ac_word=$2
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if test "${ac_cv_path_CMP+set}" = set; then :
5163 $as_echo_n "(cached) " >&6
5167 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5190 if test -n "$CMP"; then
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5192 $as_echo "$CMP" >&6; }
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5199 # Extract the first word of "tbl", so it can be a program name with args.
5200 set dummy tbl; ac_word=$2
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202 $as_echo_n "checking for $ac_word... " >&6; }
5203 if test "${ac_cv_path_TBL+set}" = set; then :
5204 $as_echo_n "(cached) " >&6
5208 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5231 if test -n "$TBL"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5233 $as_echo "$TBL" >&6; }
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5240 # Extract the first word of "ar", so it can be a program name with args.
5241 set dummy ar; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if test "${ac_cv_path_AR+set}" = set; then :
5245 $as_echo_n "(cached) " >&6
5249 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5272 if test -n "$AR"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5274 $as_echo "$AR" >&6; }
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5281 # Extract the first word of "openssl", so it can be a program name with args.
5282 set dummy openssl; ac_word=$2
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if test "${ac_cv_path_OPENSSL+set}" = set; then :
5286 $as_echo_n "(cached) " >&6
5290 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5300 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5312 OPENSSL=$ac_cv_path_OPENSSL
5313 if test -n "$OPENSSL"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5315 $as_echo "$OPENSSL" >&6; }
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5322 # Extract the first word of "mtx", so it can be a program name with args.
5323 set dummy mtx; ac_word=$2
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5325 $as_echo_n "checking for $ac_word... " >&6; }
5326 if test "${ac_cv_path_MTX+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5331 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5349 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5354 if test -n "$MTX"; then
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5356 $as_echo "$MTX" >&6; }
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5363 # Extract the first word of "dd", so it can be a program name with args.
5364 set dummy dd; ac_word=$2
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if test "${ac_cv_path_DD+set}" = set; then :
5368 $as_echo_n "(cached) " >&6
5372 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5382 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5390 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5395 if test -n "$DD"; then
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5397 $as_echo "$DD" >&6; }
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400 $as_echo "no" >&6; }
5404 # Extract the first word of "mkisofs", so it can be a program name with args.
5405 set dummy mkisofs; ac_word=$2
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5407 $as_echo_n "checking for $ac_word... " >&6; }
5408 if test "${ac_cv_path_MKISOFS+set}" = set; then :
5409 $as_echo_n "(cached) " >&6
5413 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 test -z "$as_dir" && as_dir=.
5421 for ac_exec_ext in '' $ac_executable_extensions; do
5422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5423 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5435 MKISOFS=$ac_cv_path_MKISOFS
5436 if test -n "$MKISOFS"; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5438 $as_echo "$MKISOFS" >&6; }
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5445 # Extract the first word of "python", so it can be a program name with args.
5446 set dummy python; ac_word=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if test "${ac_cv_path_PYTHON+set}" = set; then :
5450 $as_echo_n "(cached) " >&6
5454 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5476 PYTHON=$ac_cv_path_PYTHON
5477 if test -n "$PYTHON"; then
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5479 $as_echo "$PYTHON" >&6; }
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482 $as_echo "no" >&6; }
5486 # Extract the first word of "growisofs", so it can be a program name with args.
5487 set dummy growisofs; ac_word=$2
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if test "${ac_cv_path_GROWISOFS+set}" = set; then :
5491 $as_echo_n "(cached) " >&6
5495 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 test -z "$as_dir" && as_dir=.
5503 for ac_exec_ext in '' $ac_executable_extensions; do
5504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5505 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5517 GROWISOFS=$ac_cv_path_GROWISOFS
5518 if test -n "$GROWISOFS"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5520 $as_echo "$GROWISOFS" >&6; }
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5527 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5528 set dummy dvd+rw-mediainfo; ac_word=$2
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then :
5532 $as_echo_n "(cached) " >&6
5534 case $DVDRWMEDIAINFO in
5536 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 test -z "$as_dir" && as_dir=.
5544 for ac_exec_ext in '' $ac_executable_extensions; do
5545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5546 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5558 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5559 if test -n "$DVDRWMEDIAINFO"; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5561 $as_echo "$DVDRWMEDIAINFO" >&6; }
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5568 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5569 set dummy dvd+rw-format; ac_word=$2
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571 $as_echo_n "checking for $ac_word... " >&6; }
5572 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then :
5573 $as_echo_n "(cached) " >&6
5575 case $DVDRWFORMAT in
5577 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5587 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5599 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5600 if test -n "$DVDRWFORMAT"; then
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5602 $as_echo "$DVDRWFORMAT" >&6; }
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605 $as_echo "no" >&6; }
5609 # Extract the first word of "pkg-config", so it can be a program name with args.
5610 set dummy pkg-config; ac_word=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
5614 $as_echo_n "(cached) " >&6
5618 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5628 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5640 PKGCONFIG=$ac_cv_path_PKGCONFIG
5641 if test -n "$PKGCONFIG"; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5643 $as_echo "$PKGCONFIG" >&6; }
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646 $as_echo "no" >&6; }
5650 # Extract the first word of "qmake", so it can be a program name with args.
5651 set dummy qmake; ac_word=$2
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653 $as_echo_n "checking for $ac_word... " >&6; }
5654 if test "${ac_cv_path_QMAKE+set}" = set; then :
5655 $as_echo_n "(cached) " >&6
5659 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666 test -z "$as_dir" && as_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5669 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5681 QMAKE=$ac_cv_path_QMAKE
5682 if test -n "$QMAKE"; then
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5684 $as_echo "$QMAKE" >&6; }
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687 $as_echo "no" >&6; }
5691 # Extract the first word of "gmake", so it can be a program name with args.
5692 set dummy gmake; ac_word=$2
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5694 $as_echo_n "checking for $ac_word... " >&6; }
5695 if test "${ac_cv_path_GMAKE+set}" = set; then :
5696 $as_echo_n "(cached) " >&6
5700 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5710 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5718 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5722 GMAKE=$ac_cv_path_GMAKE
5723 if test -n "$GMAKE"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5725 $as_echo "$GMAKE" >&6; }
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5733 if test "x$WXCONFIG" = x; then
5736 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5737 set dummy ${WXCONFIG}; ac_word=$2
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739 $as_echo_n "checking for $ac_word... " >&6; }
5740 if test "${ac_cv_path_WXCONFIG+set}" = set; then :
5741 $as_echo_n "(cached) " >&6
5745 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5755 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5763 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5767 WXCONFIG=$ac_cv_path_WXCONFIG
5768 if test -n "$WXCONFIG"; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5770 $as_echo "$WXCONFIG" >&6; }
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5778 # Extract the first word of "cdrecord", so it can be a program name with args.
5779 set dummy cdrecord; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if test "${ac_cv_path_CDRECORD+set}" = set; then :
5783 $as_echo_n "(cached) " >&6
5787 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 test -z "$as_dir" && as_dir=.
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5797 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5809 CDRECORD=$ac_cv_path_CDRECORD
5810 if test -n "$CDRECORD"; then
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5812 $as_echo "$CDRECORD" >&6; }
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815 $as_echo "no" >&6; }
5819 # Extract the first word of "pidof", so it can be a program name with args.
5820 set dummy pidof; ac_word=$2
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822 $as_echo_n "checking for $ac_word... " >&6; }
5823 if test "${ac_cv_path_PIDOF+set}" = set; then :
5824 $as_echo_n "(cached) " >&6
5828 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 test -z "$as_dir" && as_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5838 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5850 PIDOF=$ac_cv_path_PIDOF
5851 if test -n "$PIDOF"; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5853 $as_echo "$PIDOF" >&6; }
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856 $as_echo "no" >&6; }
5860 for ac_prog in gawk mawk nawk awk
5862 # Extract the first word of "$ac_prog", so it can be a program name with args.
5863 set dummy $ac_prog; ac_word=$2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865 $as_echo_n "checking for $ac_word... " >&6; }
5866 if test "${ac_cv_prog_AWK+set}" = set; then :
5867 $as_echo_n "(cached) " >&6
5869 if test -n "$AWK"; then
5870 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_prog_AWK="$ac_prog"
5880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 if test -n "$AWK"; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5892 $as_echo "$AWK" >&6; }
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5899 test -n "$AWK" && break
5902 # Some AWK programs fail, so test it and warn the user
5903 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5904 { if ((prog == $2) || (("(" prog ")") == $2) ||
5905 (("" prog "") == $2) ||
5906 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5908 as_fn_error "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5909 The regex engine of $AWK is too broken to be used you
5910 might want to install GNU AWK.
5911 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5914 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5915 set dummy $THE_AWK; ac_word=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if test "${ac_cv_path_AWK+set}" = set; then :
5919 $as_echo_n "(cached) " >&6
5923 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5933 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5946 if test -n "$AWK"; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5948 $as_echo "$AWK" >&6; }
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951 $as_echo "no" >&6; }
5957 test -n "$ARFLAG" || ARFLAGS="cr"
5969 # Check whether --enable-libtool was given.
5970 if test "${enable_libtool+set}" = set; then :
5971 enableval=$enable_libtool;
5972 if test x$enableval = xno; then
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5982 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5987 macro_version='2.2.6'
5988 macro_revision='1.3012'
6002 ltmain="$ac_aux_dir/ltmain.sh"
6004 # Make sure we can run config.sub.
6005 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6006 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6009 $as_echo_n "checking build system type... " >&6; }
6010 if test "${ac_cv_build+set}" = set; then :
6011 $as_echo_n "(cached) " >&6
6013 ac_build_alias=$build_alias
6014 test "x$ac_build_alias" = x &&
6015 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6016 test "x$ac_build_alias" = x &&
6017 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6018 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6019 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6023 $as_echo "$ac_cv_build" >&6; }
6024 case $ac_cv_build in
6026 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6029 ac_save_IFS=$IFS; IFS='-'
6035 # Remember, the first character of IFS is used to create $*,
6036 # except with old shells:
6039 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6043 $as_echo_n "checking host system type... " >&6; }
6044 if test "${ac_cv_host+set}" = set; then :
6045 $as_echo_n "(cached) " >&6
6047 if test "x$host_alias" = x; then
6048 ac_cv_host=$ac_cv_build
6050 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6051 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6056 $as_echo "$ac_cv_host" >&6; }
6059 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6062 ac_save_IFS=$IFS; IFS='-'
6068 # Remember, the first character of IFS is used to create $*,
6069 # except with old shells:
6072 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6076 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6077 if test "${ac_cv_path_SED+set}" = set; then :
6078 $as_echo_n "(cached) " >&6
6080 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6081 for ac_i in 1 2 3 4 5 6 7; do
6082 ac_script="$ac_script$as_nl$ac_script"
6084 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6085 { ac_script=; unset ac_script;}
6086 if test -z "$SED"; then
6087 ac_path_SED_found=false
6088 # Loop through the user's path and test for each of PROGNAME-LIST
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 test -z "$as_dir" && as_dir=.
6094 for ac_prog in sed gsed; do
6095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6097 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6098 # Check for GNU ac_path_SED and select it if it is found.
6099 # Check for GNU $ac_path_SED
6100 case `"$ac_path_SED" --version 2>&1` in
6102 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6105 $as_echo_n 0123456789 >"conftest.in"
6108 cat "conftest.in" "conftest.in" >"conftest.tmp"
6109 mv "conftest.tmp" "conftest.in"
6110 cp "conftest.in" "conftest.nl"
6111 $as_echo '' >> "conftest.nl"
6112 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6113 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6114 as_fn_arith $ac_count + 1 && ac_count=$as_val
6115 if test $ac_count -gt ${ac_path_SED_max-0}; then
6116 # Best one so far, save it but keep looking for a better one
6117 ac_cv_path_SED="$ac_path_SED"
6118 ac_path_SED_max=$ac_count
6120 # 10*(2^10) chars as input seems more than enough
6121 test $ac_count -gt 10 && break
6123 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6126 $ac_path_SED_found && break 3
6131 if test -z "$ac_cv_path_SED"; then
6132 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6140 $as_echo "$ac_cv_path_SED" >&6; }
6141 SED="$ac_cv_path_SED"
6144 test -z "$SED" && SED=sed
6145 Xsed="$SED -e 1s/^X//"
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6158 $as_echo_n "checking for fgrep... " >&6; }
6159 if test "${ac_cv_path_FGREP+set}" = set; then :
6160 $as_echo_n "(cached) " >&6
6162 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6163 then ac_cv_path_FGREP="$GREP -F"
6165 if test -z "$FGREP"; then
6166 ac_path_FGREP_found=false
6167 # Loop through the user's path and test for each of PROGNAME-LIST
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6172 test -z "$as_dir" && as_dir=.
6173 for ac_prog in fgrep; do
6174 for ac_exec_ext in '' $ac_executable_extensions; do
6175 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6176 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6177 # Check for GNU ac_path_FGREP and select it if it is found.
6178 # Check for GNU $ac_path_FGREP
6179 case `"$ac_path_FGREP" --version 2>&1` in
6181 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6184 $as_echo_n 0123456789 >"conftest.in"
6187 cat "conftest.in" "conftest.in" >"conftest.tmp"
6188 mv "conftest.tmp" "conftest.in"
6189 cp "conftest.in" "conftest.nl"
6190 $as_echo 'FGREP' >> "conftest.nl"
6191 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6192 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6193 as_fn_arith $ac_count + 1 && ac_count=$as_val
6194 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6195 # Best one so far, save it but keep looking for a better one
6196 ac_cv_path_FGREP="$ac_path_FGREP"
6197 ac_path_FGREP_max=$ac_count
6199 # 10*(2^10) chars as input seems more than enough
6200 test $ac_count -gt 10 && break
6202 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6205 $ac_path_FGREP_found && break 3
6210 if test -z "$ac_cv_path_FGREP"; then
6211 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6214 ac_cv_path_FGREP=$FGREP
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6220 $as_echo "$ac_cv_path_FGREP" >&6; }
6221 FGREP="$ac_cv_path_FGREP"
6224 test -z "$GREP" && GREP=grep
6244 # Check whether --with-gnu-ld was given.
6245 if test "${with_gnu_ld+set}" = set; then :
6246 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6252 if test "$GCC" = yes; then
6253 # Check if gcc -print-prog-name=ld gives a path.
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6255 $as_echo_n "checking for ld used by $CC... " >&6; }
6258 # gcc leaves a trailing carriage return which upsets mingw
6259 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6261 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6264 # Accept absolute paths.
6266 re_direlt='/[^/][^/]*/\.\./'
6267 # Canonicalize the pathname of ld
6268 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6269 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6270 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6272 test -z "$LD" && LD="$ac_prog"
6275 # If it fails, then pretend we aren't using GCC.
6279 # If it is relative, then search for the first ld in PATH.
6283 elif test "$with_gnu_ld" = yes; then
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6285 $as_echo_n "checking for GNU ld... " >&6; }
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6288 $as_echo_n "checking for non-GNU ld... " >&6; }
6290 if test "${lt_cv_path_LD+set}" = set; then :
6291 $as_echo_n "(cached) " >&6
6293 if test -z "$LD"; then
6294 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6295 for ac_dir in $PATH; do
6297 test -z "$ac_dir" && ac_dir=.
6298 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6299 lt_cv_path_LD="$ac_dir/$ac_prog"
6300 # Check to see if the program is GNU ld. I'd rather use --version,
6301 # but apparently some variants of GNU ld only accept -v.
6302 # Break only if it was the GNU/non-GNU ld that we prefer.
6303 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6304 *GNU* | *'with BFD'*)
6305 test "$with_gnu_ld" != no && break
6308 test "$with_gnu_ld" != yes && break
6315 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6320 if test -n "$LD"; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6322 $as_echo "$LD" >&6; }
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 $as_echo "no" >&6; }
6327 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6329 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6330 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6331 $as_echo_n "(cached) " >&6
6333 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6334 case `$LD -v 2>&1 </dev/null` in
6335 *GNU* | *'with BFD'*)
6336 lt_cv_prog_gnu_ld=yes
6339 lt_cv_prog_gnu_ld=no
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6344 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6345 with_gnu_ld=$lt_cv_prog_gnu_ld
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6356 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6357 if test "${lt_cv_path_NM+set}" = set; then :
6358 $as_echo_n "(cached) " >&6
6360 if test -n "$NM"; then
6361 # Let the user override the test.
6364 lt_nm_to_check="${ac_tool_prefix}nm"
6365 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6366 lt_nm_to_check="$lt_nm_to_check nm"
6368 for lt_tmp_nm in $lt_nm_to_check; do
6369 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6370 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6372 test -z "$ac_dir" && ac_dir=.
6373 tmp_nm="$ac_dir/$lt_tmp_nm"
6374 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6375 # Check to see if the nm accepts a BSD-compat flag.
6376 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6377 # nm: unknown option "B" ignored
6378 # Tru64's nm complains that /dev/null is an invalid object file
6379 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6380 */dev/null* | *'Invalid file or object type'*)
6381 lt_cv_path_NM="$tmp_nm -B"
6385 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6387 lt_cv_path_NM="$tmp_nm -p"
6391 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6392 continue # so that we can try to find one that supports BSD flags
6401 : ${lt_cv_path_NM=no}
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6405 $as_echo "$lt_cv_path_NM" >&6; }
6406 if test "$lt_cv_path_NM" != "no"; then
6409 # Didn't find any BSD compatible name lister, look for dumpbin.
6410 if test -n "$ac_tool_prefix"; then
6411 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6413 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6414 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6418 $as_echo_n "(cached) " >&6
6420 if test -n "$DUMPBIN"; then
6421 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 DUMPBIN=$ac_cv_prog_DUMPBIN
6441 if test -n "$DUMPBIN"; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6443 $as_echo "$DUMPBIN" >&6; }
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 $as_echo "no" >&6; }
6450 test -n "$DUMPBIN" && break
6453 if test -z "$DUMPBIN"; then
6454 ac_ct_DUMPBIN=$DUMPBIN
6455 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6457 # Extract the first word of "$ac_prog", so it can be a program name with args.
6458 set dummy $ac_prog; ac_word=$2
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460 $as_echo_n "checking for $ac_word... " >&6; }
6461 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6462 $as_echo_n "(cached) " >&6
6464 if test -n "$ac_ct_DUMPBIN"; then
6465 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6485 if test -n "$ac_ct_DUMPBIN"; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6487 $as_echo "$ac_ct_DUMPBIN" >&6; }
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6494 test -n "$ac_ct_DUMPBIN" && break
6497 if test "x$ac_ct_DUMPBIN" = x; then
6500 case $cross_compiling:$ac_tool_warned in
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6504 ac_tool_warned=yes ;;
6506 DUMPBIN=$ac_ct_DUMPBIN
6511 if test "$DUMPBIN" != ":"; then
6515 test -z "$NM" && NM=nm
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6523 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6524 if test "${lt_cv_nm_interface+set}" = set; then :
6525 $as_echo_n "(cached) " >&6
6527 lt_cv_nm_interface="BSD nm"
6528 echo "int some_variable = 0;" > conftest.$ac_ext
6529 (eval echo "\"\$as_me:6529: $ac_compile\"" >&5)
6530 (eval "$ac_compile" 2>conftest.err)
6531 cat conftest.err >&5
6532 (eval echo "\"\$as_me:6532: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6533 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6534 cat conftest.err >&5
6535 (eval echo "\"\$as_me:6535: output\"" >&5)
6536 cat conftest.out >&5
6537 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6538 lt_cv_nm_interface="MS dumpbin"
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6543 $as_echo "$lt_cv_nm_interface" >&6; }
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6546 $as_echo_n "checking whether ln -s works... " >&6; }
6548 if test "$LN_S" = "ln -s"; then
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6550 $as_echo "yes" >&6; }
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6553 $as_echo "no, using $LN_S" >&6; }
6556 # find the maximum length of command line arguments
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6558 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6559 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6567 # On DJGPP, this test can blow up pretty badly due to problems in libc
6568 # (any single argument exceeding 2000 bytes causes a buffer overrun
6569 # during glob expansion). Even if it were fixed, the result of this
6570 # check would be larger than it should be.
6571 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6575 # Under GNU Hurd, this test is not required because there is
6576 # no limit to the length of command line arguments.
6577 # Libtool will interpret -1 as no limit whatsoever
6578 lt_cv_sys_max_cmd_len=-1;
6581 cygwin* | mingw* | cegcc*)
6582 # On Win9x/ME, this test blows up -- it succeeds, but takes
6583 # about 5 minutes as the teststring grows exponentially.
6584 # Worse, since 9x/ME are not pre-emptively multitasking,
6585 # you end up with a "frozen" computer, even though with patience
6586 # the test eventually succeeds (with a max line length of 256k).
6587 # Instead, let's just punt: use the minimum linelength reported by
6588 # all of the supported platforms: 8192 (on NT/2K/XP).
6589 lt_cv_sys_max_cmd_len=8192;
6593 # On AmigaOS with pdksh, this test takes hours, literally.
6594 # So we just punt and use a minimum line length of 8192.
6595 lt_cv_sys_max_cmd_len=8192;
6598 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6599 # This has been around since 386BSD, at least. Likely further.
6600 if test -x /sbin/sysctl; then
6601 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6602 elif test -x /usr/sbin/sysctl; then
6603 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6605 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6607 # And add a safety zone
6608 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6609 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6613 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6614 lt_cv_sys_max_cmd_len=196608
6618 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6619 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6620 # nice to cause kernel panics so lets avoid the loop below.
6621 # First set a reasonable default.
6622 lt_cv_sys_max_cmd_len=16384
6624 if test -x /sbin/sysconfig; then
6625 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6626 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6631 lt_cv_sys_max_cmd_len=102400
6633 sysv5* | sco5v6* | sysv4.2uw2*)
6634 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6635 if test -n "$kargmax"; then
6636 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6638 lt_cv_sys_max_cmd_len=32768
6642 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6643 if test -n "$lt_cv_sys_max_cmd_len"; then
6644 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6645 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6647 # Make teststring a little bigger before we do anything with it.
6648 # a 1K string should be a reasonable start.
6649 for i in 1 2 3 4 5 6 7 8 ; do
6650 teststring=$teststring$teststring
6652 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6653 # If test is not a shell built-in, we'll probably end up computing a
6654 # maximum length that is only half of the actual maximum length, but
6656 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6657 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6658 test $i != 17 # 1/2 MB should be enough
6661 teststring=$teststring$teststring
6663 # Only check the string length outside the loop.
6664 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6666 # Add a significant safety factor because C++ compilers can tack on
6667 # massive amounts of additional arguments before passing them to the
6668 # linker. It appears as though 1/2 is a usable value.
6669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6676 if test -n $lt_cv_sys_max_cmd_len ; then
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6678 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6681 $as_echo "none" >&6; }
6683 max_cmd_len=$lt_cv_sys_max_cmd_len
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6695 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6696 # Try some XSI features
6699 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6701 && eval 'test $(( 1 + 1 )) -eq 2 \
6702 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6705 $as_echo "$xsi_shell" >&6; }
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6709 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6711 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6713 && lt_shell_append=yes
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6715 $as_echo "$lt_shell_append" >&6; }
6718 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6728 # test EBCDIC or ASCII
6729 case `echo X|tr X '\101'` in
6730 A) # ASCII based system
6731 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6732 lt_SP2NL='tr \040 \012'
6733 lt_NL2SP='tr \015\012 \040\040'
6735 *) # EBCDIC based system
6736 lt_SP2NL='tr \100 \n'
6737 lt_NL2SP='tr \r\n \100\100'
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6750 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6751 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6752 $as_echo_n "(cached) " >&6
6754 lt_cv_ld_reload_flag='-r'
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6757 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6758 reload_flag=$lt_cv_ld_reload_flag
6759 case $reload_flag in
6761 *) reload_flag=" $reload_flag" ;;
6763 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6766 if test "$GCC" = yes; then
6767 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6769 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6782 if test -n "$ac_tool_prefix"; then
6783 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6784 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6786 $as_echo_n "checking for $ac_word... " >&6; }
6787 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6788 $as_echo_n "(cached) " >&6
6790 if test -n "$OBJDUMP"; then
6791 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 test -z "$as_dir" && as_dir=.
6798 for ac_exec_ext in '' $ac_executable_extensions; do
6799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6800 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 OBJDUMP=$ac_cv_prog_OBJDUMP
6811 if test -n "$OBJDUMP"; then
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6813 $as_echo "$OBJDUMP" >&6; }
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6816 $as_echo "no" >&6; }
6821 if test -z "$ac_cv_prog_OBJDUMP"; then
6822 ac_ct_OBJDUMP=$OBJDUMP
6823 # Extract the first word of "objdump", so it can be a program name with args.
6824 set dummy objdump; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6828 $as_echo_n "(cached) " >&6
6830 if test -n "$ac_ct_OBJDUMP"; then
6831 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 test -z "$as_dir" && as_dir=.
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6851 if test -n "$ac_ct_OBJDUMP"; then
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6853 $as_echo "$ac_ct_OBJDUMP" >&6; }
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 $as_echo "no" >&6; }
6859 if test "x$ac_ct_OBJDUMP" = x; then
6862 case $cross_compiling:$ac_tool_warned in
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6866 ac_tool_warned=yes ;;
6868 OBJDUMP=$ac_ct_OBJDUMP
6871 OBJDUMP="$ac_cv_prog_OBJDUMP"
6874 test -z "$OBJDUMP" && OBJDUMP=objdump
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6885 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6886 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6887 $as_echo_n "(cached) " >&6
6889 lt_cv_file_magic_cmd='$MAGIC_CMD'
6890 lt_cv_file_magic_test_file=
6891 lt_cv_deplibs_check_method='unknown'
6892 # Need to set the preceding variable on all platforms that support
6893 # interlibrary dependencies.
6894 # 'none' -- dependencies not supported.
6895 # `unknown' -- same as none, but documents that we really don't know.
6896 # 'pass_all' -- all dependencies passed with no checks.
6897 # 'test_compile' -- check by making test program.
6898 # 'file_magic [[regex]]' -- check by looking for files in library path
6899 # which responds to the $file_magic_cmd with a given extended regex.
6900 # If you have `file' or equivalent on your system and you're not sure
6901 # whether `pass_all' will *always* work, you probably want this one.
6905 lt_cv_deplibs_check_method=pass_all
6909 lt_cv_deplibs_check_method=pass_all
6913 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6914 lt_cv_file_magic_cmd='/usr/bin/file -L'
6915 lt_cv_file_magic_test_file=/shlib/libc.so
6919 # func_win32_libid is a shell function defined in ltmain.sh
6920 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6921 lt_cv_file_magic_cmd='func_win32_libid'
6925 # Base MSYS/MinGW do not provide the 'file' command needed by
6926 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6927 # unless we find 'file', for example because we are cross-compiling.
6928 if ( file / ) >/dev/null 2>&1; then
6929 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6930 lt_cv_file_magic_cmd='func_win32_libid'
6932 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6933 lt_cv_file_magic_cmd='$OBJDUMP -f'
6938 # use the weaker test based on 'objdump'. See mingw*.
6939 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6940 lt_cv_file_magic_cmd='$OBJDUMP -f'
6943 darwin* | rhapsody*)
6944 lt_cv_deplibs_check_method=pass_all
6947 freebsd* | dragonfly*)
6948 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6951 # Not sure whether the presence of OpenBSD here was a mistake.
6952 # Let's accept both of them until this is cleared up.
6953 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6954 lt_cv_file_magic_cmd=/usr/bin/file
6955 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6959 lt_cv_deplibs_check_method=pass_all
6964 lt_cv_deplibs_check_method=pass_all
6967 hpux10.20* | hpux11*)
6968 lt_cv_file_magic_cmd=/usr/bin/file
6971 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6972 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6975 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]'
6976 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6979 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6980 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6986 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6987 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6990 irix5* | irix6* | nonstopux*)
6992 *-32|*"-32 ") libmagic=32-bit;;
6993 *-n32|*"-n32 ") libmagic=N32;;
6994 *-64|*"-64 ") libmagic=64-bit;;
6995 *) libmagic=never-match;;
6997 lt_cv_deplibs_check_method=pass_all
7000 # This must be Linux ELF.
7001 linux* | k*bsd*-gnu)
7002 lt_cv_deplibs_check_method=pass_all
7006 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7015 lt_cv_file_magic_cmd=/usr/bin/file
7016 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7020 lt_cv_deplibs_check_method=pass_all
7024 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7031 osf3* | osf4* | osf5*)
7032 lt_cv_deplibs_check_method=pass_all
7036 lt_cv_deplibs_check_method=pass_all
7040 lt_cv_deplibs_check_method=pass_all
7043 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7044 lt_cv_deplibs_check_method=pass_all
7048 case $host_vendor in
7050 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]'
7051 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7054 lt_cv_deplibs_check_method=pass_all
7057 lt_cv_file_magic_cmd='/bin/file'
7058 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7061 lt_cv_file_magic_cmd='/bin/file'
7062 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7063 lt_cv_file_magic_test_file=/lib/libc.so
7066 lt_cv_deplibs_check_method=pass_all
7069 lt_cv_deplibs_check_method=pass_all
7075 lt_cv_deplibs_check_method=pass_all
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7081 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7082 file_magic_cmd=$lt_cv_file_magic_cmd
7083 deplibs_check_method=$lt_cv_deplibs_check_method
7084 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7097 if test -n "$ac_tool_prefix"; then
7098 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7099 set dummy ${ac_tool_prefix}ar; ac_word=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if test "${ac_cv_prog_AR+set}" = set; then :
7103 $as_echo_n "(cached) " >&6
7105 if test -n "$AR"; then
7106 ac_cv_prog_AR="$AR" # Let the user override the test.
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7115 ac_cv_prog_AR="${ac_tool_prefix}ar"
7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 if test -n "$AR"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7128 $as_echo "$AR" >&6; }
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7136 if test -z "$ac_cv_prog_AR"; then
7138 # Extract the first word of "ar", so it can be a program name with args.
7139 set dummy ar; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7143 $as_echo_n "(cached) " >&6
7145 if test -n "$ac_ct_AR"; then
7146 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_prog_ac_ct_AR="ar"
7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7166 if test -n "$ac_ct_AR"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7168 $as_echo "$ac_ct_AR" >&6; }
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7174 if test "x$ac_ct_AR" = x; then
7177 case $cross_compiling:$ac_tool_warned in
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7181 ac_tool_warned=yes ;;
7189 test -z "$AR" && AR=ar
7190 test -z "$AR_FLAGS" && AR_FLAGS=cru
7202 if test -n "$ac_tool_prefix"; then
7203 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7204 set dummy ${ac_tool_prefix}strip; ac_word=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206 $as_echo_n "checking for $ac_word... " >&6; }
7207 if test "${ac_cv_prog_STRIP+set}" = set; then :
7208 $as_echo_n "(cached) " >&6
7210 if test -n "$STRIP"; then
7211 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7220 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 STRIP=$ac_cv_prog_STRIP
7231 if test -n "$STRIP"; then
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7233 $as_echo "$STRIP" >&6; }
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 $as_echo "no" >&6; }
7241 if test -z "$ac_cv_prog_STRIP"; then
7243 # Extract the first word of "strip", so it can be a program name with args.
7244 set dummy strip; ac_word=$2
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246 $as_echo_n "checking for $ac_word... " >&6; }
7247 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7248 $as_echo_n "(cached) " >&6
7250 if test -n "$ac_ct_STRIP"; then
7251 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_prog_ac_ct_STRIP="strip"
7261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7271 if test -n "$ac_ct_STRIP"; then
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7273 $as_echo "$ac_ct_STRIP" >&6; }
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 $as_echo "no" >&6; }
7279 if test "x$ac_ct_STRIP" = x; then
7282 case $cross_compiling:$ac_tool_warned in
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7286 ac_tool_warned=yes ;;
7291 STRIP="$ac_cv_prog_STRIP"
7294 test -z "$STRIP" && STRIP=:
7301 if test -n "$ac_tool_prefix"; then
7302 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7303 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7307 $as_echo_n "(cached) " >&6
7309 if test -n "$RANLIB"; then
7310 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7319 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 RANLIB=$ac_cv_prog_RANLIB
7330 if test -n "$RANLIB"; then
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7332 $as_echo "$RANLIB" >&6; }
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }
7340 if test -z "$ac_cv_prog_RANLIB"; then
7341 ac_ct_RANLIB=$RANLIB
7342 # Extract the first word of "ranlib", so it can be a program name with args.
7343 set dummy ranlib; ac_word=$2
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345 $as_echo_n "checking for $ac_word... " >&6; }
7346 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7347 $as_echo_n "(cached) " >&6
7349 if test -n "$ac_ct_RANLIB"; then
7350 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7359 ac_cv_prog_ac_ct_RANLIB="ranlib"
7360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7370 if test -n "$ac_ct_RANLIB"; then
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7372 $as_echo "$ac_ct_RANLIB" >&6; }
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7378 if test "x$ac_ct_RANLIB" = x; then
7381 case $cross_compiling:$ac_tool_warned in
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7385 ac_tool_warned=yes ;;
7387 RANLIB=$ac_ct_RANLIB
7390 RANLIB="$ac_cv_prog_RANLIB"
7393 test -z "$RANLIB" && RANLIB=:
7400 # Determine commands to create old-style static archives.
7401 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7402 old_postinstall_cmds='chmod 644 $oldlib'
7403 old_postuninstall_cmds=
7405 if test -n "$RANLIB"; then
7408 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7411 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7414 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7450 # If no C compiler was specified, use CC.
7453 # If no C compiler flags were specified, use CFLAGS.
7454 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7456 # Allow CC to be a program name with arguments.
7460 # Check for command to grab the raw symbol name followed by C symbol from nm.
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7462 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7463 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7464 $as_echo_n "(cached) " >&6
7467 # These are sane defaults that work on at least a few old systems.
7468 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7470 # Character class describing NM global symbol codes.
7471 symcode='[BCDEGRST]'
7473 # Regexp to match symbols that can be accessed directly from C.
7474 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7476 # Define system-specific variables.
7481 cygwin* | mingw* | pw32* | cegcc*)
7482 symcode='[ABCDGISTW]'
7485 if test "$host_cpu" = ia64; then
7486 symcode='[ABCDEGRST]'
7490 symcode='[BCDEGRST]'
7493 symcode='[BCDEGQRST]'
7504 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7512 # If we're using GNU nm, then use its standard symbol codes.
7513 case `$NM -V 2>&1` in
7514 *GNU* | *'with BFD'*)
7515 symcode='[ABCDGIRSTW]' ;;
7518 # Transform an extracted symbol line into a proper C declaration.
7519 # Some systems (esp. on ia64) link data and code symbols differently,
7520 # so use this general approach.
7521 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7523 # Transform an extracted symbol line into symbol name and symbol address
7524 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7525 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'"
7527 # Handle CRLF in mingw tool chain
7531 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7535 # Try without a prefix underscore, then with it.
7536 for ac_symprfx in "" "_"; do
7538 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7539 symxfrm="\\1 $ac_symprfx\\2 \\2"
7541 # Write the raw and C identifiers.
7542 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7543 # Fake it for dumpbin and say T for any non-static function
7544 # and D for any global variable.
7545 # Also find C++ and __fastcall symbols from MSVC++,
7546 # which start with @ or ?.
7547 lt_cv_sys_global_symbol_pipe="$AWK '"\
7548 " {last_section=section; section=\$ 3};"\
7549 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7550 " \$ 0!~/External *\|/{next};"\
7551 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7552 " {if(hide[section]) next};"\
7553 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7554 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7555 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7556 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7557 " ' prfx=^$ac_symprfx"
7559 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7562 # Check to see that the pipe works correctly.
7566 cat > conftest.$ac_ext <<_LT_EOF
7571 void nm_test_func(void);
7572 void nm_test_func(void){}
7576 int main(){nm_test_var='a';nm_test_func();return(0);}
7579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7580 (eval $ac_compile) 2>&5
7582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7583 test $ac_status = 0; }; then
7584 # Now try to grab the symbols.
7586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7587 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7590 test $ac_status = 0; } && test -s "$nlist"; then
7591 # Try sorting and uniquifying the output.
7592 if sort "$nlist" | uniq > "$nlist"T; then
7593 mv -f "$nlist"T "$nlist"
7598 # Make sure that we snagged all the symbols we need.
7599 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7600 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7601 cat <<_LT_EOF > conftest.$ac_ext
7607 # Now generate the symbol file.
7608 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7610 cat <<_LT_EOF >> conftest.$ac_ext
7612 /* The mapping between symbol names and symbols. */
7617 lt__PROGRAM__LTX_preloaded_symbols[] =
7619 { "@PROGRAM@", (void *) 0 },
7621 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7622 cat <<\_LT_EOF >> conftest.$ac_ext
7626 /* This works around a problem in FreeBSD linker */
7627 #ifdef FREEBSD_WORKAROUND
7628 static const void *lt_preloaded_setup() {
7629 return lt__PROGRAM__LTX_preloaded_symbols;
7637 # Now try linking the two files.
7638 mv conftest.$ac_objext conftstm.$ac_objext
7639 lt_save_LIBS="$LIBS"
7640 lt_save_CFLAGS="$CFLAGS"
7641 LIBS="conftstm.$ac_objext"
7642 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7644 (eval $ac_link) 2>&5
7646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7647 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7650 LIBS="$lt_save_LIBS"
7651 CFLAGS="$lt_save_CFLAGS"
7653 echo "cannot find nm_test_func in $nlist" >&5
7656 echo "cannot find nm_test_var in $nlist" >&5
7659 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7662 echo "$progname: failed program was:" >&5
7663 cat conftest.$ac_ext >&5
7665 rm -rf conftest* conftst*
7667 # Do not use the global_symbol_pipe unless it works.
7668 if test "$pipe_works" = yes; then
7671 lt_cv_sys_global_symbol_pipe=
7677 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7678 lt_cv_sys_global_symbol_to_cdecl=
7680 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7682 $as_echo "failed" >&6; }
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7685 $as_echo "ok" >&6; }
7709 # Check whether --enable-libtool-lock was given.
7710 if test "${enable_libtool_lock+set}" = set; then :
7711 enableval=$enable_libtool_lock;
7714 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7716 # Some flags need to be propagated to the compiler or linker for good
7720 # Find out which ABI we are using.
7721 echo 'int i;' > conftest.$ac_ext
7722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7723 (eval $ac_compile) 2>&5
7725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7726 test $ac_status = 0; }; then
7727 case `/usr/bin/file conftest.$ac_objext` in
7739 # Find out which ABI we are using.
7740 echo '#line 7740 "configure"' > conftest.$ac_ext
7741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7742 (eval $ac_compile) 2>&5
7744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7745 test $ac_status = 0; }; then
7746 if test "$lt_cv_prog_gnu_ld" = yes; then
7747 case `/usr/bin/file conftest.$ac_objext` in
7749 LD="${LD-ld} -melf32bsmip"
7752 LD="${LD-ld} -melf32bmipn32"
7755 LD="${LD-ld} -melf64bmip"
7759 case `/usr/bin/file conftest.$ac_objext` in
7775 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7776 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7777 # Find out which ABI we are using.
7778 echo 'int i;' > conftest.$ac_ext
7779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7780 (eval $ac_compile) 2>&5
7782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7783 test $ac_status = 0; }; then
7784 case `/usr/bin/file conftest.o` in
7787 x86_64-*kfreebsd*-gnu)
7788 LD="${LD-ld} -m elf_i386_fbsd"
7791 LD="${LD-ld} -m elf_i386"
7793 ppc64-*linux*|powerpc64-*linux*)
7794 LD="${LD-ld} -m elf32ppclinux"
7797 LD="${LD-ld} -m elf_s390"
7800 LD="${LD-ld} -m elf32_sparc"
7806 x86_64-*kfreebsd*-gnu)
7807 LD="${LD-ld} -m elf_x86_64_fbsd"
7810 LD="${LD-ld} -m elf_x86_64"
7812 ppc*-*linux*|powerpc*-*linux*)
7813 LD="${LD-ld} -m elf64ppc"
7815 s390*-*linux*|s390*-*tpf*)
7816 LD="${LD-ld} -m elf64_s390"
7819 LD="${LD-ld} -m elf64_sparc"
7829 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7830 SAVE_CFLAGS="$CFLAGS"
7831 CFLAGS="$CFLAGS -belf"
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7833 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7834 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7835 $as_echo_n "(cached) " >&6
7838 ac_cpp='$CPP $CPPFLAGS'
7839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7854 if ac_fn_c_try_link "$LINENO"; then :
7855 lt_cv_cc_needs_belf=yes
7857 lt_cv_cc_needs_belf=no
7859 rm -f core conftest.err conftest.$ac_objext \
7860 conftest$ac_exeext conftest.$ac_ext
7862 ac_cpp='$CPP $CPPFLAGS'
7863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7869 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7870 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7871 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7872 CFLAGS="$SAVE_CFLAGS"
7876 # Find out which ABI we are using.
7877 echo 'int i;' > conftest.$ac_ext
7878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7879 (eval $ac_compile) 2>&5
7881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7882 test $ac_status = 0; }; then
7883 case `/usr/bin/file conftest.o` in
7885 case $lt_cv_prog_gnu_ld in
7886 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7888 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7900 need_locks="$enable_libtool_lock"
7904 rhapsody* | darwin*)
7905 if test -n "$ac_tool_prefix"; then
7906 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7907 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7911 $as_echo_n "(cached) " >&6
7913 if test -n "$DSYMUTIL"; then
7914 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7923 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7934 if test -n "$DSYMUTIL"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7936 $as_echo "$DSYMUTIL" >&6; }
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7944 if test -z "$ac_cv_prog_DSYMUTIL"; then
7945 ac_ct_DSYMUTIL=$DSYMUTIL
7946 # Extract the first word of "dsymutil", so it can be a program name with args.
7947 set dummy dsymutil; ac_word=$2
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 $as_echo_n "checking for $ac_word... " >&6; }
7950 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7951 $as_echo_n "(cached) " >&6
7953 if test -n "$ac_ct_DSYMUTIL"; then
7954 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7963 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7974 if test -n "$ac_ct_DSYMUTIL"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7976 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7982 if test "x$ac_ct_DSYMUTIL" = x; then
7985 case $cross_compiling:$ac_tool_warned in
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7989 ac_tool_warned=yes ;;
7991 DSYMUTIL=$ac_ct_DSYMUTIL
7994 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7997 if test -n "$ac_tool_prefix"; then
7998 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7999 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8003 $as_echo_n "(cached) " >&6
8005 if test -n "$NMEDIT"; then
8006 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 test -z "$as_dir" && as_dir=.
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8015 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 NMEDIT=$ac_cv_prog_NMEDIT
8026 if test -n "$NMEDIT"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8028 $as_echo "$NMEDIT" >&6; }
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8036 if test -z "$ac_cv_prog_NMEDIT"; then
8037 ac_ct_NMEDIT=$NMEDIT
8038 # Extract the first word of "nmedit", so it can be a program name with args.
8039 set dummy nmedit; ac_word=$2
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041 $as_echo_n "checking for $ac_word... " >&6; }
8042 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8043 $as_echo_n "(cached) " >&6
8045 if test -n "$ac_ct_NMEDIT"; then
8046 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 test -z "$as_dir" && as_dir=.
8053 for ac_exec_ext in '' $ac_executable_extensions; do
8054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8055 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8065 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8066 if test -n "$ac_ct_NMEDIT"; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8068 $as_echo "$ac_ct_NMEDIT" >&6; }
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 $as_echo "no" >&6; }
8074 if test "x$ac_ct_NMEDIT" = x; then
8077 case $cross_compiling:$ac_tool_warned in
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8081 ac_tool_warned=yes ;;
8083 NMEDIT=$ac_ct_NMEDIT
8086 NMEDIT="$ac_cv_prog_NMEDIT"
8089 if test -n "$ac_tool_prefix"; then
8090 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8091 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093 $as_echo_n "checking for $ac_word... " >&6; }
8094 if test "${ac_cv_prog_LIPO+set}" = set; then :
8095 $as_echo_n "(cached) " >&6
8097 if test -n "$LIPO"; then
8098 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8107 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 LIPO=$ac_cv_prog_LIPO
8118 if test -n "$LIPO"; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8120 $as_echo "$LIPO" >&6; }
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 $as_echo "no" >&6; }
8128 if test -z "$ac_cv_prog_LIPO"; then
8130 # Extract the first word of "lipo", so it can be a program name with args.
8131 set dummy lipo; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8137 if test -n "$ac_ct_LIPO"; then
8138 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_prog_ac_ct_LIPO="lipo"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8157 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8158 if test -n "$ac_ct_LIPO"; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8160 $as_echo "$ac_ct_LIPO" >&6; }
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8166 if test "x$ac_ct_LIPO" = x; then
8169 case $cross_compiling:$ac_tool_warned in
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8173 ac_tool_warned=yes ;;
8178 LIPO="$ac_cv_prog_LIPO"
8181 if test -n "$ac_tool_prefix"; then
8182 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8183 set dummy ${ac_tool_prefix}otool; ac_word=$2
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8185 $as_echo_n "checking for $ac_word... " >&6; }
8186 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8187 $as_echo_n "(cached) " >&6
8189 if test -n "$OTOOL"; then
8190 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196 test -z "$as_dir" && as_dir=.
8197 for ac_exec_ext in '' $ac_executable_extensions; do
8198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8199 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8209 OTOOL=$ac_cv_prog_OTOOL
8210 if test -n "$OTOOL"; then
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8212 $as_echo "$OTOOL" >&6; }
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215 $as_echo "no" >&6; }
8220 if test -z "$ac_cv_prog_OTOOL"; then
8222 # Extract the first word of "otool", so it can be a program name with args.
8223 set dummy otool; ac_word=$2
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225 $as_echo_n "checking for $ac_word... " >&6; }
8226 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8227 $as_echo_n "(cached) " >&6
8229 if test -n "$ac_ct_OTOOL"; then
8230 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
8238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8239 ac_cv_prog_ac_ct_OTOOL="otool"
8240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8249 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8250 if test -n "$ac_ct_OTOOL"; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8252 $as_echo "$ac_ct_OTOOL" >&6; }
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255 $as_echo "no" >&6; }
8258 if test "x$ac_ct_OTOOL" = x; then
8261 case $cross_compiling:$ac_tool_warned in
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8265 ac_tool_warned=yes ;;
8270 OTOOL="$ac_cv_prog_OTOOL"
8273 if test -n "$ac_tool_prefix"; then
8274 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8275 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277 $as_echo_n "checking for $ac_word... " >&6; }
8278 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
8281 if test -n "$OTOOL64"; then
8282 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288 test -z "$as_dir" && as_dir=.
8289 for ac_exec_ext in '' $ac_executable_extensions; do
8290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8291 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8301 OTOOL64=$ac_cv_prog_OTOOL64
8302 if test -n "$OTOOL64"; then
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8304 $as_echo "$OTOOL64" >&6; }
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307 $as_echo "no" >&6; }
8312 if test -z "$ac_cv_prog_OTOOL64"; then
8313 ac_ct_OTOOL64=$OTOOL64
8314 # Extract the first word of "otool64", so it can be a program name with args.
8315 set dummy otool64; ac_word=$2
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 $as_echo_n "checking for $ac_word... " >&6; }
8318 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8319 $as_echo_n "(cached) " >&6
8321 if test -n "$ac_ct_OTOOL64"; then
8322 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328 test -z "$as_dir" && as_dir=.
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8331 ac_cv_prog_ac_ct_OTOOL64="otool64"
8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8341 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8342 if test -n "$ac_ct_OTOOL64"; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8344 $as_echo "$ac_ct_OTOOL64" >&6; }
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347 $as_echo "no" >&6; }
8350 if test "x$ac_ct_OTOOL64" = x; then
8353 case $cross_compiling:$ac_tool_warned in
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8357 ac_tool_warned=yes ;;
8359 OTOOL64=$ac_ct_OTOOL64
8362 OTOOL64="$ac_cv_prog_OTOOL64"
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8392 $as_echo_n "checking for -single_module linker flag... " >&6; }
8393 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8394 $as_echo_n "(cached) " >&6
8396 lt_cv_apple_cc_single_mod=no
8397 if test -z "${LT_MULTI_MODULE}"; then
8398 # By default we will add the -single_module flag. You can override
8399 # by either setting the environment variable LT_MULTI_MODULE
8400 # non-empty at configure time, or by adding -multi_module to the
8402 rm -rf libconftest.dylib*
8403 echo "int foo(void){return 1;}" > conftest.c
8404 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8405 -dynamiclib -Wl,-single_module conftest.c" >&5
8406 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8407 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8409 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8410 lt_cv_apple_cc_single_mod=yes
8412 cat conftest.err >&5
8414 rm -rf libconftest.dylib*
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8419 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8421 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8422 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8423 $as_echo_n "(cached) " >&6
8425 lt_cv_ld_exported_symbols_list=no
8426 save_LDFLAGS=$LDFLAGS
8427 echo "_main" > conftest.sym
8428 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h. */
8440 if ac_fn_c_try_link "$LINENO"; then :
8441 lt_cv_ld_exported_symbols_list=yes
8443 lt_cv_ld_exported_symbols_list=no
8445 rm -f core conftest.err conftest.$ac_objext \
8446 conftest$ac_exeext conftest.$ac_ext
8447 LDFLAGS="$save_LDFLAGS"
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8451 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8453 rhapsody* | darwin1.[012])
8454 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8456 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8457 darwin*) # darwin 5.x on
8458 # if running on 10.5 or later, the deployment target defaults
8459 # to the OS version, if on x86, and 10.4, the deployment
8460 # target defaults to 10.4. Don't you love it?
8461 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8462 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8463 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8465 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8467 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8471 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8472 _lt_dar_single_mod='$single_module'
8474 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8475 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8477 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8479 if test "$DSYMUTIL" != ":"; then
8480 _lt_dsymutil='~$DSYMUTIL $lib || :'
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8488 $as_echo_n "checking for ANSI C header files... " >&6; }
8489 if test "${ac_cv_header_stdc+set}" = set; then :
8490 $as_echo_n "(cached) " >&6
8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493 /* end confdefs.h. */
8507 if ac_fn_c_try_compile "$LINENO"; then :
8508 ac_cv_header_stdc=yes
8510 ac_cv_header_stdc=no
8512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8514 if test $ac_cv_header_stdc = yes; then
8515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517 /* end confdefs.h. */
8521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8522 $EGREP "memchr" >/dev/null 2>&1; then :
8525 ac_cv_header_stdc=no
8531 if test $ac_cv_header_stdc = yes; then
8532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534 /* end confdefs.h. */
8538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8539 $EGREP "free" >/dev/null 2>&1; then :
8542 ac_cv_header_stdc=no
8548 if test $ac_cv_header_stdc = yes; then
8549 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8550 if test "$cross_compiling" = yes; then :
8553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554 /* end confdefs.h. */
8557 #if ((' ' & 0x0FF) == 0x020)
8558 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8559 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8561 # define ISLOWER(c) \
8562 (('a' <= (c) && (c) <= 'i') \
8563 || ('j' <= (c) && (c) <= 'r') \
8564 || ('s' <= (c) && (c) <= 'z'))
8565 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8568 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8573 for (i = 0; i < 256; i++)
8574 if (XOR (islower (i), ISLOWER (i))
8575 || toupper (i) != TOUPPER (i))
8580 if ac_fn_c_try_run "$LINENO"; then :
8583 ac_cv_header_stdc=no
8585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8586 conftest.$ac_objext conftest.beam conftest.$ac_ext
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8592 $as_echo "$ac_cv_header_stdc" >&6; }
8593 if test $ac_cv_header_stdc = yes; then
8595 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8599 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8600 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8601 inttypes.h stdint.h unistd.h
8603 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8604 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8606 eval as_val=\$$as_ac_Header
8607 if test "x$as_val" = x""yes; then :
8608 cat >>confdefs.h <<_ACEOF
8609 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8617 for ac_header in dlfcn.h
8619 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8621 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8622 cat >>confdefs.h <<_ACEOF
8623 #define HAVE_DLFCN_H 1
8633 ac_cpp='$CXXCPP $CPPFLAGS'
8634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8637 if test -z "$CXX"; then
8638 if test -n "$CCC"; then
8641 if test -n "$ac_tool_prefix"; then
8642 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8645 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647 $as_echo_n "checking for $ac_word... " >&6; }
8648 if test "${ac_cv_prog_CXX+set}" = set; then :
8649 $as_echo_n "(cached) " >&6
8651 if test -n "$CXX"; then
8652 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658 test -z "$as_dir" && as_dir=.
8659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8661 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8672 if test -n "$CXX"; then
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8674 $as_echo "$CXX" >&6; }
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8681 test -n "$CXX" && break
8684 if test -z "$CXX"; then
8686 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8688 # Extract the first word of "$ac_prog", so it can be a program name with args.
8689 set dummy $ac_prog; ac_word=$2
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691 $as_echo_n "checking for $ac_word... " >&6; }
8692 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8693 $as_echo_n "(cached) " >&6
8695 if test -n "$ac_ct_CXX"; then
8696 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702 test -z "$as_dir" && as_dir=.
8703 for ac_exec_ext in '' $ac_executable_extensions; do
8704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8705 ac_cv_prog_ac_ct_CXX="$ac_prog"
8706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8715 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8716 if test -n "$ac_ct_CXX"; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8718 $as_echo "$ac_ct_CXX" >&6; }
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8725 test -n "$ac_ct_CXX" && break
8728 if test "x$ac_ct_CXX" = x; then
8731 case $cross_compiling:$ac_tool_warned in
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8735 ac_tool_warned=yes ;;
8743 # Provide some information about the compiler.
8744 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8747 for ac_option in --version -v -V -qversion; do
8748 { { ac_try="$ac_compiler $ac_option >&5"
8750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8751 *) ac_try_echo=$ac_try;;
8753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8754 $as_echo "$ac_try_echo"; } >&5
8755 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8757 if test -s conftest.err; then
8759 ... rest of stderr output deleted ...
8760 10q' conftest.err >conftest.er1
8761 cat conftest.er1 >&5
8763 rm -f conftest.er1 conftest.err
8764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8765 test $ac_status = 0; }
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8769 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8770 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8771 $as_echo_n "(cached) " >&6
8773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774 /* end confdefs.h. */
8787 if ac_fn_cxx_try_compile "$LINENO"; then :
8792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8793 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8797 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8798 if test $ac_compiler_gnu = yes; then
8803 ac_test_CXXFLAGS=${CXXFLAGS+set}
8804 ac_save_CXXFLAGS=$CXXFLAGS
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8806 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8807 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8808 $as_echo_n "(cached) " >&6
8810 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8811 ac_cxx_werror_flag=yes
8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8825 if ac_fn_cxx_try_compile "$LINENO"; then :
8826 ac_cv_prog_cxx_g=yes
8829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h. */
8840 if ac_fn_cxx_try_compile "$LINENO"; then :
8843 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8856 if ac_fn_cxx_try_compile "$LINENO"; then :
8857 ac_cv_prog_cxx_g=yes
8859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8864 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8867 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8868 if test "$ac_test_CXXFLAGS" = set; then
8869 CXXFLAGS=$ac_save_CXXFLAGS
8870 elif test $ac_cv_prog_cxx_g = yes; then
8871 if test "$GXX" = yes; then
8877 if test "$GXX" = yes; then
8884 ac_cpp='$CPP $CPPFLAGS'
8885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8889 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8890 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8891 (test "X$CXX" != "Xg++"))) ; then
8893 ac_cpp='$CXXCPP $CPPFLAGS'
8894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8898 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8899 if test -z "$CXXCPP"; then
8900 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8901 $as_echo_n "(cached) " >&6
8903 # Double quotes because CXXCPP needs to be expanded
8904 for CXXCPP in "$CXX -E" "/lib/cpp"
8907 for ac_cxx_preproc_warn_flag in '' yes
8909 # Use a header file that comes with gcc, so configuring glibc
8910 # with a fresh cross-compiler works.
8911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8912 # <limits.h> exists even on freestanding compilers.
8913 # On the NeXT, cc -E runs the code through the compiler's parser,
8914 # not just through cpp. "Syntax error" is here to catch this case.
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8918 # include <limits.h>
8920 # include <assert.h>
8924 if ac_fn_cxx_try_cpp "$LINENO"; then :
8927 # Broken: fails on valid input.
8930 rm -f conftest.err conftest.$ac_ext
8932 # OK, works on sane cases. Now check whether nonexistent headers
8933 # can be detected and how.
8934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h. */
8936 #include <ac_nonexistent.h>
8938 if ac_fn_cxx_try_cpp "$LINENO"; then :
8939 # Broken: success on invalid input.
8942 # Passes both tests.
8946 rm -f conftest.err conftest.$ac_ext
8949 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8950 rm -f conftest.err conftest.$ac_ext
8951 if $ac_preproc_ok; then :
8956 ac_cv_prog_CXXCPP=$CXXCPP
8959 CXXCPP=$ac_cv_prog_CXXCPP
8961 ac_cv_prog_CXXCPP=$CXXCPP
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8964 $as_echo "$CXXCPP" >&6; }
8966 for ac_cxx_preproc_warn_flag in '' yes
8968 # Use a header file that comes with gcc, so configuring glibc
8969 # with a fresh cross-compiler works.
8970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8971 # <limits.h> exists even on freestanding compilers.
8972 # On the NeXT, cc -E runs the code through the compiler's parser,
8973 # not just through cpp. "Syntax error" is here to catch this case.
8974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h. */
8977 # include <limits.h>
8979 # include <assert.h>
8983 if ac_fn_cxx_try_cpp "$LINENO"; then :
8986 # Broken: fails on valid input.
8989 rm -f conftest.err conftest.$ac_ext
8991 # OK, works on sane cases. Now check whether nonexistent headers
8992 # can be detected and how.
8993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
8995 #include <ac_nonexistent.h>
8997 if ac_fn_cxx_try_cpp "$LINENO"; then :
8998 # Broken: success on invalid input.
9001 # Passes both tests.
9005 rm -f conftest.err conftest.$ac_ext
9008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9009 rm -f conftest.err conftest.$ac_ext
9010 if $ac_preproc_ok; then :
9013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9015 _lt_caught_CXX_error=yes; }
9019 ac_cpp='$CPP $CPPFLAGS'
9020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9025 _lt_caught_CXX_error=yes
9033 # Check whether --enable-shared was given.
9034 if test "${enable_shared+set}" = set; then :
9035 enableval=$enable_shared; p=${PACKAGE-default}
9037 yes) enable_shared=yes ;;
9038 no) enable_shared=no ;;
9041 # Look at the argument we got. We use all the common list separators.
9042 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9043 for pkg in $enableval; do
9045 if test "X$pkg" = "X$p"; then
9062 # Check whether --enable-static was given.
9063 if test "${enable_static+set}" = set; then :
9064 enableval=$enable_static; p=${PACKAGE-default}
9066 yes) enable_static=yes ;;
9067 no) enable_static=no ;;
9070 # Look at the argument we got. We use all the common list separators.
9071 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9072 for pkg in $enableval; do
9074 if test "X$pkg" = "X$p"; then
9103 # Check whether --with-pic was given.
9104 if test "${with_pic+set}" = set; then :
9105 withval=$with_pic; pic_mode="$withval"
9111 test -z "$pic_mode" && pic_mode=default
9119 # Check whether --enable-fast-install was given.
9120 if test "${enable_fast_install+set}" = set; then :
9121 enableval=$enable_fast_install; p=${PACKAGE-default}
9123 yes) enable_fast_install=yes ;;
9124 no) enable_fast_install=no ;;
9126 enable_fast_install=no
9127 # Look at the argument we got. We use all the common list separators.
9128 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9129 for pkg in $enableval; do
9131 if test "X$pkg" = "X$p"; then
9132 enable_fast_install=yes
9139 enable_fast_install=yes
9152 # This can be used to rebuild libtool when needed
9153 LIBTOOL_DEPS="$ltmain"
9155 # Always use our own libtool.
9156 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9182 test -z "$LN_S" && LN_S="ln -s"
9197 if test -n "${ZSH_VERSION+set}" ; then
9198 setopt NO_GLOB_SUBST
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9202 $as_echo_n "checking for objdir... " >&6; }
9203 if test "${lt_cv_objdir+set}" = set; then :
9204 $as_echo_n "(cached) " >&6
9206 rm -f .libs 2>/dev/null
9207 mkdir .libs 2>/dev/null
9208 if test -d .libs; then
9211 # MS-DOS does not allow filenames that begin with a dot.
9214 rmdir .libs 2>/dev/null
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9217 $as_echo "$lt_cv_objdir" >&6; }
9218 objdir=$lt_cv_objdir
9224 cat >>confdefs.h <<_ACEOF
9225 #define LT_OBJDIR "$lt_cv_objdir/"
9246 # AIX sometimes has problems with the GCC collect2 program. For some
9247 # reason, if we set the COLLECT_NAMES environment variable, the problems
9248 # vanish in a puff of smoke.
9249 if test "X${COLLECT_NAMES+set}" != Xset; then
9251 export COLLECT_NAMES
9256 # Sed substitution that helps us do robust quoting. It backslashifies
9257 # metacharacters that are still active within double-quoted strings.
9258 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9260 # Same as above, but do not quote variable references.
9261 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9263 # Sed substitution to delay expansion of an escaped shell variable in a
9264 # double_quote_subst'ed string.
9265 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9267 # Sed substitution to delay expansion of an escaped single quote.
9268 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9270 # Sed substitution to avoid accidental globbing in evaled expressions
9271 no_glob_subst='s/\*/\\\*/g'
9275 can_build_shared=yes
9277 # All known linkers require a `.a' archive for static linking (except MSVC,
9278 # which needs '.lib').
9281 with_gnu_ld="$lt_cv_prog_gnu_ld"
9284 old_CFLAGS="$CFLAGS"
9286 # Set sane defaults for various variables
9287 test -z "$CC" && CC=cc
9288 test -z "$LTCC" && LTCC=$CC
9289 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9290 test -z "$LD" && LD=ld
9291 test -z "$ac_objext" && ac_objext=o
9293 for cc_temp in $compiler""; do
9295 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9296 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9301 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9304 # Only perform the check for file, if the check method requires it
9305 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9306 case $deplibs_check_method in
9308 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9310 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9311 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9312 $as_echo_n "(cached) " >&6
9316 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9319 lt_save_MAGIC_CMD="$MAGIC_CMD"
9320 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9321 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9322 for ac_dir in $ac_dummy; do
9324 test -z "$ac_dir" && ac_dir=.
9325 if test -f $ac_dir/${ac_tool_prefix}file; then
9326 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9327 if test -n "$file_magic_test_file"; then
9328 case $deplibs_check_method in
9330 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9331 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9332 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9333 $EGREP "$file_magic_regex" > /dev/null; then
9338 *** Warning: the command libtool uses to detect shared libraries,
9339 *** $file_magic_cmd, produces output that libtool cannot recognize.
9340 *** The result is that libtool may fail to recognize shared libraries
9341 *** as such. This will affect the creation of libtool libraries that
9342 *** depend on shared libraries, but programs linked with such libtool
9343 *** libraries will work regardless of this problem. Nevertheless, you
9344 *** may want to report the problem to your system manager and/or to
9345 *** bug-libtool@gnu.org
9355 MAGIC_CMD="$lt_save_MAGIC_CMD"
9360 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9361 if test -n "$MAGIC_CMD"; then
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9363 $as_echo "$MAGIC_CMD" >&6; }
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366 $as_echo "no" >&6; }
9373 if test -z "$lt_cv_path_MAGIC_CMD"; then
9374 if test -n "$ac_tool_prefix"; then
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9376 $as_echo_n "checking for file... " >&6; }
9377 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9378 $as_echo_n "(cached) " >&6
9382 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9385 lt_save_MAGIC_CMD="$MAGIC_CMD"
9386 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9387 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9388 for ac_dir in $ac_dummy; do
9390 test -z "$ac_dir" && ac_dir=.
9391 if test -f $ac_dir/file; then
9392 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9393 if test -n "$file_magic_test_file"; then
9394 case $deplibs_check_method in
9396 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9397 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9398 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9399 $EGREP "$file_magic_regex" > /dev/null; then
9404 *** Warning: the command libtool uses to detect shared libraries,
9405 *** $file_magic_cmd, produces output that libtool cannot recognize.
9406 *** The result is that libtool may fail to recognize shared libraries
9407 *** as such. This will affect the creation of libtool libraries that
9408 *** depend on shared libraries, but programs linked with such libtool
9409 *** libraries will work regardless of this problem. Nevertheless, you
9410 *** may want to report the problem to your system manager and/or to
9411 *** bug-libtool@gnu.org
9421 MAGIC_CMD="$lt_save_MAGIC_CMD"
9426 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9427 if test -n "$MAGIC_CMD"; then
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9429 $as_echo "$MAGIC_CMD" >&6; }
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9432 $as_echo "no" >&6; }
9445 # Use C for the default configuration in the libtool script
9449 ac_cpp='$CPP $CPPFLAGS'
9450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9455 # Source file extension for C test sources.
9458 # Object file extension for compiled C test sources.
9462 # Code to be used in simple compile tests
9463 lt_simple_compile_test_code="int some_variable = 0;"
9465 # Code to be used in simple link tests
9466 lt_simple_link_test_code='int main(){return(0);}'
9474 # If no C compiler was specified, use CC.
9477 # If no C compiler flags were specified, use CFLAGS.
9478 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9480 # Allow CC to be a program name with arguments.
9483 # Save the default compiler, since it gets overwritten when the other
9484 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9485 compiler_DEFAULT=$CC
9487 # save warnings/boilerplate of simple test code
9488 ac_outfile=conftest.$ac_objext
9489 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9490 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9491 _lt_compiler_boilerplate=`cat conftest.err`
9494 ac_outfile=conftest.$ac_objext
9495 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9496 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9497 _lt_linker_boilerplate=`cat conftest.err`
9502 ## There is no encapsulation within the following macros, do not change
9503 ## the running order or otherwise move them around unless you know exactly
9504 ## what you are doing...
9505 if test -n "$compiler"; then
9507 lt_prog_compiler_no_builtin_flag=
9509 if test "$GCC" = yes; then
9510 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9513 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9514 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9515 $as_echo_n "(cached) " >&6
9517 lt_cv_prog_compiler_rtti_exceptions=no
9518 ac_outfile=conftest.$ac_objext
9519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9520 lt_compiler_flag="-fno-rtti -fno-exceptions"
9521 # Insert the option either (1) after the last *FLAGS variable, or
9522 # (2) before a word containing "conftest.", or (3) at the end.
9523 # Note that $ac_compile itself does not contain backslashes and begins
9524 # with a dollar sign (not a hyphen), so the echo should work correctly.
9525 # The option is referenced via a variable to avoid confusing sed.
9526 lt_compile=`echo "$ac_compile" | $SED \
9527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9529 -e 's:$: $lt_compiler_flag:'`
9530 (eval echo "\"\$as_me:9530: $lt_compile\"" >&5)
9531 (eval "$lt_compile" 2>conftest.err)
9533 cat conftest.err >&5
9534 echo "$as_me:9534: \$? = $ac_status" >&5
9535 if (exit $ac_status) && test -s "$ac_outfile"; then
9536 # The compiler can only warn and ignore the option if not recognized
9537 # So say no if there are warnings other than the usual output.
9538 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9540 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9541 lt_cv_prog_compiler_rtti_exceptions=yes
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9548 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9550 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9551 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9563 lt_prog_compiler_wl=
9564 lt_prog_compiler_pic=
9565 lt_prog_compiler_static=
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9568 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9570 if test "$GCC" = yes; then
9571 lt_prog_compiler_wl='-Wl,'
9572 lt_prog_compiler_static='-static'
9576 # All AIX code is PIC.
9577 if test "$host_cpu" = ia64; then
9578 # AIX 5 now supports IA64 processor
9579 lt_prog_compiler_static='-Bstatic'
9586 # see comment about AmigaOS4 .so support
9587 lt_prog_compiler_pic='-fPIC'
9590 # FIXME: we need at least 68020 code to build shared libraries, but
9591 # adding the `-m68020' flag to GCC prevents building anything better,
9593 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9598 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9599 # PIC is the default for these OSes.
9602 mingw* | cygwin* | pw32* | os2* | cegcc*)
9603 # This hack is so that the source file can tell whether it is being
9604 # built for inclusion in a dll (and should export symbols for example).
9605 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9606 # (--disable-auto-import) libraries
9607 lt_prog_compiler_pic='-DDLL_EXPORT'
9610 darwin* | rhapsody*)
9611 # PIC is the default on this platform
9612 # Common symbols not allowed in MH_DYLIB files
9613 lt_prog_compiler_pic='-fno-common'
9617 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9618 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9619 # sets the default TLS model and affects inlining.
9625 lt_prog_compiler_pic='-fPIC'
9631 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9632 # Instead, we relocate shared libraries at runtime.
9636 # Just because we use GCC doesn't mean we suddenly get shared libraries
9637 # on systems that don't support them.
9638 lt_prog_compiler_can_build_shared=no
9643 # QNX uses GNU C++, but need to define -shared option too, otherwise
9645 lt_prog_compiler_pic='-fPIC -shared'
9649 if test -d /usr/nec; then
9650 lt_prog_compiler_pic=-Kconform_pic
9655 lt_prog_compiler_pic='-fPIC'
9659 # PORTME Check for flag to pass linker flags through the system compiler.
9662 lt_prog_compiler_wl='-Wl,'
9663 if test "$host_cpu" = ia64; then
9664 # AIX 5 now supports IA64 processor
9665 lt_prog_compiler_static='-Bstatic'
9667 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9671 mingw* | cygwin* | pw32* | os2* | cegcc*)
9672 # This hack is so that the source file can tell whether it is being
9673 # built for inclusion in a dll (and should export symbols for example).
9674 lt_prog_compiler_pic='-DDLL_EXPORT'
9677 hpux9* | hpux10* | hpux11*)
9678 lt_prog_compiler_wl='-Wl,'
9679 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9686 lt_prog_compiler_pic='+Z'
9689 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9690 lt_prog_compiler_static='${wl}-a ${wl}archive'
9693 irix5* | irix6* | nonstopux*)
9694 lt_prog_compiler_wl='-Wl,'
9695 # PIC (with -KPIC) is the default.
9696 lt_prog_compiler_static='-non_shared'
9699 linux* | k*bsd*-gnu)
9700 case $cc_basename in
9701 # old Intel for x86_64 which still supported -KPIC.
9703 lt_prog_compiler_wl='-Wl,'
9704 lt_prog_compiler_pic='-KPIC'
9705 lt_prog_compiler_static='-static'
9707 # icc used to be incompatible with GCC.
9708 # ICC 10 doesn't accept -KPIC any more.
9710 lt_prog_compiler_wl='-Wl,'
9711 lt_prog_compiler_pic='-fPIC'
9712 lt_prog_compiler_static='-static'
9714 # Lahey Fortran 8.1.
9716 lt_prog_compiler_wl='-Wl,'
9717 lt_prog_compiler_pic='--shared'
9718 lt_prog_compiler_static='--static'
9720 pgcc* | pgf77* | pgf90* | pgf95*)
9721 # Portland Group compilers (*not* the Pentium gcc compiler,
9722 # which looks to be a dead project)
9723 lt_prog_compiler_wl='-Wl,'
9724 lt_prog_compiler_pic='-fpic'
9725 lt_prog_compiler_static='-Bstatic'
9728 lt_prog_compiler_wl='-Wl,'
9729 # All Alpha code is PIC.
9730 lt_prog_compiler_static='-non_shared'
9733 # IBM XL C 8.0/Fortran 10.1 on PPC
9734 lt_prog_compiler_wl='-Wl,'
9735 lt_prog_compiler_pic='-qpic'
9736 lt_prog_compiler_static='-qstaticlink'
9739 case `$CC -V 2>&1 | sed 5q` in
9742 lt_prog_compiler_pic='-KPIC'
9743 lt_prog_compiler_static='-Bstatic'
9744 lt_prog_compiler_wl='-Wl,'
9747 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9748 lt_prog_compiler_pic='-KPIC'
9749 lt_prog_compiler_static='-Bstatic'
9750 lt_prog_compiler_wl=''
9758 lt_prog_compiler_pic='-KPIC'
9759 lt_prog_compiler_static='-Bstatic'
9763 # QNX uses GNU C++, but need to define -shared option too, otherwise
9765 lt_prog_compiler_pic='-fPIC -shared'
9768 osf3* | osf4* | osf5*)
9769 lt_prog_compiler_wl='-Wl,'
9770 # All OSF/1 code is PIC.
9771 lt_prog_compiler_static='-non_shared'
9775 lt_prog_compiler_static='-non_shared'
9779 lt_prog_compiler_pic='-KPIC'
9780 lt_prog_compiler_static='-Bstatic'
9781 case $cc_basename in
9783 lt_prog_compiler_wl='-Qoption ld ';;
9785 lt_prog_compiler_wl='-Wl,';;
9790 lt_prog_compiler_wl='-Qoption ld '
9791 lt_prog_compiler_pic='-PIC'
9792 lt_prog_compiler_static='-Bstatic'
9795 sysv4 | sysv4.2uw2* | sysv4.3*)
9796 lt_prog_compiler_wl='-Wl,'
9797 lt_prog_compiler_pic='-KPIC'
9798 lt_prog_compiler_static='-Bstatic'
9802 if test -d /usr/nec ;then
9803 lt_prog_compiler_pic='-Kconform_pic'
9804 lt_prog_compiler_static='-Bstatic'
9808 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9809 lt_prog_compiler_wl='-Wl,'
9810 lt_prog_compiler_pic='-KPIC'
9811 lt_prog_compiler_static='-Bstatic'
9815 lt_prog_compiler_wl='-Wl,'
9816 lt_prog_compiler_can_build_shared=no
9820 lt_prog_compiler_pic='-pic'
9821 lt_prog_compiler_static='-Bstatic'
9825 lt_prog_compiler_can_build_shared=no
9831 # For platforms which do not support PIC, -DPIC is meaningless:
9833 lt_prog_compiler_pic=
9836 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9840 $as_echo "$lt_prog_compiler_pic" >&6; }
9848 # Check to make sure the PIC flag actually works.
9850 if test -n "$lt_prog_compiler_pic"; then
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9852 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9853 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9854 $as_echo_n "(cached) " >&6
9856 lt_cv_prog_compiler_pic_works=no
9857 ac_outfile=conftest.$ac_objext
9858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9859 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9860 # Insert the option either (1) after the last *FLAGS variable, or
9861 # (2) before a word containing "conftest.", or (3) at the end.
9862 # Note that $ac_compile itself does not contain backslashes and begins
9863 # with a dollar sign (not a hyphen), so the echo should work correctly.
9864 # The option is referenced via a variable to avoid confusing sed.
9865 lt_compile=`echo "$ac_compile" | $SED \
9866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9868 -e 's:$: $lt_compiler_flag:'`
9869 (eval echo "\"\$as_me:9869: $lt_compile\"" >&5)
9870 (eval "$lt_compile" 2>conftest.err)
9872 cat conftest.err >&5
9873 echo "$as_me:9873: \$? = $ac_status" >&5
9874 if (exit $ac_status) && test -s "$ac_outfile"; then
9875 # The compiler can only warn and ignore the option if not recognized
9876 # So say no if there are warnings other than the usual output.
9877 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9878 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9879 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9880 lt_cv_prog_compiler_pic_works=yes
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9887 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9889 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9890 case $lt_prog_compiler_pic in
9892 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9895 lt_prog_compiler_pic=
9896 lt_prog_compiler_can_build_shared=no
9907 # Check to make sure the static flag actually works.
9909 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9911 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9912 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9913 $as_echo_n "(cached) " >&6
9915 lt_cv_prog_compiler_static_works=no
9916 save_LDFLAGS="$LDFLAGS"
9917 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9918 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9919 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9920 # The linker can only warn and ignore the option if not recognized
9921 # So say no if there are warnings
9922 if test -s conftest.err; then
9923 # Append any errors to the config.log.
9924 cat conftest.err 1>&5
9925 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9927 if diff conftest.exp conftest.er2 >/dev/null; then
9928 lt_cv_prog_compiler_static_works=yes
9931 lt_cv_prog_compiler_static_works=yes
9935 LDFLAGS="$save_LDFLAGS"
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9939 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9941 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9944 lt_prog_compiler_static=
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9954 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9955 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9956 $as_echo_n "(cached) " >&6
9958 lt_cv_prog_compiler_c_o=no
9959 $RM -r conftest 2>/dev/null
9963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9965 lt_compiler_flag="-o out/conftest2.$ac_objext"
9966 # Insert the option either (1) after the last *FLAGS variable, or
9967 # (2) before a word containing "conftest.", or (3) at the end.
9968 # Note that $ac_compile itself does not contain backslashes and begins
9969 # with a dollar sign (not a hyphen), so the echo should work correctly.
9970 lt_compile=`echo "$ac_compile" | $SED \
9971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9973 -e 's:$: $lt_compiler_flag:'`
9974 (eval echo "\"\$as_me:9974: $lt_compile\"" >&5)
9975 (eval "$lt_compile" 2>out/conftest.err)
9977 cat out/conftest.err >&5
9978 echo "$as_me:9978: \$? = $ac_status" >&5
9979 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9981 # The compiler can only warn and ignore the option if not recognized
9982 # So say no if there are warnings
9983 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9984 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9985 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9986 lt_cv_prog_compiler_c_o=yes
9991 # SGI C++ compiler will create directory out/ii_files/ for
9992 # template instantiation
9993 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9994 $RM out/* && rmdir out
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10001 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10009 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10010 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10011 $as_echo_n "(cached) " >&6
10013 lt_cv_prog_compiler_c_o=no
10014 $RM -r conftest 2>/dev/null
10018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10020 lt_compiler_flag="-o out/conftest2.$ac_objext"
10021 # Insert the option either (1) after the last *FLAGS variable, or
10022 # (2) before a word containing "conftest.", or (3) at the end.
10023 # Note that $ac_compile itself does not contain backslashes and begins
10024 # with a dollar sign (not a hyphen), so the echo should work correctly.
10025 lt_compile=`echo "$ac_compile" | $SED \
10026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10028 -e 's:$: $lt_compiler_flag:'`
10029 (eval echo "\"\$as_me:10029: $lt_compile\"" >&5)
10030 (eval "$lt_compile" 2>out/conftest.err)
10032 cat out/conftest.err >&5
10033 echo "$as_me:10033: \$? = $ac_status" >&5
10034 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10036 # The compiler can only warn and ignore the option if not recognized
10037 # So say no if there are warnings
10038 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10039 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10040 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10041 lt_cv_prog_compiler_c_o=yes
10046 # SGI C++ compiler will create directory out/ii_files/ for
10047 # template instantiation
10048 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10049 $RM out/* && rmdir out
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10056 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10061 hard_links="nottested"
10062 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10063 # do not overwrite the value of need_locks provided by the user
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10065 $as_echo_n "checking if we can lock with hard links... " >&6; }
10068 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10070 ln conftest.a conftest.b 2>&5 || hard_links=no
10071 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10073 $as_echo "$hard_links" >&6; }
10074 if test "$hard_links" = no; then
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10076 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10089 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10092 allow_undefined_flag=
10093 always_export_symbols=no
10095 archive_expsym_cmds=
10096 compiler_needs_object=no
10097 enable_shared_with_static_runtimes=no
10098 export_dynamic_flag_spec=
10099 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10100 hardcode_automatic=no
10102 hardcode_direct_absolute=no
10103 hardcode_libdir_flag_spec=
10104 hardcode_libdir_flag_spec_ld=
10105 hardcode_libdir_separator=
10106 hardcode_minus_L=no
10107 hardcode_shlibpath_var=unsupported
10109 link_all_deplibs=unknown
10111 module_expsym_cmds=
10112 old_archive_from_new_cmds=
10113 old_archive_from_expsyms_cmds=
10114 thread_safe_flag_spec=
10115 whole_archive_flag_spec=
10116 # include_expsyms should be a list of space-separated symbols to be *always*
10117 # included in the symbol list
10119 # exclude_expsyms can be an extended regexp of symbols to exclude
10120 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10121 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10122 # as well as any symbol that contains `d'.
10123 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10124 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10125 # platforms (ab)use it in PIC code, but their linkers get confused if
10126 # the symbol is explicitly referenced. Since portable code cannot
10127 # rely on this symbol name, it's probably fine to never include it in
10128 # preloaded symbol tables.
10129 # Exclude shared library initialization/finalization symbols.
10130 extract_expsyms_cmds=
10133 cygwin* | mingw* | pw32* | cegcc*)
10134 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10135 # When not using gcc, we currently assume that we are using
10136 # Microsoft Visual C++.
10137 if test "$GCC" != yes; then
10142 # we just hope/assume this is gcc and not c89 (= MSVC++)
10151 if test "$with_gnu_ld" = yes; then
10152 # If archive_cmds runs LD, not CC, wlarc should be empty
10155 # Set some defaults for GNU ld with shared library support. These
10156 # are reset later if shared libraries are not supported. Putting them
10157 # here allows them to be overridden if necessary.
10158 runpath_var=LD_RUN_PATH
10159 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10160 export_dynamic_flag_spec='${wl}--export-dynamic'
10161 # ancient GNU ld didn't support --whole-archive et. al.
10162 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10163 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10165 whole_archive_flag_spec=
10167 supports_anon_versioning=no
10168 case `$LD -v 2>&1` in
10169 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10170 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10171 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10172 *\ 2.11.*) ;; # other 2.11 versions
10173 *) supports_anon_versioning=yes ;;
10176 # See if GNU ld supports shared libraries.
10179 # On AIX/PPC, the GNU linker is very broken
10180 if test "$host_cpu" != ia64; then
10184 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10185 *** to be unable to reliably create shared libraries on AIX.
10186 *** Therefore, libtool is disabling shared libraries support. If you
10187 *** really care for shared libraries, you may want to modify your PATH
10188 *** so that a non-GNU linker is found, and then restart.
10197 # see comment about AmigaOS4 .so support
10198 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10199 archive_expsym_cmds=''
10202 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)'
10203 hardcode_libdir_flag_spec='-L$libdir'
10204 hardcode_minus_L=yes
10210 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10211 allow_undefined_flag=unsupported
10212 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10213 # support --undefined. This deserves some investigation. FIXME
10214 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10220 cygwin* | mingw* | pw32* | cegcc*)
10221 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10222 # as there is no search path for DLLs.
10223 hardcode_libdir_flag_spec='-L$libdir'
10224 allow_undefined_flag=unsupported
10225 always_export_symbols=no
10226 enable_shared_with_static_runtimes=yes
10227 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10229 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10231 # If the export-symbols file already is a .def file (1st line
10232 # is EXPORTS), use it as is; otherwise, prepend...
10233 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10234 cp $export_symbols $output_objdir/$soname.def;
10236 echo EXPORTS > $output_objdir/$soname.def;
10237 cat $export_symbols >> $output_objdir/$soname.def;
10239 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10247 hardcode_shlibpath_var=no
10248 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10249 export_dynamic_flag_spec='${wl}-E'
10250 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10251 # Instead, shared libraries are loaded at an image base (0x10000000 by
10252 # default) and relocated if they conflict, which is a slow very memory
10253 # consuming and fragmenting process. To avoid this, we pick a random,
10254 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10255 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10256 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10257 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'
10260 gnu* | linux* | tpf* | k*bsd*-gnu)
10262 if test "$host_os" = linux-dietlibc; then
10263 case $cc_basename in
10264 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10267 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10268 && test "$tmp_diet" = no
10271 tmp_sharedflag='-shared'
10272 case $cc_basename,$host_cpu in
10273 pgcc*) # Portland Group C compiler
10274 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'
10275 tmp_addflag=' $pic_flag'
10277 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10278 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'
10279 tmp_addflag=' $pic_flag -Mnomain' ;;
10280 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10281 tmp_addflag=' -i_dynamic' ;;
10282 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10283 tmp_addflag=' -i_dynamic -nofor_main' ;;
10284 ifc* | ifort*) # Intel Fortran compiler
10285 tmp_addflag=' -nofor_main' ;;
10286 lf95*) # Lahey Fortran 8.1
10287 whole_archive_flag_spec=
10288 tmp_sharedflag='--shared' ;;
10289 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10290 tmp_sharedflag='-qmkshrobj'
10293 case `$CC -V 2>&1 | sed 5q` in
10294 *Sun\ C*) # Sun C 5.9
10295 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'
10296 compiler_needs_object=yes
10297 tmp_sharedflag='-G' ;;
10298 *Sun\ F*) # Sun Fortran 8.3
10299 tmp_sharedflag='-G' ;;
10301 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10303 if test "x$supports_anon_versioning" = xyes; then
10304 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10305 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10306 echo "local: *; };" >> $output_objdir/$libname.ver~
10307 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10310 case $cc_basename in
10312 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10313 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10314 hardcode_libdir_flag_spec=
10315 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10316 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10317 if test "x$supports_anon_versioning" = xyes; then
10318 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10319 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10320 echo "local: *; };" >> $output_objdir/$libname.ver~
10321 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10331 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10332 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10336 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10341 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10345 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10346 *** create shared libraries on Solaris systems. Therefore, libtool
10347 *** is disabling shared libraries support. We urge you to upgrade GNU
10348 *** binutils to release 2.9.1 or newer. Another option is to modify
10349 *** your PATH or compiler configuration so that the native linker is
10350 *** used, and then restart.
10353 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10355 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10361 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10362 case `$LD -v 2>&1` in
10363 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10367 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10368 *** reliably create shared libraries on SCO systems. Therefore, libtool
10369 *** is disabling shared libraries support. We urge you to upgrade GNU
10370 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10371 *** your PATH or compiler configuration so that the native linker is
10372 *** used, and then restart.
10377 # For security reasons, it is highly recommended that you always
10378 # use absolute paths for naming shared libraries, and exclude the
10379 # DT_RUNPATH tag from executables and libraries. But doing so
10380 # requires that you compile everything twice, which is a pain.
10381 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10382 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10384 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10393 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10395 hardcode_direct=yes
10396 hardcode_shlibpath_var=no
10400 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10402 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10409 if test "$ld_shlibs" = no; then
10411 hardcode_libdir_flag_spec=
10412 export_dynamic_flag_spec=
10413 whole_archive_flag_spec=
10416 # PORTME fill in a description of your system's linker (not GNU ld)
10419 allow_undefined_flag=unsupported
10420 always_export_symbols=yes
10421 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'
10422 # Note: this linker hardcodes the directories in LIBPATH if there
10423 # are no directories specified by -L.
10424 hardcode_minus_L=yes
10425 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10426 # Neither direct hardcoding nor static linking is supported with a
10428 hardcode_direct=unsupported
10433 if test "$host_cpu" = ia64; then
10434 # On IA64, the linker does run time linking by default, so we don't
10435 # have to do anything special.
10436 aix_use_runtimelinking=no
10437 exp_sym_flag='-Bexport'
10440 # If we're using GNU nm, then we don't want the "-C" option.
10441 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10442 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10443 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'
10445 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'
10447 aix_use_runtimelinking=no
10449 # Test if we are trying to use run time linking or normal
10450 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10451 # need to do runtime linking.
10452 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10453 for ld_flag in $LDFLAGS; do
10454 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10455 aix_use_runtimelinking=yes
10462 exp_sym_flag='-bexport'
10463 no_entry_flag='-bnoentry'
10466 # When large executables or shared objects are built, AIX ld can
10467 # have problems creating the table of contents. If linking a library
10468 # or program results in "error TOC overflow" add -mminimal-toc to
10469 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10470 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10473 hardcode_direct=yes
10474 hardcode_direct_absolute=yes
10475 hardcode_libdir_separator=':'
10476 link_all_deplibs=yes
10477 file_list_spec='${wl}-f,'
10479 if test "$GCC" = yes; then
10480 case $host_os in aix4.[012]|aix4.[012].*)
10481 # We only want to do this on AIX 4.2 and lower, the check
10482 # below for broken collect2 doesn't work under 4.3+
10483 collect2name=`${CC} -print-prog-name=collect2`
10484 if test -f "$collect2name" &&
10485 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10487 # We have reworked collect2
10490 # We have old collect2
10491 hardcode_direct=unsupported
10492 # It fails to find uninstalled libraries when the uninstalled
10493 # path is not listed in the libpath. Setting hardcode_minus_L
10494 # to unsupported forces relinking
10495 hardcode_minus_L=yes
10496 hardcode_libdir_flag_spec='-L$libdir'
10497 hardcode_libdir_separator=
10501 shared_flag='-shared'
10502 if test "$aix_use_runtimelinking" = yes; then
10503 shared_flag="$shared_flag "'${wl}-G'
10507 if test "$host_cpu" = ia64; then
10508 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10509 # chokes on -Wl,-G. The following line is correct:
10512 if test "$aix_use_runtimelinking" = yes; then
10513 shared_flag='${wl}-G'
10515 shared_flag='${wl}-bM:SRE'
10520 export_dynamic_flag_spec='${wl}-bexpall'
10521 # It seems that -bexpall does not export symbols beginning with
10522 # underscore (_), so it is better to generate a list of symbols to export.
10523 always_export_symbols=yes
10524 if test "$aix_use_runtimelinking" = yes; then
10525 # Warning - without using the other runtime loading flags (-brtl),
10526 # -berok will link without error, but may produce a broken library.
10527 allow_undefined_flag='-berok'
10528 # Determine the default libpath from the value encoded in an
10529 # empty executable.
10530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531 /* end confdefs.h. */
10541 if ac_fn_c_try_link "$LINENO"; then :
10543 lt_aix_libpath_sed='
10544 /Import File Strings/,/^$/ {
10550 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10551 # Check for a 64-bit object if we didn't find anything.
10552 if test -z "$aix_libpath"; then
10553 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10556 rm -f core conftest.err conftest.$ac_objext \
10557 conftest$ac_exeext conftest.$ac_ext
10558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10560 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10561 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"
10563 if test "$host_cpu" = ia64; then
10564 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10565 allow_undefined_flag="-z nodefs"
10566 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"
10568 # Determine the default libpath from the value encoded in an
10569 # empty executable.
10570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10571 /* end confdefs.h. */
10581 if ac_fn_c_try_link "$LINENO"; then :
10583 lt_aix_libpath_sed='
10584 /Import File Strings/,/^$/ {
10590 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10591 # Check for a 64-bit object if we didn't find anything.
10592 if test -z "$aix_libpath"; then
10593 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10596 rm -f core conftest.err conftest.$ac_objext \
10597 conftest$ac_exeext conftest.$ac_ext
10598 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10600 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10601 # Warning - without using the other run time loading flags,
10602 # -berok will link without error, but may produce a broken library.
10603 no_undefined_flag=' ${wl}-bernotok'
10604 allow_undefined_flag=' ${wl}-berok'
10605 # Exported symbols can be pulled into shared objects from archives
10606 whole_archive_flag_spec='$convenience'
10607 archive_cmds_need_lc=yes
10608 # This is similar to how AIX traditionally builds its shared libraries.
10609 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'
10617 # see comment about AmigaOS4 .so support
10618 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10619 archive_expsym_cmds=''
10622 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)'
10623 hardcode_libdir_flag_spec='-L$libdir'
10624 hardcode_minus_L=yes
10630 export_dynamic_flag_spec=-rdynamic
10633 cygwin* | mingw* | pw32* | cegcc*)
10634 # When not using gcc, we currently assume that we are using
10635 # Microsoft Visual C++.
10636 # hardcode_libdir_flag_spec is actually meaningless, as there is
10637 # no search path for DLLs.
10638 hardcode_libdir_flag_spec=' '
10639 allow_undefined_flag=unsupported
10640 # Tell ltmain to make .lib files, not .a files.
10642 # Tell ltmain to make .dll files, not .so files.
10644 # FIXME: Setting linknames here is a bad hack.
10645 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10646 # The linker will automatically build a .lib file if we build a DLL.
10647 old_archive_from_new_cmds='true'
10648 # FIXME: Should let the user specify the lib program.
10649 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10650 fix_srcfile_path='`cygpath -w "$srcfile"`'
10651 enable_shared_with_static_runtimes=yes
10654 darwin* | rhapsody*)
10657 archive_cmds_need_lc=no
10659 hardcode_automatic=yes
10660 hardcode_shlibpath_var=unsupported
10661 whole_archive_flag_spec=''
10662 link_all_deplibs=yes
10663 allow_undefined_flag="$_lt_dar_allow_undefined"
10664 case $cc_basename in
10665 ifort*) _lt_dar_can_shared=yes ;;
10666 *) _lt_dar_can_shared=$GCC ;;
10668 if test "$_lt_dar_can_shared" = "yes"; then
10669 output_verbose_link_cmd=echo
10670 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10671 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10672 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}"
10673 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}"
10682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10683 hardcode_libdir_flag_spec='-L$libdir'
10684 hardcode_shlibpath_var=no
10691 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10692 # support. Future versions do this automatically, but an explicit c++rt0.o
10693 # does not break anything, and helps significantly (at the cost of a little
10696 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10697 hardcode_libdir_flag_spec='-R$libdir'
10698 hardcode_direct=yes
10699 hardcode_shlibpath_var=no
10702 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10704 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10705 hardcode_direct=yes
10706 hardcode_minus_L=yes
10707 hardcode_shlibpath_var=no
10710 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10711 freebsd* | dragonfly*)
10712 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10713 hardcode_libdir_flag_spec='-R$libdir'
10714 hardcode_direct=yes
10715 hardcode_shlibpath_var=no
10719 if test "$GCC" = yes; then
10720 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'
10722 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'
10724 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10725 hardcode_libdir_separator=:
10726 hardcode_direct=yes
10728 # hardcode_minus_L: Not really in the search PATH,
10729 # but as the default location of the library.
10730 hardcode_minus_L=yes
10731 export_dynamic_flag_spec='${wl}-E'
10735 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10736 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10738 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10740 if test "$with_gnu_ld" = no; then
10741 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10742 hardcode_libdir_flag_spec_ld='+b $libdir'
10743 hardcode_libdir_separator=:
10744 hardcode_direct=yes
10745 hardcode_direct_absolute=yes
10746 export_dynamic_flag_spec='${wl}-E'
10747 # hardcode_minus_L: Not really in the search PATH,
10748 # but as the default location of the library.
10749 hardcode_minus_L=yes
10754 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10757 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10760 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10763 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10769 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10772 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10775 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10779 if test "$with_gnu_ld" = no; then
10780 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10781 hardcode_libdir_separator=:
10786 hardcode_shlibpath_var=no
10789 hardcode_direct=yes
10790 hardcode_direct_absolute=yes
10791 export_dynamic_flag_spec='${wl}-E'
10793 # hardcode_minus_L: Not really in the search PATH,
10794 # but as the default location of the library.
10795 hardcode_minus_L=yes
10801 irix5* | irix6* | nonstopux*)
10802 if test "$GCC" = yes; then
10803 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'
10804 # Try to use the -exported_symbol ld option, if it does not
10805 # work, assume that -exports_file does not work either and
10806 # implicitly export all symbols.
10807 save_LDFLAGS="$LDFLAGS"
10808 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h. */
10813 if ac_fn_c_try_link "$LINENO"; then :
10814 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'
10817 rm -f core conftest.err conftest.$ac_objext \
10818 conftest$ac_exeext conftest.$ac_ext
10819 LDFLAGS="$save_LDFLAGS"
10821 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'
10822 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'
10824 archive_cmds_need_lc='no'
10825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10826 hardcode_libdir_separator=:
10828 link_all_deplibs=yes
10832 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10833 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10835 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10837 hardcode_libdir_flag_spec='-R$libdir'
10838 hardcode_direct=yes
10839 hardcode_shlibpath_var=no
10843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10844 hardcode_direct=yes
10845 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10846 hardcode_libdir_separator=:
10847 hardcode_shlibpath_var=no
10854 if test -f /usr/libexec/ld.so; then
10855 hardcode_direct=yes
10856 hardcode_shlibpath_var=no
10857 hardcode_direct_absolute=yes
10858 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10859 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10860 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10861 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10862 export_dynamic_flag_spec='${wl}-E'
10865 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10866 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10867 hardcode_libdir_flag_spec='-R$libdir'
10870 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10871 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10881 hardcode_libdir_flag_spec='-L$libdir'
10882 hardcode_minus_L=yes
10883 allow_undefined_flag=unsupported
10884 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'
10885 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10889 if test "$GCC" = yes; then
10890 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10891 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'
10893 allow_undefined_flag=' -expect_unresolved \*'
10894 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'
10896 archive_cmds_need_lc='no'
10897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10898 hardcode_libdir_separator=:
10901 osf4* | osf5*) # as osf3* with the addition of -msym flag
10902 if test "$GCC" = yes; then
10903 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10904 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'
10905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10907 allow_undefined_flag=' -expect_unresolved \*'
10908 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'
10909 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~
10910 $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'
10912 # Both c and cxx compiler support -rpath directly
10913 hardcode_libdir_flag_spec='-rpath $libdir'
10915 archive_cmds_need_lc='no'
10916 hardcode_libdir_separator=:
10920 no_undefined_flag=' -z defs'
10921 if test "$GCC" = yes; then
10923 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10924 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10925 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10927 case `$CC -V 2>&1` in
10930 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10931 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10932 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10936 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10937 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10938 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10942 hardcode_libdir_flag_spec='-R$libdir'
10943 hardcode_shlibpath_var=no
10945 solaris2.[0-5] | solaris2.[0-5].*) ;;
10947 # The compiler driver will combine and reorder linker options,
10948 # but understands `-z linker_flag'. GCC discards it without `$wl',
10949 # but is careful enough not to reorder.
10950 # Supported since Solaris 2.6 (maybe 2.5.1?)
10951 if test "$GCC" = yes; then
10952 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10954 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10958 link_all_deplibs=yes
10962 if test "x$host_vendor" = xsequent; then
10963 # Use $CC to link under sequent, because it throws in some extra .o
10964 # files that make .init and .fini sections work.
10965 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10967 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10969 hardcode_libdir_flag_spec='-L$libdir'
10970 hardcode_direct=yes
10971 hardcode_minus_L=yes
10972 hardcode_shlibpath_var=no
10976 case $host_vendor in
10978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10979 hardcode_direct=yes # is this really true???
10982 ## LD is ld it makes a PLAMLIB
10983 ## CC just makes a GrossModule.
10984 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10985 reload_cmds='$CC -r -o $output$reload_objs'
10989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10990 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10993 runpath_var='LD_RUN_PATH'
10994 hardcode_shlibpath_var=no
10998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10999 hardcode_shlibpath_var=no
11000 export_dynamic_flag_spec='-Bexport'
11004 if test -d /usr/nec; then
11005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11006 hardcode_shlibpath_var=no
11007 runpath_var=LD_RUN_PATH
11008 hardcode_runpath_var=yes
11013 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11014 no_undefined_flag='${wl}-z,text'
11015 archive_cmds_need_lc=no
11016 hardcode_shlibpath_var=no
11017 runpath_var='LD_RUN_PATH'
11019 if test "$GCC" = yes; then
11020 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11021 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11023 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11024 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11028 sysv5* | sco3.2v5* | sco5v6*)
11029 # Note: We can NOT use -z defs as we might desire, because we do not
11030 # link with -lc, and that would cause any symbols used from libc to
11031 # always be unresolved, which means just about no library would
11032 # ever link correctly. If we're not using GNU ld we use -z text
11033 # though, which does catch some bad symbols but isn't as heavy-handed
11035 no_undefined_flag='${wl}-z,text'
11036 allow_undefined_flag='${wl}-z,nodefs'
11037 archive_cmds_need_lc=no
11038 hardcode_shlibpath_var=no
11039 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11040 hardcode_libdir_separator=':'
11041 link_all_deplibs=yes
11042 export_dynamic_flag_spec='${wl}-Bexport'
11043 runpath_var='LD_RUN_PATH'
11045 if test "$GCC" = yes; then
11046 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11047 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11049 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11050 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11056 hardcode_libdir_flag_spec='-L$libdir'
11057 hardcode_shlibpath_var=no
11065 if test x$host_vendor = xsni; then
11067 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11068 export_dynamic_flag_spec='${wl}-Blargedynsym'
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11075 $as_echo "$ld_shlibs" >&6; }
11076 test "$ld_shlibs" = no && can_build_shared=no
11078 with_gnu_ld=$with_gnu_ld
11095 # Do we need to explicitly link libc?
11097 case "x$archive_cmds_need_lc" in
11099 # Assume -lc should be added
11100 archive_cmds_need_lc=yes
11102 if test "$enable_shared" = yes && test "$GCC" = yes; then
11103 case $archive_cmds in
11105 # FIXME: we may have to deal with multi-command sequences.
11108 # Test whether the compiler implicitly links with -lc since on some
11109 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11110 # to ld, don't add -lc before -lgcc.
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11112 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11117 (eval $ac_compile) 2>&5
11119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11120 test $ac_status = 0; } 2>conftest.err; then
11123 libobjs=conftest.$ac_objext
11125 wl=$lt_prog_compiler_wl
11126 pic_flag=$lt_prog_compiler_pic
11132 lt_save_allow_undefined_flag=$allow_undefined_flag
11133 allow_undefined_flag=
11134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11135 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11138 test $ac_status = 0; }
11140 archive_cmds_need_lc=no
11142 archive_cmds_need_lc=yes
11144 allow_undefined_flag=$lt_save_allow_undefined_flag
11146 cat conftest.err 1>&5
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11150 $as_echo "$archive_cmds_need_lc" >&6; }
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11314 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11316 if test "$GCC" = yes; then
11318 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11319 *) lt_awk_arg="/^libraries:/" ;;
11321 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11322 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11323 # if the path contains ";" then we assume it to be the separator
11324 # otherwise default to the standard path separator (i.e. ":") - it is
11325 # assumed that no part of a normal pathname contains ";" but that should
11326 # okay in the real world where ";" in dirpaths is itself problematic.
11327 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11329 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11331 # Ok, now we have the path, separated by spaces, we can step through it
11332 # and add multilib dir if necessary.
11333 lt_tmp_lt_search_path_spec=
11334 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11335 for lt_sys_path in $lt_search_path_spec; do
11336 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11337 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11339 test -d "$lt_sys_path" && \
11340 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11343 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11344 BEGIN {RS=" "; FS="/|\n";} {
11347 for (lt_i = NF; lt_i > 0; lt_i--) {
11348 if ($lt_i != "" && $lt_i != ".") {
11349 if ($lt_i == "..") {
11352 if (lt_count == 0) {
11353 lt_foo="/" $lt_i lt_foo;
11360 if (lt_foo != "") { lt_freq[lt_foo]++; }
11361 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11363 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11365 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11367 library_names_spec=
11368 libname_spec='lib$name'
11372 postuninstall_cmds=
11376 shlibpath_overrides_runpath=unknown
11378 dynamic_linker="$host_os ld.so"
11379 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11380 need_lib_prefix=unknown
11381 hardcode_into_libs=no
11383 # when you set need_version to no, make sure it does not cause -set_version
11384 # flags to be left without arguments
11385 need_version=unknown
11390 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11391 shlibpath_var=LIBPATH
11393 # AIX 3 has no versioning support, so we append a major version to the name.
11394 soname_spec='${libname}${release}${shared_ext}$major'
11401 hardcode_into_libs=yes
11402 if test "$host_cpu" = ia64; then
11403 # AIX 5 supports IA64
11404 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11405 shlibpath_var=LD_LIBRARY_PATH
11407 # With GCC up to 2.95.x, collect2 would create an import file
11408 # for dependence libraries. The import file would start with
11409 # the line `#! .'. This would cause the generated library to
11410 # depend on `.', always an invalid library. This was fixed in
11411 # development snapshots of GCC prior to 3.0.
11413 aix4 | aix4.[01] | aix4.[01].*)
11414 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11416 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11419 can_build_shared=no
11423 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11424 # soname into executable. Probably we can add versioning support to
11425 # collect2, so additional links can be useful in future.
11426 if test "$aix_use_runtimelinking" = yes; then
11427 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11428 # instead of lib<name>.a to let people know that these are not
11429 # typical AIX shared libraries.
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11432 # We preserve .a as extension for shared libraries through AIX4.2
11433 # and later when we are not doing run time linking.
11434 library_names_spec='${libname}${release}.a $libname.a'
11435 soname_spec='${libname}${release}${shared_ext}$major'
11437 shlibpath_var=LIBPATH
11444 # Since July 2007 AmigaOS4 officially supports .so libraries.
11445 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11449 library_names_spec='$libname.ixlibrary $libname.a'
11450 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11451 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'
11457 library_names_spec='${libname}${shared_ext}'
11458 dynamic_linker="$host_os ld.so"
11459 shlibpath_var=LIBRARY_PATH
11465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11466 soname_spec='${libname}${release}${shared_ext}$major'
11467 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11468 shlibpath_var=LD_LIBRARY_PATH
11469 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11470 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11471 # the default ld.so.conf also contains /usr/contrib/lib and
11472 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11473 # libtool to hard-code these into programs
11476 cygwin* | mingw* | pw32* | cegcc*)
11477 version_type=windows
11482 case $GCC,$host_os in
11483 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11484 library_names_spec='$libname.dll.a'
11485 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11486 postinstall_cmds='base_file=`basename \${file}`~
11487 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11488 dldir=$destdir/`dirname \$dlpath`~
11489 test -d \$dldir || mkdir -p \$dldir~
11490 $install_prog $dir/$dlname \$dldir/$dlname~
11491 chmod a+x \$dldir/$dlname~
11492 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11493 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11495 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11496 dlpath=$dir/\$dldll~
11498 shlibpath_overrides_runpath=yes
11502 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11503 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11504 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11507 # MinGW DLLs use traditional 'lib' prefix
11508 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11509 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11510 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11511 # It is most probably a Windows format PATH printed by
11512 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11513 # path with ; separators, and with drive letters. We can handle the
11514 # drive letters (cygwin fileutils understands them), so leave them,
11515 # especially as we might pass files found there to a mingw objdump,
11516 # which wouldn't understand a cygwinified path. Ahh.
11517 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11519 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11523 # pw32 DLLs use 'pw' prefix rather than 'lib'
11524 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11530 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11533 dynamic_linker='Win32 ld.exe'
11534 # FIXME: first we should search . and the directory the executable is in
11538 darwin* | rhapsody*)
11539 dynamic_linker="$host_os dyld"
11540 version_type=darwin
11543 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11544 soname_spec='${libname}${release}${major}$shared_ext'
11545 shlibpath_overrides_runpath=yes
11546 shlibpath_var=DYLD_LIBRARY_PATH
11547 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11549 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11550 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11558 soname_spec='${libname}${release}${shared_ext}$major'
11559 shlibpath_var=LD_LIBRARY_PATH
11566 freebsd* | dragonfly*)
11567 # DragonFly does not have aout. When/if they implement a new
11568 # versioning mechanism, adjust this.
11569 if test -x /usr/bin/objformat; then
11570 objformat=`/usr/bin/objformat`
11573 freebsd[123]*) objformat=aout ;;
11574 *) objformat=elf ;;
11577 version_type=freebsd-$objformat
11578 case $version_type in
11580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11589 shlibpath_var=LD_LIBRARY_PATH
11592 shlibpath_overrides_runpath=yes
11594 freebsd3.[01]* | freebsdelf3.[01]*)
11595 shlibpath_overrides_runpath=yes
11596 hardcode_into_libs=yes
11598 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11599 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11600 shlibpath_overrides_runpath=no
11601 hardcode_into_libs=yes
11603 *) # from 4.6 on, and DragonFly
11604 shlibpath_overrides_runpath=yes
11605 hardcode_into_libs=yes
11614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11615 soname_spec='${libname}${release}${shared_ext}$major'
11616 shlibpath_var=LD_LIBRARY_PATH
11617 hardcode_into_libs=yes
11620 hpux9* | hpux10* | hpux11*)
11621 # Give a soname corresponding to the major version so that dld.sl refuses to
11622 # link against other versions.
11629 hardcode_into_libs=yes
11630 dynamic_linker="$host_os dld.so"
11631 shlibpath_var=LD_LIBRARY_PATH
11632 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634 soname_spec='${libname}${release}${shared_ext}$major'
11635 if test "X$HPUX_IA64_MODE" = X32; then
11636 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11638 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11644 hardcode_into_libs=yes
11645 dynamic_linker="$host_os dld.sl"
11646 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11647 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11649 soname_spec='${libname}${release}${shared_ext}$major'
11650 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11651 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11655 dynamic_linker="$host_os dld.sl"
11656 shlibpath_var=SHLIB_PATH
11657 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11659 soname_spec='${libname}${release}${shared_ext}$major'
11662 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11663 postinstall_cmds='chmod 555 $lib'
11670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11671 soname_spec='${libname}${release}${shared_ext}$major'
11672 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11673 shlibpath_var=LD_LIBRARY_PATH
11674 shlibpath_overrides_runpath=no
11675 hardcode_into_libs=yes
11678 irix5* | irix6* | nonstopux*)
11680 nonstopux*) version_type=nonstopux ;;
11682 if test "$lt_cv_prog_gnu_ld" = yes; then
11690 soname_spec='${libname}${release}${shared_ext}$major'
11691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11693 irix5* | nonstopux*)
11694 libsuff= shlibsuff=
11697 case $LD in # libtool.m4 will add one of these switches to LD
11698 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11699 libsuff= shlibsuff= libmagic=32-bit;;
11700 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11701 libsuff=32 shlibsuff=N32 libmagic=N32;;
11702 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11703 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11704 *) libsuff= shlibsuff= libmagic=never-match;;
11708 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11709 shlibpath_overrides_runpath=no
11710 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11711 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11712 hardcode_into_libs=yes
11715 # No shared lib support for Linux oldld, aout, or coff.
11716 linux*oldld* | linux*aout* | linux*coff*)
11720 # This must be Linux ELF.
11721 linux* | k*bsd*-gnu)
11725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11726 soname_spec='${libname}${release}${shared_ext}$major'
11727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11728 shlibpath_var=LD_LIBRARY_PATH
11729 shlibpath_overrides_runpath=no
11730 # Some binutils ld are patched to set DT_RUNPATH
11731 save_LDFLAGS=$LDFLAGS
11732 save_libdir=$libdir
11733 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11734 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11746 if ac_fn_c_try_link "$LINENO"; then :
11747 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11748 shlibpath_overrides_runpath=yes
11751 rm -f core conftest.err conftest.$ac_objext \
11752 conftest$ac_exeext conftest.$ac_ext
11753 LDFLAGS=$save_LDFLAGS
11754 libdir=$save_libdir
11756 # This implies no fast_install, which is unacceptable.
11757 # Some rework will be needed to allow for fast_install
11758 # before this can be enabled.
11759 hardcode_into_libs=yes
11761 # Append ld.so.conf contents to the search path
11762 if test -f /etc/ld.so.conf; then
11763 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' ' '`
11764 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11767 # We used to test for /lib/ld.so.1 and disable shared libraries on
11768 # powerpc, because MkLinux only supported shared libraries with the
11769 # GNU dynamic linker. Since this was broken with cross compilers,
11770 # most powerpc-linux boxes support dynamic linking these days and
11771 # people can always --disable-shared, the test was removed, and we
11772 # assume the GNU/Linux dynamic linker is in use.
11773 dynamic_linker='GNU/Linux ld.so'
11780 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11782 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11783 dynamic_linker='NetBSD (a.out) ld.so'
11785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11786 soname_spec='${libname}${release}${shared_ext}$major'
11787 dynamic_linker='NetBSD ld.elf_so'
11789 shlibpath_var=LD_LIBRARY_PATH
11790 shlibpath_overrides_runpath=yes
11791 hardcode_into_libs=yes
11796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11797 shlibpath_var=LD_LIBRARY_PATH
11798 shlibpath_overrides_runpath=yes
11805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11806 soname_spec='${libname}${release}${shared_ext}$major'
11807 shlibpath_var=LD_LIBRARY_PATH
11808 shlibpath_overrides_runpath=no
11809 hardcode_into_libs=yes
11810 dynamic_linker='ldqnx.so'
11815 sys_lib_dlsearch_path_spec="/usr/lib"
11817 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11819 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11820 *) need_version=no ;;
11822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11824 shlibpath_var=LD_LIBRARY_PATH
11825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11827 openbsd2.[89] | openbsd2.[89].*)
11828 shlibpath_overrides_runpath=no
11831 shlibpath_overrides_runpath=yes
11835 shlibpath_overrides_runpath=yes
11840 libname_spec='$name'
11843 library_names_spec='$libname${shared_ext} $libname.a'
11844 dynamic_linker='OS/2 ld.exe'
11845 shlibpath_var=LIBPATH
11848 osf3* | osf4* | osf5*)
11852 soname_spec='${libname}${release}${shared_ext}$major'
11853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11854 shlibpath_var=LD_LIBRARY_PATH
11855 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11856 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11868 soname_spec='${libname}${release}${shared_ext}$major'
11869 shlibpath_var=LD_LIBRARY_PATH
11870 shlibpath_overrides_runpath=yes
11871 hardcode_into_libs=yes
11872 # ldd complains unless libraries are executable
11873 postinstall_cmds='chmod +x $lib'
11878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11879 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11880 shlibpath_var=LD_LIBRARY_PATH
11881 shlibpath_overrides_runpath=yes
11882 if test "$with_gnu_ld" = yes; then
11890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11891 soname_spec='${libname}${release}${shared_ext}$major'
11892 shlibpath_var=LD_LIBRARY_PATH
11893 case $host_vendor in
11895 shlibpath_overrides_runpath=no
11897 runpath_var=LD_RUN_PATH
11905 shlibpath_overrides_runpath=no
11906 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11912 if test -d /usr/nec ;then
11914 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11915 soname_spec='$libname${shared_ext}.$major'
11916 shlibpath_var=LD_LIBRARY_PATH
11920 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11921 version_type=freebsd-elf
11924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11925 soname_spec='${libname}${release}${shared_ext}$major'
11926 shlibpath_var=LD_LIBRARY_PATH
11927 shlibpath_overrides_runpath=yes
11928 hardcode_into_libs=yes
11929 if test "$with_gnu_ld" = yes; then
11930 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11932 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11935 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11939 sys_lib_dlsearch_path_spec='/usr/lib'
11943 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11948 shlibpath_var=LD_LIBRARY_PATH
11949 shlibpath_overrides_runpath=no
11950 hardcode_into_libs=yes
11955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11956 soname_spec='${libname}${release}${shared_ext}$major'
11957 shlibpath_var=LD_LIBRARY_PATH
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11965 $as_echo "$dynamic_linker" >&6; }
11966 test "$dynamic_linker" = no && can_build_shared=no
11968 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11969 if test "$GCC" = yes; then
11970 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11973 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11974 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11976 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11977 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12067 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12069 if test -n "$hardcode_libdir_flag_spec" ||
12070 test -n "$runpath_var" ||
12071 test "X$hardcode_automatic" = "Xyes" ; then
12073 # We can hardcode non-existent directories.
12074 if test "$hardcode_direct" != no &&
12075 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12076 # have to relink, otherwise we might link with an installed library
12077 # when we should be linking with a yet-to-be-installed one
12078 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12079 test "$hardcode_minus_L" != no; then
12080 # Linking always hardcodes the temporary library directory.
12081 hardcode_action=relink
12083 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12084 hardcode_action=immediate
12087 # We cannot hardcode anything, or else we can only hardcode existing
12089 hardcode_action=unsupported
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12092 $as_echo "$hardcode_action" >&6; }
12094 if test "$hardcode_action" = relink ||
12095 test "$inherit_rpath" = yes; then
12096 # Fast installation is not supported
12097 enable_fast_install=no
12098 elif test "$shlibpath_overrides_runpath" = yes ||
12099 test "$enable_shared" = no; then
12100 # Fast installation is not necessary
12101 enable_fast_install=needless
12109 if test "x$enable_dlopen" != xyes; then
12110 enable_dlopen=unknown
12111 enable_dlopen_self=unknown
12112 enable_dlopen_self_static=unknown
12119 lt_cv_dlopen="load_add_on"
12121 lt_cv_dlopen_self=yes
12124 mingw* | pw32* | cegcc*)
12125 lt_cv_dlopen="LoadLibrary"
12130 lt_cv_dlopen="dlopen"
12135 # if libdl is installed we need to link against it
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12137 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12138 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12139 $as_echo_n "(cached) " >&6
12141 ac_check_lib_save_LIBS=$LIBS
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h. */
12146 /* Override any GCC internal prototype to avoid an error.
12147 Use char because int might match the return type of a GCC
12148 builtin and then its argument prototype would still apply. */
12161 if ac_fn_c_try_link "$LINENO"; then :
12162 ac_cv_lib_dl_dlopen=yes
12164 ac_cv_lib_dl_dlopen=no
12166 rm -f core conftest.err conftest.$ac_objext \
12167 conftest$ac_exeext conftest.$ac_ext
12168 LIBS=$ac_check_lib_save_LIBS
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12171 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12172 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12173 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12176 lt_cv_dlopen="dyld"
12178 lt_cv_dlopen_self=yes
12185 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12186 if test "x$ac_cv_func_shl_load" = x""yes; then :
12187 lt_cv_dlopen="shl_load"
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12190 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12191 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12192 $as_echo_n "(cached) " >&6
12194 ac_check_lib_save_LIBS=$LIBS
12196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197 /* end confdefs.h. */
12199 /* Override any GCC internal prototype to avoid an error.
12200 Use char because int might match the return type of a GCC
12201 builtin and then its argument prototype would still apply. */
12209 return shl_load ();
12214 if ac_fn_c_try_link "$LINENO"; then :
12215 ac_cv_lib_dld_shl_load=yes
12217 ac_cv_lib_dld_shl_load=no
12219 rm -f core conftest.err conftest.$ac_objext \
12220 conftest$ac_exeext conftest.$ac_ext
12221 LIBS=$ac_check_lib_save_LIBS
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12224 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12225 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12226 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12228 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12229 if test "x$ac_cv_func_dlopen" = x""yes; then :
12230 lt_cv_dlopen="dlopen"
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12233 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12234 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12235 $as_echo_n "(cached) " >&6
12237 ac_check_lib_save_LIBS=$LIBS
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12242 /* Override any GCC internal prototype to avoid an error.
12243 Use char because int might match the return type of a GCC
12244 builtin and then its argument prototype would still apply. */
12257 if ac_fn_c_try_link "$LINENO"; then :
12258 ac_cv_lib_dl_dlopen=yes
12260 ac_cv_lib_dl_dlopen=no
12262 rm -f core conftest.err conftest.$ac_objext \
12263 conftest$ac_exeext conftest.$ac_ext
12264 LIBS=$ac_check_lib_save_LIBS
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12267 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12268 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12269 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12272 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12273 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12274 $as_echo_n "(cached) " >&6
12276 ac_check_lib_save_LIBS=$LIBS
12277 LIBS="-lsvld $LIBS"
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12281 /* Override any GCC internal prototype to avoid an error.
12282 Use char because int might match the return type of a GCC
12283 builtin and then its argument prototype would still apply. */
12296 if ac_fn_c_try_link "$LINENO"; then :
12297 ac_cv_lib_svld_dlopen=yes
12299 ac_cv_lib_svld_dlopen=no
12301 rm -f core conftest.err conftest.$ac_objext \
12302 conftest$ac_exeext conftest.$ac_ext
12303 LIBS=$ac_check_lib_save_LIBS
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12306 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12307 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12308 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12311 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12312 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12313 $as_echo_n "(cached) " >&6
12315 ac_check_lib_save_LIBS=$LIBS
12317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12318 /* end confdefs.h. */
12320 /* Override any GCC internal prototype to avoid an error.
12321 Use char because int might match the return type of a GCC
12322 builtin and then its argument prototype would still apply. */
12330 return dld_link ();
12335 if ac_fn_c_try_link "$LINENO"; then :
12336 ac_cv_lib_dld_dld_link=yes
12338 ac_cv_lib_dld_dld_link=no
12340 rm -f core conftest.err conftest.$ac_objext \
12341 conftest$ac_exeext conftest.$ac_ext
12342 LIBS=$ac_check_lib_save_LIBS
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12345 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12346 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12347 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12368 if test "x$lt_cv_dlopen" != xno; then
12374 case $lt_cv_dlopen in
12376 save_CPPFLAGS="$CPPFLAGS"
12377 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12379 save_LDFLAGS="$LDFLAGS"
12380 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12383 LIBS="$lt_cv_dlopen_libs $LIBS"
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12386 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12387 if test "${lt_cv_dlopen_self+set}" = set; then :
12388 $as_echo_n "(cached) " >&6
12390 if test "$cross_compiling" = yes; then :
12391 lt_cv_dlopen_self=cross
12393 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12394 lt_status=$lt_dlunknown
12395 cat > conftest.$ac_ext <<_LT_EOF
12396 #line 12396 "configure"
12397 #include "confdefs.h"
12406 # define LT_DLGLOBAL RTLD_GLOBAL
12409 # define LT_DLGLOBAL DL_GLOBAL
12411 # define LT_DLGLOBAL 0
12415 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12416 find out it does not work in some platform. */
12417 #ifndef LT_DLLAZY_OR_NOW
12419 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12422 # define LT_DLLAZY_OR_NOW DL_LAZY
12425 # define LT_DLLAZY_OR_NOW RTLD_NOW
12428 # define LT_DLLAZY_OR_NOW DL_NOW
12430 # define LT_DLLAZY_OR_NOW 0
12437 void fnord() { int i=42;}
12440 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12441 int status = $lt_dlunknown;
12445 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12446 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12447 /* dlclose (self); */
12455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12456 (eval $ac_link) 2>&5
12458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12459 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12460 (./conftest; exit; ) >&5 2>/dev/null
12462 case x$lt_status in
12463 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12464 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12465 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12468 # compilation failed
12469 lt_cv_dlopen_self=no
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12477 $as_echo "$lt_cv_dlopen_self" >&6; }
12479 if test "x$lt_cv_dlopen_self" = xyes; then
12480 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12482 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12483 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12484 $as_echo_n "(cached) " >&6
12486 if test "$cross_compiling" = yes; then :
12487 lt_cv_dlopen_self_static=cross
12489 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12490 lt_status=$lt_dlunknown
12491 cat > conftest.$ac_ext <<_LT_EOF
12492 #line 12492 "configure"
12493 #include "confdefs.h"
12502 # define LT_DLGLOBAL RTLD_GLOBAL
12505 # define LT_DLGLOBAL DL_GLOBAL
12507 # define LT_DLGLOBAL 0
12511 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12512 find out it does not work in some platform. */
12513 #ifndef LT_DLLAZY_OR_NOW
12515 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12518 # define LT_DLLAZY_OR_NOW DL_LAZY
12521 # define LT_DLLAZY_OR_NOW RTLD_NOW
12524 # define LT_DLLAZY_OR_NOW DL_NOW
12526 # define LT_DLLAZY_OR_NOW 0
12533 void fnord() { int i=42;}
12536 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12537 int status = $lt_dlunknown;
12541 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12542 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12543 /* dlclose (self); */
12551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12552 (eval $ac_link) 2>&5
12554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12555 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12556 (./conftest; exit; ) >&5 2>/dev/null
12558 case x$lt_status in
12559 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12560 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12561 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12564 # compilation failed
12565 lt_cv_dlopen_self_static=no
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12573 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12576 CPPFLAGS="$save_CPPFLAGS"
12577 LDFLAGS="$save_LDFLAGS"
12582 case $lt_cv_dlopen_self in
12583 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12584 *) enable_dlopen_self=unknown ;;
12587 case $lt_cv_dlopen_self_static in
12588 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12589 *) enable_dlopen_self_static=unknown ;;
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12612 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12613 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12614 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12615 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12617 $as_echo "yes" >&6; }
12619 # FIXME - insert some real tests, host_os isn't really good enough
12622 if test -n "$STRIP" ; then
12623 striplib="$STRIP -x"
12624 old_striplib="$STRIP -S"
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12626 $as_echo "yes" >&6; }
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629 $as_echo "no" >&6; }
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12650 # Report which library types will actually be built
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12652 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12654 $as_echo "$can_build_shared" >&6; }
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12657 $as_echo_n "checking whether to build shared libraries... " >&6; }
12658 test "$can_build_shared" = "no" && enable_shared=no
12660 # On AIX, shared libraries and static libraries use the same namespace, and
12661 # are all built from PIC.
12664 test "$enable_shared" = yes && enable_static=no
12665 if test -n "$RANLIB"; then
12666 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12667 postinstall_cmds='$RANLIB $lib'
12672 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12673 test "$enable_shared" = yes && enable_static=no
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12678 $as_echo "$enable_shared" >&6; }
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12681 $as_echo_n "checking whether to build static libraries... " >&6; }
12682 # Make sure either enable_shared or enable_static is yes.
12683 test "$enable_shared" = yes || enable_static=yes
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12685 $as_echo "$enable_static" >&6; }
12692 ac_cpp='$CPP $CPPFLAGS'
12693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12701 ac_cpp='$CXXCPP $CPPFLAGS'
12702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12706 archive_cmds_need_lc_CXX=no
12707 allow_undefined_flag_CXX=
12708 always_export_symbols_CXX=no
12709 archive_expsym_cmds_CXX=
12710 compiler_needs_object_CXX=no
12711 export_dynamic_flag_spec_CXX=
12712 hardcode_direct_CXX=no
12713 hardcode_direct_absolute_CXX=no
12714 hardcode_libdir_flag_spec_CXX=
12715 hardcode_libdir_flag_spec_ld_CXX=
12716 hardcode_libdir_separator_CXX=
12717 hardcode_minus_L_CXX=no
12718 hardcode_shlibpath_var_CXX=unsupported
12719 hardcode_automatic_CXX=no
12720 inherit_rpath_CXX=no
12722 module_expsym_cmds_CXX=
12723 link_all_deplibs_CXX=unknown
12724 old_archive_cmds_CXX=$old_archive_cmds
12725 no_undefined_flag_CXX=
12726 whole_archive_flag_spec_CXX=
12727 enable_shared_with_static_runtimes_CXX=no
12729 # Source file extension for C++ test sources.
12732 # Object file extension for compiled C++ test sources.
12736 # No sense in running all these tests if we already determined that
12737 # the CXX compiler isn't working. Some variables (like enable_shared)
12738 # are currently assumed to apply to all compilers on this platform,
12739 # and will be corrupted by setting them based on a non-working compiler.
12740 if test "$_lt_caught_CXX_error" != yes; then
12741 # Code to be used in simple compile tests
12742 lt_simple_compile_test_code="int some_variable = 0;"
12744 # Code to be used in simple link tests
12745 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12747 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12754 # If no C compiler was specified, use CC.
12757 # If no C compiler flags were specified, use CFLAGS.
12758 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12760 # Allow CC to be a program name with arguments.
12764 # save warnings/boilerplate of simple test code
12765 ac_outfile=conftest.$ac_objext
12766 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12767 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12768 _lt_compiler_boilerplate=`cat conftest.err`
12771 ac_outfile=conftest.$ac_objext
12772 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12773 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12774 _lt_linker_boilerplate=`cat conftest.err`
12778 # Allow CC to be a program name with arguments.
12783 lt_save_with_gnu_ld=$with_gnu_ld
12784 lt_save_path_LD=$lt_cv_path_LD
12785 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12786 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12788 $as_unset lt_cv_prog_gnu_ld
12790 if test -n "${lt_cv_path_LDCXX+set}"; then
12791 lt_cv_path_LD=$lt_cv_path_LDCXX
12793 $as_unset lt_cv_path_LD
12795 test -z "${LDCXX+set}" || LD=$LDCXX
12799 for cc_temp in $compiler""; do
12801 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12802 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12807 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12810 if test -n "$compiler"; then
12811 # We don't want -fno-exception when compiling C++ code, so set the
12812 # no_builtin_flag separately
12813 if test "$GXX" = yes; then
12814 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12816 lt_prog_compiler_no_builtin_flag_CXX=
12819 if test "$GXX" = yes; then
12820 # Set up default GNU C++ configuration
12824 # Check whether --with-gnu-ld was given.
12825 if test "${with_gnu_ld+set}" = set; then :
12826 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12832 if test "$GCC" = yes; then
12833 # Check if gcc -print-prog-name=ld gives a path.
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12835 $as_echo_n "checking for ld used by $CC... " >&6; }
12838 # gcc leaves a trailing carriage return which upsets mingw
12839 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12841 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12844 # Accept absolute paths.
12846 re_direlt='/[^/][^/]*/\.\./'
12847 # Canonicalize the pathname of ld
12848 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12849 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12850 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12852 test -z "$LD" && LD="$ac_prog"
12855 # If it fails, then pretend we aren't using GCC.
12859 # If it is relative, then search for the first ld in PATH.
12860 with_gnu_ld=unknown
12863 elif test "$with_gnu_ld" = yes; then
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12865 $as_echo_n "checking for GNU ld... " >&6; }
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12868 $as_echo_n "checking for non-GNU ld... " >&6; }
12870 if test "${lt_cv_path_LD+set}" = set; then :
12871 $as_echo_n "(cached) " >&6
12873 if test -z "$LD"; then
12874 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12875 for ac_dir in $PATH; do
12877 test -z "$ac_dir" && ac_dir=.
12878 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12879 lt_cv_path_LD="$ac_dir/$ac_prog"
12880 # Check to see if the program is GNU ld. I'd rather use --version,
12881 # but apparently some variants of GNU ld only accept -v.
12882 # Break only if it was the GNU/non-GNU ld that we prefer.
12883 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12884 *GNU* | *'with BFD'*)
12885 test "$with_gnu_ld" != no && break
12888 test "$with_gnu_ld" != yes && break
12895 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12899 LD="$lt_cv_path_LD"
12900 if test -n "$LD"; then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12902 $as_echo "$LD" >&6; }
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
12907 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12909 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12910 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12911 $as_echo_n "(cached) " >&6
12913 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12914 case `$LD -v 2>&1 </dev/null` in
12915 *GNU* | *'with BFD'*)
12916 lt_cv_prog_gnu_ld=yes
12919 lt_cv_prog_gnu_ld=no
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12924 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12925 with_gnu_ld=$lt_cv_prog_gnu_ld
12933 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12934 # archiving commands below assume that GNU ld is being used.
12935 if test "$with_gnu_ld" = yes; then
12936 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12937 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'
12939 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12940 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12942 # If archive_cmds runs LD, not CC, wlarc should be empty
12943 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12944 # investigate it a little bit more. (MM)
12947 # ancient GNU ld didn't support --whole-archive et. al.
12948 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12949 $GREP 'no-whole-archive' > /dev/null; then
12950 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12952 whole_archive_flag_spec_CXX=
12958 # A generic and very simple default shared library creation
12959 # command for GNU C++ for the case where it uses the native
12960 # linker, instead of GNU ld. If possible, this setting should
12961 # overridden to take advantage of the native linker features on
12962 # the platform it is being used on.
12963 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12966 # Commands to make compiler produce verbose output that lists
12967 # what "hidden" libraries, object files and flags are used when
12968 # linking a shared library.
12969 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12977 # PORTME: fill in a description of your system's C++ link characteristics
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12979 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12983 # FIXME: insert proper C++ library support
12987 if test "$host_cpu" = ia64; then
12988 # On IA64, the linker does run time linking by default, so we don't
12989 # have to do anything special.
12990 aix_use_runtimelinking=no
12991 exp_sym_flag='-Bexport'
12994 aix_use_runtimelinking=no
12996 # Test if we are trying to use run time linking or normal
12997 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12998 # need to do runtime linking.
12999 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13000 for ld_flag in $LDFLAGS; do
13003 aix_use_runtimelinking=yes
13011 exp_sym_flag='-bexport'
13012 no_entry_flag='-bnoentry'
13015 # When large executables or shared objects are built, AIX ld can
13016 # have problems creating the table of contents. If linking a library
13017 # or program results in "error TOC overflow" add -mminimal-toc to
13018 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13019 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13021 archive_cmds_CXX=''
13022 hardcode_direct_CXX=yes
13023 hardcode_direct_absolute_CXX=yes
13024 hardcode_libdir_separator_CXX=':'
13025 link_all_deplibs_CXX=yes
13026 file_list_spec_CXX='${wl}-f,'
13028 if test "$GXX" = yes; then
13029 case $host_os in aix4.[012]|aix4.[012].*)
13030 # We only want to do this on AIX 4.2 and lower, the check
13031 # below for broken collect2 doesn't work under 4.3+
13032 collect2name=`${CC} -print-prog-name=collect2`
13033 if test -f "$collect2name" &&
13034 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13036 # We have reworked collect2
13039 # We have old collect2
13040 hardcode_direct_CXX=unsupported
13041 # It fails to find uninstalled libraries when the uninstalled
13042 # path is not listed in the libpath. Setting hardcode_minus_L
13043 # to unsupported forces relinking
13044 hardcode_minus_L_CXX=yes
13045 hardcode_libdir_flag_spec_CXX='-L$libdir'
13046 hardcode_libdir_separator_CXX=
13049 shared_flag='-shared'
13050 if test "$aix_use_runtimelinking" = yes; then
13051 shared_flag="$shared_flag "'${wl}-G'
13055 if test "$host_cpu" = ia64; then
13056 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13057 # chokes on -Wl,-G. The following line is correct:
13060 if test "$aix_use_runtimelinking" = yes; then
13061 shared_flag='${wl}-G'
13063 shared_flag='${wl}-bM:SRE'
13068 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13069 # It seems that -bexpall does not export symbols beginning with
13070 # underscore (_), so it is better to generate a list of symbols to
13072 always_export_symbols_CXX=yes
13073 if test "$aix_use_runtimelinking" = yes; then
13074 # Warning - without using the other runtime loading flags (-brtl),
13075 # -berok will link without error, but may produce a broken library.
13076 allow_undefined_flag_CXX='-berok'
13077 # Determine the default libpath from the value encoded in an empty
13079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080 /* end confdefs.h. */
13090 if ac_fn_cxx_try_link "$LINENO"; then :
13092 lt_aix_libpath_sed='
13093 /Import File Strings/,/^$/ {
13099 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13100 # Check for a 64-bit object if we didn't find anything.
13101 if test -z "$aix_libpath"; then
13102 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13105 rm -f core conftest.err conftest.$ac_objext \
13106 conftest$ac_exeext conftest.$ac_ext
13107 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13109 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13111 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"
13113 if test "$host_cpu" = ia64; then
13114 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13115 allow_undefined_flag_CXX="-z nodefs"
13116 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"
13118 # Determine the default libpath from the value encoded in an
13119 # empty executable.
13120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h. */
13131 if ac_fn_cxx_try_link "$LINENO"; then :
13133 lt_aix_libpath_sed='
13134 /Import File Strings/,/^$/ {
13140 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13141 # Check for a 64-bit object if we didn't find anything.
13142 if test -z "$aix_libpath"; then
13143 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13146 rm -f core conftest.err conftest.$ac_objext \
13147 conftest$ac_exeext conftest.$ac_ext
13148 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13150 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13151 # Warning - without using the other run time loading flags,
13152 # -berok will link without error, but may produce a broken library.
13153 no_undefined_flag_CXX=' ${wl}-bernotok'
13154 allow_undefined_flag_CXX=' ${wl}-berok'
13155 # Exported symbols can be pulled into shared objects from archives
13156 whole_archive_flag_spec_CXX='$convenience'
13157 archive_cmds_need_lc_CXX=yes
13158 # This is similar to how AIX traditionally builds its shared
13160 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'
13166 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13167 allow_undefined_flag_CXX=unsupported
13168 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13169 # support --undefined. This deserves some investigation. FIXME
13170 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13177 case $cc_basename in
13179 # FIXME: insert proper C++ library support
13185 cygwin* | mingw* | pw32* | cegcc*)
13186 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13187 # as there is no search path for DLLs.
13188 hardcode_libdir_flag_spec_CXX='-L$libdir'
13189 allow_undefined_flag_CXX=unsupported
13190 always_export_symbols_CXX=no
13191 enable_shared_with_static_runtimes_CXX=yes
13193 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13194 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'
13195 # If the export-symbols file already is a .def file (1st line
13196 # is EXPORTS), use it as is; otherwise, prepend...
13197 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13198 cp $export_symbols $output_objdir/$soname.def;
13200 echo EXPORTS > $output_objdir/$soname.def;
13201 cat $export_symbols >> $output_objdir/$soname.def;
13203 $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'
13208 darwin* | rhapsody*)
13211 archive_cmds_need_lc_CXX=no
13212 hardcode_direct_CXX=no
13213 hardcode_automatic_CXX=yes
13214 hardcode_shlibpath_var_CXX=unsupported
13215 whole_archive_flag_spec_CXX=''
13216 link_all_deplibs_CXX=yes
13217 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13218 case $cc_basename in
13219 ifort*) _lt_dar_can_shared=yes ;;
13220 *) _lt_dar_can_shared=$GCC ;;
13222 if test "$_lt_dar_can_shared" = "yes"; then
13223 output_verbose_link_cmd=echo
13224 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}"
13225 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13226 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}"
13227 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}"
13228 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13229 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}"
13230 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}"
13240 case $cc_basename in
13242 # FIXME: insert proper C++ library support
13246 # Green Hills C++ Compiler
13247 # FIXME: insert proper C++ library support
13251 # FIXME: insert proper C++ library support
13258 # C++ shared libraries reported to be fairly broken before
13264 archive_cmds_need_lc_CXX=no
13267 freebsd* | dragonfly*)
13268 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13277 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13278 hardcode_libdir_separator_CXX=:
13279 export_dynamic_flag_spec_CXX='${wl}-E'
13280 hardcode_direct_CXX=yes
13281 hardcode_minus_L_CXX=yes # Not in the search PATH,
13282 # but as the default
13283 # location of the library.
13285 case $cc_basename in
13287 # FIXME: insert proper C++ library support
13291 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'
13292 # Commands to make compiler produce verbose output that lists
13293 # what "hidden" libraries, object files and flags are used when
13294 # linking a shared library.
13296 # There doesn't appear to be a way to prevent this compiler from
13297 # explicitly linking system object files so we need to strip them
13298 # from the output so that they don't get included in the library
13300 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'
13303 if test "$GXX" = yes; then
13304 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'
13306 # FIXME: insert proper C++ library support
13314 if test $with_gnu_ld = no; then
13315 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13316 hardcode_libdir_separator_CXX=:
13322 export_dynamic_flag_spec_CXX='${wl}-E'
13328 hardcode_direct_CXX=no
13329 hardcode_shlibpath_var_CXX=no
13332 hardcode_direct_CXX=yes
13333 hardcode_direct_absolute_CXX=yes
13334 hardcode_minus_L_CXX=yes # Not in the search PATH,
13335 # but as the default
13336 # location of the library.
13340 case $cc_basename in
13342 # FIXME: insert proper C++ library support
13348 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13351 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13354 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13357 # Commands to make compiler produce verbose output that lists
13358 # what "hidden" libraries, object files and flags are used when
13359 # linking a shared library.
13361 # There doesn't appear to be a way to prevent this compiler from
13362 # explicitly linking system object files so we need to strip them
13363 # from the output so that they don't get included in the library
13365 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'
13368 if test "$GXX" = yes; then
13369 if test $with_gnu_ld = no; then
13372 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13375 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13378 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'
13383 # FIXME: insert proper C++ library support
13391 hardcode_direct_CXX=no
13392 hardcode_shlibpath_var_CXX=no
13393 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13394 export_dynamic_flag_spec_CXX='${wl}-E'
13395 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13396 # Instead, shared libraries are loaded at an image base (0x10000000 by
13397 # default) and relocated if they conflict, which is a slow very memory
13398 # consuming and fragmenting process. To avoid this, we pick a random,
13399 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13400 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13401 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'
13402 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'
13405 case $cc_basename in
13408 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'
13410 # Archives containing C++ object files must be created using
13411 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13412 # necessary to make sure instantiated templates are included
13414 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13417 if test "$GXX" = yes; then
13418 if test "$with_gnu_ld" = no; then
13419 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'
13421 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'
13424 link_all_deplibs_CXX=yes
13427 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13428 hardcode_libdir_separator_CXX=:
13429 inherit_rpath_CXX=yes
13432 linux* | k*bsd*-gnu)
13433 case $cc_basename in
13435 # Kuck and Associates, Inc. (KAI) C++ Compiler
13437 # KCC will only create a shared library if the output file
13438 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13439 # to its proper name (with version) after linking.
13440 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'
13441 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'
13442 # Commands to make compiler produce verbose output that lists
13443 # what "hidden" libraries, object files and flags are used when
13444 # linking a shared library.
13446 # There doesn't appear to be a way to prevent this compiler from
13447 # explicitly linking system object files so we need to strip them
13448 # from the output so that they don't get included in the library
13450 output_verbose_link_cmd='templist=`$CC $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'
13452 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13453 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13455 # Archives containing C++ object files must be created using
13456 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13457 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13462 # version 8.0 and above of icpc choke on multiply defined symbols
13463 # if we add $predep_objects and $postdep_objects, however 7.1 and
13464 # earlier do not add the objects themselves.
13465 case `$CC -V 2>&1` in
13467 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13468 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'
13470 *) # Version 8.0 or newer
13473 ia64*) tmp_idyn=' -i_dynamic';;
13475 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13476 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'
13479 archive_cmds_need_lc_CXX=no
13480 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13481 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13482 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13485 # Portland Group C++ compiler
13487 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13488 prelink_cmds_CXX='tpldir=Template.dir~
13490 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13491 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13492 old_archive_cmds_CXX='tpldir=Template.dir~
13494 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13495 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13497 archive_cmds_CXX='tpldir=Template.dir~
13499 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13500 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13501 archive_expsym_cmds_CXX='tpldir=Template.dir~
13503 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13504 $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'
13506 *) # Version 6 will use weak symbols
13507 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13508 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'
13512 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13513 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13514 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'
13518 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13519 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'
13521 runpath_var=LD_RUN_PATH
13522 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13523 hardcode_libdir_separator_CXX=:
13525 # Commands to make compiler produce verbose output that lists
13526 # what "hidden" libraries, object files and flags are used when
13527 # linking a shared library.
13529 # There doesn't appear to be a way to prevent this compiler from
13530 # explicitly linking system object files so we need to strip them
13531 # from the output so that they don't get included in the library
13533 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'
13536 # IBM XL 8.0 on PPC, with GNU ld
13537 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13538 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13539 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13540 if test "x$supports_anon_versioning" = xyes; then
13541 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13542 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13543 echo "local: *; };" >> $output_objdir/$libname.ver~
13544 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13548 case `$CC -V 2>&1 | sed 5q` in
13551 no_undefined_flag_CXX=' -zdefs'
13552 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13553 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'
13554 hardcode_libdir_flag_spec_CXX='-R$libdir'
13555 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'
13556 compiler_needs_object_CXX=yes
13558 # Not sure whether something based on
13559 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13561 output_verbose_link_cmd='echo'
13563 # Archives containing C++ object files must be created using
13564 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13565 # necessary to make sure instantiated templates are included
13567 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13575 # FIXME: insert proper C++ library support
13580 # FIXME: insert proper C++ library support
13585 case $cc_basename in
13587 # FIXME: insert proper C++ library support
13591 # FIXME: insert proper C++ library support
13598 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13599 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13601 hardcode_libdir_flag_spec_CXX='-R$libdir'
13602 hardcode_direct_CXX=yes
13603 hardcode_shlibpath_var_CXX=no
13605 # Workaround some broken pre-1.5 toolchains
13606 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13614 # C++ shared libraries are fairly broken
13619 if test -f /usr/libexec/ld.so; then
13620 hardcode_direct_CXX=yes
13621 hardcode_shlibpath_var_CXX=no
13622 hardcode_direct_absolute_CXX=yes
13623 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13624 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13625 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13626 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13627 export_dynamic_flag_spec_CXX='${wl}-E'
13628 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13630 output_verbose_link_cmd=echo
13636 osf3* | osf4* | osf5*)
13637 case $cc_basename in
13639 # Kuck and Associates, Inc. (KAI) C++ Compiler
13641 # KCC will only create a shared library if the output file
13642 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13643 # to its proper name (with version) after linking.
13644 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'
13646 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13647 hardcode_libdir_separator_CXX=:
13649 # Archives containing C++ object files must be created using
13650 # the KAI C++ compiler.
13652 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13653 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13657 # Rational C++ 2.4.1
13658 # FIXME: insert proper C++ library support
13664 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13665 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'
13666 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13669 allow_undefined_flag_CXX=' -expect_unresolved \*'
13670 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'
13671 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13672 echo "-hidden">> $lib.exp~
13673 $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~
13675 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13679 hardcode_libdir_separator_CXX=:
13681 # Commands to make compiler produce verbose output that lists
13682 # what "hidden" libraries, object files and flags are used when
13683 # linking a shared library.
13685 # There doesn't appear to be a way to prevent this compiler from
13686 # explicitly linking system object files so we need to strip them
13687 # from the output so that they don't get included in the library
13689 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'
13692 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13693 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13696 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'
13699 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'
13703 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13704 hardcode_libdir_separator_CXX=:
13706 # Commands to make compiler produce verbose output that lists
13707 # what "hidden" libraries, object files and flags are used when
13708 # linking a shared library.
13709 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13712 # FIXME: insert proper C++ library support
13720 # FIXME: insert proper C++ library support
13725 case $cc_basename in
13728 # FIXME: insert proper C++ library support
13733 # FIXME: insert proper C++ library support
13737 # FIXME: insert proper C++ library support
13744 case $cc_basename in
13746 # Sun C++ 4.2, 5.x and Centerline C++
13747 archive_cmds_need_lc_CXX=yes
13748 no_undefined_flag_CXX=' -zdefs'
13749 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13750 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13751 $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'
13753 hardcode_libdir_flag_spec_CXX='-R$libdir'
13754 hardcode_shlibpath_var_CXX=no
13756 solaris2.[0-5] | solaris2.[0-5].*) ;;
13758 # The compiler driver will combine and reorder linker options,
13759 # but understands `-z linker_flag'.
13760 # Supported since Solaris 2.6 (maybe 2.5.1?)
13761 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13764 link_all_deplibs_CXX=yes
13766 output_verbose_link_cmd='echo'
13768 # Archives containing C++ object files must be created using
13769 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13770 # necessary to make sure instantiated templates are included
13772 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13775 # Green Hills C++ Compiler
13776 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13778 # The C++ compiler must be used to create the archive.
13779 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13782 # GNU C++ compiler with Solaris linker
13783 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13784 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13785 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13786 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13787 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13788 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13790 # Commands to make compiler produce verbose output that lists
13791 # what "hidden" libraries, object files and flags are used when
13792 # linking a shared library.
13793 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13795 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13797 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13798 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13799 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13801 # Commands to make compiler produce verbose output that lists
13802 # what "hidden" libraries, object files and flags are used when
13803 # linking a shared library.
13804 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13807 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13809 solaris2.[0-5] | solaris2.[0-5].*) ;;
13811 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13819 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13820 no_undefined_flag_CXX='${wl}-z,text'
13821 archive_cmds_need_lc_CXX=no
13822 hardcode_shlibpath_var_CXX=no
13823 runpath_var='LD_RUN_PATH'
13825 case $cc_basename in
13827 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13828 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13831 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13832 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13837 sysv5* | sco3.2v5* | sco5v6*)
13838 # Note: We can NOT use -z defs as we might desire, because we do not
13839 # link with -lc, and that would cause any symbols used from libc to
13840 # always be unresolved, which means just about no library would
13841 # ever link correctly. If we're not using GNU ld we use -z text
13842 # though, which does catch some bad symbols but isn't as heavy-handed
13844 no_undefined_flag_CXX='${wl}-z,text'
13845 allow_undefined_flag_CXX='${wl}-z,nodefs'
13846 archive_cmds_need_lc_CXX=no
13847 hardcode_shlibpath_var_CXX=no
13848 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13849 hardcode_libdir_separator_CXX=':'
13850 link_all_deplibs_CXX=yes
13851 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13852 runpath_var='LD_RUN_PATH'
13854 case $cc_basename in
13856 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13857 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13860 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13861 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13867 case $cc_basename in
13869 # NonStop-UX NCC 3.20
13870 # FIXME: insert proper C++ library support
13874 # FIXME: insert proper C++ library support
13881 # FIXME: insert proper C++ library support
13886 # FIXME: insert proper C++ library support
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13892 $as_echo "$ld_shlibs_CXX" >&6; }
13893 test "$ld_shlibs_CXX" = no && can_build_shared=no
13899 ## There is no encapsulation within the following macros, do not change
13900 ## the running order or otherwise move them around unless you know exactly
13901 ## what you are doing...
13902 # Dependencies to place before and after the object being linked:
13903 predep_objects_CXX=
13904 postdep_objects_CXX=
13907 compiler_lib_search_path_CXX=
13909 cat > conftest.$ac_ext <<_LT_EOF
13913 Foo (void) { a = 0; }
13919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13920 (eval $ac_compile) 2>&5
13922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13923 test $ac_status = 0; }; then
13924 # Parse the compiler output and extract the necessary
13925 # objects, libraries and library flags.
13927 # Sentinel used to keep track of whether or not we are before
13928 # the conftest object file.
13929 pre_test_object_deps_done=no
13931 for p in `eval "$output_verbose_link_cmd"`; do
13935 # Some compilers place space between "-{L,R}" and the path.
13936 # Remove the space.
13937 if test $p = "-L" ||
13938 test $p = "-R"; then
13945 if test "$pre_test_object_deps_done" = no; then
13948 # Internal compiler library paths should come after those
13949 # provided the user. The postdeps already come after the
13950 # user supplied libs so there is no need to process them.
13951 if test -z "$compiler_lib_search_path_CXX"; then
13952 compiler_lib_search_path_CXX="${prev}${p}"
13954 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13957 # The "-l" case would never come before the object being
13958 # linked, so don't bother handling this case.
13961 if test -z "$postdeps_CXX"; then
13962 postdeps_CXX="${prev}${p}"
13964 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13970 # This assumes that the test object file only shows up
13971 # once in the compiler output.
13972 if test "$p" = "conftest.$objext"; then
13973 pre_test_object_deps_done=yes
13977 if test "$pre_test_object_deps_done" = no; then
13978 if test -z "$predep_objects_CXX"; then
13979 predep_objects_CXX="$p"
13981 predep_objects_CXX="$predep_objects_CXX $p"
13984 if test -z "$postdep_objects_CXX"; then
13985 postdep_objects_CXX="$p"
13987 postdep_objects_CXX="$postdep_objects_CXX $p"
13992 *) ;; # Ignore the rest.
14000 echo "libtool.m4: error: problem compiling CXX test program"
14003 $RM -f confest.$objext
14005 # PORTME: override above test on systems where it is broken
14008 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14009 # hack all around it, let's just trust "g++" to DTRT.
14010 predep_objects_CXX=
14011 postdep_objects_CXX=
14016 case `$CC -V 2>&1 | sed 5q` in
14020 # The more standards-conforming stlport4 library is
14021 # incompatible with the Cstd library. Avoid specifying
14022 # it if it's in CXXFLAGS. Ignore libCrun as
14023 # -library=stlport4 depends on it.
14024 case " $CXX $CXXFLAGS " in
14025 *" -library=stlport4 "*)
14026 solaris_use_stlport4=yes
14030 if test "$solaris_use_stlport4" != yes; then
14031 postdeps_CXX='-library=Cstd -library=Crun'
14038 case $cc_basename in
14040 # The more standards-conforming stlport4 library is
14041 # incompatible with the Cstd library. Avoid specifying
14042 # it if it's in CXXFLAGS. Ignore libCrun as
14043 # -library=stlport4 depends on it.
14044 case " $CXX $CXXFLAGS " in
14045 *" -library=stlport4 "*)
14046 solaris_use_stlport4=yes
14050 # Adding this requires a known-good setup of shared libraries for
14051 # Sun compiler versions before 5.6, else PIC objects from an old
14052 # archive will be linked into the output, leading to subtle bugs.
14053 if test "$solaris_use_stlport4" != yes; then
14054 postdeps_CXX='-library=Cstd -library=Crun'
14062 case " $postdeps_CXX " in
14063 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14065 compiler_lib_search_dirs_CXX=
14066 if test -n "${compiler_lib_search_path_CXX}"; then
14067 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14100 lt_prog_compiler_wl_CXX=
14101 lt_prog_compiler_pic_CXX=
14102 lt_prog_compiler_static_CXX=
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14105 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14107 # C++ specific cases for pic, static, wl, etc.
14108 if test "$GXX" = yes; then
14109 lt_prog_compiler_wl_CXX='-Wl,'
14110 lt_prog_compiler_static_CXX='-static'
14114 # All AIX code is PIC.
14115 if test "$host_cpu" = ia64; then
14116 # AIX 5 now supports IA64 processor
14117 lt_prog_compiler_static_CXX='-Bstatic'
14124 # see comment about AmigaOS4 .so support
14125 lt_prog_compiler_pic_CXX='-fPIC'
14128 # FIXME: we need at least 68020 code to build shared libraries, but
14129 # adding the `-m68020' flag to GCC prevents building anything better,
14131 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14136 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14137 # PIC is the default for these OSes.
14139 mingw* | cygwin* | os2* | pw32* | cegcc*)
14140 # This hack is so that the source file can tell whether it is being
14141 # built for inclusion in a dll (and should export symbols for example).
14142 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14143 # (--disable-auto-import) libraries
14144 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14146 darwin* | rhapsody*)
14147 # PIC is the default on this platform
14148 # Common symbols not allowed in MH_DYLIB files
14149 lt_prog_compiler_pic_CXX='-fno-common'
14152 # DJGPP does not support shared libraries at all
14153 lt_prog_compiler_pic_CXX=
14156 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14157 # Instead, we relocate shared libraries at runtime.
14160 if test -d /usr/nec; then
14161 lt_prog_compiler_pic_CXX=-Kconform_pic
14165 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14166 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14167 # sets the default TLS model and affects inlining.
14172 lt_prog_compiler_pic_CXX='-fPIC'
14177 # QNX uses GNU C++, but need to define -shared option too, otherwise
14178 # it will coredump.
14179 lt_prog_compiler_pic_CXX='-fPIC -shared'
14182 lt_prog_compiler_pic_CXX='-fPIC'
14188 # All AIX code is PIC.
14189 if test "$host_cpu" = ia64; then
14190 # AIX 5 now supports IA64 processor
14191 lt_prog_compiler_static_CXX='-Bstatic'
14193 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14197 case $cc_basename in
14199 # Green Hills C++ Compiler
14200 # _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"
14205 case $cc_basename in
14207 lt_prog_compiler_pic_CXX='-KPIC'
14210 # Green Hills C++ Compiler
14211 lt_prog_compiler_pic_CXX='-pic'
14217 freebsd* | dragonfly*)
14218 # FreeBSD uses GNU C++
14220 hpux9* | hpux10* | hpux11*)
14221 case $cc_basename in
14223 lt_prog_compiler_wl_CXX='-Wl,'
14224 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14225 if test "$host_cpu" != ia64; then
14226 lt_prog_compiler_pic_CXX='+Z'
14230 lt_prog_compiler_wl_CXX='-Wl,'
14231 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14237 lt_prog_compiler_pic_CXX='+Z'
14246 # This is c89, which is MS Visual C++ (no shared libs)
14247 # Anyone wants to do a port?
14249 irix5* | irix6* | nonstopux*)
14250 case $cc_basename in
14252 lt_prog_compiler_wl_CXX='-Wl,'
14253 lt_prog_compiler_static_CXX='-non_shared'
14254 # CC pic flag -KPIC is the default.
14260 linux* | k*bsd*-gnu)
14261 case $cc_basename in
14264 lt_prog_compiler_wl_CXX='--backend -Wl,'
14265 lt_prog_compiler_pic_CXX='-fPIC'
14268 # old Intel C++ for x86_64 which still supported -KPIC.
14269 lt_prog_compiler_wl_CXX='-Wl,'
14270 lt_prog_compiler_pic_CXX='-KPIC'
14271 lt_prog_compiler_static_CXX='-static'
14274 # Intel C++, used to be incompatible with GCC.
14275 # ICC 10 doesn't accept -KPIC any more.
14276 lt_prog_compiler_wl_CXX='-Wl,'
14277 lt_prog_compiler_pic_CXX='-fPIC'
14278 lt_prog_compiler_static_CXX='-static'
14281 # Portland Group C++ compiler
14282 lt_prog_compiler_wl_CXX='-Wl,'
14283 lt_prog_compiler_pic_CXX='-fpic'
14284 lt_prog_compiler_static_CXX='-Bstatic'
14288 # Make sure the PIC flag is empty. It appears that all Alpha
14289 # Linux and Compaq Tru64 Unix objects are PIC.
14290 lt_prog_compiler_pic_CXX=
14291 lt_prog_compiler_static_CXX='-non_shared'
14294 # IBM XL 8.0 on PPC
14295 lt_prog_compiler_wl_CXX='-Wl,'
14296 lt_prog_compiler_pic_CXX='-qpic'
14297 lt_prog_compiler_static_CXX='-qstaticlink'
14300 case `$CC -V 2>&1 | sed 5q` in
14303 lt_prog_compiler_pic_CXX='-KPIC'
14304 lt_prog_compiler_static_CXX='-Bstatic'
14305 lt_prog_compiler_wl_CXX='-Qoption ld '
14316 case $cc_basename in
14318 lt_prog_compiler_pic_CXX='-W c,exportall'
14327 # QNX uses GNU C++, but need to define -shared option too, otherwise
14328 # it will coredump.
14329 lt_prog_compiler_pic_CXX='-fPIC -shared'
14331 osf3* | osf4* | osf5*)
14332 case $cc_basename in
14334 lt_prog_compiler_wl_CXX='--backend -Wl,'
14337 # Rational C++ 2.4.1
14338 lt_prog_compiler_pic_CXX='-pic'
14341 # Digital/Compaq C++
14342 lt_prog_compiler_wl_CXX='-Wl,'
14343 # Make sure the PIC flag is empty. It appears that all Alpha
14344 # Linux and Compaq Tru64 Unix objects are PIC.
14345 lt_prog_compiler_pic_CXX=
14346 lt_prog_compiler_static_CXX='-non_shared'
14355 case $cc_basename in
14357 # Sun C++ 4.2, 5.x and Centerline C++
14358 lt_prog_compiler_pic_CXX='-KPIC'
14359 lt_prog_compiler_static_CXX='-Bstatic'
14360 lt_prog_compiler_wl_CXX='-Qoption ld '
14363 # Green Hills C++ Compiler
14364 lt_prog_compiler_pic_CXX='-PIC'
14371 case $cc_basename in
14374 lt_prog_compiler_pic_CXX='-pic'
14375 lt_prog_compiler_static_CXX='-Bstatic'
14379 lt_prog_compiler_pic_CXX='-pic'
14385 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14386 case $cc_basename in
14388 lt_prog_compiler_wl_CXX='-Wl,'
14389 lt_prog_compiler_pic_CXX='-KPIC'
14390 lt_prog_compiler_static_CXX='-Bstatic'
14395 case $cc_basename in
14397 # NonStop-UX NCC 3.20
14398 lt_prog_compiler_pic_CXX='-KPIC'
14407 lt_prog_compiler_can_build_shared_CXX=no
14413 # For platforms which do not support PIC, -DPIC is meaningless:
14415 lt_prog_compiler_pic_CXX=
14418 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14422 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14427 # Check to make sure the PIC flag actually works.
14429 if test -n "$lt_prog_compiler_pic_CXX"; then
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14431 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14432 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14433 $as_echo_n "(cached) " >&6
14435 lt_cv_prog_compiler_pic_works_CXX=no
14436 ac_outfile=conftest.$ac_objext
14437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14438 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14439 # Insert the option either (1) after the last *FLAGS variable, or
14440 # (2) before a word containing "conftest.", or (3) at the end.
14441 # Note that $ac_compile itself does not contain backslashes and begins
14442 # with a dollar sign (not a hyphen), so the echo should work correctly.
14443 # The option is referenced via a variable to avoid confusing sed.
14444 lt_compile=`echo "$ac_compile" | $SED \
14445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14447 -e 's:$: $lt_compiler_flag:'`
14448 (eval echo "\"\$as_me:14448: $lt_compile\"" >&5)
14449 (eval "$lt_compile" 2>conftest.err)
14451 cat conftest.err >&5
14452 echo "$as_me:14452: \$? = $ac_status" >&5
14453 if (exit $ac_status) && test -s "$ac_outfile"; then
14454 # The compiler can only warn and ignore the option if not recognized
14455 # So say no if there are warnings other than the usual output.
14456 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14458 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14459 lt_cv_prog_compiler_pic_works_CXX=yes
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14466 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14468 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14469 case $lt_prog_compiler_pic_CXX in
14471 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14474 lt_prog_compiler_pic_CXX=
14475 lt_prog_compiler_can_build_shared_CXX=no
14483 # Check to make sure the static flag actually works.
14485 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14487 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14488 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14489 $as_echo_n "(cached) " >&6
14491 lt_cv_prog_compiler_static_works_CXX=no
14492 save_LDFLAGS="$LDFLAGS"
14493 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14494 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14495 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14496 # The linker can only warn and ignore the option if not recognized
14497 # So say no if there are warnings
14498 if test -s conftest.err; then
14499 # Append any errors to the config.log.
14500 cat conftest.err 1>&5
14501 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14502 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14503 if diff conftest.exp conftest.er2 >/dev/null; then
14504 lt_cv_prog_compiler_static_works_CXX=yes
14507 lt_cv_prog_compiler_static_works_CXX=yes
14511 LDFLAGS="$save_LDFLAGS"
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14515 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14517 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14520 lt_prog_compiler_static_CXX=
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14527 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14528 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14529 $as_echo_n "(cached) " >&6
14531 lt_cv_prog_compiler_c_o_CXX=no
14532 $RM -r conftest 2>/dev/null
14536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14538 lt_compiler_flag="-o out/conftest2.$ac_objext"
14539 # Insert the option either (1) after the last *FLAGS variable, or
14540 # (2) before a word containing "conftest.", or (3) at the end.
14541 # Note that $ac_compile itself does not contain backslashes and begins
14542 # with a dollar sign (not a hyphen), so the echo should work correctly.
14543 lt_compile=`echo "$ac_compile" | $SED \
14544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14546 -e 's:$: $lt_compiler_flag:'`
14547 (eval echo "\"\$as_me:14547: $lt_compile\"" >&5)
14548 (eval "$lt_compile" 2>out/conftest.err)
14550 cat out/conftest.err >&5
14551 echo "$as_me:14551: \$? = $ac_status" >&5
14552 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14554 # The compiler can only warn and ignore the option if not recognized
14555 # So say no if there are warnings
14556 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14557 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14558 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14559 lt_cv_prog_compiler_c_o_CXX=yes
14564 # SGI C++ compiler will create directory out/ii_files/ for
14565 # template instantiation
14566 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14567 $RM out/* && rmdir out
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14574 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14579 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14580 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14581 $as_echo_n "(cached) " >&6
14583 lt_cv_prog_compiler_c_o_CXX=no
14584 $RM -r conftest 2>/dev/null
14588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14590 lt_compiler_flag="-o out/conftest2.$ac_objext"
14591 # Insert the option either (1) after the last *FLAGS variable, or
14592 # (2) before a word containing "conftest.", or (3) at the end.
14593 # Note that $ac_compile itself does not contain backslashes and begins
14594 # with a dollar sign (not a hyphen), so the echo should work correctly.
14595 lt_compile=`echo "$ac_compile" | $SED \
14596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14598 -e 's:$: $lt_compiler_flag:'`
14599 (eval echo "\"\$as_me:14599: $lt_compile\"" >&5)
14600 (eval "$lt_compile" 2>out/conftest.err)
14602 cat out/conftest.err >&5
14603 echo "$as_me:14603: \$? = $ac_status" >&5
14604 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14606 # The compiler can only warn and ignore the option if not recognized
14607 # So say no if there are warnings
14608 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14609 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14610 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14611 lt_cv_prog_compiler_c_o_CXX=yes
14616 # SGI C++ compiler will create directory out/ii_files/ for
14617 # template instantiation
14618 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14619 $RM out/* && rmdir out
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14626 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14631 hard_links="nottested"
14632 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14633 # do not overwrite the value of need_locks provided by the user
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14635 $as_echo_n "checking if we can lock with hard links... " >&6; }
14638 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14640 ln conftest.a conftest.b 2>&5 || hard_links=no
14641 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14643 $as_echo "$hard_links" >&6; }
14644 if test "$hard_links" = no; then
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14646 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14656 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14658 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14661 # If we're using GNU nm, then we don't want the "-C" option.
14662 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14663 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14664 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'
14666 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'
14670 export_symbols_cmds_CXX="$ltdll_cmds"
14672 cygwin* | mingw* | cegcc*)
14673 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'
14676 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14679 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14682 $as_echo "$ld_shlibs_CXX" >&6; }
14683 test "$ld_shlibs_CXX" = no && can_build_shared=no
14685 with_gnu_ld_CXX=$with_gnu_ld
14693 # Do we need to explicitly link libc?
14695 case "x$archive_cmds_need_lc_CXX" in
14697 # Assume -lc should be added
14698 archive_cmds_need_lc_CXX=yes
14700 if test "$enable_shared" = yes && test "$GCC" = yes; then
14701 case $archive_cmds_CXX in
14703 # FIXME: we may have to deal with multi-command sequences.
14706 # Test whether the compiler implicitly links with -lc since on some
14707 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14708 # to ld, don't add -lc before -lgcc.
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14710 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14715 (eval $ac_compile) 2>&5
14717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14718 test $ac_status = 0; } 2>conftest.err; then
14721 libobjs=conftest.$ac_objext
14723 wl=$lt_prog_compiler_wl_CXX
14724 pic_flag=$lt_prog_compiler_pic_CXX
14730 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14731 allow_undefined_flag_CXX=
14732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14733 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14736 test $ac_status = 0; }
14738 archive_cmds_need_lc_CXX=no
14740 archive_cmds_need_lc_CXX=yes
14742 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14744 cat conftest.err 1>&5
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14748 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14819 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14821 library_names_spec=
14822 libname_spec='lib$name'
14826 postuninstall_cmds=
14830 shlibpath_overrides_runpath=unknown
14832 dynamic_linker="$host_os ld.so"
14833 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14834 need_lib_prefix=unknown
14835 hardcode_into_libs=no
14837 # when you set need_version to no, make sure it does not cause -set_version
14838 # flags to be left without arguments
14839 need_version=unknown
14844 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14845 shlibpath_var=LIBPATH
14847 # AIX 3 has no versioning support, so we append a major version to the name.
14848 soname_spec='${libname}${release}${shared_ext}$major'
14855 hardcode_into_libs=yes
14856 if test "$host_cpu" = ia64; then
14857 # AIX 5 supports IA64
14858 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14859 shlibpath_var=LD_LIBRARY_PATH
14861 # With GCC up to 2.95.x, collect2 would create an import file
14862 # for dependence libraries. The import file would start with
14863 # the line `#! .'. This would cause the generated library to
14864 # depend on `.', always an invalid library. This was fixed in
14865 # development snapshots of GCC prior to 3.0.
14867 aix4 | aix4.[01] | aix4.[01].*)
14868 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14870 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14873 can_build_shared=no
14877 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14878 # soname into executable. Probably we can add versioning support to
14879 # collect2, so additional links can be useful in future.
14880 if test "$aix_use_runtimelinking" = yes; then
14881 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14882 # instead of lib<name>.a to let people know that these are not
14883 # typical AIX shared libraries.
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14886 # We preserve .a as extension for shared libraries through AIX4.2
14887 # and later when we are not doing run time linking.
14888 library_names_spec='${libname}${release}.a $libname.a'
14889 soname_spec='${libname}${release}${shared_ext}$major'
14891 shlibpath_var=LIBPATH
14898 # Since July 2007 AmigaOS4 officially supports .so libraries.
14899 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14903 library_names_spec='$libname.ixlibrary $libname.a'
14904 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14905 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'
14911 library_names_spec='${libname}${shared_ext}'
14912 dynamic_linker="$host_os ld.so"
14913 shlibpath_var=LIBRARY_PATH
14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14920 soname_spec='${libname}${release}${shared_ext}$major'
14921 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14922 shlibpath_var=LD_LIBRARY_PATH
14923 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14924 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14925 # the default ld.so.conf also contains /usr/contrib/lib and
14926 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14927 # libtool to hard-code these into programs
14930 cygwin* | mingw* | pw32* | cegcc*)
14931 version_type=windows
14936 case $GCC,$host_os in
14937 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14938 library_names_spec='$libname.dll.a'
14939 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14940 postinstall_cmds='base_file=`basename \${file}`~
14941 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14942 dldir=$destdir/`dirname \$dlpath`~
14943 test -d \$dldir || mkdir -p \$dldir~
14944 $install_prog $dir/$dlname \$dldir/$dlname~
14945 chmod a+x \$dldir/$dlname~
14946 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14947 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14949 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14950 dlpath=$dir/\$dldll~
14952 shlibpath_overrides_runpath=yes
14956 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14957 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14958 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14961 # MinGW DLLs use traditional 'lib' prefix
14962 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14963 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14964 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14965 # It is most probably a Windows format PATH printed by
14966 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14967 # path with ; separators, and with drive letters. We can handle the
14968 # drive letters (cygwin fileutils understands them), so leave them,
14969 # especially as we might pass files found there to a mingw objdump,
14970 # which wouldn't understand a cygwinified path. Ahh.
14971 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14973 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14977 # pw32 DLLs use 'pw' prefix rather than 'lib'
14978 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14984 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14987 dynamic_linker='Win32 ld.exe'
14988 # FIXME: first we should search . and the directory the executable is in
14992 darwin* | rhapsody*)
14993 dynamic_linker="$host_os dyld"
14994 version_type=darwin
14997 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14998 soname_spec='${libname}${release}${major}$shared_ext'
14999 shlibpath_overrides_runpath=yes
15000 shlibpath_var=DYLD_LIBRARY_PATH
15001 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15003 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15011 soname_spec='${libname}${release}${shared_ext}$major'
15012 shlibpath_var=LD_LIBRARY_PATH
15019 freebsd* | dragonfly*)
15020 # DragonFly does not have aout. When/if they implement a new
15021 # versioning mechanism, adjust this.
15022 if test -x /usr/bin/objformat; then
15023 objformat=`/usr/bin/objformat`
15026 freebsd[123]*) objformat=aout ;;
15027 *) objformat=elf ;;
15030 version_type=freebsd-$objformat
15031 case $version_type in
15033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15038 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15042 shlibpath_var=LD_LIBRARY_PATH
15045 shlibpath_overrides_runpath=yes
15047 freebsd3.[01]* | freebsdelf3.[01]*)
15048 shlibpath_overrides_runpath=yes
15049 hardcode_into_libs=yes
15051 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15052 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15053 shlibpath_overrides_runpath=no
15054 hardcode_into_libs=yes
15056 *) # from 4.6 on, and DragonFly
15057 shlibpath_overrides_runpath=yes
15058 hardcode_into_libs=yes
15067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15068 soname_spec='${libname}${release}${shared_ext}$major'
15069 shlibpath_var=LD_LIBRARY_PATH
15070 hardcode_into_libs=yes
15073 hpux9* | hpux10* | hpux11*)
15074 # Give a soname corresponding to the major version so that dld.sl refuses to
15075 # link against other versions.
15082 hardcode_into_libs=yes
15083 dynamic_linker="$host_os dld.so"
15084 shlibpath_var=LD_LIBRARY_PATH
15085 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15087 soname_spec='${libname}${release}${shared_ext}$major'
15088 if test "X$HPUX_IA64_MODE" = X32; then
15089 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15091 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15097 hardcode_into_libs=yes
15098 dynamic_linker="$host_os dld.sl"
15099 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15102 soname_spec='${libname}${release}${shared_ext}$major'
15103 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15108 dynamic_linker="$host_os dld.sl"
15109 shlibpath_var=SHLIB_PATH
15110 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15112 soname_spec='${libname}${release}${shared_ext}$major'
15115 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15116 postinstall_cmds='chmod 555 $lib'
15123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15124 soname_spec='${libname}${release}${shared_ext}$major'
15125 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15126 shlibpath_var=LD_LIBRARY_PATH
15127 shlibpath_overrides_runpath=no
15128 hardcode_into_libs=yes
15131 irix5* | irix6* | nonstopux*)
15133 nonstopux*) version_type=nonstopux ;;
15135 if test "$lt_cv_prog_gnu_ld" = yes; then
15143 soname_spec='${libname}${release}${shared_ext}$major'
15144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15146 irix5* | nonstopux*)
15147 libsuff= shlibsuff=
15150 case $LD in # libtool.m4 will add one of these switches to LD
15151 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15152 libsuff= shlibsuff= libmagic=32-bit;;
15153 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15154 libsuff=32 shlibsuff=N32 libmagic=N32;;
15155 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15156 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15157 *) libsuff= shlibsuff= libmagic=never-match;;
15161 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15162 shlibpath_overrides_runpath=no
15163 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15164 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15165 hardcode_into_libs=yes
15168 # No shared lib support for Linux oldld, aout, or coff.
15169 linux*oldld* | linux*aout* | linux*coff*)
15173 # This must be Linux ELF.
15174 linux* | k*bsd*-gnu)
15178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15179 soname_spec='${libname}${release}${shared_ext}$major'
15180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15181 shlibpath_var=LD_LIBRARY_PATH
15182 shlibpath_overrides_runpath=no
15183 # Some binutils ld are patched to set DT_RUNPATH
15184 save_LDFLAGS=$LDFLAGS
15185 save_libdir=$libdir
15186 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15187 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189 /* end confdefs.h. */
15199 if ac_fn_cxx_try_link "$LINENO"; then :
15200 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15201 shlibpath_overrides_runpath=yes
15204 rm -f core conftest.err conftest.$ac_objext \
15205 conftest$ac_exeext conftest.$ac_ext
15206 LDFLAGS=$save_LDFLAGS
15207 libdir=$save_libdir
15209 # This implies no fast_install, which is unacceptable.
15210 # Some rework will be needed to allow for fast_install
15211 # before this can be enabled.
15212 hardcode_into_libs=yes
15214 # Append ld.so.conf contents to the search path
15215 if test -f /etc/ld.so.conf; then
15216 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' ' '`
15217 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15220 # We used to test for /lib/ld.so.1 and disable shared libraries on
15221 # powerpc, because MkLinux only supported shared libraries with the
15222 # GNU dynamic linker. Since this was broken with cross compilers,
15223 # most powerpc-linux boxes support dynamic linking these days and
15224 # people can always --disable-shared, the test was removed, and we
15225 # assume the GNU/Linux dynamic linker is in use.
15226 dynamic_linker='GNU/Linux ld.so'
15233 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15236 dynamic_linker='NetBSD (a.out) ld.so'
15238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15239 soname_spec='${libname}${release}${shared_ext}$major'
15240 dynamic_linker='NetBSD ld.elf_so'
15242 shlibpath_var=LD_LIBRARY_PATH
15243 shlibpath_overrides_runpath=yes
15244 hardcode_into_libs=yes
15249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15250 shlibpath_var=LD_LIBRARY_PATH
15251 shlibpath_overrides_runpath=yes
15258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15259 soname_spec='${libname}${release}${shared_ext}$major'
15260 shlibpath_var=LD_LIBRARY_PATH
15261 shlibpath_overrides_runpath=no
15262 hardcode_into_libs=yes
15263 dynamic_linker='ldqnx.so'
15268 sys_lib_dlsearch_path_spec="/usr/lib"
15270 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15272 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15273 *) need_version=no ;;
15275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15277 shlibpath_var=LD_LIBRARY_PATH
15278 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15280 openbsd2.[89] | openbsd2.[89].*)
15281 shlibpath_overrides_runpath=no
15284 shlibpath_overrides_runpath=yes
15288 shlibpath_overrides_runpath=yes
15293 libname_spec='$name'
15296 library_names_spec='$libname${shared_ext} $libname.a'
15297 dynamic_linker='OS/2 ld.exe'
15298 shlibpath_var=LIBPATH
15301 osf3* | osf4* | osf5*)
15305 soname_spec='${libname}${release}${shared_ext}$major'
15306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15307 shlibpath_var=LD_LIBRARY_PATH
15308 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15309 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15321 soname_spec='${libname}${release}${shared_ext}$major'
15322 shlibpath_var=LD_LIBRARY_PATH
15323 shlibpath_overrides_runpath=yes
15324 hardcode_into_libs=yes
15325 # ldd complains unless libraries are executable
15326 postinstall_cmds='chmod +x $lib'
15331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15332 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15333 shlibpath_var=LD_LIBRARY_PATH
15334 shlibpath_overrides_runpath=yes
15335 if test "$with_gnu_ld" = yes; then
15343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15344 soname_spec='${libname}${release}${shared_ext}$major'
15345 shlibpath_var=LD_LIBRARY_PATH
15346 case $host_vendor in
15348 shlibpath_overrides_runpath=no
15350 runpath_var=LD_RUN_PATH
15358 shlibpath_overrides_runpath=no
15359 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15365 if test -d /usr/nec ;then
15367 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15368 soname_spec='$libname${shared_ext}.$major'
15369 shlibpath_var=LD_LIBRARY_PATH
15373 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15374 version_type=freebsd-elf
15377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15378 soname_spec='${libname}${release}${shared_ext}$major'
15379 shlibpath_var=LD_LIBRARY_PATH
15380 shlibpath_overrides_runpath=yes
15381 hardcode_into_libs=yes
15382 if test "$with_gnu_ld" = yes; then
15383 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15385 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15388 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15392 sys_lib_dlsearch_path_spec='/usr/lib'
15396 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15401 shlibpath_var=LD_LIBRARY_PATH
15402 shlibpath_overrides_runpath=no
15403 hardcode_into_libs=yes
15408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15409 soname_spec='${libname}${release}${shared_ext}$major'
15410 shlibpath_var=LD_LIBRARY_PATH
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15418 $as_echo "$dynamic_linker" >&6; }
15419 test "$dynamic_linker" = no && can_build_shared=no
15421 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15422 if test "$GCC" = yes; then
15423 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15426 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15427 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15429 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15430 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15469 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15470 hardcode_action_CXX=
15471 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15472 test -n "$runpath_var_CXX" ||
15473 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15475 # We can hardcode non-existent directories.
15476 if test "$hardcode_direct_CXX" != no &&
15477 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15478 # have to relink, otherwise we might link with an installed library
15479 # when we should be linking with a yet-to-be-installed one
15480 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15481 test "$hardcode_minus_L_CXX" != no; then
15482 # Linking always hardcodes the temporary library directory.
15483 hardcode_action_CXX=relink
15485 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15486 hardcode_action_CXX=immediate
15489 # We cannot hardcode anything, or else we can only hardcode existing
15491 hardcode_action_CXX=unsupported
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15494 $as_echo "$hardcode_action_CXX" >&6; }
15496 if test "$hardcode_action_CXX" = relink ||
15497 test "$inherit_rpath_CXX" = yes; then
15498 # Fast installation is not supported
15499 enable_fast_install=no
15500 elif test "$shlibpath_overrides_runpath" = yes ||
15501 test "$enable_shared" = no; then
15502 # Fast installation is not necessary
15503 enable_fast_install=needless
15512 fi # test -n "$compiler"
15518 with_gnu_ld=$lt_save_with_gnu_ld
15519 lt_cv_path_LDCXX=$lt_cv_path_LD
15520 lt_cv_path_LD=$lt_save_path_LD
15521 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15522 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15523 fi # test "$_lt_caught_CXX_error" != yes
15526 ac_cpp='$CPP $CPPFLAGS'
15527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15543 ac_config_commands="$ac_config_commands libtool"
15548 # Only expand once:
15553 if test x$use_libtool != xno; then
15554 DEFAULT_OBJECT_TYPE=".lo"
15555 DEFAULT_ARCHIVE_TYPE=".la"
15556 DEFAULT_SHARED_OBJECT_TYPE=".la"
15557 LIBTOOL="\$(LIBTOOL)"
15558 LIBTOOL_INSTALL_TARGET="libtool-install"
15559 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15560 LIBTOOL_CLEAN_TARGET="libtool-clean"
15561 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15562 FD_PLUGIN_DIR="src/plugins/fd"
15565 DEFAULT_OBJECT_TYPE=".o"
15566 DEFAULT_ARCHIVE_TYPE=".a"
15567 DEFAULT_SHARED_OBJECT_TYPE=".so"
15568 LIBTOOL="# \$(LIBTOOL)"
15569 LIBTOOL_INSTALL_TARGET=""
15570 LIBTOOL_UNINSTALL_TARGET=""
15571 LIBTOOL_CLEAN_TARGET=""
15572 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15587 # Check whether --enable-includes was given.
15588 if test "${enable_includes+set}" = set; then :
15589 enableval=$enable_includes;
15590 if test x$enableval = xyes; then
15591 install_includes=yes
15599 if test x$use_libtool != xno -a x$install_includes = xyes; then
15600 INCLUDE_INSTALL_TARGET="install-includes"
15601 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15603 INCLUDE_INSTALL_TARGET=""
15604 INCLUDE_UNINSTALL_TARGET=""
15612 *cygwin* ) CYGWIN=yes;;
15616 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15622 HAVE_SUN_OS_FALSE='#'
15624 HAVE_SUN_OS_TRUE='#'
15627 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15634 HAVE_SUN_OS_FALSE='#'
15636 HAVE_SUN_OS_TRUE='#'
15641 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15647 HAVE_OSF1_OS_FALSE='#'
15649 HAVE_OSF1_OS_TRUE='#'
15650 HAVE_OSF1_OS_FALSE=
15652 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15659 HAVE_OSF1_OS_FALSE='#'
15661 HAVE_OSF1_OS_TRUE='#'
15662 HAVE_OSF1_OS_FALSE=
15666 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15672 HAVE_AIX_OS_FALSE='#'
15674 HAVE_AIX_OS_TRUE='#'
15677 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15684 HAVE_AIX_OS_FALSE='#'
15686 HAVE_AIX_OS_TRUE='#'
15691 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15697 HAVE_HPUX_OS_FALSE='#'
15699 HAVE_HPUX_OS_TRUE='#'
15700 HAVE_HPUX_OS_FALSE=
15702 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15709 HAVE_HPUX_OS_FALSE='#'
15711 HAVE_HPUX_OS_TRUE='#'
15712 HAVE_HPUX_OS_FALSE=
15716 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15721 HAVE_LINUX_OS_TRUE=
15722 HAVE_LINUX_OS_FALSE='#'
15724 HAVE_LINUX_OS_TRUE='#'
15725 HAVE_LINUX_OS_FALSE=
15727 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15733 HAVE_LINUX_OS_TRUE=
15734 HAVE_LINUX_OS_FALSE='#'
15736 HAVE_LINUX_OS_TRUE='#'
15737 HAVE_LINUX_OS_FALSE=
15741 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15746 HAVE_FREEBSD_OS_TRUE=
15747 HAVE_FREEBSD_OS_FALSE='#'
15749 HAVE_FREEBSD_OS_TRUE='#'
15750 HAVE_FREEBSD_OS_FALSE=
15752 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15758 HAVE_FREEBSD_OS_TRUE=
15759 HAVE_FREEBSD_OS_FALSE='#'
15761 HAVE_FREEBSD_OS_TRUE='#'
15762 HAVE_FREEBSD_OS_FALSE=
15766 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15771 HAVE_NETBSD_OS_TRUE=
15772 HAVE_NETBSD_OS_FALSE='#'
15774 HAVE_NETBSD_OS_TRUE='#'
15775 HAVE_NETBSD_OS_FALSE=
15777 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15783 HAVE_NETBSD_OS_TRUE=
15784 HAVE_NETBSD_OS_FALSE='#'
15786 HAVE_NETBSD_OS_TRUE='#'
15787 HAVE_NETBSD_OS_FALSE=
15791 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15796 HAVE_OPENBSD_OS_TRUE=
15797 HAVE_OPENBSD_OS_FALSE='#'
15799 HAVE_OPENBSD_OS_TRUE='#'
15800 HAVE_OPENBSD_OS_FALSE=
15802 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15808 HAVE_OPENBSD_OS_TRUE=
15809 HAVE_OPENBSD_OS_FALSE='#'
15811 HAVE_OPENBSD_OS_TRUE='#'
15812 HAVE_OPENBSD_OS_FALSE=
15816 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15822 HAVE_BSDI_OS_FALSE='#'
15824 HAVE_BSDI_OS_TRUE='#'
15825 HAVE_BSDI_OS_FALSE=
15827 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15834 HAVE_BSDI_OS_FALSE='#'
15836 HAVE_BSDI_OS_TRUE='#'
15837 HAVE_BSDI_OS_FALSE=
15841 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15847 HAVE_SGI_OS_FALSE='#'
15849 HAVE_SGI_OS_TRUE='#'
15852 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15859 HAVE_SGI_OS_FALSE='#'
15861 HAVE_SGI_OS_TRUE='#'
15866 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15872 HAVE_IRIX_OS_FALSE='#'
15874 HAVE_IRIX_OS_TRUE='#'
15875 HAVE_IRIX_OS_FALSE=
15877 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15884 HAVE_IRIX_OS_FALSE='#'
15886 HAVE_IRIX_OS_TRUE='#'
15887 HAVE_IRIX_OS_FALSE=
15891 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15896 HAVE_DARWIN_OS_TRUE=
15897 HAVE_DARWIN_OS_FALSE='#'
15899 HAVE_DARWIN_OS_TRUE='#'
15900 HAVE_DARWIN_OS_FALSE=
15902 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15908 HAVE_DARWIN_OS_TRUE=
15909 HAVE_DARWIN_OS_FALSE='#'
15911 HAVE_DARWIN_OS_TRUE='#'
15912 HAVE_DARWIN_OS_FALSE=
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
15918 $as_echo_n "checking for Operating System Distribution... " >&6; }
15919 if test "x$DISTNAME" != "x"
15921 echo "distname set to $DISTNAME"
15922 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15925 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15928 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15931 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15934 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15937 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15940 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15943 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
15946 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15949 elif test -f /etc/SuSE-release
15952 elif test -d /etc/SuSEconfig
15955 elif test -f /etc/mandrake-release
15958 elif test -f /etc/whitebox-release
15961 elif test -f /etc/redhat-release
15964 elif test -f /etc/gentoo-release
15967 elif test -f /etc/debian_version
15970 elif test -f /etc/slackware-version
15973 elif test x$host_vendor = xapple
15976 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15979 elif test -f /etc/engarde-version
15982 elif test -f /etc/arch-release
15985 elif test "$CYGWIN" = yes
15988 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15994 $as_echo "done" >&6; }
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15998 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16000 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16001 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
16002 $as_echo_n "(cached) " >&6
16004 cat >conftest.make <<\_ACEOF
16007 @echo '@@@%%%=$(MAKE)=@@@%%%'
16009 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16010 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16011 *@@@%%%=?*=@@@%%%*)
16012 eval ac_cv_prog_make_${ac_make}_set=yes;;
16014 eval ac_cv_prog_make_${ac_make}_set=no;;
16016 rm -f conftest.make
16018 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16020 $as_echo "yes" >&6; }
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16024 $as_echo "no" >&6; }
16025 SET_MAKE="MAKE=${MAKE-make}"
16031 if test -n "$ac_aux_dir"; then
16032 case "$ac_aux_dir" in
16033 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16034 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16037 if test -z "$MKINSTALLDIRS"; then
16038 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16044 $as_echo_n "checking whether NLS is requested... " >&6; }
16045 # Check whether --enable-nls was given.
16046 if test "${enable_nls+set}" = set; then :
16047 enableval=$enable_nls; USE_NLS=$enableval
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16053 $as_echo "$USE_NLS" >&6; }
16060 # Prepare PATH_SEPARATOR.
16061 # The user is always right.
16062 if test "${PATH_SEPARATOR+set}" != set; then
16063 echo "#! /bin/sh" >conf$$.sh
16064 echo "exit 0" >>conf$$.sh
16066 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16074 # Find out how to test for executable files. Don't use a zero-byte file,
16075 # as systems may use methods other than mode bits to determine executability.
16076 cat >conf$$.file <<_ASEOF
16080 chmod +x conf$$.file
16081 if test -x conf$$.file >/dev/null 2>&1; then
16082 ac_executable_p="test -x"
16084 ac_executable_p="test -f"
16088 # Extract the first word of "msgfmt", so it can be a program name with args.
16089 set dummy msgfmt; ac_word=$2
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16091 $as_echo_n "checking for $ac_word... " >&6; }
16092 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16093 $as_echo_n "(cached) " >&6
16097 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16100 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16101 for ac_dir in $PATH; do
16103 test -z "$ac_dir" && ac_dir=.
16104 for ac_exec_ext in '' $ac_executable_extensions; do
16105 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16106 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16107 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16108 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16109 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16116 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16120 MSGFMT="$ac_cv_path_MSGFMT"
16121 if test "$MSGFMT" != ":"; then
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16123 $as_echo "$MSGFMT" >&6; }
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16126 $as_echo "no" >&6; }
16129 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16130 set dummy gmsgfmt; ac_word=$2
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16132 $as_echo_n "checking for $ac_word... " >&6; }
16133 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16134 $as_echo_n "(cached) " >&6
16138 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16142 for as_dir in $PATH
16145 test -z "$as_dir" && as_dir=.
16146 for ac_exec_ext in '' $ac_executable_extensions; do
16147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16148 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16156 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16160 GMSGFMT=$ac_cv_path_GMSGFMT
16161 if test -n "$GMSGFMT"; then
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16163 $as_echo "$GMSGFMT" >&6; }
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16166 $as_echo "no" >&6; }
16172 # Prepare PATH_SEPARATOR.
16173 # The user is always right.
16174 if test "${PATH_SEPARATOR+set}" != set; then
16175 echo "#! /bin/sh" >conf$$.sh
16176 echo "exit 0" >>conf$$.sh
16178 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16186 # Find out how to test for executable files. Don't use a zero-byte file,
16187 # as systems may use methods other than mode bits to determine executability.
16188 cat >conf$$.file <<_ASEOF
16192 chmod +x conf$$.file
16193 if test -x conf$$.file >/dev/null 2>&1; then
16194 ac_executable_p="test -x"
16196 ac_executable_p="test -f"
16200 # Extract the first word of "xgettext", so it can be a program name with args.
16201 set dummy xgettext; ac_word=$2
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16203 $as_echo_n "checking for $ac_word... " >&6; }
16204 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16205 $as_echo_n "(cached) " >&6
16207 case "$XGETTEXT" in
16209 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16212 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16213 for ac_dir in $PATH; do
16215 test -z "$ac_dir" && ac_dir=.
16216 for ac_exec_ext in '' $ac_executable_extensions; do
16217 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16218 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16219 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16220 (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
16221 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16228 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16232 XGETTEXT="$ac_cv_path_XGETTEXT"
16233 if test "$XGETTEXT" != ":"; then
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16235 $as_echo "$XGETTEXT" >&6; }
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16238 $as_echo "no" >&6; }
16244 # Prepare PATH_SEPARATOR.
16245 # The user is always right.
16246 if test "${PATH_SEPARATOR+set}" != set; then
16247 echo "#! /bin/sh" >conf$$.sh
16248 echo "exit 0" >>conf$$.sh
16250 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16258 # Find out how to test for executable files. Don't use a zero-byte file,
16259 # as systems may use methods other than mode bits to determine executability.
16260 cat >conf$$.file <<_ASEOF
16264 chmod +x conf$$.file
16265 if test -x conf$$.file >/dev/null 2>&1; then
16266 ac_executable_p="test -x"
16268 ac_executable_p="test -f"
16272 # Extract the first word of "msgmerge", so it can be a program name with args.
16273 set dummy msgmerge; ac_word=$2
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16275 $as_echo_n "checking for $ac_word... " >&6; }
16276 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16277 $as_echo_n "(cached) " >&6
16279 case "$MSGMERGE" in
16281 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16284 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16285 for ac_dir in $PATH; do
16287 test -z "$ac_dir" && ac_dir=.
16288 for ac_exec_ext in '' $ac_executable_extensions; do
16289 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16290 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16291 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16292 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16299 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16303 MSGMERGE="$ac_cv_path_MSGMERGE"
16304 if test "$MSGMERGE" != ":"; then
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16306 $as_echo "$MSGMERGE" >&6; }
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16309 $as_echo "no" >&6; }
16313 if test "$GMSGFMT" != ":"; then
16314 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16315 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16318 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16320 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16325 if test "$XGETTEXT" != ":"; then
16326 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16327 (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
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16331 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16337 ac_config_commands="$ac_config_commands default-1"
16341 if test "X$prefix" = "XNONE"; then
16342 acl_final_prefix="$ac_default_prefix"
16344 acl_final_prefix="$prefix"
16346 if test "X$exec_prefix" = "XNONE"; then
16347 acl_final_exec_prefix='${prefix}'
16349 acl_final_exec_prefix="$exec_prefix"
16351 acl_save_prefix="$prefix"
16352 prefix="$acl_final_prefix"
16353 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16354 prefix="$acl_save_prefix"
16357 # Check whether --with-gnu-ld was given.
16358 if test "${with_gnu_ld+set}" = set; then :
16359 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16364 # Prepare PATH_SEPARATOR.
16365 # The user is always right.
16366 if test "${PATH_SEPARATOR+set}" != set; then
16367 echo "#! /bin/sh" >conf$$.sh
16368 echo "exit 0" >>conf$$.sh
16370 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16378 if test "$GCC" = yes; then
16379 # Check if gcc -print-prog-name=ld gives a path.
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16381 $as_echo_n "checking for ld used by GCC... " >&6; }
16384 # gcc leaves a trailing carriage return which upsets mingw
16385 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16387 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16390 # Accept absolute paths.
16391 [\\/]* | [A-Za-z]:[\\/]*)
16392 re_direlt='/[^/][^/]*/\.\./'
16393 # Canonicalize the path of ld
16394 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16395 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16396 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16398 test -z "$LD" && LD="$ac_prog"
16401 # If it fails, then pretend we aren't using GCC.
16405 # If it is relative, then search for the first ld in PATH.
16406 with_gnu_ld=unknown
16409 elif test "$with_gnu_ld" = yes; then
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16411 $as_echo_n "checking for GNU ld... " >&6; }
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16414 $as_echo_n "checking for non-GNU ld... " >&6; }
16416 if test "${acl_cv_path_LD+set}" = set; then :
16417 $as_echo_n "(cached) " >&6
16419 if test -z "$LD"; then
16420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16421 for ac_dir in $PATH; do
16422 test -z "$ac_dir" && ac_dir=.
16423 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16424 acl_cv_path_LD="$ac_dir/$ac_prog"
16425 # Check to see if the program is GNU ld. I'd rather use --version,
16426 # but apparently some GNU ld's only accept -v.
16427 # Break only if it was the GNU/non-GNU ld that we prefer.
16428 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16429 *GNU* | *'with BFD'*)
16430 test "$with_gnu_ld" != no && break ;;
16432 test "$with_gnu_ld" != yes && break ;;
16438 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16442 LD="$acl_cv_path_LD"
16443 if test -n "$LD"; then
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16445 $as_echo "$LD" >&6; }
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16448 $as_echo "no" >&6; }
16450 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16452 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16453 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
16454 $as_echo_n "(cached) " >&6
16456 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16457 case `$LD -v 2>&1 </dev/null` in
16458 *GNU* | *'with BFD'*)
16459 acl_cv_prog_gnu_ld=yes ;;
16461 acl_cv_prog_gnu_ld=no ;;
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16465 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16466 with_gnu_ld=$acl_cv_prog_gnu_ld
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16472 $as_echo_n "checking for shared library run path origin... " >&6; }
16473 if test "${acl_cv_rpath+set}" = set; then :
16474 $as_echo_n "(cached) " >&6
16477 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16478 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16480 rm -f ./conftest.sh
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16485 $as_echo "$acl_cv_rpath" >&6; }
16487 libext="$acl_cv_libext"
16488 shlibext="$acl_cv_shlibext"
16489 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16490 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16491 hardcode_direct="$acl_cv_hardcode_direct"
16492 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16493 # Check whether --enable-rpath was given.
16494 if test "${enable_rpath+set}" = set; then :
16495 enableval=$enable_rpath; :
16509 acl_save_prefix="$prefix"
16510 prefix="$acl_final_prefix"
16511 acl_save_exec_prefix="$exec_prefix"
16512 exec_prefix="$acl_final_exec_prefix"
16514 eval additional_includedir=\"$includedir\"
16515 eval additional_libdir=\"$libdir\"
16517 exec_prefix="$acl_save_exec_prefix"
16518 prefix="$acl_save_prefix"
16521 # Check whether --with-libiconv-prefix was given.
16522 if test "${with_libiconv_prefix+set}" = set; then :
16523 withval=$with_libiconv_prefix;
16524 if test "X$withval" = "Xno"; then
16527 if test "X$withval" = "X"; then
16529 acl_save_prefix="$prefix"
16530 prefix="$acl_final_prefix"
16531 acl_save_exec_prefix="$exec_prefix"
16532 exec_prefix="$acl_final_exec_prefix"
16534 eval additional_includedir=\"$includedir\"
16535 eval additional_libdir=\"$libdir\"
16537 exec_prefix="$acl_save_exec_prefix"
16538 prefix="$acl_save_prefix"
16541 additional_includedir="$withval/include"
16542 additional_libdir="$withval/lib"
16553 names_already_handled=
16554 names_next_round='iconv '
16555 while test -n "$names_next_round"; do
16556 names_this_round="$names_next_round"
16558 for name in $names_this_round; do
16560 for n in $names_already_handled; do
16561 if test "$n" = "$name"; then
16562 already_handled=yes
16566 if test -z "$already_handled"; then
16567 names_already_handled="$names_already_handled $name"
16568 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16569 eval value=\"\$HAVE_LIB$uppername\"
16570 if test -n "$value"; then
16571 if test "$value" = yes; then
16572 eval value=\"\$LIB$uppername\"
16573 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16574 eval value=\"\$LTLIB$uppername\"
16575 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16584 if test $use_additional = yes; then
16585 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16586 found_dir="$additional_libdir"
16587 found_so="$additional_libdir/lib$name.$shlibext"
16588 if test -f "$additional_libdir/lib$name.la"; then
16589 found_la="$additional_libdir/lib$name.la"
16592 if test -f "$additional_libdir/lib$name.$libext"; then
16593 found_dir="$additional_libdir"
16594 found_a="$additional_libdir/lib$name.$libext"
16595 if test -f "$additional_libdir/lib$name.la"; then
16596 found_la="$additional_libdir/lib$name.la"
16601 if test "X$found_dir" = "X"; then
16602 for x in $LDFLAGS $LTLIBICONV; do
16604 acl_save_prefix="$prefix"
16605 prefix="$acl_final_prefix"
16606 acl_save_exec_prefix="$exec_prefix"
16607 exec_prefix="$acl_final_exec_prefix"
16609 exec_prefix="$acl_save_exec_prefix"
16610 prefix="$acl_save_prefix"
16614 dir=`echo "X$x" | sed -e 's/^X-L//'`
16615 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16617 found_so="$dir/lib$name.$shlibext"
16618 if test -f "$dir/lib$name.la"; then
16619 found_la="$dir/lib$name.la"
16622 if test -f "$dir/lib$name.$libext"; then
16624 found_a="$dir/lib$name.$libext"
16625 if test -f "$dir/lib$name.la"; then
16626 found_la="$dir/lib$name.la"
16632 if test "X$found_dir" != "X"; then
16637 if test "X$found_dir" != "X"; then
16638 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16639 if test "X$found_so" != "X"; then
16640 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16641 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16644 for x in $ltrpathdirs; do
16645 if test "X$x" = "X$found_dir"; then
16650 if test -z "$haveit"; then
16651 ltrpathdirs="$ltrpathdirs $found_dir"
16653 if test "$hardcode_direct" = yes; then
16654 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16656 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16657 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16659 for x in $rpathdirs; do
16660 if test "X$x" = "X$found_dir"; then
16665 if test -z "$haveit"; then
16666 rpathdirs="$rpathdirs $found_dir"
16670 for x in $LDFLAGS $LIBICONV; do
16672 acl_save_prefix="$prefix"
16673 prefix="$acl_final_prefix"
16674 acl_save_exec_prefix="$exec_prefix"
16675 exec_prefix="$acl_final_exec_prefix"
16677 exec_prefix="$acl_save_exec_prefix"
16678 prefix="$acl_save_prefix"
16680 if test "X$x" = "X-L$found_dir"; then
16685 if test -z "$haveit"; then
16686 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16688 if test "$hardcode_minus_L" != no; then
16689 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16691 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16697 if test "X$found_a" != "X"; then
16698 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16700 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16703 additional_includedir=
16704 case "$found_dir" in
16706 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16707 additional_includedir="$basedir/include"
16710 if test "X$additional_includedir" != "X"; then
16711 if test "X$additional_includedir" != "X/usr/include"; then
16713 if test "X$additional_includedir" = "X/usr/local/include"; then
16714 if test -n "$GCC"; then
16716 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16720 if test -z "$haveit"; then
16721 for x in $CPPFLAGS $INCICONV; do
16723 acl_save_prefix="$prefix"
16724 prefix="$acl_final_prefix"
16725 acl_save_exec_prefix="$exec_prefix"
16726 exec_prefix="$acl_final_exec_prefix"
16728 exec_prefix="$acl_save_exec_prefix"
16729 prefix="$acl_save_prefix"
16731 if test "X$x" = "X-I$additional_includedir"; then
16736 if test -z "$haveit"; then
16737 if test -d "$additional_includedir"; then
16738 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16744 if test -n "$found_la"; then
16745 save_libdir="$libdir"
16746 case "$found_la" in
16747 */* | *\\*) . "$found_la" ;;
16748 *) . "./$found_la" ;;
16750 libdir="$save_libdir"
16751 for dep in $dependency_libs; do
16754 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16755 if test "X$additional_libdir" != "X/usr/lib"; then
16757 if test "X$additional_libdir" = "X/usr/local/lib"; then
16758 if test -n "$GCC"; then
16760 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16764 if test -z "$haveit"; then
16766 for x in $LDFLAGS $LIBICONV; do
16768 acl_save_prefix="$prefix"
16769 prefix="$acl_final_prefix"
16770 acl_save_exec_prefix="$exec_prefix"
16771 exec_prefix="$acl_final_exec_prefix"
16773 exec_prefix="$acl_save_exec_prefix"
16774 prefix="$acl_save_prefix"
16776 if test "X$x" = "X-L$additional_libdir"; then
16781 if test -z "$haveit"; then
16782 if test -d "$additional_libdir"; then
16783 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16787 for x in $LDFLAGS $LTLIBICONV; do
16789 acl_save_prefix="$prefix"
16790 prefix="$acl_final_prefix"
16791 acl_save_exec_prefix="$exec_prefix"
16792 exec_prefix="$acl_final_exec_prefix"
16794 exec_prefix="$acl_save_exec_prefix"
16795 prefix="$acl_save_prefix"
16797 if test "X$x" = "X-L$additional_libdir"; then
16802 if test -z "$haveit"; then
16803 if test -d "$additional_libdir"; then
16804 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16811 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16812 if test "$enable_rpath" != no; then
16814 for x in $rpathdirs; do
16815 if test "X$x" = "X$dir"; then
16820 if test -z "$haveit"; then
16821 rpathdirs="$rpathdirs $dir"
16824 for x in $ltrpathdirs; do
16825 if test "X$x" = "X$dir"; then
16830 if test -z "$haveit"; then
16831 ltrpathdirs="$ltrpathdirs $dir"
16836 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16839 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16842 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16843 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16849 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16850 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16856 if test "X$rpathdirs" != "X"; then
16857 if test -n "$hardcode_libdir_separator"; then
16859 for found_dir in $rpathdirs; do
16860 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16862 acl_save_libdir="$libdir"
16864 eval flag=\"$hardcode_libdir_flag_spec\"
16865 libdir="$acl_save_libdir"
16866 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16868 for found_dir in $rpathdirs; do
16869 acl_save_libdir="$libdir"
16870 libdir="$found_dir"
16871 eval flag=\"$hardcode_libdir_flag_spec\"
16872 libdir="$acl_save_libdir"
16873 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16877 if test "X$ltrpathdirs" != "X"; then
16878 for found_dir in $ltrpathdirs; do
16879 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16901 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16902 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
16903 $as_echo_n "(cached) " >&6
16905 gt_save_CPPFLAGS="$CPPFLAGS"
16906 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16907 gt_save_LIBS="$LIBS"
16908 LIBS="$LIBS -framework CoreFoundation"
16909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16910 /* end confdefs.h. */
16911 #include <CFPreferences.h>
16915 CFPreferencesCopyAppValue(NULL, NULL)
16920 if ac_fn_c_try_link "$LINENO"; then :
16921 gt_cv_func_CFPreferencesCopyAppValue=yes
16923 gt_cv_func_CFPreferencesCopyAppValue=no
16925 rm -f core conftest.err conftest.$ac_objext \
16926 conftest$ac_exeext conftest.$ac_ext
16927 CPPFLAGS="$gt_save_CPPFLAGS"
16928 LIBS="$gt_save_LIBS"
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16931 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16932 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16934 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16938 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16939 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
16940 $as_echo_n "(cached) " >&6
16942 gt_save_CPPFLAGS="$CPPFLAGS"
16943 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16944 gt_save_LIBS="$LIBS"
16945 LIBS="$LIBS -framework CoreFoundation"
16946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16947 /* end confdefs.h. */
16948 #include <CFLocale.h>
16952 CFLocaleCopyCurrent();
16957 if ac_fn_c_try_link "$LINENO"; then :
16958 gt_cv_func_CFLocaleCopyCurrent=yes
16960 gt_cv_func_CFLocaleCopyCurrent=no
16962 rm -f core conftest.err conftest.$ac_objext \
16963 conftest$ac_exeext conftest.$ac_ext
16964 CPPFLAGS="$gt_save_CPPFLAGS"
16965 LIBS="$gt_save_LIBS"
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16968 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16969 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16971 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16975 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16976 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16983 $as_echo_n "checking whether NLS is requested... " >&6; }
16984 # Check whether --enable-nls was given.
16985 if test "${enable_nls+set}" = set; then :
16986 enableval=$enable_nls; USE_NLS=$enableval
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16992 $as_echo "$USE_NLS" >&6; }
17001 if test "$USE_NLS" = "yes"; then
17002 gt_use_preinstalled_gnugettext=no
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17010 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17011 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
17012 $as_echo_n "(cached) " >&6
17014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17015 /* end confdefs.h. */
17016 #include <libintl.h>
17017 extern int _nl_msg_cat_cntr;
17018 extern int *_nl_domain_bindings;
17022 bindtextdomain ("", "");
17023 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17028 if ac_fn_c_try_link "$LINENO"; then :
17029 gt_cv_func_gnugettext1_libc=yes
17031 gt_cv_func_gnugettext1_libc=no
17033 rm -f core conftest.err conftest.$ac_objext \
17034 conftest$ac_exeext conftest.$ac_ext
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17037 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17039 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17045 am_save_CPPFLAGS="$CPPFLAGS"
17047 for element in $INCICONV; do
17049 for x in $CPPFLAGS; do
17051 acl_save_prefix="$prefix"
17052 prefix="$acl_final_prefix"
17053 acl_save_exec_prefix="$exec_prefix"
17054 exec_prefix="$acl_final_exec_prefix"
17056 exec_prefix="$acl_save_exec_prefix"
17057 prefix="$acl_save_prefix"
17059 if test "X$x" = "X$element"; then
17064 if test -z "$haveit"; then
17065 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17071 $as_echo_n "checking for iconv... " >&6; }
17072 if test "${am_cv_func_iconv+set}" = set; then :
17073 $as_echo_n "(cached) " >&6
17076 am_cv_func_iconv="no, consider installing GNU libiconv"
17078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17079 /* end confdefs.h. */
17080 #include <stdlib.h>
17085 iconv_t cd = iconv_open("","");
17086 iconv(cd,NULL,NULL,NULL,NULL);
17092 if ac_fn_c_try_link "$LINENO"; then :
17093 am_cv_func_iconv=yes
17095 rm -f core conftest.err conftest.$ac_objext \
17096 conftest$ac_exeext conftest.$ac_ext
17097 if test "$am_cv_func_iconv" != yes; then
17098 am_save_LIBS="$LIBS"
17099 LIBS="$LIBS $LIBICONV"
17100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101 /* end confdefs.h. */
17102 #include <stdlib.h>
17107 iconv_t cd = iconv_open("","");
17108 iconv(cd,NULL,NULL,NULL,NULL);
17114 if ac_fn_c_try_link "$LINENO"; then :
17115 am_cv_lib_iconv=yes
17116 am_cv_func_iconv=yes
17118 rm -f core conftest.err conftest.$ac_objext \
17119 conftest$ac_exeext conftest.$ac_ext
17120 LIBS="$am_save_LIBS"
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17125 $as_echo "$am_cv_func_iconv" >&6; }
17126 if test "$am_cv_func_iconv" = yes; then
17128 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17131 if test "$am_cv_lib_iconv" = yes; then
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17133 $as_echo_n "checking how to link with libiconv... " >&6; }
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17135 $as_echo "$LIBICONV" >&6; }
17137 CPPFLAGS="$am_save_CPPFLAGS"
17149 acl_save_prefix="$prefix"
17150 prefix="$acl_final_prefix"
17151 acl_save_exec_prefix="$exec_prefix"
17152 exec_prefix="$acl_final_exec_prefix"
17154 eval additional_includedir=\"$includedir\"
17155 eval additional_libdir=\"$libdir\"
17157 exec_prefix="$acl_save_exec_prefix"
17158 prefix="$acl_save_prefix"
17161 # Check whether --with-libintl-prefix was given.
17162 if test "${with_libintl_prefix+set}" = set; then :
17163 withval=$with_libintl_prefix;
17164 if test "X$withval" = "Xno"; then
17167 if test "X$withval" = "X"; then
17169 acl_save_prefix="$prefix"
17170 prefix="$acl_final_prefix"
17171 acl_save_exec_prefix="$exec_prefix"
17172 exec_prefix="$acl_final_exec_prefix"
17174 eval additional_includedir=\"$includedir\"
17175 eval additional_libdir=\"$libdir\"
17177 exec_prefix="$acl_save_exec_prefix"
17178 prefix="$acl_save_prefix"
17181 additional_includedir="$withval/include"
17182 additional_libdir="$withval/lib"
17193 names_already_handled=
17194 names_next_round='intl '
17195 while test -n "$names_next_round"; do
17196 names_this_round="$names_next_round"
17198 for name in $names_this_round; do
17200 for n in $names_already_handled; do
17201 if test "$n" = "$name"; then
17202 already_handled=yes
17206 if test -z "$already_handled"; then
17207 names_already_handled="$names_already_handled $name"
17208 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17209 eval value=\"\$HAVE_LIB$uppername\"
17210 if test -n "$value"; then
17211 if test "$value" = yes; then
17212 eval value=\"\$LIB$uppername\"
17213 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17214 eval value=\"\$LTLIB$uppername\"
17215 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17224 if test $use_additional = yes; then
17225 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17226 found_dir="$additional_libdir"
17227 found_so="$additional_libdir/lib$name.$shlibext"
17228 if test -f "$additional_libdir/lib$name.la"; then
17229 found_la="$additional_libdir/lib$name.la"
17232 if test -f "$additional_libdir/lib$name.$libext"; then
17233 found_dir="$additional_libdir"
17234 found_a="$additional_libdir/lib$name.$libext"
17235 if test -f "$additional_libdir/lib$name.la"; then
17236 found_la="$additional_libdir/lib$name.la"
17241 if test "X$found_dir" = "X"; then
17242 for x in $LDFLAGS $LTLIBINTL; do
17244 acl_save_prefix="$prefix"
17245 prefix="$acl_final_prefix"
17246 acl_save_exec_prefix="$exec_prefix"
17247 exec_prefix="$acl_final_exec_prefix"
17249 exec_prefix="$acl_save_exec_prefix"
17250 prefix="$acl_save_prefix"
17254 dir=`echo "X$x" | sed -e 's/^X-L//'`
17255 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17257 found_so="$dir/lib$name.$shlibext"
17258 if test -f "$dir/lib$name.la"; then
17259 found_la="$dir/lib$name.la"
17262 if test -f "$dir/lib$name.$libext"; then
17264 found_a="$dir/lib$name.$libext"
17265 if test -f "$dir/lib$name.la"; then
17266 found_la="$dir/lib$name.la"
17272 if test "X$found_dir" != "X"; then
17277 if test "X$found_dir" != "X"; then
17278 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17279 if test "X$found_so" != "X"; then
17280 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17281 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17284 for x in $ltrpathdirs; do
17285 if test "X$x" = "X$found_dir"; then
17290 if test -z "$haveit"; then
17291 ltrpathdirs="$ltrpathdirs $found_dir"
17293 if test "$hardcode_direct" = yes; then
17294 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17296 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17297 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17299 for x in $rpathdirs; do
17300 if test "X$x" = "X$found_dir"; then
17305 if test -z "$haveit"; then
17306 rpathdirs="$rpathdirs $found_dir"
17310 for x in $LDFLAGS $LIBINTL; do
17312 acl_save_prefix="$prefix"
17313 prefix="$acl_final_prefix"
17314 acl_save_exec_prefix="$exec_prefix"
17315 exec_prefix="$acl_final_exec_prefix"
17317 exec_prefix="$acl_save_exec_prefix"
17318 prefix="$acl_save_prefix"
17320 if test "X$x" = "X-L$found_dir"; then
17325 if test -z "$haveit"; then
17326 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17328 if test "$hardcode_minus_L" != no; then
17329 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17331 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17337 if test "X$found_a" != "X"; then
17338 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17340 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17343 additional_includedir=
17344 case "$found_dir" in
17346 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17347 additional_includedir="$basedir/include"
17350 if test "X$additional_includedir" != "X"; then
17351 if test "X$additional_includedir" != "X/usr/include"; then
17353 if test "X$additional_includedir" = "X/usr/local/include"; then
17354 if test -n "$GCC"; then
17356 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17360 if test -z "$haveit"; then
17361 for x in $CPPFLAGS $INCINTL; do
17363 acl_save_prefix="$prefix"
17364 prefix="$acl_final_prefix"
17365 acl_save_exec_prefix="$exec_prefix"
17366 exec_prefix="$acl_final_exec_prefix"
17368 exec_prefix="$acl_save_exec_prefix"
17369 prefix="$acl_save_prefix"
17371 if test "X$x" = "X-I$additional_includedir"; then
17376 if test -z "$haveit"; then
17377 if test -d "$additional_includedir"; then
17378 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17384 if test -n "$found_la"; then
17385 save_libdir="$libdir"
17386 case "$found_la" in
17387 */* | *\\*) . "$found_la" ;;
17388 *) . "./$found_la" ;;
17390 libdir="$save_libdir"
17391 for dep in $dependency_libs; do
17394 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17395 if test "X$additional_libdir" != "X/usr/lib"; then
17397 if test "X$additional_libdir" = "X/usr/local/lib"; then
17398 if test -n "$GCC"; then
17400 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17404 if test -z "$haveit"; then
17406 for x in $LDFLAGS $LIBINTL; do
17408 acl_save_prefix="$prefix"
17409 prefix="$acl_final_prefix"
17410 acl_save_exec_prefix="$exec_prefix"
17411 exec_prefix="$acl_final_exec_prefix"
17413 exec_prefix="$acl_save_exec_prefix"
17414 prefix="$acl_save_prefix"
17416 if test "X$x" = "X-L$additional_libdir"; then
17421 if test -z "$haveit"; then
17422 if test -d "$additional_libdir"; then
17423 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17427 for x in $LDFLAGS $LTLIBINTL; do
17429 acl_save_prefix="$prefix"
17430 prefix="$acl_final_prefix"
17431 acl_save_exec_prefix="$exec_prefix"
17432 exec_prefix="$acl_final_exec_prefix"
17434 exec_prefix="$acl_save_exec_prefix"
17435 prefix="$acl_save_prefix"
17437 if test "X$x" = "X-L$additional_libdir"; then
17442 if test -z "$haveit"; then
17443 if test -d "$additional_libdir"; then
17444 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17451 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17452 if test "$enable_rpath" != no; then
17454 for x in $rpathdirs; do
17455 if test "X$x" = "X$dir"; then
17460 if test -z "$haveit"; then
17461 rpathdirs="$rpathdirs $dir"
17464 for x in $ltrpathdirs; do
17465 if test "X$x" = "X$dir"; then
17470 if test -z "$haveit"; then
17471 ltrpathdirs="$ltrpathdirs $dir"
17476 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17479 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17482 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17483 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17489 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17490 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17496 if test "X$rpathdirs" != "X"; then
17497 if test -n "$hardcode_libdir_separator"; then
17499 for found_dir in $rpathdirs; do
17500 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17502 acl_save_libdir="$libdir"
17504 eval flag=\"$hardcode_libdir_flag_spec\"
17505 libdir="$acl_save_libdir"
17506 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17508 for found_dir in $rpathdirs; do
17509 acl_save_libdir="$libdir"
17510 libdir="$found_dir"
17511 eval flag=\"$hardcode_libdir_flag_spec\"
17512 libdir="$acl_save_libdir"
17513 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17517 if test "X$ltrpathdirs" != "X"; then
17518 for found_dir in $ltrpathdirs; do
17519 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17524 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17525 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
17526 $as_echo_n "(cached) " >&6
17528 gt_save_CPPFLAGS="$CPPFLAGS"
17529 CPPFLAGS="$CPPFLAGS $INCINTL"
17530 gt_save_LIBS="$LIBS"
17531 LIBS="$LIBS $LIBINTL"
17532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17533 /* end confdefs.h. */
17534 #include <libintl.h>
17535 extern int _nl_msg_cat_cntr;
17540 const char *_nl_expand_alias (const char *);
17544 bindtextdomain ("", "");
17545 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17550 if ac_fn_c_try_link "$LINENO"; then :
17551 gt_cv_func_gnugettext1_libintl=yes
17553 gt_cv_func_gnugettext1_libintl=no
17555 rm -f core conftest.err conftest.$ac_objext \
17556 conftest$ac_exeext conftest.$ac_ext
17557 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17558 LIBS="$LIBS $LIBICONV"
17559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17560 /* end confdefs.h. */
17561 #include <libintl.h>
17562 extern int _nl_msg_cat_cntr;
17567 const char *_nl_expand_alias (const char *);
17571 bindtextdomain ("", "");
17572 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17577 if ac_fn_c_try_link "$LINENO"; then :
17578 LIBINTL="$LIBINTL $LIBICONV"
17579 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17580 gt_cv_func_gnugettext1_libintl=yes
17583 rm -f core conftest.err conftest.$ac_objext \
17584 conftest$ac_exeext conftest.$ac_ext
17586 CPPFLAGS="$gt_save_CPPFLAGS"
17587 LIBS="$gt_save_LIBS"
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17590 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17593 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17594 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17595 && test "$PACKAGE" != gettext-runtime \
17596 && test "$PACKAGE" != gettext-tools; }; then
17597 gt_use_preinstalled_gnugettext=yes
17606 if test -n "$INTL_MACOSX_LIBS"; then
17607 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17608 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17609 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17610 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17614 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17615 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17617 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17625 $as_echo_n "checking whether to use NLS... " >&6; }
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17627 $as_echo "$USE_NLS" >&6; }
17628 if test "$USE_NLS" = "yes"; then
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17630 $as_echo_n "checking where the gettext function comes from... " >&6; }
17631 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17632 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17633 gt_source="external libintl"
17638 gt_source="included intl directory"
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17641 $as_echo "$gt_source" >&6; }
17644 if test "$USE_NLS" = "yes"; then
17646 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17647 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17649 $as_echo_n "checking how to link with libintl... " >&6; }
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17651 $as_echo "$LIBINTL" >&6; }
17653 for element in $INCINTL; do
17655 for x in $CPPFLAGS; do
17657 acl_save_prefix="$prefix"
17658 prefix="$acl_final_prefix"
17659 acl_save_exec_prefix="$exec_prefix"
17660 exec_prefix="$acl_final_exec_prefix"
17662 exec_prefix="$acl_save_exec_prefix"
17663 prefix="$acl_save_prefix"
17665 if test "X$x" = "X$element"; then
17670 if test -z "$haveit"; then
17671 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17678 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17681 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17690 INTLLIBS="$LIBINTL"
17698 os_name=`uname -s 2>/dev/null`
17699 if test x${prefix} = xNONE ; then
17700 if test `eval echo ${sysconfdir}` = NONE/etc ; then
17701 sysconfdir=/etc/bacula
17704 if test `eval echo ${libdir}` = NONE/lib ; then
17707 os_processor=`uname -p 2>/dev/null`
17708 case ${os_processor} in
17723 if test `eval echo ${includedir}` = NONE/include ; then
17724 includedir=/usr/include
17727 if test `eval echo ${datarootdir}` = NONE/share ; then
17728 datarootdir=/usr/share
17733 if test x${exec_prefix} = xNONE ; then
17734 exec_prefix=${prefix}
17737 sysconfdir=`eval echo ${sysconfdir}`
17738 datarootdir=`eval echo ${datarootdir}`
17739 docdir=`eval echo ${docdir}`
17740 htmldir=`eval echo ${htmldir}`
17741 libdir=`eval echo ${libdir}`
17742 includedir=`eval echo ${includedir}`
17743 localedir=`eval echo ${datarootdir}/locale`
17744 cat >>confdefs.h <<_ACEOF
17745 #define SYSCONFDIR "$sysconfdir"
17748 cat >>confdefs.h <<_ACEOF
17749 #define LOCALEDIR "$localedir"
17753 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17754 sbindir=${exec_prefix}/sbin
17756 sbindir=`eval echo ${sbindir}`
17758 if test x$mandir = x'${prefix}/man' ; then
17759 mandir=/usr/share/man
17762 if test x$htmldir = x${docdir} ; then
17763 htmldir=`eval echo ${docdir}bacula/html`
17766 if test x$docdir = x'/usr/share/doc/' ; then
17767 docdir=`eval echo ${docdir}bacula`
17771 for ac_prog in msgfmt
17773 # Extract the first word of "$ac_prog", so it can be a program name with args.
17774 set dummy $ac_prog; ac_word=$2
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17776 $as_echo_n "checking for $ac_word... " >&6; }
17777 if test "${ac_cv_path_MSGFMT+set}" = set; then :
17778 $as_echo_n "(cached) " >&6
17782 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17786 for as_dir in $PATH
17789 test -z "$as_dir" && as_dir=.
17790 for ac_exec_ext in '' $ac_executable_extensions; do
17791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17792 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17803 MSGFMT=$ac_cv_path_MSGFMT
17804 if test -n "$MSGFMT"; then
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17806 $as_echo "$MSGFMT" >&6; }
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17809 $as_echo "no" >&6; }
17813 test -n "$MSGFMT" && break
17815 test -n "$MSGFMT" || MSGFMT="no"
17817 if test "$MSGFMT" = "no"
17819 echo 'msgfmt program not found, disabling NLS !'
17821 USE_INCLUDED_LIBINTL=no
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17825 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17826 if test "${ac_cv_gnu_library_2+set}" = set; then :
17827 $as_echo_n "(cached) " >&6
17829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17830 /* end confdefs.h. */
17832 #include <features.h>
17833 #ifdef __GNU_LIBRARY__
17834 #if (__GLIBC__ >= 2)
17840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17841 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17842 ac_cv_gnu_library_2=yes
17844 ac_cv_gnu_library_2=no
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17852 $as_echo "$ac_cv_gnu_library_2" >&6; }
17854 GLIBC2="$ac_cv_gnu_library_2"
17857 if test -n "$ac_tool_prefix"; then
17858 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17859 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17861 $as_echo_n "checking for $ac_word... " >&6; }
17862 if test "${ac_cv_prog_RANLIB+set}" = set; then :
17863 $as_echo_n "(cached) " >&6
17865 if test -n "$RANLIB"; then
17866 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17869 for as_dir in $PATH
17872 test -z "$as_dir" && as_dir=.
17873 for ac_exec_ext in '' $ac_executable_extensions; do
17874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17875 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17885 RANLIB=$ac_cv_prog_RANLIB
17886 if test -n "$RANLIB"; then
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17888 $as_echo "$RANLIB" >&6; }
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17891 $as_echo "no" >&6; }
17896 if test -z "$ac_cv_prog_RANLIB"; then
17897 ac_ct_RANLIB=$RANLIB
17898 # Extract the first word of "ranlib", so it can be a program name with args.
17899 set dummy ranlib; ac_word=$2
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17901 $as_echo_n "checking for $ac_word... " >&6; }
17902 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
17903 $as_echo_n "(cached) " >&6
17905 if test -n "$ac_ct_RANLIB"; then
17906 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17909 for as_dir in $PATH
17912 test -z "$as_dir" && as_dir=.
17913 for ac_exec_ext in '' $ac_executable_extensions; do
17914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17915 ac_cv_prog_ac_ct_RANLIB="ranlib"
17916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17925 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17926 if test -n "$ac_ct_RANLIB"; then
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17928 $as_echo "$ac_ct_RANLIB" >&6; }
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17931 $as_echo "no" >&6; }
17934 if test "x$ac_ct_RANLIB" = x; then
17937 case $cross_compiling:$ac_tool_warned in
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17941 ac_tool_warned=yes ;;
17943 RANLIB=$ac_ct_RANLIB
17946 RANLIB="$ac_cv_prog_RANLIB"
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
17951 $as_echo_n "checking for strerror in -lcposix... " >&6; }
17952 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
17953 $as_echo_n "(cached) " >&6
17955 ac_check_lib_save_LIBS=$LIBS
17956 LIBS="-lcposix $LIBS"
17957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17958 /* end confdefs.h. */
17960 /* Override any GCC internal prototype to avoid an error.
17961 Use char because int might match the return type of a GCC
17962 builtin and then its argument prototype would still apply. */
17970 return strerror ();
17975 if ac_fn_c_try_link "$LINENO"; then :
17976 ac_cv_lib_cposix_strerror=yes
17978 ac_cv_lib_cposix_strerror=no
17980 rm -f core conftest.err conftest.$ac_objext \
17981 conftest$ac_exeext conftest.$ac_ext
17982 LIBS=$ac_check_lib_save_LIBS
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
17985 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
17986 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
17987 LIBS="$LIBS -lcposix"
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17993 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17994 if test "${ac_cv_c_const+set}" = set; then :
17995 $as_echo_n "(cached) " >&6
17997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17998 /* end confdefs.h. */
18003 /* FIXME: Include the comments suggested by Paul. */
18004 #ifndef __cplusplus
18005 /* Ultrix mips cc rejects this. */
18006 typedef int charset[2];
18008 /* SunOS 4.1.1 cc rejects this. */
18009 char const *const *pcpcc;
18011 /* NEC SVR4.0.2 mips cc rejects this. */
18012 struct point {int x, y;};
18013 static struct point const zero = {0,0};
18014 /* AIX XL C 1.02.0.0 rejects this.
18015 It does not let you subtract one const X* pointer from another in
18016 an arm of an if-expression whose if-part is not a constant
18018 const char *g = "string";
18019 pcpcc = &g + (g ? g-g : 0);
18020 /* HPUX 7.0 cc rejects these. */
18022 ppc = (char**) pcpcc;
18023 pcpcc = (char const *const *) ppc;
18024 { /* SCO 3.2v4 cc rejects this. */
18026 char const *s = 0 ? (char *) 0 : (char const *) 0;
18031 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18032 int x[] = {25, 17};
18033 const int *foo = &x[0];
18036 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18037 typedef const int *iptr;
18041 { /* AIX XL C 1.02.0.0 rejects this saying
18042 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18043 struct s { int j; const int *ap[3]; };
18044 struct s *b; b->j = 5;
18046 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18047 const int foo = 10;
18048 if (!foo) return 0;
18050 return !cs[0] && !zero.x;
18057 if ac_fn_c_try_compile "$LINENO"; then :
18062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18065 $as_echo "$ac_cv_c_const" >&6; }
18066 if test $ac_cv_c_const = no; then
18068 $as_echo "#define const /**/" >>confdefs.h
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18074 $as_echo_n "checking for signed... " >&6; }
18075 if test "${bh_cv_c_signed+set}" = set; then :
18076 $as_echo_n "(cached) " >&6
18078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18079 /* end confdefs.h. */
18089 if ac_fn_c_try_compile "$LINENO"; then :
18094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18097 $as_echo "$bh_cv_c_signed" >&6; }
18098 if test $bh_cv_c_signed = no; then
18100 $as_echo "#define signed /**/" >>confdefs.h
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18105 $as_echo_n "checking for inline... " >&6; }
18106 if test "${ac_cv_c_inline+set}" = set; then :
18107 $as_echo_n "(cached) " >&6
18110 for ac_kw in inline __inline__ __inline; do
18111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18112 /* end confdefs.h. */
18113 #ifndef __cplusplus
18115 static $ac_kw foo_t static_foo () {return 0; }
18116 $ac_kw foo_t foo () {return 0; }
18120 if ac_fn_c_try_compile "$LINENO"; then :
18121 ac_cv_c_inline=$ac_kw
18123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18124 test "$ac_cv_c_inline" != no && break
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18129 $as_echo "$ac_cv_c_inline" >&6; }
18131 case $ac_cv_c_inline in
18134 case $ac_cv_c_inline in
18136 *) ac_val=$ac_cv_c_inline;;
18138 cat >>confdefs.h <<_ACEOF
18139 #ifndef __cplusplus
18140 #define inline $ac_val
18146 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18147 if test "x$ac_cv_type_off_t" = x""yes; then :
18151 cat >>confdefs.h <<_ACEOF
18152 #define off_t long int
18157 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18158 if test "x$ac_cv_type_size_t" = x""yes; then :
18162 cat >>confdefs.h <<_ACEOF
18163 #define size_t unsigned int
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18170 $as_echo_n "checking for long long... " >&6; }
18171 if test "${ac_cv_type_long_long+set}" = set; then :
18172 $as_echo_n "(cached) " >&6
18174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18175 /* end confdefs.h. */
18176 long long ll = 1LL; int i = 63;
18180 long long llmax = (long long) -1;
18181 return ll << i | ll >> i | llmax / ll | llmax % ll;
18186 if ac_fn_c_try_link "$LINENO"; then :
18187 ac_cv_type_long_long=yes
18189 ac_cv_type_long_long=no
18191 rm -f core conftest.err conftest.$ac_objext \
18192 conftest$ac_exeext conftest.$ac_ext
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18195 $as_echo "$ac_cv_type_long_long" >&6; }
18196 if test $ac_cv_type_long_long = yes; then
18198 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18204 $as_echo_n "checking for long double... " >&6; }
18205 if test "${gt_cv_c_long_double+set}" = set; then :
18206 $as_echo_n "(cached) " >&6
18208 if test "$GCC" = yes; then
18209 gt_cv_c_long_double=yes
18211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18212 /* end confdefs.h. */
18214 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
18215 long double foo = 0.0;
18216 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
18217 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18227 if ac_fn_c_try_compile "$LINENO"; then :
18228 gt_cv_c_long_double=yes
18230 gt_cv_c_long_double=no
18232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18236 $as_echo "$gt_cv_c_long_double" >&6; }
18237 if test $gt_cv_c_long_double = yes; then
18239 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18245 $as_echo_n "checking for wchar_t... " >&6; }
18246 if test "${gt_cv_c_wchar_t+set}" = set; then :
18247 $as_echo_n "(cached) " >&6
18249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250 /* end confdefs.h. */
18251 #include <stddef.h>
18252 wchar_t foo = (wchar_t)'\0';
18261 if ac_fn_c_try_compile "$LINENO"; then :
18262 gt_cv_c_wchar_t=yes
18266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18269 $as_echo "$gt_cv_c_wchar_t" >&6; }
18270 if test $gt_cv_c_wchar_t = yes; then
18272 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18278 $as_echo_n "checking for wint_t... " >&6; }
18279 if test "${gt_cv_c_wint_t+set}" = set; then :
18280 $as_echo_n "(cached) " >&6
18282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18283 /* end confdefs.h. */
18285 wint_t foo = (wchar_t)'\0';
18294 if ac_fn_c_try_compile "$LINENO"; then :
18299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18302 $as_echo "$gt_cv_c_wint_t" >&6; }
18303 if test $gt_cv_c_wint_t = yes; then
18305 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18311 $as_echo_n "checking for inttypes.h... " >&6; }
18312 if test "${gl_cv_header_inttypes_h+set}" = set; then :
18313 $as_echo_n "(cached) " >&6
18315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18316 /* end confdefs.h. */
18317 #include <sys/types.h>
18318 #include <inttypes.h>
18322 uintmax_t i = (uintmax_t) -1;
18327 if ac_fn_c_try_compile "$LINENO"; then :
18328 gl_cv_header_inttypes_h=yes
18330 gl_cv_header_inttypes_h=no
18332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18335 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18336 if test $gl_cv_header_inttypes_h = yes; then
18338 cat >>confdefs.h <<_ACEOF
18339 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18346 $as_echo_n "checking for stdint.h... " >&6; }
18347 if test "${gl_cv_header_stdint_h+set}" = set; then :
18348 $as_echo_n "(cached) " >&6
18350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18351 /* end confdefs.h. */
18352 #include <sys/types.h>
18353 #include <stdint.h>
18357 uintmax_t i = (uintmax_t) -1;
18362 if ac_fn_c_try_compile "$LINENO"; then :
18363 gl_cv_header_stdint_h=yes
18365 gl_cv_header_stdint_h=no
18367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18370 $as_echo "$gl_cv_header_stdint_h" >&6; }
18371 if test $gl_cv_header_stdint_h = yes; then
18373 cat >>confdefs.h <<_ACEOF
18374 #define HAVE_STDINT_H_WITH_UINTMAX 1
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18383 $as_echo_n "checking for intmax_t... " >&6; }
18384 if test "${gt_cv_c_intmax_t+set}" = set; then :
18385 $as_echo_n "(cached) " >&6
18387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18388 /* end confdefs.h. */
18390 #include <stddef.h>
18391 #include <stdlib.h>
18392 #if HAVE_STDINT_H_WITH_UINTMAX
18393 #include <stdint.h>
18395 #if HAVE_INTTYPES_H_WITH_UINTMAX
18396 #include <inttypes.h>
18407 if ac_fn_c_try_compile "$LINENO"; then :
18408 gt_cv_c_intmax_t=yes
18410 gt_cv_c_intmax_t=no
18412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18415 $as_echo "$gt_cv_c_intmax_t" >&6; }
18416 if test $gt_cv_c_intmax_t = yes; then
18418 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18425 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18426 if test "${gt_cv_func_printf_posix+set}" = set; then :
18427 $as_echo_n "(cached) " >&6
18430 if test "$cross_compiling" = yes; then :
18432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18433 /* end confdefs.h. */
18435 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18441 $EGREP "notposix" >/dev/null 2>&1; then :
18442 gt_cv_func_printf_posix="guessing no"
18444 gt_cv_func_printf_posix="guessing yes"
18450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18451 /* end confdefs.h. */
18454 #include <string.h>
18455 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18456 dollar expansion (possibly an autoconf bug). */
18457 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18458 static char buf[100];
18461 sprintf (buf, format, 33, 55);
18462 return (strcmp (buf, "55 33") != 0);
18465 if ac_fn_c_try_run "$LINENO"; then :
18466 gt_cv_func_printf_posix=yes
18468 gt_cv_func_printf_posix=no
18470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18471 conftest.$ac_objext conftest.beam conftest.$ac_ext
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18477 $as_echo "$gt_cv_func_printf_posix" >&6; }
18478 case $gt_cv_func_printf_posix in
18481 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18486 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18487 # for constant arguments. Useless!
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18489 $as_echo_n "checking for working alloca.h... " >&6; }
18490 if test "${ac_cv_working_alloca_h+set}" = set; then :
18491 $as_echo_n "(cached) " >&6
18493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18494 /* end confdefs.h. */
18495 #include <alloca.h>
18499 char *p = (char *) alloca (2 * sizeof (int));
18505 if ac_fn_c_try_link "$LINENO"; then :
18506 ac_cv_working_alloca_h=yes
18508 ac_cv_working_alloca_h=no
18510 rm -f core conftest.err conftest.$ac_objext \
18511 conftest$ac_exeext conftest.$ac_ext
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18514 $as_echo "$ac_cv_working_alloca_h" >&6; }
18515 if test $ac_cv_working_alloca_h = yes; then
18517 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18522 $as_echo_n "checking for alloca... " >&6; }
18523 if test "${ac_cv_func_alloca_works+set}" = set; then :
18524 $as_echo_n "(cached) " >&6
18526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18527 /* end confdefs.h. */
18529 # define alloca __builtin_alloca
18532 # include <malloc.h>
18533 # define alloca _alloca
18535 # ifdef HAVE_ALLOCA_H
18536 # include <alloca.h>
18541 # ifndef alloca /* predefined by HP cc +Olibcalls */
18552 char *p = (char *) alloca (1);
18558 if ac_fn_c_try_link "$LINENO"; then :
18559 ac_cv_func_alloca_works=yes
18561 ac_cv_func_alloca_works=no
18563 rm -f core conftest.err conftest.$ac_objext \
18564 conftest$ac_exeext conftest.$ac_ext
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18567 $as_echo "$ac_cv_func_alloca_works" >&6; }
18569 if test $ac_cv_func_alloca_works = yes; then
18571 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18574 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18575 # that cause trouble. Some versions do not even contain alloca or
18576 # contain a buggy version. If you still want to use their alloca,
18577 # use ar to extract alloca.o from them instead of compiling alloca.c.
18579 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18581 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18585 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18586 if test "${ac_cv_os_cray+set}" = set; then :
18587 $as_echo_n "(cached) " >&6
18589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18590 /* end confdefs.h. */
18591 #if defined CRAY && ! defined CRAY2
18598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18599 $EGREP "webecray" >/dev/null 2>&1; then :
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18608 $as_echo "$ac_cv_os_cray" >&6; }
18609 if test $ac_cv_os_cray = yes; then
18610 for ac_func in _getb67 GETB67 getb67; do
18611 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18612 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18613 eval as_val=\$$as_ac_var
18614 if test "x$as_val" = x""yes; then :
18616 cat >>confdefs.h <<_ACEOF
18617 #define CRAY_STACKSEG_END $ac_func
18626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18627 $as_echo_n "checking stack direction for C alloca... " >&6; }
18628 if test "${ac_cv_c_stack_direction+set}" = set; then :
18629 $as_echo_n "(cached) " >&6
18631 if test "$cross_compiling" = yes; then :
18632 ac_cv_c_stack_direction=0
18634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18635 /* end confdefs.h. */
18636 $ac_includes_default
18638 find_stack_direction ()
18640 static char *addr = 0;
18645 return find_stack_direction ();
18648 return (&dummy > addr) ? 1 : -1;
18654 return find_stack_direction () < 0;
18657 if ac_fn_c_try_run "$LINENO"; then :
18658 ac_cv_c_stack_direction=1
18660 ac_cv_c_stack_direction=-1
18662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18663 conftest.$ac_objext conftest.beam conftest.$ac_ext
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18668 $as_echo "$ac_cv_c_stack_direction" >&6; }
18669 cat >>confdefs.h <<_ACEOF
18670 #define STACK_DIRECTION $ac_cv_c_stack_direction
18679 for ac_header in $ac_header_list
18681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18682 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18684 eval as_val=\$$as_ac_Header
18685 if test "x$as_val" = x""yes; then :
18686 cat >>confdefs.h <<_ACEOF
18687 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18701 for ac_func in getpagesize
18703 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18704 if test "x$ac_cv_func_getpagesize" = x""yes; then :
18705 cat >>confdefs.h <<_ACEOF
18706 #define HAVE_GETPAGESIZE 1
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18713 $as_echo_n "checking for working mmap... " >&6; }
18714 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
18715 $as_echo_n "(cached) " >&6
18717 if test "$cross_compiling" = yes; then :
18718 ac_cv_func_mmap_fixed_mapped=no
18720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18721 /* end confdefs.h. */
18722 $ac_includes_default
18723 /* malloc might have been renamed as rpl_malloc. */
18726 /* Thanks to Mike Haertel and Jim Avera for this test.
18727 Here is a matrix of mmap possibilities:
18728 mmap private not fixed
18729 mmap private fixed at somewhere currently unmapped
18730 mmap private fixed at somewhere already mapped
18731 mmap shared not fixed
18732 mmap shared fixed at somewhere currently unmapped
18733 mmap shared fixed at somewhere already mapped
18734 For private mappings, we should verify that changes cannot be read()
18735 back from the file, nor mmap's back from the file at a different
18736 address. (There have been systems where private was not correctly
18737 implemented like the infamous i386 svr4.0, and systems where the
18738 VM page cache was not coherent with the file system buffer cache
18739 like early versions of FreeBSD and possibly contemporary NetBSD.)
18740 For shared mappings, we should conversely verify that changes get
18741 propagated back to all the places they're supposed to be.
18743 Grep wants private fixed already mapped.
18744 The main things grep needs to know about mmap are:
18745 * does it exist and is it safe to write into the mmap'd area
18746 * how to use it (BSD variants) */
18749 #include <sys/mman.h>
18751 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18755 /* This mess was copied from the GNU getpagesize.h. */
18756 #ifndef HAVE_GETPAGESIZE
18757 # ifdef _SC_PAGESIZE
18758 # define getpagesize() sysconf(_SC_PAGESIZE)
18759 # else /* no _SC_PAGESIZE */
18760 # ifdef HAVE_SYS_PARAM_H
18761 # include <sys/param.h>
18762 # ifdef EXEC_PAGESIZE
18763 # define getpagesize() EXEC_PAGESIZE
18764 # else /* no EXEC_PAGESIZE */
18766 # define getpagesize() NBPG * CLSIZE
18769 # endif /* no CLSIZE */
18770 # else /* no NBPG */
18772 # define getpagesize() NBPC
18773 # else /* no NBPC */
18775 # define getpagesize() PAGESIZE
18776 # endif /* PAGESIZE */
18777 # endif /* no NBPC */
18778 # endif /* no NBPG */
18779 # endif /* no EXEC_PAGESIZE */
18780 # else /* no HAVE_SYS_PARAM_H */
18781 # define getpagesize() 8192 /* punt totally */
18782 # endif /* no HAVE_SYS_PARAM_H */
18783 # endif /* no _SC_PAGESIZE */
18785 #endif /* no HAVE_GETPAGESIZE */
18790 char *data, *data2, *data3;
18791 const char *cdata2;
18795 pagesize = getpagesize ();
18797 /* First, make a file with some known garbage in it. */
18798 data = (char *) malloc (pagesize);
18801 for (i = 0; i < pagesize; ++i)
18802 *(data + i) = rand ();
18804 fd = creat ("conftest.mmap", 0600);
18807 if (write (fd, data, pagesize) != pagesize)
18811 /* Next, check that the tail of a page is zero-filled. File must have
18812 non-zero length, otherwise we risk SIGBUS for entire page. */
18813 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18817 if (write (fd2, cdata2, 1) != 1)
18819 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18820 if (data2 == MAP_FAILED)
18822 for (i = 0; i < pagesize; ++i)
18826 if (munmap (data2, pagesize))
18829 /* Next, try to mmap the file at a fixed address which already has
18830 something else allocated at it. If we can, also make sure that
18831 we see the same garbage. */
18832 fd = open ("conftest.mmap", O_RDWR);
18835 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18836 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18838 for (i = 0; i < pagesize; ++i)
18839 if (*(data + i) != *(data2 + i))
18842 /* Finally, make sure that changes to the mapped area do not
18843 percolate back to the file as seen by read(). (This is a bug on
18844 some variants of i386 svr4.0.) */
18845 for (i = 0; i < pagesize; ++i)
18846 *(data2 + i) = *(data2 + i) + 1;
18847 data3 = (char *) malloc (pagesize);
18850 if (read (fd, data3, pagesize) != pagesize)
18852 for (i = 0; i < pagesize; ++i)
18853 if (*(data + i) != *(data3 + i))
18859 if ac_fn_c_try_run "$LINENO"; then :
18860 ac_cv_func_mmap_fixed_mapped=yes
18862 ac_cv_func_mmap_fixed_mapped=no
18864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18865 conftest.$ac_objext conftest.beam conftest.$ac_ext
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18870 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18871 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18873 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18876 rm -f conftest.mmap conftest.txt
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18880 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18881 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
18882 $as_echo_n "(cached) " >&6
18884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18885 /* end confdefs.h. */
18887 #include <features.h>
18888 #ifdef __GNU_LIBRARY__
18889 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18896 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18897 ac_cv_gnu_library_2_1=yes
18899 ac_cv_gnu_library_2_1=no
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18907 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18909 GLIBC21="$ac_cv_gnu_library_2_1"
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18915 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18916 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
18917 $as_echo_n "(cached) " >&6
18920 if test "$cross_compiling" = yes; then :
18922 # Guess based on the CPU.
18923 case "$host_cpu" in
18924 alpha* | i3456786 | m68k | s390*)
18925 gt_cv_int_divbyzero_sigfpe="guessing yes";;
18927 gt_cv_int_divbyzero_sigfpe="guessing no";;
18931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18932 /* end confdefs.h. */
18934 #include <stdlib.h>
18935 #include <signal.h>
18939 sigfpe_handler (int sig)
18941 sigfpe_handler (sig) int sig;
18944 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
18945 exit (sig != SIGFPE);
18955 signal (SIGFPE, sigfpe_handler);
18956 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
18957 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18958 signal (SIGTRAP, sigfpe_handler);
18960 /* Linux/SPARC yields signal SIGILL. */
18961 #if defined (__sparc__) && defined (__linux__)
18962 signal (SIGILL, sigfpe_handler);
18971 if ac_fn_c_try_run "$LINENO"; then :
18972 gt_cv_int_divbyzero_sigfpe=yes
18974 gt_cv_int_divbyzero_sigfpe=no
18976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18977 conftest.$ac_objext conftest.beam conftest.$ac_ext
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
18983 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
18984 case "$gt_cv_int_divbyzero_sigfpe" in
18989 cat >>confdefs.h <<_ACEOF
18990 #define INTDIV0_RAISES_SIGFPE $value
18995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
18996 $as_echo_n "checking for unsigned long long... " >&6; }
18997 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
18998 $as_echo_n "(cached) " >&6
19000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19001 /* end confdefs.h. */
19002 unsigned long long ull = 1ULL; int i = 63;
19006 unsigned long long ullmax = (unsigned long long) -1;
19007 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19012 if ac_fn_c_try_link "$LINENO"; then :
19013 ac_cv_type_unsigned_long_long=yes
19015 ac_cv_type_unsigned_long_long=no
19017 rm -f core conftest.err conftest.$ac_objext \
19018 conftest$ac_exeext conftest.$ac_ext
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19021 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19022 if test $ac_cv_type_unsigned_long_long = yes; then
19024 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19031 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19033 test $ac_cv_type_unsigned_long_long = yes \
19034 && ac_type='unsigned long long' \
19035 || ac_type='unsigned long'
19037 cat >>confdefs.h <<_ACEOF
19038 #define uintmax_t $ac_type
19043 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19049 $as_echo_n "checking for inttypes.h... " >&6; }
19050 if test "${gt_cv_header_inttypes_h+set}" = set; then :
19051 $as_echo_n "(cached) " >&6
19054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19055 /* end confdefs.h. */
19056 #include <sys/types.h>
19057 #include <inttypes.h>
19066 if ac_fn_c_try_compile "$LINENO"; then :
19067 gt_cv_header_inttypes_h=yes
19069 gt_cv_header_inttypes_h=no
19071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19075 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19076 if test $gt_cv_header_inttypes_h = yes; then
19078 cat >>confdefs.h <<_ACEOF
19079 #define HAVE_INTTYPES_H 1
19086 if test $gt_cv_header_inttypes_h = yes; then
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19088 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19089 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
19090 $as_echo_n "(cached) " >&6
19093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19094 /* end confdefs.h. */
19095 #include <inttypes.h>
19108 if ac_fn_c_try_compile "$LINENO"; then :
19109 gt_cv_inttypes_pri_broken=no
19111 gt_cv_inttypes_pri_broken=yes
19113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19117 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19119 if test "$gt_cv_inttypes_pri_broken" = yes; then
19121 cat >>confdefs.h <<_ACEOF
19122 #define PRI_MACROS_BROKEN 1
19128 for ac_header in stdint.h
19130 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19131 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19132 cat >>confdefs.h <<_ACEOF
19133 #define HAVE_STDINT_H 1
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19141 $as_echo_n "checking for SIZE_MAX... " >&6; }
19143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19144 /* end confdefs.h. */
19146 #include <limits.h>
19148 #include <stdint.h>
19155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19156 $EGREP "Found it" >/dev/null 2>&1; then :
19161 if test -z "$result"; then
19162 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
19169 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
19176 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
19183 if test "$fits_in_uint" = 1; then
19184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19185 /* end confdefs.h. */
19186 #include <stddef.h>
19188 extern unsigned long foo;
19198 if ac_fn_c_try_compile "$LINENO"; then :
19201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19203 if test -z "$result"; then
19204 if test "$fits_in_uint" = 1; then
19205 result="$res_hi$res_lo"U
19207 result="$res_hi$res_lo"UL
19210 result='~(size_t)0'
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19214 $as_echo "$result" >&6; }
19215 if test "$result" != yes; then
19217 cat >>confdefs.h <<_ACEOF
19218 #define SIZE_MAX $result
19226 for ac_header in stdint.h
19228 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19229 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19230 cat >>confdefs.h <<_ACEOF
19231 #define HAVE_STDINT_H 1
19245 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19246 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
19250 $as_echo "#define ptrdiff_t long" >>confdefs.h
19255 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19256 stdlib.h string.h unistd.h sys/param.h
19258 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19259 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19260 eval as_val=\$$as_ac_Header
19261 if test "x$as_val" = x""yes; then :
19262 cat >>confdefs.h <<_ACEOF
19263 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19270 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19271 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19272 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19275 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19276 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19277 eval as_val=\$$as_ac_var
19278 if test "x$as_val" = x""yes; then :
19279 cat >>confdefs.h <<_ACEOF
19280 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19289 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19290 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
19291 $as_echo_n "(cached) " >&6
19293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19294 /* end confdefs.h. */
19301 char *p = (char *) _snprintf;
19308 if ac_fn_c_try_compile "$LINENO"; then :
19309 ac_cv_have_decl__snprintf=yes
19311 ac_cv_have_decl__snprintf=no
19313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19316 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19317 if test $ac_cv_have_decl__snprintf = yes; then
19323 cat >>confdefs.h <<_ACEOF
19324 #define HAVE_DECL__SNPRINTF $gt_value
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19330 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19331 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
19332 $as_echo_n "(cached) " >&6
19334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19335 /* end confdefs.h. */
19342 char *p = (char *) _snwprintf;
19349 if ac_fn_c_try_compile "$LINENO"; then :
19350 ac_cv_have_decl__snwprintf=yes
19352 ac_cv_have_decl__snwprintf=no
19354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19357 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19358 if test $ac_cv_have_decl__snwprintf = yes; then
19364 cat >>confdefs.h <<_ACEOF
19365 #define HAVE_DECL__SNWPRINTF $gt_value
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19372 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19373 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
19374 $as_echo_n "(cached) " >&6
19376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19377 /* end confdefs.h. */
19383 #ifndef feof_unlocked
19384 char *p = (char *) feof_unlocked;
19391 if ac_fn_c_try_compile "$LINENO"; then :
19392 ac_cv_have_decl_feof_unlocked=yes
19394 ac_cv_have_decl_feof_unlocked=no
19396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19399 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19400 if test $ac_cv_have_decl_feof_unlocked = yes; then
19406 cat >>confdefs.h <<_ACEOF
19407 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19413 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19414 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
19415 $as_echo_n "(cached) " >&6
19417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19418 /* end confdefs.h. */
19424 #ifndef fgets_unlocked
19425 char *p = (char *) fgets_unlocked;
19432 if ac_fn_c_try_compile "$LINENO"; then :
19433 ac_cv_have_decl_fgets_unlocked=yes
19435 ac_cv_have_decl_fgets_unlocked=no
19437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19440 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19441 if test $ac_cv_have_decl_fgets_unlocked = yes; then
19447 cat >>confdefs.h <<_ACEOF
19448 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19454 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19455 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
19456 $as_echo_n "(cached) " >&6
19458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19459 /* end confdefs.h. */
19465 #ifndef getc_unlocked
19466 char *p = (char *) getc_unlocked;
19473 if ac_fn_c_try_compile "$LINENO"; then :
19474 ac_cv_have_decl_getc_unlocked=yes
19476 ac_cv_have_decl_getc_unlocked=no
19478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19481 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19482 if test $ac_cv_have_decl_getc_unlocked = yes; then
19488 cat >>confdefs.h <<_ACEOF
19489 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19494 case $gt_cv_func_printf_posix in
19495 *yes) HAVE_POSIX_PRINTF=1 ;;
19496 *) HAVE_POSIX_PRINTF=0 ;;
19499 if test "$ac_cv_func_asprintf" = yes; then
19505 if test "$ac_cv_func_snprintf" = yes; then
19511 if test "$ac_cv_func_wprintf" = yes; then
19523 am_save_CPPFLAGS="$CPPFLAGS"
19525 for element in $INCICONV; do
19527 for x in $CPPFLAGS; do
19529 acl_save_prefix="$prefix"
19530 prefix="$acl_final_prefix"
19531 acl_save_exec_prefix="$exec_prefix"
19532 exec_prefix="$acl_final_exec_prefix"
19534 exec_prefix="$acl_save_exec_prefix"
19535 prefix="$acl_save_prefix"
19537 if test "X$x" = "X$element"; then
19542 if test -z "$haveit"; then
19543 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19549 $as_echo_n "checking for iconv... " >&6; }
19550 if test "${am_cv_func_iconv+set}" = set; then :
19551 $as_echo_n "(cached) " >&6
19554 am_cv_func_iconv="no, consider installing GNU libiconv"
19556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19557 /* end confdefs.h. */
19558 #include <stdlib.h>
19563 iconv_t cd = iconv_open("","");
19564 iconv(cd,NULL,NULL,NULL,NULL);
19570 if ac_fn_c_try_link "$LINENO"; then :
19571 am_cv_func_iconv=yes
19573 rm -f core conftest.err conftest.$ac_objext \
19574 conftest$ac_exeext conftest.$ac_ext
19575 if test "$am_cv_func_iconv" != yes; then
19576 am_save_LIBS="$LIBS"
19577 LIBS="$LIBS $LIBICONV"
19578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19579 /* end confdefs.h. */
19580 #include <stdlib.h>
19585 iconv_t cd = iconv_open("","");
19586 iconv(cd,NULL,NULL,NULL,NULL);
19592 if ac_fn_c_try_link "$LINENO"; then :
19593 am_cv_lib_iconv=yes
19594 am_cv_func_iconv=yes
19596 rm -f core conftest.err conftest.$ac_objext \
19597 conftest$ac_exeext conftest.$ac_ext
19598 LIBS="$am_save_LIBS"
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19603 $as_echo "$am_cv_func_iconv" >&6; }
19604 if test "$am_cv_func_iconv" = yes; then
19606 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19609 if test "$am_cv_lib_iconv" = yes; then
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19611 $as_echo_n "checking how to link with libiconv... " >&6; }
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19613 $as_echo "$LIBICONV" >&6; }
19615 CPPFLAGS="$am_save_CPPFLAGS"
19622 if test "$am_cv_func_iconv" = yes; then
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19624 $as_echo_n "checking for iconv declaration... " >&6; }
19625 if test "${am_cv_proto_iconv+set}" = set; then :
19626 $as_echo_n "(cached) " >&6
19629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19630 /* end confdefs.h. */
19632 #include <stdlib.h>
19638 #if defined(__STDC__) || defined(__cplusplus)
19639 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19652 if ac_fn_c_try_compile "$LINENO"; then :
19653 am_cv_proto_iconv_arg1=""
19655 am_cv_proto_iconv_arg1="const"
19657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19658 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);"
19661 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19663 }$am_cv_proto_iconv" >&5
19665 }$am_cv_proto_iconv" >&6; }
19667 cat >>confdefs.h <<_ACEOF
19668 #define ICONV_CONST $am_cv_proto_iconv_arg1
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19675 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19676 if test "${am_cv_langinfo_codeset+set}" = set; then :
19677 $as_echo_n "(cached) " >&6
19679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19680 /* end confdefs.h. */
19681 #include <langinfo.h>
19685 char* cs = nl_langinfo(CODESET);
19690 if ac_fn_c_try_link "$LINENO"; then :
19691 am_cv_langinfo_codeset=yes
19693 am_cv_langinfo_codeset=no
19695 rm -f core conftest.err conftest.$ac_objext \
19696 conftest$ac_exeext conftest.$ac_ext
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19700 $as_echo "$am_cv_langinfo_codeset" >&6; }
19701 if test $am_cv_langinfo_codeset = yes; then
19703 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19707 if test $ac_cv_header_locale_h = yes; then
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19710 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19711 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
19712 $as_echo_n "(cached) " >&6
19714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19715 /* end confdefs.h. */
19716 #include <locale.h>
19725 if ac_fn_c_try_link "$LINENO"; then :
19726 gt_cv_val_LC_MESSAGES=yes
19728 gt_cv_val_LC_MESSAGES=no
19730 rm -f core conftest.err conftest.$ac_objext \
19731 conftest$ac_exeext conftest.$ac_ext
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19734 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19735 if test $gt_cv_val_LC_MESSAGES = yes; then
19737 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19743 if test -n "$INTL_MACOSX_LIBS"; then
19744 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19747 for ac_prog in bison
19749 # Extract the first word of "$ac_prog", so it can be a program name with args.
19750 set dummy $ac_prog; ac_word=$2
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19752 $as_echo_n "checking for $ac_word... " >&6; }
19753 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
19754 $as_echo_n "(cached) " >&6
19756 if test -n "$INTLBISON"; then
19757 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19760 for as_dir in $PATH
19763 test -z "$as_dir" && as_dir=.
19764 for ac_exec_ext in '' $ac_executable_extensions; do
19765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19766 ac_cv_prog_INTLBISON="$ac_prog"
19767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19776 INTLBISON=$ac_cv_prog_INTLBISON
19777 if test -n "$INTLBISON"; then
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19779 $as_echo "$INTLBISON" >&6; }
19781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19782 $as_echo "no" >&6; }
19786 test -n "$INTLBISON" && break
19789 if test -z "$INTLBISON"; then
19792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19793 $as_echo_n "checking version of bison... " >&6; }
19794 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19795 case $ac_prog_version in
19796 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19797 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19798 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19799 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19802 $as_echo "$ac_prog_version" >&6; }
19804 if test $ac_verc_fail = yes; then
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19824 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19825 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
19826 $as_echo_n "(cached) " >&6
19828 gt_save_CPPFLAGS="$CPPFLAGS"
19829 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19830 gt_save_LIBS="$LIBS"
19831 LIBS="$LIBS -framework CoreFoundation"
19832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19833 /* end confdefs.h. */
19834 #include <CFPreferences.h>
19838 CFPreferencesCopyAppValue(NULL, NULL)
19843 if ac_fn_c_try_link "$LINENO"; then :
19844 gt_cv_func_CFPreferencesCopyAppValue=yes
19846 gt_cv_func_CFPreferencesCopyAppValue=no
19848 rm -f core conftest.err conftest.$ac_objext \
19849 conftest$ac_exeext conftest.$ac_ext
19850 CPPFLAGS="$gt_save_CPPFLAGS"
19851 LIBS="$gt_save_LIBS"
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19854 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19855 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19857 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19861 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19862 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
19863 $as_echo_n "(cached) " >&6
19865 gt_save_CPPFLAGS="$CPPFLAGS"
19866 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19867 gt_save_LIBS="$LIBS"
19868 LIBS="$LIBS -framework CoreFoundation"
19869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19870 /* end confdefs.h. */
19871 #include <CFLocale.h>
19875 CFLocaleCopyCurrent();
19880 if ac_fn_c_try_link "$LINENO"; then :
19881 gt_cv_func_CFLocaleCopyCurrent=yes
19883 gt_cv_func_CFLocaleCopyCurrent=no
19885 rm -f core conftest.err conftest.$ac_objext \
19886 conftest$ac_exeext conftest.$ac_ext
19887 CPPFLAGS="$gt_save_CPPFLAGS"
19888 LIBS="$gt_save_LIBS"
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19891 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19892 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19894 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19898 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19899 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19906 $as_echo_n "checking whether NLS is requested... " >&6; }
19907 # Check whether --enable-nls was given.
19908 if test "${enable_nls+set}" = set; then :
19909 enableval=$enable_nls; USE_NLS=$enableval
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19915 $as_echo "$USE_NLS" >&6; }
19920 BUILD_INCLUDED_LIBINTL=no
19921 USE_INCLUDED_LIBINTL=no
19927 if test "$USE_NLS" = "yes"; then
19928 gt_use_preinstalled_gnugettext=no
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19931 $as_echo_n "checking whether included gettext is requested... " >&6; }
19933 # Check whether --with-included-gettext was given.
19934 if test "${with_included_gettext+set}" = set; then :
19935 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19937 nls_cv_force_use_gnu_gettext=no
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19941 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19943 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19944 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19952 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19953 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
19954 $as_echo_n "(cached) " >&6
19956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19957 /* end confdefs.h. */
19958 #include <libintl.h>
19959 extern int _nl_msg_cat_cntr;
19960 extern int *_nl_domain_bindings;
19964 bindtextdomain ("", "");
19965 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
19970 if ac_fn_c_try_link "$LINENO"; then :
19971 gt_cv_func_gnugettext1_libc=yes
19973 gt_cv_func_gnugettext1_libc=no
19975 rm -f core conftest.err conftest.$ac_objext \
19976 conftest$ac_exeext conftest.$ac_ext
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
19979 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
19981 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
19987 acl_save_prefix="$prefix"
19988 prefix="$acl_final_prefix"
19989 acl_save_exec_prefix="$exec_prefix"
19990 exec_prefix="$acl_final_exec_prefix"
19992 eval additional_includedir=\"$includedir\"
19993 eval additional_libdir=\"$libdir\"
19995 exec_prefix="$acl_save_exec_prefix"
19996 prefix="$acl_save_prefix"
19999 # Check whether --with-libintl-prefix was given.
20000 if test "${with_libintl_prefix+set}" = set; then :
20001 withval=$with_libintl_prefix;
20002 if test "X$withval" = "Xno"; then
20005 if test "X$withval" = "X"; then
20007 acl_save_prefix="$prefix"
20008 prefix="$acl_final_prefix"
20009 acl_save_exec_prefix="$exec_prefix"
20010 exec_prefix="$acl_final_exec_prefix"
20012 eval additional_includedir=\"$includedir\"
20013 eval additional_libdir=\"$libdir\"
20015 exec_prefix="$acl_save_exec_prefix"
20016 prefix="$acl_save_prefix"
20019 additional_includedir="$withval/include"
20020 additional_libdir="$withval/lib"
20031 names_already_handled=
20032 names_next_round='intl '
20033 while test -n "$names_next_round"; do
20034 names_this_round="$names_next_round"
20036 for name in $names_this_round; do
20038 for n in $names_already_handled; do
20039 if test "$n" = "$name"; then
20040 already_handled=yes
20044 if test -z "$already_handled"; then
20045 names_already_handled="$names_already_handled $name"
20046 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20047 eval value=\"\$HAVE_LIB$uppername\"
20048 if test -n "$value"; then
20049 if test "$value" = yes; then
20050 eval value=\"\$LIB$uppername\"
20051 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20052 eval value=\"\$LTLIB$uppername\"
20053 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20062 if test $use_additional = yes; then
20063 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20064 found_dir="$additional_libdir"
20065 found_so="$additional_libdir/lib$name.$shlibext"
20066 if test -f "$additional_libdir/lib$name.la"; then
20067 found_la="$additional_libdir/lib$name.la"
20070 if test -f "$additional_libdir/lib$name.$libext"; then
20071 found_dir="$additional_libdir"
20072 found_a="$additional_libdir/lib$name.$libext"
20073 if test -f "$additional_libdir/lib$name.la"; then
20074 found_la="$additional_libdir/lib$name.la"
20079 if test "X$found_dir" = "X"; then
20080 for x in $LDFLAGS $LTLIBINTL; do
20082 acl_save_prefix="$prefix"
20083 prefix="$acl_final_prefix"
20084 acl_save_exec_prefix="$exec_prefix"
20085 exec_prefix="$acl_final_exec_prefix"
20087 exec_prefix="$acl_save_exec_prefix"
20088 prefix="$acl_save_prefix"
20092 dir=`echo "X$x" | sed -e 's/^X-L//'`
20093 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20095 found_so="$dir/lib$name.$shlibext"
20096 if test -f "$dir/lib$name.la"; then
20097 found_la="$dir/lib$name.la"
20100 if test -f "$dir/lib$name.$libext"; then
20102 found_a="$dir/lib$name.$libext"
20103 if test -f "$dir/lib$name.la"; then
20104 found_la="$dir/lib$name.la"
20110 if test "X$found_dir" != "X"; then
20115 if test "X$found_dir" != "X"; then
20116 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20117 if test "X$found_so" != "X"; then
20118 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20119 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20122 for x in $ltrpathdirs; do
20123 if test "X$x" = "X$found_dir"; then
20128 if test -z "$haveit"; then
20129 ltrpathdirs="$ltrpathdirs $found_dir"
20131 if test "$hardcode_direct" = yes; then
20132 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20134 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20135 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20137 for x in $rpathdirs; do
20138 if test "X$x" = "X$found_dir"; then
20143 if test -z "$haveit"; then
20144 rpathdirs="$rpathdirs $found_dir"
20148 for x in $LDFLAGS $LIBINTL; do
20150 acl_save_prefix="$prefix"
20151 prefix="$acl_final_prefix"
20152 acl_save_exec_prefix="$exec_prefix"
20153 exec_prefix="$acl_final_exec_prefix"
20155 exec_prefix="$acl_save_exec_prefix"
20156 prefix="$acl_save_prefix"
20158 if test "X$x" = "X-L$found_dir"; then
20163 if test -z "$haveit"; then
20164 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20166 if test "$hardcode_minus_L" != no; then
20167 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20169 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20175 if test "X$found_a" != "X"; then
20176 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20178 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20181 additional_includedir=
20182 case "$found_dir" in
20184 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20185 additional_includedir="$basedir/include"
20188 if test "X$additional_includedir" != "X"; then
20189 if test "X$additional_includedir" != "X/usr/include"; then
20191 if test "X$additional_includedir" = "X/usr/local/include"; then
20192 if test -n "$GCC"; then
20194 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20198 if test -z "$haveit"; then
20199 for x in $CPPFLAGS $INCINTL; do
20201 acl_save_prefix="$prefix"
20202 prefix="$acl_final_prefix"
20203 acl_save_exec_prefix="$exec_prefix"
20204 exec_prefix="$acl_final_exec_prefix"
20206 exec_prefix="$acl_save_exec_prefix"
20207 prefix="$acl_save_prefix"
20209 if test "X$x" = "X-I$additional_includedir"; then
20214 if test -z "$haveit"; then
20215 if test -d "$additional_includedir"; then
20216 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20222 if test -n "$found_la"; then
20223 save_libdir="$libdir"
20224 case "$found_la" in
20225 */* | *\\*) . "$found_la" ;;
20226 *) . "./$found_la" ;;
20228 libdir="$save_libdir"
20229 for dep in $dependency_libs; do
20232 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20233 if test "X$additional_libdir" != "X/usr/lib"; then
20235 if test "X$additional_libdir" = "X/usr/local/lib"; then
20236 if test -n "$GCC"; then
20238 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20242 if test -z "$haveit"; then
20244 for x in $LDFLAGS $LIBINTL; do
20246 acl_save_prefix="$prefix"
20247 prefix="$acl_final_prefix"
20248 acl_save_exec_prefix="$exec_prefix"
20249 exec_prefix="$acl_final_exec_prefix"
20251 exec_prefix="$acl_save_exec_prefix"
20252 prefix="$acl_save_prefix"
20254 if test "X$x" = "X-L$additional_libdir"; then
20259 if test -z "$haveit"; then
20260 if test -d "$additional_libdir"; then
20261 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20265 for x in $LDFLAGS $LTLIBINTL; do
20267 acl_save_prefix="$prefix"
20268 prefix="$acl_final_prefix"
20269 acl_save_exec_prefix="$exec_prefix"
20270 exec_prefix="$acl_final_exec_prefix"
20272 exec_prefix="$acl_save_exec_prefix"
20273 prefix="$acl_save_prefix"
20275 if test "X$x" = "X-L$additional_libdir"; then
20280 if test -z "$haveit"; then
20281 if test -d "$additional_libdir"; then
20282 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20289 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20290 if test "$enable_rpath" != no; then
20292 for x in $rpathdirs; do
20293 if test "X$x" = "X$dir"; then
20298 if test -z "$haveit"; then
20299 rpathdirs="$rpathdirs $dir"
20302 for x in $ltrpathdirs; do
20303 if test "X$x" = "X$dir"; then
20308 if test -z "$haveit"; then
20309 ltrpathdirs="$ltrpathdirs $dir"
20314 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20317 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20320 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20321 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20327 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20328 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20334 if test "X$rpathdirs" != "X"; then
20335 if test -n "$hardcode_libdir_separator"; then
20337 for found_dir in $rpathdirs; do
20338 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20340 acl_save_libdir="$libdir"
20342 eval flag=\"$hardcode_libdir_flag_spec\"
20343 libdir="$acl_save_libdir"
20344 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20346 for found_dir in $rpathdirs; do
20347 acl_save_libdir="$libdir"
20348 libdir="$found_dir"
20349 eval flag=\"$hardcode_libdir_flag_spec\"
20350 libdir="$acl_save_libdir"
20351 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20355 if test "X$ltrpathdirs" != "X"; then
20356 for found_dir in $ltrpathdirs; do
20357 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20362 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20363 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
20364 $as_echo_n "(cached) " >&6
20366 gt_save_CPPFLAGS="$CPPFLAGS"
20367 CPPFLAGS="$CPPFLAGS $INCINTL"
20368 gt_save_LIBS="$LIBS"
20369 LIBS="$LIBS $LIBINTL"
20370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20371 /* end confdefs.h. */
20372 #include <libintl.h>
20373 extern int _nl_msg_cat_cntr;
20378 const char *_nl_expand_alias (const char *);
20382 bindtextdomain ("", "");
20383 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20388 if ac_fn_c_try_link "$LINENO"; then :
20389 gt_cv_func_gnugettext1_libintl=yes
20391 gt_cv_func_gnugettext1_libintl=no
20393 rm -f core conftest.err conftest.$ac_objext \
20394 conftest$ac_exeext conftest.$ac_ext
20395 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20396 LIBS="$LIBS $LIBICONV"
20397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20398 /* end confdefs.h. */
20399 #include <libintl.h>
20400 extern int _nl_msg_cat_cntr;
20405 const char *_nl_expand_alias (const char *);
20409 bindtextdomain ("", "");
20410 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20415 if ac_fn_c_try_link "$LINENO"; then :
20416 LIBINTL="$LIBINTL $LIBICONV"
20417 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20418 gt_cv_func_gnugettext1_libintl=yes
20421 rm -f core conftest.err conftest.$ac_objext \
20422 conftest$ac_exeext conftest.$ac_ext
20424 CPPFLAGS="$gt_save_CPPFLAGS"
20425 LIBS="$gt_save_LIBS"
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20428 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20431 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20432 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20433 && test "$PACKAGE" != gettext-runtime \
20434 && test "$PACKAGE" != gettext-tools; }; then
20435 gt_use_preinstalled_gnugettext=yes
20443 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20444 nls_cv_use_gnu_gettext=yes
20448 if test "$nls_cv_use_gnu_gettext" = "yes"; then
20449 BUILD_INCLUDED_LIBINTL=yes
20450 USE_INCLUDED_LIBINTL=yes
20451 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20452 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20453 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20457 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20458 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20463 if test -n "$INTL_MACOSX_LIBS"; then
20464 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20465 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20466 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20467 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20471 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20472 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20474 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20482 $as_echo_n "checking whether to use NLS... " >&6; }
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20484 $as_echo "$USE_NLS" >&6; }
20485 if test "$USE_NLS" = "yes"; then
20486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20487 $as_echo_n "checking where the gettext function comes from... " >&6; }
20488 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20489 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20490 gt_source="external libintl"
20495 gt_source="included intl directory"
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20498 $as_echo "$gt_source" >&6; }
20501 if test "$USE_NLS" = "yes"; then
20503 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20504 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20506 $as_echo_n "checking how to link with libintl... " >&6; }
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20508 $as_echo "$LIBINTL" >&6; }
20510 for element in $INCINTL; do
20512 for x in $CPPFLAGS; do
20514 acl_save_prefix="$prefix"
20515 prefix="$acl_final_prefix"
20516 acl_save_exec_prefix="$exec_prefix"
20517 exec_prefix="$acl_final_exec_prefix"
20519 exec_prefix="$acl_save_exec_prefix"
20520 prefix="$acl_save_prefix"
20522 if test "X$x" = "X$element"; then
20527 if test -z "$haveit"; then
20528 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20535 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20538 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20546 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20547 BUILD_INCLUDED_LIBINTL=yes
20554 nls_cv_header_intl=
20555 nls_cv_header_libgt=
20567 if test "$USE_INCLUDED_LIBINTL" = yes; then
20568 INTLOBJS="\$(GETTOBJS)"
20572 INTL_LIBTOOL_SUFFIX_PREFIX=
20576 INTLLIBS="$LIBINTL"
20585 support_smartalloc=yes
20586 support_readline=yes
20590 support_wx_console=no
20591 support_tray_monitor=no
20596 support_static_tools=no
20597 support_static_fd=no
20598 support_static_sd=no
20599 support_static_dir=no
20600 support_static_cons=no
20602 build_client_only=no
20609 # Check whether --enable-gnome was given.
20610 if test "${enable_gnome+set}" = set; then :
20611 enableval=$enable_gnome;
20612 if test x$enableval = xyes; then
20621 if test x$support_gnome = xyes; then
20622 as_fn_error "bgnome-console no longer supported" "$LINENO" 5
20623 as_fn_error "--enable-gnome option no longer supported" "$LINENO" 5
20625 # AC_SUBST(GNOME_DIR)
20627 # Check whether --enable-bat was given.
20628 if test "${enable_bat+set}" = set; then :
20629 enableval=$enable_bat;
20630 if test x$enableval = xyes; then
20632 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20642 if test x$support_bat = xyes; then
20643 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20645 if test $pkg = 0; then
20646 BAT_DIR=src/qt-console
20648 as_fn_error "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20666 # Check whether --enable-bwx-console was given.
20667 if test "${enable_bwx_console+set}" = set; then :
20668 enableval=$enable_bwx_console;
20669 if test x$enableval = xyes; then
20670 support_wx_console=yes
20678 if test x$support_wx_console = xyes; then
20679 abc=`$WXCONFIG $WXFLAGS --cppflags`
20681 if test $pkg = 0; then
20682 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20683 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20684 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20688 WX_DIR="src/wx-console"
20691 echo "wx-config program not found. bwx-console disabled."
20693 support_wx_console=no
20698 # Check whether --enable-tray-monitor was given.
20699 if test "${enable_tray_monitor+set}" = set; then :
20700 enableval=$enable_tray_monitor;
20701 if test x$enableval = xyes; then
20702 support_tray_monitor=yes
20710 if test x$support_tray_monitor = xyes; then
20711 abc=`$PKGCONFIG --exists gtk+-2.0`
20713 if test $pkg = 0; then
20714 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20715 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20718 TRAY_MONITOR_DIR=src/tray-monitor
20719 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20721 if test $pkg = 0; then
20723 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20730 # Check whether --enable-smartalloc was given.
20731 if test "${enable_smartalloc+set}" = set; then :
20732 enableval=$enable_smartalloc;
20733 if test x$enableval = xno; then
20734 support_smartalloc=no
20741 if test x$support_smartalloc = xyes; then
20743 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20747 # Check whether --enable-lockmgr was given.
20748 if test "${enable_lockmgr+set}" = set; then :
20749 enableval=$enable_lockmgr;
20750 if test x$enableval = xyes; then
20751 support_lockmgr=yes
20758 if test x$support_lockmgr = xyes; then
20760 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20765 # Check whether --enable-static-tools was given.
20766 if test "${enable_static_tools+set}" = set; then :
20767 enableval=$enable_static_tools;
20768 if test x$enableval = xyes; then
20769 if test x$use_libtool = xyes; then
20770 as_fn_error "Libtool is enabled, not compatible with static tools,
20771 please rerun configure with --disable-libtool" "$LINENO" 5
20773 support_static_tools=yes
20781 if test x$support_static_tools = xyes; then
20782 TTOOL_LDFLAGS="-static"
20786 # Check whether --enable-static-fd was given.
20787 if test "${enable_static_fd+set}" = set; then :
20788 enableval=$enable_static_fd;
20789 if test x$enableval = xyes; then
20790 if test x$use_libtool = xyes; then
20791 as_fn_error "Libtool is enabled, not compatible with static tools,
20792 please rerun configure with --disable-libtool" "$LINENO" 5
20794 support_static_fd=yes
20802 if test x$support_static_fd = xyes; then
20803 STATIC_FD="static-bacula-fd"
20807 # Check whether --enable-static-sd was given.
20808 if test "${enable_static_sd+set}" = set; then :
20809 enableval=$enable_static_sd;
20810 if test x$enableval = xyes; then
20811 if test x$use_libtool = xyes; then
20812 as_fn_error "Libtool is enabled, not compatible with static tools,
20813 please rerun configure with --disable-libtool" "$LINENO" 5
20815 support_static_sd=yes
20823 if test x$support_static_sd = xyes; then
20824 STATIC_SD="static-bacula-sd"
20828 # Check whether --enable-static-dir was given.
20829 if test "${enable_static_dir+set}" = set; then :
20830 enableval=$enable_static_dir;
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_dir=yes
20844 if test x$support_static_dir = xyes; then
20845 STATIC_DIR="static-bacula-dir"
20849 # Check whether --enable-static-cons was given.
20850 if test "${enable_static_cons+set}" = set; then :
20851 enableval=$enable_static_cons;
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_cons=yes
20867 if test x$support_static_cons = xyes; then
20868 STATIC_CONS="static-bconsole"
20869 STATIC_GNOME_CONS="static-bgnome-console"
20870 STATIC_WX_CONS="static-bwx-console"
20876 # Check whether --enable-client-only was given.
20877 if test "${enable_client_only+set}" = set; then :
20878 enableval=$enable_client_only;
20879 if test x$enableval = xyes; then
20880 build_client_only=yes
20888 if test x$build_client_only = xno; then
20895 # Check whether --enable-build-dird was given.
20896 if test "${enable_build_dird+set}" = set; then :
20897 enableval=$enable_build_dird;
20898 if test x$enableval = xno; then
20905 if test x$build_dird = xyes; then
20906 DIRD_DIR="src/dird"
20907 DIR_TOOLS="DIRTOOLS"
20910 DIR_TOOLS="NODIRTOOLS"
20915 # Check whether --enable-build-stored was given.
20916 if test "${enable_build_stored+set}" = set; then :
20917 enableval=$enable_build_stored;
20918 if test x$enableval = xno; then
20925 if test x$build_stored = xyes; then
20926 STORED_DIR="src/stored"
20932 # Check whether --enable-conio was given.
20933 if test "${enable_conio+set}" = set; then :
20934 enableval=$enable_conio;
20935 if test x$enableval = xno; then
20945 # Check whether --enable-ipv6 was given.
20946 if test "${enable_ipv6+set}" = set; then :
20947 enableval=$enable_ipv6;
20948 if test x$enableval = xno; then
20956 if test x$support_ipv6 = xyes; then
20957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20958 /* end confdefs.h. */
20959 #include <sys/types.h>
20960 #include <sys/socket.h>
20961 #include <netinet/in.h>
20965 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
20970 if ac_fn_c_try_link "$LINENO"; then :
20975 rm -f core conftest.err conftest.$ac_objext \
20976 conftest$ac_exeext conftest.$ac_ext
20979 if test x$support_ipv6 = xyes; then
20981 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
20986 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
20987 if test "x$ac_cv_header_curses_h" = x""yes; then :
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
20989 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
20990 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
20991 $as_echo_n "(cached) " >&6
20993 ac_check_lib_save_LIBS=$LIBS
20994 LIBS="-lncurses $LIBS"
20995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20996 /* end confdefs.h. */
20998 /* Override any GCC internal prototype to avoid an error.
20999 Use char because int might match the return type of a GCC
21000 builtin and then its argument prototype would still apply. */
21013 if ac_fn_c_try_link "$LINENO"; then :
21014 ac_cv_lib_ncurses_tgetent=yes
21016 ac_cv_lib_ncurses_tgetent=no
21018 rm -f core conftest.err conftest.$ac_objext \
21019 conftest$ac_exeext conftest.$ac_ext
21020 LIBS=$ac_check_lib_save_LIBS
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21023 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21024 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21025 TERM_LIB="-lncurses"
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21028 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21029 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
21030 $as_echo_n "(cached) " >&6
21032 ac_check_lib_save_LIBS=$LIBS
21033 LIBS="-ltermcap $LIBS"
21034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21035 /* end confdefs.h. */
21037 /* Override any GCC internal prototype to avoid an error.
21038 Use char because int might match the return type of a GCC
21039 builtin and then its argument prototype would still apply. */
21052 if ac_fn_c_try_link "$LINENO"; then :
21053 ac_cv_lib_termcap_tgetent=yes
21055 ac_cv_lib_termcap_tgetent=no
21057 rm -f core conftest.err conftest.$ac_objext \
21058 conftest$ac_exeext conftest.$ac_ext
21059 LIBS=$ac_check_lib_save_LIBS
21061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21062 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21063 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21064 TERM_LIB="-ltermcap"
21072 for ac_header in curses.h
21074 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21075 if test "x$ac_cv_header_curses_h" = x""yes; then :
21076 cat >>confdefs.h <<_ACEOF
21077 #define HAVE_CURSES_H 1
21084 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21085 if test "x$ac_cv_header_term_h" = x""yes; then :
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21087 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21088 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21089 $as_echo_n "(cached) " >&6
21091 ac_check_lib_save_LIBS=$LIBS
21092 LIBS="-lcurses $LIBS"
21093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21094 /* end confdefs.h. */
21096 /* Override any GCC internal prototype to avoid an error.
21097 Use char because int might match the return type of a GCC
21098 builtin and then its argument prototype would still apply. */
21111 if ac_fn_c_try_link "$LINENO"; then :
21112 ac_cv_lib_curses_tgetent=yes
21114 ac_cv_lib_curses_tgetent=no
21116 rm -f core conftest.err conftest.$ac_objext \
21117 conftest$ac_exeext conftest.$ac_ext
21118 LIBS=$ac_check_lib_save_LIBS
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21121 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21122 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21123 TERM_LIB="-lcurses"
21137 if test x$support_conio = xyes; then
21138 if test x$TERM_LIB != x; then
21139 CONS_LIBS=$TERM_LIB
21143 support_readline=no
21145 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21148 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21153 # Check whether --enable-readline was given.
21154 if test "${enable_readline+set}" = set; then :
21155 enableval=$enable_readline;
21156 if test x$enableval = xno; then
21157 support_readline=no
21163 if test x$TERM_LIB = x ; then
21164 support_readline=no
21169 if test x$support_readline = xyes; then
21171 # Check whether --with-readline was given.
21172 if test "${with_readline+set}" = set; then :
21173 withval=$with_readline;
21174 case "$with_readline" in
21179 if test -f ${with_readline}/readline.h; then
21180 CONS_INC="-I${with_readline}"
21181 CONS_LDFLAGS="-L$with_readline"
21182 elif test -f ${with_readline}/include/readline/readline.h; then
21183 CONS_INC="-I${with_readline}/include/readline"
21184 CONS_LDFLAGS="-L${with_readline}/lib"
21185 with_readline="${with_readline}/include/readline"
21187 with_readline="/usr/include/readline"
21190 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21191 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21192 eval as_val=\$$as_ac_Header
21193 if test "x$as_val" = x""yes; then :
21196 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21198 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21204 echo "readline.h not found. readline turned off ..."
21216 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21217 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
21220 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21223 CONS_INC="-I/usr/include/readline"
21224 CONS_LIBS="-lreadline $TERM_LIB"
21228 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21229 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21230 eval as_val=\$$as_ac_Header
21231 if test "x$as_val" = x""yes; then :
21234 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21237 CONS_INC="-I${TOP_DIR}/depkgs/readline"
21238 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21239 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21240 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21245 echo "readline.h not found. readline turned off ..."
21272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21273 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21274 if test "${ac_cv_header_stat_broken+set}" = set; then :
21275 $as_echo_n "(cached) " >&6
21277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21278 /* end confdefs.h. */
21279 #include <sys/types.h>
21280 #include <sys/stat.h>
21282 #if defined S_ISBLK && defined S_IFDIR
21283 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21286 #if defined S_ISBLK && defined S_IFCHR
21287 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21290 #if defined S_ISLNK && defined S_IFREG
21291 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21294 #if defined S_ISSOCK && defined S_IFREG
21295 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21299 if ac_fn_c_try_compile "$LINENO"; then :
21300 ac_cv_header_stat_broken=no
21302 ac_cv_header_stat_broken=yes
21304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21307 $as_echo "$ac_cv_header_stat_broken" >&6; }
21308 if test $ac_cv_header_stat_broken = yes; then
21310 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21314 ac_header_dirent=no
21315 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21316 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21318 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
21320 $as_echo_n "(cached) " >&6
21322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21323 /* end confdefs.h. */
21324 #include <sys/types.h>
21336 if ac_fn_c_try_compile "$LINENO"; then :
21337 eval "$as_ac_Header=yes"
21339 eval "$as_ac_Header=no"
21341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21343 eval ac_res=\$$as_ac_Header
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21345 $as_echo "$ac_res" >&6; }
21346 eval as_val=\$$as_ac_Header
21347 if test "x$as_val" = x""yes; then :
21348 cat >>confdefs.h <<_ACEOF
21349 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21352 ac_header_dirent=$ac_hdr; break
21356 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21357 if test $ac_header_dirent = dirent.h; then
21358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21359 $as_echo_n "checking for library containing opendir... " >&6; }
21360 if test "${ac_cv_search_opendir+set}" = set; then :
21361 $as_echo_n "(cached) " >&6
21363 ac_func_search_save_LIBS=$LIBS
21364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21365 /* end confdefs.h. */
21367 /* Override any GCC internal prototype to avoid an error.
21368 Use char because int might match the return type of a GCC
21369 builtin and then its argument prototype would still apply. */
21382 for ac_lib in '' dir; do
21383 if test -z "$ac_lib"; then
21384 ac_res="none required"
21387 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21389 if ac_fn_c_try_link "$LINENO"; then :
21390 ac_cv_search_opendir=$ac_res
21392 rm -f core conftest.err conftest.$ac_objext \
21394 if test "${ac_cv_search_opendir+set}" = set; then :
21398 if test "${ac_cv_search_opendir+set}" = set; then :
21401 ac_cv_search_opendir=no
21403 rm conftest.$ac_ext
21404 LIBS=$ac_func_search_save_LIBS
21406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21407 $as_echo "$ac_cv_search_opendir" >&6; }
21408 ac_res=$ac_cv_search_opendir
21409 if test "$ac_res" != no; then :
21410 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21416 $as_echo_n "checking for library containing opendir... " >&6; }
21417 if test "${ac_cv_search_opendir+set}" = set; then :
21418 $as_echo_n "(cached) " >&6
21420 ac_func_search_save_LIBS=$LIBS
21421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21422 /* end confdefs.h. */
21424 /* Override any GCC internal prototype to avoid an error.
21425 Use char because int might match the return type of a GCC
21426 builtin and then its argument prototype would still apply. */
21439 for ac_lib in '' x; do
21440 if test -z "$ac_lib"; then
21441 ac_res="none required"
21444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21446 if ac_fn_c_try_link "$LINENO"; then :
21447 ac_cv_search_opendir=$ac_res
21449 rm -f core conftest.err conftest.$ac_objext \
21451 if test "${ac_cv_search_opendir+set}" = set; then :
21455 if test "${ac_cv_search_opendir+set}" = set; then :
21458 ac_cv_search_opendir=no
21460 rm conftest.$ac_ext
21461 LIBS=$ac_func_search_save_LIBS
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21464 $as_echo "$ac_cv_search_opendir" >&6; }
21465 ac_res=$ac_cv_search_opendir
21466 if test "$ac_res" != no; then :
21467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21473 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21475 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21476 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21477 eval as_val=\$$as_ac_var
21478 if test "x$as_val" = x""yes; then :
21479 cat >>confdefs.h <<_ACEOF
21480 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21486 for ac_func in nanosleep nl_langinfo
21488 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21489 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21490 eval as_val=\$$as_ac_var
21491 if test "x$as_val" = x""yes; then :
21492 cat >>confdefs.h <<_ACEOF
21493 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21499 for ac_header in varargs.h
21501 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21502 if test "x$ac_cv_header_varargs_h" = x""yes; then :
21503 cat >>confdefs.h <<_ACEOF
21504 #define HAVE_VARARGS_H 1
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21514 $as_echo_n "checking for Python support... " >&6; }
21516 # Check whether --with-python was given.
21517 if test "${with_python+set}" = set; then :
21518 withval=$with_python;
21521 if test "$withval" != "no"; then
21522 if test "$withval" = "yes"; then
21523 if test -e /usr/bin/python-config ; then
21524 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21525 PYTHON_LIBS=`/usr/bin/python-config --libs`
21527 for python_root in /usr /usr/local /usr/sfw; do
21528 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21529 if test -f $python_root/include/${ver}/Python.h; then
21530 PYTHON_INCDIR=-I$python_root/include/${ver}
21531 if test -d $python_root/lib64/${ver}/config; then
21532 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21534 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21541 if test x$PYTHON_INCDIR = x; then
21542 if test -f $prefix/include/Python.h; then
21543 PYTHON_INCDIR=-I$prefix/include
21544 if test -d $prefix/lib64/config; then
21545 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21547 PYTHON_LIBS="-L$prefix/lib/config -lpython"
21550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21551 $as_echo "no" >&6; }
21552 as_fn_error "Unable to find Python.h in standard locations" "$LINENO" 5
21557 if test -e $withval/bin/python-config ; then
21558 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21559 PYTHON_LIBS=`$withval/bin/python-config --libs`
21560 elif test -f $withval/Python.h; then
21561 PYTHON_INCDIR=-I$withval
21562 PYTHON_LIBS="-L$withval/config -lpython"
21563 elif test -f $withval/include/Python.h; then
21564 PYTHON_INCDIR=-I$withval/include
21565 if test -d $withval/lib64/config; then
21566 PYTHON_LIBS="-L$withval/lib64/config -lpython"
21568 PYTHON_LIBS="-L$withval/lib/config -lpython"
21570 elif test -f $withval/include/python/Python.h; then
21571 PYTHON_INCDIR=-I$withval/include/python
21572 if test -d $withval/lib64/python/config; then
21573 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21575 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21579 $as_echo "no" >&6; }
21580 as_fn_error "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21584 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21587 $as_echo "yes" >&6; }
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21590 $as_echo "$as_me: checking for more Python libs" >&6;}
21591 saved_LIBS="$LIBS"; LIBS=
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21593 $as_echo_n "checking for library containing shm_open... " >&6; }
21594 if test "${ac_cv_search_shm_open+set}" = set; then :
21595 $as_echo_n "(cached) " >&6
21597 ac_func_search_save_LIBS=$LIBS
21598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21599 /* end confdefs.h. */
21601 /* Override any GCC internal prototype to avoid an error.
21602 Use char because int might match the return type of a GCC
21603 builtin and then its argument prototype would still apply. */
21611 return shm_open ();
21616 for ac_lib in '' rt; do
21617 if test -z "$ac_lib"; then
21618 ac_res="none required"
21621 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21623 if ac_fn_c_try_link "$LINENO"; then :
21624 ac_cv_search_shm_open=$ac_res
21626 rm -f core conftest.err conftest.$ac_objext \
21628 if test "${ac_cv_search_shm_open+set}" = set; then :
21632 if test "${ac_cv_search_shm_open+set}" = set; then :
21635 ac_cv_search_shm_open=no
21637 rm conftest.$ac_ext
21638 LIBS=$ac_func_search_save_LIBS
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21641 $as_echo "$ac_cv_search_shm_open" >&6; }
21642 ac_res=$ac_cv_search_shm_open
21643 if test "$ac_res" != no; then :
21644 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21649 $as_echo_n "checking for openpty in -lutil... " >&6; }
21650 if test "${ac_cv_lib_util_openpty+set}" = set; then :
21651 $as_echo_n "(cached) " >&6
21653 ac_check_lib_save_LIBS=$LIBS
21654 LIBS="-lutil $LIBS"
21655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21656 /* end confdefs.h. */
21658 /* Override any GCC internal prototype to avoid an error.
21659 Use char because int might match the return type of a GCC
21660 builtin and then its argument prototype would still apply. */
21673 if ac_fn_c_try_link "$LINENO"; then :
21674 ac_cv_lib_util_openpty=yes
21676 ac_cv_lib_util_openpty=no
21678 rm -f core conftest.err conftest.$ac_objext \
21679 conftest$ac_exeext conftest.$ac_ext
21680 LIBS=$ac_check_lib_save_LIBS
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21683 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21684 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
21685 cat >>confdefs.h <<_ACEOF
21686 #define HAVE_LIBUTIL 1
21689 LIBS="-lutil $LIBS"
21693 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21697 $as_echo "no" >&6; }
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21703 $as_echo "no" >&6; }
21711 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21712 if test "x$ac_cv_func_socket" = x""yes; then :
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21714 $as_echo "using libc's socket" >&6; }
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21717 $as_echo_n "checking for socket in -lxnet... " >&6; }
21718 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
21719 $as_echo_n "(cached) " >&6
21721 ac_check_lib_save_LIBS=$LIBS
21722 LIBS="-lxnet $LIBS"
21723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21724 /* end confdefs.h. */
21726 /* Override any GCC internal prototype to avoid an error.
21727 Use char because int might match the return type of a GCC
21728 builtin and then its argument prototype would still apply. */
21741 if ac_fn_c_try_link "$LINENO"; then :
21742 ac_cv_lib_xnet_socket=yes
21744 ac_cv_lib_xnet_socket=no
21746 rm -f core conftest.err conftest.$ac_objext \
21747 conftest$ac_exeext conftest.$ac_ext
21748 LIBS=$ac_check_lib_save_LIBS
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21751 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21752 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
21753 cat >>confdefs.h <<_ACEOF
21754 #define HAVE_LIBXNET 1
21757 LIBS="-lxnet $LIBS"
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21762 $as_echo_n "checking for socket in -lsocket... " >&6; }
21763 if test "${ac_cv_lib_socket_socket+set}" = set; then :
21764 $as_echo_n "(cached) " >&6
21766 ac_check_lib_save_LIBS=$LIBS
21767 LIBS="-lsocket $LIBS"
21768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21769 /* end confdefs.h. */
21771 /* Override any GCC internal prototype to avoid an error.
21772 Use char because int might match the return type of a GCC
21773 builtin and then its argument prototype would still apply. */
21786 if ac_fn_c_try_link "$LINENO"; then :
21787 ac_cv_lib_socket_socket=yes
21789 ac_cv_lib_socket_socket=no
21791 rm -f core conftest.err conftest.$ac_objext \
21792 conftest$ac_exeext conftest.$ac_ext
21793 LIBS=$ac_check_lib_save_LIBS
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21796 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21797 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
21798 cat >>confdefs.h <<_ACEOF
21799 #define HAVE_LIBSOCKET 1
21802 LIBS="-lsocket $LIBS"
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21807 $as_echo_n "checking for socket in -linet... " >&6; }
21808 if test "${ac_cv_lib_inet_socket+set}" = set; then :
21809 $as_echo_n "(cached) " >&6
21811 ac_check_lib_save_LIBS=$LIBS
21812 LIBS="-linet $LIBS"
21813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21814 /* end confdefs.h. */
21816 /* Override any GCC internal prototype to avoid an error.
21817 Use char because int might match the return type of a GCC
21818 builtin and then its argument prototype would still apply. */
21831 if ac_fn_c_try_link "$LINENO"; then :
21832 ac_cv_lib_inet_socket=yes
21834 ac_cv_lib_inet_socket=no
21836 rm -f core conftest.err conftest.$ac_objext \
21837 conftest$ac_exeext conftest.$ac_ext
21838 LIBS=$ac_check_lib_save_LIBS
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21841 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21842 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
21843 cat >>confdefs.h <<_ACEOF
21844 #define HAVE_LIBINET 1
21847 LIBS="-linet $LIBS"
21857 # Check whether --with-tcp-wrappers was given.
21858 if test "${with_tcp_wrappers+set}" = set; then :
21859 withval=$with_tcp_wrappers;
21860 if test "x$withval" != "xno" ; then
21862 LIBS="$saved_LIBS -lwrap"
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21864 $as_echo_n "checking for library containing nanosleep... " >&6; }
21865 if test "${ac_cv_search_nanosleep+set}" = set; then :
21866 $as_echo_n "(cached) " >&6
21868 ac_func_search_save_LIBS=$LIBS
21869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21870 /* end confdefs.h. */
21872 /* Override any GCC internal prototype to avoid an error.
21873 Use char because int might match the return type of a GCC
21874 builtin and then its argument prototype would still apply. */
21882 return nanosleep ();
21887 for ac_lib in '' rt; do
21888 if test -z "$ac_lib"; then
21889 ac_res="none required"
21892 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21894 if ac_fn_c_try_link "$LINENO"; then :
21895 ac_cv_search_nanosleep=$ac_res
21897 rm -f core conftest.err conftest.$ac_objext \
21899 if test "${ac_cv_search_nanosleep+set}" = set; then :
21903 if test "${ac_cv_search_nanosleep+set}" = set; then :
21906 ac_cv_search_nanosleep=no
21908 rm conftest.$ac_ext
21909 LIBS=$ac_func_search_save_LIBS
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
21912 $as_echo "$ac_cv_search_nanosleep" >&6; }
21913 ac_res=$ac_cv_search_nanosleep
21914 if test "$ac_res" != no; then :
21915 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
21920 $as_echo_n "checking for libwrap... " >&6; }
21921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21922 /* end confdefs.h. */
21924 #include <sys/types.h>
21926 int deny_severity = 0;
21927 int allow_severity = 0;
21928 struct request_info *req;
21940 if ac_fn_c_try_link "$LINENO"; then :
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21943 $as_echo "yes" >&6; }
21945 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21953 LIBS="$saved_LIBS -lwrap -lnsl"
21954 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
21955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21956 /* end confdefs.h. */
21958 #include <sys/types.h>
21960 int deny_severity = 0;
21961 int allow_severity = 0;
21962 struct request_info *req;
21974 if ac_fn_c_try_link "$LINENO"; then :
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21977 $as_echo "yes" >&6; }
21979 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21987 as_fn_error "*** libwrap missing" "$LINENO" 5
21991 rm -f core conftest.err conftest.$ac_objext \
21992 conftest$ac_exeext conftest.$ac_ext
21996 rm -f core conftest.err conftest.$ac_objext \
21997 conftest$ac_exeext conftest.$ac_ext
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22005 $as_echo_n "checking for OpenSSL... " >&6; }
22007 # Check whether --with-openssl was given.
22008 if test "${with_openssl+set}" = set; then :
22009 withval=$with_openssl;
22010 with_openssl_directory=${withval}
22016 if test "x$with_openssl_directory" != "xno"; then
22017 OPENSSL_LIBS="-lssl -lcrypto"
22020 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22022 # Make sure the $with_openssl_directory also makes sense
22024 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22025 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22026 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22030 saved_LIBS="${LIBS}"
22031 saved_CFLAGS="${CFLAGS}"
22032 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22033 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22036 /* end confdefs.h. */
22038 #include <openssl/ssl.h>
22044 CRYPTO_set_id_callback(NULL);
22050 if ac_fn_c_try_link "$LINENO"; then :
22053 support_crypto="yes"
22058 support_crypto="no"
22062 rm -f core conftest.err conftest.$ac_objext \
22063 conftest$ac_exeext conftest.$ac_ext
22065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22066 /* end confdefs.h. */
22068 #include <openssl/evp.h>
22080 if ac_fn_c_try_link "$LINENO"; then :
22082 ac_cv_openssl_sha2="yes"
22086 ac_cv_openssl_sha2="no"
22090 rm -f core conftest.err conftest.$ac_objext \
22091 conftest$ac_exeext conftest.$ac_ext
22093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22094 /* end confdefs.h. */
22096 #include <openssl/evp.h>
22108 if ac_fn_c_try_link "$LINENO"; then :
22110 ac_cv_openssl_export="no"
22114 ac_cv_openssl_export="yes"
22118 rm -f core conftest.err conftest.$ac_objext \
22119 conftest$ac_exeext conftest.$ac_ext
22121 if test "$support_tls" = "yes"; then
22123 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22126 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22129 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22133 if test "$ac_cv_openssl_sha2" = "yes"; then
22135 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22139 if test "$ac_cv_openssl_export" = "yes"; then
22141 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22145 if test "$support_crypto" = "yes"; then
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lssl" >&5
22147 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lssl... " >&6; }
22148 if test "${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+set}" = set; then :
22149 $as_echo_n "(cached) " >&6
22151 ac_check_lib_save_LIBS=$LIBS
22153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22154 /* end confdefs.h. */
22156 /* Override any GCC internal prototype to avoid an error.
22157 Use char because int might match the return type of a GCC
22158 builtin and then its argument prototype would still apply. */
22162 char EVP_PKEY_encrypt_old ();
22166 return EVP_PKEY_encrypt_old ();
22171 if ac_fn_c_try_link "$LINENO"; then :
22172 ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
22174 ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
22176 rm -f core conftest.err conftest.$ac_objext \
22177 conftest$ac_exeext conftest.$ac_ext
22178 LIBS=$ac_check_lib_save_LIBS
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
22181 $as_echo "$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
22182 if test "x$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" = x""yes; then :
22184 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22190 LIBS="${saved_LIBS}"
22191 CFLAGS="${saved_CFLAGS}"
22194 support_crypto="no"
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22199 $as_echo "$support_tls" >&6; }
22201 if test "$support_tls" = "no"; then
22205 if test "$support_crypto" = "no"; then
22213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22214 $as_echo_n "checking for library containing dlopen... " >&6; }
22215 if test "${ac_cv_search_dlopen+set}" = set; then :
22216 $as_echo_n "(cached) " >&6
22218 ac_func_search_save_LIBS=$LIBS
22219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22220 /* end confdefs.h. */
22222 /* Override any GCC internal prototype to avoid an error.
22223 Use char because int might match the return type of a GCC
22224 builtin and then its argument prototype would still apply. */
22237 for ac_lib in '' dl; do
22238 if test -z "$ac_lib"; then
22239 ac_res="none required"
22242 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22244 if ac_fn_c_try_link "$LINENO"; then :
22245 ac_cv_search_dlopen=$ac_res
22247 rm -f core conftest.err conftest.$ac_objext \
22249 if test "${ac_cv_search_dlopen+set}" = set; then :
22253 if test "${ac_cv_search_dlopen+set}" = set; then :
22256 ac_cv_search_dlopen=no
22258 rm conftest.$ac_ext
22259 LIBS=$ac_func_search_save_LIBS
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22262 $as_echo "$ac_cv_search_dlopen" >&6; }
22263 ac_res=$ac_cv_search_dlopen
22264 if test "$ac_res" != no; then :
22265 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22270 working_dir=`eval echo ${prefix}/var/bacula/working`
22272 # Check whether --with-working-dir was given.
22273 if test "${with_working_dir+set}" = set; then :
22274 withval=$with_working_dir;
22275 if test "x$withval" != "xno" ; then
22276 working_dir=$withval
22287 # Check whether --with-archivedir was given.
22288 if test "${with_archivedir+set}" = set; then :
22289 withval=$with_archivedir;
22290 if test "x$withval" != "xno" ; then
22291 archivedir=$withval
22300 basename=`hostname`
22302 # Check whether --with-basename was given.
22303 if test "${with_basename+set}" = set; then :
22304 withval=$with_basename;
22305 if test "x$withval" != "xno" ; then
22315 hostname=`uname -n | cut -d '.' -f 1`
22316 if test x${hostname} = x ; then
22317 hostname="localhost"
22320 # Check whether --with-hostname was given.
22321 if test "${with_hostname+set}" = set; then :
22322 withval=$with_hostname;
22323 if test "x$withval" != "xno" ; then
22334 scriptdir=`eval echo ${sysconfdir}`
22336 # Check whether --with-scriptdir was given.
22337 if test "${with_scriptdir+set}" = set; then :
22338 withval=$with_scriptdir;
22339 if test "x$withval" != "xno" ; then
22352 # Check whether --with-bsrdir was given.
22353 if test "${with_bsrdir+set}" = set; then :
22354 withval=$with_bsrdir;
22355 if test "x$withval" != "xno" ; then
22367 # Check whether --with-logdir was given.
22368 if test "${with_logdir+set}" = set; then :
22369 withval=$with_logdir;
22370 if test "x$withval" != "xno" ; then
22381 # ------------------------------------------
22382 # Where to place plugindir (plugin files)
22383 # ------------------------------------------
22384 plugindir=`eval echo ${libdir}`
22386 # Check whether --with-plugindir was given.
22387 if test "${with_plugindir+set}" = set; then :
22388 withval=$with_plugindir;
22389 if test "x$withval" != "xno" ; then
22399 dump_email=root@localhost
22401 # Check whether --with-dump-email was given.
22402 if test "${with_dump_email+set}" = set; then :
22403 withval=$with_dump_email;
22404 if test "x$withval" != "xno" ; then
22405 dump_email=$withval
22414 job_email=root@localhost
22416 # Check whether --with-job-email was given.
22417 if test "${with_job_email+set}" = set; then :
22418 withval=$with_job_email;
22419 if test "x$withval" != "xno" ; then
22429 smtp_host=localhost
22431 # Check whether --with-smtp_host was given.
22432 if test "${with_smtp_host+set}" = set; then :
22433 withval=$with_smtp_host;
22434 if test "x$withval" != "xno" ; then
22446 # Check whether --with-pid-dir was given.
22447 if test "${with_pid_dir+set}" = set; then :
22448 withval=$with_pid_dir;
22449 if test "x$withval" != "xno" ; then
22457 cat >>confdefs.h <<_ACEOF
22458 #define _PATH_BACULA_PIDDIR "$piddir"
22463 subsysdir=/var/run/subsys
22464 if test -d /var/run/subsys; then
22465 subsysdir=/var/run/subsys
22466 elif test -d /var/lock/subsys; then
22467 subsysdir=/var/lock/subsys
22469 subsysdir=/var/run/subsys
22472 # Check whether --with-subsys-dir was given.
22473 if test "${with_subsys_dir+set}" = set; then :
22474 withval=$with_subsys_dir;
22475 if test "x$withval" != "xno" ; then
22487 # Check whether --with-baseport was given.
22488 if test "${with_baseport+set}" = set; then :
22489 withval=$with_baseport;
22490 if test "x$withval" != "xno" ; then
22499 dir_port=`expr $baseport`
22500 fd_port=`expr $baseport + 1`
22501 sd_port=`expr $fd_port + 1`
22509 # Check whether --with-dir-password was given.
22510 if test "${with_dir_password+set}" = set; then :
22511 withval=$with_dir_password;
22512 if test "x$withval" != "xno" ; then
22513 dir_password=$withval
22520 if test "x$dir_password" = "x" ; then
22521 if test "x$OPENSSL" = "xnone" ; then
22522 key=`autoconf/randpass 33`
22524 key=`openssl rand -base64 33`
22531 # Check whether --with-fd-password was given.
22532 if test "${with_fd_password+set}" = set; then :
22533 withval=$with_fd_password;
22534 if test "x$withval" != "xno" ; then
22535 fd_password=$withval
22542 if test "x$fd_password" = "x" ; then
22543 if test "x$OPENSSL" = "xnone" ; then
22544 key=`autoconf/randpass 37`
22546 key=`openssl rand -base64 33`
22553 # Check whether --with-sd-password was given.
22554 if test "${with_sd_password+set}" = set; then :
22555 withval=$with_sd_password;
22556 if test "x$withval" != "xno" ; then
22557 sd_password=$withval
22564 if test "x$sd_password" = "x" ; then
22565 if test "x$OPENSSL" = "xnone" ; then
22566 key=`autoconf/randpass 41`
22568 key=`openssl rand -base64 33`
22575 # Check whether --with-mon-dir-password was given.
22576 if test "${with_mon_dir_password+set}" = set; then :
22577 withval=$with_mon_dir_password;
22578 if test "x$withval" != "xno" ; then
22579 mon_dir_password=$withval
22586 if test "x$mon_dir_password" = "x" ; then
22587 if test "x$OPENSSL" = "xnone" ; then
22588 key=`autoconf/randpass 33`
22590 key=`openssl rand -base64 33`
22592 mon_dir_password=$key
22597 # Check whether --with-mon-fd-password was given.
22598 if test "${with_mon_fd_password+set}" = set; then :
22599 withval=$with_mon_fd_password;
22600 if test "x$withval" != "xno" ; then
22601 mon_fd_password=$withval
22608 if test "x$mon_fd_password" = "x" ; then
22609 if test "x$OPENSSL" = "xnone" ; then
22610 key=`autoconf/randpass 37`
22612 key=`openssl rand -base64 33`
22614 mon_fd_password=$key
22619 # Check whether --with-mon-sd-password was given.
22620 if test "${with_mon_sd_password+set}" = set; then :
22621 withval=$with_mon_sd_password;
22622 if test "x$withval" != "xno" ; then
22623 mon_sd_password=$withval
22630 if test "x$mon_sd_password" = "x" ; then
22631 if test "x$OPENSSL" = "xnone" ; then
22632 key=`autoconf/randpass 41`
22634 key=`openssl rand -base64 33`
22636 mon_sd_password=$key
22648 # Check whether --with-db_name was given.
22649 if test "${with_db_name+set}" = set; then :
22650 withval=$with_db_name;
22651 if test "x$withval" != "x" ; then
22662 # Check whether --with-db_user was given.
22663 if test "${with_db_user+set}" = set; then :
22664 withval=$with_db_user;
22665 if test "x$withval" != "x" ; then
22676 # Check whether --with-db_password was given.
22677 if test "${with_db_password+set}" = set; then :
22678 withval=$with_db_password;
22679 if test "x$withval" != "x" ; then
22680 db_password=$withval
22690 # Check whether --with-db_port was given.
22691 if test "${with_db_port+set}" = set; then :
22692 withval=$with_db_port;
22693 if test "x$withval" != "x" ; then
22703 # Handle users and groups for each daemon
22707 # Check whether --with-dir_user was given.
22708 if test "${with_dir_user+set}" = set; then :
22709 withval=$with_dir_user;
22710 if test "x$withval" != "x" ; then
22720 # Check whether --with-dir_group was given.
22721 if test "${with_dir_group+set}" = set; then :
22722 withval=$with_dir_group;
22723 if test "x$withval" != "x" ; then
22733 # Check whether --with-sd_user was given.
22734 if test "${with_sd_user+set}" = set; then :
22735 withval=$with_sd_user;
22736 if test "x$withval" != "x" ; then
22746 # Check whether --with-sd_group was given.
22747 if test "${with_sd_group+set}" = set; then :
22748 withval=$with_sd_group;
22749 if test "x$withval" != "x" ; then
22759 # Check whether --with-fd_user was given.
22760 if test "${with_fd_user+set}" = set; then :
22761 withval=$with_fd_user;
22762 if test "x$withval" != "x" ; then
22772 # Check whether --with-fd_group was given.
22773 if test "${with_fd_group+set}" = set; then :
22774 withval=$with_fd_group;
22775 if test "x$withval" != "x" ; then
22792 # Check whether --with-sbin-perm was given.
22793 if test "${with_sbin_perm+set}" = set; then :
22794 withval=$with_sbin_perm;
22795 if test "x$withval" != "x" ; then
22806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22807 $as_echo_n "checking for PostgreSQL support... " >&6; }
22809 # Check whether --with-postgresql was given.
22810 if test "${with_postgresql+set}" = set; then :
22811 withval=$with_postgresql;
22812 if test "$withval" != "no"; then
22813 if test "$withval" = "yes"; then
22814 PG_CONFIG=`which pg_config`
22815 if test -n "$PG_CONFIG"; then
22816 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22817 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22818 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22819 elif test -f /usr/local/include/libpq-fe.h; then
22820 POSTGRESQL_INCDIR=/usr/local/include
22821 if test -d /usr/local/lib64; then
22822 POSTGRESQL_LIBDIR=/usr/local/lib64
22824 POSTGRESQL_LIBDIR=/usr/local/lib
22826 POSTGRESQL_BINDIR=/usr/local/bin
22827 elif test -f /usr/include/libpq-fe.h; then
22828 POSTGRESQL_INCDIR=/usr/include
22829 if test -d /usr/lib64; then
22830 POSTGRESQL_LIBDIR=/usr/lib64
22832 POSTGRESQL_LIBDIR=/usr/lib
22834 POSTGRESQL_BINDIR=/usr/bin
22835 elif test -f /usr/include/pgsql/libpq-fe.h; then
22836 POSTGRESQL_INCDIR=/usr/include/pgsql
22837 if test -d /usr/lib64/pgsql; then
22838 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22840 POSTGRESQL_LIBDIR=/usr/lib/pgsql
22842 POSTGRESQL_BINDIR=/usr/bin
22843 elif test -f /usr/include/postgresql/libpq-fe.h; then
22844 POSTGRESQL_INCDIR=/usr/include/postgresql
22845 if test -d /usr/lib64/postgresql; then
22846 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22848 POSTGRESQL_LIBDIR=/usr/lib/postgresql
22850 POSTGRESQL_BINDIR=/usr/bin
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22853 $as_echo "no" >&6; }
22854 as_fn_error "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22856 elif test -f $withval/include/libpq-fe.h; then
22857 POSTGRESQL_INCDIR=$withval/include
22858 POSTGRESQL_LIBDIR=$withval/lib
22859 POSTGRESQL_BINDIR=$withval/bin
22860 elif test -f $withval/include/postgresql/libpq-fe.h; then
22861 POSTGRESQL_INCDIR=$withval/include/postgresql
22862 if test -d $withval/lib64; then
22863 POSTGRESQL_LIBDIR=$withval/lib64
22865 POSTGRESQL_LIBDIR=$withval/lib
22867 POSTGRESQL_BINDIR=$withval/bin
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22870 $as_echo "no" >&6; }
22871 as_fn_error "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22874 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22877 $as_echo "yes" >&6; }
22879 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
22880 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
22881 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22882 if test "x$ac_cv_func_crypt" = x""yes; then :
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22886 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22887 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22888 $as_echo_n "(cached) " >&6
22890 ac_check_lib_save_LIBS=$LIBS
22891 LIBS="-lcrypt $LIBS"
22892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22893 /* end confdefs.h. */
22895 /* Override any GCC internal prototype to avoid an error.
22896 Use char because int might match the return type of a GCC
22897 builtin and then its argument prototype would still apply. */
22910 if ac_fn_c_try_link "$LINENO"; then :
22911 ac_cv_lib_crypt_crypt=yes
22913 ac_cv_lib_crypt_crypt=no
22915 rm -f core conftest.err conftest.$ac_objext \
22916 conftest$ac_exeext conftest.$ac_ext
22917 LIBS=$ac_check_lib_save_LIBS
22919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22920 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22921 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
22922 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
22927 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
22928 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
22930 if test -z "${db_backends}"; then
22931 db_backends="PostgreSQL"
22933 db_backends="${db_backends} PostgreSQL"
22935 if test -z "${DB_BACKENDS}"; then
22936 DB_BACKENDS="postgresql"
22938 DB_BACKENDS="${DB_BACKENDS} postgresql"
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22942 $as_echo "no" >&6; }
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22948 $as_echo "no" >&6; }
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
22960 $as_echo_n "checking for MySQL support... " >&6; }
22962 # Check whether --with-mysql was given.
22963 if test "${with_mysql+set}" = set; then :
22964 withval=$with_mysql;
22965 if test "$withval" != "no"; then
22966 if test "$withval" = "yes"; then
22967 if test -f /usr/local/mysql/include/mysql/mysql.h; then
22968 MYSQL_INCDIR=/usr/local/mysql/include/mysql
22969 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
22970 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
22971 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
22973 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
22975 MYSQL_BINDIR=/usr/local/mysql/bin
22976 elif test -f /usr/include/mysql/mysql.h; then
22977 MYSQL_INCDIR=/usr/include/mysql
22978 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
22979 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
22980 MYSQL_LIBDIR=/usr/lib64/mysql
22981 elif test -f /usr/lib64/libmysqlclient_r.a \
22982 -o -f /usr/lib64/libmysqlclient_r.so; then
22983 MYSQL_LIBDIR=/usr/lib64
22984 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
22985 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
22986 MYSQL_LIBDIR=/usr/lib/mysql
22988 MYSQL_LIBDIR=/usr/lib
22990 MYSQL_BINDIR=/usr/bin
22991 elif test -f /usr/include/mysql.h; then
22992 MYSQL_INCDIR=/usr/include
22993 if test -f /usr/lib64/libmysqlclient_r.a \
22994 -o -f /usr/lib64/libmysqlclient_r.so; then
22995 MYSQL_LIBDIR=/usr/lib64
22997 MYSQL_LIBDIR=/usr/lib
22999 MYSQL_BINDIR=/usr/bin
23000 elif test -f /usr/local/include/mysql/mysql.h; then
23001 MYSQL_INCDIR=/usr/local/include/mysql
23002 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23003 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23004 MYSQL_LIBDIR=/usr/local/lib64/mysql
23006 MYSQL_LIBDIR=/usr/local/lib/mysql
23008 MYSQL_BINDIR=/usr/local/bin
23009 elif test -f /usr/local/include/mysql.h; then
23010 MYSQL_INCDIR=/usr/local/include
23011 if test -f /usr/local/lib64/libmysqlclient_r.a \
23012 -o -f /usr/local/lib64/libmysqlclient_r.so; then
23013 MYSQL_LIBDIR=/usr/local/lib64
23015 MYSQL_LIBDIR=/usr/local/lib
23017 MYSQL_BINDIR=/usr/local/bin
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23020 $as_echo "no" >&6; }
23021 as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23024 if test -f $withval/include/mysql/mysql.h; then
23025 MYSQL_INCDIR=$withval/include/mysql
23026 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23027 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23028 MYSQL_LIBDIR=$withval/lib64/mysql
23029 elif test -f $withval/lib64/libmysqlclient_r.a \
23030 -o -f $withval/lib64/libmysqlclient_r.so; then
23031 MYSQL_LIBDIR=$withval/lib64
23032 elif test -f $withval/lib/libmysqlclient_r.a \
23033 -o -f $withval/lib/libmysqlclient_r.so; then
23034 MYSQL_LIBDIR=$withval/lib
23036 MYSQL_LIBDIR=$withval/lib/mysql
23038 MYSQL_BINDIR=$withval/bin
23039 elif test -f $withval/include/mysql.h; then
23040 MYSQL_INCDIR=$withval/include
23041 if test -f $withval/lib64/libmysqlclient_r.a \
23042 -o -f $withval/lib64/libmysqlclient_r.so; then
23043 MYSQL_LIBDIR=$withval/lib64
23045 MYSQL_LIBDIR=$withval/lib
23047 MYSQL_BINDIR=$withval/bin
23049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23050 $as_echo "no" >&6; }
23051 as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23054 MYSQL_INCLUDE=-I$MYSQL_INCDIR
23055 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23056 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23057 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23059 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23061 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23063 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23066 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23069 $as_echo "yes" >&6; }
23071 if test -z "${db_backends}" ; then
23072 db_backends="MySQL"
23074 db_backends="${db_backends} MySQL"
23076 if test -z "${DB_BACKENDS}" ; then
23077 DB_BACKENDS="mysql"
23079 DB_BACKENDS="${DB_BACKENDS} mysql"
23082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23083 $as_echo "no" >&6; }
23091 # Check whether --with-embedded-mysql was given.
23092 if test "${with_embedded_mysql+set}" = set; then :
23093 withval=$with_embedded_mysql;
23094 if test "$withval" != "no"; then
23095 if test "$withval" = "yes"; then
23096 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23097 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23098 if test -d /usr/local/mysql/lib64/mysql; then
23099 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23101 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23103 MYSQL_BINDIR=/usr/local/mysql/bin
23104 elif test -f /usr/include/mysql/mysql.h; then
23105 MYSQL_INCDIR=/usr/include/mysql
23106 if test -d /usr/lib64/mysql; then
23107 MYSQL_LIBDIR=/usr/lib64/mysql
23109 MYSQL_LIBDIR=/usr/lib/mysql
23111 MYSQL_BINDIR=/usr/bin
23112 elif test -f /usr/include/mysql.h; then
23113 MYSQL_INCDIR=/usr/include
23114 if test -d /usr/lib64; then
23115 MYSQL_LIBDIR=/usr/lib64
23117 MYSQL_LIBDIR=/usr/lib
23119 MYSQL_BINDIR=/usr/bin
23120 elif test -f /usr/local/include/mysql/mysql.h; then
23121 MYSQL_INCDIR=/usr/local/include/mysql
23122 if test -d /usr/local/lib64/mysql; then
23123 MYSQL_LIBDIR=/usr/local/lib64/mysql
23125 MYSQL_LIBDIR=/usr/local/lib/mysql
23127 MYSQL_BINDIR=/usr/local/bin
23128 elif test -f /usr/local/include/mysql.h; then
23129 MYSQL_INCDIR=/usr/local/include
23130 if test -d /usr/local/lib64; then
23131 MYSQL_LIBDIR=/usr/local/lib64
23133 MYSQL_LIBDIR=/usr/local/lib
23135 MYSQL_BINDIR=/usr/local/bin
23137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23138 $as_echo "no" >&6; }
23139 as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23142 if test -f $withval/include/mysql/mysql.h; then
23143 MYSQL_INCDIR=$withval/include/mysql
23144 if test -d $withval/lib64/mysql; then
23145 MYSQL_LIBDIR=$withval/lib64/mysql
23147 MYSQL_LIBDIR=$withval/lib/mysql
23149 MYSQL_BINDIR=$withval/bin
23150 elif test -f $withval/include/mysql.h; then
23151 MYSQL_INCDIR=$withval/include
23152 if test -d $withval/lib64; then
23153 MYSQL_LIBDIR=$withval/lib64
23155 MYSQL_LIBDIR=$withval/lib
23157 MYSQL_BINDIR=$withval/bin
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23160 $as_echo "no" >&6; }
23161 as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23164 MYSQL_INCLUDE=-I$MYSQL_INCDIR
23165 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23166 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23167 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23170 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23173 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23176 $as_echo "yes" >&6; }
23178 if test -z "${db_backends}"; then
23179 db_backends="MySQL"
23181 db_backends="${db_backends} MySQL"
23183 if test -z "${DB_BACKENDS}"; then
23184 DB_BACKENDS="mysql"
23186 DB_BACKENDS="${DB_BACKENDS} mysql"
23189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23190 $as_echo "no" >&6; }
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23205 $as_echo_n "checking for SQLite3 support... " >&6; }
23207 # Check whether --with-sqlite3 was given.
23208 if test "${with_sqlite3+set}" = set; then :
23209 withval=$with_sqlite3;
23210 if test "$withval" != "no"; then
23211 if test "$withval" = "yes"; then
23212 if test -f /usr/local/include/sqlite3.h; then
23213 SQLITE_INCDIR=/usr/local/include
23214 if test -d /usr/local/lib64; then
23215 SQLITE_LIBDIR=/usr/local/lib64
23217 SQLITE_LIBDIR=/usr/local/lib
23219 SQLITE_BINDIR=/usr/local/bin
23220 elif test -f /usr/include/sqlite3.h; then
23221 SQLITE_INCDIR=/usr/include
23222 if test -d /usr/lib64; then
23223 SQLITE_LIBDIR=/usr/lib64
23225 SQLITE_LIBDIR=/usr/lib
23227 SQLITE_BINDIR=/usr/bin
23228 elif test -f $prefix/include/sqlite3.h; then
23229 SQLITE_INCDIR=$prefix/include
23230 if test -d $prefix/lib64; then
23231 SQLITE_LIBDIR=$prefix/lib64
23233 SQLITE_LIBDIR=$prefix/lib
23235 SQLITE_BINDIR=$prefix/bin
23237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23238 $as_echo "no" >&6; }
23239 as_fn_error "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23242 if test -f $withval/sqlite3.h; then
23243 SQLITE_INCDIR=$withval
23244 SQLITE_LIBDIR=$withval
23245 SQLITE_BINDIR=$withval
23246 elif test -f $withval/include/sqlite3.h; then
23247 SQLITE_INCDIR=$withval/include
23248 if test -d $withval/lib64; then
23249 SQLITE_LIBDIR=$withval/lib64
23251 SQLITE_LIBDIR=$withval/lib
23253 SQLITE_BINDIR=$withval/bin
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23256 $as_echo "no" >&6; }
23257 as_fn_error "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23260 SQLITE_INCLUDE=-I$SQLITE_INCDIR
23261 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
23262 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
23263 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
23266 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23269 $as_echo "yes" >&6; }
23271 if test -z "${db_backends}"; then
23272 db_backends="SQLite3"
23274 db_backends="${db_backends} SQLite3"
23276 if test -z "${DB_BACKENDS}"; then
23277 DB_BACKENDS="sqlite3"
23279 DB_BACKENDS="${DB_BACKENDS} sqlite3"
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23283 $as_echo "no" >&6; }
23288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23289 $as_echo "no" >&6; }
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ingres support" >&5
23301 $as_echo_n "checking for Ingres support... " >&6; }
23303 # Check whether --with-ingres was given.
23304 if test "${with_ingres+set}" = set; then :
23305 withval=$with_ingres;
23306 if test "$withval" != "no"; then
23307 if test "$withval" = "yes"; then
23308 if test -f ${II_SYSTEM}/files/eqdefc.h; then
23309 INGRES_INCDIR=${II_SYSTEM}/files
23310 INGRES_LIBDIR=${II_SYSTEM}/lib
23311 INGRES_BINDIR=${II_SYSTEM}/bin
23312 elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
23313 INGRES_INCDIR=${II_SYSTEM}/ingres/files
23314 INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
23315 INGRES_BINDIR=${II_SYSTEM}/ingres/bin
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23318 $as_echo "no" >&6; }
23319 as_fn_error "Unable to find eqdefc.h in standard locations" "$LINENO" 5
23322 if test -f $withval/files/eqdefc.h; then
23323 INGRES_INCDIR=$withval/files
23324 INGRES_LIBDIR=$withval/lib
23325 INGRES_BINDIR=$withval/bin
23327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23328 $as_echo "no" >&6; }
23329 as_fn_error "Invalid Ingres directory $withval - unable to find Ingres headers under $withval" "$LINENO" 5
23332 INGRES_INCLUDE=-I$INGRES_INCDIR
23333 INGRES_LIBS="-R $INGRES_LIBDIR -L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
23334 DB_LIBS="${DB_LIBS} ${INGRES_LIBS}"
23336 $as_echo "#define HAVE_INGRES 1" >>confdefs.h
23338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23339 $as_echo "yes" >&6; }
23341 if test -z "${db_backends}"; then
23342 db_backends="Ingres"
23344 db_backends="${db_backends} Ingres"
23346 if test -z "${DB_BACKENDS}"; then
23347 DB_BACKENDS="ingres"
23349 DB_BACKENDS="${DB_BACKENDS} ingres"
23352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23353 $as_echo "no" >&6; }
23358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23359 $as_echo "no" >&6; }
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI support" >&5
23371 $as_echo_n "checking for DBI support... " >&6; }
23373 # Check whether --with-dbi was given.
23374 if test "${with_dbi+set}" = set; then :
23376 if test "$withval" != "no"; then
23377 if test "$withval" = "yes"; then
23378 if test -f /usr/local/include/dbi/dbi.h; then
23379 DBI_INCDIR=/usr/local/dbi/include
23380 if test -d /usr/local/lib64; then
23381 DBI_LIBDIR=/usr/local/lib64
23383 DBI_LIBDIR=/usr/local/lib
23385 DBI_BINDIR=/usr/local/bin
23386 elif test -f /usr/include/dbi/dbi.h; then
23387 DBI_INCDIR=/usr/include
23388 if test -d /usr/lib64; then
23389 DBI_LIBDIR=/usr/lib64
23391 DBI_LIBDIR=/usr/lib
23393 DBI_BINDIR=/usr/bin
23394 elif test -f $prefix/include/dbi/dbi.h; then
23395 DBI_INCDIR=$prefix/include
23396 if test -d $prefix/lib64; then
23397 DBI_LIBDIR=$prefix/lib64
23399 DBI_LIBDIR=$prefix/lib
23401 DBI_BINDIR=$prefix/bin
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23404 $as_echo "no" >&6; }
23405 as_fn_error "Unable to find dbi.h in standard locations" "$LINENO" 5
23407 if test -d /usr/local/lib/dbd; then
23408 DRIVERDIR=/usr/local/lib/dbd
23409 if test -d /usr/local/lib64/dbd; then
23410 DRIVERDIR=/usr/local/lib64/dbd
23412 DRIVERDIR=/usr/local/lib/dbd
23414 elif test -d /usr/lib/dbd; then
23415 DRIVERDIR=/usr/lib/dbd
23416 if test -d /usr/lib64/dbd; then
23417 DRIVERDIR=/usr/lib64/dbd
23419 DRIVERDIR=/usr/lib/dbd
23421 elif test -d $prefix/lib/dbd; then
23422 if test -d $prefix/lib64/dbd; then
23423 DRIVERDIR=$prefix/lib64/dbd
23425 DRIVERDIR=$prefix/lib/dbd
23427 elif test -d /usr/local/lib64/dbd; then
23428 DRIVERDIR=/usr/local/lib64/dbd
23429 elif test -d /usr/lib64/dbd; then
23430 DRIVERDIR=/usr/lib64/dbd
23431 elif test -d $prefix/lib64/dbd; then
23432 DRIVERDIR=$prefix/lib64/dbd
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23435 $as_echo "no" >&6; }
23436 as_fn_error "Unable to find DBD drivers in standard locations" "$LINENO" 5
23439 if test -f $withval/dbi.h; then
23440 DBI_INCDIR=$withval
23441 DBI_LIBDIR=$withval
23442 DBI_BINDIR=$withval
23443 elif test -f $withval/include/dbi/dbi.h; then
23444 DBI_INCDIR=$withval/include
23445 if test -d $withval/lib64; then
23446 DBI_LIBDIR=$withval/lib64
23448 DBI_LIBDIR=$withval/lib
23450 DBI_BINDIR=$withval/bin
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23453 $as_echo "no" >&6; }
23454 as_fn_error "Invalid DBI directory $withval - unable to find dbi.h under $withval" "$LINENO" 5
23456 if test -d $withval/dbd; then
23457 DRIVERDIR=$withval/dbd
23458 elif test -d $withval/lib/; then
23459 if test -d $withval/lib64/dbd; then
23460 DRIVERDIR=$withval/lib64/dbd
23462 DRIVERDIR=$withval/lib/dbd
23464 elif test -d $withval/lib64/dbd; then
23465 DRIVERDIR=$withval/lib64/dbd
23467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23468 $as_echo "no" >&6; }
23469 as_fn_error "Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" "$LINENO" 5
23472 DBI_INCLUDE=-I$DBI_INCDIR
23473 DBI_LIBS="-R $DBI_LIBDIR -L$DBI_LIBDIR -ldbi"
23474 DBI_LIB=$DBI_LIBDIR/libdbi.a
23475 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
23476 DB_LIBS="${DB_LIBS} ${DBI_LIBS}"
23479 $as_echo "#define HAVE_DBI 1" >>confdefs.h
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23482 $as_echo "yes" >&6; }
23484 if test -z "${db_backends}"; then
23487 db_backends="${db_backends} DBI"
23489 if test -z "${DB_BACKENDS}" ; then
23492 DB_BACKENDS="${DB_BACKENDS} dbi"
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23498 $as_echo "no" >&6; }
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23504 $as_echo "no" >&6; }
23519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI drivers support" >&5
23520 $as_echo_n "checking for DBI drivers support... " >&6; }
23522 # Check whether --with-dbi-driver was given.
23523 if test "${with_dbi_driver+set}" = set; then :
23524 withval=$with_dbi_driver;
23525 if test "$withval" != "no"; then
23529 if test -f /usr/local/mysql/bin/mysql; then
23530 SQL_BINDIR=/usr/local/mysql/bin
23531 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23532 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23533 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23535 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23537 elif test -f /usr/bin/mysql; then
23538 SQL_BINDIR=/usr/bin
23539 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23540 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23541 MYSQL_LIBDIR=/usr/lib64/mysql
23542 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23543 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23544 MYSQL_LIBDIR=/usr/lib/mysql
23546 MYSQL_LIBDIR=/usr/lib
23548 elif test -f /usr/local/bin/mysql; then
23549 SQL_BINDIR=/usr/local/bin
23550 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23551 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23552 MYSQL_LIBDIR=/usr/local/lib64/mysql
23553 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
23554 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
23555 MYSQL_LIBDIR=/usr/local/lib/mysql
23557 MYSQL_LIBDIR=/usr/local/lib
23559 elif test -f $withval/bin/mysql; then
23560 SQL_BINDIR=$withval/bin
23561 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23562 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23563 MYSQL_LIBDIR=$withval/lib64/mysql
23564 elif test -f $withval/lib64/libmysqlclient_r.a \
23565 -o -f $withval/lib64/libmysqlclient_r.so; then
23566 MYSQL_LIBDIR=$withval/lib64
23567 elif test -f $withval/lib/libmysqlclient_r.a \
23568 -o -f $withval/lib/libmysqlclient_r.so; then
23569 MYSQL_LIBDIR=$withval/lib/
23571 MYSQL_LIBDIR=$withval/lib/mysql
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23575 $as_echo "no" >&6; }
23576 as_fn_error "Unable to find mysql in standard locations" "$LINENO" 5
23578 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
23579 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
23581 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
23585 db_prog="postgresql"
23586 PG_CONFIG=`which pg_config`
23587 if test -n "$PG_CONFIG"; then
23588 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23589 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23590 elif test -f /usr/local/bin/psql; then
23591 POSTGRESQL_BINDIR=/usr/local/bin
23592 if test -d /usr/local/lib64; then
23593 POSTGRESQL_LIBDIR=/usr/local/lib64
23595 POSTGRESQL_LIBDIR=/usr/local/lib
23597 elif test -f /usr/bin/psql; then
23598 POSTGRESQL_BINDIR=/usr/local/bin
23599 if test -d /usr/lib64/postgresql; then
23600 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23601 elif test -d /usr/lib/postgresql; then
23602 POSTGRESQL_LIBDIR=/usr/lib/postgresql
23603 elif test -d /usr/lib64; then
23604 POSTGRESQL_LIBDIR=/usr/lib64
23606 POSTGRESQL_LIBDIR=/usr/lib
23608 elif test -f $withval/bin/psql; then
23609 POSTGRESQL_BINDIR=$withval/bin
23610 if test -d $withval/lib64; then
23611 POSTGRESQL_LIBDIR=$withval/lib64
23613 POSTGRESQL_LIBDIR=$withval/lib
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23617 $as_echo "no" >&6; }
23618 as_fn_error "Unable to find psql in standard locations" "$LINENO" 5
23620 if test -f $POSTGRESQL_LIBDIR/libpq.so; then
23621 DB_PROG_LIB=$POSTGRESQL_LIBDIR/libpq.so
23623 DB_PROG_LIB=$POSTGRESQL_LIBDIR/libpq.a
23628 if test -f /usr/local/bin/sqlite3; then
23629 SQLITE_BINDIR=/usr/local/bin
23630 if test -d /usr/local/lib64; then
23631 SQLITE_LIBDIR=/usr/local/lib64
23633 SQLITE_LIBDIR=/usr/local/lib
23635 elif test -f /usr/bin/sqlite3; then
23636 SQLITE_BINDIR=/usr/bin
23637 if test -d /usr/lib64; then
23638 SQLITE_LIBDIR=/usr/lib64
23640 SQLITE_LIBDIR=/usr/lib
23642 elif test -f $withval/bin/sqlite3; then
23643 SQLITE_BINDIR=$withval/bin
23644 if test -d $withval/lib64; then
23645 SQLITE_LIBDIR=$withval/lib64
23647 SQLITE_LIBDIR=$withval/lib
23650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23651 $as_echo "no" >&6; }
23652 as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23654 if test -f $SQLITE_LIBDIR/libsqlite3.so; then
23655 DB_PROG_LIB=$SQLITE_LIBDIR/libsqlite3.so
23657 DB_PROG_LIB=$SQLITE_LIBDIR/libsqlite3.a
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23662 $as_echo "no" >&6; }
23663 as_fn_error "Unable to set DBI driver. $withval is not supported" "$LINENO" 5
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23668 $as_echo "yes" >&6; }
23671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23672 $as_echo "no" >&6; }
23677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23678 $as_echo "no" >&6; }
23691 if test "x${db_backends}" = "x" ; then
23694 echo "You have not specified either --enable-client-only or one of the"
23695 echo "supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
23696 echo "This is not permitted. Please reconfigure."
23698 echo "Aborting the configuration ..."
23704 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
23706 DEFAULT_DB_TYPE="${DB_BACKENDS}"
23707 if test x$use_libtool = xno; then
23708 SHARED_CATALOG_TARGETS=""
23710 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
23714 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
23716 if test x$use_libtool = xno; then
23719 echo "You have specified two or more of the"
23720 echo "supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
23721 echo "This is not permitted when not using libtool Please reconfigure."
23723 echo "Aborting the configuration ..."
23729 SHARED_CATALOG_TARGETS=""
23730 for db_type in ${DB_BACKENDS}
23732 if test -z "${SHARED_CATALOG_TARGETS}"; then
23733 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
23735 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
23741 if test x$use_libtool = xyes; then
23750 support_batch_insert=yes
23751 # Check whether --enable-batch-insert was given.
23752 if test "${enable_batch_insert+set}" = set; then :
23753 enableval=$enable_batch_insert;
23754 if test x$enableval = xno; then
23755 support_batch_insert=no
23762 if test x$support_batch_insert = xyes; then
23764 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23768 if test ! -z "$MYSQL_LIB"; then
23769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysql_r" >&5
23770 $as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
23771 if test "${ac_cv_lib_mysql_r_mysql_thread_safe+set}" = set; then :
23772 $as_echo_n "(cached) " >&6
23774 ac_check_lib_save_LIBS=$LIBS
23775 LIBS="-lmysql_r $LIBS"
23776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23777 /* end confdefs.h. */
23779 /* Override any GCC internal prototype to avoid an error.
23780 Use char because int might match the return type of a GCC
23781 builtin and then its argument prototype would still apply. */
23785 char mysql_thread_safe ();
23789 return mysql_thread_safe ();
23794 if ac_fn_c_try_link "$LINENO"; then :
23795 ac_cv_lib_mysql_r_mysql_thread_safe=yes
23797 ac_cv_lib_mysql_r_mysql_thread_safe=no
23799 rm -f core conftest.err conftest.$ac_objext \
23800 conftest$ac_exeext conftest.$ac_ext
23801 LIBS=$ac_check_lib_save_LIBS
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
23804 $as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
23805 if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = x""yes; then :
23807 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
23813 if test ! -z "SQLITE_LIB"; then
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23815 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23816 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then :
23817 $as_echo_n "(cached) " >&6
23819 ac_check_lib_save_LIBS=$LIBS
23820 LIBS="-lsqlite3 $LIBS"
23821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23822 /* end confdefs.h. */
23824 /* Override any GCC internal prototype to avoid an error.
23825 Use char because int might match the return type of a GCC
23826 builtin and then its argument prototype would still apply. */
23830 char sqlite3_threadsafe ();
23834 return sqlite3_threadsafe ();
23839 if ac_fn_c_try_link "$LINENO"; then :
23840 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23842 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23844 rm -f core conftest.err conftest.$ac_objext \
23845 conftest$ac_exeext conftest.$ac_ext
23846 LIBS=$ac_check_lib_save_LIBS
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23849 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23850 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then :
23852 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
23858 if test ! -z "$POSTGRESQL_LIB"; then
23859 saved_LIBS="${LIBS}"
23860 LIBS="${saved_LIBS} ${POSTGRESQL_LIB}"
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23863 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23864 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23865 $as_echo_n "(cached) " >&6
23867 ac_check_lib_save_LIBS=$LIBS
23869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23870 /* end confdefs.h. */
23872 /* Override any GCC internal prototype to avoid an error.
23873 Use char because int might match the return type of a GCC
23874 builtin and then its argument prototype would still apply. */
23878 char PQisthreadsafe ();
23882 return PQisthreadsafe ();
23887 if ac_fn_c_try_link "$LINENO"; then :
23888 ac_cv_lib_pq_PQisthreadsafe=yes
23890 ac_cv_lib_pq_PQisthreadsafe=no
23892 rm -f core conftest.err conftest.$ac_objext \
23893 conftest$ac_exeext conftest.$ac_ext
23894 LIBS=$ac_check_lib_save_LIBS
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23897 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23898 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23900 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23905 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23906 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23907 $as_echo_n "(cached) " >&6
23909 ac_check_lib_save_LIBS=$LIBS
23911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23912 /* end confdefs.h. */
23914 /* Override any GCC internal prototype to avoid an error.
23915 Use char because int might match the return type of a GCC
23916 builtin and then its argument prototype would still apply. */
23920 char PQputCopyData ();
23924 return PQputCopyData ();
23929 if ac_fn_c_try_link "$LINENO"; then :
23930 ac_cv_lib_pq_PQputCopyData=yes
23932 ac_cv_lib_pq_PQputCopyData=no
23934 rm -f core conftest.err conftest.$ac_objext \
23935 conftest$ac_exeext conftest.$ac_ext
23936 LIBS=$ac_check_lib_save_LIBS
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23939 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23940 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23942 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23946 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
23947 if test $support_batch_insert = yes ; then
23949 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
23954 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
23956 echo "WARNING: Your PostgreSQL client library is too old to detect "
23957 echo "if it was compiled with --enable-thread-safety, consider to "
23958 echo "upgrade it in order to avoid problems with Batch insert mode"
23962 LIBS="${saved_LIBS}"
23965 if test ! -z "$DBI_LIBS"; then
23966 DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
23968 if test $DB_PROG = postgresql; then
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23970 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23971 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23972 $as_echo_n "(cached) " >&6
23974 ac_check_lib_save_LIBS=$LIBS
23976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23977 /* end confdefs.h. */
23979 /* Override any GCC internal prototype to avoid an error.
23980 Use char because int might match the return type of a GCC
23981 builtin and then its argument prototype would still apply. */
23985 char PQisthreadsafe ();
23989 return PQisthreadsafe ();
23994 if ac_fn_c_try_link "$LINENO"; then :
23995 ac_cv_lib_pq_PQisthreadsafe=yes
23997 ac_cv_lib_pq_PQisthreadsafe=no
23999 rm -f core conftest.err conftest.$ac_objext \
24000 conftest$ac_exeext conftest.$ac_ext
24001 LIBS=$ac_check_lib_save_LIBS
24003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24004 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24005 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
24006 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24011 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24012 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
24013 $as_echo_n "(cached) " >&6
24015 ac_check_lib_save_LIBS=$LIBS
24017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24018 /* end confdefs.h. */
24020 /* Override any GCC internal prototype to avoid an error.
24021 Use char because int might match the return type of a GCC
24022 builtin and then its argument prototype would still apply. */
24026 char PQputCopyData ();
24030 return PQputCopyData ();
24035 if ac_fn_c_try_link "$LINENO"; then :
24036 ac_cv_lib_pq_PQputCopyData=yes
24038 ac_cv_lib_pq_PQputCopyData=no
24040 rm -f core conftest.err conftest.$ac_objext \
24041 conftest$ac_exeext conftest.$ac_ext
24042 LIBS=$ac_check_lib_save_LIBS
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24045 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24046 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
24047 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24051 test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
24053 if test $pkg = 0; then
24054 if test $support_batch_insert = yes ; then
24056 $as_echo "#define HAVE_DBI_BATCH_FILE_INSERT 1" >>confdefs.h
24067 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24070 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24071 if test -z "$CCOPTS"; then
24072 CCOPTS='-g -O2 -Wall'
24079 largefile_support="no"
24081 # Check whether --enable-largefile was given.
24082 if test "${enable_largefile+set}" = set; then :
24083 enableval=$enable_largefile;
24086 if test "$enable_largefile" != no; then
24087 if test -n "$ac_tool_prefix"; then
24088 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24089 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24091 $as_echo_n "checking for $ac_word... " >&6; }
24092 if test "${ac_cv_prog_GETCONF+set}" = set; then :
24093 $as_echo_n "(cached) " >&6
24095 if test -n "$GETCONF"; then
24096 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24099 for as_dir in $PATH
24102 test -z "$as_dir" && as_dir=.
24103 for ac_exec_ext in '' $ac_executable_extensions; do
24104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24105 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24115 GETCONF=$ac_cv_prog_GETCONF
24116 if test -n "$GETCONF"; then
24117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24118 $as_echo "$GETCONF" >&6; }
24120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24121 $as_echo "no" >&6; }
24126 if test -z "$ac_cv_prog_GETCONF"; then
24127 ac_ct_GETCONF=$GETCONF
24128 # Extract the first word of "getconf", so it can be a program name with args.
24129 set dummy getconf; ac_word=$2
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24131 $as_echo_n "checking for $ac_word... " >&6; }
24132 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
24133 $as_echo_n "(cached) " >&6
24135 if test -n "$ac_ct_GETCONF"; then
24136 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24139 for as_dir in $PATH
24142 test -z "$as_dir" && as_dir=.
24143 for ac_exec_ext in '' $ac_executable_extensions; do
24144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24145 ac_cv_prog_ac_ct_GETCONF="getconf"
24146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24155 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24156 if test -n "$ac_ct_GETCONF"; then
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24158 $as_echo "$ac_ct_GETCONF" >&6; }
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24161 $as_echo "no" >&6; }
24164 if test "x$ac_ct_GETCONF" = x; then
24167 case $cross_compiling:$ac_tool_warned in
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24171 ac_tool_warned=yes ;;
24173 GETCONF=$ac_ct_GETCONF
24176 GETCONF="$ac_cv_prog_GETCONF"
24179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24180 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24181 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
24182 $as_echo_n "(cached) " >&6
24184 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24185 ac_cv_sys_largefile_CFLAGS=no
24187 # IRIX 6.2 and later require cc -n32.
24188 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24189 if test "$GCC" != yes; then
24190 ac_cv_sys_largefile_CFLAGS=-n32
24193 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24195 /* end confdefs.h. */
24205 if ac_fn_c_try_link "$LINENO"; then :
24208 ac_cv_sys_largefile_CFLAGS=no
24210 rm -f core conftest.err conftest.$ac_objext \
24211 conftest$ac_exeext conftest.$ac_ext
24216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24217 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24219 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24220 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
24221 $as_echo_n "(cached) " >&6
24223 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24224 ac_cv_sys_largefile_LDFLAGS=no
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24229 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24231 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24232 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
24233 $as_echo_n "(cached) " >&6
24235 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24236 ac_cv_sys_largefile_LIBS=no
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24241 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24243 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24246 -D_FILE_OFFSET_BITS=*) ;;
24247 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24248 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24253 case "$CPPFLAGS" in
24254 '') CPPFLAGS="$ac_flag" ;;
24255 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24263 '') CFLAGS="$ac_flag" ;;
24264 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24269 case "$ac_cv_sys_largefile_LDFLAGS" in
24273 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24274 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24277 case "$ac_cv_sys_largefile_LIBS" in
24281 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24282 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24286 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24287 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24288 $as_echo_n "(cached) " >&6
24290 ac_cv_sys_file_offset_bits=no
24291 ac_cv_sys_file_offset_bits=64
24292 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24294 -D_FILE_OFFSET_BITS)
24295 ac_cv_sys_file_offset_bits=1 ;;
24296 -D_FILE_OFFSET_BITS=*)
24297 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24303 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24304 if test "$ac_cv_sys_file_offset_bits" != no; then
24306 cat >>confdefs.h <<_ACEOF
24307 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24312 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24313 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24314 $as_echo_n "(cached) " >&6
24316 ac_cv_sys_largefile_source=no
24317 ac_cv_sys_largefile_source=1
24318 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24320 -D_LARGEFILE_SOURCE)
24321 ac_cv_sys_largefile_source=1 ;;
24322 -D_LARGEFILE_SOURCE=*)
24323 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24329 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24330 if test "$ac_cv_sys_largefile_source" != no; then
24332 cat >>confdefs.h <<_ACEOF
24333 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24338 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24339 if test "${ac_cv_sys_large_files+set}" = set; then :
24340 $as_echo_n "(cached) " >&6
24342 ac_cv_sys_large_files=no
24343 ac_cv_sys_large_files=1
24344 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24347 ac_cv_sys_large_files=1 ;;
24349 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24355 $as_echo "$ac_cv_sys_large_files" >&6; }
24356 if test "$ac_cv_sys_large_files" != no; then
24358 cat >>confdefs.h <<_ACEOF
24359 #define _LARGE_FILES $ac_cv_sys_large_files
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24367 $as_echo_n "checking for X... " >&6; }
24370 # Check whether --with-x was given.
24371 if test "${with_x+set}" = set; then :
24375 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24376 if test "x$with_x" = xno; then
24377 # The user explicitly disabled X.
24380 case $x_includes,$x_libraries in #(
24381 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24382 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24383 $as_echo_n "(cached) " >&6
24385 # One or both of the vars are not set, and there is no cached value.
24386 ac_x_includes=no ac_x_libraries=no
24387 rm -f -r conftest.dir
24388 if mkdir conftest.dir; then
24390 cat >Imakefile <<'_ACEOF'
24392 @echo incroot='${INCROOT}'
24394 @echo usrlibdir='${USRLIBDIR}'
24396 @echo libdir='${LIBDIR}'
24398 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24399 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24400 for ac_var in incroot usrlibdir libdir; do
24401 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24403 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24404 for ac_extension in a so sl dylib la dll; do
24405 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24406 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24407 ac_im_usrlibdir=$ac_im_libdir; break
24410 # Screen out bogus values from the imake configuration. They are
24411 # bogus both because they are the default anyway, and because
24412 # using them would break gcc on systems where it needs fixed includes.
24413 case $ac_im_incroot in
24414 /usr/include) ac_x_includes= ;;
24415 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24417 case $ac_im_usrlibdir in
24418 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24419 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24423 rm -f -r conftest.dir
24426 # Standard set of common directories for X headers.
24427 # Check X11 before X11Rn because it is often a symlink to the current release.
24441 /usr/local/X11/include
24442 /usr/local/X11R7/include
24443 /usr/local/X11R6/include
24444 /usr/local/X11R5/include
24445 /usr/local/X11R4/include
24447 /usr/local/include/X11
24448 /usr/local/include/X11R7
24449 /usr/local/include/X11R6
24450 /usr/local/include/X11R5
24451 /usr/local/include/X11R4
24455 /usr/XFree86/include/X11
24459 /usr/unsupported/include
24460 /usr/athena/include
24461 /usr/local/x11r5/include
24462 /usr/lpp/Xamples/include
24464 /usr/openwin/include
24465 /usr/openwin/share/include'
24467 if test "$ac_x_includes" = no; then
24468 # Guess where to find include files, by looking for Xlib.h.
24469 # First, try using that file with no special directory specified.
24470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24471 /* end confdefs.h. */
24472 #include <X11/Xlib.h>
24474 if ac_fn_c_try_cpp "$LINENO"; then :
24475 # We can compile using X headers with no special include directory.
24478 for ac_dir in $ac_x_header_dirs; do
24479 if test -r "$ac_dir/X11/Xlib.h"; then
24480 ac_x_includes=$ac_dir
24485 rm -f conftest.err conftest.$ac_ext
24486 fi # $ac_x_includes = no
24488 if test "$ac_x_libraries" = no; then
24489 # Check for the libraries.
24490 # See if we find them without any special options.
24491 # Don't add to $LIBS permanently.
24494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24495 /* end confdefs.h. */
24496 #include <X11/Xlib.h>
24505 if ac_fn_c_try_link "$LINENO"; then :
24507 # We can link X programs with no special library path.
24511 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24513 # Don't even attempt the hair of trying to link an X program!
24514 for ac_extension in a so sl dylib la dll; do
24515 if test -r "$ac_dir/libX11.$ac_extension"; then
24516 ac_x_libraries=$ac_dir
24522 rm -f core conftest.err conftest.$ac_objext \
24523 conftest$ac_exeext conftest.$ac_ext
24524 fi # $ac_x_libraries = no
24526 case $ac_x_includes,$ac_x_libraries in #(
24527 no,* | *,no | *\'*)
24528 # Didn't find X, or a directory has "'" in its name.
24529 ac_cv_have_x="have_x=no";; #(
24531 # Record where we found X for the cache.
24532 ac_cv_have_x="have_x=yes\
24533 ac_x_includes='$ac_x_includes'\
24534 ac_x_libraries='$ac_x_libraries'"
24540 eval "$ac_cv_have_x"
24543 if test "$have_x" != yes; then
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24545 $as_echo "$have_x" >&6; }
24548 # If each of the values was on the command line, it overrides each guess.
24549 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24550 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24551 # Update the cache value to reflect the command line values.
24552 ac_cv_have_x="have_x=yes\
24553 ac_x_includes='$x_includes'\
24554 ac_x_libraries='$x_libraries'"
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24556 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24559 if test "$no_x" = yes; then
24560 # Not all programs may use this symbol, but it does not hurt to define it.
24562 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24564 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24566 if test -n "$x_includes"; then
24567 X_CFLAGS="$X_CFLAGS -I$x_includes"
24570 # It would also be nice to do this for all -L options, not just this one.
24571 if test -n "$x_libraries"; then
24572 X_LIBS="$X_LIBS -L$x_libraries"
24573 # For Solaris; some versions of Sun CC require a space after -R and
24574 # others require no space. Words are not sufficient . . . .
24575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24576 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24577 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24578 ac_xsave_c_werror_flag=$ac_c_werror_flag
24579 ac_c_werror_flag=yes
24580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24581 /* end confdefs.h. */
24591 if ac_fn_c_try_link "$LINENO"; then :
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24593 $as_echo "no" >&6; }
24594 X_LIBS="$X_LIBS -R$x_libraries"
24596 LIBS="$ac_xsave_LIBS -R $x_libraries"
24597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24598 /* end confdefs.h. */
24608 if ac_fn_c_try_link "$LINENO"; then :
24609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24610 $as_echo "yes" >&6; }
24611 X_LIBS="$X_LIBS -R $x_libraries"
24613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24614 $as_echo "neither works" >&6; }
24616 rm -f core conftest.err conftest.$ac_objext \
24617 conftest$ac_exeext conftest.$ac_ext
24619 rm -f core conftest.err conftest.$ac_objext \
24620 conftest$ac_exeext conftest.$ac_ext
24621 ac_c_werror_flag=$ac_xsave_c_werror_flag
24622 LIBS=$ac_xsave_LIBS
24625 # Check for system-dependent libraries X programs must link with.
24626 # Do this before checking for the system-independent R6 libraries
24627 # (-lICE), since we may need -lsocket or whatever for X linking.
24629 if test "$ISC" = yes; then
24630 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24632 # Martyn Johnson says this is needed for Ultrix, if the X
24633 # libraries were built with DECnet support. And Karl Berry says
24634 # the Alpha needs dnet_stub (dnet does not exist).
24635 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24637 /* end confdefs.h. */
24639 /* Override any GCC internal prototype to avoid an error.
24640 Use char because int might match the return type of a GCC
24641 builtin and then its argument prototype would still apply. */
24645 char XOpenDisplay ();
24649 return XOpenDisplay ();
24654 if ac_fn_c_try_link "$LINENO"; then :
24657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24658 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24659 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
24660 $as_echo_n "(cached) " >&6
24662 ac_check_lib_save_LIBS=$LIBS
24663 LIBS="-ldnet $LIBS"
24664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24665 /* end confdefs.h. */
24667 /* Override any GCC internal prototype to avoid an error.
24668 Use char because int might match the return type of a GCC
24669 builtin and then its argument prototype would still apply. */
24677 return dnet_ntoa ();
24682 if ac_fn_c_try_link "$LINENO"; then :
24683 ac_cv_lib_dnet_dnet_ntoa=yes
24685 ac_cv_lib_dnet_dnet_ntoa=no
24687 rm -f core conftest.err conftest.$ac_objext \
24688 conftest$ac_exeext conftest.$ac_ext
24689 LIBS=$ac_check_lib_save_LIBS
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24692 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24693 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
24694 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24697 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24699 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24700 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
24701 $as_echo_n "(cached) " >&6
24703 ac_check_lib_save_LIBS=$LIBS
24704 LIBS="-ldnet_stub $LIBS"
24705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24706 /* end confdefs.h. */
24708 /* Override any GCC internal prototype to avoid an error.
24709 Use char because int might match the return type of a GCC
24710 builtin and then its argument prototype would still apply. */
24718 return dnet_ntoa ();
24723 if ac_fn_c_try_link "$LINENO"; then :
24724 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24726 ac_cv_lib_dnet_stub_dnet_ntoa=no
24728 rm -f core conftest.err conftest.$ac_objext \
24729 conftest$ac_exeext conftest.$ac_ext
24730 LIBS=$ac_check_lib_save_LIBS
24732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24733 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24734 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
24735 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24740 rm -f core conftest.err conftest.$ac_objext \
24741 conftest$ac_exeext conftest.$ac_ext
24742 LIBS="$ac_xsave_LIBS"
24744 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24745 # to get the SysV transport functions.
24746 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24748 # The nsl library prevents programs from opening the X display
24749 # on Irix 5.2, according to T.E. Dickey.
24750 # The functions gethostbyname, getservbyname, and inet_addr are
24751 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24752 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24753 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
24757 if test $ac_cv_func_gethostbyname = no; then
24758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24759 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24760 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
24761 $as_echo_n "(cached) " >&6
24763 ac_check_lib_save_LIBS=$LIBS
24765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24766 /* end confdefs.h. */
24768 /* Override any GCC internal prototype to avoid an error.
24769 Use char because int might match the return type of a GCC
24770 builtin and then its argument prototype would still apply. */
24774 char gethostbyname ();
24778 return gethostbyname ();
24783 if ac_fn_c_try_link "$LINENO"; then :
24784 ac_cv_lib_nsl_gethostbyname=yes
24786 ac_cv_lib_nsl_gethostbyname=no
24788 rm -f core conftest.err conftest.$ac_objext \
24789 conftest$ac_exeext conftest.$ac_ext
24790 LIBS=$ac_check_lib_save_LIBS
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24793 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24794 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24795 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24798 if test $ac_cv_lib_nsl_gethostbyname = no; then
24799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24800 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24801 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24802 $as_echo_n "(cached) " >&6
24804 ac_check_lib_save_LIBS=$LIBS
24806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24807 /* end confdefs.h. */
24809 /* Override any GCC internal prototype to avoid an error.
24810 Use char because int might match the return type of a GCC
24811 builtin and then its argument prototype would still apply. */
24815 char gethostbyname ();
24819 return gethostbyname ();
24824 if ac_fn_c_try_link "$LINENO"; then :
24825 ac_cv_lib_bsd_gethostbyname=yes
24827 ac_cv_lib_bsd_gethostbyname=no
24829 rm -f core conftest.err conftest.$ac_objext \
24830 conftest$ac_exeext conftest.$ac_ext
24831 LIBS=$ac_check_lib_save_LIBS
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24834 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24835 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24836 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24842 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24843 # socket/setsockopt and other routines are undefined under SCO ODT
24844 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24845 # on later versions), says Simon Leinen: it contains gethostby*
24846 # variants that don't use the name server (or something). -lsocket
24847 # must be given before -lnsl if both are needed. We assume that
24848 # if connect needs -lnsl, so does gethostbyname.
24849 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24850 if test "x$ac_cv_func_connect" = x""yes; then :
24854 if test $ac_cv_func_connect = no; then
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24856 $as_echo_n "checking for connect in -lsocket... " >&6; }
24857 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24858 $as_echo_n "(cached) " >&6
24860 ac_check_lib_save_LIBS=$LIBS
24861 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24863 /* end confdefs.h. */
24865 /* Override any GCC internal prototype to avoid an error.
24866 Use char because int might match the return type of a GCC
24867 builtin and then its argument prototype would still apply. */
24880 if ac_fn_c_try_link "$LINENO"; then :
24881 ac_cv_lib_socket_connect=yes
24883 ac_cv_lib_socket_connect=no
24885 rm -f core conftest.err conftest.$ac_objext \
24886 conftest$ac_exeext conftest.$ac_ext
24887 LIBS=$ac_check_lib_save_LIBS
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24890 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24891 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24892 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24897 # Guillermo Gomez says -lposix is necessary on A/UX.
24898 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24899 if test "x$ac_cv_func_remove" = x""yes; then :
24903 if test $ac_cv_func_remove = no; then
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24905 $as_echo_n "checking for remove in -lposix... " >&6; }
24906 if test "${ac_cv_lib_posix_remove+set}" = set; then :
24907 $as_echo_n "(cached) " >&6
24909 ac_check_lib_save_LIBS=$LIBS
24910 LIBS="-lposix $LIBS"
24911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24912 /* end confdefs.h. */
24914 /* Override any GCC internal prototype to avoid an error.
24915 Use char because int might match the return type of a GCC
24916 builtin and then its argument prototype would still apply. */
24929 if ac_fn_c_try_link "$LINENO"; then :
24930 ac_cv_lib_posix_remove=yes
24932 ac_cv_lib_posix_remove=no
24934 rm -f core conftest.err conftest.$ac_objext \
24935 conftest$ac_exeext conftest.$ac_ext
24936 LIBS=$ac_check_lib_save_LIBS
24938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24939 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24940 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24941 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24946 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24947 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24948 if test "x$ac_cv_func_shmat" = x""yes; then :
24952 if test $ac_cv_func_shmat = no; then
24953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24954 $as_echo_n "checking for shmat in -lipc... " >&6; }
24955 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
24956 $as_echo_n "(cached) " >&6
24958 ac_check_lib_save_LIBS=$LIBS
24960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24961 /* end confdefs.h. */
24963 /* Override any GCC internal prototype to avoid an error.
24964 Use char because int might match the return type of a GCC
24965 builtin and then its argument prototype would still apply. */
24978 if ac_fn_c_try_link "$LINENO"; then :
24979 ac_cv_lib_ipc_shmat=yes
24981 ac_cv_lib_ipc_shmat=no
24983 rm -f core conftest.err conftest.$ac_objext \
24984 conftest$ac_exeext conftest.$ac_ext
24985 LIBS=$ac_check_lib_save_LIBS
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24988 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24989 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
24990 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24996 # Check for libraries that X11R6 Xt/Xaw programs need.
24997 ac_save_LDFLAGS=$LDFLAGS
24998 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24999 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25000 # check for ICE first), but we must link in the order -lSM -lICE or
25001 # we get undefined symbols. So assume we have SM if we have ICE.
25002 # These have to be linked with before -lX11, unlike the other
25003 # libraries we check for below, so use a different variable.
25004 # John Interrante, Karl Berry
25005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25006 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25007 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25008 $as_echo_n "(cached) " >&6
25010 ac_check_lib_save_LIBS=$LIBS
25011 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25013 /* end confdefs.h. */
25015 /* Override any GCC internal prototype to avoid an error.
25016 Use char because int might match the return type of a GCC
25017 builtin and then its argument prototype would still apply. */
25021 char IceConnectionNumber ();
25025 return IceConnectionNumber ();
25030 if ac_fn_c_try_link "$LINENO"; then :
25031 ac_cv_lib_ICE_IceConnectionNumber=yes
25033 ac_cv_lib_ICE_IceConnectionNumber=no
25035 rm -f core conftest.err conftest.$ac_objext \
25036 conftest$ac_exeext conftest.$ac_ext
25037 LIBS=$ac_check_lib_save_LIBS
25039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25040 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25041 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25042 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25045 LDFLAGS=$ac_save_LDFLAGS
25082 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25083 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25084 eval as_val=\$$as_ac_Header
25085 if test "x$as_val" = x""yes; then :
25086 cat >>confdefs.h <<_ACEOF
25087 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25095 $as_echo_n "checking for ANSI C header files... " >&6; }
25096 if test "${ac_cv_header_stdc+set}" = set; then :
25097 $as_echo_n "(cached) " >&6
25099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25100 /* end confdefs.h. */
25101 #include <stdlib.h>
25102 #include <stdarg.h>
25103 #include <string.h>
25114 if ac_fn_c_try_compile "$LINENO"; then :
25115 ac_cv_header_stdc=yes
25117 ac_cv_header_stdc=no
25119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25121 if test $ac_cv_header_stdc = yes; then
25122 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25124 /* end confdefs.h. */
25125 #include <string.h>
25128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25129 $EGREP "memchr" >/dev/null 2>&1; then :
25132 ac_cv_header_stdc=no
25138 if test $ac_cv_header_stdc = yes; then
25139 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25141 /* end confdefs.h. */
25142 #include <stdlib.h>
25145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25146 $EGREP "free" >/dev/null 2>&1; then :
25149 ac_cv_header_stdc=no
25155 if test $ac_cv_header_stdc = yes; then
25156 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25157 if test "$cross_compiling" = yes; then :
25160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25161 /* end confdefs.h. */
25163 #include <stdlib.h>
25164 #if ((' ' & 0x0FF) == 0x020)
25165 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25166 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25168 # define ISLOWER(c) \
25169 (('a' <= (c) && (c) <= 'i') \
25170 || ('j' <= (c) && (c) <= 'r') \
25171 || ('s' <= (c) && (c) <= 'z'))
25172 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25175 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25180 for (i = 0; i < 256; i++)
25181 if (XOR (islower (i), ISLOWER (i))
25182 || toupper (i) != TOUPPER (i))
25187 if ac_fn_c_try_run "$LINENO"; then :
25190 ac_cv_header_stdc=no
25192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25193 conftest.$ac_objext conftest.beam conftest.$ac_ext
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25199 $as_echo "$ac_cv_header_stdc" >&6; }
25200 if test $ac_cv_header_stdc = yes; then
25202 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25207 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25208 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
25209 $as_echo_n "(cached) " >&6
25211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25212 /* end confdefs.h. */
25213 #include <sys/types.h>
25217 return makedev(0, 0);
25222 if ac_fn_c_try_link "$LINENO"; then :
25223 ac_cv_header_sys_types_h_makedev=yes
25225 ac_cv_header_sys_types_h_makedev=no
25227 rm -f core conftest.err conftest.$ac_objext \
25228 conftest$ac_exeext conftest.$ac_ext
25231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25232 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25234 if test $ac_cv_header_sys_types_h_makedev = no; then
25235 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25236 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
25238 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25244 if test $ac_cv_header_sys_mkdev_h = no; then
25245 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25246 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
25248 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25256 ac_header_dirent=no
25257 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25258 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25260 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
25262 $as_echo_n "(cached) " >&6
25264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25265 /* end confdefs.h. */
25266 #include <sys/types.h>
25278 if ac_fn_c_try_compile "$LINENO"; then :
25279 eval "$as_ac_Header=yes"
25281 eval "$as_ac_Header=no"
25283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25285 eval ac_res=\$$as_ac_Header
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25287 $as_echo "$ac_res" >&6; }
25288 eval as_val=\$$as_ac_Header
25289 if test "x$as_val" = x""yes; then :
25290 cat >>confdefs.h <<_ACEOF
25291 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25294 ac_header_dirent=$ac_hdr; break
25298 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25299 if test $ac_header_dirent = dirent.h; then
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25301 $as_echo_n "checking for library containing opendir... " >&6; }
25302 if test "${ac_cv_search_opendir+set}" = set; then :
25303 $as_echo_n "(cached) " >&6
25305 ac_func_search_save_LIBS=$LIBS
25306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25307 /* end confdefs.h. */
25309 /* Override any GCC internal prototype to avoid an error.
25310 Use char because int might match the return type of a GCC
25311 builtin and then its argument prototype would still apply. */
25324 for ac_lib in '' dir; do
25325 if test -z "$ac_lib"; then
25326 ac_res="none required"
25329 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25331 if ac_fn_c_try_link "$LINENO"; then :
25332 ac_cv_search_opendir=$ac_res
25334 rm -f core conftest.err conftest.$ac_objext \
25336 if test "${ac_cv_search_opendir+set}" = set; then :
25340 if test "${ac_cv_search_opendir+set}" = set; then :
25343 ac_cv_search_opendir=no
25345 rm conftest.$ac_ext
25346 LIBS=$ac_func_search_save_LIBS
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25349 $as_echo "$ac_cv_search_opendir" >&6; }
25350 ac_res=$ac_cv_search_opendir
25351 if test "$ac_res" != no; then :
25352 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25358 $as_echo_n "checking for library containing opendir... " >&6; }
25359 if test "${ac_cv_search_opendir+set}" = set; then :
25360 $as_echo_n "(cached) " >&6
25362 ac_func_search_save_LIBS=$LIBS
25363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25364 /* end confdefs.h. */
25366 /* Override any GCC internal prototype to avoid an error.
25367 Use char because int might match the return type of a GCC
25368 builtin and then its argument prototype would still apply. */
25381 for ac_lib in '' x; do
25382 if test -z "$ac_lib"; then
25383 ac_res="none required"
25386 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25388 if ac_fn_c_try_link "$LINENO"; then :
25389 ac_cv_search_opendir=$ac_res
25391 rm -f core conftest.err conftest.$ac_objext \
25393 if test "${ac_cv_search_opendir+set}" = set; then :
25397 if test "${ac_cv_search_opendir+set}" = set; then :
25400 ac_cv_search_opendir=no
25402 rm conftest.$ac_ext
25403 LIBS=$ac_func_search_save_LIBS
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25406 $as_echo "$ac_cv_search_opendir" >&6; }
25407 ac_res=$ac_cv_search_opendir
25408 if test "$ac_res" != no; then :
25409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25416 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25417 if test "${ac_cv_header_stat_broken+set}" = set; then :
25418 $as_echo_n "(cached) " >&6
25420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25421 /* end confdefs.h. */
25422 #include <sys/types.h>
25423 #include <sys/stat.h>
25425 #if defined S_ISBLK && defined S_IFDIR
25426 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25429 #if defined S_ISBLK && defined S_IFCHR
25430 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25433 #if defined S_ISLNK && defined S_IFREG
25434 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25437 #if defined S_ISSOCK && defined S_IFREG
25438 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25442 if ac_fn_c_try_compile "$LINENO"; then :
25443 ac_cv_header_stat_broken=no
25445 ac_cv_header_stat_broken=yes
25447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25450 $as_echo "$ac_cv_header_stat_broken" >&6; }
25451 if test $ac_cv_header_stat_broken = yes; then
25453 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25458 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25459 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25460 $as_echo_n "(cached) " >&6
25462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25463 /* end confdefs.h. */
25464 #include <sys/types.h>
25465 #include <sys/wait.h>
25466 #ifndef WEXITSTATUS
25467 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25470 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25478 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25483 if ac_fn_c_try_compile "$LINENO"; then :
25484 ac_cv_header_sys_wait_h=yes
25486 ac_cv_header_sys_wait_h=no
25488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25491 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25492 if test $ac_cv_header_sys_wait_h = yes; then
25494 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25499 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25500 if test "${ac_cv_header_time+set}" = set; then :
25501 $as_echo_n "(cached) " >&6
25503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25504 /* end confdefs.h. */
25505 #include <sys/types.h>
25506 #include <sys/time.h>
25512 if ((struct tm *) 0)
25518 if ac_fn_c_try_compile "$LINENO"; then :
25519 ac_cv_header_time=yes
25521 ac_cv_header_time=no
25523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25526 $as_echo "$ac_cv_header_time" >&6; }
25527 if test $ac_cv_header_time = yes; then
25529 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25533 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25534 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
25536 cat >>confdefs.h <<_ACEOF
25537 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25541 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25546 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25547 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
25549 cat >>confdefs.h <<_ACEOF
25550 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25554 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25557 case " $LIBOBJS " in
25558 *" fileblocks.$ac_objext "* ) ;;
25559 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25567 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25568 if test "${ac_cv_struct_tm+set}" = set; then :
25569 $as_echo_n "(cached) " >&6
25571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25572 /* end confdefs.h. */
25573 #include <sys/types.h>
25580 int *p = &tm.tm_sec;
25586 if ac_fn_c_try_compile "$LINENO"; then :
25587 ac_cv_struct_tm=time.h
25589 ac_cv_struct_tm=sys/time.h
25591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25594 $as_echo "$ac_cv_struct_tm" >&6; }
25595 if test $ac_cv_struct_tm = sys/time.h; then
25597 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25601 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25602 #include <$ac_cv_struct_tm>
25605 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
25607 cat >>confdefs.h <<_ACEOF
25608 #define HAVE_STRUCT_TM_TM_ZONE 1
25614 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25616 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25619 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25621 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
25627 cat >>confdefs.h <<_ACEOF
25628 #define HAVE_DECL_TZNAME $ac_have_decl
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25632 $as_echo_n "checking for tzname... " >&6; }
25633 if test "${ac_cv_var_tzname+set}" = set; then :
25634 $as_echo_n "(cached) " >&6
25636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25637 /* end confdefs.h. */
25639 #if !HAVE_DECL_TZNAME
25640 extern char *tzname[];
25646 return tzname[0][0];
25651 if ac_fn_c_try_link "$LINENO"; then :
25652 ac_cv_var_tzname=yes
25654 ac_cv_var_tzname=no
25656 rm -f core conftest.err conftest.$ac_objext \
25657 conftest$ac_exeext conftest.$ac_ext
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25660 $as_echo "$ac_cv_var_tzname" >&6; }
25661 if test $ac_cv_var_tzname = yes; then
25663 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25670 $as_echo_n "checking for utime.h... " >&6; }
25671 if test "${ba_cv_header_utime_h+set}" = set; then :
25672 $as_echo_n "(cached) " >&6
25675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25676 /* end confdefs.h. */
25678 #include <sys/types.h>
25691 if ac_fn_c_try_compile "$LINENO"; then :
25693 ba_cv_header_utime_h=yes
25697 ba_cv_header_utime_h=no
25701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25706 $as_echo "$ba_cv_header_utime_h" >&6; }
25707 test $ba_cv_header_utime_h = yes &&
25708 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25712 $as_echo_n "checking for socklen_t... " >&6; }
25713 if test "${ba_cv_header_socklen_t+set}" = set; then :
25714 $as_echo_n "(cached) " >&6
25717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25718 /* end confdefs.h. */
25720 #include <sys/types.h>
25721 #include <sys/socket.h>
25733 if ac_fn_c_try_compile "$LINENO"; then :
25735 ba_cv_header_socklen_t=yes
25739 ba_cv_header_socklen_t=no
25743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25748 $as_echo "$ba_cv_header_socklen_t" >&6; }
25749 test $ba_cv_header_socklen_t = yes &&
25750 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25754 ac_cpp='$CXXCPP $CPPFLAGS'
25755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25760 $as_echo_n "checking for ioctl_req_t... " >&6; }
25761 if test "${ba_cv_header_ioctl_req_t+set}" = set; then :
25762 $as_echo_n "(cached) " >&6
25765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25766 /* end confdefs.h. */
25768 #include <unistd.h>
25769 #include <sys/types.h>
25770 #include <sys/ioctl.h>
25776 int (*d_ioctl)(int fd, unsigned long int request, ...);
25783 if ac_fn_cxx_try_compile "$LINENO"; then :
25785 ba_cv_header_ioctl_req_t=yes
25789 ba_cv_header_ioctl_req_t=no
25793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25798 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25799 test $ba_cv_header_ioctl_req_t = yes &&
25800 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25804 ac_cpp='$CPP $CPPFLAGS'
25805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25811 ac_cpp='$CXXCPP $CPPFLAGS'
25812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25817 $as_echo_n "checking for typeof... " >&6; }
25818 if test "${ba_cv_have_typeof+set}" = set; then :
25819 $as_echo_n "(cached) " >&6
25822 if test "$cross_compiling" = yes; then :
25824 ba_cv_have_typeof=no
25828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25829 /* end confdefs.h. */
25831 main(){char *a = 0; a = (typeof a)a;}
25834 if ac_fn_cxx_try_run "$LINENO"; then :
25836 ba_cv_have_typeof=yes
25840 ba_cv_have_typeof=no
25843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25844 conftest.$ac_objext conftest.beam conftest.$ac_ext
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25851 $as_echo "$ba_cv_have_typeof" >&6; }
25852 test $ba_cv_have_typeof = yes &&
25853 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25856 ac_cpp='$CPP $CPPFLAGS'
25857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25863 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25864 if test "${ac_cv_c_const+set}" = set; then :
25865 $as_echo_n "(cached) " >&6
25867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25868 /* end confdefs.h. */
25873 /* FIXME: Include the comments suggested by Paul. */
25874 #ifndef __cplusplus
25875 /* Ultrix mips cc rejects this. */
25876 typedef int charset[2];
25878 /* SunOS 4.1.1 cc rejects this. */
25879 char const *const *pcpcc;
25881 /* NEC SVR4.0.2 mips cc rejects this. */
25882 struct point {int x, y;};
25883 static struct point const zero = {0,0};
25884 /* AIX XL C 1.02.0.0 rejects this.
25885 It does not let you subtract one const X* pointer from another in
25886 an arm of an if-expression whose if-part is not a constant
25888 const char *g = "string";
25889 pcpcc = &g + (g ? g-g : 0);
25890 /* HPUX 7.0 cc rejects these. */
25892 ppc = (char**) pcpcc;
25893 pcpcc = (char const *const *) ppc;
25894 { /* SCO 3.2v4 cc rejects this. */
25896 char const *s = 0 ? (char *) 0 : (char const *) 0;
25901 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25902 int x[] = {25, 17};
25903 const int *foo = &x[0];
25906 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25907 typedef const int *iptr;
25911 { /* AIX XL C 1.02.0.0 rejects this saying
25912 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25913 struct s { int j; const int *ap[3]; };
25914 struct s *b; b->j = 5;
25916 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25917 const int foo = 10;
25918 if (!foo) return 0;
25920 return !cs[0] && !zero.x;
25927 if ac_fn_c_try_compile "$LINENO"; then :
25932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25935 $as_echo "$ac_cv_c_const" >&6; }
25936 if test $ac_cv_c_const = no; then
25938 $as_echo "#define const /**/" >>confdefs.h
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25944 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25945 if test "${ac_cv_c_bigendian+set}" = set; then :
25946 $as_echo_n "(cached) " >&6
25948 ac_cv_c_bigendian=unknown
25949 # See if we're dealing with a universal compiler.
25950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25951 /* end confdefs.h. */
25952 #ifndef __APPLE_CC__
25953 not a universal capable compiler
25958 if ac_fn_c_try_compile "$LINENO"; then :
25960 # Check for potential -arch flags. It is not universal unless
25961 # there are at least two -arch flags with different values.
25964 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25965 if test -n "$ac_prev"; then
25967 i?86 | x86_64 | ppc | ppc64)
25968 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25971 ac_cv_c_bigendian=universal
25977 elif test "x$ac_word" = "x-arch"; then
25982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25983 if test $ac_cv_c_bigendian = unknown; then
25984 # See if sys/param.h defines the BYTE_ORDER macro.
25985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25986 /* end confdefs.h. */
25987 #include <sys/types.h>
25988 #include <sys/param.h>
25993 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25994 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25996 bogus endian macros
26003 if ac_fn_c_try_compile "$LINENO"; then :
26004 # It does; now see whether it defined to BIG_ENDIAN or not.
26005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26006 /* end confdefs.h. */
26007 #include <sys/types.h>
26008 #include <sys/param.h>
26013 #if BYTE_ORDER != BIG_ENDIAN
26021 if ac_fn_c_try_compile "$LINENO"; then :
26022 ac_cv_c_bigendian=yes
26024 ac_cv_c_bigendian=no
26026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26030 if test $ac_cv_c_bigendian = unknown; then
26031 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26033 /* end confdefs.h. */
26034 #include <limits.h>
26039 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26040 bogus endian macros
26047 if ac_fn_c_try_compile "$LINENO"; then :
26048 # It does; now see whether it defined to _BIG_ENDIAN or not.
26049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26050 /* end confdefs.h. */
26051 #include <limits.h>
26056 #ifndef _BIG_ENDIAN
26064 if ac_fn_c_try_compile "$LINENO"; then :
26065 ac_cv_c_bigendian=yes
26067 ac_cv_c_bigendian=no
26069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26073 if test $ac_cv_c_bigendian = unknown; then
26074 # Compile a test program.
26075 if test "$cross_compiling" = yes; then :
26076 # Try to guess by grepping values from an object file.
26077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26078 /* end confdefs.h. */
26079 short int ascii_mm[] =
26080 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26081 short int ascii_ii[] =
26082 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26083 int use_ascii (int i) {
26084 return ascii_mm[i] + ascii_ii[i];
26086 short int ebcdic_ii[] =
26087 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26088 short int ebcdic_mm[] =
26089 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26090 int use_ebcdic (int i) {
26091 return ebcdic_mm[i] + ebcdic_ii[i];
26098 return use_ascii (foo) == use_ebcdic (foo);
26103 if ac_fn_c_try_compile "$LINENO"; then :
26104 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26105 ac_cv_c_bigendian=yes
26107 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26108 if test "$ac_cv_c_bigendian" = unknown; then
26109 ac_cv_c_bigendian=no
26111 # finding both strings is unlikely to happen, but who knows?
26112 ac_cv_c_bigendian=unknown
26116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26119 /* end confdefs.h. */
26120 $ac_includes_default
26125 /* Are we little or big endian? From Harbison&Steele. */
26129 char c[sizeof (long int)];
26132 return u.c[sizeof (long int) - 1] == 1;
26138 if ac_fn_c_try_run "$LINENO"; then :
26139 ac_cv_c_bigendian=no
26141 ac_cv_c_bigendian=yes
26143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26144 conftest.$ac_objext conftest.beam conftest.$ac_ext
26149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26150 $as_echo "$ac_cv_c_bigendian" >&6; }
26151 case $ac_cv_c_bigendian in #(
26154 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26158 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26162 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26166 as_fn_error "unknown endianness
26167 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26172 $as_echo_n "checking how to get filesystem type... " >&6; }
26174 # The order of these tests is important.
26175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26176 /* end confdefs.h. */
26178 #include <sys/statvfs.h>
26179 #include <sys/fstyp.h>
26182 if ac_fn_c_try_cpp "$LINENO"; then :
26183 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26187 rm -f conftest.err conftest.$ac_ext
26188 if test $fstype = no; then
26189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26190 /* end confdefs.h. */
26192 #include <sys/statfs.h>
26193 #include <sys/fstyp.h>
26196 if ac_fn_c_try_cpp "$LINENO"; then :
26197 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26201 rm -f conftest.err conftest.$ac_ext
26203 if test $fstype = no; then
26204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26205 /* end confdefs.h. */
26207 #include <sys/statfs.h>
26208 #include <sys/vmount.h>
26211 if ac_fn_c_try_cpp "$LINENO"; then :
26212 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26216 rm -f conftest.err conftest.$ac_ext
26218 if test $fstype = no; then
26219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26220 /* end confdefs.h. */
26222 #include <mntent.h>
26225 if ac_fn_c_try_cpp "$LINENO"; then :
26226 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26230 rm -f conftest.err conftest.$ac_ext
26232 if test $fstype = no; then
26233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26234 /* end confdefs.h. */
26235 #include <sys/mount.h>
26238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26239 $EGREP "f_type;" >/dev/null 2>&1; then :
26240 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26246 if test $fstype = no; then
26247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26248 /* end confdefs.h. */
26250 #include <sys/mount.h>
26251 #include <sys/fs_types.h>
26254 if ac_fn_c_try_cpp "$LINENO"; then :
26255 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26259 rm -f conftest.err conftest.$ac_ext
26261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26262 $as_echo "$fstype" >&6; }
26264 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26265 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
26267 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26274 $as_echo_n "checking return type of signal handlers... " >&6; }
26275 if test "${ac_cv_type_signal+set}" = set; then :
26276 $as_echo_n "(cached) " >&6
26278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26279 /* end confdefs.h. */
26280 #include <sys/types.h>
26281 #include <signal.h>
26286 return *(signal (0, 0)) (0) == 1;
26291 if ac_fn_c_try_compile "$LINENO"; then :
26292 ac_cv_type_signal=int
26294 ac_cv_type_signal=void
26296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26299 $as_echo "$ac_cv_type_signal" >&6; }
26301 cat >>confdefs.h <<_ACEOF
26302 #define RETSIGTYPE $ac_cv_type_signal
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26308 $as_echo_n "checking for type of signal functions... " >&6; }
26309 if test "${bash_cv_signal_vintage+set}" = set; then :
26310 $as_echo_n "(cached) " >&6
26313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26314 /* end confdefs.h. */
26315 #include <signal.h>
26321 struct sigaction sa;
26322 sigemptyset(&ss); sigsuspend(&ss);
26323 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26324 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26330 if ac_fn_c_try_link "$LINENO"; then :
26331 bash_cv_signal_vintage="posix"
26334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26335 /* end confdefs.h. */
26336 #include <signal.h>
26341 int mask = sigmask(SIGINT);
26342 sigsetmask(mask); sigblock(mask); sigpause(mask);
26348 if ac_fn_c_try_link "$LINENO"; then :
26349 bash_cv_signal_vintage="4.2bsd"
26352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26353 /* end confdefs.h. */
26355 #include <signal.h>
26356 RETSIGTYPE foo() { }
26361 int mask = sigmask(SIGINT);
26362 sigset(SIGINT, foo); sigrelse(SIGINT);
26363 sighold(SIGINT); sigpause(SIGINT);
26369 if ac_fn_c_try_link "$LINENO"; then :
26370 bash_cv_signal_vintage="svr3"
26372 bash_cv_signal_vintage="v7"
26375 rm -f core conftest.err conftest.$ac_objext \
26376 conftest$ac_exeext conftest.$ac_ext
26379 rm -f core conftest.err conftest.$ac_objext \
26380 conftest$ac_exeext conftest.$ac_ext
26383 rm -f core conftest.err conftest.$ac_objext \
26384 conftest$ac_exeext conftest.$ac_ext
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26389 $as_echo "$bash_cv_signal_vintage" >&6; }
26390 if test "$bash_cv_signal_vintage" = "posix"; then
26391 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26393 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26394 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26396 elif test "$bash_cv_signal_vintage" = "svr3"; then
26397 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26401 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26402 if test "x$ac_cv_type_mode_t" = x""yes; then :
26406 cat >>confdefs.h <<_ACEOF
26412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26413 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26414 if test "${ac_cv_type_uid_t+set}" = set; then :
26415 $as_echo_n "(cached) " >&6
26417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26418 /* end confdefs.h. */
26419 #include <sys/types.h>
26422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26423 $EGREP "uid_t" >/dev/null 2>&1; then :
26424 ac_cv_type_uid_t=yes
26426 ac_cv_type_uid_t=no
26431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26432 $as_echo "$ac_cv_type_uid_t" >&6; }
26433 if test $ac_cv_type_uid_t = no; then
26435 $as_echo "#define uid_t int" >>confdefs.h
26438 $as_echo "#define gid_t int" >>confdefs.h
26442 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26443 if test "x$ac_cv_type_size_t" = x""yes; then :
26447 cat >>confdefs.h <<_ACEOF
26448 #define size_t unsigned int
26453 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26454 if test "x$ac_cv_type_pid_t" = x""yes; then :
26458 cat >>confdefs.h <<_ACEOF
26464 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26465 if test "x$ac_cv_type_off_t" = x""yes; then :
26469 cat >>confdefs.h <<_ACEOF
26470 #define off_t long int
26476 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26477 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26479 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26482 for ac_type in 'int' 'long int' 'long long int'; do
26483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26484 /* end confdefs.h. */
26485 $ac_includes_default
26489 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26496 if ac_fn_c_try_compile "$LINENO"; then :
26498 cat >>confdefs.h <<_ACEOF
26499 #define intptr_t $ac_type
26504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26505 test -z "$ac_type" && break
26511 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26512 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
26514 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26517 for ac_type in 'unsigned int' 'unsigned long int' \
26518 'unsigned long long int'; do
26519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26520 /* end confdefs.h. */
26521 $ac_includes_default
26525 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26532 if ac_fn_c_try_compile "$LINENO"; then :
26534 cat >>confdefs.h <<_ACEOF
26535 #define uintptr_t $ac_type
26540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26541 test -z "$ac_type" && break
26546 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26547 if test "x$ac_cv_type_ino_t" = x""yes; then :
26551 cat >>confdefs.h <<_ACEOF
26552 #define ino_t unsigned long
26557 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26558 if test "x$ac_cv_type_dev_t" = x""yes; then :
26562 cat >>confdefs.h <<_ACEOF
26563 #define dev_t unsigned long
26568 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26569 if test "x$ac_cv_type_daddr_t" = x""yes; then :
26573 cat >>confdefs.h <<_ACEOF
26574 #define daddr_t long
26579 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26580 if test "x$ac_cv_type_major_t" = x""yes; then :
26584 cat >>confdefs.h <<_ACEOF
26585 #define major_t int
26590 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26591 if test "x$ac_cv_type_minor_t" = x""yes; then :
26595 cat >>confdefs.h <<_ACEOF
26596 #define minor_t int
26601 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26602 if test "x$ac_cv_type_ssize_t" = x""yes; then :
26606 cat >>confdefs.h <<_ACEOF
26607 #define ssize_t int
26612 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26613 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26615 cat >>confdefs.h <<_ACEOF
26616 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26620 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26623 case " $LIBOBJS " in
26624 *" fileblocks.$ac_objext "* ) ;;
26625 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26632 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26633 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
26635 cat >>confdefs.h <<_ACEOF
26636 #define HAVE_STRUCT_STAT_ST_RDEV 1
26640 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26646 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26647 if test "${ac_cv_struct_tm+set}" = set; then :
26648 $as_echo_n "(cached) " >&6
26650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26651 /* end confdefs.h. */
26652 #include <sys/types.h>
26659 int *p = &tm.tm_sec;
26665 if ac_fn_c_try_compile "$LINENO"; then :
26666 ac_cv_struct_tm=time.h
26668 ac_cv_struct_tm=sys/time.h
26670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26673 $as_echo "$ac_cv_struct_tm" >&6; }
26674 if test $ac_cv_struct_tm = sys/time.h; then
26676 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26681 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26682 if test "${ac_cv_c_const+set}" = set; then :
26683 $as_echo_n "(cached) " >&6
26685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26686 /* end confdefs.h. */
26691 /* FIXME: Include the comments suggested by Paul. */
26692 #ifndef __cplusplus
26693 /* Ultrix mips cc rejects this. */
26694 typedef int charset[2];
26696 /* SunOS 4.1.1 cc rejects this. */
26697 char const *const *pcpcc;
26699 /* NEC SVR4.0.2 mips cc rejects this. */
26700 struct point {int x, y;};
26701 static struct point const zero = {0,0};
26702 /* AIX XL C 1.02.0.0 rejects this.
26703 It does not let you subtract one const X* pointer from another in
26704 an arm of an if-expression whose if-part is not a constant
26706 const char *g = "string";
26707 pcpcc = &g + (g ? g-g : 0);
26708 /* HPUX 7.0 cc rejects these. */
26710 ppc = (char**) pcpcc;
26711 pcpcc = (char const *const *) ppc;
26712 { /* SCO 3.2v4 cc rejects this. */
26714 char const *s = 0 ? (char *) 0 : (char const *) 0;
26719 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26720 int x[] = {25, 17};
26721 const int *foo = &x[0];
26724 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26725 typedef const int *iptr;
26729 { /* AIX XL C 1.02.0.0 rejects this saying
26730 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26731 struct s { int j; const int *ap[3]; };
26732 struct s *b; b->j = 5;
26734 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26735 const int foo = 10;
26736 if (!foo) return 0;
26738 return !cs[0] && !zero.x;
26745 if ac_fn_c_try_compile "$LINENO"; then :
26750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26753 $as_echo "$ac_cv_c_const" >&6; }
26754 if test $ac_cv_c_const = no; then
26756 $as_echo "#define const /**/" >>confdefs.h
26761 # The cast to long int works around a bug in the HP C Compiler
26762 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26763 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26764 # This bug is HP SR number 8606223364.
26765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26766 $as_echo_n "checking size of char... " >&6; }
26767 if test "${ac_cv_sizeof_char+set}" = set; then :
26768 $as_echo_n "(cached) " >&6
26770 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
26773 if test "$ac_cv_type_char" = yes; then
26774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26776 { as_fn_set_status 77
26777 as_fn_error "cannot compute sizeof (char)
26778 See \`config.log' for more details." "$LINENO" 5; }; }
26780 ac_cv_sizeof_char=0
26785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26786 $as_echo "$ac_cv_sizeof_char" >&6; }
26790 cat >>confdefs.h <<_ACEOF
26791 #define SIZEOF_CHAR $ac_cv_sizeof_char
26795 # The cast to long int works around a bug in the HP C Compiler
26796 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26797 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26798 # This bug is HP SR number 8606223364.
26799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26800 $as_echo_n "checking size of short int... " >&6; }
26801 if test "${ac_cv_sizeof_short_int+set}" = set; then :
26802 $as_echo_n "(cached) " >&6
26804 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
26807 if test "$ac_cv_type_short_int" = yes; then
26808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26810 { as_fn_set_status 77
26811 as_fn_error "cannot compute sizeof (short int)
26812 See \`config.log' for more details." "$LINENO" 5; }; }
26814 ac_cv_sizeof_short_int=0
26819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26820 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26824 cat >>confdefs.h <<_ACEOF
26825 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26829 # The cast to long int works around a bug in the HP C Compiler
26830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26832 # This bug is HP SR number 8606223364.
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26834 $as_echo_n "checking size of int... " >&6; }
26835 if test "${ac_cv_sizeof_int+set}" = set; then :
26836 $as_echo_n "(cached) " >&6
26838 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
26841 if test "$ac_cv_type_int" = yes; then
26842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26844 { as_fn_set_status 77
26845 as_fn_error "cannot compute sizeof (int)
26846 See \`config.log' for more details." "$LINENO" 5; }; }
26853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26854 $as_echo "$ac_cv_sizeof_int" >&6; }
26858 cat >>confdefs.h <<_ACEOF
26859 #define SIZEOF_INT $ac_cv_sizeof_int
26863 # The cast to long int works around a bug in the HP C Compiler
26864 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26865 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26866 # This bug is HP SR number 8606223364.
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26868 $as_echo_n "checking size of long int... " >&6; }
26869 if test "${ac_cv_sizeof_long_int+set}" = set; then :
26870 $as_echo_n "(cached) " >&6
26872 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
26875 if test "$ac_cv_type_long_int" = yes; then
26876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26878 { as_fn_set_status 77
26879 as_fn_error "cannot compute sizeof (long int)
26880 See \`config.log' for more details." "$LINENO" 5; }; }
26882 ac_cv_sizeof_long_int=0
26887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26888 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26892 cat >>confdefs.h <<_ACEOF
26893 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26897 # The cast to long int works around a bug in the HP C Compiler
26898 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26899 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26900 # This bug is HP SR number 8606223364.
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26902 $as_echo_n "checking size of long long int... " >&6; }
26903 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
26904 $as_echo_n "(cached) " >&6
26906 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
26909 if test "$ac_cv_type_long_long_int" = yes; then
26910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26912 { as_fn_set_status 77
26913 as_fn_error "cannot compute sizeof (long long int)
26914 See \`config.log' for more details." "$LINENO" 5; }; }
26916 ac_cv_sizeof_long_long_int=0
26921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26922 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26926 cat >>confdefs.h <<_ACEOF
26927 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26931 # The cast to long int works around a bug in the HP C Compiler
26932 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26933 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26934 # This bug is HP SR number 8606223364.
26935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26936 $as_echo_n "checking size of int *... " >&6; }
26937 if test "${ac_cv_sizeof_int_p+set}" = set; then :
26938 $as_echo_n "(cached) " >&6
26940 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
26943 if test "$ac_cv_type_int_p" = yes; then
26944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26946 { as_fn_set_status 77
26947 as_fn_error "cannot compute sizeof (int *)
26948 See \`config.log' for more details." "$LINENO" 5; }; }
26950 ac_cv_sizeof_int_p=0
26955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26956 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26960 cat >>confdefs.h <<_ACEOF
26961 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26967 $as_echo_n "checking for u_int type... " >&6; }
26968 if test "${ac_cv_have_u_int+set}" = set; then :
26969 $as_echo_n "(cached) " >&6
26972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26973 /* end confdefs.h. */
26975 #include <sys/types.h>
26987 if ac_fn_c_try_compile "$LINENO"; then :
26989 ac_cv_have_u_int="yes"
26993 ac_cv_have_u_int="no"
26997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27002 $as_echo "$ac_cv_have_u_int" >&6; }
27003 if test "x$ac_cv_have_u_int" = "xyes" ; then
27004 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27010 $as_echo_n "checking for intmax_t type... " >&6; }
27011 if test "${ac_cv_have_intmax_t+set}" = set; then :
27012 $as_echo_n "(cached) " >&6
27015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27016 /* end confdefs.h. */
27018 #include <sys/types.h>
27030 if ac_fn_c_try_compile "$LINENO"; then :
27032 ac_cv_have_intmax_t="yes"
27036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27037 /* end confdefs.h. */
27039 #include <stdint.h>
27051 if ac_fn_c_try_compile "$LINENO"; then :
27053 ac_cv_have_intmax_t="yes"
27057 ac_cv_have_intmax_t="no"
27061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27070 $as_echo "$ac_cv_have_intmax_t" >&6; }
27071 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27072 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27078 $as_echo_n "checking for u_intmax_t type... " >&6; }
27079 if test "${ac_cv_have_u_intmax_t+set}" = set; then :
27080 $as_echo_n "(cached) " >&6
27083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27084 /* end confdefs.h. */
27086 #include <sys/types.h>
27092 u_intmax_t a; a = 1;
27098 if ac_fn_c_try_compile "$LINENO"; then :
27100 ac_cv_have_u_intmax_t="yes"
27104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27105 /* end confdefs.h. */
27107 #include <stdint.h>
27113 u_intmax_t a; a = 1;
27119 if ac_fn_c_try_compile "$LINENO"; then :
27121 ac_cv_have_u_intmax_t="yes"
27125 ac_cv_have_u_intmax_t="no"
27129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27138 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27139 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27140 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27146 $as_echo_n "checking for intXX_t types... " >&6; }
27147 if test "${ac_cv_have_intxx_t+set}" = set; then :
27148 $as_echo_n "(cached) " >&6
27151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27152 /* end confdefs.h. */
27154 #include <sys/types.h>
27160 int8_t a; int16_t b; int32_t c; a = b = c = 1;
27166 if ac_fn_c_try_compile "$LINENO"; then :
27168 ac_cv_have_intxx_t="yes"
27172 ac_cv_have_intxx_t="no"
27176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27181 $as_echo "$ac_cv_have_intxx_t" >&6; }
27182 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27183 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27189 $as_echo_n "checking for int64_t type... " >&6; }
27190 if test "${ac_cv_have_int64_t+set}" = set; then :
27191 $as_echo_n "(cached) " >&6
27194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27195 /* end confdefs.h. */
27197 #include <sys/types.h>
27209 if ac_fn_c_try_compile "$LINENO"; then :
27211 ac_cv_have_int64_t="yes"
27215 ac_cv_have_int64_t="no"
27219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27224 $as_echo "$ac_cv_have_int64_t" >&6; }
27225 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27226 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27232 $as_echo_n "checking for u_intXX_t types... " >&6; }
27233 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
27234 $as_echo_n "(cached) " >&6
27237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27238 /* end confdefs.h. */
27240 #include <sys/types.h>
27246 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27252 if ac_fn_c_try_compile "$LINENO"; then :
27254 ac_cv_have_u_intxx_t="yes"
27258 ac_cv_have_u_intxx_t="no"
27262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27267 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27268 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27269 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27275 $as_echo_n "checking for u_int64_t types... " >&6; }
27276 if test "${ac_cv_have_u_int64_t+set}" = set; then :
27277 $as_echo_n "(cached) " >&6
27280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27281 /* end confdefs.h. */
27283 #include <sys/types.h>
27289 u_int64_t a; a = 1;
27295 if ac_fn_c_try_compile "$LINENO"; then :
27297 ac_cv_have_u_int64_t="yes"
27301 ac_cv_have_u_int64_t="no"
27305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27310 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27311 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27312 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27317 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27318 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27321 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27323 /* end confdefs.h. */
27325 #include <sys/bitypes.h>
27331 int8_t a; int16_t b; int32_t c;
27332 u_int8_t e; u_int16_t f; u_int32_t g;
27333 a = b = c = e = f = g = 1;
27339 if ac_fn_c_try_compile "$LINENO"; then :
27341 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27343 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27345 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27348 $as_echo "yes" >&6; }
27352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27353 $as_echo "no" >&6; }
27357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27360 if test -z "$have_u_intxx_t" ; then
27361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27362 $as_echo_n "checking for uintXX_t types... " >&6; }
27363 if test "${ac_cv_have_uintxx_t+set}" = set; then :
27364 $as_echo_n "(cached) " >&6
27367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27368 /* end confdefs.h. */
27370 #include <sys/types.h>
27376 uint8_t a; uint16_t b;
27377 uint32_t c; a = b = c = 1;
27383 if ac_fn_c_try_compile "$LINENO"; then :
27385 ac_cv_have_uintxx_t="yes"
27389 ac_cv_have_uintxx_t="no"
27393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27398 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27399 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27400 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27405 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27406 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27409 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27411 /* end confdefs.h. */
27413 #include <sys/bitypes.h>
27419 int64_t a; u_int64_t b;
27426 if ac_fn_c_try_compile "$LINENO"; then :
27428 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27430 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27433 $as_echo "yes" >&6; }
27437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27438 $as_echo "no" >&6; }
27442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27445 if (test -z "$have_uintxx_t" && \
27446 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27449 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27451 /* end confdefs.h. */
27453 #include <sys/bitypes.h>
27459 uint8_t a; uint16_t b;
27460 uint32_t c; a = b = c = 1;
27466 if ac_fn_c_try_compile "$LINENO"; then :
27468 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27471 $as_echo "yes" >&6; }
27475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27476 $as_echo "no" >&6; }
27480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27499 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27500 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27501 eval as_val=\$$as_ac_var
27502 if test "x$as_val" = x""yes; then :
27503 cat >>confdefs.h <<_ACEOF
27504 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27508 echo 'configure: cannot find needed function.'; exit 1
27514 for ac_func in fchdir
27516 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27517 if test "x$ac_cv_func_fchdir" = x""yes; then :
27518 cat >>confdefs.h <<_ACEOF
27519 #define HAVE_FCHDIR 1
27521 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27526 for ac_func in strtoll
27528 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27529 if test "x$ac_cv_func_strtoll" = x""yes; then :
27530 cat >>confdefs.h <<_ACEOF
27531 #define HAVE_STRTOLL 1
27533 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27538 for ac_func in posix_fadvise
27540 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27541 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
27542 cat >>confdefs.h <<_ACEOF
27543 #define HAVE_POSIX_FADVISE 1
27549 for ac_func in fdatasync
27551 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27552 if test "x$ac_cv_func_fdatasync" = x""yes; then :
27553 cat >>confdefs.h <<_ACEOF
27554 #define HAVE_FDATASYNC 1
27561 for ac_func in chflags
27563 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27564 if test "x$ac_cv_func_chflags" = x""yes; then :
27565 cat >>confdefs.h <<_ACEOF
27566 #define HAVE_CHFLAGS 1
27573 for ac_func in snprintf vsnprintf gethostid fseeko
27575 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27576 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27577 eval as_val=\$$as_ac_var
27578 if test "x$as_val" = x""yes; then :
27579 cat >>confdefs.h <<_ACEOF
27580 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27588 $as_echo_n "checking for va_copy... " >&6; }
27589 if test "${ba_cv_va_copy+set}" = set; then :
27590 $as_echo_n "(cached) " >&6
27593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27594 /* end confdefs.h. */
27596 #include <stdarg.h>
27597 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27598 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27604 call_use_va_copy(1,2,3)
27610 if ac_fn_c_try_link "$LINENO"; then :
27620 rm -f core conftest.err conftest.$ac_objext \
27621 conftest$ac_exeext conftest.$ac_ext
27625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27626 $as_echo "$ba_cv_va_copy" >&6; }
27627 test $ba_cv_va_copy = yes &&
27628 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27631 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27633 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27634 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27635 eval as_val=\$$as_ac_var
27636 if test "x$as_val" = x""yes; then :
27637 cat >>confdefs.h <<_ACEOF
27638 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27645 # If resolver functions are not in libc check for -lnsl or -lresolv.
27646 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27647 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
27648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27649 $as_echo "using libc's resolver" >&6; }
27651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27652 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27653 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
27654 $as_echo_n "(cached) " >&6
27656 ac_check_lib_save_LIBS=$LIBS
27658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27659 /* end confdefs.h. */
27661 /* Override any GCC internal prototype to avoid an error.
27662 Use char because int might match the return type of a GCC
27663 builtin and then its argument prototype would still apply. */
27667 char gethostbyname_r ();
27671 return gethostbyname_r ();
27676 if ac_fn_c_try_link "$LINENO"; then :
27677 ac_cv_lib_nsl_gethostbyname_r=yes
27679 ac_cv_lib_nsl_gethostbyname_r=no
27681 rm -f core conftest.err conftest.$ac_objext \
27682 conftest$ac_exeext conftest.$ac_ext
27683 LIBS=$ac_check_lib_save_LIBS
27685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27686 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27687 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
27688 cat >>confdefs.h <<_ACEOF
27689 #define HAVE_LIBNSL 1
27696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27697 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27698 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then :
27699 $as_echo_n "(cached) " >&6
27701 ac_check_lib_save_LIBS=$LIBS
27702 LIBS="-lresolv $LIBS"
27703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27704 /* end confdefs.h. */
27706 /* Override any GCC internal prototype to avoid an error.
27707 Use char because int might match the return type of a GCC
27708 builtin and then its argument prototype would still apply. */
27712 char gethostbyname_r ();
27716 return gethostbyname_r ();
27721 if ac_fn_c_try_link "$LINENO"; then :
27722 ac_cv_lib_resolv_gethostbyname_r=yes
27724 ac_cv_lib_resolv_gethostbyname_r=no
27726 rm -f core conftest.err conftest.$ac_objext \
27727 conftest$ac_exeext conftest.$ac_ext
27728 LIBS=$ac_check_lib_save_LIBS
27730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27731 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27732 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then :
27733 cat >>confdefs.h <<_ACEOF
27734 #define HAVE_LIBRESOLV 1
27737 LIBS="-lresolv $LIBS"
27744 for ac_func in inet_pton
27746 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27747 if test "x$ac_cv_func_inet_pton" = x""yes; then :
27748 cat >>confdefs.h <<_ACEOF
27749 #define HAVE_INET_PTON 1
27751 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27756 for ac_func in inet_ntop
27758 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27759 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
27760 cat >>confdefs.h <<_ACEOF
27761 #define HAVE_INET_NTOP 1
27763 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27768 for ac_func in gethostbyname2
27770 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27771 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
27772 cat >>confdefs.h <<_ACEOF
27773 #define HAVE_GETHOSTBYNAME2 1
27775 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27782 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27783 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then :
27784 $as_echo_n "(cached) " >&6
27787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27788 /* end confdefs.h. */
27790 #include <sys/socket.h>
27796 struct sockaddr s; s.sa_len;
27802 if ac_fn_c_try_compile "$LINENO"; then :
27804 ac_cv_struct_sockaddr_sa_len=yes
27807 ac_cv_struct_sockaddr_sa_len=no
27811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27816 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27818 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27820 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27824 for ac_func in strftime
27826 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27827 if test "x$ac_cv_func_strftime" = x""yes; then :
27828 cat >>confdefs.h <<_ACEOF
27829 #define HAVE_STRFTIME 1
27833 # strftime is in -lintl on SCO UNIX.
27834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27835 $as_echo_n "checking for strftime in -lintl... " >&6; }
27836 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
27837 $as_echo_n "(cached) " >&6
27839 ac_check_lib_save_LIBS=$LIBS
27840 LIBS="-lintl $LIBS"
27841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27842 /* end confdefs.h. */
27844 /* Override any GCC internal prototype to avoid an error.
27845 Use char because int might match the return type of a GCC
27846 builtin and then its argument prototype would still apply. */
27854 return strftime ();
27859 if ac_fn_c_try_link "$LINENO"; then :
27860 ac_cv_lib_intl_strftime=yes
27862 ac_cv_lib_intl_strftime=no
27864 rm -f core conftest.err conftest.$ac_objext \
27865 conftest$ac_exeext conftest.$ac_ext
27866 LIBS=$ac_check_lib_save_LIBS
27868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27869 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27870 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
27871 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27873 LIBS="-lintl $LIBS"
27879 for ac_func in vprintf
27881 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27882 if test "x$ac_cv_func_vprintf" = x""yes; then :
27883 cat >>confdefs.h <<_ACEOF
27884 #define HAVE_VPRINTF 1
27887 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27888 if test "x$ac_cv_func__doprnt" = x""yes; then :
27890 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27898 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27899 # for constant arguments. Useless!
27900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27901 $as_echo_n "checking for working alloca.h... " >&6; }
27902 if test "${ac_cv_working_alloca_h+set}" = set; then :
27903 $as_echo_n "(cached) " >&6
27905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27906 /* end confdefs.h. */
27907 #include <alloca.h>
27911 char *p = (char *) alloca (2 * sizeof (int));
27917 if ac_fn_c_try_link "$LINENO"; then :
27918 ac_cv_working_alloca_h=yes
27920 ac_cv_working_alloca_h=no
27922 rm -f core conftest.err conftest.$ac_objext \
27923 conftest$ac_exeext conftest.$ac_ext
27925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27926 $as_echo "$ac_cv_working_alloca_h" >&6; }
27927 if test $ac_cv_working_alloca_h = yes; then
27929 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
27933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
27934 $as_echo_n "checking for alloca... " >&6; }
27935 if test "${ac_cv_func_alloca_works+set}" = set; then :
27936 $as_echo_n "(cached) " >&6
27938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27939 /* end confdefs.h. */
27941 # define alloca __builtin_alloca
27944 # include <malloc.h>
27945 # define alloca _alloca
27947 # ifdef HAVE_ALLOCA_H
27948 # include <alloca.h>
27953 # ifndef alloca /* predefined by HP cc +Olibcalls */
27964 char *p = (char *) alloca (1);
27970 if ac_fn_c_try_link "$LINENO"; then :
27971 ac_cv_func_alloca_works=yes
27973 ac_cv_func_alloca_works=no
27975 rm -f core conftest.err conftest.$ac_objext \
27976 conftest$ac_exeext conftest.$ac_ext
27978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
27979 $as_echo "$ac_cv_func_alloca_works" >&6; }
27981 if test $ac_cv_func_alloca_works = yes; then
27983 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27986 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27987 # that cause trouble. Some versions do not even contain alloca or
27988 # contain a buggy version. If you still want to use their alloca,
27989 # use ar to extract alloca.o from them instead of compiling alloca.c.
27991 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27993 $as_echo "#define C_ALLOCA 1" >>confdefs.h
27996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
27997 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27998 if test "${ac_cv_os_cray+set}" = set; then :
27999 $as_echo_n "(cached) " >&6
28001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28002 /* end confdefs.h. */
28003 #if defined CRAY && ! defined CRAY2
28010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28011 $EGREP "webecray" >/dev/null 2>&1; then :
28019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28020 $as_echo "$ac_cv_os_cray" >&6; }
28021 if test $ac_cv_os_cray = yes; then
28022 for ac_func in _getb67 GETB67 getb67; do
28023 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28024 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28025 eval as_val=\$$as_ac_var
28026 if test "x$as_val" = x""yes; then :
28028 cat >>confdefs.h <<_ACEOF
28029 #define CRAY_STACKSEG_END $ac_func
28038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28039 $as_echo_n "checking stack direction for C alloca... " >&6; }
28040 if test "${ac_cv_c_stack_direction+set}" = set; then :
28041 $as_echo_n "(cached) " >&6
28043 if test "$cross_compiling" = yes; then :
28044 ac_cv_c_stack_direction=0
28046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28047 /* end confdefs.h. */
28048 $ac_includes_default
28050 find_stack_direction ()
28052 static char *addr = 0;
28057 return find_stack_direction ();
28060 return (&dummy > addr) ? 1 : -1;
28066 return find_stack_direction () < 0;
28069 if ac_fn_c_try_run "$LINENO"; then :
28070 ac_cv_c_stack_direction=1
28072 ac_cv_c_stack_direction=-1
28074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28075 conftest.$ac_objext conftest.beam conftest.$ac_ext
28079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28080 $as_echo "$ac_cv_c_stack_direction" >&6; }
28081 cat >>confdefs.h <<_ACEOF
28082 #define STACK_DIRECTION $ac_cv_c_stack_direction
28088 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28089 # -lseq on Dynix/PTX, -lgen on Unixware.
28090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28091 $as_echo_n "checking for library containing getmntent... " >&6; }
28092 if test "${ac_cv_search_getmntent+set}" = set; then :
28093 $as_echo_n "(cached) " >&6
28095 ac_func_search_save_LIBS=$LIBS
28096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28097 /* end confdefs.h. */
28099 /* Override any GCC internal prototype to avoid an error.
28100 Use char because int might match the return type of a GCC
28101 builtin and then its argument prototype would still apply. */
28109 return getmntent ();
28114 for ac_lib in '' sun seq gen; do
28115 if test -z "$ac_lib"; then
28116 ac_res="none required"
28119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28121 if ac_fn_c_try_link "$LINENO"; then :
28122 ac_cv_search_getmntent=$ac_res
28124 rm -f core conftest.err conftest.$ac_objext \
28126 if test "${ac_cv_search_getmntent+set}" = set; then :
28130 if test "${ac_cv_search_getmntent+set}" = set; then :
28133 ac_cv_search_getmntent=no
28135 rm conftest.$ac_ext
28136 LIBS=$ac_func_search_save_LIBS
28138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28139 $as_echo "$ac_cv_search_getmntent" >&6; }
28140 ac_res=$ac_cv_search_getmntent
28141 if test "$ac_res" != no; then :
28142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28143 ac_cv_func_getmntent=yes
28145 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28148 ac_cv_func_getmntent=no
28152 for ac_func in getmntinfo
28154 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28155 if test "x$ac_cv_func_getmntinfo" = x""yes; then :
28156 cat >>confdefs.h <<_ACEOF
28157 #define HAVE_GETMNTINFO 1
28159 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28165 $as_echo_n "checking whether closedir returns void... " >&6; }
28166 if test "${ac_cv_func_closedir_void+set}" = set; then :
28167 $as_echo_n "(cached) " >&6
28169 if test "$cross_compiling" = yes; then :
28170 ac_cv_func_closedir_void=yes
28172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28173 /* end confdefs.h. */
28174 $ac_includes_default
28175 #include <$ac_header_dirent>
28176 #ifndef __cplusplus
28183 return closedir (opendir (".")) != 0;
28188 if ac_fn_c_try_run "$LINENO"; then :
28189 ac_cv_func_closedir_void=no
28191 ac_cv_func_closedir_void=yes
28193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28194 conftest.$ac_objext conftest.beam conftest.$ac_ext
28198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28199 $as_echo "$ac_cv_func_closedir_void" >&6; }
28200 if test $ac_cv_func_closedir_void = yes; then
28202 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28207 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28208 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
28209 $as_echo_n "(cached) " >&6
28211 if test "$cross_compiling" = yes; then :
28212 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
28214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28215 /* end confdefs.h. */
28216 $ac_includes_default
28220 /* If this system has a BSD-style setpgrp which takes arguments,
28221 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28222 exit successfully. */
28223 return setpgrp (1,1) != -1;
28228 if ac_fn_c_try_run "$LINENO"; then :
28229 ac_cv_func_setpgrp_void=no
28231 ac_cv_func_setpgrp_void=yes
28233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28234 conftest.$ac_objext conftest.beam conftest.$ac_ext
28238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28239 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28240 if test $ac_cv_func_setpgrp_void = yes; then
28242 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28245 # AC_FUNC_FNMATCH dnl use local version
28247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28248 $as_echo_n "checking for gettext in -lintl... " >&6; }
28249 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
28250 $as_echo_n "(cached) " >&6
28252 ac_check_lib_save_LIBS=$LIBS
28253 LIBS="-lintl $LIBS"
28254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28255 /* end confdefs.h. */
28257 /* Override any GCC internal prototype to avoid an error.
28258 Use char because int might match the return type of a GCC
28259 builtin and then its argument prototype would still apply. */
28272 if ac_fn_c_try_link "$LINENO"; then :
28273 ac_cv_lib_intl_gettext=yes
28275 ac_cv_lib_intl_gettext=no
28277 rm -f core conftest.err conftest.$ac_objext \
28278 conftest$ac_exeext conftest.$ac_ext
28279 LIBS=$ac_check_lib_save_LIBS
28281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28282 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28283 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
28284 LIBS="$LIBS -lintl"
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28289 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28290 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
28291 $as_echo_n "(cached) " >&6
28293 ac_check_lib_save_LIBS=$LIBS
28295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28296 /* end confdefs.h. */
28298 /* Override any GCC internal prototype to avoid an error.
28299 Use char because int might match the return type of a GCC
28300 builtin and then its argument prototype would still apply. */
28308 return getpwnam ();
28313 if ac_fn_c_try_link "$LINENO"; then :
28314 ac_cv_lib_sun_getpwnam=yes
28316 ac_cv_lib_sun_getpwnam=no
28318 rm -f core conftest.err conftest.$ac_objext \
28319 conftest$ac_exeext conftest.$ac_ext
28320 LIBS=$ac_check_lib_save_LIBS
28322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28323 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28324 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
28325 cat >>confdefs.h <<_ACEOF
28326 #define HAVE_LIBSUN 1
28334 for ac_header in zlib.h
28336 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28337 if test "x$ac_cv_header_zlib_h" = x""yes; then :
28338 cat >>confdefs.h <<_ACEOF
28339 #define HAVE_ZLIB_H 1
28346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28347 $as_echo_n "checking for deflate in -lz... " >&6; }
28348 if test "${ac_cv_lib_z_deflate+set}" = set; then :
28349 $as_echo_n "(cached) " >&6
28351 ac_check_lib_save_LIBS=$LIBS
28353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28354 /* end confdefs.h. */
28356 /* Override any GCC internal prototype to avoid an error.
28357 Use char because int might match the return type of a GCC
28358 builtin and then its argument prototype would still apply. */
28371 if ac_fn_c_try_link "$LINENO"; then :
28372 ac_cv_lib_z_deflate=yes
28374 ac_cv_lib_z_deflate=no
28376 rm -f core conftest.err conftest.$ac_objext \
28377 conftest$ac_exeext conftest.$ac_ext
28378 LIBS=$ac_check_lib_save_LIBS
28380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28381 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28382 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
28387 if test x$ZLIBS = x-lz; then
28388 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28397 # Check whether --enable-afs was given.
28398 if test "${enable_afs+set}" = set; then :
28399 enableval=$enable_afs;
28400 if test x$enableval = xyes; then
28402 elif test x$enableval = xno; then
28411 if test x$support_afs = xyes -o x$support_afs = xauto; then
28413 # Check whether --with-afsdir was given.
28414 if test "${with_afsdir+set}" = set; then :
28415 withval=$with_afsdir; with_afsdir=$withval
28420 if test x$with_afsdir = x; then
28421 for root in /usr /usr/local; do
28422 if test -d ${root}/include/afs/ ; then
28423 with_afsdir=${root}
28429 AFS_CFLAGS="-I${with_afsdir}/include"
28431 saved_CFLAGS="${CFLAGS}"
28432 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
28434 for ac_header in afs/stds.h
28436 ac_fn_c_check_header_mongrel "$LINENO" "afs/stds.h" "ac_cv_header_afs_stds_h" "$ac_includes_default"
28437 if test "x$ac_cv_header_afs_stds_h" = x""yes; then :
28438 cat >>confdefs.h <<_ACEOF
28439 #define HAVE_AFS_STDS_H 1
28447 CFLAGS="${saved_CFLAGS}"
28449 for dir in ${with_afsdir}/lib ${with_afsdir}/lib/afs
28451 for arch_type in .a .so
28453 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} | grep pioctl`
28455 if test $pkg = 0; then
28457 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util.a"
28463 if test x$support_afs = xyes -a $have_afs != yes; then
28464 as_fn_error "afs support explicitly enabled but no supported afs implementation found,
28465 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
28467 if test $have_afs = yes; then
28469 $as_echo "#define HAVE_AFS 1" >>confdefs.h
28472 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
28482 # Check whether --enable-acl was given.
28483 if test "${enable_acl+set}" = set; then :
28484 enableval=$enable_acl;
28485 if test x$enableval = xyes; then
28487 elif test x$enableval = xno; then
28496 have_extended_acl=no
28497 if test x$support_acl = xyes -o x$support_acl = xauto; then
28498 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28499 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
28501 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28507 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28508 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
28516 if test $have_acl = no; then
28517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28518 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28519 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
28520 $as_echo_n "(cached) " >&6
28522 ac_check_lib_save_LIBS=$LIBS
28524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28525 /* end confdefs.h. */
28527 /* Override any GCC internal prototype to avoid an error.
28528 Use char because int might match the return type of a GCC
28529 builtin and then its argument prototype would still apply. */
28533 char acl_get_file ();
28537 return acl_get_file ();
28542 if ac_fn_c_try_link "$LINENO"; then :
28543 ac_cv_lib_acl_acl_get_file=yes
28545 ac_cv_lib_acl_acl_get_file=no
28547 rm -f core conftest.err conftest.$ac_objext \
28548 conftest$ac_exeext conftest.$ac_ext
28549 LIBS=$ac_check_lib_save_LIBS
28551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28552 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28553 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
28556 if test $have_afs = yes; then
28557 if test -d /usr/lib64/; then
28558 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
28560 FDLIBS="-L/usr/lib -lacl $FDLIBS"
28563 FDLIBS="-lacl $FDLIBS"
28571 if test $have_acl = no; then
28572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28573 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28574 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
28575 $as_echo_n "(cached) " >&6
28577 ac_check_lib_save_LIBS=$LIBS
28578 LIBS="-lpacl $LIBS"
28579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28580 /* end confdefs.h. */
28582 /* Override any GCC internal prototype to avoid an error.
28583 Use char because int might match the return type of a GCC
28584 builtin and then its argument prototype would still apply. */
28588 char acl_get_file ();
28592 return acl_get_file ();
28597 if ac_fn_c_try_link "$LINENO"; then :
28598 ac_cv_lib_pacl_acl_get_file=yes
28600 ac_cv_lib_pacl_acl_get_file=no
28602 rm -f core conftest.err conftest.$ac_objext \
28603 conftest$ac_exeext conftest.$ac_ext
28604 LIBS=$ac_check_lib_save_LIBS
28606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28607 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28608 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
28611 FDLIBS="-lpacl $FDLIBS"
28618 if test $have_acl = no -a \
28619 x${HAVE_SUN_OS_TRUE} = x; then
28620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28621 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28622 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
28623 $as_echo_n "(cached) " >&6
28625 ac_check_lib_save_LIBS=$LIBS
28627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28628 /* end confdefs.h. */
28630 /* Override any GCC internal prototype to avoid an error.
28631 Use char because int might match the return type of a GCC
28632 builtin and then its argument prototype would still apply. */
28640 return acltotext ();
28645 if ac_fn_c_try_link "$LINENO"; then :
28646 ac_cv_lib_sec_acltotext=yes
28648 ac_cv_lib_sec_acltotext=no
28650 rm -f core conftest.err conftest.$ac_objext \
28651 conftest$ac_exeext conftest.$ac_ext
28652 LIBS=$ac_check_lib_save_LIBS
28654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28655 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28656 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
28659 FDLIBS="-lsec $FDLIBS"
28661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28662 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28663 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
28664 $as_echo_n "(cached) " >&6
28666 ac_check_lib_save_LIBS=$LIBS
28668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28669 /* end confdefs.h. */
28671 /* Override any GCC internal prototype to avoid an error.
28672 Use char because int might match the return type of a GCC
28673 builtin and then its argument prototype would still apply. */
28677 char acl_totext ();
28681 return acl_totext ();
28686 if ac_fn_c_try_link "$LINENO"; then :
28687 ac_cv_lib_sec_acl_totext=yes
28689 ac_cv_lib_sec_acl_totext=no
28691 rm -f core conftest.err conftest.$ac_objext \
28692 conftest$ac_exeext conftest.$ac_ext
28693 LIBS=$ac_check_lib_save_LIBS
28695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28696 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28697 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
28699 have_extended_acl=yes
28710 if test $have_acl = no -a \
28711 x${HAVE_AIX_OS_TRUE} = x; then
28712 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
28713 if test "x$ac_cv_func_acl_get" = x""yes; then :
28717 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
28718 if test "x$ac_cv_func_aclx_get" = x""yes; then :
28720 have_extended_acl=yes
28731 if test x$support_acl = xyes -a $have_acl != yes; then
28732 as_fn_error "acl support explicitly enabled but no supported acl implementation found,
28733 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28735 if test $have_acl = yes; then
28737 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28741 if test $have_extended_acl = yes; then
28743 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28750 # Check whether --enable-xattr was given.
28751 if test "${enable_xattr+set}" = set; then :
28752 enableval=$enable_xattr;
28753 if test x$enableval = xyes; then
28755 elif test x$enableval = xno; then
28764 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28765 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
28766 x${HAVE_NETBSD_OS_TRUE} = x -o \
28767 x${HAVE_OPENBSD_OS_TRUE} = x; then
28768 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28769 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
28771 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28776 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28777 if test "x$ac_cv_header_libutil_h" = x""yes; then :
28779 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28784 for ac_func in extattr_get_link extattr_set_link extattr_list_link
28786 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28787 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28788 eval as_val=\$$as_ac_var
28789 if test "x$as_val" = x""yes; then :
28790 cat >>confdefs.h <<_ACEOF
28791 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28796 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28799 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28802 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28810 if test $have_xattr = no; then
28811 for ac_func in extattr_get_file extattr_set_file extattr_list_file
28813 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28814 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28815 eval as_val=\$$as_ac_var
28816 if test "x$as_val" = x""yes; then :
28817 cat >>confdefs.h <<_ACEOF
28818 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28823 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28826 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28829 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28838 if test $have_xattr = yes; then
28839 have_extattr_string_in_libc=no
28840 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28842 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28843 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28844 eval as_val=\$$as_ac_var
28845 if test "x$as_val" = x""yes; then :
28846 cat >>confdefs.h <<_ACEOF
28847 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28850 have_extattr_string_in_libc=yes
28852 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28855 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28863 if test $have_extattr_string_in_libc = no; then
28864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28865 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28866 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
28867 $as_echo_n "(cached) " >&6
28869 ac_check_lib_save_LIBS=$LIBS
28870 LIBS="-lutil $LIBS"
28871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28872 /* end confdefs.h. */
28874 /* Override any GCC internal prototype to avoid an error.
28875 Use char because int might match the return type of a GCC
28876 builtin and then its argument prototype would still apply. */
28880 char extattr_namespace_to_string extattr_string_to_namespace ();
28884 return extattr_namespace_to_string extattr_string_to_namespace ();
28889 if ac_fn_c_try_link "$LINENO"; then :
28890 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28892 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28894 rm -f core conftest.err conftest.$ac_objext \
28895 conftest$ac_exeext conftest.$ac_ext
28896 LIBS=$ac_check_lib_save_LIBS
28898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28899 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28900 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
28903 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28906 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28908 FDLIBS="-lutil $FDLIBS"
28917 if test $have_xattr = no -a \
28918 x${HAVE_AIX_OS_TRUE} = x; then
28919 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
28920 if test "x$ac_cv_header_sys_ea_h" = x""yes; then :
28922 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
28927 for ac_func in llistea lgetea lsetea
28929 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28930 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28931 eval as_val=\$$as_ac_var
28932 if test "x$as_val" = x""yes; then :
28933 cat >>confdefs.h <<_ACEOF
28934 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28939 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
28942 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
28945 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
28953 if test $have_xattr = no; then
28954 for ac_func in listea getea setea
28956 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28957 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28958 eval as_val=\$$as_ac_var
28959 if test "x$as_val" = x""yes; then :
28960 cat >>confdefs.h <<_ACEOF
28961 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28966 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
28969 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
28972 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
28982 if test $have_xattr = no -a \
28983 x${HAVE_OSF1_OS_TRUE} = x; then
28984 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
28985 if test "x$ac_cv_header_sys_proplist_h" = x""yes; then :
28987 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
28992 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
28994 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28995 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28996 eval as_val=\$$as_ac_var
28997 if test "x$as_val" = x""yes; then :
28998 cat >>confdefs.h <<_ACEOF
28999 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29004 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29007 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29010 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29013 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
29016 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
29025 if test $have_xattr = no -a \
29026 x${HAVE_SUN_OS_TRUE} = x; then
29027 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
29028 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
29030 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
29035 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
29036 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
29038 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29043 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29044 if test "x$ac_cv_header_attr_h" = x""yes; then :
29046 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29052 for ac_func in openat fstatat unlinkat fchownat futimesat
29054 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29055 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29056 eval as_val=\$$as_ac_var
29057 if test "x$as_val" = x""yes; then :
29058 cat >>confdefs.h <<_ACEOF
29059 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29064 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
29067 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
29070 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
29073 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
29076 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
29084 if test $have_xattr = yes; then
29085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
29086 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
29087 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
29088 $as_echo_n "(cached) " >&6
29090 ac_check_lib_save_LIBS=$LIBS
29091 LIBS="-lnvpair $LIBS"
29092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29093 /* end confdefs.h. */
29095 /* Override any GCC internal prototype to avoid an error.
29096 Use char because int might match the return type of a GCC
29097 builtin and then its argument prototype would still apply. */
29101 char nvlist_next_nvpair ();
29105 return nvlist_next_nvpair ();
29110 if ac_fn_c_try_link "$LINENO"; then :
29111 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
29113 ac_cv_lib_nvpair_nvlist_next_nvpair=no
29115 rm -f core conftest.err conftest.$ac_objext \
29116 conftest$ac_exeext conftest.$ac_ext
29117 LIBS=$ac_check_lib_save_LIBS
29119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
29120 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
29121 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
29124 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
29126 FDLIBS="-lnvpair $FDLIBS"
29134 if test $have_xattr = no; then
29135 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
29136 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
29138 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
29143 for ac_func in llistxattr lgetxattr lsetxattr
29145 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29146 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29147 eval as_val=\$$as_ac_var
29148 if test "x$as_val" = x""yes; then :
29149 cat >>confdefs.h <<_ACEOF
29150 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29155 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
29158 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
29161 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
29169 if test $have_xattr = no; then
29170 for ac_func in listxattr getxattr setxattr
29172 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29173 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29174 eval as_val=\$$as_ac_var
29175 if test "x$as_val" = x""yes; then :
29176 cat >>confdefs.h <<_ACEOF
29177 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29182 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
29185 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
29188 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
29198 if test x$support_xattr = xyes -a $have_xattr != yes; then
29199 as_fn_error "xattr support explicitly enabled but no supported xattr implementation found,
29200 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
29202 if test $have_xattr = yes; then
29204 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
29211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
29212 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
29213 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
29214 $as_echo_n "(cached) " >&6
29216 ac_check_lib_save_LIBS=$LIBS
29217 LIBS="-lpthread $LIBS"
29218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29219 /* end confdefs.h. */
29221 /* Override any GCC internal prototype to avoid an error.
29222 Use char because int might match the return type of a GCC
29223 builtin and then its argument prototype would still apply. */
29227 char pthread_create ();
29231 return pthread_create ();
29236 if ac_fn_c_try_link "$LINENO"; then :
29237 ac_cv_lib_pthread_pthread_create=yes
29239 ac_cv_lib_pthread_pthread_create=no
29241 rm -f core conftest.err conftest.$ac_objext \
29242 conftest$ac_exeext conftest.$ac_ext
29243 LIBS=$ac_check_lib_save_LIBS
29245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
29246 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
29247 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
29248 PTHREAD_LIB="-lpthread"
29251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
29252 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
29253 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
29254 $as_echo_n "(cached) " >&6
29256 ac_check_lib_save_LIBS=$LIBS
29257 LIBS="-lpthreads $LIBS"
29258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29259 /* end confdefs.h. */
29261 /* Override any GCC internal prototype to avoid an error.
29262 Use char because int might match the return type of a GCC
29263 builtin and then its argument prototype would still apply. */
29267 char pthread_create ();
29271 return pthread_create ();
29276 if ac_fn_c_try_link "$LINENO"; then :
29277 ac_cv_lib_pthreads_pthread_create=yes
29279 ac_cv_lib_pthreads_pthread_create=no
29281 rm -f core conftest.err conftest.$ac_objext \
29282 conftest$ac_exeext conftest.$ac_ext
29283 LIBS=$ac_check_lib_save_LIBS
29285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29286 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29287 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
29288 PTHREAD_LIB="-lpthreads"
29291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29292 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29293 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
29294 $as_echo_n "(cached) " >&6
29296 ac_check_lib_save_LIBS=$LIBS
29298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29299 /* end confdefs.h. */
29301 /* Override any GCC internal prototype to avoid an error.
29302 Use char because int might match the return type of a GCC
29303 builtin and then its argument prototype would still apply. */
29307 char pthread_create ();
29311 return pthread_create ();
29316 if ac_fn_c_try_link "$LINENO"; then :
29317 ac_cv_lib_c_r_pthread_create=yes
29319 ac_cv_lib_c_r_pthread_create=no
29321 rm -f core conftest.err conftest.$ac_objext \
29322 conftest$ac_exeext conftest.$ac_ext
29323 LIBS=$ac_check_lib_save_LIBS
29325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29326 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29327 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
29328 PTHREAD_LIB="-lc_r"
29331 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29332 if test "x$ac_cv_func_pthread_create" = x""yes; then :
29349 for ac_header in sys/prctl.h sys/capability.h
29351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29352 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29353 eval as_val=\$$as_ac_Header
29354 if test "x$as_val" = x""yes; then :
29355 cat >>confdefs.h <<_ACEOF
29356 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29363 for ac_func in prctl setreuid
29365 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29366 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29367 eval as_val=\$$as_ac_var
29368 if test "x$as_val" = x""yes; then :
29369 cat >>confdefs.h <<_ACEOF
29370 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29377 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29378 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
29379 $as_echo_n "(cached) " >&6
29381 ac_check_lib_save_LIBS=$LIBS
29383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29384 /* end confdefs.h. */
29386 /* Override any GCC internal prototype to avoid an error.
29387 Use char because int might match the return type of a GCC
29388 builtin and then its argument prototype would still apply. */
29392 char cap_set_proc ();
29396 return cap_set_proc ();
29401 if ac_fn_c_try_link "$LINENO"; then :
29402 ac_cv_lib_cap_cap_set_proc=yes
29404 ac_cv_lib_cap_cap_set_proc=no
29406 rm -f core conftest.err conftest.$ac_objext \
29407 conftest$ac_exeext conftest.$ac_ext
29408 LIBS=$ac_check_lib_save_LIBS
29410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29411 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29412 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
29418 if test x$CAP_LIBS = x-lcap; then
29420 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29426 $as_echo "#define FDLIBS 1" >>confdefs.h
29429 CFLAGS=${CFLAGS--O}
29431 if test x$have_gcc = xyes ; then
29432 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29433 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29435 LDFLAGS=${LDFLAGS--O}
29436 CPPFLAGS="$CPPFLAGS"
29462 PFILES="platforms/Makefile"
29467 hostname=`uname -n | cut -d '.' -f 1`
29468 if test x${hostname} = x ; then
29469 hostname="localhost"
29471 ping -c 1 $hostname 2>/dev/null 1>/dev/null
29472 if test ! $? = 0; then
29473 hostname="localhost"
29476 case "$DISTNAME" in
29479 PSCMD="ps -e -o pid,comm"
29480 PFILES="${PFILES} \
29481 platforms/aix/Makefile"
29482 TAPEDRIVE="/dev/rmt0.1"
29486 PTHREAD_LIB="-lpthread -lexc"
29487 if test "${CC}" = "gcc" ; then
29494 TAPEDRIVE="/dev/nrmt0"
29497 DISTVER=`uname -a |awk '{print $3}'`
29498 TAPEDRIVE="/dev/nrmt0"
29499 PTHREAD_LIB="-pthread"
29500 CFLAGS="${CFLAGS} -pthread"
29501 PSCMD="ps -ax -o pid,command"
29504 PFILES="${PFILES} \
29505 platforms/bsdi/Makefile \
29506 platforms/bsdi/bacula-fd \
29507 platforms/bsdi/bacula-sd \
29508 platforms/bsdi/bacula-dir"
29509 largefile_support="yes"
29512 DISTVER=`uname -a |awk '{print $3}'`
29513 TAPEDRIVE="/dev/nrst0"
29515 WCFLAGS="-mwindows"
29516 WLDFLAGS="-mwindows"
29520 TAPEDRIVE="/dev/nst0"
29521 PSCMD="ps -e -o pid,command"
29523 PFILES="${PFILES} \
29524 platforms/darwin/Makefile"
29528 TAPEDRIVE="/dev/nst0"
29529 PSCMD="ps -e -o pid,command"
29531 PFILES="${PFILES} \
29532 platforms/osx/Makefile"
29535 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
29538 DISTVER=`cat /etc/debian_version`
29539 if test -f /etc/lsb-release ; then
29541 if test "x$DISTRIB_ID" != "x" ; then
29542 DISTNAME=$DISTRIB_ID
29544 if test "x$DISTRIB_RELEASE" != "x" ; then
29545 DISTVER=$DISTRIB_RELEASE
29548 if test "$DISTNAME" = "Ubuntu" ; then
29551 TAPEDRIVE="/dev/nst0"
29552 PSCMD="ps -e -o pid,command"
29553 if test "$DISTNAME" = "ubuntu" ; then
29554 PFILES="${PFILES} \
29555 platforms/ubuntu/Makefile \
29556 platforms/ubuntu/bacula-fd \
29557 platforms/ubuntu/bacula-sd \
29558 platforms/ubuntu/bacula-dir"
29560 PFILES="${PFILES} \
29561 platforms/debian/Makefile \
29562 platforms/debian/bacula-fd \
29563 platforms/debian/bacula-sd \
29564 platforms/debian/bacula-dir"
29568 DISTVER=`uname -a |awk '{print $3}'`
29569 VER=`echo $DISTVER | cut -c 1`
29570 if test x$VER = x4 ; then
29571 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29572 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29576 TAPEDRIVE="/dev/nrsa0"
29577 PSCMD="ps -ax -o pid,command"
29578 PFILES="${PFILES} \
29579 platforms/freebsd/Makefile \
29580 platforms/freebsd/bacula-fd \
29581 platforms/freebsd/bacula-sd \
29582 platforms/freebsd/bacula-dir"
29583 largefile_support="yes"
29586 PSCMD="UNIX95=1; ps -e -o pid,comm"
29587 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29589 TAPEDRIVE="/dev/rmt/0hnb"
29590 PTHREAD_LIB="-lpthread"
29591 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29596 TAPEDRIVE="/dev/rmt/0cbn"
29597 PSCMD="ps -e -o pid,comm"
29598 PFILES="${PFILES} \
29599 platforms/irix/Makefile \
29600 platforms/irix/bacula-fd \
29601 platforms/irix/bacula-sd \
29602 platforms/irix/bacula-dir"
29605 DISTVER=`uname -a |awk '{print $3}'`
29608 TAPEDRIVE="/dev/nrst0"
29609 PSCMD="ps -ax -o pid,command"
29610 PTHREAD_LIB="-pthread"
29611 CFLAGS="${CFLAGS} -pthread"
29614 DISTVER=`uname -a |awk '{print $3}'`
29617 TAPEDRIVE="/dev/nrst0"
29618 PSCMD="ps -ax -o pid,command"
29619 PTHREAD_LIB="-pthread"
29620 CFLAGS="${CFLAGS} -pthread"
29621 PFILES="${PFILES} \
29622 platforms/openbsd/Makefile \
29623 platforms/openbsd/bacula-fd \
29624 platforms/openbsd/bacula-sd \
29625 platforms/openbsd/bacula-dir"
29628 if test -f /etc/whitebox-release ; then
29629 f=/etc/whitebox-release
29631 f=/etc/redhat-release
29633 if test `cat $f | grep release |\
29634 cut -f 3 -d ' '`x = "Enterprise"x ; then
29635 DISTVER="Enterprise "`cat $f | grep release |\
29638 DISTVER=`cat /etc/redhat-release | grep release |\
29641 TAPEDRIVE="/dev/nst0"
29642 PSCMD="ps -e -o pid,command"
29643 PFILES="${PFILES} \
29644 platforms/redhat/Makefile \
29645 platforms/redhat/bacula-fd \
29646 platforms/redhat/bacula-sd \
29647 platforms/redhat/bacula-dir
29651 DISTVER=`cat /etc/mandrake-release | grep release |\
29653 TAPEDRIVE="/dev/nst0"
29654 PSCMD="ps -e -o pid,command"
29655 PFILES="${PFILES} \
29656 platforms/mandrake/Makefile \
29657 platforms/mandrake/bacula-fd \
29658 platforms/mandrake/bacula-sd \
29659 platforms/mandrake/bacula-dir \
29663 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29664 TAPEDRIVE="/dev/nst0"
29665 PSCMD="ps -e -o pid,command"
29666 PFILES="${PFILES} \
29667 platforms/gentoo/Makefile \
29668 platforms/gentoo/bacula-init \
29669 platforms/gentoo/bacula-fd \
29670 platforms/gentoo/bacula-sd \
29671 platforms/gentoo/bacula-dir"
29674 DISTVER=`cat /etc/slackware-version`
29675 TAPEDRIVE="/dev/nst0"
29676 PSCMD="ps -e -o pid,command"
29677 PFILES="${PFILES} \
29678 platforms/slackware/Makefile \
29679 platforms/slackware/rc.bacula-fd \
29680 platforms/slackware/rc.bacula-sd \
29681 platforms/slackware/rc.bacula-dir\
29682 platforms/slackware/functions.bacula"
29686 TAPEDRIVE="/dev/rmt/0cbn"
29687 PSCMD="ps -e -o pid,comm"
29688 PFILES="${PFILES} \
29689 platforms/solaris/Makefile \
29690 platforms/solaris/bacula-fd \
29691 platforms/solaris/bacula-sd \
29692 platforms/solaris/bacula-dir"
29693 if test x$DISTVER = x5.6 ; then
29694 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29697 LIBS="$LIBS -lresolv -lrt"
29700 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29702 TAPEDRIVE="/dev/nst0"
29703 PSCMD="ps -e -o pid,command"
29704 PFILES="${PFILES} \
29705 platforms/suse/Makefile \
29706 platforms/suse/bacula-fd \
29707 platforms/suse/bacula-sd \
29708 platforms/suse/bacula-dir \
29709 platforms/suse/bacula"
29714 TAPEDRIVE="/dev/nst0"
29715 PSCMD="ps -e -o pid,command"
29716 PFILES="${PFILES} \
29717 platforms/suse/Makefile \
29718 platforms/suse/bacula-fd \
29719 platforms/suse/bacula-sd \
29720 platforms/suse/bacula-dir"
29724 TAPEDRIVE="/dev/nst0"
29727 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29733 LIBS="$PTHREAD_LIB $LIBS"
29735 cat >>confdefs.h <<_ACEOF
29739 cat >>confdefs.h <<_ACEOF
29750 MCOMMON=./autoconf/Make.common
29753 if test "x${subsysdir}" = "x${sbindir}" ; then
29756 echo "You have set both --sbindir and --with-subsys-dir"
29757 echo " equal to: ${subsysdir} "
29758 echo "This is not permitted. Please reconfigure."
29760 echo "Aborting configuration ..."
29766 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole 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/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_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"
29768 ac_config_commands="$ac_config_commands default"
29770 cat >confcache <<\_ACEOF
29771 # This file is a shell script that caches the results of configure
29772 # tests run on this system so they can be shared between configure
29773 # scripts and configure runs, see configure's option --config-cache.
29774 # It is not useful on other systems. If it contains results you don't
29775 # want to keep, you may remove or edit it.
29777 # config.status only pays attention to the cache file if you give it
29778 # the --recheck option to rerun configure.
29780 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29781 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29782 # following values.
29786 # The following way of writing the cache mishandles newlines in values,
29787 # but we know of no workaround that is simple, portable, and efficient.
29788 # So, we kill variables containing newlines.
29789 # Ultrix sh set writes to stderr and can't be redirected directly,
29790 # and sets the high bit in the cache file unless we assign to the vars.
29792 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29793 eval ac_val=\$$ac_var
29797 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29798 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29801 _ | IFS | as_nl) ;; #(
29802 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29803 *) { eval $ac_var=; unset $ac_var;} ;;
29809 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29810 *${as_nl}ac_space=\ *)
29811 # `set' does not quote correctly, so add quotes: double-quote
29812 # substitution turns \\\\ into \\, and sed turns \\ into \.
29815 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29818 # `set' quotes correctly as required by POSIX, so do not add quotes.
29819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29828 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29830 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29832 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29833 if test -w "$cache_file"; then
29834 test "x$cache_file" != "x/dev/null" &&
29835 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29836 $as_echo "$as_me: updating cache $cache_file" >&6;}
29837 cat confcache >$cache_file
29839 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29840 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29845 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29846 # Let make expand exec_prefix.
29847 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29849 DEFS=-DHAVE_CONFIG_H
29853 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29854 # 1. Remove the extension, and $U if already installed.
29855 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29856 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29857 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29858 # will be set to the directory where LIBOBJS objects are built.
29859 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29860 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29862 LIBOBJS=$ac_libobjs
29864 LTLIBOBJS=$ac_ltlibobjs
29869 : ${CONFIG_STATUS=./config.status}
29871 ac_clean_files_save=$ac_clean_files
29872 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29873 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29874 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29876 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29878 # Generated by $as_me.
29879 # Run this file to recreate the current configuration.
29880 # Compiler output produced by configure, useful for debugging
29881 # configure, is in config.log if it exists.
29884 ac_cs_recheck=false
29887 SHELL=\${CONFIG_SHELL-$SHELL}
29890 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29891 ## -------------------- ##
29892 ## M4sh Initialization. ##
29893 ## -------------------- ##
29895 # Be more Bourne compatible
29896 DUALCASE=1; export DUALCASE # for MKS sh
29897 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29900 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29901 # is contrary to our usage. Disable this feature.
29902 alias -g '${1+"$@"}'='"$@"'
29903 setopt NO_GLOB_SUBST
29905 case `(set -o) 2>/dev/null` in #(
29917 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29918 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29919 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29920 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29921 # Prefer a ksh shell builtin over an external printf program on Solaris,
29922 # but without wasting forks for bash or zsh.
29923 if test -z "$BASH_VERSION$ZSH_VERSION" \
29924 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29925 as_echo='print -r --'
29926 as_echo_n='print -rn --'
29927 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29928 as_echo='printf %s\n'
29929 as_echo_n='printf %s'
29931 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29932 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29933 as_echo_n='/usr/ucb/echo -n'
29935 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29936 as_echo_n_body='eval
29940 expr "X$arg" : "X\\(.*\\)$as_nl";
29941 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29943 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29945 export as_echo_n_body
29946 as_echo_n='sh -c $as_echo_n_body as_echo'
29948 export as_echo_body
29949 as_echo='sh -c $as_echo_body as_echo'
29952 # The user is always right.
29953 if test "${PATH_SEPARATOR+set}" != set; then
29955 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29956 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29963 # We need space, tab and new line, in precisely that order. Quoting is
29964 # there to prevent editors from complaining about space-tab.
29965 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29966 # splitting by setting IFS to empty value.)
29969 # Find who we are. Look in the path if we contain no directory separator.
29971 *[\\/]* ) as_myself=$0 ;;
29972 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29973 for as_dir in $PATH
29976 test -z "$as_dir" && as_dir=.
29977 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29983 # We did not find ourselves, most probably we were run as `sh COMMAND'
29984 # in which case we are not to be found in the path.
29985 if test "x$as_myself" = x; then
29988 if test ! -f "$as_myself"; then
29989 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29993 # Unset variables that we do not need and which cause bugs (e.g. in
29994 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29995 # suppresses any "Segmentation fault" message there. '((' could
29996 # trigger a bug in pdksh 5.2.14.
29997 for as_var in BASH_ENV ENV MAIL MAILPATH
29998 do eval test x\${$as_var+set} = xset \
29999 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30012 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30015 # as_fn_error ERROR [LINENO LOG_FD]
30016 # ---------------------------------
30017 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30018 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30019 # script with status $?, using 1 if that was 0.
30022 as_status=$?; test $as_status -eq 0 && as_status=1
30024 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30025 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30027 $as_echo "$as_me: error: $1" >&2
30028 as_fn_exit $as_status
30032 # as_fn_set_status STATUS
30033 # -----------------------
30034 # Set $? to STATUS, without forking.
30035 as_fn_set_status ()
30038 } # as_fn_set_status
30040 # as_fn_exit STATUS
30041 # -----------------
30042 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30046 as_fn_set_status $1
30052 # Portably unset VAR.
30055 { eval $1=; unset $1;}
30057 as_unset=as_fn_unset
30058 # as_fn_append VAR VALUE
30059 # ----------------------
30060 # Append the text in VALUE to the end of the definition contained in VAR. Take
30061 # advantage of any shell optimizations that allow amortized linear growth over
30062 # repeated appends, instead of the typical quadratic growth present in naive
30064 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30065 eval 'as_fn_append ()
30076 # as_fn_arith ARG...
30077 # ------------------
30078 # Perform arithmetic evaluation on the ARGs, and store the result in the
30079 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30080 # must be portable across $(()) and expr.
30081 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30082 eval 'as_fn_arith ()
30089 as_val=`expr "$@" || test $? -eq 1`
30094 if expr a : '\(a\)' >/dev/null 2>&1 &&
30095 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30101 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30102 as_basename=basename
30107 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30113 as_me=`$as_basename -- "$0" ||
30114 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30115 X"$0" : 'X\(//\)$' \| \
30116 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30118 sed '/^.*\/\([^/][^/]*\)\/*$/{
30132 # Avoid depending upon Character Ranges.
30133 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30134 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30135 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30136 as_cr_digits='0123456789'
30137 as_cr_alnum=$as_cr_Letters$as_cr_digits
30139 ECHO_C= ECHO_N= ECHO_T=
30140 case `echo -n x` in #(((((
30142 case `echo 'xy\c'` in
30143 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30145 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30152 rm -f conf$$ conf$$.exe conf$$.file
30153 if test -d conf$$.dir; then
30154 rm -f conf$$.dir/conf$$.file
30157 mkdir conf$$.dir 2>/dev/null
30159 if (echo >conf$$.file) 2>/dev/null; then
30160 if ln -s conf$$.file conf$$ 2>/dev/null; then
30162 # ... but there are two gotchas:
30163 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30164 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30165 # In both cases, we have to default to `cp -p'.
30166 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30168 elif ln conf$$.file conf$$ 2>/dev/null; then
30176 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30177 rmdir conf$$.dir 2>/dev/null
30182 # Create "$as_dir" as a directory, including parents if necessary.
30187 -*) as_dir=./$as_dir;;
30189 test -d "$as_dir" || eval $as_mkdir_p || {
30193 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30194 *) as_qdir=$as_dir;;
30196 as_dirs="'$as_qdir' $as_dirs"
30197 as_dir=`$as_dirname -- "$as_dir" ||
30198 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30199 X"$as_dir" : 'X\(//\)[^/]' \| \
30200 X"$as_dir" : 'X\(//\)$' \| \
30201 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30202 $as_echo X"$as_dir" |
30203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30207 /^X\(\/\/\)[^/].*/{
30220 test -d "$as_dir" && break
30222 test -z "$as_dirs" || eval "mkdir $as_dirs"
30223 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30227 if mkdir -p . 2>/dev/null; then
30228 as_mkdir_p='mkdir -p "$as_dir"'
30230 test -d ./-p && rmdir ./-p
30234 if test -x / >/dev/null 2>&1; then
30235 as_test_x='test -x'
30237 if ls -dL / >/dev/null 2>&1; then
30244 if test -d "$1"; then
30250 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30251 ???[sx]*):;;*)false;;esac;fi
30255 as_executable_p=$as_test_x
30257 # Sed expression to map a string onto a valid CPP name.
30258 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30260 # Sed expression to map a string onto a valid variable name.
30261 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30265 ## ----------------------------------- ##
30266 ## Main body of $CONFIG_STATUS script. ##
30267 ## ----------------------------------- ##
30269 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30272 # Save the log message, to keep $0 and so on meaningful, and to
30273 # report actual input values of CONFIG_FILES etc. instead of their
30274 # values after options handling.
30276 This file was extended by $as_me, which was
30277 generated by GNU Autoconf 2.65. Invocation command line was
30279 CONFIG_FILES = $CONFIG_FILES
30280 CONFIG_HEADERS = $CONFIG_HEADERS
30281 CONFIG_LINKS = $CONFIG_LINKS
30282 CONFIG_COMMANDS = $CONFIG_COMMANDS
30285 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30290 case $ac_config_files in *"
30291 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30294 case $ac_config_headers in *"
30295 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30300 # Files that config.status was made for.
30301 config_files="$ac_config_files"
30302 config_headers="$ac_config_headers"
30303 config_commands="$ac_config_commands"
30307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30309 \`$as_me' instantiates files and other configuration actions
30310 from templates according to the current configuration. Unless the files
30311 and actions are specified as TAGs, all are instantiated by default.
30313 Usage: $0 [OPTION]... [TAG]...
30315 -h, --help print this help, then exit
30316 -V, --version print version number and configuration settings, then exit
30317 --config print configuration, then exit
30318 -q, --quiet, --silent
30319 do not print progress messages
30320 -d, --debug don't remove temporary files
30321 --recheck update $as_me by reconfiguring in the same conditions
30322 --file=FILE[:TEMPLATE]
30323 instantiate the configuration file FILE
30324 --header=FILE[:TEMPLATE]
30325 instantiate the configuration header FILE
30327 Configuration files:
30330 Configuration headers:
30333 Configuration commands:
30336 Report bugs to the package provider."
30339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30340 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30343 configured by $0, generated by GNU Autoconf 2.65,
30344 with options \\"\$ac_cs_config\\"
30346 Copyright (C) 2009 Free Software Foundation, Inc.
30347 This config.status script is free software; the Free Software Foundation
30348 gives unlimited permission to copy, distribute and modify it."
30354 test -n "\$AWK" || AWK=awk
30357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30358 # The default lists apply if the user does not specify any file.
30364 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30365 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30376 # Handling of the options.
30377 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30379 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30380 $as_echo "$ac_cs_version"; exit ;;
30381 --config | --confi | --conf | --con | --co | --c )
30382 $as_echo "$ac_cs_config"; exit ;;
30383 --debug | --debu | --deb | --de | --d | -d )
30385 --file | --fil | --fi | --f )
30388 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30390 as_fn_append CONFIG_FILES " '$ac_optarg'"
30391 ac_need_defaults=false;;
30392 --header | --heade | --head | --hea )
30395 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30397 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30398 ac_need_defaults=false;;
30400 # Conflict between --help and --header
30401 as_fn_error "ambiguous option: \`$1'
30402 Try \`$0 --help' for more information.";;
30403 --help | --hel | -h )
30404 $as_echo "$ac_cs_usage"; exit ;;
30405 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30406 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30409 # This is an error.
30410 -*) as_fn_error "unrecognized option: \`$1'
30411 Try \`$0 --help' for more information." ;;
30413 *) as_fn_append ac_config_targets " $1"
30414 ac_need_defaults=false ;;
30420 ac_configure_extra_args=
30422 if $ac_cs_silent; then
30424 ac_configure_extra_args="$ac_configure_extra_args --silent"
30428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30429 if \$ac_cs_recheck; then
30430 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30432 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30433 CONFIG_SHELL='$SHELL'
30434 export CONFIG_SHELL
30439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30443 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30444 ## Running $as_me. ##
30450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30456 # The HP-UX ksh and POSIX shell print the target directory to stdout
30457 # if CDPATH is set.
30458 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30460 sed_quote_subst='$sed_quote_subst'
30461 double_quote_subst='$double_quote_subst'
30462 delay_variable_subst='$delay_variable_subst'
30463 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30464 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30465 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30466 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30467 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30468 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30469 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30470 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30471 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30472 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30473 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30474 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30475 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30476 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30477 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30478 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30479 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30480 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30481 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30482 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30483 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30484 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30485 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30486 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30487 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30488 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30489 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30490 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30491 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30492 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30493 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30494 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30495 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30496 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30497 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30498 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30499 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30500 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30501 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30502 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30503 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30504 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30505 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30506 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30507 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"`'
30508 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"`'
30509 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30510 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30511 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30512 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30513 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30514 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30515 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30516 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30517 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30518 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30519 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30520 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30521 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30522 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30523 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30524 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30525 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30526 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30527 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30528 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30529 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30530 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30531 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30532 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30533 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30534 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30535 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30536 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30537 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30538 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30539 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30540 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30541 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30542 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30543 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30544 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30545 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30546 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30547 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30548 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30549 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30550 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30551 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30552 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30553 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30554 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30555 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30556 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30557 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30558 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30559 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30560 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30561 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30562 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30563 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30564 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30565 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30566 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30567 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30568 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30569 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30570 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30571 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30572 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30573 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30574 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30575 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30576 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30577 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30578 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30579 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30580 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30581 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30582 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30583 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30584 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30585 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30586 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30587 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30588 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30589 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30590 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30591 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30592 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30593 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30594 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30595 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30596 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30597 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30598 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30599 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30600 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30601 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30602 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30603 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30604 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30605 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30606 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30607 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30608 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30609 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30610 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30611 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30612 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30613 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30614 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30615 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30616 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30617 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30618 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30619 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30620 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30621 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30622 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30623 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30624 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30625 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30626 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30627 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30628 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30629 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30630 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30631 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30632 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30633 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30636 LTCFLAGS='$LTCFLAGS'
30637 compiler='$compiler_DEFAULT'
30639 # Quote evaled strings.
30651 deplibs_check_method \
30660 lt_cv_sys_global_symbol_pipe \
30661 lt_cv_sys_global_symbol_to_cdecl \
30662 lt_cv_sys_global_symbol_to_c_name_address \
30663 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30666 lt_prog_compiler_no_builtin_flag \
30667 lt_prog_compiler_wl \
30668 lt_prog_compiler_pic \
30669 lt_prog_compiler_static \
30670 lt_cv_prog_compiler_c_o \
30678 export_dynamic_flag_spec \
30679 whole_archive_flag_spec \
30680 compiler_needs_object \
30682 allow_undefined_flag \
30683 no_undefined_flag \
30684 hardcode_libdir_flag_spec \
30685 hardcode_libdir_flag_spec_ld \
30686 hardcode_libdir_separator \
30691 variables_saved_for_relink \
30693 library_names_spec \
30698 compiler_lib_search_dirs \
30703 compiler_lib_search_path \
30706 lt_prog_compiler_no_builtin_flag_CXX \
30707 lt_prog_compiler_wl_CXX \
30708 lt_prog_compiler_pic_CXX \
30709 lt_prog_compiler_static_CXX \
30710 lt_cv_prog_compiler_c_o_CXX \
30711 export_dynamic_flag_spec_CXX \
30712 whole_archive_flag_spec_CXX \
30713 compiler_needs_object_CXX \
30715 allow_undefined_flag_CXX \
30716 no_undefined_flag_CXX \
30717 hardcode_libdir_flag_spec_CXX \
30718 hardcode_libdir_flag_spec_ld_CXX \
30719 hardcode_libdir_separator_CXX \
30720 fix_srcfile_path_CXX \
30721 exclude_expsyms_CXX \
30722 include_expsyms_CXX \
30723 file_list_spec_CXX \
30724 compiler_lib_search_dirs_CXX \
30725 predep_objects_CXX \
30726 postdep_objects_CXX \
30729 compiler_lib_search_path_CXX; do
30730 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30731 *[\\\\\\\`\\"\\\$]*)
30732 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30735 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30740 # Double-quote double-evaled strings.
30741 for var in reload_cmds \
30742 old_postinstall_cmds \
30743 old_postuninstall_cmds \
30745 extract_expsyms_cmds \
30746 old_archive_from_new_cmds \
30747 old_archive_from_expsyms_cmds \
30749 archive_expsym_cmds \
30751 module_expsym_cmds \
30752 export_symbols_cmds \
30755 postuninstall_cmds \
30757 sys_lib_search_path_spec \
30758 sys_lib_dlsearch_path_spec \
30759 old_archive_cmds_CXX \
30760 old_archive_from_new_cmds_CXX \
30761 old_archive_from_expsyms_cmds_CXX \
30763 archive_expsym_cmds_CXX \
30765 module_expsym_cmds_CXX \
30766 export_symbols_cmds_CXX \
30767 prelink_cmds_CXX; do
30768 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30769 *[\\\\\\\`\\"\\\$]*)
30770 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30773 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30778 # Fix-up fallback echo if it was mangled by the above quoting rules.
30780 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30784 ac_aux_dir='$ac_aux_dir'
30785 xsi_shell='$xsi_shell'
30786 lt_shell_append='$lt_shell_append'
30788 # See if we are running on zsh, and set the options which allow our
30789 # commands through without removal of \ escapes INIT.
30790 if test -n "\${ZSH_VERSION+set}" ; then
30791 setopt NO_GLOB_SUBST
30797 TIMESTAMP='$TIMESTAMP'
30805 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30806 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30808 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30809 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30810 LINGUAS="${LINGUAS-%UNSET%}"
30815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30817 # Handling of arguments.
30818 for ac_config_target in $ac_config_targets
30820 case $ac_config_target in
30821 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30822 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30823 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30824 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30825 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30826 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30827 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30828 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30829 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30830 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30831 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30832 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30833 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30834 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30835 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30836 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30837 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30838 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30839 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30840 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30841 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30842 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30843 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30844 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30845 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30846 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30847 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30848 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30849 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30850 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30851 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30852 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30853 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30854 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30855 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30856 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30857 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30858 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30859 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30860 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30861 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30862 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30863 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30864 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30865 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30866 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
30867 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
30868 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30869 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30870 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30871 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30872 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30873 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30874 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30875 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30876 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30877 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30878 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30879 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30880 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30881 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30882 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30883 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30884 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30885 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30886 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30887 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30888 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30889 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30890 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30891 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30892 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30893 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30894 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30895 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30896 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30897 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30898 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30899 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30900 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30901 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30902 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30903 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30904 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30905 "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
30906 "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
30907 "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
30908 "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
30909 "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
30910 "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
30911 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30912 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30913 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30914 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30915 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30916 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30917 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30918 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30919 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30920 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30921 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30922 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30923 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30924 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30925 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30926 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30927 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30928 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30929 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30930 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30931 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30932 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
30933 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
30934 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
30935 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30936 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30937 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30939 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30944 # If the user did not use the arguments to specify the items to instantiate,
30945 # then the envvar interface is used. Set only those that are not.
30946 # We use the long form for the default assignment because of an extremely
30947 # bizarre bug on SunOS 4.1.3.
30948 if $ac_need_defaults; then
30949 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30950 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30951 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30954 # Have a temporary directory for convenience. Make it in the build tree
30955 # simply because there is no reason against having it here, and in addition,
30956 # creating and moving files from /tmp can sometimes cause problems.
30957 # Hook for its removal unless debugging.
30958 # Note that there is a small window in which the directory will not be cleaned:
30959 # after its creation but before its name has been assigned to `$tmp'.
30963 trap 'exit_status=$?
30964 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30966 trap 'as_fn_exit 1' 1 2 13 15
30968 # Create a (secure) tmp directory for tmp files.
30971 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30972 test -n "$tmp" && test -d "$tmp"
30975 tmp=./conf$$-$RANDOM
30976 (umask 077 && mkdir "$tmp")
30977 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30979 # Set up the scripts for CONFIG_FILES section.
30980 # No need to generate them if there are no CONFIG_FILES.
30981 # This happens for instance with `./config.status config.h'.
30982 if test -n "$CONFIG_FILES"; then
30984 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30985 ac_cs_awk_getline=:
30986 ac_cs_awk_pipe_init=
30987 ac_cs_awk_read_file='
30988 while ((getline aline < (F[key])) > 0)
30991 ac_cs_awk_pipe_fini=
30993 ac_cs_awk_getline=false
30994 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30995 ac_cs_awk_read_file='
30997 print "cat " F[key] " &&"
30998 '$ac_cs_awk_pipe_init
30999 # The final `:' finishes the AND list.
31000 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31002 ac_cr=`echo X | tr X '\015'`
31003 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31004 # But we know of no other shell where ac_cr would be empty at this
31005 # point, so we can use a bashism as a fallback.
31006 if test "x$ac_cr" = x; then
31007 eval ac_cr=\$\'\\r\'
31009 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31010 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31013 ac_cs_awk_cr=$ac_cr
31016 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31019 # Create commands to substitute file output variables.
31021 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31022 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
31023 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31026 } >conf$$files.sh &&
31027 . ./conf$$files.sh ||
31028 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31029 rm -f conf$$files.sh
31032 echo "cat >conf$$subs.awk <<_ACEOF" &&
31033 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31035 } >conf$$subs.sh ||
31036 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31037 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31039 for ac_last_try in false false false false false :; do
31040 . ./conf$$subs.sh ||
31041 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31043 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31044 if test $ac_delim_n = $ac_delim_num; then
31046 elif $ac_last_try; then
31047 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31049 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31052 rm -f conf$$subs.sh
31054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31055 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31059 s/^/S["/; s/!.*/"]=/
31069 s/\(.\{148\}\)..*/\1/
31071 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31076 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31083 s/\(.\{148\}\)..*/\1/
31085 s/["\\]/\\&/g; s/^/"/; s/$/"/
31089 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31094 ' <conf$$subs.awk | sed '
31099 ' >>$CONFIG_STATUS || ac_write_fail=1
31100 rm -f conf$$subs.awk
31101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31103 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31104 for (key in S) S_is_set[key] = 1
31106 \$ac_cs_awk_pipe_init
31110 nfields = split(line, field, "@")
31112 len = length(field[1])
31113 for (i = 2; i < nfields; i++) {
31115 keylen = length(key)
31116 if (S_is_set[key]) {
31118 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31119 len += length(value) + length(field[++i])
31124 if (nfields == 3 && !substed) {
31126 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31127 \$ac_cs_awk_read_file
31133 \$ac_cs_awk_pipe_fini
31136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31137 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31138 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31141 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31142 || as_fn_error "could not setup config files machinery" "$LINENO" 5
31145 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31146 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31147 # trailing colons and then remove the whole line if VPATH becomes empty
31148 # (actually we leave an empty line to preserve line numbers).
31149 if test "x$srcdir" = x.; then
31150 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31151 s/:*\$(srcdir):*/:/
31152 s/:*\${srcdir}:*/:/
31154 s/^\([^=]*=[ ]*\):*/\1/
31160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31161 fi # test -n "$CONFIG_FILES"
31163 # Set up the scripts for CONFIG_HEADERS section.
31164 # No need to generate them if there are no CONFIG_HEADERS.
31165 # This happens for instance with `./config.status Makefile'.
31166 if test -n "$CONFIG_HEADERS"; then
31167 cat >"$tmp/defines.awk" <<\_ACAWK ||
31171 # Transform confdefs.h into an awk script `defines.awk', embedded as
31172 # here-document in config.status, that substitutes the proper values into
31173 # config.h.in to produce config.h.
31175 # Create a delimiter string that does not exist in confdefs.h, to ease
31176 # handling of long lines.
31178 for ac_last_try in false false :; do
31179 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31180 if test -z "$ac_t"; then
31182 elif $ac_last_try; then
31183 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
31185 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31189 # For the awk script, D is an array of macro values keyed by name,
31190 # likewise P contains macro parameters if any. Preserve backslash
31191 # newline sequences.
31193 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31195 s/.\{148\}/&'"$ac_delim"'/g
31198 s/^[ ]*#[ ]*define[ ][ ]*/ /
31205 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31207 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31211 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31212 D["\1"]=" \3\\\\\\n"\\/p
31214 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31219 s/.\{148\}/&'"$ac_delim"'/g
31224 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31227 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31229 ' <confdefs.h | sed '
31230 s/'"$ac_delim"'/"\\\
31231 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31234 for (key in D) D_is_set[key] = 1
31237 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31239 split(line, arg, " ")
31240 if (arg[1] == "#") {
31244 defundef = substr(arg[1], 2)
31247 split(mac1, mac2, "(") #)
31249 prefix = substr(line, 1, index(line, defundef) - 1)
31250 if (D_is_set[macro]) {
31251 # Preserve the white space surrounding the "#".
31252 print prefix "define", macro P[macro] D[macro]
31255 # Replace #undef with comments. This is necessary, for example,
31256 # in the case of _POSIX_SOURCE, which is predefined and required
31257 # on some systems where configure will not decide to define it.
31258 if (defundef == "undef") {
31259 print "/*", prefix defundef, macro, "*/"
31267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31268 as_fn_error "could not setup config headers machinery" "$LINENO" 5
31269 fi # test -n "$CONFIG_HEADERS"
31272 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
31277 :[FHLC]) ac_mode=$ac_tag; continue;;
31279 case $ac_mode$ac_tag in
31281 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
31282 :[FH]-) ac_tag=-:-;;
31283 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31300 -) ac_f="$tmp/stdin";;
31301 *) # Look for the file first in the build tree, then in the source tree
31302 # (if the path is not absolute). The absolute path cannot be DOS-style,
31303 # because $ac_f cannot contain `:'.
31307 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31309 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31311 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31312 as_fn_append ac_file_inputs " '$ac_f'"
31315 # Let's still pretend it is `configure' which instantiates (i.e., don't
31316 # use $as_me), people would be surprised to read:
31317 # /* config.h. Generated by config.status. */
31318 configure_input='Generated from '`
31319 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31321 if test x"$ac_file" != x-; then
31322 configure_input="$ac_file. $configure_input"
31323 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31324 $as_echo "$as_me: creating $ac_file" >&6;}
31326 # Neutralize special characters interpreted by sed in replacement strings.
31327 case $configure_input in #(
31328 *\&* | *\|* | *\\* )
31329 ac_sed_conf_input=`$as_echo "$configure_input" |
31330 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31331 *) ac_sed_conf_input=$configure_input;;
31335 *:-:* | *:-) cat >"$tmp/stdin" \
31336 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
31341 ac_dir=`$as_dirname -- "$ac_file" ||
31342 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31343 X"$ac_file" : 'X\(//\)[^/]' \| \
31344 X"$ac_file" : 'X\(//\)$' \| \
31345 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31346 $as_echo X"$ac_file" |
31347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31351 /^X\(\/\/\)[^/].*/{
31364 as_dir="$ac_dir"; as_fn_mkdir_p
31368 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31370 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31371 # A ".." for each directory in $ac_dir_suffix.
31372 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31373 case $ac_top_builddir_sub in
31374 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31375 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31378 ac_abs_top_builddir=$ac_pwd
31379 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31380 # for backward compatibility:
31381 ac_top_builddir=$ac_top_build_prefix
31384 .) # We are building in place.
31386 ac_top_srcdir=$ac_top_builddir_sub
31387 ac_abs_top_srcdir=$ac_pwd ;;
31388 [\\/]* | ?:[\\/]* ) # Absolute name.
31389 ac_srcdir=$srcdir$ac_dir_suffix;
31390 ac_top_srcdir=$srcdir
31391 ac_abs_top_srcdir=$srcdir ;;
31392 *) # Relative name.
31393 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31394 ac_top_srcdir=$ac_top_build_prefix$srcdir
31395 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31397 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31407 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31408 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31413 # If the template does not know about datarootdir, expand it.
31414 # FIXME: This hack should be removed a few years after 2.60.
31415 ac_datarootdir_hack=; ac_datarootdir_seen=
31426 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31427 *datarootdir*) ac_datarootdir_seen=yes;;
31428 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31430 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31433 ac_datarootdir_hack='
31434 s&@datadir@&$datadir&g
31435 s&@docdir@&$docdir&g
31436 s&@infodir@&$infodir&g
31437 s&@localedir@&$localedir&g
31438 s&@mandir@&$mandir&g
31439 s&\\\${datarootdir}&$datarootdir&g' ;;
31443 # Neutralize VPATH when `$srcdir' = `.'.
31444 # Shell code in configure.ac might set extrasub.
31445 # FIXME: do we really want to maintain this feature?
31446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31447 ac_sed_extra="$ac_vpsub
31450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31452 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31453 s|@configure_input@|$ac_sed_conf_input|;t t
31454 s&@top_builddir@&$ac_top_builddir_sub&;t t
31455 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31456 s&@srcdir@&$ac_srcdir&;t t
31457 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31458 s&@top_srcdir@&$ac_top_srcdir&;t t
31459 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31460 s&@builddir@&$ac_builddir&;t t
31461 s&@abs_builddir@&$ac_abs_builddir&;t t
31462 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31463 s&@INSTALL@&$ac_INSTALL&;t t
31464 $ac_datarootdir_hack
31466 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31467 if $ac_cs_awk_getline; then
31468 $AWK -f "$tmp/subs.awk"
31470 $AWK -f "$tmp/subs.awk" | $SHELL
31472 || as_fn_error "could not create $ac_file" "$LINENO" 5
31474 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31475 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31476 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31478 which seems to be undefined. Please make sure it is defined." >&5
31479 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31480 which seems to be undefined. Please make sure it is defined." >&2;}
31484 -) cat "$tmp/out" && rm -f "$tmp/out";;
31485 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31487 || as_fn_error "could not create $ac_file" "$LINENO" 5
31493 if test x"$ac_file" != x-; then
31495 $as_echo "/* $configure_input */" \
31496 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31497 } >"$tmp/config.h" \
31498 || as_fn_error "could not create $ac_file" "$LINENO" 5
31499 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31500 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31501 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31504 mv "$tmp/config.h" "$ac_file" \
31505 || as_fn_error "could not create $ac_file" "$LINENO" 5
31508 $as_echo "/* $configure_input */" \
31509 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31510 || as_fn_error "could not create -" "$LINENO" 5
31514 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31515 $as_echo "$as_me: executing $ac_file commands" >&6;}
31520 case $ac_file$ac_mode in
31523 # See if we are running on zsh, and set the options which allow our
31524 # commands through without removal of \ escapes.
31525 if test -n "${ZSH_VERSION+set}" ; then
31526 setopt NO_GLOB_SUBST
31529 cfgfile="${ofile}T"
31530 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31533 cat <<_LT_EOF >> "$cfgfile"
31536 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31537 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31538 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31539 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31541 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31542 # 2006, 2007, 2008 Free Software Foundation, Inc.
31543 # Written by Gordon Matzigkeit, 1996
31545 # This file is part of GNU Libtool.
31547 # GNU Libtool is free software; you can redistribute it and/or
31548 # modify it under the terms of the GNU General Public License as
31549 # published by the Free Software Foundation; either version 2 of
31550 # the License, or (at your option) any later version.
31552 # As a special exception to the GNU General Public License,
31553 # if you distribute this file as part of a program or library that
31554 # is built using GNU Libtool, you may include this file under the
31555 # same distribution terms that you use for the rest of that program.
31557 # GNU Libtool is distributed in the hope that it will be useful,
31558 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31559 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31560 # GNU General Public License for more details.
31562 # You should have received a copy of the GNU General Public License
31563 # along with GNU Libtool; see the file COPYING. If not, a copy
31564 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31565 # obtained by writing to the Free Software Foundation, Inc.,
31566 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31569 # The names of the tagged configurations supported by this script.
31570 available_tags="CXX "
31572 # ### BEGIN LIBTOOL CONFIG
31574 # Which release of libtool.m4 was used?
31575 macro_version=$macro_version
31576 macro_revision=$macro_revision
31578 # Whether or not to build shared libraries.
31579 build_libtool_libs=$enable_shared
31581 # Whether or not to build static libraries.
31582 build_old_libs=$enable_static
31584 # What type of objects to build.
31587 # Whether or not to optimize for fast installation.
31588 fast_install=$enable_fast_install
31591 host_alias=$host_alias
31595 # The build system.
31596 build_alias=$build_alias
31600 # A sed program that does not truncate output.
31603 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31604 Xsed="\$SED -e 1s/^X//"
31606 # A grep program that handles long lines.
31612 # A literal string matcher.
31615 # A BSD- or MS-compatible name lister.
31618 # Whether we need soft or hard links.
31621 # What is the maximum length of a command?
31622 max_cmd_len=$max_cmd_len
31624 # Object file suffix (normally "o").
31627 # Executable file suffix (normally "").
31630 # whether the shell understands "unset".
31633 # turn spaces into newlines.
31636 # turn newlines into spaces.
31639 # How to create reloadable object files.
31640 reload_flag=$lt_reload_flag
31641 reload_cmds=$lt_reload_cmds
31643 # An object symbol dumper.
31644 OBJDUMP=$lt_OBJDUMP
31646 # Method to check whether dependent libraries are shared objects.
31647 deplibs_check_method=$lt_deplibs_check_method
31649 # Command to use when deplibs_check_method == "file_magic".
31650 file_magic_cmd=$lt_file_magic_cmd
31654 AR_FLAGS=$lt_AR_FLAGS
31656 # A symbol stripping program.
31659 # Commands used to install an old-style archive.
31661 old_postinstall_cmds=$lt_old_postinstall_cmds
31662 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31667 # LTCC compiler flags.
31668 LTCFLAGS=$lt_CFLAGS
31670 # Take the output of nm and produce a listing of raw symbols and C names.
31671 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31673 # Transform the output of nm in a proper C declaration.
31674 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31676 # Transform the output of nm in a C name address pair.
31677 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31679 # Transform the output of nm in a C name address pair when lib prefix is needed.
31680 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31682 # The name of the directory that contains temporary libtool files.
31685 # Shell to use when invoking shell scripts.
31688 # An echo program that does not interpret backslashes.
31691 # Used to examine libraries when file_magic_cmd begins with "file".
31692 MAGIC_CMD=$MAGIC_CMD
31694 # Must we lock files when doing compilation?
31695 need_locks=$lt_need_locks
31697 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31698 DSYMUTIL=$lt_DSYMUTIL
31700 # Tool to change global to local symbols on Mac OS X.
31703 # Tool to manipulate fat objects and archives on Mac OS X.
31706 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31709 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31710 OTOOL64=$lt_OTOOL64
31712 # Old archive suffix (normally "a").
31715 # Shared library suffix (normally ".so").
31716 shrext_cmds=$lt_shrext_cmds
31718 # The commands to extract the exported symbol list from a shared archive.
31719 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31721 # Variables whose values should be saved in libtool wrapper scripts and
31722 # restored at link time.
31723 variables_saved_for_relink=$lt_variables_saved_for_relink
31725 # Do we need the "lib" prefix for modules?
31726 need_lib_prefix=$need_lib_prefix
31728 # Do we need a version for libraries?
31729 need_version=$need_version
31731 # Library versioning type.
31732 version_type=$version_type
31734 # Shared library runtime path variable.
31735 runpath_var=$runpath_var
31737 # Shared library path variable.
31738 shlibpath_var=$shlibpath_var
31740 # Is shlibpath searched before the hard-coded library search path?
31741 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31743 # Format of library name prefix.
31744 libname_spec=$lt_libname_spec
31746 # List of archive names. First name is the real one, the rest are links.
31747 # The last name is the one that the linker finds with -lNAME
31748 library_names_spec=$lt_library_names_spec
31750 # The coded name of the library, if different from the real name.
31751 soname_spec=$lt_soname_spec
31753 # Command to use after installation of a shared archive.
31754 postinstall_cmds=$lt_postinstall_cmds
31756 # Command to use after uninstallation of a shared archive.
31757 postuninstall_cmds=$lt_postuninstall_cmds
31759 # Commands used to finish a libtool library installation in a directory.
31760 finish_cmds=$lt_finish_cmds
31762 # As "finish_cmds", except a single script fragment to be evaled but
31764 finish_eval=$lt_finish_eval
31766 # Whether we should hardcode library paths into libraries.
31767 hardcode_into_libs=$hardcode_into_libs
31769 # Compile-time system search path for libraries.
31770 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31772 # Run-time system search path for libraries.
31773 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31775 # Whether dlopen is supported.
31776 dlopen_support=$enable_dlopen
31778 # Whether dlopen of programs is supported.
31779 dlopen_self=$enable_dlopen_self
31781 # Whether dlopen of statically linked programs is supported.
31782 dlopen_self_static=$enable_dlopen_self_static
31784 # Commands to strip libraries.
31785 old_striplib=$lt_old_striplib
31786 striplib=$lt_striplib
31789 # The linker used to build libraries.
31792 # Commands used to build an old-style archive.
31793 old_archive_cmds=$lt_old_archive_cmds
31795 # A language specific compiler.
31798 # Is the compiler the GNU compiler?
31801 # Compiler flag to turn off builtin functions.
31802 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31804 # How to pass a linker flag through the compiler.
31805 wl=$lt_lt_prog_compiler_wl
31807 # Additional compiler flags for building library objects.
31808 pic_flag=$lt_lt_prog_compiler_pic
31810 # Compiler flag to prevent dynamic linking.
31811 link_static_flag=$lt_lt_prog_compiler_static
31813 # Does compiler simultaneously support -c and -o options?
31814 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31816 # Whether or not to add -lc for building shared libraries.
31817 build_libtool_need_lc=$archive_cmds_need_lc
31819 # Whether or not to disallow shared libs when runtime libs are static.
31820 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31822 # Compiler flag to allow reflexive dlopens.
31823 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31825 # Compiler flag to generate shared objects directly from archives.
31826 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31828 # Whether the compiler copes with passing no objects directly.
31829 compiler_needs_object=$lt_compiler_needs_object
31831 # Create an old-style archive from a shared archive.
31832 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31834 # Create a temporary old-style archive to link instead of a shared archive.
31835 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31837 # Commands used to build a shared archive.
31838 archive_cmds=$lt_archive_cmds
31839 archive_expsym_cmds=$lt_archive_expsym_cmds
31841 # Commands used to build a loadable module if different from building
31842 # a shared archive.
31843 module_cmds=$lt_module_cmds
31844 module_expsym_cmds=$lt_module_expsym_cmds
31846 # Whether we are building with GNU ld or not.
31847 with_gnu_ld=$lt_with_gnu_ld
31849 # Flag that allows shared libraries with undefined symbols to be built.
31850 allow_undefined_flag=$lt_allow_undefined_flag
31852 # Flag that enforces no undefined symbols.
31853 no_undefined_flag=$lt_no_undefined_flag
31855 # Flag to hardcode \$libdir into a binary during linking.
31856 # This must work even if \$libdir does not exist
31857 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31859 # If ld is used when linking, flag to hardcode \$libdir into a binary
31860 # during linking. This must work even if \$libdir does not exist.
31861 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31863 # Whether we need a single "-rpath" flag with a separated argument.
31864 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31866 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31867 # DIR into the resulting binary.
31868 hardcode_direct=$hardcode_direct
31870 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31871 # DIR into the resulting binary and the resulting library dependency is
31872 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31873 # library is relocated.
31874 hardcode_direct_absolute=$hardcode_direct_absolute
31876 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31877 # into the resulting binary.
31878 hardcode_minus_L=$hardcode_minus_L
31880 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31881 # into the resulting binary.
31882 hardcode_shlibpath_var=$hardcode_shlibpath_var
31884 # Set to "yes" if building a shared library automatically hardcodes DIR
31885 # into the library and all subsequent libraries and executables linked
31887 hardcode_automatic=$hardcode_automatic
31889 # Set to yes if linker adds runtime paths of dependent libraries
31890 # to runtime path list.
31891 inherit_rpath=$inherit_rpath
31893 # Whether libtool must link a program against all its dependency libraries.
31894 link_all_deplibs=$link_all_deplibs
31896 # Fix the shell variable \$srcfile for the compiler.
31897 fix_srcfile_path=$lt_fix_srcfile_path
31899 # Set to "yes" if exported symbols are required.
31900 always_export_symbols=$always_export_symbols
31902 # The commands to list exported symbols.
31903 export_symbols_cmds=$lt_export_symbols_cmds
31905 # Symbols that should not be listed in the preloaded symbols.
31906 exclude_expsyms=$lt_exclude_expsyms
31908 # Symbols that must always be exported.
31909 include_expsyms=$lt_include_expsyms
31911 # Commands necessary for linking programs (against libraries) with templates.
31912 prelink_cmds=$lt_prelink_cmds
31914 # Specify filename containing input files.
31915 file_list_spec=$lt_file_list_spec
31917 # How to hardcode a shared library path into an executable.
31918 hardcode_action=$hardcode_action
31920 # The directories searched by this compiler when creating a shared library.
31921 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31923 # Dependencies to place before and after the objects being linked to
31924 # create a shared library.
31925 predep_objects=$lt_predep_objects
31926 postdep_objects=$lt_postdep_objects
31927 predeps=$lt_predeps
31928 postdeps=$lt_postdeps
31930 # The library search path used internally by the compiler when linking
31931 # a shared library.
31932 compiler_lib_search_path=$lt_compiler_lib_search_path
31934 # ### END LIBTOOL CONFIG
31940 cat <<\_LT_EOF >> "$cfgfile"
31941 # AIX sometimes has problems with the GCC collect2 program. For some
31942 # reason, if we set the COLLECT_NAMES environment variable, the problems
31943 # vanish in a puff of smoke.
31944 if test "X${COLLECT_NAMES+set}" != Xset; then
31946 export COLLECT_NAMES
31953 ltmain="$ac_aux_dir/ltmain.sh"
31956 # We use sed instead of cat because bash on DJGPP gets confused if
31957 # if finds mixed CR/LF and LF-only lines. Since sed operates in
31958 # text mode, it properly converts lines to CR/LF. This bash problem
31959 # is reportedly fixed, but why not run on old versions too?
31960 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31961 || (rm -f "$cfgfile"; exit 1)
31965 cat << \_LT_EOF >> "$cfgfile"
31967 # func_dirname file append nondir_replacement
31968 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31969 # otherwise set result to NONDIR_REPLACEMENT.
31973 */*) func_dirname_result="${1%/*}${2}" ;;
31974 * ) func_dirname_result="${3}" ;;
31978 # func_basename file
31981 func_basename_result="${1##*/}"
31984 # func_dirname_and_basename file append nondir_replacement
31985 # perform func_basename and func_dirname in a single function
31987 # dirname: Compute the dirname of FILE. If nonempty,
31988 # add APPEND to the result, otherwise set result
31989 # to NONDIR_REPLACEMENT.
31990 # value returned in "$func_dirname_result"
31991 # basename: Compute filename of FILE.
31992 # value retuned in "$func_basename_result"
31993 # Implementation must be kept synchronized with func_dirname
31994 # and func_basename. For efficiency, we do not delegate to
31995 # those functions but instead duplicate the functionality here.
31996 func_dirname_and_basename ()
31999 */*) func_dirname_result="${1%/*}${2}" ;;
32000 * ) func_dirname_result="${3}" ;;
32002 func_basename_result="${1##*/}"
32005 # func_stripname prefix suffix name
32006 # strip PREFIX and SUFFIX off of NAME.
32007 # PREFIX and SUFFIX must not contain globbing or regex special
32008 # characters, hashes, percent signs, but SUFFIX may contain a leading
32009 # dot (in which case that matches only a dot).
32012 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
32013 # positional parameters, so assign one to ordinary parameter first.
32014 func_stripname_result=${3}
32015 func_stripname_result=${func_stripname_result#"${1}"}
32016 func_stripname_result=${func_stripname_result%"${2}"}
32022 func_opt_split_opt=${1%%=*}
32023 func_opt_split_arg=${1#*=}
32030 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
32031 *) func_lo2o_result=${1} ;;
32035 # func_xform libobj-or-source
32038 func_xform_result=${1%.*}.lo
32041 # func_arith arithmetic-term...
32044 func_arith_result=$(( $* ))
32048 # STRING may not start with a hyphen.
32051 func_len_result=${#1}
32056 *) # Bourne compatible functions.
32057 cat << \_LT_EOF >> "$cfgfile"
32059 # func_dirname file append nondir_replacement
32060 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
32061 # otherwise set result to NONDIR_REPLACEMENT.
32064 # Extract subdirectory from the argument.
32065 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
32066 if test "X$func_dirname_result" = "X${1}"; then
32067 func_dirname_result="${3}"
32069 func_dirname_result="$func_dirname_result${2}"
32073 # func_basename file
32076 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
32080 # func_stripname prefix suffix name
32081 # strip PREFIX and SUFFIX off of NAME.
32082 # PREFIX and SUFFIX must not contain globbing or regex special
32083 # characters, hashes, percent signs, but SUFFIX may contain a leading
32084 # dot (in which case that matches only a dot).
32085 # func_strip_suffix prefix name
32089 .*) func_stripname_result=`$ECHO "X${3}" \
32090 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
32091 *) func_stripname_result=`$ECHO "X${3}" \
32092 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
32097 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
32098 my_sed_long_arg='1s/^-[^=]*=//'
32103 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
32104 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
32110 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
32113 # func_xform libobj-or-source
32116 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
32119 # func_arith arithmetic-term...
32122 func_arith_result=`expr "$@"`
32126 # STRING may not start with a hyphen.
32129 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
32135 case $lt_shell_append in
32137 cat << \_LT_EOF >> "$cfgfile"
32139 # func_append var value
32140 # Append VALUE to the end of shell variable VAR.
32148 cat << \_LT_EOF >> "$cfgfile"
32150 # func_append var value
32151 # Append VALUE to the end of shell variable VAR.
32162 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
32163 || (rm -f "$cfgfile"; exit 1)
32165 mv -f "$cfgfile" "$ofile" ||
32166 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32170 cat <<_LT_EOF >> "$ofile"
32172 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32174 # The linker used to build libraries.
32177 # Commands used to build an old-style archive.
32178 old_archive_cmds=$lt_old_archive_cmds_CXX
32180 # A language specific compiler.
32181 CC=$lt_compiler_CXX
32183 # Is the compiler the GNU compiler?
32186 # Compiler flag to turn off builtin functions.
32187 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32189 # How to pass a linker flag through the compiler.
32190 wl=$lt_lt_prog_compiler_wl_CXX
32192 # Additional compiler flags for building library objects.
32193 pic_flag=$lt_lt_prog_compiler_pic_CXX
32195 # Compiler flag to prevent dynamic linking.
32196 link_static_flag=$lt_lt_prog_compiler_static_CXX
32198 # Does compiler simultaneously support -c and -o options?
32199 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32201 # Whether or not to add -lc for building shared libraries.
32202 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32204 # Whether or not to disallow shared libs when runtime libs are static.
32205 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32207 # Compiler flag to allow reflexive dlopens.
32208 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32210 # Compiler flag to generate shared objects directly from archives.
32211 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32213 # Whether the compiler copes with passing no objects directly.
32214 compiler_needs_object=$lt_compiler_needs_object_CXX
32216 # Create an old-style archive from a shared archive.
32217 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32219 # Create a temporary old-style archive to link instead of a shared archive.
32220 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32222 # Commands used to build a shared archive.
32223 archive_cmds=$lt_archive_cmds_CXX
32224 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32226 # Commands used to build a loadable module if different from building
32227 # a shared archive.
32228 module_cmds=$lt_module_cmds_CXX
32229 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32231 # Whether we are building with GNU ld or not.
32232 with_gnu_ld=$lt_with_gnu_ld_CXX
32234 # Flag that allows shared libraries with undefined symbols to be built.
32235 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32237 # Flag that enforces no undefined symbols.
32238 no_undefined_flag=$lt_no_undefined_flag_CXX
32240 # Flag to hardcode \$libdir into a binary during linking.
32241 # This must work even if \$libdir does not exist
32242 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32244 # If ld is used when linking, flag to hardcode \$libdir into a binary
32245 # during linking. This must work even if \$libdir does not exist.
32246 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32248 # Whether we need a single "-rpath" flag with a separated argument.
32249 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32251 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32252 # DIR into the resulting binary.
32253 hardcode_direct=$hardcode_direct_CXX
32255 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32256 # DIR into the resulting binary and the resulting library dependency is
32257 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32258 # library is relocated.
32259 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32261 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32262 # into the resulting binary.
32263 hardcode_minus_L=$hardcode_minus_L_CXX
32265 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32266 # into the resulting binary.
32267 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32269 # Set to "yes" if building a shared library automatically hardcodes DIR
32270 # into the library and all subsequent libraries and executables linked
32272 hardcode_automatic=$hardcode_automatic_CXX
32274 # Set to yes if linker adds runtime paths of dependent libraries
32275 # to runtime path list.
32276 inherit_rpath=$inherit_rpath_CXX
32278 # Whether libtool must link a program against all its dependency libraries.
32279 link_all_deplibs=$link_all_deplibs_CXX
32281 # Fix the shell variable \$srcfile for the compiler.
32282 fix_srcfile_path=$lt_fix_srcfile_path_CXX
32284 # Set to "yes" if exported symbols are required.
32285 always_export_symbols=$always_export_symbols_CXX
32287 # The commands to list exported symbols.
32288 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32290 # Symbols that should not be listed in the preloaded symbols.
32291 exclude_expsyms=$lt_exclude_expsyms_CXX
32293 # Symbols that must always be exported.
32294 include_expsyms=$lt_include_expsyms_CXX
32296 # Commands necessary for linking programs (against libraries) with templates.
32297 prelink_cmds=$lt_prelink_cmds_CXX
32299 # Specify filename containing input files.
32300 file_list_spec=$lt_file_list_spec_CXX
32302 # How to hardcode a shared library path into an executable.
32303 hardcode_action=$hardcode_action_CXX
32305 # The directories searched by this compiler when creating a shared library.
32306 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32308 # Dependencies to place before and after the objects being linked to
32309 # create a shared library.
32310 predep_objects=$lt_predep_objects_CXX
32311 postdep_objects=$lt_postdep_objects_CXX
32312 predeps=$lt_predeps_CXX
32313 postdeps=$lt_postdeps_CXX
32315 # The library search path used internally by the compiler when linking
32316 # a shared library.
32317 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32319 # ### END LIBTOOL TAG CONFIG: CXX
32324 for ac_file in $CONFIG_FILES; do
32325 # Support "outfile[:infile[:infile...]]"
32327 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32329 # PO directories have a Makefile.in generated from Makefile.in.in.
32330 case "$ac_file" in */Makefile.in)
32331 # Adjust a relative srcdir.
32332 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32333 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32334 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32335 # In autoconf-2.13 it is called $ac_given_srcdir.
32336 # In autoconf-2.50 it is called $srcdir.
32337 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32338 case "$ac_given_srcdir" in
32339 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32340 /*) top_srcdir="$ac_given_srcdir" ;;
32341 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32343 # Treat a directory as a PO directory if and only if it has a
32344 # POTFILES.in file. This allows packages to have multiple PO
32345 # directories under different names or in different locations.
32346 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32347 rm -f "$ac_dir/POTFILES"
32348 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32349 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32350 POMAKEFILEDEPS="POTFILES.in"
32351 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32352 # on $ac_dir but don't depend on user-specified configuration
32354 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32355 # The LINGUAS file contains the set of available languages.
32356 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32357 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32359 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32360 # Hide the ALL_LINGUAS assigment from automake.
32361 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32362 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32364 # The set of available languages was given in configure.in.
32365 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32368 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32369 # Compute UPDATEPOFILES
32370 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32371 # Compute DUMMYPOFILES
32372 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32374 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32375 case "$ac_given_srcdir" in
32377 *) srcdirpre='$(srcdir)/' ;;
32383 for lang in $ALL_LINGUAS; do
32384 POFILES="$POFILES $srcdirpre$lang.po"
32385 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32386 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32387 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32389 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32390 # environment variable.
32392 if test -n "$ALL_LINGUAS"; then
32393 for presentlang in $ALL_LINGUAS; do
32395 if test "%UNSET%" != "$LINGUAS"; then
32396 desiredlanguages="$LINGUAS"
32398 desiredlanguages="$ALL_LINGUAS"
32400 for desiredlang in $desiredlanguages; do
32401 # Use the presentlang catalog if desiredlang is
32402 # a. equal to presentlang, or
32403 # b. a variant of presentlang (because in this case,
32404 # presentlang can be used as a fallback for messages
32405 # which are not translated in the desiredlang catalog).
32406 case "$desiredlang" in
32407 "$presentlang"*) useit=yes;;
32410 if test $useit = yes; then
32411 INST_LINGUAS="$INST_LINGUAS $presentlang"
32416 if test -n "$INST_LINGUAS"; then
32417 for lang in $INST_LINGUAS; do
32418 CATALOGS="$CATALOGS $lang.gmo"
32421 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32422 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"
32423 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32424 if test -f "$f"; then
32426 *.orig | *.bak | *~) ;;
32427 *) cat "$f" >> "$ac_dir/Makefile" ;;
32444 ac_clean_files=$ac_clean_files_save
32446 test $ac_write_fail = 0 ||
32447 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
32450 # configure is writing to config.log, and then calls config.status.
32451 # config.status does its own redirection, appending to config.log.
32452 # Unfortunately, on DOS this fails, as config.log is still kept open
32453 # by configure, so config.status won't be able to write to it; its
32454 # output is simply discarded. So we exec the FD to /dev/null,
32455 # effectively closing config.log, so it can be properly (re)opened and
32456 # appended to by config.status. When coming back to configure, we
32457 # need to make the FD available again.
32458 if test "$no_create" != yes; then
32460 ac_config_status_args=
32461 test "$silent" = yes &&
32462 ac_config_status_args="$ac_config_status_args --quiet"
32464 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32466 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32467 # would make configure fail if this is the last instruction.
32468 $ac_cs_success || as_fn_exit $?
32470 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32472 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32476 if test "${support_bat}" = "yes" ; then
32477 if test "x$QMAKE" = "xnone"; then
32478 as_fn_error "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
32483 echo "Creating bat Makefile"
32488 ${MAKE:-make} clean
32492 if test X"$GCC" = "Xyes" ; then
32493 echo "Doing make of dependencies"
32494 ${MAKE:-make} depend
32498 chmod 755 install_conf_file build-depkgs-qt-console
32502 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32503 chmod 755 dvd-handler dvd-simulator
32504 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32508 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
32509 chmod 755 $c/update_postgresql_tables_10_to_11
32510 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
32511 chmod 755 $c/update_postgresql_tables_11_to_12
32516 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32517 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32519 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32520 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32522 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32523 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32525 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32526 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32528 chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
32529 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
32532 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
32533 chmod 755 $c/sqlite
32536 chmod 755 src/win32/build-depkgs-mingw32
32538 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32539 largefile_support="yes"
32542 if test X"$GCC" = "Xyes" ; then
32543 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32544 if test "x${CCVERSION}" = "x" ; then
32545 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32547 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32548 if test x"${CXXVERSION}" = x ; then
32549 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32553 # clean up any old junk
32557 ${MAKE:-make} clean
32560 Configuration on `date`:
32562 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32563 Bacula version: ${BACULA} ${VERSION} (${DATE})
32564 Source code location: ${srcdir}
32565 Install binaries: ${sbindir}
32566 Install libraries: ${libdir}
32567 Install config files: ${sysconfdir}
32568 Scripts directory: ${scriptdir}
32569 Archive directory: ${archivedir}
32570 Working directory: ${working_dir}
32571 PID directory: ${piddir}
32572 Subsys directory: ${subsysdir}
32573 Man directory: ${mandir}
32574 Data directory: ${datarootdir}
32575 Plugin directory: ${plugindir}
32576 C Compiler: ${CC} ${CCVERSION}
32577 C++ Compiler: ${CXX} ${CXXVERSION}
32578 Compiler flags: ${WCFLAGS} ${CFLAGS}
32579 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32581 Statically Linked Tools: ${support_static_tools}
32582 Statically Linked FD: ${support_static_fd}
32583 Statically Linked SD: ${support_static_sd}
32584 Statically Linked DIR: ${support_static_dir}
32585 Statically Linked CONS: ${support_static_cons}
32586 Database backends: ${db_backends}
32587 Database port: ${db_port}
32588 Database name: ${db_name}
32589 Database user: ${db_user}
32591 Job Output Email: ${job_email}
32592 Traceback Email: ${dump_email}
32593 SMTP Host Address: ${smtp_host}
32595 Director Port: ${dir_port}
32596 File daemon Port: ${fd_port}
32597 Storage daemon Port: ${sd_port}
32599 Director User: ${dir_user}
32600 Director Group: ${dir_group}
32601 Storage Daemon User: ${sd_user}
32602 Storage DaemonGroup: ${sd_group}
32603 File Daemon User: ${fd_user}
32604 File Daemon Group: ${fd_group}
32606 Large file support: $largefile_support
32607 Bacula conio support: ${got_conio} ${CONS_LIBS}
32608 readline support: ${got_readline} ${PRTREADLINE_SRC}
32609 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32610 TLS support: ${support_tls}
32611 Encryption support: ${support_crypto}
32612 ZLIB support: ${have_zlib}
32613 enable-smartalloc: ${support_smartalloc}
32614 enable-lockmgr: ${support_lockmgr}
32615 bat support: ${support_bat}
32616 enable-gnome: ${support_gnome} ${gnome_version}
32617 enable-bwx-console: ${support_wx_console} ${wx_version}
32618 enable-tray-monitor: ${support_tray_monitor}
32619 client-only: ${build_client_only}
32620 build-dird: ${build_dird}
32621 build-stored: ${build_stored}
32622 Plugin support: ${have_plugins}
32623 AFS support: ${have_afs}
32624 ACL support: ${have_acl}
32625 XATTR support: ${have_xattr}
32626 Python support: ${support_python} ${PYTHON_LIBS}
32627 Batch insert enabled: ${support_batch_insert}
32631 # create a small shell script useful for support with
32632 # configure options and config.out info
32633 cat > scripts/bacula_config << EOF
32636 $ $0 $ac_configure_args
32638 cat config.out >> scripts/bacula_config
32639 echo __EOC__ >> scripts/bacula_config
32640 chmod 755 scripts/bacula_config