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
978 LIBBACFIND_LT_RELEASE
1022 program_transform_name
1033 ac_subst_files='MCOMMON'
1035 enable_option_checking
1046 with_libiconv_prefix
1048 with_included_gettext
1087 with_mon_dir_password
1088 with_mon_fd_password
1089 with_mon_sd_password
1114 ac_precious_vars='build_alias
1132 # Initialize some variables set by options.
1134 ac_init_version=false
1135 ac_unrecognized_opts=
1136 ac_unrecognized_sep=
1137 # The variables have the same names as the options, with
1138 # dashes changed to underlines.
1139 cache_file=/dev/null
1146 program_transform_name=s,x,x,
1154 # Installation directory options.
1155 # These are left unexpanded so users can "make install exec_prefix=/foo"
1156 # and all the variables that are supposed to be based on exec_prefix
1157 # by default will actually change.
1158 # Use braces instead of parens because sh, perl, etc. also accept them.
1159 # (The list follows the same order as the GNU Coding Standards.)
1160 bindir='${exec_prefix}/bin'
1161 sbindir='${exec_prefix}/sbin'
1162 libexecdir='${exec_prefix}/libexec'
1163 datarootdir='${prefix}/share'
1164 datadir='${datarootdir}'
1165 sysconfdir='${prefix}/etc'
1166 sharedstatedir='${prefix}/com'
1167 localstatedir='${prefix}/var'
1168 includedir='${prefix}/include'
1169 oldincludedir='/usr/include'
1170 docdir='${datarootdir}/doc/${PACKAGE}'
1171 infodir='${datarootdir}/info'
1176 libdir='${exec_prefix}/lib'
1177 localedir='${datarootdir}/locale'
1178 mandir='${datarootdir}/man'
1184 # If the previous option needs an argument, assign it.
1185 if test -n "$ac_prev"; then
1186 eval $ac_prev=\$ac_option
1192 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1196 # Accept the important Cygnus configure options, so we can diagnose typos.
1198 case $ac_dashdash$ac_option in
1202 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1204 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1205 bindir=$ac_optarg ;;
1207 -build | --build | --buil | --bui | --bu)
1208 ac_prev=build_alias ;;
1209 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1210 build_alias=$ac_optarg ;;
1212 -cache-file | --cache-file | --cache-fil | --cache-fi \
1213 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1214 ac_prev=cache_file ;;
1215 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1216 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1217 cache_file=$ac_optarg ;;
1219 --config-cache | -C)
1220 cache_file=config.cache ;;
1222 -datadir | --datadir | --datadi | --datad)
1224 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1225 datadir=$ac_optarg ;;
1227 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1228 | --dataroo | --dataro | --datar)
1229 ac_prev=datarootdir ;;
1230 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1231 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1232 datarootdir=$ac_optarg ;;
1234 -disable-* | --disable-*)
1235 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error "invalid feature name: $ac_useropt"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1243 "enable_$ac_useropt"
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1248 eval enable_$ac_useropt=no ;;
1250 -docdir | --docdir | --docdi | --doc | --do)
1252 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1253 docdir=$ac_optarg ;;
1255 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1257 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1258 dvidir=$ac_optarg ;;
1260 -enable-* | --enable-*)
1261 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1264 as_fn_error "invalid feature name: $ac_useropt"
1265 ac_useropt_orig=$ac_useropt
1266 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267 case $ac_user_opts in
1269 "enable_$ac_useropt"
1271 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1272 ac_unrecognized_sep=', ';;
1274 eval enable_$ac_useropt=\$ac_optarg ;;
1276 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1277 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1278 | --exec | --exe | --ex)
1279 ac_prev=exec_prefix ;;
1280 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1281 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1282 | --exec=* | --exe=* | --ex=*)
1283 exec_prefix=$ac_optarg ;;
1285 -gas | --gas | --ga | --g)
1286 # Obsolete; use --with-gas.
1289 -help | --help | --hel | --he | -h)
1290 ac_init_help=long ;;
1291 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1292 ac_init_help=recursive ;;
1293 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1294 ac_init_help=short ;;
1296 -host | --host | --hos | --ho)
1297 ac_prev=host_alias ;;
1298 -host=* | --host=* | --hos=* | --ho=*)
1299 host_alias=$ac_optarg ;;
1301 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1303 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1305 htmldir=$ac_optarg ;;
1307 -includedir | --includedir | --includedi | --included | --include \
1308 | --includ | --inclu | --incl | --inc)
1309 ac_prev=includedir ;;
1310 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1311 | --includ=* | --inclu=* | --incl=* | --inc=*)
1312 includedir=$ac_optarg ;;
1314 -infodir | --infodir | --infodi | --infod | --info | --inf)
1316 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1317 infodir=$ac_optarg ;;
1319 -libdir | --libdir | --libdi | --libd)
1321 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1322 libdir=$ac_optarg ;;
1324 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1325 | --libexe | --libex | --libe)
1326 ac_prev=libexecdir ;;
1327 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1328 | --libexe=* | --libex=* | --libe=*)
1329 libexecdir=$ac_optarg ;;
1331 -localedir | --localedir | --localedi | --localed | --locale)
1332 ac_prev=localedir ;;
1333 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1334 localedir=$ac_optarg ;;
1336 -localstatedir | --localstatedir | --localstatedi | --localstated \
1337 | --localstate | --localstat | --localsta | --localst | --locals)
1338 ac_prev=localstatedir ;;
1339 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1340 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1341 localstatedir=$ac_optarg ;;
1343 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1345 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1346 mandir=$ac_optarg ;;
1348 -nfp | --nfp | --nf)
1349 # Obsolete; use --without-fp.
1352 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1353 | --no-cr | --no-c | -n)
1356 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1357 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1360 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1361 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1362 | --oldin | --oldi | --old | --ol | --o)
1363 ac_prev=oldincludedir ;;
1364 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1365 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1366 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1367 oldincludedir=$ac_optarg ;;
1369 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1371 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1372 prefix=$ac_optarg ;;
1374 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1375 | --program-pre | --program-pr | --program-p)
1376 ac_prev=program_prefix ;;
1377 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1378 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1379 program_prefix=$ac_optarg ;;
1381 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1382 | --program-suf | --program-su | --program-s)
1383 ac_prev=program_suffix ;;
1384 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1385 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1386 program_suffix=$ac_optarg ;;
1388 -program-transform-name | --program-transform-name \
1389 | --program-transform-nam | --program-transform-na \
1390 | --program-transform-n | --program-transform- \
1391 | --program-transform | --program-transfor \
1392 | --program-transfo | --program-transf \
1393 | --program-trans | --program-tran \
1394 | --progr-tra | --program-tr | --program-t)
1395 ac_prev=program_transform_name ;;
1396 -program-transform-name=* | --program-transform-name=* \
1397 | --program-transform-nam=* | --program-transform-na=* \
1398 | --program-transform-n=* | --program-transform-=* \
1399 | --program-transform=* | --program-transfor=* \
1400 | --program-transfo=* | --program-transf=* \
1401 | --program-trans=* | --program-tran=* \
1402 | --progr-tra=* | --program-tr=* | --program-t=*)
1403 program_transform_name=$ac_optarg ;;
1405 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1407 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1408 pdfdir=$ac_optarg ;;
1410 -psdir | --psdir | --psdi | --psd | --ps)
1412 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1415 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1416 | -silent | --silent | --silen | --sile | --sil)
1419 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1421 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1423 sbindir=$ac_optarg ;;
1425 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1426 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1427 | --sharedst | --shareds | --shared | --share | --shar \
1429 ac_prev=sharedstatedir ;;
1430 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1431 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1432 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1434 sharedstatedir=$ac_optarg ;;
1436 -site | --site | --sit)
1438 -site=* | --site=* | --sit=*)
1441 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1443 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1444 srcdir=$ac_optarg ;;
1446 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1447 | --syscon | --sysco | --sysc | --sys | --sy)
1448 ac_prev=sysconfdir ;;
1449 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1450 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1451 sysconfdir=$ac_optarg ;;
1453 -target | --target | --targe | --targ | --tar | --ta | --t)
1454 ac_prev=target_alias ;;
1455 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1456 target_alias=$ac_optarg ;;
1458 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1461 -version | --version | --versio | --versi | --vers | -V)
1462 ac_init_version=: ;;
1465 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1466 # Reject names that are not valid shell variable names.
1467 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1468 as_fn_error "invalid package name: $ac_useropt"
1469 ac_useropt_orig=$ac_useropt
1470 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1471 case $ac_user_opts in
1475 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1476 ac_unrecognized_sep=', ';;
1478 eval with_$ac_useropt=\$ac_optarg ;;
1480 -without-* | --without-*)
1481 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1482 # Reject names that are not valid shell variable names.
1483 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1484 as_fn_error "invalid package name: $ac_useropt"
1485 ac_useropt_orig=$ac_useropt
1486 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1487 case $ac_user_opts in
1491 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1492 ac_unrecognized_sep=', ';;
1494 eval with_$ac_useropt=no ;;
1497 # Obsolete; use --with-x.
1500 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1501 | --x-incl | --x-inc | --x-in | --x-i)
1502 ac_prev=x_includes ;;
1503 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1504 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1505 x_includes=$ac_optarg ;;
1507 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1508 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1509 ac_prev=x_libraries ;;
1510 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1511 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1512 x_libraries=$ac_optarg ;;
1514 -*) as_fn_error "unrecognized option: \`$ac_option'
1515 Try \`$0 --help' for more information."
1519 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1520 # Reject names that are not valid shell variable names.
1521 case $ac_envvar in #(
1522 '' | [0-9]* | *[!_$as_cr_alnum]* )
1523 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1525 eval $ac_envvar=\$ac_optarg
1526 export $ac_envvar ;;
1529 # FIXME: should be removed in autoconf 3.0.
1530 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1531 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1532 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1533 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1539 if test -n "$ac_prev"; then
1540 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1541 as_fn_error "missing argument to $ac_option"
1544 if test -n "$ac_unrecognized_opts"; then
1545 case $enable_option_checking in
1547 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1548 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1552 # Check all directory arguments for consistency.
1553 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1554 datadir sysconfdir sharedstatedir localstatedir includedir \
1555 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1556 libdir localedir mandir
1558 eval ac_val=\$$ac_var
1559 # Remove trailing slashes.
1562 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1563 eval $ac_var=\$ac_val;;
1565 # Be sure to have absolute directory names.
1567 [\\/$]* | ?:[\\/]* ) continue;;
1568 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1570 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1573 # There might be people who depend on the old broken behavior: `$host'
1574 # used to hold the argument of --host etc.
1575 # FIXME: To remove some day.
1578 target=$target_alias
1580 # FIXME: To remove some day.
1581 if test "x$host_alias" != x; then
1582 if test "x$build_alias" = x; then
1583 cross_compiling=maybe
1584 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1585 If a cross compiler is detected then cross compile mode will be used." >&2
1586 elif test "x$build_alias" != "x$host_alias"; then
1592 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1594 test "$silent" = yes && exec 6>/dev/null
1597 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1598 ac_ls_di=`ls -di .` &&
1599 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1600 as_fn_error "working directory cannot be determined"
1601 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1602 as_fn_error "pwd does not report name of working directory"
1605 # Find the source files, if location was not specified.
1606 if test -z "$srcdir"; then
1607 ac_srcdir_defaulted=yes
1608 # Try the directory containing this script, then the parent directory.
1609 ac_confdir=`$as_dirname -- "$as_myself" ||
1610 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1611 X"$as_myself" : 'X\(//\)[^/]' \| \
1612 X"$as_myself" : 'X\(//\)$' \| \
1613 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1614 $as_echo X"$as_myself" |
1615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1633 if test ! -r "$srcdir/$ac_unique_file"; then
1637 ac_srcdir_defaulted=no
1639 if test ! -r "$srcdir/$ac_unique_file"; then
1640 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1641 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1643 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1645 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1647 # When building in place, set srcdir=.
1648 if test "$ac_abs_confdir" = "$ac_pwd"; then
1651 # Remove unnecessary trailing slashes from srcdir.
1652 # Double slashes in file names in object file debugging info
1653 # mess up M-x gdb in Emacs.
1655 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1657 for ac_var in $ac_precious_vars; do
1658 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1659 eval ac_env_${ac_var}_value=\$${ac_var}
1660 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1661 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1665 # Report the --help message.
1667 if test "$ac_init_help" = "long"; then
1668 # Omit some internal or obsolete options to make the list less imposing.
1669 # This message is too long to be a string in the A/UX 3.1 sh.
1671 \`configure' configures this package to adapt to many kinds of systems.
1673 Usage: $0 [OPTION]... [VAR=VALUE]...
1675 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1676 VAR=VALUE. See below for descriptions of some of the useful variables.
1678 Defaults for the options are specified in brackets.
1681 -h, --help display this help and exit
1682 --help=short display options specific to this package
1683 --help=recursive display the short help of all the included packages
1684 -V, --version display version information and exit
1685 -q, --quiet, --silent do not print \`checking...' messages
1686 --cache-file=FILE cache test results in FILE [disabled]
1687 -C, --config-cache alias for \`--cache-file=config.cache'
1688 -n, --no-create do not create output files
1689 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1691 Installation directories:
1692 --prefix=PREFIX install architecture-independent files in PREFIX
1693 [$ac_default_prefix]
1694 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1697 By default, \`make install' will install all the files in
1698 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1699 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1700 for instance \`--prefix=\$HOME'.
1702 For better control, use the options below.
1704 Fine tuning of the installation directories:
1705 --bindir=DIR user executables [EPREFIX/bin]
1706 --sbindir=DIR system admin executables [EPREFIX/sbin]
1707 --libexecdir=DIR program executables [EPREFIX/libexec]
1708 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1709 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1710 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1711 --libdir=DIR object code libraries [EPREFIX/lib]
1712 --includedir=DIR C header files [PREFIX/include]
1713 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1714 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1715 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1716 --infodir=DIR info documentation [DATAROOTDIR/info]
1717 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1718 --mandir=DIR man documentation [DATAROOTDIR/man]
1719 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1720 --htmldir=DIR html documentation [DOCDIR]
1721 --dvidir=DIR dvi documentation [DOCDIR]
1722 --pdfdir=DIR pdf documentation [DOCDIR]
1723 --psdir=DIR ps documentation [DOCDIR]
1729 --x-includes=DIR X include files are in DIR
1730 --x-libraries=DIR X library files are in DIR
1733 --build=BUILD configure for building on BUILD [guessed]
1734 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1738 if test -n "$ac_init_help"; then
1743 --disable-option-checking ignore unrecognized --enable/--with options
1744 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1745 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1746 --enable-libtool enable building using GNU libtool [default=yes]
1747 --enable-shared[=PKGS] build shared libraries [default=yes]
1748 --enable-static[=PKGS] build static libraries [default=no]
1749 --enable-fast-install[=PKGS]
1750 optimize for fast installation [default=yes]
1751 --disable-libtool-lock avoid locking (might break parallel builds)
1752 --enable-includes enable installing of include files [default=no]
1753 --disable-nls do not use Native Language Support
1754 --disable-rpath do not hardcode runtime library paths
1755 --enable-gnome enable build of bgnome-console GUI [default=no]
1756 --enable-bat enable build of bat Qt4 GUI [default=no]
1757 --enable-bwx-console enable build of wxWidgets console [default=no]
1758 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1760 --enable-smartalloc enable smartalloc debugging support [default=no]
1761 --enable-lockmgr enable lock manager support [default=no]
1762 --enable-static-tools enable static tape tools [default=no]
1763 --enable-static-fd enable static File daemon [default=no]
1764 --enable-static-sd enable static Storage daemon [default=no]
1765 --enable-static-dir enable static Director [default=no]
1766 --enable-static-cons enable static Console [default=no]
1767 --enable-client-only build client (File daemon) only [default=no]
1768 --enable-build-dird enable building of dird (Director) [default=yes]
1769 --enable-build-stored enable building of stored (Storage daemon)
1771 --disable-conio disable conio support [default=no]
1772 --enable-ipv6 enable ipv6 support [default=yes]
1773 --disable-readline disable readline support [default=yes]
1774 --enable-batch-insert enable the DB batch insert code [default=no]
1775 --disable-largefile omit support for large files
1776 --disable-acl disable acl support [default=auto]
1777 --disable-xattr disable xattr support [default=auto]
1780 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1781 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1782 --with-pic try to use only PIC/non-PIC objects [default=use
1784 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1785 --with-gnu-ld assume the C compiler uses GNU ld default=no
1786 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1787 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1788 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1789 --without-libintl-prefix don't search for libintl in includedir and libdir
1790 --with-included-gettext use the GNU gettext library included here
1791 --with-readline[=DIR] specify readline library directory
1792 --with-python[=DIR] Include Python support. DIR is the Python base
1793 install directory, default is to search through a
1794 number of common places for the Python files.
1795 --with-tcp-wrappers[=DIR]
1796 enable tcpwrappers support
1797 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1798 --with-working-dir=PATH specify path of Bacula working directory
1799 --with-archivedir=PATH specify path of SD archive directory
1800 --with-basename=RESNAME specify base resource name for daemons
1801 --with-hostname=RESNAME specify host name for daemons
1802 --with-scriptdir=PATH specify path of Bacula scripts directory
1803 --with-bsrdir=PATH specify path of Bacula bsrs directory
1804 --with-logdir=PATH specify path of Bacula logs directory
1805 --with-plugindir=PATH specify path of Bacula plugins directory
1806 --with-dump-email=EMAIL dump email address
1807 --with-job-email=EMAIL job output email address
1808 --with-smtp-host=HOST SMTP mail host address
1809 --with-pid-dir=PATH specify location of Bacula pid files
1810 --with-subsys-dir=PATH specify location of Bacula subsys file
1811 --with-baseport=PORT specify base port address for daemons
1812 --with-dir-password=PASSWORD
1813 specify Director's password
1814 --with-fd-password=PASSWORD
1815 specify Client's password
1816 --with-sd-password=PASSWORD
1817 specify Storage daemon's password
1818 --with-mon-dir-password=PASSWORD
1819 specify Director's password used by the monitor
1820 --with-mon-fd-password=PASSWORD
1821 specify Client's password used by the monitor
1822 --with-mon-sd-password=PASSWORD
1823 specify Storage daemon's password used by the
1825 --with-db-name=DBNAME specify database name [default=bacula]
1826 --with-db-user=UNAME specify database user [default=bacula]
1827 --with-db-password=PWD specify database password [default=*none*]
1828 --with-db-port=DBPORT specify a database port [default=null]
1829 --with-dir-user=USER specify user for Director daemon
1830 --with-dir-group=GROUP specify group for Director daemon
1831 --with-sd-user=USER specify user for Storage daemon
1832 --with-sd-group=GROUP specify group for Storage daemon
1833 --with-fd-user=USER specify user for File daemon
1834 --with-fd-group=GROUP specify group for File daemon
1835 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1836 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1837 base install directory, [default=/usr/local/pgsql]
1838 --with-mysql[=DIR] 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-embedded-mysql[=DIR]
1842 Include MySQL support. DIR is the MySQL base install
1843 directory, default is to search through a number of
1844 common places for the MySQL files.
1845 --with-ingres[=DIR] Include Ingres support. DIR is the Ingres base
1846 install directory, default is to search through a
1847 number of common places for the Ingres files.
1848 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1849 install directory, default is to search through a
1850 number of common places for the SQLite3 files.
1851 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1852 directory, default is to search through a number of
1853 common places for the DBI files.
1854 --with-dbi-driver[=DRIVER]
1855 Suport for DBI driver. DRIVER is the one DBI driver
1856 like Mysql, Postgresql, others. Default is to not
1857 configure any driver.
1858 --with-x use the X Window System
1860 Some influential environment variables:
1861 CC C compiler command
1862 CFLAGS C compiler flags
1863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1864 nonstandard directory <lib dir>
1865 LIBS libraries to pass to the linker, e.g. -l<library>
1866 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1867 you have headers in a nonstandard directory <include dir>
1868 CXX C++ compiler command
1869 CXXFLAGS C++ compiler flags
1871 WXCONFIG wx-config command. On some systems, you must set it to
1872 wx-config-2.6 to use wxWidgets 2.6.
1873 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1874 CXXCPP C++ preprocessor
1875 XMKMF Path to xmkmf, Makefile generator for X Window System
1877 Use these variables to override the choices made by `configure' or to help
1878 it to find libraries and programs with nonstandard names/locations.
1880 Report bugs to the package provider.
1885 if test "$ac_init_help" = "recursive"; then
1886 # If there are subdirs, report their specific --help.
1887 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1888 test -d "$ac_dir" ||
1889 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1894 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1896 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1897 # A ".." for each directory in $ac_dir_suffix.
1898 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1899 case $ac_top_builddir_sub in
1900 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1901 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1904 ac_abs_top_builddir=$ac_pwd
1905 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1906 # for backward compatibility:
1907 ac_top_builddir=$ac_top_build_prefix
1910 .) # We are building in place.
1912 ac_top_srcdir=$ac_top_builddir_sub
1913 ac_abs_top_srcdir=$ac_pwd ;;
1914 [\\/]* | ?:[\\/]* ) # Absolute name.
1915 ac_srcdir=$srcdir$ac_dir_suffix;
1916 ac_top_srcdir=$srcdir
1917 ac_abs_top_srcdir=$srcdir ;;
1919 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1920 ac_top_srcdir=$ac_top_build_prefix$srcdir
1921 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1923 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1925 cd "$ac_dir" || { ac_status=$?; continue; }
1926 # Check for guested configure.
1927 if test -f "$ac_srcdir/configure.gnu"; then
1929 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1930 elif test -f "$ac_srcdir/configure"; then
1932 $SHELL "$ac_srcdir/configure" --help=recursive
1934 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1936 cd "$ac_pwd" || { ac_status=$?; break; }
1940 test -n "$ac_init_help" && exit $ac_status
1941 if $ac_init_version; then
1944 generated by GNU Autoconf 2.65
1946 Copyright (C) 2009 Free Software Foundation, Inc.
1947 This configure script is free software; the Free Software Foundation
1948 gives unlimited permission to copy, distribute and modify it.
1953 ## ------------------------ ##
1954 ## Autoconf initialization. ##
1955 ## ------------------------ ##
1957 # ac_fn_c_try_compile LINENO
1958 # --------------------------
1959 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1960 ac_fn_c_try_compile ()
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 rm -f conftest.$ac_objext
1964 if { { ac_try="$ac_compile"
1966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967 *) ac_try_echo=$ac_try;;
1969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970 $as_echo "$ac_try_echo"; } >&5
1971 (eval "$ac_compile") 2>conftest.err
1973 if test -s conftest.err; then
1974 grep -v '^ *+' conftest.err >conftest.er1
1975 cat conftest.er1 >&5
1976 mv -f conftest.er1 conftest.err
1978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979 test $ac_status = 0; } && {
1980 test -z "$ac_c_werror_flag" ||
1981 test ! -s conftest.err
1982 } && test -s conftest.$ac_objext; then :
1985 $as_echo "$as_me: failed program was:" >&5
1986 sed 's/^/| /' conftest.$ac_ext >&5
1990 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1991 as_fn_set_status $ac_retval
1993 } # ac_fn_c_try_compile
1995 # ac_fn_cxx_try_compile LINENO
1996 # ----------------------------
1997 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1998 ac_fn_cxx_try_compile ()
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 rm -f conftest.$ac_objext
2002 if { { ac_try="$ac_compile"
2004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2005 *) ac_try_echo=$ac_try;;
2007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2008 $as_echo "$ac_try_echo"; } >&5
2009 (eval "$ac_compile") 2>conftest.err
2011 if test -s conftest.err; then
2012 grep -v '^ *+' conftest.err >conftest.er1
2013 cat conftest.er1 >&5
2014 mv -f conftest.er1 conftest.err
2016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017 test $ac_status = 0; } && {
2018 test -z "$ac_cxx_werror_flag" ||
2019 test ! -s conftest.err
2020 } && test -s conftest.$ac_objext; then :
2023 $as_echo "$as_me: failed program was:" >&5
2024 sed 's/^/| /' conftest.$ac_ext >&5
2028 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2029 as_fn_set_status $ac_retval
2031 } # ac_fn_cxx_try_compile
2033 # ac_fn_c_try_cpp LINENO
2034 # ----------------------
2035 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 if { { ac_try="$ac_cpp conftest.$ac_ext"
2041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2042 *) ac_try_echo=$ac_try;;
2044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2045 $as_echo "$ac_try_echo"; } >&5
2046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2048 if test -s conftest.err; then
2049 grep -v '^ *+' conftest.err >conftest.er1
2050 cat conftest.er1 >&5
2051 mv -f conftest.er1 conftest.err
2053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2054 test $ac_status = 0; } >/dev/null && {
2055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2056 test ! -s conftest.err
2060 $as_echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2065 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2066 as_fn_set_status $ac_retval
2070 # ac_fn_c_try_link LINENO
2071 # -----------------------
2072 # Try to link conftest.$ac_ext, and return whether this succeeded.
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 rm -f conftest.$ac_objext conftest$ac_exeext
2077 if { { ac_try="$ac_link"
2079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2080 *) ac_try_echo=$ac_try;;
2082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2083 $as_echo "$ac_try_echo"; } >&5
2084 (eval "$ac_link") 2>conftest.err
2086 if test -s conftest.err; then
2087 grep -v '^ *+' conftest.err >conftest.er1
2088 cat conftest.er1 >&5
2089 mv -f conftest.er1 conftest.err
2091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2092 test $ac_status = 0; } && {
2093 test -z "$ac_c_werror_flag" ||
2094 test ! -s conftest.err
2095 } && test -s conftest$ac_exeext && {
2096 test "$cross_compiling" = yes ||
2097 $as_test_x conftest$ac_exeext
2101 $as_echo "$as_me: failed program was:" >&5
2102 sed 's/^/| /' conftest.$ac_ext >&5
2106 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2107 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2108 # interfere with the next link command; also delete a directory that is
2109 # left behind by Apple's compiler. We do this before executing the actions.
2110 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2111 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2112 as_fn_set_status $ac_retval
2114 } # ac_fn_c_try_link
2116 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2117 # -------------------------------------------------------
2118 # Tests whether HEADER exists and can be compiled using the include files in
2119 # INCLUDES, setting the cache variable VAR accordingly.
2120 ac_fn_c_check_header_compile ()
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2124 $as_echo_n "checking for $2... " >&6; }
2125 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2126 $as_echo_n "(cached) " >&6
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2133 if ac_fn_c_try_compile "$LINENO"; then :
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142 $as_echo "$ac_res" >&6; }
2143 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2145 } # ac_fn_c_check_header_compile
2147 # ac_fn_c_try_run LINENO
2148 # ----------------------
2149 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2150 # that executables *can* be run.
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 if { { ac_try="$ac_link"
2156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157 *) ac_try_echo=$ac_try;;
2159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2160 $as_echo "$ac_try_echo"; } >&5
2161 (eval "$ac_link") 2>&5
2163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2164 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2165 { { case "(($ac_try" in
2166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2167 *) ac_try_echo=$ac_try;;
2169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2170 $as_echo "$ac_try_echo"; } >&5
2171 (eval "$ac_try") 2>&5
2173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2174 test $ac_status = 0; }; }; then :
2177 $as_echo "$as_me: program exited with status $ac_status" >&5
2178 $as_echo "$as_me: failed program was:" >&5
2179 sed 's/^/| /' conftest.$ac_ext >&5
2181 ac_retval=$ac_status
2183 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2184 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2185 as_fn_set_status $ac_retval
2189 # ac_fn_c_check_func LINENO FUNC VAR
2190 # ----------------------------------
2191 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2192 ac_fn_c_check_func ()
2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2196 $as_echo_n "checking for $2... " >&6; }
2197 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2198 $as_echo_n "(cached) " >&6
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2202 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2204 #define $2 innocuous_$2
2206 /* System header to define __stub macros and hopefully few prototypes,
2207 which can conflict with char $2 (); below.
2208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2209 <limits.h> exists even on freestanding compilers. */
2212 # include <limits.h>
2214 # include <assert.h>
2219 /* Override any GCC internal prototype to avoid an error.
2220 Use char because int might match the return type of a GCC
2221 builtin and then its argument prototype would still apply. */
2226 /* The GNU C library defines this for functions which it implements
2227 to always fail with ENOSYS. Some functions are actually named
2228 something starting with __ and the normal name is an alias. */
2229 #if defined __stub_$2 || defined __stub___$2
2241 if ac_fn_c_try_link "$LINENO"; then :
2246 rm -f core conftest.err conftest.$ac_objext \
2247 conftest$ac_exeext conftest.$ac_ext
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251 $as_echo "$ac_res" >&6; }
2252 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2254 } # ac_fn_c_check_func
2256 # ac_fn_cxx_try_cpp LINENO
2257 # ------------------------
2258 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2259 ac_fn_cxx_try_cpp ()
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 if { { ac_try="$ac_cpp conftest.$ac_ext"
2264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265 *) ac_try_echo=$ac_try;;
2267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2268 $as_echo "$ac_try_echo"; } >&5
2269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2271 if test -s conftest.err; then
2272 grep -v '^ *+' conftest.err >conftest.er1
2273 cat conftest.er1 >&5
2274 mv -f conftest.er1 conftest.err
2276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2277 test $ac_status = 0; } >/dev/null && {
2278 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2279 test ! -s conftest.err
2283 $as_echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2288 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2289 as_fn_set_status $ac_retval
2291 } # ac_fn_cxx_try_cpp
2293 # ac_fn_cxx_try_link LINENO
2294 # -------------------------
2295 # Try to link conftest.$ac_ext, and return whether this succeeded.
2296 ac_fn_cxx_try_link ()
2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299 rm -f conftest.$ac_objext conftest$ac_exeext
2300 if { { ac_try="$ac_link"
2302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 *) ac_try_echo=$ac_try;;
2305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2306 $as_echo "$ac_try_echo"; } >&5
2307 (eval "$ac_link") 2>conftest.err
2309 if test -s conftest.err; then
2310 grep -v '^ *+' conftest.err >conftest.er1
2311 cat conftest.er1 >&5
2312 mv -f conftest.er1 conftest.err
2314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2315 test $ac_status = 0; } && {
2316 test -z "$ac_cxx_werror_flag" ||
2317 test ! -s conftest.err
2318 } && test -s conftest$ac_exeext && {
2319 test "$cross_compiling" = yes ||
2320 $as_test_x conftest$ac_exeext
2324 $as_echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2329 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2330 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2331 # interfere with the next link command; also delete a directory that is
2332 # left behind by Apple's compiler. We do this before executing the actions.
2333 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2334 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2335 as_fn_set_status $ac_retval
2337 } # ac_fn_cxx_try_link
2339 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2340 # -------------------------------------------
2341 # Tests whether TYPE exists after having included INCLUDES, setting cache
2342 # variable VAR accordingly.
2343 ac_fn_c_check_type ()
2345 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2347 $as_echo_n "checking for $2... " >&6; }
2348 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2349 $as_echo_n "(cached) " >&6
2352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h. */
2364 if ac_fn_c_try_compile "$LINENO"; then :
2365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h. */
2377 if ac_fn_c_try_compile "$LINENO"; then :
2382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2388 $as_echo "$ac_res" >&6; }
2389 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2391 } # ac_fn_c_check_type
2393 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2394 # -------------------------------------------------------
2395 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2396 # the include files in INCLUDES and setting the cache variable VAR
2398 ac_fn_c_check_header_mongrel ()
2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2403 $as_echo_n "checking for $2... " >&6; }
2404 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2405 $as_echo_n "(cached) " >&6
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2409 $as_echo "$ac_res" >&6; }
2411 # Is the header compilable?
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2413 $as_echo_n "checking $2 usability... " >&6; }
2414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2415 /* end confdefs.h. */
2419 if ac_fn_c_try_compile "$LINENO"; then :
2420 ac_header_compiler=yes
2422 ac_header_compiler=no
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2426 $as_echo "$ac_header_compiler" >&6; }
2428 # Is the header present?
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2430 $as_echo_n "checking $2 presence... " >&6; }
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h. */
2435 if ac_fn_c_try_cpp "$LINENO"; then :
2436 ac_header_preproc=yes
2438 ac_header_preproc=no
2440 rm -f conftest.err conftest.$ac_ext
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2442 $as_echo "$ac_header_preproc" >&6; }
2444 # So? What about this header?
2445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2448 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2450 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2454 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2456 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2458 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2460 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2462 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2466 $as_echo_n "checking for $2... " >&6; }
2467 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2468 $as_echo_n "(cached) " >&6
2470 eval "$3=\$ac_header_compiler"
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2474 $as_echo "$ac_res" >&6; }
2476 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2478 } # ac_fn_c_check_header_mongrel
2480 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2481 # --------------------------------------------
2482 # Tries to find the compile-time value of EXPR in a program that includes
2483 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2485 ac_fn_c_compute_int ()
2487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2488 if test "$cross_compiling" = yes; then
2489 # Depending upon the size, compute the lo and hi bounds.
2490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2491 /* end confdefs.h. */
2496 static int test_array [1 - 2 * !(($2) >= 0)];
2503 if ac_fn_c_try_compile "$LINENO"; then :
2506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507 /* end confdefs.h. */
2512 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2519 if ac_fn_c_try_compile "$LINENO"; then :
2520 ac_hi=$ac_mid; break
2522 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2523 if test $ac_lo -le $ac_mid; then
2527 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533 /* end confdefs.h. */
2538 static int test_array [1 - 2 * !(($2) < 0)];
2545 if ac_fn_c_try_compile "$LINENO"; then :
2548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2549 /* end confdefs.h. */
2554 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2561 if ac_fn_c_try_compile "$LINENO"; then :
2562 ac_lo=$ac_mid; break
2564 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2565 if test $ac_mid -le $ac_hi; then
2569 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2579 # Binary search between lo and hi bounds.
2580 while test "x$ac_lo" != "x$ac_hi"; do
2581 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2588 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2595 if ac_fn_c_try_compile "$LINENO"; then :
2598 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h. */
2610 static long int longval () { return $2; }
2611 static unsigned long int ulongval () { return $2; }
2618 FILE *f = fopen ("conftest.val", "w");
2623 long int i = longval ();
2626 fprintf (f, "%ld", i);
2630 unsigned long int i = ulongval ();
2633 fprintf (f, "%lu", i);
2635 /* Do not output a trailing newline, as this causes \r\n confusion
2636 on some platforms. */
2637 return ferror (f) || fclose (f) != 0;
2643 if ac_fn_c_try_run "$LINENO"; then :
2644 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2649 conftest.$ac_objext conftest.beam conftest.$ac_ext
2653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2654 as_fn_set_status $ac_retval
2656 } # ac_fn_c_compute_int
2658 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2659 # ----------------------------------------------------
2660 # Tries to find if the field MEMBER exists in type AGGR, after including
2661 # INCLUDES, setting cache variable VAR accordingly.
2662 ac_fn_c_check_member ()
2664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2666 $as_echo_n "checking for $2.$3... " >&6; }
2667 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2668 $as_echo_n "(cached) " >&6
2670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2671 /* end confdefs.h. */
2683 if ac_fn_c_try_compile "$LINENO"; then :
2686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2687 /* end confdefs.h. */
2693 if (sizeof ac_aggr.$3)
2699 if ac_fn_c_try_compile "$LINENO"; then :
2704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2710 $as_echo "$ac_res" >&6; }
2711 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2713 } # ac_fn_c_check_member
2715 # ac_fn_c_check_decl LINENO SYMBOL VAR
2716 # ------------------------------------
2717 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2718 ac_fn_c_check_decl ()
2720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2722 $as_echo_n "checking whether $2 is declared... " >&6; }
2723 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2724 $as_echo_n "(cached) " >&6
2726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2727 /* end confdefs.h. */
2740 if ac_fn_c_try_compile "$LINENO"; then :
2745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2749 $as_echo "$ac_res" >&6; }
2750 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2752 } # ac_fn_c_check_decl
2754 # ac_fn_cxx_try_run LINENO
2755 # ------------------------
2756 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2757 # that executables *can* be run.
2758 ac_fn_cxx_try_run ()
2760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2761 if { { ac_try="$ac_link"
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2767 $as_echo "$ac_try_echo"; } >&5
2768 (eval "$ac_link") 2>&5
2770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2771 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2772 { { case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2777 $as_echo "$ac_try_echo"; } >&5
2778 (eval "$ac_try") 2>&5
2780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2781 test $ac_status = 0; }; }; then :
2784 $as_echo "$as_me: program exited with status $ac_status" >&5
2785 $as_echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2788 ac_retval=$ac_status
2790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2792 as_fn_set_status $ac_retval
2794 } # ac_fn_cxx_try_run
2795 cat >config.log <<_ACEOF
2796 This file contains any messages produced by compilers while
2797 running configure, to aid debugging if configure makes a mistake.
2799 It was created by $as_me, which was
2800 generated by GNU Autoconf 2.65. Invocation command line was
2812 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2813 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2814 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2815 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2816 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2818 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2819 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2821 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2822 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2823 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2824 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2825 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2826 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2827 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 test -z "$as_dir" && as_dir=.
2836 $as_echo "PATH: $as_dir"
2852 # Keep a trace of the command line.
2853 # Strip out --no-create and --no-recursion so they do not pile up.
2854 # Strip out --silent because we don't want to record it for future runs.
2855 # Also quote any args containing shell meta-characters.
2856 # Make two passes to allow for proper duplicate-argument suppression.
2860 ac_must_keep_next=false
2866 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2867 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2868 | -silent | --silent | --silen | --sile | --sil)
2871 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2874 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2876 as_fn_append ac_configure_args1 " '$ac_arg'"
2877 if test $ac_must_keep_next = true; then
2878 ac_must_keep_next=false # Got value, back to normal.
2881 *=* | --config-cache | -C | -disable-* | --disable-* \
2882 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2883 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2884 | -with-* | --with-* | -without-* | --without-* | --x)
2885 case "$ac_configure_args0 " in
2886 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2889 -* ) ac_must_keep_next=true ;;
2892 as_fn_append ac_configure_args " '$ac_arg'"
2897 { ac_configure_args0=; unset ac_configure_args0;}
2898 { ac_configure_args1=; unset ac_configure_args1;}
2900 # When interrupted or exit'd, cleanup temporary files, and complete
2901 # config.log. We remove comments because anyway the quotes in there
2902 # would cause problems or look ugly.
2903 # WARNING: Use '\'' to represent an apostrophe within the trap.
2904 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2905 trap 'exit_status=$?
2906 # Save into config.log some information that might help in debugging.
2911 ## ---------------- ##
2912 ## Cache variables. ##
2913 ## ---------------- ##
2916 # The following way of writing the cache mishandles newlines in values,
2918 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2919 eval ac_val=\$$ac_var
2923 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2924 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2927 _ | IFS | as_nl) ;; #(
2928 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2929 *) { eval $ac_var=; unset $ac_var;} ;;
2934 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2935 *${as_nl}ac_space=\ *)
2937 "s/'\''/'\''\\\\'\'''\''/g;
2938 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2941 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2949 ## ----------------- ##
2950 ## Output variables. ##
2951 ## ----------------- ##
2954 for ac_var in $ac_subst_vars
2956 eval ac_val=\$$ac_var
2958 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2960 $as_echo "$ac_var='\''$ac_val'\''"
2964 if test -n "$ac_subst_files"; then
2966 ## ------------------- ##
2967 ## File substitutions. ##
2968 ## ------------------- ##
2971 for ac_var in $ac_subst_files
2973 eval ac_val=\$$ac_var
2975 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2977 $as_echo "$ac_var='\''$ac_val'\''"
2982 if test -s confdefs.h; then
2992 test "$ac_signal" != 0 &&
2993 $as_echo "$as_me: caught signal $ac_signal"
2994 $as_echo "$as_me: exit $exit_status"
2996 rm -f core *.core core.conftest.* &&
2997 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3000 for ac_signal in 1 2 13 15; do
3001 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3005 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3006 rm -f -r conftest* confdefs.h
3008 $as_echo "/* confdefs.h */" > confdefs.h
3010 # Predefined preprocessor variables.
3012 cat >>confdefs.h <<_ACEOF
3013 #define PACKAGE_NAME "$PACKAGE_NAME"
3016 cat >>confdefs.h <<_ACEOF
3017 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3020 cat >>confdefs.h <<_ACEOF
3021 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3024 cat >>confdefs.h <<_ACEOF
3025 #define PACKAGE_STRING "$PACKAGE_STRING"
3028 cat >>confdefs.h <<_ACEOF
3029 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3032 cat >>confdefs.h <<_ACEOF
3033 #define PACKAGE_URL "$PACKAGE_URL"
3037 # Let the site file select an alternate cache file if it wants to.
3038 # Prefer an explicitly selected file to automatically selected ones.
3041 if test -n "$CONFIG_SITE"; then
3042 ac_site_file1=$CONFIG_SITE
3043 elif test "x$prefix" != xNONE; then
3044 ac_site_file1=$prefix/share/config.site
3045 ac_site_file2=$prefix/etc/config.site
3047 ac_site_file1=$ac_default_prefix/share/config.site
3048 ac_site_file2=$ac_default_prefix/etc/config.site
3050 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3052 test "x$ac_site_file" = xNONE && continue
3053 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3055 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3056 sed 's/^/| /' "$ac_site_file" >&5
3061 if test -r "$cache_file"; then
3062 # Some versions of bash will fail to source /dev/null (special files
3063 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3064 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3066 $as_echo "$as_me: loading cache $cache_file" >&6;}
3068 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3069 *) . "./$cache_file";;
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3074 $as_echo "$as_me: creating cache $cache_file" >&6;}
3078 as_fn_append ac_header_list " stdlib.h"
3079 as_fn_append ac_header_list " unistd.h"
3080 as_fn_append ac_header_list " sys/param.h"
3081 # Check that the precious variables saved in the cache have kept the same
3083 ac_cache_corrupted=false
3084 for ac_var in $ac_precious_vars; do
3085 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3086 eval ac_new_set=\$ac_env_${ac_var}_set
3087 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3088 eval ac_new_val=\$ac_env_${ac_var}_value
3089 case $ac_old_set,$ac_new_set in
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3092 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3093 ac_cache_corrupted=: ;;
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3096 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3097 ac_cache_corrupted=: ;;
3100 if test "x$ac_old_val" != "x$ac_new_val"; then
3101 # differences in whitespace do not lead to failure.
3102 ac_old_val_w=`echo x $ac_old_val`
3103 ac_new_val_w=`echo x $ac_new_val`
3104 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3106 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3107 ac_cache_corrupted=:
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3110 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3111 eval $ac_var=\$ac_old_val
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3114 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3116 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3119 # Pass precious variables to config.status.
3120 if test "$ac_new_set" = set; then
3122 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3123 *) ac_arg=$ac_var=$ac_new_val ;;
3125 case " $ac_configure_args " in
3126 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3127 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3131 if $ac_cache_corrupted; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3135 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3136 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3138 ## -------------------- ##
3139 ## Main body of script. ##
3140 ## -------------------- ##
3143 ac_cpp='$CPP $CPPFLAGS'
3144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3156 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3157 for ac_t in install-sh install.sh shtool; do
3158 if test -f "$ac_dir/$ac_t"; then
3160 ac_install_sh="$ac_aux_dir/$ac_t -c"
3165 if test -z "$ac_aux_dir"; then
3166 as_fn_error "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3169 # These three variables are undocumented and unsupported,
3170 # and are intended to be withdrawn in a future Autoconf release.
3171 # They can cause serious problems if a builder's source tree is in a directory
3172 # whose full name contains unusual characters.
3173 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3174 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3175 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3178 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3181 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3182 WIN32MAINDIR=${BUILD_DIR}
3183 WIN32TOPDIR=${TOP_DIR}
3190 # Extract the first word of "$ac_prog", so it can be a program name with args.
3191 set dummy $ac_prog; ac_word=$2
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_path_TRUEPRG+set}" = set; then :
3195 $as_echo_n "(cached) " >&6
3199 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 TRUEPRG=$ac_cv_path_TRUEPRG
3221 if test -n "$TRUEPRG"; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3223 $as_echo "$TRUEPRG" >&6; }
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3230 test -n "$TRUEPRG" && break
3232 test -n "$TRUEPRG" || TRUEPRG=":"
3234 for ac_prog in false
3236 # Extract the first word of "$ac_prog", so it can be a program name with args.
3237 set dummy $ac_prog; ac_word=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if test "${ac_cv_path_FALSEPRG+set}" = set; then :
3241 $as_echo_n "(cached) " >&6
3245 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 test -z "$as_dir" && as_dir=.
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3255 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 FALSEPRG=$ac_cv_path_FALSEPRG
3267 if test -n "$FALSEPRG"; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3269 $as_echo "$FALSEPRG" >&6; }
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3276 test -n "$FALSEPRG" && break
3278 test -n "$FALSEPRG" || FALSEPRG=":"
3283 if test "x$BACULA" != x; then
3284 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3286 BACULA=${BACULA:-Bacula}
3287 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3288 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3289 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3291 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3292 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3293 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3295 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3296 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3297 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3300 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3302 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3305 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3307 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3310 echo "configuring for ${BACULA} $VERSION ($DATE)"
3315 ac_cpp='$CPP $CPPFLAGS'
3316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319 if test -n "$ac_tool_prefix"; then
3320 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3321 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if test "${ac_cv_prog_CC+set}" = set; then :
3325 $as_echo_n "(cached) " >&6
3327 if test -n "$CC"; then
3328 ac_cv_prog_CC="$CC" # Let the user override the test.
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3337 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348 if test -n "$CC"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 $as_echo "$CC" >&6; }
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3358 if test -z "$ac_cv_prog_CC"; then
3360 # Extract the first word of "gcc", so it can be a program name with args.
3361 set dummy gcc; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3365 $as_echo_n "(cached) " >&6
3367 if test -n "$ac_ct_CC"; then
3368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3377 ac_cv_prog_ac_ct_CC="gcc"
3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3388 if test -n "$ac_ct_CC"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3390 $as_echo "$ac_ct_CC" >&6; }
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3396 if test "x$ac_ct_CC" = x; then
3399 case $cross_compiling:$ac_tool_warned in
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3403 ac_tool_warned=yes ;;
3411 if test -z "$CC"; then
3412 if test -n "$ac_tool_prefix"; then
3413 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3414 set dummy ${ac_tool_prefix}cc; ac_word=$2
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416 $as_echo_n "checking for $ac_word... " >&6; }
3417 if test "${ac_cv_prog_CC+set}" = set; then :
3418 $as_echo_n "(cached) " >&6
3420 if test -n "$CC"; then
3421 ac_cv_prog_CC="$CC" # Let the user override the test.
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 test -z "$as_dir" && as_dir=.
3428 for ac_exec_ext in '' $ac_executable_extensions; do
3429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3430 ac_cv_prog_CC="${ac_tool_prefix}cc"
3431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 if test -n "$CC"; then
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3443 $as_echo "$CC" >&6; }
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3452 if test -z "$CC"; then
3453 # Extract the first word of "cc", so it can be a program name with args.
3454 set dummy cc; ac_word=$2
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if test "${ac_cv_prog_CC+set}" = set; then :
3458 $as_echo_n "(cached) " >&6
3460 if test -n "$CC"; then
3461 ac_cv_prog_CC="$CC" # Let the user override the test.
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3471 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3472 ac_prog_rejected=yes
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3483 if test $ac_prog_rejected = yes; then
3484 # We found a bogon in the path, so make sure we never use it.
3485 set dummy $ac_cv_prog_CC
3487 if test $# != 0; then
3488 # We chose a different compiler from the bogus one.
3489 # However, it has the same basename, so the bogon will be chosen
3490 # first if we set CC to just the basename; use the full file name.
3492 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3498 if test -n "$CC"; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3500 $as_echo "$CC" >&6; }
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3508 if test -z "$CC"; then
3509 if test -n "$ac_tool_prefix"; then
3510 for ac_prog in cl.exe
3512 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if test "${ac_cv_prog_CC+set}" = set; then :
3517 $as_echo_n "(cached) " >&6
3519 if test -n "$CC"; then
3520 ac_cv_prog_CC="$CC" # Let the user override the test.
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3529 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 if test -n "$CC"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542 $as_echo "$CC" >&6; }
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3549 test -n "$CC" && break
3552 if test -z "$CC"; then
3554 for ac_prog in cl.exe
3556 # Extract the first word of "$ac_prog", so it can be a program name with args.
3557 set dummy $ac_prog; ac_word=$2
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559 $as_echo_n "checking for $ac_word... " >&6; }
3560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3561 $as_echo_n "(cached) " >&6
3563 if test -n "$ac_ct_CC"; then
3564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3573 ac_cv_prog_ac_ct_CC="$ac_prog"
3574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3584 if test -n "$ac_ct_CC"; then
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3586 $as_echo "$ac_ct_CC" >&6; }
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3593 test -n "$ac_ct_CC" && break
3596 if test "x$ac_ct_CC" = x; then
3599 case $cross_compiling:$ac_tool_warned in
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3603 ac_tool_warned=yes ;;
3612 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 as_fn_error "no acceptable C compiler found in \$PATH
3615 See \`config.log' for more details." "$LINENO" 5; }
3617 # Provide some information about the compiler.
3618 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3621 for ac_option in --version -v -V -qversion; do
3622 { { ac_try="$ac_compiler $ac_option >&5"
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3628 $as_echo "$ac_try_echo"; } >&5
3629 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3631 if test -s conftest.err; then
3633 ... rest of stderr output deleted ...
3634 10q' conftest.err >conftest.er1
3635 cat conftest.er1 >&5
3637 rm -f conftest.er1 conftest.err
3638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639 test $ac_status = 0; }
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3653 ac_clean_files_save=$ac_clean_files
3654 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3655 # Try to create an executable without -o first, disregard a.out.
3656 # It will help us diagnose broken compilers, and finding out an intuition
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3659 $as_echo_n "checking whether the C compiler works... " >&6; }
3660 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3662 # The possible output files:
3663 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3666 for ac_file in $ac_files
3669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3670 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3675 if { { ac_try="$ac_link_default"
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3681 $as_echo "$ac_try_echo"; } >&5
3682 (eval "$ac_link_default") 2>&5
3684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3685 test $ac_status = 0; }; then :
3686 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3687 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3688 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3689 # so that the user can short-circuit this test for compilers unknown to
3691 for ac_file in $ac_files ''
3693 test -f "$ac_file" || continue
3695 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3698 # We found the default executable, but exeext='' is most
3702 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3704 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3706 # We set ac_cv_exeext here because the later test for it is not
3707 # safe: cross compilers may not add the suffix if given an `-o'
3708 # argument, so we may need to know it at that point already.
3709 # Even if this section looks crufty: it has the advantage of
3716 test "$ac_cv_exeext" = no && ac_cv_exeext=
3721 if test -z "$ac_file"; then :
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3724 $as_echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729 { as_fn_set_status 77
3730 as_fn_error "C compiler cannot create executables
3731 See \`config.log' for more details." "$LINENO" 5; }; }
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3734 $as_echo "yes" >&6; }
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3737 $as_echo_n "checking for C compiler default output file name... " >&6; }
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3739 $as_echo "$ac_file" >&6; }
3740 ac_exeext=$ac_cv_exeext
3742 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3743 ac_clean_files=$ac_clean_files_save
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3745 $as_echo_n "checking for suffix of executables... " >&6; }
3746 if { { ac_try="$ac_link"
3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749 *) ac_try_echo=$ac_try;;
3751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3752 $as_echo "$ac_try_echo"; } >&5
3753 (eval "$ac_link") 2>&5
3755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3756 test $ac_status = 0; }; then :
3757 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3758 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3759 # work properly (i.e., refer to `conftest.exe'), while it won't with
3761 for ac_file in conftest.exe conftest conftest.*; do
3762 test -f "$ac_file" || continue
3764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3765 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3773 as_fn_error "cannot compute suffix of executables: cannot compile and link
3774 See \`config.log' for more details." "$LINENO" 5; }
3776 rm -f conftest conftest$ac_cv_exeext
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3778 $as_echo "$ac_cv_exeext" >&6; }
3780 rm -f conftest.$ac_ext
3781 EXEEXT=$ac_cv_exeext
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3789 FILE *f = fopen ("conftest.out", "w");
3790 return ferror (f) || fclose (f) != 0;
3796 ac_clean_files="$ac_clean_files conftest.out"
3797 # Check that the compiler produces executables we can run. If not, either
3798 # the compiler is broken, or we cross compile.
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3800 $as_echo_n "checking whether we are cross compiling... " >&6; }
3801 if test "$cross_compiling" != yes; then
3802 { { ac_try="$ac_link"
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3808 $as_echo "$ac_try_echo"; } >&5
3809 (eval "$ac_link") 2>&5
3811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812 test $ac_status = 0; }
3813 if { ac_try='./conftest$ac_cv_exeext'
3814 { { case "(($ac_try" in
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820 (eval "$ac_try") 2>&5
3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823 test $ac_status = 0; }; }; then
3826 if test "$cross_compiling" = maybe; then
3829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3831 as_fn_error "cannot run C compiled programs.
3832 If you meant to cross compile, use \`--host'.
3833 See \`config.log' for more details." "$LINENO" 5; }
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3838 $as_echo "$cross_compiling" >&6; }
3840 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3841 ac_clean_files=$ac_clean_files_save
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3843 $as_echo_n "checking for suffix of object files... " >&6; }
3844 if test "${ac_cv_objext+set}" = set; then :
3845 $as_echo_n "(cached) " >&6
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3858 rm -f conftest.o conftest.obj
3859 if { { ac_try="$ac_compile"
3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862 *) ac_try_echo=$ac_try;;
3864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3865 $as_echo "$ac_try_echo"; } >&5
3866 (eval "$ac_compile") 2>&5
3868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3869 test $ac_status = 0; }; then :
3870 for ac_file in conftest.o conftest.obj conftest.*; do
3871 test -f "$ac_file" || continue;
3873 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3874 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3879 $as_echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3884 as_fn_error "cannot compute suffix of object files: cannot compile
3885 See \`config.log' for more details." "$LINENO" 5; }
3887 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3890 $as_echo "$ac_cv_objext" >&6; }
3891 OBJEXT=$ac_cv_objext
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3894 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3895 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3896 $as_echo_n "(cached) " >&6
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899 /* end confdefs.h. */
3912 if ac_fn_c_try_compile "$LINENO"; then :
3917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3922 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3923 if test $ac_compiler_gnu = yes; then
3928 ac_test_CFLAGS=${CFLAGS+set}
3929 ac_save_CFLAGS=$CFLAGS
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3931 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3932 if test "${ac_cv_prog_cc_g+set}" = set; then :
3933 $as_echo_n "(cached) " >&6
3935 ac_save_c_werror_flag=$ac_c_werror_flag
3936 ac_c_werror_flag=yes
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3950 if ac_fn_c_try_compile "$LINENO"; then :
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3965 if ac_fn_c_try_compile "$LINENO"; then :
3968 ac_c_werror_flag=$ac_save_c_werror_flag
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h. */
3981 if ac_fn_c_try_compile "$LINENO"; then :
3984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3989 ac_c_werror_flag=$ac_save_c_werror_flag
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3992 $as_echo "$ac_cv_prog_cc_g" >&6; }
3993 if test "$ac_test_CFLAGS" = set; then
3994 CFLAGS=$ac_save_CFLAGS
3995 elif test $ac_cv_prog_cc_g = yes; then
3996 if test "$GCC" = yes; then
4002 if test "$GCC" = yes; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4009 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4010 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4011 $as_echo_n "(cached) " >&6
4013 ac_cv_prog_cc_c89=no
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4019 #include <sys/types.h>
4020 #include <sys/stat.h>
4021 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4022 struct buf { int x; };
4023 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4024 static char *e (p, i)
4030 static char *f (char * (*g) (char **, int), char **p, ...)
4035 s = g (p, va_arg (v,int));
4040 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4041 function prototypes and stuff, but not '\xHH' hex character constants.
4042 These don't provoke an error unfortunately, instead are silently treated
4043 as 'x'. The following induces an error, until -std is added to get
4044 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4045 array size at least. It's necessary to write '\x00'==0 to get something
4046 that's true only with -std. */
4047 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4049 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4050 inside strings and character constants. */
4052 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4054 int test (int i, double x);
4055 struct s1 {int (*f) (int a);};
4056 struct s2 {int (*f) (double a);};
4057 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4063 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4068 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4069 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4071 CC="$ac_save_CC $ac_arg"
4072 if ac_fn_c_try_compile "$LINENO"; then :
4073 ac_cv_prog_cc_c89=$ac_arg
4075 rm -f core conftest.err conftest.$ac_objext
4076 test "x$ac_cv_prog_cc_c89" != "xno" && break
4078 rm -f conftest.$ac_ext
4083 case "x$ac_cv_prog_cc_c89" in
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4086 $as_echo "none needed" >&6; } ;;
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4089 $as_echo "unsupported" >&6; } ;;
4091 CC="$CC $ac_cv_prog_cc_c89"
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4093 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4095 if test "x$ac_cv_prog_cc_c89" != xno; then :
4100 ac_cpp='$CPP $CPPFLAGS'
4101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106 ac_cpp='$CXXCPP $CPPFLAGS'
4107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4110 if test -z "$CXX"; then
4111 if test -n "$CCC"; then
4114 if test -n "$ac_tool_prefix"; then
4115 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4117 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120 $as_echo_n "checking for $ac_word... " >&6; }
4121 if test "${ac_cv_prog_CXX+set}" = set; then :
4122 $as_echo_n "(cached) " >&6
4124 if test -n "$CXX"; then
4125 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4134 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 if test -n "$CXX"; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4147 $as_echo "$CXX" >&6; }
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150 $as_echo "no" >&6; }
4154 test -n "$CXX" && break
4157 if test -z "$CXX"; then
4159 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4161 # Extract the first word of "$ac_prog", so it can be a program name with args.
4162 set dummy $ac_prog; ac_word=$2
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164 $as_echo_n "checking for $ac_word... " >&6; }
4165 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4166 $as_echo_n "(cached) " >&6
4168 if test -n "$ac_ct_CXX"; then
4169 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4178 ac_cv_prog_ac_ct_CXX="$ac_prog"
4179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4189 if test -n "$ac_ct_CXX"; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4191 $as_echo "$ac_ct_CXX" >&6; }
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 $as_echo "no" >&6; }
4198 test -n "$ac_ct_CXX" && break
4201 if test "x$ac_ct_CXX" = x; then
4204 case $cross_compiling:$ac_tool_warned in
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4208 ac_tool_warned=yes ;;
4216 # Provide some information about the compiler.
4217 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4220 for ac_option in --version -v -V -qversion; do
4221 { { ac_try="$ac_compiler $ac_option >&5"
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227 $as_echo "$ac_try_echo"; } >&5
4228 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4230 if test -s conftest.err; then
4232 ... rest of stderr output deleted ...
4233 10q' conftest.err >conftest.er1
4234 cat conftest.er1 >&5
4236 rm -f conftest.er1 conftest.err
4237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4238 test $ac_status = 0; }
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4242 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4243 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4244 $as_echo_n "(cached) " >&6
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4260 if ac_fn_cxx_try_compile "$LINENO"; then :
4265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4266 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4270 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4271 if test $ac_compiler_gnu = yes; then
4276 ac_test_CXXFLAGS=${CXXFLAGS+set}
4277 ac_save_CXXFLAGS=$CXXFLAGS
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4279 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4280 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4281 $as_echo_n "(cached) " >&6
4283 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4284 ac_cxx_werror_flag=yes
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4298 if ac_fn_cxx_try_compile "$LINENO"; then :
4299 ac_cv_prog_cxx_g=yes
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4313 if ac_fn_cxx_try_compile "$LINENO"; then :
4316 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4329 if ac_fn_cxx_try_compile "$LINENO"; then :
4330 ac_cv_prog_cxx_g=yes
4332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4340 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4341 if test "$ac_test_CXXFLAGS" = set; then
4342 CXXFLAGS=$ac_save_CXXFLAGS
4343 elif test $ac_cv_prog_cxx_g = yes; then
4344 if test "$GXX" = yes; then
4350 if test "$GXX" = yes; then
4357 ac_cpp='$CPP $CPPFLAGS'
4358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4362 if test "x$CC" != xcc; then
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4364 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4367 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4369 set dummy $CC; ac_cc=`$as_echo "$2" |
4370 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4371 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4372 $as_echo_n "(cached) " >&6
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4385 # Make sure it works both with $CC and with simple cc.
4386 # We do the test twice because some compilers refuse to overwrite an
4387 # existing .o file with -o, though they will create one.
4388 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4390 if { { case "(($ac_try" in
4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392 *) ac_try_echo=$ac_try;;
4394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4395 $as_echo "$ac_try_echo"; } >&5
4396 (eval "$ac_try") 2>&5
4398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4399 test $ac_status = 0; } &&
4400 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4405 $as_echo "$ac_try_echo"; } >&5
4406 (eval "$ac_try") 2>&5
4408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4409 test $ac_status = 0; };
4411 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4412 if test "x$CC" != xcc; then
4413 # Test first that cc exists at all.
4414 if { ac_try='cc -c conftest.$ac_ext >&5'
4415 { { 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; }; }; then
4425 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4427 if { { case "(($ac_try" in
4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429 *) ac_try_echo=$ac_try;;
4431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4432 $as_echo "$ac_try_echo"; } >&5
4433 (eval "$ac_try") 2>&5
4435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436 test $ac_status = 0; } &&
4437 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4442 $as_echo "$ac_try_echo"; } >&5
4443 (eval "$ac_try") 2>&5
4445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446 test $ac_status = 0; };
4451 # cc exists but doesn't like -o.
4452 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4457 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4459 rm -f core conftest*
4462 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4464 $as_echo "yes" >&6; }
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467 $as_echo "no" >&6; }
4469 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4474 ac_cpp='$CPP $CPPFLAGS'
4475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4479 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4480 # On Suns, sometimes $CPP names a directory.
4481 if test -n "$CPP" && test -d "$CPP"; then
4484 if test -z "$CPP"; then
4485 if test "${ac_cv_prog_CPP+set}" = set; then :
4486 $as_echo_n "(cached) " >&6
4488 # Double quotes because CPP needs to be expanded
4489 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4492 for ac_c_preproc_warn_flag in '' yes
4494 # Use a header file that comes with gcc, so configuring glibc
4495 # with a fresh cross-compiler works.
4496 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4497 # <limits.h> exists even on freestanding compilers.
4498 # On the NeXT, cc -E runs the code through the compiler's parser,
4499 # not just through cpp. "Syntax error" is here to catch this case.
4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h. */
4503 # include <limits.h>
4505 # include <assert.h>
4509 if ac_fn_c_try_cpp "$LINENO"; then :
4512 # Broken: fails on valid input.
4515 rm -f conftest.err conftest.$ac_ext
4517 # OK, works on sane cases. Now check whether nonexistent headers
4518 # can be detected and how.
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4521 #include <ac_nonexistent.h>
4523 if ac_fn_c_try_cpp "$LINENO"; then :
4524 # Broken: success on invalid input.
4527 # Passes both tests.
4531 rm -f conftest.err conftest.$ac_ext
4534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4535 rm -f conftest.err conftest.$ac_ext
4536 if $ac_preproc_ok; then :
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4549 $as_echo "$CPP" >&6; }
4551 for ac_c_preproc_warn_flag in '' yes
4553 # Use a header file that comes with gcc, so configuring glibc
4554 # with a fresh cross-compiler works.
4555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4556 # <limits.h> exists even on freestanding compilers.
4557 # On the NeXT, cc -E runs the code through the compiler's parser,
4558 # not just through cpp. "Syntax error" is here to catch this case.
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4562 # include <limits.h>
4564 # include <assert.h>
4568 if ac_fn_c_try_cpp "$LINENO"; then :
4571 # Broken: fails on valid input.
4574 rm -f conftest.err conftest.$ac_ext
4576 # OK, works on sane cases. Now check whether nonexistent headers
4577 # can be detected and how.
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4580 #include <ac_nonexistent.h>
4582 if ac_fn_c_try_cpp "$LINENO"; then :
4583 # Broken: success on invalid input.
4586 # Passes both tests.
4590 rm -f conftest.err conftest.$ac_ext
4593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4594 rm -f conftest.err conftest.$ac_ext
4595 if $ac_preproc_ok; then :
4598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4600 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4601 See \`config.log' for more details." "$LINENO" 5; }
4605 ac_cpp='$CPP $CPPFLAGS'
4606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4612 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4613 if test "${ac_cv_path_GREP+set}" = set; then :
4614 $as_echo_n "(cached) " >&6
4616 if test -z "$GREP"; then
4617 ac_path_GREP_found=false
4618 # Loop through the user's path and test for each of PROGNAME-LIST
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4623 test -z "$as_dir" && as_dir=.
4624 for ac_prog in grep ggrep; do
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4627 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4628 # Check for GNU ac_path_GREP and select it if it is found.
4629 # Check for GNU $ac_path_GREP
4630 case `"$ac_path_GREP" --version 2>&1` in
4632 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4635 $as_echo_n 0123456789 >"conftest.in"
4638 cat "conftest.in" "conftest.in" >"conftest.tmp"
4639 mv "conftest.tmp" "conftest.in"
4640 cp "conftest.in" "conftest.nl"
4641 $as_echo 'GREP' >> "conftest.nl"
4642 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4643 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4644 as_fn_arith $ac_count + 1 && ac_count=$as_val
4645 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4646 # Best one so far, save it but keep looking for a better one
4647 ac_cv_path_GREP="$ac_path_GREP"
4648 ac_path_GREP_max=$ac_count
4650 # 10*(2^10) chars as input seems more than enough
4651 test $ac_count -gt 10 && break
4653 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4656 $ac_path_GREP_found && break 3
4661 if test -z "$ac_cv_path_GREP"; then
4662 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4665 ac_cv_path_GREP=$GREP
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4670 $as_echo "$ac_cv_path_GREP" >&6; }
4671 GREP="$ac_cv_path_GREP"
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4675 $as_echo_n "checking for egrep... " >&6; }
4676 if test "${ac_cv_path_EGREP+set}" = set; then :
4677 $as_echo_n "(cached) " >&6
4679 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4680 then ac_cv_path_EGREP="$GREP -E"
4682 if test -z "$EGREP"; then
4683 ac_path_EGREP_found=false
4684 # Loop through the user's path and test for each of PROGNAME-LIST
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4689 test -z "$as_dir" && as_dir=.
4690 for ac_prog in egrep; do
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4693 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4694 # Check for GNU ac_path_EGREP and select it if it is found.
4695 # Check for GNU $ac_path_EGREP
4696 case `"$ac_path_EGREP" --version 2>&1` in
4698 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4701 $as_echo_n 0123456789 >"conftest.in"
4704 cat "conftest.in" "conftest.in" >"conftest.tmp"
4705 mv "conftest.tmp" "conftest.in"
4706 cp "conftest.in" "conftest.nl"
4707 $as_echo 'EGREP' >> "conftest.nl"
4708 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4709 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4710 as_fn_arith $ac_count + 1 && ac_count=$as_val
4711 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4712 # Best one so far, save it but keep looking for a better one
4713 ac_cv_path_EGREP="$ac_path_EGREP"
4714 ac_path_EGREP_max=$ac_count
4716 # 10*(2^10) chars as input seems more than enough
4717 test $ac_count -gt 10 && break
4719 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4722 $ac_path_EGREP_found && break 3
4727 if test -z "$ac_cv_path_EGREP"; then
4728 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4731 ac_cv_path_EGREP=$EGREP
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4737 $as_echo "$ac_cv_path_EGREP" >&6; }
4738 EGREP="$ac_cv_path_EGREP"
4741 if test $ac_cv_c_compiler_gnu = yes; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4743 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4744 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4745 $as_echo_n "(cached) " >&6
4747 ac_pattern="Autoconf.*'x'"
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4754 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4755 ac_cv_prog_gcc_traditional=yes
4757 ac_cv_prog_gcc_traditional=no
4762 if test $ac_cv_prog_gcc_traditional = no; then
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4769 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4770 ac_cv_prog_gcc_traditional=yes
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4777 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4778 if test $ac_cv_prog_gcc_traditional = yes; then
4779 CC="$CC -traditional"
4783 BASECC=`basename $CC`
4785 if test "x$BASECC" = xgcc; then
4786 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4790 # Extract the first word of "$CXX", so it can be a program name with args.
4791 set dummy $CXX; ac_word=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if test "${ac_cv_path_CXX+set}" = set; then :
4795 $as_echo_n "(cached) " >&6
4799 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4809 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4822 if test -n "$CXX"; then
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4824 $as_echo "$CXX" >&6; }
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 $as_echo "no" >&6; }
4831 if test ! -e $CXX; then
4832 as_fn_error "Unable to find C++ compiler" "$LINENO" 5
4835 # Find a good install program. We prefer a C program (faster),
4836 # so one script is as good as another. But avoid the broken or
4837 # incompatible versions:
4838 # SysV /etc/install, /usr/sbin/install
4839 # SunOS /usr/etc/install
4840 # IRIX /sbin/install
4842 # AmigaOS /C/install, which installs bootblocks on floppy discs
4843 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4844 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4845 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4846 # OS/2's system install, which has a completely different semantic
4847 # ./install, which can be erroneously created by make from ./install.sh.
4848 # Reject install programs that cannot install multiple files.
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4850 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4851 if test -z "$INSTALL"; then
4852 if test "${ac_cv_path_install+set}" = set; then :
4853 $as_echo_n "(cached) " >&6
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 test -z "$as_dir" && as_dir=.
4860 # Account for people who put trailing slashes in PATH elements.
4861 case $as_dir/ in #((
4862 ./ | .// | /[cC]/* | \
4863 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4864 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4867 # OSF1 and SCO ODT 3.0 have their own names for install.
4868 # Don't use installbsd from OSF since it installs stuff as root
4870 for ac_prog in ginstall scoinst install; do
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4873 if test $ac_prog = install &&
4874 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4875 # AIX install. It has an incompatible calling convention.
4877 elif test $ac_prog = install &&
4878 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4879 # program-specific install script used by HP pwplus--don't use.
4882 rm -rf conftest.one conftest.two conftest.dir
4883 echo one > conftest.one
4884 echo two > conftest.two
4886 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4887 test -s conftest.one && test -s conftest.two &&
4888 test -s conftest.dir/conftest.one &&
4889 test -s conftest.dir/conftest.two
4891 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4904 rm -rf conftest.one conftest.two conftest.dir
4907 if test "${ac_cv_path_install+set}" = set; then
4908 INSTALL=$ac_cv_path_install
4910 # As a last resort, use the slow shell script. Don't cache a
4911 # value for INSTALL within a source directory, because that will
4912 # break other packages using the cache if that directory is
4913 # removed, or if the value is a relative name.
4914 INSTALL=$ac_install_sh
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4918 $as_echo "$INSTALL" >&6; }
4920 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4921 # It thinks the first close brace ends the variable substitution.
4922 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4924 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4926 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4928 # Extract the first word of "mv", so it can be a program name with args.
4929 set dummy mv; ac_word=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if test "${ac_cv_path_MV+set}" = set; then :
4933 $as_echo_n "(cached) " >&6
4937 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4947 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4960 if test -n "$MV"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4962 $as_echo "$MV" >&6; }
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4969 # Extract the first word of "rm", so it can be a program name with args.
4970 set dummy rm; ac_word=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if test "${ac_cv_path_REMOVE+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
4978 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4988 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5000 REMOVE=$ac_cv_path_REMOVE
5001 if test -n "$REMOVE"; then
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5003 $as_echo "$REMOVE" >&6; }
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006 $as_echo "no" >&6; }
5010 # Extract the first word of "cp", so it can be a program name with args.
5011 set dummy cp; ac_word=$2
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013 $as_echo_n "checking for $ac_word... " >&6; }
5014 if test "${ac_cv_path_CP+set}" = set; then :
5015 $as_echo_n "(cached) " >&6
5019 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 test -z "$as_dir" && as_dir=.
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5029 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5042 if test -n "$CP"; then
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5044 $as_echo "$CP" >&6; }
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047 $as_echo "no" >&6; }
5051 # Extract the first word of "sed", so it can be a program name with args.
5052 set dummy sed; ac_word=$2
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5054 $as_echo_n "checking for $ac_word... " >&6; }
5055 if test "${ac_cv_path_SED+set}" = set; then :
5056 $as_echo_n "(cached) " >&6
5060 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 test -z "$as_dir" && as_dir=.
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5070 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5078 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5083 if test -n "$SED"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5085 $as_echo "$SED" >&6; }
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 $as_echo "no" >&6; }
5092 # Extract the first word of "echo", so it can be a program name with args.
5093 set dummy echo; ac_word=$2
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5095 $as_echo_n "checking for $ac_word... " >&6; }
5096 if test "${ac_cv_path_ECHO+set}" = set; then :
5097 $as_echo_n "(cached) " >&6
5101 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5123 ECHO=$ac_cv_path_ECHO
5124 if test -n "$ECHO"; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5126 $as_echo "$ECHO" >&6; }
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5133 # Extract the first word of "cmp", so it can be a program name with args.
5134 set dummy cmp; ac_word=$2
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if test "${ac_cv_path_CMP+set}" = set; then :
5138 $as_echo_n "(cached) " >&6
5142 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5165 if test -n "$CMP"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5167 $as_echo "$CMP" >&6; }
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5174 # Extract the first word of "tbl", so it can be a program name with args.
5175 set dummy tbl; ac_word=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if test "${ac_cv_path_TBL+set}" = set; then :
5179 $as_echo_n "(cached) " >&6
5183 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5206 if test -n "$TBL"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5208 $as_echo "$TBL" >&6; }
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5215 # Extract the first word of "ar", so it can be a program name with args.
5216 set dummy ar; ac_word=$2
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if test "${ac_cv_path_AR+set}" = set; then :
5220 $as_echo_n "(cached) " >&6
5224 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5247 if test -n "$AR"; then
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5249 $as_echo "$AR" >&6; }
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5256 # Extract the first word of "openssl", so it can be a program name with args.
5257 set dummy openssl; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if test "${ac_cv_path_OPENSSL+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
5265 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5275 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5287 OPENSSL=$ac_cv_path_OPENSSL
5288 if test -n "$OPENSSL"; then
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5290 $as_echo "$OPENSSL" >&6; }
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293 $as_echo "no" >&6; }
5297 # Extract the first word of "mtx", so it can be a program name with args.
5298 set dummy mtx; ac_word=$2
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5300 $as_echo_n "checking for $ac_word... " >&6; }
5301 if test "${ac_cv_path_MTX+set}" = set; then :
5302 $as_echo_n "(cached) " >&6
5306 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5316 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5329 if test -n "$MTX"; then
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5331 $as_echo "$MTX" >&6; }
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 $as_echo "no" >&6; }
5338 # Extract the first word of "dd", so it can be a program name with args.
5339 set dummy dd; ac_word=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if test "${ac_cv_path_DD+set}" = set; then :
5343 $as_echo_n "(cached) " >&6
5347 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5357 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5370 if test -n "$DD"; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5372 $as_echo "$DD" >&6; }
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5379 # Extract the first word of "mkisofs", so it can be a program name with args.
5380 set dummy mkisofs; ac_word=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if test "${ac_cv_path_MKISOFS+set}" = set; then :
5384 $as_echo_n "(cached) " >&6
5388 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5398 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5410 MKISOFS=$ac_cv_path_MKISOFS
5411 if test -n "$MKISOFS"; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5413 $as_echo "$MKISOFS" >&6; }
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5420 # Extract the first word of "python", so it can be a program name with args.
5421 set dummy python; ac_word=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if test "${ac_cv_path_PYTHON+set}" = set; then :
5425 $as_echo_n "(cached) " >&6
5429 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 test -z "$as_dir" && as_dir=.
5437 for ac_exec_ext in '' $ac_executable_extensions; do
5438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5439 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5447 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5451 PYTHON=$ac_cv_path_PYTHON
5452 if test -n "$PYTHON"; then
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5454 $as_echo "$PYTHON" >&6; }
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }
5461 # Extract the first word of "growisofs", so it can be a program name with args.
5462 set dummy growisofs; ac_word=$2
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464 $as_echo_n "checking for $ac_word... " >&6; }
5465 if test "${ac_cv_path_GROWISOFS+set}" = set; then :
5466 $as_echo_n "(cached) " >&6
5470 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 test -z "$as_dir" && as_dir=.
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5492 GROWISOFS=$ac_cv_path_GROWISOFS
5493 if test -n "$GROWISOFS"; then
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5495 $as_echo "$GROWISOFS" >&6; }
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5502 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5503 set dummy dvd+rw-mediainfo; ac_word=$2
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505 $as_echo_n "checking for $ac_word... " >&6; }
5506 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then :
5507 $as_echo_n "(cached) " >&6
5509 case $DVDRWMEDIAINFO in
5511 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5521 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5533 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5534 if test -n "$DVDRWMEDIAINFO"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5536 $as_echo "$DVDRWMEDIAINFO" >&6; }
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5543 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5544 set dummy dvd+rw-format; ac_word=$2
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5546 $as_echo_n "checking for $ac_word... " >&6; }
5547 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then :
5548 $as_echo_n "(cached) " >&6
5550 case $DVDRWFORMAT in
5552 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 test -z "$as_dir" && as_dir=.
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5562 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5570 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5574 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5575 if test -n "$DVDRWFORMAT"; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5577 $as_echo "$DVDRWFORMAT" >&6; }
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 $as_echo "no" >&6; }
5584 # Extract the first word of "pkg-config", so it can be a program name with args.
5585 set dummy pkg-config; ac_word=$2
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587 $as_echo_n "checking for $ac_word... " >&6; }
5588 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
5589 $as_echo_n "(cached) " >&6
5593 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 test -z "$as_dir" && as_dir=.
5601 for ac_exec_ext in '' $ac_executable_extensions; do
5602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5603 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5615 PKGCONFIG=$ac_cv_path_PKGCONFIG
5616 if test -n "$PKGCONFIG"; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5618 $as_echo "$PKGCONFIG" >&6; }
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5625 # Extract the first word of "qmake", so it can be a program name with args.
5626 set dummy qmake; ac_word=$2
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5628 $as_echo_n "checking for $ac_word... " >&6; }
5629 if test "${ac_cv_path_QMAKE+set}" = set; then :
5630 $as_echo_n "(cached) " >&6
5634 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 test -z "$as_dir" && as_dir=.
5642 for ac_exec_ext in '' $ac_executable_extensions; do
5643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5644 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5656 QMAKE=$ac_cv_path_QMAKE
5657 if test -n "$QMAKE"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5659 $as_echo "$QMAKE" >&6; }
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5666 # Extract the first word of "gmake", so it can be a program name with args.
5667 set dummy gmake; ac_word=$2
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669 $as_echo_n "checking for $ac_word... " >&6; }
5670 if test "${ac_cv_path_GMAKE+set}" = set; then :
5671 $as_echo_n "(cached) " >&6
5675 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 test -z "$as_dir" && as_dir=.
5683 for ac_exec_ext in '' $ac_executable_extensions; do
5684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5685 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5697 GMAKE=$ac_cv_path_GMAKE
5698 if test -n "$GMAKE"; then
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5700 $as_echo "$GMAKE" >&6; }
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703 $as_echo "no" >&6; }
5708 if test "x$WXCONFIG" = x; then
5711 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5712 set dummy ${WXCONFIG}; ac_word=$2
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714 $as_echo_n "checking for $ac_word... " >&6; }
5715 if test "${ac_cv_path_WXCONFIG+set}" = set; then :
5716 $as_echo_n "(cached) " >&6
5720 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 test -z "$as_dir" && as_dir=.
5728 for ac_exec_ext in '' $ac_executable_extensions; do
5729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5730 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5742 WXCONFIG=$ac_cv_path_WXCONFIG
5743 if test -n "$WXCONFIG"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5745 $as_echo "$WXCONFIG" >&6; }
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5753 # Extract the first word of "cdrecord", so it can be a program name with args.
5754 set dummy cdrecord; ac_word=$2
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756 $as_echo_n "checking for $ac_word... " >&6; }
5757 if test "${ac_cv_path_CDRECORD+set}" = set; then :
5758 $as_echo_n "(cached) " >&6
5762 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5772 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5784 CDRECORD=$ac_cv_path_CDRECORD
5785 if test -n "$CDRECORD"; then
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5787 $as_echo "$CDRECORD" >&6; }
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790 $as_echo "no" >&6; }
5794 # Extract the first word of "pidof", so it can be a program name with args.
5795 set dummy pidof; ac_word=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if test "${ac_cv_path_PIDOF+set}" = set; then :
5799 $as_echo_n "(cached) " >&6
5803 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5813 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5825 PIDOF=$ac_cv_path_PIDOF
5826 if test -n "$PIDOF"; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5828 $as_echo "$PIDOF" >&6; }
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5835 for ac_prog in gawk mawk nawk awk
5837 # Extract the first word of "$ac_prog", so it can be a program name with args.
5838 set dummy $ac_prog; ac_word=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if test "${ac_cv_prog_AWK+set}" = set; then :
5842 $as_echo_n "(cached) " >&6
5844 if test -n "$AWK"; then
5845 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5854 ac_cv_prog_AWK="$ac_prog"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 if test -n "$AWK"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5867 $as_echo "$AWK" >&6; }
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5874 test -n "$AWK" && break
5877 # Some AWK programs fail, so test it and warn the user
5878 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5879 { if ((prog == $2) || (("(" prog ")") == $2) ||
5880 (("" prog "") == $2) ||
5881 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5883 as_fn_error "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5884 The regex engine of $AWK is too broken to be used you
5885 might want to install GNU AWK.
5886 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5889 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5890 set dummy $THE_AWK; ac_word=$2
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892 $as_echo_n "checking for $ac_word... " >&6; }
5893 if test "${ac_cv_path_AWK+set}" = set; then :
5894 $as_echo_n "(cached) " >&6
5898 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5908 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5921 if test -n "$AWK"; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5923 $as_echo "$AWK" >&6; }
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }
5932 test -n "$ARFLAG" || ARFLAGS="cr"
5944 # Check whether --enable-libtool was given.
5945 if test "${enable_libtool+set}" = set; then :
5946 enableval=$enable_libtool;
5947 if test x$enableval = xno; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5957 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5962 macro_version='2.2.6'
5963 macro_revision='1.3012'
5977 ltmain="$ac_aux_dir/ltmain.sh"
5979 # Make sure we can run config.sub.
5980 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5981 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5984 $as_echo_n "checking build system type... " >&6; }
5985 if test "${ac_cv_build+set}" = set; then :
5986 $as_echo_n "(cached) " >&6
5988 ac_build_alias=$build_alias
5989 test "x$ac_build_alias" = x &&
5990 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5991 test "x$ac_build_alias" = x &&
5992 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5993 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5994 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5998 $as_echo "$ac_cv_build" >&6; }
5999 case $ac_cv_build in
6001 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6004 ac_save_IFS=$IFS; IFS='-'
6010 # Remember, the first character of IFS is used to create $*,
6011 # except with old shells:
6014 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6018 $as_echo_n "checking host system type... " >&6; }
6019 if test "${ac_cv_host+set}" = set; then :
6020 $as_echo_n "(cached) " >&6
6022 if test "x$host_alias" = x; then
6023 ac_cv_host=$ac_cv_build
6025 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6026 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6031 $as_echo "$ac_cv_host" >&6; }
6034 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6037 ac_save_IFS=$IFS; IFS='-'
6043 # Remember, the first character of IFS is used to create $*,
6044 # except with old shells:
6047 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6051 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6052 if test "${ac_cv_path_SED+set}" = set; then :
6053 $as_echo_n "(cached) " >&6
6055 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6056 for ac_i in 1 2 3 4 5 6 7; do
6057 ac_script="$ac_script$as_nl$ac_script"
6059 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6060 { ac_script=; unset ac_script;}
6061 if test -z "$SED"; then
6062 ac_path_SED_found=false
6063 # Loop through the user's path and test for each of PROGNAME-LIST
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 test -z "$as_dir" && as_dir=.
6069 for ac_prog in sed gsed; do
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6072 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6073 # Check for GNU ac_path_SED and select it if it is found.
6074 # Check for GNU $ac_path_SED
6075 case `"$ac_path_SED" --version 2>&1` in
6077 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6080 $as_echo_n 0123456789 >"conftest.in"
6083 cat "conftest.in" "conftest.in" >"conftest.tmp"
6084 mv "conftest.tmp" "conftest.in"
6085 cp "conftest.in" "conftest.nl"
6086 $as_echo '' >> "conftest.nl"
6087 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6088 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6089 as_fn_arith $ac_count + 1 && ac_count=$as_val
6090 if test $ac_count -gt ${ac_path_SED_max-0}; then
6091 # Best one so far, save it but keep looking for a better one
6092 ac_cv_path_SED="$ac_path_SED"
6093 ac_path_SED_max=$ac_count
6095 # 10*(2^10) chars as input seems more than enough
6096 test $ac_count -gt 10 && break
6098 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6101 $ac_path_SED_found && break 3
6106 if test -z "$ac_cv_path_SED"; then
6107 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6115 $as_echo "$ac_cv_path_SED" >&6; }
6116 SED="$ac_cv_path_SED"
6119 test -z "$SED" && SED=sed
6120 Xsed="$SED -e 1s/^X//"
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6133 $as_echo_n "checking for fgrep... " >&6; }
6134 if test "${ac_cv_path_FGREP+set}" = set; then :
6135 $as_echo_n "(cached) " >&6
6137 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6138 then ac_cv_path_FGREP="$GREP -F"
6140 if test -z "$FGREP"; then
6141 ac_path_FGREP_found=false
6142 # Loop through the user's path and test for each of PROGNAME-LIST
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6147 test -z "$as_dir" && as_dir=.
6148 for ac_prog in fgrep; do
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6151 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6152 # Check for GNU ac_path_FGREP and select it if it is found.
6153 # Check for GNU $ac_path_FGREP
6154 case `"$ac_path_FGREP" --version 2>&1` in
6156 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6159 $as_echo_n 0123456789 >"conftest.in"
6162 cat "conftest.in" "conftest.in" >"conftest.tmp"
6163 mv "conftest.tmp" "conftest.in"
6164 cp "conftest.in" "conftest.nl"
6165 $as_echo 'FGREP' >> "conftest.nl"
6166 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6167 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6168 as_fn_arith $ac_count + 1 && ac_count=$as_val
6169 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6170 # Best one so far, save it but keep looking for a better one
6171 ac_cv_path_FGREP="$ac_path_FGREP"
6172 ac_path_FGREP_max=$ac_count
6174 # 10*(2^10) chars as input seems more than enough
6175 test $ac_count -gt 10 && break
6177 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6180 $ac_path_FGREP_found && break 3
6185 if test -z "$ac_cv_path_FGREP"; then
6186 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6189 ac_cv_path_FGREP=$FGREP
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6195 $as_echo "$ac_cv_path_FGREP" >&6; }
6196 FGREP="$ac_cv_path_FGREP"
6199 test -z "$GREP" && GREP=grep
6219 # Check whether --with-gnu-ld was given.
6220 if test "${with_gnu_ld+set}" = set; then :
6221 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6227 if test "$GCC" = yes; then
6228 # Check if gcc -print-prog-name=ld gives a path.
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6230 $as_echo_n "checking for ld used by $CC... " >&6; }
6233 # gcc leaves a trailing carriage return which upsets mingw
6234 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6236 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6239 # Accept absolute paths.
6241 re_direlt='/[^/][^/]*/\.\./'
6242 # Canonicalize the pathname of ld
6243 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6244 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6245 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6247 test -z "$LD" && LD="$ac_prog"
6250 # If it fails, then pretend we aren't using GCC.
6254 # If it is relative, then search for the first ld in PATH.
6258 elif test "$with_gnu_ld" = yes; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6260 $as_echo_n "checking for GNU ld... " >&6; }
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6263 $as_echo_n "checking for non-GNU ld... " >&6; }
6265 if test "${lt_cv_path_LD+set}" = set; then :
6266 $as_echo_n "(cached) " >&6
6268 if test -z "$LD"; then
6269 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6270 for ac_dir in $PATH; do
6272 test -z "$ac_dir" && ac_dir=.
6273 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6274 lt_cv_path_LD="$ac_dir/$ac_prog"
6275 # Check to see if the program is GNU ld. I'd rather use --version,
6276 # but apparently some variants of GNU ld only accept -v.
6277 # Break only if it was the GNU/non-GNU ld that we prefer.
6278 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6279 *GNU* | *'with BFD'*)
6280 test "$with_gnu_ld" != no && break
6283 test "$with_gnu_ld" != yes && break
6290 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6295 if test -n "$LD"; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6297 $as_echo "$LD" >&6; }
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6302 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6304 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6305 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6306 $as_echo_n "(cached) " >&6
6308 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6309 case `$LD -v 2>&1 </dev/null` in
6310 *GNU* | *'with BFD'*)
6311 lt_cv_prog_gnu_ld=yes
6314 lt_cv_prog_gnu_ld=no
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6319 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6320 with_gnu_ld=$lt_cv_prog_gnu_ld
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6331 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6332 if test "${lt_cv_path_NM+set}" = set; then :
6333 $as_echo_n "(cached) " >&6
6335 if test -n "$NM"; then
6336 # Let the user override the test.
6339 lt_nm_to_check="${ac_tool_prefix}nm"
6340 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6341 lt_nm_to_check="$lt_nm_to_check nm"
6343 for lt_tmp_nm in $lt_nm_to_check; do
6344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6345 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6347 test -z "$ac_dir" && ac_dir=.
6348 tmp_nm="$ac_dir/$lt_tmp_nm"
6349 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6350 # Check to see if the nm accepts a BSD-compat flag.
6351 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6352 # nm: unknown option "B" ignored
6353 # Tru64's nm complains that /dev/null is an invalid object file
6354 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6355 */dev/null* | *'Invalid file or object type'*)
6356 lt_cv_path_NM="$tmp_nm -B"
6360 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6362 lt_cv_path_NM="$tmp_nm -p"
6366 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6367 continue # so that we can try to find one that supports BSD flags
6376 : ${lt_cv_path_NM=no}
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6380 $as_echo "$lt_cv_path_NM" >&6; }
6381 if test "$lt_cv_path_NM" != "no"; then
6384 # Didn't find any BSD compatible name lister, look for dumpbin.
6385 if test -n "$ac_tool_prefix"; then
6386 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6393 $as_echo_n "(cached) " >&6
6395 if test -n "$DUMPBIN"; then
6396 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6405 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 DUMPBIN=$ac_cv_prog_DUMPBIN
6416 if test -n "$DUMPBIN"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6418 $as_echo "$DUMPBIN" >&6; }
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6425 test -n "$DUMPBIN" && break
6428 if test -z "$DUMPBIN"; then
6429 ac_ct_DUMPBIN=$DUMPBIN
6430 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6432 # Extract the first word of "$ac_prog", so it can be a program name with args.
6433 set dummy $ac_prog; ac_word=$2
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435 $as_echo_n "checking for $ac_word... " >&6; }
6436 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6437 $as_echo_n "(cached) " >&6
6439 if test -n "$ac_ct_DUMPBIN"; then
6440 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6449 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6460 if test -n "$ac_ct_DUMPBIN"; then
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6462 $as_echo "$ac_ct_DUMPBIN" >&6; }
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6469 test -n "$ac_ct_DUMPBIN" && break
6472 if test "x$ac_ct_DUMPBIN" = x; then
6475 case $cross_compiling:$ac_tool_warned in
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6479 ac_tool_warned=yes ;;
6481 DUMPBIN=$ac_ct_DUMPBIN
6486 if test "$DUMPBIN" != ":"; then
6490 test -z "$NM" && NM=nm
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6498 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6499 if test "${lt_cv_nm_interface+set}" = set; then :
6500 $as_echo_n "(cached) " >&6
6502 lt_cv_nm_interface="BSD nm"
6503 echo "int some_variable = 0;" > conftest.$ac_ext
6504 (eval echo "\"\$as_me:6504: $ac_compile\"" >&5)
6505 (eval "$ac_compile" 2>conftest.err)
6506 cat conftest.err >&5
6507 (eval echo "\"\$as_me:6507: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6508 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6509 cat conftest.err >&5
6510 (eval echo "\"\$as_me:6510: output\"" >&5)
6511 cat conftest.out >&5
6512 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6513 lt_cv_nm_interface="MS dumpbin"
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6518 $as_echo "$lt_cv_nm_interface" >&6; }
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6521 $as_echo_n "checking whether ln -s works... " >&6; }
6523 if test "$LN_S" = "ln -s"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6525 $as_echo "yes" >&6; }
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6528 $as_echo "no, using $LN_S" >&6; }
6531 # find the maximum length of command line arguments
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6533 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6534 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6535 $as_echo_n "(cached) " >&6
6542 # On DJGPP, this test can blow up pretty badly due to problems in libc
6543 # (any single argument exceeding 2000 bytes causes a buffer overrun
6544 # during glob expansion). Even if it were fixed, the result of this
6545 # check would be larger than it should be.
6546 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6550 # Under GNU Hurd, this test is not required because there is
6551 # no limit to the length of command line arguments.
6552 # Libtool will interpret -1 as no limit whatsoever
6553 lt_cv_sys_max_cmd_len=-1;
6556 cygwin* | mingw* | cegcc*)
6557 # On Win9x/ME, this test blows up -- it succeeds, but takes
6558 # about 5 minutes as the teststring grows exponentially.
6559 # Worse, since 9x/ME are not pre-emptively multitasking,
6560 # you end up with a "frozen" computer, even though with patience
6561 # the test eventually succeeds (with a max line length of 256k).
6562 # Instead, let's just punt: use the minimum linelength reported by
6563 # all of the supported platforms: 8192 (on NT/2K/XP).
6564 lt_cv_sys_max_cmd_len=8192;
6568 # On AmigaOS with pdksh, this test takes hours, literally.
6569 # So we just punt and use a minimum line length of 8192.
6570 lt_cv_sys_max_cmd_len=8192;
6573 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6574 # This has been around since 386BSD, at least. Likely further.
6575 if test -x /sbin/sysctl; then
6576 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6577 elif test -x /usr/sbin/sysctl; then
6578 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6580 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6582 # And add a safety zone
6583 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6584 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6588 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6589 lt_cv_sys_max_cmd_len=196608
6593 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6594 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6595 # nice to cause kernel panics so lets avoid the loop below.
6596 # First set a reasonable default.
6597 lt_cv_sys_max_cmd_len=16384
6599 if test -x /sbin/sysconfig; then
6600 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6601 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6606 lt_cv_sys_max_cmd_len=102400
6608 sysv5* | sco5v6* | sysv4.2uw2*)
6609 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6610 if test -n "$kargmax"; then
6611 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6613 lt_cv_sys_max_cmd_len=32768
6617 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6618 if test -n "$lt_cv_sys_max_cmd_len"; then
6619 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6620 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6622 # Make teststring a little bigger before we do anything with it.
6623 # a 1K string should be a reasonable start.
6624 for i in 1 2 3 4 5 6 7 8 ; do
6625 teststring=$teststring$teststring
6627 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6628 # If test is not a shell built-in, we'll probably end up computing a
6629 # maximum length that is only half of the actual maximum length, but
6631 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6632 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6633 test $i != 17 # 1/2 MB should be enough
6636 teststring=$teststring$teststring
6638 # Only check the string length outside the loop.
6639 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6641 # Add a significant safety factor because C++ compilers can tack on
6642 # massive amounts of additional arguments before passing them to the
6643 # linker. It appears as though 1/2 is a usable value.
6644 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6651 if test -n $lt_cv_sys_max_cmd_len ; then
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6653 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6656 $as_echo "none" >&6; }
6658 max_cmd_len=$lt_cv_sys_max_cmd_len
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6670 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6671 # Try some XSI features
6674 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6676 && eval 'test $(( 1 + 1 )) -eq 2 \
6677 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6680 $as_echo "$xsi_shell" >&6; }
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6684 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6686 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6688 && lt_shell_append=yes
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6690 $as_echo "$lt_shell_append" >&6; }
6693 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6703 # test EBCDIC or ASCII
6704 case `echo X|tr X '\101'` in
6705 A) # ASCII based system
6706 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6707 lt_SP2NL='tr \040 \012'
6708 lt_NL2SP='tr \015\012 \040\040'
6710 *) # EBCDIC based system
6711 lt_SP2NL='tr \100 \n'
6712 lt_NL2SP='tr \r\n \100\100'
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6725 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6726 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6727 $as_echo_n "(cached) " >&6
6729 lt_cv_ld_reload_flag='-r'
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6732 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6733 reload_flag=$lt_cv_ld_reload_flag
6734 case $reload_flag in
6736 *) reload_flag=" $reload_flag" ;;
6738 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6741 if test "$GCC" = yes; then
6742 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6744 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6757 if test -n "$ac_tool_prefix"; then
6758 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6759 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6763 $as_echo_n "(cached) " >&6
6765 if test -n "$OBJDUMP"; then
6766 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 OBJDUMP=$ac_cv_prog_OBJDUMP
6786 if test -n "$OBJDUMP"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6788 $as_echo "$OBJDUMP" >&6; }
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6796 if test -z "$ac_cv_prog_OBJDUMP"; then
6797 ac_ct_OBJDUMP=$OBJDUMP
6798 # Extract the first word of "objdump", so it can be a program name with args.
6799 set dummy objdump; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6803 $as_echo_n "(cached) " >&6
6805 if test -n "$ac_ct_OBJDUMP"; then
6806 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6826 if test -n "$ac_ct_OBJDUMP"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6828 $as_echo "$ac_ct_OBJDUMP" >&6; }
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6834 if test "x$ac_ct_OBJDUMP" = x; then
6837 case $cross_compiling:$ac_tool_warned in
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6841 ac_tool_warned=yes ;;
6843 OBJDUMP=$ac_ct_OBJDUMP
6846 OBJDUMP="$ac_cv_prog_OBJDUMP"
6849 test -z "$OBJDUMP" && OBJDUMP=objdump
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6860 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6861 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6862 $as_echo_n "(cached) " >&6
6864 lt_cv_file_magic_cmd='$MAGIC_CMD'
6865 lt_cv_file_magic_test_file=
6866 lt_cv_deplibs_check_method='unknown'
6867 # Need to set the preceding variable on all platforms that support
6868 # interlibrary dependencies.
6869 # 'none' -- dependencies not supported.
6870 # `unknown' -- same as none, but documents that we really don't know.
6871 # 'pass_all' -- all dependencies passed with no checks.
6872 # 'test_compile' -- check by making test program.
6873 # 'file_magic [[regex]]' -- check by looking for files in library path
6874 # which responds to the $file_magic_cmd with a given extended regex.
6875 # If you have `file' or equivalent on your system and you're not sure
6876 # whether `pass_all' will *always* work, you probably want this one.
6880 lt_cv_deplibs_check_method=pass_all
6884 lt_cv_deplibs_check_method=pass_all
6888 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6889 lt_cv_file_magic_cmd='/usr/bin/file -L'
6890 lt_cv_file_magic_test_file=/shlib/libc.so
6894 # func_win32_libid is a shell function defined in ltmain.sh
6895 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6896 lt_cv_file_magic_cmd='func_win32_libid'
6900 # Base MSYS/MinGW do not provide the 'file' command needed by
6901 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6902 # unless we find 'file', for example because we are cross-compiling.
6903 if ( file / ) >/dev/null 2>&1; then
6904 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6905 lt_cv_file_magic_cmd='func_win32_libid'
6907 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6908 lt_cv_file_magic_cmd='$OBJDUMP -f'
6913 # use the weaker test based on 'objdump'. See mingw*.
6914 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6915 lt_cv_file_magic_cmd='$OBJDUMP -f'
6918 darwin* | rhapsody*)
6919 lt_cv_deplibs_check_method=pass_all
6922 freebsd* | dragonfly*)
6923 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6926 # Not sure whether the presence of OpenBSD here was a mistake.
6927 # Let's accept both of them until this is cleared up.
6928 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6929 lt_cv_file_magic_cmd=/usr/bin/file
6930 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6934 lt_cv_deplibs_check_method=pass_all
6939 lt_cv_deplibs_check_method=pass_all
6942 hpux10.20* | hpux11*)
6943 lt_cv_file_magic_cmd=/usr/bin/file
6946 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6947 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6950 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]'
6951 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6954 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6955 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6961 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6962 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6965 irix5* | irix6* | nonstopux*)
6967 *-32|*"-32 ") libmagic=32-bit;;
6968 *-n32|*"-n32 ") libmagic=N32;;
6969 *-64|*"-64 ") libmagic=64-bit;;
6970 *) libmagic=never-match;;
6972 lt_cv_deplibs_check_method=pass_all
6975 # This must be Linux ELF.
6976 linux* | k*bsd*-gnu)
6977 lt_cv_deplibs_check_method=pass_all
6981 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6982 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6984 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6989 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6990 lt_cv_file_magic_cmd=/usr/bin/file
6991 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6995 lt_cv_deplibs_check_method=pass_all
6999 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7002 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7006 osf3* | osf4* | osf5*)
7007 lt_cv_deplibs_check_method=pass_all
7011 lt_cv_deplibs_check_method=pass_all
7015 lt_cv_deplibs_check_method=pass_all
7018 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7019 lt_cv_deplibs_check_method=pass_all
7023 case $host_vendor in
7025 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]'
7026 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7029 lt_cv_deplibs_check_method=pass_all
7032 lt_cv_file_magic_cmd='/bin/file'
7033 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7036 lt_cv_file_magic_cmd='/bin/file'
7037 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7038 lt_cv_file_magic_test_file=/lib/libc.so
7041 lt_cv_deplibs_check_method=pass_all
7044 lt_cv_deplibs_check_method=pass_all
7050 lt_cv_deplibs_check_method=pass_all
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7056 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7057 file_magic_cmd=$lt_cv_file_magic_cmd
7058 deplibs_check_method=$lt_cv_deplibs_check_method
7059 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7072 if test -n "$ac_tool_prefix"; then
7073 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7074 set dummy ${ac_tool_prefix}ar; ac_word=$2
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076 $as_echo_n "checking for $ac_word... " >&6; }
7077 if test "${ac_cv_prog_AR+set}" = set; then :
7078 $as_echo_n "(cached) " >&6
7080 if test -n "$AR"; then
7081 ac_cv_prog_AR="$AR" # Let the user override the test.
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 test -z "$as_dir" && as_dir=.
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7090 ac_cv_prog_AR="${ac_tool_prefix}ar"
7091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101 if test -n "$AR"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7103 $as_echo "$AR" >&6; }
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 $as_echo "no" >&6; }
7111 if test -z "$ac_cv_prog_AR"; then
7113 # Extract the first word of "ar", so it can be a program name with args.
7114 set dummy ar; ac_word=$2
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7116 $as_echo_n "checking for $ac_word... " >&6; }
7117 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7118 $as_echo_n "(cached) " >&6
7120 if test -n "$ac_ct_AR"; then
7121 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 test -z "$as_dir" && as_dir=.
7128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7130 ac_cv_prog_ac_ct_AR="ar"
7131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7140 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7141 if test -n "$ac_ct_AR"; then
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7143 $as_echo "$ac_ct_AR" >&6; }
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146 $as_echo "no" >&6; }
7149 if test "x$ac_ct_AR" = x; then
7152 case $cross_compiling:$ac_tool_warned in
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7156 ac_tool_warned=yes ;;
7164 test -z "$AR" && AR=ar
7165 test -z "$AR_FLAGS" && AR_FLAGS=cru
7177 if test -n "$ac_tool_prefix"; then
7178 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7179 set dummy ${ac_tool_prefix}strip; ac_word=$2
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181 $as_echo_n "checking for $ac_word... " >&6; }
7182 if test "${ac_cv_prog_STRIP+set}" = set; then :
7183 $as_echo_n "(cached) " >&6
7185 if test -n "$STRIP"; then
7186 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7195 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 STRIP=$ac_cv_prog_STRIP
7206 if test -n "$STRIP"; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7208 $as_echo "$STRIP" >&6; }
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7216 if test -z "$ac_cv_prog_STRIP"; then
7218 # Extract the first word of "strip", so it can be a program name with args.
7219 set dummy strip; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7223 $as_echo_n "(cached) " >&6
7225 if test -n "$ac_ct_STRIP"; then
7226 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7235 ac_cv_prog_ac_ct_STRIP="strip"
7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7246 if test -n "$ac_ct_STRIP"; then
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7248 $as_echo "$ac_ct_STRIP" >&6; }
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7254 if test "x$ac_ct_STRIP" = x; then
7257 case $cross_compiling:$ac_tool_warned in
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7261 ac_tool_warned=yes ;;
7266 STRIP="$ac_cv_prog_STRIP"
7269 test -z "$STRIP" && STRIP=:
7276 if test -n "$ac_tool_prefix"; then
7277 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7278 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280 $as_echo_n "checking for $ac_word... " >&6; }
7281 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7282 $as_echo_n "(cached) " >&6
7284 if test -n "$RANLIB"; then
7285 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 test -z "$as_dir" && as_dir=.
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7294 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 RANLIB=$ac_cv_prog_RANLIB
7305 if test -n "$RANLIB"; then
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7307 $as_echo "$RANLIB" >&6; }
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310 $as_echo "no" >&6; }
7315 if test -z "$ac_cv_prog_RANLIB"; then
7316 ac_ct_RANLIB=$RANLIB
7317 # Extract the first word of "ranlib", so it can be a program name with args.
7318 set dummy ranlib; ac_word=$2
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7320 $as_echo_n "checking for $ac_word... " >&6; }
7321 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7322 $as_echo_n "(cached) " >&6
7324 if test -n "$ac_ct_RANLIB"; then
7325 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 test -z "$as_dir" && as_dir=.
7332 for ac_exec_ext in '' $ac_executable_extensions; do
7333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7334 ac_cv_prog_ac_ct_RANLIB="ranlib"
7335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7344 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7345 if test -n "$ac_ct_RANLIB"; then
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7347 $as_echo "$ac_ct_RANLIB" >&6; }
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350 $as_echo "no" >&6; }
7353 if test "x$ac_ct_RANLIB" = x; then
7356 case $cross_compiling:$ac_tool_warned in
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7360 ac_tool_warned=yes ;;
7362 RANLIB=$ac_ct_RANLIB
7365 RANLIB="$ac_cv_prog_RANLIB"
7368 test -z "$RANLIB" && RANLIB=:
7375 # Determine commands to create old-style static archives.
7376 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7377 old_postinstall_cmds='chmod 644 $oldlib'
7378 old_postuninstall_cmds=
7380 if test -n "$RANLIB"; then
7383 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7386 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7389 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7425 # If no C compiler was specified, use CC.
7428 # If no C compiler flags were specified, use CFLAGS.
7429 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7431 # Allow CC to be a program name with arguments.
7435 # Check for command to grab the raw symbol name followed by C symbol from nm.
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7437 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7438 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7439 $as_echo_n "(cached) " >&6
7442 # These are sane defaults that work on at least a few old systems.
7443 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7445 # Character class describing NM global symbol codes.
7446 symcode='[BCDEGRST]'
7448 # Regexp to match symbols that can be accessed directly from C.
7449 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7451 # Define system-specific variables.
7456 cygwin* | mingw* | pw32* | cegcc*)
7457 symcode='[ABCDGISTW]'
7460 if test "$host_cpu" = ia64; then
7461 symcode='[ABCDEGRST]'
7465 symcode='[BCDEGRST]'
7468 symcode='[BCDEGQRST]'
7479 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7487 # If we're using GNU nm, then use its standard symbol codes.
7488 case `$NM -V 2>&1` in
7489 *GNU* | *'with BFD'*)
7490 symcode='[ABCDGIRSTW]' ;;
7493 # Transform an extracted symbol line into a proper C declaration.
7494 # Some systems (esp. on ia64) link data and code symbols differently,
7495 # so use this general approach.
7496 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7498 # Transform an extracted symbol line into symbol name and symbol address
7499 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7500 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'"
7502 # Handle CRLF in mingw tool chain
7506 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7510 # Try without a prefix underscore, then with it.
7511 for ac_symprfx in "" "_"; do
7513 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7514 symxfrm="\\1 $ac_symprfx\\2 \\2"
7516 # Write the raw and C identifiers.
7517 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7518 # Fake it for dumpbin and say T for any non-static function
7519 # and D for any global variable.
7520 # Also find C++ and __fastcall symbols from MSVC++,
7521 # which start with @ or ?.
7522 lt_cv_sys_global_symbol_pipe="$AWK '"\
7523 " {last_section=section; section=\$ 3};"\
7524 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7525 " \$ 0!~/External *\|/{next};"\
7526 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7527 " {if(hide[section]) next};"\
7528 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7529 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7530 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7531 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7532 " ' prfx=^$ac_symprfx"
7534 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7537 # Check to see that the pipe works correctly.
7541 cat > conftest.$ac_ext <<_LT_EOF
7546 void nm_test_func(void);
7547 void nm_test_func(void){}
7551 int main(){nm_test_var='a';nm_test_func();return(0);}
7554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7555 (eval $ac_compile) 2>&5
7557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7558 test $ac_status = 0; }; then
7559 # Now try to grab the symbols.
7561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7562 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7565 test $ac_status = 0; } && test -s "$nlist"; then
7566 # Try sorting and uniquifying the output.
7567 if sort "$nlist" | uniq > "$nlist"T; then
7568 mv -f "$nlist"T "$nlist"
7573 # Make sure that we snagged all the symbols we need.
7574 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7575 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7576 cat <<_LT_EOF > conftest.$ac_ext
7582 # Now generate the symbol file.
7583 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7585 cat <<_LT_EOF >> conftest.$ac_ext
7587 /* The mapping between symbol names and symbols. */
7592 lt__PROGRAM__LTX_preloaded_symbols[] =
7594 { "@PROGRAM@", (void *) 0 },
7596 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7597 cat <<\_LT_EOF >> conftest.$ac_ext
7601 /* This works around a problem in FreeBSD linker */
7602 #ifdef FREEBSD_WORKAROUND
7603 static const void *lt_preloaded_setup() {
7604 return lt__PROGRAM__LTX_preloaded_symbols;
7612 # Now try linking the two files.
7613 mv conftest.$ac_objext conftstm.$ac_objext
7614 lt_save_LIBS="$LIBS"
7615 lt_save_CFLAGS="$CFLAGS"
7616 LIBS="conftstm.$ac_objext"
7617 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7619 (eval $ac_link) 2>&5
7621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7622 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7625 LIBS="$lt_save_LIBS"
7626 CFLAGS="$lt_save_CFLAGS"
7628 echo "cannot find nm_test_func in $nlist" >&5
7631 echo "cannot find nm_test_var in $nlist" >&5
7634 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7637 echo "$progname: failed program was:" >&5
7638 cat conftest.$ac_ext >&5
7640 rm -rf conftest* conftst*
7642 # Do not use the global_symbol_pipe unless it works.
7643 if test "$pipe_works" = yes; then
7646 lt_cv_sys_global_symbol_pipe=
7652 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7653 lt_cv_sys_global_symbol_to_cdecl=
7655 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7657 $as_echo "failed" >&6; }
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7660 $as_echo "ok" >&6; }
7684 # Check whether --enable-libtool-lock was given.
7685 if test "${enable_libtool_lock+set}" = set; then :
7686 enableval=$enable_libtool_lock;
7689 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7691 # Some flags need to be propagated to the compiler or linker for good
7695 # Find out which ABI we are using.
7696 echo 'int i;' > conftest.$ac_ext
7697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7698 (eval $ac_compile) 2>&5
7700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7701 test $ac_status = 0; }; then
7702 case `/usr/bin/file conftest.$ac_objext` in
7714 # Find out which ABI we are using.
7715 echo '#line 7715 "configure"' > 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 if test "$lt_cv_prog_gnu_ld" = yes; then
7722 case `/usr/bin/file conftest.$ac_objext` in
7724 LD="${LD-ld} -melf32bsmip"
7727 LD="${LD-ld} -melf32bmipn32"
7730 LD="${LD-ld} -melf64bmip"
7734 case `/usr/bin/file conftest.$ac_objext` in
7750 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7751 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7752 # Find out which ABI we are using.
7753 echo 'int i;' > conftest.$ac_ext
7754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7755 (eval $ac_compile) 2>&5
7757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7758 test $ac_status = 0; }; then
7759 case `/usr/bin/file conftest.o` in
7762 x86_64-*kfreebsd*-gnu)
7763 LD="${LD-ld} -m elf_i386_fbsd"
7766 LD="${LD-ld} -m elf_i386"
7768 ppc64-*linux*|powerpc64-*linux*)
7769 LD="${LD-ld} -m elf32ppclinux"
7772 LD="${LD-ld} -m elf_s390"
7775 LD="${LD-ld} -m elf32_sparc"
7781 x86_64-*kfreebsd*-gnu)
7782 LD="${LD-ld} -m elf_x86_64_fbsd"
7785 LD="${LD-ld} -m elf_x86_64"
7787 ppc*-*linux*|powerpc*-*linux*)
7788 LD="${LD-ld} -m elf64ppc"
7790 s390*-*linux*|s390*-*tpf*)
7791 LD="${LD-ld} -m elf64_s390"
7794 LD="${LD-ld} -m elf64_sparc"
7804 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7805 SAVE_CFLAGS="$CFLAGS"
7806 CFLAGS="$CFLAGS -belf"
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7808 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7809 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7813 ac_cpp='$CPP $CPPFLAGS'
7814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7829 if ac_fn_c_try_link "$LINENO"; then :
7830 lt_cv_cc_needs_belf=yes
7832 lt_cv_cc_needs_belf=no
7834 rm -f core conftest.err conftest.$ac_objext \
7835 conftest$ac_exeext conftest.$ac_ext
7837 ac_cpp='$CPP $CPPFLAGS'
7838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7844 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7845 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7846 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7847 CFLAGS="$SAVE_CFLAGS"
7851 # Find out which ABI we are using.
7852 echo 'int i;' > conftest.$ac_ext
7853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7854 (eval $ac_compile) 2>&5
7856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7857 test $ac_status = 0; }; then
7858 case `/usr/bin/file conftest.o` in
7860 case $lt_cv_prog_gnu_ld in
7861 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7863 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7875 need_locks="$enable_libtool_lock"
7879 rhapsody* | darwin*)
7880 if test -n "$ac_tool_prefix"; then
7881 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7882 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7886 $as_echo_n "(cached) " >&6
7888 if test -n "$DSYMUTIL"; then
7889 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7898 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7909 if test -n "$DSYMUTIL"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7911 $as_echo "$DSYMUTIL" >&6; }
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7919 if test -z "$ac_cv_prog_DSYMUTIL"; then
7920 ac_ct_DSYMUTIL=$DSYMUTIL
7921 # Extract the first word of "dsymutil", so it can be a program name with args.
7922 set dummy dsymutil; ac_word=$2
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924 $as_echo_n "checking for $ac_word... " >&6; }
7925 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7926 $as_echo_n "(cached) " >&6
7928 if test -n "$ac_ct_DSYMUTIL"; then
7929 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 test -z "$as_dir" && as_dir=.
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7938 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7948 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7949 if test -n "$ac_ct_DSYMUTIL"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7951 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7957 if test "x$ac_ct_DSYMUTIL" = x; then
7960 case $cross_compiling:$ac_tool_warned in
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7964 ac_tool_warned=yes ;;
7966 DSYMUTIL=$ac_ct_DSYMUTIL
7969 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7972 if test -n "$ac_tool_prefix"; then
7973 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7974 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976 $as_echo_n "checking for $ac_word... " >&6; }
7977 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7978 $as_echo_n "(cached) " >&6
7980 if test -n "$NMEDIT"; then
7981 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7990 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 NMEDIT=$ac_cv_prog_NMEDIT
8001 if test -n "$NMEDIT"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8003 $as_echo "$NMEDIT" >&6; }
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8011 if test -z "$ac_cv_prog_NMEDIT"; then
8012 ac_ct_NMEDIT=$NMEDIT
8013 # Extract the first word of "nmedit", so it can be a program name with args.
8014 set dummy nmedit; ac_word=$2
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016 $as_echo_n "checking for $ac_word... " >&6; }
8017 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8018 $as_echo_n "(cached) " >&6
8020 if test -n "$ac_ct_NMEDIT"; then
8021 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 test -z "$as_dir" && as_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8030 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8041 if test -n "$ac_ct_NMEDIT"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8043 $as_echo "$ac_ct_NMEDIT" >&6; }
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8049 if test "x$ac_ct_NMEDIT" = x; then
8052 case $cross_compiling:$ac_tool_warned in
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8056 ac_tool_warned=yes ;;
8058 NMEDIT=$ac_ct_NMEDIT
8061 NMEDIT="$ac_cv_prog_NMEDIT"
8064 if test -n "$ac_tool_prefix"; then
8065 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8066 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 $as_echo_n "checking for $ac_word... " >&6; }
8069 if test "${ac_cv_prog_LIPO+set}" = set; then :
8070 $as_echo_n "(cached) " >&6
8072 if test -n "$LIPO"; then
8073 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8082 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8092 LIPO=$ac_cv_prog_LIPO
8093 if test -n "$LIPO"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8095 $as_echo "$LIPO" >&6; }
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 $as_echo "no" >&6; }
8103 if test -z "$ac_cv_prog_LIPO"; then
8105 # Extract the first word of "lipo", so it can be a program name with args.
8106 set dummy lipo; ac_word=$2
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8108 $as_echo_n "checking for $ac_word... " >&6; }
8109 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8110 $as_echo_n "(cached) " >&6
8112 if test -n "$ac_ct_LIPO"; then
8113 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8122 ac_cv_prog_ac_ct_LIPO="lipo"
8123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8132 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8133 if test -n "$ac_ct_LIPO"; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8135 $as_echo "$ac_ct_LIPO" >&6; }
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138 $as_echo "no" >&6; }
8141 if test "x$ac_ct_LIPO" = x; then
8144 case $cross_compiling:$ac_tool_warned in
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8148 ac_tool_warned=yes ;;
8153 LIPO="$ac_cv_prog_LIPO"
8156 if test -n "$ac_tool_prefix"; then
8157 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8158 set dummy ${ac_tool_prefix}otool; ac_word=$2
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160 $as_echo_n "checking for $ac_word... " >&6; }
8161 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8162 $as_echo_n "(cached) " >&6
8164 if test -n "$OTOOL"; then
8165 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8174 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8184 OTOOL=$ac_cv_prog_OTOOL
8185 if test -n "$OTOOL"; then
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8187 $as_echo "$OTOOL" >&6; }
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }
8195 if test -z "$ac_cv_prog_OTOOL"; then
8197 # Extract the first word of "otool", so it can be a program name with args.
8198 set dummy otool; ac_word=$2
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8200 $as_echo_n "checking for $ac_word... " >&6; }
8201 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8202 $as_echo_n "(cached) " >&6
8204 if test -n "$ac_ct_OTOOL"; then
8205 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211 test -z "$as_dir" && as_dir=.
8212 for ac_exec_ext in '' $ac_executable_extensions; do
8213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8214 ac_cv_prog_ac_ct_OTOOL="otool"
8215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8224 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8225 if test -n "$ac_ct_OTOOL"; then
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8227 $as_echo "$ac_ct_OTOOL" >&6; }
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8230 $as_echo "no" >&6; }
8233 if test "x$ac_ct_OTOOL" = x; then
8236 case $cross_compiling:$ac_tool_warned in
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8240 ac_tool_warned=yes ;;
8245 OTOOL="$ac_cv_prog_OTOOL"
8248 if test -n "$ac_tool_prefix"; then
8249 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8250 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8252 $as_echo_n "checking for $ac_word... " >&6; }
8253 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8254 $as_echo_n "(cached) " >&6
8256 if test -n "$OTOOL64"; then
8257 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263 test -z "$as_dir" && as_dir=.
8264 for ac_exec_ext in '' $ac_executable_extensions; do
8265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8266 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8276 OTOOL64=$ac_cv_prog_OTOOL64
8277 if test -n "$OTOOL64"; then
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8279 $as_echo "$OTOOL64" >&6; }
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8282 $as_echo "no" >&6; }
8287 if test -z "$ac_cv_prog_OTOOL64"; then
8288 ac_ct_OTOOL64=$OTOOL64
8289 # Extract the first word of "otool64", so it can be a program name with args.
8290 set dummy otool64; ac_word=$2
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8292 $as_echo_n "checking for $ac_word... " >&6; }
8293 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8294 $as_echo_n "(cached) " >&6
8296 if test -n "$ac_ct_OTOOL64"; then
8297 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303 test -z "$as_dir" && as_dir=.
8304 for ac_exec_ext in '' $ac_executable_extensions; do
8305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8306 ac_cv_prog_ac_ct_OTOOL64="otool64"
8307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8316 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8317 if test -n "$ac_ct_OTOOL64"; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8319 $as_echo "$ac_ct_OTOOL64" >&6; }
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8325 if test "x$ac_ct_OTOOL64" = x; then
8328 case $cross_compiling:$ac_tool_warned in
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8332 ac_tool_warned=yes ;;
8334 OTOOL64=$ac_ct_OTOOL64
8337 OTOOL64="$ac_cv_prog_OTOOL64"
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8367 $as_echo_n "checking for -single_module linker flag... " >&6; }
8368 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8369 $as_echo_n "(cached) " >&6
8371 lt_cv_apple_cc_single_mod=no
8372 if test -z "${LT_MULTI_MODULE}"; then
8373 # By default we will add the -single_module flag. You can override
8374 # by either setting the environment variable LT_MULTI_MODULE
8375 # non-empty at configure time, or by adding -multi_module to the
8377 rm -rf libconftest.dylib*
8378 echo "int foo(void){return 1;}" > conftest.c
8379 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8380 -dynamiclib -Wl,-single_module conftest.c" >&5
8381 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8382 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8384 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8385 lt_cv_apple_cc_single_mod=yes
8387 cat conftest.err >&5
8389 rm -rf libconftest.dylib*
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8394 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8396 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8397 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8398 $as_echo_n "(cached) " >&6
8400 lt_cv_ld_exported_symbols_list=no
8401 save_LDFLAGS=$LDFLAGS
8402 echo "_main" > conftest.sym
8403 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405 /* end confdefs.h. */
8415 if ac_fn_c_try_link "$LINENO"; then :
8416 lt_cv_ld_exported_symbols_list=yes
8418 lt_cv_ld_exported_symbols_list=no
8420 rm -f core conftest.err conftest.$ac_objext \
8421 conftest$ac_exeext conftest.$ac_ext
8422 LDFLAGS="$save_LDFLAGS"
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8426 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8428 rhapsody* | darwin1.[012])
8429 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8431 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8432 darwin*) # darwin 5.x on
8433 # if running on 10.5 or later, the deployment target defaults
8434 # to the OS version, if on x86, and 10.4, the deployment
8435 # target defaults to 10.4. Don't you love it?
8436 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8437 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8438 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8440 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8442 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8446 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8447 _lt_dar_single_mod='$single_module'
8449 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8450 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8452 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8454 if test "$DSYMUTIL" != ":"; then
8455 _lt_dsymutil='~$DSYMUTIL $lib || :'
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8463 $as_echo_n "checking for ANSI C header files... " >&6; }
8464 if test "${ac_cv_header_stdc+set}" = set; then :
8465 $as_echo_n "(cached) " >&6
8467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h. */
8482 if ac_fn_c_try_compile "$LINENO"; then :
8483 ac_cv_header_stdc=yes
8485 ac_cv_header_stdc=no
8487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8489 if test $ac_cv_header_stdc = yes; then
8490 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h. */
8496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8497 $EGREP "memchr" >/dev/null 2>&1; then :
8500 ac_cv_header_stdc=no
8506 if test $ac_cv_header_stdc = yes; then
8507 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8514 $EGREP "free" >/dev/null 2>&1; then :
8517 ac_cv_header_stdc=no
8523 if test $ac_cv_header_stdc = yes; then
8524 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8525 if test "$cross_compiling" = yes; then :
8528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h. */
8532 #if ((' ' & 0x0FF) == 0x020)
8533 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8534 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8536 # define ISLOWER(c) \
8537 (('a' <= (c) && (c) <= 'i') \
8538 || ('j' <= (c) && (c) <= 'r') \
8539 || ('s' <= (c) && (c) <= 'z'))
8540 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8543 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8548 for (i = 0; i < 256; i++)
8549 if (XOR (islower (i), ISLOWER (i))
8550 || toupper (i) != TOUPPER (i))
8555 if ac_fn_c_try_run "$LINENO"; then :
8558 ac_cv_header_stdc=no
8560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8561 conftest.$ac_objext conftest.beam conftest.$ac_ext
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8567 $as_echo "$ac_cv_header_stdc" >&6; }
8568 if test $ac_cv_header_stdc = yes; then
8570 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8574 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8575 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8576 inttypes.h stdint.h unistd.h
8578 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8579 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8581 eval as_val=\$$as_ac_Header
8582 if test "x$as_val" = x""yes; then :
8583 cat >>confdefs.h <<_ACEOF
8584 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8592 for ac_header in dlfcn.h
8594 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8596 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8597 cat >>confdefs.h <<_ACEOF
8598 #define HAVE_DLFCN_H 1
8608 ac_cpp='$CXXCPP $CPPFLAGS'
8609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8612 if test -z "$CXX"; then
8613 if test -n "$CCC"; then
8616 if test -n "$ac_tool_prefix"; then
8617 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8622 $as_echo_n "checking for $ac_word... " >&6; }
8623 if test "${ac_cv_prog_CXX+set}" = set; then :
8624 $as_echo_n "(cached) " >&6
8626 if test -n "$CXX"; then
8627 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8633 test -z "$as_dir" && as_dir=.
8634 for ac_exec_ext in '' $ac_executable_extensions; do
8635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8636 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8647 if test -n "$CXX"; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8649 $as_echo "$CXX" >&6; }
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652 $as_echo "no" >&6; }
8656 test -n "$CXX" && break
8659 if test -z "$CXX"; then
8661 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8663 # Extract the first word of "$ac_prog", so it can be a program name with args.
8664 set dummy $ac_prog; ac_word=$2
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8666 $as_echo_n "checking for $ac_word... " >&6; }
8667 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8668 $as_echo_n "(cached) " >&6
8670 if test -n "$ac_ct_CXX"; then
8671 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8677 test -z "$as_dir" && as_dir=.
8678 for ac_exec_ext in '' $ac_executable_extensions; do
8679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8680 ac_cv_prog_ac_ct_CXX="$ac_prog"
8681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8690 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8691 if test -n "$ac_ct_CXX"; then
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8693 $as_echo "$ac_ct_CXX" >&6; }
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696 $as_echo "no" >&6; }
8700 test -n "$ac_ct_CXX" && break
8703 if test "x$ac_ct_CXX" = x; then
8706 case $cross_compiling:$ac_tool_warned in
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8710 ac_tool_warned=yes ;;
8718 # Provide some information about the compiler.
8719 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8722 for ac_option in --version -v -V -qversion; do
8723 { { ac_try="$ac_compiler $ac_option >&5"
8725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726 *) ac_try_echo=$ac_try;;
8728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8729 $as_echo "$ac_try_echo"; } >&5
8730 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8732 if test -s conftest.err; then
8734 ... rest of stderr output deleted ...
8735 10q' conftest.err >conftest.er1
8736 cat conftest.er1 >&5
8738 rm -f conftest.er1 conftest.err
8739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8740 test $ac_status = 0; }
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8744 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8745 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8746 $as_echo_n "(cached) " >&6
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8762 if ac_fn_cxx_try_compile "$LINENO"; then :
8767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8768 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8772 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8773 if test $ac_compiler_gnu = yes; then
8778 ac_test_CXXFLAGS=${CXXFLAGS+set}
8779 ac_save_CXXFLAGS=$CXXFLAGS
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8781 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8782 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8783 $as_echo_n "(cached) " >&6
8785 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8786 ac_cxx_werror_flag=yes
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8800 if ac_fn_cxx_try_compile "$LINENO"; then :
8801 ac_cv_prog_cxx_g=yes
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8815 if ac_fn_cxx_try_compile "$LINENO"; then :
8818 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h. */
8831 if ac_fn_cxx_try_compile "$LINENO"; then :
8832 ac_cv_prog_cxx_g=yes
8834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8839 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8842 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8843 if test "$ac_test_CXXFLAGS" = set; then
8844 CXXFLAGS=$ac_save_CXXFLAGS
8845 elif test $ac_cv_prog_cxx_g = yes; then
8846 if test "$GXX" = yes; then
8852 if test "$GXX" = yes; then
8859 ac_cpp='$CPP $CPPFLAGS'
8860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8864 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8865 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8866 (test "X$CXX" != "Xg++"))) ; then
8868 ac_cpp='$CXXCPP $CPPFLAGS'
8869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8873 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8874 if test -z "$CXXCPP"; then
8875 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8876 $as_echo_n "(cached) " >&6
8878 # Double quotes because CXXCPP needs to be expanded
8879 for CXXCPP in "$CXX -E" "/lib/cpp"
8882 for ac_cxx_preproc_warn_flag in '' yes
8884 # Use a header file that comes with gcc, so configuring glibc
8885 # with a fresh cross-compiler works.
8886 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8887 # <limits.h> exists even on freestanding compilers.
8888 # On the NeXT, cc -E runs the code through the compiler's parser,
8889 # not just through cpp. "Syntax error" is here to catch this case.
8890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891 /* end confdefs.h. */
8893 # include <limits.h>
8895 # include <assert.h>
8899 if ac_fn_cxx_try_cpp "$LINENO"; then :
8902 # Broken: fails on valid input.
8905 rm -f conftest.err conftest.$ac_ext
8907 # OK, works on sane cases. Now check whether nonexistent headers
8908 # can be detected and how.
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8911 #include <ac_nonexistent.h>
8913 if ac_fn_cxx_try_cpp "$LINENO"; then :
8914 # Broken: success on invalid input.
8917 # Passes both tests.
8921 rm -f conftest.err conftest.$ac_ext
8924 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8925 rm -f conftest.err conftest.$ac_ext
8926 if $ac_preproc_ok; then :
8931 ac_cv_prog_CXXCPP=$CXXCPP
8934 CXXCPP=$ac_cv_prog_CXXCPP
8936 ac_cv_prog_CXXCPP=$CXXCPP
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8939 $as_echo "$CXXCPP" >&6; }
8941 for ac_cxx_preproc_warn_flag in '' yes
8943 # Use a header file that comes with gcc, so configuring glibc
8944 # with a fresh cross-compiler works.
8945 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8946 # <limits.h> exists even on freestanding compilers.
8947 # On the NeXT, cc -E runs the code through the compiler's parser,
8948 # not just through cpp. "Syntax error" is here to catch this case.
8949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8950 /* end confdefs.h. */
8952 # include <limits.h>
8954 # include <assert.h>
8958 if ac_fn_cxx_try_cpp "$LINENO"; then :
8961 # Broken: fails on valid input.
8964 rm -f conftest.err conftest.$ac_ext
8966 # OK, works on sane cases. Now check whether nonexistent headers
8967 # can be detected and how.
8968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h. */
8970 #include <ac_nonexistent.h>
8972 if ac_fn_cxx_try_cpp "$LINENO"; then :
8973 # Broken: success on invalid input.
8976 # Passes both tests.
8980 rm -f conftest.err conftest.$ac_ext
8983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8984 rm -f conftest.err conftest.$ac_ext
8985 if $ac_preproc_ok; then :
8988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8990 _lt_caught_CXX_error=yes; }
8994 ac_cpp='$CPP $CPPFLAGS'
8995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9000 _lt_caught_CXX_error=yes
9008 # Check whether --enable-shared was given.
9009 if test "${enable_shared+set}" = set; then :
9010 enableval=$enable_shared; p=${PACKAGE-default}
9012 yes) enable_shared=yes ;;
9013 no) enable_shared=no ;;
9016 # Look at the argument we got. We use all the common list separators.
9017 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9018 for pkg in $enableval; do
9020 if test "X$pkg" = "X$p"; then
9037 # Check whether --enable-static was given.
9038 if test "${enable_static+set}" = set; then :
9039 enableval=$enable_static; p=${PACKAGE-default}
9041 yes) enable_static=yes ;;
9042 no) enable_static=no ;;
9045 # Look at the argument we got. We use all the common list separators.
9046 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9047 for pkg in $enableval; do
9049 if test "X$pkg" = "X$p"; then
9078 # Check whether --with-pic was given.
9079 if test "${with_pic+set}" = set; then :
9080 withval=$with_pic; pic_mode="$withval"
9086 test -z "$pic_mode" && pic_mode=default
9094 # Check whether --enable-fast-install was given.
9095 if test "${enable_fast_install+set}" = set; then :
9096 enableval=$enable_fast_install; p=${PACKAGE-default}
9098 yes) enable_fast_install=yes ;;
9099 no) enable_fast_install=no ;;
9101 enable_fast_install=no
9102 # Look at the argument we got. We use all the common list separators.
9103 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9104 for pkg in $enableval; do
9106 if test "X$pkg" = "X$p"; then
9107 enable_fast_install=yes
9114 enable_fast_install=yes
9127 # This can be used to rebuild libtool when needed
9128 LIBTOOL_DEPS="$ltmain"
9130 # Always use our own libtool.
9131 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9157 test -z "$LN_S" && LN_S="ln -s"
9172 if test -n "${ZSH_VERSION+set}" ; then
9173 setopt NO_GLOB_SUBST
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9177 $as_echo_n "checking for objdir... " >&6; }
9178 if test "${lt_cv_objdir+set}" = set; then :
9179 $as_echo_n "(cached) " >&6
9181 rm -f .libs 2>/dev/null
9182 mkdir .libs 2>/dev/null
9183 if test -d .libs; then
9186 # MS-DOS does not allow filenames that begin with a dot.
9189 rmdir .libs 2>/dev/null
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9192 $as_echo "$lt_cv_objdir" >&6; }
9193 objdir=$lt_cv_objdir
9199 cat >>confdefs.h <<_ACEOF
9200 #define LT_OBJDIR "$lt_cv_objdir/"
9221 # AIX sometimes has problems with the GCC collect2 program. For some
9222 # reason, if we set the COLLECT_NAMES environment variable, the problems
9223 # vanish in a puff of smoke.
9224 if test "X${COLLECT_NAMES+set}" != Xset; then
9226 export COLLECT_NAMES
9231 # Sed substitution that helps us do robust quoting. It backslashifies
9232 # metacharacters that are still active within double-quoted strings.
9233 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9235 # Same as above, but do not quote variable references.
9236 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9238 # Sed substitution to delay expansion of an escaped shell variable in a
9239 # double_quote_subst'ed string.
9240 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9242 # Sed substitution to delay expansion of an escaped single quote.
9243 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9245 # Sed substitution to avoid accidental globbing in evaled expressions
9246 no_glob_subst='s/\*/\\\*/g'
9250 can_build_shared=yes
9252 # All known linkers require a `.a' archive for static linking (except MSVC,
9253 # which needs '.lib').
9256 with_gnu_ld="$lt_cv_prog_gnu_ld"
9259 old_CFLAGS="$CFLAGS"
9261 # Set sane defaults for various variables
9262 test -z "$CC" && CC=cc
9263 test -z "$LTCC" && LTCC=$CC
9264 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9265 test -z "$LD" && LD=ld
9266 test -z "$ac_objext" && ac_objext=o
9268 for cc_temp in $compiler""; do
9270 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9271 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9276 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9279 # Only perform the check for file, if the check method requires it
9280 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9281 case $deplibs_check_method in
9283 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9285 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9286 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9287 $as_echo_n "(cached) " >&6
9291 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9294 lt_save_MAGIC_CMD="$MAGIC_CMD"
9295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9296 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9297 for ac_dir in $ac_dummy; do
9299 test -z "$ac_dir" && ac_dir=.
9300 if test -f $ac_dir/${ac_tool_prefix}file; then
9301 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9302 if test -n "$file_magic_test_file"; then
9303 case $deplibs_check_method in
9305 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9306 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9307 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9308 $EGREP "$file_magic_regex" > /dev/null; then
9313 *** Warning: the command libtool uses to detect shared libraries,
9314 *** $file_magic_cmd, produces output that libtool cannot recognize.
9315 *** The result is that libtool may fail to recognize shared libraries
9316 *** as such. This will affect the creation of libtool libraries that
9317 *** depend on shared libraries, but programs linked with such libtool
9318 *** libraries will work regardless of this problem. Nevertheless, you
9319 *** may want to report the problem to your system manager and/or to
9320 *** bug-libtool@gnu.org
9330 MAGIC_CMD="$lt_save_MAGIC_CMD"
9335 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9336 if test -n "$MAGIC_CMD"; then
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9338 $as_echo "$MAGIC_CMD" >&6; }
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9341 $as_echo "no" >&6; }
9348 if test -z "$lt_cv_path_MAGIC_CMD"; then
9349 if test -n "$ac_tool_prefix"; then
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9351 $as_echo_n "checking for file... " >&6; }
9352 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9353 $as_echo_n "(cached) " >&6
9357 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9360 lt_save_MAGIC_CMD="$MAGIC_CMD"
9361 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9362 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9363 for ac_dir in $ac_dummy; do
9365 test -z "$ac_dir" && ac_dir=.
9366 if test -f $ac_dir/file; then
9367 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9368 if test -n "$file_magic_test_file"; then
9369 case $deplibs_check_method in
9371 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9372 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9373 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9374 $EGREP "$file_magic_regex" > /dev/null; then
9379 *** Warning: the command libtool uses to detect shared libraries,
9380 *** $file_magic_cmd, produces output that libtool cannot recognize.
9381 *** The result is that libtool may fail to recognize shared libraries
9382 *** as such. This will affect the creation of libtool libraries that
9383 *** depend on shared libraries, but programs linked with such libtool
9384 *** libraries will work regardless of this problem. Nevertheless, you
9385 *** may want to report the problem to your system manager and/or to
9386 *** bug-libtool@gnu.org
9396 MAGIC_CMD="$lt_save_MAGIC_CMD"
9401 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9402 if test -n "$MAGIC_CMD"; then
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9404 $as_echo "$MAGIC_CMD" >&6; }
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407 $as_echo "no" >&6; }
9420 # Use C for the default configuration in the libtool script
9424 ac_cpp='$CPP $CPPFLAGS'
9425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9430 # Source file extension for C test sources.
9433 # Object file extension for compiled C test sources.
9437 # Code to be used in simple compile tests
9438 lt_simple_compile_test_code="int some_variable = 0;"
9440 # Code to be used in simple link tests
9441 lt_simple_link_test_code='int main(){return(0);}'
9449 # If no C compiler was specified, use CC.
9452 # If no C compiler flags were specified, use CFLAGS.
9453 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9455 # Allow CC to be a program name with arguments.
9458 # Save the default compiler, since it gets overwritten when the other
9459 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9460 compiler_DEFAULT=$CC
9462 # save warnings/boilerplate of simple test code
9463 ac_outfile=conftest.$ac_objext
9464 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9465 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9466 _lt_compiler_boilerplate=`cat conftest.err`
9469 ac_outfile=conftest.$ac_objext
9470 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9471 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9472 _lt_linker_boilerplate=`cat conftest.err`
9477 ## There is no encapsulation within the following macros, do not change
9478 ## the running order or otherwise move them around unless you know exactly
9479 ## what you are doing...
9480 if test -n "$compiler"; then
9482 lt_prog_compiler_no_builtin_flag=
9484 if test "$GCC" = yes; then
9485 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9488 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9489 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9490 $as_echo_n "(cached) " >&6
9492 lt_cv_prog_compiler_rtti_exceptions=no
9493 ac_outfile=conftest.$ac_objext
9494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9495 lt_compiler_flag="-fno-rtti -fno-exceptions"
9496 # Insert the option either (1) after the last *FLAGS variable, or
9497 # (2) before a word containing "conftest.", or (3) at the end.
9498 # Note that $ac_compile itself does not contain backslashes and begins
9499 # with a dollar sign (not a hyphen), so the echo should work correctly.
9500 # The option is referenced via a variable to avoid confusing sed.
9501 lt_compile=`echo "$ac_compile" | $SED \
9502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9504 -e 's:$: $lt_compiler_flag:'`
9505 (eval echo "\"\$as_me:9505: $lt_compile\"" >&5)
9506 (eval "$lt_compile" 2>conftest.err)
9508 cat conftest.err >&5
9509 echo "$as_me:9509: \$? = $ac_status" >&5
9510 if (exit $ac_status) && test -s "$ac_outfile"; then
9511 # The compiler can only warn and ignore the option if not recognized
9512 # So say no if there are warnings other than the usual output.
9513 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9515 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9516 lt_cv_prog_compiler_rtti_exceptions=yes
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9523 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9525 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9526 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9538 lt_prog_compiler_wl=
9539 lt_prog_compiler_pic=
9540 lt_prog_compiler_static=
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9543 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9545 if test "$GCC" = yes; then
9546 lt_prog_compiler_wl='-Wl,'
9547 lt_prog_compiler_static='-static'
9551 # All AIX code is PIC.
9552 if test "$host_cpu" = ia64; then
9553 # AIX 5 now supports IA64 processor
9554 lt_prog_compiler_static='-Bstatic'
9561 # see comment about AmigaOS4 .so support
9562 lt_prog_compiler_pic='-fPIC'
9565 # FIXME: we need at least 68020 code to build shared libraries, but
9566 # adding the `-m68020' flag to GCC prevents building anything better,
9568 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9573 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9574 # PIC is the default for these OSes.
9577 mingw* | cygwin* | pw32* | os2* | cegcc*)
9578 # This hack is so that the source file can tell whether it is being
9579 # built for inclusion in a dll (and should export symbols for example).
9580 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9581 # (--disable-auto-import) libraries
9582 lt_prog_compiler_pic='-DDLL_EXPORT'
9585 darwin* | rhapsody*)
9586 # PIC is the default on this platform
9587 # Common symbols not allowed in MH_DYLIB files
9588 lt_prog_compiler_pic='-fno-common'
9592 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9593 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9594 # sets the default TLS model and affects inlining.
9600 lt_prog_compiler_pic='-fPIC'
9606 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9607 # Instead, we relocate shared libraries at runtime.
9611 # Just because we use GCC doesn't mean we suddenly get shared libraries
9612 # on systems that don't support them.
9613 lt_prog_compiler_can_build_shared=no
9618 # QNX uses GNU C++, but need to define -shared option too, otherwise
9620 lt_prog_compiler_pic='-fPIC -shared'
9624 if test -d /usr/nec; then
9625 lt_prog_compiler_pic=-Kconform_pic
9630 lt_prog_compiler_pic='-fPIC'
9634 # PORTME Check for flag to pass linker flags through the system compiler.
9637 lt_prog_compiler_wl='-Wl,'
9638 if test "$host_cpu" = ia64; then
9639 # AIX 5 now supports IA64 processor
9640 lt_prog_compiler_static='-Bstatic'
9642 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9646 mingw* | cygwin* | pw32* | os2* | cegcc*)
9647 # This hack is so that the source file can tell whether it is being
9648 # built for inclusion in a dll (and should export symbols for example).
9649 lt_prog_compiler_pic='-DDLL_EXPORT'
9652 hpux9* | hpux10* | hpux11*)
9653 lt_prog_compiler_wl='-Wl,'
9654 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9661 lt_prog_compiler_pic='+Z'
9664 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9665 lt_prog_compiler_static='${wl}-a ${wl}archive'
9668 irix5* | irix6* | nonstopux*)
9669 lt_prog_compiler_wl='-Wl,'
9670 # PIC (with -KPIC) is the default.
9671 lt_prog_compiler_static='-non_shared'
9674 linux* | k*bsd*-gnu)
9675 case $cc_basename in
9676 # old Intel for x86_64 which still supported -KPIC.
9678 lt_prog_compiler_wl='-Wl,'
9679 lt_prog_compiler_pic='-KPIC'
9680 lt_prog_compiler_static='-static'
9682 # icc used to be incompatible with GCC.
9683 # ICC 10 doesn't accept -KPIC any more.
9685 lt_prog_compiler_wl='-Wl,'
9686 lt_prog_compiler_pic='-fPIC'
9687 lt_prog_compiler_static='-static'
9689 # Lahey Fortran 8.1.
9691 lt_prog_compiler_wl='-Wl,'
9692 lt_prog_compiler_pic='--shared'
9693 lt_prog_compiler_static='--static'
9695 pgcc* | pgf77* | pgf90* | pgf95*)
9696 # Portland Group compilers (*not* the Pentium gcc compiler,
9697 # which looks to be a dead project)
9698 lt_prog_compiler_wl='-Wl,'
9699 lt_prog_compiler_pic='-fpic'
9700 lt_prog_compiler_static='-Bstatic'
9703 lt_prog_compiler_wl='-Wl,'
9704 # All Alpha code is PIC.
9705 lt_prog_compiler_static='-non_shared'
9708 # IBM XL C 8.0/Fortran 10.1 on PPC
9709 lt_prog_compiler_wl='-Wl,'
9710 lt_prog_compiler_pic='-qpic'
9711 lt_prog_compiler_static='-qstaticlink'
9714 case `$CC -V 2>&1 | sed 5q` in
9717 lt_prog_compiler_pic='-KPIC'
9718 lt_prog_compiler_static='-Bstatic'
9719 lt_prog_compiler_wl='-Wl,'
9722 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9723 lt_prog_compiler_pic='-KPIC'
9724 lt_prog_compiler_static='-Bstatic'
9725 lt_prog_compiler_wl=''
9733 lt_prog_compiler_pic='-KPIC'
9734 lt_prog_compiler_static='-Bstatic'
9738 # QNX uses GNU C++, but need to define -shared option too, otherwise
9740 lt_prog_compiler_pic='-fPIC -shared'
9743 osf3* | osf4* | osf5*)
9744 lt_prog_compiler_wl='-Wl,'
9745 # All OSF/1 code is PIC.
9746 lt_prog_compiler_static='-non_shared'
9750 lt_prog_compiler_static='-non_shared'
9754 lt_prog_compiler_pic='-KPIC'
9755 lt_prog_compiler_static='-Bstatic'
9756 case $cc_basename in
9758 lt_prog_compiler_wl='-Qoption ld ';;
9760 lt_prog_compiler_wl='-Wl,';;
9765 lt_prog_compiler_wl='-Qoption ld '
9766 lt_prog_compiler_pic='-PIC'
9767 lt_prog_compiler_static='-Bstatic'
9770 sysv4 | sysv4.2uw2* | sysv4.3*)
9771 lt_prog_compiler_wl='-Wl,'
9772 lt_prog_compiler_pic='-KPIC'
9773 lt_prog_compiler_static='-Bstatic'
9777 if test -d /usr/nec ;then
9778 lt_prog_compiler_pic='-Kconform_pic'
9779 lt_prog_compiler_static='-Bstatic'
9783 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9784 lt_prog_compiler_wl='-Wl,'
9785 lt_prog_compiler_pic='-KPIC'
9786 lt_prog_compiler_static='-Bstatic'
9790 lt_prog_compiler_wl='-Wl,'
9791 lt_prog_compiler_can_build_shared=no
9795 lt_prog_compiler_pic='-pic'
9796 lt_prog_compiler_static='-Bstatic'
9800 lt_prog_compiler_can_build_shared=no
9806 # For platforms which do not support PIC, -DPIC is meaningless:
9808 lt_prog_compiler_pic=
9811 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9815 $as_echo "$lt_prog_compiler_pic" >&6; }
9823 # Check to make sure the PIC flag actually works.
9825 if test -n "$lt_prog_compiler_pic"; then
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9827 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9828 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9829 $as_echo_n "(cached) " >&6
9831 lt_cv_prog_compiler_pic_works=no
9832 ac_outfile=conftest.$ac_objext
9833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9834 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9835 # Insert the option either (1) after the last *FLAGS variable, or
9836 # (2) before a word containing "conftest.", or (3) at the end.
9837 # Note that $ac_compile itself does not contain backslashes and begins
9838 # with a dollar sign (not a hyphen), so the echo should work correctly.
9839 # The option is referenced via a variable to avoid confusing sed.
9840 lt_compile=`echo "$ac_compile" | $SED \
9841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9843 -e 's:$: $lt_compiler_flag:'`
9844 (eval echo "\"\$as_me:9844: $lt_compile\"" >&5)
9845 (eval "$lt_compile" 2>conftest.err)
9847 cat conftest.err >&5
9848 echo "$as_me:9848: \$? = $ac_status" >&5
9849 if (exit $ac_status) && test -s "$ac_outfile"; then
9850 # The compiler can only warn and ignore the option if not recognized
9851 # So say no if there are warnings other than the usual output.
9852 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9853 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9854 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9855 lt_cv_prog_compiler_pic_works=yes
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9862 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9864 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9865 case $lt_prog_compiler_pic in
9867 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9870 lt_prog_compiler_pic=
9871 lt_prog_compiler_can_build_shared=no
9882 # Check to make sure the static flag actually works.
9884 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9886 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9887 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9888 $as_echo_n "(cached) " >&6
9890 lt_cv_prog_compiler_static_works=no
9891 save_LDFLAGS="$LDFLAGS"
9892 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9893 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9894 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9895 # The linker can only warn and ignore the option if not recognized
9896 # So say no if there are warnings
9897 if test -s conftest.err; then
9898 # Append any errors to the config.log.
9899 cat conftest.err 1>&5
9900 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9901 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9902 if diff conftest.exp conftest.er2 >/dev/null; then
9903 lt_cv_prog_compiler_static_works=yes
9906 lt_cv_prog_compiler_static_works=yes
9910 LDFLAGS="$save_LDFLAGS"
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9914 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9916 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9919 lt_prog_compiler_static=
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9929 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9930 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9931 $as_echo_n "(cached) " >&6
9933 lt_cv_prog_compiler_c_o=no
9934 $RM -r conftest 2>/dev/null
9938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9940 lt_compiler_flag="-o out/conftest2.$ac_objext"
9941 # Insert the option either (1) after the last *FLAGS variable, or
9942 # (2) before a word containing "conftest.", or (3) at the end.
9943 # Note that $ac_compile itself does not contain backslashes and begins
9944 # with a dollar sign (not a hyphen), so the echo should work correctly.
9945 lt_compile=`echo "$ac_compile" | $SED \
9946 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9948 -e 's:$: $lt_compiler_flag:'`
9949 (eval echo "\"\$as_me:9949: $lt_compile\"" >&5)
9950 (eval "$lt_compile" 2>out/conftest.err)
9952 cat out/conftest.err >&5
9953 echo "$as_me:9953: \$? = $ac_status" >&5
9954 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9956 # The compiler can only warn and ignore the option if not recognized
9957 # So say no if there are warnings
9958 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9959 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9960 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9961 lt_cv_prog_compiler_c_o=yes
9966 # SGI C++ compiler will create directory out/ii_files/ for
9967 # template instantiation
9968 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9969 $RM out/* && rmdir out
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9976 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9984 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9985 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9986 $as_echo_n "(cached) " >&6
9988 lt_cv_prog_compiler_c_o=no
9989 $RM -r conftest 2>/dev/null
9993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9995 lt_compiler_flag="-o out/conftest2.$ac_objext"
9996 # Insert the option either (1) after the last *FLAGS variable, or
9997 # (2) before a word containing "conftest.", or (3) at the end.
9998 # Note that $ac_compile itself does not contain backslashes and begins
9999 # with a dollar sign (not a hyphen), so the echo should work correctly.
10000 lt_compile=`echo "$ac_compile" | $SED \
10001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10003 -e 's:$: $lt_compiler_flag:'`
10004 (eval echo "\"\$as_me:10004: $lt_compile\"" >&5)
10005 (eval "$lt_compile" 2>out/conftest.err)
10007 cat out/conftest.err >&5
10008 echo "$as_me:10008: \$? = $ac_status" >&5
10009 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10011 # The compiler can only warn and ignore the option if not recognized
10012 # So say no if there are warnings
10013 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10014 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10015 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10016 lt_cv_prog_compiler_c_o=yes
10021 # SGI C++ compiler will create directory out/ii_files/ for
10022 # template instantiation
10023 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10024 $RM out/* && rmdir out
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10031 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10036 hard_links="nottested"
10037 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10038 # do not overwrite the value of need_locks provided by the user
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10040 $as_echo_n "checking if we can lock with hard links... " >&6; }
10043 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10045 ln conftest.a conftest.b 2>&5 || hard_links=no
10046 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10048 $as_echo "$hard_links" >&6; }
10049 if test "$hard_links" = no; then
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10051 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10064 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10067 allow_undefined_flag=
10068 always_export_symbols=no
10070 archive_expsym_cmds=
10071 compiler_needs_object=no
10072 enable_shared_with_static_runtimes=no
10073 export_dynamic_flag_spec=
10074 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10075 hardcode_automatic=no
10077 hardcode_direct_absolute=no
10078 hardcode_libdir_flag_spec=
10079 hardcode_libdir_flag_spec_ld=
10080 hardcode_libdir_separator=
10081 hardcode_minus_L=no
10082 hardcode_shlibpath_var=unsupported
10084 link_all_deplibs=unknown
10086 module_expsym_cmds=
10087 old_archive_from_new_cmds=
10088 old_archive_from_expsyms_cmds=
10089 thread_safe_flag_spec=
10090 whole_archive_flag_spec=
10091 # include_expsyms should be a list of space-separated symbols to be *always*
10092 # included in the symbol list
10094 # exclude_expsyms can be an extended regexp of symbols to exclude
10095 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10096 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10097 # as well as any symbol that contains `d'.
10098 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10099 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10100 # platforms (ab)use it in PIC code, but their linkers get confused if
10101 # the symbol is explicitly referenced. Since portable code cannot
10102 # rely on this symbol name, it's probably fine to never include it in
10103 # preloaded symbol tables.
10104 # Exclude shared library initialization/finalization symbols.
10105 extract_expsyms_cmds=
10108 cygwin* | mingw* | pw32* | cegcc*)
10109 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10110 # When not using gcc, we currently assume that we are using
10111 # Microsoft Visual C++.
10112 if test "$GCC" != yes; then
10117 # we just hope/assume this is gcc and not c89 (= MSVC++)
10126 if test "$with_gnu_ld" = yes; then
10127 # If archive_cmds runs LD, not CC, wlarc should be empty
10130 # Set some defaults for GNU ld with shared library support. These
10131 # are reset later if shared libraries are not supported. Putting them
10132 # here allows them to be overridden if necessary.
10133 runpath_var=LD_RUN_PATH
10134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10135 export_dynamic_flag_spec='${wl}--export-dynamic'
10136 # ancient GNU ld didn't support --whole-archive et. al.
10137 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10138 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10140 whole_archive_flag_spec=
10142 supports_anon_versioning=no
10143 case `$LD -v 2>&1` in
10144 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10145 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10146 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10147 *\ 2.11.*) ;; # other 2.11 versions
10148 *) supports_anon_versioning=yes ;;
10151 # See if GNU ld supports shared libraries.
10154 # On AIX/PPC, the GNU linker is very broken
10155 if test "$host_cpu" != ia64; then
10159 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10160 *** to be unable to reliably create shared libraries on AIX.
10161 *** Therefore, libtool is disabling shared libraries support. If you
10162 *** really care for shared libraries, you may want to modify your PATH
10163 *** so that a non-GNU linker is found, and then restart.
10172 # see comment about AmigaOS4 .so support
10173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10174 archive_expsym_cmds=''
10177 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)'
10178 hardcode_libdir_flag_spec='-L$libdir'
10179 hardcode_minus_L=yes
10185 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10186 allow_undefined_flag=unsupported
10187 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10188 # support --undefined. This deserves some investigation. FIXME
10189 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10195 cygwin* | mingw* | pw32* | cegcc*)
10196 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10197 # as there is no search path for DLLs.
10198 hardcode_libdir_flag_spec='-L$libdir'
10199 allow_undefined_flag=unsupported
10200 always_export_symbols=no
10201 enable_shared_with_static_runtimes=yes
10202 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10204 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10206 # If the export-symbols file already is a .def file (1st line
10207 # is EXPORTS), use it as is; otherwise, prepend...
10208 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10209 cp $export_symbols $output_objdir/$soname.def;
10211 echo EXPORTS > $output_objdir/$soname.def;
10212 cat $export_symbols >> $output_objdir/$soname.def;
10214 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10222 hardcode_shlibpath_var=no
10223 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10224 export_dynamic_flag_spec='${wl}-E'
10225 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10226 # Instead, shared libraries are loaded at an image base (0x10000000 by
10227 # default) and relocated if they conflict, which is a slow very memory
10228 # consuming and fragmenting process. To avoid this, we pick a random,
10229 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10230 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10231 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10232 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'
10235 gnu* | linux* | tpf* | k*bsd*-gnu)
10237 if test "$host_os" = linux-dietlibc; then
10238 case $cc_basename in
10239 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10242 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10243 && test "$tmp_diet" = no
10246 tmp_sharedflag='-shared'
10247 case $cc_basename,$host_cpu in
10248 pgcc*) # Portland Group C compiler
10249 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'
10250 tmp_addflag=' $pic_flag'
10252 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10253 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'
10254 tmp_addflag=' $pic_flag -Mnomain' ;;
10255 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10256 tmp_addflag=' -i_dynamic' ;;
10257 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10258 tmp_addflag=' -i_dynamic -nofor_main' ;;
10259 ifc* | ifort*) # Intel Fortran compiler
10260 tmp_addflag=' -nofor_main' ;;
10261 lf95*) # Lahey Fortran 8.1
10262 whole_archive_flag_spec=
10263 tmp_sharedflag='--shared' ;;
10264 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10265 tmp_sharedflag='-qmkshrobj'
10268 case `$CC -V 2>&1 | sed 5q` in
10269 *Sun\ C*) # Sun C 5.9
10270 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'
10271 compiler_needs_object=yes
10272 tmp_sharedflag='-G' ;;
10273 *Sun\ F*) # Sun Fortran 8.3
10274 tmp_sharedflag='-G' ;;
10276 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10278 if test "x$supports_anon_versioning" = xyes; then
10279 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10280 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10281 echo "local: *; };" >> $output_objdir/$libname.ver~
10282 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10285 case $cc_basename in
10287 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10288 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10289 hardcode_libdir_flag_spec=
10290 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10291 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10292 if test "x$supports_anon_versioning" = xyes; then
10293 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10294 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10295 echo "local: *; };" >> $output_objdir/$libname.ver~
10296 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10306 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10307 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10311 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10316 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10320 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10321 *** create shared libraries on Solaris systems. Therefore, libtool
10322 *** is disabling shared libraries support. We urge you to upgrade GNU
10323 *** binutils to release 2.9.1 or newer. Another option is to modify
10324 *** your PATH or compiler configuration so that the native linker is
10325 *** used, and then restart.
10328 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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'
10336 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10337 case `$LD -v 2>&1` in
10338 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10342 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10343 *** reliably create shared libraries on SCO systems. Therefore, libtool
10344 *** is disabling shared libraries support. We urge you to upgrade GNU
10345 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10346 *** your PATH or compiler configuration so that the native linker is
10347 *** used, and then restart.
10352 # For security reasons, it is highly recommended that you always
10353 # use absolute paths for naming shared libraries, and exclude the
10354 # DT_RUNPATH tag from executables and libraries. But doing so
10355 # requires that you compile everything twice, which is a pain.
10356 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10357 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10359 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10368 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10370 hardcode_direct=yes
10371 hardcode_shlibpath_var=no
10375 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10376 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10377 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10384 if test "$ld_shlibs" = no; then
10386 hardcode_libdir_flag_spec=
10387 export_dynamic_flag_spec=
10388 whole_archive_flag_spec=
10391 # PORTME fill in a description of your system's linker (not GNU ld)
10394 allow_undefined_flag=unsupported
10395 always_export_symbols=yes
10396 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'
10397 # Note: this linker hardcodes the directories in LIBPATH if there
10398 # are no directories specified by -L.
10399 hardcode_minus_L=yes
10400 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10401 # Neither direct hardcoding nor static linking is supported with a
10403 hardcode_direct=unsupported
10408 if test "$host_cpu" = ia64; then
10409 # On IA64, the linker does run time linking by default, so we don't
10410 # have to do anything special.
10411 aix_use_runtimelinking=no
10412 exp_sym_flag='-Bexport'
10415 # If we're using GNU nm, then we don't want the "-C" option.
10416 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10417 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10418 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'
10420 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'
10422 aix_use_runtimelinking=no
10424 # Test if we are trying to use run time linking or normal
10425 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10426 # need to do runtime linking.
10427 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10428 for ld_flag in $LDFLAGS; do
10429 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10430 aix_use_runtimelinking=yes
10437 exp_sym_flag='-bexport'
10438 no_entry_flag='-bnoentry'
10441 # When large executables or shared objects are built, AIX ld can
10442 # have problems creating the table of contents. If linking a library
10443 # or program results in "error TOC overflow" add -mminimal-toc to
10444 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10445 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10448 hardcode_direct=yes
10449 hardcode_direct_absolute=yes
10450 hardcode_libdir_separator=':'
10451 link_all_deplibs=yes
10452 file_list_spec='${wl}-f,'
10454 if test "$GCC" = yes; then
10455 case $host_os in aix4.[012]|aix4.[012].*)
10456 # We only want to do this on AIX 4.2 and lower, the check
10457 # below for broken collect2 doesn't work under 4.3+
10458 collect2name=`${CC} -print-prog-name=collect2`
10459 if test -f "$collect2name" &&
10460 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10462 # We have reworked collect2
10465 # We have old collect2
10466 hardcode_direct=unsupported
10467 # It fails to find uninstalled libraries when the uninstalled
10468 # path is not listed in the libpath. Setting hardcode_minus_L
10469 # to unsupported forces relinking
10470 hardcode_minus_L=yes
10471 hardcode_libdir_flag_spec='-L$libdir'
10472 hardcode_libdir_separator=
10476 shared_flag='-shared'
10477 if test "$aix_use_runtimelinking" = yes; then
10478 shared_flag="$shared_flag "'${wl}-G'
10482 if test "$host_cpu" = ia64; then
10483 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10484 # chokes on -Wl,-G. The following line is correct:
10487 if test "$aix_use_runtimelinking" = yes; then
10488 shared_flag='${wl}-G'
10490 shared_flag='${wl}-bM:SRE'
10495 export_dynamic_flag_spec='${wl}-bexpall'
10496 # It seems that -bexpall does not export symbols beginning with
10497 # underscore (_), so it is better to generate a list of symbols to export.
10498 always_export_symbols=yes
10499 if test "$aix_use_runtimelinking" = yes; then
10500 # Warning - without using the other runtime loading flags (-brtl),
10501 # -berok will link without error, but may produce a broken library.
10502 allow_undefined_flag='-berok'
10503 # Determine the default libpath from the value encoded in an
10504 # empty executable.
10505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10506 /* end confdefs.h. */
10516 if ac_fn_c_try_link "$LINENO"; then :
10518 lt_aix_libpath_sed='
10519 /Import File Strings/,/^$/ {
10525 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10526 # Check for a 64-bit object if we didn't find anything.
10527 if test -z "$aix_libpath"; then
10528 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10531 rm -f core conftest.err conftest.$ac_objext \
10532 conftest$ac_exeext conftest.$ac_ext
10533 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10535 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10536 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"
10538 if test "$host_cpu" = ia64; then
10539 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10540 allow_undefined_flag="-z nodefs"
10541 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"
10543 # Determine the default libpath from the value encoded in an
10544 # empty executable.
10545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10546 /* end confdefs.h. */
10556 if ac_fn_c_try_link "$LINENO"; then :
10558 lt_aix_libpath_sed='
10559 /Import File Strings/,/^$/ {
10565 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10566 # Check for a 64-bit object if we didn't find anything.
10567 if test -z "$aix_libpath"; then
10568 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10571 rm -f core conftest.err conftest.$ac_objext \
10572 conftest$ac_exeext conftest.$ac_ext
10573 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10575 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10576 # Warning - without using the other run time loading flags,
10577 # -berok will link without error, but may produce a broken library.
10578 no_undefined_flag=' ${wl}-bernotok'
10579 allow_undefined_flag=' ${wl}-berok'
10580 # Exported symbols can be pulled into shared objects from archives
10581 whole_archive_flag_spec='$convenience'
10582 archive_cmds_need_lc=yes
10583 # This is similar to how AIX traditionally builds its shared libraries.
10584 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'
10592 # see comment about AmigaOS4 .so support
10593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10594 archive_expsym_cmds=''
10597 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)'
10598 hardcode_libdir_flag_spec='-L$libdir'
10599 hardcode_minus_L=yes
10605 export_dynamic_flag_spec=-rdynamic
10608 cygwin* | mingw* | pw32* | cegcc*)
10609 # When not using gcc, we currently assume that we are using
10610 # Microsoft Visual C++.
10611 # hardcode_libdir_flag_spec is actually meaningless, as there is
10612 # no search path for DLLs.
10613 hardcode_libdir_flag_spec=' '
10614 allow_undefined_flag=unsupported
10615 # Tell ltmain to make .lib files, not .a files.
10617 # Tell ltmain to make .dll files, not .so files.
10619 # FIXME: Setting linknames here is a bad hack.
10620 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10621 # The linker will automatically build a .lib file if we build a DLL.
10622 old_archive_from_new_cmds='true'
10623 # FIXME: Should let the user specify the lib program.
10624 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10625 fix_srcfile_path='`cygpath -w "$srcfile"`'
10626 enable_shared_with_static_runtimes=yes
10629 darwin* | rhapsody*)
10632 archive_cmds_need_lc=no
10634 hardcode_automatic=yes
10635 hardcode_shlibpath_var=unsupported
10636 whole_archive_flag_spec=''
10637 link_all_deplibs=yes
10638 allow_undefined_flag="$_lt_dar_allow_undefined"
10639 case $cc_basename in
10640 ifort*) _lt_dar_can_shared=yes ;;
10641 *) _lt_dar_can_shared=$GCC ;;
10643 if test "$_lt_dar_can_shared" = "yes"; then
10644 output_verbose_link_cmd=echo
10645 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10646 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10647 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}"
10648 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}"
10657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10658 hardcode_libdir_flag_spec='-L$libdir'
10659 hardcode_shlibpath_var=no
10666 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10667 # support. Future versions do this automatically, but an explicit c++rt0.o
10668 # does not break anything, and helps significantly (at the cost of a little
10671 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10672 hardcode_libdir_flag_spec='-R$libdir'
10673 hardcode_direct=yes
10674 hardcode_shlibpath_var=no
10677 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10679 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10680 hardcode_direct=yes
10681 hardcode_minus_L=yes
10682 hardcode_shlibpath_var=no
10685 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10686 freebsd* | dragonfly*)
10687 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10688 hardcode_libdir_flag_spec='-R$libdir'
10689 hardcode_direct=yes
10690 hardcode_shlibpath_var=no
10694 if test "$GCC" = yes; then
10695 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'
10697 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'
10699 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10700 hardcode_libdir_separator=:
10701 hardcode_direct=yes
10703 # hardcode_minus_L: Not really in the search PATH,
10704 # but as the default location of the library.
10705 hardcode_minus_L=yes
10706 export_dynamic_flag_spec='${wl}-E'
10710 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10711 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10713 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10715 if test "$with_gnu_ld" = no; then
10716 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10717 hardcode_libdir_flag_spec_ld='+b $libdir'
10718 hardcode_libdir_separator=:
10719 hardcode_direct=yes
10720 hardcode_direct_absolute=yes
10721 export_dynamic_flag_spec='${wl}-E'
10722 # hardcode_minus_L: Not really in the search PATH,
10723 # but as the default location of the library.
10724 hardcode_minus_L=yes
10729 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10732 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10735 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10738 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10744 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10747 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10750 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10754 if test "$with_gnu_ld" = no; then
10755 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10756 hardcode_libdir_separator=:
10761 hardcode_shlibpath_var=no
10764 hardcode_direct=yes
10765 hardcode_direct_absolute=yes
10766 export_dynamic_flag_spec='${wl}-E'
10768 # hardcode_minus_L: Not really in the search PATH,
10769 # but as the default location of the library.
10770 hardcode_minus_L=yes
10776 irix5* | irix6* | nonstopux*)
10777 if test "$GCC" = yes; then
10778 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'
10779 # Try to use the -exported_symbol ld option, if it does not
10780 # work, assume that -exports_file does not work either and
10781 # implicitly export all symbols.
10782 save_LDFLAGS="$LDFLAGS"
10783 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10785 /* end confdefs.h. */
10788 if ac_fn_c_try_link "$LINENO"; then :
10789 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'
10792 rm -f core conftest.err conftest.$ac_objext \
10793 conftest$ac_exeext conftest.$ac_ext
10794 LDFLAGS="$save_LDFLAGS"
10796 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'
10797 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'
10799 archive_cmds_need_lc='no'
10800 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10801 hardcode_libdir_separator=:
10803 link_all_deplibs=yes
10807 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10808 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10810 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10812 hardcode_libdir_flag_spec='-R$libdir'
10813 hardcode_direct=yes
10814 hardcode_shlibpath_var=no
10818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10819 hardcode_direct=yes
10820 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10821 hardcode_libdir_separator=:
10822 hardcode_shlibpath_var=no
10829 if test -f /usr/libexec/ld.so; then
10830 hardcode_direct=yes
10831 hardcode_shlibpath_var=no
10832 hardcode_direct_absolute=yes
10833 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10834 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10835 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10836 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10837 export_dynamic_flag_spec='${wl}-E'
10840 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10841 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10842 hardcode_libdir_flag_spec='-R$libdir'
10845 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10846 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10856 hardcode_libdir_flag_spec='-L$libdir'
10857 hardcode_minus_L=yes
10858 allow_undefined_flag=unsupported
10859 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'
10860 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10864 if test "$GCC" = yes; then
10865 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10866 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'
10868 allow_undefined_flag=' -expect_unresolved \*'
10869 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'
10871 archive_cmds_need_lc='no'
10872 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10873 hardcode_libdir_separator=:
10876 osf4* | osf5*) # as osf3* with the addition of -msym flag
10877 if test "$GCC" = yes; then
10878 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10879 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'
10880 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10882 allow_undefined_flag=' -expect_unresolved \*'
10883 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'
10884 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~
10885 $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'
10887 # Both c and cxx compiler support -rpath directly
10888 hardcode_libdir_flag_spec='-rpath $libdir'
10890 archive_cmds_need_lc='no'
10891 hardcode_libdir_separator=:
10895 no_undefined_flag=' -z defs'
10896 if test "$GCC" = yes; then
10898 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10899 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10900 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10902 case `$CC -V 2>&1` in
10905 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10906 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10907 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10911 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10912 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10913 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10917 hardcode_libdir_flag_spec='-R$libdir'
10918 hardcode_shlibpath_var=no
10920 solaris2.[0-5] | solaris2.[0-5].*) ;;
10922 # The compiler driver will combine and reorder linker options,
10923 # but understands `-z linker_flag'. GCC discards it without `$wl',
10924 # but is careful enough not to reorder.
10925 # Supported since Solaris 2.6 (maybe 2.5.1?)
10926 if test "$GCC" = yes; then
10927 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10929 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10933 link_all_deplibs=yes
10937 if test "x$host_vendor" = xsequent; then
10938 # Use $CC to link under sequent, because it throws in some extra .o
10939 # files that make .init and .fini sections work.
10940 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10942 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10944 hardcode_libdir_flag_spec='-L$libdir'
10945 hardcode_direct=yes
10946 hardcode_minus_L=yes
10947 hardcode_shlibpath_var=no
10951 case $host_vendor in
10953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10954 hardcode_direct=yes # is this really true???
10957 ## LD is ld it makes a PLAMLIB
10958 ## CC just makes a GrossModule.
10959 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10960 reload_cmds='$CC -r -o $output$reload_objs'
10964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10965 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10968 runpath_var='LD_RUN_PATH'
10969 hardcode_shlibpath_var=no
10973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10974 hardcode_shlibpath_var=no
10975 export_dynamic_flag_spec='-Bexport'
10979 if test -d /usr/nec; then
10980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10981 hardcode_shlibpath_var=no
10982 runpath_var=LD_RUN_PATH
10983 hardcode_runpath_var=yes
10988 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10989 no_undefined_flag='${wl}-z,text'
10990 archive_cmds_need_lc=no
10991 hardcode_shlibpath_var=no
10992 runpath_var='LD_RUN_PATH'
10994 if test "$GCC" = yes; then
10995 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10996 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10998 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10999 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11003 sysv5* | sco3.2v5* | sco5v6*)
11004 # Note: We can NOT use -z defs as we might desire, because we do not
11005 # link with -lc, and that would cause any symbols used from libc to
11006 # always be unresolved, which means just about no library would
11007 # ever link correctly. If we're not using GNU ld we use -z text
11008 # though, which does catch some bad symbols but isn't as heavy-handed
11010 no_undefined_flag='${wl}-z,text'
11011 allow_undefined_flag='${wl}-z,nodefs'
11012 archive_cmds_need_lc=no
11013 hardcode_shlibpath_var=no
11014 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11015 hardcode_libdir_separator=':'
11016 link_all_deplibs=yes
11017 export_dynamic_flag_spec='${wl}-Bexport'
11018 runpath_var='LD_RUN_PATH'
11020 if test "$GCC" = yes; then
11021 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11022 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11024 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11025 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11031 hardcode_libdir_flag_spec='-L$libdir'
11032 hardcode_shlibpath_var=no
11040 if test x$host_vendor = xsni; then
11042 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11043 export_dynamic_flag_spec='${wl}-Blargedynsym'
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11050 $as_echo "$ld_shlibs" >&6; }
11051 test "$ld_shlibs" = no && can_build_shared=no
11053 with_gnu_ld=$with_gnu_ld
11070 # Do we need to explicitly link libc?
11072 case "x$archive_cmds_need_lc" in
11074 # Assume -lc should be added
11075 archive_cmds_need_lc=yes
11077 if test "$enable_shared" = yes && test "$GCC" = yes; then
11078 case $archive_cmds in
11080 # FIXME: we may have to deal with multi-command sequences.
11083 # Test whether the compiler implicitly links with -lc since on some
11084 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11085 # to ld, don't add -lc before -lgcc.
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11087 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11092 (eval $ac_compile) 2>&5
11094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11095 test $ac_status = 0; } 2>conftest.err; then
11098 libobjs=conftest.$ac_objext
11100 wl=$lt_prog_compiler_wl
11101 pic_flag=$lt_prog_compiler_pic
11107 lt_save_allow_undefined_flag=$allow_undefined_flag
11108 allow_undefined_flag=
11109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11110 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11113 test $ac_status = 0; }
11115 archive_cmds_need_lc=no
11117 archive_cmds_need_lc=yes
11119 allow_undefined_flag=$lt_save_allow_undefined_flag
11121 cat conftest.err 1>&5
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11125 $as_echo "$archive_cmds_need_lc" >&6; }
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11289 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11291 if test "$GCC" = yes; then
11293 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11294 *) lt_awk_arg="/^libraries:/" ;;
11296 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11297 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11298 # if the path contains ";" then we assume it to be the separator
11299 # otherwise default to the standard path separator (i.e. ":") - it is
11300 # assumed that no part of a normal pathname contains ";" but that should
11301 # okay in the real world where ";" in dirpaths is itself problematic.
11302 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11304 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11306 # Ok, now we have the path, separated by spaces, we can step through it
11307 # and add multilib dir if necessary.
11308 lt_tmp_lt_search_path_spec=
11309 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11310 for lt_sys_path in $lt_search_path_spec; do
11311 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11312 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11314 test -d "$lt_sys_path" && \
11315 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11318 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11319 BEGIN {RS=" "; FS="/|\n";} {
11322 for (lt_i = NF; lt_i > 0; lt_i--) {
11323 if ($lt_i != "" && $lt_i != ".") {
11324 if ($lt_i == "..") {
11327 if (lt_count == 0) {
11328 lt_foo="/" $lt_i lt_foo;
11335 if (lt_foo != "") { lt_freq[lt_foo]++; }
11336 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11338 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11340 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11342 library_names_spec=
11343 libname_spec='lib$name'
11347 postuninstall_cmds=
11351 shlibpath_overrides_runpath=unknown
11353 dynamic_linker="$host_os ld.so"
11354 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11355 need_lib_prefix=unknown
11356 hardcode_into_libs=no
11358 # when you set need_version to no, make sure it does not cause -set_version
11359 # flags to be left without arguments
11360 need_version=unknown
11365 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11366 shlibpath_var=LIBPATH
11368 # AIX 3 has no versioning support, so we append a major version to the name.
11369 soname_spec='${libname}${release}${shared_ext}$major'
11376 hardcode_into_libs=yes
11377 if test "$host_cpu" = ia64; then
11378 # AIX 5 supports IA64
11379 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11380 shlibpath_var=LD_LIBRARY_PATH
11382 # With GCC up to 2.95.x, collect2 would create an import file
11383 # for dependence libraries. The import file would start with
11384 # the line `#! .'. This would cause the generated library to
11385 # depend on `.', always an invalid library. This was fixed in
11386 # development snapshots of GCC prior to 3.0.
11388 aix4 | aix4.[01] | aix4.[01].*)
11389 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11391 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11394 can_build_shared=no
11398 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11399 # soname into executable. Probably we can add versioning support to
11400 # collect2, so additional links can be useful in future.
11401 if test "$aix_use_runtimelinking" = yes; then
11402 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11403 # instead of lib<name>.a to let people know that these are not
11404 # typical AIX shared libraries.
11405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11407 # We preserve .a as extension for shared libraries through AIX4.2
11408 # and later when we are not doing run time linking.
11409 library_names_spec='${libname}${release}.a $libname.a'
11410 soname_spec='${libname}${release}${shared_ext}$major'
11412 shlibpath_var=LIBPATH
11419 # Since July 2007 AmigaOS4 officially supports .so libraries.
11420 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11424 library_names_spec='$libname.ixlibrary $libname.a'
11425 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11426 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'
11432 library_names_spec='${libname}${shared_ext}'
11433 dynamic_linker="$host_os ld.so"
11434 shlibpath_var=LIBRARY_PATH
11440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11441 soname_spec='${libname}${release}${shared_ext}$major'
11442 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11443 shlibpath_var=LD_LIBRARY_PATH
11444 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11445 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11446 # the default ld.so.conf also contains /usr/contrib/lib and
11447 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11448 # libtool to hard-code these into programs
11451 cygwin* | mingw* | pw32* | cegcc*)
11452 version_type=windows
11457 case $GCC,$host_os in
11458 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11459 library_names_spec='$libname.dll.a'
11460 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11461 postinstall_cmds='base_file=`basename \${file}`~
11462 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11463 dldir=$destdir/`dirname \$dlpath`~
11464 test -d \$dldir || mkdir -p \$dldir~
11465 $install_prog $dir/$dlname \$dldir/$dlname~
11466 chmod a+x \$dldir/$dlname~
11467 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11468 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11470 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11471 dlpath=$dir/\$dldll~
11473 shlibpath_overrides_runpath=yes
11477 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11478 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11479 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11482 # MinGW DLLs use traditional 'lib' prefix
11483 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11484 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11485 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11486 # It is most probably a Windows format PATH printed by
11487 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11488 # path with ; separators, and with drive letters. We can handle the
11489 # drive letters (cygwin fileutils understands them), so leave them,
11490 # especially as we might pass files found there to a mingw objdump,
11491 # which wouldn't understand a cygwinified path. Ahh.
11492 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11494 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11498 # pw32 DLLs use 'pw' prefix rather than 'lib'
11499 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11505 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11508 dynamic_linker='Win32 ld.exe'
11509 # FIXME: first we should search . and the directory the executable is in
11513 darwin* | rhapsody*)
11514 dynamic_linker="$host_os dyld"
11515 version_type=darwin
11518 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11519 soname_spec='${libname}${release}${major}$shared_ext'
11520 shlibpath_overrides_runpath=yes
11521 shlibpath_var=DYLD_LIBRARY_PATH
11522 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11524 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11525 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11533 soname_spec='${libname}${release}${shared_ext}$major'
11534 shlibpath_var=LD_LIBRARY_PATH
11541 freebsd* | dragonfly*)
11542 # DragonFly does not have aout. When/if they implement a new
11543 # versioning mechanism, adjust this.
11544 if test -x /usr/bin/objformat; then
11545 objformat=`/usr/bin/objformat`
11548 freebsd[123]*) objformat=aout ;;
11549 *) objformat=elf ;;
11552 version_type=freebsd-$objformat
11553 case $version_type in
11555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11564 shlibpath_var=LD_LIBRARY_PATH
11567 shlibpath_overrides_runpath=yes
11569 freebsd3.[01]* | freebsdelf3.[01]*)
11570 shlibpath_overrides_runpath=yes
11571 hardcode_into_libs=yes
11573 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11574 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11575 shlibpath_overrides_runpath=no
11576 hardcode_into_libs=yes
11578 *) # from 4.6 on, and DragonFly
11579 shlibpath_overrides_runpath=yes
11580 hardcode_into_libs=yes
11589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11590 soname_spec='${libname}${release}${shared_ext}$major'
11591 shlibpath_var=LD_LIBRARY_PATH
11592 hardcode_into_libs=yes
11595 hpux9* | hpux10* | hpux11*)
11596 # Give a soname corresponding to the major version so that dld.sl refuses to
11597 # link against other versions.
11604 hardcode_into_libs=yes
11605 dynamic_linker="$host_os dld.so"
11606 shlibpath_var=LD_LIBRARY_PATH
11607 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
11611 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11613 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11615 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11619 hardcode_into_libs=yes
11620 dynamic_linker="$host_os dld.sl"
11621 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11622 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11624 soname_spec='${libname}${release}${shared_ext}$major'
11625 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11630 dynamic_linker="$host_os dld.sl"
11631 shlibpath_var=SHLIB_PATH
11632 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634 soname_spec='${libname}${release}${shared_ext}$major'
11637 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11638 postinstall_cmds='chmod 555 $lib'
11645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11646 soname_spec='${libname}${release}${shared_ext}$major'
11647 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11648 shlibpath_var=LD_LIBRARY_PATH
11649 shlibpath_overrides_runpath=no
11650 hardcode_into_libs=yes
11653 irix5* | irix6* | nonstopux*)
11655 nonstopux*) version_type=nonstopux ;;
11657 if test "$lt_cv_prog_gnu_ld" = yes; then
11665 soname_spec='${libname}${release}${shared_ext}$major'
11666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11668 irix5* | nonstopux*)
11669 libsuff= shlibsuff=
11672 case $LD in # libtool.m4 will add one of these switches to LD
11673 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11674 libsuff= shlibsuff= libmagic=32-bit;;
11675 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11676 libsuff=32 shlibsuff=N32 libmagic=N32;;
11677 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11678 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11679 *) libsuff= shlibsuff= libmagic=never-match;;
11683 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11684 shlibpath_overrides_runpath=no
11685 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11686 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11687 hardcode_into_libs=yes
11690 # No shared lib support for Linux oldld, aout, or coff.
11691 linux*oldld* | linux*aout* | linux*coff*)
11695 # This must be Linux ELF.
11696 linux* | k*bsd*-gnu)
11700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11701 soname_spec='${libname}${release}${shared_ext}$major'
11702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11703 shlibpath_var=LD_LIBRARY_PATH
11704 shlibpath_overrides_runpath=no
11705 # Some binutils ld are patched to set DT_RUNPATH
11706 save_LDFLAGS=$LDFLAGS
11707 save_libdir=$libdir
11708 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11709 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h. */
11721 if ac_fn_c_try_link "$LINENO"; then :
11722 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11723 shlibpath_overrides_runpath=yes
11726 rm -f core conftest.err conftest.$ac_objext \
11727 conftest$ac_exeext conftest.$ac_ext
11728 LDFLAGS=$save_LDFLAGS
11729 libdir=$save_libdir
11731 # This implies no fast_install, which is unacceptable.
11732 # Some rework will be needed to allow for fast_install
11733 # before this can be enabled.
11734 hardcode_into_libs=yes
11736 # Append ld.so.conf contents to the search path
11737 if test -f /etc/ld.so.conf; then
11738 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' ' '`
11739 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11742 # We used to test for /lib/ld.so.1 and disable shared libraries on
11743 # powerpc, because MkLinux only supported shared libraries with the
11744 # GNU dynamic linker. Since this was broken with cross compilers,
11745 # most powerpc-linux boxes support dynamic linking these days and
11746 # people can always --disable-shared, the test was removed, and we
11747 # assume the GNU/Linux dynamic linker is in use.
11748 dynamic_linker='GNU/Linux ld.so'
11755 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11758 dynamic_linker='NetBSD (a.out) ld.so'
11760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11761 soname_spec='${libname}${release}${shared_ext}$major'
11762 dynamic_linker='NetBSD ld.elf_so'
11764 shlibpath_var=LD_LIBRARY_PATH
11765 shlibpath_overrides_runpath=yes
11766 hardcode_into_libs=yes
11771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11772 shlibpath_var=LD_LIBRARY_PATH
11773 shlibpath_overrides_runpath=yes
11780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11781 soname_spec='${libname}${release}${shared_ext}$major'
11782 shlibpath_var=LD_LIBRARY_PATH
11783 shlibpath_overrides_runpath=no
11784 hardcode_into_libs=yes
11785 dynamic_linker='ldqnx.so'
11790 sys_lib_dlsearch_path_spec="/usr/lib"
11792 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11794 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11795 *) need_version=no ;;
11797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11799 shlibpath_var=LD_LIBRARY_PATH
11800 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11802 openbsd2.[89] | openbsd2.[89].*)
11803 shlibpath_overrides_runpath=no
11806 shlibpath_overrides_runpath=yes
11810 shlibpath_overrides_runpath=yes
11815 libname_spec='$name'
11818 library_names_spec='$libname${shared_ext} $libname.a'
11819 dynamic_linker='OS/2 ld.exe'
11820 shlibpath_var=LIBPATH
11823 osf3* | osf4* | osf5*)
11827 soname_spec='${libname}${release}${shared_ext}$major'
11828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11829 shlibpath_var=LD_LIBRARY_PATH
11830 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11831 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11843 soname_spec='${libname}${release}${shared_ext}$major'
11844 shlibpath_var=LD_LIBRARY_PATH
11845 shlibpath_overrides_runpath=yes
11846 hardcode_into_libs=yes
11847 # ldd complains unless libraries are executable
11848 postinstall_cmds='chmod +x $lib'
11853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11854 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11855 shlibpath_var=LD_LIBRARY_PATH
11856 shlibpath_overrides_runpath=yes
11857 if test "$with_gnu_ld" = yes; then
11865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11866 soname_spec='${libname}${release}${shared_ext}$major'
11867 shlibpath_var=LD_LIBRARY_PATH
11868 case $host_vendor in
11870 shlibpath_overrides_runpath=no
11872 runpath_var=LD_RUN_PATH
11880 shlibpath_overrides_runpath=no
11881 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11887 if test -d /usr/nec ;then
11889 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11890 soname_spec='$libname${shared_ext}.$major'
11891 shlibpath_var=LD_LIBRARY_PATH
11895 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11896 version_type=freebsd-elf
11899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11900 soname_spec='${libname}${release}${shared_ext}$major'
11901 shlibpath_var=LD_LIBRARY_PATH
11902 shlibpath_overrides_runpath=yes
11903 hardcode_into_libs=yes
11904 if test "$with_gnu_ld" = yes; then
11905 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11907 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11910 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11914 sys_lib_dlsearch_path_spec='/usr/lib'
11918 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11923 shlibpath_var=LD_LIBRARY_PATH
11924 shlibpath_overrides_runpath=no
11925 hardcode_into_libs=yes
11930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11931 soname_spec='${libname}${release}${shared_ext}$major'
11932 shlibpath_var=LD_LIBRARY_PATH
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11940 $as_echo "$dynamic_linker" >&6; }
11941 test "$dynamic_linker" = no && can_build_shared=no
11943 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11944 if test "$GCC" = yes; then
11945 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11948 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11949 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11951 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11952 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12042 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12044 if test -n "$hardcode_libdir_flag_spec" ||
12045 test -n "$runpath_var" ||
12046 test "X$hardcode_automatic" = "Xyes" ; then
12048 # We can hardcode non-existent directories.
12049 if test "$hardcode_direct" != no &&
12050 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12051 # have to relink, otherwise we might link with an installed library
12052 # when we should be linking with a yet-to-be-installed one
12053 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12054 test "$hardcode_minus_L" != no; then
12055 # Linking always hardcodes the temporary library directory.
12056 hardcode_action=relink
12058 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12059 hardcode_action=immediate
12062 # We cannot hardcode anything, or else we can only hardcode existing
12064 hardcode_action=unsupported
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12067 $as_echo "$hardcode_action" >&6; }
12069 if test "$hardcode_action" = relink ||
12070 test "$inherit_rpath" = yes; then
12071 # Fast installation is not supported
12072 enable_fast_install=no
12073 elif test "$shlibpath_overrides_runpath" = yes ||
12074 test "$enable_shared" = no; then
12075 # Fast installation is not necessary
12076 enable_fast_install=needless
12084 if test "x$enable_dlopen" != xyes; then
12085 enable_dlopen=unknown
12086 enable_dlopen_self=unknown
12087 enable_dlopen_self_static=unknown
12094 lt_cv_dlopen="load_add_on"
12096 lt_cv_dlopen_self=yes
12099 mingw* | pw32* | cegcc*)
12100 lt_cv_dlopen="LoadLibrary"
12105 lt_cv_dlopen="dlopen"
12110 # if libdl is installed we need to link against it
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12112 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12113 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12114 $as_echo_n "(cached) " >&6
12116 ac_check_lib_save_LIBS=$LIBS
12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119 /* end confdefs.h. */
12121 /* Override any GCC internal prototype to avoid an error.
12122 Use char because int might match the return type of a GCC
12123 builtin and then its argument prototype would still apply. */
12136 if ac_fn_c_try_link "$LINENO"; then :
12137 ac_cv_lib_dl_dlopen=yes
12139 ac_cv_lib_dl_dlopen=no
12141 rm -f core conftest.err conftest.$ac_objext \
12142 conftest$ac_exeext conftest.$ac_ext
12143 LIBS=$ac_check_lib_save_LIBS
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12146 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12147 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12148 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12151 lt_cv_dlopen="dyld"
12153 lt_cv_dlopen_self=yes
12160 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12161 if test "x$ac_cv_func_shl_load" = x""yes; then :
12162 lt_cv_dlopen="shl_load"
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12165 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12166 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12167 $as_echo_n "(cached) " >&6
12169 ac_check_lib_save_LIBS=$LIBS
12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172 /* end confdefs.h. */
12174 /* Override any GCC internal prototype to avoid an error.
12175 Use char because int might match the return type of a GCC
12176 builtin and then its argument prototype would still apply. */
12184 return shl_load ();
12189 if ac_fn_c_try_link "$LINENO"; then :
12190 ac_cv_lib_dld_shl_load=yes
12192 ac_cv_lib_dld_shl_load=no
12194 rm -f core conftest.err conftest.$ac_objext \
12195 conftest$ac_exeext conftest.$ac_ext
12196 LIBS=$ac_check_lib_save_LIBS
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12199 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12200 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12201 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12203 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12204 if test "x$ac_cv_func_dlopen" = x""yes; then :
12205 lt_cv_dlopen="dlopen"
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12208 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12209 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12210 $as_echo_n "(cached) " >&6
12212 ac_check_lib_save_LIBS=$LIBS
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h. */
12217 /* Override any GCC internal prototype to avoid an error.
12218 Use char because int might match the return type of a GCC
12219 builtin and then its argument prototype would still apply. */
12232 if ac_fn_c_try_link "$LINENO"; then :
12233 ac_cv_lib_dl_dlopen=yes
12235 ac_cv_lib_dl_dlopen=no
12237 rm -f core conftest.err conftest.$ac_objext \
12238 conftest$ac_exeext conftest.$ac_ext
12239 LIBS=$ac_check_lib_save_LIBS
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12242 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12243 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12244 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12247 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12248 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12249 $as_echo_n "(cached) " >&6
12251 ac_check_lib_save_LIBS=$LIBS
12252 LIBS="-lsvld $LIBS"
12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12256 /* Override any GCC internal prototype to avoid an error.
12257 Use char because int might match the return type of a GCC
12258 builtin and then its argument prototype would still apply. */
12271 if ac_fn_c_try_link "$LINENO"; then :
12272 ac_cv_lib_svld_dlopen=yes
12274 ac_cv_lib_svld_dlopen=no
12276 rm -f core conftest.err conftest.$ac_objext \
12277 conftest$ac_exeext conftest.$ac_ext
12278 LIBS=$ac_check_lib_save_LIBS
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12281 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12282 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12283 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12286 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12287 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12288 $as_echo_n "(cached) " >&6
12290 ac_check_lib_save_LIBS=$LIBS
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h. */
12295 /* Override any GCC internal prototype to avoid an error.
12296 Use char because int might match the return type of a GCC
12297 builtin and then its argument prototype would still apply. */
12305 return dld_link ();
12310 if ac_fn_c_try_link "$LINENO"; then :
12311 ac_cv_lib_dld_dld_link=yes
12313 ac_cv_lib_dld_dld_link=no
12315 rm -f core conftest.err conftest.$ac_objext \
12316 conftest$ac_exeext conftest.$ac_ext
12317 LIBS=$ac_check_lib_save_LIBS
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12320 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12321 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12322 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12343 if test "x$lt_cv_dlopen" != xno; then
12349 case $lt_cv_dlopen in
12351 save_CPPFLAGS="$CPPFLAGS"
12352 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12354 save_LDFLAGS="$LDFLAGS"
12355 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12358 LIBS="$lt_cv_dlopen_libs $LIBS"
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12361 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12362 if test "${lt_cv_dlopen_self+set}" = set; then :
12363 $as_echo_n "(cached) " >&6
12365 if test "$cross_compiling" = yes; then :
12366 lt_cv_dlopen_self=cross
12368 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12369 lt_status=$lt_dlunknown
12370 cat > conftest.$ac_ext <<_LT_EOF
12371 #line 12371 "configure"
12372 #include "confdefs.h"
12381 # define LT_DLGLOBAL RTLD_GLOBAL
12384 # define LT_DLGLOBAL DL_GLOBAL
12386 # define LT_DLGLOBAL 0
12390 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12391 find out it does not work in some platform. */
12392 #ifndef LT_DLLAZY_OR_NOW
12394 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12397 # define LT_DLLAZY_OR_NOW DL_LAZY
12400 # define LT_DLLAZY_OR_NOW RTLD_NOW
12403 # define LT_DLLAZY_OR_NOW DL_NOW
12405 # define LT_DLLAZY_OR_NOW 0
12412 void fnord() { int i=42;}
12415 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12416 int status = $lt_dlunknown;
12420 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12421 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12422 /* dlclose (self); */
12430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12431 (eval $ac_link) 2>&5
12433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12434 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12435 (./conftest; exit; ) >&5 2>/dev/null
12437 case x$lt_status in
12438 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12439 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12440 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12443 # compilation failed
12444 lt_cv_dlopen_self=no
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12452 $as_echo "$lt_cv_dlopen_self" >&6; }
12454 if test "x$lt_cv_dlopen_self" = xyes; then
12455 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12457 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12458 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12459 $as_echo_n "(cached) " >&6
12461 if test "$cross_compiling" = yes; then :
12462 lt_cv_dlopen_self_static=cross
12464 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12465 lt_status=$lt_dlunknown
12466 cat > conftest.$ac_ext <<_LT_EOF
12467 #line 12467 "configure"
12468 #include "confdefs.h"
12477 # define LT_DLGLOBAL RTLD_GLOBAL
12480 # define LT_DLGLOBAL DL_GLOBAL
12482 # define LT_DLGLOBAL 0
12486 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12487 find out it does not work in some platform. */
12488 #ifndef LT_DLLAZY_OR_NOW
12490 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12493 # define LT_DLLAZY_OR_NOW DL_LAZY
12496 # define LT_DLLAZY_OR_NOW RTLD_NOW
12499 # define LT_DLLAZY_OR_NOW DL_NOW
12501 # define LT_DLLAZY_OR_NOW 0
12508 void fnord() { int i=42;}
12511 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12512 int status = $lt_dlunknown;
12516 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12517 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12518 /* dlclose (self); */
12526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12527 (eval $ac_link) 2>&5
12529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12530 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12531 (./conftest; exit; ) >&5 2>/dev/null
12533 case x$lt_status in
12534 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12535 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12536 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12539 # compilation failed
12540 lt_cv_dlopen_self_static=no
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12548 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12551 CPPFLAGS="$save_CPPFLAGS"
12552 LDFLAGS="$save_LDFLAGS"
12557 case $lt_cv_dlopen_self in
12558 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12559 *) enable_dlopen_self=unknown ;;
12562 case $lt_cv_dlopen_self_static in
12563 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12564 *) enable_dlopen_self_static=unknown ;;
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12587 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12588 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12589 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12590 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12592 $as_echo "yes" >&6; }
12594 # FIXME - insert some real tests, host_os isn't really good enough
12597 if test -n "$STRIP" ; then
12598 striplib="$STRIP -x"
12599 old_striplib="$STRIP -S"
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12601 $as_echo "yes" >&6; }
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604 $as_echo "no" >&6; }
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12609 $as_echo "no" >&6; }
12625 # Report which library types will actually be built
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12627 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12629 $as_echo "$can_build_shared" >&6; }
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12632 $as_echo_n "checking whether to build shared libraries... " >&6; }
12633 test "$can_build_shared" = "no" && enable_shared=no
12635 # On AIX, shared libraries and static libraries use the same namespace, and
12636 # are all built from PIC.
12639 test "$enable_shared" = yes && enable_static=no
12640 if test -n "$RANLIB"; then
12641 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12642 postinstall_cmds='$RANLIB $lib'
12647 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12648 test "$enable_shared" = yes && enable_static=no
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12653 $as_echo "$enable_shared" >&6; }
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12656 $as_echo_n "checking whether to build static libraries... " >&6; }
12657 # Make sure either enable_shared or enable_static is yes.
12658 test "$enable_shared" = yes || enable_static=yes
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12660 $as_echo "$enable_static" >&6; }
12667 ac_cpp='$CPP $CPPFLAGS'
12668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12676 ac_cpp='$CXXCPP $CPPFLAGS'
12677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12681 archive_cmds_need_lc_CXX=no
12682 allow_undefined_flag_CXX=
12683 always_export_symbols_CXX=no
12684 archive_expsym_cmds_CXX=
12685 compiler_needs_object_CXX=no
12686 export_dynamic_flag_spec_CXX=
12687 hardcode_direct_CXX=no
12688 hardcode_direct_absolute_CXX=no
12689 hardcode_libdir_flag_spec_CXX=
12690 hardcode_libdir_flag_spec_ld_CXX=
12691 hardcode_libdir_separator_CXX=
12692 hardcode_minus_L_CXX=no
12693 hardcode_shlibpath_var_CXX=unsupported
12694 hardcode_automatic_CXX=no
12695 inherit_rpath_CXX=no
12697 module_expsym_cmds_CXX=
12698 link_all_deplibs_CXX=unknown
12699 old_archive_cmds_CXX=$old_archive_cmds
12700 no_undefined_flag_CXX=
12701 whole_archive_flag_spec_CXX=
12702 enable_shared_with_static_runtimes_CXX=no
12704 # Source file extension for C++ test sources.
12707 # Object file extension for compiled C++ test sources.
12711 # No sense in running all these tests if we already determined that
12712 # the CXX compiler isn't working. Some variables (like enable_shared)
12713 # are currently assumed to apply to all compilers on this platform,
12714 # and will be corrupted by setting them based on a non-working compiler.
12715 if test "$_lt_caught_CXX_error" != yes; then
12716 # Code to be used in simple compile tests
12717 lt_simple_compile_test_code="int some_variable = 0;"
12719 # Code to be used in simple link tests
12720 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12722 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12729 # If no C compiler was specified, use CC.
12732 # If no C compiler flags were specified, use CFLAGS.
12733 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12735 # Allow CC to be a program name with arguments.
12739 # save warnings/boilerplate of simple test code
12740 ac_outfile=conftest.$ac_objext
12741 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12742 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12743 _lt_compiler_boilerplate=`cat conftest.err`
12746 ac_outfile=conftest.$ac_objext
12747 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12748 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12749 _lt_linker_boilerplate=`cat conftest.err`
12753 # Allow CC to be a program name with arguments.
12758 lt_save_with_gnu_ld=$with_gnu_ld
12759 lt_save_path_LD=$lt_cv_path_LD
12760 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12761 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12763 $as_unset lt_cv_prog_gnu_ld
12765 if test -n "${lt_cv_path_LDCXX+set}"; then
12766 lt_cv_path_LD=$lt_cv_path_LDCXX
12768 $as_unset lt_cv_path_LD
12770 test -z "${LDCXX+set}" || LD=$LDCXX
12774 for cc_temp in $compiler""; do
12776 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12777 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12782 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12785 if test -n "$compiler"; then
12786 # We don't want -fno-exception when compiling C++ code, so set the
12787 # no_builtin_flag separately
12788 if test "$GXX" = yes; then
12789 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12791 lt_prog_compiler_no_builtin_flag_CXX=
12794 if test "$GXX" = yes; then
12795 # Set up default GNU C++ configuration
12799 # Check whether --with-gnu-ld was given.
12800 if test "${with_gnu_ld+set}" = set; then :
12801 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12807 if test "$GCC" = yes; then
12808 # Check if gcc -print-prog-name=ld gives a path.
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12810 $as_echo_n "checking for ld used by $CC... " >&6; }
12813 # gcc leaves a trailing carriage return which upsets mingw
12814 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12816 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12819 # Accept absolute paths.
12821 re_direlt='/[^/][^/]*/\.\./'
12822 # Canonicalize the pathname of ld
12823 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12824 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12825 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12827 test -z "$LD" && LD="$ac_prog"
12830 # If it fails, then pretend we aren't using GCC.
12834 # If it is relative, then search for the first ld in PATH.
12835 with_gnu_ld=unknown
12838 elif test "$with_gnu_ld" = yes; then
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12840 $as_echo_n "checking for GNU ld... " >&6; }
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12843 $as_echo_n "checking for non-GNU ld... " >&6; }
12845 if test "${lt_cv_path_LD+set}" = set; then :
12846 $as_echo_n "(cached) " >&6
12848 if test -z "$LD"; then
12849 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12850 for ac_dir in $PATH; do
12852 test -z "$ac_dir" && ac_dir=.
12853 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12854 lt_cv_path_LD="$ac_dir/$ac_prog"
12855 # Check to see if the program is GNU ld. I'd rather use --version,
12856 # but apparently some variants of GNU ld only accept -v.
12857 # Break only if it was the GNU/non-GNU ld that we prefer.
12858 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12859 *GNU* | *'with BFD'*)
12860 test "$with_gnu_ld" != no && break
12863 test "$with_gnu_ld" != yes && break
12870 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12874 LD="$lt_cv_path_LD"
12875 if test -n "$LD"; then
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12877 $as_echo "$LD" >&6; }
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12880 $as_echo "no" >&6; }
12882 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12884 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12885 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12886 $as_echo_n "(cached) " >&6
12888 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12889 case `$LD -v 2>&1 </dev/null` in
12890 *GNU* | *'with BFD'*)
12891 lt_cv_prog_gnu_ld=yes
12894 lt_cv_prog_gnu_ld=no
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12899 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12900 with_gnu_ld=$lt_cv_prog_gnu_ld
12908 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12909 # archiving commands below assume that GNU ld is being used.
12910 if test "$with_gnu_ld" = yes; then
12911 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12912 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'
12914 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12915 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12917 # If archive_cmds runs LD, not CC, wlarc should be empty
12918 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12919 # investigate it a little bit more. (MM)
12922 # ancient GNU ld didn't support --whole-archive et. al.
12923 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12924 $GREP 'no-whole-archive' > /dev/null; then
12925 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12927 whole_archive_flag_spec_CXX=
12933 # A generic and very simple default shared library creation
12934 # command for GNU C++ for the case where it uses the native
12935 # linker, instead of GNU ld. If possible, this setting should
12936 # overridden to take advantage of the native linker features on
12937 # the platform it is being used on.
12938 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12941 # Commands to make compiler produce verbose output that lists
12942 # what "hidden" libraries, object files and flags are used when
12943 # linking a shared library.
12944 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12952 # PORTME: fill in a description of your system's C++ link characteristics
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12954 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12958 # FIXME: insert proper C++ library support
12962 if test "$host_cpu" = ia64; then
12963 # On IA64, the linker does run time linking by default, so we don't
12964 # have to do anything special.
12965 aix_use_runtimelinking=no
12966 exp_sym_flag='-Bexport'
12969 aix_use_runtimelinking=no
12971 # Test if we are trying to use run time linking or normal
12972 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12973 # need to do runtime linking.
12974 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12975 for ld_flag in $LDFLAGS; do
12978 aix_use_runtimelinking=yes
12986 exp_sym_flag='-bexport'
12987 no_entry_flag='-bnoentry'
12990 # When large executables or shared objects are built, AIX ld can
12991 # have problems creating the table of contents. If linking a library
12992 # or program results in "error TOC overflow" add -mminimal-toc to
12993 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12994 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12996 archive_cmds_CXX=''
12997 hardcode_direct_CXX=yes
12998 hardcode_direct_absolute_CXX=yes
12999 hardcode_libdir_separator_CXX=':'
13000 link_all_deplibs_CXX=yes
13001 file_list_spec_CXX='${wl}-f,'
13003 if test "$GXX" = yes; then
13004 case $host_os in aix4.[012]|aix4.[012].*)
13005 # We only want to do this on AIX 4.2 and lower, the check
13006 # below for broken collect2 doesn't work under 4.3+
13007 collect2name=`${CC} -print-prog-name=collect2`
13008 if test -f "$collect2name" &&
13009 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13011 # We have reworked collect2
13014 # We have old collect2
13015 hardcode_direct_CXX=unsupported
13016 # It fails to find uninstalled libraries when the uninstalled
13017 # path is not listed in the libpath. Setting hardcode_minus_L
13018 # to unsupported forces relinking
13019 hardcode_minus_L_CXX=yes
13020 hardcode_libdir_flag_spec_CXX='-L$libdir'
13021 hardcode_libdir_separator_CXX=
13024 shared_flag='-shared'
13025 if test "$aix_use_runtimelinking" = yes; then
13026 shared_flag="$shared_flag "'${wl}-G'
13030 if test "$host_cpu" = ia64; then
13031 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13032 # chokes on -Wl,-G. The following line is correct:
13035 if test "$aix_use_runtimelinking" = yes; then
13036 shared_flag='${wl}-G'
13038 shared_flag='${wl}-bM:SRE'
13043 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13044 # It seems that -bexpall does not export symbols beginning with
13045 # underscore (_), so it is better to generate a list of symbols to
13047 always_export_symbols_CXX=yes
13048 if test "$aix_use_runtimelinking" = yes; then
13049 # Warning - without using the other runtime loading flags (-brtl),
13050 # -berok will link without error, but may produce a broken library.
13051 allow_undefined_flag_CXX='-berok'
13052 # Determine the default libpath from the value encoded in an empty
13054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h. */
13065 if ac_fn_cxx_try_link "$LINENO"; then :
13067 lt_aix_libpath_sed='
13068 /Import File Strings/,/^$/ {
13074 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13075 # Check for a 64-bit object if we didn't find anything.
13076 if test -z "$aix_libpath"; then
13077 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13080 rm -f core conftest.err conftest.$ac_objext \
13081 conftest$ac_exeext conftest.$ac_ext
13082 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13084 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13086 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"
13088 if test "$host_cpu" = ia64; then
13089 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13090 allow_undefined_flag_CXX="-z nodefs"
13091 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"
13093 # Determine the default libpath from the value encoded in an
13094 # empty executable.
13095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096 /* end confdefs.h. */
13106 if ac_fn_cxx_try_link "$LINENO"; then :
13108 lt_aix_libpath_sed='
13109 /Import File Strings/,/^$/ {
13115 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13116 # Check for a 64-bit object if we didn't find anything.
13117 if test -z "$aix_libpath"; then
13118 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13121 rm -f core conftest.err conftest.$ac_objext \
13122 conftest$ac_exeext conftest.$ac_ext
13123 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13125 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13126 # Warning - without using the other run time loading flags,
13127 # -berok will link without error, but may produce a broken library.
13128 no_undefined_flag_CXX=' ${wl}-bernotok'
13129 allow_undefined_flag_CXX=' ${wl}-berok'
13130 # Exported symbols can be pulled into shared objects from archives
13131 whole_archive_flag_spec_CXX='$convenience'
13132 archive_cmds_need_lc_CXX=yes
13133 # This is similar to how AIX traditionally builds its shared
13135 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'
13141 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13142 allow_undefined_flag_CXX=unsupported
13143 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13144 # support --undefined. This deserves some investigation. FIXME
13145 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13152 case $cc_basename in
13154 # FIXME: insert proper C++ library support
13160 cygwin* | mingw* | pw32* | cegcc*)
13161 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13162 # as there is no search path for DLLs.
13163 hardcode_libdir_flag_spec_CXX='-L$libdir'
13164 allow_undefined_flag_CXX=unsupported
13165 always_export_symbols_CXX=no
13166 enable_shared_with_static_runtimes_CXX=yes
13168 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13169 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'
13170 # If the export-symbols file already is a .def file (1st line
13171 # is EXPORTS), use it as is; otherwise, prepend...
13172 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13173 cp $export_symbols $output_objdir/$soname.def;
13175 echo EXPORTS > $output_objdir/$soname.def;
13176 cat $export_symbols >> $output_objdir/$soname.def;
13178 $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'
13183 darwin* | rhapsody*)
13186 archive_cmds_need_lc_CXX=no
13187 hardcode_direct_CXX=no
13188 hardcode_automatic_CXX=yes
13189 hardcode_shlibpath_var_CXX=unsupported
13190 whole_archive_flag_spec_CXX=''
13191 link_all_deplibs_CXX=yes
13192 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13193 case $cc_basename in
13194 ifort*) _lt_dar_can_shared=yes ;;
13195 *) _lt_dar_can_shared=$GCC ;;
13197 if test "$_lt_dar_can_shared" = "yes"; then
13198 output_verbose_link_cmd=echo
13199 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}"
13200 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13201 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}"
13202 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}"
13203 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13204 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}"
13205 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}"
13215 case $cc_basename in
13217 # FIXME: insert proper C++ library support
13221 # Green Hills C++ Compiler
13222 # FIXME: insert proper C++ library support
13226 # FIXME: insert proper C++ library support
13233 # C++ shared libraries reported to be fairly broken before
13239 archive_cmds_need_lc_CXX=no
13242 freebsd* | dragonfly*)
13243 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13252 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13253 hardcode_libdir_separator_CXX=:
13254 export_dynamic_flag_spec_CXX='${wl}-E'
13255 hardcode_direct_CXX=yes
13256 hardcode_minus_L_CXX=yes # Not in the search PATH,
13257 # but as the default
13258 # location of the library.
13260 case $cc_basename in
13262 # FIXME: insert proper C++ library support
13266 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'
13267 # Commands to make compiler produce verbose output that lists
13268 # what "hidden" libraries, object files and flags are used when
13269 # linking a shared library.
13271 # There doesn't appear to be a way to prevent this compiler from
13272 # explicitly linking system object files so we need to strip them
13273 # from the output so that they don't get included in the library
13275 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'
13278 if test "$GXX" = yes; then
13279 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'
13281 # FIXME: insert proper C++ library support
13289 if test $with_gnu_ld = no; then
13290 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13291 hardcode_libdir_separator_CXX=:
13297 export_dynamic_flag_spec_CXX='${wl}-E'
13303 hardcode_direct_CXX=no
13304 hardcode_shlibpath_var_CXX=no
13307 hardcode_direct_CXX=yes
13308 hardcode_direct_absolute_CXX=yes
13309 hardcode_minus_L_CXX=yes # Not in the search PATH,
13310 # but as the default
13311 # location of the library.
13315 case $cc_basename in
13317 # FIXME: insert proper C++ library support
13323 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13326 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13329 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13332 # Commands to make compiler produce verbose output that lists
13333 # what "hidden" libraries, object files and flags are used when
13334 # linking a shared library.
13336 # There doesn't appear to be a way to prevent this compiler from
13337 # explicitly linking system object files so we need to strip them
13338 # from the output so that they don't get included in the library
13340 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'
13343 if test "$GXX" = yes; then
13344 if test $with_gnu_ld = no; then
13347 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13350 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13353 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'
13358 # FIXME: insert proper C++ library support
13366 hardcode_direct_CXX=no
13367 hardcode_shlibpath_var_CXX=no
13368 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13369 export_dynamic_flag_spec_CXX='${wl}-E'
13370 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13371 # Instead, shared libraries are loaded at an image base (0x10000000 by
13372 # default) and relocated if they conflict, which is a slow very memory
13373 # consuming and fragmenting process. To avoid this, we pick a random,
13374 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13375 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13376 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'
13377 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'
13380 case $cc_basename in
13383 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'
13385 # Archives containing C++ object files must be created using
13386 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13387 # necessary to make sure instantiated templates are included
13389 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13392 if test "$GXX" = yes; then
13393 if test "$with_gnu_ld" = no; then
13394 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'
13396 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'
13399 link_all_deplibs_CXX=yes
13402 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13403 hardcode_libdir_separator_CXX=:
13404 inherit_rpath_CXX=yes
13407 linux* | k*bsd*-gnu)
13408 case $cc_basename in
13410 # Kuck and Associates, Inc. (KAI) C++ Compiler
13412 # KCC will only create a shared library if the output file
13413 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13414 # to its proper name (with version) after linking.
13415 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'
13416 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'
13417 # Commands to make compiler produce verbose output that lists
13418 # what "hidden" libraries, object files and flags are used when
13419 # linking a shared library.
13421 # There doesn't appear to be a way to prevent this compiler from
13422 # explicitly linking system object files so we need to strip them
13423 # from the output so that they don't get included in the library
13425 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'
13427 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13428 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13430 # Archives containing C++ object files must be created using
13431 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13432 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13437 # version 8.0 and above of icpc choke on multiply defined symbols
13438 # if we add $predep_objects and $postdep_objects, however 7.1 and
13439 # earlier do not add the objects themselves.
13440 case `$CC -V 2>&1` in
13442 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13443 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'
13445 *) # Version 8.0 or newer
13448 ia64*) tmp_idyn=' -i_dynamic';;
13450 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13451 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'
13454 archive_cmds_need_lc_CXX=no
13455 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13456 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13457 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13460 # Portland Group C++ compiler
13462 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13463 prelink_cmds_CXX='tpldir=Template.dir~
13465 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13466 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13467 old_archive_cmds_CXX='tpldir=Template.dir~
13469 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13470 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13472 archive_cmds_CXX='tpldir=Template.dir~
13474 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13475 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13476 archive_expsym_cmds_CXX='tpldir=Template.dir~
13478 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13479 $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'
13481 *) # Version 6 will use weak symbols
13482 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13483 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'
13487 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13488 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13489 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'
13493 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13494 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'
13496 runpath_var=LD_RUN_PATH
13497 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13498 hardcode_libdir_separator_CXX=:
13500 # Commands to make compiler produce verbose output that lists
13501 # what "hidden" libraries, object files and flags are used when
13502 # linking a shared library.
13504 # There doesn't appear to be a way to prevent this compiler from
13505 # explicitly linking system object files so we need to strip them
13506 # from the output so that they don't get included in the library
13508 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'
13511 # IBM XL 8.0 on PPC, with GNU ld
13512 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13513 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13514 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13515 if test "x$supports_anon_versioning" = xyes; then
13516 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13517 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13518 echo "local: *; };" >> $output_objdir/$libname.ver~
13519 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13523 case `$CC -V 2>&1 | sed 5q` in
13526 no_undefined_flag_CXX=' -zdefs'
13527 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13528 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'
13529 hardcode_libdir_flag_spec_CXX='-R$libdir'
13530 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'
13531 compiler_needs_object_CXX=yes
13533 # Not sure whether something based on
13534 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13536 output_verbose_link_cmd='echo'
13538 # Archives containing C++ object files must be created using
13539 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13540 # necessary to make sure instantiated templates are included
13542 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13550 # FIXME: insert proper C++ library support
13555 # FIXME: insert proper C++ library support
13560 case $cc_basename in
13562 # FIXME: insert proper C++ library support
13566 # FIXME: insert proper C++ library support
13573 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13574 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13576 hardcode_libdir_flag_spec_CXX='-R$libdir'
13577 hardcode_direct_CXX=yes
13578 hardcode_shlibpath_var_CXX=no
13580 # Workaround some broken pre-1.5 toolchains
13581 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13589 # C++ shared libraries are fairly broken
13594 if test -f /usr/libexec/ld.so; then
13595 hardcode_direct_CXX=yes
13596 hardcode_shlibpath_var_CXX=no
13597 hardcode_direct_absolute_CXX=yes
13598 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13599 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13600 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13601 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13602 export_dynamic_flag_spec_CXX='${wl}-E'
13603 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13605 output_verbose_link_cmd=echo
13611 osf3* | osf4* | osf5*)
13612 case $cc_basename in
13614 # Kuck and Associates, Inc. (KAI) C++ Compiler
13616 # KCC will only create a shared library if the output file
13617 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13618 # to its proper name (with version) after linking.
13619 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'
13621 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13622 hardcode_libdir_separator_CXX=:
13624 # Archives containing C++ object files must be created using
13625 # the KAI C++ compiler.
13627 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13628 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13632 # Rational C++ 2.4.1
13633 # FIXME: insert proper C++ library support
13639 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13640 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'
13641 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13644 allow_undefined_flag_CXX=' -expect_unresolved \*'
13645 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'
13646 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13647 echo "-hidden">> $lib.exp~
13648 $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~
13650 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13654 hardcode_libdir_separator_CXX=:
13656 # Commands to make compiler produce verbose output that lists
13657 # what "hidden" libraries, object files and flags are used when
13658 # linking a shared library.
13660 # There doesn't appear to be a way to prevent this compiler from
13661 # explicitly linking system object files so we need to strip them
13662 # from the output so that they don't get included in the library
13664 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'
13667 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13668 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13671 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'
13674 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'
13678 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13679 hardcode_libdir_separator_CXX=:
13681 # Commands to make compiler produce verbose output that lists
13682 # what "hidden" libraries, object files and flags are used when
13683 # linking a shared library.
13684 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13687 # FIXME: insert proper C++ library support
13695 # FIXME: insert proper C++ library support
13700 case $cc_basename in
13703 # FIXME: insert proper C++ library support
13708 # FIXME: insert proper C++ library support
13712 # FIXME: insert proper C++ library support
13719 case $cc_basename in
13721 # Sun C++ 4.2, 5.x and Centerline C++
13722 archive_cmds_need_lc_CXX=yes
13723 no_undefined_flag_CXX=' -zdefs'
13724 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13725 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13726 $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'
13728 hardcode_libdir_flag_spec_CXX='-R$libdir'
13729 hardcode_shlibpath_var_CXX=no
13731 solaris2.[0-5] | solaris2.[0-5].*) ;;
13733 # The compiler driver will combine and reorder linker options,
13734 # but understands `-z linker_flag'.
13735 # Supported since Solaris 2.6 (maybe 2.5.1?)
13736 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13739 link_all_deplibs_CXX=yes
13741 output_verbose_link_cmd='echo'
13743 # Archives containing C++ object files must be created using
13744 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13745 # necessary to make sure instantiated templates are included
13747 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13750 # Green Hills C++ Compiler
13751 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13753 # The C++ compiler must be used to create the archive.
13754 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13757 # GNU C++ compiler with Solaris linker
13758 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13759 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13760 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13761 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13762 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13763 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13765 # Commands to make compiler produce verbose output that lists
13766 # what "hidden" libraries, object files and flags are used when
13767 # linking a shared library.
13768 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13770 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13772 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13773 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13774 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13776 # Commands to make compiler produce verbose output that lists
13777 # what "hidden" libraries, object files and flags are used when
13778 # linking a shared library.
13779 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13782 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13784 solaris2.[0-5] | solaris2.[0-5].*) ;;
13786 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13794 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13795 no_undefined_flag_CXX='${wl}-z,text'
13796 archive_cmds_need_lc_CXX=no
13797 hardcode_shlibpath_var_CXX=no
13798 runpath_var='LD_RUN_PATH'
13800 case $cc_basename in
13802 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13803 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13806 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13807 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13812 sysv5* | sco3.2v5* | sco5v6*)
13813 # Note: We can NOT use -z defs as we might desire, because we do not
13814 # link with -lc, and that would cause any symbols used from libc to
13815 # always be unresolved, which means just about no library would
13816 # ever link correctly. If we're not using GNU ld we use -z text
13817 # though, which does catch some bad symbols but isn't as heavy-handed
13819 no_undefined_flag_CXX='${wl}-z,text'
13820 allow_undefined_flag_CXX='${wl}-z,nodefs'
13821 archive_cmds_need_lc_CXX=no
13822 hardcode_shlibpath_var_CXX=no
13823 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13824 hardcode_libdir_separator_CXX=':'
13825 link_all_deplibs_CXX=yes
13826 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13827 runpath_var='LD_RUN_PATH'
13829 case $cc_basename in
13831 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13832 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13835 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13836 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13842 case $cc_basename in
13844 # NonStop-UX NCC 3.20
13845 # FIXME: insert proper C++ library support
13849 # FIXME: insert proper C++ library support
13856 # FIXME: insert proper C++ library support
13861 # FIXME: insert proper C++ library support
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13867 $as_echo "$ld_shlibs_CXX" >&6; }
13868 test "$ld_shlibs_CXX" = no && can_build_shared=no
13874 ## There is no encapsulation within the following macros, do not change
13875 ## the running order or otherwise move them around unless you know exactly
13876 ## what you are doing...
13877 # Dependencies to place before and after the object being linked:
13878 predep_objects_CXX=
13879 postdep_objects_CXX=
13882 compiler_lib_search_path_CXX=
13884 cat > conftest.$ac_ext <<_LT_EOF
13888 Foo (void) { a = 0; }
13894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13895 (eval $ac_compile) 2>&5
13897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13898 test $ac_status = 0; }; then
13899 # Parse the compiler output and extract the necessary
13900 # objects, libraries and library flags.
13902 # Sentinel used to keep track of whether or not we are before
13903 # the conftest object file.
13904 pre_test_object_deps_done=no
13906 for p in `eval "$output_verbose_link_cmd"`; do
13910 # Some compilers place space between "-{L,R}" and the path.
13911 # Remove the space.
13912 if test $p = "-L" ||
13913 test $p = "-R"; then
13920 if test "$pre_test_object_deps_done" = no; then
13923 # Internal compiler library paths should come after those
13924 # provided the user. The postdeps already come after the
13925 # user supplied libs so there is no need to process them.
13926 if test -z "$compiler_lib_search_path_CXX"; then
13927 compiler_lib_search_path_CXX="${prev}${p}"
13929 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13932 # The "-l" case would never come before the object being
13933 # linked, so don't bother handling this case.
13936 if test -z "$postdeps_CXX"; then
13937 postdeps_CXX="${prev}${p}"
13939 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13945 # This assumes that the test object file only shows up
13946 # once in the compiler output.
13947 if test "$p" = "conftest.$objext"; then
13948 pre_test_object_deps_done=yes
13952 if test "$pre_test_object_deps_done" = no; then
13953 if test -z "$predep_objects_CXX"; then
13954 predep_objects_CXX="$p"
13956 predep_objects_CXX="$predep_objects_CXX $p"
13959 if test -z "$postdep_objects_CXX"; then
13960 postdep_objects_CXX="$p"
13962 postdep_objects_CXX="$postdep_objects_CXX $p"
13967 *) ;; # Ignore the rest.
13975 echo "libtool.m4: error: problem compiling CXX test program"
13978 $RM -f confest.$objext
13980 # PORTME: override above test on systems where it is broken
13983 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13984 # hack all around it, let's just trust "g++" to DTRT.
13985 predep_objects_CXX=
13986 postdep_objects_CXX=
13991 case `$CC -V 2>&1 | sed 5q` in
13995 # The more standards-conforming stlport4 library is
13996 # incompatible with the Cstd library. Avoid specifying
13997 # it if it's in CXXFLAGS. Ignore libCrun as
13998 # -library=stlport4 depends on it.
13999 case " $CXX $CXXFLAGS " in
14000 *" -library=stlport4 "*)
14001 solaris_use_stlport4=yes
14005 if test "$solaris_use_stlport4" != yes; then
14006 postdeps_CXX='-library=Cstd -library=Crun'
14013 case $cc_basename in
14015 # The more standards-conforming stlport4 library is
14016 # incompatible with the Cstd library. Avoid specifying
14017 # it if it's in CXXFLAGS. Ignore libCrun as
14018 # -library=stlport4 depends on it.
14019 case " $CXX $CXXFLAGS " in
14020 *" -library=stlport4 "*)
14021 solaris_use_stlport4=yes
14025 # Adding this requires a known-good setup of shared libraries for
14026 # Sun compiler versions before 5.6, else PIC objects from an old
14027 # archive will be linked into the output, leading to subtle bugs.
14028 if test "$solaris_use_stlport4" != yes; then
14029 postdeps_CXX='-library=Cstd -library=Crun'
14037 case " $postdeps_CXX " in
14038 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14040 compiler_lib_search_dirs_CXX=
14041 if test -n "${compiler_lib_search_path_CXX}"; then
14042 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14075 lt_prog_compiler_wl_CXX=
14076 lt_prog_compiler_pic_CXX=
14077 lt_prog_compiler_static_CXX=
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14080 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14082 # C++ specific cases for pic, static, wl, etc.
14083 if test "$GXX" = yes; then
14084 lt_prog_compiler_wl_CXX='-Wl,'
14085 lt_prog_compiler_static_CXX='-static'
14089 # All AIX code is PIC.
14090 if test "$host_cpu" = ia64; then
14091 # AIX 5 now supports IA64 processor
14092 lt_prog_compiler_static_CXX='-Bstatic'
14099 # see comment about AmigaOS4 .so support
14100 lt_prog_compiler_pic_CXX='-fPIC'
14103 # FIXME: we need at least 68020 code to build shared libraries, but
14104 # adding the `-m68020' flag to GCC prevents building anything better,
14106 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14111 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14112 # PIC is the default for these OSes.
14114 mingw* | cygwin* | os2* | pw32* | cegcc*)
14115 # This hack is so that the source file can tell whether it is being
14116 # built for inclusion in a dll (and should export symbols for example).
14117 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14118 # (--disable-auto-import) libraries
14119 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14121 darwin* | rhapsody*)
14122 # PIC is the default on this platform
14123 # Common symbols not allowed in MH_DYLIB files
14124 lt_prog_compiler_pic_CXX='-fno-common'
14127 # DJGPP does not support shared libraries at all
14128 lt_prog_compiler_pic_CXX=
14131 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14132 # Instead, we relocate shared libraries at runtime.
14135 if test -d /usr/nec; then
14136 lt_prog_compiler_pic_CXX=-Kconform_pic
14140 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14141 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14142 # sets the default TLS model and affects inlining.
14147 lt_prog_compiler_pic_CXX='-fPIC'
14152 # QNX uses GNU C++, but need to define -shared option too, otherwise
14153 # it will coredump.
14154 lt_prog_compiler_pic_CXX='-fPIC -shared'
14157 lt_prog_compiler_pic_CXX='-fPIC'
14163 # All AIX code is PIC.
14164 if test "$host_cpu" = ia64; then
14165 # AIX 5 now supports IA64 processor
14166 lt_prog_compiler_static_CXX='-Bstatic'
14168 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14172 case $cc_basename in
14174 # Green Hills C++ Compiler
14175 # _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"
14180 case $cc_basename in
14182 lt_prog_compiler_pic_CXX='-KPIC'
14185 # Green Hills C++ Compiler
14186 lt_prog_compiler_pic_CXX='-pic'
14192 freebsd* | dragonfly*)
14193 # FreeBSD uses GNU C++
14195 hpux9* | hpux10* | hpux11*)
14196 case $cc_basename in
14198 lt_prog_compiler_wl_CXX='-Wl,'
14199 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14200 if test "$host_cpu" != ia64; then
14201 lt_prog_compiler_pic_CXX='+Z'
14205 lt_prog_compiler_wl_CXX='-Wl,'
14206 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14212 lt_prog_compiler_pic_CXX='+Z'
14221 # This is c89, which is MS Visual C++ (no shared libs)
14222 # Anyone wants to do a port?
14224 irix5* | irix6* | nonstopux*)
14225 case $cc_basename in
14227 lt_prog_compiler_wl_CXX='-Wl,'
14228 lt_prog_compiler_static_CXX='-non_shared'
14229 # CC pic flag -KPIC is the default.
14235 linux* | k*bsd*-gnu)
14236 case $cc_basename in
14239 lt_prog_compiler_wl_CXX='--backend -Wl,'
14240 lt_prog_compiler_pic_CXX='-fPIC'
14243 # old Intel C++ for x86_64 which still supported -KPIC.
14244 lt_prog_compiler_wl_CXX='-Wl,'
14245 lt_prog_compiler_pic_CXX='-KPIC'
14246 lt_prog_compiler_static_CXX='-static'
14249 # Intel C++, used to be incompatible with GCC.
14250 # ICC 10 doesn't accept -KPIC any more.
14251 lt_prog_compiler_wl_CXX='-Wl,'
14252 lt_prog_compiler_pic_CXX='-fPIC'
14253 lt_prog_compiler_static_CXX='-static'
14256 # Portland Group C++ compiler
14257 lt_prog_compiler_wl_CXX='-Wl,'
14258 lt_prog_compiler_pic_CXX='-fpic'
14259 lt_prog_compiler_static_CXX='-Bstatic'
14263 # Make sure the PIC flag is empty. It appears that all Alpha
14264 # Linux and Compaq Tru64 Unix objects are PIC.
14265 lt_prog_compiler_pic_CXX=
14266 lt_prog_compiler_static_CXX='-non_shared'
14269 # IBM XL 8.0 on PPC
14270 lt_prog_compiler_wl_CXX='-Wl,'
14271 lt_prog_compiler_pic_CXX='-qpic'
14272 lt_prog_compiler_static_CXX='-qstaticlink'
14275 case `$CC -V 2>&1 | sed 5q` in
14278 lt_prog_compiler_pic_CXX='-KPIC'
14279 lt_prog_compiler_static_CXX='-Bstatic'
14280 lt_prog_compiler_wl_CXX='-Qoption ld '
14291 case $cc_basename in
14293 lt_prog_compiler_pic_CXX='-W c,exportall'
14302 # QNX uses GNU C++, but need to define -shared option too, otherwise
14303 # it will coredump.
14304 lt_prog_compiler_pic_CXX='-fPIC -shared'
14306 osf3* | osf4* | osf5*)
14307 case $cc_basename in
14309 lt_prog_compiler_wl_CXX='--backend -Wl,'
14312 # Rational C++ 2.4.1
14313 lt_prog_compiler_pic_CXX='-pic'
14316 # Digital/Compaq C++
14317 lt_prog_compiler_wl_CXX='-Wl,'
14318 # Make sure the PIC flag is empty. It appears that all Alpha
14319 # Linux and Compaq Tru64 Unix objects are PIC.
14320 lt_prog_compiler_pic_CXX=
14321 lt_prog_compiler_static_CXX='-non_shared'
14330 case $cc_basename in
14332 # Sun C++ 4.2, 5.x and Centerline C++
14333 lt_prog_compiler_pic_CXX='-KPIC'
14334 lt_prog_compiler_static_CXX='-Bstatic'
14335 lt_prog_compiler_wl_CXX='-Qoption ld '
14338 # Green Hills C++ Compiler
14339 lt_prog_compiler_pic_CXX='-PIC'
14346 case $cc_basename in
14349 lt_prog_compiler_pic_CXX='-pic'
14350 lt_prog_compiler_static_CXX='-Bstatic'
14354 lt_prog_compiler_pic_CXX='-pic'
14360 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14361 case $cc_basename in
14363 lt_prog_compiler_wl_CXX='-Wl,'
14364 lt_prog_compiler_pic_CXX='-KPIC'
14365 lt_prog_compiler_static_CXX='-Bstatic'
14370 case $cc_basename in
14372 # NonStop-UX NCC 3.20
14373 lt_prog_compiler_pic_CXX='-KPIC'
14382 lt_prog_compiler_can_build_shared_CXX=no
14388 # For platforms which do not support PIC, -DPIC is meaningless:
14390 lt_prog_compiler_pic_CXX=
14393 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14397 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14402 # Check to make sure the PIC flag actually works.
14404 if test -n "$lt_prog_compiler_pic_CXX"; then
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14406 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14407 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14408 $as_echo_n "(cached) " >&6
14410 lt_cv_prog_compiler_pic_works_CXX=no
14411 ac_outfile=conftest.$ac_objext
14412 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14413 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14414 # Insert the option either (1) after the last *FLAGS variable, or
14415 # (2) before a word containing "conftest.", or (3) at the end.
14416 # Note that $ac_compile itself does not contain backslashes and begins
14417 # with a dollar sign (not a hyphen), so the echo should work correctly.
14418 # The option is referenced via a variable to avoid confusing sed.
14419 lt_compile=`echo "$ac_compile" | $SED \
14420 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14421 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14422 -e 's:$: $lt_compiler_flag:'`
14423 (eval echo "\"\$as_me:14423: $lt_compile\"" >&5)
14424 (eval "$lt_compile" 2>conftest.err)
14426 cat conftest.err >&5
14427 echo "$as_me:14427: \$? = $ac_status" >&5
14428 if (exit $ac_status) && test -s "$ac_outfile"; then
14429 # The compiler can only warn and ignore the option if not recognized
14430 # So say no if there are warnings other than the usual output.
14431 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14432 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14433 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14434 lt_cv_prog_compiler_pic_works_CXX=yes
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14441 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14443 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14444 case $lt_prog_compiler_pic_CXX in
14446 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14449 lt_prog_compiler_pic_CXX=
14450 lt_prog_compiler_can_build_shared_CXX=no
14458 # Check to make sure the static flag actually works.
14460 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14462 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14463 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14464 $as_echo_n "(cached) " >&6
14466 lt_cv_prog_compiler_static_works_CXX=no
14467 save_LDFLAGS="$LDFLAGS"
14468 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14469 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14470 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14471 # The linker can only warn and ignore the option if not recognized
14472 # So say no if there are warnings
14473 if test -s conftest.err; then
14474 # Append any errors to the config.log.
14475 cat conftest.err 1>&5
14476 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14478 if diff conftest.exp conftest.er2 >/dev/null; then
14479 lt_cv_prog_compiler_static_works_CXX=yes
14482 lt_cv_prog_compiler_static_works_CXX=yes
14486 LDFLAGS="$save_LDFLAGS"
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14490 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14492 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14495 lt_prog_compiler_static_CXX=
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14502 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14503 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14504 $as_echo_n "(cached) " >&6
14506 lt_cv_prog_compiler_c_o_CXX=no
14507 $RM -r conftest 2>/dev/null
14511 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14513 lt_compiler_flag="-o out/conftest2.$ac_objext"
14514 # Insert the option either (1) after the last *FLAGS variable, or
14515 # (2) before a word containing "conftest.", or (3) at the end.
14516 # Note that $ac_compile itself does not contain backslashes and begins
14517 # with a dollar sign (not a hyphen), so the echo should work correctly.
14518 lt_compile=`echo "$ac_compile" | $SED \
14519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14521 -e 's:$: $lt_compiler_flag:'`
14522 (eval echo "\"\$as_me:14522: $lt_compile\"" >&5)
14523 (eval "$lt_compile" 2>out/conftest.err)
14525 cat out/conftest.err >&5
14526 echo "$as_me:14526: \$? = $ac_status" >&5
14527 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14529 # The compiler can only warn and ignore the option if not recognized
14530 # So say no if there are warnings
14531 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14532 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14533 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14534 lt_cv_prog_compiler_c_o_CXX=yes
14539 # SGI C++ compiler will create directory out/ii_files/ for
14540 # template instantiation
14541 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14542 $RM out/* && rmdir out
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14549 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14554 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14555 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14556 $as_echo_n "(cached) " >&6
14558 lt_cv_prog_compiler_c_o_CXX=no
14559 $RM -r conftest 2>/dev/null
14563 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14565 lt_compiler_flag="-o out/conftest2.$ac_objext"
14566 # Insert the option either (1) after the last *FLAGS variable, or
14567 # (2) before a word containing "conftest.", or (3) at the end.
14568 # Note that $ac_compile itself does not contain backslashes and begins
14569 # with a dollar sign (not a hyphen), so the echo should work correctly.
14570 lt_compile=`echo "$ac_compile" | $SED \
14571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14573 -e 's:$: $lt_compiler_flag:'`
14574 (eval echo "\"\$as_me:14574: $lt_compile\"" >&5)
14575 (eval "$lt_compile" 2>out/conftest.err)
14577 cat out/conftest.err >&5
14578 echo "$as_me:14578: \$? = $ac_status" >&5
14579 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14581 # The compiler can only warn and ignore the option if not recognized
14582 # So say no if there are warnings
14583 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14584 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14585 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14586 lt_cv_prog_compiler_c_o_CXX=yes
14591 # SGI C++ compiler will create directory out/ii_files/ for
14592 # template instantiation
14593 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14594 $RM out/* && rmdir out
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14601 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14606 hard_links="nottested"
14607 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14608 # do not overwrite the value of need_locks provided by the user
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14610 $as_echo_n "checking if we can lock with hard links... " >&6; }
14613 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14615 ln conftest.a conftest.b 2>&5 || hard_links=no
14616 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14618 $as_echo "$hard_links" >&6; }
14619 if test "$hard_links" = no; then
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14621 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14631 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14633 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14636 # If we're using GNU nm, then we don't want the "-C" option.
14637 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14638 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14639 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'
14641 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'
14645 export_symbols_cmds_CXX="$ltdll_cmds"
14647 cygwin* | mingw* | cegcc*)
14648 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'
14651 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14654 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14657 $as_echo "$ld_shlibs_CXX" >&6; }
14658 test "$ld_shlibs_CXX" = no && can_build_shared=no
14660 with_gnu_ld_CXX=$with_gnu_ld
14668 # Do we need to explicitly link libc?
14670 case "x$archive_cmds_need_lc_CXX" in
14672 # Assume -lc should be added
14673 archive_cmds_need_lc_CXX=yes
14675 if test "$enable_shared" = yes && test "$GCC" = yes; then
14676 case $archive_cmds_CXX in
14678 # FIXME: we may have to deal with multi-command sequences.
14681 # Test whether the compiler implicitly links with -lc since on some
14682 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14683 # to ld, don't add -lc before -lgcc.
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14685 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14690 (eval $ac_compile) 2>&5
14692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14693 test $ac_status = 0; } 2>conftest.err; then
14696 libobjs=conftest.$ac_objext
14698 wl=$lt_prog_compiler_wl_CXX
14699 pic_flag=$lt_prog_compiler_pic_CXX
14705 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14706 allow_undefined_flag_CXX=
14707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14708 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14711 test $ac_status = 0; }
14713 archive_cmds_need_lc_CXX=no
14715 archive_cmds_need_lc_CXX=yes
14717 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14719 cat conftest.err 1>&5
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14723 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14794 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14796 library_names_spec=
14797 libname_spec='lib$name'
14801 postuninstall_cmds=
14805 shlibpath_overrides_runpath=unknown
14807 dynamic_linker="$host_os ld.so"
14808 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14809 need_lib_prefix=unknown
14810 hardcode_into_libs=no
14812 # when you set need_version to no, make sure it does not cause -set_version
14813 # flags to be left without arguments
14814 need_version=unknown
14819 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14820 shlibpath_var=LIBPATH
14822 # AIX 3 has no versioning support, so we append a major version to the name.
14823 soname_spec='${libname}${release}${shared_ext}$major'
14830 hardcode_into_libs=yes
14831 if test "$host_cpu" = ia64; then
14832 # AIX 5 supports IA64
14833 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14834 shlibpath_var=LD_LIBRARY_PATH
14836 # With GCC up to 2.95.x, collect2 would create an import file
14837 # for dependence libraries. The import file would start with
14838 # the line `#! .'. This would cause the generated library to
14839 # depend on `.', always an invalid library. This was fixed in
14840 # development snapshots of GCC prior to 3.0.
14842 aix4 | aix4.[01] | aix4.[01].*)
14843 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14845 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14848 can_build_shared=no
14852 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14853 # soname into executable. Probably we can add versioning support to
14854 # collect2, so additional links can be useful in future.
14855 if test "$aix_use_runtimelinking" = yes; then
14856 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14857 # instead of lib<name>.a to let people know that these are not
14858 # typical AIX shared libraries.
14859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14861 # We preserve .a as extension for shared libraries through AIX4.2
14862 # and later when we are not doing run time linking.
14863 library_names_spec='${libname}${release}.a $libname.a'
14864 soname_spec='${libname}${release}${shared_ext}$major'
14866 shlibpath_var=LIBPATH
14873 # Since July 2007 AmigaOS4 officially supports .so libraries.
14874 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14878 library_names_spec='$libname.ixlibrary $libname.a'
14879 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14880 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'
14886 library_names_spec='${libname}${shared_ext}'
14887 dynamic_linker="$host_os ld.so"
14888 shlibpath_var=LIBRARY_PATH
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14895 soname_spec='${libname}${release}${shared_ext}$major'
14896 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14897 shlibpath_var=LD_LIBRARY_PATH
14898 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14899 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14900 # the default ld.so.conf also contains /usr/contrib/lib and
14901 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14902 # libtool to hard-code these into programs
14905 cygwin* | mingw* | pw32* | cegcc*)
14906 version_type=windows
14911 case $GCC,$host_os in
14912 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14913 library_names_spec='$libname.dll.a'
14914 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14915 postinstall_cmds='base_file=`basename \${file}`~
14916 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14917 dldir=$destdir/`dirname \$dlpath`~
14918 test -d \$dldir || mkdir -p \$dldir~
14919 $install_prog $dir/$dlname \$dldir/$dlname~
14920 chmod a+x \$dldir/$dlname~
14921 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14922 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14924 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14925 dlpath=$dir/\$dldll~
14927 shlibpath_overrides_runpath=yes
14931 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14932 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14933 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14936 # MinGW DLLs use traditional 'lib' prefix
14937 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14938 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14939 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14940 # It is most probably a Windows format PATH printed by
14941 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14942 # path with ; separators, and with drive letters. We can handle the
14943 # drive letters (cygwin fileutils understands them), so leave them,
14944 # especially as we might pass files found there to a mingw objdump,
14945 # which wouldn't understand a cygwinified path. Ahh.
14946 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14948 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14952 # pw32 DLLs use 'pw' prefix rather than 'lib'
14953 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14959 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14962 dynamic_linker='Win32 ld.exe'
14963 # FIXME: first we should search . and the directory the executable is in
14967 darwin* | rhapsody*)
14968 dynamic_linker="$host_os dyld"
14969 version_type=darwin
14972 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14973 soname_spec='${libname}${release}${major}$shared_ext'
14974 shlibpath_overrides_runpath=yes
14975 shlibpath_var=DYLD_LIBRARY_PATH
14976 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14978 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14986 soname_spec='${libname}${release}${shared_ext}$major'
14987 shlibpath_var=LD_LIBRARY_PATH
14994 freebsd* | dragonfly*)
14995 # DragonFly does not have aout. When/if they implement a new
14996 # versioning mechanism, adjust this.
14997 if test -x /usr/bin/objformat; then
14998 objformat=`/usr/bin/objformat`
15001 freebsd[123]*) objformat=aout ;;
15002 *) objformat=elf ;;
15005 version_type=freebsd-$objformat
15006 case $version_type in
15008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15013 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15017 shlibpath_var=LD_LIBRARY_PATH
15020 shlibpath_overrides_runpath=yes
15022 freebsd3.[01]* | freebsdelf3.[01]*)
15023 shlibpath_overrides_runpath=yes
15024 hardcode_into_libs=yes
15026 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15027 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15028 shlibpath_overrides_runpath=no
15029 hardcode_into_libs=yes
15031 *) # from 4.6 on, and DragonFly
15032 shlibpath_overrides_runpath=yes
15033 hardcode_into_libs=yes
15042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15043 soname_spec='${libname}${release}${shared_ext}$major'
15044 shlibpath_var=LD_LIBRARY_PATH
15045 hardcode_into_libs=yes
15048 hpux9* | hpux10* | hpux11*)
15049 # Give a soname corresponding to the major version so that dld.sl refuses to
15050 # link against other versions.
15057 hardcode_into_libs=yes
15058 dynamic_linker="$host_os dld.so"
15059 shlibpath_var=LD_LIBRARY_PATH
15060 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
15064 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15066 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15068 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15072 hardcode_into_libs=yes
15073 dynamic_linker="$host_os dld.sl"
15074 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15075 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15077 soname_spec='${libname}${release}${shared_ext}$major'
15078 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15079 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15083 dynamic_linker="$host_os dld.sl"
15084 shlibpath_var=SHLIB_PATH
15085 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15087 soname_spec='${libname}${release}${shared_ext}$major'
15090 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15091 postinstall_cmds='chmod 555 $lib'
15098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15099 soname_spec='${libname}${release}${shared_ext}$major'
15100 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15101 shlibpath_var=LD_LIBRARY_PATH
15102 shlibpath_overrides_runpath=no
15103 hardcode_into_libs=yes
15106 irix5* | irix6* | nonstopux*)
15108 nonstopux*) version_type=nonstopux ;;
15110 if test "$lt_cv_prog_gnu_ld" = yes; then
15118 soname_spec='${libname}${release}${shared_ext}$major'
15119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15121 irix5* | nonstopux*)
15122 libsuff= shlibsuff=
15125 case $LD in # libtool.m4 will add one of these switches to LD
15126 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15127 libsuff= shlibsuff= libmagic=32-bit;;
15128 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15129 libsuff=32 shlibsuff=N32 libmagic=N32;;
15130 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15131 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15132 *) libsuff= shlibsuff= libmagic=never-match;;
15136 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15137 shlibpath_overrides_runpath=no
15138 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15139 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15140 hardcode_into_libs=yes
15143 # No shared lib support for Linux oldld, aout, or coff.
15144 linux*oldld* | linux*aout* | linux*coff*)
15148 # This must be Linux ELF.
15149 linux* | k*bsd*-gnu)
15153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15154 soname_spec='${libname}${release}${shared_ext}$major'
15155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15156 shlibpath_var=LD_LIBRARY_PATH
15157 shlibpath_overrides_runpath=no
15158 # Some binutils ld are patched to set DT_RUNPATH
15159 save_LDFLAGS=$LDFLAGS
15160 save_libdir=$libdir
15161 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15162 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15164 /* end confdefs.h. */
15174 if ac_fn_cxx_try_link "$LINENO"; then :
15175 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15176 shlibpath_overrides_runpath=yes
15179 rm -f core conftest.err conftest.$ac_objext \
15180 conftest$ac_exeext conftest.$ac_ext
15181 LDFLAGS=$save_LDFLAGS
15182 libdir=$save_libdir
15184 # This implies no fast_install, which is unacceptable.
15185 # Some rework will be needed to allow for fast_install
15186 # before this can be enabled.
15187 hardcode_into_libs=yes
15189 # Append ld.so.conf contents to the search path
15190 if test -f /etc/ld.so.conf; then
15191 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' ' '`
15192 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15195 # We used to test for /lib/ld.so.1 and disable shared libraries on
15196 # powerpc, because MkLinux only supported shared libraries with the
15197 # GNU dynamic linker. Since this was broken with cross compilers,
15198 # most powerpc-linux boxes support dynamic linking these days and
15199 # people can always --disable-shared, the test was removed, and we
15200 # assume the GNU/Linux dynamic linker is in use.
15201 dynamic_linker='GNU/Linux ld.so'
15208 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15211 dynamic_linker='NetBSD (a.out) ld.so'
15213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15214 soname_spec='${libname}${release}${shared_ext}$major'
15215 dynamic_linker='NetBSD ld.elf_so'
15217 shlibpath_var=LD_LIBRARY_PATH
15218 shlibpath_overrides_runpath=yes
15219 hardcode_into_libs=yes
15224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15225 shlibpath_var=LD_LIBRARY_PATH
15226 shlibpath_overrides_runpath=yes
15233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15234 soname_spec='${libname}${release}${shared_ext}$major'
15235 shlibpath_var=LD_LIBRARY_PATH
15236 shlibpath_overrides_runpath=no
15237 hardcode_into_libs=yes
15238 dynamic_linker='ldqnx.so'
15243 sys_lib_dlsearch_path_spec="/usr/lib"
15245 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15247 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15248 *) need_version=no ;;
15250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15252 shlibpath_var=LD_LIBRARY_PATH
15253 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15255 openbsd2.[89] | openbsd2.[89].*)
15256 shlibpath_overrides_runpath=no
15259 shlibpath_overrides_runpath=yes
15263 shlibpath_overrides_runpath=yes
15268 libname_spec='$name'
15271 library_names_spec='$libname${shared_ext} $libname.a'
15272 dynamic_linker='OS/2 ld.exe'
15273 shlibpath_var=LIBPATH
15276 osf3* | osf4* | osf5*)
15280 soname_spec='${libname}${release}${shared_ext}$major'
15281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15282 shlibpath_var=LD_LIBRARY_PATH
15283 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15284 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15296 soname_spec='${libname}${release}${shared_ext}$major'
15297 shlibpath_var=LD_LIBRARY_PATH
15298 shlibpath_overrides_runpath=yes
15299 hardcode_into_libs=yes
15300 # ldd complains unless libraries are executable
15301 postinstall_cmds='chmod +x $lib'
15306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15307 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15308 shlibpath_var=LD_LIBRARY_PATH
15309 shlibpath_overrides_runpath=yes
15310 if test "$with_gnu_ld" = yes; then
15318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15319 soname_spec='${libname}${release}${shared_ext}$major'
15320 shlibpath_var=LD_LIBRARY_PATH
15321 case $host_vendor in
15323 shlibpath_overrides_runpath=no
15325 runpath_var=LD_RUN_PATH
15333 shlibpath_overrides_runpath=no
15334 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15340 if test -d /usr/nec ;then
15342 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15343 soname_spec='$libname${shared_ext}.$major'
15344 shlibpath_var=LD_LIBRARY_PATH
15348 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15349 version_type=freebsd-elf
15352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15353 soname_spec='${libname}${release}${shared_ext}$major'
15354 shlibpath_var=LD_LIBRARY_PATH
15355 shlibpath_overrides_runpath=yes
15356 hardcode_into_libs=yes
15357 if test "$with_gnu_ld" = yes; then
15358 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15360 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15363 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15367 sys_lib_dlsearch_path_spec='/usr/lib'
15371 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15376 shlibpath_var=LD_LIBRARY_PATH
15377 shlibpath_overrides_runpath=no
15378 hardcode_into_libs=yes
15383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15384 soname_spec='${libname}${release}${shared_ext}$major'
15385 shlibpath_var=LD_LIBRARY_PATH
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15393 $as_echo "$dynamic_linker" >&6; }
15394 test "$dynamic_linker" = no && can_build_shared=no
15396 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15397 if test "$GCC" = yes; then
15398 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15401 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15402 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15404 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15405 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15444 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15445 hardcode_action_CXX=
15446 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15447 test -n "$runpath_var_CXX" ||
15448 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15450 # We can hardcode non-existent directories.
15451 if test "$hardcode_direct_CXX" != no &&
15452 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15453 # have to relink, otherwise we might link with an installed library
15454 # when we should be linking with a yet-to-be-installed one
15455 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15456 test "$hardcode_minus_L_CXX" != no; then
15457 # Linking always hardcodes the temporary library directory.
15458 hardcode_action_CXX=relink
15460 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15461 hardcode_action_CXX=immediate
15464 # We cannot hardcode anything, or else we can only hardcode existing
15466 hardcode_action_CXX=unsupported
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15469 $as_echo "$hardcode_action_CXX" >&6; }
15471 if test "$hardcode_action_CXX" = relink ||
15472 test "$inherit_rpath_CXX" = yes; then
15473 # Fast installation is not supported
15474 enable_fast_install=no
15475 elif test "$shlibpath_overrides_runpath" = yes ||
15476 test "$enable_shared" = no; then
15477 # Fast installation is not necessary
15478 enable_fast_install=needless
15487 fi # test -n "$compiler"
15493 with_gnu_ld=$lt_save_with_gnu_ld
15494 lt_cv_path_LDCXX=$lt_cv_path_LD
15495 lt_cv_path_LD=$lt_save_path_LD
15496 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15497 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15498 fi # test "$_lt_caught_CXX_error" != yes
15501 ac_cpp='$CPP $CPPFLAGS'
15502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15518 ac_config_commands="$ac_config_commands libtool"
15523 # Only expand once:
15528 if test x$use_libtool != xno; then
15529 DEFAULT_OBJECT_TYPE=".lo"
15530 DEFAULT_ARCHIVE_TYPE=".la"
15531 DEFAULT_SHARED_OBJECT_TYPE=".la"
15532 LIBTOOL="\$(LIBTOOL)"
15533 LIBTOOL_INSTALL_TARGET="libtool-install"
15534 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15535 LIBTOOL_CLEAN_TARGET="libtool-clean"
15536 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15537 FD_PLUGIN_DIR="src/plugins/fd"
15540 DEFAULT_OBJECT_TYPE=".o"
15541 DEFAULT_ARCHIVE_TYPE=".a"
15542 DEFAULT_SHARED_OBJECT_TYPE=".so"
15543 LIBTOOL="# \$(LIBTOOL)"
15544 LIBTOOL_INSTALL_TARGET=""
15545 LIBTOOL_UNINSTALL_TARGET=""
15546 LIBTOOL_CLEAN_TARGET=""
15547 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15562 # Check whether --enable-includes was given.
15563 if test "${enable_includes+set}" = set; then :
15564 enableval=$enable_includes;
15565 if test x$enableval = xyes; then
15566 install_includes=yes
15574 if test x$use_libtool != xno -a x$install_includes = xyes; then
15575 INCLUDE_INSTALL_TARGET="install-includes"
15576 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15578 INCLUDE_INSTALL_TARGET=""
15579 INCLUDE_UNINSTALL_TARGET=""
15587 *cygwin* ) CYGWIN=yes;;
15591 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15597 HAVE_SUN_OS_FALSE='#'
15599 HAVE_SUN_OS_TRUE='#'
15602 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15609 HAVE_SUN_OS_FALSE='#'
15611 HAVE_SUN_OS_TRUE='#'
15616 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15622 HAVE_OSF1_OS_FALSE='#'
15624 HAVE_OSF1_OS_TRUE='#'
15625 HAVE_OSF1_OS_FALSE=
15627 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15634 HAVE_OSF1_OS_FALSE='#'
15636 HAVE_OSF1_OS_TRUE='#'
15637 HAVE_OSF1_OS_FALSE=
15641 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15647 HAVE_AIX_OS_FALSE='#'
15649 HAVE_AIX_OS_TRUE='#'
15652 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15659 HAVE_AIX_OS_FALSE='#'
15661 HAVE_AIX_OS_TRUE='#'
15666 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15672 HAVE_HPUX_OS_FALSE='#'
15674 HAVE_HPUX_OS_TRUE='#'
15675 HAVE_HPUX_OS_FALSE=
15677 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15684 HAVE_HPUX_OS_FALSE='#'
15686 HAVE_HPUX_OS_TRUE='#'
15687 HAVE_HPUX_OS_FALSE=
15691 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15696 HAVE_LINUX_OS_TRUE=
15697 HAVE_LINUX_OS_FALSE='#'
15699 HAVE_LINUX_OS_TRUE='#'
15700 HAVE_LINUX_OS_FALSE=
15702 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15708 HAVE_LINUX_OS_TRUE=
15709 HAVE_LINUX_OS_FALSE='#'
15711 HAVE_LINUX_OS_TRUE='#'
15712 HAVE_LINUX_OS_FALSE=
15716 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15721 HAVE_FREEBSD_OS_TRUE=
15722 HAVE_FREEBSD_OS_FALSE='#'
15724 HAVE_FREEBSD_OS_TRUE='#'
15725 HAVE_FREEBSD_OS_FALSE=
15727 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15733 HAVE_FREEBSD_OS_TRUE=
15734 HAVE_FREEBSD_OS_FALSE='#'
15736 HAVE_FREEBSD_OS_TRUE='#'
15737 HAVE_FREEBSD_OS_FALSE=
15741 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15746 HAVE_NETBSD_OS_TRUE=
15747 HAVE_NETBSD_OS_FALSE='#'
15749 HAVE_NETBSD_OS_TRUE='#'
15750 HAVE_NETBSD_OS_FALSE=
15752 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15758 HAVE_NETBSD_OS_TRUE=
15759 HAVE_NETBSD_OS_FALSE='#'
15761 HAVE_NETBSD_OS_TRUE='#'
15762 HAVE_NETBSD_OS_FALSE=
15766 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15771 HAVE_OPENBSD_OS_TRUE=
15772 HAVE_OPENBSD_OS_FALSE='#'
15774 HAVE_OPENBSD_OS_TRUE='#'
15775 HAVE_OPENBSD_OS_FALSE=
15777 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15783 HAVE_OPENBSD_OS_TRUE=
15784 HAVE_OPENBSD_OS_FALSE='#'
15786 HAVE_OPENBSD_OS_TRUE='#'
15787 HAVE_OPENBSD_OS_FALSE=
15791 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15797 HAVE_BSDI_OS_FALSE='#'
15799 HAVE_BSDI_OS_TRUE='#'
15800 HAVE_BSDI_OS_FALSE=
15802 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15809 HAVE_BSDI_OS_FALSE='#'
15811 HAVE_BSDI_OS_TRUE='#'
15812 HAVE_BSDI_OS_FALSE=
15816 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15822 HAVE_SGI_OS_FALSE='#'
15824 HAVE_SGI_OS_TRUE='#'
15827 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15834 HAVE_SGI_OS_FALSE='#'
15836 HAVE_SGI_OS_TRUE='#'
15841 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15847 HAVE_IRIX_OS_FALSE='#'
15849 HAVE_IRIX_OS_TRUE='#'
15850 HAVE_IRIX_OS_FALSE=
15852 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15859 HAVE_IRIX_OS_FALSE='#'
15861 HAVE_IRIX_OS_TRUE='#'
15862 HAVE_IRIX_OS_FALSE=
15866 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15871 HAVE_DARWIN_OS_TRUE=
15872 HAVE_DARWIN_OS_FALSE='#'
15874 HAVE_DARWIN_OS_TRUE='#'
15875 HAVE_DARWIN_OS_FALSE=
15877 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15883 HAVE_DARWIN_OS_TRUE=
15884 HAVE_DARWIN_OS_FALSE='#'
15886 HAVE_DARWIN_OS_TRUE='#'
15887 HAVE_DARWIN_OS_FALSE=
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
15893 $as_echo_n "checking for Operating System Distribution... " >&6; }
15894 if test "x$DISTNAME" != "x"
15896 echo "distname set to $DISTNAME"
15897 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15900 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15903 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15906 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15909 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15912 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15915 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15918 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
15921 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15924 elif test -f /etc/SuSE-release
15927 elif test -d /etc/SuSEconfig
15930 elif test -f /etc/mandrake-release
15933 elif test -f /etc/whitebox-release
15936 elif test -f /etc/redhat-release
15939 elif test -f /etc/gentoo-release
15942 elif test -f /etc/debian_version
15945 elif test -f /etc/slackware-version
15948 elif test x$host_vendor = xapple
15951 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15954 elif test -f /etc/engarde-version
15957 elif test -f /etc/arch-release
15960 elif test "$CYGWIN" = yes
15963 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15969 $as_echo "done" >&6; }
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15973 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15975 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15976 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15977 $as_echo_n "(cached) " >&6
15979 cat >conftest.make <<\_ACEOF
15982 @echo '@@@%%%=$(MAKE)=@@@%%%'
15984 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15985 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15986 *@@@%%%=?*=@@@%%%*)
15987 eval ac_cv_prog_make_${ac_make}_set=yes;;
15989 eval ac_cv_prog_make_${ac_make}_set=no;;
15991 rm -f conftest.make
15993 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15995 $as_echo "yes" >&6; }
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15999 $as_echo "no" >&6; }
16000 SET_MAKE="MAKE=${MAKE-make}"
16006 if test -n "$ac_aux_dir"; then
16007 case "$ac_aux_dir" in
16008 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16009 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16012 if test -z "$MKINSTALLDIRS"; then
16013 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16019 $as_echo_n "checking whether NLS is requested... " >&6; }
16020 # Check whether --enable-nls was given.
16021 if test "${enable_nls+set}" = set; then :
16022 enableval=$enable_nls; USE_NLS=$enableval
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16028 $as_echo "$USE_NLS" >&6; }
16035 # Prepare PATH_SEPARATOR.
16036 # The user is always right.
16037 if test "${PATH_SEPARATOR+set}" != set; then
16038 echo "#! /bin/sh" >conf$$.sh
16039 echo "exit 0" >>conf$$.sh
16041 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16049 # Find out how to test for executable files. Don't use a zero-byte file,
16050 # as systems may use methods other than mode bits to determine executability.
16051 cat >conf$$.file <<_ASEOF
16055 chmod +x conf$$.file
16056 if test -x conf$$.file >/dev/null 2>&1; then
16057 ac_executable_p="test -x"
16059 ac_executable_p="test -f"
16063 # Extract the first word of "msgfmt", so it can be a program name with args.
16064 set dummy msgfmt; ac_word=$2
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16066 $as_echo_n "checking for $ac_word... " >&6; }
16067 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16068 $as_echo_n "(cached) " >&6
16072 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16075 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16076 for ac_dir in $PATH; do
16078 test -z "$ac_dir" && ac_dir=.
16079 for ac_exec_ext in '' $ac_executable_extensions; do
16080 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16081 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16082 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16083 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16084 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16091 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16095 MSGFMT="$ac_cv_path_MSGFMT"
16096 if test "$MSGFMT" != ":"; then
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16098 $as_echo "$MSGFMT" >&6; }
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16101 $as_echo "no" >&6; }
16104 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16105 set dummy gmsgfmt; ac_word=$2
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16107 $as_echo_n "checking for $ac_word... " >&6; }
16108 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16109 $as_echo_n "(cached) " >&6
16113 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16117 for as_dir in $PATH
16120 test -z "$as_dir" && as_dir=.
16121 for ac_exec_ext in '' $ac_executable_extensions; do
16122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16123 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16131 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16135 GMSGFMT=$ac_cv_path_GMSGFMT
16136 if test -n "$GMSGFMT"; then
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16138 $as_echo "$GMSGFMT" >&6; }
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16141 $as_echo "no" >&6; }
16147 # Prepare PATH_SEPARATOR.
16148 # The user is always right.
16149 if test "${PATH_SEPARATOR+set}" != set; then
16150 echo "#! /bin/sh" >conf$$.sh
16151 echo "exit 0" >>conf$$.sh
16153 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16161 # Find out how to test for executable files. Don't use a zero-byte file,
16162 # as systems may use methods other than mode bits to determine executability.
16163 cat >conf$$.file <<_ASEOF
16167 chmod +x conf$$.file
16168 if test -x conf$$.file >/dev/null 2>&1; then
16169 ac_executable_p="test -x"
16171 ac_executable_p="test -f"
16175 # Extract the first word of "xgettext", so it can be a program name with args.
16176 set dummy xgettext; ac_word=$2
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16178 $as_echo_n "checking for $ac_word... " >&6; }
16179 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16180 $as_echo_n "(cached) " >&6
16182 case "$XGETTEXT" in
16184 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16187 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16188 for ac_dir in $PATH; do
16190 test -z "$ac_dir" && ac_dir=.
16191 for ac_exec_ext in '' $ac_executable_extensions; do
16192 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16193 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16194 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16195 (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
16196 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16203 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16207 XGETTEXT="$ac_cv_path_XGETTEXT"
16208 if test "$XGETTEXT" != ":"; then
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16210 $as_echo "$XGETTEXT" >&6; }
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16213 $as_echo "no" >&6; }
16219 # Prepare PATH_SEPARATOR.
16220 # The user is always right.
16221 if test "${PATH_SEPARATOR+set}" != set; then
16222 echo "#! /bin/sh" >conf$$.sh
16223 echo "exit 0" >>conf$$.sh
16225 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16233 # Find out how to test for executable files. Don't use a zero-byte file,
16234 # as systems may use methods other than mode bits to determine executability.
16235 cat >conf$$.file <<_ASEOF
16239 chmod +x conf$$.file
16240 if test -x conf$$.file >/dev/null 2>&1; then
16241 ac_executable_p="test -x"
16243 ac_executable_p="test -f"
16247 # Extract the first word of "msgmerge", so it can be a program name with args.
16248 set dummy msgmerge; ac_word=$2
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16250 $as_echo_n "checking for $ac_word... " >&6; }
16251 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16252 $as_echo_n "(cached) " >&6
16254 case "$MSGMERGE" in
16256 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16259 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16260 for ac_dir in $PATH; do
16262 test -z "$ac_dir" && ac_dir=.
16263 for ac_exec_ext in '' $ac_executable_extensions; do
16264 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16265 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16266 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16267 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16274 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16278 MSGMERGE="$ac_cv_path_MSGMERGE"
16279 if test "$MSGMERGE" != ":"; then
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16281 $as_echo "$MSGMERGE" >&6; }
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16284 $as_echo "no" >&6; }
16288 if test "$GMSGFMT" != ":"; then
16289 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16290 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16293 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16295 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16300 if test "$XGETTEXT" != ":"; then
16301 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16302 (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
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16306 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16312 ac_config_commands="$ac_config_commands default-1"
16316 if test "X$prefix" = "XNONE"; then
16317 acl_final_prefix="$ac_default_prefix"
16319 acl_final_prefix="$prefix"
16321 if test "X$exec_prefix" = "XNONE"; then
16322 acl_final_exec_prefix='${prefix}'
16324 acl_final_exec_prefix="$exec_prefix"
16326 acl_save_prefix="$prefix"
16327 prefix="$acl_final_prefix"
16328 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16329 prefix="$acl_save_prefix"
16332 # Check whether --with-gnu-ld was given.
16333 if test "${with_gnu_ld+set}" = set; then :
16334 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16339 # Prepare PATH_SEPARATOR.
16340 # The user is always right.
16341 if test "${PATH_SEPARATOR+set}" != set; then
16342 echo "#! /bin/sh" >conf$$.sh
16343 echo "exit 0" >>conf$$.sh
16345 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16353 if test "$GCC" = yes; then
16354 # Check if gcc -print-prog-name=ld gives a path.
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16356 $as_echo_n "checking for ld used by GCC... " >&6; }
16359 # gcc leaves a trailing carriage return which upsets mingw
16360 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16362 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16365 # Accept absolute paths.
16366 [\\/]* | [A-Za-z]:[\\/]*)
16367 re_direlt='/[^/][^/]*/\.\./'
16368 # Canonicalize the path of ld
16369 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16370 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16371 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16373 test -z "$LD" && LD="$ac_prog"
16376 # If it fails, then pretend we aren't using GCC.
16380 # If it is relative, then search for the first ld in PATH.
16381 with_gnu_ld=unknown
16384 elif test "$with_gnu_ld" = yes; then
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16386 $as_echo_n "checking for GNU ld... " >&6; }
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16389 $as_echo_n "checking for non-GNU ld... " >&6; }
16391 if test "${acl_cv_path_LD+set}" = set; then :
16392 $as_echo_n "(cached) " >&6
16394 if test -z "$LD"; then
16395 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16396 for ac_dir in $PATH; do
16397 test -z "$ac_dir" && ac_dir=.
16398 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16399 acl_cv_path_LD="$ac_dir/$ac_prog"
16400 # Check to see if the program is GNU ld. I'd rather use --version,
16401 # but apparently some GNU ld's only accept -v.
16402 # Break only if it was the GNU/non-GNU ld that we prefer.
16403 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16404 *GNU* | *'with BFD'*)
16405 test "$with_gnu_ld" != no && break ;;
16407 test "$with_gnu_ld" != yes && break ;;
16413 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16417 LD="$acl_cv_path_LD"
16418 if test -n "$LD"; then
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16420 $as_echo "$LD" >&6; }
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16423 $as_echo "no" >&6; }
16425 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16427 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16428 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
16429 $as_echo_n "(cached) " >&6
16431 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16432 case `$LD -v 2>&1 </dev/null` in
16433 *GNU* | *'with BFD'*)
16434 acl_cv_prog_gnu_ld=yes ;;
16436 acl_cv_prog_gnu_ld=no ;;
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16440 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16441 with_gnu_ld=$acl_cv_prog_gnu_ld
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16447 $as_echo_n "checking for shared library run path origin... " >&6; }
16448 if test "${acl_cv_rpath+set}" = set; then :
16449 $as_echo_n "(cached) " >&6
16452 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16453 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16455 rm -f ./conftest.sh
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16460 $as_echo "$acl_cv_rpath" >&6; }
16462 libext="$acl_cv_libext"
16463 shlibext="$acl_cv_shlibext"
16464 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16465 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16466 hardcode_direct="$acl_cv_hardcode_direct"
16467 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16468 # Check whether --enable-rpath was given.
16469 if test "${enable_rpath+set}" = set; then :
16470 enableval=$enable_rpath; :
16484 acl_save_prefix="$prefix"
16485 prefix="$acl_final_prefix"
16486 acl_save_exec_prefix="$exec_prefix"
16487 exec_prefix="$acl_final_exec_prefix"
16489 eval additional_includedir=\"$includedir\"
16490 eval additional_libdir=\"$libdir\"
16492 exec_prefix="$acl_save_exec_prefix"
16493 prefix="$acl_save_prefix"
16496 # Check whether --with-libiconv-prefix was given.
16497 if test "${with_libiconv_prefix+set}" = set; then :
16498 withval=$with_libiconv_prefix;
16499 if test "X$withval" = "Xno"; then
16502 if test "X$withval" = "X"; then
16504 acl_save_prefix="$prefix"
16505 prefix="$acl_final_prefix"
16506 acl_save_exec_prefix="$exec_prefix"
16507 exec_prefix="$acl_final_exec_prefix"
16509 eval additional_includedir=\"$includedir\"
16510 eval additional_libdir=\"$libdir\"
16512 exec_prefix="$acl_save_exec_prefix"
16513 prefix="$acl_save_prefix"
16516 additional_includedir="$withval/include"
16517 additional_libdir="$withval/lib"
16528 names_already_handled=
16529 names_next_round='iconv '
16530 while test -n "$names_next_round"; do
16531 names_this_round="$names_next_round"
16533 for name in $names_this_round; do
16535 for n in $names_already_handled; do
16536 if test "$n" = "$name"; then
16537 already_handled=yes
16541 if test -z "$already_handled"; then
16542 names_already_handled="$names_already_handled $name"
16543 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16544 eval value=\"\$HAVE_LIB$uppername\"
16545 if test -n "$value"; then
16546 if test "$value" = yes; then
16547 eval value=\"\$LIB$uppername\"
16548 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16549 eval value=\"\$LTLIB$uppername\"
16550 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16559 if test $use_additional = yes; then
16560 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16561 found_dir="$additional_libdir"
16562 found_so="$additional_libdir/lib$name.$shlibext"
16563 if test -f "$additional_libdir/lib$name.la"; then
16564 found_la="$additional_libdir/lib$name.la"
16567 if test -f "$additional_libdir/lib$name.$libext"; then
16568 found_dir="$additional_libdir"
16569 found_a="$additional_libdir/lib$name.$libext"
16570 if test -f "$additional_libdir/lib$name.la"; then
16571 found_la="$additional_libdir/lib$name.la"
16576 if test "X$found_dir" = "X"; then
16577 for x in $LDFLAGS $LTLIBICONV; do
16579 acl_save_prefix="$prefix"
16580 prefix="$acl_final_prefix"
16581 acl_save_exec_prefix="$exec_prefix"
16582 exec_prefix="$acl_final_exec_prefix"
16584 exec_prefix="$acl_save_exec_prefix"
16585 prefix="$acl_save_prefix"
16589 dir=`echo "X$x" | sed -e 's/^X-L//'`
16590 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16592 found_so="$dir/lib$name.$shlibext"
16593 if test -f "$dir/lib$name.la"; then
16594 found_la="$dir/lib$name.la"
16597 if test -f "$dir/lib$name.$libext"; then
16599 found_a="$dir/lib$name.$libext"
16600 if test -f "$dir/lib$name.la"; then
16601 found_la="$dir/lib$name.la"
16607 if test "X$found_dir" != "X"; then
16612 if test "X$found_dir" != "X"; then
16613 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16614 if test "X$found_so" != "X"; then
16615 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16616 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16619 for x in $ltrpathdirs; do
16620 if test "X$x" = "X$found_dir"; then
16625 if test -z "$haveit"; then
16626 ltrpathdirs="$ltrpathdirs $found_dir"
16628 if test "$hardcode_direct" = yes; then
16629 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16631 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16632 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16634 for x in $rpathdirs; do
16635 if test "X$x" = "X$found_dir"; then
16640 if test -z "$haveit"; then
16641 rpathdirs="$rpathdirs $found_dir"
16645 for x in $LDFLAGS $LIBICONV; do
16647 acl_save_prefix="$prefix"
16648 prefix="$acl_final_prefix"
16649 acl_save_exec_prefix="$exec_prefix"
16650 exec_prefix="$acl_final_exec_prefix"
16652 exec_prefix="$acl_save_exec_prefix"
16653 prefix="$acl_save_prefix"
16655 if test "X$x" = "X-L$found_dir"; then
16660 if test -z "$haveit"; then
16661 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16663 if test "$hardcode_minus_L" != no; then
16664 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16666 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16672 if test "X$found_a" != "X"; then
16673 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16675 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16678 additional_includedir=
16679 case "$found_dir" in
16681 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16682 additional_includedir="$basedir/include"
16685 if test "X$additional_includedir" != "X"; then
16686 if test "X$additional_includedir" != "X/usr/include"; then
16688 if test "X$additional_includedir" = "X/usr/local/include"; then
16689 if test -n "$GCC"; then
16691 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16695 if test -z "$haveit"; then
16696 for x in $CPPFLAGS $INCICONV; do
16698 acl_save_prefix="$prefix"
16699 prefix="$acl_final_prefix"
16700 acl_save_exec_prefix="$exec_prefix"
16701 exec_prefix="$acl_final_exec_prefix"
16703 exec_prefix="$acl_save_exec_prefix"
16704 prefix="$acl_save_prefix"
16706 if test "X$x" = "X-I$additional_includedir"; then
16711 if test -z "$haveit"; then
16712 if test -d "$additional_includedir"; then
16713 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16719 if test -n "$found_la"; then
16720 save_libdir="$libdir"
16721 case "$found_la" in
16722 */* | *\\*) . "$found_la" ;;
16723 *) . "./$found_la" ;;
16725 libdir="$save_libdir"
16726 for dep in $dependency_libs; do
16729 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16730 if test "X$additional_libdir" != "X/usr/lib"; then
16732 if test "X$additional_libdir" = "X/usr/local/lib"; then
16733 if test -n "$GCC"; then
16735 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16739 if test -z "$haveit"; then
16741 for x in $LDFLAGS $LIBICONV; do
16743 acl_save_prefix="$prefix"
16744 prefix="$acl_final_prefix"
16745 acl_save_exec_prefix="$exec_prefix"
16746 exec_prefix="$acl_final_exec_prefix"
16748 exec_prefix="$acl_save_exec_prefix"
16749 prefix="$acl_save_prefix"
16751 if test "X$x" = "X-L$additional_libdir"; then
16756 if test -z "$haveit"; then
16757 if test -d "$additional_libdir"; then
16758 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16762 for x in $LDFLAGS $LTLIBICONV; do
16764 acl_save_prefix="$prefix"
16765 prefix="$acl_final_prefix"
16766 acl_save_exec_prefix="$exec_prefix"
16767 exec_prefix="$acl_final_exec_prefix"
16769 exec_prefix="$acl_save_exec_prefix"
16770 prefix="$acl_save_prefix"
16772 if test "X$x" = "X-L$additional_libdir"; then
16777 if test -z "$haveit"; then
16778 if test -d "$additional_libdir"; then
16779 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16786 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16787 if test "$enable_rpath" != no; then
16789 for x in $rpathdirs; do
16790 if test "X$x" = "X$dir"; then
16795 if test -z "$haveit"; then
16796 rpathdirs="$rpathdirs $dir"
16799 for x in $ltrpathdirs; do
16800 if test "X$x" = "X$dir"; then
16805 if test -z "$haveit"; then
16806 ltrpathdirs="$ltrpathdirs $dir"
16811 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16814 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16817 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16818 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16824 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16825 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16831 if test "X$rpathdirs" != "X"; then
16832 if test -n "$hardcode_libdir_separator"; then
16834 for found_dir in $rpathdirs; do
16835 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16837 acl_save_libdir="$libdir"
16839 eval flag=\"$hardcode_libdir_flag_spec\"
16840 libdir="$acl_save_libdir"
16841 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16843 for found_dir in $rpathdirs; do
16844 acl_save_libdir="$libdir"
16845 libdir="$found_dir"
16846 eval flag=\"$hardcode_libdir_flag_spec\"
16847 libdir="$acl_save_libdir"
16848 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16852 if test "X$ltrpathdirs" != "X"; then
16853 for found_dir in $ltrpathdirs; do
16854 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16876 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16877 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
16878 $as_echo_n "(cached) " >&6
16880 gt_save_CPPFLAGS="$CPPFLAGS"
16881 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16882 gt_save_LIBS="$LIBS"
16883 LIBS="$LIBS -framework CoreFoundation"
16884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16885 /* end confdefs.h. */
16886 #include <CFPreferences.h>
16890 CFPreferencesCopyAppValue(NULL, NULL)
16895 if ac_fn_c_try_link "$LINENO"; then :
16896 gt_cv_func_CFPreferencesCopyAppValue=yes
16898 gt_cv_func_CFPreferencesCopyAppValue=no
16900 rm -f core conftest.err conftest.$ac_objext \
16901 conftest$ac_exeext conftest.$ac_ext
16902 CPPFLAGS="$gt_save_CPPFLAGS"
16903 LIBS="$gt_save_LIBS"
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16906 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16907 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16909 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16913 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16914 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
16915 $as_echo_n "(cached) " >&6
16917 gt_save_CPPFLAGS="$CPPFLAGS"
16918 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16919 gt_save_LIBS="$LIBS"
16920 LIBS="$LIBS -framework CoreFoundation"
16921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16922 /* end confdefs.h. */
16923 #include <CFLocale.h>
16927 CFLocaleCopyCurrent();
16932 if ac_fn_c_try_link "$LINENO"; then :
16933 gt_cv_func_CFLocaleCopyCurrent=yes
16935 gt_cv_func_CFLocaleCopyCurrent=no
16937 rm -f core conftest.err conftest.$ac_objext \
16938 conftest$ac_exeext conftest.$ac_ext
16939 CPPFLAGS="$gt_save_CPPFLAGS"
16940 LIBS="$gt_save_LIBS"
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16943 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16944 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16946 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16950 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16951 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16958 $as_echo_n "checking whether NLS is requested... " >&6; }
16959 # Check whether --enable-nls was given.
16960 if test "${enable_nls+set}" = set; then :
16961 enableval=$enable_nls; USE_NLS=$enableval
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16967 $as_echo "$USE_NLS" >&6; }
16976 if test "$USE_NLS" = "yes"; then
16977 gt_use_preinstalled_gnugettext=no
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
16985 $as_echo_n "checking for GNU gettext in libc... " >&6; }
16986 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
16987 $as_echo_n "(cached) " >&6
16989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16990 /* end confdefs.h. */
16991 #include <libintl.h>
16992 extern int _nl_msg_cat_cntr;
16993 extern int *_nl_domain_bindings;
16997 bindtextdomain ("", "");
16998 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17003 if ac_fn_c_try_link "$LINENO"; then :
17004 gt_cv_func_gnugettext1_libc=yes
17006 gt_cv_func_gnugettext1_libc=no
17008 rm -f core conftest.err conftest.$ac_objext \
17009 conftest$ac_exeext conftest.$ac_ext
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17012 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17014 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17020 am_save_CPPFLAGS="$CPPFLAGS"
17022 for element in $INCICONV; do
17024 for x in $CPPFLAGS; do
17026 acl_save_prefix="$prefix"
17027 prefix="$acl_final_prefix"
17028 acl_save_exec_prefix="$exec_prefix"
17029 exec_prefix="$acl_final_exec_prefix"
17031 exec_prefix="$acl_save_exec_prefix"
17032 prefix="$acl_save_prefix"
17034 if test "X$x" = "X$element"; then
17039 if test -z "$haveit"; then
17040 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17046 $as_echo_n "checking for iconv... " >&6; }
17047 if test "${am_cv_func_iconv+set}" = set; then :
17048 $as_echo_n "(cached) " >&6
17051 am_cv_func_iconv="no, consider installing GNU libiconv"
17053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17054 /* end confdefs.h. */
17055 #include <stdlib.h>
17060 iconv_t cd = iconv_open("","");
17061 iconv(cd,NULL,NULL,NULL,NULL);
17067 if ac_fn_c_try_link "$LINENO"; then :
17068 am_cv_func_iconv=yes
17070 rm -f core conftest.err conftest.$ac_objext \
17071 conftest$ac_exeext conftest.$ac_ext
17072 if test "$am_cv_func_iconv" != yes; then
17073 am_save_LIBS="$LIBS"
17074 LIBS="$LIBS $LIBICONV"
17075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17076 /* end confdefs.h. */
17077 #include <stdlib.h>
17082 iconv_t cd = iconv_open("","");
17083 iconv(cd,NULL,NULL,NULL,NULL);
17089 if ac_fn_c_try_link "$LINENO"; then :
17090 am_cv_lib_iconv=yes
17091 am_cv_func_iconv=yes
17093 rm -f core conftest.err conftest.$ac_objext \
17094 conftest$ac_exeext conftest.$ac_ext
17095 LIBS="$am_save_LIBS"
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17100 $as_echo "$am_cv_func_iconv" >&6; }
17101 if test "$am_cv_func_iconv" = yes; then
17103 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17106 if test "$am_cv_lib_iconv" = yes; then
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17108 $as_echo_n "checking how to link with libiconv... " >&6; }
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17110 $as_echo "$LIBICONV" >&6; }
17112 CPPFLAGS="$am_save_CPPFLAGS"
17124 acl_save_prefix="$prefix"
17125 prefix="$acl_final_prefix"
17126 acl_save_exec_prefix="$exec_prefix"
17127 exec_prefix="$acl_final_exec_prefix"
17129 eval additional_includedir=\"$includedir\"
17130 eval additional_libdir=\"$libdir\"
17132 exec_prefix="$acl_save_exec_prefix"
17133 prefix="$acl_save_prefix"
17136 # Check whether --with-libintl-prefix was given.
17137 if test "${with_libintl_prefix+set}" = set; then :
17138 withval=$with_libintl_prefix;
17139 if test "X$withval" = "Xno"; then
17142 if test "X$withval" = "X"; then
17144 acl_save_prefix="$prefix"
17145 prefix="$acl_final_prefix"
17146 acl_save_exec_prefix="$exec_prefix"
17147 exec_prefix="$acl_final_exec_prefix"
17149 eval additional_includedir=\"$includedir\"
17150 eval additional_libdir=\"$libdir\"
17152 exec_prefix="$acl_save_exec_prefix"
17153 prefix="$acl_save_prefix"
17156 additional_includedir="$withval/include"
17157 additional_libdir="$withval/lib"
17168 names_already_handled=
17169 names_next_round='intl '
17170 while test -n "$names_next_round"; do
17171 names_this_round="$names_next_round"
17173 for name in $names_this_round; do
17175 for n in $names_already_handled; do
17176 if test "$n" = "$name"; then
17177 already_handled=yes
17181 if test -z "$already_handled"; then
17182 names_already_handled="$names_already_handled $name"
17183 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17184 eval value=\"\$HAVE_LIB$uppername\"
17185 if test -n "$value"; then
17186 if test "$value" = yes; then
17187 eval value=\"\$LIB$uppername\"
17188 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17189 eval value=\"\$LTLIB$uppername\"
17190 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17199 if test $use_additional = yes; then
17200 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17201 found_dir="$additional_libdir"
17202 found_so="$additional_libdir/lib$name.$shlibext"
17203 if test -f "$additional_libdir/lib$name.la"; then
17204 found_la="$additional_libdir/lib$name.la"
17207 if test -f "$additional_libdir/lib$name.$libext"; then
17208 found_dir="$additional_libdir"
17209 found_a="$additional_libdir/lib$name.$libext"
17210 if test -f "$additional_libdir/lib$name.la"; then
17211 found_la="$additional_libdir/lib$name.la"
17216 if test "X$found_dir" = "X"; then
17217 for x in $LDFLAGS $LTLIBINTL; do
17219 acl_save_prefix="$prefix"
17220 prefix="$acl_final_prefix"
17221 acl_save_exec_prefix="$exec_prefix"
17222 exec_prefix="$acl_final_exec_prefix"
17224 exec_prefix="$acl_save_exec_prefix"
17225 prefix="$acl_save_prefix"
17229 dir=`echo "X$x" | sed -e 's/^X-L//'`
17230 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17232 found_so="$dir/lib$name.$shlibext"
17233 if test -f "$dir/lib$name.la"; then
17234 found_la="$dir/lib$name.la"
17237 if test -f "$dir/lib$name.$libext"; then
17239 found_a="$dir/lib$name.$libext"
17240 if test -f "$dir/lib$name.la"; then
17241 found_la="$dir/lib$name.la"
17247 if test "X$found_dir" != "X"; then
17252 if test "X$found_dir" != "X"; then
17253 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17254 if test "X$found_so" != "X"; then
17255 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17256 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17259 for x in $ltrpathdirs; do
17260 if test "X$x" = "X$found_dir"; then
17265 if test -z "$haveit"; then
17266 ltrpathdirs="$ltrpathdirs $found_dir"
17268 if test "$hardcode_direct" = yes; then
17269 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17271 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17272 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17274 for x in $rpathdirs; do
17275 if test "X$x" = "X$found_dir"; then
17280 if test -z "$haveit"; then
17281 rpathdirs="$rpathdirs $found_dir"
17285 for x in $LDFLAGS $LIBINTL; do
17287 acl_save_prefix="$prefix"
17288 prefix="$acl_final_prefix"
17289 acl_save_exec_prefix="$exec_prefix"
17290 exec_prefix="$acl_final_exec_prefix"
17292 exec_prefix="$acl_save_exec_prefix"
17293 prefix="$acl_save_prefix"
17295 if test "X$x" = "X-L$found_dir"; then
17300 if test -z "$haveit"; then
17301 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17303 if test "$hardcode_minus_L" != no; then
17304 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17306 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17312 if test "X$found_a" != "X"; then
17313 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17315 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17318 additional_includedir=
17319 case "$found_dir" in
17321 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17322 additional_includedir="$basedir/include"
17325 if test "X$additional_includedir" != "X"; then
17326 if test "X$additional_includedir" != "X/usr/include"; then
17328 if test "X$additional_includedir" = "X/usr/local/include"; then
17329 if test -n "$GCC"; then
17331 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17335 if test -z "$haveit"; then
17336 for x in $CPPFLAGS $INCINTL; do
17338 acl_save_prefix="$prefix"
17339 prefix="$acl_final_prefix"
17340 acl_save_exec_prefix="$exec_prefix"
17341 exec_prefix="$acl_final_exec_prefix"
17343 exec_prefix="$acl_save_exec_prefix"
17344 prefix="$acl_save_prefix"
17346 if test "X$x" = "X-I$additional_includedir"; then
17351 if test -z "$haveit"; then
17352 if test -d "$additional_includedir"; then
17353 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17359 if test -n "$found_la"; then
17360 save_libdir="$libdir"
17361 case "$found_la" in
17362 */* | *\\*) . "$found_la" ;;
17363 *) . "./$found_la" ;;
17365 libdir="$save_libdir"
17366 for dep in $dependency_libs; do
17369 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17370 if test "X$additional_libdir" != "X/usr/lib"; then
17372 if test "X$additional_libdir" = "X/usr/local/lib"; then
17373 if test -n "$GCC"; then
17375 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17379 if test -z "$haveit"; then
17381 for x in $LDFLAGS $LIBINTL; do
17383 acl_save_prefix="$prefix"
17384 prefix="$acl_final_prefix"
17385 acl_save_exec_prefix="$exec_prefix"
17386 exec_prefix="$acl_final_exec_prefix"
17388 exec_prefix="$acl_save_exec_prefix"
17389 prefix="$acl_save_prefix"
17391 if test "X$x" = "X-L$additional_libdir"; then
17396 if test -z "$haveit"; then
17397 if test -d "$additional_libdir"; then
17398 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17402 for x in $LDFLAGS $LTLIBINTL; do
17404 acl_save_prefix="$prefix"
17405 prefix="$acl_final_prefix"
17406 acl_save_exec_prefix="$exec_prefix"
17407 exec_prefix="$acl_final_exec_prefix"
17409 exec_prefix="$acl_save_exec_prefix"
17410 prefix="$acl_save_prefix"
17412 if test "X$x" = "X-L$additional_libdir"; then
17417 if test -z "$haveit"; then
17418 if test -d "$additional_libdir"; then
17419 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17426 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17427 if test "$enable_rpath" != no; then
17429 for x in $rpathdirs; do
17430 if test "X$x" = "X$dir"; then
17435 if test -z "$haveit"; then
17436 rpathdirs="$rpathdirs $dir"
17439 for x in $ltrpathdirs; do
17440 if test "X$x" = "X$dir"; then
17445 if test -z "$haveit"; then
17446 ltrpathdirs="$ltrpathdirs $dir"
17451 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17454 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17457 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17458 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17464 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17465 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17471 if test "X$rpathdirs" != "X"; then
17472 if test -n "$hardcode_libdir_separator"; then
17474 for found_dir in $rpathdirs; do
17475 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17477 acl_save_libdir="$libdir"
17479 eval flag=\"$hardcode_libdir_flag_spec\"
17480 libdir="$acl_save_libdir"
17481 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17483 for found_dir in $rpathdirs; do
17484 acl_save_libdir="$libdir"
17485 libdir="$found_dir"
17486 eval flag=\"$hardcode_libdir_flag_spec\"
17487 libdir="$acl_save_libdir"
17488 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17492 if test "X$ltrpathdirs" != "X"; then
17493 for found_dir in $ltrpathdirs; do
17494 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17499 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17500 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
17501 $as_echo_n "(cached) " >&6
17503 gt_save_CPPFLAGS="$CPPFLAGS"
17504 CPPFLAGS="$CPPFLAGS $INCINTL"
17505 gt_save_LIBS="$LIBS"
17506 LIBS="$LIBS $LIBINTL"
17507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17508 /* end confdefs.h. */
17509 #include <libintl.h>
17510 extern int _nl_msg_cat_cntr;
17515 const char *_nl_expand_alias (const char *);
17519 bindtextdomain ("", "");
17520 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17525 if ac_fn_c_try_link "$LINENO"; then :
17526 gt_cv_func_gnugettext1_libintl=yes
17528 gt_cv_func_gnugettext1_libintl=no
17530 rm -f core conftest.err conftest.$ac_objext \
17531 conftest$ac_exeext conftest.$ac_ext
17532 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17533 LIBS="$LIBS $LIBICONV"
17534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17535 /* end confdefs.h. */
17536 #include <libintl.h>
17537 extern int _nl_msg_cat_cntr;
17542 const char *_nl_expand_alias (const char *);
17546 bindtextdomain ("", "");
17547 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17552 if ac_fn_c_try_link "$LINENO"; then :
17553 LIBINTL="$LIBINTL $LIBICONV"
17554 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17555 gt_cv_func_gnugettext1_libintl=yes
17558 rm -f core conftest.err conftest.$ac_objext \
17559 conftest$ac_exeext conftest.$ac_ext
17561 CPPFLAGS="$gt_save_CPPFLAGS"
17562 LIBS="$gt_save_LIBS"
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17565 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17568 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17569 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17570 && test "$PACKAGE" != gettext-runtime \
17571 && test "$PACKAGE" != gettext-tools; }; then
17572 gt_use_preinstalled_gnugettext=yes
17581 if test -n "$INTL_MACOSX_LIBS"; then
17582 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17583 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17584 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17585 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17589 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17590 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17592 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17600 $as_echo_n "checking whether to use NLS... " >&6; }
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17602 $as_echo "$USE_NLS" >&6; }
17603 if test "$USE_NLS" = "yes"; then
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17605 $as_echo_n "checking where the gettext function comes from... " >&6; }
17606 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17607 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17608 gt_source="external libintl"
17613 gt_source="included intl directory"
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17616 $as_echo "$gt_source" >&6; }
17619 if test "$USE_NLS" = "yes"; then
17621 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17622 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17624 $as_echo_n "checking how to link with libintl... " >&6; }
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17626 $as_echo "$LIBINTL" >&6; }
17628 for element in $INCINTL; do
17630 for x in $CPPFLAGS; do
17632 acl_save_prefix="$prefix"
17633 prefix="$acl_final_prefix"
17634 acl_save_exec_prefix="$exec_prefix"
17635 exec_prefix="$acl_final_exec_prefix"
17637 exec_prefix="$acl_save_exec_prefix"
17638 prefix="$acl_save_prefix"
17640 if test "X$x" = "X$element"; then
17645 if test -z "$haveit"; then
17646 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17653 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17656 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17665 INTLLIBS="$LIBINTL"
17673 os_name=`uname -s 2>/dev/null`
17674 if test x${prefix} = xNONE ; then
17675 if test `eval echo ${sysconfdir}` = NONE/etc ; then
17676 sysconfdir=/etc/bacula
17679 if test `eval echo ${libdir}` = NONE/lib ; then
17682 os_processor=`uname -p 2>/dev/null`
17683 case ${os_processor} in
17698 if test `eval echo ${includedir}` = NONE/include ; then
17699 includedir=/usr/include
17702 if test `eval echo ${datarootdir}` = NONE/share ; then
17703 datarootdir=/usr/share
17708 if test x${exec_prefix} = xNONE ; then
17709 exec_prefix=${prefix}
17712 sysconfdir=`eval echo ${sysconfdir}`
17713 datarootdir=`eval echo ${datarootdir}`
17714 docdir=`eval echo ${docdir}`
17715 htmldir=`eval echo ${htmldir}`
17716 libdir=`eval echo ${libdir}`
17717 includedir=`eval echo ${includedir}`
17718 localedir=`eval echo ${datarootdir}/locale`
17719 cat >>confdefs.h <<_ACEOF
17720 #define SYSCONFDIR "$sysconfdir"
17723 cat >>confdefs.h <<_ACEOF
17724 #define LOCALEDIR "$localedir"
17728 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17729 sbindir=${exec_prefix}/sbin
17731 sbindir=`eval echo ${sbindir}`
17733 if test x$mandir = x'${prefix}/man' ; then
17734 mandir=/usr/share/man
17737 if test x$htmldir = x${docdir} ; then
17738 htmldir=`eval echo ${docdir}bacula/html`
17741 if test x$docdir = x'/usr/share/doc/' ; then
17742 docdir=`eval echo ${docdir}bacula`
17746 for ac_prog in msgfmt
17748 # Extract the first word of "$ac_prog", so it can be a program name with args.
17749 set dummy $ac_prog; ac_word=$2
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17751 $as_echo_n "checking for $ac_word... " >&6; }
17752 if test "${ac_cv_path_MSGFMT+set}" = set; then :
17753 $as_echo_n "(cached) " >&6
17757 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17761 for as_dir in $PATH
17764 test -z "$as_dir" && as_dir=.
17765 for ac_exec_ext in '' $ac_executable_extensions; do
17766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17767 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17778 MSGFMT=$ac_cv_path_MSGFMT
17779 if test -n "$MSGFMT"; then
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17781 $as_echo "$MSGFMT" >&6; }
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17784 $as_echo "no" >&6; }
17788 test -n "$MSGFMT" && break
17790 test -n "$MSGFMT" || MSGFMT="no"
17792 if test "$MSGFMT" = "no"
17794 echo 'msgfmt program not found, disabling NLS !'
17796 USE_INCLUDED_LIBINTL=no
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17800 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17801 if test "${ac_cv_gnu_library_2+set}" = set; then :
17802 $as_echo_n "(cached) " >&6
17804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17805 /* end confdefs.h. */
17807 #include <features.h>
17808 #ifdef __GNU_LIBRARY__
17809 #if (__GLIBC__ >= 2)
17815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17816 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17817 ac_cv_gnu_library_2=yes
17819 ac_cv_gnu_library_2=no
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17827 $as_echo "$ac_cv_gnu_library_2" >&6; }
17829 GLIBC2="$ac_cv_gnu_library_2"
17832 if test -n "$ac_tool_prefix"; then
17833 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17834 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17836 $as_echo_n "checking for $ac_word... " >&6; }
17837 if test "${ac_cv_prog_RANLIB+set}" = set; then :
17838 $as_echo_n "(cached) " >&6
17840 if test -n "$RANLIB"; then
17841 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17844 for as_dir in $PATH
17847 test -z "$as_dir" && as_dir=.
17848 for ac_exec_ext in '' $ac_executable_extensions; do
17849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17850 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17860 RANLIB=$ac_cv_prog_RANLIB
17861 if test -n "$RANLIB"; then
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17863 $as_echo "$RANLIB" >&6; }
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17866 $as_echo "no" >&6; }
17871 if test -z "$ac_cv_prog_RANLIB"; then
17872 ac_ct_RANLIB=$RANLIB
17873 # Extract the first word of "ranlib", so it can be a program name with args.
17874 set dummy ranlib; ac_word=$2
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17876 $as_echo_n "checking for $ac_word... " >&6; }
17877 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
17878 $as_echo_n "(cached) " >&6
17880 if test -n "$ac_ct_RANLIB"; then
17881 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17884 for as_dir in $PATH
17887 test -z "$as_dir" && as_dir=.
17888 for ac_exec_ext in '' $ac_executable_extensions; do
17889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17890 ac_cv_prog_ac_ct_RANLIB="ranlib"
17891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17900 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17901 if test -n "$ac_ct_RANLIB"; then
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17903 $as_echo "$ac_ct_RANLIB" >&6; }
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17906 $as_echo "no" >&6; }
17909 if test "x$ac_ct_RANLIB" = x; then
17912 case $cross_compiling:$ac_tool_warned in
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17916 ac_tool_warned=yes ;;
17918 RANLIB=$ac_ct_RANLIB
17921 RANLIB="$ac_cv_prog_RANLIB"
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
17926 $as_echo_n "checking for strerror in -lcposix... " >&6; }
17927 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
17928 $as_echo_n "(cached) " >&6
17930 ac_check_lib_save_LIBS=$LIBS
17931 LIBS="-lcposix $LIBS"
17932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17933 /* end confdefs.h. */
17935 /* Override any GCC internal prototype to avoid an error.
17936 Use char because int might match the return type of a GCC
17937 builtin and then its argument prototype would still apply. */
17945 return strerror ();
17950 if ac_fn_c_try_link "$LINENO"; then :
17951 ac_cv_lib_cposix_strerror=yes
17953 ac_cv_lib_cposix_strerror=no
17955 rm -f core conftest.err conftest.$ac_objext \
17956 conftest$ac_exeext conftest.$ac_ext
17957 LIBS=$ac_check_lib_save_LIBS
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
17960 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
17961 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
17962 LIBS="$LIBS -lcposix"
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17968 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17969 if test "${ac_cv_c_const+set}" = set; then :
17970 $as_echo_n "(cached) " >&6
17972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17973 /* end confdefs.h. */
17978 /* FIXME: Include the comments suggested by Paul. */
17979 #ifndef __cplusplus
17980 /* Ultrix mips cc rejects this. */
17981 typedef int charset[2];
17983 /* SunOS 4.1.1 cc rejects this. */
17984 char const *const *pcpcc;
17986 /* NEC SVR4.0.2 mips cc rejects this. */
17987 struct point {int x, y;};
17988 static struct point const zero = {0,0};
17989 /* AIX XL C 1.02.0.0 rejects this.
17990 It does not let you subtract one const X* pointer from another in
17991 an arm of an if-expression whose if-part is not a constant
17993 const char *g = "string";
17994 pcpcc = &g + (g ? g-g : 0);
17995 /* HPUX 7.0 cc rejects these. */
17997 ppc = (char**) pcpcc;
17998 pcpcc = (char const *const *) ppc;
17999 { /* SCO 3.2v4 cc rejects this. */
18001 char const *s = 0 ? (char *) 0 : (char const *) 0;
18006 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18007 int x[] = {25, 17};
18008 const int *foo = &x[0];
18011 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18012 typedef const int *iptr;
18016 { /* AIX XL C 1.02.0.0 rejects this saying
18017 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18018 struct s { int j; const int *ap[3]; };
18019 struct s *b; b->j = 5;
18021 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18022 const int foo = 10;
18023 if (!foo) return 0;
18025 return !cs[0] && !zero.x;
18032 if ac_fn_c_try_compile "$LINENO"; then :
18037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18040 $as_echo "$ac_cv_c_const" >&6; }
18041 if test $ac_cv_c_const = no; then
18043 $as_echo "#define const /**/" >>confdefs.h
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18049 $as_echo_n "checking for signed... " >&6; }
18050 if test "${bh_cv_c_signed+set}" = set; then :
18051 $as_echo_n "(cached) " >&6
18053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18054 /* end confdefs.h. */
18064 if ac_fn_c_try_compile "$LINENO"; then :
18069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18072 $as_echo "$bh_cv_c_signed" >&6; }
18073 if test $bh_cv_c_signed = no; then
18075 $as_echo "#define signed /**/" >>confdefs.h
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18080 $as_echo_n "checking for inline... " >&6; }
18081 if test "${ac_cv_c_inline+set}" = set; then :
18082 $as_echo_n "(cached) " >&6
18085 for ac_kw in inline __inline__ __inline; do
18086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18087 /* end confdefs.h. */
18088 #ifndef __cplusplus
18090 static $ac_kw foo_t static_foo () {return 0; }
18091 $ac_kw foo_t foo () {return 0; }
18095 if ac_fn_c_try_compile "$LINENO"; then :
18096 ac_cv_c_inline=$ac_kw
18098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18099 test "$ac_cv_c_inline" != no && break
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18104 $as_echo "$ac_cv_c_inline" >&6; }
18106 case $ac_cv_c_inline in
18109 case $ac_cv_c_inline in
18111 *) ac_val=$ac_cv_c_inline;;
18113 cat >>confdefs.h <<_ACEOF
18114 #ifndef __cplusplus
18115 #define inline $ac_val
18121 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18122 if test "x$ac_cv_type_off_t" = x""yes; then :
18126 cat >>confdefs.h <<_ACEOF
18127 #define off_t long int
18132 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18133 if test "x$ac_cv_type_size_t" = x""yes; then :
18137 cat >>confdefs.h <<_ACEOF
18138 #define size_t unsigned int
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18145 $as_echo_n "checking for long long... " >&6; }
18146 if test "${ac_cv_type_long_long+set}" = set; then :
18147 $as_echo_n "(cached) " >&6
18149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18150 /* end confdefs.h. */
18151 long long ll = 1LL; int i = 63;
18155 long long llmax = (long long) -1;
18156 return ll << i | ll >> i | llmax / ll | llmax % ll;
18161 if ac_fn_c_try_link "$LINENO"; then :
18162 ac_cv_type_long_long=yes
18164 ac_cv_type_long_long=no
18166 rm -f core conftest.err conftest.$ac_objext \
18167 conftest$ac_exeext conftest.$ac_ext
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18170 $as_echo "$ac_cv_type_long_long" >&6; }
18171 if test $ac_cv_type_long_long = yes; then
18173 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18179 $as_echo_n "checking for long double... " >&6; }
18180 if test "${gt_cv_c_long_double+set}" = set; then :
18181 $as_echo_n "(cached) " >&6
18183 if test "$GCC" = yes; then
18184 gt_cv_c_long_double=yes
18186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18187 /* end confdefs.h. */
18189 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
18190 long double foo = 0.0;
18191 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
18192 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18202 if ac_fn_c_try_compile "$LINENO"; then :
18203 gt_cv_c_long_double=yes
18205 gt_cv_c_long_double=no
18207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18211 $as_echo "$gt_cv_c_long_double" >&6; }
18212 if test $gt_cv_c_long_double = yes; then
18214 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18220 $as_echo_n "checking for wchar_t... " >&6; }
18221 if test "${gt_cv_c_wchar_t+set}" = set; then :
18222 $as_echo_n "(cached) " >&6
18224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18225 /* end confdefs.h. */
18226 #include <stddef.h>
18227 wchar_t foo = (wchar_t)'\0';
18236 if ac_fn_c_try_compile "$LINENO"; then :
18237 gt_cv_c_wchar_t=yes
18241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18244 $as_echo "$gt_cv_c_wchar_t" >&6; }
18245 if test $gt_cv_c_wchar_t = yes; then
18247 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18253 $as_echo_n "checking for wint_t... " >&6; }
18254 if test "${gt_cv_c_wint_t+set}" = set; then :
18255 $as_echo_n "(cached) " >&6
18257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18258 /* end confdefs.h. */
18260 wint_t foo = (wchar_t)'\0';
18269 if ac_fn_c_try_compile "$LINENO"; then :
18274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18277 $as_echo "$gt_cv_c_wint_t" >&6; }
18278 if test $gt_cv_c_wint_t = yes; then
18280 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18286 $as_echo_n "checking for inttypes.h... " >&6; }
18287 if test "${gl_cv_header_inttypes_h+set}" = set; then :
18288 $as_echo_n "(cached) " >&6
18290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18291 /* end confdefs.h. */
18292 #include <sys/types.h>
18293 #include <inttypes.h>
18297 uintmax_t i = (uintmax_t) -1;
18302 if ac_fn_c_try_compile "$LINENO"; then :
18303 gl_cv_header_inttypes_h=yes
18305 gl_cv_header_inttypes_h=no
18307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18310 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18311 if test $gl_cv_header_inttypes_h = yes; then
18313 cat >>confdefs.h <<_ACEOF
18314 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18321 $as_echo_n "checking for stdint.h... " >&6; }
18322 if test "${gl_cv_header_stdint_h+set}" = set; then :
18323 $as_echo_n "(cached) " >&6
18325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18326 /* end confdefs.h. */
18327 #include <sys/types.h>
18328 #include <stdint.h>
18332 uintmax_t i = (uintmax_t) -1;
18337 if ac_fn_c_try_compile "$LINENO"; then :
18338 gl_cv_header_stdint_h=yes
18340 gl_cv_header_stdint_h=no
18342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18345 $as_echo "$gl_cv_header_stdint_h" >&6; }
18346 if test $gl_cv_header_stdint_h = yes; then
18348 cat >>confdefs.h <<_ACEOF
18349 #define HAVE_STDINT_H_WITH_UINTMAX 1
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18358 $as_echo_n "checking for intmax_t... " >&6; }
18359 if test "${gt_cv_c_intmax_t+set}" = set; then :
18360 $as_echo_n "(cached) " >&6
18362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18363 /* end confdefs.h. */
18365 #include <stddef.h>
18366 #include <stdlib.h>
18367 #if HAVE_STDINT_H_WITH_UINTMAX
18368 #include <stdint.h>
18370 #if HAVE_INTTYPES_H_WITH_UINTMAX
18371 #include <inttypes.h>
18382 if ac_fn_c_try_compile "$LINENO"; then :
18383 gt_cv_c_intmax_t=yes
18385 gt_cv_c_intmax_t=no
18387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18390 $as_echo "$gt_cv_c_intmax_t" >&6; }
18391 if test $gt_cv_c_intmax_t = yes; then
18393 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18400 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18401 if test "${gt_cv_func_printf_posix+set}" = set; then :
18402 $as_echo_n "(cached) " >&6
18405 if test "$cross_compiling" = yes; then :
18407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18408 /* end confdefs.h. */
18410 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18416 $EGREP "notposix" >/dev/null 2>&1; then :
18417 gt_cv_func_printf_posix="guessing no"
18419 gt_cv_func_printf_posix="guessing yes"
18425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18426 /* end confdefs.h. */
18429 #include <string.h>
18430 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18431 dollar expansion (possibly an autoconf bug). */
18432 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18433 static char buf[100];
18436 sprintf (buf, format, 33, 55);
18437 return (strcmp (buf, "55 33") != 0);
18440 if ac_fn_c_try_run "$LINENO"; then :
18441 gt_cv_func_printf_posix=yes
18443 gt_cv_func_printf_posix=no
18445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18446 conftest.$ac_objext conftest.beam conftest.$ac_ext
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18452 $as_echo "$gt_cv_func_printf_posix" >&6; }
18453 case $gt_cv_func_printf_posix in
18456 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18461 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18462 # for constant arguments. Useless!
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18464 $as_echo_n "checking for working alloca.h... " >&6; }
18465 if test "${ac_cv_working_alloca_h+set}" = set; then :
18466 $as_echo_n "(cached) " >&6
18468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18469 /* end confdefs.h. */
18470 #include <alloca.h>
18474 char *p = (char *) alloca (2 * sizeof (int));
18480 if ac_fn_c_try_link "$LINENO"; then :
18481 ac_cv_working_alloca_h=yes
18483 ac_cv_working_alloca_h=no
18485 rm -f core conftest.err conftest.$ac_objext \
18486 conftest$ac_exeext conftest.$ac_ext
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18489 $as_echo "$ac_cv_working_alloca_h" >&6; }
18490 if test $ac_cv_working_alloca_h = yes; then
18492 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18497 $as_echo_n "checking for alloca... " >&6; }
18498 if test "${ac_cv_func_alloca_works+set}" = set; then :
18499 $as_echo_n "(cached) " >&6
18501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18502 /* end confdefs.h. */
18504 # define alloca __builtin_alloca
18507 # include <malloc.h>
18508 # define alloca _alloca
18510 # ifdef HAVE_ALLOCA_H
18511 # include <alloca.h>
18516 # ifndef alloca /* predefined by HP cc +Olibcalls */
18527 char *p = (char *) alloca (1);
18533 if ac_fn_c_try_link "$LINENO"; then :
18534 ac_cv_func_alloca_works=yes
18536 ac_cv_func_alloca_works=no
18538 rm -f core conftest.err conftest.$ac_objext \
18539 conftest$ac_exeext conftest.$ac_ext
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18542 $as_echo "$ac_cv_func_alloca_works" >&6; }
18544 if test $ac_cv_func_alloca_works = yes; then
18546 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18549 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18550 # that cause trouble. Some versions do not even contain alloca or
18551 # contain a buggy version. If you still want to use their alloca,
18552 # use ar to extract alloca.o from them instead of compiling alloca.c.
18554 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18556 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18560 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18561 if test "${ac_cv_os_cray+set}" = set; then :
18562 $as_echo_n "(cached) " >&6
18564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18565 /* end confdefs.h. */
18566 #if defined CRAY && ! defined CRAY2
18573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18574 $EGREP "webecray" >/dev/null 2>&1; then :
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18583 $as_echo "$ac_cv_os_cray" >&6; }
18584 if test $ac_cv_os_cray = yes; then
18585 for ac_func in _getb67 GETB67 getb67; do
18586 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18587 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18588 eval as_val=\$$as_ac_var
18589 if test "x$as_val" = x""yes; then :
18591 cat >>confdefs.h <<_ACEOF
18592 #define CRAY_STACKSEG_END $ac_func
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18602 $as_echo_n "checking stack direction for C alloca... " >&6; }
18603 if test "${ac_cv_c_stack_direction+set}" = set; then :
18604 $as_echo_n "(cached) " >&6
18606 if test "$cross_compiling" = yes; then :
18607 ac_cv_c_stack_direction=0
18609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18610 /* end confdefs.h. */
18611 $ac_includes_default
18613 find_stack_direction ()
18615 static char *addr = 0;
18620 return find_stack_direction ();
18623 return (&dummy > addr) ? 1 : -1;
18629 return find_stack_direction () < 0;
18632 if ac_fn_c_try_run "$LINENO"; then :
18633 ac_cv_c_stack_direction=1
18635 ac_cv_c_stack_direction=-1
18637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18638 conftest.$ac_objext conftest.beam conftest.$ac_ext
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18643 $as_echo "$ac_cv_c_stack_direction" >&6; }
18644 cat >>confdefs.h <<_ACEOF
18645 #define STACK_DIRECTION $ac_cv_c_stack_direction
18654 for ac_header in $ac_header_list
18656 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18657 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18659 eval as_val=\$$as_ac_Header
18660 if test "x$as_val" = x""yes; then :
18661 cat >>confdefs.h <<_ACEOF
18662 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18676 for ac_func in getpagesize
18678 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18679 if test "x$ac_cv_func_getpagesize" = x""yes; then :
18680 cat >>confdefs.h <<_ACEOF
18681 #define HAVE_GETPAGESIZE 1
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18688 $as_echo_n "checking for working mmap... " >&6; }
18689 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
18690 $as_echo_n "(cached) " >&6
18692 if test "$cross_compiling" = yes; then :
18693 ac_cv_func_mmap_fixed_mapped=no
18695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18696 /* end confdefs.h. */
18697 $ac_includes_default
18698 /* malloc might have been renamed as rpl_malloc. */
18701 /* Thanks to Mike Haertel and Jim Avera for this test.
18702 Here is a matrix of mmap possibilities:
18703 mmap private not fixed
18704 mmap private fixed at somewhere currently unmapped
18705 mmap private fixed at somewhere already mapped
18706 mmap shared not fixed
18707 mmap shared fixed at somewhere currently unmapped
18708 mmap shared fixed at somewhere already mapped
18709 For private mappings, we should verify that changes cannot be read()
18710 back from the file, nor mmap's back from the file at a different
18711 address. (There have been systems where private was not correctly
18712 implemented like the infamous i386 svr4.0, and systems where the
18713 VM page cache was not coherent with the file system buffer cache
18714 like early versions of FreeBSD and possibly contemporary NetBSD.)
18715 For shared mappings, we should conversely verify that changes get
18716 propagated back to all the places they're supposed to be.
18718 Grep wants private fixed already mapped.
18719 The main things grep needs to know about mmap are:
18720 * does it exist and is it safe to write into the mmap'd area
18721 * how to use it (BSD variants) */
18724 #include <sys/mman.h>
18726 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18730 /* This mess was copied from the GNU getpagesize.h. */
18731 #ifndef HAVE_GETPAGESIZE
18732 # ifdef _SC_PAGESIZE
18733 # define getpagesize() sysconf(_SC_PAGESIZE)
18734 # else /* no _SC_PAGESIZE */
18735 # ifdef HAVE_SYS_PARAM_H
18736 # include <sys/param.h>
18737 # ifdef EXEC_PAGESIZE
18738 # define getpagesize() EXEC_PAGESIZE
18739 # else /* no EXEC_PAGESIZE */
18741 # define getpagesize() NBPG * CLSIZE
18744 # endif /* no CLSIZE */
18745 # else /* no NBPG */
18747 # define getpagesize() NBPC
18748 # else /* no NBPC */
18750 # define getpagesize() PAGESIZE
18751 # endif /* PAGESIZE */
18752 # endif /* no NBPC */
18753 # endif /* no NBPG */
18754 # endif /* no EXEC_PAGESIZE */
18755 # else /* no HAVE_SYS_PARAM_H */
18756 # define getpagesize() 8192 /* punt totally */
18757 # endif /* no HAVE_SYS_PARAM_H */
18758 # endif /* no _SC_PAGESIZE */
18760 #endif /* no HAVE_GETPAGESIZE */
18765 char *data, *data2, *data3;
18769 pagesize = getpagesize ();
18771 /* First, make a file with some known garbage in it. */
18772 data = (char *) malloc (pagesize);
18775 for (i = 0; i < pagesize; ++i)
18776 *(data + i) = rand ();
18778 fd = creat ("conftest.mmap", 0600);
18781 if (write (fd, data, pagesize) != pagesize)
18785 /* Next, check that the tail of a page is zero-filled. File must have
18786 non-zero length, otherwise we risk SIGBUS for entire page. */
18787 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18791 if (write (fd2, data2, 1) != 1)
18793 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18794 if (data2 == MAP_FAILED)
18796 for (i = 0; i < pagesize; ++i)
18800 if (munmap (data2, pagesize))
18803 /* Next, try to mmap the file at a fixed address which already has
18804 something else allocated at it. If we can, also make sure that
18805 we see the same garbage. */
18806 fd = open ("conftest.mmap", O_RDWR);
18809 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18810 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18812 for (i = 0; i < pagesize; ++i)
18813 if (*(data + i) != *(data2 + i))
18816 /* Finally, make sure that changes to the mapped area do not
18817 percolate back to the file as seen by read(). (This is a bug on
18818 some variants of i386 svr4.0.) */
18819 for (i = 0; i < pagesize; ++i)
18820 *(data2 + i) = *(data2 + i) + 1;
18821 data3 = (char *) malloc (pagesize);
18824 if (read (fd, data3, pagesize) != pagesize)
18826 for (i = 0; i < pagesize; ++i)
18827 if (*(data + i) != *(data3 + i))
18833 if ac_fn_c_try_run "$LINENO"; then :
18834 ac_cv_func_mmap_fixed_mapped=yes
18836 ac_cv_func_mmap_fixed_mapped=no
18838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18839 conftest.$ac_objext conftest.beam conftest.$ac_ext
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18844 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18845 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18847 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18850 rm -f conftest.mmap conftest.txt
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18854 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18855 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
18856 $as_echo_n "(cached) " >&6
18858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18859 /* end confdefs.h. */
18861 #include <features.h>
18862 #ifdef __GNU_LIBRARY__
18863 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18870 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18871 ac_cv_gnu_library_2_1=yes
18873 ac_cv_gnu_library_2_1=no
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18881 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18883 GLIBC21="$ac_cv_gnu_library_2_1"
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18889 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18890 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
18891 $as_echo_n "(cached) " >&6
18894 if test "$cross_compiling" = yes; then :
18896 # Guess based on the CPU.
18897 case "$host_cpu" in
18898 alpha* | i3456786 | m68k | s390*)
18899 gt_cv_int_divbyzero_sigfpe="guessing yes";;
18901 gt_cv_int_divbyzero_sigfpe="guessing no";;
18905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18906 /* end confdefs.h. */
18908 #include <stdlib.h>
18909 #include <signal.h>
18913 sigfpe_handler (int sig)
18915 sigfpe_handler (sig) int sig;
18918 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
18919 exit (sig != SIGFPE);
18929 signal (SIGFPE, sigfpe_handler);
18930 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
18931 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18932 signal (SIGTRAP, sigfpe_handler);
18934 /* Linux/SPARC yields signal SIGILL. */
18935 #if defined (__sparc__) && defined (__linux__)
18936 signal (SIGILL, sigfpe_handler);
18945 if ac_fn_c_try_run "$LINENO"; then :
18946 gt_cv_int_divbyzero_sigfpe=yes
18948 gt_cv_int_divbyzero_sigfpe=no
18950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18951 conftest.$ac_objext conftest.beam conftest.$ac_ext
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
18957 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
18958 case "$gt_cv_int_divbyzero_sigfpe" in
18963 cat >>confdefs.h <<_ACEOF
18964 #define INTDIV0_RAISES_SIGFPE $value
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
18970 $as_echo_n "checking for unsigned long long... " >&6; }
18971 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
18972 $as_echo_n "(cached) " >&6
18974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18975 /* end confdefs.h. */
18976 unsigned long long ull = 1ULL; int i = 63;
18980 unsigned long long ullmax = (unsigned long long) -1;
18981 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
18986 if ac_fn_c_try_link "$LINENO"; then :
18987 ac_cv_type_unsigned_long_long=yes
18989 ac_cv_type_unsigned_long_long=no
18991 rm -f core conftest.err conftest.$ac_objext \
18992 conftest$ac_exeext conftest.$ac_ext
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
18995 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
18996 if test $ac_cv_type_unsigned_long_long = yes; then
18998 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19005 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19007 test $ac_cv_type_unsigned_long_long = yes \
19008 && ac_type='unsigned long long' \
19009 || ac_type='unsigned long'
19011 cat >>confdefs.h <<_ACEOF
19012 #define uintmax_t $ac_type
19017 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19023 $as_echo_n "checking for inttypes.h... " >&6; }
19024 if test "${gt_cv_header_inttypes_h+set}" = set; then :
19025 $as_echo_n "(cached) " >&6
19028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19029 /* end confdefs.h. */
19030 #include <sys/types.h>
19031 #include <inttypes.h>
19040 if ac_fn_c_try_compile "$LINENO"; then :
19041 gt_cv_header_inttypes_h=yes
19043 gt_cv_header_inttypes_h=no
19045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19049 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19050 if test $gt_cv_header_inttypes_h = yes; then
19052 cat >>confdefs.h <<_ACEOF
19053 #define HAVE_INTTYPES_H 1
19060 if test $gt_cv_header_inttypes_h = yes; then
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19062 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19063 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
19064 $as_echo_n "(cached) " >&6
19067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19068 /* end confdefs.h. */
19069 #include <inttypes.h>
19082 if ac_fn_c_try_compile "$LINENO"; then :
19083 gt_cv_inttypes_pri_broken=no
19085 gt_cv_inttypes_pri_broken=yes
19087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19091 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19093 if test "$gt_cv_inttypes_pri_broken" = yes; then
19095 cat >>confdefs.h <<_ACEOF
19096 #define PRI_MACROS_BROKEN 1
19102 for ac_header in stdint.h
19104 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19105 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19106 cat >>confdefs.h <<_ACEOF
19107 #define HAVE_STDINT_H 1
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19115 $as_echo_n "checking for SIZE_MAX... " >&6; }
19117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19118 /* end confdefs.h. */
19120 #include <limits.h>
19122 #include <stdint.h>
19129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19130 $EGREP "Found it" >/dev/null 2>&1; then :
19135 if test -z "$result"; then
19136 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
19143 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
19150 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
19157 if test "$fits_in_uint" = 1; then
19158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19159 /* end confdefs.h. */
19160 #include <stddef.h>
19162 extern unsigned long foo;
19172 if ac_fn_c_try_compile "$LINENO"; then :
19175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19177 if test -z "$result"; then
19178 if test "$fits_in_uint" = 1; then
19179 result="$res_hi$res_lo"U
19181 result="$res_hi$res_lo"UL
19184 result='~(size_t)0'
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19188 $as_echo "$result" >&6; }
19189 if test "$result" != yes; then
19191 cat >>confdefs.h <<_ACEOF
19192 #define SIZE_MAX $result
19200 for ac_header in stdint.h
19202 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19203 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19204 cat >>confdefs.h <<_ACEOF
19205 #define HAVE_STDINT_H 1
19219 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19220 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
19224 $as_echo "#define ptrdiff_t long" >>confdefs.h
19229 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19230 stdlib.h string.h unistd.h sys/param.h
19232 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19233 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19234 eval as_val=\$$as_ac_Header
19235 if test "x$as_val" = x""yes; then :
19236 cat >>confdefs.h <<_ACEOF
19237 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19244 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19245 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19246 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19249 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19250 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19251 eval as_val=\$$as_ac_var
19252 if test "x$as_val" = x""yes; then :
19253 cat >>confdefs.h <<_ACEOF
19254 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19263 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19264 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
19265 $as_echo_n "(cached) " >&6
19267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19268 /* end confdefs.h. */
19275 char *p = (char *) _snprintf;
19282 if ac_fn_c_try_compile "$LINENO"; then :
19283 ac_cv_have_decl__snprintf=yes
19285 ac_cv_have_decl__snprintf=no
19287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19290 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19291 if test $ac_cv_have_decl__snprintf = yes; then
19297 cat >>confdefs.h <<_ACEOF
19298 #define HAVE_DECL__SNPRINTF $gt_value
19303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19304 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19305 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
19306 $as_echo_n "(cached) " >&6
19308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19309 /* end confdefs.h. */
19316 char *p = (char *) _snwprintf;
19323 if ac_fn_c_try_compile "$LINENO"; then :
19324 ac_cv_have_decl__snwprintf=yes
19326 ac_cv_have_decl__snwprintf=no
19328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19331 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19332 if test $ac_cv_have_decl__snwprintf = yes; then
19338 cat >>confdefs.h <<_ACEOF
19339 #define HAVE_DECL__SNWPRINTF $gt_value
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19346 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19347 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
19348 $as_echo_n "(cached) " >&6
19350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19351 /* end confdefs.h. */
19357 #ifndef feof_unlocked
19358 char *p = (char *) feof_unlocked;
19365 if ac_fn_c_try_compile "$LINENO"; then :
19366 ac_cv_have_decl_feof_unlocked=yes
19368 ac_cv_have_decl_feof_unlocked=no
19370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19373 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19374 if test $ac_cv_have_decl_feof_unlocked = yes; then
19380 cat >>confdefs.h <<_ACEOF
19381 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19387 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19388 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
19389 $as_echo_n "(cached) " >&6
19391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19392 /* end confdefs.h. */
19398 #ifndef fgets_unlocked
19399 char *p = (char *) fgets_unlocked;
19406 if ac_fn_c_try_compile "$LINENO"; then :
19407 ac_cv_have_decl_fgets_unlocked=yes
19409 ac_cv_have_decl_fgets_unlocked=no
19411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19414 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19415 if test $ac_cv_have_decl_fgets_unlocked = yes; then
19421 cat >>confdefs.h <<_ACEOF
19422 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19428 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19429 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
19430 $as_echo_n "(cached) " >&6
19432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19433 /* end confdefs.h. */
19439 #ifndef getc_unlocked
19440 char *p = (char *) getc_unlocked;
19447 if ac_fn_c_try_compile "$LINENO"; then :
19448 ac_cv_have_decl_getc_unlocked=yes
19450 ac_cv_have_decl_getc_unlocked=no
19452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19455 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19456 if test $ac_cv_have_decl_getc_unlocked = yes; then
19462 cat >>confdefs.h <<_ACEOF
19463 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19468 case $gt_cv_func_printf_posix in
19469 *yes) HAVE_POSIX_PRINTF=1 ;;
19470 *) HAVE_POSIX_PRINTF=0 ;;
19473 if test "$ac_cv_func_asprintf" = yes; then
19479 if test "$ac_cv_func_snprintf" = yes; then
19485 if test "$ac_cv_func_wprintf" = yes; then
19497 am_save_CPPFLAGS="$CPPFLAGS"
19499 for element in $INCICONV; do
19501 for x in $CPPFLAGS; do
19503 acl_save_prefix="$prefix"
19504 prefix="$acl_final_prefix"
19505 acl_save_exec_prefix="$exec_prefix"
19506 exec_prefix="$acl_final_exec_prefix"
19508 exec_prefix="$acl_save_exec_prefix"
19509 prefix="$acl_save_prefix"
19511 if test "X$x" = "X$element"; then
19516 if test -z "$haveit"; then
19517 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19523 $as_echo_n "checking for iconv... " >&6; }
19524 if test "${am_cv_func_iconv+set}" = set; then :
19525 $as_echo_n "(cached) " >&6
19528 am_cv_func_iconv="no, consider installing GNU libiconv"
19530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19531 /* end confdefs.h. */
19532 #include <stdlib.h>
19537 iconv_t cd = iconv_open("","");
19538 iconv(cd,NULL,NULL,NULL,NULL);
19544 if ac_fn_c_try_link "$LINENO"; then :
19545 am_cv_func_iconv=yes
19547 rm -f core conftest.err conftest.$ac_objext \
19548 conftest$ac_exeext conftest.$ac_ext
19549 if test "$am_cv_func_iconv" != yes; then
19550 am_save_LIBS="$LIBS"
19551 LIBS="$LIBS $LIBICONV"
19552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19553 /* end confdefs.h. */
19554 #include <stdlib.h>
19559 iconv_t cd = iconv_open("","");
19560 iconv(cd,NULL,NULL,NULL,NULL);
19566 if ac_fn_c_try_link "$LINENO"; then :
19567 am_cv_lib_iconv=yes
19568 am_cv_func_iconv=yes
19570 rm -f core conftest.err conftest.$ac_objext \
19571 conftest$ac_exeext conftest.$ac_ext
19572 LIBS="$am_save_LIBS"
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19577 $as_echo "$am_cv_func_iconv" >&6; }
19578 if test "$am_cv_func_iconv" = yes; then
19580 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19583 if test "$am_cv_lib_iconv" = yes; then
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19585 $as_echo_n "checking how to link with libiconv... " >&6; }
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19587 $as_echo "$LIBICONV" >&6; }
19589 CPPFLAGS="$am_save_CPPFLAGS"
19596 if test "$am_cv_func_iconv" = yes; then
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19598 $as_echo_n "checking for iconv declaration... " >&6; }
19599 if test "${am_cv_proto_iconv+set}" = set; then :
19600 $as_echo_n "(cached) " >&6
19603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19604 /* end confdefs.h. */
19606 #include <stdlib.h>
19612 #if defined(__STDC__) || defined(__cplusplus)
19613 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19626 if ac_fn_c_try_compile "$LINENO"; then :
19627 am_cv_proto_iconv_arg1=""
19629 am_cv_proto_iconv_arg1="const"
19631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19632 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);"
19635 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19637 }$am_cv_proto_iconv" >&5
19639 }$am_cv_proto_iconv" >&6; }
19641 cat >>confdefs.h <<_ACEOF
19642 #define ICONV_CONST $am_cv_proto_iconv_arg1
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19649 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19650 if test "${am_cv_langinfo_codeset+set}" = set; then :
19651 $as_echo_n "(cached) " >&6
19653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19654 /* end confdefs.h. */
19655 #include <langinfo.h>
19659 char* cs = nl_langinfo(CODESET);
19664 if ac_fn_c_try_link "$LINENO"; then :
19665 am_cv_langinfo_codeset=yes
19667 am_cv_langinfo_codeset=no
19669 rm -f core conftest.err conftest.$ac_objext \
19670 conftest$ac_exeext conftest.$ac_ext
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19674 $as_echo "$am_cv_langinfo_codeset" >&6; }
19675 if test $am_cv_langinfo_codeset = yes; then
19677 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19681 if test $ac_cv_header_locale_h = yes; then
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19684 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19685 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
19686 $as_echo_n "(cached) " >&6
19688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19689 /* end confdefs.h. */
19690 #include <locale.h>
19699 if ac_fn_c_try_link "$LINENO"; then :
19700 gt_cv_val_LC_MESSAGES=yes
19702 gt_cv_val_LC_MESSAGES=no
19704 rm -f core conftest.err conftest.$ac_objext \
19705 conftest$ac_exeext conftest.$ac_ext
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19708 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19709 if test $gt_cv_val_LC_MESSAGES = yes; then
19711 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19717 if test -n "$INTL_MACOSX_LIBS"; then
19718 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19721 for ac_prog in bison
19723 # Extract the first word of "$ac_prog", so it can be a program name with args.
19724 set dummy $ac_prog; ac_word=$2
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19726 $as_echo_n "checking for $ac_word... " >&6; }
19727 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
19728 $as_echo_n "(cached) " >&6
19730 if test -n "$INTLBISON"; then
19731 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19734 for as_dir in $PATH
19737 test -z "$as_dir" && as_dir=.
19738 for ac_exec_ext in '' $ac_executable_extensions; do
19739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19740 ac_cv_prog_INTLBISON="$ac_prog"
19741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19750 INTLBISON=$ac_cv_prog_INTLBISON
19751 if test -n "$INTLBISON"; then
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19753 $as_echo "$INTLBISON" >&6; }
19755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19756 $as_echo "no" >&6; }
19760 test -n "$INTLBISON" && break
19763 if test -z "$INTLBISON"; then
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19767 $as_echo_n "checking version of bison... " >&6; }
19768 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19769 case $ac_prog_version in
19770 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19771 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19772 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19773 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19776 $as_echo "$ac_prog_version" >&6; }
19778 if test $ac_verc_fail = yes; then
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19798 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19799 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
19800 $as_echo_n "(cached) " >&6
19802 gt_save_CPPFLAGS="$CPPFLAGS"
19803 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19804 gt_save_LIBS="$LIBS"
19805 LIBS="$LIBS -framework CoreFoundation"
19806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19807 /* end confdefs.h. */
19808 #include <CFPreferences.h>
19812 CFPreferencesCopyAppValue(NULL, NULL)
19817 if ac_fn_c_try_link "$LINENO"; then :
19818 gt_cv_func_CFPreferencesCopyAppValue=yes
19820 gt_cv_func_CFPreferencesCopyAppValue=no
19822 rm -f core conftest.err conftest.$ac_objext \
19823 conftest$ac_exeext conftest.$ac_ext
19824 CPPFLAGS="$gt_save_CPPFLAGS"
19825 LIBS="$gt_save_LIBS"
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19828 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19829 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19831 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19835 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19836 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
19837 $as_echo_n "(cached) " >&6
19839 gt_save_CPPFLAGS="$CPPFLAGS"
19840 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19841 gt_save_LIBS="$LIBS"
19842 LIBS="$LIBS -framework CoreFoundation"
19843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19844 /* end confdefs.h. */
19845 #include <CFLocale.h>
19849 CFLocaleCopyCurrent();
19854 if ac_fn_c_try_link "$LINENO"; then :
19855 gt_cv_func_CFLocaleCopyCurrent=yes
19857 gt_cv_func_CFLocaleCopyCurrent=no
19859 rm -f core conftest.err conftest.$ac_objext \
19860 conftest$ac_exeext conftest.$ac_ext
19861 CPPFLAGS="$gt_save_CPPFLAGS"
19862 LIBS="$gt_save_LIBS"
19864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19865 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19866 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19868 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19872 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19873 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19880 $as_echo_n "checking whether NLS is requested... " >&6; }
19881 # Check whether --enable-nls was given.
19882 if test "${enable_nls+set}" = set; then :
19883 enableval=$enable_nls; USE_NLS=$enableval
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19889 $as_echo "$USE_NLS" >&6; }
19894 BUILD_INCLUDED_LIBINTL=no
19895 USE_INCLUDED_LIBINTL=no
19901 if test "$USE_NLS" = "yes"; then
19902 gt_use_preinstalled_gnugettext=no
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19905 $as_echo_n "checking whether included gettext is requested... " >&6; }
19907 # Check whether --with-included-gettext was given.
19908 if test "${with_included_gettext+set}" = set; then :
19909 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19911 nls_cv_force_use_gnu_gettext=no
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19915 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19917 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19918 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19926 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19927 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
19928 $as_echo_n "(cached) " >&6
19930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19931 /* end confdefs.h. */
19932 #include <libintl.h>
19933 extern int _nl_msg_cat_cntr;
19934 extern int *_nl_domain_bindings;
19938 bindtextdomain ("", "");
19939 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
19944 if ac_fn_c_try_link "$LINENO"; then :
19945 gt_cv_func_gnugettext1_libc=yes
19947 gt_cv_func_gnugettext1_libc=no
19949 rm -f core conftest.err conftest.$ac_objext \
19950 conftest$ac_exeext conftest.$ac_ext
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
19953 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
19955 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
19961 acl_save_prefix="$prefix"
19962 prefix="$acl_final_prefix"
19963 acl_save_exec_prefix="$exec_prefix"
19964 exec_prefix="$acl_final_exec_prefix"
19966 eval additional_includedir=\"$includedir\"
19967 eval additional_libdir=\"$libdir\"
19969 exec_prefix="$acl_save_exec_prefix"
19970 prefix="$acl_save_prefix"
19973 # Check whether --with-libintl-prefix was given.
19974 if test "${with_libintl_prefix+set}" = set; then :
19975 withval=$with_libintl_prefix;
19976 if test "X$withval" = "Xno"; then
19979 if test "X$withval" = "X"; then
19981 acl_save_prefix="$prefix"
19982 prefix="$acl_final_prefix"
19983 acl_save_exec_prefix="$exec_prefix"
19984 exec_prefix="$acl_final_exec_prefix"
19986 eval additional_includedir=\"$includedir\"
19987 eval additional_libdir=\"$libdir\"
19989 exec_prefix="$acl_save_exec_prefix"
19990 prefix="$acl_save_prefix"
19993 additional_includedir="$withval/include"
19994 additional_libdir="$withval/lib"
20005 names_already_handled=
20006 names_next_round='intl '
20007 while test -n "$names_next_round"; do
20008 names_this_round="$names_next_round"
20010 for name in $names_this_round; do
20012 for n in $names_already_handled; do
20013 if test "$n" = "$name"; then
20014 already_handled=yes
20018 if test -z "$already_handled"; then
20019 names_already_handled="$names_already_handled $name"
20020 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20021 eval value=\"\$HAVE_LIB$uppername\"
20022 if test -n "$value"; then
20023 if test "$value" = yes; then
20024 eval value=\"\$LIB$uppername\"
20025 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20026 eval value=\"\$LTLIB$uppername\"
20027 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20036 if test $use_additional = yes; then
20037 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20038 found_dir="$additional_libdir"
20039 found_so="$additional_libdir/lib$name.$shlibext"
20040 if test -f "$additional_libdir/lib$name.la"; then
20041 found_la="$additional_libdir/lib$name.la"
20044 if test -f "$additional_libdir/lib$name.$libext"; then
20045 found_dir="$additional_libdir"
20046 found_a="$additional_libdir/lib$name.$libext"
20047 if test -f "$additional_libdir/lib$name.la"; then
20048 found_la="$additional_libdir/lib$name.la"
20053 if test "X$found_dir" = "X"; then
20054 for x in $LDFLAGS $LTLIBINTL; do
20056 acl_save_prefix="$prefix"
20057 prefix="$acl_final_prefix"
20058 acl_save_exec_prefix="$exec_prefix"
20059 exec_prefix="$acl_final_exec_prefix"
20061 exec_prefix="$acl_save_exec_prefix"
20062 prefix="$acl_save_prefix"
20066 dir=`echo "X$x" | sed -e 's/^X-L//'`
20067 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20069 found_so="$dir/lib$name.$shlibext"
20070 if test -f "$dir/lib$name.la"; then
20071 found_la="$dir/lib$name.la"
20074 if test -f "$dir/lib$name.$libext"; then
20076 found_a="$dir/lib$name.$libext"
20077 if test -f "$dir/lib$name.la"; then
20078 found_la="$dir/lib$name.la"
20084 if test "X$found_dir" != "X"; then
20089 if test "X$found_dir" != "X"; then
20090 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20091 if test "X$found_so" != "X"; then
20092 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20093 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20096 for x in $ltrpathdirs; do
20097 if test "X$x" = "X$found_dir"; then
20102 if test -z "$haveit"; then
20103 ltrpathdirs="$ltrpathdirs $found_dir"
20105 if test "$hardcode_direct" = yes; then
20106 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20108 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20109 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20111 for x in $rpathdirs; do
20112 if test "X$x" = "X$found_dir"; then
20117 if test -z "$haveit"; then
20118 rpathdirs="$rpathdirs $found_dir"
20122 for x in $LDFLAGS $LIBINTL; do
20124 acl_save_prefix="$prefix"
20125 prefix="$acl_final_prefix"
20126 acl_save_exec_prefix="$exec_prefix"
20127 exec_prefix="$acl_final_exec_prefix"
20129 exec_prefix="$acl_save_exec_prefix"
20130 prefix="$acl_save_prefix"
20132 if test "X$x" = "X-L$found_dir"; then
20137 if test -z "$haveit"; then
20138 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20140 if test "$hardcode_minus_L" != no; then
20141 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20143 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20149 if test "X$found_a" != "X"; then
20150 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20152 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20155 additional_includedir=
20156 case "$found_dir" in
20158 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20159 additional_includedir="$basedir/include"
20162 if test "X$additional_includedir" != "X"; then
20163 if test "X$additional_includedir" != "X/usr/include"; then
20165 if test "X$additional_includedir" = "X/usr/local/include"; then
20166 if test -n "$GCC"; then
20168 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20172 if test -z "$haveit"; then
20173 for x in $CPPFLAGS $INCINTL; do
20175 acl_save_prefix="$prefix"
20176 prefix="$acl_final_prefix"
20177 acl_save_exec_prefix="$exec_prefix"
20178 exec_prefix="$acl_final_exec_prefix"
20180 exec_prefix="$acl_save_exec_prefix"
20181 prefix="$acl_save_prefix"
20183 if test "X$x" = "X-I$additional_includedir"; then
20188 if test -z "$haveit"; then
20189 if test -d "$additional_includedir"; then
20190 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20196 if test -n "$found_la"; then
20197 save_libdir="$libdir"
20198 case "$found_la" in
20199 */* | *\\*) . "$found_la" ;;
20200 *) . "./$found_la" ;;
20202 libdir="$save_libdir"
20203 for dep in $dependency_libs; do
20206 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20207 if test "X$additional_libdir" != "X/usr/lib"; then
20209 if test "X$additional_libdir" = "X/usr/local/lib"; then
20210 if test -n "$GCC"; then
20212 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20216 if test -z "$haveit"; then
20218 for x in $LDFLAGS $LIBINTL; do
20220 acl_save_prefix="$prefix"
20221 prefix="$acl_final_prefix"
20222 acl_save_exec_prefix="$exec_prefix"
20223 exec_prefix="$acl_final_exec_prefix"
20225 exec_prefix="$acl_save_exec_prefix"
20226 prefix="$acl_save_prefix"
20228 if test "X$x" = "X-L$additional_libdir"; then
20233 if test -z "$haveit"; then
20234 if test -d "$additional_libdir"; then
20235 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20239 for x in $LDFLAGS $LTLIBINTL; do
20241 acl_save_prefix="$prefix"
20242 prefix="$acl_final_prefix"
20243 acl_save_exec_prefix="$exec_prefix"
20244 exec_prefix="$acl_final_exec_prefix"
20246 exec_prefix="$acl_save_exec_prefix"
20247 prefix="$acl_save_prefix"
20249 if test "X$x" = "X-L$additional_libdir"; then
20254 if test -z "$haveit"; then
20255 if test -d "$additional_libdir"; then
20256 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20263 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20264 if test "$enable_rpath" != no; then
20266 for x in $rpathdirs; do
20267 if test "X$x" = "X$dir"; then
20272 if test -z "$haveit"; then
20273 rpathdirs="$rpathdirs $dir"
20276 for x in $ltrpathdirs; do
20277 if test "X$x" = "X$dir"; then
20282 if test -z "$haveit"; then
20283 ltrpathdirs="$ltrpathdirs $dir"
20288 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20291 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20294 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20295 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20301 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20302 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20308 if test "X$rpathdirs" != "X"; then
20309 if test -n "$hardcode_libdir_separator"; then
20311 for found_dir in $rpathdirs; do
20312 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20314 acl_save_libdir="$libdir"
20316 eval flag=\"$hardcode_libdir_flag_spec\"
20317 libdir="$acl_save_libdir"
20318 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20320 for found_dir in $rpathdirs; do
20321 acl_save_libdir="$libdir"
20322 libdir="$found_dir"
20323 eval flag=\"$hardcode_libdir_flag_spec\"
20324 libdir="$acl_save_libdir"
20325 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20329 if test "X$ltrpathdirs" != "X"; then
20330 for found_dir in $ltrpathdirs; do
20331 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20336 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20337 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
20338 $as_echo_n "(cached) " >&6
20340 gt_save_CPPFLAGS="$CPPFLAGS"
20341 CPPFLAGS="$CPPFLAGS $INCINTL"
20342 gt_save_LIBS="$LIBS"
20343 LIBS="$LIBS $LIBINTL"
20344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20345 /* end confdefs.h. */
20346 #include <libintl.h>
20347 extern int _nl_msg_cat_cntr;
20352 const char *_nl_expand_alias (const char *);
20356 bindtextdomain ("", "");
20357 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20362 if ac_fn_c_try_link "$LINENO"; then :
20363 gt_cv_func_gnugettext1_libintl=yes
20365 gt_cv_func_gnugettext1_libintl=no
20367 rm -f core conftest.err conftest.$ac_objext \
20368 conftest$ac_exeext conftest.$ac_ext
20369 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20370 LIBS="$LIBS $LIBICONV"
20371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20372 /* end confdefs.h. */
20373 #include <libintl.h>
20374 extern int _nl_msg_cat_cntr;
20379 const char *_nl_expand_alias (const char *);
20383 bindtextdomain ("", "");
20384 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20389 if ac_fn_c_try_link "$LINENO"; then :
20390 LIBINTL="$LIBINTL $LIBICONV"
20391 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20392 gt_cv_func_gnugettext1_libintl=yes
20395 rm -f core conftest.err conftest.$ac_objext \
20396 conftest$ac_exeext conftest.$ac_ext
20398 CPPFLAGS="$gt_save_CPPFLAGS"
20399 LIBS="$gt_save_LIBS"
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20402 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20405 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20406 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20407 && test "$PACKAGE" != gettext-runtime \
20408 && test "$PACKAGE" != gettext-tools; }; then
20409 gt_use_preinstalled_gnugettext=yes
20417 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20418 nls_cv_use_gnu_gettext=yes
20422 if test "$nls_cv_use_gnu_gettext" = "yes"; then
20423 BUILD_INCLUDED_LIBINTL=yes
20424 USE_INCLUDED_LIBINTL=yes
20425 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20426 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20427 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20431 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20432 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20437 if test -n "$INTL_MACOSX_LIBS"; then
20438 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20439 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20440 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20441 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20445 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20446 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20448 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20456 $as_echo_n "checking whether to use NLS... " >&6; }
20457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20458 $as_echo "$USE_NLS" >&6; }
20459 if test "$USE_NLS" = "yes"; then
20460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20461 $as_echo_n "checking where the gettext function comes from... " >&6; }
20462 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20463 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20464 gt_source="external libintl"
20469 gt_source="included intl directory"
20471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20472 $as_echo "$gt_source" >&6; }
20475 if test "$USE_NLS" = "yes"; then
20477 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20478 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20480 $as_echo_n "checking how to link with libintl... " >&6; }
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20482 $as_echo "$LIBINTL" >&6; }
20484 for element in $INCINTL; do
20486 for x in $CPPFLAGS; do
20488 acl_save_prefix="$prefix"
20489 prefix="$acl_final_prefix"
20490 acl_save_exec_prefix="$exec_prefix"
20491 exec_prefix="$acl_final_exec_prefix"
20493 exec_prefix="$acl_save_exec_prefix"
20494 prefix="$acl_save_prefix"
20496 if test "X$x" = "X$element"; then
20501 if test -z "$haveit"; then
20502 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20509 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20512 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20520 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20521 BUILD_INCLUDED_LIBINTL=yes
20528 nls_cv_header_intl=
20529 nls_cv_header_libgt=
20541 if test "$USE_INCLUDED_LIBINTL" = yes; then
20542 INTLOBJS="\$(GETTOBJS)"
20546 INTL_LIBTOOL_SUFFIX_PREFIX=
20550 INTLLIBS="$LIBINTL"
20562 support_postgresql=no
20565 support_smartalloc=yes
20566 support_readline=yes
20570 support_wx_console=no
20571 support_tray_monitor=no
20576 support_static_tools=no
20577 support_static_fd=no
20578 support_static_sd=no
20579 support_static_dir=no
20580 support_static_cons=no
20582 build_client_only=no
20591 # Check whether --enable-gnome was given.
20592 if test "${enable_gnome+set}" = set; then :
20593 enableval=$enable_gnome;
20594 if test x$enableval = xyes; then
20603 if test x$support_gnome = xyes; then
20604 as_fn_error "bgnome-console no longer supported" "$LINENO" 5
20605 as_fn_error "--enable-gnome option no longer supported" "$LINENO" 5
20607 # AC_SUBST(GNOME_DIR)
20609 # Check whether --enable-bat was given.
20610 if test "${enable_bat+set}" = set; then :
20611 enableval=$enable_bat;
20612 if test x$enableval = xyes; then
20614 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20624 if test x$support_bat = xyes; then
20625 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20627 if test $pkg = 0; then
20628 BAT_DIR=src/qt-console
20630 as_fn_error "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20648 # Check whether --enable-bwx-console was given.
20649 if test "${enable_bwx_console+set}" = set; then :
20650 enableval=$enable_bwx_console;
20651 if test x$enableval = xyes; then
20652 support_wx_console=yes
20660 if test x$support_wx_console = xyes; then
20661 abc=`$WXCONFIG $WXFLAGS --cppflags`
20663 if test $pkg = 0; then
20664 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20665 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20666 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20670 WX_DIR="src/wx-console"
20673 echo "wx-config program not found. bwx-console disabled."
20675 support_wx_console=no
20680 # Check whether --enable-tray-monitor was given.
20681 if test "${enable_tray_monitor+set}" = set; then :
20682 enableval=$enable_tray_monitor;
20683 if test x$enableval = xyes; then
20684 support_tray_monitor=yes
20692 if test x$support_tray_monitor = xyes; then
20693 abc=`$PKGCONFIG --exists gtk+-2.0`
20695 if test $pkg = 0; then
20696 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20697 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20700 TRAY_MONITOR_DIR=src/tray-monitor
20701 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20703 if test $pkg = 0; then
20705 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20712 # Check whether --enable-smartalloc was given.
20713 if test "${enable_smartalloc+set}" = set; then :
20714 enableval=$enable_smartalloc;
20715 if test x$enableval = xno; then
20716 support_smartalloc=no
20723 if test x$support_smartalloc = xyes; then
20725 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20729 # Check whether --enable-lockmgr was given.
20730 if test "${enable_lockmgr+set}" = set; then :
20731 enableval=$enable_lockmgr;
20732 if test x$enableval = xyes; then
20733 support_lockmgr=yes
20740 if test x$support_lockmgr = xyes; then
20742 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20747 # Check whether --enable-static-tools was given.
20748 if test "${enable_static_tools+set}" = set; then :
20749 enableval=$enable_static_tools;
20750 if test x$enableval = xyes; then
20751 if test x$use_libtool = xyes; then
20752 as_fn_error "Libtool is enabled, not compatible with static tools,
20753 please rerun configure with --disable-libtool" "$LINENO" 5
20755 support_static_tools=yes
20763 if test x$support_static_tools = xyes; then
20764 TTOOL_LDFLAGS="-static"
20768 # Check whether --enable-static-fd was given.
20769 if test "${enable_static_fd+set}" = set; then :
20770 enableval=$enable_static_fd;
20771 if test x$enableval = xyes; then
20772 if test x$use_libtool = xyes; then
20773 as_fn_error "Libtool is enabled, not compatible with static tools,
20774 please rerun configure with --disable-libtool" "$LINENO" 5
20776 support_static_fd=yes
20784 if test x$support_static_fd = xyes; then
20785 STATIC_FD="static-bacula-fd"
20789 # Check whether --enable-static-sd was given.
20790 if test "${enable_static_sd+set}" = set; then :
20791 enableval=$enable_static_sd;
20792 if test x$enableval = xyes; then
20793 if test x$use_libtool = xyes; then
20794 as_fn_error "Libtool is enabled, not compatible with static tools,
20795 please rerun configure with --disable-libtool" "$LINENO" 5
20797 support_static_sd=yes
20805 if test x$support_static_sd = xyes; then
20806 STATIC_SD="static-bacula-sd"
20810 # Check whether --enable-static-dir was given.
20811 if test "${enable_static_dir+set}" = set; then :
20812 enableval=$enable_static_dir;
20813 if test x$enableval = xyes; then
20814 if test x$use_libtool = xyes; then
20815 as_fn_error "Libtool is enabled, not compatible with static tools,
20816 please rerun configure with --disable-libtool" "$LINENO" 5
20818 support_static_dir=yes
20826 if test x$support_static_dir = xyes; then
20827 STATIC_DIR="static-bacula-dir"
20831 # Check whether --enable-static-cons was given.
20832 if test "${enable_static_cons+set}" = set; then :
20833 enableval=$enable_static_cons;
20834 if test x$enableval = xyes; then
20835 if test x$use_libtool = xyes; then
20836 as_fn_error "Libtool is enabled, not compatible with static tools,
20837 please rerun configure with --disable-libtool" "$LINENO" 5
20839 support_static_cons=yes
20849 if test x$support_static_cons = xyes; then
20850 STATIC_CONS="static-bconsole"
20851 STATIC_GNOME_CONS="static-bgnome-console"
20852 STATIC_WX_CONS="static-bwx-console"
20858 # Check whether --enable-client-only was given.
20859 if test "${enable_client_only+set}" = set; then :
20860 enableval=$enable_client_only;
20861 if test x$enableval = xyes; then
20862 build_client_only=yes
20870 if test x$build_client_only = xno; then
20877 # Check whether --enable-build-dird was given.
20878 if test "${enable_build_dird+set}" = set; then :
20879 enableval=$enable_build_dird;
20880 if test x$enableval = xno; then
20887 if test x$build_dird = xyes; then
20888 DIRD_DIR="src/dird"
20889 DIR_TOOLS="DIRTOOLS"
20892 DIR_TOOLS="NODIRTOOLS"
20897 # Check whether --enable-build-stored was given.
20898 if test "${enable_build_stored+set}" = set; then :
20899 enableval=$enable_build_stored;
20900 if test x$enableval = xno; then
20907 if test x$build_stored = xyes; then
20908 STORED_DIR="src/stored"
20914 # Check whether --enable-conio was given.
20915 if test "${enable_conio+set}" = set; then :
20916 enableval=$enable_conio;
20917 if test x$enableval = xno; then
20927 # Check whether --enable-ipv6 was given.
20928 if test "${enable_ipv6+set}" = set; then :
20929 enableval=$enable_ipv6;
20930 if test x$enableval = xno; then
20938 if test x$support_ipv6 = xyes; then
20939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20940 /* end confdefs.h. */
20941 #include <sys/types.h>
20942 #include <sys/socket.h>
20943 #include <netinet/in.h>
20947 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
20952 if ac_fn_c_try_link "$LINENO"; then :
20957 rm -f core conftest.err conftest.$ac_objext \
20958 conftest$ac_exeext conftest.$ac_ext
20961 if test x$support_ipv6 = xyes; then
20963 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
20968 ac_fn_c_check_header_mongrel "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default"
20969 if test "x$ac_cv_header_termcap_h" = x""yes; then :
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
20971 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
20972 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
20973 $as_echo_n "(cached) " >&6
20975 ac_check_lib_save_LIBS=$LIBS
20976 LIBS="-ltermcap $LIBS"
20977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20978 /* end confdefs.h. */
20980 /* Override any GCC internal prototype to avoid an error.
20981 Use char because int might match the return type of a GCC
20982 builtin and then its argument prototype would still apply. */
20995 if ac_fn_c_try_link "$LINENO"; then :
20996 ac_cv_lib_termcap_tgetent=yes
20998 ac_cv_lib_termcap_tgetent=no
21000 rm -f core conftest.err conftest.$ac_objext \
21001 conftest$ac_exeext conftest.$ac_ext
21002 LIBS=$ac_check_lib_save_LIBS
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21005 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21006 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21007 TERM_LIB="-ltermcap"
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21010 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21011 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
21012 $as_echo_n "(cached) " >&6
21014 ac_check_lib_save_LIBS=$LIBS
21015 LIBS="-lncurses $LIBS"
21016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21017 /* end confdefs.h. */
21019 /* Override any GCC internal prototype to avoid an error.
21020 Use char because int might match the return type of a GCC
21021 builtin and then its argument prototype would still apply. */
21034 if ac_fn_c_try_link "$LINENO"; then :
21035 ac_cv_lib_ncurses_tgetent=yes
21037 ac_cv_lib_ncurses_tgetent=no
21039 rm -f core conftest.err conftest.$ac_objext \
21040 conftest$ac_exeext conftest.$ac_ext
21041 LIBS=$ac_check_lib_save_LIBS
21043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21044 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21045 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21046 TERM_LIB="-lncurses"
21054 for ac_header in curses.h
21056 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21057 if test "x$ac_cv_header_curses_h" = x""yes; then :
21058 cat >>confdefs.h <<_ACEOF
21059 #define HAVE_CURSES_H 1
21066 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21067 if test "x$ac_cv_header_term_h" = x""yes; then :
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21069 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21070 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21071 $as_echo_n "(cached) " >&6
21073 ac_check_lib_save_LIBS=$LIBS
21074 LIBS="-lcurses $LIBS"
21075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21076 /* end confdefs.h. */
21078 /* Override any GCC internal prototype to avoid an error.
21079 Use char because int might match the return type of a GCC
21080 builtin and then its argument prototype would still apply. */
21093 if ac_fn_c_try_link "$LINENO"; then :
21094 ac_cv_lib_curses_tgetent=yes
21096 ac_cv_lib_curses_tgetent=no
21098 rm -f core conftest.err conftest.$ac_objext \
21099 conftest$ac_exeext conftest.$ac_ext
21100 LIBS=$ac_check_lib_save_LIBS
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21103 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21104 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21105 TERM_LIB="-lcurses"
21119 if test x$support_conio = xyes; then
21120 if test x$TERM_LIB != x; then
21121 CONS_LIBS=$TERM_LIB
21125 support_readline=no
21127 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21130 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21135 # Check whether --enable-readline was given.
21136 if test "${enable_readline+set}" = set; then :
21137 enableval=$enable_readline;
21138 if test x$enableval = xno; then
21139 support_readline=no
21145 if test x$TERM_LIB = x ; then
21146 support_readline=no
21151 if test x$support_readline = xyes; then
21153 # Check whether --with-readline was given.
21154 if test "${with_readline+set}" = set; then :
21155 withval=$with_readline;
21156 case "$with_readline" in
21161 if test -f ${with_readline}/readline.h; then
21162 CONS_INC="-I${with_readline}"
21163 CONS_LDFLAGS="-L$with_readline"
21164 elif test -f ${with_readline}/include/readline/readline.h; then
21165 CONS_INC="-I${with_readline}/include/readline"
21166 CONS_LDFLAGS="-L${with_readline}/lib"
21167 with_readline="${with_readline}/include/readline"
21169 with_readline="/usr/include/readline"
21172 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21173 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21174 eval as_val=\$$as_ac_Header
21175 if test "x$as_val" = x""yes; then :
21178 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21180 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21186 echo "readline.h not found. readline turned off ..."
21198 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21199 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
21202 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21205 CONS_INC="-I/usr/include/readline"
21206 CONS_LIBS="-lreadline $TERM_LIB"
21210 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21211 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21212 eval as_val=\$$as_ac_Header
21213 if test "x$as_val" = x""yes; then :
21216 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21219 CONS_INC="-I${TOP_DIR}/depkgs/readline"
21220 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21221 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21222 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21227 echo "readline.h not found. readline turned off ..."
21254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21255 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21256 if test "${ac_cv_header_stat_broken+set}" = set; then :
21257 $as_echo_n "(cached) " >&6
21259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21260 /* end confdefs.h. */
21261 #include <sys/types.h>
21262 #include <sys/stat.h>
21264 #if defined S_ISBLK && defined S_IFDIR
21265 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21268 #if defined S_ISBLK && defined S_IFCHR
21269 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21272 #if defined S_ISLNK && defined S_IFREG
21273 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21276 #if defined S_ISSOCK && defined S_IFREG
21277 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21281 if ac_fn_c_try_compile "$LINENO"; then :
21282 ac_cv_header_stat_broken=no
21284 ac_cv_header_stat_broken=yes
21286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21289 $as_echo "$ac_cv_header_stat_broken" >&6; }
21290 if test $ac_cv_header_stat_broken = yes; then
21292 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21296 ac_header_dirent=no
21297 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21298 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21300 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
21302 $as_echo_n "(cached) " >&6
21304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21305 /* end confdefs.h. */
21306 #include <sys/types.h>
21318 if ac_fn_c_try_compile "$LINENO"; then :
21319 eval "$as_ac_Header=yes"
21321 eval "$as_ac_Header=no"
21323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21325 eval ac_res=\$$as_ac_Header
21326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21327 $as_echo "$ac_res" >&6; }
21328 eval as_val=\$$as_ac_Header
21329 if test "x$as_val" = x""yes; then :
21330 cat >>confdefs.h <<_ACEOF
21331 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21334 ac_header_dirent=$ac_hdr; break
21338 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21339 if test $ac_header_dirent = dirent.h; then
21340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21341 $as_echo_n "checking for library containing opendir... " >&6; }
21342 if test "${ac_cv_search_opendir+set}" = set; then :
21343 $as_echo_n "(cached) " >&6
21345 ac_func_search_save_LIBS=$LIBS
21346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21347 /* end confdefs.h. */
21349 /* Override any GCC internal prototype to avoid an error.
21350 Use char because int might match the return type of a GCC
21351 builtin and then its argument prototype would still apply. */
21364 for ac_lib in '' dir; do
21365 if test -z "$ac_lib"; then
21366 ac_res="none required"
21369 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21371 if ac_fn_c_try_link "$LINENO"; then :
21372 ac_cv_search_opendir=$ac_res
21374 rm -f core conftest.err conftest.$ac_objext \
21376 if test "${ac_cv_search_opendir+set}" = set; then :
21380 if test "${ac_cv_search_opendir+set}" = set; then :
21383 ac_cv_search_opendir=no
21385 rm conftest.$ac_ext
21386 LIBS=$ac_func_search_save_LIBS
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21389 $as_echo "$ac_cv_search_opendir" >&6; }
21390 ac_res=$ac_cv_search_opendir
21391 if test "$ac_res" != no; then :
21392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21398 $as_echo_n "checking for library containing opendir... " >&6; }
21399 if test "${ac_cv_search_opendir+set}" = set; then :
21400 $as_echo_n "(cached) " >&6
21402 ac_func_search_save_LIBS=$LIBS
21403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21404 /* end confdefs.h. */
21406 /* Override any GCC internal prototype to avoid an error.
21407 Use char because int might match the return type of a GCC
21408 builtin and then its argument prototype would still apply. */
21421 for ac_lib in '' x; do
21422 if test -z "$ac_lib"; then
21423 ac_res="none required"
21426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21428 if ac_fn_c_try_link "$LINENO"; then :
21429 ac_cv_search_opendir=$ac_res
21431 rm -f core conftest.err conftest.$ac_objext \
21433 if test "${ac_cv_search_opendir+set}" = set; then :
21437 if test "${ac_cv_search_opendir+set}" = set; then :
21440 ac_cv_search_opendir=no
21442 rm conftest.$ac_ext
21443 LIBS=$ac_func_search_save_LIBS
21445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21446 $as_echo "$ac_cv_search_opendir" >&6; }
21447 ac_res=$ac_cv_search_opendir
21448 if test "$ac_res" != no; then :
21449 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21455 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21457 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21458 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21459 eval as_val=\$$as_ac_var
21460 if test "x$as_val" = x""yes; then :
21461 cat >>confdefs.h <<_ACEOF
21462 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21468 for ac_func in nanosleep nl_langinfo
21470 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21471 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21472 eval as_val=\$$as_ac_var
21473 if test "x$as_val" = x""yes; then :
21474 cat >>confdefs.h <<_ACEOF
21475 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21481 for ac_header in varargs.h
21483 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21484 if test "x$ac_cv_header_varargs_h" = x""yes; then :
21485 cat >>confdefs.h <<_ACEOF
21486 #define HAVE_VARARGS_H 1
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21496 $as_echo_n "checking for Python support... " >&6; }
21498 # Check whether --with-python was given.
21499 if test "${with_python+set}" = set; then :
21500 withval=$with_python;
21503 if test "$withval" != "no"; then
21504 if test "$withval" = "yes"; then
21505 if test -e /usr/bin/python-config ; then
21506 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21507 PYTHON_LIBS=`/usr/bin/python-config --libs`
21509 for python_root in /usr /usr/local /usr/sfw; do
21510 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21511 if test -f $python_root/include/${ver}/Python.h; then
21512 PYTHON_INCDIR=-I$python_root/include/${ver}
21513 if test -d $python_root/lib64/${ver}/config; then
21514 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21516 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21523 if test x$PYTHON_INCDIR = x; then
21524 if test -f $prefix/include/Python.h; then
21525 PYTHON_INCDIR=-I$prefix/include
21526 if test -d $prefix/lib64/config; then
21527 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21529 PYTHON_LIBS="-L$prefix/lib/config -lpython"
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21533 $as_echo "no" >&6; }
21534 as_fn_error "Unable to find Python.h in standard locations" "$LINENO" 5
21539 if test -e $withval/bin/python-config ; then
21540 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21541 PYTHON_LIBS=`$withval/bin/python-config --libs`
21542 elif test -f $withval/Python.h; then
21543 PYTHON_INCDIR=-I$withval
21544 PYTHON_LIBS="-L$withval/config -lpython"
21545 elif test -f $withval/include/Python.h; then
21546 PYTHON_INCDIR=-I$withval/include
21547 if test -d $withval/lib64/config; then
21548 PYTHON_LIBS="-L$withval/lib64/config -lpython"
21550 PYTHON_LIBS="-L$withval/lib/config -lpython"
21552 elif test -f $withval/include/python/Python.h; then
21553 PYTHON_INCDIR=-I$withval/include/python
21554 if test -d $withval/lib64/python/config; then
21555 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21557 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21561 $as_echo "no" >&6; }
21562 as_fn_error "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21566 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21569 $as_echo "yes" >&6; }
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21572 $as_echo "$as_me: checking for more Python libs" >&6;}
21573 saved_LIBS="$LIBS"; LIBS=
21574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21575 $as_echo_n "checking for library containing shm_open... " >&6; }
21576 if test "${ac_cv_search_shm_open+set}" = set; then :
21577 $as_echo_n "(cached) " >&6
21579 ac_func_search_save_LIBS=$LIBS
21580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21581 /* end confdefs.h. */
21583 /* Override any GCC internal prototype to avoid an error.
21584 Use char because int might match the return type of a GCC
21585 builtin and then its argument prototype would still apply. */
21593 return shm_open ();
21598 for ac_lib in '' rt; do
21599 if test -z "$ac_lib"; then
21600 ac_res="none required"
21603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21605 if ac_fn_c_try_link "$LINENO"; then :
21606 ac_cv_search_shm_open=$ac_res
21608 rm -f core conftest.err conftest.$ac_objext \
21610 if test "${ac_cv_search_shm_open+set}" = set; then :
21614 if test "${ac_cv_search_shm_open+set}" = set; then :
21617 ac_cv_search_shm_open=no
21619 rm conftest.$ac_ext
21620 LIBS=$ac_func_search_save_LIBS
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21623 $as_echo "$ac_cv_search_shm_open" >&6; }
21624 ac_res=$ac_cv_search_shm_open
21625 if test "$ac_res" != no; then :
21626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21631 $as_echo_n "checking for openpty in -lutil... " >&6; }
21632 if test "${ac_cv_lib_util_openpty+set}" = set; then :
21633 $as_echo_n "(cached) " >&6
21635 ac_check_lib_save_LIBS=$LIBS
21636 LIBS="-lutil $LIBS"
21637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21638 /* end confdefs.h. */
21640 /* Override any GCC internal prototype to avoid an error.
21641 Use char because int might match the return type of a GCC
21642 builtin and then its argument prototype would still apply. */
21655 if ac_fn_c_try_link "$LINENO"; then :
21656 ac_cv_lib_util_openpty=yes
21658 ac_cv_lib_util_openpty=no
21660 rm -f core conftest.err conftest.$ac_objext \
21661 conftest$ac_exeext conftest.$ac_ext
21662 LIBS=$ac_check_lib_save_LIBS
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21665 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21666 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
21667 cat >>confdefs.h <<_ACEOF
21668 #define HAVE_LIBUTIL 1
21671 LIBS="-lutil $LIBS"
21675 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21679 $as_echo "no" >&6; }
21684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21685 $as_echo "no" >&6; }
21693 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21694 if test "x$ac_cv_func_socket" = x""yes; then :
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21696 $as_echo "using libc's socket" >&6; }
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21699 $as_echo_n "checking for socket in -lxnet... " >&6; }
21700 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
21701 $as_echo_n "(cached) " >&6
21703 ac_check_lib_save_LIBS=$LIBS
21704 LIBS="-lxnet $LIBS"
21705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21706 /* end confdefs.h. */
21708 /* Override any GCC internal prototype to avoid an error.
21709 Use char because int might match the return type of a GCC
21710 builtin and then its argument prototype would still apply. */
21723 if ac_fn_c_try_link "$LINENO"; then :
21724 ac_cv_lib_xnet_socket=yes
21726 ac_cv_lib_xnet_socket=no
21728 rm -f core conftest.err conftest.$ac_objext \
21729 conftest$ac_exeext conftest.$ac_ext
21730 LIBS=$ac_check_lib_save_LIBS
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21733 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21734 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
21735 cat >>confdefs.h <<_ACEOF
21736 #define HAVE_LIBXNET 1
21739 LIBS="-lxnet $LIBS"
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21744 $as_echo_n "checking for socket in -lsocket... " >&6; }
21745 if test "${ac_cv_lib_socket_socket+set}" = set; then :
21746 $as_echo_n "(cached) " >&6
21748 ac_check_lib_save_LIBS=$LIBS
21749 LIBS="-lsocket $LIBS"
21750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21751 /* end confdefs.h. */
21753 /* Override any GCC internal prototype to avoid an error.
21754 Use char because int might match the return type of a GCC
21755 builtin and then its argument prototype would still apply. */
21768 if ac_fn_c_try_link "$LINENO"; then :
21769 ac_cv_lib_socket_socket=yes
21771 ac_cv_lib_socket_socket=no
21773 rm -f core conftest.err conftest.$ac_objext \
21774 conftest$ac_exeext conftest.$ac_ext
21775 LIBS=$ac_check_lib_save_LIBS
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21778 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21779 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
21780 cat >>confdefs.h <<_ACEOF
21781 #define HAVE_LIBSOCKET 1
21784 LIBS="-lsocket $LIBS"
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21789 $as_echo_n "checking for socket in -linet... " >&6; }
21790 if test "${ac_cv_lib_inet_socket+set}" = set; then :
21791 $as_echo_n "(cached) " >&6
21793 ac_check_lib_save_LIBS=$LIBS
21794 LIBS="-linet $LIBS"
21795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21796 /* end confdefs.h. */
21798 /* Override any GCC internal prototype to avoid an error.
21799 Use char because int might match the return type of a GCC
21800 builtin and then its argument prototype would still apply. */
21813 if ac_fn_c_try_link "$LINENO"; then :
21814 ac_cv_lib_inet_socket=yes
21816 ac_cv_lib_inet_socket=no
21818 rm -f core conftest.err conftest.$ac_objext \
21819 conftest$ac_exeext conftest.$ac_ext
21820 LIBS=$ac_check_lib_save_LIBS
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21823 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21824 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
21825 cat >>confdefs.h <<_ACEOF
21826 #define HAVE_LIBINET 1
21829 LIBS="-linet $LIBS"
21839 # Check whether --with-tcp-wrappers was given.
21840 if test "${with_tcp_wrappers+set}" = set; then :
21841 withval=$with_tcp_wrappers;
21842 if test "x$withval" != "xno" ; then
21844 LIBS="$saved_LIBS -lwrap"
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21846 $as_echo_n "checking for library containing nanosleep... " >&6; }
21847 if test "${ac_cv_search_nanosleep+set}" = set; then :
21848 $as_echo_n "(cached) " >&6
21850 ac_func_search_save_LIBS=$LIBS
21851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21852 /* end confdefs.h. */
21854 /* Override any GCC internal prototype to avoid an error.
21855 Use char because int might match the return type of a GCC
21856 builtin and then its argument prototype would still apply. */
21864 return nanosleep ();
21869 for ac_lib in '' rt; do
21870 if test -z "$ac_lib"; then
21871 ac_res="none required"
21874 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21876 if ac_fn_c_try_link "$LINENO"; then :
21877 ac_cv_search_nanosleep=$ac_res
21879 rm -f core conftest.err conftest.$ac_objext \
21881 if test "${ac_cv_search_nanosleep+set}" = set; then :
21885 if test "${ac_cv_search_nanosleep+set}" = set; then :
21888 ac_cv_search_nanosleep=no
21890 rm conftest.$ac_ext
21891 LIBS=$ac_func_search_save_LIBS
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
21894 $as_echo "$ac_cv_search_nanosleep" >&6; }
21895 ac_res=$ac_cv_search_nanosleep
21896 if test "$ac_res" != no; then :
21897 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
21902 $as_echo_n "checking for libwrap... " >&6; }
21903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21904 /* end confdefs.h. */
21906 #include <sys/types.h>
21908 int deny_severity = 0;
21909 int allow_severity = 0;
21910 struct request_info *req;
21922 if ac_fn_c_try_link "$LINENO"; then :
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21925 $as_echo "yes" >&6; }
21927 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21935 LIBS="$saved_LIBS -lwrap -lnsl"
21936 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
21937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21938 /* end confdefs.h. */
21940 #include <sys/types.h>
21942 int deny_severity = 0;
21943 int allow_severity = 0;
21944 struct request_info *req;
21956 if ac_fn_c_try_link "$LINENO"; then :
21958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21959 $as_echo "yes" >&6; }
21961 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21969 as_fn_error "*** libwrap missing" "$LINENO" 5
21973 rm -f core conftest.err conftest.$ac_objext \
21974 conftest$ac_exeext conftest.$ac_ext
21978 rm -f core conftest.err conftest.$ac_objext \
21979 conftest$ac_exeext conftest.$ac_ext
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
21987 $as_echo_n "checking for OpenSSL... " >&6; }
21989 # Check whether --with-openssl was given.
21990 if test "${with_openssl+set}" = set; then :
21991 withval=$with_openssl;
21992 with_openssl_directory=${withval}
21998 if test "x$with_openssl_directory" != "xno"; then
21999 OPENSSL_LIBS="-lssl -lcrypto"
22002 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22004 # Make sure the $with_openssl_directory also makes sense
22006 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22007 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22008 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22012 saved_LIBS="${LIBS}"
22013 saved_CFLAGS="${CFLAGS}"
22014 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22015 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22018 /* end confdefs.h. */
22020 #include <openssl/ssl.h>
22026 CRYPTO_set_id_callback(NULL);
22032 if ac_fn_c_try_link "$LINENO"; then :
22035 support_crypto="yes"
22040 support_crypto="no"
22044 rm -f core conftest.err conftest.$ac_objext \
22045 conftest$ac_exeext conftest.$ac_ext
22047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22048 /* end confdefs.h. */
22050 #include <openssl/evp.h>
22062 if ac_fn_c_try_link "$LINENO"; then :
22064 ac_cv_openssl_sha2="yes"
22068 ac_cv_openssl_sha2="no"
22072 rm -f core conftest.err conftest.$ac_objext \
22073 conftest$ac_exeext conftest.$ac_ext
22075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22076 /* end confdefs.h. */
22078 #include <openssl/evp.h>
22090 if ac_fn_c_try_link "$LINENO"; then :
22092 ac_cv_openssl_export="no"
22096 ac_cv_openssl_export="yes"
22100 rm -f core conftest.err conftest.$ac_objext \
22101 conftest$ac_exeext conftest.$ac_ext
22103 LIBS="${saved_LIBS}"
22104 CFLAGS="${saved_CFLAGS}"
22106 if test "$support_tls" = "yes"; then
22108 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22111 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22114 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22118 if test "$ac_cv_openssl_sha2" = "yes"; then
22120 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22124 if test "$ac_cv_openssl_export" = "yes"; then
22126 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22131 support_crypto="no"
22136 if test "$support_tls" = "no"; then
22140 if test "$support_crypto" = "no"; then
22144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lssl" >&5
22145 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lssl... " >&6; }
22146 if test "${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+set}" = set; then :
22147 $as_echo_n "(cached) " >&6
22149 ac_check_lib_save_LIBS=$LIBS
22151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22152 /* end confdefs.h. */
22154 /* Override any GCC internal prototype to avoid an error.
22155 Use char because int might match the return type of a GCC
22156 builtin and then its argument prototype would still apply. */
22160 char EVP_PKEY_encrypt_old ();
22164 return EVP_PKEY_encrypt_old ();
22169 if ac_fn_c_try_link "$LINENO"; then :
22170 ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
22172 ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
22174 rm -f core conftest.err conftest.$ac_objext \
22175 conftest$ac_exeext conftest.$ac_ext
22176 LIBS=$ac_check_lib_save_LIBS
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
22179 $as_echo "$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
22180 if test "x$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" = x""yes; then :
22182 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22189 $as_echo "$support_tls" >&6; }
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22194 $as_echo_n "checking for library containing dlopen... " >&6; }
22195 if test "${ac_cv_search_dlopen+set}" = set; then :
22196 $as_echo_n "(cached) " >&6
22198 ac_func_search_save_LIBS=$LIBS
22199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22200 /* end confdefs.h. */
22202 /* Override any GCC internal prototype to avoid an error.
22203 Use char because int might match the return type of a GCC
22204 builtin and then its argument prototype would still apply. */
22217 for ac_lib in '' dl; do
22218 if test -z "$ac_lib"; then
22219 ac_res="none required"
22222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22224 if ac_fn_c_try_link "$LINENO"; then :
22225 ac_cv_search_dlopen=$ac_res
22227 rm -f core conftest.err conftest.$ac_objext \
22229 if test "${ac_cv_search_dlopen+set}" = set; then :
22233 if test "${ac_cv_search_dlopen+set}" = set; then :
22236 ac_cv_search_dlopen=no
22238 rm conftest.$ac_ext
22239 LIBS=$ac_func_search_save_LIBS
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22242 $as_echo "$ac_cv_search_dlopen" >&6; }
22243 ac_res=$ac_cv_search_dlopen
22244 if test "$ac_res" != no; then :
22245 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22250 working_dir=`eval echo ${prefix}/var/bacula/working`
22252 # Check whether --with-working-dir was given.
22253 if test "${with_working_dir+set}" = set; then :
22254 withval=$with_working_dir;
22255 if test "x$withval" != "xno" ; then
22256 working_dir=$withval
22267 # Check whether --with-archivedir was given.
22268 if test "${with_archivedir+set}" = set; then :
22269 withval=$with_archivedir;
22270 if test "x$withval" != "xno" ; then
22271 archivedir=$withval
22280 basename=`hostname`
22282 # Check whether --with-basename was given.
22283 if test "${with_basename+set}" = set; then :
22284 withval=$with_basename;
22285 if test "x$withval" != "xno" ; then
22295 hostname=`uname -n | cut -d '.' -f 1`
22296 if test x${hostname} = x ; then
22297 hostname="localhost"
22300 # Check whether --with-hostname was given.
22301 if test "${with_hostname+set}" = set; then :
22302 withval=$with_hostname;
22303 if test "x$withval" != "xno" ; then
22314 scriptdir=`eval echo ${sysconfdir}`
22316 # Check whether --with-scriptdir was given.
22317 if test "${with_scriptdir+set}" = set; then :
22318 withval=$with_scriptdir;
22319 if test "x$withval" != "xno" ; then
22332 # Check whether --with-bsrdir was given.
22333 if test "${with_bsrdir+set}" = set; then :
22334 withval=$with_bsrdir;
22335 if test "x$withval" != "xno" ; then
22347 # Check whether --with-logdir was given.
22348 if test "${with_logdir+set}" = set; then :
22349 withval=$with_logdir;
22350 if test "x$withval" != "xno" ; then
22361 # ------------------------------------------
22362 # Where to place plugindir (plugin files)
22363 # ------------------------------------------
22364 plugindir=`eval echo ${libdir}`
22366 # Check whether --with-plugindir was given.
22367 if test "${with_plugindir+set}" = set; then :
22368 withval=$with_plugindir;
22369 if test "x$withval" != "xno" ; then
22379 dump_email=root@localhost
22381 # Check whether --with-dump-email was given.
22382 if test "${with_dump_email+set}" = set; then :
22383 withval=$with_dump_email;
22384 if test "x$withval" != "xno" ; then
22385 dump_email=$withval
22394 job_email=root@localhost
22396 # Check whether --with-job-email was given.
22397 if test "${with_job_email+set}" = set; then :
22398 withval=$with_job_email;
22399 if test "x$withval" != "xno" ; then
22409 smtp_host=localhost
22411 # Check whether --with-smtp_host was given.
22412 if test "${with_smtp_host+set}" = set; then :
22413 withval=$with_smtp_host;
22414 if test "x$withval" != "xno" ; then
22426 # Check whether --with-pid-dir was given.
22427 if test "${with_pid_dir+set}" = set; then :
22428 withval=$with_pid_dir;
22429 if test "x$withval" != "xno" ; then
22437 cat >>confdefs.h <<_ACEOF
22438 #define _PATH_BACULA_PIDDIR "$piddir"
22443 subsysdir=/var/run/subsys
22444 if test -d /var/run/subsys; then
22445 subsysdir=/var/run/subsys
22446 elif test -d /var/lock/subsys; then
22447 subsysdir=/var/lock/subsys
22449 subsysdir=/var/run/subsys
22452 # Check whether --with-subsys-dir was given.
22453 if test "${with_subsys_dir+set}" = set; then :
22454 withval=$with_subsys_dir;
22455 if test "x$withval" != "xno" ; then
22467 # Check whether --with-baseport was given.
22468 if test "${with_baseport+set}" = set; then :
22469 withval=$with_baseport;
22470 if test "x$withval" != "xno" ; then
22479 dir_port=`expr $baseport`
22480 fd_port=`expr $baseport + 1`
22481 sd_port=`expr $fd_port + 1`
22489 # Check whether --with-dir-password was given.
22490 if test "${with_dir_password+set}" = set; then :
22491 withval=$with_dir_password;
22492 if test "x$withval" != "xno" ; then
22493 dir_password=$withval
22500 if test "x$dir_password" = "x" ; then
22501 if test "x$OPENSSL" = "xnone" ; then
22502 key=`autoconf/randpass 33`
22504 key=`openssl rand -base64 33`
22511 # Check whether --with-fd-password was given.
22512 if test "${with_fd_password+set}" = set; then :
22513 withval=$with_fd_password;
22514 if test "x$withval" != "xno" ; then
22515 fd_password=$withval
22522 if test "x$fd_password" = "x" ; then
22523 if test "x$OPENSSL" = "xnone" ; then
22524 key=`autoconf/randpass 37`
22526 key=`openssl rand -base64 33`
22533 # Check whether --with-sd-password was given.
22534 if test "${with_sd_password+set}" = set; then :
22535 withval=$with_sd_password;
22536 if test "x$withval" != "xno" ; then
22537 sd_password=$withval
22544 if test "x$sd_password" = "x" ; then
22545 if test "x$OPENSSL" = "xnone" ; then
22546 key=`autoconf/randpass 41`
22548 key=`openssl rand -base64 33`
22555 # Check whether --with-mon-dir-password was given.
22556 if test "${with_mon_dir_password+set}" = set; then :
22557 withval=$with_mon_dir_password;
22558 if test "x$withval" != "xno" ; then
22559 mon_dir_password=$withval
22566 if test "x$mon_dir_password" = "x" ; then
22567 if test "x$OPENSSL" = "xnone" ; then
22568 key=`autoconf/randpass 33`
22570 key=`openssl rand -base64 33`
22572 mon_dir_password=$key
22577 # Check whether --with-mon-fd-password was given.
22578 if test "${with_mon_fd_password+set}" = set; then :
22579 withval=$with_mon_fd_password;
22580 if test "x$withval" != "xno" ; then
22581 mon_fd_password=$withval
22588 if test "x$mon_fd_password" = "x" ; then
22589 if test "x$OPENSSL" = "xnone" ; then
22590 key=`autoconf/randpass 37`
22592 key=`openssl rand -base64 33`
22594 mon_fd_password=$key
22599 # Check whether --with-mon-sd-password was given.
22600 if test "${with_mon_sd_password+set}" = set; then :
22601 withval=$with_mon_sd_password;
22602 if test "x$withval" != "xno" ; then
22603 mon_sd_password=$withval
22610 if test "x$mon_sd_password" = "x" ; then
22611 if test "x$OPENSSL" = "xnone" ; then
22612 key=`autoconf/randpass 41`
22614 key=`openssl rand -base64 33`
22616 mon_sd_password=$key
22628 # Check whether --with-db_name was given.
22629 if test "${with_db_name+set}" = set; then :
22630 withval=$with_db_name;
22631 if test "x$withval" != "x" ; then
22642 # Check whether --with-db_user was given.
22643 if test "${with_db_user+set}" = set; then :
22644 withval=$with_db_user;
22645 if test "x$withval" != "x" ; then
22656 # Check whether --with-db_password was given.
22657 if test "${with_db_password+set}" = set; then :
22658 withval=$with_db_password;
22659 if test "x$withval" != "x" ; then
22660 db_password=$withval
22670 # Check whether --with-db_port was given.
22671 if test "${with_db_port+set}" = set; then :
22672 withval=$with_db_port;
22673 if test "x$withval" != "x" ; then
22683 # Handle users and groups for each daemon
22687 # Check whether --with-dir_user was given.
22688 if test "${with_dir_user+set}" = set; then :
22689 withval=$with_dir_user;
22690 if test "x$withval" != "x" ; then
22700 # Check whether --with-dir_group was given.
22701 if test "${with_dir_group+set}" = set; then :
22702 withval=$with_dir_group;
22703 if test "x$withval" != "x" ; then
22713 # Check whether --with-sd_user was given.
22714 if test "${with_sd_user+set}" = set; then :
22715 withval=$with_sd_user;
22716 if test "x$withval" != "x" ; then
22726 # Check whether --with-sd_group was given.
22727 if test "${with_sd_group+set}" = set; then :
22728 withval=$with_sd_group;
22729 if test "x$withval" != "x" ; then
22739 # Check whether --with-fd_user was given.
22740 if test "${with_fd_user+set}" = set; then :
22741 withval=$with_fd_user;
22742 if test "x$withval" != "x" ; then
22752 # Check whether --with-fd_group was given.
22753 if test "${with_fd_group+set}" = set; then :
22754 withval=$with_fd_group;
22755 if test "x$withval" != "x" ; then
22772 # Check whether --with-sbin-perm was given.
22773 if test "${with_sbin_perm+set}" = set; then :
22774 withval=$with_sbin_perm;
22775 if test "x$withval" != "x" ; then
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22789 $as_echo_n "checking for PostgreSQL support... " >&6; }
22791 # Check whether --with-postgresql was given.
22792 if test "${with_postgresql+set}" = set; then :
22793 withval=$with_postgresql;
22794 if test "$withval" != "no"; then
22795 if test "$db_found" = "yes"; then
22796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
22797 $as_echo "error" >&6; }
22798 as_fn_error "\"You can configure for only one database.\"" "$LINENO" 5;
22800 if test "$withval" = "yes"; then
22801 PG_CONFIG=`which pg_config`
22802 if test -n "$PG_CONFIG";then
22803 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22804 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22805 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22806 elif test -f /usr/local/include/libpq-fe.h; then
22807 POSTGRESQL_INCDIR=/usr/local/include
22808 if test -d /usr/local/lib64; then
22809 POSTGRESQL_LIBDIR=/usr/local/lib64
22811 POSTGRESQL_LIBDIR=/usr/local/lib
22813 POSTGRESQL_BINDIR=/usr/local/bin
22814 elif test -f /usr/include/libpq-fe.h; then
22815 POSTGRESQL_INCDIR=/usr/include
22816 if test -d /usr/lib64; then
22817 POSTGRESQL_LIBDIR=/usr/lib64
22819 POSTGRESQL_LIBDIR=/usr/lib
22821 POSTGRESQL_BINDIR=/usr/bin
22822 elif test -f /usr/include/pgsql/libpq-fe.h; then
22823 POSTGRESQL_INCDIR=/usr/include/pgsql
22824 if test -d /usr/lib64/pgsql; then
22825 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22827 POSTGRESQL_LIBDIR=/usr/lib/pgsql
22829 POSTGRESQL_BINDIR=/usr/bin
22830 elif test -f /usr/include/postgresql/libpq-fe.h; then
22831 POSTGRESQL_INCDIR=/usr/include/postgresql
22832 if test -d /usr/lib64/postgresql; then
22833 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22835 POSTGRESQL_LIBDIR=/usr/lib/postgresql
22837 POSTGRESQL_BINDIR=/usr/bin
22839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22840 $as_echo "no" >&6; }
22841 as_fn_error "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22843 elif test -f $withval/include/libpq-fe.h; then
22844 POSTGRESQL_INCDIR=$withval/include
22845 POSTGRESQL_LIBDIR=$withval/lib
22846 POSTGRESQL_BINDIR=$withval/bin
22847 elif test -f $withval/include/postgresql/libpq-fe.h; then
22848 POSTGRESQL_INCDIR=$withval/include/postgresql
22849 if test -d $withval/lib64; then
22850 POSTGRESQL_LIBDIR=$withval/lib64
22852 POSTGRESQL_LIBDIR=$withval/lib
22854 POSTGRESQL_BINDIR=$withval/bin
22856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22857 $as_echo "no" >&6; }
22858 as_fn_error "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22860 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
22861 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22862 if test "x$ac_cv_func_crypt" = x""yes; then :
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22866 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22867 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22868 $as_echo_n "(cached) " >&6
22870 ac_check_lib_save_LIBS=$LIBS
22871 LIBS="-lcrypt $LIBS"
22872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22873 /* end confdefs.h. */
22875 /* Override any GCC internal prototype to avoid an error.
22876 Use char because int might match the return type of a GCC
22877 builtin and then its argument prototype would still apply. */
22890 if ac_fn_c_try_link "$LINENO"; then :
22891 ac_cv_lib_crypt_crypt=yes
22893 ac_cv_lib_crypt_crypt=no
22895 rm -f core conftest.err conftest.$ac_objext \
22896 conftest$ac_exeext conftest.$ac_ext
22897 LIBS=$ac_check_lib_save_LIBS
22899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22900 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22901 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
22902 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
22907 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
22908 SQL_LFLAGS=$POSTGRESQL_LFLAGS
22909 SQL_BINDIR=$POSTGRESQL_BINDIR
22910 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
22912 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22915 $as_echo "yes" >&6; }
22917 support_postgresql=yes
22921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22922 $as_echo "no" >&6; }
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22928 $as_echo "no" >&6; }
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
22941 $as_echo_n "checking for MySQL support... " >&6; }
22943 # Check whether --with-mysql was given.
22944 if test "${with_mysql+set}" = set; then :
22945 withval=$with_mysql;
22946 if test "$withval" != "no"; then
22947 if test "$withval" = "yes"; then
22948 if test -f /usr/local/mysql/include/mysql/mysql.h; then
22949 MYSQL_INCDIR=/usr/local/mysql/include/mysql
22950 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
22951 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
22952 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
22954 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
22956 MYSQL_BINDIR=/usr/local/mysql/bin
22957 elif test -f /usr/include/mysql/mysql.h; then
22958 MYSQL_INCDIR=/usr/include/mysql
22959 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
22960 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
22961 MYSQL_LIBDIR=/usr/lib64/mysql
22962 elif test -f /usr/lib64/libmysqlclient_r.a \
22963 -o -f /usr/lib64/libmysqlclient_r.so; then
22964 MYSQL_LIBDIR=/usr/lib64
22965 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
22966 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
22967 MYSQL_LIBDIR=/usr/lib/mysql
22969 MYSQL_LIBDIR=/usr/lib
22971 MYSQL_BINDIR=/usr/bin
22972 elif test -f /usr/include/mysql.h; then
22973 MYSQL_INCDIR=/usr/include
22974 if test -f /usr/lib64/libmysqlclient_r.a \
22975 -o -f /usr/lib64/libmysqlclient_r.so; then
22976 MYSQL_LIBDIR=/usr/lib64
22978 MYSQL_LIBDIR=/usr/lib
22980 MYSQL_BINDIR=/usr/bin
22981 elif test -f /usr/local/include/mysql/mysql.h; then
22982 MYSQL_INCDIR=/usr/local/include/mysql
22983 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
22984 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
22985 MYSQL_LIBDIR=/usr/local/lib64/mysql
22987 MYSQL_LIBDIR=/usr/local/lib/mysql
22989 MYSQL_BINDIR=/usr/local/bin
22990 elif test -f /usr/local/include/mysql.h; then
22991 MYSQL_INCDIR=/usr/local/include
22992 if test -f /usr/local/lib64/libmysqlclient_r.a \
22993 -o -f /usr/local/lib64/libmysqlclient_r.so; then
22994 MYSQL_LIBDIR=/usr/local/lib64
22996 MYSQL_LIBDIR=/usr/local/lib
22998 MYSQL_BINDIR=/usr/local/bin
23000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23001 $as_echo "no" >&6; }
23002 as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23005 if test -f $withval/include/mysql/mysql.h; then
23006 MYSQL_INCDIR=$withval/include/mysql
23007 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23008 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23009 MYSQL_LIBDIR=$withval/lib64/mysql
23010 elif test -f $withval/lib64/libmysqlclient_r.a \
23011 -o -f $withval/lib64/libmysqlclient_r.so; then
23012 MYSQL_LIBDIR=$withval/lib64
23013 elif test -f $withval/lib/libmysqlclient_r.a \
23014 -o -f $withval/lib/libmysqlclient_r.so; then
23015 MYSQL_LIBDIR=$withval/lib
23017 MYSQL_LIBDIR=$withval/lib/mysql
23019 MYSQL_BINDIR=$withval/bin
23020 elif test -f $withval/include/mysql.h; then
23021 MYSQL_INCDIR=$withval/include
23022 if test -f $withval/lib64/libmysqlclient_r.a \
23023 -o -f $withval/lib64/libmysqlclient_r.so; then
23024 MYSQL_LIBDIR=$withval/lib64
23026 MYSQL_LIBDIR=$withval/lib
23028 MYSQL_BINDIR=$withval/bin
23030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23031 $as_echo "no" >&6; }
23032 as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23035 SQL_INCLUDE=-I$MYSQL_INCDIR
23036 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23037 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23038 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23039 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23042 SQL_BINDIR=$MYSQL_BINDIR
23043 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23046 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23049 $as_echo "yes" >&6; }
23056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23057 $as_echo "no" >&6; }
23065 # Check whether --with-embedded-mysql was given.
23066 if test "${with_embedded_mysql+set}" = set; then :
23067 withval=$with_embedded_mysql;
23068 if test "$withval" != "no"; then
23069 if test "$withval" = "yes"; then
23070 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23071 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23072 if test -d /usr/local/mysql/lib64/mysql; then
23073 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23075 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23077 MYSQL_BINDIR=/usr/local/mysql/bin
23078 elif test -f /usr/include/mysql/mysql.h; then
23079 MYSQL_INCDIR=/usr/include/mysql
23080 if test -d /usr/lib64/mysql; then
23081 MYSQL_LIBDIR=/usr/lib64/mysql
23083 MYSQL_LIBDIR=/usr/lib/mysql
23085 MYSQL_BINDIR=/usr/bin
23086 elif test -f /usr/include/mysql.h; then
23087 MYSQL_INCDIR=/usr/include
23088 if test -d /usr/lib64; then
23089 MYSQL_LIBDIR=/usr/lib64
23091 MYSQL_LIBDIR=/usr/lib
23093 MYSQL_BINDIR=/usr/bin
23094 elif test -f /usr/local/include/mysql/mysql.h; then
23095 MYSQL_INCDIR=/usr/local/include/mysql
23096 if test -d /usr/local/lib64/mysql; then
23097 MYSQL_LIBDIR=/usr/local/lib64/mysql
23099 MYSQL_LIBDIR=/usr/local/lib/mysql
23101 MYSQL_BINDIR=/usr/local/bin
23102 elif test -f /usr/local/include/mysql.h; then
23103 MYSQL_INCDIR=/usr/local/include
23104 if test -d /usr/local/lib64; then
23105 MYSQL_LIBDIR=/usr/local/lib64
23107 MYSQL_LIBDIR=/usr/local/lib
23109 MYSQL_BINDIR=/usr/local/bin
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23112 $as_echo "no" >&6; }
23113 as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23116 if test -f $withval/include/mysql/mysql.h; then
23117 MYSQL_INCDIR=$withval/include/mysql
23118 if test -d $withval/lib64/mysql; then
23119 MYSQL_LIBDIR=$withval/lib64/mysql
23121 MYSQL_LIBDIR=$withval/lib/mysql
23123 MYSQL_BINDIR=$withval/bin
23124 elif test -f $withval/include/mysql.h; then
23125 MYSQL_INCDIR=$withval/include
23126 if test -d $withval/lib64; then
23127 MYSQL_LIBDIR=$withval/lib64
23129 MYSQL_LIBDIR=$withval/lib
23131 MYSQL_BINDIR=$withval/bin
23133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23134 $as_echo "no" >&6; }
23135 as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23138 SQL_INCLUDE=-I$MYSQL_INCDIR
23139 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23140 SQL_BINDIR=$MYSQL_BINDIR
23141 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23143 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23145 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23148 $as_echo "yes" >&6; }
23155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23156 $as_echo "no" >&6; }
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ingres support" >&5
23173 $as_echo_n "checking for Ingres support... " >&6; }
23175 # Check whether --with-ingres was given.
23176 if test "${with_ingres+set}" = set; then :
23177 withval=$with_ingres;
23178 if test "$withval" != "no"; then
23179 if test "$withval" = "yes"; then
23180 if test -f ${II_SYSTEM}/files/eqdefc.h; then
23181 INGRES_INCDIR=${II_SYSTEM}/files
23182 INGRES_LIBDIR=${II_SYSTEM}/lib
23183 INGRES_BINDIR=${II_SYSTEM}/bin
23184 elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
23185 INGRES_INCDIR=${II_SYSTEM}/ingres/files
23186 INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
23187 INGRES_BINDIR=${II_SYSTEM}/ingres/bin
23189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23190 $as_echo "no" >&6; }
23191 as_fn_error "Unable to find eqdefc.h in standard locations" "$LINENO" 5
23194 if test -f $withval/files/eqdefc.h; then
23195 INGRES_INCDIR=$withval/files
23196 INGRES_LIBDIR=$withval/lib
23197 INGRES_BINDIR=$withval/bin
23199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23200 $as_echo "no" >&6; }
23201 as_fn_error "Invalid Ingres directory $withval - unable to find Ingres headers under $withval" "$LINENO" 5
23204 SQL_INCLUDE=-I$INGRES_INCDIR
23205 SQL_LFLAGS="-L$INGRES_LIBDIR -lingres"
23206 SQL_BINDIR=$INGRES_BINDIR
23207 SQL_LIB=$INGRES_LIBDIR/libingres.a
23209 $as_echo "#define HAVE_INGRES 1" >>confdefs.h
23211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23212 $as_echo "yes" >&6; }
23219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23220 $as_echo "no" >&6; }
23225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23226 $as_echo "no" >&6; }
23238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23239 $as_echo_n "checking for SQLite3 support... " >&6; }
23241 # Check whether --with-sqlite3 was given.
23242 if test "${with_sqlite3+set}" = set; then :
23243 withval=$with_sqlite3;
23244 if test "$withval" != "no"; then
23245 if test "$withval" = "yes"; then
23246 if test -f /usr/local/include/sqlite3.h; then
23247 SQLITE_INCDIR=/usr/local/include
23248 if test -d /usr/local/lib64; then
23249 SQLITE_LIBDIR=/usr/local/lib64
23251 SQLITE_LIBDIR=/usr/local/lib
23253 SQLITE_BINDIR=/usr/local/bin
23254 elif test -f /usr/include/sqlite3.h; then
23255 SQLITE_INCDIR=/usr/include
23256 if test -d /usr/lib64; then
23257 SQLITE_LIBDIR=/usr/lib64
23259 SQLITE_LIBDIR=/usr/lib
23261 SQLITE_BINDIR=/usr/bin
23262 elif test -f $prefix/include/sqlite3.h; then
23263 SQLITE_INCDIR=$prefix/include
23264 if test -d $prefix/lib64; then
23265 SQLITE_LIBDIR=$prefix/lib64
23267 SQLITE_LIBDIR=$prefix/lib
23269 SQLITE_BINDIR=$prefix/bin
23271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23272 $as_echo "no" >&6; }
23273 as_fn_error "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23276 if test -f $withval/sqlite3.h; then
23277 SQLITE_INCDIR=$withval
23278 SQLITE_LIBDIR=$withval
23279 SQLITE_BINDIR=$withval
23280 elif test -f $withval/include/sqlite3.h; then
23281 SQLITE_INCDIR=$withval/include
23282 if test -d $withval/lib64; then
23283 SQLITE_LIBDIR=$withval/lib64
23285 SQLITE_LIBDIR=$withval/lib
23287 SQLITE_BINDIR=$withval/bin
23289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23290 $as_echo "no" >&6; }
23291 as_fn_error "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23294 SQL_INCLUDE=-I$SQLITE_INCDIR
23295 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
23296 SQL_BINDIR=$SQLITE_BINDIR
23297 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
23299 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23302 $as_echo "yes" >&6; }
23304 support_sqlite3=yes
23309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23310 $as_echo "no" >&6; }
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23316 $as_echo "no" >&6; }
23326 # BA_CHECK_SQLITE_DB
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI support" >&5
23331 $as_echo_n "checking for DBI support... " >&6; }
23333 # Check whether --with-dbi was given.
23334 if test "${with_dbi+set}" = set; then :
23336 if test "$withval" != "no"; then
23337 if test "$withval" = "yes"; then
23338 if test -f /usr/local/include/dbi/dbi.h; then
23339 DBI_INCDIR=/usr/local/dbi/include
23340 if test -d /usr/local/lib64; then
23341 DBI_LIBDIR=/usr/local/lib64
23343 DBI_LIBDIR=/usr/local/lib
23345 DBI_BINDIR=/usr/local/bin
23346 elif test -f /usr/include/dbi/dbi.h; then
23347 DBI_INCDIR=/usr/include
23348 if test -d /usr/lib64; then
23349 DBI_LIBDIR=/usr/lib64
23351 DBI_LIBDIR=/usr/lib
23353 DBI_BINDIR=/usr/bin
23354 elif test -f $prefix/include/dbi/dbi.h; then
23355 DBI_INCDIR=$prefix/include
23356 if test -d $prefix/lib64; then
23357 DBI_LIBDIR=$prefix/lib64
23359 DBI_LIBDIR=$prefix/lib
23361 DBI_BINDIR=$prefix/bin
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23364 $as_echo "no" >&6; }
23365 as_fn_error "Unable to find dbi.h in standard locations" "$LINENO" 5
23367 if test -d /usr/local/lib/dbd; then
23368 DRIVERDIR=/usr/local/lib/dbd
23369 if test -d /usr/local/lib64/dbd; then
23370 DRIVERDIR=/usr/local/lib64/dbd
23372 DRIVERDIR=/usr/local/lib/dbd
23374 elif test -d /usr/lib/dbd; then
23375 DRIVERDIR=/usr/lib/dbd
23376 if test -d /usr/lib64/dbd; then
23377 DRIVERDIR=/usr/lib64/dbd
23379 DRIVERDIR=/usr/lib/dbd
23381 elif test -d $prefix/lib/dbd; then
23382 if test -d $prefix/lib64/dbd; then
23383 DRIVERDIR=$prefix/lib64/dbd
23385 DRIVERDIR=$prefix/lib/dbd
23387 elif test -d /usr/local/lib64/dbd; then
23388 DRIVERDIR=/usr/local/lib64/dbd
23389 elif test -d /usr/lib64/dbd; then
23390 DRIVERDIR=/usr/lib64/dbd
23391 elif test -d $prefix/lib64/dbd; then
23392 DRIVERDIR=$prefix/lib64/dbd
23394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23395 $as_echo "no" >&6; }
23396 as_fn_error "Unable to find DBD drivers in standard locations" "$LINENO" 5
23399 if test -f $withval/dbi.h; then
23400 DBI_INCDIR=$withval
23401 DBI_LIBDIR=$withval
23402 DBI_BINDIR=$withval
23403 elif test -f $withval/include/dbi/dbi.h; then
23404 DBI_INCDIR=$withval/include
23405 if test -d $withval/lib64; then
23406 DBI_LIBDIR=$withval/lib64
23408 DBI_LIBDIR=$withval/lib
23410 DBI_BINDIR=$withval/bin
23412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23413 $as_echo "no" >&6; }
23414 as_fn_error "Invalid DBI directory $withval - unable to find dbi.h under $withval" "$LINENO" 5
23416 if test -d $withval/dbd; then
23417 DRIVERDIR=$withval/dbd
23418 elif test -d $withval/lib/; then
23419 if test -d $withval/lib64/dbd; then
23420 DRIVERDIR=$withval/lib64/dbd
23422 DRIVERDIR=$withval/lib/dbd
23424 elif test -d $withval/lib64/dbd; then
23425 DRIVERDIR=$withval/lib64/dbd
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23428 $as_echo "no" >&6; }
23429 as_fn_error "Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" "$LINENO" 5
23432 SQL_INCLUDE=-I$DBI_INCDIR
23433 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
23434 SQL_BINDIR=$DBI_BINDIR
23435 SQL_LIB=$DBI_LIBDIR/libdbi.a
23436 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
23439 $as_echo "#define HAVE_DBI 1" >>confdefs.h
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23442 $as_echo "yes" >&6; }
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23451 $as_echo "no" >&6; }
23456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23457 $as_echo "no" >&6; }
23472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI drivers support" >&5
23473 $as_echo_n "checking for DBI drivers support... " >&6; }
23475 # Check whether --with-dbi-driver was given.
23476 if test "${with_dbi_driver+set}" = set; then :
23477 withval=$with_dbi_driver;
23478 if test "$withval" != "no"; then
23482 if test -f /usr/local/mysql/bin/mysql; then
23483 SQL_BINDIR=/usr/local/mysql/bin
23484 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23485 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23486 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
23488 SQL_LIBDIR=/usr/local/mysql/lib/mysql
23490 elif test -f /usr/bin/mysql; then
23491 SQL_BINDIR=/usr/bin
23492 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23493 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23494 SQL_LIBDIR=/usr/lib64/mysql
23495 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23496 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23497 SQL_LIBDIR=/usr/lib/mysql
23499 SQL_LIBDIR=/usr/lib
23501 elif test -f /usr/local/bin/mysql; then
23502 SQL_BINDIR=/usr/local/bin
23503 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23504 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23505 SQL_LIBDIR=/usr/local/lib64/mysql
23506 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
23507 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
23508 SQL_LIBDIR=/usr/local/lib/mysql
23510 SQL_LIBDIR=/usr/local/lib
23512 elif test -f $withval/bin/mysql; then
23513 SQL_BINDIR=$withval/bin
23514 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23515 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23516 SQL_LIBDIR=$withval/lib64/mysql
23517 elif test -f $withval/lib64/libmysqlclient_r.a \
23518 -o -f $withval/lib64/libmysqlclient_r.so; then
23519 SQL_LIBDIR=$withval/lib64
23520 elif test -f $withval/lib/libmysqlclient_r.a \
23521 -o -f $withval/lib/libmysqlclient_r.so; then
23522 SQL_LIBDIR=$withval/lib/
23524 SQL_LIBDIR=$withval/lib/mysql
23527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23528 $as_echo "no" >&6; }
23529 as_fn_error "Unable to find mysql in standard locations" "$LINENO" 5
23531 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
23532 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
23534 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
23538 db_prog="postgresql"
23539 PG_CONFIG=`which pg_config`
23540 if test -n "$PG_CONFIG"; then
23541 SQL_BINDIR=`"$PG_CONFIG" --bindir`
23542 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
23543 elif test -f /usr/local/bin/psql; then
23544 SQL_BINDIR=/usr/local/bin
23545 if test -d /usr/local/lib64; then
23546 SQL_LIBDIR=/usr/local/lib64
23548 SQL_LIBDIR=/usr/local/lib
23550 elif test -f /usr/bin/psql; then
23551 SQL_BINDIR=/usr/local/bin
23552 if test -d /usr/lib64/postgresql; then
23553 SQL_LIBDIR=/usr/lib64/postgresql
23554 elif test -d /usr/lib/postgresql; then
23555 SQL_LIBDIR=/usr/lib/postgresql
23556 elif test -d /usr/lib64; then
23557 SQL_LIBDIR=/usr/lib64
23559 SQL_LIBDIR=/usr/lib
23561 elif test -f $withval/bin/psql; then
23562 SQL_BINDIR=$withval/bin
23563 if test -d $withval/lib64; then
23564 SQL_LIBDIR=$withval/lib64
23566 SQL_LIBDIR=$withval/lib
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23570 $as_echo "no" >&6; }
23571 as_fn_error "Unable to find psql in standard locations" "$LINENO" 5
23573 if test -f $SQL_LIBDIR/libpq.so; then
23574 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
23576 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
23581 if test -f /usr/local/bin/sqlite; then
23582 SQL_BINDIR=/usr/local/bin
23583 if test -d /usr/local/lib64; then
23584 SQL_LIBDIR=/usr/local/lib64
23586 SQL_LIBDIR=/usr/local/lib
23588 elif test -f /usr/bin/sqlite; then
23589 SQL_BINDIR=/usr/bin
23590 if test -d /usr/lib64; then
23591 SQL_LIBDIR=/usr/lib64
23593 SQL_LIBDIR=/usr/lib
23595 elif test -f $withval/bin/sqlite; then
23596 SQL_BINDIR=$withval/bin
23597 if test -d $withval/lib64; then
23598 SQL_LIBDIR=$withval/lib64
23600 SQL_LIBDIR=$withval/lib
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23604 $as_echo "no" >&6; }
23605 as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23607 if test -f $SQL_LIBDIR/libsqlite.so; then
23608 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
23610 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
23615 if test -f /usr/local/bin/sqlite3; then
23616 SQL_BINDIR=/usr/local/bin
23617 if test -d /usr/local/lib64; then
23618 SQL_LIBDIR=/usr/local/lib64
23620 SQL_LIBDIR=/usr/local/lib
23622 elif test -f /usr/bin/sqlite3; then
23623 SQL_BINDIR=/usr/bin
23624 if test -d /usr/lib64; then
23625 SQL_LIBDIR=/usr/lib64
23627 SQL_LIBDIR=/usr/lib
23629 elif test -f $withval/bin/sqlite3; then
23630 SQL_BINDIR=$withval/bin
23631 if test -d $withval/lib64; then
23632 SQL_LIBDIR=$withval/lib64
23634 SQL_LIBDIR=$withval/lib
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23638 $as_echo "no" >&6; }
23639 as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23641 if test -f $SQL_LIBDIR/libsqlite3.so; then
23642 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
23644 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
23648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23649 $as_echo "no" >&6; }
23650 as_fn_error "Unable to set DBI driver. $withval is not supported" "$LINENO" 5
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23655 $as_echo "yes" >&6; }
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23659 $as_echo "no" >&6; }
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23665 $as_echo "no" >&6; }
23678 support_batch_insert=no
23679 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
23681 if test $pkg = 0; then
23682 support_batch_insert=yes
23683 # Check whether --enable-batch-insert was given.
23684 if test "${enable_batch_insert+set}" = set; then :
23685 enableval=$enable_batch_insert;
23686 if test x$enableval = xno; then
23687 support_batch_insert=no
23689 support_batch_insert=yes
23697 saved_LIBS="${LIBS}"
23698 LIBS="${saved_LIBS} ${SQL_LFLAGS}"
23700 if test x$DB_TYPE = xpostgresql; then
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23702 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23703 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23704 $as_echo_n "(cached) " >&6
23706 ac_check_lib_save_LIBS=$LIBS
23708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23709 /* end confdefs.h. */
23711 /* Override any GCC internal prototype to avoid an error.
23712 Use char because int might match the return type of a GCC
23713 builtin and then its argument prototype would still apply. */
23717 char PQisthreadsafe ();
23721 return PQisthreadsafe ();
23726 if ac_fn_c_try_link "$LINENO"; then :
23727 ac_cv_lib_pq_PQisthreadsafe=yes
23729 ac_cv_lib_pq_PQisthreadsafe=no
23731 rm -f core conftest.err conftest.$ac_objext \
23732 conftest$ac_exeext conftest.$ac_ext
23733 LIBS=$ac_check_lib_save_LIBS
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23736 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23737 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23739 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23744 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23745 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23746 $as_echo_n "(cached) " >&6
23748 ac_check_lib_save_LIBS=$LIBS
23750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23751 /* end confdefs.h. */
23753 /* Override any GCC internal prototype to avoid an error.
23754 Use char because int might match the return type of a GCC
23755 builtin and then its argument prototype would still apply. */
23759 char PQputCopyData ();
23763 return PQputCopyData ();
23768 if ac_fn_c_try_link "$LINENO"; then :
23769 ac_cv_lib_pq_PQputCopyData=yes
23771 ac_cv_lib_pq_PQputCopyData=no
23773 rm -f core conftest.err conftest.$ac_objext \
23774 conftest$ac_exeext conftest.$ac_ext
23775 LIBS=$ac_check_lib_save_LIBS
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23778 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23779 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23781 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23785 if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
23787 support_batch_insert=no
23791 if test x$DB_TYPE = xdbi; then
23795 if test $DB_PROG = postgresql; then
23796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23797 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23798 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23799 $as_echo_n "(cached) " >&6
23801 ac_check_lib_save_LIBS=$LIBS
23803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23804 /* end confdefs.h. */
23806 /* Override any GCC internal prototype to avoid an error.
23807 Use char because int might match the return type of a GCC
23808 builtin and then its argument prototype would still apply. */
23812 char PQisthreadsafe ();
23816 return PQisthreadsafe ();
23821 if ac_fn_c_try_link "$LINENO"; then :
23822 ac_cv_lib_pq_PQisthreadsafe=yes
23824 ac_cv_lib_pq_PQisthreadsafe=no
23826 rm -f core conftest.err conftest.$ac_objext \
23827 conftest$ac_exeext conftest.$ac_ext
23828 LIBS=$ac_check_lib_save_LIBS
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23831 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23832 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23833 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23838 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23839 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23840 $as_echo_n "(cached) " >&6
23842 ac_check_lib_save_LIBS=$LIBS
23844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23845 /* end confdefs.h. */
23847 /* Override any GCC internal prototype to avoid an error.
23848 Use char because int might match the return type of a GCC
23849 builtin and then its argument prototype would still apply. */
23853 char PQputCopyData ();
23857 return PQputCopyData ();
23862 if ac_fn_c_try_link "$LINENO"; then :
23863 ac_cv_lib_pq_PQputCopyData=yes
23865 ac_cv_lib_pq_PQputCopyData=no
23867 rm -f core conftest.err conftest.$ac_objext \
23868 conftest$ac_exeext conftest.$ac_ext
23869 LIBS=$ac_check_lib_save_LIBS
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23872 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23873 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23874 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23878 test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
23882 if test $DB_PROG = mysql; then
23883 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23887 if test $DB_PROG = sqlite3; then
23888 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23891 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23892 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then :
23893 $as_echo_n "(cached) " >&6
23895 ac_check_lib_save_LIBS=$LIBS
23896 LIBS="-lsqlite3 $LIBS"
23897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23898 /* end confdefs.h. */
23900 /* Override any GCC internal prototype to avoid an error.
23901 Use char because int might match the return type of a GCC
23902 builtin and then its argument prototype would still apply. */
23906 char sqlite3_threadsafe ();
23910 return sqlite3_threadsafe ();
23915 if ac_fn_c_try_link "$LINENO"; then :
23916 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23918 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23920 rm -f core conftest.err conftest.$ac_objext \
23921 conftest$ac_exeext conftest.$ac_ext
23922 LIBS=$ac_check_lib_save_LIBS
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23925 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23926 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then :
23928 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
23934 if test $pkg = 0; then
23935 # Check whether --enable-batch-insert was given.
23936 if test "${enable_batch_insert+set}" = set; then :
23937 enableval=$enable_batch_insert;
23938 if test x$enableval = xno; then
23939 support_batch_insert=no
23941 support_batch_insert=yes
23952 LIBS="${saved_LIBS}"
23956 if test $support_batch_insert = yes ; then
23958 $as_echo "#define HAVE_BATCH_FILE_INSERT 1" >>confdefs.h
23962 $as_echo "#define PROTOTYPES 1" >>confdefs.h
23965 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
23966 if test -z "$CCOPTS"; then
23967 CCOPTS='-g -O2 -Wall'
23974 largefile_support="no"
23976 # Check whether --enable-largefile was given.
23977 if test "${enable_largefile+set}" = set; then :
23978 enableval=$enable_largefile;
23981 if test "$enable_largefile" != no; then
23982 if test -n "$ac_tool_prefix"; then
23983 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
23984 set dummy ${ac_tool_prefix}getconf; ac_word=$2
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23986 $as_echo_n "checking for $ac_word... " >&6; }
23987 if test "${ac_cv_prog_GETCONF+set}" = set; then :
23988 $as_echo_n "(cached) " >&6
23990 if test -n "$GETCONF"; then
23991 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
23993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23994 for as_dir in $PATH
23997 test -z "$as_dir" && as_dir=.
23998 for ac_exec_ext in '' $ac_executable_extensions; do
23999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24000 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24010 GETCONF=$ac_cv_prog_GETCONF
24011 if test -n "$GETCONF"; then
24012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24013 $as_echo "$GETCONF" >&6; }
24015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24016 $as_echo "no" >&6; }
24021 if test -z "$ac_cv_prog_GETCONF"; then
24022 ac_ct_GETCONF=$GETCONF
24023 # Extract the first word of "getconf", so it can be a program name with args.
24024 set dummy getconf; ac_word=$2
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24026 $as_echo_n "checking for $ac_word... " >&6; }
24027 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
24028 $as_echo_n "(cached) " >&6
24030 if test -n "$ac_ct_GETCONF"; then
24031 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24034 for as_dir in $PATH
24037 test -z "$as_dir" && as_dir=.
24038 for ac_exec_ext in '' $ac_executable_extensions; do
24039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24040 ac_cv_prog_ac_ct_GETCONF="getconf"
24041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24050 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24051 if test -n "$ac_ct_GETCONF"; then
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24053 $as_echo "$ac_ct_GETCONF" >&6; }
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24056 $as_echo "no" >&6; }
24059 if test "x$ac_ct_GETCONF" = x; then
24062 case $cross_compiling:$ac_tool_warned in
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24066 ac_tool_warned=yes ;;
24068 GETCONF=$ac_ct_GETCONF
24071 GETCONF="$ac_cv_prog_GETCONF"
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24075 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24076 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
24077 $as_echo_n "(cached) " >&6
24079 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24080 ac_cv_sys_largefile_CFLAGS=no
24082 # IRIX 6.2 and later require cc -n32.
24083 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24084 if test "$GCC" != yes; then
24085 ac_cv_sys_largefile_CFLAGS=-n32
24088 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24090 /* end confdefs.h. */
24100 if ac_fn_c_try_link "$LINENO"; then :
24103 ac_cv_sys_largefile_CFLAGS=no
24105 rm -f core conftest.err conftest.$ac_objext \
24106 conftest$ac_exeext conftest.$ac_ext
24111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24112 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24114 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24115 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
24116 $as_echo_n "(cached) " >&6
24118 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24119 ac_cv_sys_largefile_LDFLAGS=no
24123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24124 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24126 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24127 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
24128 $as_echo_n "(cached) " >&6
24130 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24131 ac_cv_sys_largefile_LIBS=no
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24136 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24138 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24141 -D_FILE_OFFSET_BITS=*) ;;
24142 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24143 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24148 case "$CPPFLAGS" in
24149 '') CPPFLAGS="$ac_flag" ;;
24150 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24158 '') CFLAGS="$ac_flag" ;;
24159 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24164 case "$ac_cv_sys_largefile_LDFLAGS" in
24168 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24169 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24172 case "$ac_cv_sys_largefile_LIBS" in
24176 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24177 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24181 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24182 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24183 $as_echo_n "(cached) " >&6
24185 ac_cv_sys_file_offset_bits=no
24186 ac_cv_sys_file_offset_bits=64
24187 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24189 -D_FILE_OFFSET_BITS)
24190 ac_cv_sys_file_offset_bits=1 ;;
24191 -D_FILE_OFFSET_BITS=*)
24192 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24198 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24199 if test "$ac_cv_sys_file_offset_bits" != no; then
24201 cat >>confdefs.h <<_ACEOF
24202 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24207 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24208 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24209 $as_echo_n "(cached) " >&6
24211 ac_cv_sys_largefile_source=no
24212 ac_cv_sys_largefile_source=1
24213 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24215 -D_LARGEFILE_SOURCE)
24216 ac_cv_sys_largefile_source=1 ;;
24217 -D_LARGEFILE_SOURCE=*)
24218 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24224 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24225 if test "$ac_cv_sys_largefile_source" != no; then
24227 cat >>confdefs.h <<_ACEOF
24228 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24233 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24234 if test "${ac_cv_sys_large_files+set}" = set; then :
24235 $as_echo_n "(cached) " >&6
24237 ac_cv_sys_large_files=no
24238 ac_cv_sys_large_files=1
24239 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24242 ac_cv_sys_large_files=1 ;;
24244 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24250 $as_echo "$ac_cv_sys_large_files" >&6; }
24251 if test "$ac_cv_sys_large_files" != no; then
24253 cat >>confdefs.h <<_ACEOF
24254 #define _LARGE_FILES $ac_cv_sys_large_files
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24262 $as_echo_n "checking for X... " >&6; }
24265 # Check whether --with-x was given.
24266 if test "${with_x+set}" = set; then :
24270 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24271 if test "x$with_x" = xno; then
24272 # The user explicitly disabled X.
24275 case $x_includes,$x_libraries in #(
24276 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24277 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24278 $as_echo_n "(cached) " >&6
24280 # One or both of the vars are not set, and there is no cached value.
24281 ac_x_includes=no ac_x_libraries=no
24282 rm -f -r conftest.dir
24283 if mkdir conftest.dir; then
24285 cat >Imakefile <<'_ACEOF'
24287 @echo incroot='${INCROOT}'
24289 @echo usrlibdir='${USRLIBDIR}'
24291 @echo libdir='${LIBDIR}'
24293 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24294 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24295 for ac_var in incroot usrlibdir libdir; do
24296 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24298 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24299 for ac_extension in a so sl dylib la dll; do
24300 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24301 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24302 ac_im_usrlibdir=$ac_im_libdir; break
24305 # Screen out bogus values from the imake configuration. They are
24306 # bogus both because they are the default anyway, and because
24307 # using them would break gcc on systems where it needs fixed includes.
24308 case $ac_im_incroot in
24309 /usr/include) ac_x_includes= ;;
24310 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24312 case $ac_im_usrlibdir in
24313 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24314 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24318 rm -f -r conftest.dir
24321 # Standard set of common directories for X headers.
24322 # Check X11 before X11Rn because it is often a symlink to the current release.
24336 /usr/local/X11/include
24337 /usr/local/X11R7/include
24338 /usr/local/X11R6/include
24339 /usr/local/X11R5/include
24340 /usr/local/X11R4/include
24342 /usr/local/include/X11
24343 /usr/local/include/X11R7
24344 /usr/local/include/X11R6
24345 /usr/local/include/X11R5
24346 /usr/local/include/X11R4
24350 /usr/XFree86/include/X11
24354 /usr/unsupported/include
24355 /usr/athena/include
24356 /usr/local/x11r5/include
24357 /usr/lpp/Xamples/include
24359 /usr/openwin/include
24360 /usr/openwin/share/include'
24362 if test "$ac_x_includes" = no; then
24363 # Guess where to find include files, by looking for Xlib.h.
24364 # First, try using that file with no special directory specified.
24365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24366 /* end confdefs.h. */
24367 #include <X11/Xlib.h>
24369 if ac_fn_c_try_cpp "$LINENO"; then :
24370 # We can compile using X headers with no special include directory.
24373 for ac_dir in $ac_x_header_dirs; do
24374 if test -r "$ac_dir/X11/Xlib.h"; then
24375 ac_x_includes=$ac_dir
24380 rm -f conftest.err conftest.$ac_ext
24381 fi # $ac_x_includes = no
24383 if test "$ac_x_libraries" = no; then
24384 # Check for the libraries.
24385 # See if we find them without any special options.
24386 # Don't add to $LIBS permanently.
24389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24390 /* end confdefs.h. */
24391 #include <X11/Xlib.h>
24400 if ac_fn_c_try_link "$LINENO"; then :
24402 # We can link X programs with no special library path.
24406 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24408 # Don't even attempt the hair of trying to link an X program!
24409 for ac_extension in a so sl dylib la dll; do
24410 if test -r "$ac_dir/libX11.$ac_extension"; then
24411 ac_x_libraries=$ac_dir
24417 rm -f core conftest.err conftest.$ac_objext \
24418 conftest$ac_exeext conftest.$ac_ext
24419 fi # $ac_x_libraries = no
24421 case $ac_x_includes,$ac_x_libraries in #(
24422 no,* | *,no | *\'*)
24423 # Didn't find X, or a directory has "'" in its name.
24424 ac_cv_have_x="have_x=no";; #(
24426 # Record where we found X for the cache.
24427 ac_cv_have_x="have_x=yes\
24428 ac_x_includes='$ac_x_includes'\
24429 ac_x_libraries='$ac_x_libraries'"
24435 eval "$ac_cv_have_x"
24438 if test "$have_x" != yes; then
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24440 $as_echo "$have_x" >&6; }
24443 # If each of the values was on the command line, it overrides each guess.
24444 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24445 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24446 # Update the cache value to reflect the command line values.
24447 ac_cv_have_x="have_x=yes\
24448 ac_x_includes='$x_includes'\
24449 ac_x_libraries='$x_libraries'"
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24451 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24454 if test "$no_x" = yes; then
24455 # Not all programs may use this symbol, but it does not hurt to define it.
24457 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24459 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24461 if test -n "$x_includes"; then
24462 X_CFLAGS="$X_CFLAGS -I$x_includes"
24465 # It would also be nice to do this for all -L options, not just this one.
24466 if test -n "$x_libraries"; then
24467 X_LIBS="$X_LIBS -L$x_libraries"
24468 # For Solaris; some versions of Sun CC require a space after -R and
24469 # others require no space. Words are not sufficient . . . .
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24471 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24472 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24473 ac_xsave_c_werror_flag=$ac_c_werror_flag
24474 ac_c_werror_flag=yes
24475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24476 /* end confdefs.h. */
24486 if ac_fn_c_try_link "$LINENO"; then :
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24488 $as_echo "no" >&6; }
24489 X_LIBS="$X_LIBS -R$x_libraries"
24491 LIBS="$ac_xsave_LIBS -R $x_libraries"
24492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24493 /* end confdefs.h. */
24503 if ac_fn_c_try_link "$LINENO"; then :
24504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24505 $as_echo "yes" >&6; }
24506 X_LIBS="$X_LIBS -R $x_libraries"
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24509 $as_echo "neither works" >&6; }
24511 rm -f core conftest.err conftest.$ac_objext \
24512 conftest$ac_exeext conftest.$ac_ext
24514 rm -f core conftest.err conftest.$ac_objext \
24515 conftest$ac_exeext conftest.$ac_ext
24516 ac_c_werror_flag=$ac_xsave_c_werror_flag
24517 LIBS=$ac_xsave_LIBS
24520 # Check for system-dependent libraries X programs must link with.
24521 # Do this before checking for the system-independent R6 libraries
24522 # (-lICE), since we may need -lsocket or whatever for X linking.
24524 if test "$ISC" = yes; then
24525 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24527 # Martyn Johnson says this is needed for Ultrix, if the X
24528 # libraries were built with DECnet support. And Karl Berry says
24529 # the Alpha needs dnet_stub (dnet does not exist).
24530 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24532 /* end confdefs.h. */
24534 /* Override any GCC internal prototype to avoid an error.
24535 Use char because int might match the return type of a GCC
24536 builtin and then its argument prototype would still apply. */
24540 char XOpenDisplay ();
24544 return XOpenDisplay ();
24549 if ac_fn_c_try_link "$LINENO"; then :
24552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24553 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24554 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
24555 $as_echo_n "(cached) " >&6
24557 ac_check_lib_save_LIBS=$LIBS
24558 LIBS="-ldnet $LIBS"
24559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24560 /* end confdefs.h. */
24562 /* Override any GCC internal prototype to avoid an error.
24563 Use char because int might match the return type of a GCC
24564 builtin and then its argument prototype would still apply. */
24572 return dnet_ntoa ();
24577 if ac_fn_c_try_link "$LINENO"; then :
24578 ac_cv_lib_dnet_dnet_ntoa=yes
24580 ac_cv_lib_dnet_dnet_ntoa=no
24582 rm -f core conftest.err conftest.$ac_objext \
24583 conftest$ac_exeext conftest.$ac_ext
24584 LIBS=$ac_check_lib_save_LIBS
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24587 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24588 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
24589 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24592 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24594 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24595 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
24596 $as_echo_n "(cached) " >&6
24598 ac_check_lib_save_LIBS=$LIBS
24599 LIBS="-ldnet_stub $LIBS"
24600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24601 /* end confdefs.h. */
24603 /* Override any GCC internal prototype to avoid an error.
24604 Use char because int might match the return type of a GCC
24605 builtin and then its argument prototype would still apply. */
24613 return dnet_ntoa ();
24618 if ac_fn_c_try_link "$LINENO"; then :
24619 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24621 ac_cv_lib_dnet_stub_dnet_ntoa=no
24623 rm -f core conftest.err conftest.$ac_objext \
24624 conftest$ac_exeext conftest.$ac_ext
24625 LIBS=$ac_check_lib_save_LIBS
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24628 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24629 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
24630 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24635 rm -f core conftest.err conftest.$ac_objext \
24636 conftest$ac_exeext conftest.$ac_ext
24637 LIBS="$ac_xsave_LIBS"
24639 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24640 # to get the SysV transport functions.
24641 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24643 # The nsl library prevents programs from opening the X display
24644 # on Irix 5.2, according to T.E. Dickey.
24645 # The functions gethostbyname, getservbyname, and inet_addr are
24646 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24647 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24648 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
24652 if test $ac_cv_func_gethostbyname = no; then
24653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24654 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24655 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
24656 $as_echo_n "(cached) " >&6
24658 ac_check_lib_save_LIBS=$LIBS
24660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24661 /* end confdefs.h. */
24663 /* Override any GCC internal prototype to avoid an error.
24664 Use char because int might match the return type of a GCC
24665 builtin and then its argument prototype would still apply. */
24669 char gethostbyname ();
24673 return gethostbyname ();
24678 if ac_fn_c_try_link "$LINENO"; then :
24679 ac_cv_lib_nsl_gethostbyname=yes
24681 ac_cv_lib_nsl_gethostbyname=no
24683 rm -f core conftest.err conftest.$ac_objext \
24684 conftest$ac_exeext conftest.$ac_ext
24685 LIBS=$ac_check_lib_save_LIBS
24687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24688 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24689 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24690 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24693 if test $ac_cv_lib_nsl_gethostbyname = no; then
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24695 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24696 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24697 $as_echo_n "(cached) " >&6
24699 ac_check_lib_save_LIBS=$LIBS
24701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24702 /* end confdefs.h. */
24704 /* Override any GCC internal prototype to avoid an error.
24705 Use char because int might match the return type of a GCC
24706 builtin and then its argument prototype would still apply. */
24710 char gethostbyname ();
24714 return gethostbyname ();
24719 if ac_fn_c_try_link "$LINENO"; then :
24720 ac_cv_lib_bsd_gethostbyname=yes
24722 ac_cv_lib_bsd_gethostbyname=no
24724 rm -f core conftest.err conftest.$ac_objext \
24725 conftest$ac_exeext conftest.$ac_ext
24726 LIBS=$ac_check_lib_save_LIBS
24728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24729 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24730 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24731 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24737 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24738 # socket/setsockopt and other routines are undefined under SCO ODT
24739 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24740 # on later versions), says Simon Leinen: it contains gethostby*
24741 # variants that don't use the name server (or something). -lsocket
24742 # must be given before -lnsl if both are needed. We assume that
24743 # if connect needs -lnsl, so does gethostbyname.
24744 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24745 if test "x$ac_cv_func_connect" = x""yes; then :
24749 if test $ac_cv_func_connect = no; then
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24751 $as_echo_n "checking for connect in -lsocket... " >&6; }
24752 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24753 $as_echo_n "(cached) " >&6
24755 ac_check_lib_save_LIBS=$LIBS
24756 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24758 /* end confdefs.h. */
24760 /* Override any GCC internal prototype to avoid an error.
24761 Use char because int might match the return type of a GCC
24762 builtin and then its argument prototype would still apply. */
24775 if ac_fn_c_try_link "$LINENO"; then :
24776 ac_cv_lib_socket_connect=yes
24778 ac_cv_lib_socket_connect=no
24780 rm -f core conftest.err conftest.$ac_objext \
24781 conftest$ac_exeext conftest.$ac_ext
24782 LIBS=$ac_check_lib_save_LIBS
24784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24785 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24786 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24787 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24792 # Guillermo Gomez says -lposix is necessary on A/UX.
24793 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24794 if test "x$ac_cv_func_remove" = x""yes; then :
24798 if test $ac_cv_func_remove = no; then
24799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24800 $as_echo_n "checking for remove in -lposix... " >&6; }
24801 if test "${ac_cv_lib_posix_remove+set}" = set; then :
24802 $as_echo_n "(cached) " >&6
24804 ac_check_lib_save_LIBS=$LIBS
24805 LIBS="-lposix $LIBS"
24806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24807 /* end confdefs.h. */
24809 /* Override any GCC internal prototype to avoid an error.
24810 Use char because int might match the return type of a GCC
24811 builtin and then its argument prototype would still apply. */
24824 if ac_fn_c_try_link "$LINENO"; then :
24825 ac_cv_lib_posix_remove=yes
24827 ac_cv_lib_posix_remove=no
24829 rm -f core conftest.err conftest.$ac_objext \
24830 conftest$ac_exeext conftest.$ac_ext
24831 LIBS=$ac_check_lib_save_LIBS
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24834 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24835 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24836 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24841 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24842 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24843 if test "x$ac_cv_func_shmat" = x""yes; then :
24847 if test $ac_cv_func_shmat = no; then
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24849 $as_echo_n "checking for shmat in -lipc... " >&6; }
24850 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
24851 $as_echo_n "(cached) " >&6
24853 ac_check_lib_save_LIBS=$LIBS
24855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24856 /* end confdefs.h. */
24858 /* Override any GCC internal prototype to avoid an error.
24859 Use char because int might match the return type of a GCC
24860 builtin and then its argument prototype would still apply. */
24873 if ac_fn_c_try_link "$LINENO"; then :
24874 ac_cv_lib_ipc_shmat=yes
24876 ac_cv_lib_ipc_shmat=no
24878 rm -f core conftest.err conftest.$ac_objext \
24879 conftest$ac_exeext conftest.$ac_ext
24880 LIBS=$ac_check_lib_save_LIBS
24882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24883 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24884 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
24885 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24891 # Check for libraries that X11R6 Xt/Xaw programs need.
24892 ac_save_LDFLAGS=$LDFLAGS
24893 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24894 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24895 # check for ICE first), but we must link in the order -lSM -lICE or
24896 # we get undefined symbols. So assume we have SM if we have ICE.
24897 # These have to be linked with before -lX11, unlike the other
24898 # libraries we check for below, so use a different variable.
24899 # John Interrante, Karl Berry
24900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24901 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24902 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
24903 $as_echo_n "(cached) " >&6
24905 ac_check_lib_save_LIBS=$LIBS
24906 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24908 /* end confdefs.h. */
24910 /* Override any GCC internal prototype to avoid an error.
24911 Use char because int might match the return type of a GCC
24912 builtin and then its argument prototype would still apply. */
24916 char IceConnectionNumber ();
24920 return IceConnectionNumber ();
24925 if ac_fn_c_try_link "$LINENO"; then :
24926 ac_cv_lib_ICE_IceConnectionNumber=yes
24928 ac_cv_lib_ICE_IceConnectionNumber=no
24930 rm -f core conftest.err conftest.$ac_objext \
24931 conftest$ac_exeext conftest.$ac_ext
24932 LIBS=$ac_check_lib_save_LIBS
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24935 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24936 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
24937 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24940 LDFLAGS=$ac_save_LDFLAGS
24977 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24978 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24979 eval as_val=\$$as_ac_Header
24980 if test "x$as_val" = x""yes; then :
24981 cat >>confdefs.h <<_ACEOF
24982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24990 $as_echo_n "checking for ANSI C header files... " >&6; }
24991 if test "${ac_cv_header_stdc+set}" = set; then :
24992 $as_echo_n "(cached) " >&6
24994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24995 /* end confdefs.h. */
24996 #include <stdlib.h>
24997 #include <stdarg.h>
24998 #include <string.h>
25009 if ac_fn_c_try_compile "$LINENO"; then :
25010 ac_cv_header_stdc=yes
25012 ac_cv_header_stdc=no
25014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25016 if test $ac_cv_header_stdc = yes; then
25017 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25019 /* end confdefs.h. */
25020 #include <string.h>
25023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25024 $EGREP "memchr" >/dev/null 2>&1; then :
25027 ac_cv_header_stdc=no
25033 if test $ac_cv_header_stdc = yes; then
25034 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25036 /* end confdefs.h. */
25037 #include <stdlib.h>
25040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25041 $EGREP "free" >/dev/null 2>&1; then :
25044 ac_cv_header_stdc=no
25050 if test $ac_cv_header_stdc = yes; then
25051 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25052 if test "$cross_compiling" = yes; then :
25055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25056 /* end confdefs.h. */
25058 #include <stdlib.h>
25059 #if ((' ' & 0x0FF) == 0x020)
25060 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25061 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25063 # define ISLOWER(c) \
25064 (('a' <= (c) && (c) <= 'i') \
25065 || ('j' <= (c) && (c) <= 'r') \
25066 || ('s' <= (c) && (c) <= 'z'))
25067 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25070 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25075 for (i = 0; i < 256; i++)
25076 if (XOR (islower (i), ISLOWER (i))
25077 || toupper (i) != TOUPPER (i))
25082 if ac_fn_c_try_run "$LINENO"; then :
25085 ac_cv_header_stdc=no
25087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25088 conftest.$ac_objext conftest.beam conftest.$ac_ext
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25094 $as_echo "$ac_cv_header_stdc" >&6; }
25095 if test $ac_cv_header_stdc = yes; then
25097 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25102 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25103 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
25104 $as_echo_n "(cached) " >&6
25106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25107 /* end confdefs.h. */
25108 #include <sys/types.h>
25112 return makedev(0, 0);
25117 if ac_fn_c_try_link "$LINENO"; then :
25118 ac_cv_header_sys_types_h_makedev=yes
25120 ac_cv_header_sys_types_h_makedev=no
25122 rm -f core conftest.err conftest.$ac_objext \
25123 conftest$ac_exeext conftest.$ac_ext
25126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25127 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25129 if test $ac_cv_header_sys_types_h_makedev = no; then
25130 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25131 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
25133 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25139 if test $ac_cv_header_sys_mkdev_h = no; then
25140 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25141 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
25143 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25151 ac_header_dirent=no
25152 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25153 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25155 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
25157 $as_echo_n "(cached) " >&6
25159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25160 /* end confdefs.h. */
25161 #include <sys/types.h>
25173 if ac_fn_c_try_compile "$LINENO"; then :
25174 eval "$as_ac_Header=yes"
25176 eval "$as_ac_Header=no"
25178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25180 eval ac_res=\$$as_ac_Header
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25182 $as_echo "$ac_res" >&6; }
25183 eval as_val=\$$as_ac_Header
25184 if test "x$as_val" = x""yes; then :
25185 cat >>confdefs.h <<_ACEOF
25186 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25189 ac_header_dirent=$ac_hdr; break
25193 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25194 if test $ac_header_dirent = dirent.h; then
25195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25196 $as_echo_n "checking for library containing opendir... " >&6; }
25197 if test "${ac_cv_search_opendir+set}" = set; then :
25198 $as_echo_n "(cached) " >&6
25200 ac_func_search_save_LIBS=$LIBS
25201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25202 /* end confdefs.h. */
25204 /* Override any GCC internal prototype to avoid an error.
25205 Use char because int might match the return type of a GCC
25206 builtin and then its argument prototype would still apply. */
25219 for ac_lib in '' dir; do
25220 if test -z "$ac_lib"; then
25221 ac_res="none required"
25224 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25226 if ac_fn_c_try_link "$LINENO"; then :
25227 ac_cv_search_opendir=$ac_res
25229 rm -f core conftest.err conftest.$ac_objext \
25231 if test "${ac_cv_search_opendir+set}" = set; then :
25235 if test "${ac_cv_search_opendir+set}" = set; then :
25238 ac_cv_search_opendir=no
25240 rm conftest.$ac_ext
25241 LIBS=$ac_func_search_save_LIBS
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25244 $as_echo "$ac_cv_search_opendir" >&6; }
25245 ac_res=$ac_cv_search_opendir
25246 if test "$ac_res" != no; then :
25247 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25253 $as_echo_n "checking for library containing opendir... " >&6; }
25254 if test "${ac_cv_search_opendir+set}" = set; then :
25255 $as_echo_n "(cached) " >&6
25257 ac_func_search_save_LIBS=$LIBS
25258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25259 /* end confdefs.h. */
25261 /* Override any GCC internal prototype to avoid an error.
25262 Use char because int might match the return type of a GCC
25263 builtin and then its argument prototype would still apply. */
25276 for ac_lib in '' x; do
25277 if test -z "$ac_lib"; then
25278 ac_res="none required"
25281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25283 if ac_fn_c_try_link "$LINENO"; then :
25284 ac_cv_search_opendir=$ac_res
25286 rm -f core conftest.err conftest.$ac_objext \
25288 if test "${ac_cv_search_opendir+set}" = set; then :
25292 if test "${ac_cv_search_opendir+set}" = set; then :
25295 ac_cv_search_opendir=no
25297 rm conftest.$ac_ext
25298 LIBS=$ac_func_search_save_LIBS
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25301 $as_echo "$ac_cv_search_opendir" >&6; }
25302 ac_res=$ac_cv_search_opendir
25303 if test "$ac_res" != no; then :
25304 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25311 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25312 if test "${ac_cv_header_stat_broken+set}" = set; then :
25313 $as_echo_n "(cached) " >&6
25315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25316 /* end confdefs.h. */
25317 #include <sys/types.h>
25318 #include <sys/stat.h>
25320 #if defined S_ISBLK && defined S_IFDIR
25321 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25324 #if defined S_ISBLK && defined S_IFCHR
25325 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25328 #if defined S_ISLNK && defined S_IFREG
25329 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25332 #if defined S_ISSOCK && defined S_IFREG
25333 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25337 if ac_fn_c_try_compile "$LINENO"; then :
25338 ac_cv_header_stat_broken=no
25340 ac_cv_header_stat_broken=yes
25342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25345 $as_echo "$ac_cv_header_stat_broken" >&6; }
25346 if test $ac_cv_header_stat_broken = yes; then
25348 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25353 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25354 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25355 $as_echo_n "(cached) " >&6
25357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25358 /* end confdefs.h. */
25359 #include <sys/types.h>
25360 #include <sys/wait.h>
25361 #ifndef WEXITSTATUS
25362 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25365 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25373 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25378 if ac_fn_c_try_compile "$LINENO"; then :
25379 ac_cv_header_sys_wait_h=yes
25381 ac_cv_header_sys_wait_h=no
25383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25386 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25387 if test $ac_cv_header_sys_wait_h = yes; then
25389 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25394 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25395 if test "${ac_cv_header_time+set}" = set; then :
25396 $as_echo_n "(cached) " >&6
25398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25399 /* end confdefs.h. */
25400 #include <sys/types.h>
25401 #include <sys/time.h>
25407 if ((struct tm *) 0)
25413 if ac_fn_c_try_compile "$LINENO"; then :
25414 ac_cv_header_time=yes
25416 ac_cv_header_time=no
25418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25421 $as_echo "$ac_cv_header_time" >&6; }
25422 if test $ac_cv_header_time = yes; then
25424 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25428 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25429 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
25431 cat >>confdefs.h <<_ACEOF
25432 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25436 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25441 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25442 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
25444 cat >>confdefs.h <<_ACEOF
25445 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25449 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25452 case " $LIBOBJS " in
25453 *" fileblocks.$ac_objext "* ) ;;
25454 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25462 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25463 if test "${ac_cv_struct_tm+set}" = set; then :
25464 $as_echo_n "(cached) " >&6
25466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25467 /* end confdefs.h. */
25468 #include <sys/types.h>
25475 int *p = &tm.tm_sec;
25481 if ac_fn_c_try_compile "$LINENO"; then :
25482 ac_cv_struct_tm=time.h
25484 ac_cv_struct_tm=sys/time.h
25486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25489 $as_echo "$ac_cv_struct_tm" >&6; }
25490 if test $ac_cv_struct_tm = sys/time.h; then
25492 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25496 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25497 #include <$ac_cv_struct_tm>
25500 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
25502 cat >>confdefs.h <<_ACEOF
25503 #define HAVE_STRUCT_TM_TM_ZONE 1
25509 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25511 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25514 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25516 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
25522 cat >>confdefs.h <<_ACEOF
25523 #define HAVE_DECL_TZNAME $ac_have_decl
25526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25527 $as_echo_n "checking for tzname... " >&6; }
25528 if test "${ac_cv_var_tzname+set}" = set; then :
25529 $as_echo_n "(cached) " >&6
25531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25532 /* end confdefs.h. */
25534 #if !HAVE_DECL_TZNAME
25535 extern char *tzname[];
25541 return tzname[0][0];
25546 if ac_fn_c_try_link "$LINENO"; then :
25547 ac_cv_var_tzname=yes
25549 ac_cv_var_tzname=no
25551 rm -f core conftest.err conftest.$ac_objext \
25552 conftest$ac_exeext conftest.$ac_ext
25554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25555 $as_echo "$ac_cv_var_tzname" >&6; }
25556 if test $ac_cv_var_tzname = yes; then
25558 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25565 $as_echo_n "checking for utime.h... " >&6; }
25566 if test "${ba_cv_header_utime_h+set}" = set; then :
25567 $as_echo_n "(cached) " >&6
25570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25571 /* end confdefs.h. */
25573 #include <sys/types.h>
25586 if ac_fn_c_try_compile "$LINENO"; then :
25588 ba_cv_header_utime_h=yes
25592 ba_cv_header_utime_h=no
25596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25601 $as_echo "$ba_cv_header_utime_h" >&6; }
25602 test $ba_cv_header_utime_h = yes &&
25603 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25607 $as_echo_n "checking for socklen_t... " >&6; }
25608 if test "${ba_cv_header_socklen_t+set}" = set; then :
25609 $as_echo_n "(cached) " >&6
25612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25613 /* end confdefs.h. */
25615 #include <sys/types.h>
25616 #include <sys/socket.h>
25628 if ac_fn_c_try_compile "$LINENO"; then :
25630 ba_cv_header_socklen_t=yes
25634 ba_cv_header_socklen_t=no
25638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25643 $as_echo "$ba_cv_header_socklen_t" >&6; }
25644 test $ba_cv_header_socklen_t = yes &&
25645 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25649 ac_cpp='$CXXCPP $CPPFLAGS'
25650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25655 $as_echo_n "checking for ioctl_req_t... " >&6; }
25656 if test "${ba_cv_header_ioctl_req_t+set}" = set; then :
25657 $as_echo_n "(cached) " >&6
25660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25661 /* end confdefs.h. */
25663 #include <unistd.h>
25664 #include <sys/types.h>
25665 #include <sys/ioctl.h>
25671 int (*d_ioctl)(int fd, unsigned long int request, ...);
25678 if ac_fn_cxx_try_compile "$LINENO"; then :
25680 ba_cv_header_ioctl_req_t=yes
25684 ba_cv_header_ioctl_req_t=no
25688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25693 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25694 test $ba_cv_header_ioctl_req_t = yes &&
25695 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25699 ac_cpp='$CPP $CPPFLAGS'
25700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25706 ac_cpp='$CXXCPP $CPPFLAGS'
25707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25712 $as_echo_n "checking for typeof... " >&6; }
25713 if test "${ba_cv_have_typeof+set}" = set; then :
25714 $as_echo_n "(cached) " >&6
25717 if test "$cross_compiling" = yes; then :
25719 ba_cv_have_typeof=no
25723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25724 /* end confdefs.h. */
25726 main(){char *a = 0; a = (typeof a)a;}
25729 if ac_fn_cxx_try_run "$LINENO"; then :
25731 ba_cv_have_typeof=yes
25735 ba_cv_have_typeof=no
25738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25739 conftest.$ac_objext conftest.beam conftest.$ac_ext
25745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25746 $as_echo "$ba_cv_have_typeof" >&6; }
25747 test $ba_cv_have_typeof = yes &&
25748 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25751 ac_cpp='$CPP $CPPFLAGS'
25752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25758 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25759 if test "${ac_cv_c_const+set}" = set; then :
25760 $as_echo_n "(cached) " >&6
25762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25763 /* end confdefs.h. */
25768 /* FIXME: Include the comments suggested by Paul. */
25769 #ifndef __cplusplus
25770 /* Ultrix mips cc rejects this. */
25771 typedef int charset[2];
25773 /* SunOS 4.1.1 cc rejects this. */
25774 char const *const *pcpcc;
25776 /* NEC SVR4.0.2 mips cc rejects this. */
25777 struct point {int x, y;};
25778 static struct point const zero = {0,0};
25779 /* AIX XL C 1.02.0.0 rejects this.
25780 It does not let you subtract one const X* pointer from another in
25781 an arm of an if-expression whose if-part is not a constant
25783 const char *g = "string";
25784 pcpcc = &g + (g ? g-g : 0);
25785 /* HPUX 7.0 cc rejects these. */
25787 ppc = (char**) pcpcc;
25788 pcpcc = (char const *const *) ppc;
25789 { /* SCO 3.2v4 cc rejects this. */
25791 char const *s = 0 ? (char *) 0 : (char const *) 0;
25796 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25797 int x[] = {25, 17};
25798 const int *foo = &x[0];
25801 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25802 typedef const int *iptr;
25806 { /* AIX XL C 1.02.0.0 rejects this saying
25807 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25808 struct s { int j; const int *ap[3]; };
25809 struct s *b; b->j = 5;
25811 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25812 const int foo = 10;
25813 if (!foo) return 0;
25815 return !cs[0] && !zero.x;
25822 if ac_fn_c_try_compile "$LINENO"; then :
25827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25830 $as_echo "$ac_cv_c_const" >&6; }
25831 if test $ac_cv_c_const = no; then
25833 $as_echo "#define const /**/" >>confdefs.h
25838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
25839 $as_echo_n "checking how to get filesystem type... " >&6; }
25841 # The order of these tests is important.
25842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25843 /* end confdefs.h. */
25845 #include <sys/statvfs.h>
25846 #include <sys/fstyp.h>
25849 if ac_fn_c_try_cpp "$LINENO"; then :
25850 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
25854 rm -f conftest.err conftest.$ac_ext
25855 if test $fstype = no; then
25856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25857 /* end confdefs.h. */
25859 #include <sys/statfs.h>
25860 #include <sys/fstyp.h>
25863 if ac_fn_c_try_cpp "$LINENO"; then :
25864 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
25868 rm -f conftest.err conftest.$ac_ext
25870 if test $fstype = no; then
25871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25872 /* end confdefs.h. */
25874 #include <sys/statfs.h>
25875 #include <sys/vmount.h>
25878 if ac_fn_c_try_cpp "$LINENO"; then :
25879 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
25883 rm -f conftest.err conftest.$ac_ext
25885 if test $fstype = no; then
25886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25887 /* end confdefs.h. */
25889 #include <mntent.h>
25892 if ac_fn_c_try_cpp "$LINENO"; then :
25893 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
25897 rm -f conftest.err conftest.$ac_ext
25899 if test $fstype = no; then
25900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25901 /* end confdefs.h. */
25902 #include <sys/mount.h>
25905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25906 $EGREP "f_type;" >/dev/null 2>&1; then :
25907 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
25913 if test $fstype = no; then
25914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25915 /* end confdefs.h. */
25917 #include <sys/mount.h>
25918 #include <sys/fs_types.h>
25921 if ac_fn_c_try_cpp "$LINENO"; then :
25922 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
25926 rm -f conftest.err conftest.$ac_ext
25928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
25929 $as_echo "$fstype" >&6; }
25931 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
25932 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
25934 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
25940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
25941 $as_echo_n "checking return type of signal handlers... " >&6; }
25942 if test "${ac_cv_type_signal+set}" = set; then :
25943 $as_echo_n "(cached) " >&6
25945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25946 /* end confdefs.h. */
25947 #include <sys/types.h>
25948 #include <signal.h>
25953 return *(signal (0, 0)) (0) == 1;
25958 if ac_fn_c_try_compile "$LINENO"; then :
25959 ac_cv_type_signal=int
25961 ac_cv_type_signal=void
25963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
25966 $as_echo "$ac_cv_type_signal" >&6; }
25968 cat >>confdefs.h <<_ACEOF
25969 #define RETSIGTYPE $ac_cv_type_signal
25974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
25975 $as_echo_n "checking for type of signal functions... " >&6; }
25976 if test "${bash_cv_signal_vintage+set}" = set; then :
25977 $as_echo_n "(cached) " >&6
25980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25981 /* end confdefs.h. */
25982 #include <signal.h>
25988 struct sigaction sa;
25989 sigemptyset(&ss); sigsuspend(&ss);
25990 sigaction(SIGINT, &sa, (struct sigaction *) 0);
25991 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
25997 if ac_fn_c_try_link "$LINENO"; then :
25998 bash_cv_signal_vintage="posix"
26001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26002 /* end confdefs.h. */
26003 #include <signal.h>
26008 int mask = sigmask(SIGINT);
26009 sigsetmask(mask); sigblock(mask); sigpause(mask);
26015 if ac_fn_c_try_link "$LINENO"; then :
26016 bash_cv_signal_vintage="4.2bsd"
26019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26020 /* end confdefs.h. */
26022 #include <signal.h>
26023 RETSIGTYPE foo() { }
26028 int mask = sigmask(SIGINT);
26029 sigset(SIGINT, foo); sigrelse(SIGINT);
26030 sighold(SIGINT); sigpause(SIGINT);
26036 if ac_fn_c_try_link "$LINENO"; then :
26037 bash_cv_signal_vintage="svr3"
26039 bash_cv_signal_vintage="v7"
26042 rm -f core conftest.err conftest.$ac_objext \
26043 conftest$ac_exeext conftest.$ac_ext
26046 rm -f core conftest.err conftest.$ac_objext \
26047 conftest$ac_exeext conftest.$ac_ext
26050 rm -f core conftest.err conftest.$ac_objext \
26051 conftest$ac_exeext conftest.$ac_ext
26055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26056 $as_echo "$bash_cv_signal_vintage" >&6; }
26057 if test "$bash_cv_signal_vintage" = "posix"; then
26058 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26060 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26061 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26063 elif test "$bash_cv_signal_vintage" = "svr3"; then
26064 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26068 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26069 if test "x$ac_cv_type_mode_t" = x""yes; then :
26073 cat >>confdefs.h <<_ACEOF
26079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26080 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26081 if test "${ac_cv_type_uid_t+set}" = set; then :
26082 $as_echo_n "(cached) " >&6
26084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26085 /* end confdefs.h. */
26086 #include <sys/types.h>
26089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26090 $EGREP "uid_t" >/dev/null 2>&1; then :
26091 ac_cv_type_uid_t=yes
26093 ac_cv_type_uid_t=no
26098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26099 $as_echo "$ac_cv_type_uid_t" >&6; }
26100 if test $ac_cv_type_uid_t = no; then
26102 $as_echo "#define uid_t int" >>confdefs.h
26105 $as_echo "#define gid_t int" >>confdefs.h
26109 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26110 if test "x$ac_cv_type_size_t" = x""yes; then :
26114 cat >>confdefs.h <<_ACEOF
26115 #define size_t unsigned int
26120 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26121 if test "x$ac_cv_type_pid_t" = x""yes; then :
26125 cat >>confdefs.h <<_ACEOF
26131 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26132 if test "x$ac_cv_type_off_t" = x""yes; then :
26136 cat >>confdefs.h <<_ACEOF
26137 #define off_t long int
26143 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26144 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26146 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26149 for ac_type in 'int' 'long int' 'long long int'; do
26150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26151 /* end confdefs.h. */
26152 $ac_includes_default
26156 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26163 if ac_fn_c_try_compile "$LINENO"; then :
26165 cat >>confdefs.h <<_ACEOF
26166 #define intptr_t $ac_type
26171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26172 test -z "$ac_type" && break
26178 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26179 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
26181 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26184 for ac_type in 'unsigned int' 'unsigned long int' \
26185 'unsigned long long int'; do
26186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26187 /* end confdefs.h. */
26188 $ac_includes_default
26192 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26199 if ac_fn_c_try_compile "$LINENO"; then :
26201 cat >>confdefs.h <<_ACEOF
26202 #define uintptr_t $ac_type
26207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26208 test -z "$ac_type" && break
26213 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26214 if test "x$ac_cv_type_ino_t" = x""yes; then :
26218 cat >>confdefs.h <<_ACEOF
26219 #define ino_t unsigned long
26224 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26225 if test "x$ac_cv_type_dev_t" = x""yes; then :
26229 cat >>confdefs.h <<_ACEOF
26230 #define dev_t unsigned long
26235 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26236 if test "x$ac_cv_type_daddr_t" = x""yes; then :
26240 cat >>confdefs.h <<_ACEOF
26241 #define daddr_t long
26246 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26247 if test "x$ac_cv_type_major_t" = x""yes; then :
26251 cat >>confdefs.h <<_ACEOF
26252 #define major_t int
26257 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26258 if test "x$ac_cv_type_minor_t" = x""yes; then :
26262 cat >>confdefs.h <<_ACEOF
26263 #define minor_t int
26268 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26269 if test "x$ac_cv_type_ssize_t" = x""yes; then :
26273 cat >>confdefs.h <<_ACEOF
26274 #define ssize_t int
26279 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26280 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26282 cat >>confdefs.h <<_ACEOF
26283 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26287 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26290 case " $LIBOBJS " in
26291 *" fileblocks.$ac_objext "* ) ;;
26292 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26299 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26300 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
26302 cat >>confdefs.h <<_ACEOF
26303 #define HAVE_STRUCT_STAT_ST_RDEV 1
26307 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26313 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26314 if test "${ac_cv_struct_tm+set}" = set; then :
26315 $as_echo_n "(cached) " >&6
26317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26318 /* end confdefs.h. */
26319 #include <sys/types.h>
26326 int *p = &tm.tm_sec;
26332 if ac_fn_c_try_compile "$LINENO"; then :
26333 ac_cv_struct_tm=time.h
26335 ac_cv_struct_tm=sys/time.h
26337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26340 $as_echo "$ac_cv_struct_tm" >&6; }
26341 if test $ac_cv_struct_tm = sys/time.h; then
26343 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26348 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26349 if test "${ac_cv_c_const+set}" = set; then :
26350 $as_echo_n "(cached) " >&6
26352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26353 /* end confdefs.h. */
26358 /* FIXME: Include the comments suggested by Paul. */
26359 #ifndef __cplusplus
26360 /* Ultrix mips cc rejects this. */
26361 typedef int charset[2];
26363 /* SunOS 4.1.1 cc rejects this. */
26364 char const *const *pcpcc;
26366 /* NEC SVR4.0.2 mips cc rejects this. */
26367 struct point {int x, y;};
26368 static struct point const zero = {0,0};
26369 /* AIX XL C 1.02.0.0 rejects this.
26370 It does not let you subtract one const X* pointer from another in
26371 an arm of an if-expression whose if-part is not a constant
26373 const char *g = "string";
26374 pcpcc = &g + (g ? g-g : 0);
26375 /* HPUX 7.0 cc rejects these. */
26377 ppc = (char**) pcpcc;
26378 pcpcc = (char const *const *) ppc;
26379 { /* SCO 3.2v4 cc rejects this. */
26381 char const *s = 0 ? (char *) 0 : (char const *) 0;
26386 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26387 int x[] = {25, 17};
26388 const int *foo = &x[0];
26391 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26392 typedef const int *iptr;
26396 { /* AIX XL C 1.02.0.0 rejects this saying
26397 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26398 struct s { int j; const int *ap[3]; };
26399 struct s *b; b->j = 5;
26401 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26402 const int foo = 10;
26403 if (!foo) return 0;
26405 return !cs[0] && !zero.x;
26412 if ac_fn_c_try_compile "$LINENO"; then :
26417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26420 $as_echo "$ac_cv_c_const" >&6; }
26421 if test $ac_cv_c_const = no; then
26423 $as_echo "#define const /**/" >>confdefs.h
26428 # The cast to long int works around a bug in the HP C Compiler
26429 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26430 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26431 # This bug is HP SR number 8606223364.
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26433 $as_echo_n "checking size of char... " >&6; }
26434 if test "${ac_cv_sizeof_char+set}" = set; then :
26435 $as_echo_n "(cached) " >&6
26437 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
26440 if test "$ac_cv_type_char" = yes; then
26441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26443 { as_fn_set_status 77
26444 as_fn_error "cannot compute sizeof (char)
26445 See \`config.log' for more details." "$LINENO" 5; }; }
26447 ac_cv_sizeof_char=0
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26453 $as_echo "$ac_cv_sizeof_char" >&6; }
26457 cat >>confdefs.h <<_ACEOF
26458 #define SIZEOF_CHAR $ac_cv_sizeof_char
26462 # The cast to long int works around a bug in the HP C Compiler
26463 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26464 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26465 # This bug is HP SR number 8606223364.
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26467 $as_echo_n "checking size of short int... " >&6; }
26468 if test "${ac_cv_sizeof_short_int+set}" = set; then :
26469 $as_echo_n "(cached) " >&6
26471 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
26474 if test "$ac_cv_type_short_int" = yes; then
26475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26477 { as_fn_set_status 77
26478 as_fn_error "cannot compute sizeof (short int)
26479 See \`config.log' for more details." "$LINENO" 5; }; }
26481 ac_cv_sizeof_short_int=0
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26487 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26491 cat >>confdefs.h <<_ACEOF
26492 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26496 # The cast to long int works around a bug in the HP C Compiler
26497 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26498 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26499 # This bug is HP SR number 8606223364.
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26501 $as_echo_n "checking size of int... " >&6; }
26502 if test "${ac_cv_sizeof_int+set}" = set; then :
26503 $as_echo_n "(cached) " >&6
26505 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
26508 if test "$ac_cv_type_int" = yes; then
26509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26511 { as_fn_set_status 77
26512 as_fn_error "cannot compute sizeof (int)
26513 See \`config.log' for more details." "$LINENO" 5; }; }
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26521 $as_echo "$ac_cv_sizeof_int" >&6; }
26525 cat >>confdefs.h <<_ACEOF
26526 #define SIZEOF_INT $ac_cv_sizeof_int
26530 # The cast to long int works around a bug in the HP C Compiler
26531 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26532 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26533 # This bug is HP SR number 8606223364.
26534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26535 $as_echo_n "checking size of long int... " >&6; }
26536 if test "${ac_cv_sizeof_long_int+set}" = set; then :
26537 $as_echo_n "(cached) " >&6
26539 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
26542 if test "$ac_cv_type_long_int" = yes; then
26543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26545 { as_fn_set_status 77
26546 as_fn_error "cannot compute sizeof (long int)
26547 See \`config.log' for more details." "$LINENO" 5; }; }
26549 ac_cv_sizeof_long_int=0
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26555 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26559 cat >>confdefs.h <<_ACEOF
26560 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26564 # The cast to long int works around a bug in the HP C Compiler
26565 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26566 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26567 # This bug is HP SR number 8606223364.
26568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26569 $as_echo_n "checking size of long long int... " >&6; }
26570 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
26571 $as_echo_n "(cached) " >&6
26573 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
26576 if test "$ac_cv_type_long_long_int" = yes; then
26577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26579 { as_fn_set_status 77
26580 as_fn_error "cannot compute sizeof (long long int)
26581 See \`config.log' for more details." "$LINENO" 5; }; }
26583 ac_cv_sizeof_long_long_int=0
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26589 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26593 cat >>confdefs.h <<_ACEOF
26594 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26598 # The cast to long int works around a bug in the HP C Compiler
26599 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26600 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26601 # This bug is HP SR number 8606223364.
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26603 $as_echo_n "checking size of int *... " >&6; }
26604 if test "${ac_cv_sizeof_int_p+set}" = set; then :
26605 $as_echo_n "(cached) " >&6
26607 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
26610 if test "$ac_cv_type_int_p" = yes; then
26611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26613 { as_fn_set_status 77
26614 as_fn_error "cannot compute sizeof (int *)
26615 See \`config.log' for more details." "$LINENO" 5; }; }
26617 ac_cv_sizeof_int_p=0
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26623 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26627 cat >>confdefs.h <<_ACEOF
26628 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26634 $as_echo_n "checking for u_int type... " >&6; }
26635 if test "${ac_cv_have_u_int+set}" = set; then :
26636 $as_echo_n "(cached) " >&6
26639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26640 /* end confdefs.h. */
26642 #include <sys/types.h>
26654 if ac_fn_c_try_compile "$LINENO"; then :
26656 ac_cv_have_u_int="yes"
26660 ac_cv_have_u_int="no"
26664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
26669 $as_echo "$ac_cv_have_u_int" >&6; }
26670 if test "x$ac_cv_have_u_int" = "xyes" ; then
26671 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
26677 $as_echo_n "checking for intmax_t type... " >&6; }
26678 if test "${ac_cv_have_intmax_t+set}" = set; then :
26679 $as_echo_n "(cached) " >&6
26682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26683 /* end confdefs.h. */
26685 #include <sys/types.h>
26697 if ac_fn_c_try_compile "$LINENO"; then :
26699 ac_cv_have_intmax_t="yes"
26703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26704 /* end confdefs.h. */
26706 #include <stdint.h>
26718 if ac_fn_c_try_compile "$LINENO"; then :
26720 ac_cv_have_intmax_t="yes"
26724 ac_cv_have_intmax_t="no"
26728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
26737 $as_echo "$ac_cv_have_intmax_t" >&6; }
26738 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26739 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
26745 $as_echo_n "checking for u_intmax_t type... " >&6; }
26746 if test "${ac_cv_have_u_intmax_t+set}" = set; then :
26747 $as_echo_n "(cached) " >&6
26750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26751 /* end confdefs.h. */
26753 #include <sys/types.h>
26759 u_intmax_t a; a = 1;
26765 if ac_fn_c_try_compile "$LINENO"; then :
26767 ac_cv_have_u_intmax_t="yes"
26771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26772 /* end confdefs.h. */
26774 #include <stdint.h>
26780 u_intmax_t a; a = 1;
26786 if ac_fn_c_try_compile "$LINENO"; then :
26788 ac_cv_have_u_intmax_t="yes"
26792 ac_cv_have_u_intmax_t="no"
26796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
26805 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
26806 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26807 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
26812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
26813 $as_echo_n "checking for intXX_t types... " >&6; }
26814 if test "${ac_cv_have_intxx_t+set}" = set; then :
26815 $as_echo_n "(cached) " >&6
26818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26819 /* end confdefs.h. */
26821 #include <sys/types.h>
26827 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26833 if ac_fn_c_try_compile "$LINENO"; then :
26835 ac_cv_have_intxx_t="yes"
26839 ac_cv_have_intxx_t="no"
26843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
26848 $as_echo "$ac_cv_have_intxx_t" >&6; }
26849 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26850 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
26855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
26856 $as_echo_n "checking for int64_t type... " >&6; }
26857 if test "${ac_cv_have_int64_t+set}" = set; then :
26858 $as_echo_n "(cached) " >&6
26861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26862 /* end confdefs.h. */
26864 #include <sys/types.h>
26876 if ac_fn_c_try_compile "$LINENO"; then :
26878 ac_cv_have_int64_t="yes"
26882 ac_cv_have_int64_t="no"
26886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
26891 $as_echo "$ac_cv_have_int64_t" >&6; }
26892 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26893 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
26898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
26899 $as_echo_n "checking for u_intXX_t types... " >&6; }
26900 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
26901 $as_echo_n "(cached) " >&6
26904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26905 /* end confdefs.h. */
26907 #include <sys/types.h>
26913 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26919 if ac_fn_c_try_compile "$LINENO"; then :
26921 ac_cv_have_u_intxx_t="yes"
26925 ac_cv_have_u_intxx_t="no"
26929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
26934 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
26935 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26936 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
26941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
26942 $as_echo_n "checking for u_int64_t types... " >&6; }
26943 if test "${ac_cv_have_u_int64_t+set}" = set; then :
26944 $as_echo_n "(cached) " >&6
26947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26948 /* end confdefs.h. */
26950 #include <sys/types.h>
26956 u_int64_t a; a = 1;
26962 if ac_fn_c_try_compile "$LINENO"; then :
26964 ac_cv_have_u_int64_t="yes"
26968 ac_cv_have_u_int64_t="no"
26972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
26977 $as_echo "$ac_cv_have_u_int64_t" >&6; }
26978 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26979 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
26984 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26985 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26988 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
26989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26990 /* end confdefs.h. */
26992 #include <sys/bitypes.h>
26998 int8_t a; int16_t b; int32_t c;
26999 u_int8_t e; u_int16_t f; u_int32_t g;
27000 a = b = c = e = f = g = 1;
27006 if ac_fn_c_try_compile "$LINENO"; then :
27008 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27010 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27012 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27015 $as_echo "yes" >&6; }
27019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27020 $as_echo "no" >&6; }
27024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27027 if test -z "$have_u_intxx_t" ; then
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27029 $as_echo_n "checking for uintXX_t types... " >&6; }
27030 if test "${ac_cv_have_uintxx_t+set}" = set; then :
27031 $as_echo_n "(cached) " >&6
27034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27035 /* end confdefs.h. */
27037 #include <sys/types.h>
27043 uint8_t a; uint16_t b;
27044 uint32_t c; a = b = c = 1;
27050 if ac_fn_c_try_compile "$LINENO"; then :
27052 ac_cv_have_uintxx_t="yes"
27056 ac_cv_have_uintxx_t="no"
27060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27065 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27066 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27067 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27072 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27073 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27076 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27078 /* end confdefs.h. */
27080 #include <sys/bitypes.h>
27086 int64_t a; u_int64_t b;
27093 if ac_fn_c_try_compile "$LINENO"; then :
27095 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27097 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27100 $as_echo "yes" >&6; }
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27105 $as_echo "no" >&6; }
27109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27112 if (test -z "$have_uintxx_t" && \
27113 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27116 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27118 /* end confdefs.h. */
27120 #include <sys/bitypes.h>
27126 uint8_t a; uint16_t b;
27127 uint32_t c; a = b = c = 1;
27133 if ac_fn_c_try_compile "$LINENO"; then :
27135 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27138 $as_echo "yes" >&6; }
27142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27143 $as_echo "no" >&6; }
27147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27166 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27167 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27168 eval as_val=\$$as_ac_var
27169 if test "x$as_val" = x""yes; then :
27170 cat >>confdefs.h <<_ACEOF
27171 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27175 echo 'configure: cannot find needed function.'; exit 1
27181 for ac_func in fchdir
27183 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27184 if test "x$ac_cv_func_fchdir" = x""yes; then :
27185 cat >>confdefs.h <<_ACEOF
27186 #define HAVE_FCHDIR 1
27188 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27193 for ac_func in strtoll
27195 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27196 if test "x$ac_cv_func_strtoll" = x""yes; then :
27197 cat >>confdefs.h <<_ACEOF
27198 #define HAVE_STRTOLL 1
27200 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27205 for ac_func in posix_fadvise
27207 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27208 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
27209 cat >>confdefs.h <<_ACEOF
27210 #define HAVE_POSIX_FADVISE 1
27216 for ac_func in fdatasync
27218 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27219 if test "x$ac_cv_func_fdatasync" = x""yes; then :
27220 cat >>confdefs.h <<_ACEOF
27221 #define HAVE_FDATASYNC 1
27228 for ac_func in chflags
27230 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27231 if test "x$ac_cv_func_chflags" = x""yes; then :
27232 cat >>confdefs.h <<_ACEOF
27233 #define HAVE_CHFLAGS 1
27240 for ac_func in snprintf vsnprintf gethostid fseeko
27242 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27243 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27244 eval as_val=\$$as_ac_var
27245 if test "x$as_val" = x""yes; then :
27246 cat >>confdefs.h <<_ACEOF
27247 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27255 $as_echo_n "checking for va_copy... " >&6; }
27256 if test "${ba_cv_va_copy+set}" = set; then :
27257 $as_echo_n "(cached) " >&6
27260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27261 /* end confdefs.h. */
27263 #include <stdarg.h>
27264 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27265 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27271 call_use_va_copy(1,2,3)
27277 if ac_fn_c_try_link "$LINENO"; then :
27287 rm -f core conftest.err conftest.$ac_objext \
27288 conftest$ac_exeext conftest.$ac_ext
27292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27293 $as_echo "$ba_cv_va_copy" >&6; }
27294 test $ba_cv_va_copy = yes &&
27295 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27298 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27300 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27301 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27302 eval as_val=\$$as_ac_var
27303 if test "x$as_val" = x""yes; then :
27304 cat >>confdefs.h <<_ACEOF
27305 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27312 # If resolver functions are not in libc check for -lnsl or -lresolv.
27313 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27314 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
27315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27316 $as_echo "using libc's resolver" >&6; }
27318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27319 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27320 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
27321 $as_echo_n "(cached) " >&6
27323 ac_check_lib_save_LIBS=$LIBS
27325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27326 /* end confdefs.h. */
27328 /* Override any GCC internal prototype to avoid an error.
27329 Use char because int might match the return type of a GCC
27330 builtin and then its argument prototype would still apply. */
27334 char gethostbyname_r ();
27338 return gethostbyname_r ();
27343 if ac_fn_c_try_link "$LINENO"; then :
27344 ac_cv_lib_nsl_gethostbyname_r=yes
27346 ac_cv_lib_nsl_gethostbyname_r=no
27348 rm -f core conftest.err conftest.$ac_objext \
27349 conftest$ac_exeext conftest.$ac_ext
27350 LIBS=$ac_check_lib_save_LIBS
27352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27353 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27354 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
27355 cat >>confdefs.h <<_ACEOF
27356 #define HAVE_LIBNSL 1
27363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27364 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27365 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then :
27366 $as_echo_n "(cached) " >&6
27368 ac_check_lib_save_LIBS=$LIBS
27369 LIBS="-lresolv $LIBS"
27370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27371 /* end confdefs.h. */
27373 /* Override any GCC internal prototype to avoid an error.
27374 Use char because int might match the return type of a GCC
27375 builtin and then its argument prototype would still apply. */
27379 char gethostbyname_r ();
27383 return gethostbyname_r ();
27388 if ac_fn_c_try_link "$LINENO"; then :
27389 ac_cv_lib_resolv_gethostbyname_r=yes
27391 ac_cv_lib_resolv_gethostbyname_r=no
27393 rm -f core conftest.err conftest.$ac_objext \
27394 conftest$ac_exeext conftest.$ac_ext
27395 LIBS=$ac_check_lib_save_LIBS
27397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27398 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27399 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then :
27400 cat >>confdefs.h <<_ACEOF
27401 #define HAVE_LIBRESOLV 1
27404 LIBS="-lresolv $LIBS"
27411 for ac_func in inet_pton
27413 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27414 if test "x$ac_cv_func_inet_pton" = x""yes; then :
27415 cat >>confdefs.h <<_ACEOF
27416 #define HAVE_INET_PTON 1
27418 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27423 for ac_func in inet_ntop
27425 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27426 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
27427 cat >>confdefs.h <<_ACEOF
27428 #define HAVE_INET_NTOP 1
27430 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27435 for ac_func in gethostbyname2
27437 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27438 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
27439 cat >>confdefs.h <<_ACEOF
27440 #define HAVE_GETHOSTBYNAME2 1
27442 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27449 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27450 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then :
27451 $as_echo_n "(cached) " >&6
27454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27455 /* end confdefs.h. */
27457 #include <sys/socket.h>
27463 struct sockaddr s; s.sa_len;
27469 if ac_fn_c_try_compile "$LINENO"; then :
27471 ac_cv_struct_sockaddr_sa_len=yes
27474 ac_cv_struct_sockaddr_sa_len=no
27478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27483 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27485 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27487 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27491 for ac_func in strftime
27493 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27494 if test "x$ac_cv_func_strftime" = x""yes; then :
27495 cat >>confdefs.h <<_ACEOF
27496 #define HAVE_STRFTIME 1
27500 # strftime is in -lintl on SCO UNIX.
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27502 $as_echo_n "checking for strftime in -lintl... " >&6; }
27503 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
27504 $as_echo_n "(cached) " >&6
27506 ac_check_lib_save_LIBS=$LIBS
27507 LIBS="-lintl $LIBS"
27508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27509 /* end confdefs.h. */
27511 /* Override any GCC internal prototype to avoid an error.
27512 Use char because int might match the return type of a GCC
27513 builtin and then its argument prototype would still apply. */
27521 return strftime ();
27526 if ac_fn_c_try_link "$LINENO"; then :
27527 ac_cv_lib_intl_strftime=yes
27529 ac_cv_lib_intl_strftime=no
27531 rm -f core conftest.err conftest.$ac_objext \
27532 conftest$ac_exeext conftest.$ac_ext
27533 LIBS=$ac_check_lib_save_LIBS
27535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27536 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27537 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
27538 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27540 LIBS="-lintl $LIBS"
27546 for ac_func in vprintf
27548 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27549 if test "x$ac_cv_func_vprintf" = x""yes; then :
27550 cat >>confdefs.h <<_ACEOF
27551 #define HAVE_VPRINTF 1
27554 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27555 if test "x$ac_cv_func__doprnt" = x""yes; then :
27557 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27565 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27566 # for constant arguments. Useless!
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27568 $as_echo_n "checking for working alloca.h... " >&6; }
27569 if test "${ac_cv_working_alloca_h+set}" = set; then :
27570 $as_echo_n "(cached) " >&6
27572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27573 /* end confdefs.h. */
27574 #include <alloca.h>
27578 char *p = (char *) alloca (2 * sizeof (int));
27584 if ac_fn_c_try_link "$LINENO"; then :
27585 ac_cv_working_alloca_h=yes
27587 ac_cv_working_alloca_h=no
27589 rm -f core conftest.err conftest.$ac_objext \
27590 conftest$ac_exeext conftest.$ac_ext
27592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27593 $as_echo "$ac_cv_working_alloca_h" >&6; }
27594 if test $ac_cv_working_alloca_h = yes; then
27596 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
27600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
27601 $as_echo_n "checking for alloca... " >&6; }
27602 if test "${ac_cv_func_alloca_works+set}" = set; then :
27603 $as_echo_n "(cached) " >&6
27605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27606 /* end confdefs.h. */
27608 # define alloca __builtin_alloca
27611 # include <malloc.h>
27612 # define alloca _alloca
27614 # ifdef HAVE_ALLOCA_H
27615 # include <alloca.h>
27620 # ifndef alloca /* predefined by HP cc +Olibcalls */
27631 char *p = (char *) alloca (1);
27637 if ac_fn_c_try_link "$LINENO"; then :
27638 ac_cv_func_alloca_works=yes
27640 ac_cv_func_alloca_works=no
27642 rm -f core conftest.err conftest.$ac_objext \
27643 conftest$ac_exeext conftest.$ac_ext
27645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
27646 $as_echo "$ac_cv_func_alloca_works" >&6; }
27648 if test $ac_cv_func_alloca_works = yes; then
27650 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27653 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27654 # that cause trouble. Some versions do not even contain alloca or
27655 # contain a buggy version. If you still want to use their alloca,
27656 # use ar to extract alloca.o from them instead of compiling alloca.c.
27658 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27660 $as_echo "#define C_ALLOCA 1" >>confdefs.h
27663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
27664 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27665 if test "${ac_cv_os_cray+set}" = set; then :
27666 $as_echo_n "(cached) " >&6
27668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27669 /* end confdefs.h. */
27670 #if defined CRAY && ! defined CRAY2
27677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27678 $EGREP "webecray" >/dev/null 2>&1; then :
27686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
27687 $as_echo "$ac_cv_os_cray" >&6; }
27688 if test $ac_cv_os_cray = yes; then
27689 for ac_func in _getb67 GETB67 getb67; do
27690 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27691 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27692 eval as_val=\$$as_ac_var
27693 if test "x$as_val" = x""yes; then :
27695 cat >>confdefs.h <<_ACEOF
27696 #define CRAY_STACKSEG_END $ac_func
27705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
27706 $as_echo_n "checking stack direction for C alloca... " >&6; }
27707 if test "${ac_cv_c_stack_direction+set}" = set; then :
27708 $as_echo_n "(cached) " >&6
27710 if test "$cross_compiling" = yes; then :
27711 ac_cv_c_stack_direction=0
27713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27714 /* end confdefs.h. */
27715 $ac_includes_default
27717 find_stack_direction ()
27719 static char *addr = 0;
27724 return find_stack_direction ();
27727 return (&dummy > addr) ? 1 : -1;
27733 return find_stack_direction () < 0;
27736 if ac_fn_c_try_run "$LINENO"; then :
27737 ac_cv_c_stack_direction=1
27739 ac_cv_c_stack_direction=-1
27741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27742 conftest.$ac_objext conftest.beam conftest.$ac_ext
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
27747 $as_echo "$ac_cv_c_stack_direction" >&6; }
27748 cat >>confdefs.h <<_ACEOF
27749 #define STACK_DIRECTION $ac_cv_c_stack_direction
27755 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
27756 # -lseq on Dynix/PTX, -lgen on Unixware.
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
27758 $as_echo_n "checking for library containing getmntent... " >&6; }
27759 if test "${ac_cv_search_getmntent+set}" = set; then :
27760 $as_echo_n "(cached) " >&6
27762 ac_func_search_save_LIBS=$LIBS
27763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27764 /* end confdefs.h. */
27766 /* Override any GCC internal prototype to avoid an error.
27767 Use char because int might match the return type of a GCC
27768 builtin and then its argument prototype would still apply. */
27776 return getmntent ();
27781 for ac_lib in '' sun seq gen; do
27782 if test -z "$ac_lib"; then
27783 ac_res="none required"
27786 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27788 if ac_fn_c_try_link "$LINENO"; then :
27789 ac_cv_search_getmntent=$ac_res
27791 rm -f core conftest.err conftest.$ac_objext \
27793 if test "${ac_cv_search_getmntent+set}" = set; then :
27797 if test "${ac_cv_search_getmntent+set}" = set; then :
27800 ac_cv_search_getmntent=no
27802 rm conftest.$ac_ext
27803 LIBS=$ac_func_search_save_LIBS
27805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
27806 $as_echo "$ac_cv_search_getmntent" >&6; }
27807 ac_res=$ac_cv_search_getmntent
27808 if test "$ac_res" != no; then :
27809 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27810 ac_cv_func_getmntent=yes
27812 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
27815 ac_cv_func_getmntent=no
27819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
27820 $as_echo_n "checking whether closedir returns void... " >&6; }
27821 if test "${ac_cv_func_closedir_void+set}" = set; then :
27822 $as_echo_n "(cached) " >&6
27824 if test "$cross_compiling" = yes; then :
27825 ac_cv_func_closedir_void=yes
27827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27828 /* end confdefs.h. */
27829 $ac_includes_default
27830 #include <$ac_header_dirent>
27831 #ifndef __cplusplus
27838 return closedir (opendir (".")) != 0;
27843 if ac_fn_c_try_run "$LINENO"; then :
27844 ac_cv_func_closedir_void=no
27846 ac_cv_func_closedir_void=yes
27848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27849 conftest.$ac_objext conftest.beam conftest.$ac_ext
27853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
27854 $as_echo "$ac_cv_func_closedir_void" >&6; }
27855 if test $ac_cv_func_closedir_void = yes; then
27857 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
27861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27862 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27863 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
27864 $as_echo_n "(cached) " >&6
27866 if test "$cross_compiling" = yes; then :
27867 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
27869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27870 /* end confdefs.h. */
27871 $ac_includes_default
27875 /* If this system has a BSD-style setpgrp which takes arguments,
27876 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
27877 exit successfully. */
27878 return setpgrp (1,1) != -1;
27883 if ac_fn_c_try_run "$LINENO"; then :
27884 ac_cv_func_setpgrp_void=no
27886 ac_cv_func_setpgrp_void=yes
27888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27889 conftest.$ac_objext conftest.beam conftest.$ac_ext
27893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
27894 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
27895 if test $ac_cv_func_setpgrp_void = yes; then
27897 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
27900 # AC_FUNC_FNMATCH dnl use local version
27902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
27903 $as_echo_n "checking for gettext in -lintl... " >&6; }
27904 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
27905 $as_echo_n "(cached) " >&6
27907 ac_check_lib_save_LIBS=$LIBS
27908 LIBS="-lintl $LIBS"
27909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27910 /* end confdefs.h. */
27912 /* Override any GCC internal prototype to avoid an error.
27913 Use char because int might match the return type of a GCC
27914 builtin and then its argument prototype would still apply. */
27927 if ac_fn_c_try_link "$LINENO"; then :
27928 ac_cv_lib_intl_gettext=yes
27930 ac_cv_lib_intl_gettext=no
27932 rm -f core conftest.err conftest.$ac_objext \
27933 conftest$ac_exeext conftest.$ac_ext
27934 LIBS=$ac_check_lib_save_LIBS
27936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
27937 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
27938 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
27939 LIBS="$LIBS -lintl"
27943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
27944 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
27945 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
27946 $as_echo_n "(cached) " >&6
27948 ac_check_lib_save_LIBS=$LIBS
27950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27951 /* end confdefs.h. */
27953 /* Override any GCC internal prototype to avoid an error.
27954 Use char because int might match the return type of a GCC
27955 builtin and then its argument prototype would still apply. */
27963 return getpwnam ();
27968 if ac_fn_c_try_link "$LINENO"; then :
27969 ac_cv_lib_sun_getpwnam=yes
27971 ac_cv_lib_sun_getpwnam=no
27973 rm -f core conftest.err conftest.$ac_objext \
27974 conftest$ac_exeext conftest.$ac_ext
27975 LIBS=$ac_check_lib_save_LIBS
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
27978 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
27979 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
27980 cat >>confdefs.h <<_ACEOF
27981 #define HAVE_LIBSUN 1
27989 for ac_header in zlib.h
27991 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
27992 if test "x$ac_cv_header_zlib_h" = x""yes; then :
27993 cat >>confdefs.h <<_ACEOF
27994 #define HAVE_ZLIB_H 1
28001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28002 $as_echo_n "checking for deflate in -lz... " >&6; }
28003 if test "${ac_cv_lib_z_deflate+set}" = set; then :
28004 $as_echo_n "(cached) " >&6
28006 ac_check_lib_save_LIBS=$LIBS
28008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28009 /* end confdefs.h. */
28011 /* Override any GCC internal prototype to avoid an error.
28012 Use char because int might match the return type of a GCC
28013 builtin and then its argument prototype would still apply. */
28026 if ac_fn_c_try_link "$LINENO"; then :
28027 ac_cv_lib_z_deflate=yes
28029 ac_cv_lib_z_deflate=no
28031 rm -f core conftest.err conftest.$ac_objext \
28032 conftest$ac_exeext conftest.$ac_ext
28033 LIBS=$ac_check_lib_save_LIBS
28035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28036 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28037 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
28042 if test x$FDLIBS = x-lz; then
28043 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28049 # Check whether --enable-acl was given.
28050 if test "${enable_acl+set}" = set; then :
28051 enableval=$enable_acl;
28052 if test x$enableval = xyes; then
28054 elif test x$enableval = xno; then
28063 have_extended_acl=no
28064 if test x$support_acl = xyes -o x$support_acl = xauto; then
28065 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28066 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
28068 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28073 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28074 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
28080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28081 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28082 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
28083 $as_echo_n "(cached) " >&6
28085 ac_check_lib_save_LIBS=$LIBS
28087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28088 /* end confdefs.h. */
28090 /* Override any GCC internal prototype to avoid an error.
28091 Use char because int might match the return type of a GCC
28092 builtin and then its argument prototype would still apply. */
28096 char acl_get_file ();
28100 return acl_get_file ();
28105 if ac_fn_c_try_link "$LINENO"; then :
28106 ac_cv_lib_acl_acl_get_file=yes
28108 ac_cv_lib_acl_acl_get_file=no
28110 rm -f core conftest.err conftest.$ac_objext \
28111 conftest$ac_exeext conftest.$ac_ext
28112 LIBS=$ac_check_lib_save_LIBS
28114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28115 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28116 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
28119 FDLIBS="-lacl $FDLIBS"
28123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28124 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28125 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
28126 $as_echo_n "(cached) " >&6
28128 ac_check_lib_save_LIBS=$LIBS
28129 LIBS="-lpacl $LIBS"
28130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28131 /* end confdefs.h. */
28133 /* Override any GCC internal prototype to avoid an error.
28134 Use char because int might match the return type of a GCC
28135 builtin and then its argument prototype would still apply. */
28139 char acl_get_file ();
28143 return acl_get_file ();
28148 if ac_fn_c_try_link "$LINENO"; then :
28149 ac_cv_lib_pacl_acl_get_file=yes
28151 ac_cv_lib_pacl_acl_get_file=no
28153 rm -f core conftest.err conftest.$ac_objext \
28154 conftest$ac_exeext conftest.$ac_ext
28155 LIBS=$ac_check_lib_save_LIBS
28157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28158 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28159 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
28162 FDLIBS="-lpacl $FDLIBS"
28166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28167 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28168 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
28169 $as_echo_n "(cached) " >&6
28171 ac_check_lib_save_LIBS=$LIBS
28173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28174 /* end confdefs.h. */
28176 /* Override any GCC internal prototype to avoid an error.
28177 Use char because int might match the return type of a GCC
28178 builtin and then its argument prototype would still apply. */
28186 return acltotext ();
28191 if ac_fn_c_try_link "$LINENO"; then :
28192 ac_cv_lib_sec_acltotext=yes
28194 ac_cv_lib_sec_acltotext=no
28196 rm -f core conftest.err conftest.$ac_objext \
28197 conftest$ac_exeext conftest.$ac_ext
28198 LIBS=$ac_check_lib_save_LIBS
28200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28201 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28202 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
28205 FDLIBS="-lsec $FDLIBS"
28207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28208 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28209 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
28210 $as_echo_n "(cached) " >&6
28212 ac_check_lib_save_LIBS=$LIBS
28214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28215 /* end confdefs.h. */
28217 /* Override any GCC internal prototype to avoid an error.
28218 Use char because int might match the return type of a GCC
28219 builtin and then its argument prototype would still apply. */
28223 char acl_totext ();
28227 return acl_totext ();
28232 if ac_fn_c_try_link "$LINENO"; then :
28233 ac_cv_lib_sec_acl_totext=yes
28235 ac_cv_lib_sec_acl_totext=no
28237 rm -f core conftest.err conftest.$ac_objext \
28238 conftest$ac_exeext conftest.$ac_ext
28239 LIBS=$ac_check_lib_save_LIBS
28241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28242 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28243 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
28245 have_extended_acl=yes
28267 if test x$support_acl = xyes -a $have_acl != yes; then
28268 as_fn_error "acl support explicitly enabled but no supported acl implementation found,
28269 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28271 if test $have_acl = yes; then
28273 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28277 if test $have_extended_acl = yes; then
28279 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28286 # Check whether --enable-xattr was given.
28287 if test "${enable_xattr+set}" = set; then :
28288 enableval=$enable_xattr;
28289 if test x$enableval = xyes; then
28291 elif test x$enableval = xno; then
28300 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28301 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28302 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
28304 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28309 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28310 if test "x$ac_cv_header_libutil_h" = x""yes; then :
28312 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28317 for ac_func in extattr_get_link extattr_set_link extattr_list_link
28319 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28320 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28321 eval as_val=\$$as_ac_var
28322 if test "x$as_val" = x""yes; then :
28323 cat >>confdefs.h <<_ACEOF
28324 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28329 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28332 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28335 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28343 if test $have_xattr = no; then
28344 for ac_func in extattr_get_file extattr_set_file extattr_list_file
28346 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28347 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28348 eval as_val=\$$as_ac_var
28349 if test "x$as_val" = x""yes; then :
28350 cat >>confdefs.h <<_ACEOF
28351 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28356 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28359 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28362 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28371 if test $have_xattr = yes; then
28372 have_extattr_string_in_libc=no
28373 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28375 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28376 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28377 eval as_val=\$$as_ac_var
28378 if test "x$as_val" = x""yes; then :
28379 cat >>confdefs.h <<_ACEOF
28380 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28383 have_extattr_string_in_libc=yes
28385 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28388 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28396 if test $have_extattr_string_in_libc = no; then
28397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28398 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28399 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
28400 $as_echo_n "(cached) " >&6
28402 ac_check_lib_save_LIBS=$LIBS
28403 LIBS="-lutil $LIBS"
28404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28405 /* end confdefs.h. */
28407 /* Override any GCC internal prototype to avoid an error.
28408 Use char because int might match the return type of a GCC
28409 builtin and then its argument prototype would still apply. */
28413 char extattr_namespace_to_string extattr_string_to_namespace ();
28417 return extattr_namespace_to_string extattr_string_to_namespace ();
28422 if ac_fn_c_try_link "$LINENO"; then :
28423 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28425 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28427 rm -f core conftest.err conftest.$ac_objext \
28428 conftest$ac_exeext conftest.$ac_ext
28429 LIBS=$ac_check_lib_save_LIBS
28431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28432 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28433 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
28436 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28439 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28441 FDLIBS="-lutil $FDLIBS"
28449 if test $have_xattr = no; then
28450 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
28451 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
28453 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
28458 for ac_func in llistxattr lgetxattr lsetxattr
28460 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28461 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28462 eval as_val=\$$as_ac_var
28463 if test "x$as_val" = x""yes; then :
28464 cat >>confdefs.h <<_ACEOF
28465 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28470 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
28473 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
28476 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
28484 if test $have_xattr = no; then
28485 for ac_func in listxattr getxattr setxattr
28487 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28488 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28489 eval as_val=\$$as_ac_var
28490 if test "x$as_val" = x""yes; then :
28491 cat >>confdefs.h <<_ACEOF
28492 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28497 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
28500 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
28503 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
28513 if test $have_xattr = no; then
28514 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
28515 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
28517 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
28522 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
28523 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
28525 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
28530 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
28531 if test "x$ac_cv_header_attr_h" = x""yes; then :
28533 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
28539 for ac_func in openat fstatat unlinkat fchownat futimesat
28541 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28542 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28543 eval as_val=\$$as_ac_var
28544 if test "x$as_val" = x""yes; then :
28545 cat >>confdefs.h <<_ACEOF
28546 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28551 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
28554 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
28557 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
28560 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
28563 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
28571 if test $have_xattr = yes; then
28572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
28573 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
28574 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
28575 $as_echo_n "(cached) " >&6
28577 ac_check_lib_save_LIBS=$LIBS
28578 LIBS="-lnvpair $LIBS"
28579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28580 /* end confdefs.h. */
28582 /* Override any GCC internal prototype to avoid an error.
28583 Use char because int might match the return type of a GCC
28584 builtin and then its argument prototype would still apply. */
28588 char nvlist_next_nvpair ();
28592 return nvlist_next_nvpair ();
28597 if ac_fn_c_try_link "$LINENO"; then :
28598 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
28600 ac_cv_lib_nvpair_nvlist_next_nvpair=no
28602 rm -f core conftest.err conftest.$ac_objext \
28603 conftest$ac_exeext conftest.$ac_ext
28604 LIBS=$ac_check_lib_save_LIBS
28606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
28607 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
28608 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
28611 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
28613 FDLIBS="-lnvpair $FDLIBS"
28621 if test x$support_xattr = xyes -a $have_xattr != yes; then
28622 as_fn_error "xattr support explicitly enabled but no supported xattr implementation found,
28623 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
28625 if test $have_xattr = yes; then
28627 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
28634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
28635 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
28636 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
28637 $as_echo_n "(cached) " >&6
28639 ac_check_lib_save_LIBS=$LIBS
28640 LIBS="-lpthread $LIBS"
28641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28642 /* end confdefs.h. */
28644 /* Override any GCC internal prototype to avoid an error.
28645 Use char because int might match the return type of a GCC
28646 builtin and then its argument prototype would still apply. */
28650 char pthread_create ();
28654 return pthread_create ();
28659 if ac_fn_c_try_link "$LINENO"; then :
28660 ac_cv_lib_pthread_pthread_create=yes
28662 ac_cv_lib_pthread_pthread_create=no
28664 rm -f core conftest.err conftest.$ac_objext \
28665 conftest$ac_exeext conftest.$ac_ext
28666 LIBS=$ac_check_lib_save_LIBS
28668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
28669 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
28670 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
28671 PTHREAD_LIB="-lpthread"
28674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
28675 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
28676 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
28677 $as_echo_n "(cached) " >&6
28679 ac_check_lib_save_LIBS=$LIBS
28680 LIBS="-lpthreads $LIBS"
28681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28682 /* end confdefs.h. */
28684 /* Override any GCC internal prototype to avoid an error.
28685 Use char because int might match the return type of a GCC
28686 builtin and then its argument prototype would still apply. */
28690 char pthread_create ();
28694 return pthread_create ();
28699 if ac_fn_c_try_link "$LINENO"; then :
28700 ac_cv_lib_pthreads_pthread_create=yes
28702 ac_cv_lib_pthreads_pthread_create=no
28704 rm -f core conftest.err conftest.$ac_objext \
28705 conftest$ac_exeext conftest.$ac_ext
28706 LIBS=$ac_check_lib_save_LIBS
28708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
28709 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
28710 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
28711 PTHREAD_LIB="-lpthreads"
28714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
28715 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
28716 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
28717 $as_echo_n "(cached) " >&6
28719 ac_check_lib_save_LIBS=$LIBS
28721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28722 /* end confdefs.h. */
28724 /* Override any GCC internal prototype to avoid an error.
28725 Use char because int might match the return type of a GCC
28726 builtin and then its argument prototype would still apply. */
28730 char pthread_create ();
28734 return pthread_create ();
28739 if ac_fn_c_try_link "$LINENO"; then :
28740 ac_cv_lib_c_r_pthread_create=yes
28742 ac_cv_lib_c_r_pthread_create=no
28744 rm -f core conftest.err conftest.$ac_objext \
28745 conftest$ac_exeext conftest.$ac_ext
28746 LIBS=$ac_check_lib_save_LIBS
28748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
28749 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
28750 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
28751 PTHREAD_LIB="-lc_r"
28754 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
28755 if test "x$ac_cv_func_pthread_create" = x""yes; then :
28772 for ac_header in sys/prctl.h sys/capability.h
28774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28775 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28776 eval as_val=\$$as_ac_Header
28777 if test "x$as_val" = x""yes; then :
28778 cat >>confdefs.h <<_ACEOF
28779 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28786 for ac_func in prctl setreuid
28788 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28789 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28790 eval as_val=\$$as_ac_var
28791 if test "x$as_val" = x""yes; then :
28792 cat >>confdefs.h <<_ACEOF
28793 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
28800 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
28801 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
28802 $as_echo_n "(cached) " >&6
28804 ac_check_lib_save_LIBS=$LIBS
28806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28807 /* end confdefs.h. */
28809 /* Override any GCC internal prototype to avoid an error.
28810 Use char because int might match the return type of a GCC
28811 builtin and then its argument prototype would still apply. */
28815 char cap_set_proc ();
28819 return cap_set_proc ();
28824 if ac_fn_c_try_link "$LINENO"; then :
28825 ac_cv_lib_cap_cap_set_proc=yes
28827 ac_cv_lib_cap_cap_set_proc=no
28829 rm -f core conftest.err conftest.$ac_objext \
28830 conftest$ac_exeext conftest.$ac_ext
28831 LIBS=$ac_check_lib_save_LIBS
28833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
28834 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
28835 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
28841 if test x$CAP_LIBS = x-lcap; then
28843 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
28849 $as_echo "#define FDLIBS 1" >>confdefs.h
28852 CFLAGS=${CFLAGS--O}
28854 if test x$have_gcc = xyes ; then
28855 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
28856 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
28858 LDFLAGS=${LDFLAGS--O}
28859 DB_LIBS="${SQL_LFLAGS}"
28860 CPPFLAGS="$CPPFLAGS"
28887 PFILES="platforms/Makefile"
28892 hostname=`uname -n | cut -d '.' -f 1`
28893 if test x${hostname} = x ; then
28894 hostname="localhost"
28896 ping -c 1 $hostname 2>/dev/null 1>/dev/null
28897 if test ! $? = 0; then
28898 hostname="localhost"
28901 case "$DISTNAME" in
28904 PSCMD="ps -e -o pid,comm"
28905 PFILES="${PFILES} \
28906 platforms/aix/Makefile"
28907 TAPEDRIVE="/dev/rmt0.1"
28911 PTHREAD_LIB="-lpthread -lexc"
28912 if test "${CC}" = "gcc" ; then
28919 TAPEDRIVE="/dev/nrmt0"
28922 DISTVER=`uname -a |awk '{print $3}'`
28923 TAPEDRIVE="/dev/nrmt0"
28924 PTHREAD_LIB="-pthread"
28925 CFLAGS="${CFLAGS} -pthread"
28926 PSCMD="ps -ax -o pid,command"
28929 PFILES="${PFILES} \
28930 platforms/bsdi/Makefile \
28931 platforms/bsdi/bacula-fd \
28932 platforms/bsdi/bacula-sd \
28933 platforms/bsdi/bacula-dir"
28934 largefile_support="yes"
28937 DISTVER=`uname -a |awk '{print $3}'`
28938 TAPEDRIVE="/dev/nrst0"
28940 WCFLAGS="-mwindows"
28941 WLDFLAGS="-mwindows"
28945 TAPEDRIVE="/dev/nst0"
28946 PSCMD="ps -e -o pid,command"
28948 PFILES="${PFILES} \
28949 platforms/darwin/Makefile"
28953 TAPEDRIVE="/dev/nst0"
28954 PSCMD="ps -e -o pid,command"
28956 PFILES="${PFILES} \
28957 platforms/osx/Makefile"
28960 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
28963 DISTVER=`cat /etc/debian_version`
28964 if test -f /etc/lsb-release ; then
28966 if test "x$DISTRIB_ID" != "x" ; then
28967 DISTNAME=$DISTRIB_ID
28969 if test "x$DISTRIB_RELEASE" != "x" ; then
28970 DISTVER=$DISTRIB_RELEASE
28973 if test "$DISTNAME" = "Ubuntu" ; then
28976 TAPEDRIVE="/dev/nst0"
28977 PSCMD="ps -e -o pid,command"
28978 if test "$DISTNAME" = "ubuntu" ; then
28979 PFILES="${PFILES} \
28980 platforms/ubuntu/Makefile \
28981 platforms/ubuntu/bacula-fd \
28982 platforms/ubuntu/bacula-sd \
28983 platforms/ubuntu/bacula-dir"
28985 PFILES="${PFILES} \
28986 platforms/debian/Makefile \
28987 platforms/debian/bacula-fd \
28988 platforms/debian/bacula-sd \
28989 platforms/debian/bacula-dir"
28993 DISTVER=`uname -a |awk '{print $3}'`
28994 VER=`echo $DISTVER | cut -c 1`
28995 if test x$VER = x4 ; then
28996 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
28997 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29001 TAPEDRIVE="/dev/nrsa0"
29002 PSCMD="ps -ax -o pid,command"
29003 PFILES="${PFILES} \
29004 platforms/freebsd/Makefile \
29005 platforms/freebsd/bacula-fd \
29006 platforms/freebsd/bacula-sd \
29007 platforms/freebsd/bacula-dir"
29008 largefile_support="yes"
29011 PSCMD="UNIX95=1; ps -e -o pid,comm"
29012 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29014 TAPEDRIVE="/dev/rmt/0hnb"
29015 PTHREAD_LIB="-lpthread"
29016 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29021 TAPEDRIVE="/dev/rmt/0cbn"
29022 PSCMD="ps -e -o pid,comm"
29023 PFILES="${PFILES} \
29024 platforms/irix/Makefile \
29025 platforms/irix/bacula-fd \
29026 platforms/irix/bacula-sd \
29027 platforms/irix/bacula-dir"
29030 DISTVER=`uname -a |awk '{print $3}'`
29033 TAPEDRIVE="/dev/nrst0"
29034 PSCMD="ps -ax -o pid,command"
29035 PTHREAD_LIB="-pthread"
29036 CFLAGS="${CFLAGS} -pthread"
29039 DISTVER=`uname -a |awk '{print $3}'`
29042 TAPEDRIVE="/dev/nrst0"
29043 PSCMD="ps -ax -o pid,command"
29044 PTHREAD_LIB="-pthread"
29045 CFLAGS="${CFLAGS} -pthread"
29046 PFILES="${PFILES} \
29047 platforms/openbsd/Makefile \
29048 platforms/openbsd/bacula-fd \
29049 platforms/openbsd/bacula-sd \
29050 platforms/openbsd/bacula-dir"
29053 if test -f /etc/whitebox-release ; then
29054 f=/etc/whitebox-release
29056 f=/etc/redhat-release
29058 if test `cat $f | grep release |\
29059 cut -f 3 -d ' '`x = "Enterprise"x ; then
29060 DISTVER="Enterprise "`cat $f | grep release |\
29063 DISTVER=`cat /etc/redhat-release | grep release |\
29066 TAPEDRIVE="/dev/nst0"
29067 PSCMD="ps -e -o pid,command"
29068 PFILES="${PFILES} \
29069 platforms/redhat/Makefile \
29070 platforms/redhat/bacula-fd \
29071 platforms/redhat/bacula-sd \
29072 platforms/redhat/bacula-dir
29076 DISTVER=`cat /etc/mandrake-release | grep release |\
29078 TAPEDRIVE="/dev/nst0"
29079 PSCMD="ps -e -o pid,command"
29080 PFILES="${PFILES} \
29081 platforms/mandrake/Makefile \
29082 platforms/mandrake/bacula-fd \
29083 platforms/mandrake/bacula-sd \
29084 platforms/mandrake/bacula-dir \
29088 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29089 TAPEDRIVE="/dev/nst0"
29090 PSCMD="ps -e -o pid,command"
29091 PFILES="${PFILES} \
29092 platforms/gentoo/Makefile \
29093 platforms/gentoo/bacula-init \
29094 platforms/gentoo/bacula-fd \
29095 platforms/gentoo/bacula-sd \
29096 platforms/gentoo/bacula-dir"
29099 DISTVER=`cat /etc/slackware-version`
29100 TAPEDRIVE="/dev/nst0"
29101 PSCMD="ps -e -o pid,command"
29102 PFILES="${PFILES} \
29103 platforms/slackware/Makefile \
29104 platforms/slackware/rc.bacula-fd \
29105 platforms/slackware/rc.bacula-sd \
29106 platforms/slackware/rc.bacula-dir\
29107 platforms/slackware/functions.bacula"
29111 TAPEDRIVE="/dev/rmt/0cbn"
29112 PSCMD="ps -e -o pid,comm"
29113 PFILES="${PFILES} \
29114 platforms/solaris/Makefile \
29115 platforms/solaris/bacula-fd \
29116 platforms/solaris/bacula-sd \
29117 platforms/solaris/bacula-dir"
29118 if test x$DISTVER = x5.6 ; then
29119 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29122 LIBS="$LIBS -lresolv -lrt"
29125 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29127 TAPEDRIVE="/dev/nst0"
29128 PSCMD="ps -e -o pid,command"
29129 PFILES="${PFILES} \
29130 platforms/suse/Makefile \
29131 platforms/suse/bacula-fd \
29132 platforms/suse/bacula-sd \
29133 platforms/suse/bacula-dir"
29138 TAPEDRIVE="/dev/nst0"
29139 PSCMD="ps -e -o pid,command"
29140 PFILES="${PFILES} \
29141 platforms/suse/Makefile \
29142 platforms/suse/bacula-fd \
29143 platforms/suse/bacula-sd \
29144 platforms/suse/bacula-dir"
29148 TAPEDRIVE="/dev/nst0"
29151 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29157 LIBS="$PTHREAD_LIB $LIBS"
29159 cat >>confdefs.h <<_ACEOF
29163 cat >>confdefs.h <<_ACEOF
29174 MCOMMON=./autoconf/Make.common
29177 if test "x${subsysdir}" = "x${sbindir}" ; then
29180 echo "You have set both --sbindir and --with-subsys-dir"
29181 echo " equal to: ${subsysdir} "
29182 echo "This is not permitted. Please reconfigure."
29184 echo "Aborting configuration ..."
29190 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"
29192 ac_config_commands="$ac_config_commands default"
29194 cat >confcache <<\_ACEOF
29195 # This file is a shell script that caches the results of configure
29196 # tests run on this system so they can be shared between configure
29197 # scripts and configure runs, see configure's option --config-cache.
29198 # It is not useful on other systems. If it contains results you don't
29199 # want to keep, you may remove or edit it.
29201 # config.status only pays attention to the cache file if you give it
29202 # the --recheck option to rerun configure.
29204 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29205 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29206 # following values.
29210 # The following way of writing the cache mishandles newlines in values,
29211 # but we know of no workaround that is simple, portable, and efficient.
29212 # So, we kill variables containing newlines.
29213 # Ultrix sh set writes to stderr and can't be redirected directly,
29214 # and sets the high bit in the cache file unless we assign to the vars.
29216 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29217 eval ac_val=\$$ac_var
29221 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29222 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29225 _ | IFS | as_nl) ;; #(
29226 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29227 *) { eval $ac_var=; unset $ac_var;} ;;
29233 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29234 *${as_nl}ac_space=\ *)
29235 # `set' does not quote correctly, so add quotes: double-quote
29236 # substitution turns \\\\ into \\, and sed turns \\ into \.
29239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29242 # `set' quotes correctly as required by POSIX, so do not add quotes.
29243 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29252 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29254 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29256 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29257 if test -w "$cache_file"; then
29258 test "x$cache_file" != "x/dev/null" &&
29259 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29260 $as_echo "$as_me: updating cache $cache_file" >&6;}
29261 cat confcache >$cache_file
29263 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29264 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29269 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29270 # Let make expand exec_prefix.
29271 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29273 DEFS=-DHAVE_CONFIG_H
29277 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29278 # 1. Remove the extension, and $U if already installed.
29279 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29280 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29281 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29282 # will be set to the directory where LIBOBJS objects are built.
29283 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29284 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29286 LIBOBJS=$ac_libobjs
29288 LTLIBOBJS=$ac_ltlibobjs
29292 : ${CONFIG_STATUS=./config.status}
29294 ac_clean_files_save=$ac_clean_files
29295 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29296 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29297 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29299 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29301 # Generated by $as_me.
29302 # Run this file to recreate the current configuration.
29303 # Compiler output produced by configure, useful for debugging
29304 # configure, is in config.log if it exists.
29307 ac_cs_recheck=false
29310 SHELL=\${CONFIG_SHELL-$SHELL}
29313 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29314 ## -------------------- ##
29315 ## M4sh Initialization. ##
29316 ## -------------------- ##
29318 # Be more Bourne compatible
29319 DUALCASE=1; export DUALCASE # for MKS sh
29320 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29323 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29324 # is contrary to our usage. Disable this feature.
29325 alias -g '${1+"$@"}'='"$@"'
29326 setopt NO_GLOB_SUBST
29328 case `(set -o) 2>/dev/null` in #(
29340 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29341 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29342 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29343 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29344 # Prefer a ksh shell builtin over an external printf program on Solaris,
29345 # but without wasting forks for bash or zsh.
29346 if test -z "$BASH_VERSION$ZSH_VERSION" \
29347 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29348 as_echo='print -r --'
29349 as_echo_n='print -rn --'
29350 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29351 as_echo='printf %s\n'
29352 as_echo_n='printf %s'
29354 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29355 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29356 as_echo_n='/usr/ucb/echo -n'
29358 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29359 as_echo_n_body='eval
29363 expr "X$arg" : "X\\(.*\\)$as_nl";
29364 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29366 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29368 export as_echo_n_body
29369 as_echo_n='sh -c $as_echo_n_body as_echo'
29371 export as_echo_body
29372 as_echo='sh -c $as_echo_body as_echo'
29375 # The user is always right.
29376 if test "${PATH_SEPARATOR+set}" != set; then
29378 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29379 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29386 # We need space, tab and new line, in precisely that order. Quoting is
29387 # there to prevent editors from complaining about space-tab.
29388 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29389 # splitting by setting IFS to empty value.)
29392 # Find who we are. Look in the path if we contain no directory separator.
29394 *[\\/]* ) as_myself=$0 ;;
29395 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29396 for as_dir in $PATH
29399 test -z "$as_dir" && as_dir=.
29400 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29406 # We did not find ourselves, most probably we were run as `sh COMMAND'
29407 # in which case we are not to be found in the path.
29408 if test "x$as_myself" = x; then
29411 if test ! -f "$as_myself"; then
29412 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29416 # Unset variables that we do not need and which cause bugs (e.g. in
29417 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29418 # suppresses any "Segmentation fault" message there. '((' could
29419 # trigger a bug in pdksh 5.2.14.
29420 for as_var in BASH_ENV ENV MAIL MAILPATH
29421 do eval test x\${$as_var+set} = xset \
29422 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29435 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29438 # as_fn_error ERROR [LINENO LOG_FD]
29439 # ---------------------------------
29440 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29441 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29442 # script with status $?, using 1 if that was 0.
29445 as_status=$?; test $as_status -eq 0 && as_status=1
29447 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29448 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29450 $as_echo "$as_me: error: $1" >&2
29451 as_fn_exit $as_status
29455 # as_fn_set_status STATUS
29456 # -----------------------
29457 # Set $? to STATUS, without forking.
29458 as_fn_set_status ()
29461 } # as_fn_set_status
29463 # as_fn_exit STATUS
29464 # -----------------
29465 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29469 as_fn_set_status $1
29475 # Portably unset VAR.
29478 { eval $1=; unset $1;}
29480 as_unset=as_fn_unset
29481 # as_fn_append VAR VALUE
29482 # ----------------------
29483 # Append the text in VALUE to the end of the definition contained in VAR. Take
29484 # advantage of any shell optimizations that allow amortized linear growth over
29485 # repeated appends, instead of the typical quadratic growth present in naive
29487 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29488 eval 'as_fn_append ()
29499 # as_fn_arith ARG...
29500 # ------------------
29501 # Perform arithmetic evaluation on the ARGs, and store the result in the
29502 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29503 # must be portable across $(()) and expr.
29504 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29505 eval 'as_fn_arith ()
29512 as_val=`expr "$@" || test $? -eq 1`
29517 if expr a : '\(a\)' >/dev/null 2>&1 &&
29518 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29524 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29525 as_basename=basename
29530 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29536 as_me=`$as_basename -- "$0" ||
29537 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29538 X"$0" : 'X\(//\)$' \| \
29539 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29541 sed '/^.*\/\([^/][^/]*\)\/*$/{
29555 # Avoid depending upon Character Ranges.
29556 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29557 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29558 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29559 as_cr_digits='0123456789'
29560 as_cr_alnum=$as_cr_Letters$as_cr_digits
29562 ECHO_C= ECHO_N= ECHO_T=
29563 case `echo -n x` in #(((((
29565 case `echo 'xy\c'` in
29566 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29568 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29575 rm -f conf$$ conf$$.exe conf$$.file
29576 if test -d conf$$.dir; then
29577 rm -f conf$$.dir/conf$$.file
29580 mkdir conf$$.dir 2>/dev/null
29582 if (echo >conf$$.file) 2>/dev/null; then
29583 if ln -s conf$$.file conf$$ 2>/dev/null; then
29585 # ... but there are two gotchas:
29586 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29587 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29588 # In both cases, we have to default to `cp -p'.
29589 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29591 elif ln conf$$.file conf$$ 2>/dev/null; then
29599 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29600 rmdir conf$$.dir 2>/dev/null
29605 # Create "$as_dir" as a directory, including parents if necessary.
29610 -*) as_dir=./$as_dir;;
29612 test -d "$as_dir" || eval $as_mkdir_p || {
29616 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29617 *) as_qdir=$as_dir;;
29619 as_dirs="'$as_qdir' $as_dirs"
29620 as_dir=`$as_dirname -- "$as_dir" ||
29621 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29622 X"$as_dir" : 'X\(//\)[^/]' \| \
29623 X"$as_dir" : 'X\(//\)$' \| \
29624 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29625 $as_echo X"$as_dir" |
29626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29630 /^X\(\/\/\)[^/].*/{
29643 test -d "$as_dir" && break
29645 test -z "$as_dirs" || eval "mkdir $as_dirs"
29646 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29650 if mkdir -p . 2>/dev/null; then
29651 as_mkdir_p='mkdir -p "$as_dir"'
29653 test -d ./-p && rmdir ./-p
29657 if test -x / >/dev/null 2>&1; then
29658 as_test_x='test -x'
29660 if ls -dL / >/dev/null 2>&1; then
29667 if test -d "$1"; then
29673 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29674 ???[sx]*):;;*)false;;esac;fi
29678 as_executable_p=$as_test_x
29680 # Sed expression to map a string onto a valid CPP name.
29681 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29683 # Sed expression to map a string onto a valid variable name.
29684 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29688 ## ----------------------------------- ##
29689 ## Main body of $CONFIG_STATUS script. ##
29690 ## ----------------------------------- ##
29692 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29695 # Save the log message, to keep $0 and so on meaningful, and to
29696 # report actual input values of CONFIG_FILES etc. instead of their
29697 # values after options handling.
29699 This file was extended by $as_me, which was
29700 generated by GNU Autoconf 2.65. Invocation command line was
29702 CONFIG_FILES = $CONFIG_FILES
29703 CONFIG_HEADERS = $CONFIG_HEADERS
29704 CONFIG_LINKS = $CONFIG_LINKS
29705 CONFIG_COMMANDS = $CONFIG_COMMANDS
29708 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29713 case $ac_config_files in *"
29714 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29717 case $ac_config_headers in *"
29718 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29723 # Files that config.status was made for.
29724 config_files="$ac_config_files"
29725 config_headers="$ac_config_headers"
29726 config_commands="$ac_config_commands"
29730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29732 \`$as_me' instantiates files and other configuration actions
29733 from templates according to the current configuration. Unless the files
29734 and actions are specified as TAGs, all are instantiated by default.
29736 Usage: $0 [OPTION]... [TAG]...
29738 -h, --help print this help, then exit
29739 -V, --version print version number and configuration settings, then exit
29740 --config print configuration, then exit
29741 -q, --quiet, --silent
29742 do not print progress messages
29743 -d, --debug don't remove temporary files
29744 --recheck update $as_me by reconfiguring in the same conditions
29745 --file=FILE[:TEMPLATE]
29746 instantiate the configuration file FILE
29747 --header=FILE[:TEMPLATE]
29748 instantiate the configuration header FILE
29750 Configuration files:
29753 Configuration headers:
29756 Configuration commands:
29759 Report bugs to the package provider."
29762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29763 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29766 configured by $0, generated by GNU Autoconf 2.65,
29767 with options \\"\$ac_cs_config\\"
29769 Copyright (C) 2009 Free Software Foundation, Inc.
29770 This config.status script is free software; the Free Software Foundation
29771 gives unlimited permission to copy, distribute and modify it."
29777 test -n "\$AWK" || AWK=awk
29780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29781 # The default lists apply if the user does not specify any file.
29787 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29788 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29799 # Handling of the options.
29800 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29802 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29803 $as_echo "$ac_cs_version"; exit ;;
29804 --config | --confi | --conf | --con | --co | --c )
29805 $as_echo "$ac_cs_config"; exit ;;
29806 --debug | --debu | --deb | --de | --d | -d )
29808 --file | --fil | --fi | --f )
29811 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29813 as_fn_append CONFIG_FILES " '$ac_optarg'"
29814 ac_need_defaults=false;;
29815 --header | --heade | --head | --hea )
29818 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29820 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29821 ac_need_defaults=false;;
29823 # Conflict between --help and --header
29824 as_fn_error "ambiguous option: \`$1'
29825 Try \`$0 --help' for more information.";;
29826 --help | --hel | -h )
29827 $as_echo "$ac_cs_usage"; exit ;;
29828 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29829 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29832 # This is an error.
29833 -*) as_fn_error "unrecognized option: \`$1'
29834 Try \`$0 --help' for more information." ;;
29836 *) as_fn_append ac_config_targets " $1"
29837 ac_need_defaults=false ;;
29843 ac_configure_extra_args=
29845 if $ac_cs_silent; then
29847 ac_configure_extra_args="$ac_configure_extra_args --silent"
29851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29852 if \$ac_cs_recheck; then
29853 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29855 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29856 CONFIG_SHELL='$SHELL'
29857 export CONFIG_SHELL
29862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29866 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29867 ## Running $as_me. ##
29873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29879 # The HP-UX ksh and POSIX shell print the target directory to stdout
29880 # if CDPATH is set.
29881 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29883 sed_quote_subst='$sed_quote_subst'
29884 double_quote_subst='$double_quote_subst'
29885 delay_variable_subst='$delay_variable_subst'
29886 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
29887 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
29888 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
29889 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
29890 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
29891 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
29892 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
29893 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
29894 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
29895 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
29896 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
29897 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
29898 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
29899 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
29900 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
29901 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
29902 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
29903 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
29904 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
29905 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
29906 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
29907 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
29908 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
29909 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
29910 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
29911 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
29912 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
29913 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29914 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
29915 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
29916 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
29917 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
29918 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29919 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
29920 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
29921 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29922 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29923 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29924 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
29925 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29926 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
29927 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
29928 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
29929 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
29930 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"`'
29931 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"`'
29932 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
29933 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
29934 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
29935 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
29936 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
29937 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
29938 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
29939 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
29940 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
29941 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
29942 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
29943 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
29944 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
29945 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
29946 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
29947 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
29948 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29949 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29950 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
29951 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
29952 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29953 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29954 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
29955 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29956 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29957 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29958 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29959 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29960 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29961 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
29962 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29963 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29964 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29965 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
29966 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
29967 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
29968 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
29969 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
29970 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29971 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
29972 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
29973 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
29974 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
29975 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
29976 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29977 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29978 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29979 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29980 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
29981 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
29982 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29983 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
29984 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
29985 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29986 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29987 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
29988 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29989 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
29990 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29991 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29992 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29993 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29994 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
29995 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
29996 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29997 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29998 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
29999 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30000 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30001 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30002 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30003 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30004 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30005 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30006 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30007 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30008 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30009 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30010 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30011 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30012 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30013 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30014 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30015 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30016 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30017 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30018 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30019 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30020 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30021 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30022 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30023 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30024 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30025 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30026 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30027 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30028 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30029 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30030 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30031 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30032 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30033 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30034 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30035 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30036 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30037 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30038 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30039 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30040 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30041 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30042 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30043 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30044 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30045 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30046 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30047 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30048 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30049 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30050 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30051 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30052 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30053 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30054 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30055 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30056 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30059 LTCFLAGS='$LTCFLAGS'
30060 compiler='$compiler_DEFAULT'
30062 # Quote evaled strings.
30074 deplibs_check_method \
30083 lt_cv_sys_global_symbol_pipe \
30084 lt_cv_sys_global_symbol_to_cdecl \
30085 lt_cv_sys_global_symbol_to_c_name_address \
30086 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30089 lt_prog_compiler_no_builtin_flag \
30090 lt_prog_compiler_wl \
30091 lt_prog_compiler_pic \
30092 lt_prog_compiler_static \
30093 lt_cv_prog_compiler_c_o \
30101 export_dynamic_flag_spec \
30102 whole_archive_flag_spec \
30103 compiler_needs_object \
30105 allow_undefined_flag \
30106 no_undefined_flag \
30107 hardcode_libdir_flag_spec \
30108 hardcode_libdir_flag_spec_ld \
30109 hardcode_libdir_separator \
30114 variables_saved_for_relink \
30116 library_names_spec \
30121 compiler_lib_search_dirs \
30126 compiler_lib_search_path \
30129 lt_prog_compiler_no_builtin_flag_CXX \
30130 lt_prog_compiler_wl_CXX \
30131 lt_prog_compiler_pic_CXX \
30132 lt_prog_compiler_static_CXX \
30133 lt_cv_prog_compiler_c_o_CXX \
30134 export_dynamic_flag_spec_CXX \
30135 whole_archive_flag_spec_CXX \
30136 compiler_needs_object_CXX \
30138 allow_undefined_flag_CXX \
30139 no_undefined_flag_CXX \
30140 hardcode_libdir_flag_spec_CXX \
30141 hardcode_libdir_flag_spec_ld_CXX \
30142 hardcode_libdir_separator_CXX \
30143 fix_srcfile_path_CXX \
30144 exclude_expsyms_CXX \
30145 include_expsyms_CXX \
30146 file_list_spec_CXX \
30147 compiler_lib_search_dirs_CXX \
30148 predep_objects_CXX \
30149 postdep_objects_CXX \
30152 compiler_lib_search_path_CXX; do
30153 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30154 *[\\\\\\\`\\"\\\$]*)
30155 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30158 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30163 # Double-quote double-evaled strings.
30164 for var in reload_cmds \
30165 old_postinstall_cmds \
30166 old_postuninstall_cmds \
30168 extract_expsyms_cmds \
30169 old_archive_from_new_cmds \
30170 old_archive_from_expsyms_cmds \
30172 archive_expsym_cmds \
30174 module_expsym_cmds \
30175 export_symbols_cmds \
30178 postuninstall_cmds \
30180 sys_lib_search_path_spec \
30181 sys_lib_dlsearch_path_spec \
30182 old_archive_cmds_CXX \
30183 old_archive_from_new_cmds_CXX \
30184 old_archive_from_expsyms_cmds_CXX \
30186 archive_expsym_cmds_CXX \
30188 module_expsym_cmds_CXX \
30189 export_symbols_cmds_CXX \
30190 prelink_cmds_CXX; do
30191 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30192 *[\\\\\\\`\\"\\\$]*)
30193 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30196 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30201 # Fix-up fallback echo if it was mangled by the above quoting rules.
30203 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30207 ac_aux_dir='$ac_aux_dir'
30208 xsi_shell='$xsi_shell'
30209 lt_shell_append='$lt_shell_append'
30211 # See if we are running on zsh, and set the options which allow our
30212 # commands through without removal of \ escapes INIT.
30213 if test -n "\${ZSH_VERSION+set}" ; then
30214 setopt NO_GLOB_SUBST
30220 TIMESTAMP='$TIMESTAMP'
30228 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30229 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30231 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30232 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30233 LINGUAS="${LINGUAS-%UNSET%}"
30238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30240 # Handling of arguments.
30241 for ac_config_target in $ac_config_targets
30243 case $ac_config_target in
30244 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30245 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30246 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30247 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30248 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30249 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30250 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30251 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30252 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30253 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30254 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30255 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30256 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30257 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30258 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30259 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30260 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30261 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30262 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30263 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30264 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30265 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30266 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30267 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30268 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30269 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30270 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30271 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30272 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30273 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30274 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30275 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30276 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30277 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30278 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30279 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30280 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30281 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30282 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30283 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30284 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30285 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30286 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30287 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30288 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30289 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30290 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30291 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30292 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30293 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30294 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30295 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30296 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30297 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30298 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30299 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30300 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30301 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30302 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30303 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30304 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30305 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30306 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30307 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30308 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30309 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30310 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30311 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30312 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30313 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30314 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30315 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30316 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30317 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30318 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30319 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30320 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30321 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30322 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30323 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30324 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30325 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30326 "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
30327 "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
30328 "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
30329 "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
30330 "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
30331 "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
30332 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30333 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30334 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30335 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30336 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30337 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30338 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30339 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30340 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30341 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30342 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30343 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30344 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30345 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30346 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30347 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30348 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30349 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30350 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30351 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30352 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30353 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30354 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30355 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30356 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30357 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30358 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30359 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30360 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30361 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30363 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30368 # If the user did not use the arguments to specify the items to instantiate,
30369 # then the envvar interface is used. Set only those that are not.
30370 # We use the long form for the default assignment because of an extremely
30371 # bizarre bug on SunOS 4.1.3.
30372 if $ac_need_defaults; then
30373 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30374 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30375 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30378 # Have a temporary directory for convenience. Make it in the build tree
30379 # simply because there is no reason against having it here, and in addition,
30380 # creating and moving files from /tmp can sometimes cause problems.
30381 # Hook for its removal unless debugging.
30382 # Note that there is a small window in which the directory will not be cleaned:
30383 # after its creation but before its name has been assigned to `$tmp'.
30387 trap 'exit_status=$?
30388 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30390 trap 'as_fn_exit 1' 1 2 13 15
30392 # Create a (secure) tmp directory for tmp files.
30395 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30396 test -n "$tmp" && test -d "$tmp"
30399 tmp=./conf$$-$RANDOM
30400 (umask 077 && mkdir "$tmp")
30401 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30403 # Set up the scripts for CONFIG_FILES section.
30404 # No need to generate them if there are no CONFIG_FILES.
30405 # This happens for instance with `./config.status config.h'.
30406 if test -n "$CONFIG_FILES"; then
30408 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30409 ac_cs_awk_getline=:
30410 ac_cs_awk_pipe_init=
30411 ac_cs_awk_read_file='
30412 while ((getline aline < (F[key])) > 0)
30415 ac_cs_awk_pipe_fini=
30417 ac_cs_awk_getline=false
30418 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30419 ac_cs_awk_read_file='
30421 print "cat " F[key] " &&"
30422 '$ac_cs_awk_pipe_init
30423 # The final `:' finishes the AND list.
30424 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30426 ac_cr=`echo X | tr X '\015'`
30427 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30428 # But we know of no other shell where ac_cr would be empty at this
30429 # point, so we can use a bashism as a fallback.
30430 if test "x$ac_cr" = x; then
30431 eval ac_cr=\$\'\\r\'
30433 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30434 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30437 ac_cs_awk_cr=$ac_cr
30440 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30443 # Create commands to substitute file output variables.
30445 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30446 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30447 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30450 } >conf$$files.sh &&
30451 . ./conf$$files.sh ||
30452 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30453 rm -f conf$$files.sh
30456 echo "cat >conf$$subs.awk <<_ACEOF" &&
30457 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30459 } >conf$$subs.sh ||
30460 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30461 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30463 for ac_last_try in false false false false false :; do
30464 . ./conf$$subs.sh ||
30465 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30467 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30468 if test $ac_delim_n = $ac_delim_num; then
30470 elif $ac_last_try; then
30471 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30473 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30476 rm -f conf$$subs.sh
30478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30479 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30483 s/^/S["/; s/!.*/"]=/
30493 s/\(.\{148\}\)..*/\1/
30495 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30500 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30507 s/\(.\{148\}\)..*/\1/
30509 s/["\\]/\\&/g; s/^/"/; s/$/"/
30513 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30518 ' <conf$$subs.awk | sed '
30523 ' >>$CONFIG_STATUS || ac_write_fail=1
30524 rm -f conf$$subs.awk
30525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30527 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30528 for (key in S) S_is_set[key] = 1
30530 \$ac_cs_awk_pipe_init
30534 nfields = split(line, field, "@")
30536 len = length(field[1])
30537 for (i = 2; i < nfields; i++) {
30539 keylen = length(key)
30540 if (S_is_set[key]) {
30542 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30543 len += length(value) + length(field[++i])
30548 if (nfields == 3 && !substed) {
30550 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30551 \$ac_cs_awk_read_file
30557 \$ac_cs_awk_pipe_fini
30560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30561 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30562 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30565 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30566 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30569 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30570 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30571 # trailing colons and then remove the whole line if VPATH becomes empty
30572 # (actually we leave an empty line to preserve line numbers).
30573 if test "x$srcdir" = x.; then
30574 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30575 s/:*\$(srcdir):*/:/
30576 s/:*\${srcdir}:*/:/
30578 s/^\([^=]*=[ ]*\):*/\1/
30584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30585 fi # test -n "$CONFIG_FILES"
30587 # Set up the scripts for CONFIG_HEADERS section.
30588 # No need to generate them if there are no CONFIG_HEADERS.
30589 # This happens for instance with `./config.status Makefile'.
30590 if test -n "$CONFIG_HEADERS"; then
30591 cat >"$tmp/defines.awk" <<\_ACAWK ||
30595 # Transform confdefs.h into an awk script `defines.awk', embedded as
30596 # here-document in config.status, that substitutes the proper values into
30597 # config.h.in to produce config.h.
30599 # Create a delimiter string that does not exist in confdefs.h, to ease
30600 # handling of long lines.
30602 for ac_last_try in false false :; do
30603 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30604 if test -z "$ac_t"; then
30606 elif $ac_last_try; then
30607 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30609 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30613 # For the awk script, D is an array of macro values keyed by name,
30614 # likewise P contains macro parameters if any. Preserve backslash
30615 # newline sequences.
30617 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30619 s/.\{148\}/&'"$ac_delim"'/g
30622 s/^[ ]*#[ ]*define[ ][ ]*/ /
30629 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30631 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30635 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30636 D["\1"]=" \3\\\\\\n"\\/p
30638 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30643 s/.\{148\}/&'"$ac_delim"'/g
30648 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30651 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30653 ' <confdefs.h | sed '
30654 s/'"$ac_delim"'/"\\\
30655 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30658 for (key in D) D_is_set[key] = 1
30661 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30663 split(line, arg, " ")
30664 if (arg[1] == "#") {
30668 defundef = substr(arg[1], 2)
30671 split(mac1, mac2, "(") #)
30673 prefix = substr(line, 1, index(line, defundef) - 1)
30674 if (D_is_set[macro]) {
30675 # Preserve the white space surrounding the "#".
30676 print prefix "define", macro P[macro] D[macro]
30679 # Replace #undef with comments. This is necessary, for example,
30680 # in the case of _POSIX_SOURCE, which is predefined and required
30681 # on some systems where configure will not decide to define it.
30682 if (defundef == "undef") {
30683 print "/*", prefix defundef, macro, "*/"
30691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30692 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30693 fi # test -n "$CONFIG_HEADERS"
30696 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30701 :[FHLC]) ac_mode=$ac_tag; continue;;
30703 case $ac_mode$ac_tag in
30705 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30706 :[FH]-) ac_tag=-:-;;
30707 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30724 -) ac_f="$tmp/stdin";;
30725 *) # Look for the file first in the build tree, then in the source tree
30726 # (if the path is not absolute). The absolute path cannot be DOS-style,
30727 # because $ac_f cannot contain `:'.
30731 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30733 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30735 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30736 as_fn_append ac_file_inputs " '$ac_f'"
30739 # Let's still pretend it is `configure' which instantiates (i.e., don't
30740 # use $as_me), people would be surprised to read:
30741 # /* config.h. Generated by config.status. */
30742 configure_input='Generated from '`
30743 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30745 if test x"$ac_file" != x-; then
30746 configure_input="$ac_file. $configure_input"
30747 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30748 $as_echo "$as_me: creating $ac_file" >&6;}
30750 # Neutralize special characters interpreted by sed in replacement strings.
30751 case $configure_input in #(
30752 *\&* | *\|* | *\\* )
30753 ac_sed_conf_input=`$as_echo "$configure_input" |
30754 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30755 *) ac_sed_conf_input=$configure_input;;
30759 *:-:* | *:-) cat >"$tmp/stdin" \
30760 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30765 ac_dir=`$as_dirname -- "$ac_file" ||
30766 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30767 X"$ac_file" : 'X\(//\)[^/]' \| \
30768 X"$ac_file" : 'X\(//\)$' \| \
30769 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30770 $as_echo X"$ac_file" |
30771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30775 /^X\(\/\/\)[^/].*/{
30788 as_dir="$ac_dir"; as_fn_mkdir_p
30792 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30794 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30795 # A ".." for each directory in $ac_dir_suffix.
30796 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30797 case $ac_top_builddir_sub in
30798 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30799 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30802 ac_abs_top_builddir=$ac_pwd
30803 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30804 # for backward compatibility:
30805 ac_top_builddir=$ac_top_build_prefix
30808 .) # We are building in place.
30810 ac_top_srcdir=$ac_top_builddir_sub
30811 ac_abs_top_srcdir=$ac_pwd ;;
30812 [\\/]* | ?:[\\/]* ) # Absolute name.
30813 ac_srcdir=$srcdir$ac_dir_suffix;
30814 ac_top_srcdir=$srcdir
30815 ac_abs_top_srcdir=$srcdir ;;
30816 *) # Relative name.
30817 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30818 ac_top_srcdir=$ac_top_build_prefix$srcdir
30819 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30821 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30831 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30832 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30837 # If the template does not know about datarootdir, expand it.
30838 # FIXME: This hack should be removed a few years after 2.60.
30839 ac_datarootdir_hack=; ac_datarootdir_seen=
30850 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30851 *datarootdir*) ac_datarootdir_seen=yes;;
30852 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30854 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30857 ac_datarootdir_hack='
30858 s&@datadir@&$datadir&g
30859 s&@docdir@&$docdir&g
30860 s&@infodir@&$infodir&g
30861 s&@localedir@&$localedir&g
30862 s&@mandir@&$mandir&g
30863 s&\\\${datarootdir}&$datarootdir&g' ;;
30867 # Neutralize VPATH when `$srcdir' = `.'.
30868 # Shell code in configure.ac might set extrasub.
30869 # FIXME: do we really want to maintain this feature?
30870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30871 ac_sed_extra="$ac_vpsub
30874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30876 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30877 s|@configure_input@|$ac_sed_conf_input|;t t
30878 s&@top_builddir@&$ac_top_builddir_sub&;t t
30879 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30880 s&@srcdir@&$ac_srcdir&;t t
30881 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30882 s&@top_srcdir@&$ac_top_srcdir&;t t
30883 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30884 s&@builddir@&$ac_builddir&;t t
30885 s&@abs_builddir@&$ac_abs_builddir&;t t
30886 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30887 s&@INSTALL@&$ac_INSTALL&;t t
30888 $ac_datarootdir_hack
30890 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30891 if $ac_cs_awk_getline; then
30892 $AWK -f "$tmp/subs.awk"
30894 $AWK -f "$tmp/subs.awk" | $SHELL
30896 || as_fn_error "could not create $ac_file" "$LINENO" 5
30898 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30899 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30900 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30902 which seems to be undefined. Please make sure it is defined." >&5
30903 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30904 which seems to be undefined. Please make sure it is defined." >&2;}
30908 -) cat "$tmp/out" && rm -f "$tmp/out";;
30909 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30911 || as_fn_error "could not create $ac_file" "$LINENO" 5
30917 if test x"$ac_file" != x-; then
30919 $as_echo "/* $configure_input */" \
30920 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30921 } >"$tmp/config.h" \
30922 || as_fn_error "could not create $ac_file" "$LINENO" 5
30923 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30924 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30925 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30928 mv "$tmp/config.h" "$ac_file" \
30929 || as_fn_error "could not create $ac_file" "$LINENO" 5
30932 $as_echo "/* $configure_input */" \
30933 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30934 || as_fn_error "could not create -" "$LINENO" 5
30938 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30939 $as_echo "$as_me: executing $ac_file commands" >&6;}
30944 case $ac_file$ac_mode in
30947 # See if we are running on zsh, and set the options which allow our
30948 # commands through without removal of \ escapes.
30949 if test -n "${ZSH_VERSION+set}" ; then
30950 setopt NO_GLOB_SUBST
30953 cfgfile="${ofile}T"
30954 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30957 cat <<_LT_EOF >> "$cfgfile"
30960 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30961 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30962 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30963 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30965 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30966 # 2006, 2007, 2008 Free Software Foundation, Inc.
30967 # Written by Gordon Matzigkeit, 1996
30969 # This file is part of GNU Libtool.
30971 # GNU Libtool is free software; you can redistribute it and/or
30972 # modify it under the terms of the GNU General Public License as
30973 # published by the Free Software Foundation; either version 2 of
30974 # the License, or (at your option) any later version.
30976 # As a special exception to the GNU General Public License,
30977 # if you distribute this file as part of a program or library that
30978 # is built using GNU Libtool, you may include this file under the
30979 # same distribution terms that you use for the rest of that program.
30981 # GNU Libtool is distributed in the hope that it will be useful,
30982 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30983 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30984 # GNU General Public License for more details.
30986 # You should have received a copy of the GNU General Public License
30987 # along with GNU Libtool; see the file COPYING. If not, a copy
30988 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30989 # obtained by writing to the Free Software Foundation, Inc.,
30990 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30993 # The names of the tagged configurations supported by this script.
30994 available_tags="CXX "
30996 # ### BEGIN LIBTOOL CONFIG
30998 # Which release of libtool.m4 was used?
30999 macro_version=$macro_version
31000 macro_revision=$macro_revision
31002 # Whether or not to build shared libraries.
31003 build_libtool_libs=$enable_shared
31005 # Whether or not to build static libraries.
31006 build_old_libs=$enable_static
31008 # What type of objects to build.
31011 # Whether or not to optimize for fast installation.
31012 fast_install=$enable_fast_install
31015 host_alias=$host_alias
31019 # The build system.
31020 build_alias=$build_alias
31024 # A sed program that does not truncate output.
31027 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31028 Xsed="\$SED -e 1s/^X//"
31030 # A grep program that handles long lines.
31036 # A literal string matcher.
31039 # A BSD- or MS-compatible name lister.
31042 # Whether we need soft or hard links.
31045 # What is the maximum length of a command?
31046 max_cmd_len=$max_cmd_len
31048 # Object file suffix (normally "o").
31051 # Executable file suffix (normally "").
31054 # whether the shell understands "unset".
31057 # turn spaces into newlines.
31060 # turn newlines into spaces.
31063 # How to create reloadable object files.
31064 reload_flag=$lt_reload_flag
31065 reload_cmds=$lt_reload_cmds
31067 # An object symbol dumper.
31068 OBJDUMP=$lt_OBJDUMP
31070 # Method to check whether dependent libraries are shared objects.
31071 deplibs_check_method=$lt_deplibs_check_method
31073 # Command to use when deplibs_check_method == "file_magic".
31074 file_magic_cmd=$lt_file_magic_cmd
31078 AR_FLAGS=$lt_AR_FLAGS
31080 # A symbol stripping program.
31083 # Commands used to install an old-style archive.
31085 old_postinstall_cmds=$lt_old_postinstall_cmds
31086 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31091 # LTCC compiler flags.
31092 LTCFLAGS=$lt_CFLAGS
31094 # Take the output of nm and produce a listing of raw symbols and C names.
31095 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31097 # Transform the output of nm in a proper C declaration.
31098 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31100 # Transform the output of nm in a C name address pair.
31101 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31103 # Transform the output of nm in a C name address pair when lib prefix is needed.
31104 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31106 # The name of the directory that contains temporary libtool files.
31109 # Shell to use when invoking shell scripts.
31112 # An echo program that does not interpret backslashes.
31115 # Used to examine libraries when file_magic_cmd begins with "file".
31116 MAGIC_CMD=$MAGIC_CMD
31118 # Must we lock files when doing compilation?
31119 need_locks=$lt_need_locks
31121 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31122 DSYMUTIL=$lt_DSYMUTIL
31124 # Tool to change global to local symbols on Mac OS X.
31127 # Tool to manipulate fat objects and archives on Mac OS X.
31130 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31133 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31134 OTOOL64=$lt_OTOOL64
31136 # Old archive suffix (normally "a").
31139 # Shared library suffix (normally ".so").
31140 shrext_cmds=$lt_shrext_cmds
31142 # The commands to extract the exported symbol list from a shared archive.
31143 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31145 # Variables whose values should be saved in libtool wrapper scripts and
31146 # restored at link time.
31147 variables_saved_for_relink=$lt_variables_saved_for_relink
31149 # Do we need the "lib" prefix for modules?
31150 need_lib_prefix=$need_lib_prefix
31152 # Do we need a version for libraries?
31153 need_version=$need_version
31155 # Library versioning type.
31156 version_type=$version_type
31158 # Shared library runtime path variable.
31159 runpath_var=$runpath_var
31161 # Shared library path variable.
31162 shlibpath_var=$shlibpath_var
31164 # Is shlibpath searched before the hard-coded library search path?
31165 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31167 # Format of library name prefix.
31168 libname_spec=$lt_libname_spec
31170 # List of archive names. First name is the real one, the rest are links.
31171 # The last name is the one that the linker finds with -lNAME
31172 library_names_spec=$lt_library_names_spec
31174 # The coded name of the library, if different from the real name.
31175 soname_spec=$lt_soname_spec
31177 # Command to use after installation of a shared archive.
31178 postinstall_cmds=$lt_postinstall_cmds
31180 # Command to use after uninstallation of a shared archive.
31181 postuninstall_cmds=$lt_postuninstall_cmds
31183 # Commands used to finish a libtool library installation in a directory.
31184 finish_cmds=$lt_finish_cmds
31186 # As "finish_cmds", except a single script fragment to be evaled but
31188 finish_eval=$lt_finish_eval
31190 # Whether we should hardcode library paths into libraries.
31191 hardcode_into_libs=$hardcode_into_libs
31193 # Compile-time system search path for libraries.
31194 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31196 # Run-time system search path for libraries.
31197 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31199 # Whether dlopen is supported.
31200 dlopen_support=$enable_dlopen
31202 # Whether dlopen of programs is supported.
31203 dlopen_self=$enable_dlopen_self
31205 # Whether dlopen of statically linked programs is supported.
31206 dlopen_self_static=$enable_dlopen_self_static
31208 # Commands to strip libraries.
31209 old_striplib=$lt_old_striplib
31210 striplib=$lt_striplib
31213 # The linker used to build libraries.
31216 # Commands used to build an old-style archive.
31217 old_archive_cmds=$lt_old_archive_cmds
31219 # A language specific compiler.
31222 # Is the compiler the GNU compiler?
31225 # Compiler flag to turn off builtin functions.
31226 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31228 # How to pass a linker flag through the compiler.
31229 wl=$lt_lt_prog_compiler_wl
31231 # Additional compiler flags for building library objects.
31232 pic_flag=$lt_lt_prog_compiler_pic
31234 # Compiler flag to prevent dynamic linking.
31235 link_static_flag=$lt_lt_prog_compiler_static
31237 # Does compiler simultaneously support -c and -o options?
31238 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31240 # Whether or not to add -lc for building shared libraries.
31241 build_libtool_need_lc=$archive_cmds_need_lc
31243 # Whether or not to disallow shared libs when runtime libs are static.
31244 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31246 # Compiler flag to allow reflexive dlopens.
31247 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31249 # Compiler flag to generate shared objects directly from archives.
31250 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31252 # Whether the compiler copes with passing no objects directly.
31253 compiler_needs_object=$lt_compiler_needs_object
31255 # Create an old-style archive from a shared archive.
31256 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31258 # Create a temporary old-style archive to link instead of a shared archive.
31259 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31261 # Commands used to build a shared archive.
31262 archive_cmds=$lt_archive_cmds
31263 archive_expsym_cmds=$lt_archive_expsym_cmds
31265 # Commands used to build a loadable module if different from building
31266 # a shared archive.
31267 module_cmds=$lt_module_cmds
31268 module_expsym_cmds=$lt_module_expsym_cmds
31270 # Whether we are building with GNU ld or not.
31271 with_gnu_ld=$lt_with_gnu_ld
31273 # Flag that allows shared libraries with undefined symbols to be built.
31274 allow_undefined_flag=$lt_allow_undefined_flag
31276 # Flag that enforces no undefined symbols.
31277 no_undefined_flag=$lt_no_undefined_flag
31279 # Flag to hardcode \$libdir into a binary during linking.
31280 # This must work even if \$libdir does not exist
31281 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31283 # If ld is used when linking, flag to hardcode \$libdir into a binary
31284 # during linking. This must work even if \$libdir does not exist.
31285 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31287 # Whether we need a single "-rpath" flag with a separated argument.
31288 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31290 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31291 # DIR into the resulting binary.
31292 hardcode_direct=$hardcode_direct
31294 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31295 # DIR into the resulting binary and the resulting library dependency is
31296 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31297 # library is relocated.
31298 hardcode_direct_absolute=$hardcode_direct_absolute
31300 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31301 # into the resulting binary.
31302 hardcode_minus_L=$hardcode_minus_L
31304 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31305 # into the resulting binary.
31306 hardcode_shlibpath_var=$hardcode_shlibpath_var
31308 # Set to "yes" if building a shared library automatically hardcodes DIR
31309 # into the library and all subsequent libraries and executables linked
31311 hardcode_automatic=$hardcode_automatic
31313 # Set to yes if linker adds runtime paths of dependent libraries
31314 # to runtime path list.
31315 inherit_rpath=$inherit_rpath
31317 # Whether libtool must link a program against all its dependency libraries.
31318 link_all_deplibs=$link_all_deplibs
31320 # Fix the shell variable \$srcfile for the compiler.
31321 fix_srcfile_path=$lt_fix_srcfile_path
31323 # Set to "yes" if exported symbols are required.
31324 always_export_symbols=$always_export_symbols
31326 # The commands to list exported symbols.
31327 export_symbols_cmds=$lt_export_symbols_cmds
31329 # Symbols that should not be listed in the preloaded symbols.
31330 exclude_expsyms=$lt_exclude_expsyms
31332 # Symbols that must always be exported.
31333 include_expsyms=$lt_include_expsyms
31335 # Commands necessary for linking programs (against libraries) with templates.
31336 prelink_cmds=$lt_prelink_cmds
31338 # Specify filename containing input files.
31339 file_list_spec=$lt_file_list_spec
31341 # How to hardcode a shared library path into an executable.
31342 hardcode_action=$hardcode_action
31344 # The directories searched by this compiler when creating a shared library.
31345 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31347 # Dependencies to place before and after the objects being linked to
31348 # create a shared library.
31349 predep_objects=$lt_predep_objects
31350 postdep_objects=$lt_postdep_objects
31351 predeps=$lt_predeps
31352 postdeps=$lt_postdeps
31354 # The library search path used internally by the compiler when linking
31355 # a shared library.
31356 compiler_lib_search_path=$lt_compiler_lib_search_path
31358 # ### END LIBTOOL CONFIG
31364 cat <<\_LT_EOF >> "$cfgfile"
31365 # AIX sometimes has problems with the GCC collect2 program. For some
31366 # reason, if we set the COLLECT_NAMES environment variable, the problems
31367 # vanish in a puff of smoke.
31368 if test "X${COLLECT_NAMES+set}" != Xset; then
31370 export COLLECT_NAMES
31377 ltmain="$ac_aux_dir/ltmain.sh"
31380 # We use sed instead of cat because bash on DJGPP gets confused if
31381 # if finds mixed CR/LF and LF-only lines. Since sed operates in
31382 # text mode, it properly converts lines to CR/LF. This bash problem
31383 # is reportedly fixed, but why not run on old versions too?
31384 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31385 || (rm -f "$cfgfile"; exit 1)
31389 cat << \_LT_EOF >> "$cfgfile"
31391 # func_dirname file append nondir_replacement
31392 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31393 # otherwise set result to NONDIR_REPLACEMENT.
31397 */*) func_dirname_result="${1%/*}${2}" ;;
31398 * ) func_dirname_result="${3}" ;;
31402 # func_basename file
31405 func_basename_result="${1##*/}"
31408 # func_dirname_and_basename file append nondir_replacement
31409 # perform func_basename and func_dirname in a single function
31411 # dirname: Compute the dirname of FILE. If nonempty,
31412 # add APPEND to the result, otherwise set result
31413 # to NONDIR_REPLACEMENT.
31414 # value returned in "$func_dirname_result"
31415 # basename: Compute filename of FILE.
31416 # value retuned in "$func_basename_result"
31417 # Implementation must be kept synchronized with func_dirname
31418 # and func_basename. For efficiency, we do not delegate to
31419 # those functions but instead duplicate the functionality here.
31420 func_dirname_and_basename ()
31423 */*) func_dirname_result="${1%/*}${2}" ;;
31424 * ) func_dirname_result="${3}" ;;
31426 func_basename_result="${1##*/}"
31429 # func_stripname prefix suffix name
31430 # strip PREFIX and SUFFIX off of NAME.
31431 # PREFIX and SUFFIX must not contain globbing or regex special
31432 # characters, hashes, percent signs, but SUFFIX may contain a leading
31433 # dot (in which case that matches only a dot).
31436 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31437 # positional parameters, so assign one to ordinary parameter first.
31438 func_stripname_result=${3}
31439 func_stripname_result=${func_stripname_result#"${1}"}
31440 func_stripname_result=${func_stripname_result%"${2}"}
31446 func_opt_split_opt=${1%%=*}
31447 func_opt_split_arg=${1#*=}
31454 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31455 *) func_lo2o_result=${1} ;;
31459 # func_xform libobj-or-source
31462 func_xform_result=${1%.*}.lo
31465 # func_arith arithmetic-term...
31468 func_arith_result=$(( $* ))
31472 # STRING may not start with a hyphen.
31475 func_len_result=${#1}
31480 *) # Bourne compatible functions.
31481 cat << \_LT_EOF >> "$cfgfile"
31483 # func_dirname file append nondir_replacement
31484 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31485 # otherwise set result to NONDIR_REPLACEMENT.
31488 # Extract subdirectory from the argument.
31489 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31490 if test "X$func_dirname_result" = "X${1}"; then
31491 func_dirname_result="${3}"
31493 func_dirname_result="$func_dirname_result${2}"
31497 # func_basename file
31500 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31504 # func_stripname prefix suffix name
31505 # strip PREFIX and SUFFIX off of NAME.
31506 # PREFIX and SUFFIX must not contain globbing or regex special
31507 # characters, hashes, percent signs, but SUFFIX may contain a leading
31508 # dot (in which case that matches only a dot).
31509 # func_strip_suffix prefix name
31513 .*) func_stripname_result=`$ECHO "X${3}" \
31514 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31515 *) func_stripname_result=`$ECHO "X${3}" \
31516 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31521 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31522 my_sed_long_arg='1s/^-[^=]*=//'
31527 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31528 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31534 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31537 # func_xform libobj-or-source
31540 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31543 # func_arith arithmetic-term...
31546 func_arith_result=`expr "$@"`
31550 # STRING may not start with a hyphen.
31553 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31559 case $lt_shell_append in
31561 cat << \_LT_EOF >> "$cfgfile"
31563 # func_append var value
31564 # Append VALUE to the end of shell variable VAR.
31572 cat << \_LT_EOF >> "$cfgfile"
31574 # func_append var value
31575 # Append VALUE to the end of shell variable VAR.
31586 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31587 || (rm -f "$cfgfile"; exit 1)
31589 mv -f "$cfgfile" "$ofile" ||
31590 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31594 cat <<_LT_EOF >> "$ofile"
31596 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31598 # The linker used to build libraries.
31601 # Commands used to build an old-style archive.
31602 old_archive_cmds=$lt_old_archive_cmds_CXX
31604 # A language specific compiler.
31605 CC=$lt_compiler_CXX
31607 # Is the compiler the GNU compiler?
31610 # Compiler flag to turn off builtin functions.
31611 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31613 # How to pass a linker flag through the compiler.
31614 wl=$lt_lt_prog_compiler_wl_CXX
31616 # Additional compiler flags for building library objects.
31617 pic_flag=$lt_lt_prog_compiler_pic_CXX
31619 # Compiler flag to prevent dynamic linking.
31620 link_static_flag=$lt_lt_prog_compiler_static_CXX
31622 # Does compiler simultaneously support -c and -o options?
31623 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31625 # Whether or not to add -lc for building shared libraries.
31626 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31628 # Whether or not to disallow shared libs when runtime libs are static.
31629 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31631 # Compiler flag to allow reflexive dlopens.
31632 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31634 # Compiler flag to generate shared objects directly from archives.
31635 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31637 # Whether the compiler copes with passing no objects directly.
31638 compiler_needs_object=$lt_compiler_needs_object_CXX
31640 # Create an old-style archive from a shared archive.
31641 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31643 # Create a temporary old-style archive to link instead of a shared archive.
31644 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31646 # Commands used to build a shared archive.
31647 archive_cmds=$lt_archive_cmds_CXX
31648 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31650 # Commands used to build a loadable module if different from building
31651 # a shared archive.
31652 module_cmds=$lt_module_cmds_CXX
31653 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31655 # Whether we are building with GNU ld or not.
31656 with_gnu_ld=$lt_with_gnu_ld_CXX
31658 # Flag that allows shared libraries with undefined symbols to be built.
31659 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31661 # Flag that enforces no undefined symbols.
31662 no_undefined_flag=$lt_no_undefined_flag_CXX
31664 # Flag to hardcode \$libdir into a binary during linking.
31665 # This must work even if \$libdir does not exist
31666 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31668 # If ld is used when linking, flag to hardcode \$libdir into a binary
31669 # during linking. This must work even if \$libdir does not exist.
31670 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31672 # Whether we need a single "-rpath" flag with a separated argument.
31673 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31675 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31676 # DIR into the resulting binary.
31677 hardcode_direct=$hardcode_direct_CXX
31679 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31680 # DIR into the resulting binary and the resulting library dependency is
31681 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31682 # library is relocated.
31683 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31685 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31686 # into the resulting binary.
31687 hardcode_minus_L=$hardcode_minus_L_CXX
31689 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31690 # into the resulting binary.
31691 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31693 # Set to "yes" if building a shared library automatically hardcodes DIR
31694 # into the library and all subsequent libraries and executables linked
31696 hardcode_automatic=$hardcode_automatic_CXX
31698 # Set to yes if linker adds runtime paths of dependent libraries
31699 # to runtime path list.
31700 inherit_rpath=$inherit_rpath_CXX
31702 # Whether libtool must link a program against all its dependency libraries.
31703 link_all_deplibs=$link_all_deplibs_CXX
31705 # Fix the shell variable \$srcfile for the compiler.
31706 fix_srcfile_path=$lt_fix_srcfile_path_CXX
31708 # Set to "yes" if exported symbols are required.
31709 always_export_symbols=$always_export_symbols_CXX
31711 # The commands to list exported symbols.
31712 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31714 # Symbols that should not be listed in the preloaded symbols.
31715 exclude_expsyms=$lt_exclude_expsyms_CXX
31717 # Symbols that must always be exported.
31718 include_expsyms=$lt_include_expsyms_CXX
31720 # Commands necessary for linking programs (against libraries) with templates.
31721 prelink_cmds=$lt_prelink_cmds_CXX
31723 # Specify filename containing input files.
31724 file_list_spec=$lt_file_list_spec_CXX
31726 # How to hardcode a shared library path into an executable.
31727 hardcode_action=$hardcode_action_CXX
31729 # The directories searched by this compiler when creating a shared library.
31730 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31732 # Dependencies to place before and after the objects being linked to
31733 # create a shared library.
31734 predep_objects=$lt_predep_objects_CXX
31735 postdep_objects=$lt_postdep_objects_CXX
31736 predeps=$lt_predeps_CXX
31737 postdeps=$lt_postdeps_CXX
31739 # The library search path used internally by the compiler when linking
31740 # a shared library.
31741 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31743 # ### END LIBTOOL TAG CONFIG: CXX
31748 for ac_file in $CONFIG_FILES; do
31749 # Support "outfile[:infile[:infile...]]"
31751 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31753 # PO directories have a Makefile.in generated from Makefile.in.in.
31754 case "$ac_file" in */Makefile.in)
31755 # Adjust a relative srcdir.
31756 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31757 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31758 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31759 # In autoconf-2.13 it is called $ac_given_srcdir.
31760 # In autoconf-2.50 it is called $srcdir.
31761 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31762 case "$ac_given_srcdir" in
31763 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31764 /*) top_srcdir="$ac_given_srcdir" ;;
31765 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31767 # Treat a directory as a PO directory if and only if it has a
31768 # POTFILES.in file. This allows packages to have multiple PO
31769 # directories under different names or in different locations.
31770 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31771 rm -f "$ac_dir/POTFILES"
31772 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31773 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31774 POMAKEFILEDEPS="POTFILES.in"
31775 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31776 # on $ac_dir but don't depend on user-specified configuration
31778 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31779 # The LINGUAS file contains the set of available languages.
31780 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31781 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31783 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31784 # Hide the ALL_LINGUAS assigment from automake.
31785 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31786 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31788 # The set of available languages was given in configure.in.
31789 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31792 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31793 # Compute UPDATEPOFILES
31794 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31795 # Compute DUMMYPOFILES
31796 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31798 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31799 case "$ac_given_srcdir" in
31801 *) srcdirpre='$(srcdir)/' ;;
31807 for lang in $ALL_LINGUAS; do
31808 POFILES="$POFILES $srcdirpre$lang.po"
31809 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31810 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31811 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31813 # CATALOGS depends on both $ac_dir and the user's LINGUAS
31814 # environment variable.
31816 if test -n "$ALL_LINGUAS"; then
31817 for presentlang in $ALL_LINGUAS; do
31819 if test "%UNSET%" != "$LINGUAS"; then
31820 desiredlanguages="$LINGUAS"
31822 desiredlanguages="$ALL_LINGUAS"
31824 for desiredlang in $desiredlanguages; do
31825 # Use the presentlang catalog if desiredlang is
31826 # a. equal to presentlang, or
31827 # b. a variant of presentlang (because in this case,
31828 # presentlang can be used as a fallback for messages
31829 # which are not translated in the desiredlang catalog).
31830 case "$desiredlang" in
31831 "$presentlang"*) useit=yes;;
31834 if test $useit = yes; then
31835 INST_LINGUAS="$INST_LINGUAS $presentlang"
31840 if test -n "$INST_LINGUAS"; then
31841 for lang in $INST_LINGUAS; do
31842 CATALOGS="$CATALOGS $lang.gmo"
31845 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31846 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"
31847 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31848 if test -f "$f"; then
31850 *.orig | *.bak | *~) ;;
31851 *) cat "$f" >> "$ac_dir/Makefile" ;;
31868 ac_clean_files=$ac_clean_files_save
31870 test $ac_write_fail = 0 ||
31871 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31874 # configure is writing to config.log, and then calls config.status.
31875 # config.status does its own redirection, appending to config.log.
31876 # Unfortunately, on DOS this fails, as config.log is still kept open
31877 # by configure, so config.status won't be able to write to it; its
31878 # output is simply discarded. So we exec the FD to /dev/null,
31879 # effectively closing config.log, so it can be properly (re)opened and
31880 # appended to by config.status. When coming back to configure, we
31881 # need to make the FD available again.
31882 if test "$no_create" != yes; then
31884 ac_config_status_args=
31885 test "$silent" = yes &&
31886 ac_config_status_args="$ac_config_status_args --quiet"
31888 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31890 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31891 # would make configure fail if this is the last instruction.
31892 $ac_cs_success || as_fn_exit $?
31894 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31896 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31900 if test "${support_bat}" = "yes" ; then
31901 if test "x$QMAKE" = "xnone"; then
31902 as_fn_error "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
31907 echo "Creating bat Makefile"
31912 ${MAKE:-make} clean
31916 if test X"$GCC" = "Xyes" ; then
31917 echo "Doing make of dependencies"
31918 ${MAKE:-make} depend
31922 chmod 755 install_conf_file build-depkgs-qt-console
31926 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31927 chmod 755 dvd-handler dvd-simulator
31928 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31932 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
31933 chmod 755 $c/update_postgresql_tables_10_to_11
31937 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
31938 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
31940 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
31941 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
31943 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
31944 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
31946 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
31947 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
31949 chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
31950 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
31953 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
31954 chmod 755 $c/sqlite
31957 chmod 755 src/win32/build-depkgs-mingw32
31959 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31960 largefile_support="yes"
31963 if test X"$GCC" = "Xyes" ; then
31964 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31965 if test "x${CCVERSION}" = "x" ; then
31966 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31968 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31969 if test x"${CXXVERSION}" = x ; then
31970 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31974 # clean up any old junk
31978 ${MAKE:-make} clean
31980 if test "x${db_type}" = "xInternal" ; then
31983 echo "You have not specified either --enable-client-only or one of the"
31984 echo " supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
31985 echo " This is not permitted. Please reconfigure."
31987 echo "Aborting the configuration ..."
31994 Configuration on `date`:
31996 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
31997 Bacula version: ${BACULA} ${VERSION} (${DATE})
31998 Source code location: ${srcdir}
31999 Install binaries: ${sbindir}
32000 Install libraries: ${libdir}
32001 Install config files: ${sysconfdir}
32002 Scripts directory: ${scriptdir}
32003 Archive directory: ${archivedir}
32004 Working directory: ${working_dir}
32005 PID directory: ${piddir}
32006 Subsys directory: ${subsysdir}
32007 Man directory: ${mandir}
32008 Data directory: ${datarootdir}
32009 Plugin directory: ${plugindir}
32010 C Compiler: ${CC} ${CCVERSION}
32011 C++ Compiler: ${CXX} ${CXXVERSION}
32012 Compiler flags: ${WCFLAGS} ${CFLAGS}
32013 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32015 Statically Linked Tools: ${support_static_tools}
32016 Statically Linked FD: ${support_static_fd}
32017 Statically Linked SD: ${support_static_sd}
32018 Statically Linked DIR: ${support_static_dir}
32019 Statically Linked CONS: ${support_static_cons}
32020 Database type: ${db_type}
32021 Database port: ${db_port}
32022 Database lib: ${DB_LIBS}
32023 Database name: ${db_name}
32024 Database user: ${db_user}
32026 Job Output Email: ${job_email}
32027 Traceback Email: ${dump_email}
32028 SMTP Host Address: ${smtp_host}
32030 Director Port: ${dir_port}
32031 File daemon Port: ${fd_port}
32032 Storage daemon Port: ${sd_port}
32034 Director User: ${dir_user}
32035 Director Group: ${dir_group}
32036 Storage Daemon User: ${sd_user}
32037 Storage DaemonGroup: ${sd_group}
32038 File Daemon User: ${fd_user}
32039 File Daemon Group: ${fd_group}
32041 SQL binaries Directory ${SQL_BINDIR}
32043 Large file support: $largefile_support
32044 Bacula conio support: ${got_conio} ${CONS_LIBS}
32045 readline support: ${got_readline} ${PRTREADLINE_SRC}
32046 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32047 TLS support: ${support_tls}
32048 Encryption support: ${support_crypto}
32049 ZLIB support: ${have_zlib}
32050 enable-smartalloc: ${support_smartalloc}
32051 enable-lockmgr: ${support_lockmgr}
32052 bat support: ${support_bat}
32053 enable-gnome: ${support_gnome} ${gnome_version}
32054 enable-bwx-console: ${support_wx_console} ${wx_version}
32055 enable-tray-monitor: ${support_tray_monitor}
32056 client-only: ${build_client_only}
32057 build-dird: ${build_dird}
32058 build-stored: ${build_stored}
32059 Plugin support: ${have_plugins}
32060 ACL support: ${have_acl}
32061 XATTR support: ${have_xattr}
32062 Python support: ${support_python} ${PYTHON_LIBS}
32063 Batch insert enabled: ${support_batch_insert}
32067 # create a small shell script useful for support with
32068 # configure options and config.out info
32069 cat > scripts/bacula_config << EOF
32072 $ $0 $ac_configure_args
32074 cat config.out >> scripts/bacula_config
32075 echo __EOC__ >> scripts/bacula_config
32076 chmod 755 scripts/bacula_config
32080 # Display a warning message if postgresql client lib is <= 8.1
32081 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
32082 -a x$support_batch_insert = xyes
32084 echo "WARNING: Your PostgreSQL client library is too old to detect "
32085 echo " if it was compiled with --enable-thread-safety, consider to"
32086 echo " upgrade it in order to avoid problems with Batch insert mode"