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
834 TRAY_MONITOR_CPPFLAGS
843 INTL_LIBTOOL_SUFFIX_PREFIX
850 BUILD_INCLUDED_LIBINTL
881 HAVE_OPENBSD_OS_FALSE
885 HAVE_FREEBSD_OS_FALSE
897 INCLUDE_UNINSTALL_TARGET
898 INCLUDE_INSTALL_TARGET
902 LIBTOOL_UNINSTALL_TARGET
903 LIBTOOL_INSTALL_TARGET
904 DEFAULT_SHARED_OBJECT_TYPE
1018 program_transform_name
1029 ac_subst_files='MCOMMON'
1031 enable_option_checking
1042 with_libiconv_prefix
1044 with_included_gettext
1083 with_mon_dir_password
1084 with_mon_fd_password
1085 with_mon_sd_password
1110 ac_precious_vars='build_alias
1128 # Initialize some variables set by options.
1130 ac_init_version=false
1131 ac_unrecognized_opts=
1132 ac_unrecognized_sep=
1133 # The variables have the same names as the options, with
1134 # dashes changed to underlines.
1135 cache_file=/dev/null
1142 program_transform_name=s,x,x,
1150 # Installation directory options.
1151 # These are left unexpanded so users can "make install exec_prefix=/foo"
1152 # and all the variables that are supposed to be based on exec_prefix
1153 # by default will actually change.
1154 # Use braces instead of parens because sh, perl, etc. also accept them.
1155 # (The list follows the same order as the GNU Coding Standards.)
1156 bindir='${exec_prefix}/bin'
1157 sbindir='${exec_prefix}/sbin'
1158 libexecdir='${exec_prefix}/libexec'
1159 datarootdir='${prefix}/share'
1160 datadir='${datarootdir}'
1161 sysconfdir='${prefix}/etc'
1162 sharedstatedir='${prefix}/com'
1163 localstatedir='${prefix}/var'
1164 includedir='${prefix}/include'
1165 oldincludedir='/usr/include'
1166 docdir='${datarootdir}/doc/${PACKAGE}'
1167 infodir='${datarootdir}/info'
1172 libdir='${exec_prefix}/lib'
1173 localedir='${datarootdir}/locale'
1174 mandir='${datarootdir}/man'
1180 # If the previous option needs an argument, assign it.
1181 if test -n "$ac_prev"; then
1182 eval $ac_prev=\$ac_option
1188 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1192 # Accept the important Cygnus configure options, so we can diagnose typos.
1194 case $ac_dashdash$ac_option in
1198 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1200 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1201 bindir=$ac_optarg ;;
1203 -build | --build | --buil | --bui | --bu)
1204 ac_prev=build_alias ;;
1205 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1206 build_alias=$ac_optarg ;;
1208 -cache-file | --cache-file | --cache-fil | --cache-fi \
1209 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1210 ac_prev=cache_file ;;
1211 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1212 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1213 cache_file=$ac_optarg ;;
1215 --config-cache | -C)
1216 cache_file=config.cache ;;
1218 -datadir | --datadir | --datadi | --datad)
1220 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1221 datadir=$ac_optarg ;;
1223 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1224 | --dataroo | --dataro | --datar)
1225 ac_prev=datarootdir ;;
1226 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1227 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1228 datarootdir=$ac_optarg ;;
1230 -disable-* | --disable-*)
1231 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234 as_fn_error "invalid feature name: $ac_useropt"
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1239 "enable_$ac_useropt"
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1244 eval enable_$ac_useropt=no ;;
1246 -docdir | --docdir | --docdi | --doc | --do)
1248 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1249 docdir=$ac_optarg ;;
1251 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1253 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1254 dvidir=$ac_optarg ;;
1256 -enable-* | --enable-*)
1257 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260 as_fn_error "invalid feature name: $ac_useropt"
1261 ac_useropt_orig=$ac_useropt
1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1265 "enable_$ac_useropt"
1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1268 ac_unrecognized_sep=', ';;
1270 eval enable_$ac_useropt=\$ac_optarg ;;
1272 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1273 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1274 | --exec | --exe | --ex)
1275 ac_prev=exec_prefix ;;
1276 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1277 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1278 | --exec=* | --exe=* | --ex=*)
1279 exec_prefix=$ac_optarg ;;
1281 -gas | --gas | --ga | --g)
1282 # Obsolete; use --with-gas.
1285 -help | --help | --hel | --he | -h)
1286 ac_init_help=long ;;
1287 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1288 ac_init_help=recursive ;;
1289 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1290 ac_init_help=short ;;
1292 -host | --host | --hos | --ho)
1293 ac_prev=host_alias ;;
1294 -host=* | --host=* | --hos=* | --ho=*)
1295 host_alias=$ac_optarg ;;
1297 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1299 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1301 htmldir=$ac_optarg ;;
1303 -includedir | --includedir | --includedi | --included | --include \
1304 | --includ | --inclu | --incl | --inc)
1305 ac_prev=includedir ;;
1306 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1307 | --includ=* | --inclu=* | --incl=* | --inc=*)
1308 includedir=$ac_optarg ;;
1310 -infodir | --infodir | --infodi | --infod | --info | --inf)
1312 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1313 infodir=$ac_optarg ;;
1315 -libdir | --libdir | --libdi | --libd)
1317 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1318 libdir=$ac_optarg ;;
1320 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1321 | --libexe | --libex | --libe)
1322 ac_prev=libexecdir ;;
1323 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1324 | --libexe=* | --libex=* | --libe=*)
1325 libexecdir=$ac_optarg ;;
1327 -localedir | --localedir | --localedi | --localed | --locale)
1328 ac_prev=localedir ;;
1329 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1330 localedir=$ac_optarg ;;
1332 -localstatedir | --localstatedir | --localstatedi | --localstated \
1333 | --localstate | --localstat | --localsta | --localst | --locals)
1334 ac_prev=localstatedir ;;
1335 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1336 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1337 localstatedir=$ac_optarg ;;
1339 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1341 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1342 mandir=$ac_optarg ;;
1344 -nfp | --nfp | --nf)
1345 # Obsolete; use --without-fp.
1348 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1349 | --no-cr | --no-c | -n)
1352 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1353 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1356 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1357 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1358 | --oldin | --oldi | --old | --ol | --o)
1359 ac_prev=oldincludedir ;;
1360 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1361 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1362 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1363 oldincludedir=$ac_optarg ;;
1365 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1367 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1368 prefix=$ac_optarg ;;
1370 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1371 | --program-pre | --program-pr | --program-p)
1372 ac_prev=program_prefix ;;
1373 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1374 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1375 program_prefix=$ac_optarg ;;
1377 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1378 | --program-suf | --program-su | --program-s)
1379 ac_prev=program_suffix ;;
1380 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1381 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1382 program_suffix=$ac_optarg ;;
1384 -program-transform-name | --program-transform-name \
1385 | --program-transform-nam | --program-transform-na \
1386 | --program-transform-n | --program-transform- \
1387 | --program-transform | --program-transfor \
1388 | --program-transfo | --program-transf \
1389 | --program-trans | --program-tran \
1390 | --progr-tra | --program-tr | --program-t)
1391 ac_prev=program_transform_name ;;
1392 -program-transform-name=* | --program-transform-name=* \
1393 | --program-transform-nam=* | --program-transform-na=* \
1394 | --program-transform-n=* | --program-transform-=* \
1395 | --program-transform=* | --program-transfor=* \
1396 | --program-transfo=* | --program-transf=* \
1397 | --program-trans=* | --program-tran=* \
1398 | --progr-tra=* | --program-tr=* | --program-t=*)
1399 program_transform_name=$ac_optarg ;;
1401 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1403 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1404 pdfdir=$ac_optarg ;;
1406 -psdir | --psdir | --psdi | --psd | --ps)
1408 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1412 | -silent | --silent | --silen | --sile | --sil)
1415 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1417 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1419 sbindir=$ac_optarg ;;
1421 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1422 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1423 | --sharedst | --shareds | --shared | --share | --shar \
1425 ac_prev=sharedstatedir ;;
1426 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1427 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1428 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1430 sharedstatedir=$ac_optarg ;;
1432 -site | --site | --sit)
1434 -site=* | --site=* | --sit=*)
1437 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1439 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1440 srcdir=$ac_optarg ;;
1442 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1443 | --syscon | --sysco | --sysc | --sys | --sy)
1444 ac_prev=sysconfdir ;;
1445 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1446 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1447 sysconfdir=$ac_optarg ;;
1449 -target | --target | --targe | --targ | --tar | --ta | --t)
1450 ac_prev=target_alias ;;
1451 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1452 target_alias=$ac_optarg ;;
1454 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1457 -version | --version | --versio | --versi | --vers | -V)
1458 ac_init_version=: ;;
1461 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1462 # Reject names that are not valid shell variable names.
1463 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1464 as_fn_error "invalid package name: $ac_useropt"
1465 ac_useropt_orig=$ac_useropt
1466 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1467 case $ac_user_opts in
1471 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1472 ac_unrecognized_sep=', ';;
1474 eval with_$ac_useropt=\$ac_optarg ;;
1476 -without-* | --without-*)
1477 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1478 # Reject names that are not valid shell variable names.
1479 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1480 as_fn_error "invalid package name: $ac_useropt"
1481 ac_useropt_orig=$ac_useropt
1482 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1483 case $ac_user_opts in
1487 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1488 ac_unrecognized_sep=', ';;
1490 eval with_$ac_useropt=no ;;
1493 # Obsolete; use --with-x.
1496 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1497 | --x-incl | --x-inc | --x-in | --x-i)
1498 ac_prev=x_includes ;;
1499 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1500 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1501 x_includes=$ac_optarg ;;
1503 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1504 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1505 ac_prev=x_libraries ;;
1506 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1507 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1508 x_libraries=$ac_optarg ;;
1510 -*) as_fn_error "unrecognized option: \`$ac_option'
1511 Try \`$0 --help' for more information."
1515 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1516 # Reject names that are not valid shell variable names.
1517 case $ac_envvar in #(
1518 '' | [0-9]* | *[!_$as_cr_alnum]* )
1519 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1521 eval $ac_envvar=\$ac_optarg
1522 export $ac_envvar ;;
1525 # FIXME: should be removed in autoconf 3.0.
1526 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1527 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1528 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1529 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1535 if test -n "$ac_prev"; then
1536 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1537 as_fn_error "missing argument to $ac_option"
1540 if test -n "$ac_unrecognized_opts"; then
1541 case $enable_option_checking in
1543 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1544 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1548 # Check all directory arguments for consistency.
1549 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1550 datadir sysconfdir sharedstatedir localstatedir includedir \
1551 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1552 libdir localedir mandir
1554 eval ac_val=\$$ac_var
1555 # Remove trailing slashes.
1558 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1559 eval $ac_var=\$ac_val;;
1561 # Be sure to have absolute directory names.
1563 [\\/$]* | ?:[\\/]* ) continue;;
1564 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1566 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1569 # There might be people who depend on the old broken behavior: `$host'
1570 # used to hold the argument of --host etc.
1571 # FIXME: To remove some day.
1574 target=$target_alias
1576 # FIXME: To remove some day.
1577 if test "x$host_alias" != x; then
1578 if test "x$build_alias" = x; then
1579 cross_compiling=maybe
1580 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1581 If a cross compiler is detected then cross compile mode will be used." >&2
1582 elif test "x$build_alias" != "x$host_alias"; then
1588 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1590 test "$silent" = yes && exec 6>/dev/null
1593 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1594 ac_ls_di=`ls -di .` &&
1595 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1596 as_fn_error "working directory cannot be determined"
1597 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1598 as_fn_error "pwd does not report name of working directory"
1601 # Find the source files, if location was not specified.
1602 if test -z "$srcdir"; then
1603 ac_srcdir_defaulted=yes
1604 # Try the directory containing this script, then the parent directory.
1605 ac_confdir=`$as_dirname -- "$as_myself" ||
1606 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1607 X"$as_myself" : 'X\(//\)[^/]' \| \
1608 X"$as_myself" : 'X\(//\)$' \| \
1609 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1610 $as_echo X"$as_myself" |
1611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1629 if test ! -r "$srcdir/$ac_unique_file"; then
1633 ac_srcdir_defaulted=no
1635 if test ! -r "$srcdir/$ac_unique_file"; then
1636 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1637 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1639 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1641 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1643 # When building in place, set srcdir=.
1644 if test "$ac_abs_confdir" = "$ac_pwd"; then
1647 # Remove unnecessary trailing slashes from srcdir.
1648 # Double slashes in file names in object file debugging info
1649 # mess up M-x gdb in Emacs.
1651 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1653 for ac_var in $ac_precious_vars; do
1654 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1655 eval ac_env_${ac_var}_value=\$${ac_var}
1656 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1657 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1661 # Report the --help message.
1663 if test "$ac_init_help" = "long"; then
1664 # Omit some internal or obsolete options to make the list less imposing.
1665 # This message is too long to be a string in the A/UX 3.1 sh.
1667 \`configure' configures this package to adapt to many kinds of systems.
1669 Usage: $0 [OPTION]... [VAR=VALUE]...
1671 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1672 VAR=VALUE. See below for descriptions of some of the useful variables.
1674 Defaults for the options are specified in brackets.
1677 -h, --help display this help and exit
1678 --help=short display options specific to this package
1679 --help=recursive display the short help of all the included packages
1680 -V, --version display version information and exit
1681 -q, --quiet, --silent do not print \`checking...' messages
1682 --cache-file=FILE cache test results in FILE [disabled]
1683 -C, --config-cache alias for \`--cache-file=config.cache'
1684 -n, --no-create do not create output files
1685 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1687 Installation directories:
1688 --prefix=PREFIX install architecture-independent files in PREFIX
1689 [$ac_default_prefix]
1690 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1693 By default, \`make install' will install all the files in
1694 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1695 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1696 for instance \`--prefix=\$HOME'.
1698 For better control, use the options below.
1700 Fine tuning of the installation directories:
1701 --bindir=DIR user executables [EPREFIX/bin]
1702 --sbindir=DIR system admin executables [EPREFIX/sbin]
1703 --libexecdir=DIR program executables [EPREFIX/libexec]
1704 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1705 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1706 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1707 --libdir=DIR object code libraries [EPREFIX/lib]
1708 --includedir=DIR C header files [PREFIX/include]
1709 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1710 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1711 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1712 --infodir=DIR info documentation [DATAROOTDIR/info]
1713 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1714 --mandir=DIR man documentation [DATAROOTDIR/man]
1715 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1716 --htmldir=DIR html documentation [DOCDIR]
1717 --dvidir=DIR dvi documentation [DOCDIR]
1718 --pdfdir=DIR pdf documentation [DOCDIR]
1719 --psdir=DIR ps documentation [DOCDIR]
1725 --x-includes=DIR X include files are in DIR
1726 --x-libraries=DIR X library files are in DIR
1729 --build=BUILD configure for building on BUILD [guessed]
1730 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1734 if test -n "$ac_init_help"; then
1739 --disable-option-checking ignore unrecognized --enable/--with options
1740 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1741 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1742 --enable-libtool enable building using GNU libtool [default=yes]
1743 --enable-shared[=PKGS] build shared libraries [default=yes]
1744 --enable-static[=PKGS] build static libraries [default=no]
1745 --enable-fast-install[=PKGS]
1746 optimize for fast installation [default=yes]
1747 --disable-libtool-lock avoid locking (might break parallel builds)
1748 --enable-includes enable installing of include files [default=no]
1749 --disable-nls do not use Native Language Support
1750 --disable-rpath do not hardcode runtime library paths
1751 --enable-gnome enable build of bgnome-console GUI [default=no]
1752 --enable-bat enable build of bat Qt4 GUI [default=no]
1753 --enable-bwx-console enable build of wxWidgets console [default=no]
1754 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1756 --enable-smartalloc enable smartalloc debugging support [default=no]
1757 --enable-lockmgr enable lock manager support [default=no]
1758 --enable-static-tools enable static tape tools [default=no]
1759 --enable-static-fd enable static File daemon [default=no]
1760 --enable-static-sd enable static Storage daemon [default=no]
1761 --enable-static-dir enable static Director [default=no]
1762 --enable-static-cons enable static Console [default=no]
1763 --enable-client-only build client (File daemon) only [default=no]
1764 --enable-build-dird enable building of dird (Director) [default=yes]
1765 --enable-build-stored enable building of stored (Storage daemon)
1767 --disable-conio disable conio support [default=no]
1768 --enable-ipv6 enable ipv6 support [default=yes]
1769 --disable-readline disable readline support [default=yes]
1770 --enable-batch-insert enable the DB batch insert code [default=no]
1771 --disable-largefile omit support for large files
1772 --disable-acl disable acl support [default=auto]
1773 --disable-xattr disable xattr support [default=auto]
1776 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1777 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1778 --with-pic try to use only PIC/non-PIC objects [default=use
1780 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1781 --with-gnu-ld assume the C compiler uses GNU ld default=no
1782 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1783 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1784 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1785 --without-libintl-prefix don't search for libintl in includedir and libdir
1786 --with-included-gettext use the GNU gettext library included here
1787 --with-readline[=DIR] specify readline library directory
1788 --with-python[=DIR] Include Python support. DIR is the Python base
1789 install directory, default is to search through a
1790 number of common places for the Python files.
1791 --with-tcp-wrappers[=DIR]
1792 enable tcpwrappers support
1793 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1794 --with-working-dir=PATH specify path of Bacula working directory
1795 --with-archivedir=PATH specify path of SD archive directory
1796 --with-basename=RESNAME specify base resource name for daemons
1797 --with-hostname=RESNAME specify host name for daemons
1798 --with-scriptdir=PATH specify path of Bacula scripts directory
1799 --with-bsrdir=PATH specify path of Bacula bsrs directory
1800 --with-logdir=PATH specify path of Bacula logs directory
1801 --with-plugindir=PATH specify path of Bacula plugins directory
1802 --with-dump-email=EMAIL dump email address
1803 --with-job-email=EMAIL job output email address
1804 --with-smtp-host=HOST SMTP mail host address
1805 --with-pid-dir=PATH specify location of Bacula pid files
1806 --with-subsys-dir=PATH specify location of Bacula subsys file
1807 --with-baseport=PORT specify base port address for daemons
1808 --with-dir-password=PASSWORD
1809 specify Director's password
1810 --with-fd-password=PASSWORD
1811 specify Client's password
1812 --with-sd-password=PASSWORD
1813 specify Storage daemon's password
1814 --with-mon-dir-password=PASSWORD
1815 specify Director's password used by the monitor
1816 --with-mon-fd-password=PASSWORD
1817 specify Client's password used by the monitor
1818 --with-mon-sd-password=PASSWORD
1819 specify Storage daemon's password used by the
1821 --with-db-name=DBNAME specify database name [default=bacula]
1822 --with-db-user=UNAME specify database user [default=bacula]
1823 --with-db-password=PWD specify database password [default=*none*]
1824 --with-db-port=DBPORT specify a database port [default=null]
1825 --with-dir-user=USER specify user for Director daemon
1826 --with-dir-group=GROUP specify group for Director daemon
1827 --with-sd-user=USER specify user for Storage daemon
1828 --with-sd-group=GROUP specify group for Storage daemon
1829 --with-fd-user=USER specify user for File daemon
1830 --with-fd-group=GROUP specify group for File daemon
1831 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1832 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1833 base install directory, [default=/usr/local/pgsql]
1834 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1835 directory, default is to search through a number of
1836 common places for the MySQL files.
1837 --with-embedded-mysql[=DIR]
1838 Include MySQL support. DIR is the MySQL base install
1839 directory, default is to search through a number of
1840 common places for the MySQL files.
1841 --with-ingres[=DIR] Include Ingres support. DIR is the Ingres base
1842 install directory, default is to search through a
1843 number of common places for the Ingres files.
1844 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1845 install directory, default is to search through a
1846 number of common places for the SQLite3 files.
1847 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1848 directory, default is to search through a number of
1849 common places for the DBI files.
1850 --with-dbi-driver[=DRIVER]
1851 Suport for DBI driver. DRIVER is the one DBI driver
1852 like Mysql, Postgresql, others. Default is to not
1853 configure any driver.
1854 --with-x use the X Window System
1856 Some influential environment variables:
1857 CC C compiler command
1858 CFLAGS C compiler flags
1859 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1860 nonstandard directory <lib dir>
1861 LIBS libraries to pass to the linker, e.g. -l<library>
1862 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1863 you have headers in a nonstandard directory <include dir>
1864 CXX C++ compiler command
1865 CXXFLAGS C++ compiler flags
1867 WXCONFIG wx-config command. On some systems, you must set it to
1868 wx-config-2.6 to use wxWidgets 2.6.
1869 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1870 CXXCPP C++ preprocessor
1871 XMKMF Path to xmkmf, Makefile generator for X Window System
1873 Use these variables to override the choices made by `configure' or to help
1874 it to find libraries and programs with nonstandard names/locations.
1876 Report bugs to the package provider.
1881 if test "$ac_init_help" = "recursive"; then
1882 # If there are subdirs, report their specific --help.
1883 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1884 test -d "$ac_dir" ||
1885 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1890 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1892 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1893 # A ".." for each directory in $ac_dir_suffix.
1894 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1895 case $ac_top_builddir_sub in
1896 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1897 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1900 ac_abs_top_builddir=$ac_pwd
1901 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1902 # for backward compatibility:
1903 ac_top_builddir=$ac_top_build_prefix
1906 .) # We are building in place.
1908 ac_top_srcdir=$ac_top_builddir_sub
1909 ac_abs_top_srcdir=$ac_pwd ;;
1910 [\\/]* | ?:[\\/]* ) # Absolute name.
1911 ac_srcdir=$srcdir$ac_dir_suffix;
1912 ac_top_srcdir=$srcdir
1913 ac_abs_top_srcdir=$srcdir ;;
1915 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1916 ac_top_srcdir=$ac_top_build_prefix$srcdir
1917 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1919 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1921 cd "$ac_dir" || { ac_status=$?; continue; }
1922 # Check for guested configure.
1923 if test -f "$ac_srcdir/configure.gnu"; then
1925 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1926 elif test -f "$ac_srcdir/configure"; then
1928 $SHELL "$ac_srcdir/configure" --help=recursive
1930 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1932 cd "$ac_pwd" || { ac_status=$?; break; }
1936 test -n "$ac_init_help" && exit $ac_status
1937 if $ac_init_version; then
1940 generated by GNU Autoconf 2.65
1942 Copyright (C) 2009 Free Software Foundation, Inc.
1943 This configure script is free software; the Free Software Foundation
1944 gives unlimited permission to copy, distribute and modify it.
1949 ## ------------------------ ##
1950 ## Autoconf initialization. ##
1951 ## ------------------------ ##
1953 # ac_fn_c_try_compile LINENO
1954 # --------------------------
1955 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1956 ac_fn_c_try_compile ()
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 rm -f conftest.$ac_objext
1960 if { { ac_try="$ac_compile"
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;;
1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 $as_echo "$ac_try_echo"; } >&5
1967 (eval "$ac_compile") 2>conftest.err
1969 if test -s conftest.err; then
1970 grep -v '^ *+' conftest.err >conftest.er1
1971 cat conftest.er1 >&5
1972 mv -f conftest.er1 conftest.err
1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975 test $ac_status = 0; } && {
1976 test -z "$ac_c_werror_flag" ||
1977 test ! -s conftest.err
1978 } && test -s conftest.$ac_objext; then :
1981 $as_echo "$as_me: failed program was:" >&5
1982 sed 's/^/| /' conftest.$ac_ext >&5
1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1987 as_fn_set_status $ac_retval
1989 } # ac_fn_c_try_compile
1991 # ac_fn_cxx_try_compile LINENO
1992 # ----------------------------
1993 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1994 ac_fn_cxx_try_compile ()
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 rm -f conftest.$ac_objext
1998 if { { ac_try="$ac_compile"
2000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2001 *) ac_try_echo=$ac_try;;
2003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2004 $as_echo "$ac_try_echo"; } >&5
2005 (eval "$ac_compile") 2>conftest.err
2007 if test -s conftest.err; then
2008 grep -v '^ *+' conftest.err >conftest.er1
2009 cat conftest.er1 >&5
2010 mv -f conftest.er1 conftest.err
2012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2013 test $ac_status = 0; } && {
2014 test -z "$ac_cxx_werror_flag" ||
2015 test ! -s conftest.err
2016 } && test -s conftest.$ac_objext; then :
2019 $as_echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2024 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2025 as_fn_set_status $ac_retval
2027 } # ac_fn_cxx_try_compile
2029 # ac_fn_c_try_cpp LINENO
2030 # ----------------------
2031 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 if { { ac_try="$ac_cpp conftest.$ac_ext"
2037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2038 *) ac_try_echo=$ac_try;;
2040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2041 $as_echo "$ac_try_echo"; } >&5
2042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2044 if test -s conftest.err; then
2045 grep -v '^ *+' conftest.err >conftest.er1
2046 cat conftest.er1 >&5
2047 mv -f conftest.er1 conftest.err
2049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2050 test $ac_status = 0; } >/dev/null && {
2051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2052 test ! -s conftest.err
2056 $as_echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.$ac_ext >&5
2061 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2062 as_fn_set_status $ac_retval
2066 # ac_fn_c_try_link LINENO
2067 # -----------------------
2068 # Try to link conftest.$ac_ext, and return whether this succeeded.
2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072 rm -f conftest.$ac_objext conftest$ac_exeext
2073 if { { ac_try="$ac_link"
2075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076 *) ac_try_echo=$ac_try;;
2078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2079 $as_echo "$ac_try_echo"; } >&5
2080 (eval "$ac_link") 2>conftest.err
2082 if test -s conftest.err; then
2083 grep -v '^ *+' conftest.err >conftest.er1
2084 cat conftest.er1 >&5
2085 mv -f conftest.er1 conftest.err
2087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2088 test $ac_status = 0; } && {
2089 test -z "$ac_c_werror_flag" ||
2090 test ! -s conftest.err
2091 } && test -s conftest$ac_exeext && {
2092 test "$cross_compiling" = yes ||
2093 $as_test_x conftest$ac_exeext
2097 $as_echo "$as_me: failed program was:" >&5
2098 sed 's/^/| /' conftest.$ac_ext >&5
2102 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2103 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2104 # interfere with the next link command; also delete a directory that is
2105 # left behind by Apple's compiler. We do this before executing the actions.
2106 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2107 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2108 as_fn_set_status $ac_retval
2110 } # ac_fn_c_try_link
2112 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2113 # -------------------------------------------------------
2114 # Tests whether HEADER exists and can be compiled using the include files in
2115 # INCLUDES, setting the cache variable VAR accordingly.
2116 ac_fn_c_check_header_compile ()
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2120 $as_echo_n "checking for $2... " >&6; }
2121 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2122 $as_echo_n "(cached) " >&6
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2129 if ac_fn_c_try_compile "$LINENO"; then :
2134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138 $as_echo "$ac_res" >&6; }
2139 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2141 } # ac_fn_c_check_header_compile
2143 # ac_fn_c_try_run LINENO
2144 # ----------------------
2145 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2146 # that executables *can* be run.
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 if { { ac_try="$ac_link"
2152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153 *) ac_try_echo=$ac_try;;
2155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156 $as_echo "$ac_try_echo"; } >&5
2157 (eval "$ac_link") 2>&5
2159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2160 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2161 { { case "(($ac_try" in
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166 $as_echo "$ac_try_echo"; } >&5
2167 (eval "$ac_try") 2>&5
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; }; }; then :
2173 $as_echo "$as_me: program exited with status $ac_status" >&5
2174 $as_echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2177 ac_retval=$ac_status
2179 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2180 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2181 as_fn_set_status $ac_retval
2185 # ac_fn_c_check_func LINENO FUNC VAR
2186 # ----------------------------------
2187 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2188 ac_fn_c_check_func ()
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2192 $as_echo_n "checking for $2... " >&6; }
2193 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2194 $as_echo_n "(cached) " >&6
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2198 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2200 #define $2 innocuous_$2
2202 /* System header to define __stub macros and hopefully few prototypes,
2203 which can conflict with char $2 (); below.
2204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2205 <limits.h> exists even on freestanding compilers. */
2208 # include <limits.h>
2210 # include <assert.h>
2215 /* Override any GCC internal prototype to avoid an error.
2216 Use char because int might match the return type of a GCC
2217 builtin and then its argument prototype would still apply. */
2222 /* The GNU C library defines this for functions which it implements
2223 to always fail with ENOSYS. Some functions are actually named
2224 something starting with __ and the normal name is an alias. */
2225 #if defined __stub_$2 || defined __stub___$2
2237 if ac_fn_c_try_link "$LINENO"; then :
2242 rm -f core conftest.err conftest.$ac_objext \
2243 conftest$ac_exeext conftest.$ac_ext
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2248 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2250 } # ac_fn_c_check_func
2252 # ac_fn_cxx_try_cpp LINENO
2253 # ------------------------
2254 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2255 ac_fn_cxx_try_cpp ()
2257 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258 if { { ac_try="$ac_cpp conftest.$ac_ext"
2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261 *) ac_try_echo=$ac_try;;
2263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2264 $as_echo "$ac_try_echo"; } >&5
2265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2267 if test -s conftest.err; then
2268 grep -v '^ *+' conftest.err >conftest.er1
2269 cat conftest.er1 >&5
2270 mv -f conftest.er1 conftest.err
2272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2273 test $ac_status = 0; } >/dev/null && {
2274 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2275 test ! -s conftest.err
2279 $as_echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2284 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2285 as_fn_set_status $ac_retval
2287 } # ac_fn_cxx_try_cpp
2289 # ac_fn_cxx_try_link LINENO
2290 # -------------------------
2291 # Try to link conftest.$ac_ext, and return whether this succeeded.
2292 ac_fn_cxx_try_link ()
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 rm -f conftest.$ac_objext conftest$ac_exeext
2296 if { { ac_try="$ac_link"
2298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299 *) ac_try_echo=$ac_try;;
2301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2302 $as_echo "$ac_try_echo"; } >&5
2303 (eval "$ac_link") 2>conftest.err
2305 if test -s conftest.err; then
2306 grep -v '^ *+' conftest.err >conftest.er1
2307 cat conftest.er1 >&5
2308 mv -f conftest.er1 conftest.err
2310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2311 test $ac_status = 0; } && {
2312 test -z "$ac_cxx_werror_flag" ||
2313 test ! -s conftest.err
2314 } && test -s conftest$ac_exeext && {
2315 test "$cross_compiling" = yes ||
2316 $as_test_x conftest$ac_exeext
2320 $as_echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2325 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2326 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2327 # interfere with the next link command; also delete a directory that is
2328 # left behind by Apple's compiler. We do this before executing the actions.
2329 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2330 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2331 as_fn_set_status $ac_retval
2333 } # ac_fn_cxx_try_link
2335 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2336 # -------------------------------------------
2337 # Tests whether TYPE exists after having included INCLUDES, setting cache
2338 # variable VAR accordingly.
2339 ac_fn_c_check_type ()
2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2343 $as_echo_n "checking for $2... " >&6; }
2344 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2345 $as_echo_n "(cached) " >&6
2348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h. */
2360 if ac_fn_c_try_compile "$LINENO"; then :
2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h. */
2373 if ac_fn_c_try_compile "$LINENO"; then :
2378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2384 $as_echo "$ac_res" >&6; }
2385 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2387 } # ac_fn_c_check_type
2389 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2390 # -------------------------------------------------------
2391 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2392 # the include files in INCLUDES and setting the cache variable VAR
2394 ac_fn_c_check_header_mongrel ()
2396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2399 $as_echo_n "checking for $2... " >&6; }
2400 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2401 $as_echo_n "(cached) " >&6
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2405 $as_echo "$ac_res" >&6; }
2407 # Is the header compilable?
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2409 $as_echo_n "checking $2 usability... " >&6; }
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2415 if ac_fn_c_try_compile "$LINENO"; then :
2416 ac_header_compiler=yes
2418 ac_header_compiler=no
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2422 $as_echo "$ac_header_compiler" >&6; }
2424 # Is the header present?
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2426 $as_echo_n "checking $2 presence... " >&6; }
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2431 if ac_fn_c_try_cpp "$LINENO"; then :
2432 ac_header_preproc=yes
2434 ac_header_preproc=no
2436 rm -f conftest.err conftest.$ac_ext
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2438 $as_echo "$ac_header_preproc" >&6; }
2440 # So? What about this header?
2441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2444 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2446 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2450 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2452 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2454 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2456 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2458 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2462 $as_echo_n "checking for $2... " >&6; }
2463 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2464 $as_echo_n "(cached) " >&6
2466 eval "$3=\$ac_header_compiler"
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2470 $as_echo "$ac_res" >&6; }
2472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2474 } # ac_fn_c_check_header_mongrel
2476 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2477 # --------------------------------------------
2478 # Tries to find the compile-time value of EXPR in a program that includes
2479 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2481 ac_fn_c_compute_int ()
2483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2484 if test "$cross_compiling" = yes; then
2485 # Depending upon the size, compute the lo and hi bounds.
2486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h. */
2492 static int test_array [1 - 2 * !(($2) >= 0)];
2499 if ac_fn_c_try_compile "$LINENO"; then :
2502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2503 /* end confdefs.h. */
2508 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2515 if ac_fn_c_try_compile "$LINENO"; then :
2516 ac_hi=$ac_mid; break
2518 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2519 if test $ac_lo -le $ac_mid; then
2523 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h. */
2534 static int test_array [1 - 2 * !(($2) < 0)];
2541 if ac_fn_c_try_compile "$LINENO"; then :
2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h. */
2550 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2557 if ac_fn_c_try_compile "$LINENO"; then :
2558 ac_lo=$ac_mid; break
2560 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2561 if test $ac_mid -le $ac_hi; then
2565 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2575 # Binary search between lo and hi bounds.
2576 while test "x$ac_lo" != "x$ac_hi"; do
2577 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579 /* end confdefs.h. */
2584 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2591 if ac_fn_c_try_compile "$LINENO"; then :
2594 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h. */
2606 static long int longval () { return $2; }
2607 static unsigned long int ulongval () { return $2; }
2614 FILE *f = fopen ("conftest.val", "w");
2619 long int i = longval ();
2622 fprintf (f, "%ld", i);
2626 unsigned long int i = ulongval ();
2629 fprintf (f, "%lu", i);
2631 /* Do not output a trailing newline, as this causes \r\n confusion
2632 on some platforms. */
2633 return ferror (f) || fclose (f) != 0;
2639 if ac_fn_c_try_run "$LINENO"; then :
2640 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2645 conftest.$ac_objext conftest.beam conftest.$ac_ext
2649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2650 as_fn_set_status $ac_retval
2652 } # ac_fn_c_compute_int
2654 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2655 # ----------------------------------------------------
2656 # Tries to find if the field MEMBER exists in type AGGR, after including
2657 # INCLUDES, setting cache variable VAR accordingly.
2658 ac_fn_c_check_member ()
2660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2662 $as_echo_n "checking for $2.$3... " >&6; }
2663 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2664 $as_echo_n "(cached) " >&6
2666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2667 /* end confdefs.h. */
2679 if ac_fn_c_try_compile "$LINENO"; then :
2682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h. */
2689 if (sizeof ac_aggr.$3)
2695 if ac_fn_c_try_compile "$LINENO"; then :
2700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2706 $as_echo "$ac_res" >&6; }
2707 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2709 } # ac_fn_c_check_member
2711 # ac_fn_c_check_decl LINENO SYMBOL VAR
2712 # ------------------------------------
2713 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2714 ac_fn_c_check_decl ()
2716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2718 $as_echo_n "checking whether $2 is declared... " >&6; }
2719 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2720 $as_echo_n "(cached) " >&6
2722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2723 /* end confdefs.h. */
2736 if ac_fn_c_try_compile "$LINENO"; then :
2741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2745 $as_echo "$ac_res" >&6; }
2746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2748 } # ac_fn_c_check_decl
2750 # ac_fn_cxx_try_run LINENO
2751 # ------------------------
2752 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2753 # that executables *can* be run.
2754 ac_fn_cxx_try_run ()
2756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2757 if { { ac_try="$ac_link"
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2763 $as_echo "$ac_try_echo"; } >&5
2764 (eval "$ac_link") 2>&5
2766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2767 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2768 { { case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2773 $as_echo "$ac_try_echo"; } >&5
2774 (eval "$ac_try") 2>&5
2776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2777 test $ac_status = 0; }; }; then :
2780 $as_echo "$as_me: program exited with status $ac_status" >&5
2781 $as_echo "$as_me: failed program was:" >&5
2782 sed 's/^/| /' conftest.$ac_ext >&5
2784 ac_retval=$ac_status
2786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2788 as_fn_set_status $ac_retval
2790 } # ac_fn_cxx_try_run
2791 cat >config.log <<_ACEOF
2792 This file contains any messages produced by compilers while
2793 running configure, to aid debugging if configure makes a mistake.
2795 It was created by $as_me, which was
2796 generated by GNU Autoconf 2.65. Invocation command line was
2808 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2809 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2810 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2811 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2812 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2814 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2815 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2817 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2818 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2819 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2820 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2821 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2822 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2823 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 test -z "$as_dir" && as_dir=.
2832 $as_echo "PATH: $as_dir"
2848 # Keep a trace of the command line.
2849 # Strip out --no-create and --no-recursion so they do not pile up.
2850 # Strip out --silent because we don't want to record it for future runs.
2851 # Also quote any args containing shell meta-characters.
2852 # Make two passes to allow for proper duplicate-argument suppression.
2856 ac_must_keep_next=false
2862 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2863 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2864 | -silent | --silent | --silen | --sile | --sil)
2867 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2870 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2872 as_fn_append ac_configure_args1 " '$ac_arg'"
2873 if test $ac_must_keep_next = true; then
2874 ac_must_keep_next=false # Got value, back to normal.
2877 *=* | --config-cache | -C | -disable-* | --disable-* \
2878 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2879 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2880 | -with-* | --with-* | -without-* | --without-* | --x)
2881 case "$ac_configure_args0 " in
2882 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2885 -* ) ac_must_keep_next=true ;;
2888 as_fn_append ac_configure_args " '$ac_arg'"
2893 { ac_configure_args0=; unset ac_configure_args0;}
2894 { ac_configure_args1=; unset ac_configure_args1;}
2896 # When interrupted or exit'd, cleanup temporary files, and complete
2897 # config.log. We remove comments because anyway the quotes in there
2898 # would cause problems or look ugly.
2899 # WARNING: Use '\'' to represent an apostrophe within the trap.
2900 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2901 trap 'exit_status=$?
2902 # Save into config.log some information that might help in debugging.
2907 ## ---------------- ##
2908 ## Cache variables. ##
2909 ## ---------------- ##
2912 # The following way of writing the cache mishandles newlines in values,
2914 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2915 eval ac_val=\$$ac_var
2919 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2920 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2923 _ | IFS | as_nl) ;; #(
2924 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2925 *) { eval $ac_var=; unset $ac_var;} ;;
2930 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2931 *${as_nl}ac_space=\ *)
2933 "s/'\''/'\''\\\\'\'''\''/g;
2934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2937 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2945 ## ----------------- ##
2946 ## Output variables. ##
2947 ## ----------------- ##
2950 for ac_var in $ac_subst_vars
2952 eval ac_val=\$$ac_var
2954 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2956 $as_echo "$ac_var='\''$ac_val'\''"
2960 if test -n "$ac_subst_files"; then
2962 ## ------------------- ##
2963 ## File substitutions. ##
2964 ## ------------------- ##
2967 for ac_var in $ac_subst_files
2969 eval ac_val=\$$ac_var
2971 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2973 $as_echo "$ac_var='\''$ac_val'\''"
2978 if test -s confdefs.h; then
2988 test "$ac_signal" != 0 &&
2989 $as_echo "$as_me: caught signal $ac_signal"
2990 $as_echo "$as_me: exit $exit_status"
2992 rm -f core *.core core.conftest.* &&
2993 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2996 for ac_signal in 1 2 13 15; do
2997 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3001 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3002 rm -f -r conftest* confdefs.h
3004 $as_echo "/* confdefs.h */" > confdefs.h
3006 # Predefined preprocessor variables.
3008 cat >>confdefs.h <<_ACEOF
3009 #define PACKAGE_NAME "$PACKAGE_NAME"
3012 cat >>confdefs.h <<_ACEOF
3013 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3016 cat >>confdefs.h <<_ACEOF
3017 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3020 cat >>confdefs.h <<_ACEOF
3021 #define PACKAGE_STRING "$PACKAGE_STRING"
3024 cat >>confdefs.h <<_ACEOF
3025 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3028 cat >>confdefs.h <<_ACEOF
3029 #define PACKAGE_URL "$PACKAGE_URL"
3033 # Let the site file select an alternate cache file if it wants to.
3034 # Prefer an explicitly selected file to automatically selected ones.
3037 if test -n "$CONFIG_SITE"; then
3038 ac_site_file1=$CONFIG_SITE
3039 elif test "x$prefix" != xNONE; then
3040 ac_site_file1=$prefix/share/config.site
3041 ac_site_file2=$prefix/etc/config.site
3043 ac_site_file1=$ac_default_prefix/share/config.site
3044 ac_site_file2=$ac_default_prefix/etc/config.site
3046 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3048 test "x$ac_site_file" = xNONE && continue
3049 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3051 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3052 sed 's/^/| /' "$ac_site_file" >&5
3057 if test -r "$cache_file"; then
3058 # Some versions of bash will fail to source /dev/null (special files
3059 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3060 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3062 $as_echo "$as_me: loading cache $cache_file" >&6;}
3064 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3065 *) . "./$cache_file";;
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3070 $as_echo "$as_me: creating cache $cache_file" >&6;}
3074 as_fn_append ac_header_list " stdlib.h"
3075 as_fn_append ac_header_list " unistd.h"
3076 as_fn_append ac_header_list " sys/param.h"
3077 # Check that the precious variables saved in the cache have kept the same
3079 ac_cache_corrupted=false
3080 for ac_var in $ac_precious_vars; do
3081 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3082 eval ac_new_set=\$ac_env_${ac_var}_set
3083 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3084 eval ac_new_val=\$ac_env_${ac_var}_value
3085 case $ac_old_set,$ac_new_set in
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3088 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3089 ac_cache_corrupted=: ;;
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3092 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3093 ac_cache_corrupted=: ;;
3096 if test "x$ac_old_val" != "x$ac_new_val"; then
3097 # differences in whitespace do not lead to failure.
3098 ac_old_val_w=`echo x $ac_old_val`
3099 ac_new_val_w=`echo x $ac_new_val`
3100 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3102 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3103 ac_cache_corrupted=:
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3106 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3107 eval $ac_var=\$ac_old_val
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3110 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3112 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3115 # Pass precious variables to config.status.
3116 if test "$ac_new_set" = set; then
3118 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3119 *) ac_arg=$ac_var=$ac_new_val ;;
3121 case " $ac_configure_args " in
3122 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3123 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3127 if $ac_cache_corrupted; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3131 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3132 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3134 ## -------------------- ##
3135 ## Main body of script. ##
3136 ## -------------------- ##
3139 ac_cpp='$CPP $CPPFLAGS'
3140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3152 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3153 for ac_t in install-sh install.sh shtool; do
3154 if test -f "$ac_dir/$ac_t"; then
3156 ac_install_sh="$ac_aux_dir/$ac_t -c"
3161 if test -z "$ac_aux_dir"; then
3162 as_fn_error "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3165 # These three variables are undocumented and unsupported,
3166 # and are intended to be withdrawn in a future Autoconf release.
3167 # They can cause serious problems if a builder's source tree is in a directory
3168 # whose full name contains unusual characters.
3169 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3170 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3171 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3174 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3177 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3178 WIN32MAINDIR=${BUILD_DIR}
3179 WIN32TOPDIR=${TOP_DIR}
3189 # Extract the first word of "$ac_prog", so it can be a program name with args.
3190 set dummy $ac_prog; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if test "${ac_cv_path_TRUEPRG+set}" = set; then :
3194 $as_echo_n "(cached) " >&6
3198 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 test -z "$as_dir" && as_dir=.
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3208 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 TRUEPRG=$ac_cv_path_TRUEPRG
3220 if test -n "$TRUEPRG"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3222 $as_echo "$TRUEPRG" >&6; }
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3229 test -n "$TRUEPRG" && break
3231 test -n "$TRUEPRG" || TRUEPRG=":"
3233 for ac_prog in false
3235 # Extract the first word of "$ac_prog", so it can be a program name with args.
3236 set dummy $ac_prog; ac_word=$2
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238 $as_echo_n "checking for $ac_word... " >&6; }
3239 if test "${ac_cv_path_FALSEPRG+set}" = set; then :
3240 $as_echo_n "(cached) " >&6
3244 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 FALSEPRG=$ac_cv_path_FALSEPRG
3266 if test -n "$FALSEPRG"; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3268 $as_echo "$FALSEPRG" >&6; }
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3275 test -n "$FALSEPRG" && break
3277 test -n "$FALSEPRG" || FALSEPRG=":"
3282 if test "x$BACULA" != x; then
3283 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3285 BACULA=${BACULA:-Bacula}
3286 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3287 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3288 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3289 echo "configuring for ${BACULA} $VERSION ($DATE)"
3293 ac_cpp='$CPP $CPPFLAGS'
3294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297 if test -n "$ac_tool_prefix"; then
3298 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3299 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 $as_echo_n "checking for $ac_word... " >&6; }
3302 if test "${ac_cv_prog_CC+set}" = set; then :
3303 $as_echo_n "(cached) " >&6
3305 if test -n "$CC"; then
3306 ac_cv_prog_CC="$CC" # Let the user override the test.
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3315 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 if test -n "$CC"; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3328 $as_echo "$CC" >&6; }
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3336 if test -z "$ac_cv_prog_CC"; then
3338 # Extract the first word of "gcc", so it can be a program name with args.
3339 set dummy gcc; ac_word=$2
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3343 $as_echo_n "(cached) " >&6
3345 if test -n "$ac_ct_CC"; then
3346 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3355 ac_cv_prog_ac_ct_CC="gcc"
3356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3366 if test -n "$ac_ct_CC"; then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3368 $as_echo "$ac_ct_CC" >&6; }
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3374 if test "x$ac_ct_CC" = x; then
3377 case $cross_compiling:$ac_tool_warned in
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3381 ac_tool_warned=yes ;;
3389 if test -z "$CC"; then
3390 if test -n "$ac_tool_prefix"; then
3391 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3392 set dummy ${ac_tool_prefix}cc; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if test "${ac_cv_prog_CC+set}" = set; then :
3396 $as_echo_n "(cached) " >&6
3398 if test -n "$CC"; then
3399 ac_cv_prog_CC="$CC" # Let the user override the test.
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3408 ac_cv_prog_CC="${ac_tool_prefix}cc"
3409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 if test -n "$CC"; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3421 $as_echo "$CC" >&6; }
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3430 if test -z "$CC"; then
3431 # Extract the first word of "cc", so it can be a program name with args.
3432 set dummy cc; ac_word=$2
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if test "${ac_cv_prog_CC+set}" = set; then :
3436 $as_echo_n "(cached) " >&6
3438 if test -n "$CC"; then
3439 ac_cv_prog_CC="$CC" # Let the user override the test.
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3449 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3450 ac_prog_rejected=yes
3454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 if test $ac_prog_rejected = yes; then
3462 # We found a bogon in the path, so make sure we never use it.
3463 set dummy $ac_cv_prog_CC
3465 if test $# != 0; then
3466 # We chose a different compiler from the bogus one.
3467 # However, it has the same basename, so the bogon will be chosen
3468 # first if we set CC to just the basename; use the full file name.
3470 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3476 if test -n "$CC"; then
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3478 $as_echo "$CC" >&6; }
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3486 if test -z "$CC"; then
3487 if test -n "$ac_tool_prefix"; then
3488 for ac_prog in cl.exe
3490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if test "${ac_cv_prog_CC+set}" = set; then :
3495 $as_echo_n "(cached) " >&6
3497 if test -n "$CC"; then
3498 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 if test -n "$CC"; then
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3520 $as_echo "$CC" >&6; }
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 $as_echo "no" >&6; }
3527 test -n "$CC" && break
3530 if test -z "$CC"; then
3532 for ac_prog in cl.exe
3534 # Extract the first word of "$ac_prog", so it can be a program name with args.
3535 set dummy $ac_prog; ac_word=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3539 $as_echo_n "(cached) " >&6
3541 if test -n "$ac_ct_CC"; then
3542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3551 ac_cv_prog_ac_ct_CC="$ac_prog"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3564 $as_echo "$ac_ct_CC" >&6; }
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3571 test -n "$ac_ct_CC" && break
3574 if test "x$ac_ct_CC" = x; then
3577 case $cross_compiling:$ac_tool_warned in
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3581 ac_tool_warned=yes ;;
3590 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592 as_fn_error "no acceptable C compiler found in \$PATH
3593 See \`config.log' for more details." "$LINENO" 5; }
3595 # Provide some information about the compiler.
3596 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3599 for ac_option in --version -v -V -qversion; do
3600 { { ac_try="$ac_compiler $ac_option >&5"
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606 $as_echo "$ac_try_echo"; } >&5
3607 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3609 if test -s conftest.err; then
3611 ... rest of stderr output deleted ...
3612 10q' conftest.err >conftest.er1
3613 cat conftest.er1 >&5
3615 rm -f conftest.er1 conftest.err
3616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3617 test $ac_status = 0; }
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3631 ac_clean_files_save=$ac_clean_files
3632 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3633 # Try to create an executable without -o first, disregard a.out.
3634 # It will help us diagnose broken compilers, and finding out an intuition
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3637 $as_echo_n "checking whether the C compiler works... " >&6; }
3638 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3640 # The possible output files:
3641 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3644 for ac_file in $ac_files
3647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3648 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3653 if { { ac_try="$ac_link_default"
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659 $as_echo "$ac_try_echo"; } >&5
3660 (eval "$ac_link_default") 2>&5
3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 test $ac_status = 0; }; then :
3664 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3665 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3666 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3667 # so that the user can short-circuit this test for compilers unknown to
3669 for ac_file in $ac_files ''
3671 test -f "$ac_file" || continue
3673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3676 # We found the default executable, but exeext='' is most
3680 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3682 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3684 # We set ac_cv_exeext here because the later test for it is not
3685 # safe: cross compilers may not add the suffix if given an `-o'
3686 # argument, so we may need to know it at that point already.
3687 # Even if this section looks crufty: it has the advantage of
3694 test "$ac_cv_exeext" = no && ac_cv_exeext=
3699 if test -z "$ac_file"; then :
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3702 $as_echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3707 { as_fn_set_status 77
3708 as_fn_error "C compiler cannot create executables
3709 See \`config.log' for more details." "$LINENO" 5; }; }
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3712 $as_echo "yes" >&6; }
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3715 $as_echo_n "checking for C compiler default output file name... " >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3717 $as_echo "$ac_file" >&6; }
3718 ac_exeext=$ac_cv_exeext
3720 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3721 ac_clean_files=$ac_clean_files_save
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3723 $as_echo_n "checking for suffix of executables... " >&6; }
3724 if { { ac_try="$ac_link"
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730 $as_echo "$ac_try_echo"; } >&5
3731 (eval "$ac_link") 2>&5
3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734 test $ac_status = 0; }; then :
3735 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3736 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3737 # work properly (i.e., refer to `conftest.exe'), while it won't with
3739 for ac_file in conftest.exe conftest conftest.*; do
3740 test -f "$ac_file" || continue
3742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3743 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3751 as_fn_error "cannot compute suffix of executables: cannot compile and link
3752 See \`config.log' for more details." "$LINENO" 5; }
3754 rm -f conftest conftest$ac_cv_exeext
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3756 $as_echo "$ac_cv_exeext" >&6; }
3758 rm -f conftest.$ac_ext
3759 EXEEXT=$ac_cv_exeext
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3767 FILE *f = fopen ("conftest.out", "w");
3768 return ferror (f) || fclose (f) != 0;
3774 ac_clean_files="$ac_clean_files conftest.out"
3775 # Check that the compiler produces executables we can run. If not, either
3776 # the compiler is broken, or we cross compile.
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3778 $as_echo_n "checking whether we are cross compiling... " >&6; }
3779 if test "$cross_compiling" != yes; then
3780 { { ac_try="$ac_link"
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786 $as_echo "$ac_try_echo"; } >&5
3787 (eval "$ac_link") 2>&5
3789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3790 test $ac_status = 0; }
3791 if { ac_try='./conftest$ac_cv_exeext'
3792 { { case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797 $as_echo "$ac_try_echo"; } >&5
3798 (eval "$ac_try") 2>&5
3800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3801 test $ac_status = 0; }; }; then
3804 if test "$cross_compiling" = maybe; then
3807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3809 as_fn_error "cannot run C compiled programs.
3810 If you meant to cross compile, use \`--host'.
3811 See \`config.log' for more details." "$LINENO" 5; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3816 $as_echo "$cross_compiling" >&6; }
3818 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3819 ac_clean_files=$ac_clean_files_save
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3821 $as_echo_n "checking for suffix of object files... " >&6; }
3822 if test "${ac_cv_objext+set}" = set; then :
3823 $as_echo_n "(cached) " >&6
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3836 rm -f conftest.o conftest.obj
3837 if { { ac_try="$ac_compile"
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 $as_echo "$ac_try_echo"; } >&5
3844 (eval "$ac_compile") 2>&5
3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847 test $ac_status = 0; }; then :
3848 for ac_file in conftest.o conftest.obj conftest.*; do
3849 test -f "$ac_file" || continue;
3851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3852 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3857 $as_echo "$as_me: failed program was:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3862 as_fn_error "cannot compute suffix of object files: cannot compile
3863 See \`config.log' for more details." "$LINENO" 5; }
3865 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3868 $as_echo "$ac_cv_objext" >&6; }
3869 OBJEXT=$ac_cv_objext
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3872 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3873 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3874 $as_echo_n "(cached) " >&6
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3890 if ac_fn_c_try_compile "$LINENO"; then :
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3900 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3901 if test $ac_compiler_gnu = yes; then
3906 ac_test_CFLAGS=${CFLAGS+set}
3907 ac_save_CFLAGS=$CFLAGS
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3909 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3910 if test "${ac_cv_prog_cc_g+set}" = set; then :
3911 $as_echo_n "(cached) " >&6
3913 ac_save_c_werror_flag=$ac_c_werror_flag
3914 ac_c_werror_flag=yes
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3928 if ac_fn_c_try_compile "$LINENO"; then :
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3943 if ac_fn_c_try_compile "$LINENO"; then :
3946 ac_c_werror_flag=$ac_save_c_werror_flag
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3959 if ac_fn_c_try_compile "$LINENO"; then :
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 ac_c_werror_flag=$ac_save_c_werror_flag
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3970 $as_echo "$ac_cv_prog_cc_g" >&6; }
3971 if test "$ac_test_CFLAGS" = set; then
3972 CFLAGS=$ac_save_CFLAGS
3973 elif test $ac_cv_prog_cc_g = yes; then
3974 if test "$GCC" = yes; then
3980 if test "$GCC" = yes; then
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3987 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3988 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3989 $as_echo_n "(cached) " >&6
3991 ac_cv_prog_cc_c89=no
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3997 #include <sys/types.h>
3998 #include <sys/stat.h>
3999 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4000 struct buf { int x; };
4001 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4002 static char *e (p, i)
4008 static char *f (char * (*g) (char **, int), char **p, ...)
4013 s = g (p, va_arg (v,int));
4018 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4019 function prototypes and stuff, but not '\xHH' hex character constants.
4020 These don't provoke an error unfortunately, instead are silently treated
4021 as 'x'. The following induces an error, until -std is added to get
4022 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4023 array size at least. It's necessary to write '\x00'==0 to get something
4024 that's true only with -std. */
4025 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4027 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4028 inside strings and character constants. */
4030 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4032 int test (int i, double x);
4033 struct s1 {int (*f) (int a);};
4034 struct s2 {int (*f) (double a);};
4035 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4041 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4046 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4047 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4049 CC="$ac_save_CC $ac_arg"
4050 if ac_fn_c_try_compile "$LINENO"; then :
4051 ac_cv_prog_cc_c89=$ac_arg
4053 rm -f core conftest.err conftest.$ac_objext
4054 test "x$ac_cv_prog_cc_c89" != "xno" && break
4056 rm -f conftest.$ac_ext
4061 case "x$ac_cv_prog_cc_c89" in
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4064 $as_echo "none needed" >&6; } ;;
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4067 $as_echo "unsupported" >&6; } ;;
4069 CC="$CC $ac_cv_prog_cc_c89"
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4071 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4073 if test "x$ac_cv_prog_cc_c89" != xno; then :
4078 ac_cpp='$CPP $CPPFLAGS'
4079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4084 ac_cpp='$CXXCPP $CPPFLAGS'
4085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4088 if test -z "$CXX"; then
4089 if test -n "$CCC"; then
4092 if test -n "$ac_tool_prefix"; then
4093 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4095 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 $as_echo_n "checking for $ac_word... " >&6; }
4099 if test "${ac_cv_prog_CXX+set}" = set; then :
4100 $as_echo_n "(cached) " >&6
4102 if test -n "$CXX"; then
4103 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4112 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 if test -n "$CXX"; then
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4125 $as_echo "$CXX" >&6; }
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4132 test -n "$CXX" && break
4135 if test -z "$CXX"; then
4137 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4139 # Extract the first word of "$ac_prog", so it can be a program name with args.
4140 set dummy $ac_prog; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4144 $as_echo_n "(cached) " >&6
4146 if test -n "$ac_ct_CXX"; then
4147 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4156 ac_cv_prog_ac_ct_CXX="$ac_prog"
4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4167 if test -n "$ac_ct_CXX"; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4169 $as_echo "$ac_ct_CXX" >&6; }
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4176 test -n "$ac_ct_CXX" && break
4179 if test "x$ac_ct_CXX" = x; then
4182 case $cross_compiling:$ac_tool_warned in
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4186 ac_tool_warned=yes ;;
4194 # Provide some information about the compiler.
4195 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4198 for ac_option in --version -v -V -qversion; do
4199 { { ac_try="$ac_compiler $ac_option >&5"
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205 $as_echo "$ac_try_echo"; } >&5
4206 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4208 if test -s conftest.err; then
4210 ... rest of stderr output deleted ...
4211 10q' conftest.err >conftest.er1
4212 cat conftest.er1 >&5
4214 rm -f conftest.er1 conftest.err
4215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4216 test $ac_status = 0; }
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4220 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4221 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4222 $as_echo_n "(cached) " >&6
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h. */
4238 if ac_fn_cxx_try_compile "$LINENO"; then :
4243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4248 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4249 if test $ac_compiler_gnu = yes; then
4254 ac_test_CXXFLAGS=${CXXFLAGS+set}
4255 ac_save_CXXFLAGS=$CXXFLAGS
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4257 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4258 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4259 $as_echo_n "(cached) " >&6
4261 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4262 ac_cxx_werror_flag=yes
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4276 if ac_fn_cxx_try_compile "$LINENO"; then :
4277 ac_cv_prog_cxx_g=yes
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4291 if ac_fn_cxx_try_compile "$LINENO"; then :
4294 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4307 if ac_fn_cxx_try_compile "$LINENO"; then :
4308 ac_cv_prog_cxx_g=yes
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4318 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4319 if test "$ac_test_CXXFLAGS" = set; then
4320 CXXFLAGS=$ac_save_CXXFLAGS
4321 elif test $ac_cv_prog_cxx_g = yes; then
4322 if test "$GXX" = yes; then
4328 if test "$GXX" = yes; then
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340 if test "x$CC" != xcc; then
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4342 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4345 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4347 set dummy $CC; ac_cc=`$as_echo "$2" |
4348 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4349 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4350 $as_echo_n "(cached) " >&6
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4363 # Make sure it works both with $CC and with simple cc.
4364 # We do the test twice because some compilers refuse to overwrite an
4365 # existing .o file with -o, though they will create one.
4366 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4368 if { { case "(($ac_try" in
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4373 $as_echo "$ac_try_echo"; } >&5
4374 (eval "$ac_try") 2>&5
4376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4377 test $ac_status = 0; } &&
4378 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4383 $as_echo "$ac_try_echo"; } >&5
4384 (eval "$ac_try") 2>&5
4386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4387 test $ac_status = 0; };
4389 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4390 if test "x$CC" != xcc; then
4391 # Test first that cc exists at all.
4392 if { ac_try='cc -c conftest.$ac_ext >&5'
4393 { { case "(($ac_try" in
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4398 $as_echo "$ac_try_echo"; } >&5
4399 (eval "$ac_try") 2>&5
4401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4402 test $ac_status = 0; }; }; then
4403 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4405 if { { case "(($ac_try" in
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4410 $as_echo "$ac_try_echo"; } >&5
4411 (eval "$ac_try") 2>&5
4413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414 test $ac_status = 0; } &&
4415 test -f conftest2.$ac_objext && { { 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; };
4429 # cc exists but doesn't like -o.
4430 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4435 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4437 rm -f core conftest*
4440 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4442 $as_echo "yes" >&6; }
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4447 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4452 ac_cpp='$CPP $CPPFLAGS'
4453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4457 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4458 # On Suns, sometimes $CPP names a directory.
4459 if test -n "$CPP" && test -d "$CPP"; then
4462 if test -z "$CPP"; then
4463 if test "${ac_cv_prog_CPP+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4466 # Double quotes because CPP needs to be expanded
4467 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4470 for ac_c_preproc_warn_flag in '' yes
4472 # Use a header file that comes with gcc, so configuring glibc
4473 # with a fresh cross-compiler works.
4474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4475 # <limits.h> exists even on freestanding compilers.
4476 # On the NeXT, cc -E runs the code through the compiler's parser,
4477 # not just through cpp. "Syntax error" is here to catch this case.
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4481 # include <limits.h>
4483 # include <assert.h>
4487 if ac_fn_c_try_cpp "$LINENO"; then :
4490 # Broken: fails on valid input.
4493 rm -f conftest.err conftest.$ac_ext
4495 # OK, works on sane cases. Now check whether nonexistent headers
4496 # can be detected and how.
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4499 #include <ac_nonexistent.h>
4501 if ac_fn_c_try_cpp "$LINENO"; then :
4502 # Broken: success on invalid input.
4505 # Passes both tests.
4509 rm -f conftest.err conftest.$ac_ext
4512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4513 rm -f conftest.err conftest.$ac_ext
4514 if $ac_preproc_ok; then :
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4527 $as_echo "$CPP" >&6; }
4529 for ac_c_preproc_warn_flag in '' yes
4531 # Use a header file that comes with gcc, so configuring glibc
4532 # with a fresh cross-compiler works.
4533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4534 # <limits.h> exists even on freestanding compilers.
4535 # On the NeXT, cc -E runs the code through the compiler's parser,
4536 # not just through cpp. "Syntax error" is here to catch this case.
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4540 # include <limits.h>
4542 # include <assert.h>
4546 if ac_fn_c_try_cpp "$LINENO"; then :
4549 # Broken: fails on valid input.
4552 rm -f conftest.err conftest.$ac_ext
4554 # OK, works on sane cases. Now check whether nonexistent headers
4555 # can be detected and how.
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4558 #include <ac_nonexistent.h>
4560 if ac_fn_c_try_cpp "$LINENO"; then :
4561 # Broken: success on invalid input.
4564 # Passes both tests.
4568 rm -f conftest.err conftest.$ac_ext
4571 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4572 rm -f conftest.err conftest.$ac_ext
4573 if $ac_preproc_ok; then :
4576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4578 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4579 See \`config.log' for more details." "$LINENO" 5; }
4583 ac_cpp='$CPP $CPPFLAGS'
4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4590 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4591 if test "${ac_cv_path_GREP+set}" = set; then :
4592 $as_echo_n "(cached) " >&6
4594 if test -z "$GREP"; then
4595 ac_path_GREP_found=false
4596 # Loop through the user's path and test for each of PROGNAME-LIST
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4601 test -z "$as_dir" && as_dir=.
4602 for ac_prog in grep ggrep; do
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4605 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4606 # Check for GNU ac_path_GREP and select it if it is found.
4607 # Check for GNU $ac_path_GREP
4608 case `"$ac_path_GREP" --version 2>&1` in
4610 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4613 $as_echo_n 0123456789 >"conftest.in"
4616 cat "conftest.in" "conftest.in" >"conftest.tmp"
4617 mv "conftest.tmp" "conftest.in"
4618 cp "conftest.in" "conftest.nl"
4619 $as_echo 'GREP' >> "conftest.nl"
4620 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4621 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4622 as_fn_arith $ac_count + 1 && ac_count=$as_val
4623 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4624 # Best one so far, save it but keep looking for a better one
4625 ac_cv_path_GREP="$ac_path_GREP"
4626 ac_path_GREP_max=$ac_count
4628 # 10*(2^10) chars as input seems more than enough
4629 test $ac_count -gt 10 && break
4631 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4634 $ac_path_GREP_found && break 3
4639 if test -z "$ac_cv_path_GREP"; then
4640 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4643 ac_cv_path_GREP=$GREP
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4648 $as_echo "$ac_cv_path_GREP" >&6; }
4649 GREP="$ac_cv_path_GREP"
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4653 $as_echo_n "checking for egrep... " >&6; }
4654 if test "${ac_cv_path_EGREP+set}" = set; then :
4655 $as_echo_n "(cached) " >&6
4657 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4658 then ac_cv_path_EGREP="$GREP -E"
4660 if test -z "$EGREP"; then
4661 ac_path_EGREP_found=false
4662 # Loop through the user's path and test for each of PROGNAME-LIST
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4667 test -z "$as_dir" && as_dir=.
4668 for ac_prog in egrep; do
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4671 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4672 # Check for GNU ac_path_EGREP and select it if it is found.
4673 # Check for GNU $ac_path_EGREP
4674 case `"$ac_path_EGREP" --version 2>&1` in
4676 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4679 $as_echo_n 0123456789 >"conftest.in"
4682 cat "conftest.in" "conftest.in" >"conftest.tmp"
4683 mv "conftest.tmp" "conftest.in"
4684 cp "conftest.in" "conftest.nl"
4685 $as_echo 'EGREP' >> "conftest.nl"
4686 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4687 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4688 as_fn_arith $ac_count + 1 && ac_count=$as_val
4689 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4690 # Best one so far, save it but keep looking for a better one
4691 ac_cv_path_EGREP="$ac_path_EGREP"
4692 ac_path_EGREP_max=$ac_count
4694 # 10*(2^10) chars as input seems more than enough
4695 test $ac_count -gt 10 && break
4697 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4700 $ac_path_EGREP_found && break 3
4705 if test -z "$ac_cv_path_EGREP"; then
4706 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4709 ac_cv_path_EGREP=$EGREP
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4715 $as_echo "$ac_cv_path_EGREP" >&6; }
4716 EGREP="$ac_cv_path_EGREP"
4719 if test $ac_cv_c_compiler_gnu = yes; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4721 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4722 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4723 $as_echo_n "(cached) " >&6
4725 ac_pattern="Autoconf.*'x'"
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4732 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4733 ac_cv_prog_gcc_traditional=yes
4735 ac_cv_prog_gcc_traditional=no
4740 if test $ac_cv_prog_gcc_traditional = no; then
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4747 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4748 ac_cv_prog_gcc_traditional=yes
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4755 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4756 if test $ac_cv_prog_gcc_traditional = yes; then
4757 CC="$CC -traditional"
4761 BASECC=`basename $CC`
4763 if test "x$BASECC" = xgcc; then
4764 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4768 # Extract the first word of "$CXX", so it can be a program name with args.
4769 set dummy $CXX; ac_word=$2
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 $as_echo_n "checking for $ac_word... " >&6; }
4772 if test "${ac_cv_path_CXX+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4777 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4800 if test -n "$CXX"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4802 $as_echo "$CXX" >&6; }
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4809 if test ! -e $CXX; then
4810 as_fn_error "Unable to find C++ compiler" "$LINENO" 5
4813 # Find a good install program. We prefer a C program (faster),
4814 # so one script is as good as another. But avoid the broken or
4815 # incompatible versions:
4816 # SysV /etc/install, /usr/sbin/install
4817 # SunOS /usr/etc/install
4818 # IRIX /sbin/install
4820 # AmigaOS /C/install, which installs bootblocks on floppy discs
4821 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4822 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4823 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4824 # OS/2's system install, which has a completely different semantic
4825 # ./install, which can be erroneously created by make from ./install.sh.
4826 # Reject install programs that cannot install multiple files.
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4828 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4829 if test -z "$INSTALL"; then
4830 if test "${ac_cv_path_install+set}" = set; then :
4831 $as_echo_n "(cached) " >&6
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 test -z "$as_dir" && as_dir=.
4838 # Account for people who put trailing slashes in PATH elements.
4839 case $as_dir/ in #((
4840 ./ | .// | /[cC]/* | \
4841 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4842 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4845 # OSF1 and SCO ODT 3.0 have their own names for install.
4846 # Don't use installbsd from OSF since it installs stuff as root
4848 for ac_prog in ginstall scoinst install; do
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4851 if test $ac_prog = install &&
4852 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4853 # AIX install. It has an incompatible calling convention.
4855 elif test $ac_prog = install &&
4856 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4857 # program-specific install script used by HP pwplus--don't use.
4860 rm -rf conftest.one conftest.two conftest.dir
4861 echo one > conftest.one
4862 echo two > conftest.two
4864 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4865 test -s conftest.one && test -s conftest.two &&
4866 test -s conftest.dir/conftest.one &&
4867 test -s conftest.dir/conftest.two
4869 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4882 rm -rf conftest.one conftest.two conftest.dir
4885 if test "${ac_cv_path_install+set}" = set; then
4886 INSTALL=$ac_cv_path_install
4888 # As a last resort, use the slow shell script. Don't cache a
4889 # value for INSTALL within a source directory, because that will
4890 # break other packages using the cache if that directory is
4891 # removed, or if the value is a relative name.
4892 INSTALL=$ac_install_sh
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4896 $as_echo "$INSTALL" >&6; }
4898 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4899 # It thinks the first close brace ends the variable substitution.
4900 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4902 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4904 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4906 # Extract the first word of "mv", so it can be a program name with args.
4907 set dummy mv; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if test "${ac_cv_path_MV+set}" = set; then :
4911 $as_echo_n "(cached) " >&6
4915 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4938 if test -n "$MV"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4940 $as_echo "$MV" >&6; }
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4947 # Extract the first word of "rm", so it can be a program name with args.
4948 set dummy rm; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if test "${ac_cv_path_REMOVE+set}" = set; then :
4952 $as_echo_n "(cached) " >&6
4956 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 test -z "$as_dir" && as_dir=.
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4966 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4978 REMOVE=$ac_cv_path_REMOVE
4979 if test -n "$REMOVE"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4981 $as_echo "$REMOVE" >&6; }
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4988 # Extract the first word of "cp", so it can be a program name with args.
4989 set dummy cp; ac_word=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if test "${ac_cv_path_CP+set}" = set; then :
4993 $as_echo_n "(cached) " >&6
4997 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5007 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5020 if test -n "$CP"; then
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5022 $as_echo "$CP" >&6; }
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025 $as_echo "no" >&6; }
5029 # Extract the first word of "sed", so it can be a program name with args.
5030 set dummy sed; ac_word=$2
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if test "${ac_cv_path_SED+set}" = set; then :
5034 $as_echo_n "(cached) " >&6
5038 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5061 if test -n "$SED"; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5063 $as_echo "$SED" >&6; }
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
5070 # Extract the first word of "echo", so it can be a program name with args.
5071 set dummy echo; ac_word=$2
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if test "${ac_cv_path_ECHO+set}" = set; then :
5075 $as_echo_n "(cached) " >&6
5079 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5101 ECHO=$ac_cv_path_ECHO
5102 if test -n "$ECHO"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5104 $as_echo "$ECHO" >&6; }
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5111 # Extract the first word of "cmp", so it can be a program name with args.
5112 set dummy cmp; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if test "${ac_cv_path_CMP+set}" = set; then :
5116 $as_echo_n "(cached) " >&6
5120 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5143 if test -n "$CMP"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5145 $as_echo "$CMP" >&6; }
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5152 # Extract the first word of "tbl", so it can be a program name with args.
5153 set dummy tbl; ac_word=$2
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if test "${ac_cv_path_TBL+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
5161 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5184 if test -n "$TBL"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5186 $as_echo "$TBL" >&6; }
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5193 # Extract the first word of "ar", so it can be a program name with args.
5194 set dummy ar; ac_word=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if test "${ac_cv_path_AR+set}" = set; then :
5198 $as_echo_n "(cached) " >&6
5202 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5212 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5225 if test -n "$AR"; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5227 $as_echo "$AR" >&6; }
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5234 # Extract the first word of "openssl", so it can be a program name with args.
5235 set dummy openssl; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if test "${ac_cv_path_OPENSSL+set}" = set; then :
5239 $as_echo_n "(cached) " >&6
5243 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5265 OPENSSL=$ac_cv_path_OPENSSL
5266 if test -n "$OPENSSL"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5268 $as_echo "$OPENSSL" >&6; }
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5275 # Extract the first word of "mtx", so it can be a program name with args.
5276 set dummy mtx; ac_word=$2
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if test "${ac_cv_path_MTX+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
5284 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5307 if test -n "$MTX"; then
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5309 $as_echo "$MTX" >&6; }
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 $as_echo "no" >&6; }
5316 # Extract the first word of "dd", so it can be a program name with args.
5317 set dummy dd; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if test "${ac_cv_path_DD+set}" = set; then :
5321 $as_echo_n "(cached) " >&6
5325 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 test -z "$as_dir" && as_dir=.
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5335 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5348 if test -n "$DD"; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5350 $as_echo "$DD" >&6; }
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5357 # Extract the first word of "mkisofs", so it can be a program name with args.
5358 set dummy mkisofs; ac_word=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if test "${ac_cv_path_MKISOFS+set}" = set; then :
5362 $as_echo_n "(cached) " >&6
5366 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 test -z "$as_dir" && as_dir=.
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5376 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5388 MKISOFS=$ac_cv_path_MKISOFS
5389 if test -n "$MKISOFS"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5391 $as_echo "$MKISOFS" >&6; }
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5398 # Extract the first word of "python", so it can be a program name with args.
5399 set dummy python; ac_word=$2
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401 $as_echo_n "checking for $ac_word... " >&6; }
5402 if test "${ac_cv_path_PYTHON+set}" = set; then :
5403 $as_echo_n "(cached) " >&6
5407 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5417 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5429 PYTHON=$ac_cv_path_PYTHON
5430 if test -n "$PYTHON"; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5432 $as_echo "$PYTHON" >&6; }
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5439 # Extract the first word of "growisofs", so it can be a program name with args.
5440 set dummy growisofs; ac_word=$2
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442 $as_echo_n "checking for $ac_word... " >&6; }
5443 if test "${ac_cv_path_GROWISOFS+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
5448 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5470 GROWISOFS=$ac_cv_path_GROWISOFS
5471 if test -n "$GROWISOFS"; then
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5473 $as_echo "$GROWISOFS" >&6; }
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476 $as_echo "no" >&6; }
5480 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5481 set dummy dvd+rw-mediainfo; ac_word=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then :
5485 $as_echo_n "(cached) " >&6
5487 case $DVDRWMEDIAINFO in
5489 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5499 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5511 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5512 if test -n "$DVDRWMEDIAINFO"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5514 $as_echo "$DVDRWMEDIAINFO" >&6; }
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5521 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5522 set dummy dvd+rw-format; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then :
5526 $as_echo_n "(cached) " >&6
5528 case $DVDRWFORMAT in
5530 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 test -z "$as_dir" && as_dir=.
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5540 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5548 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5552 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5553 if test -n "$DVDRWFORMAT"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5555 $as_echo "$DVDRWFORMAT" >&6; }
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5562 # Extract the first word of "pkg-config", so it can be a program name with args.
5563 set dummy pkg-config; ac_word=$2
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
5567 $as_echo_n "(cached) " >&6
5571 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5581 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5593 PKGCONFIG=$ac_cv_path_PKGCONFIG
5594 if test -n "$PKGCONFIG"; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5596 $as_echo "$PKGCONFIG" >&6; }
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5603 # Extract the first word of "qmake", so it can be a program name with args.
5604 set dummy qmake; ac_word=$2
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if test "${ac_cv_path_QMAKE+set}" = set; then :
5608 $as_echo_n "(cached) " >&6
5612 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5622 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5634 QMAKE=$ac_cv_path_QMAKE
5635 if test -n "$QMAKE"; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5637 $as_echo "$QMAKE" >&6; }
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }
5644 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5645 set dummy qmake-qt4; ac_word=$2
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if test "${ac_cv_path_QMAKEQT4+set}" = set; then :
5649 $as_echo_n "(cached) " >&6
5653 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5663 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5675 QMAKEQT4=$ac_cv_path_QMAKEQT4
5676 if test -n "$QMAKEQT4"; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKEQT4" >&5
5678 $as_echo "$QMAKEQT4" >&6; }
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5685 # Extract the first word of "gmake", so it can be a program name with args.
5686 set dummy gmake; ac_word=$2
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688 $as_echo_n "checking for $ac_word... " >&6; }
5689 if test "${ac_cv_path_GMAKE+set}" = set; then :
5690 $as_echo_n "(cached) " >&6
5694 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 test -z "$as_dir" && as_dir=.
5702 for ac_exec_ext in '' $ac_executable_extensions; do
5703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5704 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5716 GMAKE=$ac_cv_path_GMAKE
5717 if test -n "$GMAKE"; then
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5719 $as_echo "$GMAKE" >&6; }
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5722 $as_echo "no" >&6; }
5727 if test "x$WXCONFIG" = x; then
5730 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5731 set dummy ${WXCONFIG}; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if test "${ac_cv_path_WXCONFIG+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5739 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 test -z "$as_dir" && as_dir=.
5747 for ac_exec_ext in '' $ac_executable_extensions; do
5748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5749 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5761 WXCONFIG=$ac_cv_path_WXCONFIG
5762 if test -n "$WXCONFIG"; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5764 $as_echo "$WXCONFIG" >&6; }
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 $as_echo "no" >&6; }
5772 # Extract the first word of "cdrecord", so it can be a program name with args.
5773 set dummy cdrecord; ac_word=$2
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5775 $as_echo_n "checking for $ac_word... " >&6; }
5776 if test "${ac_cv_path_CDRECORD+set}" = set; then :
5777 $as_echo_n "(cached) " >&6
5781 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5791 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5803 CDRECORD=$ac_cv_path_CDRECORD
5804 if test -n "$CDRECORD"; then
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5806 $as_echo "$CDRECORD" >&6; }
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809 $as_echo "no" >&6; }
5813 # Extract the first word of "pidof", so it can be a program name with args.
5814 set dummy pidof; ac_word=$2
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816 $as_echo_n "checking for $ac_word... " >&6; }
5817 if test "${ac_cv_path_PIDOF+set}" = set; then :
5818 $as_echo_n "(cached) " >&6
5822 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5832 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5844 PIDOF=$ac_cv_path_PIDOF
5845 if test -n "$PIDOF"; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5847 $as_echo "$PIDOF" >&6; }
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850 $as_echo "no" >&6; }
5854 for ac_prog in gawk mawk nawk awk
5856 # Extract the first word of "$ac_prog", so it can be a program name with args.
5857 set dummy $ac_prog; ac_word=$2
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5859 $as_echo_n "checking for $ac_word... " >&6; }
5860 if test "${ac_cv_prog_AWK+set}" = set; then :
5861 $as_echo_n "(cached) " >&6
5863 if test -n "$AWK"; then
5864 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 test -z "$as_dir" && as_dir=.
5871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5873 ac_cv_prog_AWK="$ac_prog"
5874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5884 if test -n "$AWK"; then
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5886 $as_echo "$AWK" >&6; }
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889 $as_echo "no" >&6; }
5893 test -n "$AWK" && break
5896 # Some AWK programs fail, so test it and warn the user
5897 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5898 { if ((prog == $2) || (("(" prog ")") == $2) ||
5899 (("" prog "") == $2) ||
5900 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5902 as_fn_error "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5903 The regex engine of $AWK is too broken to be used you
5904 might want to install GNU AWK.
5905 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5908 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5909 set dummy $THE_AWK; ac_word=$2
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911 $as_echo_n "checking for $ac_word... " >&6; }
5912 if test "${ac_cv_path_AWK+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5917 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5940 if test -n "$AWK"; then
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5942 $as_echo "$AWK" >&6; }
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945 $as_echo "no" >&6; }
5951 test -n "$ARFLAG" || ARFLAGS="cr"
5963 # Check whether --enable-libtool was given.
5964 if test "${enable_libtool+set}" = set; then :
5965 enableval=$enable_libtool;
5966 if test x$enableval = xno; then
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5976 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5981 macro_version='2.2.6'
5982 macro_revision='1.3012'
5996 ltmain="$ac_aux_dir/ltmain.sh"
5998 # Make sure we can run config.sub.
5999 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6000 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6003 $as_echo_n "checking build system type... " >&6; }
6004 if test "${ac_cv_build+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6007 ac_build_alias=$build_alias
6008 test "x$ac_build_alias" = x &&
6009 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6010 test "x$ac_build_alias" = x &&
6011 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6012 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6013 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6017 $as_echo "$ac_cv_build" >&6; }
6018 case $ac_cv_build in
6020 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6023 ac_save_IFS=$IFS; IFS='-'
6029 # Remember, the first character of IFS is used to create $*,
6030 # except with old shells:
6033 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6037 $as_echo_n "checking host system type... " >&6; }
6038 if test "${ac_cv_host+set}" = set; then :
6039 $as_echo_n "(cached) " >&6
6041 if test "x$host_alias" = x; then
6042 ac_cv_host=$ac_cv_build
6044 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6045 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6050 $as_echo "$ac_cv_host" >&6; }
6053 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6056 ac_save_IFS=$IFS; IFS='-'
6062 # Remember, the first character of IFS is used to create $*,
6063 # except with old shells:
6066 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6070 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6071 if test "${ac_cv_path_SED+set}" = set; then :
6072 $as_echo_n "(cached) " >&6
6074 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6075 for ac_i in 1 2 3 4 5 6 7; do
6076 ac_script="$ac_script$as_nl$ac_script"
6078 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6079 { ac_script=; unset ac_script;}
6080 if test -z "$SED"; then
6081 ac_path_SED_found=false
6082 # Loop through the user's path and test for each of PROGNAME-LIST
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 test -z "$as_dir" && as_dir=.
6088 for ac_prog in sed gsed; do
6089 for ac_exec_ext in '' $ac_executable_extensions; do
6090 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6091 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6092 # Check for GNU ac_path_SED and select it if it is found.
6093 # Check for GNU $ac_path_SED
6094 case `"$ac_path_SED" --version 2>&1` in
6096 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6099 $as_echo_n 0123456789 >"conftest.in"
6102 cat "conftest.in" "conftest.in" >"conftest.tmp"
6103 mv "conftest.tmp" "conftest.in"
6104 cp "conftest.in" "conftest.nl"
6105 $as_echo '' >> "conftest.nl"
6106 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6107 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6108 as_fn_arith $ac_count + 1 && ac_count=$as_val
6109 if test $ac_count -gt ${ac_path_SED_max-0}; then
6110 # Best one so far, save it but keep looking for a better one
6111 ac_cv_path_SED="$ac_path_SED"
6112 ac_path_SED_max=$ac_count
6114 # 10*(2^10) chars as input seems more than enough
6115 test $ac_count -gt 10 && break
6117 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6120 $ac_path_SED_found && break 3
6125 if test -z "$ac_cv_path_SED"; then
6126 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6134 $as_echo "$ac_cv_path_SED" >&6; }
6135 SED="$ac_cv_path_SED"
6138 test -z "$SED" && SED=sed
6139 Xsed="$SED -e 1s/^X//"
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6152 $as_echo_n "checking for fgrep... " >&6; }
6153 if test "${ac_cv_path_FGREP+set}" = set; then :
6154 $as_echo_n "(cached) " >&6
6156 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6157 then ac_cv_path_FGREP="$GREP -F"
6159 if test -z "$FGREP"; then
6160 ac_path_FGREP_found=false
6161 # Loop through the user's path and test for each of PROGNAME-LIST
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6166 test -z "$as_dir" && as_dir=.
6167 for ac_prog in fgrep; do
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6170 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6171 # Check for GNU ac_path_FGREP and select it if it is found.
6172 # Check for GNU $ac_path_FGREP
6173 case `"$ac_path_FGREP" --version 2>&1` in
6175 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6178 $as_echo_n 0123456789 >"conftest.in"
6181 cat "conftest.in" "conftest.in" >"conftest.tmp"
6182 mv "conftest.tmp" "conftest.in"
6183 cp "conftest.in" "conftest.nl"
6184 $as_echo 'FGREP' >> "conftest.nl"
6185 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6186 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6187 as_fn_arith $ac_count + 1 && ac_count=$as_val
6188 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6189 # Best one so far, save it but keep looking for a better one
6190 ac_cv_path_FGREP="$ac_path_FGREP"
6191 ac_path_FGREP_max=$ac_count
6193 # 10*(2^10) chars as input seems more than enough
6194 test $ac_count -gt 10 && break
6196 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6199 $ac_path_FGREP_found && break 3
6204 if test -z "$ac_cv_path_FGREP"; then
6205 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6208 ac_cv_path_FGREP=$FGREP
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6214 $as_echo "$ac_cv_path_FGREP" >&6; }
6215 FGREP="$ac_cv_path_FGREP"
6218 test -z "$GREP" && GREP=grep
6238 # Check whether --with-gnu-ld was given.
6239 if test "${with_gnu_ld+set}" = set; then :
6240 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6246 if test "$GCC" = yes; then
6247 # Check if gcc -print-prog-name=ld gives a path.
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6249 $as_echo_n "checking for ld used by $CC... " >&6; }
6252 # gcc leaves a trailing carriage return which upsets mingw
6253 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6255 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6258 # Accept absolute paths.
6260 re_direlt='/[^/][^/]*/\.\./'
6261 # Canonicalize the pathname of ld
6262 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6263 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6264 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6266 test -z "$LD" && LD="$ac_prog"
6269 # If it fails, then pretend we aren't using GCC.
6273 # If it is relative, then search for the first ld in PATH.
6277 elif test "$with_gnu_ld" = yes; then
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6279 $as_echo_n "checking for GNU ld... " >&6; }
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6282 $as_echo_n "checking for non-GNU ld... " >&6; }
6284 if test "${lt_cv_path_LD+set}" = set; then :
6285 $as_echo_n "(cached) " >&6
6287 if test -z "$LD"; then
6288 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6289 for ac_dir in $PATH; do
6291 test -z "$ac_dir" && ac_dir=.
6292 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6293 lt_cv_path_LD="$ac_dir/$ac_prog"
6294 # Check to see if the program is GNU ld. I'd rather use --version,
6295 # but apparently some variants of GNU ld only accept -v.
6296 # Break only if it was the GNU/non-GNU ld that we prefer.
6297 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6298 *GNU* | *'with BFD'*)
6299 test "$with_gnu_ld" != no && break
6302 test "$with_gnu_ld" != yes && break
6309 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6314 if test -n "$LD"; then
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6316 $as_echo "$LD" >&6; }
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 $as_echo "no" >&6; }
6321 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6323 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6324 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6325 $as_echo_n "(cached) " >&6
6327 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6328 case `$LD -v 2>&1 </dev/null` in
6329 *GNU* | *'with BFD'*)
6330 lt_cv_prog_gnu_ld=yes
6333 lt_cv_prog_gnu_ld=no
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6338 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6339 with_gnu_ld=$lt_cv_prog_gnu_ld
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6350 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6351 if test "${lt_cv_path_NM+set}" = set; then :
6352 $as_echo_n "(cached) " >&6
6354 if test -n "$NM"; then
6355 # Let the user override the test.
6358 lt_nm_to_check="${ac_tool_prefix}nm"
6359 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6360 lt_nm_to_check="$lt_nm_to_check nm"
6362 for lt_tmp_nm in $lt_nm_to_check; do
6363 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6364 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6366 test -z "$ac_dir" && ac_dir=.
6367 tmp_nm="$ac_dir/$lt_tmp_nm"
6368 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6369 # Check to see if the nm accepts a BSD-compat flag.
6370 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6371 # nm: unknown option "B" ignored
6372 # Tru64's nm complains that /dev/null is an invalid object file
6373 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6374 */dev/null* | *'Invalid file or object type'*)
6375 lt_cv_path_NM="$tmp_nm -B"
6379 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6381 lt_cv_path_NM="$tmp_nm -p"
6385 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6386 continue # so that we can try to find one that supports BSD flags
6395 : ${lt_cv_path_NM=no}
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6399 $as_echo "$lt_cv_path_NM" >&6; }
6400 if test "$lt_cv_path_NM" != "no"; then
6403 # Didn't find any BSD compatible name lister, look for dumpbin.
6404 if test -n "$ac_tool_prefix"; then
6405 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6407 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6408 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410 $as_echo_n "checking for $ac_word... " >&6; }
6411 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6412 $as_echo_n "(cached) " >&6
6414 if test -n "$DUMPBIN"; then
6415 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6424 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6434 DUMPBIN=$ac_cv_prog_DUMPBIN
6435 if test -n "$DUMPBIN"; then
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6437 $as_echo "$DUMPBIN" >&6; }
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440 $as_echo "no" >&6; }
6444 test -n "$DUMPBIN" && break
6447 if test -z "$DUMPBIN"; then
6448 ac_ct_DUMPBIN=$DUMPBIN
6449 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6451 # Extract the first word of "$ac_prog", so it can be a program name with args.
6452 set dummy $ac_prog; ac_word=$2
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454 $as_echo_n "checking for $ac_word... " >&6; }
6455 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6456 $as_echo_n "(cached) " >&6
6458 if test -n "$ac_ct_DUMPBIN"; then
6459 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 test -z "$as_dir" && as_dir=.
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6468 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6479 if test -n "$ac_ct_DUMPBIN"; then
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6481 $as_echo "$ac_ct_DUMPBIN" >&6; }
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484 $as_echo "no" >&6; }
6488 test -n "$ac_ct_DUMPBIN" && break
6491 if test "x$ac_ct_DUMPBIN" = x; then
6494 case $cross_compiling:$ac_tool_warned in
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6498 ac_tool_warned=yes ;;
6500 DUMPBIN=$ac_ct_DUMPBIN
6505 if test "$DUMPBIN" != ":"; then
6509 test -z "$NM" && NM=nm
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6517 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6518 if test "${lt_cv_nm_interface+set}" = set; then :
6519 $as_echo_n "(cached) " >&6
6521 lt_cv_nm_interface="BSD nm"
6522 echo "int some_variable = 0;" > conftest.$ac_ext
6523 (eval echo "\"\$as_me:6523: $ac_compile\"" >&5)
6524 (eval "$ac_compile" 2>conftest.err)
6525 cat conftest.err >&5
6526 (eval echo "\"\$as_me:6526: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6527 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6528 cat conftest.err >&5
6529 (eval echo "\"\$as_me:6529: output\"" >&5)
6530 cat conftest.out >&5
6531 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6532 lt_cv_nm_interface="MS dumpbin"
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6537 $as_echo "$lt_cv_nm_interface" >&6; }
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6540 $as_echo_n "checking whether ln -s works... " >&6; }
6542 if test "$LN_S" = "ln -s"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6544 $as_echo "yes" >&6; }
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6547 $as_echo "no, using $LN_S" >&6; }
6550 # find the maximum length of command line arguments
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6552 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6553 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6554 $as_echo_n "(cached) " >&6
6561 # On DJGPP, this test can blow up pretty badly due to problems in libc
6562 # (any single argument exceeding 2000 bytes causes a buffer overrun
6563 # during glob expansion). Even if it were fixed, the result of this
6564 # check would be larger than it should be.
6565 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6569 # Under GNU Hurd, this test is not required because there is
6570 # no limit to the length of command line arguments.
6571 # Libtool will interpret -1 as no limit whatsoever
6572 lt_cv_sys_max_cmd_len=-1;
6575 cygwin* | mingw* | cegcc*)
6576 # On Win9x/ME, this test blows up -- it succeeds, but takes
6577 # about 5 minutes as the teststring grows exponentially.
6578 # Worse, since 9x/ME are not pre-emptively multitasking,
6579 # you end up with a "frozen" computer, even though with patience
6580 # the test eventually succeeds (with a max line length of 256k).
6581 # Instead, let's just punt: use the minimum linelength reported by
6582 # all of the supported platforms: 8192 (on NT/2K/XP).
6583 lt_cv_sys_max_cmd_len=8192;
6587 # On AmigaOS with pdksh, this test takes hours, literally.
6588 # So we just punt and use a minimum line length of 8192.
6589 lt_cv_sys_max_cmd_len=8192;
6592 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6593 # This has been around since 386BSD, at least. Likely further.
6594 if test -x /sbin/sysctl; then
6595 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6596 elif test -x /usr/sbin/sysctl; then
6597 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6599 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6601 # And add a safety zone
6602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6603 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6607 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6608 lt_cv_sys_max_cmd_len=196608
6612 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6613 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6614 # nice to cause kernel panics so lets avoid the loop below.
6615 # First set a reasonable default.
6616 lt_cv_sys_max_cmd_len=16384
6618 if test -x /sbin/sysconfig; then
6619 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6620 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6625 lt_cv_sys_max_cmd_len=102400
6627 sysv5* | sco5v6* | sysv4.2uw2*)
6628 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6629 if test -n "$kargmax"; then
6630 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6632 lt_cv_sys_max_cmd_len=32768
6636 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6637 if test -n "$lt_cv_sys_max_cmd_len"; then
6638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6639 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6641 # Make teststring a little bigger before we do anything with it.
6642 # a 1K string should be a reasonable start.
6643 for i in 1 2 3 4 5 6 7 8 ; do
6644 teststring=$teststring$teststring
6646 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6647 # If test is not a shell built-in, we'll probably end up computing a
6648 # maximum length that is only half of the actual maximum length, but
6650 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6651 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6652 test $i != 17 # 1/2 MB should be enough
6655 teststring=$teststring$teststring
6657 # Only check the string length outside the loop.
6658 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6660 # Add a significant safety factor because C++ compilers can tack on
6661 # massive amounts of additional arguments before passing them to the
6662 # linker. It appears as though 1/2 is a usable value.
6663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6670 if test -n $lt_cv_sys_max_cmd_len ; then
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6672 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6675 $as_echo "none" >&6; }
6677 max_cmd_len=$lt_cv_sys_max_cmd_len
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6689 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6690 # Try some XSI features
6693 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6695 && eval 'test $(( 1 + 1 )) -eq 2 \
6696 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6699 $as_echo "$xsi_shell" >&6; }
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6703 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6705 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6707 && lt_shell_append=yes
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6709 $as_echo "$lt_shell_append" >&6; }
6712 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6722 # test EBCDIC or ASCII
6723 case `echo X|tr X '\101'` in
6724 A) # ASCII based system
6725 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6726 lt_SP2NL='tr \040 \012'
6727 lt_NL2SP='tr \015\012 \040\040'
6729 *) # EBCDIC based system
6730 lt_SP2NL='tr \100 \n'
6731 lt_NL2SP='tr \r\n \100\100'
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6744 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6745 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6746 $as_echo_n "(cached) " >&6
6748 lt_cv_ld_reload_flag='-r'
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6751 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6752 reload_flag=$lt_cv_ld_reload_flag
6753 case $reload_flag in
6755 *) reload_flag=" $reload_flag" ;;
6757 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6760 if test "$GCC" = yes; then
6761 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6763 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6776 if test -n "$ac_tool_prefix"; then
6777 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6778 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780 $as_echo_n "checking for $ac_word... " >&6; }
6781 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6782 $as_echo_n "(cached) " >&6
6784 if test -n "$OBJDUMP"; then
6785 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 OBJDUMP=$ac_cv_prog_OBJDUMP
6805 if test -n "$OBJDUMP"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6807 $as_echo "$OBJDUMP" >&6; }
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 $as_echo "no" >&6; }
6815 if test -z "$ac_cv_prog_OBJDUMP"; then
6816 ac_ct_OBJDUMP=$OBJDUMP
6817 # Extract the first word of "objdump", so it can be a program name with args.
6818 set dummy objdump; ac_word=$2
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6822 $as_echo_n "(cached) " >&6
6824 if test -n "$ac_ct_OBJDUMP"; then
6825 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6845 if test -n "$ac_ct_OBJDUMP"; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6847 $as_echo "$ac_ct_OBJDUMP" >&6; }
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6853 if test "x$ac_ct_OBJDUMP" = x; then
6856 case $cross_compiling:$ac_tool_warned in
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6860 ac_tool_warned=yes ;;
6862 OBJDUMP=$ac_ct_OBJDUMP
6865 OBJDUMP="$ac_cv_prog_OBJDUMP"
6868 test -z "$OBJDUMP" && OBJDUMP=objdump
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6879 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6880 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6881 $as_echo_n "(cached) " >&6
6883 lt_cv_file_magic_cmd='$MAGIC_CMD'
6884 lt_cv_file_magic_test_file=
6885 lt_cv_deplibs_check_method='unknown'
6886 # Need to set the preceding variable on all platforms that support
6887 # interlibrary dependencies.
6888 # 'none' -- dependencies not supported.
6889 # `unknown' -- same as none, but documents that we really don't know.
6890 # 'pass_all' -- all dependencies passed with no checks.
6891 # 'test_compile' -- check by making test program.
6892 # 'file_magic [[regex]]' -- check by looking for files in library path
6893 # which responds to the $file_magic_cmd with a given extended regex.
6894 # If you have `file' or equivalent on your system and you're not sure
6895 # whether `pass_all' will *always* work, you probably want this one.
6899 lt_cv_deplibs_check_method=pass_all
6903 lt_cv_deplibs_check_method=pass_all
6907 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6908 lt_cv_file_magic_cmd='/usr/bin/file -L'
6909 lt_cv_file_magic_test_file=/shlib/libc.so
6913 # func_win32_libid is a shell function defined in ltmain.sh
6914 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6915 lt_cv_file_magic_cmd='func_win32_libid'
6919 # Base MSYS/MinGW do not provide the 'file' command needed by
6920 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6921 # unless we find 'file', for example because we are cross-compiling.
6922 if ( file / ) >/dev/null 2>&1; then
6923 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6924 lt_cv_file_magic_cmd='func_win32_libid'
6926 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6927 lt_cv_file_magic_cmd='$OBJDUMP -f'
6932 # use the weaker test based on 'objdump'. See mingw*.
6933 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6934 lt_cv_file_magic_cmd='$OBJDUMP -f'
6937 darwin* | rhapsody*)
6938 lt_cv_deplibs_check_method=pass_all
6941 freebsd* | dragonfly*)
6942 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6945 # Not sure whether the presence of OpenBSD here was a mistake.
6946 # Let's accept both of them until this is cleared up.
6947 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6948 lt_cv_file_magic_cmd=/usr/bin/file
6949 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6953 lt_cv_deplibs_check_method=pass_all
6958 lt_cv_deplibs_check_method=pass_all
6961 hpux10.20* | hpux11*)
6962 lt_cv_file_magic_cmd=/usr/bin/file
6965 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6966 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6969 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]'
6970 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6973 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6974 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6980 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6981 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6984 irix5* | irix6* | nonstopux*)
6986 *-32|*"-32 ") libmagic=32-bit;;
6987 *-n32|*"-n32 ") libmagic=N32;;
6988 *-64|*"-64 ") libmagic=64-bit;;
6989 *) libmagic=never-match;;
6991 lt_cv_deplibs_check_method=pass_all
6994 # This must be Linux ELF.
6995 linux* | k*bsd*-gnu)
6996 lt_cv_deplibs_check_method=pass_all
7000 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7001 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7008 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7009 lt_cv_file_magic_cmd=/usr/bin/file
7010 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7014 lt_cv_deplibs_check_method=pass_all
7018 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7019 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7021 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7025 osf3* | osf4* | osf5*)
7026 lt_cv_deplibs_check_method=pass_all
7030 lt_cv_deplibs_check_method=pass_all
7034 lt_cv_deplibs_check_method=pass_all
7037 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7038 lt_cv_deplibs_check_method=pass_all
7042 case $host_vendor in
7044 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]'
7045 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7048 lt_cv_deplibs_check_method=pass_all
7051 lt_cv_file_magic_cmd='/bin/file'
7052 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7055 lt_cv_file_magic_cmd='/bin/file'
7056 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7057 lt_cv_file_magic_test_file=/lib/libc.so
7060 lt_cv_deplibs_check_method=pass_all
7063 lt_cv_deplibs_check_method=pass_all
7069 lt_cv_deplibs_check_method=pass_all
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7075 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7076 file_magic_cmd=$lt_cv_file_magic_cmd
7077 deplibs_check_method=$lt_cv_deplibs_check_method
7078 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7091 if test -n "$ac_tool_prefix"; then
7092 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7093 set dummy ${ac_tool_prefix}ar; ac_word=$2
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095 $as_echo_n "checking for $ac_word... " >&6; }
7096 if test "${ac_cv_prog_AR+set}" = set; then :
7097 $as_echo_n "(cached) " >&6
7099 if test -n "$AR"; then
7100 ac_cv_prog_AR="$AR" # Let the user override the test.
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7109 ac_cv_prog_AR="${ac_tool_prefix}ar"
7110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 if test -n "$AR"; then
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7122 $as_echo "$AR" >&6; }
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 $as_echo "no" >&6; }
7130 if test -z "$ac_cv_prog_AR"; then
7132 # Extract the first word of "ar", so it can be a program name with args.
7133 set dummy ar; ac_word=$2
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135 $as_echo_n "checking for $ac_word... " >&6; }
7136 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7137 $as_echo_n "(cached) " >&6
7139 if test -n "$ac_ct_AR"; then
7140 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7149 ac_cv_prog_ac_ct_AR="ar"
7150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7160 if test -n "$ac_ct_AR"; then
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7162 $as_echo "$ac_ct_AR" >&6; }
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165 $as_echo "no" >&6; }
7168 if test "x$ac_ct_AR" = x; then
7171 case $cross_compiling:$ac_tool_warned in
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7175 ac_tool_warned=yes ;;
7183 test -z "$AR" && AR=ar
7184 test -z "$AR_FLAGS" && AR_FLAGS=cru
7196 if test -n "$ac_tool_prefix"; then
7197 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7198 set dummy ${ac_tool_prefix}strip; ac_word=$2
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200 $as_echo_n "checking for $ac_word... " >&6; }
7201 if test "${ac_cv_prog_STRIP+set}" = set; then :
7202 $as_echo_n "(cached) " >&6
7204 if test -n "$STRIP"; then
7205 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7214 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 STRIP=$ac_cv_prog_STRIP
7225 if test -n "$STRIP"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7227 $as_echo "$STRIP" >&6; }
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7235 if test -z "$ac_cv_prog_STRIP"; then
7237 # Extract the first word of "strip", so it can be a program name with args.
7238 set dummy strip; ac_word=$2
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240 $as_echo_n "checking for $ac_word... " >&6; }
7241 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7242 $as_echo_n "(cached) " >&6
7244 if test -n "$ac_ct_STRIP"; then
7245 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7254 ac_cv_prog_ac_ct_STRIP="strip"
7255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7265 if test -n "$ac_ct_STRIP"; then
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7267 $as_echo "$ac_ct_STRIP" >&6; }
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 $as_echo "no" >&6; }
7273 if test "x$ac_ct_STRIP" = x; then
7276 case $cross_compiling:$ac_tool_warned in
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7280 ac_tool_warned=yes ;;
7285 STRIP="$ac_cv_prog_STRIP"
7288 test -z "$STRIP" && STRIP=:
7295 if test -n "$ac_tool_prefix"; then
7296 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7297 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299 $as_echo_n "checking for $ac_word... " >&6; }
7300 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7301 $as_echo_n "(cached) " >&6
7303 if test -n "$RANLIB"; then
7304 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 test -z "$as_dir" && as_dir=.
7311 for ac_exec_ext in '' $ac_executable_extensions; do
7312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7313 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 RANLIB=$ac_cv_prog_RANLIB
7324 if test -n "$RANLIB"; then
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7326 $as_echo "$RANLIB" >&6; }
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329 $as_echo "no" >&6; }
7334 if test -z "$ac_cv_prog_RANLIB"; then
7335 ac_ct_RANLIB=$RANLIB
7336 # Extract the first word of "ranlib", so it can be a program name with args.
7337 set dummy ranlib; ac_word=$2
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7339 $as_echo_n "checking for $ac_word... " >&6; }
7340 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7341 $as_echo_n "(cached) " >&6
7343 if test -n "$ac_ct_RANLIB"; then
7344 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 test -z "$as_dir" && as_dir=.
7351 for ac_exec_ext in '' $ac_executable_extensions; do
7352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7353 ac_cv_prog_ac_ct_RANLIB="ranlib"
7354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7364 if test -n "$ac_ct_RANLIB"; then
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7366 $as_echo "$ac_ct_RANLIB" >&6; }
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369 $as_echo "no" >&6; }
7372 if test "x$ac_ct_RANLIB" = x; then
7375 case $cross_compiling:$ac_tool_warned in
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7379 ac_tool_warned=yes ;;
7381 RANLIB=$ac_ct_RANLIB
7384 RANLIB="$ac_cv_prog_RANLIB"
7387 test -z "$RANLIB" && RANLIB=:
7394 # Determine commands to create old-style static archives.
7395 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7396 old_postinstall_cmds='chmod 644 $oldlib'
7397 old_postuninstall_cmds=
7399 if test -n "$RANLIB"; then
7402 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7405 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7408 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7444 # If no C compiler was specified, use CC.
7447 # If no C compiler flags were specified, use CFLAGS.
7448 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7450 # Allow CC to be a program name with arguments.
7454 # Check for command to grab the raw symbol name followed by C symbol from nm.
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7456 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7457 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7458 $as_echo_n "(cached) " >&6
7461 # These are sane defaults that work on at least a few old systems.
7462 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7464 # Character class describing NM global symbol codes.
7465 symcode='[BCDEGRST]'
7467 # Regexp to match symbols that can be accessed directly from C.
7468 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7470 # Define system-specific variables.
7475 cygwin* | mingw* | pw32* | cegcc*)
7476 symcode='[ABCDGISTW]'
7479 if test "$host_cpu" = ia64; then
7480 symcode='[ABCDEGRST]'
7484 symcode='[BCDEGRST]'
7487 symcode='[BCDEGQRST]'
7498 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7506 # If we're using GNU nm, then use its standard symbol codes.
7507 case `$NM -V 2>&1` in
7508 *GNU* | *'with BFD'*)
7509 symcode='[ABCDGIRSTW]' ;;
7512 # Transform an extracted symbol line into a proper C declaration.
7513 # Some systems (esp. on ia64) link data and code symbols differently,
7514 # so use this general approach.
7515 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7517 # Transform an extracted symbol line into symbol name and symbol address
7518 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7519 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'"
7521 # Handle CRLF in mingw tool chain
7525 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7529 # Try without a prefix underscore, then with it.
7530 for ac_symprfx in "" "_"; do
7532 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7533 symxfrm="\\1 $ac_symprfx\\2 \\2"
7535 # Write the raw and C identifiers.
7536 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7537 # Fake it for dumpbin and say T for any non-static function
7538 # and D for any global variable.
7539 # Also find C++ and __fastcall symbols from MSVC++,
7540 # which start with @ or ?.
7541 lt_cv_sys_global_symbol_pipe="$AWK '"\
7542 " {last_section=section; section=\$ 3};"\
7543 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7544 " \$ 0!~/External *\|/{next};"\
7545 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7546 " {if(hide[section]) next};"\
7547 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7548 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7549 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7550 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7551 " ' prfx=^$ac_symprfx"
7553 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7556 # Check to see that the pipe works correctly.
7560 cat > conftest.$ac_ext <<_LT_EOF
7565 void nm_test_func(void);
7566 void nm_test_func(void){}
7570 int main(){nm_test_var='a';nm_test_func();return(0);}
7573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7574 (eval $ac_compile) 2>&5
7576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7577 test $ac_status = 0; }; then
7578 # Now try to grab the symbols.
7580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7581 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7584 test $ac_status = 0; } && test -s "$nlist"; then
7585 # Try sorting and uniquifying the output.
7586 if sort "$nlist" | uniq > "$nlist"T; then
7587 mv -f "$nlist"T "$nlist"
7592 # Make sure that we snagged all the symbols we need.
7593 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7594 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7595 cat <<_LT_EOF > conftest.$ac_ext
7601 # Now generate the symbol file.
7602 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7604 cat <<_LT_EOF >> conftest.$ac_ext
7606 /* The mapping between symbol names and symbols. */
7611 lt__PROGRAM__LTX_preloaded_symbols[] =
7613 { "@PROGRAM@", (void *) 0 },
7615 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7616 cat <<\_LT_EOF >> conftest.$ac_ext
7620 /* This works around a problem in FreeBSD linker */
7621 #ifdef FREEBSD_WORKAROUND
7622 static const void *lt_preloaded_setup() {
7623 return lt__PROGRAM__LTX_preloaded_symbols;
7631 # Now try linking the two files.
7632 mv conftest.$ac_objext conftstm.$ac_objext
7633 lt_save_LIBS="$LIBS"
7634 lt_save_CFLAGS="$CFLAGS"
7635 LIBS="conftstm.$ac_objext"
7636 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7638 (eval $ac_link) 2>&5
7640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7641 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7644 LIBS="$lt_save_LIBS"
7645 CFLAGS="$lt_save_CFLAGS"
7647 echo "cannot find nm_test_func in $nlist" >&5
7650 echo "cannot find nm_test_var in $nlist" >&5
7653 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7656 echo "$progname: failed program was:" >&5
7657 cat conftest.$ac_ext >&5
7659 rm -rf conftest* conftst*
7661 # Do not use the global_symbol_pipe unless it works.
7662 if test "$pipe_works" = yes; then
7665 lt_cv_sys_global_symbol_pipe=
7671 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7672 lt_cv_sys_global_symbol_to_cdecl=
7674 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7676 $as_echo "failed" >&6; }
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7679 $as_echo "ok" >&6; }
7703 # Check whether --enable-libtool-lock was given.
7704 if test "${enable_libtool_lock+set}" = set; then :
7705 enableval=$enable_libtool_lock;
7708 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7710 # Some flags need to be propagated to the compiler or linker for good
7714 # Find out which ABI we are using.
7715 echo 'int i;' > conftest.$ac_ext
7716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7717 (eval $ac_compile) 2>&5
7719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7720 test $ac_status = 0; }; then
7721 case `/usr/bin/file conftest.$ac_objext` in
7733 # Find out which ABI we are using.
7734 echo '#line 7734 "configure"' > conftest.$ac_ext
7735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7736 (eval $ac_compile) 2>&5
7738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7739 test $ac_status = 0; }; then
7740 if test "$lt_cv_prog_gnu_ld" = yes; then
7741 case `/usr/bin/file conftest.$ac_objext` in
7743 LD="${LD-ld} -melf32bsmip"
7746 LD="${LD-ld} -melf32bmipn32"
7749 LD="${LD-ld} -melf64bmip"
7753 case `/usr/bin/file conftest.$ac_objext` in
7769 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7770 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7771 # Find out which ABI we are using.
7772 echo 'int i;' > conftest.$ac_ext
7773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7774 (eval $ac_compile) 2>&5
7776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7777 test $ac_status = 0; }; then
7778 case `/usr/bin/file conftest.o` in
7781 x86_64-*kfreebsd*-gnu)
7782 LD="${LD-ld} -m elf_i386_fbsd"
7785 LD="${LD-ld} -m elf_i386"
7787 ppc64-*linux*|powerpc64-*linux*)
7788 LD="${LD-ld} -m elf32ppclinux"
7791 LD="${LD-ld} -m elf_s390"
7794 LD="${LD-ld} -m elf32_sparc"
7800 x86_64-*kfreebsd*-gnu)
7801 LD="${LD-ld} -m elf_x86_64_fbsd"
7804 LD="${LD-ld} -m elf_x86_64"
7806 ppc*-*linux*|powerpc*-*linux*)
7807 LD="${LD-ld} -m elf64ppc"
7809 s390*-*linux*|s390*-*tpf*)
7810 LD="${LD-ld} -m elf64_s390"
7813 LD="${LD-ld} -m elf64_sparc"
7823 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7824 SAVE_CFLAGS="$CFLAGS"
7825 CFLAGS="$CFLAGS -belf"
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7827 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7828 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7829 $as_echo_n "(cached) " >&6
7832 ac_cpp='$CPP $CPPFLAGS'
7833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h. */
7848 if ac_fn_c_try_link "$LINENO"; then :
7849 lt_cv_cc_needs_belf=yes
7851 lt_cv_cc_needs_belf=no
7853 rm -f core conftest.err conftest.$ac_objext \
7854 conftest$ac_exeext conftest.$ac_ext
7856 ac_cpp='$CPP $CPPFLAGS'
7857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7863 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7864 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7865 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7866 CFLAGS="$SAVE_CFLAGS"
7870 # Find out which ABI we are using.
7871 echo 'int i;' > conftest.$ac_ext
7872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7873 (eval $ac_compile) 2>&5
7875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7876 test $ac_status = 0; }; then
7877 case `/usr/bin/file conftest.o` in
7879 case $lt_cv_prog_gnu_ld in
7880 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7882 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7894 need_locks="$enable_libtool_lock"
7898 rhapsody* | darwin*)
7899 if test -n "$ac_tool_prefix"; then
7900 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7901 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 $as_echo_n "checking for $ac_word... " >&6; }
7904 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
7907 if test -n "$DSYMUTIL"; then
7908 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7917 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7928 if test -n "$DSYMUTIL"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7930 $as_echo "$DSYMUTIL" >&6; }
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7938 if test -z "$ac_cv_prog_DSYMUTIL"; then
7939 ac_ct_DSYMUTIL=$DSYMUTIL
7940 # Extract the first word of "dsymutil", so it can be a program name with args.
7941 set dummy dsymutil; ac_word=$2
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943 $as_echo_n "checking for $ac_word... " >&6; }
7944 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7945 $as_echo_n "(cached) " >&6
7947 if test -n "$ac_ct_DSYMUTIL"; then
7948 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 test -z "$as_dir" && as_dir=.
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7957 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7968 if test -n "$ac_ct_DSYMUTIL"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7970 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 $as_echo "no" >&6; }
7976 if test "x$ac_ct_DSYMUTIL" = x; then
7979 case $cross_compiling:$ac_tool_warned in
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7983 ac_tool_warned=yes ;;
7985 DSYMUTIL=$ac_ct_DSYMUTIL
7988 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7991 if test -n "$ac_tool_prefix"; then
7992 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7993 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995 $as_echo_n "checking for $ac_word... " >&6; }
7996 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7997 $as_echo_n "(cached) " >&6
7999 if test -n "$NMEDIT"; then
8000 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8009 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8019 NMEDIT=$ac_cv_prog_NMEDIT
8020 if test -n "$NMEDIT"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8022 $as_echo "$NMEDIT" >&6; }
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8030 if test -z "$ac_cv_prog_NMEDIT"; then
8031 ac_ct_NMEDIT=$NMEDIT
8032 # Extract the first word of "nmedit", so it can be a program name with args.
8033 set dummy nmedit; ac_word=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8037 $as_echo_n "(cached) " >&6
8039 if test -n "$ac_ct_NMEDIT"; then
8040 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8049 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8060 if test -n "$ac_ct_NMEDIT"; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8062 $as_echo "$ac_ct_NMEDIT" >&6; }
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8068 if test "x$ac_ct_NMEDIT" = x; then
8071 case $cross_compiling:$ac_tool_warned in
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8075 ac_tool_warned=yes ;;
8077 NMEDIT=$ac_ct_NMEDIT
8080 NMEDIT="$ac_cv_prog_NMEDIT"
8083 if test -n "$ac_tool_prefix"; then
8084 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8085 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087 $as_echo_n "checking for $ac_word... " >&6; }
8088 if test "${ac_cv_prog_LIPO+set}" = set; then :
8089 $as_echo_n "(cached) " >&6
8091 if test -n "$LIPO"; then
8092 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 test -z "$as_dir" && as_dir=.
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8101 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8111 LIPO=$ac_cv_prog_LIPO
8112 if test -n "$LIPO"; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8114 $as_echo "$LIPO" >&6; }
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8122 if test -z "$ac_cv_prog_LIPO"; then
8124 # Extract the first word of "lipo", so it can be a program name with args.
8125 set dummy lipo; ac_word=$2
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 $as_echo_n "checking for $ac_word... " >&6; }
8128 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8129 $as_echo_n "(cached) " >&6
8131 if test -n "$ac_ct_LIPO"; then
8132 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 test -z "$as_dir" && as_dir=.
8139 for ac_exec_ext in '' $ac_executable_extensions; do
8140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8141 ac_cv_prog_ac_ct_LIPO="lipo"
8142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8151 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8152 if test -n "$ac_ct_LIPO"; then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8154 $as_echo "$ac_ct_LIPO" >&6; }
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8160 if test "x$ac_ct_LIPO" = x; then
8163 case $cross_compiling:$ac_tool_warned in
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8167 ac_tool_warned=yes ;;
8172 LIPO="$ac_cv_prog_LIPO"
8175 if test -n "$ac_tool_prefix"; then
8176 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8177 set dummy ${ac_tool_prefix}otool; ac_word=$2
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8179 $as_echo_n "checking for $ac_word... " >&6; }
8180 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8181 $as_echo_n "(cached) " >&6
8183 if test -n "$OTOOL"; then
8184 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 test -z "$as_dir" && as_dir=.
8191 for ac_exec_ext in '' $ac_executable_extensions; do
8192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8193 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8203 OTOOL=$ac_cv_prog_OTOOL
8204 if test -n "$OTOOL"; then
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8206 $as_echo "$OTOOL" >&6; }
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209 $as_echo "no" >&6; }
8214 if test -z "$ac_cv_prog_OTOOL"; then
8216 # Extract the first word of "otool", so it can be a program name with args.
8217 set dummy otool; ac_word=$2
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219 $as_echo_n "checking for $ac_word... " >&6; }
8220 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8221 $as_echo_n "(cached) " >&6
8223 if test -n "$ac_ct_OTOOL"; then
8224 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8233 ac_cv_prog_ac_ct_OTOOL="otool"
8234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8244 if test -n "$ac_ct_OTOOL"; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8246 $as_echo "$ac_ct_OTOOL" >&6; }
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249 $as_echo "no" >&6; }
8252 if test "x$ac_ct_OTOOL" = x; then
8255 case $cross_compiling:$ac_tool_warned in
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8259 ac_tool_warned=yes ;;
8264 OTOOL="$ac_cv_prog_OTOOL"
8267 if test -n "$ac_tool_prefix"; then
8268 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8269 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271 $as_echo_n "checking for $ac_word... " >&6; }
8272 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8273 $as_echo_n "(cached) " >&6
8275 if test -n "$OTOOL64"; then
8276 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 test -z "$as_dir" && as_dir=.
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8285 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 OTOOL64=$ac_cv_prog_OTOOL64
8296 if test -n "$OTOOL64"; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8298 $as_echo "$OTOOL64" >&6; }
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 $as_echo "no" >&6; }
8306 if test -z "$ac_cv_prog_OTOOL64"; then
8307 ac_ct_OTOOL64=$OTOOL64
8308 # Extract the first word of "otool64", so it can be a program name with args.
8309 set dummy otool64; ac_word=$2
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311 $as_echo_n "checking for $ac_word... " >&6; }
8312 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8313 $as_echo_n "(cached) " >&6
8315 if test -n "$ac_ct_OTOOL64"; then
8316 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 test -z "$as_dir" && as_dir=.
8323 for ac_exec_ext in '' $ac_executable_extensions; do
8324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8325 ac_cv_prog_ac_ct_OTOOL64="otool64"
8326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8336 if test -n "$ac_ct_OTOOL64"; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8338 $as_echo "$ac_ct_OTOOL64" >&6; }
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }
8344 if test "x$ac_ct_OTOOL64" = x; then
8347 case $cross_compiling:$ac_tool_warned in
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8351 ac_tool_warned=yes ;;
8353 OTOOL64=$ac_ct_OTOOL64
8356 OTOOL64="$ac_cv_prog_OTOOL64"
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8386 $as_echo_n "checking for -single_module linker flag... " >&6; }
8387 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8388 $as_echo_n "(cached) " >&6
8390 lt_cv_apple_cc_single_mod=no
8391 if test -z "${LT_MULTI_MODULE}"; then
8392 # By default we will add the -single_module flag. You can override
8393 # by either setting the environment variable LT_MULTI_MODULE
8394 # non-empty at configure time, or by adding -multi_module to the
8396 rm -rf libconftest.dylib*
8397 echo "int foo(void){return 1;}" > conftest.c
8398 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8399 -dynamiclib -Wl,-single_module conftest.c" >&5
8400 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8401 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8403 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8404 lt_cv_apple_cc_single_mod=yes
8406 cat conftest.err >&5
8408 rm -rf libconftest.dylib*
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8413 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8415 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8416 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8417 $as_echo_n "(cached) " >&6
8419 lt_cv_ld_exported_symbols_list=no
8420 save_LDFLAGS=$LDFLAGS
8421 echo "_main" > conftest.sym
8422 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424 /* end confdefs.h. */
8434 if ac_fn_c_try_link "$LINENO"; then :
8435 lt_cv_ld_exported_symbols_list=yes
8437 lt_cv_ld_exported_symbols_list=no
8439 rm -f core conftest.err conftest.$ac_objext \
8440 conftest$ac_exeext conftest.$ac_ext
8441 LDFLAGS="$save_LDFLAGS"
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8445 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8447 rhapsody* | darwin1.[012])
8448 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8450 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8451 darwin*) # darwin 5.x on
8452 # if running on 10.5 or later, the deployment target defaults
8453 # to the OS version, if on x86, and 10.4, the deployment
8454 # target defaults to 10.4. Don't you love it?
8455 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8456 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8457 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8459 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8461 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8465 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8466 _lt_dar_single_mod='$single_module'
8468 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8469 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8471 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8473 if test "$DSYMUTIL" != ":"; then
8474 _lt_dsymutil='~$DSYMUTIL $lib || :'
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8482 $as_echo_n "checking for ANSI C header files... " >&6; }
8483 if test "${ac_cv_header_stdc+set}" = set; then :
8484 $as_echo_n "(cached) " >&6
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8501 if ac_fn_c_try_compile "$LINENO"; then :
8502 ac_cv_header_stdc=yes
8504 ac_cv_header_stdc=no
8506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8508 if test $ac_cv_header_stdc = yes; then
8509 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h. */
8515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8516 $EGREP "memchr" >/dev/null 2>&1; then :
8519 ac_cv_header_stdc=no
8525 if test $ac_cv_header_stdc = yes; then
8526 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h. */
8532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8533 $EGREP "free" >/dev/null 2>&1; then :
8536 ac_cv_header_stdc=no
8542 if test $ac_cv_header_stdc = yes; then
8543 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8544 if test "$cross_compiling" = yes; then :
8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8551 #if ((' ' & 0x0FF) == 0x020)
8552 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8553 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8555 # define ISLOWER(c) \
8556 (('a' <= (c) && (c) <= 'i') \
8557 || ('j' <= (c) && (c) <= 'r') \
8558 || ('s' <= (c) && (c) <= 'z'))
8559 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8562 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8567 for (i = 0; i < 256; i++)
8568 if (XOR (islower (i), ISLOWER (i))
8569 || toupper (i) != TOUPPER (i))
8574 if ac_fn_c_try_run "$LINENO"; then :
8577 ac_cv_header_stdc=no
8579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8580 conftest.$ac_objext conftest.beam conftest.$ac_ext
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8586 $as_echo "$ac_cv_header_stdc" >&6; }
8587 if test $ac_cv_header_stdc = yes; then
8589 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8593 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8594 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8595 inttypes.h stdint.h unistd.h
8597 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8598 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8600 eval as_val=\$$as_ac_Header
8601 if test "x$as_val" = x""yes; then :
8602 cat >>confdefs.h <<_ACEOF
8603 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8611 for ac_header in dlfcn.h
8613 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8615 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8616 cat >>confdefs.h <<_ACEOF
8617 #define HAVE_DLFCN_H 1
8627 ac_cpp='$CXXCPP $CPPFLAGS'
8628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8631 if test -z "$CXX"; then
8632 if test -n "$CCC"; then
8635 if test -n "$ac_tool_prefix"; then
8636 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8639 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641 $as_echo_n "checking for $ac_word... " >&6; }
8642 if test "${ac_cv_prog_CXX+set}" = set; then :
8643 $as_echo_n "(cached) " >&6
8645 if test -n "$CXX"; then
8646 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652 test -z "$as_dir" && as_dir=.
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8655 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8666 if test -n "$CXX"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8668 $as_echo "$CXX" >&6; }
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8675 test -n "$CXX" && break
8678 if test -z "$CXX"; then
8680 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8682 # Extract the first word of "$ac_prog", so it can be a program name with args.
8683 set dummy $ac_prog; ac_word=$2
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685 $as_echo_n "checking for $ac_word... " >&6; }
8686 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8687 $as_echo_n "(cached) " >&6
8689 if test -n "$ac_ct_CXX"; then
8690 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8696 test -z "$as_dir" && as_dir=.
8697 for ac_exec_ext in '' $ac_executable_extensions; do
8698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8699 ac_cv_prog_ac_ct_CXX="$ac_prog"
8700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8709 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8710 if test -n "$ac_ct_CXX"; then
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8712 $as_echo "$ac_ct_CXX" >&6; }
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8719 test -n "$ac_ct_CXX" && break
8722 if test "x$ac_ct_CXX" = x; then
8725 case $cross_compiling:$ac_tool_warned in
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8729 ac_tool_warned=yes ;;
8737 # Provide some information about the compiler.
8738 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8741 for ac_option in --version -v -V -qversion; do
8742 { { ac_try="$ac_compiler $ac_option >&5"
8744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8745 *) ac_try_echo=$ac_try;;
8747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8748 $as_echo "$ac_try_echo"; } >&5
8749 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8751 if test -s conftest.err; then
8753 ... rest of stderr output deleted ...
8754 10q' conftest.err >conftest.er1
8755 cat conftest.er1 >&5
8757 rm -f conftest.er1 conftest.err
8758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8759 test $ac_status = 0; }
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8763 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8764 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8765 $as_echo_n "(cached) " >&6
8767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768 /* end confdefs.h. */
8781 if ac_fn_cxx_try_compile "$LINENO"; then :
8786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8787 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8791 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8792 if test $ac_compiler_gnu = yes; then
8797 ac_test_CXXFLAGS=${CXXFLAGS+set}
8798 ac_save_CXXFLAGS=$CXXFLAGS
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8800 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8801 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8802 $as_echo_n "(cached) " >&6
8804 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8805 ac_cxx_werror_flag=yes
8808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8809 /* end confdefs.h. */
8819 if ac_fn_cxx_try_compile "$LINENO"; then :
8820 ac_cv_prog_cxx_g=yes
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8834 if ac_fn_cxx_try_compile "$LINENO"; then :
8837 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8850 if ac_fn_cxx_try_compile "$LINENO"; then :
8851 ac_cv_prog_cxx_g=yes
8853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8858 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8861 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8862 if test "$ac_test_CXXFLAGS" = set; then
8863 CXXFLAGS=$ac_save_CXXFLAGS
8864 elif test $ac_cv_prog_cxx_g = yes; then
8865 if test "$GXX" = yes; then
8871 if test "$GXX" = yes; then
8878 ac_cpp='$CPP $CPPFLAGS'
8879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8883 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8884 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8885 (test "X$CXX" != "Xg++"))) ; then
8887 ac_cpp='$CXXCPP $CPPFLAGS'
8888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8892 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8893 if test -z "$CXXCPP"; then
8894 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8895 $as_echo_n "(cached) " >&6
8897 # Double quotes because CXXCPP needs to be expanded
8898 for CXXCPP in "$CXX -E" "/lib/cpp"
8901 for ac_cxx_preproc_warn_flag in '' yes
8903 # Use a header file that comes with gcc, so configuring glibc
8904 # with a fresh cross-compiler works.
8905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8906 # <limits.h> exists even on freestanding compilers.
8907 # On the NeXT, cc -E runs the code through the compiler's parser,
8908 # not just through cpp. "Syntax error" is here to catch this case.
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8912 # include <limits.h>
8914 # include <assert.h>
8918 if ac_fn_cxx_try_cpp "$LINENO"; then :
8921 # Broken: fails on valid input.
8924 rm -f conftest.err conftest.$ac_ext
8926 # OK, works on sane cases. Now check whether nonexistent headers
8927 # can be detected and how.
8928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h. */
8930 #include <ac_nonexistent.h>
8932 if ac_fn_cxx_try_cpp "$LINENO"; then :
8933 # Broken: success on invalid input.
8936 # Passes both tests.
8940 rm -f conftest.err conftest.$ac_ext
8943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8944 rm -f conftest.err conftest.$ac_ext
8945 if $ac_preproc_ok; then :
8950 ac_cv_prog_CXXCPP=$CXXCPP
8953 CXXCPP=$ac_cv_prog_CXXCPP
8955 ac_cv_prog_CXXCPP=$CXXCPP
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8958 $as_echo "$CXXCPP" >&6; }
8960 for ac_cxx_preproc_warn_flag in '' yes
8962 # Use a header file that comes with gcc, so configuring glibc
8963 # with a fresh cross-compiler works.
8964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8965 # <limits.h> exists even on freestanding compilers.
8966 # On the NeXT, cc -E runs the code through the compiler's parser,
8967 # not just through cpp. "Syntax error" is here to catch this case.
8968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h. */
8971 # include <limits.h>
8973 # include <assert.h>
8977 if ac_fn_cxx_try_cpp "$LINENO"; then :
8980 # Broken: fails on valid input.
8983 rm -f conftest.err conftest.$ac_ext
8985 # OK, works on sane cases. Now check whether nonexistent headers
8986 # can be detected and how.
8987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988 /* end confdefs.h. */
8989 #include <ac_nonexistent.h>
8991 if ac_fn_cxx_try_cpp "$LINENO"; then :
8992 # Broken: success on invalid input.
8995 # Passes both tests.
8999 rm -f conftest.err conftest.$ac_ext
9002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9003 rm -f conftest.err conftest.$ac_ext
9004 if $ac_preproc_ok; then :
9007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9009 _lt_caught_CXX_error=yes; }
9013 ac_cpp='$CPP $CPPFLAGS'
9014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9019 _lt_caught_CXX_error=yes
9027 # Check whether --enable-shared was given.
9028 if test "${enable_shared+set}" = set; then :
9029 enableval=$enable_shared; p=${PACKAGE-default}
9031 yes) enable_shared=yes ;;
9032 no) enable_shared=no ;;
9035 # Look at the argument we got. We use all the common list separators.
9036 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9037 for pkg in $enableval; do
9039 if test "X$pkg" = "X$p"; then
9056 # Check whether --enable-static was given.
9057 if test "${enable_static+set}" = set; then :
9058 enableval=$enable_static; p=${PACKAGE-default}
9060 yes) enable_static=yes ;;
9061 no) enable_static=no ;;
9064 # Look at the argument we got. We use all the common list separators.
9065 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9066 for pkg in $enableval; do
9068 if test "X$pkg" = "X$p"; then
9097 # Check whether --with-pic was given.
9098 if test "${with_pic+set}" = set; then :
9099 withval=$with_pic; pic_mode="$withval"
9105 test -z "$pic_mode" && pic_mode=default
9113 # Check whether --enable-fast-install was given.
9114 if test "${enable_fast_install+set}" = set; then :
9115 enableval=$enable_fast_install; p=${PACKAGE-default}
9117 yes) enable_fast_install=yes ;;
9118 no) enable_fast_install=no ;;
9120 enable_fast_install=no
9121 # Look at the argument we got. We use all the common list separators.
9122 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9123 for pkg in $enableval; do
9125 if test "X$pkg" = "X$p"; then
9126 enable_fast_install=yes
9133 enable_fast_install=yes
9146 # This can be used to rebuild libtool when needed
9147 LIBTOOL_DEPS="$ltmain"
9149 # Always use our own libtool.
9150 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9176 test -z "$LN_S" && LN_S="ln -s"
9191 if test -n "${ZSH_VERSION+set}" ; then
9192 setopt NO_GLOB_SUBST
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9196 $as_echo_n "checking for objdir... " >&6; }
9197 if test "${lt_cv_objdir+set}" = set; then :
9198 $as_echo_n "(cached) " >&6
9200 rm -f .libs 2>/dev/null
9201 mkdir .libs 2>/dev/null
9202 if test -d .libs; then
9205 # MS-DOS does not allow filenames that begin with a dot.
9208 rmdir .libs 2>/dev/null
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9211 $as_echo "$lt_cv_objdir" >&6; }
9212 objdir=$lt_cv_objdir
9218 cat >>confdefs.h <<_ACEOF
9219 #define LT_OBJDIR "$lt_cv_objdir/"
9240 # AIX sometimes has problems with the GCC collect2 program. For some
9241 # reason, if we set the COLLECT_NAMES environment variable, the problems
9242 # vanish in a puff of smoke.
9243 if test "X${COLLECT_NAMES+set}" != Xset; then
9245 export COLLECT_NAMES
9250 # Sed substitution that helps us do robust quoting. It backslashifies
9251 # metacharacters that are still active within double-quoted strings.
9252 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9254 # Same as above, but do not quote variable references.
9255 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9257 # Sed substitution to delay expansion of an escaped shell variable in a
9258 # double_quote_subst'ed string.
9259 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9261 # Sed substitution to delay expansion of an escaped single quote.
9262 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9264 # Sed substitution to avoid accidental globbing in evaled expressions
9265 no_glob_subst='s/\*/\\\*/g'
9269 can_build_shared=yes
9271 # All known linkers require a `.a' archive for static linking (except MSVC,
9272 # which needs '.lib').
9275 with_gnu_ld="$lt_cv_prog_gnu_ld"
9278 old_CFLAGS="$CFLAGS"
9280 # Set sane defaults for various variables
9281 test -z "$CC" && CC=cc
9282 test -z "$LTCC" && LTCC=$CC
9283 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9284 test -z "$LD" && LD=ld
9285 test -z "$ac_objext" && ac_objext=o
9287 for cc_temp in $compiler""; do
9289 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9290 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9295 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9298 # Only perform the check for file, if the check method requires it
9299 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9300 case $deplibs_check_method in
9302 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9304 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9305 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9306 $as_echo_n "(cached) " >&6
9310 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9313 lt_save_MAGIC_CMD="$MAGIC_CMD"
9314 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9315 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9316 for ac_dir in $ac_dummy; do
9318 test -z "$ac_dir" && ac_dir=.
9319 if test -f $ac_dir/${ac_tool_prefix}file; then
9320 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9321 if test -n "$file_magic_test_file"; then
9322 case $deplibs_check_method in
9324 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9326 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9327 $EGREP "$file_magic_regex" > /dev/null; then
9332 *** Warning: the command libtool uses to detect shared libraries,
9333 *** $file_magic_cmd, produces output that libtool cannot recognize.
9334 *** The result is that libtool may fail to recognize shared libraries
9335 *** as such. This will affect the creation of libtool libraries that
9336 *** depend on shared libraries, but programs linked with such libtool
9337 *** libraries will work regardless of this problem. Nevertheless, you
9338 *** may want to report the problem to your system manager and/or to
9339 *** bug-libtool@gnu.org
9349 MAGIC_CMD="$lt_save_MAGIC_CMD"
9354 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9355 if test -n "$MAGIC_CMD"; then
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9357 $as_echo "$MAGIC_CMD" >&6; }
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9360 $as_echo "no" >&6; }
9367 if test -z "$lt_cv_path_MAGIC_CMD"; then
9368 if test -n "$ac_tool_prefix"; then
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9370 $as_echo_n "checking for file... " >&6; }
9371 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9372 $as_echo_n "(cached) " >&6
9376 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9379 lt_save_MAGIC_CMD="$MAGIC_CMD"
9380 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9381 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9382 for ac_dir in $ac_dummy; do
9384 test -z "$ac_dir" && ac_dir=.
9385 if test -f $ac_dir/file; then
9386 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9387 if test -n "$file_magic_test_file"; then
9388 case $deplibs_check_method in
9390 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9391 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9392 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9393 $EGREP "$file_magic_regex" > /dev/null; then
9398 *** Warning: the command libtool uses to detect shared libraries,
9399 *** $file_magic_cmd, produces output that libtool cannot recognize.
9400 *** The result is that libtool may fail to recognize shared libraries
9401 *** as such. This will affect the creation of libtool libraries that
9402 *** depend on shared libraries, but programs linked with such libtool
9403 *** libraries will work regardless of this problem. Nevertheless, you
9404 *** may want to report the problem to your system manager and/or to
9405 *** bug-libtool@gnu.org
9415 MAGIC_CMD="$lt_save_MAGIC_CMD"
9420 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9421 if test -n "$MAGIC_CMD"; then
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9423 $as_echo "$MAGIC_CMD" >&6; }
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9426 $as_echo "no" >&6; }
9439 # Use C for the default configuration in the libtool script
9443 ac_cpp='$CPP $CPPFLAGS'
9444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9449 # Source file extension for C test sources.
9452 # Object file extension for compiled C test sources.
9456 # Code to be used in simple compile tests
9457 lt_simple_compile_test_code="int some_variable = 0;"
9459 # Code to be used in simple link tests
9460 lt_simple_link_test_code='int main(){return(0);}'
9468 # If no C compiler was specified, use CC.
9471 # If no C compiler flags were specified, use CFLAGS.
9472 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9474 # Allow CC to be a program name with arguments.
9477 # Save the default compiler, since it gets overwritten when the other
9478 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9479 compiler_DEFAULT=$CC
9481 # save warnings/boilerplate of simple test code
9482 ac_outfile=conftest.$ac_objext
9483 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9484 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9485 _lt_compiler_boilerplate=`cat conftest.err`
9488 ac_outfile=conftest.$ac_objext
9489 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9490 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9491 _lt_linker_boilerplate=`cat conftest.err`
9496 ## There is no encapsulation within the following macros, do not change
9497 ## the running order or otherwise move them around unless you know exactly
9498 ## what you are doing...
9499 if test -n "$compiler"; then
9501 lt_prog_compiler_no_builtin_flag=
9503 if test "$GCC" = yes; then
9504 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9507 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9508 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9509 $as_echo_n "(cached) " >&6
9511 lt_cv_prog_compiler_rtti_exceptions=no
9512 ac_outfile=conftest.$ac_objext
9513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9514 lt_compiler_flag="-fno-rtti -fno-exceptions"
9515 # Insert the option either (1) after the last *FLAGS variable, or
9516 # (2) before a word containing "conftest.", or (3) at the end.
9517 # Note that $ac_compile itself does not contain backslashes and begins
9518 # with a dollar sign (not a hyphen), so the echo should work correctly.
9519 # The option is referenced via a variable to avoid confusing sed.
9520 lt_compile=`echo "$ac_compile" | $SED \
9521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9523 -e 's:$: $lt_compiler_flag:'`
9524 (eval echo "\"\$as_me:9524: $lt_compile\"" >&5)
9525 (eval "$lt_compile" 2>conftest.err)
9527 cat conftest.err >&5
9528 echo "$as_me:9528: \$? = $ac_status" >&5
9529 if (exit $ac_status) && test -s "$ac_outfile"; then
9530 # The compiler can only warn and ignore the option if not recognized
9531 # So say no if there are warnings other than the usual output.
9532 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9534 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9535 lt_cv_prog_compiler_rtti_exceptions=yes
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9542 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9544 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9545 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9557 lt_prog_compiler_wl=
9558 lt_prog_compiler_pic=
9559 lt_prog_compiler_static=
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9562 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9564 if test "$GCC" = yes; then
9565 lt_prog_compiler_wl='-Wl,'
9566 lt_prog_compiler_static='-static'
9570 # All AIX code is PIC.
9571 if test "$host_cpu" = ia64; then
9572 # AIX 5 now supports IA64 processor
9573 lt_prog_compiler_static='-Bstatic'
9580 # see comment about AmigaOS4 .so support
9581 lt_prog_compiler_pic='-fPIC'
9584 # FIXME: we need at least 68020 code to build shared libraries, but
9585 # adding the `-m68020' flag to GCC prevents building anything better,
9587 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9592 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9593 # PIC is the default for these OSes.
9596 mingw* | cygwin* | pw32* | os2* | cegcc*)
9597 # This hack is so that the source file can tell whether it is being
9598 # built for inclusion in a dll (and should export symbols for example).
9599 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9600 # (--disable-auto-import) libraries
9601 lt_prog_compiler_pic='-DDLL_EXPORT'
9604 darwin* | rhapsody*)
9605 # PIC is the default on this platform
9606 # Common symbols not allowed in MH_DYLIB files
9607 lt_prog_compiler_pic='-fno-common'
9611 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9612 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9613 # sets the default TLS model and affects inlining.
9619 lt_prog_compiler_pic='-fPIC'
9625 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9626 # Instead, we relocate shared libraries at runtime.
9630 # Just because we use GCC doesn't mean we suddenly get shared libraries
9631 # on systems that don't support them.
9632 lt_prog_compiler_can_build_shared=no
9637 # QNX uses GNU C++, but need to define -shared option too, otherwise
9639 lt_prog_compiler_pic='-fPIC -shared'
9643 if test -d /usr/nec; then
9644 lt_prog_compiler_pic=-Kconform_pic
9649 lt_prog_compiler_pic='-fPIC'
9653 # PORTME Check for flag to pass linker flags through the system compiler.
9656 lt_prog_compiler_wl='-Wl,'
9657 if test "$host_cpu" = ia64; then
9658 # AIX 5 now supports IA64 processor
9659 lt_prog_compiler_static='-Bstatic'
9661 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9665 mingw* | cygwin* | pw32* | os2* | cegcc*)
9666 # This hack is so that the source file can tell whether it is being
9667 # built for inclusion in a dll (and should export symbols for example).
9668 lt_prog_compiler_pic='-DDLL_EXPORT'
9671 hpux9* | hpux10* | hpux11*)
9672 lt_prog_compiler_wl='-Wl,'
9673 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9680 lt_prog_compiler_pic='+Z'
9683 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9684 lt_prog_compiler_static='${wl}-a ${wl}archive'
9687 irix5* | irix6* | nonstopux*)
9688 lt_prog_compiler_wl='-Wl,'
9689 # PIC (with -KPIC) is the default.
9690 lt_prog_compiler_static='-non_shared'
9693 linux* | k*bsd*-gnu)
9694 case $cc_basename in
9695 # old Intel for x86_64 which still supported -KPIC.
9697 lt_prog_compiler_wl='-Wl,'
9698 lt_prog_compiler_pic='-KPIC'
9699 lt_prog_compiler_static='-static'
9701 # icc used to be incompatible with GCC.
9702 # ICC 10 doesn't accept -KPIC any more.
9704 lt_prog_compiler_wl='-Wl,'
9705 lt_prog_compiler_pic='-fPIC'
9706 lt_prog_compiler_static='-static'
9708 # Lahey Fortran 8.1.
9710 lt_prog_compiler_wl='-Wl,'
9711 lt_prog_compiler_pic='--shared'
9712 lt_prog_compiler_static='--static'
9714 pgcc* | pgf77* | pgf90* | pgf95*)
9715 # Portland Group compilers (*not* the Pentium gcc compiler,
9716 # which looks to be a dead project)
9717 lt_prog_compiler_wl='-Wl,'
9718 lt_prog_compiler_pic='-fpic'
9719 lt_prog_compiler_static='-Bstatic'
9722 lt_prog_compiler_wl='-Wl,'
9723 # All Alpha code is PIC.
9724 lt_prog_compiler_static='-non_shared'
9727 # IBM XL C 8.0/Fortran 10.1 on PPC
9728 lt_prog_compiler_wl='-Wl,'
9729 lt_prog_compiler_pic='-qpic'
9730 lt_prog_compiler_static='-qstaticlink'
9733 case `$CC -V 2>&1 | sed 5q` in
9736 lt_prog_compiler_pic='-KPIC'
9737 lt_prog_compiler_static='-Bstatic'
9738 lt_prog_compiler_wl='-Wl,'
9741 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9742 lt_prog_compiler_pic='-KPIC'
9743 lt_prog_compiler_static='-Bstatic'
9744 lt_prog_compiler_wl=''
9752 lt_prog_compiler_pic='-KPIC'
9753 lt_prog_compiler_static='-Bstatic'
9757 # QNX uses GNU C++, but need to define -shared option too, otherwise
9759 lt_prog_compiler_pic='-fPIC -shared'
9762 osf3* | osf4* | osf5*)
9763 lt_prog_compiler_wl='-Wl,'
9764 # All OSF/1 code is PIC.
9765 lt_prog_compiler_static='-non_shared'
9769 lt_prog_compiler_static='-non_shared'
9773 lt_prog_compiler_pic='-KPIC'
9774 lt_prog_compiler_static='-Bstatic'
9775 case $cc_basename in
9777 lt_prog_compiler_wl='-Qoption ld ';;
9779 lt_prog_compiler_wl='-Wl,';;
9784 lt_prog_compiler_wl='-Qoption ld '
9785 lt_prog_compiler_pic='-PIC'
9786 lt_prog_compiler_static='-Bstatic'
9789 sysv4 | sysv4.2uw2* | sysv4.3*)
9790 lt_prog_compiler_wl='-Wl,'
9791 lt_prog_compiler_pic='-KPIC'
9792 lt_prog_compiler_static='-Bstatic'
9796 if test -d /usr/nec ;then
9797 lt_prog_compiler_pic='-Kconform_pic'
9798 lt_prog_compiler_static='-Bstatic'
9802 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9803 lt_prog_compiler_wl='-Wl,'
9804 lt_prog_compiler_pic='-KPIC'
9805 lt_prog_compiler_static='-Bstatic'
9809 lt_prog_compiler_wl='-Wl,'
9810 lt_prog_compiler_can_build_shared=no
9814 lt_prog_compiler_pic='-pic'
9815 lt_prog_compiler_static='-Bstatic'
9819 lt_prog_compiler_can_build_shared=no
9825 # For platforms which do not support PIC, -DPIC is meaningless:
9827 lt_prog_compiler_pic=
9830 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9834 $as_echo "$lt_prog_compiler_pic" >&6; }
9842 # Check to make sure the PIC flag actually works.
9844 if test -n "$lt_prog_compiler_pic"; then
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9846 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9847 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9848 $as_echo_n "(cached) " >&6
9850 lt_cv_prog_compiler_pic_works=no
9851 ac_outfile=conftest.$ac_objext
9852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9853 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9854 # Insert the option either (1) after the last *FLAGS variable, or
9855 # (2) before a word containing "conftest.", or (3) at the end.
9856 # Note that $ac_compile itself does not contain backslashes and begins
9857 # with a dollar sign (not a hyphen), so the echo should work correctly.
9858 # The option is referenced via a variable to avoid confusing sed.
9859 lt_compile=`echo "$ac_compile" | $SED \
9860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9862 -e 's:$: $lt_compiler_flag:'`
9863 (eval echo "\"\$as_me:9863: $lt_compile\"" >&5)
9864 (eval "$lt_compile" 2>conftest.err)
9866 cat conftest.err >&5
9867 echo "$as_me:9867: \$? = $ac_status" >&5
9868 if (exit $ac_status) && test -s "$ac_outfile"; then
9869 # The compiler can only warn and ignore the option if not recognized
9870 # So say no if there are warnings other than the usual output.
9871 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9873 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9874 lt_cv_prog_compiler_pic_works=yes
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9881 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9883 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9884 case $lt_prog_compiler_pic in
9886 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9889 lt_prog_compiler_pic=
9890 lt_prog_compiler_can_build_shared=no
9901 # Check to make sure the static flag actually works.
9903 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9905 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9906 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9907 $as_echo_n "(cached) " >&6
9909 lt_cv_prog_compiler_static_works=no
9910 save_LDFLAGS="$LDFLAGS"
9911 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9912 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9913 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9914 # The linker can only warn and ignore the option if not recognized
9915 # So say no if there are warnings
9916 if test -s conftest.err; then
9917 # Append any errors to the config.log.
9918 cat conftest.err 1>&5
9919 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9920 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9921 if diff conftest.exp conftest.er2 >/dev/null; then
9922 lt_cv_prog_compiler_static_works=yes
9925 lt_cv_prog_compiler_static_works=yes
9929 LDFLAGS="$save_LDFLAGS"
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9933 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9935 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9938 lt_prog_compiler_static=
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9948 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9949 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9950 $as_echo_n "(cached) " >&6
9952 lt_cv_prog_compiler_c_o=no
9953 $RM -r conftest 2>/dev/null
9957 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9959 lt_compiler_flag="-o out/conftest2.$ac_objext"
9960 # Insert the option either (1) after the last *FLAGS variable, or
9961 # (2) before a word containing "conftest.", or (3) at the end.
9962 # Note that $ac_compile itself does not contain backslashes and begins
9963 # with a dollar sign (not a hyphen), so the echo should work correctly.
9964 lt_compile=`echo "$ac_compile" | $SED \
9965 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9967 -e 's:$: $lt_compiler_flag:'`
9968 (eval echo "\"\$as_me:9968: $lt_compile\"" >&5)
9969 (eval "$lt_compile" 2>out/conftest.err)
9971 cat out/conftest.err >&5
9972 echo "$as_me:9972: \$? = $ac_status" >&5
9973 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9975 # The compiler can only warn and ignore the option if not recognized
9976 # So say no if there are warnings
9977 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9978 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9979 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9980 lt_cv_prog_compiler_c_o=yes
9985 # SGI C++ compiler will create directory out/ii_files/ for
9986 # template instantiation
9987 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9988 $RM out/* && rmdir out
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9995 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10003 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10004 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10005 $as_echo_n "(cached) " >&6
10007 lt_cv_prog_compiler_c_o=no
10008 $RM -r conftest 2>/dev/null
10012 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10014 lt_compiler_flag="-o out/conftest2.$ac_objext"
10015 # Insert the option either (1) after the last *FLAGS variable, or
10016 # (2) before a word containing "conftest.", or (3) at the end.
10017 # Note that $ac_compile itself does not contain backslashes and begins
10018 # with a dollar sign (not a hyphen), so the echo should work correctly.
10019 lt_compile=`echo "$ac_compile" | $SED \
10020 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10021 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10022 -e 's:$: $lt_compiler_flag:'`
10023 (eval echo "\"\$as_me:10023: $lt_compile\"" >&5)
10024 (eval "$lt_compile" 2>out/conftest.err)
10026 cat out/conftest.err >&5
10027 echo "$as_me:10027: \$? = $ac_status" >&5
10028 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10030 # The compiler can only warn and ignore the option if not recognized
10031 # So say no if there are warnings
10032 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10033 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10034 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10035 lt_cv_prog_compiler_c_o=yes
10040 # SGI C++ compiler will create directory out/ii_files/ for
10041 # template instantiation
10042 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10043 $RM out/* && rmdir out
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10050 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10055 hard_links="nottested"
10056 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10057 # do not overwrite the value of need_locks provided by the user
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10059 $as_echo_n "checking if we can lock with hard links... " >&6; }
10062 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10064 ln conftest.a conftest.b 2>&5 || hard_links=no
10065 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10067 $as_echo "$hard_links" >&6; }
10068 if test "$hard_links" = no; then
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10070 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10083 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10086 allow_undefined_flag=
10087 always_export_symbols=no
10089 archive_expsym_cmds=
10090 compiler_needs_object=no
10091 enable_shared_with_static_runtimes=no
10092 export_dynamic_flag_spec=
10093 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10094 hardcode_automatic=no
10096 hardcode_direct_absolute=no
10097 hardcode_libdir_flag_spec=
10098 hardcode_libdir_flag_spec_ld=
10099 hardcode_libdir_separator=
10100 hardcode_minus_L=no
10101 hardcode_shlibpath_var=unsupported
10103 link_all_deplibs=unknown
10105 module_expsym_cmds=
10106 old_archive_from_new_cmds=
10107 old_archive_from_expsyms_cmds=
10108 thread_safe_flag_spec=
10109 whole_archive_flag_spec=
10110 # include_expsyms should be a list of space-separated symbols to be *always*
10111 # included in the symbol list
10113 # exclude_expsyms can be an extended regexp of symbols to exclude
10114 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10115 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10116 # as well as any symbol that contains `d'.
10117 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10118 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10119 # platforms (ab)use it in PIC code, but their linkers get confused if
10120 # the symbol is explicitly referenced. Since portable code cannot
10121 # rely on this symbol name, it's probably fine to never include it in
10122 # preloaded symbol tables.
10123 # Exclude shared library initialization/finalization symbols.
10124 extract_expsyms_cmds=
10127 cygwin* | mingw* | pw32* | cegcc*)
10128 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10129 # When not using gcc, we currently assume that we are using
10130 # Microsoft Visual C++.
10131 if test "$GCC" != yes; then
10136 # we just hope/assume this is gcc and not c89 (= MSVC++)
10145 if test "$with_gnu_ld" = yes; then
10146 # If archive_cmds runs LD, not CC, wlarc should be empty
10149 # Set some defaults for GNU ld with shared library support. These
10150 # are reset later if shared libraries are not supported. Putting them
10151 # here allows them to be overridden if necessary.
10152 runpath_var=LD_RUN_PATH
10153 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10154 export_dynamic_flag_spec='${wl}--export-dynamic'
10155 # ancient GNU ld didn't support --whole-archive et. al.
10156 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10157 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10159 whole_archive_flag_spec=
10161 supports_anon_versioning=no
10162 case `$LD -v 2>&1` in
10163 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10164 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10165 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10166 *\ 2.11.*) ;; # other 2.11 versions
10167 *) supports_anon_versioning=yes ;;
10170 # See if GNU ld supports shared libraries.
10173 # On AIX/PPC, the GNU linker is very broken
10174 if test "$host_cpu" != ia64; then
10178 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10179 *** to be unable to reliably create shared libraries on AIX.
10180 *** Therefore, libtool is disabling shared libraries support. If you
10181 *** really care for shared libraries, you may want to modify your PATH
10182 *** so that a non-GNU linker is found, and then restart.
10191 # see comment about AmigaOS4 .so support
10192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10193 archive_expsym_cmds=''
10196 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)'
10197 hardcode_libdir_flag_spec='-L$libdir'
10198 hardcode_minus_L=yes
10204 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10205 allow_undefined_flag=unsupported
10206 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10207 # support --undefined. This deserves some investigation. FIXME
10208 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10214 cygwin* | mingw* | pw32* | cegcc*)
10215 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10216 # as there is no search path for DLLs.
10217 hardcode_libdir_flag_spec='-L$libdir'
10218 allow_undefined_flag=unsupported
10219 always_export_symbols=no
10220 enable_shared_with_static_runtimes=yes
10221 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10223 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10225 # If the export-symbols file already is a .def file (1st line
10226 # is EXPORTS), use it as is; otherwise, prepend...
10227 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10228 cp $export_symbols $output_objdir/$soname.def;
10230 echo EXPORTS > $output_objdir/$soname.def;
10231 cat $export_symbols >> $output_objdir/$soname.def;
10233 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10241 hardcode_shlibpath_var=no
10242 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10243 export_dynamic_flag_spec='${wl}-E'
10244 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10245 # Instead, shared libraries are loaded at an image base (0x10000000 by
10246 # default) and relocated if they conflict, which is a slow very memory
10247 # consuming and fragmenting process. To avoid this, we pick a random,
10248 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10249 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10250 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10251 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'
10254 gnu* | linux* | tpf* | k*bsd*-gnu)
10256 if test "$host_os" = linux-dietlibc; then
10257 case $cc_basename in
10258 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10261 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10262 && test "$tmp_diet" = no
10265 tmp_sharedflag='-shared'
10266 case $cc_basename,$host_cpu in
10267 pgcc*) # Portland Group C compiler
10268 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'
10269 tmp_addflag=' $pic_flag'
10271 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10272 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'
10273 tmp_addflag=' $pic_flag -Mnomain' ;;
10274 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10275 tmp_addflag=' -i_dynamic' ;;
10276 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10277 tmp_addflag=' -i_dynamic -nofor_main' ;;
10278 ifc* | ifort*) # Intel Fortran compiler
10279 tmp_addflag=' -nofor_main' ;;
10280 lf95*) # Lahey Fortran 8.1
10281 whole_archive_flag_spec=
10282 tmp_sharedflag='--shared' ;;
10283 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10284 tmp_sharedflag='-qmkshrobj'
10287 case `$CC -V 2>&1 | sed 5q` in
10288 *Sun\ C*) # Sun C 5.9
10289 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'
10290 compiler_needs_object=yes
10291 tmp_sharedflag='-G' ;;
10292 *Sun\ F*) # Sun Fortran 8.3
10293 tmp_sharedflag='-G' ;;
10295 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10297 if test "x$supports_anon_versioning" = xyes; then
10298 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10299 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10300 echo "local: *; };" >> $output_objdir/$libname.ver~
10301 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10304 case $cc_basename in
10306 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10307 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10308 hardcode_libdir_flag_spec=
10309 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10310 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10311 if test "x$supports_anon_versioning" = xyes; then
10312 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10313 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10314 echo "local: *; };" >> $output_objdir/$libname.ver~
10315 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10325 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10326 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10330 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10335 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10339 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10340 *** create shared libraries on Solaris systems. Therefore, libtool
10341 *** is disabling shared libraries support. We urge you to upgrade GNU
10342 *** binutils to release 2.9.1 or newer. Another option is to modify
10343 *** your PATH or compiler configuration so that the native linker is
10344 *** used, and then restart.
10347 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10348 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10349 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10356 case `$LD -v 2>&1` in
10357 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10361 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10362 *** reliably create shared libraries on SCO systems. Therefore, libtool
10363 *** is disabling shared libraries support. We urge you to upgrade GNU
10364 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10365 *** your PATH or compiler configuration so that the native linker is
10366 *** used, and then restart.
10371 # For security reasons, it is highly recommended that you always
10372 # use absolute paths for naming shared libraries, and exclude the
10373 # DT_RUNPATH tag from executables and libraries. But doing so
10374 # requires that you compile everything twice, which is a pain.
10375 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10376 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10378 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10387 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10389 hardcode_direct=yes
10390 hardcode_shlibpath_var=no
10394 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10396 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10403 if test "$ld_shlibs" = no; then
10405 hardcode_libdir_flag_spec=
10406 export_dynamic_flag_spec=
10407 whole_archive_flag_spec=
10410 # PORTME fill in a description of your system's linker (not GNU ld)
10413 allow_undefined_flag=unsupported
10414 always_export_symbols=yes
10415 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'
10416 # Note: this linker hardcodes the directories in LIBPATH if there
10417 # are no directories specified by -L.
10418 hardcode_minus_L=yes
10419 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10420 # Neither direct hardcoding nor static linking is supported with a
10422 hardcode_direct=unsupported
10427 if test "$host_cpu" = ia64; then
10428 # On IA64, the linker does run time linking by default, so we don't
10429 # have to do anything special.
10430 aix_use_runtimelinking=no
10431 exp_sym_flag='-Bexport'
10434 # If we're using GNU nm, then we don't want the "-C" option.
10435 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10436 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10437 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'
10439 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'
10441 aix_use_runtimelinking=no
10443 # Test if we are trying to use run time linking or normal
10444 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10445 # need to do runtime linking.
10446 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10447 for ld_flag in $LDFLAGS; do
10448 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10449 aix_use_runtimelinking=yes
10456 exp_sym_flag='-bexport'
10457 no_entry_flag='-bnoentry'
10460 # When large executables or shared objects are built, AIX ld can
10461 # have problems creating the table of contents. If linking a library
10462 # or program results in "error TOC overflow" add -mminimal-toc to
10463 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10464 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10467 hardcode_direct=yes
10468 hardcode_direct_absolute=yes
10469 hardcode_libdir_separator=':'
10470 link_all_deplibs=yes
10471 file_list_spec='${wl}-f,'
10473 if test "$GCC" = yes; then
10474 case $host_os in aix4.[012]|aix4.[012].*)
10475 # We only want to do this on AIX 4.2 and lower, the check
10476 # below for broken collect2 doesn't work under 4.3+
10477 collect2name=`${CC} -print-prog-name=collect2`
10478 if test -f "$collect2name" &&
10479 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10481 # We have reworked collect2
10484 # We have old collect2
10485 hardcode_direct=unsupported
10486 # It fails to find uninstalled libraries when the uninstalled
10487 # path is not listed in the libpath. Setting hardcode_minus_L
10488 # to unsupported forces relinking
10489 hardcode_minus_L=yes
10490 hardcode_libdir_flag_spec='-L$libdir'
10491 hardcode_libdir_separator=
10495 shared_flag='-shared'
10496 if test "$aix_use_runtimelinking" = yes; then
10497 shared_flag="$shared_flag "'${wl}-G'
10501 if test "$host_cpu" = ia64; then
10502 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10503 # chokes on -Wl,-G. The following line is correct:
10506 if test "$aix_use_runtimelinking" = yes; then
10507 shared_flag='${wl}-G'
10509 shared_flag='${wl}-bM:SRE'
10514 export_dynamic_flag_spec='${wl}-bexpall'
10515 # It seems that -bexpall does not export symbols beginning with
10516 # underscore (_), so it is better to generate a list of symbols to export.
10517 always_export_symbols=yes
10518 if test "$aix_use_runtimelinking" = yes; then
10519 # Warning - without using the other runtime loading flags (-brtl),
10520 # -berok will link without error, but may produce a broken library.
10521 allow_undefined_flag='-berok'
10522 # Determine the default libpath from the value encoded in an
10523 # empty executable.
10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h. */
10535 if ac_fn_c_try_link "$LINENO"; then :
10537 lt_aix_libpath_sed='
10538 /Import File Strings/,/^$/ {
10544 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10545 # Check for a 64-bit object if we didn't find anything.
10546 if test -z "$aix_libpath"; then
10547 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10550 rm -f core conftest.err conftest.$ac_objext \
10551 conftest$ac_exeext conftest.$ac_ext
10552 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10554 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10555 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"
10557 if test "$host_cpu" = ia64; then
10558 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10559 allow_undefined_flag="-z nodefs"
10560 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"
10562 # Determine the default libpath from the value encoded in an
10563 # empty executable.
10564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10565 /* end confdefs.h. */
10575 if ac_fn_c_try_link "$LINENO"; then :
10577 lt_aix_libpath_sed='
10578 /Import File Strings/,/^$/ {
10584 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10585 # Check for a 64-bit object if we didn't find anything.
10586 if test -z "$aix_libpath"; then
10587 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10590 rm -f core conftest.err conftest.$ac_objext \
10591 conftest$ac_exeext conftest.$ac_ext
10592 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10594 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10595 # Warning - without using the other run time loading flags,
10596 # -berok will link without error, but may produce a broken library.
10597 no_undefined_flag=' ${wl}-bernotok'
10598 allow_undefined_flag=' ${wl}-berok'
10599 # Exported symbols can be pulled into shared objects from archives
10600 whole_archive_flag_spec='$convenience'
10601 archive_cmds_need_lc=yes
10602 # This is similar to how AIX traditionally builds its shared libraries.
10603 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'
10611 # see comment about AmigaOS4 .so support
10612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10613 archive_expsym_cmds=''
10616 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)'
10617 hardcode_libdir_flag_spec='-L$libdir'
10618 hardcode_minus_L=yes
10624 export_dynamic_flag_spec=-rdynamic
10627 cygwin* | mingw* | pw32* | cegcc*)
10628 # When not using gcc, we currently assume that we are using
10629 # Microsoft Visual C++.
10630 # hardcode_libdir_flag_spec is actually meaningless, as there is
10631 # no search path for DLLs.
10632 hardcode_libdir_flag_spec=' '
10633 allow_undefined_flag=unsupported
10634 # Tell ltmain to make .lib files, not .a files.
10636 # Tell ltmain to make .dll files, not .so files.
10638 # FIXME: Setting linknames here is a bad hack.
10639 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10640 # The linker will automatically build a .lib file if we build a DLL.
10641 old_archive_from_new_cmds='true'
10642 # FIXME: Should let the user specify the lib program.
10643 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10644 fix_srcfile_path='`cygpath -w "$srcfile"`'
10645 enable_shared_with_static_runtimes=yes
10648 darwin* | rhapsody*)
10651 archive_cmds_need_lc=no
10653 hardcode_automatic=yes
10654 hardcode_shlibpath_var=unsupported
10655 whole_archive_flag_spec=''
10656 link_all_deplibs=yes
10657 allow_undefined_flag="$_lt_dar_allow_undefined"
10658 case $cc_basename in
10659 ifort*) _lt_dar_can_shared=yes ;;
10660 *) _lt_dar_can_shared=$GCC ;;
10662 if test "$_lt_dar_can_shared" = "yes"; then
10663 output_verbose_link_cmd=echo
10664 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10665 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10666 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}"
10667 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}"
10676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10677 hardcode_libdir_flag_spec='-L$libdir'
10678 hardcode_shlibpath_var=no
10685 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10686 # support. Future versions do this automatically, but an explicit c++rt0.o
10687 # does not break anything, and helps significantly (at the cost of a little
10690 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10691 hardcode_libdir_flag_spec='-R$libdir'
10692 hardcode_direct=yes
10693 hardcode_shlibpath_var=no
10696 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10698 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10699 hardcode_direct=yes
10700 hardcode_minus_L=yes
10701 hardcode_shlibpath_var=no
10704 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10705 freebsd* | dragonfly*)
10706 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10707 hardcode_libdir_flag_spec='-R$libdir'
10708 hardcode_direct=yes
10709 hardcode_shlibpath_var=no
10713 if test "$GCC" = yes; then
10714 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'
10716 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'
10718 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10719 hardcode_libdir_separator=:
10720 hardcode_direct=yes
10722 # hardcode_minus_L: Not really in the search PATH,
10723 # but as the default location of the library.
10724 hardcode_minus_L=yes
10725 export_dynamic_flag_spec='${wl}-E'
10729 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10730 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10732 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10734 if test "$with_gnu_ld" = no; then
10735 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10736 hardcode_libdir_flag_spec_ld='+b $libdir'
10737 hardcode_libdir_separator=:
10738 hardcode_direct=yes
10739 hardcode_direct_absolute=yes
10740 export_dynamic_flag_spec='${wl}-E'
10741 # hardcode_minus_L: Not really in the search PATH,
10742 # but as the default location of the library.
10743 hardcode_minus_L=yes
10748 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10751 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10754 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10757 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10763 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10766 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10769 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10773 if test "$with_gnu_ld" = no; then
10774 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10775 hardcode_libdir_separator=:
10780 hardcode_shlibpath_var=no
10783 hardcode_direct=yes
10784 hardcode_direct_absolute=yes
10785 export_dynamic_flag_spec='${wl}-E'
10787 # hardcode_minus_L: Not really in the search PATH,
10788 # but as the default location of the library.
10789 hardcode_minus_L=yes
10795 irix5* | irix6* | nonstopux*)
10796 if test "$GCC" = yes; then
10797 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'
10798 # Try to use the -exported_symbol ld option, if it does not
10799 # work, assume that -exports_file does not work either and
10800 # implicitly export all symbols.
10801 save_LDFLAGS="$LDFLAGS"
10802 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10804 /* end confdefs.h. */
10807 if ac_fn_c_try_link "$LINENO"; then :
10808 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'
10811 rm -f core conftest.err conftest.$ac_objext \
10812 conftest$ac_exeext conftest.$ac_ext
10813 LDFLAGS="$save_LDFLAGS"
10815 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'
10816 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'
10818 archive_cmds_need_lc='no'
10819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10820 hardcode_libdir_separator=:
10822 link_all_deplibs=yes
10826 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10827 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10829 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10831 hardcode_libdir_flag_spec='-R$libdir'
10832 hardcode_direct=yes
10833 hardcode_shlibpath_var=no
10837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10838 hardcode_direct=yes
10839 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10840 hardcode_libdir_separator=:
10841 hardcode_shlibpath_var=no
10848 if test -f /usr/libexec/ld.so; then
10849 hardcode_direct=yes
10850 hardcode_shlibpath_var=no
10851 hardcode_direct_absolute=yes
10852 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10853 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10854 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10855 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10856 export_dynamic_flag_spec='${wl}-E'
10859 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10860 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10861 hardcode_libdir_flag_spec='-R$libdir'
10864 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10865 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10875 hardcode_libdir_flag_spec='-L$libdir'
10876 hardcode_minus_L=yes
10877 allow_undefined_flag=unsupported
10878 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'
10879 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10883 if test "$GCC" = yes; then
10884 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10885 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'
10887 allow_undefined_flag=' -expect_unresolved \*'
10888 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'
10890 archive_cmds_need_lc='no'
10891 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10892 hardcode_libdir_separator=:
10895 osf4* | osf5*) # as osf3* with the addition of -msym flag
10896 if test "$GCC" = yes; then
10897 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10898 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'
10899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10901 allow_undefined_flag=' -expect_unresolved \*'
10902 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'
10903 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~
10904 $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'
10906 # Both c and cxx compiler support -rpath directly
10907 hardcode_libdir_flag_spec='-rpath $libdir'
10909 archive_cmds_need_lc='no'
10910 hardcode_libdir_separator=:
10914 no_undefined_flag=' -z defs'
10915 if test "$GCC" = yes; then
10917 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10918 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10919 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10921 case `$CC -V 2>&1` in
10924 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10925 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10926 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10930 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10931 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10932 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10936 hardcode_libdir_flag_spec='-R$libdir'
10937 hardcode_shlibpath_var=no
10939 solaris2.[0-5] | solaris2.[0-5].*) ;;
10941 # The compiler driver will combine and reorder linker options,
10942 # but understands `-z linker_flag'. GCC discards it without `$wl',
10943 # but is careful enough not to reorder.
10944 # Supported since Solaris 2.6 (maybe 2.5.1?)
10945 if test "$GCC" = yes; then
10946 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10948 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10952 link_all_deplibs=yes
10956 if test "x$host_vendor" = xsequent; then
10957 # Use $CC to link under sequent, because it throws in some extra .o
10958 # files that make .init and .fini sections work.
10959 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10961 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10963 hardcode_libdir_flag_spec='-L$libdir'
10964 hardcode_direct=yes
10965 hardcode_minus_L=yes
10966 hardcode_shlibpath_var=no
10970 case $host_vendor in
10972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10973 hardcode_direct=yes # is this really true???
10976 ## LD is ld it makes a PLAMLIB
10977 ## CC just makes a GrossModule.
10978 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10979 reload_cmds='$CC -r -o $output$reload_objs'
10983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10984 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10987 runpath_var='LD_RUN_PATH'
10988 hardcode_shlibpath_var=no
10992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10993 hardcode_shlibpath_var=no
10994 export_dynamic_flag_spec='-Bexport'
10998 if test -d /usr/nec; then
10999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11000 hardcode_shlibpath_var=no
11001 runpath_var=LD_RUN_PATH
11002 hardcode_runpath_var=yes
11007 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11008 no_undefined_flag='${wl}-z,text'
11009 archive_cmds_need_lc=no
11010 hardcode_shlibpath_var=no
11011 runpath_var='LD_RUN_PATH'
11013 if test "$GCC" = yes; then
11014 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11015 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11017 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11018 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11022 sysv5* | sco3.2v5* | sco5v6*)
11023 # Note: We can NOT use -z defs as we might desire, because we do not
11024 # link with -lc, and that would cause any symbols used from libc to
11025 # always be unresolved, which means just about no library would
11026 # ever link correctly. If we're not using GNU ld we use -z text
11027 # though, which does catch some bad symbols but isn't as heavy-handed
11029 no_undefined_flag='${wl}-z,text'
11030 allow_undefined_flag='${wl}-z,nodefs'
11031 archive_cmds_need_lc=no
11032 hardcode_shlibpath_var=no
11033 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11034 hardcode_libdir_separator=':'
11035 link_all_deplibs=yes
11036 export_dynamic_flag_spec='${wl}-Bexport'
11037 runpath_var='LD_RUN_PATH'
11039 if test "$GCC" = yes; then
11040 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11041 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11043 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11044 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11049 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11050 hardcode_libdir_flag_spec='-L$libdir'
11051 hardcode_shlibpath_var=no
11059 if test x$host_vendor = xsni; then
11061 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11062 export_dynamic_flag_spec='${wl}-Blargedynsym'
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11069 $as_echo "$ld_shlibs" >&6; }
11070 test "$ld_shlibs" = no && can_build_shared=no
11072 with_gnu_ld=$with_gnu_ld
11089 # Do we need to explicitly link libc?
11091 case "x$archive_cmds_need_lc" in
11093 # Assume -lc should be added
11094 archive_cmds_need_lc=yes
11096 if test "$enable_shared" = yes && test "$GCC" = yes; then
11097 case $archive_cmds in
11099 # FIXME: we may have to deal with multi-command sequences.
11102 # Test whether the compiler implicitly links with -lc since on some
11103 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11104 # to ld, don't add -lc before -lgcc.
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11106 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11108 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11111 (eval $ac_compile) 2>&5
11113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11114 test $ac_status = 0; } 2>conftest.err; then
11117 libobjs=conftest.$ac_objext
11119 wl=$lt_prog_compiler_wl
11120 pic_flag=$lt_prog_compiler_pic
11126 lt_save_allow_undefined_flag=$allow_undefined_flag
11127 allow_undefined_flag=
11128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11129 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11132 test $ac_status = 0; }
11134 archive_cmds_need_lc=no
11136 archive_cmds_need_lc=yes
11138 allow_undefined_flag=$lt_save_allow_undefined_flag
11140 cat conftest.err 1>&5
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11144 $as_echo "$archive_cmds_need_lc" >&6; }
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11308 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11310 if test "$GCC" = yes; then
11312 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11313 *) lt_awk_arg="/^libraries:/" ;;
11315 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11316 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11317 # if the path contains ";" then we assume it to be the separator
11318 # otherwise default to the standard path separator (i.e. ":") - it is
11319 # assumed that no part of a normal pathname contains ";" but that should
11320 # okay in the real world where ";" in dirpaths is itself problematic.
11321 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11323 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11325 # Ok, now we have the path, separated by spaces, we can step through it
11326 # and add multilib dir if necessary.
11327 lt_tmp_lt_search_path_spec=
11328 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11329 for lt_sys_path in $lt_search_path_spec; do
11330 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11331 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11333 test -d "$lt_sys_path" && \
11334 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11337 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11338 BEGIN {RS=" "; FS="/|\n";} {
11341 for (lt_i = NF; lt_i > 0; lt_i--) {
11342 if ($lt_i != "" && $lt_i != ".") {
11343 if ($lt_i == "..") {
11346 if (lt_count == 0) {
11347 lt_foo="/" $lt_i lt_foo;
11354 if (lt_foo != "") { lt_freq[lt_foo]++; }
11355 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11357 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11359 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11361 library_names_spec=
11362 libname_spec='lib$name'
11366 postuninstall_cmds=
11370 shlibpath_overrides_runpath=unknown
11372 dynamic_linker="$host_os ld.so"
11373 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11374 need_lib_prefix=unknown
11375 hardcode_into_libs=no
11377 # when you set need_version to no, make sure it does not cause -set_version
11378 # flags to be left without arguments
11379 need_version=unknown
11384 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11385 shlibpath_var=LIBPATH
11387 # AIX 3 has no versioning support, so we append a major version to the name.
11388 soname_spec='${libname}${release}${shared_ext}$major'
11395 hardcode_into_libs=yes
11396 if test "$host_cpu" = ia64; then
11397 # AIX 5 supports IA64
11398 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11399 shlibpath_var=LD_LIBRARY_PATH
11401 # With GCC up to 2.95.x, collect2 would create an import file
11402 # for dependence libraries. The import file would start with
11403 # the line `#! .'. This would cause the generated library to
11404 # depend on `.', always an invalid library. This was fixed in
11405 # development snapshots of GCC prior to 3.0.
11407 aix4 | aix4.[01] | aix4.[01].*)
11408 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11410 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11413 can_build_shared=no
11417 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11418 # soname into executable. Probably we can add versioning support to
11419 # collect2, so additional links can be useful in future.
11420 if test "$aix_use_runtimelinking" = yes; then
11421 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11422 # instead of lib<name>.a to let people know that these are not
11423 # typical AIX shared libraries.
11424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11426 # We preserve .a as extension for shared libraries through AIX4.2
11427 # and later when we are not doing run time linking.
11428 library_names_spec='${libname}${release}.a $libname.a'
11429 soname_spec='${libname}${release}${shared_ext}$major'
11431 shlibpath_var=LIBPATH
11438 # Since July 2007 AmigaOS4 officially supports .so libraries.
11439 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11443 library_names_spec='$libname.ixlibrary $libname.a'
11444 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11445 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'
11451 library_names_spec='${libname}${shared_ext}'
11452 dynamic_linker="$host_os ld.so"
11453 shlibpath_var=LIBRARY_PATH
11459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11460 soname_spec='${libname}${release}${shared_ext}$major'
11461 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11462 shlibpath_var=LD_LIBRARY_PATH
11463 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11464 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11465 # the default ld.so.conf also contains /usr/contrib/lib and
11466 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11467 # libtool to hard-code these into programs
11470 cygwin* | mingw* | pw32* | cegcc*)
11471 version_type=windows
11476 case $GCC,$host_os in
11477 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11478 library_names_spec='$libname.dll.a'
11479 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11480 postinstall_cmds='base_file=`basename \${file}`~
11481 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11482 dldir=$destdir/`dirname \$dlpath`~
11483 test -d \$dldir || mkdir -p \$dldir~
11484 $install_prog $dir/$dlname \$dldir/$dlname~
11485 chmod a+x \$dldir/$dlname~
11486 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11487 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11489 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11490 dlpath=$dir/\$dldll~
11492 shlibpath_overrides_runpath=yes
11496 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11497 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11498 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11501 # MinGW DLLs use traditional 'lib' prefix
11502 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11503 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11504 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11505 # It is most probably a Windows format PATH printed by
11506 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11507 # path with ; separators, and with drive letters. We can handle the
11508 # drive letters (cygwin fileutils understands them), so leave them,
11509 # especially as we might pass files found there to a mingw objdump,
11510 # which wouldn't understand a cygwinified path. Ahh.
11511 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11513 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11517 # pw32 DLLs use 'pw' prefix rather than 'lib'
11518 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11524 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11527 dynamic_linker='Win32 ld.exe'
11528 # FIXME: first we should search . and the directory the executable is in
11532 darwin* | rhapsody*)
11533 dynamic_linker="$host_os dyld"
11534 version_type=darwin
11537 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11538 soname_spec='${libname}${release}${major}$shared_ext'
11539 shlibpath_overrides_runpath=yes
11540 shlibpath_var=DYLD_LIBRARY_PATH
11541 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11543 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11544 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11552 soname_spec='${libname}${release}${shared_ext}$major'
11553 shlibpath_var=LD_LIBRARY_PATH
11560 freebsd* | dragonfly*)
11561 # DragonFly does not have aout. When/if they implement a new
11562 # versioning mechanism, adjust this.
11563 if test -x /usr/bin/objformat; then
11564 objformat=`/usr/bin/objformat`
11567 freebsd[123]*) objformat=aout ;;
11568 *) objformat=elf ;;
11571 version_type=freebsd-$objformat
11572 case $version_type in
11574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11579 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11583 shlibpath_var=LD_LIBRARY_PATH
11586 shlibpath_overrides_runpath=yes
11588 freebsd3.[01]* | freebsdelf3.[01]*)
11589 shlibpath_overrides_runpath=yes
11590 hardcode_into_libs=yes
11592 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11593 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11594 shlibpath_overrides_runpath=no
11595 hardcode_into_libs=yes
11597 *) # from 4.6 on, and DragonFly
11598 shlibpath_overrides_runpath=yes
11599 hardcode_into_libs=yes
11608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11609 soname_spec='${libname}${release}${shared_ext}$major'
11610 shlibpath_var=LD_LIBRARY_PATH
11611 hardcode_into_libs=yes
11614 hpux9* | hpux10* | hpux11*)
11615 # Give a soname corresponding to the major version so that dld.sl refuses to
11616 # link against other versions.
11623 hardcode_into_libs=yes
11624 dynamic_linker="$host_os dld.so"
11625 shlibpath_var=LD_LIBRARY_PATH
11626 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11628 soname_spec='${libname}${release}${shared_ext}$major'
11629 if test "X$HPUX_IA64_MODE" = X32; then
11630 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11632 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11634 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11638 hardcode_into_libs=yes
11639 dynamic_linker="$host_os dld.sl"
11640 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11641 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11643 soname_spec='${libname}${release}${shared_ext}$major'
11644 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11645 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11649 dynamic_linker="$host_os dld.sl"
11650 shlibpath_var=SHLIB_PATH
11651 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11653 soname_spec='${libname}${release}${shared_ext}$major'
11656 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11657 postinstall_cmds='chmod 555 $lib'
11664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11665 soname_spec='${libname}${release}${shared_ext}$major'
11666 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11667 shlibpath_var=LD_LIBRARY_PATH
11668 shlibpath_overrides_runpath=no
11669 hardcode_into_libs=yes
11672 irix5* | irix6* | nonstopux*)
11674 nonstopux*) version_type=nonstopux ;;
11676 if test "$lt_cv_prog_gnu_ld" = yes; then
11684 soname_spec='${libname}${release}${shared_ext}$major'
11685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11687 irix5* | nonstopux*)
11688 libsuff= shlibsuff=
11691 case $LD in # libtool.m4 will add one of these switches to LD
11692 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11693 libsuff= shlibsuff= libmagic=32-bit;;
11694 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11695 libsuff=32 shlibsuff=N32 libmagic=N32;;
11696 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11697 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11698 *) libsuff= shlibsuff= libmagic=never-match;;
11702 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11703 shlibpath_overrides_runpath=no
11704 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11705 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11706 hardcode_into_libs=yes
11709 # No shared lib support for Linux oldld, aout, or coff.
11710 linux*oldld* | linux*aout* | linux*coff*)
11714 # This must be Linux ELF.
11715 linux* | k*bsd*-gnu)
11719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11720 soname_spec='${libname}${release}${shared_ext}$major'
11721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11722 shlibpath_var=LD_LIBRARY_PATH
11723 shlibpath_overrides_runpath=no
11724 # Some binutils ld are patched to set DT_RUNPATH
11725 save_LDFLAGS=$LDFLAGS
11726 save_libdir=$libdir
11727 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11728 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11730 /* end confdefs.h. */
11740 if ac_fn_c_try_link "$LINENO"; then :
11741 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11742 shlibpath_overrides_runpath=yes
11745 rm -f core conftest.err conftest.$ac_objext \
11746 conftest$ac_exeext conftest.$ac_ext
11747 LDFLAGS=$save_LDFLAGS
11748 libdir=$save_libdir
11750 # This implies no fast_install, which is unacceptable.
11751 # Some rework will be needed to allow for fast_install
11752 # before this can be enabled.
11753 hardcode_into_libs=yes
11755 # Append ld.so.conf contents to the search path
11756 if test -f /etc/ld.so.conf; then
11757 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' ' '`
11758 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11761 # We used to test for /lib/ld.so.1 and disable shared libraries on
11762 # powerpc, because MkLinux only supported shared libraries with the
11763 # GNU dynamic linker. Since this was broken with cross compilers,
11764 # most powerpc-linux boxes support dynamic linking these days and
11765 # people can always --disable-shared, the test was removed, and we
11766 # assume the GNU/Linux dynamic linker is in use.
11767 dynamic_linker='GNU/Linux ld.so'
11774 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11777 dynamic_linker='NetBSD (a.out) ld.so'
11779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11780 soname_spec='${libname}${release}${shared_ext}$major'
11781 dynamic_linker='NetBSD ld.elf_so'
11783 shlibpath_var=LD_LIBRARY_PATH
11784 shlibpath_overrides_runpath=yes
11785 hardcode_into_libs=yes
11790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11791 shlibpath_var=LD_LIBRARY_PATH
11792 shlibpath_overrides_runpath=yes
11799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11800 soname_spec='${libname}${release}${shared_ext}$major'
11801 shlibpath_var=LD_LIBRARY_PATH
11802 shlibpath_overrides_runpath=no
11803 hardcode_into_libs=yes
11804 dynamic_linker='ldqnx.so'
11809 sys_lib_dlsearch_path_spec="/usr/lib"
11811 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11813 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11814 *) need_version=no ;;
11816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11818 shlibpath_var=LD_LIBRARY_PATH
11819 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11821 openbsd2.[89] | openbsd2.[89].*)
11822 shlibpath_overrides_runpath=no
11825 shlibpath_overrides_runpath=yes
11829 shlibpath_overrides_runpath=yes
11834 libname_spec='$name'
11837 library_names_spec='$libname${shared_ext} $libname.a'
11838 dynamic_linker='OS/2 ld.exe'
11839 shlibpath_var=LIBPATH
11842 osf3* | osf4* | osf5*)
11846 soname_spec='${libname}${release}${shared_ext}$major'
11847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11848 shlibpath_var=LD_LIBRARY_PATH
11849 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11850 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11862 soname_spec='${libname}${release}${shared_ext}$major'
11863 shlibpath_var=LD_LIBRARY_PATH
11864 shlibpath_overrides_runpath=yes
11865 hardcode_into_libs=yes
11866 # ldd complains unless libraries are executable
11867 postinstall_cmds='chmod +x $lib'
11872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11873 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11874 shlibpath_var=LD_LIBRARY_PATH
11875 shlibpath_overrides_runpath=yes
11876 if test "$with_gnu_ld" = yes; then
11884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11885 soname_spec='${libname}${release}${shared_ext}$major'
11886 shlibpath_var=LD_LIBRARY_PATH
11887 case $host_vendor in
11889 shlibpath_overrides_runpath=no
11891 runpath_var=LD_RUN_PATH
11899 shlibpath_overrides_runpath=no
11900 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11906 if test -d /usr/nec ;then
11908 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11909 soname_spec='$libname${shared_ext}.$major'
11910 shlibpath_var=LD_LIBRARY_PATH
11914 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11915 version_type=freebsd-elf
11918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11919 soname_spec='${libname}${release}${shared_ext}$major'
11920 shlibpath_var=LD_LIBRARY_PATH
11921 shlibpath_overrides_runpath=yes
11922 hardcode_into_libs=yes
11923 if test "$with_gnu_ld" = yes; then
11924 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11926 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11929 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11933 sys_lib_dlsearch_path_spec='/usr/lib'
11937 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11942 shlibpath_var=LD_LIBRARY_PATH
11943 shlibpath_overrides_runpath=no
11944 hardcode_into_libs=yes
11949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11950 soname_spec='${libname}${release}${shared_ext}$major'
11951 shlibpath_var=LD_LIBRARY_PATH
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11959 $as_echo "$dynamic_linker" >&6; }
11960 test "$dynamic_linker" = no && can_build_shared=no
11962 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11963 if test "$GCC" = yes; then
11964 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11967 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11968 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11970 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11971 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12061 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12063 if test -n "$hardcode_libdir_flag_spec" ||
12064 test -n "$runpath_var" ||
12065 test "X$hardcode_automatic" = "Xyes" ; then
12067 # We can hardcode non-existent directories.
12068 if test "$hardcode_direct" != no &&
12069 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12070 # have to relink, otherwise we might link with an installed library
12071 # when we should be linking with a yet-to-be-installed one
12072 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12073 test "$hardcode_minus_L" != no; then
12074 # Linking always hardcodes the temporary library directory.
12075 hardcode_action=relink
12077 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12078 hardcode_action=immediate
12081 # We cannot hardcode anything, or else we can only hardcode existing
12083 hardcode_action=unsupported
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12086 $as_echo "$hardcode_action" >&6; }
12088 if test "$hardcode_action" = relink ||
12089 test "$inherit_rpath" = yes; then
12090 # Fast installation is not supported
12091 enable_fast_install=no
12092 elif test "$shlibpath_overrides_runpath" = yes ||
12093 test "$enable_shared" = no; then
12094 # Fast installation is not necessary
12095 enable_fast_install=needless
12103 if test "x$enable_dlopen" != xyes; then
12104 enable_dlopen=unknown
12105 enable_dlopen_self=unknown
12106 enable_dlopen_self_static=unknown
12113 lt_cv_dlopen="load_add_on"
12115 lt_cv_dlopen_self=yes
12118 mingw* | pw32* | cegcc*)
12119 lt_cv_dlopen="LoadLibrary"
12124 lt_cv_dlopen="dlopen"
12129 # if libdl is installed we need to link against it
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12131 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12132 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12133 $as_echo_n "(cached) " >&6
12135 ac_check_lib_save_LIBS=$LIBS
12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h. */
12140 /* Override any GCC internal prototype to avoid an error.
12141 Use char because int might match the return type of a GCC
12142 builtin and then its argument prototype would still apply. */
12155 if ac_fn_c_try_link "$LINENO"; then :
12156 ac_cv_lib_dl_dlopen=yes
12158 ac_cv_lib_dl_dlopen=no
12160 rm -f core conftest.err conftest.$ac_objext \
12161 conftest$ac_exeext conftest.$ac_ext
12162 LIBS=$ac_check_lib_save_LIBS
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12165 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12166 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12167 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12170 lt_cv_dlopen="dyld"
12172 lt_cv_dlopen_self=yes
12179 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12180 if test "x$ac_cv_func_shl_load" = x""yes; then :
12181 lt_cv_dlopen="shl_load"
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12184 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12185 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12186 $as_echo_n "(cached) " >&6
12188 ac_check_lib_save_LIBS=$LIBS
12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h. */
12193 /* Override any GCC internal prototype to avoid an error.
12194 Use char because int might match the return type of a GCC
12195 builtin and then its argument prototype would still apply. */
12203 return shl_load ();
12208 if ac_fn_c_try_link "$LINENO"; then :
12209 ac_cv_lib_dld_shl_load=yes
12211 ac_cv_lib_dld_shl_load=no
12213 rm -f core conftest.err conftest.$ac_objext \
12214 conftest$ac_exeext conftest.$ac_ext
12215 LIBS=$ac_check_lib_save_LIBS
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12218 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12219 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12220 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12222 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12223 if test "x$ac_cv_func_dlopen" = x""yes; then :
12224 lt_cv_dlopen="dlopen"
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12227 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12228 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12229 $as_echo_n "(cached) " >&6
12231 ac_check_lib_save_LIBS=$LIBS
12233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12234 /* end confdefs.h. */
12236 /* Override any GCC internal prototype to avoid an error.
12237 Use char because int might match the return type of a GCC
12238 builtin and then its argument prototype would still apply. */
12251 if ac_fn_c_try_link "$LINENO"; then :
12252 ac_cv_lib_dl_dlopen=yes
12254 ac_cv_lib_dl_dlopen=no
12256 rm -f core conftest.err conftest.$ac_objext \
12257 conftest$ac_exeext conftest.$ac_ext
12258 LIBS=$ac_check_lib_save_LIBS
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12261 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12262 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12263 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12266 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12267 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12268 $as_echo_n "(cached) " >&6
12270 ac_check_lib_save_LIBS=$LIBS
12271 LIBS="-lsvld $LIBS"
12272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273 /* end confdefs.h. */
12275 /* Override any GCC internal prototype to avoid an error.
12276 Use char because int might match the return type of a GCC
12277 builtin and then its argument prototype would still apply. */
12290 if ac_fn_c_try_link "$LINENO"; then :
12291 ac_cv_lib_svld_dlopen=yes
12293 ac_cv_lib_svld_dlopen=no
12295 rm -f core conftest.err conftest.$ac_objext \
12296 conftest$ac_exeext conftest.$ac_ext
12297 LIBS=$ac_check_lib_save_LIBS
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12300 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12301 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12302 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12305 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12306 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12307 $as_echo_n "(cached) " >&6
12309 ac_check_lib_save_LIBS=$LIBS
12311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h. */
12314 /* Override any GCC internal prototype to avoid an error.
12315 Use char because int might match the return type of a GCC
12316 builtin and then its argument prototype would still apply. */
12324 return dld_link ();
12329 if ac_fn_c_try_link "$LINENO"; then :
12330 ac_cv_lib_dld_dld_link=yes
12332 ac_cv_lib_dld_dld_link=no
12334 rm -f core conftest.err conftest.$ac_objext \
12335 conftest$ac_exeext conftest.$ac_ext
12336 LIBS=$ac_check_lib_save_LIBS
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12339 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12340 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12341 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12362 if test "x$lt_cv_dlopen" != xno; then
12368 case $lt_cv_dlopen in
12370 save_CPPFLAGS="$CPPFLAGS"
12371 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12373 save_LDFLAGS="$LDFLAGS"
12374 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12377 LIBS="$lt_cv_dlopen_libs $LIBS"
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12380 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12381 if test "${lt_cv_dlopen_self+set}" = set; then :
12382 $as_echo_n "(cached) " >&6
12384 if test "$cross_compiling" = yes; then :
12385 lt_cv_dlopen_self=cross
12387 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12388 lt_status=$lt_dlunknown
12389 cat > conftest.$ac_ext <<_LT_EOF
12390 #line 12390 "configure"
12391 #include "confdefs.h"
12400 # define LT_DLGLOBAL RTLD_GLOBAL
12403 # define LT_DLGLOBAL DL_GLOBAL
12405 # define LT_DLGLOBAL 0
12409 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12410 find out it does not work in some platform. */
12411 #ifndef LT_DLLAZY_OR_NOW
12413 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12416 # define LT_DLLAZY_OR_NOW DL_LAZY
12419 # define LT_DLLAZY_OR_NOW RTLD_NOW
12422 # define LT_DLLAZY_OR_NOW DL_NOW
12424 # define LT_DLLAZY_OR_NOW 0
12431 void fnord() { int i=42;}
12434 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12435 int status = $lt_dlunknown;
12439 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12440 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12441 /* dlclose (self); */
12449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12450 (eval $ac_link) 2>&5
12452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12453 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12454 (./conftest; exit; ) >&5 2>/dev/null
12456 case x$lt_status in
12457 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12458 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12459 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12462 # compilation failed
12463 lt_cv_dlopen_self=no
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12471 $as_echo "$lt_cv_dlopen_self" >&6; }
12473 if test "x$lt_cv_dlopen_self" = xyes; then
12474 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12476 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12477 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12478 $as_echo_n "(cached) " >&6
12480 if test "$cross_compiling" = yes; then :
12481 lt_cv_dlopen_self_static=cross
12483 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12484 lt_status=$lt_dlunknown
12485 cat > conftest.$ac_ext <<_LT_EOF
12486 #line 12486 "configure"
12487 #include "confdefs.h"
12496 # define LT_DLGLOBAL RTLD_GLOBAL
12499 # define LT_DLGLOBAL DL_GLOBAL
12501 # define LT_DLGLOBAL 0
12505 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12506 find out it does not work in some platform. */
12507 #ifndef LT_DLLAZY_OR_NOW
12509 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12512 # define LT_DLLAZY_OR_NOW DL_LAZY
12515 # define LT_DLLAZY_OR_NOW RTLD_NOW
12518 # define LT_DLLAZY_OR_NOW DL_NOW
12520 # define LT_DLLAZY_OR_NOW 0
12527 void fnord() { int i=42;}
12530 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12531 int status = $lt_dlunknown;
12535 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12536 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12537 /* dlclose (self); */
12545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12546 (eval $ac_link) 2>&5
12548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12549 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12550 (./conftest; exit; ) >&5 2>/dev/null
12552 case x$lt_status in
12553 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12554 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12555 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12558 # compilation failed
12559 lt_cv_dlopen_self_static=no
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12567 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12570 CPPFLAGS="$save_CPPFLAGS"
12571 LDFLAGS="$save_LDFLAGS"
12576 case $lt_cv_dlopen_self in
12577 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12578 *) enable_dlopen_self=unknown ;;
12581 case $lt_cv_dlopen_self_static in
12582 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12583 *) enable_dlopen_self_static=unknown ;;
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12606 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12607 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12608 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12609 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12611 $as_echo "yes" >&6; }
12613 # FIXME - insert some real tests, host_os isn't really good enough
12616 if test -n "$STRIP" ; then
12617 striplib="$STRIP -x"
12618 old_striplib="$STRIP -S"
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12620 $as_echo "yes" >&6; }
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623 $as_echo "no" >&6; }
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12628 $as_echo "no" >&6; }
12644 # Report which library types will actually be built
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12646 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12648 $as_echo "$can_build_shared" >&6; }
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12651 $as_echo_n "checking whether to build shared libraries... " >&6; }
12652 test "$can_build_shared" = "no" && enable_shared=no
12654 # On AIX, shared libraries and static libraries use the same namespace, and
12655 # are all built from PIC.
12658 test "$enable_shared" = yes && enable_static=no
12659 if test -n "$RANLIB"; then
12660 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12661 postinstall_cmds='$RANLIB $lib'
12666 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12667 test "$enable_shared" = yes && enable_static=no
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12672 $as_echo "$enable_shared" >&6; }
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12675 $as_echo_n "checking whether to build static libraries... " >&6; }
12676 # Make sure either enable_shared or enable_static is yes.
12677 test "$enable_shared" = yes || enable_static=yes
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12679 $as_echo "$enable_static" >&6; }
12686 ac_cpp='$CPP $CPPFLAGS'
12687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12695 ac_cpp='$CXXCPP $CPPFLAGS'
12696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12700 archive_cmds_need_lc_CXX=no
12701 allow_undefined_flag_CXX=
12702 always_export_symbols_CXX=no
12703 archive_expsym_cmds_CXX=
12704 compiler_needs_object_CXX=no
12705 export_dynamic_flag_spec_CXX=
12706 hardcode_direct_CXX=no
12707 hardcode_direct_absolute_CXX=no
12708 hardcode_libdir_flag_spec_CXX=
12709 hardcode_libdir_flag_spec_ld_CXX=
12710 hardcode_libdir_separator_CXX=
12711 hardcode_minus_L_CXX=no
12712 hardcode_shlibpath_var_CXX=unsupported
12713 hardcode_automatic_CXX=no
12714 inherit_rpath_CXX=no
12716 module_expsym_cmds_CXX=
12717 link_all_deplibs_CXX=unknown
12718 old_archive_cmds_CXX=$old_archive_cmds
12719 no_undefined_flag_CXX=
12720 whole_archive_flag_spec_CXX=
12721 enable_shared_with_static_runtimes_CXX=no
12723 # Source file extension for C++ test sources.
12726 # Object file extension for compiled C++ test sources.
12730 # No sense in running all these tests if we already determined that
12731 # the CXX compiler isn't working. Some variables (like enable_shared)
12732 # are currently assumed to apply to all compilers on this platform,
12733 # and will be corrupted by setting them based on a non-working compiler.
12734 if test "$_lt_caught_CXX_error" != yes; then
12735 # Code to be used in simple compile tests
12736 lt_simple_compile_test_code="int some_variable = 0;"
12738 # Code to be used in simple link tests
12739 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12741 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12748 # If no C compiler was specified, use CC.
12751 # If no C compiler flags were specified, use CFLAGS.
12752 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12754 # Allow CC to be a program name with arguments.
12758 # save warnings/boilerplate of simple test code
12759 ac_outfile=conftest.$ac_objext
12760 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12761 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12762 _lt_compiler_boilerplate=`cat conftest.err`
12765 ac_outfile=conftest.$ac_objext
12766 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12767 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12768 _lt_linker_boilerplate=`cat conftest.err`
12772 # Allow CC to be a program name with arguments.
12777 lt_save_with_gnu_ld=$with_gnu_ld
12778 lt_save_path_LD=$lt_cv_path_LD
12779 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12780 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12782 $as_unset lt_cv_prog_gnu_ld
12784 if test -n "${lt_cv_path_LDCXX+set}"; then
12785 lt_cv_path_LD=$lt_cv_path_LDCXX
12787 $as_unset lt_cv_path_LD
12789 test -z "${LDCXX+set}" || LD=$LDCXX
12793 for cc_temp in $compiler""; do
12795 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12796 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12801 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12804 if test -n "$compiler"; then
12805 # We don't want -fno-exception when compiling C++ code, so set the
12806 # no_builtin_flag separately
12807 if test "$GXX" = yes; then
12808 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12810 lt_prog_compiler_no_builtin_flag_CXX=
12813 if test "$GXX" = yes; then
12814 # Set up default GNU C++ configuration
12818 # Check whether --with-gnu-ld was given.
12819 if test "${with_gnu_ld+set}" = set; then :
12820 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12826 if test "$GCC" = yes; then
12827 # Check if gcc -print-prog-name=ld gives a path.
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12829 $as_echo_n "checking for ld used by $CC... " >&6; }
12832 # gcc leaves a trailing carriage return which upsets mingw
12833 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12835 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12838 # Accept absolute paths.
12840 re_direlt='/[^/][^/]*/\.\./'
12841 # Canonicalize the pathname of ld
12842 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12843 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12844 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12846 test -z "$LD" && LD="$ac_prog"
12849 # If it fails, then pretend we aren't using GCC.
12853 # If it is relative, then search for the first ld in PATH.
12854 with_gnu_ld=unknown
12857 elif test "$with_gnu_ld" = yes; then
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12859 $as_echo_n "checking for GNU ld... " >&6; }
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12862 $as_echo_n "checking for non-GNU ld... " >&6; }
12864 if test "${lt_cv_path_LD+set}" = set; then :
12865 $as_echo_n "(cached) " >&6
12867 if test -z "$LD"; then
12868 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12869 for ac_dir in $PATH; do
12871 test -z "$ac_dir" && ac_dir=.
12872 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12873 lt_cv_path_LD="$ac_dir/$ac_prog"
12874 # Check to see if the program is GNU ld. I'd rather use --version,
12875 # but apparently some variants of GNU ld only accept -v.
12876 # Break only if it was the GNU/non-GNU ld that we prefer.
12877 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12878 *GNU* | *'with BFD'*)
12879 test "$with_gnu_ld" != no && break
12882 test "$with_gnu_ld" != yes && break
12889 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12893 LD="$lt_cv_path_LD"
12894 if test -n "$LD"; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12896 $as_echo "$LD" >&6; }
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12899 $as_echo "no" >&6; }
12901 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12903 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12904 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12905 $as_echo_n "(cached) " >&6
12907 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12908 case `$LD -v 2>&1 </dev/null` in
12909 *GNU* | *'with BFD'*)
12910 lt_cv_prog_gnu_ld=yes
12913 lt_cv_prog_gnu_ld=no
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12918 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12919 with_gnu_ld=$lt_cv_prog_gnu_ld
12927 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12928 # archiving commands below assume that GNU ld is being used.
12929 if test "$with_gnu_ld" = yes; then
12930 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12931 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'
12933 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12934 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12936 # If archive_cmds runs LD, not CC, wlarc should be empty
12937 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12938 # investigate it a little bit more. (MM)
12941 # ancient GNU ld didn't support --whole-archive et. al.
12942 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12943 $GREP 'no-whole-archive' > /dev/null; then
12944 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12946 whole_archive_flag_spec_CXX=
12952 # A generic and very simple default shared library creation
12953 # command for GNU C++ for the case where it uses the native
12954 # linker, instead of GNU ld. If possible, this setting should
12955 # overridden to take advantage of the native linker features on
12956 # the platform it is being used on.
12957 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12960 # Commands to make compiler produce verbose output that lists
12961 # what "hidden" libraries, object files and flags are used when
12962 # linking a shared library.
12963 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12971 # PORTME: fill in a description of your system's C++ link characteristics
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12973 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12977 # FIXME: insert proper C++ library support
12981 if test "$host_cpu" = ia64; then
12982 # On IA64, the linker does run time linking by default, so we don't
12983 # have to do anything special.
12984 aix_use_runtimelinking=no
12985 exp_sym_flag='-Bexport'
12988 aix_use_runtimelinking=no
12990 # Test if we are trying to use run time linking or normal
12991 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12992 # need to do runtime linking.
12993 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12994 for ld_flag in $LDFLAGS; do
12997 aix_use_runtimelinking=yes
13005 exp_sym_flag='-bexport'
13006 no_entry_flag='-bnoentry'
13009 # When large executables or shared objects are built, AIX ld can
13010 # have problems creating the table of contents. If linking a library
13011 # or program results in "error TOC overflow" add -mminimal-toc to
13012 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13013 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13015 archive_cmds_CXX=''
13016 hardcode_direct_CXX=yes
13017 hardcode_direct_absolute_CXX=yes
13018 hardcode_libdir_separator_CXX=':'
13019 link_all_deplibs_CXX=yes
13020 file_list_spec_CXX='${wl}-f,'
13022 if test "$GXX" = yes; then
13023 case $host_os in aix4.[012]|aix4.[012].*)
13024 # We only want to do this on AIX 4.2 and lower, the check
13025 # below for broken collect2 doesn't work under 4.3+
13026 collect2name=`${CC} -print-prog-name=collect2`
13027 if test -f "$collect2name" &&
13028 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13030 # We have reworked collect2
13033 # We have old collect2
13034 hardcode_direct_CXX=unsupported
13035 # It fails to find uninstalled libraries when the uninstalled
13036 # path is not listed in the libpath. Setting hardcode_minus_L
13037 # to unsupported forces relinking
13038 hardcode_minus_L_CXX=yes
13039 hardcode_libdir_flag_spec_CXX='-L$libdir'
13040 hardcode_libdir_separator_CXX=
13043 shared_flag='-shared'
13044 if test "$aix_use_runtimelinking" = yes; then
13045 shared_flag="$shared_flag "'${wl}-G'
13049 if test "$host_cpu" = ia64; then
13050 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13051 # chokes on -Wl,-G. The following line is correct:
13054 if test "$aix_use_runtimelinking" = yes; then
13055 shared_flag='${wl}-G'
13057 shared_flag='${wl}-bM:SRE'
13062 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13063 # It seems that -bexpall does not export symbols beginning with
13064 # underscore (_), so it is better to generate a list of symbols to
13066 always_export_symbols_CXX=yes
13067 if test "$aix_use_runtimelinking" = yes; then
13068 # Warning - without using the other runtime loading flags (-brtl),
13069 # -berok will link without error, but may produce a broken library.
13070 allow_undefined_flag_CXX='-berok'
13071 # Determine the default libpath from the value encoded in an empty
13073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074 /* end confdefs.h. */
13084 if ac_fn_cxx_try_link "$LINENO"; then :
13086 lt_aix_libpath_sed='
13087 /Import File Strings/,/^$/ {
13093 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13094 # Check for a 64-bit object if we didn't find anything.
13095 if test -z "$aix_libpath"; then
13096 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13099 rm -f core conftest.err conftest.$ac_objext \
13100 conftest$ac_exeext conftest.$ac_ext
13101 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13103 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13105 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"
13107 if test "$host_cpu" = ia64; then
13108 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13109 allow_undefined_flag_CXX="-z nodefs"
13110 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"
13112 # Determine the default libpath from the value encoded in an
13113 # empty executable.
13114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13115 /* end confdefs.h. */
13125 if ac_fn_cxx_try_link "$LINENO"; then :
13127 lt_aix_libpath_sed='
13128 /Import File Strings/,/^$/ {
13134 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13135 # Check for a 64-bit object if we didn't find anything.
13136 if test -z "$aix_libpath"; then
13137 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13140 rm -f core conftest.err conftest.$ac_objext \
13141 conftest$ac_exeext conftest.$ac_ext
13142 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13144 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13145 # Warning - without using the other run time loading flags,
13146 # -berok will link without error, but may produce a broken library.
13147 no_undefined_flag_CXX=' ${wl}-bernotok'
13148 allow_undefined_flag_CXX=' ${wl}-berok'
13149 # Exported symbols can be pulled into shared objects from archives
13150 whole_archive_flag_spec_CXX='$convenience'
13151 archive_cmds_need_lc_CXX=yes
13152 # This is similar to how AIX traditionally builds its shared
13154 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'
13160 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13161 allow_undefined_flag_CXX=unsupported
13162 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13163 # support --undefined. This deserves some investigation. FIXME
13164 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13171 case $cc_basename in
13173 # FIXME: insert proper C++ library support
13179 cygwin* | mingw* | pw32* | cegcc*)
13180 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13181 # as there is no search path for DLLs.
13182 hardcode_libdir_flag_spec_CXX='-L$libdir'
13183 allow_undefined_flag_CXX=unsupported
13184 always_export_symbols_CXX=no
13185 enable_shared_with_static_runtimes_CXX=yes
13187 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13188 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'
13189 # If the export-symbols file already is a .def file (1st line
13190 # is EXPORTS), use it as is; otherwise, prepend...
13191 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13192 cp $export_symbols $output_objdir/$soname.def;
13194 echo EXPORTS > $output_objdir/$soname.def;
13195 cat $export_symbols >> $output_objdir/$soname.def;
13197 $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'
13202 darwin* | rhapsody*)
13205 archive_cmds_need_lc_CXX=no
13206 hardcode_direct_CXX=no
13207 hardcode_automatic_CXX=yes
13208 hardcode_shlibpath_var_CXX=unsupported
13209 whole_archive_flag_spec_CXX=''
13210 link_all_deplibs_CXX=yes
13211 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13212 case $cc_basename in
13213 ifort*) _lt_dar_can_shared=yes ;;
13214 *) _lt_dar_can_shared=$GCC ;;
13216 if test "$_lt_dar_can_shared" = "yes"; then
13217 output_verbose_link_cmd=echo
13218 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}"
13219 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13220 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}"
13221 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}"
13222 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13223 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}"
13224 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}"
13234 case $cc_basename in
13236 # FIXME: insert proper C++ library support
13240 # Green Hills C++ Compiler
13241 # FIXME: insert proper C++ library support
13245 # FIXME: insert proper C++ library support
13252 # C++ shared libraries reported to be fairly broken before
13258 archive_cmds_need_lc_CXX=no
13261 freebsd* | dragonfly*)
13262 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13271 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13272 hardcode_libdir_separator_CXX=:
13273 export_dynamic_flag_spec_CXX='${wl}-E'
13274 hardcode_direct_CXX=yes
13275 hardcode_minus_L_CXX=yes # Not in the search PATH,
13276 # but as the default
13277 # location of the library.
13279 case $cc_basename in
13281 # FIXME: insert proper C++ library support
13285 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'
13286 # Commands to make compiler produce verbose output that lists
13287 # what "hidden" libraries, object files and flags are used when
13288 # linking a shared library.
13290 # There doesn't appear to be a way to prevent this compiler from
13291 # explicitly linking system object files so we need to strip them
13292 # from the output so that they don't get included in the library
13294 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'
13297 if test "$GXX" = yes; then
13298 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'
13300 # FIXME: insert proper C++ library support
13308 if test $with_gnu_ld = no; then
13309 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13310 hardcode_libdir_separator_CXX=:
13316 export_dynamic_flag_spec_CXX='${wl}-E'
13322 hardcode_direct_CXX=no
13323 hardcode_shlibpath_var_CXX=no
13326 hardcode_direct_CXX=yes
13327 hardcode_direct_absolute_CXX=yes
13328 hardcode_minus_L_CXX=yes # Not in the search PATH,
13329 # but as the default
13330 # location of the library.
13334 case $cc_basename in
13336 # FIXME: insert proper C++ library support
13342 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13345 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13348 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13351 # Commands to make compiler produce verbose output that lists
13352 # what "hidden" libraries, object files and flags are used when
13353 # linking a shared library.
13355 # There doesn't appear to be a way to prevent this compiler from
13356 # explicitly linking system object files so we need to strip them
13357 # from the output so that they don't get included in the library
13359 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'
13362 if test "$GXX" = yes; then
13363 if test $with_gnu_ld = no; then
13366 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13369 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13372 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'
13377 # FIXME: insert proper C++ library support
13385 hardcode_direct_CXX=no
13386 hardcode_shlibpath_var_CXX=no
13387 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13388 export_dynamic_flag_spec_CXX='${wl}-E'
13389 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13390 # Instead, shared libraries are loaded at an image base (0x10000000 by
13391 # default) and relocated if they conflict, which is a slow very memory
13392 # consuming and fragmenting process. To avoid this, we pick a random,
13393 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13394 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13395 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'
13396 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'
13399 case $cc_basename in
13402 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'
13404 # Archives containing C++ object files must be created using
13405 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13406 # necessary to make sure instantiated templates are included
13408 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13411 if test "$GXX" = yes; then
13412 if test "$with_gnu_ld" = no; then
13413 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'
13415 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'
13418 link_all_deplibs_CXX=yes
13421 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13422 hardcode_libdir_separator_CXX=:
13423 inherit_rpath_CXX=yes
13426 linux* | k*bsd*-gnu)
13427 case $cc_basename in
13429 # Kuck and Associates, Inc. (KAI) C++ Compiler
13431 # KCC will only create a shared library if the output file
13432 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13433 # to its proper name (with version) after linking.
13434 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'
13435 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'
13436 # Commands to make compiler produce verbose output that lists
13437 # what "hidden" libraries, object files and flags are used when
13438 # linking a shared library.
13440 # There doesn't appear to be a way to prevent this compiler from
13441 # explicitly linking system object files so we need to strip them
13442 # from the output so that they don't get included in the library
13444 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'
13446 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13447 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13449 # Archives containing C++ object files must be created using
13450 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13451 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13456 # version 8.0 and above of icpc choke on multiply defined symbols
13457 # if we add $predep_objects and $postdep_objects, however 7.1 and
13458 # earlier do not add the objects themselves.
13459 case `$CC -V 2>&1` in
13461 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13462 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'
13464 *) # Version 8.0 or newer
13467 ia64*) tmp_idyn=' -i_dynamic';;
13469 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13470 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'
13473 archive_cmds_need_lc_CXX=no
13474 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13475 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13476 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13479 # Portland Group C++ compiler
13481 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13482 prelink_cmds_CXX='tpldir=Template.dir~
13484 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13485 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13486 old_archive_cmds_CXX='tpldir=Template.dir~
13488 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13489 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13491 archive_cmds_CXX='tpldir=Template.dir~
13493 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13494 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13495 archive_expsym_cmds_CXX='tpldir=Template.dir~
13497 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13498 $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'
13500 *) # Version 6 will use weak symbols
13501 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13502 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'
13506 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13507 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13508 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'
13512 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13513 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'
13515 runpath_var=LD_RUN_PATH
13516 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13517 hardcode_libdir_separator_CXX=:
13519 # Commands to make compiler produce verbose output that lists
13520 # what "hidden" libraries, object files and flags are used when
13521 # linking a shared library.
13523 # There doesn't appear to be a way to prevent this compiler from
13524 # explicitly linking system object files so we need to strip them
13525 # from the output so that they don't get included in the library
13527 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'
13530 # IBM XL 8.0 on PPC, with GNU ld
13531 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13532 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13533 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13534 if test "x$supports_anon_versioning" = xyes; then
13535 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13536 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13537 echo "local: *; };" >> $output_objdir/$libname.ver~
13538 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13542 case `$CC -V 2>&1 | sed 5q` in
13545 no_undefined_flag_CXX=' -zdefs'
13546 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13547 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'
13548 hardcode_libdir_flag_spec_CXX='-R$libdir'
13549 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'
13550 compiler_needs_object_CXX=yes
13552 # Not sure whether something based on
13553 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13555 output_verbose_link_cmd='echo'
13557 # Archives containing C++ object files must be created using
13558 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13559 # necessary to make sure instantiated templates are included
13561 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13569 # FIXME: insert proper C++ library support
13574 # FIXME: insert proper C++ library support
13579 case $cc_basename in
13581 # FIXME: insert proper C++ library support
13585 # FIXME: insert proper C++ library support
13592 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13593 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13595 hardcode_libdir_flag_spec_CXX='-R$libdir'
13596 hardcode_direct_CXX=yes
13597 hardcode_shlibpath_var_CXX=no
13599 # Workaround some broken pre-1.5 toolchains
13600 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13608 # C++ shared libraries are fairly broken
13613 if test -f /usr/libexec/ld.so; then
13614 hardcode_direct_CXX=yes
13615 hardcode_shlibpath_var_CXX=no
13616 hardcode_direct_absolute_CXX=yes
13617 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13618 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13619 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13620 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13621 export_dynamic_flag_spec_CXX='${wl}-E'
13622 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13624 output_verbose_link_cmd=echo
13630 osf3* | osf4* | osf5*)
13631 case $cc_basename in
13633 # Kuck and Associates, Inc. (KAI) C++ Compiler
13635 # KCC will only create a shared library if the output file
13636 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13637 # to its proper name (with version) after linking.
13638 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'
13640 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13641 hardcode_libdir_separator_CXX=:
13643 # Archives containing C++ object files must be created using
13644 # the KAI C++ compiler.
13646 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13647 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13651 # Rational C++ 2.4.1
13652 # FIXME: insert proper C++ library support
13658 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13659 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'
13660 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13663 allow_undefined_flag_CXX=' -expect_unresolved \*'
13664 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'
13665 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13666 echo "-hidden">> $lib.exp~
13667 $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~
13669 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13673 hardcode_libdir_separator_CXX=:
13675 # Commands to make compiler produce verbose output that lists
13676 # what "hidden" libraries, object files and flags are used when
13677 # linking a shared library.
13679 # There doesn't appear to be a way to prevent this compiler from
13680 # explicitly linking system object files so we need to strip them
13681 # from the output so that they don't get included in the library
13683 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'
13686 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13687 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13690 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'
13693 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'
13697 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13698 hardcode_libdir_separator_CXX=:
13700 # Commands to make compiler produce verbose output that lists
13701 # what "hidden" libraries, object files and flags are used when
13702 # linking a shared library.
13703 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13706 # FIXME: insert proper C++ library support
13714 # FIXME: insert proper C++ library support
13719 case $cc_basename in
13722 # FIXME: insert proper C++ library support
13727 # FIXME: insert proper C++ library support
13731 # FIXME: insert proper C++ library support
13738 case $cc_basename in
13740 # Sun C++ 4.2, 5.x and Centerline C++
13741 archive_cmds_need_lc_CXX=yes
13742 no_undefined_flag_CXX=' -zdefs'
13743 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13744 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13745 $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'
13747 hardcode_libdir_flag_spec_CXX='-R$libdir'
13748 hardcode_shlibpath_var_CXX=no
13750 solaris2.[0-5] | solaris2.[0-5].*) ;;
13752 # The compiler driver will combine and reorder linker options,
13753 # but understands `-z linker_flag'.
13754 # Supported since Solaris 2.6 (maybe 2.5.1?)
13755 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13758 link_all_deplibs_CXX=yes
13760 output_verbose_link_cmd='echo'
13762 # Archives containing C++ object files must be created using
13763 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13764 # necessary to make sure instantiated templates are included
13766 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13769 # Green Hills C++ Compiler
13770 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13772 # The C++ compiler must be used to create the archive.
13773 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13776 # GNU C++ compiler with Solaris linker
13777 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13778 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13779 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13780 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13781 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13782 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13784 # Commands to make compiler produce verbose output that lists
13785 # what "hidden" libraries, object files and flags are used when
13786 # linking a shared library.
13787 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13789 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13791 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13792 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13793 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13795 # Commands to make compiler produce verbose output that lists
13796 # what "hidden" libraries, object files and flags are used when
13797 # linking a shared library.
13798 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13801 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13803 solaris2.[0-5] | solaris2.[0-5].*) ;;
13805 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13813 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13814 no_undefined_flag_CXX='${wl}-z,text'
13815 archive_cmds_need_lc_CXX=no
13816 hardcode_shlibpath_var_CXX=no
13817 runpath_var='LD_RUN_PATH'
13819 case $cc_basename in
13821 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13822 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13825 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13826 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13831 sysv5* | sco3.2v5* | sco5v6*)
13832 # Note: We can NOT use -z defs as we might desire, because we do not
13833 # link with -lc, and that would cause any symbols used from libc to
13834 # always be unresolved, which means just about no library would
13835 # ever link correctly. If we're not using GNU ld we use -z text
13836 # though, which does catch some bad symbols but isn't as heavy-handed
13838 no_undefined_flag_CXX='${wl}-z,text'
13839 allow_undefined_flag_CXX='${wl}-z,nodefs'
13840 archive_cmds_need_lc_CXX=no
13841 hardcode_shlibpath_var_CXX=no
13842 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13843 hardcode_libdir_separator_CXX=':'
13844 link_all_deplibs_CXX=yes
13845 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13846 runpath_var='LD_RUN_PATH'
13848 case $cc_basename in
13850 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13851 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13854 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13855 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13861 case $cc_basename in
13863 # NonStop-UX NCC 3.20
13864 # FIXME: insert proper C++ library support
13868 # FIXME: insert proper C++ library support
13875 # FIXME: insert proper C++ library support
13880 # FIXME: insert proper C++ library support
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13886 $as_echo "$ld_shlibs_CXX" >&6; }
13887 test "$ld_shlibs_CXX" = no && can_build_shared=no
13893 ## There is no encapsulation within the following macros, do not change
13894 ## the running order or otherwise move them around unless you know exactly
13895 ## what you are doing...
13896 # Dependencies to place before and after the object being linked:
13897 predep_objects_CXX=
13898 postdep_objects_CXX=
13901 compiler_lib_search_path_CXX=
13903 cat > conftest.$ac_ext <<_LT_EOF
13907 Foo (void) { a = 0; }
13913 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13914 (eval $ac_compile) 2>&5
13916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13917 test $ac_status = 0; }; then
13918 # Parse the compiler output and extract the necessary
13919 # objects, libraries and library flags.
13921 # Sentinel used to keep track of whether or not we are before
13922 # the conftest object file.
13923 pre_test_object_deps_done=no
13925 for p in `eval "$output_verbose_link_cmd"`; do
13929 # Some compilers place space between "-{L,R}" and the path.
13930 # Remove the space.
13931 if test $p = "-L" ||
13932 test $p = "-R"; then
13939 if test "$pre_test_object_deps_done" = no; then
13942 # Internal compiler library paths should come after those
13943 # provided the user. The postdeps already come after the
13944 # user supplied libs so there is no need to process them.
13945 if test -z "$compiler_lib_search_path_CXX"; then
13946 compiler_lib_search_path_CXX="${prev}${p}"
13948 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13951 # The "-l" case would never come before the object being
13952 # linked, so don't bother handling this case.
13955 if test -z "$postdeps_CXX"; then
13956 postdeps_CXX="${prev}${p}"
13958 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13964 # This assumes that the test object file only shows up
13965 # once in the compiler output.
13966 if test "$p" = "conftest.$objext"; then
13967 pre_test_object_deps_done=yes
13971 if test "$pre_test_object_deps_done" = no; then
13972 if test -z "$predep_objects_CXX"; then
13973 predep_objects_CXX="$p"
13975 predep_objects_CXX="$predep_objects_CXX $p"
13978 if test -z "$postdep_objects_CXX"; then
13979 postdep_objects_CXX="$p"
13981 postdep_objects_CXX="$postdep_objects_CXX $p"
13986 *) ;; # Ignore the rest.
13994 echo "libtool.m4: error: problem compiling CXX test program"
13997 $RM -f confest.$objext
13999 # PORTME: override above test on systems where it is broken
14002 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14003 # hack all around it, let's just trust "g++" to DTRT.
14004 predep_objects_CXX=
14005 postdep_objects_CXX=
14010 case `$CC -V 2>&1 | sed 5q` in
14014 # The more standards-conforming stlport4 library is
14015 # incompatible with the Cstd library. Avoid specifying
14016 # it if it's in CXXFLAGS. Ignore libCrun as
14017 # -library=stlport4 depends on it.
14018 case " $CXX $CXXFLAGS " in
14019 *" -library=stlport4 "*)
14020 solaris_use_stlport4=yes
14024 if test "$solaris_use_stlport4" != yes; then
14025 postdeps_CXX='-library=Cstd -library=Crun'
14032 case $cc_basename in
14034 # The more standards-conforming stlport4 library is
14035 # incompatible with the Cstd library. Avoid specifying
14036 # it if it's in CXXFLAGS. Ignore libCrun as
14037 # -library=stlport4 depends on it.
14038 case " $CXX $CXXFLAGS " in
14039 *" -library=stlport4 "*)
14040 solaris_use_stlport4=yes
14044 # Adding this requires a known-good setup of shared libraries for
14045 # Sun compiler versions before 5.6, else PIC objects from an old
14046 # archive will be linked into the output, leading to subtle bugs.
14047 if test "$solaris_use_stlport4" != yes; then
14048 postdeps_CXX='-library=Cstd -library=Crun'
14056 case " $postdeps_CXX " in
14057 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14059 compiler_lib_search_dirs_CXX=
14060 if test -n "${compiler_lib_search_path_CXX}"; then
14061 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14094 lt_prog_compiler_wl_CXX=
14095 lt_prog_compiler_pic_CXX=
14096 lt_prog_compiler_static_CXX=
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14099 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14101 # C++ specific cases for pic, static, wl, etc.
14102 if test "$GXX" = yes; then
14103 lt_prog_compiler_wl_CXX='-Wl,'
14104 lt_prog_compiler_static_CXX='-static'
14108 # All AIX code is PIC.
14109 if test "$host_cpu" = ia64; then
14110 # AIX 5 now supports IA64 processor
14111 lt_prog_compiler_static_CXX='-Bstatic'
14118 # see comment about AmigaOS4 .so support
14119 lt_prog_compiler_pic_CXX='-fPIC'
14122 # FIXME: we need at least 68020 code to build shared libraries, but
14123 # adding the `-m68020' flag to GCC prevents building anything better,
14125 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14130 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14131 # PIC is the default for these OSes.
14133 mingw* | cygwin* | os2* | pw32* | cegcc*)
14134 # This hack is so that the source file can tell whether it is being
14135 # built for inclusion in a dll (and should export symbols for example).
14136 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14137 # (--disable-auto-import) libraries
14138 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14140 darwin* | rhapsody*)
14141 # PIC is the default on this platform
14142 # Common symbols not allowed in MH_DYLIB files
14143 lt_prog_compiler_pic_CXX='-fno-common'
14146 # DJGPP does not support shared libraries at all
14147 lt_prog_compiler_pic_CXX=
14150 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14151 # Instead, we relocate shared libraries at runtime.
14154 if test -d /usr/nec; then
14155 lt_prog_compiler_pic_CXX=-Kconform_pic
14159 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14160 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14161 # sets the default TLS model and affects inlining.
14166 lt_prog_compiler_pic_CXX='-fPIC'
14171 # QNX uses GNU C++, but need to define -shared option too, otherwise
14172 # it will coredump.
14173 lt_prog_compiler_pic_CXX='-fPIC -shared'
14176 lt_prog_compiler_pic_CXX='-fPIC'
14182 # All AIX code is PIC.
14183 if test "$host_cpu" = ia64; then
14184 # AIX 5 now supports IA64 processor
14185 lt_prog_compiler_static_CXX='-Bstatic'
14187 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14191 case $cc_basename in
14193 # Green Hills C++ Compiler
14194 # _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"
14199 case $cc_basename in
14201 lt_prog_compiler_pic_CXX='-KPIC'
14204 # Green Hills C++ Compiler
14205 lt_prog_compiler_pic_CXX='-pic'
14211 freebsd* | dragonfly*)
14212 # FreeBSD uses GNU C++
14214 hpux9* | hpux10* | hpux11*)
14215 case $cc_basename in
14217 lt_prog_compiler_wl_CXX='-Wl,'
14218 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14219 if test "$host_cpu" != ia64; then
14220 lt_prog_compiler_pic_CXX='+Z'
14224 lt_prog_compiler_wl_CXX='-Wl,'
14225 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14231 lt_prog_compiler_pic_CXX='+Z'
14240 # This is c89, which is MS Visual C++ (no shared libs)
14241 # Anyone wants to do a port?
14243 irix5* | irix6* | nonstopux*)
14244 case $cc_basename in
14246 lt_prog_compiler_wl_CXX='-Wl,'
14247 lt_prog_compiler_static_CXX='-non_shared'
14248 # CC pic flag -KPIC is the default.
14254 linux* | k*bsd*-gnu)
14255 case $cc_basename in
14258 lt_prog_compiler_wl_CXX='--backend -Wl,'
14259 lt_prog_compiler_pic_CXX='-fPIC'
14262 # old Intel C++ for x86_64 which still supported -KPIC.
14263 lt_prog_compiler_wl_CXX='-Wl,'
14264 lt_prog_compiler_pic_CXX='-KPIC'
14265 lt_prog_compiler_static_CXX='-static'
14268 # Intel C++, used to be incompatible with GCC.
14269 # ICC 10 doesn't accept -KPIC any more.
14270 lt_prog_compiler_wl_CXX='-Wl,'
14271 lt_prog_compiler_pic_CXX='-fPIC'
14272 lt_prog_compiler_static_CXX='-static'
14275 # Portland Group C++ compiler
14276 lt_prog_compiler_wl_CXX='-Wl,'
14277 lt_prog_compiler_pic_CXX='-fpic'
14278 lt_prog_compiler_static_CXX='-Bstatic'
14282 # Make sure the PIC flag is empty. It appears that all Alpha
14283 # Linux and Compaq Tru64 Unix objects are PIC.
14284 lt_prog_compiler_pic_CXX=
14285 lt_prog_compiler_static_CXX='-non_shared'
14288 # IBM XL 8.0 on PPC
14289 lt_prog_compiler_wl_CXX='-Wl,'
14290 lt_prog_compiler_pic_CXX='-qpic'
14291 lt_prog_compiler_static_CXX='-qstaticlink'
14294 case `$CC -V 2>&1 | sed 5q` in
14297 lt_prog_compiler_pic_CXX='-KPIC'
14298 lt_prog_compiler_static_CXX='-Bstatic'
14299 lt_prog_compiler_wl_CXX='-Qoption ld '
14310 case $cc_basename in
14312 lt_prog_compiler_pic_CXX='-W c,exportall'
14321 # QNX uses GNU C++, but need to define -shared option too, otherwise
14322 # it will coredump.
14323 lt_prog_compiler_pic_CXX='-fPIC -shared'
14325 osf3* | osf4* | osf5*)
14326 case $cc_basename in
14328 lt_prog_compiler_wl_CXX='--backend -Wl,'
14331 # Rational C++ 2.4.1
14332 lt_prog_compiler_pic_CXX='-pic'
14335 # Digital/Compaq C++
14336 lt_prog_compiler_wl_CXX='-Wl,'
14337 # Make sure the PIC flag is empty. It appears that all Alpha
14338 # Linux and Compaq Tru64 Unix objects are PIC.
14339 lt_prog_compiler_pic_CXX=
14340 lt_prog_compiler_static_CXX='-non_shared'
14349 case $cc_basename in
14351 # Sun C++ 4.2, 5.x and Centerline C++
14352 lt_prog_compiler_pic_CXX='-KPIC'
14353 lt_prog_compiler_static_CXX='-Bstatic'
14354 lt_prog_compiler_wl_CXX='-Qoption ld '
14357 # Green Hills C++ Compiler
14358 lt_prog_compiler_pic_CXX='-PIC'
14365 case $cc_basename in
14368 lt_prog_compiler_pic_CXX='-pic'
14369 lt_prog_compiler_static_CXX='-Bstatic'
14373 lt_prog_compiler_pic_CXX='-pic'
14379 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14380 case $cc_basename in
14382 lt_prog_compiler_wl_CXX='-Wl,'
14383 lt_prog_compiler_pic_CXX='-KPIC'
14384 lt_prog_compiler_static_CXX='-Bstatic'
14389 case $cc_basename in
14391 # NonStop-UX NCC 3.20
14392 lt_prog_compiler_pic_CXX='-KPIC'
14401 lt_prog_compiler_can_build_shared_CXX=no
14407 # For platforms which do not support PIC, -DPIC is meaningless:
14409 lt_prog_compiler_pic_CXX=
14412 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14416 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14421 # Check to make sure the PIC flag actually works.
14423 if test -n "$lt_prog_compiler_pic_CXX"; then
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14425 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14426 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14427 $as_echo_n "(cached) " >&6
14429 lt_cv_prog_compiler_pic_works_CXX=no
14430 ac_outfile=conftest.$ac_objext
14431 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14432 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14433 # Insert the option either (1) after the last *FLAGS variable, or
14434 # (2) before a word containing "conftest.", or (3) at the end.
14435 # Note that $ac_compile itself does not contain backslashes and begins
14436 # with a dollar sign (not a hyphen), so the echo should work correctly.
14437 # The option is referenced via a variable to avoid confusing sed.
14438 lt_compile=`echo "$ac_compile" | $SED \
14439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14441 -e 's:$: $lt_compiler_flag:'`
14442 (eval echo "\"\$as_me:14442: $lt_compile\"" >&5)
14443 (eval "$lt_compile" 2>conftest.err)
14445 cat conftest.err >&5
14446 echo "$as_me:14446: \$? = $ac_status" >&5
14447 if (exit $ac_status) && test -s "$ac_outfile"; then
14448 # The compiler can only warn and ignore the option if not recognized
14449 # So say no if there are warnings other than the usual output.
14450 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14451 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14452 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14453 lt_cv_prog_compiler_pic_works_CXX=yes
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14460 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14462 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14463 case $lt_prog_compiler_pic_CXX in
14465 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14468 lt_prog_compiler_pic_CXX=
14469 lt_prog_compiler_can_build_shared_CXX=no
14477 # Check to make sure the static flag actually works.
14479 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14481 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14482 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14483 $as_echo_n "(cached) " >&6
14485 lt_cv_prog_compiler_static_works_CXX=no
14486 save_LDFLAGS="$LDFLAGS"
14487 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14488 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14489 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14490 # The linker can only warn and ignore the option if not recognized
14491 # So say no if there are warnings
14492 if test -s conftest.err; then
14493 # Append any errors to the config.log.
14494 cat conftest.err 1>&5
14495 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14496 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14497 if diff conftest.exp conftest.er2 >/dev/null; then
14498 lt_cv_prog_compiler_static_works_CXX=yes
14501 lt_cv_prog_compiler_static_works_CXX=yes
14505 LDFLAGS="$save_LDFLAGS"
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14509 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14511 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14514 lt_prog_compiler_static_CXX=
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14521 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14522 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14523 $as_echo_n "(cached) " >&6
14525 lt_cv_prog_compiler_c_o_CXX=no
14526 $RM -r conftest 2>/dev/null
14530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14532 lt_compiler_flag="-o out/conftest2.$ac_objext"
14533 # Insert the option either (1) after the last *FLAGS variable, or
14534 # (2) before a word containing "conftest.", or (3) at the end.
14535 # Note that $ac_compile itself does not contain backslashes and begins
14536 # with a dollar sign (not a hyphen), so the echo should work correctly.
14537 lt_compile=`echo "$ac_compile" | $SED \
14538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14540 -e 's:$: $lt_compiler_flag:'`
14541 (eval echo "\"\$as_me:14541: $lt_compile\"" >&5)
14542 (eval "$lt_compile" 2>out/conftest.err)
14544 cat out/conftest.err >&5
14545 echo "$as_me:14545: \$? = $ac_status" >&5
14546 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14548 # The compiler can only warn and ignore the option if not recognized
14549 # So say no if there are warnings
14550 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14551 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14552 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14553 lt_cv_prog_compiler_c_o_CXX=yes
14558 # SGI C++ compiler will create directory out/ii_files/ for
14559 # template instantiation
14560 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14561 $RM out/* && rmdir out
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14568 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14573 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14574 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14575 $as_echo_n "(cached) " >&6
14577 lt_cv_prog_compiler_c_o_CXX=no
14578 $RM -r conftest 2>/dev/null
14582 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14584 lt_compiler_flag="-o out/conftest2.$ac_objext"
14585 # Insert the option either (1) after the last *FLAGS variable, or
14586 # (2) before a word containing "conftest.", or (3) at the end.
14587 # Note that $ac_compile itself does not contain backslashes and begins
14588 # with a dollar sign (not a hyphen), so the echo should work correctly.
14589 lt_compile=`echo "$ac_compile" | $SED \
14590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14592 -e 's:$: $lt_compiler_flag:'`
14593 (eval echo "\"\$as_me:14593: $lt_compile\"" >&5)
14594 (eval "$lt_compile" 2>out/conftest.err)
14596 cat out/conftest.err >&5
14597 echo "$as_me:14597: \$? = $ac_status" >&5
14598 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14600 # The compiler can only warn and ignore the option if not recognized
14601 # So say no if there are warnings
14602 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14603 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14604 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14605 lt_cv_prog_compiler_c_o_CXX=yes
14610 # SGI C++ compiler will create directory out/ii_files/ for
14611 # template instantiation
14612 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14613 $RM out/* && rmdir out
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14620 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14625 hard_links="nottested"
14626 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14627 # do not overwrite the value of need_locks provided by the user
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14629 $as_echo_n "checking if we can lock with hard links... " >&6; }
14632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14634 ln conftest.a conftest.b 2>&5 || hard_links=no
14635 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14637 $as_echo "$hard_links" >&6; }
14638 if test "$hard_links" = no; then
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14640 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14650 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14652 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14655 # If we're using GNU nm, then we don't want the "-C" option.
14656 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14657 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14658 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'
14660 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'
14664 export_symbols_cmds_CXX="$ltdll_cmds"
14666 cygwin* | mingw* | cegcc*)
14667 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'
14670 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14673 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14676 $as_echo "$ld_shlibs_CXX" >&6; }
14677 test "$ld_shlibs_CXX" = no && can_build_shared=no
14679 with_gnu_ld_CXX=$with_gnu_ld
14687 # Do we need to explicitly link libc?
14689 case "x$archive_cmds_need_lc_CXX" in
14691 # Assume -lc should be added
14692 archive_cmds_need_lc_CXX=yes
14694 if test "$enable_shared" = yes && test "$GCC" = yes; then
14695 case $archive_cmds_CXX in
14697 # FIXME: we may have to deal with multi-command sequences.
14700 # Test whether the compiler implicitly links with -lc since on some
14701 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14702 # to ld, don't add -lc before -lgcc.
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14704 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14706 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14709 (eval $ac_compile) 2>&5
14711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14712 test $ac_status = 0; } 2>conftest.err; then
14715 libobjs=conftest.$ac_objext
14717 wl=$lt_prog_compiler_wl_CXX
14718 pic_flag=$lt_prog_compiler_pic_CXX
14724 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14725 allow_undefined_flag_CXX=
14726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14727 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14730 test $ac_status = 0; }
14732 archive_cmds_need_lc_CXX=no
14734 archive_cmds_need_lc_CXX=yes
14736 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14738 cat conftest.err 1>&5
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14742 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14813 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14815 library_names_spec=
14816 libname_spec='lib$name'
14820 postuninstall_cmds=
14824 shlibpath_overrides_runpath=unknown
14826 dynamic_linker="$host_os ld.so"
14827 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14828 need_lib_prefix=unknown
14829 hardcode_into_libs=no
14831 # when you set need_version to no, make sure it does not cause -set_version
14832 # flags to be left without arguments
14833 need_version=unknown
14838 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14839 shlibpath_var=LIBPATH
14841 # AIX 3 has no versioning support, so we append a major version to the name.
14842 soname_spec='${libname}${release}${shared_ext}$major'
14849 hardcode_into_libs=yes
14850 if test "$host_cpu" = ia64; then
14851 # AIX 5 supports IA64
14852 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14853 shlibpath_var=LD_LIBRARY_PATH
14855 # With GCC up to 2.95.x, collect2 would create an import file
14856 # for dependence libraries. The import file would start with
14857 # the line `#! .'. This would cause the generated library to
14858 # depend on `.', always an invalid library. This was fixed in
14859 # development snapshots of GCC prior to 3.0.
14861 aix4 | aix4.[01] | aix4.[01].*)
14862 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14864 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14867 can_build_shared=no
14871 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14872 # soname into executable. Probably we can add versioning support to
14873 # collect2, so additional links can be useful in future.
14874 if test "$aix_use_runtimelinking" = yes; then
14875 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14876 # instead of lib<name>.a to let people know that these are not
14877 # typical AIX shared libraries.
14878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14880 # We preserve .a as extension for shared libraries through AIX4.2
14881 # and later when we are not doing run time linking.
14882 library_names_spec='${libname}${release}.a $libname.a'
14883 soname_spec='${libname}${release}${shared_ext}$major'
14885 shlibpath_var=LIBPATH
14892 # Since July 2007 AmigaOS4 officially supports .so libraries.
14893 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14897 library_names_spec='$libname.ixlibrary $libname.a'
14898 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14899 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'
14905 library_names_spec='${libname}${shared_ext}'
14906 dynamic_linker="$host_os ld.so"
14907 shlibpath_var=LIBRARY_PATH
14913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14914 soname_spec='${libname}${release}${shared_ext}$major'
14915 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14916 shlibpath_var=LD_LIBRARY_PATH
14917 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14918 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14919 # the default ld.so.conf also contains /usr/contrib/lib and
14920 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14921 # libtool to hard-code these into programs
14924 cygwin* | mingw* | pw32* | cegcc*)
14925 version_type=windows
14930 case $GCC,$host_os in
14931 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14932 library_names_spec='$libname.dll.a'
14933 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14934 postinstall_cmds='base_file=`basename \${file}`~
14935 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14936 dldir=$destdir/`dirname \$dlpath`~
14937 test -d \$dldir || mkdir -p \$dldir~
14938 $install_prog $dir/$dlname \$dldir/$dlname~
14939 chmod a+x \$dldir/$dlname~
14940 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14941 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14943 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14944 dlpath=$dir/\$dldll~
14946 shlibpath_overrides_runpath=yes
14950 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14951 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14952 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14955 # MinGW DLLs use traditional 'lib' prefix
14956 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14957 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14958 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14959 # It is most probably a Windows format PATH printed by
14960 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14961 # path with ; separators, and with drive letters. We can handle the
14962 # drive letters (cygwin fileutils understands them), so leave them,
14963 # especially as we might pass files found there to a mingw objdump,
14964 # which wouldn't understand a cygwinified path. Ahh.
14965 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14967 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14971 # pw32 DLLs use 'pw' prefix rather than 'lib'
14972 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14978 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14981 dynamic_linker='Win32 ld.exe'
14982 # FIXME: first we should search . and the directory the executable is in
14986 darwin* | rhapsody*)
14987 dynamic_linker="$host_os dyld"
14988 version_type=darwin
14991 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14992 soname_spec='${libname}${release}${major}$shared_ext'
14993 shlibpath_overrides_runpath=yes
14994 shlibpath_var=DYLD_LIBRARY_PATH
14995 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14997 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15005 soname_spec='${libname}${release}${shared_ext}$major'
15006 shlibpath_var=LD_LIBRARY_PATH
15013 freebsd* | dragonfly*)
15014 # DragonFly does not have aout. When/if they implement a new
15015 # versioning mechanism, adjust this.
15016 if test -x /usr/bin/objformat; then
15017 objformat=`/usr/bin/objformat`
15020 freebsd[123]*) objformat=aout ;;
15021 *) objformat=elf ;;
15024 version_type=freebsd-$objformat
15025 case $version_type in
15027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15032 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15036 shlibpath_var=LD_LIBRARY_PATH
15039 shlibpath_overrides_runpath=yes
15041 freebsd3.[01]* | freebsdelf3.[01]*)
15042 shlibpath_overrides_runpath=yes
15043 hardcode_into_libs=yes
15045 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15046 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15047 shlibpath_overrides_runpath=no
15048 hardcode_into_libs=yes
15050 *) # from 4.6 on, and DragonFly
15051 shlibpath_overrides_runpath=yes
15052 hardcode_into_libs=yes
15061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15062 soname_spec='${libname}${release}${shared_ext}$major'
15063 shlibpath_var=LD_LIBRARY_PATH
15064 hardcode_into_libs=yes
15067 hpux9* | hpux10* | hpux11*)
15068 # Give a soname corresponding to the major version so that dld.sl refuses to
15069 # link against other versions.
15076 hardcode_into_libs=yes
15077 dynamic_linker="$host_os dld.so"
15078 shlibpath_var=LD_LIBRARY_PATH
15079 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15081 soname_spec='${libname}${release}${shared_ext}$major'
15082 if test "X$HPUX_IA64_MODE" = X32; then
15083 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15085 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15087 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15091 hardcode_into_libs=yes
15092 dynamic_linker="$host_os dld.sl"
15093 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15094 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15096 soname_spec='${libname}${release}${shared_ext}$major'
15097 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15098 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15102 dynamic_linker="$host_os dld.sl"
15103 shlibpath_var=SHLIB_PATH
15104 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15106 soname_spec='${libname}${release}${shared_ext}$major'
15109 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15110 postinstall_cmds='chmod 555 $lib'
15117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15118 soname_spec='${libname}${release}${shared_ext}$major'
15119 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15120 shlibpath_var=LD_LIBRARY_PATH
15121 shlibpath_overrides_runpath=no
15122 hardcode_into_libs=yes
15125 irix5* | irix6* | nonstopux*)
15127 nonstopux*) version_type=nonstopux ;;
15129 if test "$lt_cv_prog_gnu_ld" = yes; then
15137 soname_spec='${libname}${release}${shared_ext}$major'
15138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15140 irix5* | nonstopux*)
15141 libsuff= shlibsuff=
15144 case $LD in # libtool.m4 will add one of these switches to LD
15145 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15146 libsuff= shlibsuff= libmagic=32-bit;;
15147 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15148 libsuff=32 shlibsuff=N32 libmagic=N32;;
15149 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15150 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15151 *) libsuff= shlibsuff= libmagic=never-match;;
15155 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15156 shlibpath_overrides_runpath=no
15157 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15158 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15159 hardcode_into_libs=yes
15162 # No shared lib support for Linux oldld, aout, or coff.
15163 linux*oldld* | linux*aout* | linux*coff*)
15167 # This must be Linux ELF.
15168 linux* | k*bsd*-gnu)
15172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15173 soname_spec='${libname}${release}${shared_ext}$major'
15174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15175 shlibpath_var=LD_LIBRARY_PATH
15176 shlibpath_overrides_runpath=no
15177 # Some binutils ld are patched to set DT_RUNPATH
15178 save_LDFLAGS=$LDFLAGS
15179 save_libdir=$libdir
15180 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15181 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h. */
15193 if ac_fn_cxx_try_link "$LINENO"; then :
15194 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15195 shlibpath_overrides_runpath=yes
15198 rm -f core conftest.err conftest.$ac_objext \
15199 conftest$ac_exeext conftest.$ac_ext
15200 LDFLAGS=$save_LDFLAGS
15201 libdir=$save_libdir
15203 # This implies no fast_install, which is unacceptable.
15204 # Some rework will be needed to allow for fast_install
15205 # before this can be enabled.
15206 hardcode_into_libs=yes
15208 # Append ld.so.conf contents to the search path
15209 if test -f /etc/ld.so.conf; then
15210 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' ' '`
15211 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15214 # We used to test for /lib/ld.so.1 and disable shared libraries on
15215 # powerpc, because MkLinux only supported shared libraries with the
15216 # GNU dynamic linker. Since this was broken with cross compilers,
15217 # most powerpc-linux boxes support dynamic linking these days and
15218 # people can always --disable-shared, the test was removed, and we
15219 # assume the GNU/Linux dynamic linker is in use.
15220 dynamic_linker='GNU/Linux ld.so'
15227 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15230 dynamic_linker='NetBSD (a.out) ld.so'
15232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15233 soname_spec='${libname}${release}${shared_ext}$major'
15234 dynamic_linker='NetBSD ld.elf_so'
15236 shlibpath_var=LD_LIBRARY_PATH
15237 shlibpath_overrides_runpath=yes
15238 hardcode_into_libs=yes
15243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15244 shlibpath_var=LD_LIBRARY_PATH
15245 shlibpath_overrides_runpath=yes
15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15253 soname_spec='${libname}${release}${shared_ext}$major'
15254 shlibpath_var=LD_LIBRARY_PATH
15255 shlibpath_overrides_runpath=no
15256 hardcode_into_libs=yes
15257 dynamic_linker='ldqnx.so'
15262 sys_lib_dlsearch_path_spec="/usr/lib"
15264 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15266 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15267 *) need_version=no ;;
15269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15271 shlibpath_var=LD_LIBRARY_PATH
15272 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15274 openbsd2.[89] | openbsd2.[89].*)
15275 shlibpath_overrides_runpath=no
15278 shlibpath_overrides_runpath=yes
15282 shlibpath_overrides_runpath=yes
15287 libname_spec='$name'
15290 library_names_spec='$libname${shared_ext} $libname.a'
15291 dynamic_linker='OS/2 ld.exe'
15292 shlibpath_var=LIBPATH
15295 osf3* | osf4* | osf5*)
15299 soname_spec='${libname}${release}${shared_ext}$major'
15300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15301 shlibpath_var=LD_LIBRARY_PATH
15302 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15303 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15315 soname_spec='${libname}${release}${shared_ext}$major'
15316 shlibpath_var=LD_LIBRARY_PATH
15317 shlibpath_overrides_runpath=yes
15318 hardcode_into_libs=yes
15319 # ldd complains unless libraries are executable
15320 postinstall_cmds='chmod +x $lib'
15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15326 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15327 shlibpath_var=LD_LIBRARY_PATH
15328 shlibpath_overrides_runpath=yes
15329 if test "$with_gnu_ld" = yes; then
15337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15338 soname_spec='${libname}${release}${shared_ext}$major'
15339 shlibpath_var=LD_LIBRARY_PATH
15340 case $host_vendor in
15342 shlibpath_overrides_runpath=no
15344 runpath_var=LD_RUN_PATH
15352 shlibpath_overrides_runpath=no
15353 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15359 if test -d /usr/nec ;then
15361 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15362 soname_spec='$libname${shared_ext}.$major'
15363 shlibpath_var=LD_LIBRARY_PATH
15367 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15368 version_type=freebsd-elf
15371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15372 soname_spec='${libname}${release}${shared_ext}$major'
15373 shlibpath_var=LD_LIBRARY_PATH
15374 shlibpath_overrides_runpath=yes
15375 hardcode_into_libs=yes
15376 if test "$with_gnu_ld" = yes; then
15377 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15379 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15382 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15386 sys_lib_dlsearch_path_spec='/usr/lib'
15390 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395 shlibpath_var=LD_LIBRARY_PATH
15396 shlibpath_overrides_runpath=no
15397 hardcode_into_libs=yes
15402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15403 soname_spec='${libname}${release}${shared_ext}$major'
15404 shlibpath_var=LD_LIBRARY_PATH
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15412 $as_echo "$dynamic_linker" >&6; }
15413 test "$dynamic_linker" = no && can_build_shared=no
15415 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15416 if test "$GCC" = yes; then
15417 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15420 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15421 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15423 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15424 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15463 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15464 hardcode_action_CXX=
15465 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15466 test -n "$runpath_var_CXX" ||
15467 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15469 # We can hardcode non-existent directories.
15470 if test "$hardcode_direct_CXX" != no &&
15471 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15472 # have to relink, otherwise we might link with an installed library
15473 # when we should be linking with a yet-to-be-installed one
15474 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15475 test "$hardcode_minus_L_CXX" != no; then
15476 # Linking always hardcodes the temporary library directory.
15477 hardcode_action_CXX=relink
15479 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15480 hardcode_action_CXX=immediate
15483 # We cannot hardcode anything, or else we can only hardcode existing
15485 hardcode_action_CXX=unsupported
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15488 $as_echo "$hardcode_action_CXX" >&6; }
15490 if test "$hardcode_action_CXX" = relink ||
15491 test "$inherit_rpath_CXX" = yes; then
15492 # Fast installation is not supported
15493 enable_fast_install=no
15494 elif test "$shlibpath_overrides_runpath" = yes ||
15495 test "$enable_shared" = no; then
15496 # Fast installation is not necessary
15497 enable_fast_install=needless
15506 fi # test -n "$compiler"
15512 with_gnu_ld=$lt_save_with_gnu_ld
15513 lt_cv_path_LDCXX=$lt_cv_path_LD
15514 lt_cv_path_LD=$lt_save_path_LD
15515 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15516 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15517 fi # test "$_lt_caught_CXX_error" != yes
15520 ac_cpp='$CPP $CPPFLAGS'
15521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15537 ac_config_commands="$ac_config_commands libtool"
15542 # Only expand once:
15547 if test x$use_libtool != xno; then
15548 DEFAULT_OBJECT_TYPE=".lo"
15549 DEFAULT_ARCHIVE_TYPE=".la"
15550 DEFAULT_SHARED_OBJECT_TYPE=".la"
15551 LIBTOOL="\$(LIBTOOL)"
15552 LIBTOOL_INSTALL_TARGET="libtool-install"
15553 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15554 LIBTOOL_CLEAN_TARGET="libtool-clean"
15555 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15556 FD_PLUGIN_DIR="src/plugins/fd"
15559 DEFAULT_OBJECT_TYPE=".o"
15560 DEFAULT_ARCHIVE_TYPE=".a"
15561 DEFAULT_SHARED_OBJECT_TYPE=".so"
15562 LIBTOOL="# \$(LIBTOOL)"
15563 LIBTOOL_INSTALL_TARGET=""
15564 LIBTOOL_UNINSTALL_TARGET=""
15565 LIBTOOL_CLEAN_TARGET=""
15566 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15581 # Check whether --enable-includes was given.
15582 if test "${enable_includes+set}" = set; then :
15583 enableval=$enable_includes;
15584 if test x$enableval = xyes; then
15585 install_includes=yes
15593 if test x$use_libtool != xno -a x$install_includes = xyes; then
15594 INCLUDE_INSTALL_TARGET="install-includes"
15595 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15597 INCLUDE_INSTALL_TARGET=""
15598 INCLUDE_UNINSTALL_TARGET=""
15606 *cygwin* ) CYGWIN=yes;;
15610 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15616 HAVE_SUN_OS_FALSE='#'
15618 HAVE_SUN_OS_TRUE='#'
15621 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15628 HAVE_SUN_OS_FALSE='#'
15630 HAVE_SUN_OS_TRUE='#'
15635 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15641 HAVE_OSF1_OS_FALSE='#'
15643 HAVE_OSF1_OS_TRUE='#'
15644 HAVE_OSF1_OS_FALSE=
15646 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15653 HAVE_OSF1_OS_FALSE='#'
15655 HAVE_OSF1_OS_TRUE='#'
15656 HAVE_OSF1_OS_FALSE=
15660 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15666 HAVE_AIX_OS_FALSE='#'
15668 HAVE_AIX_OS_TRUE='#'
15671 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15678 HAVE_AIX_OS_FALSE='#'
15680 HAVE_AIX_OS_TRUE='#'
15685 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15691 HAVE_HPUX_OS_FALSE='#'
15693 HAVE_HPUX_OS_TRUE='#'
15694 HAVE_HPUX_OS_FALSE=
15696 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15703 HAVE_HPUX_OS_FALSE='#'
15705 HAVE_HPUX_OS_TRUE='#'
15706 HAVE_HPUX_OS_FALSE=
15710 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15715 HAVE_LINUX_OS_TRUE=
15716 HAVE_LINUX_OS_FALSE='#'
15718 HAVE_LINUX_OS_TRUE='#'
15719 HAVE_LINUX_OS_FALSE=
15721 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15727 HAVE_LINUX_OS_TRUE=
15728 HAVE_LINUX_OS_FALSE='#'
15730 HAVE_LINUX_OS_TRUE='#'
15731 HAVE_LINUX_OS_FALSE=
15735 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15740 HAVE_FREEBSD_OS_TRUE=
15741 HAVE_FREEBSD_OS_FALSE='#'
15743 HAVE_FREEBSD_OS_TRUE='#'
15744 HAVE_FREEBSD_OS_FALSE=
15746 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15752 HAVE_FREEBSD_OS_TRUE=
15753 HAVE_FREEBSD_OS_FALSE='#'
15755 HAVE_FREEBSD_OS_TRUE='#'
15756 HAVE_FREEBSD_OS_FALSE=
15760 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15765 HAVE_NETBSD_OS_TRUE=
15766 HAVE_NETBSD_OS_FALSE='#'
15768 HAVE_NETBSD_OS_TRUE='#'
15769 HAVE_NETBSD_OS_FALSE=
15771 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15777 HAVE_NETBSD_OS_TRUE=
15778 HAVE_NETBSD_OS_FALSE='#'
15780 HAVE_NETBSD_OS_TRUE='#'
15781 HAVE_NETBSD_OS_FALSE=
15785 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15790 HAVE_OPENBSD_OS_TRUE=
15791 HAVE_OPENBSD_OS_FALSE='#'
15793 HAVE_OPENBSD_OS_TRUE='#'
15794 HAVE_OPENBSD_OS_FALSE=
15796 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15802 HAVE_OPENBSD_OS_TRUE=
15803 HAVE_OPENBSD_OS_FALSE='#'
15805 HAVE_OPENBSD_OS_TRUE='#'
15806 HAVE_OPENBSD_OS_FALSE=
15810 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15816 HAVE_BSDI_OS_FALSE='#'
15818 HAVE_BSDI_OS_TRUE='#'
15819 HAVE_BSDI_OS_FALSE=
15821 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15828 HAVE_BSDI_OS_FALSE='#'
15830 HAVE_BSDI_OS_TRUE='#'
15831 HAVE_BSDI_OS_FALSE=
15835 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15841 HAVE_SGI_OS_FALSE='#'
15843 HAVE_SGI_OS_TRUE='#'
15846 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15853 HAVE_SGI_OS_FALSE='#'
15855 HAVE_SGI_OS_TRUE='#'
15860 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15866 HAVE_IRIX_OS_FALSE='#'
15868 HAVE_IRIX_OS_TRUE='#'
15869 HAVE_IRIX_OS_FALSE=
15871 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15878 HAVE_IRIX_OS_FALSE='#'
15880 HAVE_IRIX_OS_TRUE='#'
15881 HAVE_IRIX_OS_FALSE=
15885 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15890 HAVE_DARWIN_OS_TRUE=
15891 HAVE_DARWIN_OS_FALSE='#'
15893 HAVE_DARWIN_OS_TRUE='#'
15894 HAVE_DARWIN_OS_FALSE=
15896 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15902 HAVE_DARWIN_OS_TRUE=
15903 HAVE_DARWIN_OS_FALSE='#'
15905 HAVE_DARWIN_OS_TRUE='#'
15906 HAVE_DARWIN_OS_FALSE=
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
15912 $as_echo_n "checking for Operating System Distribution... " >&6; }
15913 if test "x$DISTNAME" != "x"
15915 echo "distname set to $DISTNAME"
15916 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15919 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15922 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15925 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15928 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15931 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15934 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15937 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
15940 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15943 elif test -f /etc/SuSE-release
15946 elif test -d /etc/SuSEconfig
15949 elif test -f /etc/mandrake-release
15952 elif test -f /etc/whitebox-release
15955 elif test -f /etc/redhat-release
15958 elif test -f /etc/gentoo-release
15961 elif test -f /etc/debian_version
15964 elif test -f /etc/slackware-version
15967 elif test x$host_vendor = xapple
15970 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15973 elif test -f /etc/engarde-version
15976 elif test "$CYGWIN" = yes
15979 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15985 $as_echo "done" >&6; }
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15989 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15991 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15992 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15993 $as_echo_n "(cached) " >&6
15995 cat >conftest.make <<\_ACEOF
15998 @echo '@@@%%%=$(MAKE)=@@@%%%'
16000 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16001 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16002 *@@@%%%=?*=@@@%%%*)
16003 eval ac_cv_prog_make_${ac_make}_set=yes;;
16005 eval ac_cv_prog_make_${ac_make}_set=no;;
16007 rm -f conftest.make
16009 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16011 $as_echo "yes" >&6; }
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16015 $as_echo "no" >&6; }
16016 SET_MAKE="MAKE=${MAKE-make}"
16022 if test -n "$ac_aux_dir"; then
16023 case "$ac_aux_dir" in
16024 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16025 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16028 if test -z "$MKINSTALLDIRS"; then
16029 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16035 $as_echo_n "checking whether NLS is requested... " >&6; }
16036 # Check whether --enable-nls was given.
16037 if test "${enable_nls+set}" = set; then :
16038 enableval=$enable_nls; USE_NLS=$enableval
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16044 $as_echo "$USE_NLS" >&6; }
16051 # Prepare PATH_SEPARATOR.
16052 # The user is always right.
16053 if test "${PATH_SEPARATOR+set}" != set; then
16054 echo "#! /bin/sh" >conf$$.sh
16055 echo "exit 0" >>conf$$.sh
16057 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16065 # Find out how to test for executable files. Don't use a zero-byte file,
16066 # as systems may use methods other than mode bits to determine executability.
16067 cat >conf$$.file <<_ASEOF
16071 chmod +x conf$$.file
16072 if test -x conf$$.file >/dev/null 2>&1; then
16073 ac_executable_p="test -x"
16075 ac_executable_p="test -f"
16079 # Extract the first word of "msgfmt", so it can be a program name with args.
16080 set dummy msgfmt; ac_word=$2
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16082 $as_echo_n "checking for $ac_word... " >&6; }
16083 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16084 $as_echo_n "(cached) " >&6
16088 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16091 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16092 for ac_dir in $PATH; do
16094 test -z "$ac_dir" && ac_dir=.
16095 for ac_exec_ext in '' $ac_executable_extensions; do
16096 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16097 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16098 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16099 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16100 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16107 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16111 MSGFMT="$ac_cv_path_MSGFMT"
16112 if test "$MSGFMT" != ":"; then
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16114 $as_echo "$MSGFMT" >&6; }
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16117 $as_echo "no" >&6; }
16120 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16121 set dummy gmsgfmt; ac_word=$2
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16123 $as_echo_n "checking for $ac_word... " >&6; }
16124 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16125 $as_echo_n "(cached) " >&6
16129 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16133 for as_dir in $PATH
16136 test -z "$as_dir" && as_dir=.
16137 for ac_exec_ext in '' $ac_executable_extensions; do
16138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16139 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16147 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16151 GMSGFMT=$ac_cv_path_GMSGFMT
16152 if test -n "$GMSGFMT"; then
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16154 $as_echo "$GMSGFMT" >&6; }
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16157 $as_echo "no" >&6; }
16163 # Prepare PATH_SEPARATOR.
16164 # The user is always right.
16165 if test "${PATH_SEPARATOR+set}" != set; then
16166 echo "#! /bin/sh" >conf$$.sh
16167 echo "exit 0" >>conf$$.sh
16169 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16177 # Find out how to test for executable files. Don't use a zero-byte file,
16178 # as systems may use methods other than mode bits to determine executability.
16179 cat >conf$$.file <<_ASEOF
16183 chmod +x conf$$.file
16184 if test -x conf$$.file >/dev/null 2>&1; then
16185 ac_executable_p="test -x"
16187 ac_executable_p="test -f"
16191 # Extract the first word of "xgettext", so it can be a program name with args.
16192 set dummy xgettext; ac_word=$2
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16194 $as_echo_n "checking for $ac_word... " >&6; }
16195 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16196 $as_echo_n "(cached) " >&6
16198 case "$XGETTEXT" in
16200 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16203 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16204 for ac_dir in $PATH; do
16206 test -z "$ac_dir" && ac_dir=.
16207 for ac_exec_ext in '' $ac_executable_extensions; do
16208 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16209 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16210 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16211 (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
16212 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16219 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16223 XGETTEXT="$ac_cv_path_XGETTEXT"
16224 if test "$XGETTEXT" != ":"; then
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16226 $as_echo "$XGETTEXT" >&6; }
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16229 $as_echo "no" >&6; }
16235 # Prepare PATH_SEPARATOR.
16236 # The user is always right.
16237 if test "${PATH_SEPARATOR+set}" != set; then
16238 echo "#! /bin/sh" >conf$$.sh
16239 echo "exit 0" >>conf$$.sh
16241 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16249 # Find out how to test for executable files. Don't use a zero-byte file,
16250 # as systems may use methods other than mode bits to determine executability.
16251 cat >conf$$.file <<_ASEOF
16255 chmod +x conf$$.file
16256 if test -x conf$$.file >/dev/null 2>&1; then
16257 ac_executable_p="test -x"
16259 ac_executable_p="test -f"
16263 # Extract the first word of "msgmerge", so it can be a program name with args.
16264 set dummy msgmerge; ac_word=$2
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16266 $as_echo_n "checking for $ac_word... " >&6; }
16267 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16268 $as_echo_n "(cached) " >&6
16270 case "$MSGMERGE" in
16272 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16275 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16276 for ac_dir in $PATH; do
16278 test -z "$ac_dir" && ac_dir=.
16279 for ac_exec_ext in '' $ac_executable_extensions; do
16280 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16281 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16282 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16283 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16290 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16294 MSGMERGE="$ac_cv_path_MSGMERGE"
16295 if test "$MSGMERGE" != ":"; then
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16297 $as_echo "$MSGMERGE" >&6; }
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16300 $as_echo "no" >&6; }
16304 if test "$GMSGFMT" != ":"; then
16305 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16306 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16309 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16311 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16316 if test "$XGETTEXT" != ":"; then
16317 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16318 (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
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16322 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16328 ac_config_commands="$ac_config_commands default-1"
16332 if test "X$prefix" = "XNONE"; then
16333 acl_final_prefix="$ac_default_prefix"
16335 acl_final_prefix="$prefix"
16337 if test "X$exec_prefix" = "XNONE"; then
16338 acl_final_exec_prefix='${prefix}'
16340 acl_final_exec_prefix="$exec_prefix"
16342 acl_save_prefix="$prefix"
16343 prefix="$acl_final_prefix"
16344 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16345 prefix="$acl_save_prefix"
16348 # Check whether --with-gnu-ld was given.
16349 if test "${with_gnu_ld+set}" = set; then :
16350 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16355 # Prepare PATH_SEPARATOR.
16356 # The user is always right.
16357 if test "${PATH_SEPARATOR+set}" != set; then
16358 echo "#! /bin/sh" >conf$$.sh
16359 echo "exit 0" >>conf$$.sh
16361 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16369 if test "$GCC" = yes; then
16370 # Check if gcc -print-prog-name=ld gives a path.
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16372 $as_echo_n "checking for ld used by GCC... " >&6; }
16375 # gcc leaves a trailing carriage return which upsets mingw
16376 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16378 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16381 # Accept absolute paths.
16382 [\\/]* | [A-Za-z]:[\\/]*)
16383 re_direlt='/[^/][^/]*/\.\./'
16384 # Canonicalize the path of ld
16385 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16386 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16387 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16389 test -z "$LD" && LD="$ac_prog"
16392 # If it fails, then pretend we aren't using GCC.
16396 # If it is relative, then search for the first ld in PATH.
16397 with_gnu_ld=unknown
16400 elif test "$with_gnu_ld" = yes; then
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16402 $as_echo_n "checking for GNU ld... " >&6; }
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16405 $as_echo_n "checking for non-GNU ld... " >&6; }
16407 if test "${acl_cv_path_LD+set}" = set; then :
16408 $as_echo_n "(cached) " >&6
16410 if test -z "$LD"; then
16411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16412 for ac_dir in $PATH; do
16413 test -z "$ac_dir" && ac_dir=.
16414 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16415 acl_cv_path_LD="$ac_dir/$ac_prog"
16416 # Check to see if the program is GNU ld. I'd rather use --version,
16417 # but apparently some GNU ld's only accept -v.
16418 # Break only if it was the GNU/non-GNU ld that we prefer.
16419 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16420 *GNU* | *'with BFD'*)
16421 test "$with_gnu_ld" != no && break ;;
16423 test "$with_gnu_ld" != yes && break ;;
16429 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16433 LD="$acl_cv_path_LD"
16434 if test -n "$LD"; then
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16436 $as_echo "$LD" >&6; }
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16439 $as_echo "no" >&6; }
16441 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16443 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16444 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
16445 $as_echo_n "(cached) " >&6
16447 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16448 case `$LD -v 2>&1 </dev/null` in
16449 *GNU* | *'with BFD'*)
16450 acl_cv_prog_gnu_ld=yes ;;
16452 acl_cv_prog_gnu_ld=no ;;
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16456 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16457 with_gnu_ld=$acl_cv_prog_gnu_ld
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16463 $as_echo_n "checking for shared library run path origin... " >&6; }
16464 if test "${acl_cv_rpath+set}" = set; then :
16465 $as_echo_n "(cached) " >&6
16468 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16469 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16471 rm -f ./conftest.sh
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16476 $as_echo "$acl_cv_rpath" >&6; }
16478 libext="$acl_cv_libext"
16479 shlibext="$acl_cv_shlibext"
16480 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16481 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16482 hardcode_direct="$acl_cv_hardcode_direct"
16483 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16484 # Check whether --enable-rpath was given.
16485 if test "${enable_rpath+set}" = set; then :
16486 enableval=$enable_rpath; :
16500 acl_save_prefix="$prefix"
16501 prefix="$acl_final_prefix"
16502 acl_save_exec_prefix="$exec_prefix"
16503 exec_prefix="$acl_final_exec_prefix"
16505 eval additional_includedir=\"$includedir\"
16506 eval additional_libdir=\"$libdir\"
16508 exec_prefix="$acl_save_exec_prefix"
16509 prefix="$acl_save_prefix"
16512 # Check whether --with-libiconv-prefix was given.
16513 if test "${with_libiconv_prefix+set}" = set; then :
16514 withval=$with_libiconv_prefix;
16515 if test "X$withval" = "Xno"; then
16518 if test "X$withval" = "X"; then
16520 acl_save_prefix="$prefix"
16521 prefix="$acl_final_prefix"
16522 acl_save_exec_prefix="$exec_prefix"
16523 exec_prefix="$acl_final_exec_prefix"
16525 eval additional_includedir=\"$includedir\"
16526 eval additional_libdir=\"$libdir\"
16528 exec_prefix="$acl_save_exec_prefix"
16529 prefix="$acl_save_prefix"
16532 additional_includedir="$withval/include"
16533 additional_libdir="$withval/lib"
16544 names_already_handled=
16545 names_next_round='iconv '
16546 while test -n "$names_next_round"; do
16547 names_this_round="$names_next_round"
16549 for name in $names_this_round; do
16551 for n in $names_already_handled; do
16552 if test "$n" = "$name"; then
16553 already_handled=yes
16557 if test -z "$already_handled"; then
16558 names_already_handled="$names_already_handled $name"
16559 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16560 eval value=\"\$HAVE_LIB$uppername\"
16561 if test -n "$value"; then
16562 if test "$value" = yes; then
16563 eval value=\"\$LIB$uppername\"
16564 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16565 eval value=\"\$LTLIB$uppername\"
16566 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16575 if test $use_additional = yes; then
16576 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16577 found_dir="$additional_libdir"
16578 found_so="$additional_libdir/lib$name.$shlibext"
16579 if test -f "$additional_libdir/lib$name.la"; then
16580 found_la="$additional_libdir/lib$name.la"
16583 if test -f "$additional_libdir/lib$name.$libext"; then
16584 found_dir="$additional_libdir"
16585 found_a="$additional_libdir/lib$name.$libext"
16586 if test -f "$additional_libdir/lib$name.la"; then
16587 found_la="$additional_libdir/lib$name.la"
16592 if test "X$found_dir" = "X"; then
16593 for x in $LDFLAGS $LTLIBICONV; do
16595 acl_save_prefix="$prefix"
16596 prefix="$acl_final_prefix"
16597 acl_save_exec_prefix="$exec_prefix"
16598 exec_prefix="$acl_final_exec_prefix"
16600 exec_prefix="$acl_save_exec_prefix"
16601 prefix="$acl_save_prefix"
16605 dir=`echo "X$x" | sed -e 's/^X-L//'`
16606 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16608 found_so="$dir/lib$name.$shlibext"
16609 if test -f "$dir/lib$name.la"; then
16610 found_la="$dir/lib$name.la"
16613 if test -f "$dir/lib$name.$libext"; then
16615 found_a="$dir/lib$name.$libext"
16616 if test -f "$dir/lib$name.la"; then
16617 found_la="$dir/lib$name.la"
16623 if test "X$found_dir" != "X"; then
16628 if test "X$found_dir" != "X"; then
16629 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16630 if test "X$found_so" != "X"; then
16631 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16632 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16635 for x in $ltrpathdirs; do
16636 if test "X$x" = "X$found_dir"; then
16641 if test -z "$haveit"; then
16642 ltrpathdirs="$ltrpathdirs $found_dir"
16644 if test "$hardcode_direct" = yes; then
16645 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16647 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16648 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16650 for x in $rpathdirs; do
16651 if test "X$x" = "X$found_dir"; then
16656 if test -z "$haveit"; then
16657 rpathdirs="$rpathdirs $found_dir"
16661 for x in $LDFLAGS $LIBICONV; do
16663 acl_save_prefix="$prefix"
16664 prefix="$acl_final_prefix"
16665 acl_save_exec_prefix="$exec_prefix"
16666 exec_prefix="$acl_final_exec_prefix"
16668 exec_prefix="$acl_save_exec_prefix"
16669 prefix="$acl_save_prefix"
16671 if test "X$x" = "X-L$found_dir"; then
16676 if test -z "$haveit"; then
16677 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16679 if test "$hardcode_minus_L" != no; then
16680 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16682 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16688 if test "X$found_a" != "X"; then
16689 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16691 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16694 additional_includedir=
16695 case "$found_dir" in
16697 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16698 additional_includedir="$basedir/include"
16701 if test "X$additional_includedir" != "X"; then
16702 if test "X$additional_includedir" != "X/usr/include"; then
16704 if test "X$additional_includedir" = "X/usr/local/include"; then
16705 if test -n "$GCC"; then
16707 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16711 if test -z "$haveit"; then
16712 for x in $CPPFLAGS $INCICONV; do
16714 acl_save_prefix="$prefix"
16715 prefix="$acl_final_prefix"
16716 acl_save_exec_prefix="$exec_prefix"
16717 exec_prefix="$acl_final_exec_prefix"
16719 exec_prefix="$acl_save_exec_prefix"
16720 prefix="$acl_save_prefix"
16722 if test "X$x" = "X-I$additional_includedir"; then
16727 if test -z "$haveit"; then
16728 if test -d "$additional_includedir"; then
16729 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16735 if test -n "$found_la"; then
16736 save_libdir="$libdir"
16737 case "$found_la" in
16738 */* | *\\*) . "$found_la" ;;
16739 *) . "./$found_la" ;;
16741 libdir="$save_libdir"
16742 for dep in $dependency_libs; do
16745 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16746 if test "X$additional_libdir" != "X/usr/lib"; then
16748 if test "X$additional_libdir" = "X/usr/local/lib"; then
16749 if test -n "$GCC"; then
16751 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16755 if test -z "$haveit"; then
16757 for x in $LDFLAGS $LIBICONV; do
16759 acl_save_prefix="$prefix"
16760 prefix="$acl_final_prefix"
16761 acl_save_exec_prefix="$exec_prefix"
16762 exec_prefix="$acl_final_exec_prefix"
16764 exec_prefix="$acl_save_exec_prefix"
16765 prefix="$acl_save_prefix"
16767 if test "X$x" = "X-L$additional_libdir"; then
16772 if test -z "$haveit"; then
16773 if test -d "$additional_libdir"; then
16774 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16778 for x in $LDFLAGS $LTLIBICONV; do
16780 acl_save_prefix="$prefix"
16781 prefix="$acl_final_prefix"
16782 acl_save_exec_prefix="$exec_prefix"
16783 exec_prefix="$acl_final_exec_prefix"
16785 exec_prefix="$acl_save_exec_prefix"
16786 prefix="$acl_save_prefix"
16788 if test "X$x" = "X-L$additional_libdir"; then
16793 if test -z "$haveit"; then
16794 if test -d "$additional_libdir"; then
16795 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16802 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16803 if test "$enable_rpath" != no; then
16805 for x in $rpathdirs; do
16806 if test "X$x" = "X$dir"; then
16811 if test -z "$haveit"; then
16812 rpathdirs="$rpathdirs $dir"
16815 for x in $ltrpathdirs; do
16816 if test "X$x" = "X$dir"; then
16821 if test -z "$haveit"; then
16822 ltrpathdirs="$ltrpathdirs $dir"
16827 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16830 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16833 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16834 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16840 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16841 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16847 if test "X$rpathdirs" != "X"; then
16848 if test -n "$hardcode_libdir_separator"; then
16850 for found_dir in $rpathdirs; do
16851 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16853 acl_save_libdir="$libdir"
16855 eval flag=\"$hardcode_libdir_flag_spec\"
16856 libdir="$acl_save_libdir"
16857 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16859 for found_dir in $rpathdirs; do
16860 acl_save_libdir="$libdir"
16861 libdir="$found_dir"
16862 eval flag=\"$hardcode_libdir_flag_spec\"
16863 libdir="$acl_save_libdir"
16864 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16868 if test "X$ltrpathdirs" != "X"; then
16869 for found_dir in $ltrpathdirs; do
16870 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16892 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16893 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
16894 $as_echo_n "(cached) " >&6
16896 gt_save_CPPFLAGS="$CPPFLAGS"
16897 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16898 gt_save_LIBS="$LIBS"
16899 LIBS="$LIBS -framework CoreFoundation"
16900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16901 /* end confdefs.h. */
16902 #include <CFPreferences.h>
16906 CFPreferencesCopyAppValue(NULL, NULL)
16911 if ac_fn_c_try_link "$LINENO"; then :
16912 gt_cv_func_CFPreferencesCopyAppValue=yes
16914 gt_cv_func_CFPreferencesCopyAppValue=no
16916 rm -f core conftest.err conftest.$ac_objext \
16917 conftest$ac_exeext conftest.$ac_ext
16918 CPPFLAGS="$gt_save_CPPFLAGS"
16919 LIBS="$gt_save_LIBS"
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16922 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16923 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16925 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16929 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16930 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
16931 $as_echo_n "(cached) " >&6
16933 gt_save_CPPFLAGS="$CPPFLAGS"
16934 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16935 gt_save_LIBS="$LIBS"
16936 LIBS="$LIBS -framework CoreFoundation"
16937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938 /* end confdefs.h. */
16939 #include <CFLocale.h>
16943 CFLocaleCopyCurrent();
16948 if ac_fn_c_try_link "$LINENO"; then :
16949 gt_cv_func_CFLocaleCopyCurrent=yes
16951 gt_cv_func_CFLocaleCopyCurrent=no
16953 rm -f core conftest.err conftest.$ac_objext \
16954 conftest$ac_exeext conftest.$ac_ext
16955 CPPFLAGS="$gt_save_CPPFLAGS"
16956 LIBS="$gt_save_LIBS"
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16959 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16960 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16962 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16966 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16967 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16974 $as_echo_n "checking whether NLS is requested... " >&6; }
16975 # Check whether --enable-nls was given.
16976 if test "${enable_nls+set}" = set; then :
16977 enableval=$enable_nls; USE_NLS=$enableval
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16983 $as_echo "$USE_NLS" >&6; }
16992 if test "$USE_NLS" = "yes"; then
16993 gt_use_preinstalled_gnugettext=no
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17001 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17002 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
17003 $as_echo_n "(cached) " >&6
17005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17006 /* end confdefs.h. */
17007 #include <libintl.h>
17008 extern int _nl_msg_cat_cntr;
17009 extern int *_nl_domain_bindings;
17013 bindtextdomain ("", "");
17014 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17019 if ac_fn_c_try_link "$LINENO"; then :
17020 gt_cv_func_gnugettext1_libc=yes
17022 gt_cv_func_gnugettext1_libc=no
17024 rm -f core conftest.err conftest.$ac_objext \
17025 conftest$ac_exeext conftest.$ac_ext
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17028 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17030 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17036 am_save_CPPFLAGS="$CPPFLAGS"
17038 for element in $INCICONV; do
17040 for x in $CPPFLAGS; do
17042 acl_save_prefix="$prefix"
17043 prefix="$acl_final_prefix"
17044 acl_save_exec_prefix="$exec_prefix"
17045 exec_prefix="$acl_final_exec_prefix"
17047 exec_prefix="$acl_save_exec_prefix"
17048 prefix="$acl_save_prefix"
17050 if test "X$x" = "X$element"; then
17055 if test -z "$haveit"; then
17056 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17062 $as_echo_n "checking for iconv... " >&6; }
17063 if test "${am_cv_func_iconv+set}" = set; then :
17064 $as_echo_n "(cached) " >&6
17067 am_cv_func_iconv="no, consider installing GNU libiconv"
17069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17070 /* end confdefs.h. */
17071 #include <stdlib.h>
17076 iconv_t cd = iconv_open("","");
17077 iconv(cd,NULL,NULL,NULL,NULL);
17083 if ac_fn_c_try_link "$LINENO"; then :
17084 am_cv_func_iconv=yes
17086 rm -f core conftest.err conftest.$ac_objext \
17087 conftest$ac_exeext conftest.$ac_ext
17088 if test "$am_cv_func_iconv" != yes; then
17089 am_save_LIBS="$LIBS"
17090 LIBS="$LIBS $LIBICONV"
17091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17092 /* end confdefs.h. */
17093 #include <stdlib.h>
17098 iconv_t cd = iconv_open("","");
17099 iconv(cd,NULL,NULL,NULL,NULL);
17105 if ac_fn_c_try_link "$LINENO"; then :
17106 am_cv_lib_iconv=yes
17107 am_cv_func_iconv=yes
17109 rm -f core conftest.err conftest.$ac_objext \
17110 conftest$ac_exeext conftest.$ac_ext
17111 LIBS="$am_save_LIBS"
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17116 $as_echo "$am_cv_func_iconv" >&6; }
17117 if test "$am_cv_func_iconv" = yes; then
17119 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17122 if test "$am_cv_lib_iconv" = yes; then
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17124 $as_echo_n "checking how to link with libiconv... " >&6; }
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17126 $as_echo "$LIBICONV" >&6; }
17128 CPPFLAGS="$am_save_CPPFLAGS"
17140 acl_save_prefix="$prefix"
17141 prefix="$acl_final_prefix"
17142 acl_save_exec_prefix="$exec_prefix"
17143 exec_prefix="$acl_final_exec_prefix"
17145 eval additional_includedir=\"$includedir\"
17146 eval additional_libdir=\"$libdir\"
17148 exec_prefix="$acl_save_exec_prefix"
17149 prefix="$acl_save_prefix"
17152 # Check whether --with-libintl-prefix was given.
17153 if test "${with_libintl_prefix+set}" = set; then :
17154 withval=$with_libintl_prefix;
17155 if test "X$withval" = "Xno"; then
17158 if test "X$withval" = "X"; then
17160 acl_save_prefix="$prefix"
17161 prefix="$acl_final_prefix"
17162 acl_save_exec_prefix="$exec_prefix"
17163 exec_prefix="$acl_final_exec_prefix"
17165 eval additional_includedir=\"$includedir\"
17166 eval additional_libdir=\"$libdir\"
17168 exec_prefix="$acl_save_exec_prefix"
17169 prefix="$acl_save_prefix"
17172 additional_includedir="$withval/include"
17173 additional_libdir="$withval/lib"
17184 names_already_handled=
17185 names_next_round='intl '
17186 while test -n "$names_next_round"; do
17187 names_this_round="$names_next_round"
17189 for name in $names_this_round; do
17191 for n in $names_already_handled; do
17192 if test "$n" = "$name"; then
17193 already_handled=yes
17197 if test -z "$already_handled"; then
17198 names_already_handled="$names_already_handled $name"
17199 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17200 eval value=\"\$HAVE_LIB$uppername\"
17201 if test -n "$value"; then
17202 if test "$value" = yes; then
17203 eval value=\"\$LIB$uppername\"
17204 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17205 eval value=\"\$LTLIB$uppername\"
17206 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17215 if test $use_additional = yes; then
17216 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17217 found_dir="$additional_libdir"
17218 found_so="$additional_libdir/lib$name.$shlibext"
17219 if test -f "$additional_libdir/lib$name.la"; then
17220 found_la="$additional_libdir/lib$name.la"
17223 if test -f "$additional_libdir/lib$name.$libext"; then
17224 found_dir="$additional_libdir"
17225 found_a="$additional_libdir/lib$name.$libext"
17226 if test -f "$additional_libdir/lib$name.la"; then
17227 found_la="$additional_libdir/lib$name.la"
17232 if test "X$found_dir" = "X"; then
17233 for x in $LDFLAGS $LTLIBINTL; do
17235 acl_save_prefix="$prefix"
17236 prefix="$acl_final_prefix"
17237 acl_save_exec_prefix="$exec_prefix"
17238 exec_prefix="$acl_final_exec_prefix"
17240 exec_prefix="$acl_save_exec_prefix"
17241 prefix="$acl_save_prefix"
17245 dir=`echo "X$x" | sed -e 's/^X-L//'`
17246 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17248 found_so="$dir/lib$name.$shlibext"
17249 if test -f "$dir/lib$name.la"; then
17250 found_la="$dir/lib$name.la"
17253 if test -f "$dir/lib$name.$libext"; then
17255 found_a="$dir/lib$name.$libext"
17256 if test -f "$dir/lib$name.la"; then
17257 found_la="$dir/lib$name.la"
17263 if test "X$found_dir" != "X"; then
17268 if test "X$found_dir" != "X"; then
17269 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17270 if test "X$found_so" != "X"; then
17271 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17272 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17275 for x in $ltrpathdirs; do
17276 if test "X$x" = "X$found_dir"; then
17281 if test -z "$haveit"; then
17282 ltrpathdirs="$ltrpathdirs $found_dir"
17284 if test "$hardcode_direct" = yes; then
17285 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17287 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17288 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17290 for x in $rpathdirs; do
17291 if test "X$x" = "X$found_dir"; then
17296 if test -z "$haveit"; then
17297 rpathdirs="$rpathdirs $found_dir"
17301 for x in $LDFLAGS $LIBINTL; do
17303 acl_save_prefix="$prefix"
17304 prefix="$acl_final_prefix"
17305 acl_save_exec_prefix="$exec_prefix"
17306 exec_prefix="$acl_final_exec_prefix"
17308 exec_prefix="$acl_save_exec_prefix"
17309 prefix="$acl_save_prefix"
17311 if test "X$x" = "X-L$found_dir"; then
17316 if test -z "$haveit"; then
17317 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17319 if test "$hardcode_minus_L" != no; then
17320 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17322 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17328 if test "X$found_a" != "X"; then
17329 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17331 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17334 additional_includedir=
17335 case "$found_dir" in
17337 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17338 additional_includedir="$basedir/include"
17341 if test "X$additional_includedir" != "X"; then
17342 if test "X$additional_includedir" != "X/usr/include"; then
17344 if test "X$additional_includedir" = "X/usr/local/include"; then
17345 if test -n "$GCC"; then
17347 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17351 if test -z "$haveit"; then
17352 for x in $CPPFLAGS $INCINTL; do
17354 acl_save_prefix="$prefix"
17355 prefix="$acl_final_prefix"
17356 acl_save_exec_prefix="$exec_prefix"
17357 exec_prefix="$acl_final_exec_prefix"
17359 exec_prefix="$acl_save_exec_prefix"
17360 prefix="$acl_save_prefix"
17362 if test "X$x" = "X-I$additional_includedir"; then
17367 if test -z "$haveit"; then
17368 if test -d "$additional_includedir"; then
17369 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17375 if test -n "$found_la"; then
17376 save_libdir="$libdir"
17377 case "$found_la" in
17378 */* | *\\*) . "$found_la" ;;
17379 *) . "./$found_la" ;;
17381 libdir="$save_libdir"
17382 for dep in $dependency_libs; do
17385 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17386 if test "X$additional_libdir" != "X/usr/lib"; then
17388 if test "X$additional_libdir" = "X/usr/local/lib"; then
17389 if test -n "$GCC"; then
17391 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17395 if test -z "$haveit"; then
17397 for x in $LDFLAGS $LIBINTL; do
17399 acl_save_prefix="$prefix"
17400 prefix="$acl_final_prefix"
17401 acl_save_exec_prefix="$exec_prefix"
17402 exec_prefix="$acl_final_exec_prefix"
17404 exec_prefix="$acl_save_exec_prefix"
17405 prefix="$acl_save_prefix"
17407 if test "X$x" = "X-L$additional_libdir"; then
17412 if test -z "$haveit"; then
17413 if test -d "$additional_libdir"; then
17414 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17418 for x in $LDFLAGS $LTLIBINTL; do
17420 acl_save_prefix="$prefix"
17421 prefix="$acl_final_prefix"
17422 acl_save_exec_prefix="$exec_prefix"
17423 exec_prefix="$acl_final_exec_prefix"
17425 exec_prefix="$acl_save_exec_prefix"
17426 prefix="$acl_save_prefix"
17428 if test "X$x" = "X-L$additional_libdir"; then
17433 if test -z "$haveit"; then
17434 if test -d "$additional_libdir"; then
17435 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17442 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17443 if test "$enable_rpath" != no; then
17445 for x in $rpathdirs; do
17446 if test "X$x" = "X$dir"; then
17451 if test -z "$haveit"; then
17452 rpathdirs="$rpathdirs $dir"
17455 for x in $ltrpathdirs; do
17456 if test "X$x" = "X$dir"; then
17461 if test -z "$haveit"; then
17462 ltrpathdirs="$ltrpathdirs $dir"
17467 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17470 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17473 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17474 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17480 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17481 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17487 if test "X$rpathdirs" != "X"; then
17488 if test -n "$hardcode_libdir_separator"; then
17490 for found_dir in $rpathdirs; do
17491 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17493 acl_save_libdir="$libdir"
17495 eval flag=\"$hardcode_libdir_flag_spec\"
17496 libdir="$acl_save_libdir"
17497 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17499 for found_dir in $rpathdirs; do
17500 acl_save_libdir="$libdir"
17501 libdir="$found_dir"
17502 eval flag=\"$hardcode_libdir_flag_spec\"
17503 libdir="$acl_save_libdir"
17504 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17508 if test "X$ltrpathdirs" != "X"; then
17509 for found_dir in $ltrpathdirs; do
17510 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17515 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17516 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
17517 $as_echo_n "(cached) " >&6
17519 gt_save_CPPFLAGS="$CPPFLAGS"
17520 CPPFLAGS="$CPPFLAGS $INCINTL"
17521 gt_save_LIBS="$LIBS"
17522 LIBS="$LIBS $LIBINTL"
17523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17524 /* end confdefs.h. */
17525 #include <libintl.h>
17526 extern int _nl_msg_cat_cntr;
17531 const char *_nl_expand_alias (const char *);
17535 bindtextdomain ("", "");
17536 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17541 if ac_fn_c_try_link "$LINENO"; then :
17542 gt_cv_func_gnugettext1_libintl=yes
17544 gt_cv_func_gnugettext1_libintl=no
17546 rm -f core conftest.err conftest.$ac_objext \
17547 conftest$ac_exeext conftest.$ac_ext
17548 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17549 LIBS="$LIBS $LIBICONV"
17550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17551 /* end confdefs.h. */
17552 #include <libintl.h>
17553 extern int _nl_msg_cat_cntr;
17558 const char *_nl_expand_alias (const char *);
17562 bindtextdomain ("", "");
17563 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17568 if ac_fn_c_try_link "$LINENO"; then :
17569 LIBINTL="$LIBINTL $LIBICONV"
17570 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17571 gt_cv_func_gnugettext1_libintl=yes
17574 rm -f core conftest.err conftest.$ac_objext \
17575 conftest$ac_exeext conftest.$ac_ext
17577 CPPFLAGS="$gt_save_CPPFLAGS"
17578 LIBS="$gt_save_LIBS"
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17581 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17584 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17585 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17586 && test "$PACKAGE" != gettext-runtime \
17587 && test "$PACKAGE" != gettext-tools; }; then
17588 gt_use_preinstalled_gnugettext=yes
17597 if test -n "$INTL_MACOSX_LIBS"; then
17598 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17599 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17600 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17601 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17605 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17606 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17608 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17616 $as_echo_n "checking whether to use NLS... " >&6; }
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17618 $as_echo "$USE_NLS" >&6; }
17619 if test "$USE_NLS" = "yes"; then
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17621 $as_echo_n "checking where the gettext function comes from... " >&6; }
17622 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17623 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17624 gt_source="external libintl"
17629 gt_source="included intl directory"
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17632 $as_echo "$gt_source" >&6; }
17635 if test "$USE_NLS" = "yes"; then
17637 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17638 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17640 $as_echo_n "checking how to link with libintl... " >&6; }
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17642 $as_echo "$LIBINTL" >&6; }
17644 for element in $INCINTL; do
17646 for x in $CPPFLAGS; do
17648 acl_save_prefix="$prefix"
17649 prefix="$acl_final_prefix"
17650 acl_save_exec_prefix="$exec_prefix"
17651 exec_prefix="$acl_final_exec_prefix"
17653 exec_prefix="$acl_save_exec_prefix"
17654 prefix="$acl_save_prefix"
17656 if test "X$x" = "X$element"; then
17661 if test -z "$haveit"; then
17662 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17669 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17672 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17681 INTLLIBS="$LIBINTL"
17689 os_name=`uname -s 2>/dev/null`
17690 if test x${prefix} = xNONE ; then
17691 if test `eval echo ${sysconfdir}` = NONE/etc ; then
17692 sysconfdir=/etc/bacula
17695 if test `eval echo ${libdir}` = NONE/lib ; then
17698 os_processor=`uname -p 2>/dev/null`
17699 case ${os_processor} in
17714 if test `eval echo ${includedir}` = NONE/include ; then
17715 includedir=/usr/include
17718 if test `eval echo ${datarootdir}` = NONE/share ; then
17719 datarootdir=/usr/share
17724 if test x${exec_prefix} = xNONE ; then
17725 exec_prefix=${prefix}
17728 sysconfdir=`eval echo ${sysconfdir}`
17729 datarootdir=`eval echo ${datarootdir}`
17730 docdir=`eval echo ${docdir}`
17731 htmldir=`eval echo ${htmldir}`
17732 libdir=`eval echo ${libdir}`
17733 includedir=`eval echo ${includedir}`
17734 localedir=`eval echo ${datarootdir}/locale`
17735 cat >>confdefs.h <<_ACEOF
17736 #define SYSCONFDIR "$sysconfdir"
17739 cat >>confdefs.h <<_ACEOF
17740 #define LOCALEDIR "$localedir"
17744 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17745 sbindir=${exec_prefix}/sbin
17747 sbindir=`eval echo ${sbindir}`
17749 if test x$mandir = x'${prefix}/man' ; then
17750 mandir=/usr/share/man
17753 if test x$htmldir = x${docdir} ; then
17754 htmldir=`eval echo ${docdir}bacula/html`
17757 if test x$docdir = x'/usr/share/doc/' ; then
17758 docdir=`eval echo ${docdir}bacula`
17762 for ac_prog in msgfmt
17764 # Extract the first word of "$ac_prog", so it can be a program name with args.
17765 set dummy $ac_prog; ac_word=$2
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17767 $as_echo_n "checking for $ac_word... " >&6; }
17768 if test "${ac_cv_path_MSGFMT+set}" = set; then :
17769 $as_echo_n "(cached) " >&6
17773 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17777 for as_dir in $PATH
17780 test -z "$as_dir" && as_dir=.
17781 for ac_exec_ext in '' $ac_executable_extensions; do
17782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17783 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17794 MSGFMT=$ac_cv_path_MSGFMT
17795 if test -n "$MSGFMT"; then
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17797 $as_echo "$MSGFMT" >&6; }
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17800 $as_echo "no" >&6; }
17804 test -n "$MSGFMT" && break
17806 test -n "$MSGFMT" || MSGFMT="no"
17808 if test "$MSGFMT" = "no"
17810 echo 'msgfmt program not found, disabling NLS !'
17812 USE_INCLUDED_LIBINTL=no
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17816 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17817 if test "${ac_cv_gnu_library_2+set}" = set; then :
17818 $as_echo_n "(cached) " >&6
17820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17821 /* end confdefs.h. */
17823 #include <features.h>
17824 #ifdef __GNU_LIBRARY__
17825 #if (__GLIBC__ >= 2)
17831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17832 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17833 ac_cv_gnu_library_2=yes
17835 ac_cv_gnu_library_2=no
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17843 $as_echo "$ac_cv_gnu_library_2" >&6; }
17845 GLIBC2="$ac_cv_gnu_library_2"
17848 if test -n "$ac_tool_prefix"; then
17849 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17850 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17852 $as_echo_n "checking for $ac_word... " >&6; }
17853 if test "${ac_cv_prog_RANLIB+set}" = set; then :
17854 $as_echo_n "(cached) " >&6
17856 if test -n "$RANLIB"; then
17857 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17860 for as_dir in $PATH
17863 test -z "$as_dir" && as_dir=.
17864 for ac_exec_ext in '' $ac_executable_extensions; do
17865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17866 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17876 RANLIB=$ac_cv_prog_RANLIB
17877 if test -n "$RANLIB"; then
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17879 $as_echo "$RANLIB" >&6; }
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17882 $as_echo "no" >&6; }
17887 if test -z "$ac_cv_prog_RANLIB"; then
17888 ac_ct_RANLIB=$RANLIB
17889 # Extract the first word of "ranlib", so it can be a program name with args.
17890 set dummy ranlib; ac_word=$2
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17892 $as_echo_n "checking for $ac_word... " >&6; }
17893 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
17894 $as_echo_n "(cached) " >&6
17896 if test -n "$ac_ct_RANLIB"; then
17897 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17900 for as_dir in $PATH
17903 test -z "$as_dir" && as_dir=.
17904 for ac_exec_ext in '' $ac_executable_extensions; do
17905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17906 ac_cv_prog_ac_ct_RANLIB="ranlib"
17907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17916 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17917 if test -n "$ac_ct_RANLIB"; then
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17919 $as_echo "$ac_ct_RANLIB" >&6; }
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17922 $as_echo "no" >&6; }
17925 if test "x$ac_ct_RANLIB" = x; then
17928 case $cross_compiling:$ac_tool_warned in
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17932 ac_tool_warned=yes ;;
17934 RANLIB=$ac_ct_RANLIB
17937 RANLIB="$ac_cv_prog_RANLIB"
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
17942 $as_echo_n "checking for strerror in -lcposix... " >&6; }
17943 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
17944 $as_echo_n "(cached) " >&6
17946 ac_check_lib_save_LIBS=$LIBS
17947 LIBS="-lcposix $LIBS"
17948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17949 /* end confdefs.h. */
17951 /* Override any GCC internal prototype to avoid an error.
17952 Use char because int might match the return type of a GCC
17953 builtin and then its argument prototype would still apply. */
17961 return strerror ();
17966 if ac_fn_c_try_link "$LINENO"; then :
17967 ac_cv_lib_cposix_strerror=yes
17969 ac_cv_lib_cposix_strerror=no
17971 rm -f core conftest.err conftest.$ac_objext \
17972 conftest$ac_exeext conftest.$ac_ext
17973 LIBS=$ac_check_lib_save_LIBS
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
17976 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
17977 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
17978 LIBS="$LIBS -lcposix"
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17984 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17985 if test "${ac_cv_c_const+set}" = set; then :
17986 $as_echo_n "(cached) " >&6
17988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17989 /* end confdefs.h. */
17994 /* FIXME: Include the comments suggested by Paul. */
17995 #ifndef __cplusplus
17996 /* Ultrix mips cc rejects this. */
17997 typedef int charset[2];
17999 /* SunOS 4.1.1 cc rejects this. */
18000 char const *const *pcpcc;
18002 /* NEC SVR4.0.2 mips cc rejects this. */
18003 struct point {int x, y;};
18004 static struct point const zero = {0,0};
18005 /* AIX XL C 1.02.0.0 rejects this.
18006 It does not let you subtract one const X* pointer from another in
18007 an arm of an if-expression whose if-part is not a constant
18009 const char *g = "string";
18010 pcpcc = &g + (g ? g-g : 0);
18011 /* HPUX 7.0 cc rejects these. */
18013 ppc = (char**) pcpcc;
18014 pcpcc = (char const *const *) ppc;
18015 { /* SCO 3.2v4 cc rejects this. */
18017 char const *s = 0 ? (char *) 0 : (char const *) 0;
18022 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18023 int x[] = {25, 17};
18024 const int *foo = &x[0];
18027 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18028 typedef const int *iptr;
18032 { /* AIX XL C 1.02.0.0 rejects this saying
18033 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18034 struct s { int j; const int *ap[3]; };
18035 struct s *b; b->j = 5;
18037 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18038 const int foo = 10;
18039 if (!foo) return 0;
18041 return !cs[0] && !zero.x;
18048 if ac_fn_c_try_compile "$LINENO"; then :
18053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18056 $as_echo "$ac_cv_c_const" >&6; }
18057 if test $ac_cv_c_const = no; then
18059 $as_echo "#define const /**/" >>confdefs.h
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18065 $as_echo_n "checking for signed... " >&6; }
18066 if test "${bh_cv_c_signed+set}" = set; then :
18067 $as_echo_n "(cached) " >&6
18069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18070 /* end confdefs.h. */
18080 if ac_fn_c_try_compile "$LINENO"; then :
18085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18088 $as_echo "$bh_cv_c_signed" >&6; }
18089 if test $bh_cv_c_signed = no; then
18091 $as_echo "#define signed /**/" >>confdefs.h
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18096 $as_echo_n "checking for inline... " >&6; }
18097 if test "${ac_cv_c_inline+set}" = set; then :
18098 $as_echo_n "(cached) " >&6
18101 for ac_kw in inline __inline__ __inline; do
18102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18103 /* end confdefs.h. */
18104 #ifndef __cplusplus
18106 static $ac_kw foo_t static_foo () {return 0; }
18107 $ac_kw foo_t foo () {return 0; }
18111 if ac_fn_c_try_compile "$LINENO"; then :
18112 ac_cv_c_inline=$ac_kw
18114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18115 test "$ac_cv_c_inline" != no && break
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18120 $as_echo "$ac_cv_c_inline" >&6; }
18122 case $ac_cv_c_inline in
18125 case $ac_cv_c_inline in
18127 *) ac_val=$ac_cv_c_inline;;
18129 cat >>confdefs.h <<_ACEOF
18130 #ifndef __cplusplus
18131 #define inline $ac_val
18137 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18138 if test "x$ac_cv_type_off_t" = x""yes; then :
18142 cat >>confdefs.h <<_ACEOF
18143 #define off_t long int
18148 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18149 if test "x$ac_cv_type_size_t" = x""yes; then :
18153 cat >>confdefs.h <<_ACEOF
18154 #define size_t unsigned int
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18161 $as_echo_n "checking for long long... " >&6; }
18162 if test "${ac_cv_type_long_long+set}" = set; then :
18163 $as_echo_n "(cached) " >&6
18165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18166 /* end confdefs.h. */
18167 long long ll = 1LL; int i = 63;
18171 long long llmax = (long long) -1;
18172 return ll << i | ll >> i | llmax / ll | llmax % ll;
18177 if ac_fn_c_try_link "$LINENO"; then :
18178 ac_cv_type_long_long=yes
18180 ac_cv_type_long_long=no
18182 rm -f core conftest.err conftest.$ac_objext \
18183 conftest$ac_exeext conftest.$ac_ext
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18186 $as_echo "$ac_cv_type_long_long" >&6; }
18187 if test $ac_cv_type_long_long = yes; then
18189 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18195 $as_echo_n "checking for long double... " >&6; }
18196 if test "${gt_cv_c_long_double+set}" = set; then :
18197 $as_echo_n "(cached) " >&6
18199 if test "$GCC" = yes; then
18200 gt_cv_c_long_double=yes
18202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18203 /* end confdefs.h. */
18205 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
18206 long double foo = 0.0;
18207 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
18208 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18218 if ac_fn_c_try_compile "$LINENO"; then :
18219 gt_cv_c_long_double=yes
18221 gt_cv_c_long_double=no
18223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18227 $as_echo "$gt_cv_c_long_double" >&6; }
18228 if test $gt_cv_c_long_double = yes; then
18230 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18236 $as_echo_n "checking for wchar_t... " >&6; }
18237 if test "${gt_cv_c_wchar_t+set}" = set; then :
18238 $as_echo_n "(cached) " >&6
18240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18241 /* end confdefs.h. */
18242 #include <stddef.h>
18243 wchar_t foo = (wchar_t)'\0';
18252 if ac_fn_c_try_compile "$LINENO"; then :
18253 gt_cv_c_wchar_t=yes
18257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18260 $as_echo "$gt_cv_c_wchar_t" >&6; }
18261 if test $gt_cv_c_wchar_t = yes; then
18263 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18269 $as_echo_n "checking for wint_t... " >&6; }
18270 if test "${gt_cv_c_wint_t+set}" = set; then :
18271 $as_echo_n "(cached) " >&6
18273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18274 /* end confdefs.h. */
18276 wint_t foo = (wchar_t)'\0';
18285 if ac_fn_c_try_compile "$LINENO"; then :
18290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18293 $as_echo "$gt_cv_c_wint_t" >&6; }
18294 if test $gt_cv_c_wint_t = yes; then
18296 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18302 $as_echo_n "checking for inttypes.h... " >&6; }
18303 if test "${gl_cv_header_inttypes_h+set}" = set; then :
18304 $as_echo_n "(cached) " >&6
18306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18307 /* end confdefs.h. */
18308 #include <sys/types.h>
18309 #include <inttypes.h>
18313 uintmax_t i = (uintmax_t) -1;
18318 if ac_fn_c_try_compile "$LINENO"; then :
18319 gl_cv_header_inttypes_h=yes
18321 gl_cv_header_inttypes_h=no
18323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18326 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18327 if test $gl_cv_header_inttypes_h = yes; then
18329 cat >>confdefs.h <<_ACEOF
18330 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18337 $as_echo_n "checking for stdint.h... " >&6; }
18338 if test "${gl_cv_header_stdint_h+set}" = set; then :
18339 $as_echo_n "(cached) " >&6
18341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18342 /* end confdefs.h. */
18343 #include <sys/types.h>
18344 #include <stdint.h>
18348 uintmax_t i = (uintmax_t) -1;
18353 if ac_fn_c_try_compile "$LINENO"; then :
18354 gl_cv_header_stdint_h=yes
18356 gl_cv_header_stdint_h=no
18358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18361 $as_echo "$gl_cv_header_stdint_h" >&6; }
18362 if test $gl_cv_header_stdint_h = yes; then
18364 cat >>confdefs.h <<_ACEOF
18365 #define HAVE_STDINT_H_WITH_UINTMAX 1
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18374 $as_echo_n "checking for intmax_t... " >&6; }
18375 if test "${gt_cv_c_intmax_t+set}" = set; then :
18376 $as_echo_n "(cached) " >&6
18378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18379 /* end confdefs.h. */
18381 #include <stddef.h>
18382 #include <stdlib.h>
18383 #if HAVE_STDINT_H_WITH_UINTMAX
18384 #include <stdint.h>
18386 #if HAVE_INTTYPES_H_WITH_UINTMAX
18387 #include <inttypes.h>
18398 if ac_fn_c_try_compile "$LINENO"; then :
18399 gt_cv_c_intmax_t=yes
18401 gt_cv_c_intmax_t=no
18403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18406 $as_echo "$gt_cv_c_intmax_t" >&6; }
18407 if test $gt_cv_c_intmax_t = yes; then
18409 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18416 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18417 if test "${gt_cv_func_printf_posix+set}" = set; then :
18418 $as_echo_n "(cached) " >&6
18421 if test "$cross_compiling" = yes; then :
18423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18424 /* end confdefs.h. */
18426 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18432 $EGREP "notposix" >/dev/null 2>&1; then :
18433 gt_cv_func_printf_posix="guessing no"
18435 gt_cv_func_printf_posix="guessing yes"
18441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18442 /* end confdefs.h. */
18445 #include <string.h>
18446 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18447 dollar expansion (possibly an autoconf bug). */
18448 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18449 static char buf[100];
18452 sprintf (buf, format, 33, 55);
18453 return (strcmp (buf, "55 33") != 0);
18456 if ac_fn_c_try_run "$LINENO"; then :
18457 gt_cv_func_printf_posix=yes
18459 gt_cv_func_printf_posix=no
18461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18462 conftest.$ac_objext conftest.beam conftest.$ac_ext
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18468 $as_echo "$gt_cv_func_printf_posix" >&6; }
18469 case $gt_cv_func_printf_posix in
18472 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18477 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18478 # for constant arguments. Useless!
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18480 $as_echo_n "checking for working alloca.h... " >&6; }
18481 if test "${ac_cv_working_alloca_h+set}" = set; then :
18482 $as_echo_n "(cached) " >&6
18484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18485 /* end confdefs.h. */
18486 #include <alloca.h>
18490 char *p = (char *) alloca (2 * sizeof (int));
18496 if ac_fn_c_try_link "$LINENO"; then :
18497 ac_cv_working_alloca_h=yes
18499 ac_cv_working_alloca_h=no
18501 rm -f core conftest.err conftest.$ac_objext \
18502 conftest$ac_exeext conftest.$ac_ext
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18505 $as_echo "$ac_cv_working_alloca_h" >&6; }
18506 if test $ac_cv_working_alloca_h = yes; then
18508 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18513 $as_echo_n "checking for alloca... " >&6; }
18514 if test "${ac_cv_func_alloca_works+set}" = set; then :
18515 $as_echo_n "(cached) " >&6
18517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18518 /* end confdefs.h. */
18520 # define alloca __builtin_alloca
18523 # include <malloc.h>
18524 # define alloca _alloca
18526 # ifdef HAVE_ALLOCA_H
18527 # include <alloca.h>
18532 # ifndef alloca /* predefined by HP cc +Olibcalls */
18543 char *p = (char *) alloca (1);
18549 if ac_fn_c_try_link "$LINENO"; then :
18550 ac_cv_func_alloca_works=yes
18552 ac_cv_func_alloca_works=no
18554 rm -f core conftest.err conftest.$ac_objext \
18555 conftest$ac_exeext conftest.$ac_ext
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18558 $as_echo "$ac_cv_func_alloca_works" >&6; }
18560 if test $ac_cv_func_alloca_works = yes; then
18562 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18565 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18566 # that cause trouble. Some versions do not even contain alloca or
18567 # contain a buggy version. If you still want to use their alloca,
18568 # use ar to extract alloca.o from them instead of compiling alloca.c.
18570 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18572 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18576 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18577 if test "${ac_cv_os_cray+set}" = set; then :
18578 $as_echo_n "(cached) " >&6
18580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18581 /* end confdefs.h. */
18582 #if defined CRAY && ! defined CRAY2
18589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18590 $EGREP "webecray" >/dev/null 2>&1; then :
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18599 $as_echo "$ac_cv_os_cray" >&6; }
18600 if test $ac_cv_os_cray = yes; then
18601 for ac_func in _getb67 GETB67 getb67; do
18602 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18603 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18604 eval as_val=\$$as_ac_var
18605 if test "x$as_val" = x""yes; then :
18607 cat >>confdefs.h <<_ACEOF
18608 #define CRAY_STACKSEG_END $ac_func
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18618 $as_echo_n "checking stack direction for C alloca... " >&6; }
18619 if test "${ac_cv_c_stack_direction+set}" = set; then :
18620 $as_echo_n "(cached) " >&6
18622 if test "$cross_compiling" = yes; then :
18623 ac_cv_c_stack_direction=0
18625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18626 /* end confdefs.h. */
18627 $ac_includes_default
18629 find_stack_direction ()
18631 static char *addr = 0;
18636 return find_stack_direction ();
18639 return (&dummy > addr) ? 1 : -1;
18645 return find_stack_direction () < 0;
18648 if ac_fn_c_try_run "$LINENO"; then :
18649 ac_cv_c_stack_direction=1
18651 ac_cv_c_stack_direction=-1
18653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18654 conftest.$ac_objext conftest.beam conftest.$ac_ext
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18659 $as_echo "$ac_cv_c_stack_direction" >&6; }
18660 cat >>confdefs.h <<_ACEOF
18661 #define STACK_DIRECTION $ac_cv_c_stack_direction
18670 for ac_header in $ac_header_list
18672 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18673 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18675 eval as_val=\$$as_ac_Header
18676 if test "x$as_val" = x""yes; then :
18677 cat >>confdefs.h <<_ACEOF
18678 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18692 for ac_func in getpagesize
18694 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18695 if test "x$ac_cv_func_getpagesize" = x""yes; then :
18696 cat >>confdefs.h <<_ACEOF
18697 #define HAVE_GETPAGESIZE 1
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18704 $as_echo_n "checking for working mmap... " >&6; }
18705 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
18706 $as_echo_n "(cached) " >&6
18708 if test "$cross_compiling" = yes; then :
18709 ac_cv_func_mmap_fixed_mapped=no
18711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18712 /* end confdefs.h. */
18713 $ac_includes_default
18714 /* malloc might have been renamed as rpl_malloc. */
18717 /* Thanks to Mike Haertel and Jim Avera for this test.
18718 Here is a matrix of mmap possibilities:
18719 mmap private not fixed
18720 mmap private fixed at somewhere currently unmapped
18721 mmap private fixed at somewhere already mapped
18722 mmap shared not fixed
18723 mmap shared fixed at somewhere currently unmapped
18724 mmap shared fixed at somewhere already mapped
18725 For private mappings, we should verify that changes cannot be read()
18726 back from the file, nor mmap's back from the file at a different
18727 address. (There have been systems where private was not correctly
18728 implemented like the infamous i386 svr4.0, and systems where the
18729 VM page cache was not coherent with the file system buffer cache
18730 like early versions of FreeBSD and possibly contemporary NetBSD.)
18731 For shared mappings, we should conversely verify that changes get
18732 propagated back to all the places they're supposed to be.
18734 Grep wants private fixed already mapped.
18735 The main things grep needs to know about mmap are:
18736 * does it exist and is it safe to write into the mmap'd area
18737 * how to use it (BSD variants) */
18740 #include <sys/mman.h>
18742 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18746 /* This mess was copied from the GNU getpagesize.h. */
18747 #ifndef HAVE_GETPAGESIZE
18748 # ifdef _SC_PAGESIZE
18749 # define getpagesize() sysconf(_SC_PAGESIZE)
18750 # else /* no _SC_PAGESIZE */
18751 # ifdef HAVE_SYS_PARAM_H
18752 # include <sys/param.h>
18753 # ifdef EXEC_PAGESIZE
18754 # define getpagesize() EXEC_PAGESIZE
18755 # else /* no EXEC_PAGESIZE */
18757 # define getpagesize() NBPG * CLSIZE
18760 # endif /* no CLSIZE */
18761 # else /* no NBPG */
18763 # define getpagesize() NBPC
18764 # else /* no NBPC */
18766 # define getpagesize() PAGESIZE
18767 # endif /* PAGESIZE */
18768 # endif /* no NBPC */
18769 # endif /* no NBPG */
18770 # endif /* no EXEC_PAGESIZE */
18771 # else /* no HAVE_SYS_PARAM_H */
18772 # define getpagesize() 8192 /* punt totally */
18773 # endif /* no HAVE_SYS_PARAM_H */
18774 # endif /* no _SC_PAGESIZE */
18776 #endif /* no HAVE_GETPAGESIZE */
18781 char *data, *data2, *data3;
18785 pagesize = getpagesize ();
18787 /* First, make a file with some known garbage in it. */
18788 data = (char *) malloc (pagesize);
18791 for (i = 0; i < pagesize; ++i)
18792 *(data + i) = rand ();
18794 fd = creat ("conftest.mmap", 0600);
18797 if (write (fd, data, pagesize) != pagesize)
18801 /* Next, check that the tail of a page is zero-filled. File must have
18802 non-zero length, otherwise we risk SIGBUS for entire page. */
18803 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18807 if (write (fd2, data2, 1) != 1)
18809 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18810 if (data2 == MAP_FAILED)
18812 for (i = 0; i < pagesize; ++i)
18816 if (munmap (data2, pagesize))
18819 /* Next, try to mmap the file at a fixed address which already has
18820 something else allocated at it. If we can, also make sure that
18821 we see the same garbage. */
18822 fd = open ("conftest.mmap", O_RDWR);
18825 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18826 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18828 for (i = 0; i < pagesize; ++i)
18829 if (*(data + i) != *(data2 + i))
18832 /* Finally, make sure that changes to the mapped area do not
18833 percolate back to the file as seen by read(). (This is a bug on
18834 some variants of i386 svr4.0.) */
18835 for (i = 0; i < pagesize; ++i)
18836 *(data2 + i) = *(data2 + i) + 1;
18837 data3 = (char *) malloc (pagesize);
18840 if (read (fd, data3, pagesize) != pagesize)
18842 for (i = 0; i < pagesize; ++i)
18843 if (*(data + i) != *(data3 + i))
18849 if ac_fn_c_try_run "$LINENO"; then :
18850 ac_cv_func_mmap_fixed_mapped=yes
18852 ac_cv_func_mmap_fixed_mapped=no
18854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18855 conftest.$ac_objext conftest.beam conftest.$ac_ext
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18860 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18861 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18863 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18866 rm -f conftest.mmap conftest.txt
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18870 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18871 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
18872 $as_echo_n "(cached) " >&6
18874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18875 /* end confdefs.h. */
18877 #include <features.h>
18878 #ifdef __GNU_LIBRARY__
18879 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18886 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18887 ac_cv_gnu_library_2_1=yes
18889 ac_cv_gnu_library_2_1=no
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18897 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18899 GLIBC21="$ac_cv_gnu_library_2_1"
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18905 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18906 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
18907 $as_echo_n "(cached) " >&6
18910 if test "$cross_compiling" = yes; then :
18912 # Guess based on the CPU.
18913 case "$host_cpu" in
18914 alpha* | i3456786 | m68k | s390*)
18915 gt_cv_int_divbyzero_sigfpe="guessing yes";;
18917 gt_cv_int_divbyzero_sigfpe="guessing no";;
18921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18922 /* end confdefs.h. */
18924 #include <stdlib.h>
18925 #include <signal.h>
18929 sigfpe_handler (int sig)
18931 sigfpe_handler (sig) int sig;
18934 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
18935 exit (sig != SIGFPE);
18945 signal (SIGFPE, sigfpe_handler);
18946 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
18947 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18948 signal (SIGTRAP, sigfpe_handler);
18950 /* Linux/SPARC yields signal SIGILL. */
18951 #if defined (__sparc__) && defined (__linux__)
18952 signal (SIGILL, sigfpe_handler);
18961 if ac_fn_c_try_run "$LINENO"; then :
18962 gt_cv_int_divbyzero_sigfpe=yes
18964 gt_cv_int_divbyzero_sigfpe=no
18966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18967 conftest.$ac_objext conftest.beam conftest.$ac_ext
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
18973 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
18974 case "$gt_cv_int_divbyzero_sigfpe" in
18979 cat >>confdefs.h <<_ACEOF
18980 #define INTDIV0_RAISES_SIGFPE $value
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
18986 $as_echo_n "checking for unsigned long long... " >&6; }
18987 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
18988 $as_echo_n "(cached) " >&6
18990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18991 /* end confdefs.h. */
18992 unsigned long long ull = 1ULL; int i = 63;
18996 unsigned long long ullmax = (unsigned long long) -1;
18997 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19002 if ac_fn_c_try_link "$LINENO"; then :
19003 ac_cv_type_unsigned_long_long=yes
19005 ac_cv_type_unsigned_long_long=no
19007 rm -f core conftest.err conftest.$ac_objext \
19008 conftest$ac_exeext conftest.$ac_ext
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19011 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19012 if test $ac_cv_type_unsigned_long_long = yes; then
19014 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19021 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19023 test $ac_cv_type_unsigned_long_long = yes \
19024 && ac_type='unsigned long long' \
19025 || ac_type='unsigned long'
19027 cat >>confdefs.h <<_ACEOF
19028 #define uintmax_t $ac_type
19033 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19039 $as_echo_n "checking for inttypes.h... " >&6; }
19040 if test "${gt_cv_header_inttypes_h+set}" = set; then :
19041 $as_echo_n "(cached) " >&6
19044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19045 /* end confdefs.h. */
19046 #include <sys/types.h>
19047 #include <inttypes.h>
19056 if ac_fn_c_try_compile "$LINENO"; then :
19057 gt_cv_header_inttypes_h=yes
19059 gt_cv_header_inttypes_h=no
19061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19065 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19066 if test $gt_cv_header_inttypes_h = yes; then
19068 cat >>confdefs.h <<_ACEOF
19069 #define HAVE_INTTYPES_H 1
19076 if test $gt_cv_header_inttypes_h = yes; then
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19078 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19079 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
19080 $as_echo_n "(cached) " >&6
19083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19084 /* end confdefs.h. */
19085 #include <inttypes.h>
19098 if ac_fn_c_try_compile "$LINENO"; then :
19099 gt_cv_inttypes_pri_broken=no
19101 gt_cv_inttypes_pri_broken=yes
19103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19107 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19109 if test "$gt_cv_inttypes_pri_broken" = yes; then
19111 cat >>confdefs.h <<_ACEOF
19112 #define PRI_MACROS_BROKEN 1
19118 for ac_header in stdint.h
19120 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19121 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19122 cat >>confdefs.h <<_ACEOF
19123 #define HAVE_STDINT_H 1
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19131 $as_echo_n "checking for SIZE_MAX... " >&6; }
19133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19134 /* end confdefs.h. */
19136 #include <limits.h>
19138 #include <stdint.h>
19145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19146 $EGREP "Found it" >/dev/null 2>&1; then :
19151 if test -z "$result"; then
19152 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
19159 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
19166 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
19173 if test "$fits_in_uint" = 1; then
19174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19175 /* end confdefs.h. */
19176 #include <stddef.h>
19178 extern unsigned long foo;
19188 if ac_fn_c_try_compile "$LINENO"; then :
19191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19193 if test -z "$result"; then
19194 if test "$fits_in_uint" = 1; then
19195 result="$res_hi$res_lo"U
19197 result="$res_hi$res_lo"UL
19200 result='~(size_t)0'
19203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19204 $as_echo "$result" >&6; }
19205 if test "$result" != yes; then
19207 cat >>confdefs.h <<_ACEOF
19208 #define SIZE_MAX $result
19216 for ac_header in stdint.h
19218 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19219 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19220 cat >>confdefs.h <<_ACEOF
19221 #define HAVE_STDINT_H 1
19235 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19236 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
19240 $as_echo "#define ptrdiff_t long" >>confdefs.h
19245 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19246 stdlib.h string.h unistd.h sys/param.h
19248 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19249 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19250 eval as_val=\$$as_ac_Header
19251 if test "x$as_val" = x""yes; then :
19252 cat >>confdefs.h <<_ACEOF
19253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19260 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19261 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19262 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19265 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19266 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19267 eval as_val=\$$as_ac_var
19268 if test "x$as_val" = x""yes; then :
19269 cat >>confdefs.h <<_ACEOF
19270 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19279 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19280 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
19281 $as_echo_n "(cached) " >&6
19283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19284 /* end confdefs.h. */
19291 char *p = (char *) _snprintf;
19298 if ac_fn_c_try_compile "$LINENO"; then :
19299 ac_cv_have_decl__snprintf=yes
19301 ac_cv_have_decl__snprintf=no
19303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19306 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19307 if test $ac_cv_have_decl__snprintf = yes; then
19313 cat >>confdefs.h <<_ACEOF
19314 #define HAVE_DECL__SNPRINTF $gt_value
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19320 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19321 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
19322 $as_echo_n "(cached) " >&6
19324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19325 /* end confdefs.h. */
19332 char *p = (char *) _snwprintf;
19339 if ac_fn_c_try_compile "$LINENO"; then :
19340 ac_cv_have_decl__snwprintf=yes
19342 ac_cv_have_decl__snwprintf=no
19344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19347 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19348 if test $ac_cv_have_decl__snwprintf = yes; then
19354 cat >>confdefs.h <<_ACEOF
19355 #define HAVE_DECL__SNWPRINTF $gt_value
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19362 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19363 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
19364 $as_echo_n "(cached) " >&6
19366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19367 /* end confdefs.h. */
19373 #ifndef feof_unlocked
19374 char *p = (char *) feof_unlocked;
19381 if ac_fn_c_try_compile "$LINENO"; then :
19382 ac_cv_have_decl_feof_unlocked=yes
19384 ac_cv_have_decl_feof_unlocked=no
19386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19389 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19390 if test $ac_cv_have_decl_feof_unlocked = yes; then
19396 cat >>confdefs.h <<_ACEOF
19397 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19403 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19404 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
19405 $as_echo_n "(cached) " >&6
19407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19408 /* end confdefs.h. */
19414 #ifndef fgets_unlocked
19415 char *p = (char *) fgets_unlocked;
19422 if ac_fn_c_try_compile "$LINENO"; then :
19423 ac_cv_have_decl_fgets_unlocked=yes
19425 ac_cv_have_decl_fgets_unlocked=no
19427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19430 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19431 if test $ac_cv_have_decl_fgets_unlocked = yes; then
19437 cat >>confdefs.h <<_ACEOF
19438 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19444 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19445 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
19446 $as_echo_n "(cached) " >&6
19448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19449 /* end confdefs.h. */
19455 #ifndef getc_unlocked
19456 char *p = (char *) getc_unlocked;
19463 if ac_fn_c_try_compile "$LINENO"; then :
19464 ac_cv_have_decl_getc_unlocked=yes
19466 ac_cv_have_decl_getc_unlocked=no
19468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19471 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19472 if test $ac_cv_have_decl_getc_unlocked = yes; then
19478 cat >>confdefs.h <<_ACEOF
19479 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19484 case $gt_cv_func_printf_posix in
19485 *yes) HAVE_POSIX_PRINTF=1 ;;
19486 *) HAVE_POSIX_PRINTF=0 ;;
19489 if test "$ac_cv_func_asprintf" = yes; then
19495 if test "$ac_cv_func_snprintf" = yes; then
19501 if test "$ac_cv_func_wprintf" = yes; then
19513 am_save_CPPFLAGS="$CPPFLAGS"
19515 for element in $INCICONV; do
19517 for x in $CPPFLAGS; do
19519 acl_save_prefix="$prefix"
19520 prefix="$acl_final_prefix"
19521 acl_save_exec_prefix="$exec_prefix"
19522 exec_prefix="$acl_final_exec_prefix"
19524 exec_prefix="$acl_save_exec_prefix"
19525 prefix="$acl_save_prefix"
19527 if test "X$x" = "X$element"; then
19532 if test -z "$haveit"; then
19533 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19539 $as_echo_n "checking for iconv... " >&6; }
19540 if test "${am_cv_func_iconv+set}" = set; then :
19541 $as_echo_n "(cached) " >&6
19544 am_cv_func_iconv="no, consider installing GNU libiconv"
19546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19547 /* end confdefs.h. */
19548 #include <stdlib.h>
19553 iconv_t cd = iconv_open("","");
19554 iconv(cd,NULL,NULL,NULL,NULL);
19560 if ac_fn_c_try_link "$LINENO"; then :
19561 am_cv_func_iconv=yes
19563 rm -f core conftest.err conftest.$ac_objext \
19564 conftest$ac_exeext conftest.$ac_ext
19565 if test "$am_cv_func_iconv" != yes; then
19566 am_save_LIBS="$LIBS"
19567 LIBS="$LIBS $LIBICONV"
19568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19569 /* end confdefs.h. */
19570 #include <stdlib.h>
19575 iconv_t cd = iconv_open("","");
19576 iconv(cd,NULL,NULL,NULL,NULL);
19582 if ac_fn_c_try_link "$LINENO"; then :
19583 am_cv_lib_iconv=yes
19584 am_cv_func_iconv=yes
19586 rm -f core conftest.err conftest.$ac_objext \
19587 conftest$ac_exeext conftest.$ac_ext
19588 LIBS="$am_save_LIBS"
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19593 $as_echo "$am_cv_func_iconv" >&6; }
19594 if test "$am_cv_func_iconv" = yes; then
19596 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19599 if test "$am_cv_lib_iconv" = yes; then
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19601 $as_echo_n "checking how to link with libiconv... " >&6; }
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19603 $as_echo "$LIBICONV" >&6; }
19605 CPPFLAGS="$am_save_CPPFLAGS"
19612 if test "$am_cv_func_iconv" = yes; then
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19614 $as_echo_n "checking for iconv declaration... " >&6; }
19615 if test "${am_cv_proto_iconv+set}" = set; then :
19616 $as_echo_n "(cached) " >&6
19619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19620 /* end confdefs.h. */
19622 #include <stdlib.h>
19628 #if defined(__STDC__) || defined(__cplusplus)
19629 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19642 if ac_fn_c_try_compile "$LINENO"; then :
19643 am_cv_proto_iconv_arg1=""
19645 am_cv_proto_iconv_arg1="const"
19647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19648 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);"
19651 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19653 }$am_cv_proto_iconv" >&5
19655 }$am_cv_proto_iconv" >&6; }
19657 cat >>confdefs.h <<_ACEOF
19658 #define ICONV_CONST $am_cv_proto_iconv_arg1
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19665 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19666 if test "${am_cv_langinfo_codeset+set}" = set; then :
19667 $as_echo_n "(cached) " >&6
19669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19670 /* end confdefs.h. */
19671 #include <langinfo.h>
19675 char* cs = nl_langinfo(CODESET);
19680 if ac_fn_c_try_link "$LINENO"; then :
19681 am_cv_langinfo_codeset=yes
19683 am_cv_langinfo_codeset=no
19685 rm -f core conftest.err conftest.$ac_objext \
19686 conftest$ac_exeext conftest.$ac_ext
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19690 $as_echo "$am_cv_langinfo_codeset" >&6; }
19691 if test $am_cv_langinfo_codeset = yes; then
19693 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19697 if test $ac_cv_header_locale_h = yes; then
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19700 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19701 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
19702 $as_echo_n "(cached) " >&6
19704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19705 /* end confdefs.h. */
19706 #include <locale.h>
19715 if ac_fn_c_try_link "$LINENO"; then :
19716 gt_cv_val_LC_MESSAGES=yes
19718 gt_cv_val_LC_MESSAGES=no
19720 rm -f core conftest.err conftest.$ac_objext \
19721 conftest$ac_exeext conftest.$ac_ext
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19724 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19725 if test $gt_cv_val_LC_MESSAGES = yes; then
19727 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19733 if test -n "$INTL_MACOSX_LIBS"; then
19734 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19737 for ac_prog in bison
19739 # Extract the first word of "$ac_prog", so it can be a program name with args.
19740 set dummy $ac_prog; ac_word=$2
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19742 $as_echo_n "checking for $ac_word... " >&6; }
19743 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
19744 $as_echo_n "(cached) " >&6
19746 if test -n "$INTLBISON"; then
19747 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19750 for as_dir in $PATH
19753 test -z "$as_dir" && as_dir=.
19754 for ac_exec_ext in '' $ac_executable_extensions; do
19755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19756 ac_cv_prog_INTLBISON="$ac_prog"
19757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19766 INTLBISON=$ac_cv_prog_INTLBISON
19767 if test -n "$INTLBISON"; then
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19769 $as_echo "$INTLBISON" >&6; }
19771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19772 $as_echo "no" >&6; }
19776 test -n "$INTLBISON" && break
19779 if test -z "$INTLBISON"; then
19782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19783 $as_echo_n "checking version of bison... " >&6; }
19784 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19785 case $ac_prog_version in
19786 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19787 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19788 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19789 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19792 $as_echo "$ac_prog_version" >&6; }
19794 if test $ac_verc_fail = yes; then
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19814 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19815 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
19816 $as_echo_n "(cached) " >&6
19818 gt_save_CPPFLAGS="$CPPFLAGS"
19819 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19820 gt_save_LIBS="$LIBS"
19821 LIBS="$LIBS -framework CoreFoundation"
19822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19823 /* end confdefs.h. */
19824 #include <CFPreferences.h>
19828 CFPreferencesCopyAppValue(NULL, NULL)
19833 if ac_fn_c_try_link "$LINENO"; then :
19834 gt_cv_func_CFPreferencesCopyAppValue=yes
19836 gt_cv_func_CFPreferencesCopyAppValue=no
19838 rm -f core conftest.err conftest.$ac_objext \
19839 conftest$ac_exeext conftest.$ac_ext
19840 CPPFLAGS="$gt_save_CPPFLAGS"
19841 LIBS="$gt_save_LIBS"
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19844 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19845 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19847 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19851 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19852 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
19853 $as_echo_n "(cached) " >&6
19855 gt_save_CPPFLAGS="$CPPFLAGS"
19856 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19857 gt_save_LIBS="$LIBS"
19858 LIBS="$LIBS -framework CoreFoundation"
19859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19860 /* end confdefs.h. */
19861 #include <CFLocale.h>
19865 CFLocaleCopyCurrent();
19870 if ac_fn_c_try_link "$LINENO"; then :
19871 gt_cv_func_CFLocaleCopyCurrent=yes
19873 gt_cv_func_CFLocaleCopyCurrent=no
19875 rm -f core conftest.err conftest.$ac_objext \
19876 conftest$ac_exeext conftest.$ac_ext
19877 CPPFLAGS="$gt_save_CPPFLAGS"
19878 LIBS="$gt_save_LIBS"
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19881 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19882 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19884 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19888 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19889 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19896 $as_echo_n "checking whether NLS is requested... " >&6; }
19897 # Check whether --enable-nls was given.
19898 if test "${enable_nls+set}" = set; then :
19899 enableval=$enable_nls; USE_NLS=$enableval
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19905 $as_echo "$USE_NLS" >&6; }
19910 BUILD_INCLUDED_LIBINTL=no
19911 USE_INCLUDED_LIBINTL=no
19917 if test "$USE_NLS" = "yes"; then
19918 gt_use_preinstalled_gnugettext=no
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19921 $as_echo_n "checking whether included gettext is requested... " >&6; }
19923 # Check whether --with-included-gettext was given.
19924 if test "${with_included_gettext+set}" = set; then :
19925 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19927 nls_cv_force_use_gnu_gettext=no
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19931 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19933 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19934 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19942 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19943 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
19944 $as_echo_n "(cached) " >&6
19946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19947 /* end confdefs.h. */
19948 #include <libintl.h>
19949 extern int _nl_msg_cat_cntr;
19950 extern int *_nl_domain_bindings;
19954 bindtextdomain ("", "");
19955 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
19960 if ac_fn_c_try_link "$LINENO"; then :
19961 gt_cv_func_gnugettext1_libc=yes
19963 gt_cv_func_gnugettext1_libc=no
19965 rm -f core conftest.err conftest.$ac_objext \
19966 conftest$ac_exeext conftest.$ac_ext
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
19969 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
19971 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
19977 acl_save_prefix="$prefix"
19978 prefix="$acl_final_prefix"
19979 acl_save_exec_prefix="$exec_prefix"
19980 exec_prefix="$acl_final_exec_prefix"
19982 eval additional_includedir=\"$includedir\"
19983 eval additional_libdir=\"$libdir\"
19985 exec_prefix="$acl_save_exec_prefix"
19986 prefix="$acl_save_prefix"
19989 # Check whether --with-libintl-prefix was given.
19990 if test "${with_libintl_prefix+set}" = set; then :
19991 withval=$with_libintl_prefix;
19992 if test "X$withval" = "Xno"; then
19995 if test "X$withval" = "X"; then
19997 acl_save_prefix="$prefix"
19998 prefix="$acl_final_prefix"
19999 acl_save_exec_prefix="$exec_prefix"
20000 exec_prefix="$acl_final_exec_prefix"
20002 eval additional_includedir=\"$includedir\"
20003 eval additional_libdir=\"$libdir\"
20005 exec_prefix="$acl_save_exec_prefix"
20006 prefix="$acl_save_prefix"
20009 additional_includedir="$withval/include"
20010 additional_libdir="$withval/lib"
20021 names_already_handled=
20022 names_next_round='intl '
20023 while test -n "$names_next_round"; do
20024 names_this_round="$names_next_round"
20026 for name in $names_this_round; do
20028 for n in $names_already_handled; do
20029 if test "$n" = "$name"; then
20030 already_handled=yes
20034 if test -z "$already_handled"; then
20035 names_already_handled="$names_already_handled $name"
20036 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20037 eval value=\"\$HAVE_LIB$uppername\"
20038 if test -n "$value"; then
20039 if test "$value" = yes; then
20040 eval value=\"\$LIB$uppername\"
20041 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20042 eval value=\"\$LTLIB$uppername\"
20043 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20052 if test $use_additional = yes; then
20053 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20054 found_dir="$additional_libdir"
20055 found_so="$additional_libdir/lib$name.$shlibext"
20056 if test -f "$additional_libdir/lib$name.la"; then
20057 found_la="$additional_libdir/lib$name.la"
20060 if test -f "$additional_libdir/lib$name.$libext"; then
20061 found_dir="$additional_libdir"
20062 found_a="$additional_libdir/lib$name.$libext"
20063 if test -f "$additional_libdir/lib$name.la"; then
20064 found_la="$additional_libdir/lib$name.la"
20069 if test "X$found_dir" = "X"; then
20070 for x in $LDFLAGS $LTLIBINTL; do
20072 acl_save_prefix="$prefix"
20073 prefix="$acl_final_prefix"
20074 acl_save_exec_prefix="$exec_prefix"
20075 exec_prefix="$acl_final_exec_prefix"
20077 exec_prefix="$acl_save_exec_prefix"
20078 prefix="$acl_save_prefix"
20082 dir=`echo "X$x" | sed -e 's/^X-L//'`
20083 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20085 found_so="$dir/lib$name.$shlibext"
20086 if test -f "$dir/lib$name.la"; then
20087 found_la="$dir/lib$name.la"
20090 if test -f "$dir/lib$name.$libext"; then
20092 found_a="$dir/lib$name.$libext"
20093 if test -f "$dir/lib$name.la"; then
20094 found_la="$dir/lib$name.la"
20100 if test "X$found_dir" != "X"; then
20105 if test "X$found_dir" != "X"; then
20106 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20107 if test "X$found_so" != "X"; then
20108 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20109 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20112 for x in $ltrpathdirs; do
20113 if test "X$x" = "X$found_dir"; then
20118 if test -z "$haveit"; then
20119 ltrpathdirs="$ltrpathdirs $found_dir"
20121 if test "$hardcode_direct" = yes; then
20122 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20124 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20125 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20127 for x in $rpathdirs; do
20128 if test "X$x" = "X$found_dir"; then
20133 if test -z "$haveit"; then
20134 rpathdirs="$rpathdirs $found_dir"
20138 for x in $LDFLAGS $LIBINTL; do
20140 acl_save_prefix="$prefix"
20141 prefix="$acl_final_prefix"
20142 acl_save_exec_prefix="$exec_prefix"
20143 exec_prefix="$acl_final_exec_prefix"
20145 exec_prefix="$acl_save_exec_prefix"
20146 prefix="$acl_save_prefix"
20148 if test "X$x" = "X-L$found_dir"; then
20153 if test -z "$haveit"; then
20154 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20156 if test "$hardcode_minus_L" != no; then
20157 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20159 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20165 if test "X$found_a" != "X"; then
20166 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20168 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20171 additional_includedir=
20172 case "$found_dir" in
20174 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20175 additional_includedir="$basedir/include"
20178 if test "X$additional_includedir" != "X"; then
20179 if test "X$additional_includedir" != "X/usr/include"; then
20181 if test "X$additional_includedir" = "X/usr/local/include"; then
20182 if test -n "$GCC"; then
20184 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20188 if test -z "$haveit"; then
20189 for x in $CPPFLAGS $INCINTL; do
20191 acl_save_prefix="$prefix"
20192 prefix="$acl_final_prefix"
20193 acl_save_exec_prefix="$exec_prefix"
20194 exec_prefix="$acl_final_exec_prefix"
20196 exec_prefix="$acl_save_exec_prefix"
20197 prefix="$acl_save_prefix"
20199 if test "X$x" = "X-I$additional_includedir"; then
20204 if test -z "$haveit"; then
20205 if test -d "$additional_includedir"; then
20206 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20212 if test -n "$found_la"; then
20213 save_libdir="$libdir"
20214 case "$found_la" in
20215 */* | *\\*) . "$found_la" ;;
20216 *) . "./$found_la" ;;
20218 libdir="$save_libdir"
20219 for dep in $dependency_libs; do
20222 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20223 if test "X$additional_libdir" != "X/usr/lib"; then
20225 if test "X$additional_libdir" = "X/usr/local/lib"; then
20226 if test -n "$GCC"; then
20228 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20232 if test -z "$haveit"; then
20234 for x in $LDFLAGS $LIBINTL; do
20236 acl_save_prefix="$prefix"
20237 prefix="$acl_final_prefix"
20238 acl_save_exec_prefix="$exec_prefix"
20239 exec_prefix="$acl_final_exec_prefix"
20241 exec_prefix="$acl_save_exec_prefix"
20242 prefix="$acl_save_prefix"
20244 if test "X$x" = "X-L$additional_libdir"; then
20249 if test -z "$haveit"; then
20250 if test -d "$additional_libdir"; then
20251 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20255 for x in $LDFLAGS $LTLIBINTL; do
20257 acl_save_prefix="$prefix"
20258 prefix="$acl_final_prefix"
20259 acl_save_exec_prefix="$exec_prefix"
20260 exec_prefix="$acl_final_exec_prefix"
20262 exec_prefix="$acl_save_exec_prefix"
20263 prefix="$acl_save_prefix"
20265 if test "X$x" = "X-L$additional_libdir"; then
20270 if test -z "$haveit"; then
20271 if test -d "$additional_libdir"; then
20272 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20279 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20280 if test "$enable_rpath" != no; then
20282 for x in $rpathdirs; do
20283 if test "X$x" = "X$dir"; then
20288 if test -z "$haveit"; then
20289 rpathdirs="$rpathdirs $dir"
20292 for x in $ltrpathdirs; do
20293 if test "X$x" = "X$dir"; then
20298 if test -z "$haveit"; then
20299 ltrpathdirs="$ltrpathdirs $dir"
20304 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20307 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20310 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20311 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20317 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20318 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20324 if test "X$rpathdirs" != "X"; then
20325 if test -n "$hardcode_libdir_separator"; then
20327 for found_dir in $rpathdirs; do
20328 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20330 acl_save_libdir="$libdir"
20332 eval flag=\"$hardcode_libdir_flag_spec\"
20333 libdir="$acl_save_libdir"
20334 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20336 for found_dir in $rpathdirs; do
20337 acl_save_libdir="$libdir"
20338 libdir="$found_dir"
20339 eval flag=\"$hardcode_libdir_flag_spec\"
20340 libdir="$acl_save_libdir"
20341 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20345 if test "X$ltrpathdirs" != "X"; then
20346 for found_dir in $ltrpathdirs; do
20347 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20352 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20353 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
20354 $as_echo_n "(cached) " >&6
20356 gt_save_CPPFLAGS="$CPPFLAGS"
20357 CPPFLAGS="$CPPFLAGS $INCINTL"
20358 gt_save_LIBS="$LIBS"
20359 LIBS="$LIBS $LIBINTL"
20360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20361 /* end confdefs.h. */
20362 #include <libintl.h>
20363 extern int _nl_msg_cat_cntr;
20368 const char *_nl_expand_alias (const char *);
20372 bindtextdomain ("", "");
20373 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20378 if ac_fn_c_try_link "$LINENO"; then :
20379 gt_cv_func_gnugettext1_libintl=yes
20381 gt_cv_func_gnugettext1_libintl=no
20383 rm -f core conftest.err conftest.$ac_objext \
20384 conftest$ac_exeext conftest.$ac_ext
20385 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20386 LIBS="$LIBS $LIBICONV"
20387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20388 /* end confdefs.h. */
20389 #include <libintl.h>
20390 extern int _nl_msg_cat_cntr;
20395 const char *_nl_expand_alias (const char *);
20399 bindtextdomain ("", "");
20400 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20405 if ac_fn_c_try_link "$LINENO"; then :
20406 LIBINTL="$LIBINTL $LIBICONV"
20407 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20408 gt_cv_func_gnugettext1_libintl=yes
20411 rm -f core conftest.err conftest.$ac_objext \
20412 conftest$ac_exeext conftest.$ac_ext
20414 CPPFLAGS="$gt_save_CPPFLAGS"
20415 LIBS="$gt_save_LIBS"
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20418 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20421 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20422 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20423 && test "$PACKAGE" != gettext-runtime \
20424 && test "$PACKAGE" != gettext-tools; }; then
20425 gt_use_preinstalled_gnugettext=yes
20433 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20434 nls_cv_use_gnu_gettext=yes
20438 if test "$nls_cv_use_gnu_gettext" = "yes"; then
20439 BUILD_INCLUDED_LIBINTL=yes
20440 USE_INCLUDED_LIBINTL=yes
20441 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20442 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20443 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20447 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20448 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20453 if test -n "$INTL_MACOSX_LIBS"; then
20454 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20455 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20456 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20457 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20461 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20462 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20464 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20472 $as_echo_n "checking whether to use NLS... " >&6; }
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20474 $as_echo "$USE_NLS" >&6; }
20475 if test "$USE_NLS" = "yes"; then
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20477 $as_echo_n "checking where the gettext function comes from... " >&6; }
20478 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20479 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20480 gt_source="external libintl"
20485 gt_source="included intl directory"
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20488 $as_echo "$gt_source" >&6; }
20491 if test "$USE_NLS" = "yes"; then
20493 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20494 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20496 $as_echo_n "checking how to link with libintl... " >&6; }
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20498 $as_echo "$LIBINTL" >&6; }
20500 for element in $INCINTL; do
20502 for x in $CPPFLAGS; do
20504 acl_save_prefix="$prefix"
20505 prefix="$acl_final_prefix"
20506 acl_save_exec_prefix="$exec_prefix"
20507 exec_prefix="$acl_final_exec_prefix"
20509 exec_prefix="$acl_save_exec_prefix"
20510 prefix="$acl_save_prefix"
20512 if test "X$x" = "X$element"; then
20517 if test -z "$haveit"; then
20518 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20525 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20528 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20536 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20537 BUILD_INCLUDED_LIBINTL=yes
20544 nls_cv_header_intl=
20545 nls_cv_header_libgt=
20557 if test "$USE_INCLUDED_LIBINTL" = yes; then
20558 INTLOBJS="\$(GETTOBJS)"
20562 INTL_LIBTOOL_SUFFIX_PREFIX=
20566 INTLLIBS="$LIBINTL"
20578 support_postgresql=no
20581 support_smartalloc=yes
20582 support_readline=yes
20586 support_wx_console=no
20587 support_tray_monitor=no
20592 support_static_tools=no
20593 support_static_fd=no
20594 support_static_sd=no
20595 support_static_dir=no
20596 support_static_cons=no
20598 build_client_only=no
20607 # Check whether --enable-gnome was given.
20608 if test "${enable_gnome+set}" = set; then :
20609 enableval=$enable_gnome;
20610 if test x$enableval = xyes; then
20619 if test x$support_gnome = xyes; then
20620 as_fn_error "bgnome-console no longer supported" "$LINENO" 5
20621 as_fn_error "--enable-gnome option no longer supported" "$LINENO" 5
20623 # AC_SUBST(GNOME_DIR)
20625 # Check whether --enable-bat was given.
20626 if test "${enable_bat+set}" = set; then :
20627 enableval=$enable_bat;
20628 if test x$enableval = xyes; then
20630 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20640 if test x$support_bat = xyes; then
20641 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20643 if test $pkg = 0; then
20644 BAT_DIR=src/qt-console
20646 as_fn_error "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20664 # Check whether --enable-bwx-console was given.
20665 if test "${enable_bwx_console+set}" = set; then :
20666 enableval=$enable_bwx_console;
20667 if test x$enableval = xyes; then
20668 support_wx_console=yes
20676 if test x$support_wx_console = xyes; then
20677 abc=`$WXCONFIG $WXFLAGS --cppflags`
20679 if test $pkg = 0; then
20680 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20681 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20682 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20686 WX_DIR="src/wx-console"
20689 echo "wx-config program not found. bwx-console disabled."
20691 support_wx_console=no
20696 # Check whether --enable-tray-monitor was given.
20697 if test "${enable_tray_monitor+set}" = set; then :
20698 enableval=$enable_tray_monitor;
20699 if test x$enableval = xyes; then
20700 support_tray_monitor=yes
20708 if test x$support_tray_monitor = xyes; then
20709 abc=`$PKGCONFIG --exists gtk+-2.0`
20711 if test $pkg = 0; then
20712 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20713 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20716 TRAY_MONITOR_DIR=src/tray-monitor
20717 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20719 if test $pkg = 0; then
20721 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20728 # Check whether --enable-smartalloc was given.
20729 if test "${enable_smartalloc+set}" = set; then :
20730 enableval=$enable_smartalloc;
20731 if test x$enableval = xno; then
20732 support_smartalloc=no
20739 if test x$support_smartalloc = xyes; then
20741 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20745 # Check whether --enable-lockmgr was given.
20746 if test "${enable_lockmgr+set}" = set; then :
20747 enableval=$enable_lockmgr;
20748 if test x$enableval = xyes; then
20749 support_lockmgr=yes
20756 if test x$support_lockmgr = xyes; then
20758 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20763 # Check whether --enable-static-tools was given.
20764 if test "${enable_static_tools+set}" = set; then :
20765 enableval=$enable_static_tools;
20766 if test x$enableval = xyes; then
20767 if test x$use_libtool = xyes; then
20768 as_fn_error "Libtool is enabled, not compatible with static tools,
20769 please rerun configure with --disable-libtool" "$LINENO" 5
20771 support_static_tools=yes
20779 if test x$support_static_tools = xyes; then
20780 TTOOL_LDFLAGS="-static"
20784 # Check whether --enable-static-fd was given.
20785 if test "${enable_static_fd+set}" = set; then :
20786 enableval=$enable_static_fd;
20787 if test x$enableval = xyes; then
20788 if test x$use_libtool = xyes; then
20789 as_fn_error "Libtool is enabled, not compatible with static tools,
20790 please rerun configure with --disable-libtool" "$LINENO" 5
20792 support_static_fd=yes
20800 if test x$support_static_fd = xyes; then
20801 STATIC_FD="static-bacula-fd"
20805 # Check whether --enable-static-sd was given.
20806 if test "${enable_static_sd+set}" = set; then :
20807 enableval=$enable_static_sd;
20808 if test x$enableval = xyes; then
20809 if test x$use_libtool = xyes; then
20810 as_fn_error "Libtool is enabled, not compatible with static tools,
20811 please rerun configure with --disable-libtool" "$LINENO" 5
20813 support_static_sd=yes
20821 if test x$support_static_sd = xyes; then
20822 STATIC_SD="static-bacula-sd"
20826 # Check whether --enable-static-dir was given.
20827 if test "${enable_static_dir+set}" = set; then :
20828 enableval=$enable_static_dir;
20829 if test x$enableval = xyes; then
20830 if test x$use_libtool = xyes; then
20831 as_fn_error "Libtool is enabled, not compatible with static tools,
20832 please rerun configure with --disable-libtool" "$LINENO" 5
20834 support_static_dir=yes
20842 if test x$support_static_dir = xyes; then
20843 STATIC_DIR="static-bacula-dir"
20847 # Check whether --enable-static-cons was given.
20848 if test "${enable_static_cons+set}" = set; then :
20849 enableval=$enable_static_cons;
20850 if test x$enableval = xyes; then
20851 if test x$use_libtool = xyes; then
20852 as_fn_error "Libtool is enabled, not compatible with static tools,
20853 please rerun configure with --disable-libtool" "$LINENO" 5
20855 support_static_cons=yes
20865 if test x$support_static_cons = xyes; then
20866 STATIC_CONS="static-bconsole"
20867 STATIC_GNOME_CONS="static-bgnome-console"
20868 STATIC_WX_CONS="static-bwx-console"
20874 # Check whether --enable-client-only was given.
20875 if test "${enable_client_only+set}" = set; then :
20876 enableval=$enable_client_only;
20877 if test x$enableval = xyes; then
20878 build_client_only=yes
20886 if test x$build_client_only = xno; then
20893 # Check whether --enable-build-dird was given.
20894 if test "${enable_build_dird+set}" = set; then :
20895 enableval=$enable_build_dird;
20896 if test x$enableval = xno; then
20903 if test x$build_dird = xyes; then
20904 DIRD_DIR="src/dird"
20905 DIR_TOOLS="DIRTOOLS"
20908 DIR_TOOLS="NODIRTOOLS"
20913 # Check whether --enable-build-stored was given.
20914 if test "${enable_build_stored+set}" = set; then :
20915 enableval=$enable_build_stored;
20916 if test x$enableval = xno; then
20923 if test x$build_stored = xyes; then
20924 STORED_DIR="src/stored"
20930 # Check whether --enable-conio was given.
20931 if test "${enable_conio+set}" = set; then :
20932 enableval=$enable_conio;
20933 if test x$enableval = xno; then
20943 # Check whether --enable-ipv6 was given.
20944 if test "${enable_ipv6+set}" = set; then :
20945 enableval=$enable_ipv6;
20946 if test x$enableval = xno; then
20954 if test x$support_ipv6 = xyes; then
20955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20956 /* end confdefs.h. */
20957 #include <sys/types.h>
20958 #include <sys/socket.h>
20959 #include <netinet/in.h>
20963 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
20968 if ac_fn_c_try_link "$LINENO"; then :
20973 rm -f core conftest.err conftest.$ac_objext \
20974 conftest$ac_exeext conftest.$ac_ext
20977 if test x$support_ipv6 = xyes; then
20979 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
20984 if test x$support_conio = xyes; then
20985 ac_fn_c_check_header_mongrel "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default"
20986 if test "x$ac_cv_header_termcap_h" = x""yes; then :
20987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
20988 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
20989 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
20990 $as_echo_n "(cached) " >&6
20992 ac_check_lib_save_LIBS=$LIBS
20993 LIBS="-ltermcap $LIBS"
20994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20995 /* end confdefs.h. */
20997 /* Override any GCC internal prototype to avoid an error.
20998 Use char because int might match the return type of a GCC
20999 builtin and then its argument prototype would still apply. */
21012 if ac_fn_c_try_link "$LINENO"; then :
21013 ac_cv_lib_termcap_tgetent=yes
21015 ac_cv_lib_termcap_tgetent=no
21017 rm -f core conftest.err conftest.$ac_objext \
21018 conftest$ac_exeext conftest.$ac_ext
21019 LIBS=$ac_check_lib_save_LIBS
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21022 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21023 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21024 CONS_LIBS="-ltermcap"
21028 support_readline=no
21030 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21035 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21036 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
21037 $as_echo_n "(cached) " >&6
21039 ac_check_lib_save_LIBS=$LIBS
21040 LIBS="-lncurses $LIBS"
21041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21042 /* end confdefs.h. */
21044 /* Override any GCC internal prototype to avoid an error.
21045 Use char because int might match the return type of a GCC
21046 builtin and then its argument prototype would still apply. */
21059 if ac_fn_c_try_link "$LINENO"; then :
21060 ac_cv_lib_ncurses_tgetent=yes
21062 ac_cv_lib_ncurses_tgetent=no
21064 rm -f core conftest.err conftest.$ac_objext \
21065 conftest$ac_exeext conftest.$ac_ext
21066 LIBS=$ac_check_lib_save_LIBS
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21069 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21070 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21071 CONS_LIBS="-lncurses"
21075 support_readline=no
21077 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21088 for ac_header in curses.h
21090 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21091 if test "x$ac_cv_header_curses_h" = x""yes; then :
21092 cat >>confdefs.h <<_ACEOF
21093 #define HAVE_CURSES_H 1
21100 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
21101 #include <curses.h>
21105 if test "x$ac_cv_header_term_h" = x""yes; then :
21106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21107 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21108 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21109 $as_echo_n "(cached) " >&6
21111 ac_check_lib_save_LIBS=$LIBS
21112 LIBS="-lcurses $LIBS"
21113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21114 /* end confdefs.h. */
21116 /* Override any GCC internal prototype to avoid an error.
21117 Use char because int might match the return type of a GCC
21118 builtin and then its argument prototype would still apply. */
21131 if ac_fn_c_try_link "$LINENO"; then :
21132 ac_cv_lib_curses_tgetent=yes
21134 ac_cv_lib_curses_tgetent=no
21136 rm -f core conftest.err conftest.$ac_objext \
21137 conftest$ac_exeext conftest.$ac_ext
21138 LIBS=$ac_check_lib_save_LIBS
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21141 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21142 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21143 CONS_LIBS="-lcurses"
21147 support_readline=no
21149 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21156 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
21167 # Check whether --enable-readline was given.
21168 if test "${enable_readline+set}" = set; then :
21169 enableval=$enable_readline;
21170 if test x$enableval = xno; then
21171 support_readline=no
21180 if test x$support_readline = xyes; then
21182 # Check whether --with-readline was given.
21183 if test "${with_readline+set}" = set; then :
21184 withval=$with_readline;
21185 case "$with_readline" in
21190 if test -f ${with_readline}/readline.h; then
21191 CONS_INC="-I${with_readline}"
21192 CONS_LDFLAGS="-L$with_readline"
21193 elif test -f ${with_readline}/include/readline/readline.h; then
21194 CONS_INC="-I${with_readline}/include/readline"
21195 CONS_LDFLAGS="-L${with_readline}/lib"
21196 with_readline="${with_readline}/include/readline"
21198 with_readline="/usr/include/readline"
21201 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21202 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21203 eval as_val=\$$as_ac_Header
21204 if test "x$as_val" = x""yes; then :
21207 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21209 CONS_LIBS="-lreadline -lhistory -ltermcap"
21215 echo "readline.h not found. readline turned off ..."
21227 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21228 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
21231 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21234 CONS_INC="-I/usr/include/readline"
21235 CONS_LIBS="-lreadline -ltermcap"
21239 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21240 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21241 eval as_val=\$$as_ac_Header
21242 if test "x$as_val" = x""yes; then :
21245 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21248 CONS_INC="-I${TOP_DIR}/depkgs/readline"
21249 CONS_LIBS="-lreadline -lhistory -ltermcap"
21250 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21251 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21256 echo "readline.h not found. readline turned off ..."
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21284 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21285 if test "${ac_cv_header_stat_broken+set}" = set; then :
21286 $as_echo_n "(cached) " >&6
21288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21289 /* end confdefs.h. */
21290 #include <sys/types.h>
21291 #include <sys/stat.h>
21293 #if defined S_ISBLK && defined S_IFDIR
21294 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21297 #if defined S_ISBLK && defined S_IFCHR
21298 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21301 #if defined S_ISLNK && defined S_IFREG
21302 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21305 #if defined S_ISSOCK && defined S_IFREG
21306 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21310 if ac_fn_c_try_compile "$LINENO"; then :
21311 ac_cv_header_stat_broken=no
21313 ac_cv_header_stat_broken=yes
21315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21318 $as_echo "$ac_cv_header_stat_broken" >&6; }
21319 if test $ac_cv_header_stat_broken = yes; then
21321 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21325 ac_header_dirent=no
21326 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21327 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21329 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
21331 $as_echo_n "(cached) " >&6
21333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21334 /* end confdefs.h. */
21335 #include <sys/types.h>
21347 if ac_fn_c_try_compile "$LINENO"; then :
21348 eval "$as_ac_Header=yes"
21350 eval "$as_ac_Header=no"
21352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21354 eval ac_res=\$$as_ac_Header
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21356 $as_echo "$ac_res" >&6; }
21357 eval as_val=\$$as_ac_Header
21358 if test "x$as_val" = x""yes; then :
21359 cat >>confdefs.h <<_ACEOF
21360 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21363 ac_header_dirent=$ac_hdr; break
21367 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21368 if test $ac_header_dirent = dirent.h; then
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21370 $as_echo_n "checking for library containing opendir... " >&6; }
21371 if test "${ac_cv_search_opendir+set}" = set; then :
21372 $as_echo_n "(cached) " >&6
21374 ac_func_search_save_LIBS=$LIBS
21375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21376 /* end confdefs.h. */
21378 /* Override any GCC internal prototype to avoid an error.
21379 Use char because int might match the return type of a GCC
21380 builtin and then its argument prototype would still apply. */
21393 for ac_lib in '' dir; do
21394 if test -z "$ac_lib"; then
21395 ac_res="none required"
21398 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21400 if ac_fn_c_try_link "$LINENO"; then :
21401 ac_cv_search_opendir=$ac_res
21403 rm -f core conftest.err conftest.$ac_objext \
21405 if test "${ac_cv_search_opendir+set}" = set; then :
21409 if test "${ac_cv_search_opendir+set}" = set; then :
21412 ac_cv_search_opendir=no
21414 rm conftest.$ac_ext
21415 LIBS=$ac_func_search_save_LIBS
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21418 $as_echo "$ac_cv_search_opendir" >&6; }
21419 ac_res=$ac_cv_search_opendir
21420 if test "$ac_res" != no; then :
21421 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21427 $as_echo_n "checking for library containing opendir... " >&6; }
21428 if test "${ac_cv_search_opendir+set}" = set; then :
21429 $as_echo_n "(cached) " >&6
21431 ac_func_search_save_LIBS=$LIBS
21432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21433 /* end confdefs.h. */
21435 /* Override any GCC internal prototype to avoid an error.
21436 Use char because int might match the return type of a GCC
21437 builtin and then its argument prototype would still apply. */
21450 for ac_lib in '' x; do
21451 if test -z "$ac_lib"; then
21452 ac_res="none required"
21455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21457 if ac_fn_c_try_link "$LINENO"; then :
21458 ac_cv_search_opendir=$ac_res
21460 rm -f core conftest.err conftest.$ac_objext \
21462 if test "${ac_cv_search_opendir+set}" = set; then :
21466 if test "${ac_cv_search_opendir+set}" = set; then :
21469 ac_cv_search_opendir=no
21471 rm conftest.$ac_ext
21472 LIBS=$ac_func_search_save_LIBS
21474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21475 $as_echo "$ac_cv_search_opendir" >&6; }
21476 ac_res=$ac_cv_search_opendir
21477 if test "$ac_res" != no; then :
21478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21484 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21486 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21487 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21488 eval as_val=\$$as_ac_var
21489 if test "x$as_val" = x""yes; then :
21490 cat >>confdefs.h <<_ACEOF
21491 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21497 for ac_func in nanosleep nl_langinfo
21499 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21500 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21501 eval as_val=\$$as_ac_var
21502 if test "x$as_val" = x""yes; then :
21503 cat >>confdefs.h <<_ACEOF
21504 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21510 for ac_header in varargs.h
21512 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21513 if test "x$ac_cv_header_varargs_h" = x""yes; then :
21514 cat >>confdefs.h <<_ACEOF
21515 #define HAVE_VARARGS_H 1
21524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21525 $as_echo_n "checking for Python support... " >&6; }
21527 # Check whether --with-python was given.
21528 if test "${with_python+set}" = set; then :
21529 withval=$with_python;
21532 if test "$withval" != "no"; then
21533 if test "$withval" = "yes"; then
21534 if test -e /usr/bin/python-config ; then
21535 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21536 PYTHON_LIBS=`/usr/bin/python-config --libs`
21538 for python_root in /usr /usr/local /usr/sfw; do
21539 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21540 if test -f $python_root/include/${ver}/Python.h; then
21541 PYTHON_INCDIR=-I$python_root/include/${ver}
21542 if test -d $python_root/lib64/${ver}/config; then
21543 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21545 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21552 if test x$PYTHON_INCDIR = x; then
21553 if test -f $prefix/include/Python.h; then
21554 PYTHON_INCDIR=-I$prefix/include
21555 if test -d $prefix/lib64/config; then
21556 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21558 PYTHON_LIBS="-L$prefix/lib/config -lpython"
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21562 $as_echo "no" >&6; }
21563 as_fn_error "Unable to find Python.h in standard locations" "$LINENO" 5
21568 if test -e $withval/bin/python-config ; then
21569 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21570 PYTHON_LIBS=`$withval/bin/python-config --libs`
21571 elif test -f $withval/Python.h; then
21572 PYTHON_INCDIR=-I$withval
21573 PYTHON_LIBS="-L$withval/config -lpython"
21574 elif test -f $withval/include/Python.h; then
21575 PYTHON_INCDIR=-I$withval/include
21576 if test -d $withval/lib64/config; then
21577 PYTHON_LIBS="-L$withval/lib64/config -lpython"
21579 PYTHON_LIBS="-L$withval/lib/config -lpython"
21581 elif test -f $withval/include/python/Python.h; then
21582 PYTHON_INCDIR=-I$withval/include/python
21583 if test -d $withval/lib64/python/config; then
21584 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21586 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21590 $as_echo "no" >&6; }
21591 as_fn_error "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21595 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21598 $as_echo "yes" >&6; }
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21601 $as_echo "$as_me: checking for more Python libs" >&6;}
21602 saved_LIBS="$LIBS"; LIBS=
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21604 $as_echo_n "checking for library containing shm_open... " >&6; }
21605 if test "${ac_cv_search_shm_open+set}" = set; then :
21606 $as_echo_n "(cached) " >&6
21608 ac_func_search_save_LIBS=$LIBS
21609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21610 /* end confdefs.h. */
21612 /* Override any GCC internal prototype to avoid an error.
21613 Use char because int might match the return type of a GCC
21614 builtin and then its argument prototype would still apply. */
21622 return shm_open ();
21627 for ac_lib in '' rt; do
21628 if test -z "$ac_lib"; then
21629 ac_res="none required"
21632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21634 if ac_fn_c_try_link "$LINENO"; then :
21635 ac_cv_search_shm_open=$ac_res
21637 rm -f core conftest.err conftest.$ac_objext \
21639 if test "${ac_cv_search_shm_open+set}" = set; then :
21643 if test "${ac_cv_search_shm_open+set}" = set; then :
21646 ac_cv_search_shm_open=no
21648 rm conftest.$ac_ext
21649 LIBS=$ac_func_search_save_LIBS
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21652 $as_echo "$ac_cv_search_shm_open" >&6; }
21653 ac_res=$ac_cv_search_shm_open
21654 if test "$ac_res" != no; then :
21655 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21660 $as_echo_n "checking for openpty in -lutil... " >&6; }
21661 if test "${ac_cv_lib_util_openpty+set}" = set; then :
21662 $as_echo_n "(cached) " >&6
21664 ac_check_lib_save_LIBS=$LIBS
21665 LIBS="-lutil $LIBS"
21666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21667 /* end confdefs.h. */
21669 /* Override any GCC internal prototype to avoid an error.
21670 Use char because int might match the return type of a GCC
21671 builtin and then its argument prototype would still apply. */
21684 if ac_fn_c_try_link "$LINENO"; then :
21685 ac_cv_lib_util_openpty=yes
21687 ac_cv_lib_util_openpty=no
21689 rm -f core conftest.err conftest.$ac_objext \
21690 conftest$ac_exeext conftest.$ac_ext
21691 LIBS=$ac_check_lib_save_LIBS
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21694 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21695 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
21696 cat >>confdefs.h <<_ACEOF
21697 #define HAVE_LIBUTIL 1
21700 LIBS="-lutil $LIBS"
21704 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21708 $as_echo "no" >&6; }
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21714 $as_echo "no" >&6; }
21722 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21723 if test "x$ac_cv_func_socket" = x""yes; then :
21724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21725 $as_echo "using libc's socket" >&6; }
21727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21728 $as_echo_n "checking for socket in -lxnet... " >&6; }
21729 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
21730 $as_echo_n "(cached) " >&6
21732 ac_check_lib_save_LIBS=$LIBS
21733 LIBS="-lxnet $LIBS"
21734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21735 /* end confdefs.h. */
21737 /* Override any GCC internal prototype to avoid an error.
21738 Use char because int might match the return type of a GCC
21739 builtin and then its argument prototype would still apply. */
21752 if ac_fn_c_try_link "$LINENO"; then :
21753 ac_cv_lib_xnet_socket=yes
21755 ac_cv_lib_xnet_socket=no
21757 rm -f core conftest.err conftest.$ac_objext \
21758 conftest$ac_exeext conftest.$ac_ext
21759 LIBS=$ac_check_lib_save_LIBS
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21762 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21763 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
21764 cat >>confdefs.h <<_ACEOF
21765 #define HAVE_LIBXNET 1
21768 LIBS="-lxnet $LIBS"
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21773 $as_echo_n "checking for socket in -lsocket... " >&6; }
21774 if test "${ac_cv_lib_socket_socket+set}" = set; then :
21775 $as_echo_n "(cached) " >&6
21777 ac_check_lib_save_LIBS=$LIBS
21778 LIBS="-lsocket $LIBS"
21779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21780 /* end confdefs.h. */
21782 /* Override any GCC internal prototype to avoid an error.
21783 Use char because int might match the return type of a GCC
21784 builtin and then its argument prototype would still apply. */
21797 if ac_fn_c_try_link "$LINENO"; then :
21798 ac_cv_lib_socket_socket=yes
21800 ac_cv_lib_socket_socket=no
21802 rm -f core conftest.err conftest.$ac_objext \
21803 conftest$ac_exeext conftest.$ac_ext
21804 LIBS=$ac_check_lib_save_LIBS
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21807 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21808 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
21809 cat >>confdefs.h <<_ACEOF
21810 #define HAVE_LIBSOCKET 1
21813 LIBS="-lsocket $LIBS"
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21818 $as_echo_n "checking for socket in -linet... " >&6; }
21819 if test "${ac_cv_lib_inet_socket+set}" = set; then :
21820 $as_echo_n "(cached) " >&6
21822 ac_check_lib_save_LIBS=$LIBS
21823 LIBS="-linet $LIBS"
21824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21825 /* end confdefs.h. */
21827 /* Override any GCC internal prototype to avoid an error.
21828 Use char because int might match the return type of a GCC
21829 builtin and then its argument prototype would still apply. */
21842 if ac_fn_c_try_link "$LINENO"; then :
21843 ac_cv_lib_inet_socket=yes
21845 ac_cv_lib_inet_socket=no
21847 rm -f core conftest.err conftest.$ac_objext \
21848 conftest$ac_exeext conftest.$ac_ext
21849 LIBS=$ac_check_lib_save_LIBS
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21852 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21853 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
21854 cat >>confdefs.h <<_ACEOF
21855 #define HAVE_LIBINET 1
21858 LIBS="-linet $LIBS"
21868 # Check whether --with-tcp-wrappers was given.
21869 if test "${with_tcp_wrappers+set}" = set; then :
21870 withval=$with_tcp_wrappers;
21871 if test "x$withval" != "xno" ; then
21873 LIBS="$saved_LIBS -lwrap"
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21875 $as_echo_n "checking for library containing nanosleep... " >&6; }
21876 if test "${ac_cv_search_nanosleep+set}" = set; then :
21877 $as_echo_n "(cached) " >&6
21879 ac_func_search_save_LIBS=$LIBS
21880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21881 /* end confdefs.h. */
21883 /* Override any GCC internal prototype to avoid an error.
21884 Use char because int might match the return type of a GCC
21885 builtin and then its argument prototype would still apply. */
21893 return nanosleep ();
21898 for ac_lib in '' rt; do
21899 if test -z "$ac_lib"; then
21900 ac_res="none required"
21903 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21905 if ac_fn_c_try_link "$LINENO"; then :
21906 ac_cv_search_nanosleep=$ac_res
21908 rm -f core conftest.err conftest.$ac_objext \
21910 if test "${ac_cv_search_nanosleep+set}" = set; then :
21914 if test "${ac_cv_search_nanosleep+set}" = set; then :
21917 ac_cv_search_nanosleep=no
21919 rm conftest.$ac_ext
21920 LIBS=$ac_func_search_save_LIBS
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
21923 $as_echo "$ac_cv_search_nanosleep" >&6; }
21924 ac_res=$ac_cv_search_nanosleep
21925 if test "$ac_res" != no; then :
21926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
21931 $as_echo_n "checking for libwrap... " >&6; }
21932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21933 /* end confdefs.h. */
21935 #include <sys/types.h>
21937 int deny_severity = 0;
21938 int allow_severity = 0;
21939 struct request_info *req;
21951 if ac_fn_c_try_link "$LINENO"; then :
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21954 $as_echo "yes" >&6; }
21956 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21964 LIBS="$saved_LIBS -lwrap -lnsl"
21965 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
21966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21967 /* end confdefs.h. */
21969 #include <sys/types.h>
21971 int deny_severity = 0;
21972 int allow_severity = 0;
21973 struct request_info *req;
21985 if ac_fn_c_try_link "$LINENO"; then :
21987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21988 $as_echo "yes" >&6; }
21990 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21998 as_fn_error "*** libwrap missing" "$LINENO" 5
22002 rm -f core conftest.err conftest.$ac_objext \
22003 conftest$ac_exeext conftest.$ac_ext
22007 rm -f core conftest.err conftest.$ac_objext \
22008 conftest$ac_exeext conftest.$ac_ext
22015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22016 $as_echo_n "checking for OpenSSL... " >&6; }
22018 # Check whether --with-openssl was given.
22019 if test "${with_openssl+set}" = set; then :
22020 withval=$with_openssl;
22021 with_openssl_directory=${withval}
22027 if test "x$with_openssl_directory" != "xno"; then
22028 OPENSSL_LIBS="-lssl -lcrypto"
22031 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22033 # Make sure the $with_openssl_directory also makes sense
22035 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22036 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22037 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22041 saved_LIBS="${LIBS}"
22042 saved_CFLAGS="${CFLAGS}"
22043 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22044 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22047 /* end confdefs.h. */
22049 #include <openssl/ssl.h>
22055 CRYPTO_set_id_callback(NULL);
22061 if ac_fn_c_try_link "$LINENO"; then :
22064 support_crypto="yes"
22069 support_crypto="no"
22073 rm -f core conftest.err conftest.$ac_objext \
22074 conftest$ac_exeext conftest.$ac_ext
22076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22077 /* end confdefs.h. */
22079 #include <openssl/evp.h>
22091 if ac_fn_c_try_link "$LINENO"; then :
22093 ac_cv_openssl_sha2="yes"
22097 ac_cv_openssl_sha2="no"
22101 rm -f core conftest.err conftest.$ac_objext \
22102 conftest$ac_exeext conftest.$ac_ext
22104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22105 /* end confdefs.h. */
22107 #include <openssl/evp.h>
22119 if ac_fn_c_try_link "$LINENO"; then :
22121 ac_cv_openssl_export="no"
22125 ac_cv_openssl_export="yes"
22129 rm -f core conftest.err conftest.$ac_objext \
22130 conftest$ac_exeext conftest.$ac_ext
22132 LIBS="${saved_LIBS}"
22133 CFLAGS="${saved_CFLAGS}"
22135 if test "$support_tls" = "yes"; then
22137 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22140 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22143 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22147 if test "$ac_cv_openssl_sha2" = "yes"; then
22149 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22153 if test "$ac_cv_openssl_export" = "yes"; then
22155 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22160 support_crypto="no"
22165 if test "$support_tls" = "no"; then
22169 if test "$support_crypto" = "no"; then
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22175 $as_echo "$support_tls" >&6; }
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22180 $as_echo_n "checking for library containing dlopen... " >&6; }
22181 if test "${ac_cv_search_dlopen+set}" = set; then :
22182 $as_echo_n "(cached) " >&6
22184 ac_func_search_save_LIBS=$LIBS
22185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22186 /* end confdefs.h. */
22188 /* Override any GCC internal prototype to avoid an error.
22189 Use char because int might match the return type of a GCC
22190 builtin and then its argument prototype would still apply. */
22203 for ac_lib in '' dl; do
22204 if test -z "$ac_lib"; then
22205 ac_res="none required"
22208 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22210 if ac_fn_c_try_link "$LINENO"; then :
22211 ac_cv_search_dlopen=$ac_res
22213 rm -f core conftest.err conftest.$ac_objext \
22215 if test "${ac_cv_search_dlopen+set}" = set; then :
22219 if test "${ac_cv_search_dlopen+set}" = set; then :
22222 ac_cv_search_dlopen=no
22224 rm conftest.$ac_ext
22225 LIBS=$ac_func_search_save_LIBS
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22228 $as_echo "$ac_cv_search_dlopen" >&6; }
22229 ac_res=$ac_cv_search_dlopen
22230 if test "$ac_res" != no; then :
22231 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22236 working_dir=`eval echo ${prefix}/var/bacula/working`
22238 # Check whether --with-working-dir was given.
22239 if test "${with_working_dir+set}" = set; then :
22240 withval=$with_working_dir;
22241 if test "x$withval" != "xno" ; then
22242 working_dir=$withval
22253 # Check whether --with-archivedir was given.
22254 if test "${with_archivedir+set}" = set; then :
22255 withval=$with_archivedir;
22256 if test "x$withval" != "xno" ; then
22257 archivedir=$withval
22266 basename=`hostname`
22268 # Check whether --with-basename was given.
22269 if test "${with_basename+set}" = set; then :
22270 withval=$with_basename;
22271 if test "x$withval" != "xno" ; then
22281 hostname=`uname -n | cut -d '.' -f 1`
22282 if test x${hostname} = x ; then
22283 hostname="localhost"
22286 # Check whether --with-hostname was given.
22287 if test "${with_hostname+set}" = set; then :
22288 withval=$with_hostname;
22289 if test "x$withval" != "xno" ; then
22300 scriptdir=`eval echo ${sysconfdir}`
22302 # Check whether --with-scriptdir was given.
22303 if test "${with_scriptdir+set}" = set; then :
22304 withval=$with_scriptdir;
22305 if test "x$withval" != "xno" ; then
22318 # Check whether --with-bsrdir was given.
22319 if test "${with_bsrdir+set}" = set; then :
22320 withval=$with_bsrdir;
22321 if test "x$withval" != "xno" ; then
22333 # Check whether --with-logdir was given.
22334 if test "${with_logdir+set}" = set; then :
22335 withval=$with_logdir;
22336 if test "x$withval" != "xno" ; then
22347 # ------------------------------------------
22348 # Where to place plugindir (plugin files)
22349 # ------------------------------------------
22350 plugindir=`eval echo ${libdir}`
22352 # Check whether --with-plugindir was given.
22353 if test "${with_plugindir+set}" = set; then :
22354 withval=$with_plugindir;
22355 if test "x$withval" != "xno" ; then
22365 dump_email=root@localhost
22367 # Check whether --with-dump-email was given.
22368 if test "${with_dump_email+set}" = set; then :
22369 withval=$with_dump_email;
22370 if test "x$withval" != "xno" ; then
22371 dump_email=$withval
22380 job_email=root@localhost
22382 # Check whether --with-job-email was given.
22383 if test "${with_job_email+set}" = set; then :
22384 withval=$with_job_email;
22385 if test "x$withval" != "xno" ; then
22395 smtp_host=localhost
22397 # Check whether --with-smtp_host was given.
22398 if test "${with_smtp_host+set}" = set; then :
22399 withval=$with_smtp_host;
22400 if test "x$withval" != "xno" ; then
22412 # Check whether --with-pid-dir was given.
22413 if test "${with_pid_dir+set}" = set; then :
22414 withval=$with_pid_dir;
22415 if test "x$withval" != "xno" ; then
22423 cat >>confdefs.h <<_ACEOF
22424 #define _PATH_BACULA_PIDDIR "$piddir"
22429 subsysdir=/var/run/subsys
22430 if test -d /var/run/subsys; then
22431 subsysdir=/var/run/subsys
22432 elif test -d /var/lock/subsys; then
22433 subsysdir=/var/lock/subsys
22435 subsysdir=/var/run/subsys
22438 # Check whether --with-subsys-dir was given.
22439 if test "${with_subsys_dir+set}" = set; then :
22440 withval=$with_subsys_dir;
22441 if test "x$withval" != "xno" ; then
22453 # Check whether --with-baseport was given.
22454 if test "${with_baseport+set}" = set; then :
22455 withval=$with_baseport;
22456 if test "x$withval" != "xno" ; then
22465 dir_port=`expr $baseport`
22466 fd_port=`expr $baseport + 1`
22467 sd_port=`expr $fd_port + 1`
22475 # Check whether --with-dir-password was given.
22476 if test "${with_dir_password+set}" = set; then :
22477 withval=$with_dir_password;
22478 if test "x$withval" != "xno" ; then
22479 dir_password=$withval
22486 if test "x$dir_password" = "x" ; then
22487 if test "x$OPENSSL" = "xnone" ; then
22488 key=`autoconf/randpass 33`
22490 key=`openssl rand -base64 33`
22497 # Check whether --with-fd-password was given.
22498 if test "${with_fd_password+set}" = set; then :
22499 withval=$with_fd_password;
22500 if test "x$withval" != "xno" ; then
22501 fd_password=$withval
22508 if test "x$fd_password" = "x" ; then
22509 if test "x$OPENSSL" = "xnone" ; then
22510 key=`autoconf/randpass 37`
22512 key=`openssl rand -base64 33`
22519 # Check whether --with-sd-password was given.
22520 if test "${with_sd_password+set}" = set; then :
22521 withval=$with_sd_password;
22522 if test "x$withval" != "xno" ; then
22523 sd_password=$withval
22530 if test "x$sd_password" = "x" ; then
22531 if test "x$OPENSSL" = "xnone" ; then
22532 key=`autoconf/randpass 41`
22534 key=`openssl rand -base64 33`
22541 # Check whether --with-mon-dir-password was given.
22542 if test "${with_mon_dir_password+set}" = set; then :
22543 withval=$with_mon_dir_password;
22544 if test "x$withval" != "xno" ; then
22545 mon_dir_password=$withval
22552 if test "x$mon_dir_password" = "x" ; then
22553 if test "x$OPENSSL" = "xnone" ; then
22554 key=`autoconf/randpass 33`
22556 key=`openssl rand -base64 33`
22558 mon_dir_password=$key
22563 # Check whether --with-mon-fd-password was given.
22564 if test "${with_mon_fd_password+set}" = set; then :
22565 withval=$with_mon_fd_password;
22566 if test "x$withval" != "xno" ; then
22567 mon_fd_password=$withval
22574 if test "x$mon_fd_password" = "x" ; then
22575 if test "x$OPENSSL" = "xnone" ; then
22576 key=`autoconf/randpass 37`
22578 key=`openssl rand -base64 33`
22580 mon_fd_password=$key
22585 # Check whether --with-mon-sd-password was given.
22586 if test "${with_mon_sd_password+set}" = set; then :
22587 withval=$with_mon_sd_password;
22588 if test "x$withval" != "xno" ; then
22589 mon_sd_password=$withval
22596 if test "x$mon_sd_password" = "x" ; then
22597 if test "x$OPENSSL" = "xnone" ; then
22598 key=`autoconf/randpass 41`
22600 key=`openssl rand -base64 33`
22602 mon_sd_password=$key
22614 # Check whether --with-db_name was given.
22615 if test "${with_db_name+set}" = set; then :
22616 withval=$with_db_name;
22617 if test "x$withval" != "x" ; then
22628 # Check whether --with-db_user was given.
22629 if test "${with_db_user+set}" = set; then :
22630 withval=$with_db_user;
22631 if test "x$withval" != "x" ; then
22642 # Check whether --with-db_password was given.
22643 if test "${with_db_password+set}" = set; then :
22644 withval=$with_db_password;
22645 if test "x$withval" != "x" ; then
22646 db_password=$withval
22656 # Check whether --with-db_port was given.
22657 if test "${with_db_port+set}" = set; then :
22658 withval=$with_db_port;
22659 if test "x$withval" != "x" ; then
22669 # Handle users and groups for each daemon
22673 # Check whether --with-dir_user was given.
22674 if test "${with_dir_user+set}" = set; then :
22675 withval=$with_dir_user;
22676 if test "x$withval" != "x" ; then
22686 # Check whether --with-dir_group was given.
22687 if test "${with_dir_group+set}" = set; then :
22688 withval=$with_dir_group;
22689 if test "x$withval" != "x" ; then
22699 # Check whether --with-sd_user was given.
22700 if test "${with_sd_user+set}" = set; then :
22701 withval=$with_sd_user;
22702 if test "x$withval" != "x" ; then
22712 # Check whether --with-sd_group was given.
22713 if test "${with_sd_group+set}" = set; then :
22714 withval=$with_sd_group;
22715 if test "x$withval" != "x" ; then
22725 # Check whether --with-fd_user was given.
22726 if test "${with_fd_user+set}" = set; then :
22727 withval=$with_fd_user;
22728 if test "x$withval" != "x" ; then
22738 # Check whether --with-fd_group was given.
22739 if test "${with_fd_group+set}" = set; then :
22740 withval=$with_fd_group;
22741 if test "x$withval" != "x" ; then
22758 # Check whether --with-sbin-perm was given.
22759 if test "${with_sbin_perm+set}" = set; then :
22760 withval=$with_sbin_perm;
22761 if test "x$withval" != "x" ; then
22774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22775 $as_echo_n "checking for PostgreSQL support... " >&6; }
22777 # Check whether --with-postgresql was given.
22778 if test "${with_postgresql+set}" = set; then :
22779 withval=$with_postgresql;
22780 if test "$withval" != "no"; then
22781 if test "$db_found" = "yes"; then
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
22783 $as_echo "error" >&6; }
22784 as_fn_error "\"You can configure for only one database.\"" "$LINENO" 5;
22786 if test "$withval" = "yes"; then
22787 PG_CONFIG=`which pg_config`
22788 if test -n "$PG_CONFIG";then
22789 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22790 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22791 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22792 elif test -f /usr/local/include/libpq-fe.h; then
22793 POSTGRESQL_INCDIR=/usr/local/include
22794 if test -d /usr/local/lib64; then
22795 POSTGRESQL_LIBDIR=/usr/local/lib64
22797 POSTGRESQL_LIBDIR=/usr/local/lib
22799 POSTGRESQL_BINDIR=/usr/local/bin
22800 elif test -f /usr/include/libpq-fe.h; then
22801 POSTGRESQL_INCDIR=/usr/include
22802 if test -d /usr/lib64; then
22803 POSTGRESQL_LIBDIR=/usr/lib64
22805 POSTGRESQL_LIBDIR=/usr/lib
22807 POSTGRESQL_BINDIR=/usr/bin
22808 elif test -f /usr/include/pgsql/libpq-fe.h; then
22809 POSTGRESQL_INCDIR=/usr/include/pgsql
22810 if test -d /usr/lib64/pgsql; then
22811 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22813 POSTGRESQL_LIBDIR=/usr/lib/pgsql
22815 POSTGRESQL_BINDIR=/usr/bin
22816 elif test -f /usr/include/postgresql/libpq-fe.h; then
22817 POSTGRESQL_INCDIR=/usr/include/postgresql
22818 if test -d /usr/lib64/postgresql; then
22819 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22821 POSTGRESQL_LIBDIR=/usr/lib/postgresql
22823 POSTGRESQL_BINDIR=/usr/bin
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22826 $as_echo "no" >&6; }
22827 as_fn_error "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22829 elif test -f $withval/include/libpq-fe.h; then
22830 POSTGRESQL_INCDIR=$withval/include
22831 POSTGRESQL_LIBDIR=$withval/lib
22832 POSTGRESQL_BINDIR=$withval/bin
22833 elif test -f $withval/include/postgresql/libpq-fe.h; then
22834 POSTGRESQL_INCDIR=$withval/include/postgresql
22835 if test -d $withval/lib64; then
22836 POSTGRESQL_LIBDIR=$withval/lib64
22838 POSTGRESQL_LIBDIR=$withval/lib
22840 POSTGRESQL_BINDIR=$withval/bin
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22843 $as_echo "no" >&6; }
22844 as_fn_error "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22846 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
22847 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22848 if test "x$ac_cv_func_crypt" = x""yes; then :
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22852 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22853 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22854 $as_echo_n "(cached) " >&6
22856 ac_check_lib_save_LIBS=$LIBS
22857 LIBS="-lcrypt $LIBS"
22858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22859 /* end confdefs.h. */
22861 /* Override any GCC internal prototype to avoid an error.
22862 Use char because int might match the return type of a GCC
22863 builtin and then its argument prototype would still apply. */
22876 if ac_fn_c_try_link "$LINENO"; then :
22877 ac_cv_lib_crypt_crypt=yes
22879 ac_cv_lib_crypt_crypt=no
22881 rm -f core conftest.err conftest.$ac_objext \
22882 conftest$ac_exeext conftest.$ac_ext
22883 LIBS=$ac_check_lib_save_LIBS
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22886 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22887 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
22888 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
22893 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
22894 SQL_LFLAGS=$POSTGRESQL_LFLAGS
22895 SQL_BINDIR=$POSTGRESQL_BINDIR
22896 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
22898 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22901 $as_echo "yes" >&6; }
22903 support_postgresql=yes
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22908 $as_echo "no" >&6; }
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22914 $as_echo "no" >&6; }
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
22927 $as_echo_n "checking for MySQL support... " >&6; }
22929 # Check whether --with-mysql was given.
22930 if test "${with_mysql+set}" = set; then :
22931 withval=$with_mysql;
22932 if test "$withval" != "no"; then
22933 if test "$withval" = "yes"; then
22934 if test -f /usr/local/mysql/include/mysql/mysql.h; then
22935 MYSQL_INCDIR=/usr/local/mysql/include/mysql
22936 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
22937 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
22938 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
22940 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
22942 MYSQL_BINDIR=/usr/local/mysql/bin
22943 elif test -f /usr/include/mysql/mysql.h; then
22944 MYSQL_INCDIR=/usr/include/mysql
22945 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
22946 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
22947 MYSQL_LIBDIR=/usr/lib64/mysql
22948 elif test -f /usr/lib64/libmysqlclient_r.a \
22949 -o -f /usr/lib64/libmysqlclient_r.so; then
22950 MYSQL_LIBDIR=/usr/lib64
22951 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
22952 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
22953 MYSQL_LIBDIR=/usr/lib/mysql
22955 MYSQL_LIBDIR=/usr/lib
22957 MYSQL_BINDIR=/usr/bin
22958 elif test -f /usr/include/mysql.h; then
22959 MYSQL_INCDIR=/usr/include
22960 if test -f /usr/lib64/libmysqlclient_r.a \
22961 -o -f /usr/lib64/libmysqlclient_r.so; then
22962 MYSQL_LIBDIR=/usr/lib64
22964 MYSQL_LIBDIR=/usr/lib
22966 MYSQL_BINDIR=/usr/bin
22967 elif test -f /usr/local/include/mysql/mysql.h; then
22968 MYSQL_INCDIR=/usr/local/include/mysql
22969 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
22970 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
22971 MYSQL_LIBDIR=/usr/local/lib64/mysql
22973 MYSQL_LIBDIR=/usr/local/lib/mysql
22975 MYSQL_BINDIR=/usr/local/bin
22976 elif test -f /usr/local/include/mysql.h; then
22977 MYSQL_INCDIR=/usr/local/include
22978 if test -f /usr/local/lib64/libmysqlclient_r.a \
22979 -o -f /usr/local/lib64/libmysqlclient_r.so; then
22980 MYSQL_LIBDIR=/usr/local/lib64
22982 MYSQL_LIBDIR=/usr/local/lib
22984 MYSQL_BINDIR=/usr/local/bin
22986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22987 $as_echo "no" >&6; }
22988 as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
22991 if test -f $withval/include/mysql/mysql.h; then
22992 MYSQL_INCDIR=$withval/include/mysql
22993 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
22994 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
22995 MYSQL_LIBDIR=$withval/lib64/mysql
22996 elif test -f $withval/lib64/libmysqlclient_r.a \
22997 -o -f $withval/lib64/libmysqlclient_r.so; then
22998 MYSQL_LIBDIR=$withval/lib64
22999 elif test -f $withval/lib/libmysqlclient_r.a \
23000 -o -f $withval/lib/libmysqlclient_r.so; then
23001 MYSQL_LIBDIR=$withval/lib
23003 MYSQL_LIBDIR=$withval/lib/mysql
23005 MYSQL_BINDIR=$withval/bin
23006 elif test -f $withval/include/mysql.h; then
23007 MYSQL_INCDIR=$withval/include
23008 if test -f $withval/lib64/libmysqlclient_r.a \
23009 -o -f $withval/lib64/libmysqlclient_r.so; then
23010 MYSQL_LIBDIR=$withval/lib64
23012 MYSQL_LIBDIR=$withval/lib
23014 MYSQL_BINDIR=$withval/bin
23016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23017 $as_echo "no" >&6; }
23018 as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23021 SQL_INCLUDE=-I$MYSQL_INCDIR
23022 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23023 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23024 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23025 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23028 SQL_BINDIR=$MYSQL_BINDIR
23029 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23032 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23035 $as_echo "yes" >&6; }
23042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23043 $as_echo "no" >&6; }
23051 # Check whether --with-embedded-mysql was given.
23052 if test "${with_embedded_mysql+set}" = set; then :
23053 withval=$with_embedded_mysql;
23054 if test "$withval" != "no"; then
23055 if test "$withval" = "yes"; then
23056 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23057 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23058 if test -d /usr/local/mysql/lib64/mysql; then
23059 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23061 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23063 MYSQL_BINDIR=/usr/local/mysql/bin
23064 elif test -f /usr/include/mysql/mysql.h; then
23065 MYSQL_INCDIR=/usr/include/mysql
23066 if test -d /usr/lib64/mysql; then
23067 MYSQL_LIBDIR=/usr/lib64/mysql
23069 MYSQL_LIBDIR=/usr/lib/mysql
23071 MYSQL_BINDIR=/usr/bin
23072 elif test -f /usr/include/mysql.h; then
23073 MYSQL_INCDIR=/usr/include
23074 if test -d /usr/lib64; then
23075 MYSQL_LIBDIR=/usr/lib64
23077 MYSQL_LIBDIR=/usr/lib
23079 MYSQL_BINDIR=/usr/bin
23080 elif test -f /usr/local/include/mysql/mysql.h; then
23081 MYSQL_INCDIR=/usr/local/include/mysql
23082 if test -d /usr/local/lib64/mysql; then
23083 MYSQL_LIBDIR=/usr/local/lib64/mysql
23085 MYSQL_LIBDIR=/usr/local/lib/mysql
23087 MYSQL_BINDIR=/usr/local/bin
23088 elif test -f /usr/local/include/mysql.h; then
23089 MYSQL_INCDIR=/usr/local/include
23090 if test -d /usr/local/lib64; then
23091 MYSQL_LIBDIR=/usr/local/lib64
23093 MYSQL_LIBDIR=/usr/local/lib
23095 MYSQL_BINDIR=/usr/local/bin
23097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23098 $as_echo "no" >&6; }
23099 as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23102 if test -f $withval/include/mysql/mysql.h; then
23103 MYSQL_INCDIR=$withval/include/mysql
23104 if test -d $withval/lib64/mysql; then
23105 MYSQL_LIBDIR=$withval/lib64/mysql
23107 MYSQL_LIBDIR=$withval/lib/mysql
23109 MYSQL_BINDIR=$withval/bin
23110 elif test -f $withval/include/mysql.h; then
23111 MYSQL_INCDIR=$withval/include
23112 if test -d $withval/lib64; then
23113 MYSQL_LIBDIR=$withval/lib64
23115 MYSQL_LIBDIR=$withval/lib
23117 MYSQL_BINDIR=$withval/bin
23119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23120 $as_echo "no" >&6; }
23121 as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23124 SQL_INCLUDE=-I$MYSQL_INCDIR
23125 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23126 SQL_BINDIR=$MYSQL_BINDIR
23127 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23129 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23131 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23134 $as_echo "yes" >&6; }
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23142 $as_echo "no" >&6; }
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ingres support" >&5
23159 $as_echo_n "checking for Ingres support... " >&6; }
23161 # Check whether --with-ingres was given.
23162 if test "${with_ingres+set}" = set; then :
23163 withval=$with_ingres;
23164 if test "$withval" != "no"; then
23165 if test "$withval" = "yes"; then
23166 if test -f ${II_SYSTEM}/files/eqdefc.h; then
23167 INGRES_INCDIR=${II_SYSTEM}/files
23168 INGRES_LIBDIR=${II_SYSTEM}/lib
23169 INGRES_BINDIR=${II_SYSTEM}/bin
23170 elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
23171 INGRES_INCDIR=${II_SYSTEM}/ingres/files
23172 INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
23173 INGRES_BINDIR=${II_SYSTEM}/bin
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23176 $as_echo "no" >&6; }
23177 as_fn_error "Unable to find eqdefc.h in standard locations" "$LINENO" 5
23180 if test -f $withval/files/eqdefc.h; then
23181 INGRES_INCDIR=$withval/files
23182 INGRES_LIBDIR=$withval/lib
23183 INGRES_BINDIR=$withval/bin
23185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23186 $as_echo "no" >&6; }
23187 as_fn_error "Invalid Ingres directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23190 SQL_INCLUDE=-I$INGRES_INCDIR
23191 SQL_LFLAGS="-L$INGRES_LIBDIR -lingres"
23192 SQL_BINDIR=$INGRES_BINDIR
23193 SQL_LIB=$INGRES_LIBDIR/libingres.a
23195 $as_echo "#define HAVE_INGRES 1" >>confdefs.h
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23198 $as_echo "yes" >&6; }
23205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23206 $as_echo "no" >&6; }
23211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23212 $as_echo "no" >&6; }
23224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23225 $as_echo_n "checking for SQLite3 support... " >&6; }
23227 # Check whether --with-sqlite3 was given.
23228 if test "${with_sqlite3+set}" = set; then :
23229 withval=$with_sqlite3;
23230 if test "$withval" != "no"; then
23231 if test "$withval" = "yes"; then
23232 if test -f /usr/local/include/sqlite3.h; then
23233 SQLITE_INCDIR=/usr/local/include
23234 if test -d /usr/local/lib64; then
23235 SQLITE_LIBDIR=/usr/local/lib64
23237 SQLITE_LIBDIR=/usr/local/lib
23239 SQLITE_BINDIR=/usr/local/bin
23240 elif test -f /usr/include/sqlite3.h; then
23241 SQLITE_INCDIR=/usr/include
23242 if test -d /usr/lib64; then
23243 SQLITE_LIBDIR=/usr/lib64
23245 SQLITE_LIBDIR=/usr/lib
23247 SQLITE_BINDIR=/usr/bin
23248 elif test -f $prefix/include/sqlite3.h; then
23249 SQLITE_INCDIR=$prefix/include
23250 if test -d $prefix/lib64; then
23251 SQLITE_LIBDIR=$prefix/lib64
23253 SQLITE_LIBDIR=$prefix/lib
23255 SQLITE_BINDIR=$prefix/bin
23257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23258 $as_echo "no" >&6; }
23259 as_fn_error "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23262 if test -f $withval/sqlite3.h; then
23263 SQLITE_INCDIR=$withval
23264 SQLITE_LIBDIR=$withval
23265 SQLITE_BINDIR=$withval
23266 elif test -f $withval/include/sqlite3.h; then
23267 SQLITE_INCDIR=$withval/include
23268 if test -d $withval/lib64; then
23269 SQLITE_LIBDIR=$withval/lib64
23271 SQLITE_LIBDIR=$withval/lib
23273 SQLITE_BINDIR=$withval/bin
23275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23276 $as_echo "no" >&6; }
23277 as_fn_error "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23280 SQL_INCLUDE=-I$SQLITE_INCDIR
23281 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
23282 SQL_BINDIR=$SQLITE_BINDIR
23283 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
23285 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23288 $as_echo "yes" >&6; }
23290 support_sqlite3=yes
23295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23296 $as_echo "no" >&6; }
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23302 $as_echo "no" >&6; }
23312 # BA_CHECK_SQLITE_DB
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI support" >&5
23317 $as_echo_n "checking for DBI support... " >&6; }
23319 # Check whether --with-dbi was given.
23320 if test "${with_dbi+set}" = set; then :
23322 if test "$withval" != "no"; then
23323 if test "$withval" = "yes"; then
23324 if test -f /usr/local/include/dbi/dbi.h; then
23325 DBI_INCDIR=/usr/local/dbi/include
23326 if test -d /usr/local/lib64; then
23327 DBI_LIBDIR=/usr/local/lib64
23329 DBI_LIBDIR=/usr/local/lib
23331 DBI_BINDIR=/usr/local/bin
23332 elif test -f /usr/include/dbi/dbi.h; then
23333 DBI_INCDIR=/usr/include
23334 if test -d /usr/lib64; then
23335 DBI_LIBDIR=/usr/lib64
23337 DBI_LIBDIR=/usr/lib
23339 DBI_BINDIR=/usr/bin
23340 elif test -f $prefix/include/dbi/dbi.h; then
23341 DBI_INCDIR=$prefix/include
23342 if test -d $prefix/lib64; then
23343 DBI_LIBDIR=$prefix/lib64
23345 DBI_LIBDIR=$prefix/lib
23347 DBI_BINDIR=$prefix/bin
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23350 $as_echo "no" >&6; }
23351 as_fn_error "Unable to find dbi.h in standard locations" "$LINENO" 5
23353 if test -d /usr/local/lib/dbd; then
23354 DRIVERDIR=/usr/local/lib/dbd
23355 if test -d /usr/local/lib64/dbd; then
23356 DRIVERDIR=/usr/local/lib64/dbd
23358 DRIVERDIR=/usr/local/lib/dbd
23360 elif test -d /usr/lib/dbd; then
23361 DRIVERDIR=/usr/lib/dbd
23362 if test -d /usr/lib64/dbd; then
23363 DRIVERDIR=/usr/lib64/dbd
23365 DRIVERDIR=/usr/lib/dbd
23367 elif test -d $prefix/lib/dbd; then
23368 if test -d $prefix/lib64/dbd; then
23369 DRIVERDIR=$prefix/lib64/dbd
23371 DRIVERDIR=$prefix/lib/dbd
23373 elif test -d /usr/local/lib64/dbd; then
23374 DRIVERDIR=/usr/local/lib64/dbd
23375 elif test -d /usr/lib64/dbd; then
23376 DRIVERDIR=/usr/lib64/dbd
23377 elif test -d $prefix/lib64/dbd; then
23378 DRIVERDIR=$prefix/lib64/dbd
23380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23381 $as_echo "no" >&6; }
23382 as_fn_error "Unable to find DBD drivers in standard locations" "$LINENO" 5
23385 if test -f $withval/dbi.h; then
23386 DBI_INCDIR=$withval
23387 DBI_LIBDIR=$withval
23388 DBI_BINDIR=$withval
23389 elif test -f $withval/include/dbi/dbi.h; then
23390 DBI_INCDIR=$withval/include
23391 if test -d $withval/lib64; then
23392 DBI_LIBDIR=$withval/lib64
23394 DBI_LIBDIR=$withval/lib
23396 DBI_BINDIR=$withval/bin
23398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23399 $as_echo "no" >&6; }
23400 as_fn_error "Invalid DBI directory $withval - unable to find dbi.h under $withval" "$LINENO" 5
23402 if test -d $withval/dbd; then
23403 DRIVERDIR=$withval/dbd
23404 elif test -d $withval/lib/; then
23405 if test -d $withval/lib64/dbd; then
23406 DRIVERDIR=$withval/lib64/dbd
23408 DRIVERDIR=$withval/lib/dbd
23410 elif test -d $withval/lib64/dbd; then
23411 DRIVERDIR=$withval/lib64/dbd
23413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23414 $as_echo "no" >&6; }
23415 as_fn_error "Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" "$LINENO" 5
23418 SQL_INCLUDE=-I$DBI_INCDIR
23419 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
23420 SQL_BINDIR=$DBI_BINDIR
23421 SQL_LIB=$DBI_LIBDIR/libdbi.a
23422 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
23425 $as_echo "#define HAVE_DBI 1" >>confdefs.h
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23428 $as_echo "yes" >&6; }
23436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23437 $as_echo "no" >&6; }
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23443 $as_echo "no" >&6; }
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI drivers support" >&5
23459 $as_echo_n "checking for DBI drivers support... " >&6; }
23461 # Check whether --with-dbi-driver was given.
23462 if test "${with_dbi_driver+set}" = set; then :
23463 withval=$with_dbi_driver;
23464 if test "$withval" != "no"; then
23468 if test -f /usr/local/mysql/bin/mysql; then
23469 SQL_BINDIR=/usr/local/mysql/bin
23470 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23471 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23472 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
23474 SQL_LIBDIR=/usr/local/mysql/lib/mysql
23476 elif test -f /usr/bin/mysql; then
23477 SQL_BINDIR=/usr/bin
23478 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23479 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23480 SQL_LIBDIR=/usr/lib64/mysql
23481 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23482 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23483 SQL_LIBDIR=/usr/lib/mysql
23485 SQL_LIBDIR=/usr/lib
23487 elif test -f /usr/local/bin/mysql; then
23488 SQL_BINDIR=/usr/local/bin
23489 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23490 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23491 SQL_LIBDIR=/usr/local/lib64/mysql
23492 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
23493 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
23494 SQL_LIBDIR=/usr/local/lib/mysql
23496 SQL_LIBDIR=/usr/local/lib
23498 elif test -f $withval/bin/mysql; then
23499 SQL_BINDIR=$withval/bin
23500 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23501 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23502 SQL_LIBDIR=$withval/lib64/mysql
23503 elif test -f $withval/lib64/libmysqlclient_r.a \
23504 -o -f $withval/lib64/libmysqlclient_r.so; then
23505 SQL_LIBDIR=$withval/lib64
23506 elif test -f $withval/lib/libmysqlclient_r.a \
23507 -o -f $withval/lib/libmysqlclient_r.so; then
23508 SQL_LIBDIR=$withval/lib/
23510 SQL_LIBDIR=$withval/lib/mysql
23513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23514 $as_echo "no" >&6; }
23515 as_fn_error "Unable to find mysql in standard locations" "$LINENO" 5
23517 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
23518 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
23520 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
23524 db_prog="postgresql"
23525 PG_CONFIG=`which pg_config`
23526 if test -n "$PG_CONFIG"; then
23527 SQL_BINDIR=`"$PG_CONFIG" --bindir`
23528 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
23529 elif test -f /usr/local/bin/psql; then
23530 SQL_BINDIR=/usr/local/bin
23531 if test -d /usr/local/lib64; then
23532 SQL_LIBDIR=/usr/local/lib64
23534 SQL_LIBDIR=/usr/local/lib
23536 elif test -f /usr/bin/psql; then
23537 SQL_BINDIR=/usr/local/bin
23538 if test -d /usr/lib64/postgresql; then
23539 SQL_LIBDIR=/usr/lib64/postgresql
23540 elif test -d /usr/lib/postgresql; then
23541 SQL_LIBDIR=/usr/lib/postgresql
23542 elif test -d /usr/lib64; then
23543 SQL_LIBDIR=/usr/lib64
23545 SQL_LIBDIR=/usr/lib
23547 elif test -f $withval/bin/psql; then
23548 SQL_BINDIR=$withval/bin
23549 if test -d $withval/lib64; then
23550 SQL_LIBDIR=$withval/lib64
23552 SQL_LIBDIR=$withval/lib
23555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23556 $as_echo "no" >&6; }
23557 as_fn_error "Unable to find psql in standard locations" "$LINENO" 5
23559 if test -f $SQL_LIBDIR/libpq.so; then
23560 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
23562 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
23567 if test -f /usr/local/bin/sqlite; then
23568 SQL_BINDIR=/usr/local/bin
23569 if test -d /usr/local/lib64; then
23570 SQL_LIBDIR=/usr/local/lib64
23572 SQL_LIBDIR=/usr/local/lib
23574 elif test -f /usr/bin/sqlite; then
23575 SQL_BINDIR=/usr/bin
23576 if test -d /usr/lib64; then
23577 SQL_LIBDIR=/usr/lib64
23579 SQL_LIBDIR=/usr/lib
23581 elif test -f $withval/bin/sqlite; then
23582 SQL_BINDIR=$withval/bin
23583 if test -d $withval/lib64; then
23584 SQL_LIBDIR=$withval/lib64
23586 SQL_LIBDIR=$withval/lib
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23590 $as_echo "no" >&6; }
23591 as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23593 if test -f $SQL_LIBDIR/libsqlite.so; then
23594 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
23596 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
23601 if test -f /usr/local/bin/sqlite3; then
23602 SQL_BINDIR=/usr/local/bin
23603 if test -d /usr/local/lib64; then
23604 SQL_LIBDIR=/usr/local/lib64
23606 SQL_LIBDIR=/usr/local/lib
23608 elif test -f /usr/bin/sqlite3; then
23609 SQL_BINDIR=/usr/bin
23610 if test -d /usr/lib64; then
23611 SQL_LIBDIR=/usr/lib64
23613 SQL_LIBDIR=/usr/lib
23615 elif test -f $withval/bin/sqlite3; then
23616 SQL_BINDIR=$withval/bin
23617 if test -d $withval/lib64; then
23618 SQL_LIBDIR=$withval/lib64
23620 SQL_LIBDIR=$withval/lib
23623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23624 $as_echo "no" >&6; }
23625 as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23627 if test -f $SQL_LIBDIR/libsqlite3.so; then
23628 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
23630 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
23634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23635 $as_echo "no" >&6; }
23636 as_fn_error "Unable to set DBI driver. $withval is not supported" "$LINENO" 5
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23641 $as_echo "yes" >&6; }
23644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23645 $as_echo "no" >&6; }
23650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23651 $as_echo "no" >&6; }
23664 support_batch_insert=no
23665 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
23667 if test $pkg = 0; then
23668 support_batch_insert=yes
23669 # Check whether --enable-batch-insert was given.
23670 if test "${enable_batch_insert+set}" = set; then :
23671 enableval=$enable_batch_insert;
23672 if test x$enableval = xno; then
23673 support_batch_insert=no
23675 support_batch_insert=yes
23683 if test x$DB_TYPE = xpostgresql; then
23684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23685 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23686 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23687 $as_echo_n "(cached) " >&6
23689 ac_check_lib_save_LIBS=$LIBS
23691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23692 /* end confdefs.h. */
23694 /* Override any GCC internal prototype to avoid an error.
23695 Use char because int might match the return type of a GCC
23696 builtin and then its argument prototype would still apply. */
23700 char PQisthreadsafe ();
23704 return PQisthreadsafe ();
23709 if ac_fn_c_try_link "$LINENO"; then :
23710 ac_cv_lib_pq_PQisthreadsafe=yes
23712 ac_cv_lib_pq_PQisthreadsafe=no
23714 rm -f core conftest.err conftest.$ac_objext \
23715 conftest$ac_exeext conftest.$ac_ext
23716 LIBS=$ac_check_lib_save_LIBS
23718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23719 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23720 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23722 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23727 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23728 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23729 $as_echo_n "(cached) " >&6
23731 ac_check_lib_save_LIBS=$LIBS
23733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23734 /* end confdefs.h. */
23736 /* Override any GCC internal prototype to avoid an error.
23737 Use char because int might match the return type of a GCC
23738 builtin and then its argument prototype would still apply. */
23742 char PQputCopyData ();
23746 return PQputCopyData ();
23751 if ac_fn_c_try_link "$LINENO"; then :
23752 ac_cv_lib_pq_PQputCopyData=yes
23754 ac_cv_lib_pq_PQputCopyData=no
23756 rm -f core conftest.err conftest.$ac_objext \
23757 conftest$ac_exeext conftest.$ac_ext
23758 LIBS=$ac_check_lib_save_LIBS
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23761 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23762 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23764 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23768 if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
23770 support_batch_insert=no
23774 if test x$DB_TYPE = xdbi; then
23778 if test $DB_PROG = postgresql; then
23779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23780 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23781 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23782 $as_echo_n "(cached) " >&6
23784 ac_check_lib_save_LIBS=$LIBS
23786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23787 /* end confdefs.h. */
23789 /* Override any GCC internal prototype to avoid an error.
23790 Use char because int might match the return type of a GCC
23791 builtin and then its argument prototype would still apply. */
23795 char PQisthreadsafe ();
23799 return PQisthreadsafe ();
23804 if ac_fn_c_try_link "$LINENO"; then :
23805 ac_cv_lib_pq_PQisthreadsafe=yes
23807 ac_cv_lib_pq_PQisthreadsafe=no
23809 rm -f core conftest.err conftest.$ac_objext \
23810 conftest$ac_exeext conftest.$ac_ext
23811 LIBS=$ac_check_lib_save_LIBS
23813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23814 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23815 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23816 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23821 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23822 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23823 $as_echo_n "(cached) " >&6
23825 ac_check_lib_save_LIBS=$LIBS
23827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23828 /* end confdefs.h. */
23830 /* Override any GCC internal prototype to avoid an error.
23831 Use char because int might match the return type of a GCC
23832 builtin and then its argument prototype would still apply. */
23836 char PQputCopyData ();
23840 return PQputCopyData ();
23845 if ac_fn_c_try_link "$LINENO"; then :
23846 ac_cv_lib_pq_PQputCopyData=yes
23848 ac_cv_lib_pq_PQputCopyData=no
23850 rm -f core conftest.err conftest.$ac_objext \
23851 conftest$ac_exeext conftest.$ac_ext
23852 LIBS=$ac_check_lib_save_LIBS
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23855 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23856 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23857 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23861 test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
23865 if test $DB_PROG = mysql; then
23866 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23870 if test $DB_PROG = sqlite3; then
23871 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23875 if test $pkg = 0; then
23876 # Check whether --enable-batch-insert was given.
23877 if test "${enable_batch_insert+set}" = set; then :
23878 enableval=$enable_batch_insert;
23879 if test x$enableval = xno; then
23880 support_batch_insert=no
23882 support_batch_insert=yes
23895 if test $support_batch_insert = yes ; then
23897 $as_echo "#define HAVE_BATCH_FILE_INSERT 1" >>confdefs.h
23901 $as_echo "#define PROTOTYPES 1" >>confdefs.h
23904 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
23905 if test -z "$CCOPTS"; then
23906 CCOPTS='-g -O2 -Wall'
23913 largefile_support="no"
23915 # Check whether --enable-largefile was given.
23916 if test "${enable_largefile+set}" = set; then :
23917 enableval=$enable_largefile;
23920 if test "$enable_largefile" != no; then
23921 if test -n "$ac_tool_prefix"; then
23922 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
23923 set dummy ${ac_tool_prefix}getconf; ac_word=$2
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23925 $as_echo_n "checking for $ac_word... " >&6; }
23926 if test "${ac_cv_prog_GETCONF+set}" = set; then :
23927 $as_echo_n "(cached) " >&6
23929 if test -n "$GETCONF"; then
23930 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
23932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23933 for as_dir in $PATH
23936 test -z "$as_dir" && as_dir=.
23937 for ac_exec_ext in '' $ac_executable_extensions; do
23938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23939 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
23940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23949 GETCONF=$ac_cv_prog_GETCONF
23950 if test -n "$GETCONF"; then
23951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
23952 $as_echo "$GETCONF" >&6; }
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23955 $as_echo "no" >&6; }
23960 if test -z "$ac_cv_prog_GETCONF"; then
23961 ac_ct_GETCONF=$GETCONF
23962 # Extract the first word of "getconf", so it can be a program name with args.
23963 set dummy getconf; ac_word=$2
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23965 $as_echo_n "checking for $ac_word... " >&6; }
23966 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
23967 $as_echo_n "(cached) " >&6
23969 if test -n "$ac_ct_GETCONF"; then
23970 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
23972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23973 for as_dir in $PATH
23976 test -z "$as_dir" && as_dir=.
23977 for ac_exec_ext in '' $ac_executable_extensions; do
23978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23979 ac_cv_prog_ac_ct_GETCONF="getconf"
23980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23989 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
23990 if test -n "$ac_ct_GETCONF"; then
23991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
23992 $as_echo "$ac_ct_GETCONF" >&6; }
23994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23995 $as_echo "no" >&6; }
23998 if test "x$ac_ct_GETCONF" = x; then
24001 case $cross_compiling:$ac_tool_warned in
24003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24005 ac_tool_warned=yes ;;
24007 GETCONF=$ac_ct_GETCONF
24010 GETCONF="$ac_cv_prog_GETCONF"
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24014 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24015 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
24016 $as_echo_n "(cached) " >&6
24018 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24019 ac_cv_sys_largefile_CFLAGS=no
24021 # IRIX 6.2 and later require cc -n32.
24022 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24023 if test "$GCC" != yes; then
24024 ac_cv_sys_largefile_CFLAGS=-n32
24027 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24029 /* end confdefs.h. */
24039 if ac_fn_c_try_link "$LINENO"; then :
24042 ac_cv_sys_largefile_CFLAGS=no
24044 rm -f core conftest.err conftest.$ac_objext \
24045 conftest$ac_exeext conftest.$ac_ext
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24051 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24053 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24054 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
24055 $as_echo_n "(cached) " >&6
24057 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24058 ac_cv_sys_largefile_LDFLAGS=no
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24063 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24065 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24066 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
24067 $as_echo_n "(cached) " >&6
24069 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24070 ac_cv_sys_largefile_LIBS=no
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24075 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24077 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24080 -D_FILE_OFFSET_BITS=*) ;;
24081 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24082 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24087 case "$CPPFLAGS" in
24088 '') CPPFLAGS="$ac_flag" ;;
24089 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24097 '') CFLAGS="$ac_flag" ;;
24098 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24103 case "$ac_cv_sys_largefile_LDFLAGS" in
24107 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24108 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24111 case "$ac_cv_sys_largefile_LIBS" in
24115 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24116 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24120 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24121 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24122 $as_echo_n "(cached) " >&6
24124 ac_cv_sys_file_offset_bits=no
24125 ac_cv_sys_file_offset_bits=64
24126 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24128 -D_FILE_OFFSET_BITS)
24129 ac_cv_sys_file_offset_bits=1 ;;
24130 -D_FILE_OFFSET_BITS=*)
24131 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24137 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24138 if test "$ac_cv_sys_file_offset_bits" != no; then
24140 cat >>confdefs.h <<_ACEOF
24141 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24146 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24147 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24148 $as_echo_n "(cached) " >&6
24150 ac_cv_sys_largefile_source=no
24151 ac_cv_sys_largefile_source=1
24152 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24154 -D_LARGEFILE_SOURCE)
24155 ac_cv_sys_largefile_source=1 ;;
24156 -D_LARGEFILE_SOURCE=*)
24157 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24163 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24164 if test "$ac_cv_sys_largefile_source" != no; then
24166 cat >>confdefs.h <<_ACEOF
24167 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24172 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24173 if test "${ac_cv_sys_large_files+set}" = set; then :
24174 $as_echo_n "(cached) " >&6
24176 ac_cv_sys_large_files=no
24177 ac_cv_sys_large_files=1
24178 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24181 ac_cv_sys_large_files=1 ;;
24183 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24189 $as_echo "$ac_cv_sys_large_files" >&6; }
24190 if test "$ac_cv_sys_large_files" != no; then
24192 cat >>confdefs.h <<_ACEOF
24193 #define _LARGE_FILES $ac_cv_sys_large_files
24200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24201 $as_echo_n "checking for X... " >&6; }
24204 # Check whether --with-x was given.
24205 if test "${with_x+set}" = set; then :
24209 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24210 if test "x$with_x" = xno; then
24211 # The user explicitly disabled X.
24214 case $x_includes,$x_libraries in #(
24215 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24216 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24217 $as_echo_n "(cached) " >&6
24219 # One or both of the vars are not set, and there is no cached value.
24220 ac_x_includes=no ac_x_libraries=no
24221 rm -f -r conftest.dir
24222 if mkdir conftest.dir; then
24224 cat >Imakefile <<'_ACEOF'
24226 @echo incroot='${INCROOT}'
24228 @echo usrlibdir='${USRLIBDIR}'
24230 @echo libdir='${LIBDIR}'
24232 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24233 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24234 for ac_var in incroot usrlibdir libdir; do
24235 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24237 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24238 for ac_extension in a so sl dylib la dll; do
24239 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24240 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24241 ac_im_usrlibdir=$ac_im_libdir; break
24244 # Screen out bogus values from the imake configuration. They are
24245 # bogus both because they are the default anyway, and because
24246 # using them would break gcc on systems where it needs fixed includes.
24247 case $ac_im_incroot in
24248 /usr/include) ac_x_includes= ;;
24249 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24251 case $ac_im_usrlibdir in
24252 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24253 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24257 rm -f -r conftest.dir
24260 # Standard set of common directories for X headers.
24261 # Check X11 before X11Rn because it is often a symlink to the current release.
24275 /usr/local/X11/include
24276 /usr/local/X11R7/include
24277 /usr/local/X11R6/include
24278 /usr/local/X11R5/include
24279 /usr/local/X11R4/include
24281 /usr/local/include/X11
24282 /usr/local/include/X11R7
24283 /usr/local/include/X11R6
24284 /usr/local/include/X11R5
24285 /usr/local/include/X11R4
24289 /usr/XFree86/include/X11
24293 /usr/unsupported/include
24294 /usr/athena/include
24295 /usr/local/x11r5/include
24296 /usr/lpp/Xamples/include
24298 /usr/openwin/include
24299 /usr/openwin/share/include'
24301 if test "$ac_x_includes" = no; then
24302 # Guess where to find include files, by looking for Xlib.h.
24303 # First, try using that file with no special directory specified.
24304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24305 /* end confdefs.h. */
24306 #include <X11/Xlib.h>
24308 if ac_fn_c_try_cpp "$LINENO"; then :
24309 # We can compile using X headers with no special include directory.
24312 for ac_dir in $ac_x_header_dirs; do
24313 if test -r "$ac_dir/X11/Xlib.h"; then
24314 ac_x_includes=$ac_dir
24319 rm -f conftest.err conftest.$ac_ext
24320 fi # $ac_x_includes = no
24322 if test "$ac_x_libraries" = no; then
24323 # Check for the libraries.
24324 # See if we find them without any special options.
24325 # Don't add to $LIBS permanently.
24328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24329 /* end confdefs.h. */
24330 #include <X11/Xlib.h>
24339 if ac_fn_c_try_link "$LINENO"; then :
24341 # We can link X programs with no special library path.
24345 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24347 # Don't even attempt the hair of trying to link an X program!
24348 for ac_extension in a so sl dylib la dll; do
24349 if test -r "$ac_dir/libX11.$ac_extension"; then
24350 ac_x_libraries=$ac_dir
24356 rm -f core conftest.err conftest.$ac_objext \
24357 conftest$ac_exeext conftest.$ac_ext
24358 fi # $ac_x_libraries = no
24360 case $ac_x_includes,$ac_x_libraries in #(
24361 no,* | *,no | *\'*)
24362 # Didn't find X, or a directory has "'" in its name.
24363 ac_cv_have_x="have_x=no";; #(
24365 # Record where we found X for the cache.
24366 ac_cv_have_x="have_x=yes\
24367 ac_x_includes='$ac_x_includes'\
24368 ac_x_libraries='$ac_x_libraries'"
24374 eval "$ac_cv_have_x"
24377 if test "$have_x" != yes; then
24378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24379 $as_echo "$have_x" >&6; }
24382 # If each of the values was on the command line, it overrides each guess.
24383 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24384 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24385 # Update the cache value to reflect the command line values.
24386 ac_cv_have_x="have_x=yes\
24387 ac_x_includes='$x_includes'\
24388 ac_x_libraries='$x_libraries'"
24389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24390 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24393 if test "$no_x" = yes; then
24394 # Not all programs may use this symbol, but it does not hurt to define it.
24396 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24398 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24400 if test -n "$x_includes"; then
24401 X_CFLAGS="$X_CFLAGS -I$x_includes"
24404 # It would also be nice to do this for all -L options, not just this one.
24405 if test -n "$x_libraries"; then
24406 X_LIBS="$X_LIBS -L$x_libraries"
24407 # For Solaris; some versions of Sun CC require a space after -R and
24408 # others require no space. Words are not sufficient . . . .
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24410 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24411 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24412 ac_xsave_c_werror_flag=$ac_c_werror_flag
24413 ac_c_werror_flag=yes
24414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24415 /* end confdefs.h. */
24425 if ac_fn_c_try_link "$LINENO"; then :
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24427 $as_echo "no" >&6; }
24428 X_LIBS="$X_LIBS -R$x_libraries"
24430 LIBS="$ac_xsave_LIBS -R $x_libraries"
24431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24432 /* end confdefs.h. */
24442 if ac_fn_c_try_link "$LINENO"; then :
24443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24444 $as_echo "yes" >&6; }
24445 X_LIBS="$X_LIBS -R $x_libraries"
24447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24448 $as_echo "neither works" >&6; }
24450 rm -f core conftest.err conftest.$ac_objext \
24451 conftest$ac_exeext conftest.$ac_ext
24453 rm -f core conftest.err conftest.$ac_objext \
24454 conftest$ac_exeext conftest.$ac_ext
24455 ac_c_werror_flag=$ac_xsave_c_werror_flag
24456 LIBS=$ac_xsave_LIBS
24459 # Check for system-dependent libraries X programs must link with.
24460 # Do this before checking for the system-independent R6 libraries
24461 # (-lICE), since we may need -lsocket or whatever for X linking.
24463 if test "$ISC" = yes; then
24464 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24466 # Martyn Johnson says this is needed for Ultrix, if the X
24467 # libraries were built with DECnet support. And Karl Berry says
24468 # the Alpha needs dnet_stub (dnet does not exist).
24469 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24471 /* end confdefs.h. */
24473 /* Override any GCC internal prototype to avoid an error.
24474 Use char because int might match the return type of a GCC
24475 builtin and then its argument prototype would still apply. */
24479 char XOpenDisplay ();
24483 return XOpenDisplay ();
24488 if ac_fn_c_try_link "$LINENO"; then :
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24492 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24493 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
24494 $as_echo_n "(cached) " >&6
24496 ac_check_lib_save_LIBS=$LIBS
24497 LIBS="-ldnet $LIBS"
24498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24499 /* end confdefs.h. */
24501 /* Override any GCC internal prototype to avoid an error.
24502 Use char because int might match the return type of a GCC
24503 builtin and then its argument prototype would still apply. */
24511 return dnet_ntoa ();
24516 if ac_fn_c_try_link "$LINENO"; then :
24517 ac_cv_lib_dnet_dnet_ntoa=yes
24519 ac_cv_lib_dnet_dnet_ntoa=no
24521 rm -f core conftest.err conftest.$ac_objext \
24522 conftest$ac_exeext conftest.$ac_ext
24523 LIBS=$ac_check_lib_save_LIBS
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24526 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24527 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
24528 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24531 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24533 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24534 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
24535 $as_echo_n "(cached) " >&6
24537 ac_check_lib_save_LIBS=$LIBS
24538 LIBS="-ldnet_stub $LIBS"
24539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24540 /* end confdefs.h. */
24542 /* Override any GCC internal prototype to avoid an error.
24543 Use char because int might match the return type of a GCC
24544 builtin and then its argument prototype would still apply. */
24552 return dnet_ntoa ();
24557 if ac_fn_c_try_link "$LINENO"; then :
24558 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24560 ac_cv_lib_dnet_stub_dnet_ntoa=no
24562 rm -f core conftest.err conftest.$ac_objext \
24563 conftest$ac_exeext conftest.$ac_ext
24564 LIBS=$ac_check_lib_save_LIBS
24566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24567 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24568 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
24569 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24574 rm -f core conftest.err conftest.$ac_objext \
24575 conftest$ac_exeext conftest.$ac_ext
24576 LIBS="$ac_xsave_LIBS"
24578 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24579 # to get the SysV transport functions.
24580 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24582 # The nsl library prevents programs from opening the X display
24583 # on Irix 5.2, according to T.E. Dickey.
24584 # The functions gethostbyname, getservbyname, and inet_addr are
24585 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24586 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24587 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
24591 if test $ac_cv_func_gethostbyname = no; then
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24593 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24594 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
24595 $as_echo_n "(cached) " >&6
24597 ac_check_lib_save_LIBS=$LIBS
24599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24600 /* end confdefs.h. */
24602 /* Override any GCC internal prototype to avoid an error.
24603 Use char because int might match the return type of a GCC
24604 builtin and then its argument prototype would still apply. */
24608 char gethostbyname ();
24612 return gethostbyname ();
24617 if ac_fn_c_try_link "$LINENO"; then :
24618 ac_cv_lib_nsl_gethostbyname=yes
24620 ac_cv_lib_nsl_gethostbyname=no
24622 rm -f core conftest.err conftest.$ac_objext \
24623 conftest$ac_exeext conftest.$ac_ext
24624 LIBS=$ac_check_lib_save_LIBS
24626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24627 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24628 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24629 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24632 if test $ac_cv_lib_nsl_gethostbyname = no; then
24633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24634 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24635 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24636 $as_echo_n "(cached) " >&6
24638 ac_check_lib_save_LIBS=$LIBS
24640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24641 /* end confdefs.h. */
24643 /* Override any GCC internal prototype to avoid an error.
24644 Use char because int might match the return type of a GCC
24645 builtin and then its argument prototype would still apply. */
24649 char gethostbyname ();
24653 return gethostbyname ();
24658 if ac_fn_c_try_link "$LINENO"; then :
24659 ac_cv_lib_bsd_gethostbyname=yes
24661 ac_cv_lib_bsd_gethostbyname=no
24663 rm -f core conftest.err conftest.$ac_objext \
24664 conftest$ac_exeext conftest.$ac_ext
24665 LIBS=$ac_check_lib_save_LIBS
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24668 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24669 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24670 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24676 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24677 # socket/setsockopt and other routines are undefined under SCO ODT
24678 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24679 # on later versions), says Simon Leinen: it contains gethostby*
24680 # variants that don't use the name server (or something). -lsocket
24681 # must be given before -lnsl if both are needed. We assume that
24682 # if connect needs -lnsl, so does gethostbyname.
24683 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24684 if test "x$ac_cv_func_connect" = x""yes; then :
24688 if test $ac_cv_func_connect = no; then
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24690 $as_echo_n "checking for connect in -lsocket... " >&6; }
24691 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24692 $as_echo_n "(cached) " >&6
24694 ac_check_lib_save_LIBS=$LIBS
24695 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24697 /* end confdefs.h. */
24699 /* Override any GCC internal prototype to avoid an error.
24700 Use char because int might match the return type of a GCC
24701 builtin and then its argument prototype would still apply. */
24714 if ac_fn_c_try_link "$LINENO"; then :
24715 ac_cv_lib_socket_connect=yes
24717 ac_cv_lib_socket_connect=no
24719 rm -f core conftest.err conftest.$ac_objext \
24720 conftest$ac_exeext conftest.$ac_ext
24721 LIBS=$ac_check_lib_save_LIBS
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24724 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24725 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24726 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24731 # Guillermo Gomez says -lposix is necessary on A/UX.
24732 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24733 if test "x$ac_cv_func_remove" = x""yes; then :
24737 if test $ac_cv_func_remove = no; then
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24739 $as_echo_n "checking for remove in -lposix... " >&6; }
24740 if test "${ac_cv_lib_posix_remove+set}" = set; then :
24741 $as_echo_n "(cached) " >&6
24743 ac_check_lib_save_LIBS=$LIBS
24744 LIBS="-lposix $LIBS"
24745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24746 /* end confdefs.h. */
24748 /* Override any GCC internal prototype to avoid an error.
24749 Use char because int might match the return type of a GCC
24750 builtin and then its argument prototype would still apply. */
24763 if ac_fn_c_try_link "$LINENO"; then :
24764 ac_cv_lib_posix_remove=yes
24766 ac_cv_lib_posix_remove=no
24768 rm -f core conftest.err conftest.$ac_objext \
24769 conftest$ac_exeext conftest.$ac_ext
24770 LIBS=$ac_check_lib_save_LIBS
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24773 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24774 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24775 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24780 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24781 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24782 if test "x$ac_cv_func_shmat" = x""yes; then :
24786 if test $ac_cv_func_shmat = no; then
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24788 $as_echo_n "checking for shmat in -lipc... " >&6; }
24789 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
24790 $as_echo_n "(cached) " >&6
24792 ac_check_lib_save_LIBS=$LIBS
24794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24795 /* end confdefs.h. */
24797 /* Override any GCC internal prototype to avoid an error.
24798 Use char because int might match the return type of a GCC
24799 builtin and then its argument prototype would still apply. */
24812 if ac_fn_c_try_link "$LINENO"; then :
24813 ac_cv_lib_ipc_shmat=yes
24815 ac_cv_lib_ipc_shmat=no
24817 rm -f core conftest.err conftest.$ac_objext \
24818 conftest$ac_exeext conftest.$ac_ext
24819 LIBS=$ac_check_lib_save_LIBS
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24822 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24823 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
24824 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24830 # Check for libraries that X11R6 Xt/Xaw programs need.
24831 ac_save_LDFLAGS=$LDFLAGS
24832 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24833 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24834 # check for ICE first), but we must link in the order -lSM -lICE or
24835 # we get undefined symbols. So assume we have SM if we have ICE.
24836 # These have to be linked with before -lX11, unlike the other
24837 # libraries we check for below, so use a different variable.
24838 # John Interrante, Karl Berry
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24840 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24841 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
24842 $as_echo_n "(cached) " >&6
24844 ac_check_lib_save_LIBS=$LIBS
24845 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24847 /* end confdefs.h. */
24849 /* Override any GCC internal prototype to avoid an error.
24850 Use char because int might match the return type of a GCC
24851 builtin and then its argument prototype would still apply. */
24855 char IceConnectionNumber ();
24859 return IceConnectionNumber ();
24864 if ac_fn_c_try_link "$LINENO"; then :
24865 ac_cv_lib_ICE_IceConnectionNumber=yes
24867 ac_cv_lib_ICE_IceConnectionNumber=no
24869 rm -f core conftest.err conftest.$ac_objext \
24870 conftest$ac_exeext conftest.$ac_ext
24871 LIBS=$ac_check_lib_save_LIBS
24873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24874 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24875 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
24876 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24879 LDFLAGS=$ac_save_LDFLAGS
24916 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24917 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24918 eval as_val=\$$as_ac_Header
24919 if test "x$as_val" = x""yes; then :
24920 cat >>confdefs.h <<_ACEOF
24921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24929 $as_echo_n "checking for ANSI C header files... " >&6; }
24930 if test "${ac_cv_header_stdc+set}" = set; then :
24931 $as_echo_n "(cached) " >&6
24933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24934 /* end confdefs.h. */
24935 #include <stdlib.h>
24936 #include <stdarg.h>
24937 #include <string.h>
24948 if ac_fn_c_try_compile "$LINENO"; then :
24949 ac_cv_header_stdc=yes
24951 ac_cv_header_stdc=no
24953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24955 if test $ac_cv_header_stdc = yes; then
24956 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24958 /* end confdefs.h. */
24959 #include <string.h>
24962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24963 $EGREP "memchr" >/dev/null 2>&1; then :
24966 ac_cv_header_stdc=no
24972 if test $ac_cv_header_stdc = yes; then
24973 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24975 /* end confdefs.h. */
24976 #include <stdlib.h>
24979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24980 $EGREP "free" >/dev/null 2>&1; then :
24983 ac_cv_header_stdc=no
24989 if test $ac_cv_header_stdc = yes; then
24990 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24991 if test "$cross_compiling" = yes; then :
24994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24995 /* end confdefs.h. */
24997 #include <stdlib.h>
24998 #if ((' ' & 0x0FF) == 0x020)
24999 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25000 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25002 # define ISLOWER(c) \
25003 (('a' <= (c) && (c) <= 'i') \
25004 || ('j' <= (c) && (c) <= 'r') \
25005 || ('s' <= (c) && (c) <= 'z'))
25006 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25009 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25014 for (i = 0; i < 256; i++)
25015 if (XOR (islower (i), ISLOWER (i))
25016 || toupper (i) != TOUPPER (i))
25021 if ac_fn_c_try_run "$LINENO"; then :
25024 ac_cv_header_stdc=no
25026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25027 conftest.$ac_objext conftest.beam conftest.$ac_ext
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25033 $as_echo "$ac_cv_header_stdc" >&6; }
25034 if test $ac_cv_header_stdc = yes; then
25036 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25041 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25042 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
25043 $as_echo_n "(cached) " >&6
25045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25046 /* end confdefs.h. */
25047 #include <sys/types.h>
25051 return makedev(0, 0);
25056 if ac_fn_c_try_link "$LINENO"; then :
25057 ac_cv_header_sys_types_h_makedev=yes
25059 ac_cv_header_sys_types_h_makedev=no
25061 rm -f core conftest.err conftest.$ac_objext \
25062 conftest$ac_exeext conftest.$ac_ext
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25066 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25068 if test $ac_cv_header_sys_types_h_makedev = no; then
25069 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25070 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
25072 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25078 if test $ac_cv_header_sys_mkdev_h = no; then
25079 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25080 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
25082 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25090 ac_header_dirent=no
25091 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25092 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25094 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
25096 $as_echo_n "(cached) " >&6
25098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25099 /* end confdefs.h. */
25100 #include <sys/types.h>
25112 if ac_fn_c_try_compile "$LINENO"; then :
25113 eval "$as_ac_Header=yes"
25115 eval "$as_ac_Header=no"
25117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25119 eval ac_res=\$$as_ac_Header
25120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25121 $as_echo "$ac_res" >&6; }
25122 eval as_val=\$$as_ac_Header
25123 if test "x$as_val" = x""yes; then :
25124 cat >>confdefs.h <<_ACEOF
25125 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25128 ac_header_dirent=$ac_hdr; break
25132 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25133 if test $ac_header_dirent = dirent.h; then
25134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25135 $as_echo_n "checking for library containing opendir... " >&6; }
25136 if test "${ac_cv_search_opendir+set}" = set; then :
25137 $as_echo_n "(cached) " >&6
25139 ac_func_search_save_LIBS=$LIBS
25140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25141 /* end confdefs.h. */
25143 /* Override any GCC internal prototype to avoid an error.
25144 Use char because int might match the return type of a GCC
25145 builtin and then its argument prototype would still apply. */
25158 for ac_lib in '' dir; do
25159 if test -z "$ac_lib"; then
25160 ac_res="none required"
25163 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25165 if ac_fn_c_try_link "$LINENO"; then :
25166 ac_cv_search_opendir=$ac_res
25168 rm -f core conftest.err conftest.$ac_objext \
25170 if test "${ac_cv_search_opendir+set}" = set; then :
25174 if test "${ac_cv_search_opendir+set}" = set; then :
25177 ac_cv_search_opendir=no
25179 rm conftest.$ac_ext
25180 LIBS=$ac_func_search_save_LIBS
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25183 $as_echo "$ac_cv_search_opendir" >&6; }
25184 ac_res=$ac_cv_search_opendir
25185 if test "$ac_res" != no; then :
25186 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25192 $as_echo_n "checking for library containing opendir... " >&6; }
25193 if test "${ac_cv_search_opendir+set}" = set; then :
25194 $as_echo_n "(cached) " >&6
25196 ac_func_search_save_LIBS=$LIBS
25197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25198 /* end confdefs.h. */
25200 /* Override any GCC internal prototype to avoid an error.
25201 Use char because int might match the return type of a GCC
25202 builtin and then its argument prototype would still apply. */
25215 for ac_lib in '' x; do
25216 if test -z "$ac_lib"; then
25217 ac_res="none required"
25220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25222 if ac_fn_c_try_link "$LINENO"; then :
25223 ac_cv_search_opendir=$ac_res
25225 rm -f core conftest.err conftest.$ac_objext \
25227 if test "${ac_cv_search_opendir+set}" = set; then :
25231 if test "${ac_cv_search_opendir+set}" = set; then :
25234 ac_cv_search_opendir=no
25236 rm conftest.$ac_ext
25237 LIBS=$ac_func_search_save_LIBS
25239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25240 $as_echo "$ac_cv_search_opendir" >&6; }
25241 ac_res=$ac_cv_search_opendir
25242 if test "$ac_res" != no; then :
25243 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25250 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25251 if test "${ac_cv_header_stat_broken+set}" = set; then :
25252 $as_echo_n "(cached) " >&6
25254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25255 /* end confdefs.h. */
25256 #include <sys/types.h>
25257 #include <sys/stat.h>
25259 #if defined S_ISBLK && defined S_IFDIR
25260 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25263 #if defined S_ISBLK && defined S_IFCHR
25264 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25267 #if defined S_ISLNK && defined S_IFREG
25268 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25271 #if defined S_ISSOCK && defined S_IFREG
25272 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25276 if ac_fn_c_try_compile "$LINENO"; then :
25277 ac_cv_header_stat_broken=no
25279 ac_cv_header_stat_broken=yes
25281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25284 $as_echo "$ac_cv_header_stat_broken" >&6; }
25285 if test $ac_cv_header_stat_broken = yes; then
25287 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25292 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25293 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25294 $as_echo_n "(cached) " >&6
25296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25297 /* end confdefs.h. */
25298 #include <sys/types.h>
25299 #include <sys/wait.h>
25300 #ifndef WEXITSTATUS
25301 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25304 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25312 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25317 if ac_fn_c_try_compile "$LINENO"; then :
25318 ac_cv_header_sys_wait_h=yes
25320 ac_cv_header_sys_wait_h=no
25322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25325 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25326 if test $ac_cv_header_sys_wait_h = yes; then
25328 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25333 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25334 if test "${ac_cv_header_time+set}" = set; then :
25335 $as_echo_n "(cached) " >&6
25337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25338 /* end confdefs.h. */
25339 #include <sys/types.h>
25340 #include <sys/time.h>
25346 if ((struct tm *) 0)
25352 if ac_fn_c_try_compile "$LINENO"; then :
25353 ac_cv_header_time=yes
25355 ac_cv_header_time=no
25357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25360 $as_echo "$ac_cv_header_time" >&6; }
25361 if test $ac_cv_header_time = yes; then
25363 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25367 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25368 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
25370 cat >>confdefs.h <<_ACEOF
25371 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25375 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25380 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25381 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
25383 cat >>confdefs.h <<_ACEOF
25384 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25388 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25391 case " $LIBOBJS " in
25392 *" fileblocks.$ac_objext "* ) ;;
25393 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25401 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25402 if test "${ac_cv_struct_tm+set}" = set; then :
25403 $as_echo_n "(cached) " >&6
25405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25406 /* end confdefs.h. */
25407 #include <sys/types.h>
25414 int *p = &tm.tm_sec;
25420 if ac_fn_c_try_compile "$LINENO"; then :
25421 ac_cv_struct_tm=time.h
25423 ac_cv_struct_tm=sys/time.h
25425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25428 $as_echo "$ac_cv_struct_tm" >&6; }
25429 if test $ac_cv_struct_tm = sys/time.h; then
25431 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25435 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25436 #include <$ac_cv_struct_tm>
25439 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
25441 cat >>confdefs.h <<_ACEOF
25442 #define HAVE_STRUCT_TM_TM_ZONE 1
25448 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25450 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25453 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25455 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
25461 cat >>confdefs.h <<_ACEOF
25462 #define HAVE_DECL_TZNAME $ac_have_decl
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25466 $as_echo_n "checking for tzname... " >&6; }
25467 if test "${ac_cv_var_tzname+set}" = set; then :
25468 $as_echo_n "(cached) " >&6
25470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25471 /* end confdefs.h. */
25473 #if !HAVE_DECL_TZNAME
25474 extern char *tzname[];
25480 return tzname[0][0];
25485 if ac_fn_c_try_link "$LINENO"; then :
25486 ac_cv_var_tzname=yes
25488 ac_cv_var_tzname=no
25490 rm -f core conftest.err conftest.$ac_objext \
25491 conftest$ac_exeext conftest.$ac_ext
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25494 $as_echo "$ac_cv_var_tzname" >&6; }
25495 if test $ac_cv_var_tzname = yes; then
25497 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25504 $as_echo_n "checking for utime.h... " >&6; }
25505 if test "${ba_cv_header_utime_h+set}" = set; then :
25506 $as_echo_n "(cached) " >&6
25509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25510 /* end confdefs.h. */
25512 #include <sys/types.h>
25525 if ac_fn_c_try_compile "$LINENO"; then :
25527 ba_cv_header_utime_h=yes
25531 ba_cv_header_utime_h=no
25535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25540 $as_echo "$ba_cv_header_utime_h" >&6; }
25541 test $ba_cv_header_utime_h = yes &&
25542 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25546 $as_echo_n "checking for socklen_t... " >&6; }
25547 if test "${ba_cv_header_socklen_t+set}" = set; then :
25548 $as_echo_n "(cached) " >&6
25551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25552 /* end confdefs.h. */
25554 #include <sys/types.h>
25555 #include <sys/socket.h>
25567 if ac_fn_c_try_compile "$LINENO"; then :
25569 ba_cv_header_socklen_t=yes
25573 ba_cv_header_socklen_t=no
25577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25582 $as_echo "$ba_cv_header_socklen_t" >&6; }
25583 test $ba_cv_header_socklen_t = yes &&
25584 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25588 ac_cpp='$CXXCPP $CPPFLAGS'
25589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25594 $as_echo_n "checking for ioctl_req_t... " >&6; }
25595 if test "${ba_cv_header_ioctl_req_t+set}" = set; then :
25596 $as_echo_n "(cached) " >&6
25599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25600 /* end confdefs.h. */
25602 #include <unistd.h>
25603 #include <sys/types.h>
25604 #include <sys/ioctl.h>
25610 int (*d_ioctl)(int fd, unsigned long int request, ...);
25617 if ac_fn_cxx_try_compile "$LINENO"; then :
25619 ba_cv_header_ioctl_req_t=yes
25623 ba_cv_header_ioctl_req_t=no
25627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25632 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25633 test $ba_cv_header_ioctl_req_t = yes &&
25634 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25638 ac_cpp='$CPP $CPPFLAGS'
25639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25645 ac_cpp='$CXXCPP $CPPFLAGS'
25646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25651 $as_echo_n "checking for typeof... " >&6; }
25652 if test "${ba_cv_have_typeof+set}" = set; then :
25653 $as_echo_n "(cached) " >&6
25656 if test "$cross_compiling" = yes; then :
25658 ba_cv_have_typeof=no
25662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25663 /* end confdefs.h. */
25665 main(){char *a = 0; a = (typeof a)a;}
25668 if ac_fn_cxx_try_run "$LINENO"; then :
25670 ba_cv_have_typeof=yes
25674 ba_cv_have_typeof=no
25677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25678 conftest.$ac_objext conftest.beam conftest.$ac_ext
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25685 $as_echo "$ba_cv_have_typeof" >&6; }
25686 test $ba_cv_have_typeof = yes &&
25687 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25690 ac_cpp='$CPP $CPPFLAGS'
25691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25697 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25698 if test "${ac_cv_c_const+set}" = set; then :
25699 $as_echo_n "(cached) " >&6
25701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25702 /* end confdefs.h. */
25707 /* FIXME: Include the comments suggested by Paul. */
25708 #ifndef __cplusplus
25709 /* Ultrix mips cc rejects this. */
25710 typedef int charset[2];
25712 /* SunOS 4.1.1 cc rejects this. */
25713 char const *const *pcpcc;
25715 /* NEC SVR4.0.2 mips cc rejects this. */
25716 struct point {int x, y;};
25717 static struct point const zero = {0,0};
25718 /* AIX XL C 1.02.0.0 rejects this.
25719 It does not let you subtract one const X* pointer from another in
25720 an arm of an if-expression whose if-part is not a constant
25722 const char *g = "string";
25723 pcpcc = &g + (g ? g-g : 0);
25724 /* HPUX 7.0 cc rejects these. */
25726 ppc = (char**) pcpcc;
25727 pcpcc = (char const *const *) ppc;
25728 { /* SCO 3.2v4 cc rejects this. */
25730 char const *s = 0 ? (char *) 0 : (char const *) 0;
25735 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25736 int x[] = {25, 17};
25737 const int *foo = &x[0];
25740 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25741 typedef const int *iptr;
25745 { /* AIX XL C 1.02.0.0 rejects this saying
25746 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25747 struct s { int j; const int *ap[3]; };
25748 struct s *b; b->j = 5;
25750 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25751 const int foo = 10;
25752 if (!foo) return 0;
25754 return !cs[0] && !zero.x;
25761 if ac_fn_c_try_compile "$LINENO"; then :
25766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25769 $as_echo "$ac_cv_c_const" >&6; }
25770 if test $ac_cv_c_const = no; then
25772 $as_echo "#define const /**/" >>confdefs.h
25777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
25778 $as_echo_n "checking how to get filesystem type... " >&6; }
25780 # The order of these tests is important.
25781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25782 /* end confdefs.h. */
25784 #include <sys/statvfs.h>
25785 #include <sys/fstyp.h>
25788 if ac_fn_c_try_cpp "$LINENO"; then :
25789 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
25793 rm -f conftest.err conftest.$ac_ext
25794 if test $fstype = no; then
25795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25796 /* end confdefs.h. */
25798 #include <sys/statfs.h>
25799 #include <sys/fstyp.h>
25802 if ac_fn_c_try_cpp "$LINENO"; then :
25803 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
25807 rm -f conftest.err conftest.$ac_ext
25809 if test $fstype = no; then
25810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25811 /* end confdefs.h. */
25813 #include <sys/statfs.h>
25814 #include <sys/vmount.h>
25817 if ac_fn_c_try_cpp "$LINENO"; then :
25818 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
25822 rm -f conftest.err conftest.$ac_ext
25824 if test $fstype = no; then
25825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25826 /* end confdefs.h. */
25828 #include <mntent.h>
25831 if ac_fn_c_try_cpp "$LINENO"; then :
25832 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
25836 rm -f conftest.err conftest.$ac_ext
25838 if test $fstype = no; then
25839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25840 /* end confdefs.h. */
25841 #include <sys/mount.h>
25844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25845 $EGREP "f_type;" >/dev/null 2>&1; then :
25846 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
25852 if test $fstype = no; then
25853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25854 /* end confdefs.h. */
25856 #include <sys/mount.h>
25857 #include <sys/fs_types.h>
25860 if ac_fn_c_try_cpp "$LINENO"; then :
25861 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
25865 rm -f conftest.err conftest.$ac_ext
25867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
25868 $as_echo "$fstype" >&6; }
25870 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
25871 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
25873 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
25879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
25880 $as_echo_n "checking return type of signal handlers... " >&6; }
25881 if test "${ac_cv_type_signal+set}" = set; then :
25882 $as_echo_n "(cached) " >&6
25884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25885 /* end confdefs.h. */
25886 #include <sys/types.h>
25887 #include <signal.h>
25892 return *(signal (0, 0)) (0) == 1;
25897 if ac_fn_c_try_compile "$LINENO"; then :
25898 ac_cv_type_signal=int
25900 ac_cv_type_signal=void
25902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
25905 $as_echo "$ac_cv_type_signal" >&6; }
25907 cat >>confdefs.h <<_ACEOF
25908 #define RETSIGTYPE $ac_cv_type_signal
25913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
25914 $as_echo_n "checking for type of signal functions... " >&6; }
25915 if test "${bash_cv_signal_vintage+set}" = set; then :
25916 $as_echo_n "(cached) " >&6
25919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25920 /* end confdefs.h. */
25921 #include <signal.h>
25927 struct sigaction sa;
25928 sigemptyset(&ss); sigsuspend(&ss);
25929 sigaction(SIGINT, &sa, (struct sigaction *) 0);
25930 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
25936 if ac_fn_c_try_link "$LINENO"; then :
25937 bash_cv_signal_vintage="posix"
25940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25941 /* end confdefs.h. */
25942 #include <signal.h>
25947 int mask = sigmask(SIGINT);
25948 sigsetmask(mask); sigblock(mask); sigpause(mask);
25954 if ac_fn_c_try_link "$LINENO"; then :
25955 bash_cv_signal_vintage="4.2bsd"
25958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25959 /* end confdefs.h. */
25961 #include <signal.h>
25962 RETSIGTYPE foo() { }
25967 int mask = sigmask(SIGINT);
25968 sigset(SIGINT, foo); sigrelse(SIGINT);
25969 sighold(SIGINT); sigpause(SIGINT);
25975 if ac_fn_c_try_link "$LINENO"; then :
25976 bash_cv_signal_vintage="svr3"
25978 bash_cv_signal_vintage="v7"
25981 rm -f core conftest.err conftest.$ac_objext \
25982 conftest$ac_exeext conftest.$ac_ext
25985 rm -f core conftest.err conftest.$ac_objext \
25986 conftest$ac_exeext conftest.$ac_ext
25989 rm -f core conftest.err conftest.$ac_objext \
25990 conftest$ac_exeext conftest.$ac_ext
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
25995 $as_echo "$bash_cv_signal_vintage" >&6; }
25996 if test "$bash_cv_signal_vintage" = "posix"; then
25997 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
25999 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26000 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26002 elif test "$bash_cv_signal_vintage" = "svr3"; then
26003 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26007 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26008 if test "x$ac_cv_type_mode_t" = x""yes; then :
26012 cat >>confdefs.h <<_ACEOF
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26019 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26020 if test "${ac_cv_type_uid_t+set}" = set; then :
26021 $as_echo_n "(cached) " >&6
26023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26024 /* end confdefs.h. */
26025 #include <sys/types.h>
26028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26029 $EGREP "uid_t" >/dev/null 2>&1; then :
26030 ac_cv_type_uid_t=yes
26032 ac_cv_type_uid_t=no
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26038 $as_echo "$ac_cv_type_uid_t" >&6; }
26039 if test $ac_cv_type_uid_t = no; then
26041 $as_echo "#define uid_t int" >>confdefs.h
26044 $as_echo "#define gid_t int" >>confdefs.h
26048 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26049 if test "x$ac_cv_type_size_t" = x""yes; then :
26053 cat >>confdefs.h <<_ACEOF
26054 #define size_t unsigned int
26059 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26060 if test "x$ac_cv_type_pid_t" = x""yes; then :
26064 cat >>confdefs.h <<_ACEOF
26070 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26071 if test "x$ac_cv_type_off_t" = x""yes; then :
26075 cat >>confdefs.h <<_ACEOF
26076 #define off_t long int
26082 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26083 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26085 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26088 for ac_type in 'int' 'long int' 'long long int'; do
26089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26090 /* end confdefs.h. */
26091 $ac_includes_default
26095 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26102 if ac_fn_c_try_compile "$LINENO"; then :
26104 cat >>confdefs.h <<_ACEOF
26105 #define intptr_t $ac_type
26110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26111 test -z "$ac_type" && break
26117 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26118 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
26120 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26123 for ac_type in 'unsigned int' 'unsigned long int' \
26124 'unsigned long long int'; do
26125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26126 /* end confdefs.h. */
26127 $ac_includes_default
26131 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26138 if ac_fn_c_try_compile "$LINENO"; then :
26140 cat >>confdefs.h <<_ACEOF
26141 #define uintptr_t $ac_type
26146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26147 test -z "$ac_type" && break
26152 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26153 if test "x$ac_cv_type_ino_t" = x""yes; then :
26157 cat >>confdefs.h <<_ACEOF
26158 #define ino_t unsigned long
26163 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26164 if test "x$ac_cv_type_dev_t" = x""yes; then :
26168 cat >>confdefs.h <<_ACEOF
26169 #define dev_t unsigned long
26174 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26175 if test "x$ac_cv_type_daddr_t" = x""yes; then :
26179 cat >>confdefs.h <<_ACEOF
26180 #define daddr_t long
26185 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26186 if test "x$ac_cv_type_major_t" = x""yes; then :
26190 cat >>confdefs.h <<_ACEOF
26191 #define major_t int
26196 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26197 if test "x$ac_cv_type_minor_t" = x""yes; then :
26201 cat >>confdefs.h <<_ACEOF
26202 #define minor_t int
26207 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26208 if test "x$ac_cv_type_ssize_t" = x""yes; then :
26212 cat >>confdefs.h <<_ACEOF
26213 #define ssize_t int
26218 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26219 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26221 cat >>confdefs.h <<_ACEOF
26222 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26226 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26229 case " $LIBOBJS " in
26230 *" fileblocks.$ac_objext "* ) ;;
26231 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26238 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26239 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
26241 cat >>confdefs.h <<_ACEOF
26242 #define HAVE_STRUCT_STAT_ST_RDEV 1
26246 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26252 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26253 if test "${ac_cv_struct_tm+set}" = set; then :
26254 $as_echo_n "(cached) " >&6
26256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26257 /* end confdefs.h. */
26258 #include <sys/types.h>
26265 int *p = &tm.tm_sec;
26271 if ac_fn_c_try_compile "$LINENO"; then :
26272 ac_cv_struct_tm=time.h
26274 ac_cv_struct_tm=sys/time.h
26276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26279 $as_echo "$ac_cv_struct_tm" >&6; }
26280 if test $ac_cv_struct_tm = sys/time.h; then
26282 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26287 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26288 if test "${ac_cv_c_const+set}" = set; then :
26289 $as_echo_n "(cached) " >&6
26291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26292 /* end confdefs.h. */
26297 /* FIXME: Include the comments suggested by Paul. */
26298 #ifndef __cplusplus
26299 /* Ultrix mips cc rejects this. */
26300 typedef int charset[2];
26302 /* SunOS 4.1.1 cc rejects this. */
26303 char const *const *pcpcc;
26305 /* NEC SVR4.0.2 mips cc rejects this. */
26306 struct point {int x, y;};
26307 static struct point const zero = {0,0};
26308 /* AIX XL C 1.02.0.0 rejects this.
26309 It does not let you subtract one const X* pointer from another in
26310 an arm of an if-expression whose if-part is not a constant
26312 const char *g = "string";
26313 pcpcc = &g + (g ? g-g : 0);
26314 /* HPUX 7.0 cc rejects these. */
26316 ppc = (char**) pcpcc;
26317 pcpcc = (char const *const *) ppc;
26318 { /* SCO 3.2v4 cc rejects this. */
26320 char const *s = 0 ? (char *) 0 : (char const *) 0;
26325 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26326 int x[] = {25, 17};
26327 const int *foo = &x[0];
26330 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26331 typedef const int *iptr;
26335 { /* AIX XL C 1.02.0.0 rejects this saying
26336 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26337 struct s { int j; const int *ap[3]; };
26338 struct s *b; b->j = 5;
26340 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26341 const int foo = 10;
26342 if (!foo) return 0;
26344 return !cs[0] && !zero.x;
26351 if ac_fn_c_try_compile "$LINENO"; then :
26356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26359 $as_echo "$ac_cv_c_const" >&6; }
26360 if test $ac_cv_c_const = no; then
26362 $as_echo "#define const /**/" >>confdefs.h
26367 # The cast to long int works around a bug in the HP C Compiler
26368 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26369 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26370 # This bug is HP SR number 8606223364.
26371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26372 $as_echo_n "checking size of char... " >&6; }
26373 if test "${ac_cv_sizeof_char+set}" = set; then :
26374 $as_echo_n "(cached) " >&6
26376 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
26379 if test "$ac_cv_type_char" = yes; then
26380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26382 { as_fn_set_status 77
26383 as_fn_error "cannot compute sizeof (char)
26384 See \`config.log' for more details." "$LINENO" 5; }; }
26386 ac_cv_sizeof_char=0
26391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26392 $as_echo "$ac_cv_sizeof_char" >&6; }
26396 cat >>confdefs.h <<_ACEOF
26397 #define SIZEOF_CHAR $ac_cv_sizeof_char
26401 # The cast to long int works around a bug in the HP C Compiler
26402 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26403 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26404 # This bug is HP SR number 8606223364.
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26406 $as_echo_n "checking size of short int... " >&6; }
26407 if test "${ac_cv_sizeof_short_int+set}" = set; then :
26408 $as_echo_n "(cached) " >&6
26410 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
26413 if test "$ac_cv_type_short_int" = yes; then
26414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26416 { as_fn_set_status 77
26417 as_fn_error "cannot compute sizeof (short int)
26418 See \`config.log' for more details." "$LINENO" 5; }; }
26420 ac_cv_sizeof_short_int=0
26425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26426 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26430 cat >>confdefs.h <<_ACEOF
26431 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26435 # The cast to long int works around a bug in the HP C Compiler
26436 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26437 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26438 # This bug is HP SR number 8606223364.
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26440 $as_echo_n "checking size of int... " >&6; }
26441 if test "${ac_cv_sizeof_int+set}" = set; then :
26442 $as_echo_n "(cached) " >&6
26444 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
26447 if test "$ac_cv_type_int" = yes; then
26448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26450 { as_fn_set_status 77
26451 as_fn_error "cannot compute sizeof (int)
26452 See \`config.log' for more details." "$LINENO" 5; }; }
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26460 $as_echo "$ac_cv_sizeof_int" >&6; }
26464 cat >>confdefs.h <<_ACEOF
26465 #define SIZEOF_INT $ac_cv_sizeof_int
26469 # The cast to long int works around a bug in the HP C Compiler
26470 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26471 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26472 # This bug is HP SR number 8606223364.
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26474 $as_echo_n "checking size of long int... " >&6; }
26475 if test "${ac_cv_sizeof_long_int+set}" = set; then :
26476 $as_echo_n "(cached) " >&6
26478 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
26481 if test "$ac_cv_type_long_int" = yes; then
26482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26484 { as_fn_set_status 77
26485 as_fn_error "cannot compute sizeof (long int)
26486 See \`config.log' for more details." "$LINENO" 5; }; }
26488 ac_cv_sizeof_long_int=0
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26494 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26498 cat >>confdefs.h <<_ACEOF
26499 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26503 # The cast to long int works around a bug in the HP C Compiler
26504 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26505 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26506 # This bug is HP SR number 8606223364.
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26508 $as_echo_n "checking size of long long int... " >&6; }
26509 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
26510 $as_echo_n "(cached) " >&6
26512 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
26515 if test "$ac_cv_type_long_long_int" = yes; then
26516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26518 { as_fn_set_status 77
26519 as_fn_error "cannot compute sizeof (long long int)
26520 See \`config.log' for more details." "$LINENO" 5; }; }
26522 ac_cv_sizeof_long_long_int=0
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26528 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26532 cat >>confdefs.h <<_ACEOF
26533 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26537 # The cast to long int works around a bug in the HP C Compiler
26538 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26539 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26540 # This bug is HP SR number 8606223364.
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26542 $as_echo_n "checking size of int *... " >&6; }
26543 if test "${ac_cv_sizeof_int_p+set}" = set; then :
26544 $as_echo_n "(cached) " >&6
26546 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
26549 if test "$ac_cv_type_int_p" = yes; then
26550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26552 { as_fn_set_status 77
26553 as_fn_error "cannot compute sizeof (int *)
26554 See \`config.log' for more details." "$LINENO" 5; }; }
26556 ac_cv_sizeof_int_p=0
26561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26562 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26566 cat >>confdefs.h <<_ACEOF
26567 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26573 $as_echo_n "checking for u_int type... " >&6; }
26574 if test "${ac_cv_have_u_int+set}" = set; then :
26575 $as_echo_n "(cached) " >&6
26578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26579 /* end confdefs.h. */
26581 #include <sys/types.h>
26593 if ac_fn_c_try_compile "$LINENO"; then :
26595 ac_cv_have_u_int="yes"
26599 ac_cv_have_u_int="no"
26603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
26608 $as_echo "$ac_cv_have_u_int" >&6; }
26609 if test "x$ac_cv_have_u_int" = "xyes" ; then
26610 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
26615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
26616 $as_echo_n "checking for intmax_t type... " >&6; }
26617 if test "${ac_cv_have_intmax_t+set}" = set; then :
26618 $as_echo_n "(cached) " >&6
26621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26622 /* end confdefs.h. */
26624 #include <sys/types.h>
26636 if ac_fn_c_try_compile "$LINENO"; then :
26638 ac_cv_have_intmax_t="yes"
26642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26643 /* end confdefs.h. */
26645 #include <stdint.h>
26657 if ac_fn_c_try_compile "$LINENO"; then :
26659 ac_cv_have_intmax_t="yes"
26663 ac_cv_have_intmax_t="no"
26667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
26676 $as_echo "$ac_cv_have_intmax_t" >&6; }
26677 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26678 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
26684 $as_echo_n "checking for u_intmax_t type... " >&6; }
26685 if test "${ac_cv_have_u_intmax_t+set}" = set; then :
26686 $as_echo_n "(cached) " >&6
26689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26690 /* end confdefs.h. */
26692 #include <sys/types.h>
26698 u_intmax_t a; a = 1;
26704 if ac_fn_c_try_compile "$LINENO"; then :
26706 ac_cv_have_u_intmax_t="yes"
26710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26711 /* end confdefs.h. */
26713 #include <stdint.h>
26719 u_intmax_t a; a = 1;
26725 if ac_fn_c_try_compile "$LINENO"; then :
26727 ac_cv_have_u_intmax_t="yes"
26731 ac_cv_have_u_intmax_t="no"
26735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
26744 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
26745 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26746 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
26751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
26752 $as_echo_n "checking for intXX_t types... " >&6; }
26753 if test "${ac_cv_have_intxx_t+set}" = set; then :
26754 $as_echo_n "(cached) " >&6
26757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26758 /* end confdefs.h. */
26760 #include <sys/types.h>
26766 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26772 if ac_fn_c_try_compile "$LINENO"; then :
26774 ac_cv_have_intxx_t="yes"
26778 ac_cv_have_intxx_t="no"
26782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
26787 $as_echo "$ac_cv_have_intxx_t" >&6; }
26788 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26789 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
26794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
26795 $as_echo_n "checking for int64_t type... " >&6; }
26796 if test "${ac_cv_have_int64_t+set}" = set; then :
26797 $as_echo_n "(cached) " >&6
26800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26801 /* end confdefs.h. */
26803 #include <sys/types.h>
26815 if ac_fn_c_try_compile "$LINENO"; then :
26817 ac_cv_have_int64_t="yes"
26821 ac_cv_have_int64_t="no"
26825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
26830 $as_echo "$ac_cv_have_int64_t" >&6; }
26831 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26832 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
26837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
26838 $as_echo_n "checking for u_intXX_t types... " >&6; }
26839 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
26840 $as_echo_n "(cached) " >&6
26843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26844 /* end confdefs.h. */
26846 #include <sys/types.h>
26852 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26858 if ac_fn_c_try_compile "$LINENO"; then :
26860 ac_cv_have_u_intxx_t="yes"
26864 ac_cv_have_u_intxx_t="no"
26868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
26873 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
26874 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26875 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
26880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
26881 $as_echo_n "checking for u_int64_t types... " >&6; }
26882 if test "${ac_cv_have_u_int64_t+set}" = set; then :
26883 $as_echo_n "(cached) " >&6
26886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26887 /* end confdefs.h. */
26889 #include <sys/types.h>
26895 u_int64_t a; a = 1;
26901 if ac_fn_c_try_compile "$LINENO"; then :
26903 ac_cv_have_u_int64_t="yes"
26907 ac_cv_have_u_int64_t="no"
26911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
26916 $as_echo "$ac_cv_have_u_int64_t" >&6; }
26917 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26918 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
26923 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26924 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26927 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
26928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26929 /* end confdefs.h. */
26931 #include <sys/bitypes.h>
26937 int8_t a; int16_t b; int32_t c;
26938 u_int8_t e; u_int16_t f; u_int32_t g;
26939 a = b = c = e = f = g = 1;
26945 if ac_fn_c_try_compile "$LINENO"; then :
26947 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
26949 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
26951 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
26953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26954 $as_echo "yes" >&6; }
26958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26959 $as_echo "no" >&6; }
26963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26966 if test -z "$have_u_intxx_t" ; then
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
26968 $as_echo_n "checking for uintXX_t types... " >&6; }
26969 if test "${ac_cv_have_uintxx_t+set}" = set; then :
26970 $as_echo_n "(cached) " >&6
26973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26974 /* end confdefs.h. */
26976 #include <sys/types.h>
26982 uint8_t a; uint16_t b;
26983 uint32_t c; a = b = c = 1;
26989 if ac_fn_c_try_compile "$LINENO"; then :
26991 ac_cv_have_uintxx_t="yes"
26995 ac_cv_have_uintxx_t="no"
26999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27004 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27005 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27006 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27011 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27012 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27015 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27017 /* end confdefs.h. */
27019 #include <sys/bitypes.h>
27025 int64_t a; u_int64_t b;
27032 if ac_fn_c_try_compile "$LINENO"; then :
27034 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27036 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27039 $as_echo "yes" >&6; }
27043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27044 $as_echo "no" >&6; }
27048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27051 if (test -z "$have_uintxx_t" && \
27052 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27055 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27057 /* end confdefs.h. */
27059 #include <sys/bitypes.h>
27065 uint8_t a; uint16_t b;
27066 uint32_t c; a = b = c = 1;
27072 if ac_fn_c_try_compile "$LINENO"; then :
27074 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27077 $as_echo "yes" >&6; }
27081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27082 $as_echo "no" >&6; }
27086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27105 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27106 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27107 eval as_val=\$$as_ac_var
27108 if test "x$as_val" = x""yes; then :
27109 cat >>confdefs.h <<_ACEOF
27110 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27114 echo 'configure: cannot find needed function.'; exit 1
27120 for ac_func in fchdir
27122 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27123 if test "x$ac_cv_func_fchdir" = x""yes; then :
27124 cat >>confdefs.h <<_ACEOF
27125 #define HAVE_FCHDIR 1
27127 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27132 for ac_func in strtoll
27134 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27135 if test "x$ac_cv_func_strtoll" = x""yes; then :
27136 cat >>confdefs.h <<_ACEOF
27137 #define HAVE_STRTOLL 1
27139 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27144 for ac_func in posix_fadvise
27146 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27147 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
27148 cat >>confdefs.h <<_ACEOF
27149 #define HAVE_POSIX_FADVISE 1
27155 for ac_func in fdatasync
27157 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27158 if test "x$ac_cv_func_fdatasync" = x""yes; then :
27159 cat >>confdefs.h <<_ACEOF
27160 #define HAVE_FDATASYNC 1
27167 for ac_func in chflags
27169 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27170 if test "x$ac_cv_func_chflags" = x""yes; then :
27171 cat >>confdefs.h <<_ACEOF
27172 #define HAVE_CHFLAGS 1
27179 for ac_func in snprintf vsnprintf gethostid fseeko
27181 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27182 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27183 eval as_val=\$$as_ac_var
27184 if test "x$as_val" = x""yes; then :
27185 cat >>confdefs.h <<_ACEOF
27186 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27194 $as_echo_n "checking for va_copy... " >&6; }
27195 if test "${ba_cv_va_copy+set}" = set; then :
27196 $as_echo_n "(cached) " >&6
27199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27200 /* end confdefs.h. */
27202 #include <stdarg.h>
27203 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27204 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27210 call_use_va_copy(1,2,3)
27216 if ac_fn_c_try_link "$LINENO"; then :
27226 rm -f core conftest.err conftest.$ac_objext \
27227 conftest$ac_exeext conftest.$ac_ext
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27232 $as_echo "$ba_cv_va_copy" >&6; }
27233 test $ba_cv_va_copy = yes &&
27234 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27237 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27239 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27240 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27241 eval as_val=\$$as_ac_var
27242 if test "x$as_val" = x""yes; then :
27243 cat >>confdefs.h <<_ACEOF
27244 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27251 # If resolver functions are not in libc check for -lnsl or -lresolv.
27252 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27253 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
27254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27255 $as_echo "using libc's resolver" >&6; }
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27258 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27259 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
27260 $as_echo_n "(cached) " >&6
27262 ac_check_lib_save_LIBS=$LIBS
27264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27265 /* end confdefs.h. */
27267 /* Override any GCC internal prototype to avoid an error.
27268 Use char because int might match the return type of a GCC
27269 builtin and then its argument prototype would still apply. */
27273 char gethostbyname_r ();
27277 return gethostbyname_r ();
27282 if ac_fn_c_try_link "$LINENO"; then :
27283 ac_cv_lib_nsl_gethostbyname_r=yes
27285 ac_cv_lib_nsl_gethostbyname_r=no
27287 rm -f core conftest.err conftest.$ac_objext \
27288 conftest$ac_exeext conftest.$ac_ext
27289 LIBS=$ac_check_lib_save_LIBS
27291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27292 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27293 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
27294 cat >>confdefs.h <<_ACEOF
27295 #define HAVE_LIBNSL 1
27302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27303 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27304 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then :
27305 $as_echo_n "(cached) " >&6
27307 ac_check_lib_save_LIBS=$LIBS
27308 LIBS="-lresolv $LIBS"
27309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27310 /* end confdefs.h. */
27312 /* Override any GCC internal prototype to avoid an error.
27313 Use char because int might match the return type of a GCC
27314 builtin and then its argument prototype would still apply. */
27318 char gethostbyname_r ();
27322 return gethostbyname_r ();
27327 if ac_fn_c_try_link "$LINENO"; then :
27328 ac_cv_lib_resolv_gethostbyname_r=yes
27330 ac_cv_lib_resolv_gethostbyname_r=no
27332 rm -f core conftest.err conftest.$ac_objext \
27333 conftest$ac_exeext conftest.$ac_ext
27334 LIBS=$ac_check_lib_save_LIBS
27336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27337 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27338 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then :
27339 cat >>confdefs.h <<_ACEOF
27340 #define HAVE_LIBRESOLV 1
27343 LIBS="-lresolv $LIBS"
27350 for ac_func in inet_pton
27352 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27353 if test "x$ac_cv_func_inet_pton" = x""yes; then :
27354 cat >>confdefs.h <<_ACEOF
27355 #define HAVE_INET_PTON 1
27357 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27362 for ac_func in inet_ntop
27364 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27365 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
27366 cat >>confdefs.h <<_ACEOF
27367 #define HAVE_INET_NTOP 1
27369 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27374 for ac_func in gethostbyname2
27376 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27377 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
27378 cat >>confdefs.h <<_ACEOF
27379 #define HAVE_GETHOSTBYNAME2 1
27381 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27388 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27389 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then :
27390 $as_echo_n "(cached) " >&6
27393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27394 /* end confdefs.h. */
27396 #include <sys/socket.h>
27402 struct sockaddr s; s.sa_len;
27408 if ac_fn_c_try_compile "$LINENO"; then :
27410 ac_cv_struct_sockaddr_sa_len=yes
27413 ac_cv_struct_sockaddr_sa_len=no
27417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27422 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27424 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27426 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27430 for ac_func in strftime
27432 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27433 if test "x$ac_cv_func_strftime" = x""yes; then :
27434 cat >>confdefs.h <<_ACEOF
27435 #define HAVE_STRFTIME 1
27439 # strftime is in -lintl on SCO UNIX.
27440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27441 $as_echo_n "checking for strftime in -lintl... " >&6; }
27442 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
27443 $as_echo_n "(cached) " >&6
27445 ac_check_lib_save_LIBS=$LIBS
27446 LIBS="-lintl $LIBS"
27447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27448 /* end confdefs.h. */
27450 /* Override any GCC internal prototype to avoid an error.
27451 Use char because int might match the return type of a GCC
27452 builtin and then its argument prototype would still apply. */
27460 return strftime ();
27465 if ac_fn_c_try_link "$LINENO"; then :
27466 ac_cv_lib_intl_strftime=yes
27468 ac_cv_lib_intl_strftime=no
27470 rm -f core conftest.err conftest.$ac_objext \
27471 conftest$ac_exeext conftest.$ac_ext
27472 LIBS=$ac_check_lib_save_LIBS
27474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27475 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27476 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
27477 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27479 LIBS="-lintl $LIBS"
27485 for ac_func in vprintf
27487 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27488 if test "x$ac_cv_func_vprintf" = x""yes; then :
27489 cat >>confdefs.h <<_ACEOF
27490 #define HAVE_VPRINTF 1
27493 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27494 if test "x$ac_cv_func__doprnt" = x""yes; then :
27496 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27504 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27505 # for constant arguments. Useless!
27506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27507 $as_echo_n "checking for working alloca.h... " >&6; }
27508 if test "${ac_cv_working_alloca_h+set}" = set; then :
27509 $as_echo_n "(cached) " >&6
27511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27512 /* end confdefs.h. */
27513 #include <alloca.h>
27517 char *p = (char *) alloca (2 * sizeof (int));
27523 if ac_fn_c_try_link "$LINENO"; then :
27524 ac_cv_working_alloca_h=yes
27526 ac_cv_working_alloca_h=no
27528 rm -f core conftest.err conftest.$ac_objext \
27529 conftest$ac_exeext conftest.$ac_ext
27531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27532 $as_echo "$ac_cv_working_alloca_h" >&6; }
27533 if test $ac_cv_working_alloca_h = yes; then
27535 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
27539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
27540 $as_echo_n "checking for alloca... " >&6; }
27541 if test "${ac_cv_func_alloca_works+set}" = set; then :
27542 $as_echo_n "(cached) " >&6
27544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27545 /* end confdefs.h. */
27547 # define alloca __builtin_alloca
27550 # include <malloc.h>
27551 # define alloca _alloca
27553 # ifdef HAVE_ALLOCA_H
27554 # include <alloca.h>
27559 # ifndef alloca /* predefined by HP cc +Olibcalls */
27570 char *p = (char *) alloca (1);
27576 if ac_fn_c_try_link "$LINENO"; then :
27577 ac_cv_func_alloca_works=yes
27579 ac_cv_func_alloca_works=no
27581 rm -f core conftest.err conftest.$ac_objext \
27582 conftest$ac_exeext conftest.$ac_ext
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
27585 $as_echo "$ac_cv_func_alloca_works" >&6; }
27587 if test $ac_cv_func_alloca_works = yes; then
27589 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27592 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27593 # that cause trouble. Some versions do not even contain alloca or
27594 # contain a buggy version. If you still want to use their alloca,
27595 # use ar to extract alloca.o from them instead of compiling alloca.c.
27597 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27599 $as_echo "#define C_ALLOCA 1" >>confdefs.h
27602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
27603 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27604 if test "${ac_cv_os_cray+set}" = set; then :
27605 $as_echo_n "(cached) " >&6
27607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27608 /* end confdefs.h. */
27609 #if defined CRAY && ! defined CRAY2
27616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27617 $EGREP "webecray" >/dev/null 2>&1; then :
27625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
27626 $as_echo "$ac_cv_os_cray" >&6; }
27627 if test $ac_cv_os_cray = yes; then
27628 for ac_func in _getb67 GETB67 getb67; do
27629 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27630 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27631 eval as_val=\$$as_ac_var
27632 if test "x$as_val" = x""yes; then :
27634 cat >>confdefs.h <<_ACEOF
27635 #define CRAY_STACKSEG_END $ac_func
27644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
27645 $as_echo_n "checking stack direction for C alloca... " >&6; }
27646 if test "${ac_cv_c_stack_direction+set}" = set; then :
27647 $as_echo_n "(cached) " >&6
27649 if test "$cross_compiling" = yes; then :
27650 ac_cv_c_stack_direction=0
27652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27653 /* end confdefs.h. */
27654 $ac_includes_default
27656 find_stack_direction ()
27658 static char *addr = 0;
27663 return find_stack_direction ();
27666 return (&dummy > addr) ? 1 : -1;
27672 return find_stack_direction () < 0;
27675 if ac_fn_c_try_run "$LINENO"; then :
27676 ac_cv_c_stack_direction=1
27678 ac_cv_c_stack_direction=-1
27680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27681 conftest.$ac_objext conftest.beam conftest.$ac_ext
27685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
27686 $as_echo "$ac_cv_c_stack_direction" >&6; }
27687 cat >>confdefs.h <<_ACEOF
27688 #define STACK_DIRECTION $ac_cv_c_stack_direction
27694 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
27695 # -lseq on Dynix/PTX, -lgen on Unixware.
27696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
27697 $as_echo_n "checking for library containing getmntent... " >&6; }
27698 if test "${ac_cv_search_getmntent+set}" = set; then :
27699 $as_echo_n "(cached) " >&6
27701 ac_func_search_save_LIBS=$LIBS
27702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27703 /* end confdefs.h. */
27705 /* Override any GCC internal prototype to avoid an error.
27706 Use char because int might match the return type of a GCC
27707 builtin and then its argument prototype would still apply. */
27715 return getmntent ();
27720 for ac_lib in '' sun seq gen; do
27721 if test -z "$ac_lib"; then
27722 ac_res="none required"
27725 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27727 if ac_fn_c_try_link "$LINENO"; then :
27728 ac_cv_search_getmntent=$ac_res
27730 rm -f core conftest.err conftest.$ac_objext \
27732 if test "${ac_cv_search_getmntent+set}" = set; then :
27736 if test "${ac_cv_search_getmntent+set}" = set; then :
27739 ac_cv_search_getmntent=no
27741 rm conftest.$ac_ext
27742 LIBS=$ac_func_search_save_LIBS
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
27745 $as_echo "$ac_cv_search_getmntent" >&6; }
27746 ac_res=$ac_cv_search_getmntent
27747 if test "$ac_res" != no; then :
27748 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27749 ac_cv_func_getmntent=yes
27751 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
27754 ac_cv_func_getmntent=no
27758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
27759 $as_echo_n "checking whether closedir returns void... " >&6; }
27760 if test "${ac_cv_func_closedir_void+set}" = set; then :
27761 $as_echo_n "(cached) " >&6
27763 if test "$cross_compiling" = yes; then :
27764 ac_cv_func_closedir_void=yes
27766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27767 /* end confdefs.h. */
27768 $ac_includes_default
27769 #include <$ac_header_dirent>
27770 #ifndef __cplusplus
27777 return closedir (opendir (".")) != 0;
27782 if ac_fn_c_try_run "$LINENO"; then :
27783 ac_cv_func_closedir_void=no
27785 ac_cv_func_closedir_void=yes
27787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27788 conftest.$ac_objext conftest.beam conftest.$ac_ext
27792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
27793 $as_echo "$ac_cv_func_closedir_void" >&6; }
27794 if test $ac_cv_func_closedir_void = yes; then
27796 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
27800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27801 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27802 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
27803 $as_echo_n "(cached) " >&6
27805 if test "$cross_compiling" = yes; then :
27806 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
27808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27809 /* end confdefs.h. */
27810 $ac_includes_default
27814 /* If this system has a BSD-style setpgrp which takes arguments,
27815 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
27816 exit successfully. */
27817 return setpgrp (1,1) != -1;
27822 if ac_fn_c_try_run "$LINENO"; then :
27823 ac_cv_func_setpgrp_void=no
27825 ac_cv_func_setpgrp_void=yes
27827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27828 conftest.$ac_objext conftest.beam conftest.$ac_ext
27832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
27833 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
27834 if test $ac_cv_func_setpgrp_void = yes; then
27836 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
27839 # AC_FUNC_FNMATCH dnl use local version
27841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
27842 $as_echo_n "checking for gettext in -lintl... " >&6; }
27843 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
27844 $as_echo_n "(cached) " >&6
27846 ac_check_lib_save_LIBS=$LIBS
27847 LIBS="-lintl $LIBS"
27848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27849 /* end confdefs.h. */
27851 /* Override any GCC internal prototype to avoid an error.
27852 Use char because int might match the return type of a GCC
27853 builtin and then its argument prototype would still apply. */
27866 if ac_fn_c_try_link "$LINENO"; then :
27867 ac_cv_lib_intl_gettext=yes
27869 ac_cv_lib_intl_gettext=no
27871 rm -f core conftest.err conftest.$ac_objext \
27872 conftest$ac_exeext conftest.$ac_ext
27873 LIBS=$ac_check_lib_save_LIBS
27875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
27876 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
27877 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
27878 LIBS="$LIBS -lintl"
27882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
27883 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
27884 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
27885 $as_echo_n "(cached) " >&6
27887 ac_check_lib_save_LIBS=$LIBS
27889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27890 /* end confdefs.h. */
27892 /* Override any GCC internal prototype to avoid an error.
27893 Use char because int might match the return type of a GCC
27894 builtin and then its argument prototype would still apply. */
27902 return getpwnam ();
27907 if ac_fn_c_try_link "$LINENO"; then :
27908 ac_cv_lib_sun_getpwnam=yes
27910 ac_cv_lib_sun_getpwnam=no
27912 rm -f core conftest.err conftest.$ac_objext \
27913 conftest$ac_exeext conftest.$ac_ext
27914 LIBS=$ac_check_lib_save_LIBS
27916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
27917 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
27918 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
27919 cat >>confdefs.h <<_ACEOF
27920 #define HAVE_LIBSUN 1
27928 for ac_header in zlib.h
27930 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
27931 if test "x$ac_cv_header_zlib_h" = x""yes; then :
27932 cat >>confdefs.h <<_ACEOF
27933 #define HAVE_ZLIB_H 1
27940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
27941 $as_echo_n "checking for deflate in -lz... " >&6; }
27942 if test "${ac_cv_lib_z_deflate+set}" = set; then :
27943 $as_echo_n "(cached) " >&6
27945 ac_check_lib_save_LIBS=$LIBS
27947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27948 /* end confdefs.h. */
27950 /* Override any GCC internal prototype to avoid an error.
27951 Use char because int might match the return type of a GCC
27952 builtin and then its argument prototype would still apply. */
27965 if ac_fn_c_try_link "$LINENO"; then :
27966 ac_cv_lib_z_deflate=yes
27968 ac_cv_lib_z_deflate=no
27970 rm -f core conftest.err conftest.$ac_objext \
27971 conftest$ac_exeext conftest.$ac_ext
27972 LIBS=$ac_check_lib_save_LIBS
27974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
27975 $as_echo "$ac_cv_lib_z_deflate" >&6; }
27976 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
27981 if test x$FDLIBS = x-lz; then
27982 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
27988 # Check whether --enable-acl was given.
27989 if test "${enable_acl+set}" = set; then :
27990 enableval=$enable_acl;
27991 if test x$enableval = xyes; then
27993 elif test x$enableval = xno; then
28002 have_extended_acl=no
28003 if test x$support_acl = xyes -o x$support_acl = xauto; then
28004 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28005 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
28007 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28012 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28013 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
28019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28020 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28021 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
28022 $as_echo_n "(cached) " >&6
28024 ac_check_lib_save_LIBS=$LIBS
28026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28027 /* end confdefs.h. */
28029 /* Override any GCC internal prototype to avoid an error.
28030 Use char because int might match the return type of a GCC
28031 builtin and then its argument prototype would still apply. */
28035 char acl_get_file ();
28039 return acl_get_file ();
28044 if ac_fn_c_try_link "$LINENO"; then :
28045 ac_cv_lib_acl_acl_get_file=yes
28047 ac_cv_lib_acl_acl_get_file=no
28049 rm -f core conftest.err conftest.$ac_objext \
28050 conftest$ac_exeext conftest.$ac_ext
28051 LIBS=$ac_check_lib_save_LIBS
28053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28054 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28055 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
28058 FDLIBS="-lacl $FDLIBS"
28062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28063 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28064 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
28065 $as_echo_n "(cached) " >&6
28067 ac_check_lib_save_LIBS=$LIBS
28068 LIBS="-lpacl $LIBS"
28069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28070 /* end confdefs.h. */
28072 /* Override any GCC internal prototype to avoid an error.
28073 Use char because int might match the return type of a GCC
28074 builtin and then its argument prototype would still apply. */
28078 char acl_get_file ();
28082 return acl_get_file ();
28087 if ac_fn_c_try_link "$LINENO"; then :
28088 ac_cv_lib_pacl_acl_get_file=yes
28090 ac_cv_lib_pacl_acl_get_file=no
28092 rm -f core conftest.err conftest.$ac_objext \
28093 conftest$ac_exeext conftest.$ac_ext
28094 LIBS=$ac_check_lib_save_LIBS
28096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28097 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28098 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
28101 FDLIBS="-lpacl $FDLIBS"
28105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28106 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28107 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
28108 $as_echo_n "(cached) " >&6
28110 ac_check_lib_save_LIBS=$LIBS
28112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28113 /* end confdefs.h. */
28115 /* Override any GCC internal prototype to avoid an error.
28116 Use char because int might match the return type of a GCC
28117 builtin and then its argument prototype would still apply. */
28125 return acltotext ();
28130 if ac_fn_c_try_link "$LINENO"; then :
28131 ac_cv_lib_sec_acltotext=yes
28133 ac_cv_lib_sec_acltotext=no
28135 rm -f core conftest.err conftest.$ac_objext \
28136 conftest$ac_exeext conftest.$ac_ext
28137 LIBS=$ac_check_lib_save_LIBS
28139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28140 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28141 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
28144 FDLIBS="-lsec $FDLIBS"
28146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28147 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28148 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
28149 $as_echo_n "(cached) " >&6
28151 ac_check_lib_save_LIBS=$LIBS
28153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28154 /* end confdefs.h. */
28156 /* Override any GCC internal prototype to avoid an error.
28157 Use char because int might match the return type of a GCC
28158 builtin and then its argument prototype would still apply. */
28162 char acl_totext ();
28166 return acl_totext ();
28171 if ac_fn_c_try_link "$LINENO"; then :
28172 ac_cv_lib_sec_acl_totext=yes
28174 ac_cv_lib_sec_acl_totext=no
28176 rm -f core conftest.err conftest.$ac_objext \
28177 conftest$ac_exeext conftest.$ac_ext
28178 LIBS=$ac_check_lib_save_LIBS
28180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28181 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28182 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
28184 have_extended_acl=yes
28206 if test x$support_acl = xyes -a $have_acl != yes; then
28207 as_fn_error "acl support explicitly enabled but no supported acl implementation found,
28208 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28210 if test $have_acl = yes; then
28212 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28216 if test $have_extended_acl = yes; then
28218 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28225 # Check whether --enable-xattr was given.
28226 if test "${enable_xattr+set}" = set; then :
28227 enableval=$enable_xattr;
28228 if test x$enableval = xyes; then
28230 elif test x$enableval = xno; then
28239 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28240 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28241 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
28243 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28248 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28249 if test "x$ac_cv_header_libutil_h" = x""yes; then :
28251 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28256 for ac_func in extattr_get_link extattr_set_link extattr_list_link
28258 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28259 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28260 eval as_val=\$$as_ac_var
28261 if test "x$as_val" = x""yes; then :
28262 cat >>confdefs.h <<_ACEOF
28263 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28268 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28271 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28274 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28282 if test $have_xattr = no; then
28283 for ac_func in extattr_get_file extattr_set_file extattr_list_file
28285 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28286 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28287 eval as_val=\$$as_ac_var
28288 if test "x$as_val" = x""yes; then :
28289 cat >>confdefs.h <<_ACEOF
28290 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28295 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28298 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28301 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28310 if test $have_xattr = yes; then
28311 have_extattr_string_in_libc=no
28312 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28314 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28315 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28316 eval as_val=\$$as_ac_var
28317 if test "x$as_val" = x""yes; then :
28318 cat >>confdefs.h <<_ACEOF
28319 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28322 have_extattr_string_in_libc=yes
28324 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28327 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28335 if test $have_extattr_string_in_libc = no; then
28336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28337 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28338 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
28339 $as_echo_n "(cached) " >&6
28341 ac_check_lib_save_LIBS=$LIBS
28342 LIBS="-lutil $LIBS"
28343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28344 /* end confdefs.h. */
28346 /* Override any GCC internal prototype to avoid an error.
28347 Use char because int might match the return type of a GCC
28348 builtin and then its argument prototype would still apply. */
28352 char extattr_namespace_to_string extattr_string_to_namespace ();
28356 return extattr_namespace_to_string extattr_string_to_namespace ();
28361 if ac_fn_c_try_link "$LINENO"; then :
28362 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28364 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28366 rm -f core conftest.err conftest.$ac_objext \
28367 conftest$ac_exeext conftest.$ac_ext
28368 LIBS=$ac_check_lib_save_LIBS
28370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28371 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28372 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
28375 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28378 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28380 FDLIBS="-lutil $FDLIBS"
28388 if test $have_xattr = no; then
28389 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
28390 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
28392 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
28397 for ac_func in llistxattr lgetxattr lsetxattr
28399 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28400 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28401 eval as_val=\$$as_ac_var
28402 if test "x$as_val" = x""yes; then :
28403 cat >>confdefs.h <<_ACEOF
28404 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28409 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
28412 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
28415 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
28423 if test $have_xattr = no; then
28424 for ac_func in listxattr getxattr setxattr
28426 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28427 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28428 eval as_val=\$$as_ac_var
28429 if test "x$as_val" = x""yes; then :
28430 cat >>confdefs.h <<_ACEOF
28431 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28436 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
28439 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
28442 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
28452 if test $have_xattr = no; then
28453 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
28454 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
28456 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
28461 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
28462 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
28464 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
28469 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
28470 if test "x$ac_cv_header_attr_h" = x""yes; then :
28472 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
28478 for ac_func in openat fstatat unlinkat fchownat futimesat
28480 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28481 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28482 eval as_val=\$$as_ac_var
28483 if test "x$as_val" = x""yes; then :
28484 cat >>confdefs.h <<_ACEOF
28485 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28490 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
28493 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
28496 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
28499 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
28502 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
28510 if test $have_xattr = yes; then
28511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
28512 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
28513 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
28514 $as_echo_n "(cached) " >&6
28516 ac_check_lib_save_LIBS=$LIBS
28517 LIBS="-lnvpair $LIBS"
28518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28519 /* end confdefs.h. */
28521 /* Override any GCC internal prototype to avoid an error.
28522 Use char because int might match the return type of a GCC
28523 builtin and then its argument prototype would still apply. */
28527 char nvlist_next_nvpair ();
28531 return nvlist_next_nvpair ();
28536 if ac_fn_c_try_link "$LINENO"; then :
28537 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
28539 ac_cv_lib_nvpair_nvlist_next_nvpair=no
28541 rm -f core conftest.err conftest.$ac_objext \
28542 conftest$ac_exeext conftest.$ac_ext
28543 LIBS=$ac_check_lib_save_LIBS
28545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
28546 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
28547 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
28550 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
28552 FDLIBS="-lnvpair $FDLIBS"
28560 if test x$support_xattr = xyes -a $have_xattr != yes; then
28561 as_fn_error "xattr support explicitly enabled but no supported xattr implementation found,
28562 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
28564 if test $have_xattr = yes; then
28566 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
28573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
28574 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
28575 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
28576 $as_echo_n "(cached) " >&6
28578 ac_check_lib_save_LIBS=$LIBS
28579 LIBS="-lpthread $LIBS"
28580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28581 /* end confdefs.h. */
28583 /* Override any GCC internal prototype to avoid an error.
28584 Use char because int might match the return type of a GCC
28585 builtin and then its argument prototype would still apply. */
28589 char pthread_create ();
28593 return pthread_create ();
28598 if ac_fn_c_try_link "$LINENO"; then :
28599 ac_cv_lib_pthread_pthread_create=yes
28601 ac_cv_lib_pthread_pthread_create=no
28603 rm -f core conftest.err conftest.$ac_objext \
28604 conftest$ac_exeext conftest.$ac_ext
28605 LIBS=$ac_check_lib_save_LIBS
28607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
28608 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
28609 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
28610 PTHREAD_LIB="-lpthread"
28613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
28614 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
28615 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
28616 $as_echo_n "(cached) " >&6
28618 ac_check_lib_save_LIBS=$LIBS
28619 LIBS="-lpthreads $LIBS"
28620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28621 /* end confdefs.h. */
28623 /* Override any GCC internal prototype to avoid an error.
28624 Use char because int might match the return type of a GCC
28625 builtin and then its argument prototype would still apply. */
28629 char pthread_create ();
28633 return pthread_create ();
28638 if ac_fn_c_try_link "$LINENO"; then :
28639 ac_cv_lib_pthreads_pthread_create=yes
28641 ac_cv_lib_pthreads_pthread_create=no
28643 rm -f core conftest.err conftest.$ac_objext \
28644 conftest$ac_exeext conftest.$ac_ext
28645 LIBS=$ac_check_lib_save_LIBS
28647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
28648 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
28649 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
28650 PTHREAD_LIB="-lpthreads"
28653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
28654 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
28655 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
28656 $as_echo_n "(cached) " >&6
28658 ac_check_lib_save_LIBS=$LIBS
28660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28661 /* end confdefs.h. */
28663 /* Override any GCC internal prototype to avoid an error.
28664 Use char because int might match the return type of a GCC
28665 builtin and then its argument prototype would still apply. */
28669 char pthread_create ();
28673 return pthread_create ();
28678 if ac_fn_c_try_link "$LINENO"; then :
28679 ac_cv_lib_c_r_pthread_create=yes
28681 ac_cv_lib_c_r_pthread_create=no
28683 rm -f core conftest.err conftest.$ac_objext \
28684 conftest$ac_exeext conftest.$ac_ext
28685 LIBS=$ac_check_lib_save_LIBS
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
28688 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
28689 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
28690 PTHREAD_LIB="-lc_r"
28693 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
28694 if test "x$ac_cv_func_pthread_create" = x""yes; then :
28711 for ac_header in sys/prctl.h sys/capability.h
28713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28714 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28715 eval as_val=\$$as_ac_Header
28716 if test "x$as_val" = x""yes; then :
28717 cat >>confdefs.h <<_ACEOF
28718 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28725 for ac_func in prctl setreuid
28727 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28728 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28729 eval as_val=\$$as_ac_var
28730 if test "x$as_val" = x""yes; then :
28731 cat >>confdefs.h <<_ACEOF
28732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
28739 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
28740 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
28741 $as_echo_n "(cached) " >&6
28743 ac_check_lib_save_LIBS=$LIBS
28745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28746 /* end confdefs.h. */
28748 /* Override any GCC internal prototype to avoid an error.
28749 Use char because int might match the return type of a GCC
28750 builtin and then its argument prototype would still apply. */
28754 char cap_set_proc ();
28758 return cap_set_proc ();
28763 if ac_fn_c_try_link "$LINENO"; then :
28764 ac_cv_lib_cap_cap_set_proc=yes
28766 ac_cv_lib_cap_cap_set_proc=no
28768 rm -f core conftest.err conftest.$ac_objext \
28769 conftest$ac_exeext conftest.$ac_ext
28770 LIBS=$ac_check_lib_save_LIBS
28772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
28773 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
28774 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
28780 if test x$CAP_LIBS = x-lcap; then
28782 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
28788 $as_echo "#define FDLIBS 1" >>confdefs.h
28791 CFLAGS=${CFLAGS--O}
28793 if test x$have_gcc = xyes ; then
28794 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
28795 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
28797 LDFLAGS=${LDFLAGS--O}
28798 DB_LIBS="${SQL_LFLAGS}"
28799 CPPFLAGS="$CPPFLAGS"
28826 PFILES="platforms/Makefile"
28831 hostname=`uname -n | cut -d '.' -f 1`
28832 if test x${hostname} = x ; then
28833 hostname="localhost"
28835 ping -c 1 $hostname 2>/dev/null 1>/dev/null
28836 if test ! $? = 0; then
28837 hostname="localhost"
28840 case "$DISTNAME" in
28843 PSCMD="ps -e -o pid,comm"
28844 PFILES="${PFILES} \
28845 platforms/aix/Makefile"
28846 TAPEDRIVE="/dev/rmt0.1"
28850 PTHREAD_LIB="-lpthread -lexc"
28851 if test "${CC}" = "gcc" ; then
28858 TAPEDRIVE="/dev/nrmt0"
28861 DISTVER=`uname -a |awk '{print $3}'`
28862 TAPEDRIVE="/dev/nrmt0"
28863 PTHREAD_LIB="-pthread"
28864 CFLAGS="${CFLAGS} -pthread"
28865 PSCMD="ps -ax -o pid,command"
28868 PFILES="${PFILES} \
28869 platforms/bsdi/Makefile \
28870 platforms/bsdi/bacula-fd \
28871 platforms/bsdi/bacula-sd \
28872 platforms/bsdi/bacula-dir"
28873 largefile_support="yes"
28876 DISTVER=`uname -a |awk '{print $3}'`
28877 TAPEDRIVE="/dev/nrst0"
28879 WCFLAGS="-mwindows"
28880 WLDFLAGS="-mwindows"
28884 TAPEDRIVE="/dev/nst0"
28885 PSCMD="ps -e -o pid,command"
28887 PFILES="${PFILES} \
28888 platforms/darwin/Makefile"
28892 TAPEDRIVE="/dev/nst0"
28893 PSCMD="ps -e -o pid,command"
28895 PFILES="${PFILES} \
28896 platforms/osx/Makefile"
28899 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
28902 DISTVER=`cat /etc/debian_version`
28903 if test -f /etc/lsb-release ; then
28905 if test "x$DISTRIB_ID" != "x" ; then
28906 DISTNAME=$DISTRIB_ID
28908 if test "x$DISTRIB_RELEASE" != "x" ; then
28909 DISTVER=$DISTRIB_RELEASE
28912 if test "$DISTNAME" = "Ubuntu" ; then
28915 TAPEDRIVE="/dev/nst0"
28916 PSCMD="ps -e -o pid,command"
28917 if test "$DISTNAME" = "ubuntu" ; then
28918 PFILES="${PFILES} \
28919 platforms/ubuntu/Makefile \
28920 platforms/ubuntu/bacula-fd \
28921 platforms/ubuntu/bacula-sd \
28922 platforms/ubuntu/bacula-dir"
28924 PFILES="${PFILES} \
28925 platforms/debian/Makefile \
28926 platforms/debian/bacula-fd \
28927 platforms/debian/bacula-sd \
28928 platforms/debian/bacula-dir"
28932 DISTVER=`uname -a |awk '{print $3}'`
28933 VER=`echo $DISTVER | cut -c 1`
28934 if test x$VER = x4 ; then
28935 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
28936 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
28940 TAPEDRIVE="/dev/nrsa0"
28941 PSCMD="ps -ax -o pid,command"
28942 PFILES="${PFILES} \
28943 platforms/freebsd/Makefile \
28944 platforms/freebsd/bacula-fd \
28945 platforms/freebsd/bacula-sd \
28946 platforms/freebsd/bacula-dir"
28947 largefile_support="yes"
28950 PSCMD="UNIX95=1; ps -e -o pid,comm"
28951 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
28953 TAPEDRIVE="/dev/rmt/0hnb"
28954 PTHREAD_LIB="-lpthread"
28955 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
28960 TAPEDRIVE="/dev/rmt/0cbn"
28961 PSCMD="ps -e -o pid,comm"
28962 PFILES="${PFILES} \
28963 platforms/irix/Makefile \
28964 platforms/irix/bacula-fd \
28965 platforms/irix/bacula-sd \
28966 platforms/irix/bacula-dir"
28969 DISTVER=`uname -a |awk '{print $3}'`
28972 TAPEDRIVE="/dev/nrst0"
28973 PSCMD="ps -ax -o pid,command"
28974 PTHREAD_LIB="-pthread"
28975 CFLAGS="${CFLAGS} -pthread"
28978 DISTVER=`uname -a |awk '{print $3}'`
28981 TAPEDRIVE="/dev/nrst0"
28982 PSCMD="ps -ax -o pid,command"
28983 PTHREAD_LIB="-pthread"
28984 CFLAGS="${CFLAGS} -pthread"
28985 PFILES="${PFILES} \
28986 platforms/openbsd/Makefile \
28987 platforms/openbsd/bacula-fd \
28988 platforms/openbsd/bacula-sd \
28989 platforms/openbsd/bacula-dir"
28992 if test -f /etc/whitebox-release ; then
28993 f=/etc/whitebox-release
28995 f=/etc/redhat-release
28997 if test `cat $f | grep release |\
28998 cut -f 3 -d ' '`x = "Enterprise"x ; then
28999 DISTVER="Enterprise "`cat $f | grep release |\
29002 DISTVER=`cat /etc/redhat-release | grep release |\
29005 TAPEDRIVE="/dev/nst0"
29006 PSCMD="ps -e -o pid,command"
29007 PFILES="${PFILES} \
29008 platforms/redhat/Makefile \
29009 platforms/redhat/bacula-fd \
29010 platforms/redhat/bacula-sd \
29011 platforms/redhat/bacula-dir
29015 DISTVER=`cat /etc/mandrake-release | grep release |\
29017 TAPEDRIVE="/dev/nst0"
29018 PSCMD="ps -e -o pid,command"
29019 PFILES="${PFILES} \
29020 platforms/mandrake/Makefile \
29021 platforms/mandrake/bacula-fd \
29022 platforms/mandrake/bacula-sd \
29023 platforms/mandrake/bacula-dir \
29024 platforms/mandrake/bacula.spec \
29028 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29029 TAPEDRIVE="/dev/nst0"
29030 PSCMD="ps -e -o pid,command"
29031 PFILES="${PFILES} \
29032 platforms/gentoo/Makefile \
29033 platforms/gentoo/bacula-init \
29034 platforms/gentoo/bacula-fd \
29035 platforms/gentoo/bacula-sd \
29036 platforms/gentoo/bacula-dir"
29039 DISTVER=`cat /etc/slackware-version`
29040 TAPEDRIVE="/dev/nst0"
29041 PSCMD="ps -e -o pid,command"
29042 PFILES="${PFILES} \
29043 platforms/slackware/Makefile \
29044 platforms/slackware/rc.bacula-fd \
29045 platforms/slackware/rc.bacula-sd \
29046 platforms/slackware/rc.bacula-dir\
29047 platforms/slackware/functions.bacula"
29051 TAPEDRIVE="/dev/rmt/0cbn"
29052 PSCMD="ps -e -o pid,comm"
29053 PFILES="${PFILES} \
29054 platforms/solaris/Makefile \
29055 platforms/solaris/bacula-fd \
29056 platforms/solaris/bacula-sd \
29057 platforms/solaris/bacula-dir"
29058 if test x$DISTVER = x5.6 ; then
29059 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29062 LIBS="$LIBS -lresolv"
29065 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29067 TAPEDRIVE="/dev/nst0"
29068 PSCMD="ps -e -o pid,command"
29069 PFILES="${PFILES} \
29070 platforms/suse/Makefile \
29071 platforms/suse/bacula-fd \
29072 platforms/suse/bacula-sd \
29073 platforms/suse/bacula-dir \
29074 platforms/suse/bacula \
29075 platforms/suse/bacula.spec"
29080 TAPEDRIVE="/dev/nst0"
29081 PSCMD="ps -e -o pid,command"
29082 PFILES="${PFILES} \
29083 platforms/suse/Makefile \
29084 platforms/suse/bacula-fd \
29085 platforms/suse/bacula-sd \
29086 platforms/suse/bacula-dir"
29090 TAPEDRIVE="/dev/nst0"
29093 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29099 LIBS="$PTHREAD_LIB $LIBS"
29101 cat >>confdefs.h <<_ACEOF
29105 cat >>confdefs.h <<_ACEOF
29116 MCOMMON=./autoconf/Make.common
29119 if test "x${subsysdir}" = "x${sbindir}" ; then
29122 echo "You have set both --sbindir and --with-subsys-dir"
29123 echo " equal to: ${subsysdir} "
29124 echo "This is not permitted. Please reconfigure."
29126 echo "Aborting configuration ..."
29132 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/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_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database 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 examples/nagios/check_bacula/Makefile $PFILES"
29134 ac_config_commands="$ac_config_commands default"
29136 cat >confcache <<\_ACEOF
29137 # This file is a shell script that caches the results of configure
29138 # tests run on this system so they can be shared between configure
29139 # scripts and configure runs, see configure's option --config-cache.
29140 # It is not useful on other systems. If it contains results you don't
29141 # want to keep, you may remove or edit it.
29143 # config.status only pays attention to the cache file if you give it
29144 # the --recheck option to rerun configure.
29146 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29147 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29148 # following values.
29152 # The following way of writing the cache mishandles newlines in values,
29153 # but we know of no workaround that is simple, portable, and efficient.
29154 # So, we kill variables containing newlines.
29155 # Ultrix sh set writes to stderr and can't be redirected directly,
29156 # and sets the high bit in the cache file unless we assign to the vars.
29158 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29159 eval ac_val=\$$ac_var
29163 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29164 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29167 _ | IFS | as_nl) ;; #(
29168 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29169 *) { eval $ac_var=; unset $ac_var;} ;;
29175 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29176 *${as_nl}ac_space=\ *)
29177 # `set' does not quote correctly, so add quotes: double-quote
29178 # substitution turns \\\\ into \\, and sed turns \\ into \.
29181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29184 # `set' quotes correctly as required by POSIX, so do not add quotes.
29185 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29194 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29196 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29198 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29199 if test -w "$cache_file"; then
29200 test "x$cache_file" != "x/dev/null" &&
29201 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29202 $as_echo "$as_me: updating cache $cache_file" >&6;}
29203 cat confcache >$cache_file
29205 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29206 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29211 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29212 # Let make expand exec_prefix.
29213 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29215 DEFS=-DHAVE_CONFIG_H
29219 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29220 # 1. Remove the extension, and $U if already installed.
29221 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29222 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29223 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29224 # will be set to the directory where LIBOBJS objects are built.
29225 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29226 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29228 LIBOBJS=$ac_libobjs
29230 LTLIBOBJS=$ac_ltlibobjs
29234 : ${CONFIG_STATUS=./config.status}
29236 ac_clean_files_save=$ac_clean_files
29237 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29238 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29239 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29241 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29243 # Generated by $as_me.
29244 # Run this file to recreate the current configuration.
29245 # Compiler output produced by configure, useful for debugging
29246 # configure, is in config.log if it exists.
29249 ac_cs_recheck=false
29252 SHELL=\${CONFIG_SHELL-$SHELL}
29255 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29256 ## -------------------- ##
29257 ## M4sh Initialization. ##
29258 ## -------------------- ##
29260 # Be more Bourne compatible
29261 DUALCASE=1; export DUALCASE # for MKS sh
29262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29265 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29266 # is contrary to our usage. Disable this feature.
29267 alias -g '${1+"$@"}'='"$@"'
29268 setopt NO_GLOB_SUBST
29270 case `(set -o) 2>/dev/null` in #(
29282 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29283 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29284 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29285 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29286 # Prefer a ksh shell builtin over an external printf program on Solaris,
29287 # but without wasting forks for bash or zsh.
29288 if test -z "$BASH_VERSION$ZSH_VERSION" \
29289 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29290 as_echo='print -r --'
29291 as_echo_n='print -rn --'
29292 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29293 as_echo='printf %s\n'
29294 as_echo_n='printf %s'
29296 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29297 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29298 as_echo_n='/usr/ucb/echo -n'
29300 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29301 as_echo_n_body='eval
29305 expr "X$arg" : "X\\(.*\\)$as_nl";
29306 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29308 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29310 export as_echo_n_body
29311 as_echo_n='sh -c $as_echo_n_body as_echo'
29313 export as_echo_body
29314 as_echo='sh -c $as_echo_body as_echo'
29317 # The user is always right.
29318 if test "${PATH_SEPARATOR+set}" != set; then
29320 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29321 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29328 # We need space, tab and new line, in precisely that order. Quoting is
29329 # there to prevent editors from complaining about space-tab.
29330 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29331 # splitting by setting IFS to empty value.)
29334 # Find who we are. Look in the path if we contain no directory separator.
29336 *[\\/]* ) as_myself=$0 ;;
29337 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29338 for as_dir in $PATH
29341 test -z "$as_dir" && as_dir=.
29342 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29348 # We did not find ourselves, most probably we were run as `sh COMMAND'
29349 # in which case we are not to be found in the path.
29350 if test "x$as_myself" = x; then
29353 if test ! -f "$as_myself"; then
29354 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29358 # Unset variables that we do not need and which cause bugs (e.g. in
29359 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29360 # suppresses any "Segmentation fault" message there. '((' could
29361 # trigger a bug in pdksh 5.2.14.
29362 for as_var in BASH_ENV ENV MAIL MAILPATH
29363 do eval test x\${$as_var+set} = xset \
29364 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29377 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29380 # as_fn_error ERROR [LINENO LOG_FD]
29381 # ---------------------------------
29382 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29383 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29384 # script with status $?, using 1 if that was 0.
29387 as_status=$?; test $as_status -eq 0 && as_status=1
29389 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29390 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29392 $as_echo "$as_me: error: $1" >&2
29393 as_fn_exit $as_status
29397 # as_fn_set_status STATUS
29398 # -----------------------
29399 # Set $? to STATUS, without forking.
29400 as_fn_set_status ()
29403 } # as_fn_set_status
29405 # as_fn_exit STATUS
29406 # -----------------
29407 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29411 as_fn_set_status $1
29417 # Portably unset VAR.
29420 { eval $1=; unset $1;}
29422 as_unset=as_fn_unset
29423 # as_fn_append VAR VALUE
29424 # ----------------------
29425 # Append the text in VALUE to the end of the definition contained in VAR. Take
29426 # advantage of any shell optimizations that allow amortized linear growth over
29427 # repeated appends, instead of the typical quadratic growth present in naive
29429 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29430 eval 'as_fn_append ()
29441 # as_fn_arith ARG...
29442 # ------------------
29443 # Perform arithmetic evaluation on the ARGs, and store the result in the
29444 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29445 # must be portable across $(()) and expr.
29446 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29447 eval 'as_fn_arith ()
29454 as_val=`expr "$@" || test $? -eq 1`
29459 if expr a : '\(a\)' >/dev/null 2>&1 &&
29460 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29466 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29467 as_basename=basename
29472 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29478 as_me=`$as_basename -- "$0" ||
29479 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29480 X"$0" : 'X\(//\)$' \| \
29481 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29483 sed '/^.*\/\([^/][^/]*\)\/*$/{
29497 # Avoid depending upon Character Ranges.
29498 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29499 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29500 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29501 as_cr_digits='0123456789'
29502 as_cr_alnum=$as_cr_Letters$as_cr_digits
29504 ECHO_C= ECHO_N= ECHO_T=
29505 case `echo -n x` in #(((((
29507 case `echo 'xy\c'` in
29508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29517 rm -f conf$$ conf$$.exe conf$$.file
29518 if test -d conf$$.dir; then
29519 rm -f conf$$.dir/conf$$.file
29522 mkdir conf$$.dir 2>/dev/null
29524 if (echo >conf$$.file) 2>/dev/null; then
29525 if ln -s conf$$.file conf$$ 2>/dev/null; then
29527 # ... but there are two gotchas:
29528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29530 # In both cases, we have to default to `cp -p'.
29531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29533 elif ln conf$$.file conf$$ 2>/dev/null; then
29541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29542 rmdir conf$$.dir 2>/dev/null
29547 # Create "$as_dir" as a directory, including parents if necessary.
29552 -*) as_dir=./$as_dir;;
29554 test -d "$as_dir" || eval $as_mkdir_p || {
29558 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29559 *) as_qdir=$as_dir;;
29561 as_dirs="'$as_qdir' $as_dirs"
29562 as_dir=`$as_dirname -- "$as_dir" ||
29563 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29564 X"$as_dir" : 'X\(//\)[^/]' \| \
29565 X"$as_dir" : 'X\(//\)$' \| \
29566 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29567 $as_echo X"$as_dir" |
29568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29572 /^X\(\/\/\)[^/].*/{
29585 test -d "$as_dir" && break
29587 test -z "$as_dirs" || eval "mkdir $as_dirs"
29588 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29592 if mkdir -p . 2>/dev/null; then
29593 as_mkdir_p='mkdir -p "$as_dir"'
29595 test -d ./-p && rmdir ./-p
29599 if test -x / >/dev/null 2>&1; then
29600 as_test_x='test -x'
29602 if ls -dL / >/dev/null 2>&1; then
29609 if test -d "$1"; then
29615 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29616 ???[sx]*):;;*)false;;esac;fi
29620 as_executable_p=$as_test_x
29622 # Sed expression to map a string onto a valid CPP name.
29623 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29625 # Sed expression to map a string onto a valid variable name.
29626 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29630 ## ----------------------------------- ##
29631 ## Main body of $CONFIG_STATUS script. ##
29632 ## ----------------------------------- ##
29634 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29637 # Save the log message, to keep $0 and so on meaningful, and to
29638 # report actual input values of CONFIG_FILES etc. instead of their
29639 # values after options handling.
29641 This file was extended by $as_me, which was
29642 generated by GNU Autoconf 2.65. Invocation command line was
29644 CONFIG_FILES = $CONFIG_FILES
29645 CONFIG_HEADERS = $CONFIG_HEADERS
29646 CONFIG_LINKS = $CONFIG_LINKS
29647 CONFIG_COMMANDS = $CONFIG_COMMANDS
29650 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29655 case $ac_config_files in *"
29656 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29659 case $ac_config_headers in *"
29660 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29665 # Files that config.status was made for.
29666 config_files="$ac_config_files"
29667 config_headers="$ac_config_headers"
29668 config_commands="$ac_config_commands"
29672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29674 \`$as_me' instantiates files and other configuration actions
29675 from templates according to the current configuration. Unless the files
29676 and actions are specified as TAGs, all are instantiated by default.
29678 Usage: $0 [OPTION]... [TAG]...
29680 -h, --help print this help, then exit
29681 -V, --version print version number and configuration settings, then exit
29682 --config print configuration, then exit
29683 -q, --quiet, --silent
29684 do not print progress messages
29685 -d, --debug don't remove temporary files
29686 --recheck update $as_me by reconfiguring in the same conditions
29687 --file=FILE[:TEMPLATE]
29688 instantiate the configuration file FILE
29689 --header=FILE[:TEMPLATE]
29690 instantiate the configuration header FILE
29692 Configuration files:
29695 Configuration headers:
29698 Configuration commands:
29701 Report bugs to the package provider."
29704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29705 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29708 configured by $0, generated by GNU Autoconf 2.65,
29709 with options \\"\$ac_cs_config\\"
29711 Copyright (C) 2009 Free Software Foundation, Inc.
29712 This config.status script is free software; the Free Software Foundation
29713 gives unlimited permission to copy, distribute and modify it."
29719 test -n "\$AWK" || AWK=awk
29722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29723 # The default lists apply if the user does not specify any file.
29729 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29730 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29741 # Handling of the options.
29742 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29744 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29745 $as_echo "$ac_cs_version"; exit ;;
29746 --config | --confi | --conf | --con | --co | --c )
29747 $as_echo "$ac_cs_config"; exit ;;
29748 --debug | --debu | --deb | --de | --d | -d )
29750 --file | --fil | --fi | --f )
29753 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29755 as_fn_append CONFIG_FILES " '$ac_optarg'"
29756 ac_need_defaults=false;;
29757 --header | --heade | --head | --hea )
29760 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29762 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29763 ac_need_defaults=false;;
29765 # Conflict between --help and --header
29766 as_fn_error "ambiguous option: \`$1'
29767 Try \`$0 --help' for more information.";;
29768 --help | --hel | -h )
29769 $as_echo "$ac_cs_usage"; exit ;;
29770 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29771 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29774 # This is an error.
29775 -*) as_fn_error "unrecognized option: \`$1'
29776 Try \`$0 --help' for more information." ;;
29778 *) as_fn_append ac_config_targets " $1"
29779 ac_need_defaults=false ;;
29785 ac_configure_extra_args=
29787 if $ac_cs_silent; then
29789 ac_configure_extra_args="$ac_configure_extra_args --silent"
29793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29794 if \$ac_cs_recheck; then
29795 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29797 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29798 CONFIG_SHELL='$SHELL'
29799 export CONFIG_SHELL
29804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29808 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29809 ## Running $as_me. ##
29815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29821 # The HP-UX ksh and POSIX shell print the target directory to stdout
29822 # if CDPATH is set.
29823 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29825 sed_quote_subst='$sed_quote_subst'
29826 double_quote_subst='$double_quote_subst'
29827 delay_variable_subst='$delay_variable_subst'
29828 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
29829 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
29830 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
29831 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
29832 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
29833 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
29834 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
29835 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
29836 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
29837 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
29838 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
29839 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
29840 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
29841 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
29842 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
29843 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
29844 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
29845 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
29846 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
29847 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
29848 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
29849 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
29850 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
29851 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
29852 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
29853 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
29854 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
29855 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29856 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
29857 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
29858 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
29859 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
29860 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29861 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
29862 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
29863 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29864 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29865 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29866 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
29867 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29868 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
29869 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
29870 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
29871 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
29872 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"`'
29873 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"`'
29874 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
29875 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
29876 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
29877 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
29878 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
29879 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
29880 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
29881 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
29882 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
29883 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
29884 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
29885 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
29886 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
29887 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
29888 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
29889 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
29890 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29891 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29892 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
29893 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
29894 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29895 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29896 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
29897 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29898 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29899 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29900 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29901 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29902 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29903 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
29904 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29905 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29906 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29907 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
29908 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
29909 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
29910 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
29911 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
29912 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29913 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
29914 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
29915 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
29916 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
29917 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
29918 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29919 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29920 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29921 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29922 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
29923 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
29924 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29925 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
29926 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
29927 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29928 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29929 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
29930 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29931 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
29932 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29933 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29934 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29935 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29936 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
29937 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
29938 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29939 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29940 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
29941 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
29942 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
29943 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
29944 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
29945 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
29946 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
29947 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29948 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29949 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
29950 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
29951 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
29952 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29953 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29954 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29955 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29956 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29957 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29958 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29959 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29960 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29961 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29962 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29963 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29964 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29965 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29966 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29967 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29968 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29969 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29970 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29971 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29972 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29973 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29974 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29975 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29976 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29977 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29978 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29979 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29980 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29981 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29982 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29983 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29984 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29985 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29986 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29987 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29988 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29989 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29990 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29991 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29992 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29993 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29994 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29995 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29996 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29997 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29998 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30001 LTCFLAGS='$LTCFLAGS'
30002 compiler='$compiler_DEFAULT'
30004 # Quote evaled strings.
30016 deplibs_check_method \
30025 lt_cv_sys_global_symbol_pipe \
30026 lt_cv_sys_global_symbol_to_cdecl \
30027 lt_cv_sys_global_symbol_to_c_name_address \
30028 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30031 lt_prog_compiler_no_builtin_flag \
30032 lt_prog_compiler_wl \
30033 lt_prog_compiler_pic \
30034 lt_prog_compiler_static \
30035 lt_cv_prog_compiler_c_o \
30043 export_dynamic_flag_spec \
30044 whole_archive_flag_spec \
30045 compiler_needs_object \
30047 allow_undefined_flag \
30048 no_undefined_flag \
30049 hardcode_libdir_flag_spec \
30050 hardcode_libdir_flag_spec_ld \
30051 hardcode_libdir_separator \
30056 variables_saved_for_relink \
30058 library_names_spec \
30063 compiler_lib_search_dirs \
30068 compiler_lib_search_path \
30071 lt_prog_compiler_no_builtin_flag_CXX \
30072 lt_prog_compiler_wl_CXX \
30073 lt_prog_compiler_pic_CXX \
30074 lt_prog_compiler_static_CXX \
30075 lt_cv_prog_compiler_c_o_CXX \
30076 export_dynamic_flag_spec_CXX \
30077 whole_archive_flag_spec_CXX \
30078 compiler_needs_object_CXX \
30080 allow_undefined_flag_CXX \
30081 no_undefined_flag_CXX \
30082 hardcode_libdir_flag_spec_CXX \
30083 hardcode_libdir_flag_spec_ld_CXX \
30084 hardcode_libdir_separator_CXX \
30085 fix_srcfile_path_CXX \
30086 exclude_expsyms_CXX \
30087 include_expsyms_CXX \
30088 file_list_spec_CXX \
30089 compiler_lib_search_dirs_CXX \
30090 predep_objects_CXX \
30091 postdep_objects_CXX \
30094 compiler_lib_search_path_CXX; do
30095 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30096 *[\\\\\\\`\\"\\\$]*)
30097 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30100 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30105 # Double-quote double-evaled strings.
30106 for var in reload_cmds \
30107 old_postinstall_cmds \
30108 old_postuninstall_cmds \
30110 extract_expsyms_cmds \
30111 old_archive_from_new_cmds \
30112 old_archive_from_expsyms_cmds \
30114 archive_expsym_cmds \
30116 module_expsym_cmds \
30117 export_symbols_cmds \
30120 postuninstall_cmds \
30122 sys_lib_search_path_spec \
30123 sys_lib_dlsearch_path_spec \
30124 old_archive_cmds_CXX \
30125 old_archive_from_new_cmds_CXX \
30126 old_archive_from_expsyms_cmds_CXX \
30128 archive_expsym_cmds_CXX \
30130 module_expsym_cmds_CXX \
30131 export_symbols_cmds_CXX \
30132 prelink_cmds_CXX; do
30133 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30134 *[\\\\\\\`\\"\\\$]*)
30135 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30138 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30143 # Fix-up fallback echo if it was mangled by the above quoting rules.
30145 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30149 ac_aux_dir='$ac_aux_dir'
30150 xsi_shell='$xsi_shell'
30151 lt_shell_append='$lt_shell_append'
30153 # See if we are running on zsh, and set the options which allow our
30154 # commands through without removal of \ escapes INIT.
30155 if test -n "\${ZSH_VERSION+set}" ; then
30156 setopt NO_GLOB_SUBST
30162 TIMESTAMP='$TIMESTAMP'
30170 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30171 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30173 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30174 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30175 LINGUAS="${LINGUAS-%UNSET%}"
30180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30182 # Handling of arguments.
30183 for ac_config_target in $ac_config_targets
30185 case $ac_config_target in
30186 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30187 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30188 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30189 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30190 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30191 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30192 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30193 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30194 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30195 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30196 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30197 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30198 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30199 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30200 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30201 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30202 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30203 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30204 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30205 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30206 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30207 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30208 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30209 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30210 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30211 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30212 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30213 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30214 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30215 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30216 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30217 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30218 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30219 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30220 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30221 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30222 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30223 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30224 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30225 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30226 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30227 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30228 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30229 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30230 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30231 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30232 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30233 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30234 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30235 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30236 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30237 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30238 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30239 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30240 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30241 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30242 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30243 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30244 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30245 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30246 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30247 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30248 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30249 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30250 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30251 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30252 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30253 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30254 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30255 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30256 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30257 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30258 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30259 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30260 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30261 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30262 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30263 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30264 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30265 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30266 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30267 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30268 "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
30269 "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
30270 "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
30271 "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
30272 "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
30273 "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
30274 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30275 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30276 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30277 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30278 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30279 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30280 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30281 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30282 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30283 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30284 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30285 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30286 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30287 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30288 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30289 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30290 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30291 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30292 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30293 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30294 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30295 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30296 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30297 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30298 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30299 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30300 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30301 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30302 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30303 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30305 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30310 # If the user did not use the arguments to specify the items to instantiate,
30311 # then the envvar interface is used. Set only those that are not.
30312 # We use the long form for the default assignment because of an extremely
30313 # bizarre bug on SunOS 4.1.3.
30314 if $ac_need_defaults; then
30315 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30316 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30317 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30320 # Have a temporary directory for convenience. Make it in the build tree
30321 # simply because there is no reason against having it here, and in addition,
30322 # creating and moving files from /tmp can sometimes cause problems.
30323 # Hook for its removal unless debugging.
30324 # Note that there is a small window in which the directory will not be cleaned:
30325 # after its creation but before its name has been assigned to `$tmp'.
30329 trap 'exit_status=$?
30330 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30332 trap 'as_fn_exit 1' 1 2 13 15
30334 # Create a (secure) tmp directory for tmp files.
30337 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30338 test -n "$tmp" && test -d "$tmp"
30341 tmp=./conf$$-$RANDOM
30342 (umask 077 && mkdir "$tmp")
30343 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30345 # Set up the scripts for CONFIG_FILES section.
30346 # No need to generate them if there are no CONFIG_FILES.
30347 # This happens for instance with `./config.status config.h'.
30348 if test -n "$CONFIG_FILES"; then
30350 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30351 ac_cs_awk_getline=:
30352 ac_cs_awk_pipe_init=
30353 ac_cs_awk_read_file='
30354 while ((getline aline < (F[key])) > 0)
30357 ac_cs_awk_pipe_fini=
30359 ac_cs_awk_getline=false
30360 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30361 ac_cs_awk_read_file='
30363 print "cat " F[key] " &&"
30364 '$ac_cs_awk_pipe_init
30365 # The final `:' finishes the AND list.
30366 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30368 ac_cr=`echo X | tr X '\015'`
30369 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30370 # But we know of no other shell where ac_cr would be empty at this
30371 # point, so we can use a bashism as a fallback.
30372 if test "x$ac_cr" = x; then
30373 eval ac_cr=\$\'\\r\'
30375 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30376 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30379 ac_cs_awk_cr=$ac_cr
30382 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30385 # Create commands to substitute file output variables.
30387 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30388 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30389 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30392 } >conf$$files.sh &&
30393 . ./conf$$files.sh ||
30394 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30395 rm -f conf$$files.sh
30398 echo "cat >conf$$subs.awk <<_ACEOF" &&
30399 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30401 } >conf$$subs.sh ||
30402 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30403 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30405 for ac_last_try in false false false false false :; do
30406 . ./conf$$subs.sh ||
30407 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30409 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30410 if test $ac_delim_n = $ac_delim_num; then
30412 elif $ac_last_try; then
30413 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30415 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30418 rm -f conf$$subs.sh
30420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30421 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30425 s/^/S["/; s/!.*/"]=/
30435 s/\(.\{148\}\)..*/\1/
30437 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30442 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30449 s/\(.\{148\}\)..*/\1/
30451 s/["\\]/\\&/g; s/^/"/; s/$/"/
30455 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30460 ' <conf$$subs.awk | sed '
30465 ' >>$CONFIG_STATUS || ac_write_fail=1
30466 rm -f conf$$subs.awk
30467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30469 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30470 for (key in S) S_is_set[key] = 1
30472 \$ac_cs_awk_pipe_init
30476 nfields = split(line, field, "@")
30478 len = length(field[1])
30479 for (i = 2; i < nfields; i++) {
30481 keylen = length(key)
30482 if (S_is_set[key]) {
30484 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30485 len += length(value) + length(field[++i])
30490 if (nfields == 3 && !substed) {
30492 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30493 \$ac_cs_awk_read_file
30499 \$ac_cs_awk_pipe_fini
30502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30503 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30504 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30507 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30508 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30511 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30512 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30513 # trailing colons and then remove the whole line if VPATH becomes empty
30514 # (actually we leave an empty line to preserve line numbers).
30515 if test "x$srcdir" = x.; then
30516 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30517 s/:*\$(srcdir):*/:/
30518 s/:*\${srcdir}:*/:/
30520 s/^\([^=]*=[ ]*\):*/\1/
30526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30527 fi # test -n "$CONFIG_FILES"
30529 # Set up the scripts for CONFIG_HEADERS section.
30530 # No need to generate them if there are no CONFIG_HEADERS.
30531 # This happens for instance with `./config.status Makefile'.
30532 if test -n "$CONFIG_HEADERS"; then
30533 cat >"$tmp/defines.awk" <<\_ACAWK ||
30537 # Transform confdefs.h into an awk script `defines.awk', embedded as
30538 # here-document in config.status, that substitutes the proper values into
30539 # config.h.in to produce config.h.
30541 # Create a delimiter string that does not exist in confdefs.h, to ease
30542 # handling of long lines.
30544 for ac_last_try in false false :; do
30545 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30546 if test -z "$ac_t"; then
30548 elif $ac_last_try; then
30549 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30551 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30555 # For the awk script, D is an array of macro values keyed by name,
30556 # likewise P contains macro parameters if any. Preserve backslash
30557 # newline sequences.
30559 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30561 s/.\{148\}/&'"$ac_delim"'/g
30564 s/^[ ]*#[ ]*define[ ][ ]*/ /
30571 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30573 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30577 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30578 D["\1"]=" \3\\\\\\n"\\/p
30580 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30585 s/.\{148\}/&'"$ac_delim"'/g
30590 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30593 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30595 ' <confdefs.h | sed '
30596 s/'"$ac_delim"'/"\\\
30597 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30600 for (key in D) D_is_set[key] = 1
30603 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30605 split(line, arg, " ")
30606 if (arg[1] == "#") {
30610 defundef = substr(arg[1], 2)
30613 split(mac1, mac2, "(") #)
30615 prefix = substr(line, 1, index(line, defundef) - 1)
30616 if (D_is_set[macro]) {
30617 # Preserve the white space surrounding the "#".
30618 print prefix "define", macro P[macro] D[macro]
30621 # Replace #undef with comments. This is necessary, for example,
30622 # in the case of _POSIX_SOURCE, which is predefined and required
30623 # on some systems where configure will not decide to define it.
30624 if (defundef == "undef") {
30625 print "/*", prefix defundef, macro, "*/"
30633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30634 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30635 fi # test -n "$CONFIG_HEADERS"
30638 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30643 :[FHLC]) ac_mode=$ac_tag; continue;;
30645 case $ac_mode$ac_tag in
30647 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30648 :[FH]-) ac_tag=-:-;;
30649 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30666 -) ac_f="$tmp/stdin";;
30667 *) # Look for the file first in the build tree, then in the source tree
30668 # (if the path is not absolute). The absolute path cannot be DOS-style,
30669 # because $ac_f cannot contain `:'.
30673 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30675 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30677 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30678 as_fn_append ac_file_inputs " '$ac_f'"
30681 # Let's still pretend it is `configure' which instantiates (i.e., don't
30682 # use $as_me), people would be surprised to read:
30683 # /* config.h. Generated by config.status. */
30684 configure_input='Generated from '`
30685 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30687 if test x"$ac_file" != x-; then
30688 configure_input="$ac_file. $configure_input"
30689 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30690 $as_echo "$as_me: creating $ac_file" >&6;}
30692 # Neutralize special characters interpreted by sed in replacement strings.
30693 case $configure_input in #(
30694 *\&* | *\|* | *\\* )
30695 ac_sed_conf_input=`$as_echo "$configure_input" |
30696 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30697 *) ac_sed_conf_input=$configure_input;;
30701 *:-:* | *:-) cat >"$tmp/stdin" \
30702 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30707 ac_dir=`$as_dirname -- "$ac_file" ||
30708 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30709 X"$ac_file" : 'X\(//\)[^/]' \| \
30710 X"$ac_file" : 'X\(//\)$' \| \
30711 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30712 $as_echo X"$ac_file" |
30713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30717 /^X\(\/\/\)[^/].*/{
30730 as_dir="$ac_dir"; as_fn_mkdir_p
30734 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30736 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30737 # A ".." for each directory in $ac_dir_suffix.
30738 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30739 case $ac_top_builddir_sub in
30740 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30741 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30744 ac_abs_top_builddir=$ac_pwd
30745 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30746 # for backward compatibility:
30747 ac_top_builddir=$ac_top_build_prefix
30750 .) # We are building in place.
30752 ac_top_srcdir=$ac_top_builddir_sub
30753 ac_abs_top_srcdir=$ac_pwd ;;
30754 [\\/]* | ?:[\\/]* ) # Absolute name.
30755 ac_srcdir=$srcdir$ac_dir_suffix;
30756 ac_top_srcdir=$srcdir
30757 ac_abs_top_srcdir=$srcdir ;;
30758 *) # Relative name.
30759 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30760 ac_top_srcdir=$ac_top_build_prefix$srcdir
30761 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30763 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30773 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30774 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30779 # If the template does not know about datarootdir, expand it.
30780 # FIXME: This hack should be removed a few years after 2.60.
30781 ac_datarootdir_hack=; ac_datarootdir_seen=
30792 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30793 *datarootdir*) ac_datarootdir_seen=yes;;
30794 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30796 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30799 ac_datarootdir_hack='
30800 s&@datadir@&$datadir&g
30801 s&@docdir@&$docdir&g
30802 s&@infodir@&$infodir&g
30803 s&@localedir@&$localedir&g
30804 s&@mandir@&$mandir&g
30805 s&\\\${datarootdir}&$datarootdir&g' ;;
30809 # Neutralize VPATH when `$srcdir' = `.'.
30810 # Shell code in configure.ac might set extrasub.
30811 # FIXME: do we really want to maintain this feature?
30812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30813 ac_sed_extra="$ac_vpsub
30816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30818 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30819 s|@configure_input@|$ac_sed_conf_input|;t t
30820 s&@top_builddir@&$ac_top_builddir_sub&;t t
30821 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30822 s&@srcdir@&$ac_srcdir&;t t
30823 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30824 s&@top_srcdir@&$ac_top_srcdir&;t t
30825 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30826 s&@builddir@&$ac_builddir&;t t
30827 s&@abs_builddir@&$ac_abs_builddir&;t t
30828 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30829 s&@INSTALL@&$ac_INSTALL&;t t
30830 $ac_datarootdir_hack
30832 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30833 if $ac_cs_awk_getline; then
30834 $AWK -f "$tmp/subs.awk"
30836 $AWK -f "$tmp/subs.awk" | $SHELL
30838 || as_fn_error "could not create $ac_file" "$LINENO" 5
30840 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30841 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30842 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30844 which seems to be undefined. Please make sure it is defined." >&5
30845 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30846 which seems to be undefined. Please make sure it is defined." >&2;}
30850 -) cat "$tmp/out" && rm -f "$tmp/out";;
30851 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30853 || as_fn_error "could not create $ac_file" "$LINENO" 5
30859 if test x"$ac_file" != x-; then
30861 $as_echo "/* $configure_input */" \
30862 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30863 } >"$tmp/config.h" \
30864 || as_fn_error "could not create $ac_file" "$LINENO" 5
30865 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30866 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30867 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30870 mv "$tmp/config.h" "$ac_file" \
30871 || as_fn_error "could not create $ac_file" "$LINENO" 5
30874 $as_echo "/* $configure_input */" \
30875 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30876 || as_fn_error "could not create -" "$LINENO" 5
30880 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30881 $as_echo "$as_me: executing $ac_file commands" >&6;}
30886 case $ac_file$ac_mode in
30889 # See if we are running on zsh, and set the options which allow our
30890 # commands through without removal of \ escapes.
30891 if test -n "${ZSH_VERSION+set}" ; then
30892 setopt NO_GLOB_SUBST
30895 cfgfile="${ofile}T"
30896 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30899 cat <<_LT_EOF >> "$cfgfile"
30902 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30903 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30904 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30905 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30907 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30908 # 2006, 2007, 2008 Free Software Foundation, Inc.
30909 # Written by Gordon Matzigkeit, 1996
30911 # This file is part of GNU Libtool.
30913 # GNU Libtool is free software; you can redistribute it and/or
30914 # modify it under the terms of the GNU General Public License as
30915 # published by the Free Software Foundation; either version 2 of
30916 # the License, or (at your option) any later version.
30918 # As a special exception to the GNU General Public License,
30919 # if you distribute this file as part of a program or library that
30920 # is built using GNU Libtool, you may include this file under the
30921 # same distribution terms that you use for the rest of that program.
30923 # GNU Libtool is distributed in the hope that it will be useful,
30924 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30925 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30926 # GNU General Public License for more details.
30928 # You should have received a copy of the GNU General Public License
30929 # along with GNU Libtool; see the file COPYING. If not, a copy
30930 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30931 # obtained by writing to the Free Software Foundation, Inc.,
30932 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30935 # The names of the tagged configurations supported by this script.
30936 available_tags="CXX "
30938 # ### BEGIN LIBTOOL CONFIG
30940 # Which release of libtool.m4 was used?
30941 macro_version=$macro_version
30942 macro_revision=$macro_revision
30944 # Whether or not to build shared libraries.
30945 build_libtool_libs=$enable_shared
30947 # Whether or not to build static libraries.
30948 build_old_libs=$enable_static
30950 # What type of objects to build.
30953 # Whether or not to optimize for fast installation.
30954 fast_install=$enable_fast_install
30957 host_alias=$host_alias
30961 # The build system.
30962 build_alias=$build_alias
30966 # A sed program that does not truncate output.
30969 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30970 Xsed="\$SED -e 1s/^X//"
30972 # A grep program that handles long lines.
30978 # A literal string matcher.
30981 # A BSD- or MS-compatible name lister.
30984 # Whether we need soft or hard links.
30987 # What is the maximum length of a command?
30988 max_cmd_len=$max_cmd_len
30990 # Object file suffix (normally "o").
30993 # Executable file suffix (normally "").
30996 # whether the shell understands "unset".
30999 # turn spaces into newlines.
31002 # turn newlines into spaces.
31005 # How to create reloadable object files.
31006 reload_flag=$lt_reload_flag
31007 reload_cmds=$lt_reload_cmds
31009 # An object symbol dumper.
31010 OBJDUMP=$lt_OBJDUMP
31012 # Method to check whether dependent libraries are shared objects.
31013 deplibs_check_method=$lt_deplibs_check_method
31015 # Command to use when deplibs_check_method == "file_magic".
31016 file_magic_cmd=$lt_file_magic_cmd
31020 AR_FLAGS=$lt_AR_FLAGS
31022 # A symbol stripping program.
31025 # Commands used to install an old-style archive.
31027 old_postinstall_cmds=$lt_old_postinstall_cmds
31028 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31033 # LTCC compiler flags.
31034 LTCFLAGS=$lt_CFLAGS
31036 # Take the output of nm and produce a listing of raw symbols and C names.
31037 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31039 # Transform the output of nm in a proper C declaration.
31040 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31042 # Transform the output of nm in a C name address pair.
31043 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31045 # Transform the output of nm in a C name address pair when lib prefix is needed.
31046 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31048 # The name of the directory that contains temporary libtool files.
31051 # Shell to use when invoking shell scripts.
31054 # An echo program that does not interpret backslashes.
31057 # Used to examine libraries when file_magic_cmd begins with "file".
31058 MAGIC_CMD=$MAGIC_CMD
31060 # Must we lock files when doing compilation?
31061 need_locks=$lt_need_locks
31063 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31064 DSYMUTIL=$lt_DSYMUTIL
31066 # Tool to change global to local symbols on Mac OS X.
31069 # Tool to manipulate fat objects and archives on Mac OS X.
31072 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31075 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31076 OTOOL64=$lt_OTOOL64
31078 # Old archive suffix (normally "a").
31081 # Shared library suffix (normally ".so").
31082 shrext_cmds=$lt_shrext_cmds
31084 # The commands to extract the exported symbol list from a shared archive.
31085 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31087 # Variables whose values should be saved in libtool wrapper scripts and
31088 # restored at link time.
31089 variables_saved_for_relink=$lt_variables_saved_for_relink
31091 # Do we need the "lib" prefix for modules?
31092 need_lib_prefix=$need_lib_prefix
31094 # Do we need a version for libraries?
31095 need_version=$need_version
31097 # Library versioning type.
31098 version_type=$version_type
31100 # Shared library runtime path variable.
31101 runpath_var=$runpath_var
31103 # Shared library path variable.
31104 shlibpath_var=$shlibpath_var
31106 # Is shlibpath searched before the hard-coded library search path?
31107 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31109 # Format of library name prefix.
31110 libname_spec=$lt_libname_spec
31112 # List of archive names. First name is the real one, the rest are links.
31113 # The last name is the one that the linker finds with -lNAME
31114 library_names_spec=$lt_library_names_spec
31116 # The coded name of the library, if different from the real name.
31117 soname_spec=$lt_soname_spec
31119 # Command to use after installation of a shared archive.
31120 postinstall_cmds=$lt_postinstall_cmds
31122 # Command to use after uninstallation of a shared archive.
31123 postuninstall_cmds=$lt_postuninstall_cmds
31125 # Commands used to finish a libtool library installation in a directory.
31126 finish_cmds=$lt_finish_cmds
31128 # As "finish_cmds", except a single script fragment to be evaled but
31130 finish_eval=$lt_finish_eval
31132 # Whether we should hardcode library paths into libraries.
31133 hardcode_into_libs=$hardcode_into_libs
31135 # Compile-time system search path for libraries.
31136 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31138 # Run-time system search path for libraries.
31139 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31141 # Whether dlopen is supported.
31142 dlopen_support=$enable_dlopen
31144 # Whether dlopen of programs is supported.
31145 dlopen_self=$enable_dlopen_self
31147 # Whether dlopen of statically linked programs is supported.
31148 dlopen_self_static=$enable_dlopen_self_static
31150 # Commands to strip libraries.
31151 old_striplib=$lt_old_striplib
31152 striplib=$lt_striplib
31155 # The linker used to build libraries.
31158 # Commands used to build an old-style archive.
31159 old_archive_cmds=$lt_old_archive_cmds
31161 # A language specific compiler.
31164 # Is the compiler the GNU compiler?
31167 # Compiler flag to turn off builtin functions.
31168 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31170 # How to pass a linker flag through the compiler.
31171 wl=$lt_lt_prog_compiler_wl
31173 # Additional compiler flags for building library objects.
31174 pic_flag=$lt_lt_prog_compiler_pic
31176 # Compiler flag to prevent dynamic linking.
31177 link_static_flag=$lt_lt_prog_compiler_static
31179 # Does compiler simultaneously support -c and -o options?
31180 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31182 # Whether or not to add -lc for building shared libraries.
31183 build_libtool_need_lc=$archive_cmds_need_lc
31185 # Whether or not to disallow shared libs when runtime libs are static.
31186 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31188 # Compiler flag to allow reflexive dlopens.
31189 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31191 # Compiler flag to generate shared objects directly from archives.
31192 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31194 # Whether the compiler copes with passing no objects directly.
31195 compiler_needs_object=$lt_compiler_needs_object
31197 # Create an old-style archive from a shared archive.
31198 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31200 # Create a temporary old-style archive to link instead of a shared archive.
31201 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31203 # Commands used to build a shared archive.
31204 archive_cmds=$lt_archive_cmds
31205 archive_expsym_cmds=$lt_archive_expsym_cmds
31207 # Commands used to build a loadable module if different from building
31208 # a shared archive.
31209 module_cmds=$lt_module_cmds
31210 module_expsym_cmds=$lt_module_expsym_cmds
31212 # Whether we are building with GNU ld or not.
31213 with_gnu_ld=$lt_with_gnu_ld
31215 # Flag that allows shared libraries with undefined symbols to be built.
31216 allow_undefined_flag=$lt_allow_undefined_flag
31218 # Flag that enforces no undefined symbols.
31219 no_undefined_flag=$lt_no_undefined_flag
31221 # Flag to hardcode \$libdir into a binary during linking.
31222 # This must work even if \$libdir does not exist
31223 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31225 # If ld is used when linking, flag to hardcode \$libdir into a binary
31226 # during linking. This must work even if \$libdir does not exist.
31227 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31229 # Whether we need a single "-rpath" flag with a separated argument.
31230 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31232 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31233 # DIR into the resulting binary.
31234 hardcode_direct=$hardcode_direct
31236 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31237 # DIR into the resulting binary and the resulting library dependency is
31238 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31239 # library is relocated.
31240 hardcode_direct_absolute=$hardcode_direct_absolute
31242 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31243 # into the resulting binary.
31244 hardcode_minus_L=$hardcode_minus_L
31246 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31247 # into the resulting binary.
31248 hardcode_shlibpath_var=$hardcode_shlibpath_var
31250 # Set to "yes" if building a shared library automatically hardcodes DIR
31251 # into the library and all subsequent libraries and executables linked
31253 hardcode_automatic=$hardcode_automatic
31255 # Set to yes if linker adds runtime paths of dependent libraries
31256 # to runtime path list.
31257 inherit_rpath=$inherit_rpath
31259 # Whether libtool must link a program against all its dependency libraries.
31260 link_all_deplibs=$link_all_deplibs
31262 # Fix the shell variable \$srcfile for the compiler.
31263 fix_srcfile_path=$lt_fix_srcfile_path
31265 # Set to "yes" if exported symbols are required.
31266 always_export_symbols=$always_export_symbols
31268 # The commands to list exported symbols.
31269 export_symbols_cmds=$lt_export_symbols_cmds
31271 # Symbols that should not be listed in the preloaded symbols.
31272 exclude_expsyms=$lt_exclude_expsyms
31274 # Symbols that must always be exported.
31275 include_expsyms=$lt_include_expsyms
31277 # Commands necessary for linking programs (against libraries) with templates.
31278 prelink_cmds=$lt_prelink_cmds
31280 # Specify filename containing input files.
31281 file_list_spec=$lt_file_list_spec
31283 # How to hardcode a shared library path into an executable.
31284 hardcode_action=$hardcode_action
31286 # The directories searched by this compiler when creating a shared library.
31287 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31289 # Dependencies to place before and after the objects being linked to
31290 # create a shared library.
31291 predep_objects=$lt_predep_objects
31292 postdep_objects=$lt_postdep_objects
31293 predeps=$lt_predeps
31294 postdeps=$lt_postdeps
31296 # The library search path used internally by the compiler when linking
31297 # a shared library.
31298 compiler_lib_search_path=$lt_compiler_lib_search_path
31300 # ### END LIBTOOL CONFIG
31306 cat <<\_LT_EOF >> "$cfgfile"
31307 # AIX sometimes has problems with the GCC collect2 program. For some
31308 # reason, if we set the COLLECT_NAMES environment variable, the problems
31309 # vanish in a puff of smoke.
31310 if test "X${COLLECT_NAMES+set}" != Xset; then
31312 export COLLECT_NAMES
31319 ltmain="$ac_aux_dir/ltmain.sh"
31322 # We use sed instead of cat because bash on DJGPP gets confused if
31323 # if finds mixed CR/LF and LF-only lines. Since sed operates in
31324 # text mode, it properly converts lines to CR/LF. This bash problem
31325 # is reportedly fixed, but why not run on old versions too?
31326 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31327 || (rm -f "$cfgfile"; exit 1)
31331 cat << \_LT_EOF >> "$cfgfile"
31333 # func_dirname file append nondir_replacement
31334 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31335 # otherwise set result to NONDIR_REPLACEMENT.
31339 */*) func_dirname_result="${1%/*}${2}" ;;
31340 * ) func_dirname_result="${3}" ;;
31344 # func_basename file
31347 func_basename_result="${1##*/}"
31350 # func_dirname_and_basename file append nondir_replacement
31351 # perform func_basename and func_dirname in a single function
31353 # dirname: Compute the dirname of FILE. If nonempty,
31354 # add APPEND to the result, otherwise set result
31355 # to NONDIR_REPLACEMENT.
31356 # value returned in "$func_dirname_result"
31357 # basename: Compute filename of FILE.
31358 # value retuned in "$func_basename_result"
31359 # Implementation must be kept synchronized with func_dirname
31360 # and func_basename. For efficiency, we do not delegate to
31361 # those functions but instead duplicate the functionality here.
31362 func_dirname_and_basename ()
31365 */*) func_dirname_result="${1%/*}${2}" ;;
31366 * ) func_dirname_result="${3}" ;;
31368 func_basename_result="${1##*/}"
31371 # func_stripname prefix suffix name
31372 # strip PREFIX and SUFFIX off of NAME.
31373 # PREFIX and SUFFIX must not contain globbing or regex special
31374 # characters, hashes, percent signs, but SUFFIX may contain a leading
31375 # dot (in which case that matches only a dot).
31378 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31379 # positional parameters, so assign one to ordinary parameter first.
31380 func_stripname_result=${3}
31381 func_stripname_result=${func_stripname_result#"${1}"}
31382 func_stripname_result=${func_stripname_result%"${2}"}
31388 func_opt_split_opt=${1%%=*}
31389 func_opt_split_arg=${1#*=}
31396 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31397 *) func_lo2o_result=${1} ;;
31401 # func_xform libobj-or-source
31404 func_xform_result=${1%.*}.lo
31407 # func_arith arithmetic-term...
31410 func_arith_result=$(( $* ))
31414 # STRING may not start with a hyphen.
31417 func_len_result=${#1}
31422 *) # Bourne compatible functions.
31423 cat << \_LT_EOF >> "$cfgfile"
31425 # func_dirname file append nondir_replacement
31426 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31427 # otherwise set result to NONDIR_REPLACEMENT.
31430 # Extract subdirectory from the argument.
31431 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31432 if test "X$func_dirname_result" = "X${1}"; then
31433 func_dirname_result="${3}"
31435 func_dirname_result="$func_dirname_result${2}"
31439 # func_basename file
31442 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31446 # func_stripname prefix suffix name
31447 # strip PREFIX and SUFFIX off of NAME.
31448 # PREFIX and SUFFIX must not contain globbing or regex special
31449 # characters, hashes, percent signs, but SUFFIX may contain a leading
31450 # dot (in which case that matches only a dot).
31451 # func_strip_suffix prefix name
31455 .*) func_stripname_result=`$ECHO "X${3}" \
31456 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31457 *) func_stripname_result=`$ECHO "X${3}" \
31458 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31463 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31464 my_sed_long_arg='1s/^-[^=]*=//'
31469 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31470 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31476 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31479 # func_xform libobj-or-source
31482 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31485 # func_arith arithmetic-term...
31488 func_arith_result=`expr "$@"`
31492 # STRING may not start with a hyphen.
31495 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31501 case $lt_shell_append in
31503 cat << \_LT_EOF >> "$cfgfile"
31505 # func_append var value
31506 # Append VALUE to the end of shell variable VAR.
31514 cat << \_LT_EOF >> "$cfgfile"
31516 # func_append var value
31517 # Append VALUE to the end of shell variable VAR.
31528 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31529 || (rm -f "$cfgfile"; exit 1)
31531 mv -f "$cfgfile" "$ofile" ||
31532 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31536 cat <<_LT_EOF >> "$ofile"
31538 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31540 # The linker used to build libraries.
31543 # Commands used to build an old-style archive.
31544 old_archive_cmds=$lt_old_archive_cmds_CXX
31546 # A language specific compiler.
31547 CC=$lt_compiler_CXX
31549 # Is the compiler the GNU compiler?
31552 # Compiler flag to turn off builtin functions.
31553 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31555 # How to pass a linker flag through the compiler.
31556 wl=$lt_lt_prog_compiler_wl_CXX
31558 # Additional compiler flags for building library objects.
31559 pic_flag=$lt_lt_prog_compiler_pic_CXX
31561 # Compiler flag to prevent dynamic linking.
31562 link_static_flag=$lt_lt_prog_compiler_static_CXX
31564 # Does compiler simultaneously support -c and -o options?
31565 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31567 # Whether or not to add -lc for building shared libraries.
31568 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31570 # Whether or not to disallow shared libs when runtime libs are static.
31571 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31573 # Compiler flag to allow reflexive dlopens.
31574 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31576 # Compiler flag to generate shared objects directly from archives.
31577 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31579 # Whether the compiler copes with passing no objects directly.
31580 compiler_needs_object=$lt_compiler_needs_object_CXX
31582 # Create an old-style archive from a shared archive.
31583 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31585 # Create a temporary old-style archive to link instead of a shared archive.
31586 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31588 # Commands used to build a shared archive.
31589 archive_cmds=$lt_archive_cmds_CXX
31590 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31592 # Commands used to build a loadable module if different from building
31593 # a shared archive.
31594 module_cmds=$lt_module_cmds_CXX
31595 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31597 # Whether we are building with GNU ld or not.
31598 with_gnu_ld=$lt_with_gnu_ld_CXX
31600 # Flag that allows shared libraries with undefined symbols to be built.
31601 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31603 # Flag that enforces no undefined symbols.
31604 no_undefined_flag=$lt_no_undefined_flag_CXX
31606 # Flag to hardcode \$libdir into a binary during linking.
31607 # This must work even if \$libdir does not exist
31608 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31610 # If ld is used when linking, flag to hardcode \$libdir into a binary
31611 # during linking. This must work even if \$libdir does not exist.
31612 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31614 # Whether we need a single "-rpath" flag with a separated argument.
31615 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31617 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31618 # DIR into the resulting binary.
31619 hardcode_direct=$hardcode_direct_CXX
31621 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31622 # DIR into the resulting binary and the resulting library dependency is
31623 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31624 # library is relocated.
31625 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31627 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31628 # into the resulting binary.
31629 hardcode_minus_L=$hardcode_minus_L_CXX
31631 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31632 # into the resulting binary.
31633 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31635 # Set to "yes" if building a shared library automatically hardcodes DIR
31636 # into the library and all subsequent libraries and executables linked
31638 hardcode_automatic=$hardcode_automatic_CXX
31640 # Set to yes if linker adds runtime paths of dependent libraries
31641 # to runtime path list.
31642 inherit_rpath=$inherit_rpath_CXX
31644 # Whether libtool must link a program against all its dependency libraries.
31645 link_all_deplibs=$link_all_deplibs_CXX
31647 # Fix the shell variable \$srcfile for the compiler.
31648 fix_srcfile_path=$lt_fix_srcfile_path_CXX
31650 # Set to "yes" if exported symbols are required.
31651 always_export_symbols=$always_export_symbols_CXX
31653 # The commands to list exported symbols.
31654 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31656 # Symbols that should not be listed in the preloaded symbols.
31657 exclude_expsyms=$lt_exclude_expsyms_CXX
31659 # Symbols that must always be exported.
31660 include_expsyms=$lt_include_expsyms_CXX
31662 # Commands necessary for linking programs (against libraries) with templates.
31663 prelink_cmds=$lt_prelink_cmds_CXX
31665 # Specify filename containing input files.
31666 file_list_spec=$lt_file_list_spec_CXX
31668 # How to hardcode a shared library path into an executable.
31669 hardcode_action=$hardcode_action_CXX
31671 # The directories searched by this compiler when creating a shared library.
31672 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31674 # Dependencies to place before and after the objects being linked to
31675 # create a shared library.
31676 predep_objects=$lt_predep_objects_CXX
31677 postdep_objects=$lt_postdep_objects_CXX
31678 predeps=$lt_predeps_CXX
31679 postdeps=$lt_postdeps_CXX
31681 # The library search path used internally by the compiler when linking
31682 # a shared library.
31683 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31685 # ### END LIBTOOL TAG CONFIG: CXX
31690 for ac_file in $CONFIG_FILES; do
31691 # Support "outfile[:infile[:infile...]]"
31693 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31695 # PO directories have a Makefile.in generated from Makefile.in.in.
31696 case "$ac_file" in */Makefile.in)
31697 # Adjust a relative srcdir.
31698 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31699 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31700 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31701 # In autoconf-2.13 it is called $ac_given_srcdir.
31702 # In autoconf-2.50 it is called $srcdir.
31703 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31704 case "$ac_given_srcdir" in
31705 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31706 /*) top_srcdir="$ac_given_srcdir" ;;
31707 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31709 # Treat a directory as a PO directory if and only if it has a
31710 # POTFILES.in file. This allows packages to have multiple PO
31711 # directories under different names or in different locations.
31712 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31713 rm -f "$ac_dir/POTFILES"
31714 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31715 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31716 POMAKEFILEDEPS="POTFILES.in"
31717 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31718 # on $ac_dir but don't depend on user-specified configuration
31720 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31721 # The LINGUAS file contains the set of available languages.
31722 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31723 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31725 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31726 # Hide the ALL_LINGUAS assigment from automake.
31727 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31728 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31730 # The set of available languages was given in configure.in.
31731 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31734 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31735 # Compute UPDATEPOFILES
31736 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31737 # Compute DUMMYPOFILES
31738 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31740 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31741 case "$ac_given_srcdir" in
31743 *) srcdirpre='$(srcdir)/' ;;
31749 for lang in $ALL_LINGUAS; do
31750 POFILES="$POFILES $srcdirpre$lang.po"
31751 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31752 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31753 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31755 # CATALOGS depends on both $ac_dir and the user's LINGUAS
31756 # environment variable.
31758 if test -n "$ALL_LINGUAS"; then
31759 for presentlang in $ALL_LINGUAS; do
31761 if test "%UNSET%" != "$LINGUAS"; then
31762 desiredlanguages="$LINGUAS"
31764 desiredlanguages="$ALL_LINGUAS"
31766 for desiredlang in $desiredlanguages; do
31767 # Use the presentlang catalog if desiredlang is
31768 # a. equal to presentlang, or
31769 # b. a variant of presentlang (because in this case,
31770 # presentlang can be used as a fallback for messages
31771 # which are not translated in the desiredlang catalog).
31772 case "$desiredlang" in
31773 "$presentlang"*) useit=yes;;
31776 if test $useit = yes; then
31777 INST_LINGUAS="$INST_LINGUAS $presentlang"
31782 if test -n "$INST_LINGUAS"; then
31783 for lang in $INST_LINGUAS; do
31784 CATALOGS="$CATALOGS $lang.gmo"
31787 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31788 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"
31789 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31790 if test -f "$f"; then
31792 *.orig | *.bak | *~) ;;
31793 *) cat "$f" >> "$ac_dir/Makefile" ;;
31810 ac_clean_files=$ac_clean_files_save
31812 test $ac_write_fail = 0 ||
31813 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31816 # configure is writing to config.log, and then calls config.status.
31817 # config.status does its own redirection, appending to config.log.
31818 # Unfortunately, on DOS this fails, as config.log is still kept open
31819 # by configure, so config.status won't be able to write to it; its
31820 # output is simply discarded. So we exec the FD to /dev/null,
31821 # effectively closing config.log, so it can be properly (re)opened and
31822 # appended to by config.status. When coming back to configure, we
31823 # need to make the FD available again.
31824 if test "$no_create" != yes; then
31826 ac_config_status_args=
31827 test "$silent" = yes &&
31828 ac_config_status_args="$ac_config_status_args --quiet"
31830 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31832 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31833 # would make configure fail if this is the last instruction.
31834 $ac_cs_success || as_fn_exit $?
31836 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31838 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31842 if test "${support_bat}" = "yes" ; then
31843 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
31844 as_fn_error "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" "$LINENO" 5
31849 if test "x$QMAKEQT4" != "xnone"; then
31854 echo "Creating bat Makefile"
31858 ${MAKE:-make} clean
31862 if test X"$GCC" = "Xyes" ; then
31863 echo "Doing make of dependencies"
31864 ${MAKE:-make} depend
31868 chmod 755 install_conf_file build-depkgs-qt-console
31872 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31873 chmod 755 dvd-handler dvd-simulator
31874 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31878 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
31879 chmod 755 $c/update_postgresql_tables_10_to_11
31883 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
31884 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
31886 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
31887 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
31889 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
31890 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
31892 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
31893 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
31895 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
31896 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
31898 chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
31899 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
31902 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup make_catalog_backup.pl
31903 chmod 755 $c/sqlite
31906 chmod 755 src/win32/build-depkgs-mingw32
31908 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31909 largefile_support="yes"
31912 if test X"$GCC" = "Xyes" ; then
31913 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31914 if test "x${CCVERSION}" = "x" ; then
31915 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31917 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31918 if test x"${CXXVERSION}" = x ; then
31919 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31923 # clean up any old junk
31927 ${MAKE:-make} clean
31929 if test "x${db_type}" = "xInternal" ; then
31932 echo "You have not specified either --enable-client-only or one of the"
31933 echo " supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
31934 echo " This is not permitted. Please reconfigure."
31936 echo "Aborting the configuration ..."
31943 Configuration on `date`:
31945 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
31946 Bacula version: ${BACULA} ${VERSION} (${DATE})
31947 Source code location: ${srcdir}
31948 Install binaries: ${sbindir}
31949 Install libraries: ${libdir}
31950 Install config files: ${sysconfdir}
31951 Scripts directory: ${scriptdir}
31952 Archive directory: ${archivedir}
31953 Working directory: ${working_dir}
31954 PID directory: ${piddir}
31955 Subsys directory: ${subsysdir}
31956 Man directory: ${mandir}
31957 Data directory: ${datarootdir}
31958 Plugin directory: ${plugindir}
31959 C Compiler: ${CC} ${CCVERSION}
31960 C++ Compiler: ${CXX} ${CXXVERSION}
31961 Compiler flags: ${WCFLAGS} ${CFLAGS}
31962 Linker flags: ${WLDFLAGS} ${LDFLAGS}
31964 Statically Linked Tools: ${support_static_tools}
31965 Statically Linked FD: ${support_static_fd}
31966 Statically Linked SD: ${support_static_sd}
31967 Statically Linked DIR: ${support_static_dir}
31968 Statically Linked CONS: ${support_static_cons}
31969 Database type: ${db_type}
31970 Database port: ${db_port}
31971 Database lib: ${DB_LIBS}
31972 Database name: ${db_name}
31973 Database user: ${db_user}
31975 Job Output Email: ${job_email}
31976 Traceback Email: ${dump_email}
31977 SMTP Host Address: ${smtp_host}
31979 Director Port: ${dir_port}
31980 File daemon Port: ${fd_port}
31981 Storage daemon Port: ${sd_port}
31983 Director User: ${dir_user}
31984 Director Group: ${dir_group}
31985 Storage Daemon User: ${sd_user}
31986 Storage DaemonGroup: ${sd_group}
31987 File Daemon User: ${fd_user}
31988 File Daemon Group: ${fd_group}
31990 SQL binaries Directory ${SQL_BINDIR}
31992 Large file support: $largefile_support
31993 Bacula conio support: ${got_conio} ${CONS_LIBS}
31994 readline support: ${got_readline} ${PRTREADLINE_SRC}
31995 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
31996 TLS support: ${support_tls}
31997 Encryption support: ${support_crypto}
31998 ZLIB support: ${have_zlib}
31999 enable-smartalloc: ${support_smartalloc}
32000 enable-lockmgr: ${support_lockmgr}
32001 bat support: ${support_bat}
32002 enable-gnome: ${support_gnome} ${gnome_version}
32003 enable-bwx-console: ${support_wx_console} ${wx_version}
32004 enable-tray-monitor: ${support_tray_monitor}
32005 client-only: ${build_client_only}
32006 build-dird: ${build_dird}
32007 build-stored: ${build_stored}
32008 Plugin support: ${have_plugins}
32009 ACL support: ${have_acl}
32010 XATTR support: ${have_xattr}
32011 Python support: ${support_python} ${PYTHON_LIBS}
32012 Batch insert enabled: ${support_batch_insert}
32016 # create a small shell script useful for support with
32017 # configure options and config.out info
32018 cat > scripts/bacula_config << EOF
32021 $ $0 $ac_configure_args
32023 cat config.out >> scripts/bacula_config
32024 echo __EOC__ >> scripts/bacula_config
32025 chmod 755 scripts/bacula_config
32029 # Display a warning message if postgresql client lib is <= 8.1
32030 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
32031 -a x$support_batch_insert = xyes
32033 echo "WARNING: Your PostgreSQL client library is too old to detect "
32034 echo " if it was compiled with --enable-thread-safety, consider to"
32035 echo " upgrade it in order to avoid problems with Batch insert mode"