2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.66.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
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 STATUS 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=$1; test $as_status -eq 0 && as_status=1
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&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, old GNU/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
837 TRAY_MONITOR_CPPFLAGS
846 INTL_LIBTOOL_SUFFIX_PREFIX
853 BUILD_INCLUDED_LIBINTL
884 HAVE_OPENBSD_OS_FALSE
888 HAVE_FREEBSD_OS_FALSE
900 INCLUDE_UNINSTALL_TARGET
901 INCLUDE_INSTALL_TARGET
905 LIBTOOL_UNINSTALL_TARGET
906 LIBTOOL_INSTALL_TARGET
907 DEFAULT_SHARED_OBJECT_TYPE
981 LIBBACFIND_LT_RELEASE
1026 program_transform_name
1037 ac_subst_files='MCOMMON'
1039 enable_option_checking
1050 with_libiconv_prefix
1052 with_included_gettext
1091 with_mon_dir_password
1092 with_mon_fd_password
1093 with_mon_sd_password
1120 ac_precious_vars='build_alias
1138 # Initialize some variables set by options.
1140 ac_init_version=false
1141 ac_unrecognized_opts=
1142 ac_unrecognized_sep=
1143 # The variables have the same names as the options, with
1144 # dashes changed to underlines.
1145 cache_file=/dev/null
1152 program_transform_name=s,x,x,
1160 # Installation directory options.
1161 # These are left unexpanded so users can "make install exec_prefix=/foo"
1162 # and all the variables that are supposed to be based on exec_prefix
1163 # by default will actually change.
1164 # Use braces instead of parens because sh, perl, etc. also accept them.
1165 # (The list follows the same order as the GNU Coding Standards.)
1166 bindir='${exec_prefix}/bin'
1167 sbindir='${exec_prefix}/sbin'
1168 libexecdir='${exec_prefix}/libexec'
1169 datarootdir='${prefix}/share'
1170 datadir='${datarootdir}'
1171 sysconfdir='${prefix}/etc'
1172 sharedstatedir='${prefix}/com'
1173 localstatedir='${prefix}/var'
1174 includedir='${prefix}/include'
1175 oldincludedir='/usr/include'
1176 docdir='${datarootdir}/doc/${PACKAGE}'
1177 infodir='${datarootdir}/info'
1182 libdir='${exec_prefix}/lib'
1183 localedir='${datarootdir}/locale'
1184 mandir='${datarootdir}/man'
1190 # If the previous option needs an argument, assign it.
1191 if test -n "$ac_prev"; then
1192 eval $ac_prev=\$ac_option
1198 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1202 # Accept the important Cygnus configure options, so we can diagnose typos.
1204 case $ac_dashdash$ac_option in
1208 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1210 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1211 bindir=$ac_optarg ;;
1213 -build | --build | --buil | --bui | --bu)
1214 ac_prev=build_alias ;;
1215 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1216 build_alias=$ac_optarg ;;
1218 -cache-file | --cache-file | --cache-fil | --cache-fi \
1219 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1220 ac_prev=cache_file ;;
1221 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1222 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1223 cache_file=$ac_optarg ;;
1225 --config-cache | -C)
1226 cache_file=config.cache ;;
1228 -datadir | --datadir | --datadi | --datad)
1230 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1231 datadir=$ac_optarg ;;
1233 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1234 | --dataroo | --dataro | --datar)
1235 ac_prev=datarootdir ;;
1236 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1237 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1238 datarootdir=$ac_optarg ;;
1240 -disable-* | --disable-*)
1241 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244 as_fn_error $? "invalid feature name: $ac_useropt"
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1249 "enable_$ac_useropt"
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1254 eval enable_$ac_useropt=no ;;
1256 -docdir | --docdir | --docdi | --doc | --do)
1258 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1259 docdir=$ac_optarg ;;
1261 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1263 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1264 dvidir=$ac_optarg ;;
1266 -enable-* | --enable-*)
1267 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270 as_fn_error $? "invalid feature name: $ac_useropt"
1271 ac_useropt_orig=$ac_useropt
1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1275 "enable_$ac_useropt"
1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1278 ac_unrecognized_sep=', ';;
1280 eval enable_$ac_useropt=\$ac_optarg ;;
1282 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1283 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1284 | --exec | --exe | --ex)
1285 ac_prev=exec_prefix ;;
1286 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1287 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1288 | --exec=* | --exe=* | --ex=*)
1289 exec_prefix=$ac_optarg ;;
1291 -gas | --gas | --ga | --g)
1292 # Obsolete; use --with-gas.
1295 -help | --help | --hel | --he | -h)
1296 ac_init_help=long ;;
1297 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1298 ac_init_help=recursive ;;
1299 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1300 ac_init_help=short ;;
1302 -host | --host | --hos | --ho)
1303 ac_prev=host_alias ;;
1304 -host=* | --host=* | --hos=* | --ho=*)
1305 host_alias=$ac_optarg ;;
1307 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1309 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1311 htmldir=$ac_optarg ;;
1313 -includedir | --includedir | --includedi | --included | --include \
1314 | --includ | --inclu | --incl | --inc)
1315 ac_prev=includedir ;;
1316 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1317 | --includ=* | --inclu=* | --incl=* | --inc=*)
1318 includedir=$ac_optarg ;;
1320 -infodir | --infodir | --infodi | --infod | --info | --inf)
1322 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1323 infodir=$ac_optarg ;;
1325 -libdir | --libdir | --libdi | --libd)
1327 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1328 libdir=$ac_optarg ;;
1330 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1331 | --libexe | --libex | --libe)
1332 ac_prev=libexecdir ;;
1333 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1334 | --libexe=* | --libex=* | --libe=*)
1335 libexecdir=$ac_optarg ;;
1337 -localedir | --localedir | --localedi | --localed | --locale)
1338 ac_prev=localedir ;;
1339 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1340 localedir=$ac_optarg ;;
1342 -localstatedir | --localstatedir | --localstatedi | --localstated \
1343 | --localstate | --localstat | --localsta | --localst | --locals)
1344 ac_prev=localstatedir ;;
1345 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1346 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1347 localstatedir=$ac_optarg ;;
1349 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1351 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1352 mandir=$ac_optarg ;;
1354 -nfp | --nfp | --nf)
1355 # Obsolete; use --without-fp.
1358 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1359 | --no-cr | --no-c | -n)
1362 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1363 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1366 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1367 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1368 | --oldin | --oldi | --old | --ol | --o)
1369 ac_prev=oldincludedir ;;
1370 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1371 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1372 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1373 oldincludedir=$ac_optarg ;;
1375 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1377 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1378 prefix=$ac_optarg ;;
1380 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1381 | --program-pre | --program-pr | --program-p)
1382 ac_prev=program_prefix ;;
1383 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1384 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1385 program_prefix=$ac_optarg ;;
1387 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1388 | --program-suf | --program-su | --program-s)
1389 ac_prev=program_suffix ;;
1390 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1391 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1392 program_suffix=$ac_optarg ;;
1394 -program-transform-name | --program-transform-name \
1395 | --program-transform-nam | --program-transform-na \
1396 | --program-transform-n | --program-transform- \
1397 | --program-transform | --program-transfor \
1398 | --program-transfo | --program-transf \
1399 | --program-trans | --program-tran \
1400 | --progr-tra | --program-tr | --program-t)
1401 ac_prev=program_transform_name ;;
1402 -program-transform-name=* | --program-transform-name=* \
1403 | --program-transform-nam=* | --program-transform-na=* \
1404 | --program-transform-n=* | --program-transform-=* \
1405 | --program-transform=* | --program-transfor=* \
1406 | --program-transfo=* | --program-transf=* \
1407 | --program-trans=* | --program-tran=* \
1408 | --progr-tra=* | --program-tr=* | --program-t=*)
1409 program_transform_name=$ac_optarg ;;
1411 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1413 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1414 pdfdir=$ac_optarg ;;
1416 -psdir | --psdir | --psdi | --psd | --ps)
1418 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1421 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1422 | -silent | --silent | --silen | --sile | --sil)
1425 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1427 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1429 sbindir=$ac_optarg ;;
1431 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1432 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1433 | --sharedst | --shareds | --shared | --share | --shar \
1435 ac_prev=sharedstatedir ;;
1436 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1437 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1438 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1440 sharedstatedir=$ac_optarg ;;
1442 -site | --site | --sit)
1444 -site=* | --site=* | --sit=*)
1447 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1449 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1450 srcdir=$ac_optarg ;;
1452 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1453 | --syscon | --sysco | --sysc | --sys | --sy)
1454 ac_prev=sysconfdir ;;
1455 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1456 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1457 sysconfdir=$ac_optarg ;;
1459 -target | --target | --targe | --targ | --tar | --ta | --t)
1460 ac_prev=target_alias ;;
1461 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1462 target_alias=$ac_optarg ;;
1464 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1467 -version | --version | --versio | --versi | --vers | -V)
1468 ac_init_version=: ;;
1471 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1472 # Reject names that are not valid shell variable names.
1473 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1474 as_fn_error $? "invalid package name: $ac_useropt"
1475 ac_useropt_orig=$ac_useropt
1476 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1477 case $ac_user_opts in
1481 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1482 ac_unrecognized_sep=', ';;
1484 eval with_$ac_useropt=\$ac_optarg ;;
1486 -without-* | --without-*)
1487 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1488 # Reject names that are not valid shell variable names.
1489 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1490 as_fn_error $? "invalid package name: $ac_useropt"
1491 ac_useropt_orig=$ac_useropt
1492 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1493 case $ac_user_opts in
1497 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1498 ac_unrecognized_sep=', ';;
1500 eval with_$ac_useropt=no ;;
1503 # Obsolete; use --with-x.
1506 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1507 | --x-incl | --x-inc | --x-in | --x-i)
1508 ac_prev=x_includes ;;
1509 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1510 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1511 x_includes=$ac_optarg ;;
1513 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1514 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1515 ac_prev=x_libraries ;;
1516 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1517 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1518 x_libraries=$ac_optarg ;;
1520 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1521 Try \`$0 --help' for more information"
1525 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1526 # Reject names that are not valid shell variable names.
1527 case $ac_envvar in #(
1528 '' | [0-9]* | *[!_$as_cr_alnum]* )
1529 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1531 eval $ac_envvar=\$ac_optarg
1532 export $ac_envvar ;;
1535 # FIXME: should be removed in autoconf 3.0.
1536 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1537 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1538 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1539 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1545 if test -n "$ac_prev"; then
1546 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1547 as_fn_error $? "missing argument to $ac_option"
1550 if test -n "$ac_unrecognized_opts"; then
1551 case $enable_option_checking in
1553 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1554 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1558 # Check all directory arguments for consistency.
1559 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1560 datadir sysconfdir sharedstatedir localstatedir includedir \
1561 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1562 libdir localedir mandir
1564 eval ac_val=\$$ac_var
1565 # Remove trailing slashes.
1568 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1569 eval $ac_var=\$ac_val;;
1571 # Be sure to have absolute directory names.
1573 [\\/$]* | ?:[\\/]* ) continue;;
1574 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1576 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1579 # There might be people who depend on the old broken behavior: `$host'
1580 # used to hold the argument of --host etc.
1581 # FIXME: To remove some day.
1584 target=$target_alias
1586 # FIXME: To remove some day.
1587 if test "x$host_alias" != x; then
1588 if test "x$build_alias" = x; then
1589 cross_compiling=maybe
1590 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1591 If a cross compiler is detected then cross compile mode will be used" >&2
1592 elif test "x$build_alias" != "x$host_alias"; then
1598 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1600 test "$silent" = yes && exec 6>/dev/null
1603 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1604 ac_ls_di=`ls -di .` &&
1605 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1606 as_fn_error $? "working directory cannot be determined"
1607 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1608 as_fn_error $? "pwd does not report name of working directory"
1611 # Find the source files, if location was not specified.
1612 if test -z "$srcdir"; then
1613 ac_srcdir_defaulted=yes
1614 # Try the directory containing this script, then the parent directory.
1615 ac_confdir=`$as_dirname -- "$as_myself" ||
1616 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1617 X"$as_myself" : 'X\(//\)[^/]' \| \
1618 X"$as_myself" : 'X\(//\)$' \| \
1619 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1620 $as_echo X"$as_myself" |
1621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1639 if test ! -r "$srcdir/$ac_unique_file"; then
1643 ac_srcdir_defaulted=no
1645 if test ! -r "$srcdir/$ac_unique_file"; then
1646 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1647 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1649 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1651 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1653 # When building in place, set srcdir=.
1654 if test "$ac_abs_confdir" = "$ac_pwd"; then
1657 # Remove unnecessary trailing slashes from srcdir.
1658 # Double slashes in file names in object file debugging info
1659 # mess up M-x gdb in Emacs.
1661 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1663 for ac_var in $ac_precious_vars; do
1664 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1665 eval ac_env_${ac_var}_value=\$${ac_var}
1666 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1667 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1671 # Report the --help message.
1673 if test "$ac_init_help" = "long"; then
1674 # Omit some internal or obsolete options to make the list less imposing.
1675 # This message is too long to be a string in the A/UX 3.1 sh.
1677 \`configure' configures this package to adapt to many kinds of systems.
1679 Usage: $0 [OPTION]... [VAR=VALUE]...
1681 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1682 VAR=VALUE. See below for descriptions of some of the useful variables.
1684 Defaults for the options are specified in brackets.
1687 -h, --help display this help and exit
1688 --help=short display options specific to this package
1689 --help=recursive display the short help of all the included packages
1690 -V, --version display version information and exit
1691 -q, --quiet, --silent do not print \`checking ...' messages
1692 --cache-file=FILE cache test results in FILE [disabled]
1693 -C, --config-cache alias for \`--cache-file=config.cache'
1694 -n, --no-create do not create output files
1695 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1697 Installation directories:
1698 --prefix=PREFIX install architecture-independent files in PREFIX
1699 [$ac_default_prefix]
1700 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1703 By default, \`make install' will install all the files in
1704 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1705 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1706 for instance \`--prefix=\$HOME'.
1708 For better control, use the options below.
1710 Fine tuning of the installation directories:
1711 --bindir=DIR user executables [EPREFIX/bin]
1712 --sbindir=DIR system admin executables [EPREFIX/sbin]
1713 --libexecdir=DIR program executables [EPREFIX/libexec]
1714 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1715 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1716 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1717 --libdir=DIR object code libraries [EPREFIX/lib]
1718 --includedir=DIR C header files [PREFIX/include]
1719 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1720 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1721 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1722 --infodir=DIR info documentation [DATAROOTDIR/info]
1723 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1724 --mandir=DIR man documentation [DATAROOTDIR/man]
1725 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1726 --htmldir=DIR html documentation [DOCDIR]
1727 --dvidir=DIR dvi documentation [DOCDIR]
1728 --pdfdir=DIR pdf documentation [DOCDIR]
1729 --psdir=DIR ps documentation [DOCDIR]
1735 --x-includes=DIR X include files are in DIR
1736 --x-libraries=DIR X library files are in DIR
1739 --build=BUILD configure for building on BUILD [guessed]
1740 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1744 if test -n "$ac_init_help"; then
1749 --disable-option-checking ignore unrecognized --enable/--with options
1750 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1751 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1752 --enable-libtool enable building using GNU libtool [default=yes]
1753 --enable-shared[=PKGS] build shared libraries [default=yes]
1754 --enable-static[=PKGS] build static libraries [default=no]
1755 --enable-fast-install[=PKGS]
1756 optimize for fast installation [default=yes]
1757 --disable-libtool-lock avoid locking (might break parallel builds)
1758 --enable-includes enable installing of include files [default=no]
1759 --disable-nls do not use Native Language Support
1760 --disable-rpath do not hardcode runtime library paths
1761 --enable-gnome enable build of bgnome-console GUI [default=no]
1762 --enable-bat enable build of bat Qt4 GUI [default=no]
1763 --enable-bwx-console enable build of wxWidgets console [default=no]
1764 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1766 --enable-smartalloc enable smartalloc debugging support [default=no]
1767 --enable-lockmgr enable lock manager support [default=no]
1768 --enable-static-tools enable static tape tools [default=no]
1769 --enable-static-fd enable static File daemon [default=no]
1770 --enable-static-sd enable static Storage daemon [default=no]
1771 --enable-static-dir enable static Director [default=no]
1772 --enable-static-cons enable static Console [default=no]
1773 --enable-client-only build client (File daemon) only [default=no]
1774 --enable-build-dird enable building of dird (Director) [default=yes]
1775 --enable-build-stored enable building of stored (Storage daemon)
1777 --disable-conio disable conio support [default=no]
1778 --enable-ipv6 enable ipv6 support [default=yes]
1779 --disable-readline disable readline support [default=yes]
1780 --enable-batch-insert enable the DB batch insert code [default=no]
1781 --disable-largefile omit support for large files
1782 --disable-afs disable afs support [default=auto]
1783 --disable-acl disable acl support [default=auto]
1784 --disable-xattr disable xattr support [default=auto]
1787 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1788 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1789 --with-pic try to use only PIC/non-PIC objects [default=use
1791 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1792 --with-gnu-ld assume the C compiler uses GNU ld default=no
1793 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1794 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1795 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1796 --without-libintl-prefix don't search for libintl in includedir and libdir
1797 --with-included-gettext use the GNU gettext library included here
1798 --with-readline[=DIR] specify readline library directory
1799 --with-python[=DIR] Include Python support. DIR is the Python base
1800 install directory, default is to search through a
1801 number of common places for the Python files.
1802 --with-tcp-wrappers[=DIR]
1803 enable tcpwrappers support
1804 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1805 --with-working-dir=PATH specify path of Bacula working directory
1806 --with-archivedir=PATH specify path of SD archive directory
1807 --with-basename=RESNAME specify base resource name for daemons
1808 --with-hostname=RESNAME specify host name for daemons
1809 --with-scriptdir=PATH specify path of Bacula scripts directory
1810 --with-bsrdir=PATH specify path of Bacula bsrs directory
1811 --with-logdir=PATH specify path of Bacula logs directory
1812 --with-plugindir=PATH specify path of Bacula plugins directory
1813 --with-dump-email=EMAIL dump email address
1814 --with-job-email=EMAIL job output email address
1815 --with-smtp-host=HOST SMTP mail host address
1816 --with-pid-dir=PATH specify location of Bacula pid files
1817 --with-subsys-dir=PATH specify location of Bacula subsys file
1818 --with-baseport=PORT specify base port address for daemons
1819 --with-dir-password=PASSWORD
1820 specify Director's password
1821 --with-fd-password=PASSWORD
1822 specify Client's password
1823 --with-sd-password=PASSWORD
1824 specify Storage daemon's password
1825 --with-mon-dir-password=PASSWORD
1826 specify Director's password used by the monitor
1827 --with-mon-fd-password=PASSWORD
1828 specify Client's password used by the monitor
1829 --with-mon-sd-password=PASSWORD
1830 specify Storage daemon's password used by the
1832 --with-db-name=DBNAME specify database name [default=bacula]
1833 --with-db-user=UNAME specify database user [default=bacula]
1834 --with-db-password=PWD specify database password [default=*none*]
1835 --with-db-port=DBPORT specify a database port [default=null]
1836 --with-dir-user=USER specify user for Director daemon
1837 --with-dir-group=GROUP specify group for Director daemon
1838 --with-sd-user=USER specify user for Storage daemon
1839 --with-sd-group=GROUP specify group for Storage daemon
1840 --with-fd-user=USER specify user for File daemon
1841 --with-fd-group=GROUP specify group for File daemon
1842 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1843 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1844 base install directory, [default=/usr/local/pgsql]
1845 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1846 directory, default is to search through a number of
1847 common places for the MySQL files.
1848 --with-embedded-mysql[=DIR]
1849 Include MySQL support. DIR is the MySQL base install
1850 directory, default is to search through a number of
1851 common places for the MySQL files.
1852 --with-ingres[=DIR] Include Ingres support. DIR is the Ingres base
1853 install directory, default is to search through a
1854 number of common places for the Ingres files.
1855 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1856 install directory, default is to search through a
1857 number of common places for the SQLite3 files.
1858 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1859 directory, default is to search through a number of
1860 common places for the DBI files.
1861 --with-dbi-driver[=DRIVER]
1862 Suport for DBI driver. DRIVER is the one DBI driver
1863 like Mysql, Postgresql, others. Default is to not
1864 configure any driver.
1865 --with-x use the X Window System
1866 --with-afsdir[=DIR] Directory holding AFS includes/libs
1868 Some influential environment variables:
1869 CC C compiler command
1870 CFLAGS C compiler flags
1871 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1872 nonstandard directory <lib dir>
1873 LIBS libraries to pass to the linker, e.g. -l<library>
1874 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1875 you have headers in a nonstandard directory <include dir>
1876 CXX C++ compiler command
1877 CXXFLAGS C++ compiler flags
1879 WXCONFIG wx-config command. On some systems, you must set it to
1880 wx-config-2.6 to use wxWidgets 2.6.
1881 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1882 CXXCPP C++ preprocessor
1883 XMKMF Path to xmkmf, Makefile generator for X Window System
1885 Use these variables to override the choices made by `configure' or to help
1886 it to find libraries and programs with nonstandard names/locations.
1888 Report bugs to the package provider.
1893 if test "$ac_init_help" = "recursive"; then
1894 # If there are subdirs, report their specific --help.
1895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1896 test -d "$ac_dir" ||
1897 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1902 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1904 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1905 # A ".." for each directory in $ac_dir_suffix.
1906 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1907 case $ac_top_builddir_sub in
1908 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1909 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1912 ac_abs_top_builddir=$ac_pwd
1913 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1914 # for backward compatibility:
1915 ac_top_builddir=$ac_top_build_prefix
1918 .) # We are building in place.
1920 ac_top_srcdir=$ac_top_builddir_sub
1921 ac_abs_top_srcdir=$ac_pwd ;;
1922 [\\/]* | ?:[\\/]* ) # Absolute name.
1923 ac_srcdir=$srcdir$ac_dir_suffix;
1924 ac_top_srcdir=$srcdir
1925 ac_abs_top_srcdir=$srcdir ;;
1927 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1928 ac_top_srcdir=$ac_top_build_prefix$srcdir
1929 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1931 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1933 cd "$ac_dir" || { ac_status=$?; continue; }
1934 # Check for guested configure.
1935 if test -f "$ac_srcdir/configure.gnu"; then
1937 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1938 elif test -f "$ac_srcdir/configure"; then
1940 $SHELL "$ac_srcdir/configure" --help=recursive
1942 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1944 cd "$ac_pwd" || { ac_status=$?; break; }
1948 test -n "$ac_init_help" && exit $ac_status
1949 if $ac_init_version; then
1952 generated by GNU Autoconf 2.66
1954 Copyright (C) 2010 Free Software Foundation, Inc.
1955 This configure script is free software; the Free Software Foundation
1956 gives unlimited permission to copy, distribute and modify it.
1961 ## ------------------------ ##
1962 ## Autoconf initialization. ##
1963 ## ------------------------ ##
1965 # ac_fn_c_try_compile LINENO
1966 # --------------------------
1967 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1968 ac_fn_c_try_compile ()
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 rm -f conftest.$ac_objext
1972 if { { ac_try="$ac_compile"
1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975 *) ac_try_echo=$ac_try;;
1977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978 $as_echo "$ac_try_echo"; } >&5
1979 (eval "$ac_compile") 2>conftest.err
1981 if test -s conftest.err; then
1982 grep -v '^ *+' conftest.err >conftest.er1
1983 cat conftest.er1 >&5
1984 mv -f conftest.er1 conftest.err
1986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987 test $ac_status = 0; } && {
1988 test -z "$ac_c_werror_flag" ||
1989 test ! -s conftest.err
1990 } && test -s conftest.$ac_objext; then :
1993 $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1998 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1999 as_fn_set_status $ac_retval
2001 } # ac_fn_c_try_compile
2003 # ac_fn_cxx_try_compile LINENO
2004 # ----------------------------
2005 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2006 ac_fn_cxx_try_compile ()
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 rm -f conftest.$ac_objext
2010 if { { ac_try="$ac_compile"
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017 (eval "$ac_compile") 2>conftest.err
2019 if test -s conftest.err; then
2020 grep -v '^ *+' conftest.err >conftest.er1
2021 cat conftest.er1 >&5
2022 mv -f conftest.er1 conftest.err
2024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025 test $ac_status = 0; } && {
2026 test -z "$ac_cxx_werror_flag" ||
2027 test ! -s conftest.err
2028 } && test -s conftest.$ac_objext; then :
2031 $as_echo "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.$ac_ext >&5
2036 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037 as_fn_set_status $ac_retval
2039 } # ac_fn_cxx_try_compile
2041 # ac_fn_c_try_cpp LINENO
2042 # ----------------------
2043 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 if { { ac_try="$ac_cpp conftest.$ac_ext"
2049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050 *) ac_try_echo=$ac_try;;
2052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2056 if test -s conftest.err; then
2057 grep -v '^ *+' conftest.err >conftest.er1
2058 cat conftest.er1 >&5
2059 mv -f conftest.er1 conftest.err
2061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2062 test $ac_status = 0; } >/dev/null && {
2063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2064 test ! -s conftest.err
2068 $as_echo "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2073 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2074 as_fn_set_status $ac_retval
2078 # ac_fn_c_try_link LINENO
2079 # -----------------------
2080 # Try to link conftest.$ac_ext, and return whether this succeeded.
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 rm -f conftest.$ac_objext conftest$ac_exeext
2085 if { { ac_try="$ac_link"
2087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088 *) ac_try_echo=$ac_try;;
2090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091 $as_echo "$ac_try_echo"; } >&5
2092 (eval "$ac_link") 2>conftest.err
2094 if test -s conftest.err; then
2095 grep -v '^ *+' conftest.err >conftest.er1
2096 cat conftest.er1 >&5
2097 mv -f conftest.er1 conftest.err
2099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2100 test $ac_status = 0; } && {
2101 test -z "$ac_c_werror_flag" ||
2102 test ! -s conftest.err
2103 } && test -s conftest$ac_exeext && {
2104 test "$cross_compiling" = yes ||
2105 $as_test_x conftest$ac_exeext
2109 $as_echo "$as_me: failed program was:" >&5
2110 sed 's/^/| /' conftest.$ac_ext >&5
2114 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2115 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2116 # interfere with the next link command; also delete a directory that is
2117 # left behind by Apple's compiler. We do this before executing the actions.
2118 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2119 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2120 as_fn_set_status $ac_retval
2122 } # ac_fn_c_try_link
2124 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2125 # -------------------------------------------------------
2126 # Tests whether HEADER exists and can be compiled using the include files in
2127 # INCLUDES, setting the cache variable VAR accordingly.
2128 ac_fn_c_check_header_compile ()
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2132 $as_echo_n "checking for $2... " >&6; }
2133 if eval "test \"\${$3+set}\"" = set; then :
2134 $as_echo_n "(cached) " >&6
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2141 if ac_fn_c_try_compile "$LINENO"; then :
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2150 $as_echo "$ac_res" >&6; }
2151 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2153 } # ac_fn_c_check_header_compile
2155 # ac_fn_c_try_run LINENO
2156 # ----------------------
2157 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2158 # that executables *can* be run.
2161 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162 if { { ac_try="$ac_link"
2164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165 *) ac_try_echo=$ac_try;;
2167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2168 $as_echo "$ac_try_echo"; } >&5
2169 (eval "$ac_link") 2>&5
2171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2172 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2173 { { case "(($ac_try" in
2174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2175 *) ac_try_echo=$ac_try;;
2177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2178 $as_echo "$ac_try_echo"; } >&5
2179 (eval "$ac_try") 2>&5
2181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2182 test $ac_status = 0; }; }; then :
2185 $as_echo "$as_me: program exited with status $ac_status" >&5
2186 $as_echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2189 ac_retval=$ac_status
2191 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2192 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2193 as_fn_set_status $ac_retval
2197 # ac_fn_c_check_func LINENO FUNC VAR
2198 # ----------------------------------
2199 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2200 ac_fn_c_check_func ()
2202 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2204 $as_echo_n "checking for $2... " >&6; }
2205 if eval "test \"\${$3+set}\"" = set; then :
2206 $as_echo_n "(cached) " >&6
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2210 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2212 #define $2 innocuous_$2
2214 /* System header to define __stub macros and hopefully few prototypes,
2215 which can conflict with char $2 (); below.
2216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2217 <limits.h> exists even on freestanding compilers. */
2220 # include <limits.h>
2222 # include <assert.h>
2227 /* Override any GCC internal prototype to avoid an error.
2228 Use char because int might match the return type of a GCC
2229 builtin and then its argument prototype would still apply. */
2234 /* The GNU C library defines this for functions which it implements
2235 to always fail with ENOSYS. Some functions are actually named
2236 something starting with __ and the normal name is an alias. */
2237 #if defined __stub_$2 || defined __stub___$2
2249 if ac_fn_c_try_link "$LINENO"; then :
2254 rm -f core conftest.err conftest.$ac_objext \
2255 conftest$ac_exeext conftest.$ac_ext
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259 $as_echo "$ac_res" >&6; }
2260 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2262 } # ac_fn_c_check_func
2264 # ac_fn_cxx_try_cpp LINENO
2265 # ------------------------
2266 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2267 ac_fn_cxx_try_cpp ()
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 if { { ac_try="$ac_cpp conftest.$ac_ext"
2272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273 *) ac_try_echo=$ac_try;;
2275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2276 $as_echo "$ac_try_echo"; } >&5
2277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2279 if test -s conftest.err; then
2280 grep -v '^ *+' conftest.err >conftest.er1
2281 cat conftest.er1 >&5
2282 mv -f conftest.er1 conftest.err
2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285 test $ac_status = 0; } >/dev/null && {
2286 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2287 test ! -s conftest.err
2291 $as_echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2296 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2297 as_fn_set_status $ac_retval
2299 } # ac_fn_cxx_try_cpp
2301 # ac_fn_cxx_try_link LINENO
2302 # -------------------------
2303 # Try to link conftest.$ac_ext, and return whether this succeeded.
2304 ac_fn_cxx_try_link ()
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 rm -f conftest.$ac_objext conftest$ac_exeext
2308 if { { ac_try="$ac_link"
2310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311 *) ac_try_echo=$ac_try;;
2313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2314 $as_echo "$ac_try_echo"; } >&5
2315 (eval "$ac_link") 2>conftest.err
2317 if test -s conftest.err; then
2318 grep -v '^ *+' conftest.err >conftest.er1
2319 cat conftest.er1 >&5
2320 mv -f conftest.er1 conftest.err
2322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2323 test $ac_status = 0; } && {
2324 test -z "$ac_cxx_werror_flag" ||
2325 test ! -s conftest.err
2326 } && test -s conftest$ac_exeext && {
2327 test "$cross_compiling" = yes ||
2328 $as_test_x conftest$ac_exeext
2332 $as_echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2337 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2338 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2339 # interfere with the next link command; also delete a directory that is
2340 # left behind by Apple's compiler. We do this before executing the actions.
2341 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2342 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2343 as_fn_set_status $ac_retval
2345 } # ac_fn_cxx_try_link
2347 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2348 # -------------------------------------------
2349 # Tests whether TYPE exists after having included INCLUDES, setting cache
2350 # variable VAR accordingly.
2351 ac_fn_c_check_type ()
2353 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2355 $as_echo_n "checking for $2... " >&6; }
2356 if eval "test \"\${$3+set}\"" = set; then :
2357 $as_echo_n "(cached) " >&6
2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2372 if ac_fn_c_try_compile "$LINENO"; then :
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h. */
2385 if ac_fn_c_try_compile "$LINENO"; then :
2390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2396 $as_echo "$ac_res" >&6; }
2397 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2399 } # ac_fn_c_check_type
2401 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2402 # -------------------------------------------------------
2403 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2404 # the include files in INCLUDES and setting the cache variable VAR
2406 ac_fn_c_check_header_mongrel ()
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 if eval "test \"\${$3+set}\"" = set; then :
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2411 $as_echo_n "checking for $2... " >&6; }
2412 if eval "test \"\${$3+set}\"" = set; then :
2413 $as_echo_n "(cached) " >&6
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2417 $as_echo "$ac_res" >&6; }
2419 # Is the header compilable?
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2421 $as_echo_n "checking $2 usability... " >&6; }
2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h. */
2427 if ac_fn_c_try_compile "$LINENO"; then :
2428 ac_header_compiler=yes
2430 ac_header_compiler=no
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2434 $as_echo "$ac_header_compiler" >&6; }
2436 # Is the header present?
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2438 $as_echo_n "checking $2 presence... " >&6; }
2439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440 /* end confdefs.h. */
2443 if ac_fn_c_try_cpp "$LINENO"; then :
2444 ac_header_preproc=yes
2446 ac_header_preproc=no
2448 rm -f conftest.err conftest.$ac_ext
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2450 $as_echo "$ac_header_preproc" >&6; }
2452 # So? What about this header?
2453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2456 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2458 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2462 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2464 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2466 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2468 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2470 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2474 $as_echo_n "checking for $2... " >&6; }
2475 if eval "test \"\${$3+set}\"" = set; then :
2476 $as_echo_n "(cached) " >&6
2478 eval "$3=\$ac_header_compiler"
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2482 $as_echo "$ac_res" >&6; }
2484 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2486 } # ac_fn_c_check_header_mongrel
2488 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2489 # --------------------------------------------
2490 # Tries to find the compile-time value of EXPR in a program that includes
2491 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2493 ac_fn_c_compute_int ()
2495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2496 if test "$cross_compiling" = yes; then
2497 # Depending upon the size, compute the lo and hi bounds.
2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h. */
2504 static int test_array [1 - 2 * !(($2) >= 0)];
2511 if ac_fn_c_try_compile "$LINENO"; then :
2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h. */
2520 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2527 if ac_fn_c_try_compile "$LINENO"; then :
2528 ac_hi=$ac_mid; break
2530 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2531 if test $ac_lo -le $ac_mid; then
2535 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541 /* end confdefs.h. */
2546 static int test_array [1 - 2 * !(($2) < 0)];
2553 if ac_fn_c_try_compile "$LINENO"; then :
2556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2557 /* end confdefs.h. */
2562 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2569 if ac_fn_c_try_compile "$LINENO"; then :
2570 ac_lo=$ac_mid; break
2572 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2573 if test $ac_mid -le $ac_hi; then
2577 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 # Binary search between lo and hi bounds.
2588 while test "x$ac_lo" != "x$ac_hi"; do
2589 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h. */
2596 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2603 if ac_fn_c_try_compile "$LINENO"; then :
2606 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2616 /* end confdefs.h. */
2618 static long int longval () { return $2; }
2619 static unsigned long int ulongval () { return $2; }
2626 FILE *f = fopen ("conftest.val", "w");
2631 long int i = longval ();
2634 fprintf (f, "%ld", i);
2638 unsigned long int i = ulongval ();
2641 fprintf (f, "%lu", i);
2643 /* Do not output a trailing newline, as this causes \r\n confusion
2644 on some platforms. */
2645 return ferror (f) || fclose (f) != 0;
2651 if ac_fn_c_try_run "$LINENO"; then :
2652 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2657 conftest.$ac_objext conftest.beam conftest.$ac_ext
2661 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2662 as_fn_set_status $ac_retval
2664 } # ac_fn_c_compute_int
2666 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2667 # ----------------------------------------------------
2668 # Tries to find if the field MEMBER exists in type AGGR, after including
2669 # INCLUDES, setting cache variable VAR accordingly.
2670 ac_fn_c_check_member ()
2672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2674 $as_echo_n "checking for $2.$3... " >&6; }
2675 if eval "test \"\${$4+set}\"" = set; then :
2676 $as_echo_n "(cached) " >&6
2678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679 /* end confdefs.h. */
2691 if ac_fn_c_try_compile "$LINENO"; then :
2694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2695 /* end confdefs.h. */
2701 if (sizeof ac_aggr.$3)
2707 if ac_fn_c_try_compile "$LINENO"; then :
2712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2718 $as_echo "$ac_res" >&6; }
2719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2721 } # ac_fn_c_check_member
2723 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2724 # ---------------------------------------------
2725 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2727 ac_fn_c_check_decl ()
2729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2730 as_decl_name=`echo $2|sed 's/ *(.*//'`
2731 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2733 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2734 if eval "test \"\${$3+set}\"" = set; then :
2735 $as_echo_n "(cached) " >&6
2737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h. */
2743 #ifndef $as_decl_name
2745 (void) $as_decl_use;
2747 (void) $as_decl_name;
2755 if ac_fn_c_try_compile "$LINENO"; then :
2760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2764 $as_echo "$ac_res" >&6; }
2765 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2767 } # ac_fn_c_check_decl
2769 # ac_fn_cxx_try_run LINENO
2770 # ------------------------
2771 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2772 # that executables *can* be run.
2773 ac_fn_cxx_try_run ()
2775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2776 if { { ac_try="$ac_link"
2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779 *) ac_try_echo=$ac_try;;
2781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2782 $as_echo "$ac_try_echo"; } >&5
2783 (eval "$ac_link") 2>&5
2785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2786 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2787 { { case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2792 $as_echo "$ac_try_echo"; } >&5
2793 (eval "$ac_try") 2>&5
2795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2796 test $ac_status = 0; }; }; then :
2799 $as_echo "$as_me: program exited with status $ac_status" >&5
2800 $as_echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2803 ac_retval=$ac_status
2805 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2806 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2807 as_fn_set_status $ac_retval
2809 } # ac_fn_cxx_try_run
2810 cat >config.log <<_ACEOF
2811 This file contains any messages produced by compilers while
2812 running configure, to aid debugging if configure makes a mistake.
2814 It was created by $as_me, which was
2815 generated by GNU Autoconf 2.66. Invocation command line was
2827 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2828 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2829 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2830 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2831 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2833 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2834 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2836 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2837 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2838 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2839 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2840 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2841 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2842 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 test -z "$as_dir" && as_dir=.
2851 $as_echo "PATH: $as_dir"
2867 # Keep a trace of the command line.
2868 # Strip out --no-create and --no-recursion so they do not pile up.
2869 # Strip out --silent because we don't want to record it for future runs.
2870 # Also quote any args containing shell meta-characters.
2871 # Make two passes to allow for proper duplicate-argument suppression.
2875 ac_must_keep_next=false
2881 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2882 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2883 | -silent | --silent | --silen | --sile | --sil)
2886 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2889 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2891 as_fn_append ac_configure_args1 " '$ac_arg'"
2892 if test $ac_must_keep_next = true; then
2893 ac_must_keep_next=false # Got value, back to normal.
2896 *=* | --config-cache | -C | -disable-* | --disable-* \
2897 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2898 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2899 | -with-* | --with-* | -without-* | --without-* | --x)
2900 case "$ac_configure_args0 " in
2901 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2904 -* ) ac_must_keep_next=true ;;
2907 as_fn_append ac_configure_args " '$ac_arg'"
2912 { ac_configure_args0=; unset ac_configure_args0;}
2913 { ac_configure_args1=; unset ac_configure_args1;}
2915 # When interrupted or exit'd, cleanup temporary files, and complete
2916 # config.log. We remove comments because anyway the quotes in there
2917 # would cause problems or look ugly.
2918 # WARNING: Use '\'' to represent an apostrophe within the trap.
2919 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2920 trap 'exit_status=$?
2921 # Save into config.log some information that might help in debugging.
2925 $as_echo "## ---------------- ##
2926 ## Cache variables. ##
2927 ## ---------------- ##"
2929 # The following way of writing the cache mishandles newlines in values,
2931 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2932 eval ac_val=\$$ac_var
2936 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2937 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2940 _ | IFS | as_nl) ;; #(
2941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2942 *) { eval $ac_var=; unset $ac_var;} ;;
2947 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2948 *${as_nl}ac_space=\ *)
2950 "s/'\''/'\''\\\\'\'''\''/g;
2951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2961 $as_echo "## ----------------- ##
2962 ## Output variables. ##
2963 ## ----------------- ##"
2965 for ac_var in $ac_subst_vars
2967 eval ac_val=\$$ac_var
2969 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2971 $as_echo "$ac_var='\''$ac_val'\''"
2975 if test -n "$ac_subst_files"; then
2976 $as_echo "## ------------------- ##
2977 ## File substitutions. ##
2978 ## ------------------- ##"
2980 for ac_var in $ac_subst_files
2982 eval ac_val=\$$ac_var
2984 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2986 $as_echo "$ac_var='\''$ac_val'\''"
2991 if test -s confdefs.h; then
2992 $as_echo "## ----------- ##
2999 test "$ac_signal" != 0 &&
3000 $as_echo "$as_me: caught signal $ac_signal"
3001 $as_echo "$as_me: exit $exit_status"
3003 rm -f core *.core core.conftest.* &&
3004 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3007 for ac_signal in 1 2 13 15; do
3008 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3012 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3013 rm -f -r conftest* confdefs.h
3015 $as_echo "/* confdefs.h */" > confdefs.h
3017 # Predefined preprocessor variables.
3019 cat >>confdefs.h <<_ACEOF
3020 #define PACKAGE_NAME "$PACKAGE_NAME"
3023 cat >>confdefs.h <<_ACEOF
3024 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3027 cat >>confdefs.h <<_ACEOF
3028 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3031 cat >>confdefs.h <<_ACEOF
3032 #define PACKAGE_STRING "$PACKAGE_STRING"
3035 cat >>confdefs.h <<_ACEOF
3036 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3039 cat >>confdefs.h <<_ACEOF
3040 #define PACKAGE_URL "$PACKAGE_URL"
3044 # Let the site file select an alternate cache file if it wants to.
3045 # Prefer an explicitly selected file to automatically selected ones.
3048 if test -n "$CONFIG_SITE"; then
3049 # We do not want a PATH search for config.site.
3050 case $CONFIG_SITE in #((
3051 -*) ac_site_file1=./$CONFIG_SITE;;
3052 */*) ac_site_file1=$CONFIG_SITE;;
3053 *) ac_site_file1=./$CONFIG_SITE;;
3055 elif test "x$prefix" != xNONE; then
3056 ac_site_file1=$prefix/share/config.site
3057 ac_site_file2=$prefix/etc/config.site
3059 ac_site_file1=$ac_default_prefix/share/config.site
3060 ac_site_file2=$ac_default_prefix/etc/config.site
3062 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3064 test "x$ac_site_file" = xNONE && continue
3065 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3067 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3068 sed 's/^/| /' "$ac_site_file" >&5
3070 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3072 as_fn_error $? "failed to load site script $ac_site_file
3073 See \`config.log' for more details" "$LINENO" 5; }
3077 if test -r "$cache_file"; then
3078 # Some versions of bash will fail to source /dev/null (special files
3079 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3080 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3082 $as_echo "$as_me: loading cache $cache_file" >&6;}
3084 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3085 *) . "./$cache_file";;
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3090 $as_echo "$as_me: creating cache $cache_file" >&6;}
3094 as_fn_append ac_header_list " stdlib.h"
3095 as_fn_append ac_header_list " unistd.h"
3096 as_fn_append ac_header_list " sys/param.h"
3097 # Check that the precious variables saved in the cache have kept the same
3099 ac_cache_corrupted=false
3100 for ac_var in $ac_precious_vars; do
3101 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3102 eval ac_new_set=\$ac_env_${ac_var}_set
3103 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3104 eval ac_new_val=\$ac_env_${ac_var}_value
3105 case $ac_old_set,$ac_new_set in
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3108 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3109 ac_cache_corrupted=: ;;
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3112 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3113 ac_cache_corrupted=: ;;
3116 if test "x$ac_old_val" != "x$ac_new_val"; then
3117 # differences in whitespace do not lead to failure.
3118 ac_old_val_w=`echo x $ac_old_val`
3119 ac_new_val_w=`echo x $ac_new_val`
3120 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3122 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3123 ac_cache_corrupted=:
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3126 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3127 eval $ac_var=\$ac_old_val
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3130 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3132 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3135 # Pass precious variables to config.status.
3136 if test "$ac_new_set" = set; then
3138 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3139 *) ac_arg=$ac_var=$ac_new_val ;;
3141 case " $ac_configure_args " in
3142 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3143 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3147 if $ac_cache_corrupted; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3151 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3152 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3154 ## -------------------- ##
3155 ## Main body of script. ##
3156 ## -------------------- ##
3159 ac_cpp='$CPP $CPPFLAGS'
3160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3172 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3173 if test -f "$ac_dir/install-sh"; then
3175 ac_install_sh="$ac_aux_dir/install-sh -c"
3177 elif test -f "$ac_dir/install.sh"; then
3179 ac_install_sh="$ac_aux_dir/install.sh -c"
3181 elif test -f "$ac_dir/shtool"; then
3183 ac_install_sh="$ac_aux_dir/shtool install -c"
3187 if test -z "$ac_aux_dir"; then
3188 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3191 # These three variables are undocumented and unsupported,
3192 # and are intended to be withdrawn in a future Autoconf release.
3193 # They can cause serious problems if a builder's source tree is in a directory
3194 # whose full name contains unusual characters.
3195 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3196 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3197 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3200 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3203 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3204 WIN32MAINDIR=${BUILD_DIR}
3205 WIN32TOPDIR=${TOP_DIR}
3212 # Extract the first word of "$ac_prog", so it can be a program name with args.
3213 set dummy $ac_prog; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if test "${ac_cv_path_TRUEPRG+set}" = set; then :
3217 $as_echo_n "(cached) " >&6
3221 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 TRUEPRG=$ac_cv_path_TRUEPRG
3243 if test -n "$TRUEPRG"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3245 $as_echo "$TRUEPRG" >&6; }
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3252 test -n "$TRUEPRG" && break
3254 test -n "$TRUEPRG" || TRUEPRG=":"
3256 for ac_prog in false
3258 # Extract the first word of "$ac_prog", so it can be a program name with args.
3259 set dummy $ac_prog; ac_word=$2
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if test "${ac_cv_path_FALSEPRG+set}" = set; then :
3263 $as_echo_n "(cached) " >&6
3267 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 test -z "$as_dir" && as_dir=.
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3277 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 FALSEPRG=$ac_cv_path_FALSEPRG
3289 if test -n "$FALSEPRG"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3291 $as_echo "$FALSEPRG" >&6; }
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3298 test -n "$FALSEPRG" && break
3300 test -n "$FALSEPRG" || FALSEPRG=":"
3305 if test "x$BACULA" != x; then
3306 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3308 BACULA=${BACULA:-Bacula}
3309 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3310 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3311 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3312 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3314 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3315 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3316 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3318 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3319 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3320 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3323 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3325 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3328 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3330 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3333 echo "configuring for ${BACULA} $VERSION ($DATE)"
3338 ac_cpp='$CPP $CPPFLAGS'
3339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342 if test -n "$ac_tool_prefix"; then
3343 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3344 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if test "${ac_cv_prog_CC+set}" = set; then :
3348 $as_echo_n "(cached) " >&6
3350 if test -n "$CC"; then
3351 ac_cv_prog_CC="$CC" # Let the user override the test.
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 test -z "$as_dir" && as_dir=.
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3360 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 if test -n "$CC"; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3373 $as_echo "$CC" >&6; }
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3381 if test -z "$ac_cv_prog_CC"; then
3383 # Extract the first word of "gcc", so it can be a program name with args.
3384 set dummy gcc; ac_word=$2
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386 $as_echo_n "checking for $ac_word... " >&6; }
3387 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3388 $as_echo_n "(cached) " >&6
3390 if test -n "$ac_ct_CC"; then
3391 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3400 ac_cv_prog_ac_ct_CC="gcc"
3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3411 if test -n "$ac_ct_CC"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3413 $as_echo "$ac_ct_CC" >&6; }
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3419 if test "x$ac_ct_CC" = x; then
3422 case $cross_compiling:$ac_tool_warned in
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3426 ac_tool_warned=yes ;;
3434 if test -z "$CC"; then
3435 if test -n "$ac_tool_prefix"; then
3436 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3437 set dummy ${ac_tool_prefix}cc; ac_word=$2
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439 $as_echo_n "checking for $ac_word... " >&6; }
3440 if test "${ac_cv_prog_CC+set}" = set; then :
3441 $as_echo_n "(cached) " >&6
3443 if test -n "$CC"; then
3444 ac_cv_prog_CC="$CC" # Let the user override the test.
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3453 ac_cv_prog_CC="${ac_tool_prefix}cc"
3454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 if test -n "$CC"; then
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3466 $as_echo "$CC" >&6; }
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3475 if test -z "$CC"; then
3476 # Extract the first word of "cc", so it can be a program name with args.
3477 set dummy cc; ac_word=$2
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3479 $as_echo_n "checking for $ac_word... " >&6; }
3480 if test "${ac_cv_prog_CC+set}" = set; then :
3481 $as_echo_n "(cached) " >&6
3483 if test -n "$CC"; then
3484 ac_cv_prog_CC="$CC" # Let the user override the test.
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491 test -z "$as_dir" && as_dir=.
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3494 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3495 ac_prog_rejected=yes
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 if test $ac_prog_rejected = yes; then
3507 # We found a bogon in the path, so make sure we never use it.
3508 set dummy $ac_cv_prog_CC
3510 if test $# != 0; then
3511 # We chose a different compiler from the bogus one.
3512 # However, it has the same basename, so the bogon will be chosen
3513 # first if we set CC to just the basename; use the full file name.
3515 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3521 if test -n "$CC"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3523 $as_echo "$CC" >&6; }
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3531 if test -z "$CC"; then
3532 if test -n "$ac_tool_prefix"; then
3533 for ac_prog in cl.exe
3535 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3536 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_CC+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3542 if test -n "$CC"; then
3543 ac_cv_prog_CC="$CC" # Let the user override the test.
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 if test -n "$CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565 $as_echo "$CC" >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3572 test -n "$CC" && break
3575 if test -z "$CC"; then
3577 for ac_prog in cl.exe
3579 # Extract the first word of "$ac_prog", so it can be a program name with args.
3580 set dummy $ac_prog; ac_word=$2
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582 $as_echo_n "checking for $ac_word... " >&6; }
3583 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3584 $as_echo_n "(cached) " >&6
3586 if test -n "$ac_ct_CC"; then
3587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3596 ac_cv_prog_ac_ct_CC="$ac_prog"
3597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3607 if test -n "$ac_ct_CC"; then
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3609 $as_echo "$ac_ct_CC" >&6; }
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612 $as_echo "no" >&6; }
3616 test -n "$ac_ct_CC" && break
3619 if test "x$ac_ct_CC" = x; then
3622 case $cross_compiling:$ac_tool_warned in
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3626 ac_tool_warned=yes ;;
3635 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637 as_fn_error $? "no acceptable C compiler found in \$PATH
3638 See \`config.log' for more details" "$LINENO" 5; }
3640 # Provide some information about the compiler.
3641 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3644 for ac_option in --version -v -V -qversion; do
3645 { { ac_try="$ac_compiler $ac_option >&5"
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651 $as_echo "$ac_try_echo"; } >&5
3652 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3654 if test -s conftest.err; then
3656 ... rest of stderr output deleted ...
3657 10q' conftest.err >conftest.er1
3658 cat conftest.er1 >&5
3660 rm -f conftest.er1 conftest.err
3661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662 test $ac_status = 0; }
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3676 ac_clean_files_save=$ac_clean_files
3677 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3678 # Try to create an executable without -o first, disregard a.out.
3679 # It will help us diagnose broken compilers, and finding out an intuition
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3682 $as_echo_n "checking whether the C compiler works... " >&6; }
3683 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3685 # The possible output files:
3686 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3689 for ac_file in $ac_files
3692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3693 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3698 if { { ac_try="$ac_link_default"
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704 $as_echo "$ac_try_echo"; } >&5
3705 (eval "$ac_link_default") 2>&5
3707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3708 test $ac_status = 0; }; then :
3709 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3710 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3711 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3712 # so that the user can short-circuit this test for compilers unknown to
3714 for ac_file in $ac_files ''
3716 test -f "$ac_file" || continue
3718 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3721 # We found the default executable, but exeext='' is most
3725 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3727 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3729 # We set ac_cv_exeext here because the later test for it is not
3730 # safe: cross compilers may not add the suffix if given an `-o'
3731 # argument, so we may need to know it at that point already.
3732 # Even if this section looks crufty: it has the advantage of
3739 test "$ac_cv_exeext" = no && ac_cv_exeext=
3744 if test -z "$ac_file"; then :
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746 $as_echo "no" >&6; }
3747 $as_echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 as_fn_error 77 "C compiler cannot create executables
3753 See \`config.log' for more details" "$LINENO" 5; }
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3756 $as_echo "yes" >&6; }
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3759 $as_echo_n "checking for C compiler default output file name... " >&6; }
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3761 $as_echo "$ac_file" >&6; }
3762 ac_exeext=$ac_cv_exeext
3764 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3765 ac_clean_files=$ac_clean_files_save
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3767 $as_echo_n "checking for suffix of executables... " >&6; }
3768 if { { ac_try="$ac_link"
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3774 $as_echo "$ac_try_echo"; } >&5
3775 (eval "$ac_link") 2>&5
3777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778 test $ac_status = 0; }; then :
3779 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3780 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3781 # work properly (i.e., refer to `conftest.exe'), while it won't with
3783 for ac_file in conftest.exe conftest conftest.*; do
3784 test -f "$ac_file" || continue
3786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3787 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3793 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3795 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3796 See \`config.log' for more details" "$LINENO" 5; }
3798 rm -f conftest conftest$ac_cv_exeext
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3800 $as_echo "$ac_cv_exeext" >&6; }
3802 rm -f conftest.$ac_ext
3803 EXEEXT=$ac_cv_exeext
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3811 FILE *f = fopen ("conftest.out", "w");
3812 return ferror (f) || fclose (f) != 0;
3818 ac_clean_files="$ac_clean_files conftest.out"
3819 # Check that the compiler produces executables we can run. If not, either
3820 # the compiler is broken, or we cross compile.
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3822 $as_echo_n "checking whether we are cross compiling... " >&6; }
3823 if test "$cross_compiling" != yes; then
3824 { { ac_try="$ac_link"
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3830 $as_echo "$ac_try_echo"; } >&5
3831 (eval "$ac_link") 2>&5
3833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834 test $ac_status = 0; }
3835 if { ac_try='./conftest$ac_cv_exeext'
3836 { { case "(($ac_try" in
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3841 $as_echo "$ac_try_echo"; } >&5
3842 (eval "$ac_try") 2>&5
3844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3845 test $ac_status = 0; }; }; then
3848 if test "$cross_compiling" = maybe; then
3851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3853 as_fn_error $? "cannot run C compiled programs.
3854 If you meant to cross compile, use \`--host'.
3855 See \`config.log' for more details" "$LINENO" 5; }
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3860 $as_echo "$cross_compiling" >&6; }
3862 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3863 ac_clean_files=$ac_clean_files_save
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3865 $as_echo_n "checking for suffix of object files... " >&6; }
3866 if test "${ac_cv_objext+set}" = set; then :
3867 $as_echo_n "(cached) " >&6
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3880 rm -f conftest.o conftest.obj
3881 if { { ac_try="$ac_compile"
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3887 $as_echo "$ac_try_echo"; } >&5
3888 (eval "$ac_compile") 2>&5
3890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891 test $ac_status = 0; }; then :
3892 for ac_file in conftest.o conftest.obj conftest.*; do
3893 test -f "$ac_file" || continue;
3895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3896 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3901 $as_echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3906 as_fn_error $? "cannot compute suffix of object files: cannot compile
3907 See \`config.log' for more details" "$LINENO" 5; }
3909 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3912 $as_echo "$ac_cv_objext" >&6; }
3913 OBJEXT=$ac_cv_objext
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3916 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3917 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3918 $as_echo_n "(cached) " >&6
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3934 if ac_fn_c_try_compile "$LINENO"; then :
3939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3940 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3944 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3945 if test $ac_compiler_gnu = yes; then
3950 ac_test_CFLAGS=${CFLAGS+set}
3951 ac_save_CFLAGS=$CFLAGS
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3953 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3954 if test "${ac_cv_prog_cc_g+set}" = set; then :
3955 $as_echo_n "(cached) " >&6
3957 ac_save_c_werror_flag=$ac_c_werror_flag
3958 ac_c_werror_flag=yes
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3972 if ac_fn_c_try_compile "$LINENO"; then :
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3987 if ac_fn_c_try_compile "$LINENO"; then :
3990 ac_c_werror_flag=$ac_save_c_werror_flag
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
4003 if ac_fn_c_try_compile "$LINENO"; then :
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011 ac_c_werror_flag=$ac_save_c_werror_flag
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4014 $as_echo "$ac_cv_prog_cc_g" >&6; }
4015 if test "$ac_test_CFLAGS" = set; then
4016 CFLAGS=$ac_save_CFLAGS
4017 elif test $ac_cv_prog_cc_g = yes; then
4018 if test "$GCC" = yes; then
4024 if test "$GCC" = yes; then
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4031 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4032 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4033 $as_echo_n "(cached) " >&6
4035 ac_cv_prog_cc_c89=no
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4041 #include <sys/types.h>
4042 #include <sys/stat.h>
4043 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4044 struct buf { int x; };
4045 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4046 static char *e (p, i)
4052 static char *f (char * (*g) (char **, int), char **p, ...)
4057 s = g (p, va_arg (v,int));
4062 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4063 function prototypes and stuff, but not '\xHH' hex character constants.
4064 These don't provoke an error unfortunately, instead are silently treated
4065 as 'x'. The following induces an error, until -std is added to get
4066 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4067 array size at least. It's necessary to write '\x00'==0 to get something
4068 that's true only with -std. */
4069 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4071 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4072 inside strings and character constants. */
4074 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4076 int test (int i, double x);
4077 struct s1 {int (*f) (int a);};
4078 struct s2 {int (*f) (double a);};
4079 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4085 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4090 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4091 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4093 CC="$ac_save_CC $ac_arg"
4094 if ac_fn_c_try_compile "$LINENO"; then :
4095 ac_cv_prog_cc_c89=$ac_arg
4097 rm -f core conftest.err conftest.$ac_objext
4098 test "x$ac_cv_prog_cc_c89" != "xno" && break
4100 rm -f conftest.$ac_ext
4105 case "x$ac_cv_prog_cc_c89" in
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4108 $as_echo "none needed" >&6; } ;;
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4111 $as_echo "unsupported" >&6; } ;;
4113 CC="$CC $ac_cv_prog_cc_c89"
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4115 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4117 if test "x$ac_cv_prog_cc_c89" != xno; then :
4122 ac_cpp='$CPP $CPPFLAGS'
4123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4128 ac_cpp='$CXXCPP $CPPFLAGS'
4129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4132 if test -z "$CXX"; then
4133 if test -n "$CCC"; then
4136 if test -n "$ac_tool_prefix"; then
4137 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4140 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if test "${ac_cv_prog_CXX+set}" = set; then :
4144 $as_echo_n "(cached) " >&6
4146 if test -n "$CXX"; then
4147 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4156 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 if test -n "$CXX"; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4169 $as_echo "$CXX" >&6; }
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4176 test -n "$CXX" && break
4179 if test -z "$CXX"; then
4181 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4183 # Extract the first word of "$ac_prog", so it can be a program name with args.
4184 set dummy $ac_prog; ac_word=$2
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186 $as_echo_n "checking for $ac_word... " >&6; }
4187 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4188 $as_echo_n "(cached) " >&6
4190 if test -n "$ac_ct_CXX"; then
4191 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 test -z "$as_dir" && as_dir=.
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4200 ac_cv_prog_ac_ct_CXX="$ac_prog"
4201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4211 if test -n "$ac_ct_CXX"; then
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4213 $as_echo "$ac_ct_CXX" >&6; }
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216 $as_echo "no" >&6; }
4220 test -n "$ac_ct_CXX" && break
4223 if test "x$ac_ct_CXX" = x; then
4226 case $cross_compiling:$ac_tool_warned in
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4230 ac_tool_warned=yes ;;
4238 # Provide some information about the compiler.
4239 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4242 for ac_option in --version -v -V -qversion; do
4243 { { ac_try="$ac_compiler $ac_option >&5"
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4249 $as_echo "$ac_try_echo"; } >&5
4250 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4252 if test -s conftest.err; then
4254 ... rest of stderr output deleted ...
4255 10q' conftest.err >conftest.er1
4256 cat conftest.er1 >&5
4258 rm -f conftest.er1 conftest.err
4259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4260 test $ac_status = 0; }
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4264 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4265 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4266 $as_echo_n "(cached) " >&6
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4282 if ac_fn_cxx_try_compile "$LINENO"; then :
4287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4292 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4293 if test $ac_compiler_gnu = yes; then
4298 ac_test_CXXFLAGS=${CXXFLAGS+set}
4299 ac_save_CXXFLAGS=$CXXFLAGS
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4301 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4302 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4303 $as_echo_n "(cached) " >&6
4305 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4306 ac_cxx_werror_flag=yes
4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h. */
4320 if ac_fn_cxx_try_compile "$LINENO"; then :
4321 ac_cv_prog_cxx_g=yes
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4335 if ac_fn_cxx_try_compile "$LINENO"; then :
4338 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4351 if ac_fn_cxx_try_compile "$LINENO"; then :
4352 ac_cv_prog_cxx_g=yes
4354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4362 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4363 if test "$ac_test_CXXFLAGS" = set; then
4364 CXXFLAGS=$ac_save_CXXFLAGS
4365 elif test $ac_cv_prog_cxx_g = yes; then
4366 if test "$GXX" = yes; then
4372 if test "$GXX" = yes; then
4379 ac_cpp='$CPP $CPPFLAGS'
4380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4384 if test "x$CC" != xcc; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4386 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4389 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4391 set dummy $CC; ac_cc=`$as_echo "$2" |
4392 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4393 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
4394 $as_echo_n "(cached) " >&6
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4407 # Make sure it works both with $CC and with simple cc.
4408 # We do the test twice because some compilers refuse to overwrite an
4409 # existing .o file with -o, though they will create one.
4410 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4412 if { { case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4417 $as_echo "$ac_try_echo"; } >&5
4418 (eval "$ac_try") 2>&5
4420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4421 test $ac_status = 0; } &&
4422 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424 *) ac_try_echo=$ac_try;;
4426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4427 $as_echo "$ac_try_echo"; } >&5
4428 (eval "$ac_try") 2>&5
4430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4431 test $ac_status = 0; };
4433 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4434 if test "x$CC" != xcc; then
4435 # Test first that cc exists at all.
4436 if { ac_try='cc -c conftest.$ac_ext >&5'
4437 { { 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; }; }; then
4447 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4449 if { { case "(($ac_try" in
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4454 $as_echo "$ac_try_echo"; } >&5
4455 (eval "$ac_try") 2>&5
4457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4458 test $ac_status = 0; } &&
4459 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4464 $as_echo "$ac_try_echo"; } >&5
4465 (eval "$ac_try") 2>&5
4467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4468 test $ac_status = 0; };
4473 # cc exists but doesn't like -o.
4474 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4479 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4481 rm -f core conftest*
4484 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4486 $as_echo "yes" >&6; }
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4491 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4496 ac_cpp='$CPP $CPPFLAGS'
4497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4501 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4502 # On Suns, sometimes $CPP names a directory.
4503 if test -n "$CPP" && test -d "$CPP"; then
4506 if test -z "$CPP"; then
4507 if test "${ac_cv_prog_CPP+set}" = set; then :
4508 $as_echo_n "(cached) " >&6
4510 # Double quotes because CPP needs to be expanded
4511 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4514 for ac_c_preproc_warn_flag in '' yes
4516 # Use a header file that comes with gcc, so configuring glibc
4517 # with a fresh cross-compiler works.
4518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4519 # <limits.h> exists even on freestanding compilers.
4520 # On the NeXT, cc -E runs the code through the compiler's parser,
4521 # not just through cpp. "Syntax error" is here to catch this case.
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4525 # include <limits.h>
4527 # include <assert.h>
4531 if ac_fn_c_try_cpp "$LINENO"; then :
4534 # Broken: fails on valid input.
4537 rm -f conftest.err conftest.$ac_ext
4539 # OK, works on sane cases. Now check whether nonexistent headers
4540 # can be detected and how.
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4543 #include <ac_nonexistent.h>
4545 if ac_fn_c_try_cpp "$LINENO"; then :
4546 # Broken: success on invalid input.
4549 # Passes both tests.
4553 rm -f conftest.err conftest.$ac_ext
4556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4557 rm -f conftest.err conftest.$ac_ext
4558 if $ac_preproc_ok; then :
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4571 $as_echo "$CPP" >&6; }
4573 for ac_c_preproc_warn_flag in '' yes
4575 # Use a header file that comes with gcc, so configuring glibc
4576 # with a fresh cross-compiler works.
4577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4578 # <limits.h> exists even on freestanding compilers.
4579 # On the NeXT, cc -E runs the code through the compiler's parser,
4580 # not just through cpp. "Syntax error" is here to catch this case.
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4584 # include <limits.h>
4586 # include <assert.h>
4590 if ac_fn_c_try_cpp "$LINENO"; then :
4593 # Broken: fails on valid input.
4596 rm -f conftest.err conftest.$ac_ext
4598 # OK, works on sane cases. Now check whether nonexistent headers
4599 # can be detected and how.
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4602 #include <ac_nonexistent.h>
4604 if ac_fn_c_try_cpp "$LINENO"; then :
4605 # Broken: success on invalid input.
4608 # Passes both tests.
4612 rm -f conftest.err conftest.$ac_ext
4615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4616 rm -f conftest.err conftest.$ac_ext
4617 if $ac_preproc_ok; then :
4620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4622 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4623 See \`config.log' for more details" "$LINENO" 5; }
4627 ac_cpp='$CPP $CPPFLAGS'
4628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4634 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4635 if test "${ac_cv_path_GREP+set}" = set; then :
4636 $as_echo_n "(cached) " >&6
4638 if test -z "$GREP"; then
4639 ac_path_GREP_found=false
4640 # Loop through the user's path and test for each of PROGNAME-LIST
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4645 test -z "$as_dir" && as_dir=.
4646 for ac_prog in grep ggrep; do
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4649 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4650 # Check for GNU ac_path_GREP and select it if it is found.
4651 # Check for GNU $ac_path_GREP
4652 case `"$ac_path_GREP" --version 2>&1` in
4654 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4657 $as_echo_n 0123456789 >"conftest.in"
4660 cat "conftest.in" "conftest.in" >"conftest.tmp"
4661 mv "conftest.tmp" "conftest.in"
4662 cp "conftest.in" "conftest.nl"
4663 $as_echo 'GREP' >> "conftest.nl"
4664 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4666 as_fn_arith $ac_count + 1 && ac_count=$as_val
4667 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4668 # Best one so far, save it but keep looking for a better one
4669 ac_cv_path_GREP="$ac_path_GREP"
4670 ac_path_GREP_max=$ac_count
4672 # 10*(2^10) chars as input seems more than enough
4673 test $ac_count -gt 10 && break
4675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4678 $ac_path_GREP_found && break 3
4683 if test -z "$ac_cv_path_GREP"; then
4684 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4687 ac_cv_path_GREP=$GREP
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4692 $as_echo "$ac_cv_path_GREP" >&6; }
4693 GREP="$ac_cv_path_GREP"
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4697 $as_echo_n "checking for egrep... " >&6; }
4698 if test "${ac_cv_path_EGREP+set}" = set; then :
4699 $as_echo_n "(cached) " >&6
4701 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4702 then ac_cv_path_EGREP="$GREP -E"
4704 if test -z "$EGREP"; then
4705 ac_path_EGREP_found=false
4706 # Loop through the user's path and test for each of PROGNAME-LIST
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4711 test -z "$as_dir" && as_dir=.
4712 for ac_prog in egrep; do
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4715 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4716 # Check for GNU ac_path_EGREP and select it if it is found.
4717 # Check for GNU $ac_path_EGREP
4718 case `"$ac_path_EGREP" --version 2>&1` in
4720 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4723 $as_echo_n 0123456789 >"conftest.in"
4726 cat "conftest.in" "conftest.in" >"conftest.tmp"
4727 mv "conftest.tmp" "conftest.in"
4728 cp "conftest.in" "conftest.nl"
4729 $as_echo 'EGREP' >> "conftest.nl"
4730 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4732 as_fn_arith $ac_count + 1 && ac_count=$as_val
4733 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4734 # Best one so far, save it but keep looking for a better one
4735 ac_cv_path_EGREP="$ac_path_EGREP"
4736 ac_path_EGREP_max=$ac_count
4738 # 10*(2^10) chars as input seems more than enough
4739 test $ac_count -gt 10 && break
4741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4744 $ac_path_EGREP_found && break 3
4749 if test -z "$ac_cv_path_EGREP"; then
4750 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4753 ac_cv_path_EGREP=$EGREP
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4759 $as_echo "$ac_cv_path_EGREP" >&6; }
4760 EGREP="$ac_cv_path_EGREP"
4763 if test $ac_cv_c_compiler_gnu = yes; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4765 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4766 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4767 $as_echo_n "(cached) " >&6
4769 ac_pattern="Autoconf.*'x'"
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4776 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4777 ac_cv_prog_gcc_traditional=yes
4779 ac_cv_prog_gcc_traditional=no
4784 if test $ac_cv_prog_gcc_traditional = no; then
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4791 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4792 ac_cv_prog_gcc_traditional=yes
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4799 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4800 if test $ac_cv_prog_gcc_traditional = yes; then
4801 CC="$CC -traditional"
4805 BASECC=`basename $CC`
4807 if test "x$BASECC" = xgcc; then
4808 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4812 # Extract the first word of "$CXX", so it can be a program name with args.
4813 set dummy $CXX; ac_word=$2
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815 $as_echo_n "checking for $ac_word... " >&6; }
4816 if test "${ac_cv_path_CXX+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
4821 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4844 if test -n "$CXX"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4846 $as_echo "$CXX" >&6; }
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4853 if test ! -e $CXX; then
4854 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4857 # Find a good install program. We prefer a C program (faster),
4858 # so one script is as good as another. But avoid the broken or
4859 # incompatible versions:
4860 # SysV /etc/install, /usr/sbin/install
4861 # SunOS /usr/etc/install
4862 # IRIX /sbin/install
4864 # AmigaOS /C/install, which installs bootblocks on floppy discs
4865 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4866 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4867 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4868 # OS/2's system install, which has a completely different semantic
4869 # ./install, which can be erroneously created by make from ./install.sh.
4870 # Reject install programs that cannot install multiple files.
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4872 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4873 if test -z "$INSTALL"; then
4874 if test "${ac_cv_path_install+set}" = set; then :
4875 $as_echo_n "(cached) " >&6
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 test -z "$as_dir" && as_dir=.
4882 # Account for people who put trailing slashes in PATH elements.
4883 case $as_dir/ in #((
4884 ./ | .// | /[cC]/* | \
4885 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4886 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4889 # OSF1 and SCO ODT 3.0 have their own names for install.
4890 # Don't use installbsd from OSF since it installs stuff as root
4892 for ac_prog in ginstall scoinst install; do
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4895 if test $ac_prog = install &&
4896 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4897 # AIX install. It has an incompatible calling convention.
4899 elif test $ac_prog = install &&
4900 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4901 # program-specific install script used by HP pwplus--don't use.
4904 rm -rf conftest.one conftest.two conftest.dir
4905 echo one > conftest.one
4906 echo two > conftest.two
4908 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4909 test -s conftest.one && test -s conftest.two &&
4910 test -s conftest.dir/conftest.one &&
4911 test -s conftest.dir/conftest.two
4913 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4926 rm -rf conftest.one conftest.two conftest.dir
4929 if test "${ac_cv_path_install+set}" = set; then
4930 INSTALL=$ac_cv_path_install
4932 # As a last resort, use the slow shell script. Don't cache a
4933 # value for INSTALL within a source directory, because that will
4934 # break other packages using the cache if that directory is
4935 # removed, or if the value is a relative name.
4936 INSTALL=$ac_install_sh
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4940 $as_echo "$INSTALL" >&6; }
4942 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4943 # It thinks the first close brace ends the variable substitution.
4944 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4946 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4948 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4950 # Extract the first word of "mv", so it can be a program name with args.
4951 set dummy mv; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if test "${ac_cv_path_MV+set}" = set; then :
4955 $as_echo_n "(cached) " >&6
4959 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 test -z "$as_dir" && as_dir=.
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4969 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4977 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4982 if test -n "$MV"; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4984 $as_echo "$MV" >&6; }
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4991 # Extract the first word of "rm", so it can be a program name with args.
4992 set dummy rm; ac_word=$2
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994 $as_echo_n "checking for $ac_word... " >&6; }
4995 if test "${ac_cv_path_REMOVE+set}" = set; then :
4996 $as_echo_n "(cached) " >&6
5000 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 test -z "$as_dir" && as_dir=.
5008 for ac_exec_ext in '' $ac_executable_extensions; do
5009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5010 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
5011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5022 REMOVE=$ac_cv_path_REMOVE
5023 if test -n "$REMOVE"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5025 $as_echo "$REMOVE" >&6; }
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5032 # Extract the first word of "cp", so it can be a program name with args.
5033 set dummy cp; ac_word=$2
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5035 $as_echo_n "checking for $ac_word... " >&6; }
5036 if test "${ac_cv_path_CP+set}" = set; then :
5037 $as_echo_n "(cached) " >&6
5041 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 test -z "$as_dir" && as_dir=.
5049 for ac_exec_ext in '' $ac_executable_extensions; do
5050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5051 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5064 if test -n "$CP"; then
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5066 $as_echo "$CP" >&6; }
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069 $as_echo "no" >&6; }
5073 # Extract the first word of "sed", so it can be a program name with args.
5074 set dummy sed; ac_word=$2
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5076 $as_echo_n "checking for $ac_word... " >&6; }
5077 if test "${ac_cv_path_SED+set}" = set; then :
5078 $as_echo_n "(cached) " >&6
5082 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 test -z "$as_dir" && as_dir=.
5090 for ac_exec_ext in '' $ac_executable_extensions; do
5091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5092 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5105 if test -n "$SED"; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5107 $as_echo "$SED" >&6; }
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110 $as_echo "no" >&6; }
5114 # Extract the first word of "echo", so it can be a program name with args.
5115 set dummy echo; ac_word=$2
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117 $as_echo_n "checking for $ac_word... " >&6; }
5118 if test "${ac_cv_path_ECHO+set}" = set; then :
5119 $as_echo_n "(cached) " >&6
5123 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5133 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5145 ECHO=$ac_cv_path_ECHO
5146 if test -n "$ECHO"; then
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5148 $as_echo "$ECHO" >&6; }
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151 $as_echo "no" >&6; }
5155 # Extract the first word of "cmp", so it can be a program name with args.
5156 set dummy cmp; ac_word=$2
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 $as_echo_n "checking for $ac_word... " >&6; }
5159 if test "${ac_cv_path_CMP+set}" = set; then :
5160 $as_echo_n "(cached) " >&6
5164 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5174 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5187 if test -n "$CMP"; then
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5189 $as_echo "$CMP" >&6; }
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 $as_echo "no" >&6; }
5196 # Extract the first word of "tbl", so it can be a program name with args.
5197 set dummy tbl; ac_word=$2
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199 $as_echo_n "checking for $ac_word... " >&6; }
5200 if test "${ac_cv_path_TBL+set}" = set; then :
5201 $as_echo_n "(cached) " >&6
5205 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5228 if test -n "$TBL"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5230 $as_echo "$TBL" >&6; }
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5237 # Extract the first word of "ar", so it can be a program name with args.
5238 set dummy ar; ac_word=$2
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5240 $as_echo_n "checking for $ac_word... " >&6; }
5241 if test "${ac_cv_path_AR+set}" = set; then :
5242 $as_echo_n "(cached) " >&6
5246 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5256 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5269 if test -n "$AR"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5271 $as_echo "$AR" >&6; }
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5278 # Extract the first word of "openssl", so it can be a program name with args.
5279 set dummy openssl; ac_word=$2
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281 $as_echo_n "checking for $ac_word... " >&6; }
5282 if test "${ac_cv_path_OPENSSL+set}" = set; then :
5283 $as_echo_n "(cached) " >&6
5287 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5297 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5309 OPENSSL=$ac_cv_path_OPENSSL
5310 if test -n "$OPENSSL"; then
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5312 $as_echo "$OPENSSL" >&6; }
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315 $as_echo "no" >&6; }
5319 # Extract the first word of "mtx", so it can be a program name with args.
5320 set dummy mtx; ac_word=$2
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5322 $as_echo_n "checking for $ac_word... " >&6; }
5323 if test "${ac_cv_path_MTX+set}" = set; then :
5324 $as_echo_n "(cached) " >&6
5328 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 test -z "$as_dir" && as_dir=.
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5338 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5351 if test -n "$MTX"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5353 $as_echo "$MTX" >&6; }
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356 $as_echo "no" >&6; }
5360 # Extract the first word of "dd", so it can be a program name with args.
5361 set dummy dd; ac_word=$2
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5363 $as_echo_n "checking for $ac_word... " >&6; }
5364 if test "${ac_cv_path_DD+set}" = set; then :
5365 $as_echo_n "(cached) " >&6
5369 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5387 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5392 if test -n "$DD"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5394 $as_echo "$DD" >&6; }
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5401 # Extract the first word of "mkisofs", so it can be a program name with args.
5402 set dummy mkisofs; ac_word=$2
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if test "${ac_cv_path_MKISOFS+set}" = set; then :
5406 $as_echo_n "(cached) " >&6
5410 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 test -z "$as_dir" && as_dir=.
5418 for ac_exec_ext in '' $ac_executable_extensions; do
5419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5420 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5432 MKISOFS=$ac_cv_path_MKISOFS
5433 if test -n "$MKISOFS"; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5435 $as_echo "$MKISOFS" >&6; }
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5442 # Extract the first word of "python", so it can be a program name with args.
5443 set dummy python; ac_word=$2
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5445 $as_echo_n "checking for $ac_word... " >&6; }
5446 if test "${ac_cv_path_PYTHON+set}" = set; then :
5447 $as_echo_n "(cached) " >&6
5451 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 test -z "$as_dir" && as_dir=.
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5461 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5473 PYTHON=$ac_cv_path_PYTHON
5474 if test -n "$PYTHON"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5476 $as_echo "$PYTHON" >&6; }
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5483 # Extract the first word of "growisofs", so it can be a program name with args.
5484 set dummy growisofs; ac_word=$2
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486 $as_echo_n "checking for $ac_word... " >&6; }
5487 if test "${ac_cv_path_GROWISOFS+set}" = set; then :
5488 $as_echo_n "(cached) " >&6
5492 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 test -z "$as_dir" && as_dir=.
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5502 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5514 GROWISOFS=$ac_cv_path_GROWISOFS
5515 if test -n "$GROWISOFS"; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5517 $as_echo "$GROWISOFS" >&6; }
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5524 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5525 set dummy dvd+rw-mediainfo; ac_word=$2
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527 $as_echo_n "checking for $ac_word... " >&6; }
5528 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then :
5529 $as_echo_n "(cached) " >&6
5531 case $DVDRWMEDIAINFO in
5533 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 test -z "$as_dir" && as_dir=.
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5543 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5555 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5556 if test -n "$DVDRWMEDIAINFO"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5558 $as_echo "$DVDRWMEDIAINFO" >&6; }
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5565 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5566 set dummy dvd+rw-format; ac_word=$2
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568 $as_echo_n "checking for $ac_word... " >&6; }
5569 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then :
5570 $as_echo_n "(cached) " >&6
5572 case $DVDRWFORMAT in
5574 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5584 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5592 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5596 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5597 if test -n "$DVDRWFORMAT"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5599 $as_echo "$DVDRWFORMAT" >&6; }
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5606 # Extract the first word of "pkg-config", so it can be a program name with args.
5607 set dummy pkg-config; ac_word=$2
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609 $as_echo_n "checking for $ac_word... " >&6; }
5610 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
5611 $as_echo_n "(cached) " >&6
5615 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 test -z "$as_dir" && as_dir=.
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5625 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5637 PKGCONFIG=$ac_cv_path_PKGCONFIG
5638 if test -n "$PKGCONFIG"; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5640 $as_echo "$PKGCONFIG" >&6; }
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5647 # Extract the first word of "qmake", so it can be a program name with args.
5648 set dummy qmake; ac_word=$2
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650 $as_echo_n "checking for $ac_word... " >&6; }
5651 if test "${ac_cv_path_QMAKE+set}" = set; then :
5652 $as_echo_n "(cached) " >&6
5656 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 test -z "$as_dir" && as_dir=.
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5666 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5674 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5678 QMAKE=$ac_cv_path_QMAKE
5679 if test -n "$QMAKE"; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5681 $as_echo "$QMAKE" >&6; }
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5688 # Extract the first word of "gmake", so it can be a program name with args.
5689 set dummy gmake; ac_word=$2
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5691 $as_echo_n "checking for $ac_word... " >&6; }
5692 if test "${ac_cv_path_GMAKE+set}" = set; then :
5693 $as_echo_n "(cached) " >&6
5697 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 test -z "$as_dir" && as_dir=.
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5707 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5719 GMAKE=$ac_cv_path_GMAKE
5720 if test -n "$GMAKE"; then
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5722 $as_echo "$GMAKE" >&6; }
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725 $as_echo "no" >&6; }
5730 if test "x$WXCONFIG" = x; then
5733 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5734 set dummy ${WXCONFIG}; ac_word=$2
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5736 $as_echo_n "checking for $ac_word... " >&6; }
5737 if test "${ac_cv_path_WXCONFIG+set}" = set; then :
5738 $as_echo_n "(cached) " >&6
5742 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 test -z "$as_dir" && as_dir=.
5750 for ac_exec_ext in '' $ac_executable_extensions; do
5751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5752 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5764 WXCONFIG=$ac_cv_path_WXCONFIG
5765 if test -n "$WXCONFIG"; then
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5767 $as_echo "$WXCONFIG" >&6; }
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770 $as_echo "no" >&6; }
5775 # Extract the first word of "cdrecord", so it can be a program name with args.
5776 set dummy cdrecord; ac_word=$2
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5778 $as_echo_n "checking for $ac_word... " >&6; }
5779 if test "${ac_cv_path_CDRECORD+set}" = set; then :
5780 $as_echo_n "(cached) " >&6
5784 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 test -z "$as_dir" && as_dir=.
5792 for ac_exec_ext in '' $ac_executable_extensions; do
5793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5794 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5802 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5806 CDRECORD=$ac_cv_path_CDRECORD
5807 if test -n "$CDRECORD"; then
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5809 $as_echo "$CDRECORD" >&6; }
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812 $as_echo "no" >&6; }
5816 # Extract the first word of "pidof", so it can be a program name with args.
5817 set dummy pidof; ac_word=$2
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5819 $as_echo_n "checking for $ac_word... " >&6; }
5820 if test "${ac_cv_path_PIDOF+set}" = set; then :
5821 $as_echo_n "(cached) " >&6
5825 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5835 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5847 PIDOF=$ac_cv_path_PIDOF
5848 if test -n "$PIDOF"; then
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5850 $as_echo "$PIDOF" >&6; }
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853 $as_echo "no" >&6; }
5857 for ac_prog in gawk mawk nawk awk
5859 # Extract the first word of "$ac_prog", so it can be a program name with args.
5860 set dummy $ac_prog; ac_word=$2
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862 $as_echo_n "checking for $ac_word... " >&6; }
5863 if test "${ac_cv_prog_AWK+set}" = set; then :
5864 $as_echo_n "(cached) " >&6
5866 if test -n "$AWK"; then
5867 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876 ac_cv_prog_AWK="$ac_prog"
5877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 if test -n "$AWK"; then
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5889 $as_echo "$AWK" >&6; }
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892 $as_echo "no" >&6; }
5896 test -n "$AWK" && break
5899 # Some AWK programs fail, so test it and warn the user
5900 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5901 { if ((prog == $2) || (("(" prog ")") == $2) ||
5902 (("" prog "") == $2) ||
5903 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5905 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5906 The regex engine of $AWK is too broken to be used you
5907 might want to install GNU AWK.
5908 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5911 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5912 set dummy $THE_AWK; ac_word=$2
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914 $as_echo_n "checking for $ac_word... " >&6; }
5915 if test "${ac_cv_path_AWK+set}" = set; then :
5916 $as_echo_n "(cached) " >&6
5920 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5930 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5943 if test -n "$AWK"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5945 $as_echo "$AWK" >&6; }
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5954 test -n "$ARFLAG" || ARFLAGS="cr"
5966 # Check whether --enable-libtool was given.
5967 if test "${enable_libtool+set}" = set; then :
5968 enableval=$enable_libtool;
5969 if test x$enableval = xno; then
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5979 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5984 macro_version='2.2.6'
5985 macro_revision='1.3012'
5999 ltmain="$ac_aux_dir/ltmain.sh"
6001 # Make sure we can run config.sub.
6002 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6003 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6006 $as_echo_n "checking build system type... " >&6; }
6007 if test "${ac_cv_build+set}" = set; then :
6008 $as_echo_n "(cached) " >&6
6010 ac_build_alias=$build_alias
6011 test "x$ac_build_alias" = x &&
6012 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6013 test "x$ac_build_alias" = x &&
6014 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6015 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6016 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6020 $as_echo "$ac_cv_build" >&6; }
6021 case $ac_cv_build in
6023 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6026 ac_save_IFS=$IFS; IFS='-'
6032 # Remember, the first character of IFS is used to create $*,
6033 # except with old shells:
6036 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6040 $as_echo_n "checking host system type... " >&6; }
6041 if test "${ac_cv_host+set}" = set; then :
6042 $as_echo_n "(cached) " >&6
6044 if test "x$host_alias" = x; then
6045 ac_cv_host=$ac_cv_build
6047 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6048 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6053 $as_echo "$ac_cv_host" >&6; }
6056 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6059 ac_save_IFS=$IFS; IFS='-'
6065 # Remember, the first character of IFS is used to create $*,
6066 # except with old shells:
6069 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6073 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6074 if test "${ac_cv_path_SED+set}" = set; then :
6075 $as_echo_n "(cached) " >&6
6077 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6078 for ac_i in 1 2 3 4 5 6 7; do
6079 ac_script="$ac_script$as_nl$ac_script"
6081 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6082 { ac_script=; unset ac_script;}
6083 if test -z "$SED"; then
6084 ac_path_SED_found=false
6085 # Loop through the user's path and test for each of PROGNAME-LIST
6086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 test -z "$as_dir" && as_dir=.
6091 for ac_prog in sed gsed; do
6092 for ac_exec_ext in '' $ac_executable_extensions; do
6093 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6094 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6095 # Check for GNU ac_path_SED and select it if it is found.
6096 # Check for GNU $ac_path_SED
6097 case `"$ac_path_SED" --version 2>&1` in
6099 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6102 $as_echo_n 0123456789 >"conftest.in"
6105 cat "conftest.in" "conftest.in" >"conftest.tmp"
6106 mv "conftest.tmp" "conftest.in"
6107 cp "conftest.in" "conftest.nl"
6108 $as_echo '' >> "conftest.nl"
6109 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6110 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6111 as_fn_arith $ac_count + 1 && ac_count=$as_val
6112 if test $ac_count -gt ${ac_path_SED_max-0}; then
6113 # Best one so far, save it but keep looking for a better one
6114 ac_cv_path_SED="$ac_path_SED"
6115 ac_path_SED_max=$ac_count
6117 # 10*(2^10) chars as input seems more than enough
6118 test $ac_count -gt 10 && break
6120 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6123 $ac_path_SED_found && break 3
6128 if test -z "$ac_cv_path_SED"; then
6129 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6137 $as_echo "$ac_cv_path_SED" >&6; }
6138 SED="$ac_cv_path_SED"
6141 test -z "$SED" && SED=sed
6142 Xsed="$SED -e 1s/^X//"
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6155 $as_echo_n "checking for fgrep... " >&6; }
6156 if test "${ac_cv_path_FGREP+set}" = set; then :
6157 $as_echo_n "(cached) " >&6
6159 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6160 then ac_cv_path_FGREP="$GREP -F"
6162 if test -z "$FGREP"; then
6163 ac_path_FGREP_found=false
6164 # Loop through the user's path and test for each of PROGNAME-LIST
6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6169 test -z "$as_dir" && as_dir=.
6170 for ac_prog in fgrep; do
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6173 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6174 # Check for GNU ac_path_FGREP and select it if it is found.
6175 # Check for GNU $ac_path_FGREP
6176 case `"$ac_path_FGREP" --version 2>&1` in
6178 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6181 $as_echo_n 0123456789 >"conftest.in"
6184 cat "conftest.in" "conftest.in" >"conftest.tmp"
6185 mv "conftest.tmp" "conftest.in"
6186 cp "conftest.in" "conftest.nl"
6187 $as_echo 'FGREP' >> "conftest.nl"
6188 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6190 as_fn_arith $ac_count + 1 && ac_count=$as_val
6191 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6192 # Best one so far, save it but keep looking for a better one
6193 ac_cv_path_FGREP="$ac_path_FGREP"
6194 ac_path_FGREP_max=$ac_count
6196 # 10*(2^10) chars as input seems more than enough
6197 test $ac_count -gt 10 && break
6199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6202 $ac_path_FGREP_found && break 3
6207 if test -z "$ac_cv_path_FGREP"; then
6208 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6211 ac_cv_path_FGREP=$FGREP
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6217 $as_echo "$ac_cv_path_FGREP" >&6; }
6218 FGREP="$ac_cv_path_FGREP"
6221 test -z "$GREP" && GREP=grep
6241 # Check whether --with-gnu-ld was given.
6242 if test "${with_gnu_ld+set}" = set; then :
6243 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6249 if test "$GCC" = yes; then
6250 # Check if gcc -print-prog-name=ld gives a path.
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6252 $as_echo_n "checking for ld used by $CC... " >&6; }
6255 # gcc leaves a trailing carriage return which upsets mingw
6256 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6258 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6261 # Accept absolute paths.
6263 re_direlt='/[^/][^/]*/\.\./'
6264 # Canonicalize the pathname of ld
6265 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6266 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6267 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6269 test -z "$LD" && LD="$ac_prog"
6272 # If it fails, then pretend we aren't using GCC.
6276 # If it is relative, then search for the first ld in PATH.
6280 elif test "$with_gnu_ld" = yes; then
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6282 $as_echo_n "checking for GNU ld... " >&6; }
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6285 $as_echo_n "checking for non-GNU ld... " >&6; }
6287 if test "${lt_cv_path_LD+set}" = set; then :
6288 $as_echo_n "(cached) " >&6
6290 if test -z "$LD"; then
6291 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6292 for ac_dir in $PATH; do
6294 test -z "$ac_dir" && ac_dir=.
6295 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6296 lt_cv_path_LD="$ac_dir/$ac_prog"
6297 # Check to see if the program is GNU ld. I'd rather use --version,
6298 # but apparently some variants of GNU ld only accept -v.
6299 # Break only if it was the GNU/non-GNU ld that we prefer.
6300 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6301 *GNU* | *'with BFD'*)
6302 test "$with_gnu_ld" != no && break
6305 test "$with_gnu_ld" != yes && break
6312 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6317 if test -n "$LD"; then
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6319 $as_echo "$LD" >&6; }
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322 $as_echo "no" >&6; }
6324 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6326 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6327 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6328 $as_echo_n "(cached) " >&6
6330 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6331 case `$LD -v 2>&1 </dev/null` in
6332 *GNU* | *'with BFD'*)
6333 lt_cv_prog_gnu_ld=yes
6336 lt_cv_prog_gnu_ld=no
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6341 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6342 with_gnu_ld=$lt_cv_prog_gnu_ld
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6353 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6354 if test "${lt_cv_path_NM+set}" = set; then :
6355 $as_echo_n "(cached) " >&6
6357 if test -n "$NM"; then
6358 # Let the user override the test.
6361 lt_nm_to_check="${ac_tool_prefix}nm"
6362 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6363 lt_nm_to_check="$lt_nm_to_check nm"
6365 for lt_tmp_nm in $lt_nm_to_check; do
6366 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6367 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6369 test -z "$ac_dir" && ac_dir=.
6370 tmp_nm="$ac_dir/$lt_tmp_nm"
6371 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6372 # Check to see if the nm accepts a BSD-compat flag.
6373 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6374 # nm: unknown option "B" ignored
6375 # Tru64's nm complains that /dev/null is an invalid object file
6376 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6377 */dev/null* | *'Invalid file or object type'*)
6378 lt_cv_path_NM="$tmp_nm -B"
6382 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6384 lt_cv_path_NM="$tmp_nm -p"
6388 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6389 continue # so that we can try to find one that supports BSD flags
6398 : ${lt_cv_path_NM=no}
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6402 $as_echo "$lt_cv_path_NM" >&6; }
6403 if test "$lt_cv_path_NM" != "no"; then
6406 # Didn't find any BSD compatible name lister, look for dumpbin.
6407 if test -n "$ac_tool_prefix"; then
6408 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6410 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6411 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6413 $as_echo_n "checking for $ac_word... " >&6; }
6414 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6415 $as_echo_n "(cached) " >&6
6417 if test -n "$DUMPBIN"; then
6418 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 test -z "$as_dir" && as_dir=.
6425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6427 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 DUMPBIN=$ac_cv_prog_DUMPBIN
6438 if test -n "$DUMPBIN"; then
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6440 $as_echo "$DUMPBIN" >&6; }
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443 $as_echo "no" >&6; }
6447 test -n "$DUMPBIN" && break
6450 if test -z "$DUMPBIN"; then
6451 ac_ct_DUMPBIN=$DUMPBIN
6452 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6454 # Extract the first word of "$ac_prog", so it can be a program name with args.
6455 set dummy $ac_prog; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6459 $as_echo_n "(cached) " >&6
6461 if test -n "$ac_ct_DUMPBIN"; then
6462 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6482 if test -n "$ac_ct_DUMPBIN"; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6484 $as_echo "$ac_ct_DUMPBIN" >&6; }
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6491 test -n "$ac_ct_DUMPBIN" && break
6494 if test "x$ac_ct_DUMPBIN" = x; then
6497 case $cross_compiling:$ac_tool_warned in
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6501 ac_tool_warned=yes ;;
6503 DUMPBIN=$ac_ct_DUMPBIN
6508 if test "$DUMPBIN" != ":"; then
6512 test -z "$NM" && NM=nm
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6520 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6521 if test "${lt_cv_nm_interface+set}" = set; then :
6522 $as_echo_n "(cached) " >&6
6524 lt_cv_nm_interface="BSD nm"
6525 echo "int some_variable = 0;" > conftest.$ac_ext
6526 (eval echo "\"\$as_me:6526: $ac_compile\"" >&5)
6527 (eval "$ac_compile" 2>conftest.err)
6528 cat conftest.err >&5
6529 (eval echo "\"\$as_me:6529: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6530 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6531 cat conftest.err >&5
6532 (eval echo "\"\$as_me:6532: output\"" >&5)
6533 cat conftest.out >&5
6534 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6535 lt_cv_nm_interface="MS dumpbin"
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6540 $as_echo "$lt_cv_nm_interface" >&6; }
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6543 $as_echo_n "checking whether ln -s works... " >&6; }
6545 if test "$LN_S" = "ln -s"; then
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6547 $as_echo "yes" >&6; }
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6550 $as_echo "no, using $LN_S" >&6; }
6553 # find the maximum length of command line arguments
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6555 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6556 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6557 $as_echo_n "(cached) " >&6
6564 # On DJGPP, this test can blow up pretty badly due to problems in libc
6565 # (any single argument exceeding 2000 bytes causes a buffer overrun
6566 # during glob expansion). Even if it were fixed, the result of this
6567 # check would be larger than it should be.
6568 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6572 # Under GNU Hurd, this test is not required because there is
6573 # no limit to the length of command line arguments.
6574 # Libtool will interpret -1 as no limit whatsoever
6575 lt_cv_sys_max_cmd_len=-1;
6578 cygwin* | mingw* | cegcc*)
6579 # On Win9x/ME, this test blows up -- it succeeds, but takes
6580 # about 5 minutes as the teststring grows exponentially.
6581 # Worse, since 9x/ME are not pre-emptively multitasking,
6582 # you end up with a "frozen" computer, even though with patience
6583 # the test eventually succeeds (with a max line length of 256k).
6584 # Instead, let's just punt: use the minimum linelength reported by
6585 # all of the supported platforms: 8192 (on NT/2K/XP).
6586 lt_cv_sys_max_cmd_len=8192;
6590 # On AmigaOS with pdksh, this test takes hours, literally.
6591 # So we just punt and use a minimum line length of 8192.
6592 lt_cv_sys_max_cmd_len=8192;
6595 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6596 # This has been around since 386BSD, at least. Likely further.
6597 if test -x /sbin/sysctl; then
6598 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6599 elif test -x /usr/sbin/sysctl; then
6600 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6602 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6604 # And add a safety zone
6605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6610 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6611 lt_cv_sys_max_cmd_len=196608
6615 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6616 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6617 # nice to cause kernel panics so lets avoid the loop below.
6618 # First set a reasonable default.
6619 lt_cv_sys_max_cmd_len=16384
6621 if test -x /sbin/sysconfig; then
6622 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6623 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6628 lt_cv_sys_max_cmd_len=102400
6630 sysv5* | sco5v6* | sysv4.2uw2*)
6631 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6632 if test -n "$kargmax"; then
6633 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6635 lt_cv_sys_max_cmd_len=32768
6639 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6640 if test -n "$lt_cv_sys_max_cmd_len"; then
6641 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6642 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6644 # Make teststring a little bigger before we do anything with it.
6645 # a 1K string should be a reasonable start.
6646 for i in 1 2 3 4 5 6 7 8 ; do
6647 teststring=$teststring$teststring
6649 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6650 # If test is not a shell built-in, we'll probably end up computing a
6651 # maximum length that is only half of the actual maximum length, but
6653 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6654 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6655 test $i != 17 # 1/2 MB should be enough
6658 teststring=$teststring$teststring
6660 # Only check the string length outside the loop.
6661 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6663 # Add a significant safety factor because C++ compilers can tack on
6664 # massive amounts of additional arguments before passing them to the
6665 # linker. It appears as though 1/2 is a usable value.
6666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6673 if test -n $lt_cv_sys_max_cmd_len ; then
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6675 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6678 $as_echo "none" >&6; }
6680 max_cmd_len=$lt_cv_sys_max_cmd_len
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6692 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6693 # Try some XSI features
6696 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6698 && eval 'test $(( 1 + 1 )) -eq 2 \
6699 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6702 $as_echo "$xsi_shell" >&6; }
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6706 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6708 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6710 && lt_shell_append=yes
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6712 $as_echo "$lt_shell_append" >&6; }
6715 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6725 # test EBCDIC or ASCII
6726 case `echo X|tr X '\101'` in
6727 A) # ASCII based system
6728 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6729 lt_SP2NL='tr \040 \012'
6730 lt_NL2SP='tr \015\012 \040\040'
6732 *) # EBCDIC based system
6733 lt_SP2NL='tr \100 \n'
6734 lt_NL2SP='tr \r\n \100\100'
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6747 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6748 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6749 $as_echo_n "(cached) " >&6
6751 lt_cv_ld_reload_flag='-r'
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6754 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6755 reload_flag=$lt_cv_ld_reload_flag
6756 case $reload_flag in
6758 *) reload_flag=" $reload_flag" ;;
6760 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6763 if test "$GCC" = yes; then
6764 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6766 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6779 if test -n "$ac_tool_prefix"; then
6780 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6781 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783 $as_echo_n "checking for $ac_word... " >&6; }
6784 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6785 $as_echo_n "(cached) " >&6
6787 if test -n "$OBJDUMP"; then
6788 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6797 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 OBJDUMP=$ac_cv_prog_OBJDUMP
6808 if test -n "$OBJDUMP"; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6810 $as_echo "$OBJDUMP" >&6; }
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 $as_echo "no" >&6; }
6818 if test -z "$ac_cv_prog_OBJDUMP"; then
6819 ac_ct_OBJDUMP=$OBJDUMP
6820 # Extract the first word of "objdump", so it can be a program name with args.
6821 set dummy objdump; ac_word=$2
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823 $as_echo_n "checking for $ac_word... " >&6; }
6824 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6825 $as_echo_n "(cached) " >&6
6827 if test -n "$ac_ct_OBJDUMP"; then
6828 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6848 if test -n "$ac_ct_OBJDUMP"; then
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6850 $as_echo "$ac_ct_OBJDUMP" >&6; }
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853 $as_echo "no" >&6; }
6856 if test "x$ac_ct_OBJDUMP" = x; then
6859 case $cross_compiling:$ac_tool_warned in
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6863 ac_tool_warned=yes ;;
6865 OBJDUMP=$ac_ct_OBJDUMP
6868 OBJDUMP="$ac_cv_prog_OBJDUMP"
6871 test -z "$OBJDUMP" && OBJDUMP=objdump
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6882 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6883 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
6886 lt_cv_file_magic_cmd='$MAGIC_CMD'
6887 lt_cv_file_magic_test_file=
6888 lt_cv_deplibs_check_method='unknown'
6889 # Need to set the preceding variable on all platforms that support
6890 # interlibrary dependencies.
6891 # 'none' -- dependencies not supported.
6892 # `unknown' -- same as none, but documents that we really don't know.
6893 # 'pass_all' -- all dependencies passed with no checks.
6894 # 'test_compile' -- check by making test program.
6895 # 'file_magic [[regex]]' -- check by looking for files in library path
6896 # which responds to the $file_magic_cmd with a given extended regex.
6897 # If you have `file' or equivalent on your system and you're not sure
6898 # whether `pass_all' will *always* work, you probably want this one.
6902 lt_cv_deplibs_check_method=pass_all
6906 lt_cv_deplibs_check_method=pass_all
6910 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6911 lt_cv_file_magic_cmd='/usr/bin/file -L'
6912 lt_cv_file_magic_test_file=/shlib/libc.so
6916 # func_win32_libid is a shell function defined in ltmain.sh
6917 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6918 lt_cv_file_magic_cmd='func_win32_libid'
6922 # Base MSYS/MinGW do not provide the 'file' command needed by
6923 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6924 # unless we find 'file', for example because we are cross-compiling.
6925 if ( file / ) >/dev/null 2>&1; then
6926 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6927 lt_cv_file_magic_cmd='func_win32_libid'
6929 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6930 lt_cv_file_magic_cmd='$OBJDUMP -f'
6935 # use the weaker test based on 'objdump'. See mingw*.
6936 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6937 lt_cv_file_magic_cmd='$OBJDUMP -f'
6940 darwin* | rhapsody*)
6941 lt_cv_deplibs_check_method=pass_all
6944 freebsd* | dragonfly*)
6945 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6948 # Not sure whether the presence of OpenBSD here was a mistake.
6949 # Let's accept both of them until this is cleared up.
6950 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6951 lt_cv_file_magic_cmd=/usr/bin/file
6952 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6956 lt_cv_deplibs_check_method=pass_all
6961 lt_cv_deplibs_check_method=pass_all
6964 hpux10.20* | hpux11*)
6965 lt_cv_file_magic_cmd=/usr/bin/file
6968 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6969 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6972 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]'
6973 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6976 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6977 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6983 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6984 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6987 irix5* | irix6* | nonstopux*)
6989 *-32|*"-32 ") libmagic=32-bit;;
6990 *-n32|*"-n32 ") libmagic=N32;;
6991 *-64|*"-64 ") libmagic=64-bit;;
6992 *) libmagic=never-match;;
6994 lt_cv_deplibs_check_method=pass_all
6997 # This must be Linux ELF.
6998 linux* | k*bsd*-gnu)
6999 lt_cv_deplibs_check_method=pass_all
7003 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7004 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7011 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7012 lt_cv_file_magic_cmd=/usr/bin/file
7013 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7017 lt_cv_deplibs_check_method=pass_all
7021 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7028 osf3* | osf4* | osf5*)
7029 lt_cv_deplibs_check_method=pass_all
7033 lt_cv_deplibs_check_method=pass_all
7037 lt_cv_deplibs_check_method=pass_all
7040 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7041 lt_cv_deplibs_check_method=pass_all
7045 case $host_vendor in
7047 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]'
7048 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7051 lt_cv_deplibs_check_method=pass_all
7054 lt_cv_file_magic_cmd='/bin/file'
7055 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7058 lt_cv_file_magic_cmd='/bin/file'
7059 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7060 lt_cv_file_magic_test_file=/lib/libc.so
7063 lt_cv_deplibs_check_method=pass_all
7066 lt_cv_deplibs_check_method=pass_all
7072 lt_cv_deplibs_check_method=pass_all
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7078 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7079 file_magic_cmd=$lt_cv_file_magic_cmd
7080 deplibs_check_method=$lt_cv_deplibs_check_method
7081 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7094 if test -n "$ac_tool_prefix"; then
7095 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7096 set dummy ${ac_tool_prefix}ar; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if test "${ac_cv_prog_AR+set}" = set; then :
7100 $as_echo_n "(cached) " >&6
7102 if test -n "$AR"; then
7103 ac_cv_prog_AR="$AR" # Let the user override the test.
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7112 ac_cv_prog_AR="${ac_tool_prefix}ar"
7113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 if test -n "$AR"; then
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7125 $as_echo "$AR" >&6; }
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7133 if test -z "$ac_cv_prog_AR"; then
7135 # Extract the first word of "ar", so it can be a program name with args.
7136 set dummy ar; ac_word=$2
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138 $as_echo_n "checking for $ac_word... " >&6; }
7139 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7140 $as_echo_n "(cached) " >&6
7142 if test -n "$ac_ct_AR"; then
7143 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152 ac_cv_prog_ac_ct_AR="ar"
7153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7163 if test -n "$ac_ct_AR"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7165 $as_echo "$ac_ct_AR" >&6; }
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7171 if test "x$ac_ct_AR" = x; then
7174 case $cross_compiling:$ac_tool_warned in
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7178 ac_tool_warned=yes ;;
7186 test -z "$AR" && AR=ar
7187 test -z "$AR_FLAGS" && AR_FLAGS=cru
7199 if test -n "$ac_tool_prefix"; then
7200 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7201 set dummy ${ac_tool_prefix}strip; ac_word=$2
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7203 $as_echo_n "checking for $ac_word... " >&6; }
7204 if test "${ac_cv_prog_STRIP+set}" = set; then :
7205 $as_echo_n "(cached) " >&6
7207 if test -n "$STRIP"; then
7208 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7217 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 STRIP=$ac_cv_prog_STRIP
7228 if test -n "$STRIP"; then
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7230 $as_echo "$STRIP" >&6; }
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233 $as_echo "no" >&6; }
7238 if test -z "$ac_cv_prog_STRIP"; then
7240 # Extract the first word of "strip", so it can be a program name with args.
7241 set dummy strip; ac_word=$2
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243 $as_echo_n "checking for $ac_word... " >&6; }
7244 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7245 $as_echo_n "(cached) " >&6
7247 if test -n "$ac_ct_STRIP"; then
7248 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257 ac_cv_prog_ac_ct_STRIP="strip"
7258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7268 if test -n "$ac_ct_STRIP"; then
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7270 $as_echo "$ac_ct_STRIP" >&6; }
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 $as_echo "no" >&6; }
7276 if test "x$ac_ct_STRIP" = x; then
7279 case $cross_compiling:$ac_tool_warned in
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7283 ac_tool_warned=yes ;;
7288 STRIP="$ac_cv_prog_STRIP"
7291 test -z "$STRIP" && STRIP=:
7298 if test -n "$ac_tool_prefix"; then
7299 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7300 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302 $as_echo_n "checking for $ac_word... " >&6; }
7303 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7304 $as_echo_n "(cached) " >&6
7306 if test -n "$RANLIB"; then
7307 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 test -z "$as_dir" && as_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7316 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 RANLIB=$ac_cv_prog_RANLIB
7327 if test -n "$RANLIB"; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7329 $as_echo "$RANLIB" >&6; }
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }
7337 if test -z "$ac_cv_prog_RANLIB"; then
7338 ac_ct_RANLIB=$RANLIB
7339 # Extract the first word of "ranlib", so it can be a program name with args.
7340 set dummy ranlib; ac_word=$2
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7342 $as_echo_n "checking for $ac_word... " >&6; }
7343 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7344 $as_echo_n "(cached) " >&6
7346 if test -n "$ac_ct_RANLIB"; then
7347 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 test -z "$as_dir" && as_dir=.
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7356 ac_cv_prog_ac_ct_RANLIB="ranlib"
7357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7367 if test -n "$ac_ct_RANLIB"; then
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7369 $as_echo "$ac_ct_RANLIB" >&6; }
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372 $as_echo "no" >&6; }
7375 if test "x$ac_ct_RANLIB" = x; then
7378 case $cross_compiling:$ac_tool_warned in
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7382 ac_tool_warned=yes ;;
7384 RANLIB=$ac_ct_RANLIB
7387 RANLIB="$ac_cv_prog_RANLIB"
7390 test -z "$RANLIB" && RANLIB=:
7397 # Determine commands to create old-style static archives.
7398 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7399 old_postinstall_cmds='chmod 644 $oldlib'
7400 old_postuninstall_cmds=
7402 if test -n "$RANLIB"; then
7405 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7408 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7411 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7447 # If no C compiler was specified, use CC.
7450 # If no C compiler flags were specified, use CFLAGS.
7451 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7453 # Allow CC to be a program name with arguments.
7457 # Check for command to grab the raw symbol name followed by C symbol from nm.
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7459 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7460 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7461 $as_echo_n "(cached) " >&6
7464 # These are sane defaults that work on at least a few old systems.
7465 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7467 # Character class describing NM global symbol codes.
7468 symcode='[BCDEGRST]'
7470 # Regexp to match symbols that can be accessed directly from C.
7471 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7473 # Define system-specific variables.
7478 cygwin* | mingw* | pw32* | cegcc*)
7479 symcode='[ABCDGISTW]'
7482 if test "$host_cpu" = ia64; then
7483 symcode='[ABCDEGRST]'
7487 symcode='[BCDEGRST]'
7490 symcode='[BCDEGQRST]'
7501 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7509 # If we're using GNU nm, then use its standard symbol codes.
7510 case `$NM -V 2>&1` in
7511 *GNU* | *'with BFD'*)
7512 symcode='[ABCDGIRSTW]' ;;
7515 # Transform an extracted symbol line into a proper C declaration.
7516 # Some systems (esp. on ia64) link data and code symbols differently,
7517 # so use this general approach.
7518 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7520 # Transform an extracted symbol line into symbol name and symbol address
7521 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7522 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'"
7524 # Handle CRLF in mingw tool chain
7528 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7532 # Try without a prefix underscore, then with it.
7533 for ac_symprfx in "" "_"; do
7535 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7536 symxfrm="\\1 $ac_symprfx\\2 \\2"
7538 # Write the raw and C identifiers.
7539 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7540 # Fake it for dumpbin and say T for any non-static function
7541 # and D for any global variable.
7542 # Also find C++ and __fastcall symbols from MSVC++,
7543 # which start with @ or ?.
7544 lt_cv_sys_global_symbol_pipe="$AWK '"\
7545 " {last_section=section; section=\$ 3};"\
7546 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7547 " \$ 0!~/External *\|/{next};"\
7548 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7549 " {if(hide[section]) next};"\
7550 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7551 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7552 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7553 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7554 " ' prfx=^$ac_symprfx"
7556 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7559 # Check to see that the pipe works correctly.
7563 cat > conftest.$ac_ext <<_LT_EOF
7568 void nm_test_func(void);
7569 void nm_test_func(void){}
7573 int main(){nm_test_var='a';nm_test_func();return(0);}
7576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7577 (eval $ac_compile) 2>&5
7579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7580 test $ac_status = 0; }; then
7581 # Now try to grab the symbols.
7583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7584 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7587 test $ac_status = 0; } && test -s "$nlist"; then
7588 # Try sorting and uniquifying the output.
7589 if sort "$nlist" | uniq > "$nlist"T; then
7590 mv -f "$nlist"T "$nlist"
7595 # Make sure that we snagged all the symbols we need.
7596 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7597 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7598 cat <<_LT_EOF > conftest.$ac_ext
7604 # Now generate the symbol file.
7605 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7607 cat <<_LT_EOF >> conftest.$ac_ext
7609 /* The mapping between symbol names and symbols. */
7614 lt__PROGRAM__LTX_preloaded_symbols[] =
7616 { "@PROGRAM@", (void *) 0 },
7618 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7619 cat <<\_LT_EOF >> conftest.$ac_ext
7623 /* This works around a problem in FreeBSD linker */
7624 #ifdef FREEBSD_WORKAROUND
7625 static const void *lt_preloaded_setup() {
7626 return lt__PROGRAM__LTX_preloaded_symbols;
7634 # Now try linking the two files.
7635 mv conftest.$ac_objext conftstm.$ac_objext
7636 lt_save_LIBS="$LIBS"
7637 lt_save_CFLAGS="$CFLAGS"
7638 LIBS="conftstm.$ac_objext"
7639 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7641 (eval $ac_link) 2>&5
7643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7644 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7647 LIBS="$lt_save_LIBS"
7648 CFLAGS="$lt_save_CFLAGS"
7650 echo "cannot find nm_test_func in $nlist" >&5
7653 echo "cannot find nm_test_var in $nlist" >&5
7656 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7659 echo "$progname: failed program was:" >&5
7660 cat conftest.$ac_ext >&5
7662 rm -rf conftest* conftst*
7664 # Do not use the global_symbol_pipe unless it works.
7665 if test "$pipe_works" = yes; then
7668 lt_cv_sys_global_symbol_pipe=
7674 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7675 lt_cv_sys_global_symbol_to_cdecl=
7677 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7679 $as_echo "failed" >&6; }
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7682 $as_echo "ok" >&6; }
7706 # Check whether --enable-libtool-lock was given.
7707 if test "${enable_libtool_lock+set}" = set; then :
7708 enableval=$enable_libtool_lock;
7711 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7713 # Some flags need to be propagated to the compiler or linker for good
7717 # Find out which ABI we are using.
7718 echo 'int i;' > conftest.$ac_ext
7719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7720 (eval $ac_compile) 2>&5
7722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7723 test $ac_status = 0; }; then
7724 case `/usr/bin/file conftest.$ac_objext` in
7736 # Find out which ABI we are using.
7737 echo '#line 7737 "configure"' > conftest.$ac_ext
7738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7739 (eval $ac_compile) 2>&5
7741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7742 test $ac_status = 0; }; then
7743 if test "$lt_cv_prog_gnu_ld" = yes; then
7744 case `/usr/bin/file conftest.$ac_objext` in
7746 LD="${LD-ld} -melf32bsmip"
7749 LD="${LD-ld} -melf32bmipn32"
7752 LD="${LD-ld} -melf64bmip"
7756 case `/usr/bin/file conftest.$ac_objext` in
7772 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7773 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7774 # Find out which ABI we are using.
7775 echo 'int i;' > conftest.$ac_ext
7776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7777 (eval $ac_compile) 2>&5
7779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7780 test $ac_status = 0; }; then
7781 case `/usr/bin/file conftest.o` in
7784 x86_64-*kfreebsd*-gnu)
7785 LD="${LD-ld} -m elf_i386_fbsd"
7788 LD="${LD-ld} -m elf_i386"
7790 ppc64-*linux*|powerpc64-*linux*)
7791 LD="${LD-ld} -m elf32ppclinux"
7794 LD="${LD-ld} -m elf_s390"
7797 LD="${LD-ld} -m elf32_sparc"
7803 x86_64-*kfreebsd*-gnu)
7804 LD="${LD-ld} -m elf_x86_64_fbsd"
7807 LD="${LD-ld} -m elf_x86_64"
7809 ppc*-*linux*|powerpc*-*linux*)
7810 LD="${LD-ld} -m elf64ppc"
7812 s390*-*linux*|s390*-*tpf*)
7813 LD="${LD-ld} -m elf64_s390"
7816 LD="${LD-ld} -m elf64_sparc"
7826 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7827 SAVE_CFLAGS="$CFLAGS"
7828 CFLAGS="$CFLAGS -belf"
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7830 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7831 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7832 $as_echo_n "(cached) " >&6
7835 ac_cpp='$CPP $CPPFLAGS'
7836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841 /* end confdefs.h. */
7851 if ac_fn_c_try_link "$LINENO"; then :
7852 lt_cv_cc_needs_belf=yes
7854 lt_cv_cc_needs_belf=no
7856 rm -f core conftest.err conftest.$ac_objext \
7857 conftest$ac_exeext conftest.$ac_ext
7859 ac_cpp='$CPP $CPPFLAGS'
7860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7866 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7867 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7868 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7869 CFLAGS="$SAVE_CFLAGS"
7873 # Find out which ABI we are using.
7874 echo 'int i;' > conftest.$ac_ext
7875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7876 (eval $ac_compile) 2>&5
7878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7879 test $ac_status = 0; }; then
7880 case `/usr/bin/file conftest.o` in
7882 case $lt_cv_prog_gnu_ld in
7883 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7885 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7897 need_locks="$enable_libtool_lock"
7901 rhapsody* | darwin*)
7902 if test -n "$ac_tool_prefix"; then
7903 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7904 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906 $as_echo_n "checking for $ac_word... " >&6; }
7907 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7908 $as_echo_n "(cached) " >&6
7910 if test -n "$DSYMUTIL"; then
7911 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 test -z "$as_dir" && as_dir=.
7918 for ac_exec_ext in '' $ac_executable_extensions; do
7919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7920 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7931 if test -n "$DSYMUTIL"; then
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7933 $as_echo "$DSYMUTIL" >&6; }
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 $as_echo "no" >&6; }
7941 if test -z "$ac_cv_prog_DSYMUTIL"; then
7942 ac_ct_DSYMUTIL=$DSYMUTIL
7943 # Extract the first word of "dsymutil", so it can be a program name with args.
7944 set dummy dsymutil; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7948 $as_echo_n "(cached) " >&6
7950 if test -n "$ac_ct_DSYMUTIL"; then
7951 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7960 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7971 if test -n "$ac_ct_DSYMUTIL"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7973 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7979 if test "x$ac_ct_DSYMUTIL" = x; then
7982 case $cross_compiling:$ac_tool_warned in
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7986 ac_tool_warned=yes ;;
7988 DSYMUTIL=$ac_ct_DSYMUTIL
7991 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7994 if test -n "$ac_tool_prefix"; then
7995 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7996 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998 $as_echo_n "checking for $ac_word... " >&6; }
7999 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8000 $as_echo_n "(cached) " >&6
8002 if test -n "$NMEDIT"; then
8003 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 test -z "$as_dir" && as_dir=.
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8012 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8022 NMEDIT=$ac_cv_prog_NMEDIT
8023 if test -n "$NMEDIT"; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8025 $as_echo "$NMEDIT" >&6; }
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8033 if test -z "$ac_cv_prog_NMEDIT"; then
8034 ac_ct_NMEDIT=$NMEDIT
8035 # Extract the first word of "nmedit", so it can be a program name with args.
8036 set dummy nmedit; ac_word=$2
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038 $as_echo_n "checking for $ac_word... " >&6; }
8039 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8040 $as_echo_n "(cached) " >&6
8042 if test -n "$ac_ct_NMEDIT"; then
8043 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049 test -z "$as_dir" && as_dir=.
8050 for ac_exec_ext in '' $ac_executable_extensions; do
8051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8052 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8062 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8063 if test -n "$ac_ct_NMEDIT"; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8065 $as_echo "$ac_ct_NMEDIT" >&6; }
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068 $as_echo "no" >&6; }
8071 if test "x$ac_ct_NMEDIT" = x; then
8074 case $cross_compiling:$ac_tool_warned in
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8078 ac_tool_warned=yes ;;
8080 NMEDIT=$ac_ct_NMEDIT
8083 NMEDIT="$ac_cv_prog_NMEDIT"
8086 if test -n "$ac_tool_prefix"; then
8087 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8088 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090 $as_echo_n "checking for $ac_word... " >&6; }
8091 if test "${ac_cv_prog_LIPO+set}" = set; then :
8092 $as_echo_n "(cached) " >&6
8094 if test -n "$LIPO"; then
8095 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 test -z "$as_dir" && as_dir=.
8102 for ac_exec_ext in '' $ac_executable_extensions; do
8103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8104 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8114 LIPO=$ac_cv_prog_LIPO
8115 if test -n "$LIPO"; then
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8117 $as_echo "$LIPO" >&6; }
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8125 if test -z "$ac_cv_prog_LIPO"; then
8127 # Extract the first word of "lipo", so it can be a program name with args.
8128 set dummy lipo; ac_word=$2
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130 $as_echo_n "checking for $ac_word... " >&6; }
8131 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8132 $as_echo_n "(cached) " >&6
8134 if test -n "$ac_ct_LIPO"; then
8135 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 test -z "$as_dir" && as_dir=.
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8144 ac_cv_prog_ac_ct_LIPO="lipo"
8145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8154 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8155 if test -n "$ac_ct_LIPO"; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8157 $as_echo "$ac_ct_LIPO" >&6; }
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8163 if test "x$ac_ct_LIPO" = x; then
8166 case $cross_compiling:$ac_tool_warned in
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8170 ac_tool_warned=yes ;;
8175 LIPO="$ac_cv_prog_LIPO"
8178 if test -n "$ac_tool_prefix"; then
8179 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8180 set dummy ${ac_tool_prefix}otool; ac_word=$2
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8182 $as_echo_n "checking for $ac_word... " >&6; }
8183 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8184 $as_echo_n "(cached) " >&6
8186 if test -n "$OTOOL"; then
8187 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 test -z "$as_dir" && as_dir=.
8194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8196 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8206 OTOOL=$ac_cv_prog_OTOOL
8207 if test -n "$OTOOL"; then
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8209 $as_echo "$OTOOL" >&6; }
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212 $as_echo "no" >&6; }
8217 if test -z "$ac_cv_prog_OTOOL"; then
8219 # Extract the first word of "otool", so it can be a program name with args.
8220 set dummy otool; ac_word=$2
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222 $as_echo_n "checking for $ac_word... " >&6; }
8223 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8224 $as_echo_n "(cached) " >&6
8226 if test -n "$ac_ct_OTOOL"; then
8227 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 test -z "$as_dir" && as_dir=.
8234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8236 ac_cv_prog_ac_ct_OTOOL="otool"
8237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8246 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8247 if test -n "$ac_ct_OTOOL"; then
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8249 $as_echo "$ac_ct_OTOOL" >&6; }
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252 $as_echo "no" >&6; }
8255 if test "x$ac_ct_OTOOL" = x; then
8258 case $cross_compiling:$ac_tool_warned in
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8262 ac_tool_warned=yes ;;
8267 OTOOL="$ac_cv_prog_OTOOL"
8270 if test -n "$ac_tool_prefix"; then
8271 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8272 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274 $as_echo_n "checking for $ac_word... " >&6; }
8275 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8278 if test -n "$OTOOL64"; then
8279 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8288 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8298 OTOOL64=$ac_cv_prog_OTOOL64
8299 if test -n "$OTOOL64"; then
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8301 $as_echo "$OTOOL64" >&6; }
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 $as_echo "no" >&6; }
8309 if test -z "$ac_cv_prog_OTOOL64"; then
8310 ac_ct_OTOOL64=$OTOOL64
8311 # Extract the first word of "otool64", so it can be a program name with args.
8312 set dummy otool64; ac_word=$2
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8314 $as_echo_n "checking for $ac_word... " >&6; }
8315 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8316 $as_echo_n "(cached) " >&6
8318 if test -n "$ac_ct_OTOOL64"; then
8319 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 test -z "$as_dir" && as_dir=.
8326 for ac_exec_ext in '' $ac_executable_extensions; do
8327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8328 ac_cv_prog_ac_ct_OTOOL64="otool64"
8329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8338 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8339 if test -n "$ac_ct_OTOOL64"; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8341 $as_echo "$ac_ct_OTOOL64" >&6; }
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 $as_echo "no" >&6; }
8347 if test "x$ac_ct_OTOOL64" = x; then
8350 case $cross_compiling:$ac_tool_warned in
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8354 ac_tool_warned=yes ;;
8356 OTOOL64=$ac_ct_OTOOL64
8359 OTOOL64="$ac_cv_prog_OTOOL64"
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8389 $as_echo_n "checking for -single_module linker flag... " >&6; }
8390 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8391 $as_echo_n "(cached) " >&6
8393 lt_cv_apple_cc_single_mod=no
8394 if test -z "${LT_MULTI_MODULE}"; then
8395 # By default we will add the -single_module flag. You can override
8396 # by either setting the environment variable LT_MULTI_MODULE
8397 # non-empty at configure time, or by adding -multi_module to the
8399 rm -rf libconftest.dylib*
8400 echo "int foo(void){return 1;}" > conftest.c
8401 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8402 -dynamiclib -Wl,-single_module conftest.c" >&5
8403 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8404 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8406 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8407 lt_cv_apple_cc_single_mod=yes
8409 cat conftest.err >&5
8411 rm -rf libconftest.dylib*
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8416 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8418 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8419 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8420 $as_echo_n "(cached) " >&6
8422 lt_cv_ld_exported_symbols_list=no
8423 save_LDFLAGS=$LDFLAGS
8424 echo "_main" > conftest.sym
8425 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8437 if ac_fn_c_try_link "$LINENO"; then :
8438 lt_cv_ld_exported_symbols_list=yes
8440 lt_cv_ld_exported_symbols_list=no
8442 rm -f core conftest.err conftest.$ac_objext \
8443 conftest$ac_exeext conftest.$ac_ext
8444 LDFLAGS="$save_LDFLAGS"
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8448 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8450 rhapsody* | darwin1.[012])
8451 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8453 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8454 darwin*) # darwin 5.x on
8455 # if running on 10.5 or later, the deployment target defaults
8456 # to the OS version, if on x86, and 10.4, the deployment
8457 # target defaults to 10.4. Don't you love it?
8458 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8459 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8460 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8462 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8464 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8468 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8469 _lt_dar_single_mod='$single_module'
8471 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8472 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8474 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8476 if test "$DSYMUTIL" != ":"; then
8477 _lt_dsymutil='~$DSYMUTIL $lib || :'
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8485 $as_echo_n "checking for ANSI C header files... " >&6; }
8486 if test "${ac_cv_header_stdc+set}" = set; then :
8487 $as_echo_n "(cached) " >&6
8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490 /* end confdefs.h. */
8504 if ac_fn_c_try_compile "$LINENO"; then :
8505 ac_cv_header_stdc=yes
8507 ac_cv_header_stdc=no
8509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8511 if test $ac_cv_header_stdc = yes; then
8512 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h. */
8518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8519 $EGREP "memchr" >/dev/null 2>&1; then :
8522 ac_cv_header_stdc=no
8528 if test $ac_cv_header_stdc = yes; then
8529 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531 /* end confdefs.h. */
8535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8536 $EGREP "free" >/dev/null 2>&1; then :
8539 ac_cv_header_stdc=no
8545 if test $ac_cv_header_stdc = yes; then
8546 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8547 if test "$cross_compiling" = yes; then :
8550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h. */
8554 #if ((' ' & 0x0FF) == 0x020)
8555 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8556 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8558 # define ISLOWER(c) \
8559 (('a' <= (c) && (c) <= 'i') \
8560 || ('j' <= (c) && (c) <= 'r') \
8561 || ('s' <= (c) && (c) <= 'z'))
8562 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8565 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8570 for (i = 0; i < 256; i++)
8571 if (XOR (islower (i), ISLOWER (i))
8572 || toupper (i) != TOUPPER (i))
8577 if ac_fn_c_try_run "$LINENO"; then :
8580 ac_cv_header_stdc=no
8582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8583 conftest.$ac_objext conftest.beam conftest.$ac_ext
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8589 $as_echo "$ac_cv_header_stdc" >&6; }
8590 if test $ac_cv_header_stdc = yes; then
8592 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8596 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8597 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8598 inttypes.h stdint.h unistd.h
8600 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8601 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8603 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8604 cat >>confdefs.h <<_ACEOF
8605 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8613 for ac_header in dlfcn.h
8615 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8617 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8618 cat >>confdefs.h <<_ACEOF
8619 #define HAVE_DLFCN_H 1
8629 ac_cpp='$CXXCPP $CPPFLAGS'
8630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8633 if test -z "$CXX"; then
8634 if test -n "$CCC"; then
8637 if test -n "$ac_tool_prefix"; then
8638 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8643 $as_echo_n "checking for $ac_word... " >&6; }
8644 if test "${ac_cv_prog_CXX+set}" = set; then :
8645 $as_echo_n "(cached) " >&6
8647 if test -n "$CXX"; then
8648 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654 test -z "$as_dir" && as_dir=.
8655 for ac_exec_ext in '' $ac_executable_extensions; do
8656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8657 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8668 if test -n "$CXX"; then
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8670 $as_echo "$CXX" >&6; }
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8673 $as_echo "no" >&6; }
8677 test -n "$CXX" && break
8680 if test -z "$CXX"; then
8682 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8684 # Extract the first word of "$ac_prog", so it can be a program name with args.
8685 set dummy $ac_prog; ac_word=$2
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8687 $as_echo_n "checking for $ac_word... " >&6; }
8688 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8689 $as_echo_n "(cached) " >&6
8691 if test -n "$ac_ct_CXX"; then
8692 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698 test -z "$as_dir" && as_dir=.
8699 for ac_exec_ext in '' $ac_executable_extensions; do
8700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8701 ac_cv_prog_ac_ct_CXX="$ac_prog"
8702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8711 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8712 if test -n "$ac_ct_CXX"; then
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8714 $as_echo "$ac_ct_CXX" >&6; }
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717 $as_echo "no" >&6; }
8721 test -n "$ac_ct_CXX" && break
8724 if test "x$ac_ct_CXX" = x; then
8727 case $cross_compiling:$ac_tool_warned in
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8731 ac_tool_warned=yes ;;
8739 # Provide some information about the compiler.
8740 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8743 for ac_option in --version -v -V -qversion; do
8744 { { ac_try="$ac_compiler $ac_option >&5"
8746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8747 *) ac_try_echo=$ac_try;;
8749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8750 $as_echo "$ac_try_echo"; } >&5
8751 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8753 if test -s conftest.err; then
8755 ... rest of stderr output deleted ...
8756 10q' conftest.err >conftest.er1
8757 cat conftest.er1 >&5
8759 rm -f conftest.er1 conftest.err
8760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8761 test $ac_status = 0; }
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8765 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8766 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8767 $as_echo_n "(cached) " >&6
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8783 if ac_fn_cxx_try_compile "$LINENO"; then :
8788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8789 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8793 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8794 if test $ac_compiler_gnu = yes; then
8799 ac_test_CXXFLAGS=${CXXFLAGS+set}
8800 ac_save_CXXFLAGS=$CXXFLAGS
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8802 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8803 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8804 $as_echo_n "(cached) " >&6
8806 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8807 ac_cxx_werror_flag=yes
8810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811 /* end confdefs.h. */
8821 if ac_fn_cxx_try_compile "$LINENO"; then :
8822 ac_cv_prog_cxx_g=yes
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8836 if ac_fn_cxx_try_compile "$LINENO"; then :
8839 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h. */
8852 if ac_fn_cxx_try_compile "$LINENO"; then :
8853 ac_cv_prog_cxx_g=yes
8855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8860 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8863 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8864 if test "$ac_test_CXXFLAGS" = set; then
8865 CXXFLAGS=$ac_save_CXXFLAGS
8866 elif test $ac_cv_prog_cxx_g = yes; then
8867 if test "$GXX" = yes; then
8873 if test "$GXX" = yes; then
8880 ac_cpp='$CPP $CPPFLAGS'
8881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8885 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8886 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8887 (test "X$CXX" != "Xg++"))) ; then
8889 ac_cpp='$CXXCPP $CPPFLAGS'
8890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8894 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8895 if test -z "$CXXCPP"; then
8896 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8897 $as_echo_n "(cached) " >&6
8899 # Double quotes because CXXCPP needs to be expanded
8900 for CXXCPP in "$CXX -E" "/lib/cpp"
8903 for ac_cxx_preproc_warn_flag in '' yes
8905 # Use a header file that comes with gcc, so configuring glibc
8906 # with a fresh cross-compiler works.
8907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8908 # <limits.h> exists even on freestanding compilers.
8909 # On the NeXT, cc -E runs the code through the compiler's parser,
8910 # not just through cpp. "Syntax error" is here to catch this case.
8911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h. */
8914 # include <limits.h>
8916 # include <assert.h>
8920 if ac_fn_cxx_try_cpp "$LINENO"; then :
8923 # Broken: fails on valid input.
8926 rm -f conftest.err conftest.$ac_ext
8928 # OK, works on sane cases. Now check whether nonexistent headers
8929 # can be detected and how.
8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8932 #include <ac_nonexistent.h>
8934 if ac_fn_cxx_try_cpp "$LINENO"; then :
8935 # Broken: success on invalid input.
8938 # Passes both tests.
8942 rm -f conftest.err conftest.$ac_ext
8945 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8946 rm -f conftest.err conftest.$ac_ext
8947 if $ac_preproc_ok; then :
8952 ac_cv_prog_CXXCPP=$CXXCPP
8955 CXXCPP=$ac_cv_prog_CXXCPP
8957 ac_cv_prog_CXXCPP=$CXXCPP
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8960 $as_echo "$CXXCPP" >&6; }
8962 for ac_cxx_preproc_warn_flag in '' yes
8964 # Use a header file that comes with gcc, so configuring glibc
8965 # with a fresh cross-compiler works.
8966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8967 # <limits.h> exists even on freestanding compilers.
8968 # On the NeXT, cc -E runs the code through the compiler's parser,
8969 # not just through cpp. "Syntax error" is here to catch this case.
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8973 # include <limits.h>
8975 # include <assert.h>
8979 if ac_fn_cxx_try_cpp "$LINENO"; then :
8982 # Broken: fails on valid input.
8985 rm -f conftest.err conftest.$ac_ext
8987 # OK, works on sane cases. Now check whether nonexistent headers
8988 # can be detected and how.
8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990 /* end confdefs.h. */
8991 #include <ac_nonexistent.h>
8993 if ac_fn_cxx_try_cpp "$LINENO"; then :
8994 # Broken: success on invalid input.
8997 # Passes both tests.
9001 rm -f conftest.err conftest.$ac_ext
9004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9005 rm -f conftest.err conftest.$ac_ext
9006 if $ac_preproc_ok; then :
9009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9011 _lt_caught_CXX_error=yes; }
9015 ac_cpp='$CPP $CPPFLAGS'
9016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9021 _lt_caught_CXX_error=yes
9029 # Check whether --enable-shared was given.
9030 if test "${enable_shared+set}" = set; then :
9031 enableval=$enable_shared; p=${PACKAGE-default}
9033 yes) enable_shared=yes ;;
9034 no) enable_shared=no ;;
9037 # Look at the argument we got. We use all the common list separators.
9038 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9039 for pkg in $enableval; do
9041 if test "X$pkg" = "X$p"; then
9058 # Check whether --enable-static was given.
9059 if test "${enable_static+set}" = set; then :
9060 enableval=$enable_static; p=${PACKAGE-default}
9062 yes) enable_static=yes ;;
9063 no) enable_static=no ;;
9066 # Look at the argument we got. We use all the common list separators.
9067 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9068 for pkg in $enableval; do
9070 if test "X$pkg" = "X$p"; then
9099 # Check whether --with-pic was given.
9100 if test "${with_pic+set}" = set; then :
9101 withval=$with_pic; pic_mode="$withval"
9107 test -z "$pic_mode" && pic_mode=default
9115 # Check whether --enable-fast-install was given.
9116 if test "${enable_fast_install+set}" = set; then :
9117 enableval=$enable_fast_install; p=${PACKAGE-default}
9119 yes) enable_fast_install=yes ;;
9120 no) enable_fast_install=no ;;
9122 enable_fast_install=no
9123 # Look at the argument we got. We use all the common list separators.
9124 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9125 for pkg in $enableval; do
9127 if test "X$pkg" = "X$p"; then
9128 enable_fast_install=yes
9135 enable_fast_install=yes
9148 # This can be used to rebuild libtool when needed
9149 LIBTOOL_DEPS="$ltmain"
9151 # Always use our own libtool.
9152 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9178 test -z "$LN_S" && LN_S="ln -s"
9193 if test -n "${ZSH_VERSION+set}" ; then
9194 setopt NO_GLOB_SUBST
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9198 $as_echo_n "checking for objdir... " >&6; }
9199 if test "${lt_cv_objdir+set}" = set; then :
9200 $as_echo_n "(cached) " >&6
9202 rm -f .libs 2>/dev/null
9203 mkdir .libs 2>/dev/null
9204 if test -d .libs; then
9207 # MS-DOS does not allow filenames that begin with a dot.
9210 rmdir .libs 2>/dev/null
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9213 $as_echo "$lt_cv_objdir" >&6; }
9214 objdir=$lt_cv_objdir
9220 cat >>confdefs.h <<_ACEOF
9221 #define LT_OBJDIR "$lt_cv_objdir/"
9242 # AIX sometimes has problems with the GCC collect2 program. For some
9243 # reason, if we set the COLLECT_NAMES environment variable, the problems
9244 # vanish in a puff of smoke.
9245 if test "X${COLLECT_NAMES+set}" != Xset; then
9247 export COLLECT_NAMES
9252 # Sed substitution that helps us do robust quoting. It backslashifies
9253 # metacharacters that are still active within double-quoted strings.
9254 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9256 # Same as above, but do not quote variable references.
9257 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9259 # Sed substitution to delay expansion of an escaped shell variable in a
9260 # double_quote_subst'ed string.
9261 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9263 # Sed substitution to delay expansion of an escaped single quote.
9264 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9266 # Sed substitution to avoid accidental globbing in evaled expressions
9267 no_glob_subst='s/\*/\\\*/g'
9271 can_build_shared=yes
9273 # All known linkers require a `.a' archive for static linking (except MSVC,
9274 # which needs '.lib').
9277 with_gnu_ld="$lt_cv_prog_gnu_ld"
9280 old_CFLAGS="$CFLAGS"
9282 # Set sane defaults for various variables
9283 test -z "$CC" && CC=cc
9284 test -z "$LTCC" && LTCC=$CC
9285 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9286 test -z "$LD" && LD=ld
9287 test -z "$ac_objext" && ac_objext=o
9289 for cc_temp in $compiler""; do
9291 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9292 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9297 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9300 # Only perform the check for file, if the check method requires it
9301 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9302 case $deplibs_check_method in
9304 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9306 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9307 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9308 $as_echo_n "(cached) " >&6
9312 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9315 lt_save_MAGIC_CMD="$MAGIC_CMD"
9316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9317 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9318 for ac_dir in $ac_dummy; do
9320 test -z "$ac_dir" && ac_dir=.
9321 if test -f $ac_dir/${ac_tool_prefix}file; then
9322 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9323 if test -n "$file_magic_test_file"; then
9324 case $deplibs_check_method in
9326 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9327 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9328 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9329 $EGREP "$file_magic_regex" > /dev/null; then
9334 *** Warning: the command libtool uses to detect shared libraries,
9335 *** $file_magic_cmd, produces output that libtool cannot recognize.
9336 *** The result is that libtool may fail to recognize shared libraries
9337 *** as such. This will affect the creation of libtool libraries that
9338 *** depend on shared libraries, but programs linked with such libtool
9339 *** libraries will work regardless of this problem. Nevertheless, you
9340 *** may want to report the problem to your system manager and/or to
9341 *** bug-libtool@gnu.org
9351 MAGIC_CMD="$lt_save_MAGIC_CMD"
9356 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9357 if test -n "$MAGIC_CMD"; then
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9359 $as_echo "$MAGIC_CMD" >&6; }
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362 $as_echo "no" >&6; }
9369 if test -z "$lt_cv_path_MAGIC_CMD"; then
9370 if test -n "$ac_tool_prefix"; then
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9372 $as_echo_n "checking for file... " >&6; }
9373 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9374 $as_echo_n "(cached) " >&6
9378 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9381 lt_save_MAGIC_CMD="$MAGIC_CMD"
9382 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9383 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9384 for ac_dir in $ac_dummy; do
9386 test -z "$ac_dir" && ac_dir=.
9387 if test -f $ac_dir/file; then
9388 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9389 if test -n "$file_magic_test_file"; then
9390 case $deplibs_check_method in
9392 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9394 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9395 $EGREP "$file_magic_regex" > /dev/null; then
9400 *** Warning: the command libtool uses to detect shared libraries,
9401 *** $file_magic_cmd, produces output that libtool cannot recognize.
9402 *** The result is that libtool may fail to recognize shared libraries
9403 *** as such. This will affect the creation of libtool libraries that
9404 *** depend on shared libraries, but programs linked with such libtool
9405 *** libraries will work regardless of this problem. Nevertheless, you
9406 *** may want to report the problem to your system manager and/or to
9407 *** bug-libtool@gnu.org
9417 MAGIC_CMD="$lt_save_MAGIC_CMD"
9422 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9423 if test -n "$MAGIC_CMD"; then
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9425 $as_echo "$MAGIC_CMD" >&6; }
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9428 $as_echo "no" >&6; }
9441 # Use C for the default configuration in the libtool script
9445 ac_cpp='$CPP $CPPFLAGS'
9446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9451 # Source file extension for C test sources.
9454 # Object file extension for compiled C test sources.
9458 # Code to be used in simple compile tests
9459 lt_simple_compile_test_code="int some_variable = 0;"
9461 # Code to be used in simple link tests
9462 lt_simple_link_test_code='int main(){return(0);}'
9470 # If no C compiler was specified, use CC.
9473 # If no C compiler flags were specified, use CFLAGS.
9474 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9476 # Allow CC to be a program name with arguments.
9479 # Save the default compiler, since it gets overwritten when the other
9480 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9481 compiler_DEFAULT=$CC
9483 # save warnings/boilerplate of simple test code
9484 ac_outfile=conftest.$ac_objext
9485 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9486 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9487 _lt_compiler_boilerplate=`cat conftest.err`
9490 ac_outfile=conftest.$ac_objext
9491 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9492 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9493 _lt_linker_boilerplate=`cat conftest.err`
9498 ## There is no encapsulation within the following macros, do not change
9499 ## the running order or otherwise move them around unless you know exactly
9500 ## what you are doing...
9501 if test -n "$compiler"; then
9503 lt_prog_compiler_no_builtin_flag=
9505 if test "$GCC" = yes; then
9506 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9509 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9510 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9511 $as_echo_n "(cached) " >&6
9513 lt_cv_prog_compiler_rtti_exceptions=no
9514 ac_outfile=conftest.$ac_objext
9515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9516 lt_compiler_flag="-fno-rtti -fno-exceptions"
9517 # Insert the option either (1) after the last *FLAGS variable, or
9518 # (2) before a word containing "conftest.", or (3) at the end.
9519 # Note that $ac_compile itself does not contain backslashes and begins
9520 # with a dollar sign (not a hyphen), so the echo should work correctly.
9521 # The option is referenced via a variable to avoid confusing sed.
9522 lt_compile=`echo "$ac_compile" | $SED \
9523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9525 -e 's:$: $lt_compiler_flag:'`
9526 (eval echo "\"\$as_me:9526: $lt_compile\"" >&5)
9527 (eval "$lt_compile" 2>conftest.err)
9529 cat conftest.err >&5
9530 echo "$as_me:9530: \$? = $ac_status" >&5
9531 if (exit $ac_status) && test -s "$ac_outfile"; then
9532 # The compiler can only warn and ignore the option if not recognized
9533 # So say no if there are warnings other than the usual output.
9534 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9536 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9537 lt_cv_prog_compiler_rtti_exceptions=yes
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9544 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9546 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9547 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9559 lt_prog_compiler_wl=
9560 lt_prog_compiler_pic=
9561 lt_prog_compiler_static=
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9564 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9566 if test "$GCC" = yes; then
9567 lt_prog_compiler_wl='-Wl,'
9568 lt_prog_compiler_static='-static'
9572 # All AIX code is PIC.
9573 if test "$host_cpu" = ia64; then
9574 # AIX 5 now supports IA64 processor
9575 lt_prog_compiler_static='-Bstatic'
9582 # see comment about AmigaOS4 .so support
9583 lt_prog_compiler_pic='-fPIC'
9586 # FIXME: we need at least 68020 code to build shared libraries, but
9587 # adding the `-m68020' flag to GCC prevents building anything better,
9589 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9594 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9595 # PIC is the default for these OSes.
9598 mingw* | cygwin* | pw32* | os2* | cegcc*)
9599 # This hack is so that the source file can tell whether it is being
9600 # built for inclusion in a dll (and should export symbols for example).
9601 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9602 # (--disable-auto-import) libraries
9603 lt_prog_compiler_pic='-DDLL_EXPORT'
9606 darwin* | rhapsody*)
9607 # PIC is the default on this platform
9608 # Common symbols not allowed in MH_DYLIB files
9609 lt_prog_compiler_pic='-fno-common'
9613 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9614 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9615 # sets the default TLS model and affects inlining.
9621 lt_prog_compiler_pic='-fPIC'
9627 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9628 # Instead, we relocate shared libraries at runtime.
9632 # Just because we use GCC doesn't mean we suddenly get shared libraries
9633 # on systems that don't support them.
9634 lt_prog_compiler_can_build_shared=no
9639 # QNX uses GNU C++, but need to define -shared option too, otherwise
9641 lt_prog_compiler_pic='-fPIC -shared'
9645 if test -d /usr/nec; then
9646 lt_prog_compiler_pic=-Kconform_pic
9651 lt_prog_compiler_pic='-fPIC'
9655 # PORTME Check for flag to pass linker flags through the system compiler.
9658 lt_prog_compiler_wl='-Wl,'
9659 if test "$host_cpu" = ia64; then
9660 # AIX 5 now supports IA64 processor
9661 lt_prog_compiler_static='-Bstatic'
9663 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9667 mingw* | cygwin* | pw32* | os2* | cegcc*)
9668 # This hack is so that the source file can tell whether it is being
9669 # built for inclusion in a dll (and should export symbols for example).
9670 lt_prog_compiler_pic='-DDLL_EXPORT'
9673 hpux9* | hpux10* | hpux11*)
9674 lt_prog_compiler_wl='-Wl,'
9675 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9682 lt_prog_compiler_pic='+Z'
9685 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9686 lt_prog_compiler_static='${wl}-a ${wl}archive'
9689 irix5* | irix6* | nonstopux*)
9690 lt_prog_compiler_wl='-Wl,'
9691 # PIC (with -KPIC) is the default.
9692 lt_prog_compiler_static='-non_shared'
9695 linux* | k*bsd*-gnu)
9696 case $cc_basename in
9697 # old Intel for x86_64 which still supported -KPIC.
9699 lt_prog_compiler_wl='-Wl,'
9700 lt_prog_compiler_pic='-KPIC'
9701 lt_prog_compiler_static='-static'
9703 # icc used to be incompatible with GCC.
9704 # ICC 10 doesn't accept -KPIC any more.
9706 lt_prog_compiler_wl='-Wl,'
9707 lt_prog_compiler_pic='-fPIC'
9708 lt_prog_compiler_static='-static'
9710 # Lahey Fortran 8.1.
9712 lt_prog_compiler_wl='-Wl,'
9713 lt_prog_compiler_pic='--shared'
9714 lt_prog_compiler_static='--static'
9716 pgcc* | pgf77* | pgf90* | pgf95*)
9717 # Portland Group compilers (*not* the Pentium gcc compiler,
9718 # which looks to be a dead project)
9719 lt_prog_compiler_wl='-Wl,'
9720 lt_prog_compiler_pic='-fpic'
9721 lt_prog_compiler_static='-Bstatic'
9724 lt_prog_compiler_wl='-Wl,'
9725 # All Alpha code is PIC.
9726 lt_prog_compiler_static='-non_shared'
9729 # IBM XL C 8.0/Fortran 10.1 on PPC
9730 lt_prog_compiler_wl='-Wl,'
9731 lt_prog_compiler_pic='-qpic'
9732 lt_prog_compiler_static='-qstaticlink'
9735 case `$CC -V 2>&1 | sed 5q` in
9738 lt_prog_compiler_pic='-KPIC'
9739 lt_prog_compiler_static='-Bstatic'
9740 lt_prog_compiler_wl='-Wl,'
9743 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9744 lt_prog_compiler_pic='-KPIC'
9745 lt_prog_compiler_static='-Bstatic'
9746 lt_prog_compiler_wl=''
9754 lt_prog_compiler_pic='-KPIC'
9755 lt_prog_compiler_static='-Bstatic'
9759 # QNX uses GNU C++, but need to define -shared option too, otherwise
9761 lt_prog_compiler_pic='-fPIC -shared'
9764 osf3* | osf4* | osf5*)
9765 lt_prog_compiler_wl='-Wl,'
9766 # All OSF/1 code is PIC.
9767 lt_prog_compiler_static='-non_shared'
9771 lt_prog_compiler_static='-non_shared'
9775 lt_prog_compiler_pic='-KPIC'
9776 lt_prog_compiler_static='-Bstatic'
9777 case $cc_basename in
9779 lt_prog_compiler_wl='-Qoption ld ';;
9781 lt_prog_compiler_wl='-Wl,';;
9786 lt_prog_compiler_wl='-Qoption ld '
9787 lt_prog_compiler_pic='-PIC'
9788 lt_prog_compiler_static='-Bstatic'
9791 sysv4 | sysv4.2uw2* | sysv4.3*)
9792 lt_prog_compiler_wl='-Wl,'
9793 lt_prog_compiler_pic='-KPIC'
9794 lt_prog_compiler_static='-Bstatic'
9798 if test -d /usr/nec ;then
9799 lt_prog_compiler_pic='-Kconform_pic'
9800 lt_prog_compiler_static='-Bstatic'
9804 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9805 lt_prog_compiler_wl='-Wl,'
9806 lt_prog_compiler_pic='-KPIC'
9807 lt_prog_compiler_static='-Bstatic'
9811 lt_prog_compiler_wl='-Wl,'
9812 lt_prog_compiler_can_build_shared=no
9816 lt_prog_compiler_pic='-pic'
9817 lt_prog_compiler_static='-Bstatic'
9821 lt_prog_compiler_can_build_shared=no
9827 # For platforms which do not support PIC, -DPIC is meaningless:
9829 lt_prog_compiler_pic=
9832 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9836 $as_echo "$lt_prog_compiler_pic" >&6; }
9844 # Check to make sure the PIC flag actually works.
9846 if test -n "$lt_prog_compiler_pic"; then
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9848 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9849 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9850 $as_echo_n "(cached) " >&6
9852 lt_cv_prog_compiler_pic_works=no
9853 ac_outfile=conftest.$ac_objext
9854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9855 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9856 # Insert the option either (1) after the last *FLAGS variable, or
9857 # (2) before a word containing "conftest.", or (3) at the end.
9858 # Note that $ac_compile itself does not contain backslashes and begins
9859 # with a dollar sign (not a hyphen), so the echo should work correctly.
9860 # The option is referenced via a variable to avoid confusing sed.
9861 lt_compile=`echo "$ac_compile" | $SED \
9862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9864 -e 's:$: $lt_compiler_flag:'`
9865 (eval echo "\"\$as_me:9865: $lt_compile\"" >&5)
9866 (eval "$lt_compile" 2>conftest.err)
9868 cat conftest.err >&5
9869 echo "$as_me:9869: \$? = $ac_status" >&5
9870 if (exit $ac_status) && test -s "$ac_outfile"; then
9871 # The compiler can only warn and ignore the option if not recognized
9872 # So say no if there are warnings other than the usual output.
9873 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9874 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9875 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9876 lt_cv_prog_compiler_pic_works=yes
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9883 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9885 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9886 case $lt_prog_compiler_pic in
9888 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9891 lt_prog_compiler_pic=
9892 lt_prog_compiler_can_build_shared=no
9903 # Check to make sure the static flag actually works.
9905 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9907 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9908 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9909 $as_echo_n "(cached) " >&6
9911 lt_cv_prog_compiler_static_works=no
9912 save_LDFLAGS="$LDFLAGS"
9913 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9914 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9915 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9916 # The linker can only warn and ignore the option if not recognized
9917 # So say no if there are warnings
9918 if test -s conftest.err; then
9919 # Append any errors to the config.log.
9920 cat conftest.err 1>&5
9921 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9922 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9923 if diff conftest.exp conftest.er2 >/dev/null; then
9924 lt_cv_prog_compiler_static_works=yes
9927 lt_cv_prog_compiler_static_works=yes
9931 LDFLAGS="$save_LDFLAGS"
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9935 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9937 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9940 lt_prog_compiler_static=
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9950 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9951 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9952 $as_echo_n "(cached) " >&6
9954 lt_cv_prog_compiler_c_o=no
9955 $RM -r conftest 2>/dev/null
9959 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9961 lt_compiler_flag="-o out/conftest2.$ac_objext"
9962 # Insert the option either (1) after the last *FLAGS variable, or
9963 # (2) before a word containing "conftest.", or (3) at the end.
9964 # Note that $ac_compile itself does not contain backslashes and begins
9965 # with a dollar sign (not a hyphen), so the echo should work correctly.
9966 lt_compile=`echo "$ac_compile" | $SED \
9967 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9969 -e 's:$: $lt_compiler_flag:'`
9970 (eval echo "\"\$as_me:9970: $lt_compile\"" >&5)
9971 (eval "$lt_compile" 2>out/conftest.err)
9973 cat out/conftest.err >&5
9974 echo "$as_me:9974: \$? = $ac_status" >&5
9975 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9977 # The compiler can only warn and ignore the option if not recognized
9978 # So say no if there are warnings
9979 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9980 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9981 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9982 lt_cv_prog_compiler_c_o=yes
9987 # SGI C++ compiler will create directory out/ii_files/ for
9988 # template instantiation
9989 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9990 $RM out/* && rmdir out
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9997 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10005 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10006 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10007 $as_echo_n "(cached) " >&6
10009 lt_cv_prog_compiler_c_o=no
10010 $RM -r conftest 2>/dev/null
10014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10016 lt_compiler_flag="-o out/conftest2.$ac_objext"
10017 # Insert the option either (1) after the last *FLAGS variable, or
10018 # (2) before a word containing "conftest.", or (3) at the end.
10019 # Note that $ac_compile itself does not contain backslashes and begins
10020 # with a dollar sign (not a hyphen), so the echo should work correctly.
10021 lt_compile=`echo "$ac_compile" | $SED \
10022 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10024 -e 's:$: $lt_compiler_flag:'`
10025 (eval echo "\"\$as_me:10025: $lt_compile\"" >&5)
10026 (eval "$lt_compile" 2>out/conftest.err)
10028 cat out/conftest.err >&5
10029 echo "$as_me:10029: \$? = $ac_status" >&5
10030 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10032 # The compiler can only warn and ignore the option if not recognized
10033 # So say no if there are warnings
10034 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10035 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10036 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10037 lt_cv_prog_compiler_c_o=yes
10042 # SGI C++ compiler will create directory out/ii_files/ for
10043 # template instantiation
10044 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10045 $RM out/* && rmdir out
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10052 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10057 hard_links="nottested"
10058 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10059 # do not overwrite the value of need_locks provided by the user
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10061 $as_echo_n "checking if we can lock with hard links... " >&6; }
10064 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10066 ln conftest.a conftest.b 2>&5 || hard_links=no
10067 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10069 $as_echo "$hard_links" >&6; }
10070 if test "$hard_links" = no; then
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10072 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10085 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10088 allow_undefined_flag=
10089 always_export_symbols=no
10091 archive_expsym_cmds=
10092 compiler_needs_object=no
10093 enable_shared_with_static_runtimes=no
10094 export_dynamic_flag_spec=
10095 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10096 hardcode_automatic=no
10098 hardcode_direct_absolute=no
10099 hardcode_libdir_flag_spec=
10100 hardcode_libdir_flag_spec_ld=
10101 hardcode_libdir_separator=
10102 hardcode_minus_L=no
10103 hardcode_shlibpath_var=unsupported
10105 link_all_deplibs=unknown
10107 module_expsym_cmds=
10108 old_archive_from_new_cmds=
10109 old_archive_from_expsyms_cmds=
10110 thread_safe_flag_spec=
10111 whole_archive_flag_spec=
10112 # include_expsyms should be a list of space-separated symbols to be *always*
10113 # included in the symbol list
10115 # exclude_expsyms can be an extended regexp of symbols to exclude
10116 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10117 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10118 # as well as any symbol that contains `d'.
10119 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10120 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10121 # platforms (ab)use it in PIC code, but their linkers get confused if
10122 # the symbol is explicitly referenced. Since portable code cannot
10123 # rely on this symbol name, it's probably fine to never include it in
10124 # preloaded symbol tables.
10125 # Exclude shared library initialization/finalization symbols.
10126 extract_expsyms_cmds=
10129 cygwin* | mingw* | pw32* | cegcc*)
10130 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10131 # When not using gcc, we currently assume that we are using
10132 # Microsoft Visual C++.
10133 if test "$GCC" != yes; then
10138 # we just hope/assume this is gcc and not c89 (= MSVC++)
10147 if test "$with_gnu_ld" = yes; then
10148 # If archive_cmds runs LD, not CC, wlarc should be empty
10151 # Set some defaults for GNU ld with shared library support. These
10152 # are reset later if shared libraries are not supported. Putting them
10153 # here allows them to be overridden if necessary.
10154 runpath_var=LD_RUN_PATH
10155 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10156 export_dynamic_flag_spec='${wl}--export-dynamic'
10157 # ancient GNU ld didn't support --whole-archive et. al.
10158 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10159 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10161 whole_archive_flag_spec=
10163 supports_anon_versioning=no
10164 case `$LD -v 2>&1` in
10165 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10166 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10167 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10168 *\ 2.11.*) ;; # other 2.11 versions
10169 *) supports_anon_versioning=yes ;;
10172 # See if GNU ld supports shared libraries.
10175 # On AIX/PPC, the GNU linker is very broken
10176 if test "$host_cpu" != ia64; then
10180 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10181 *** to be unable to reliably create shared libraries on AIX.
10182 *** Therefore, libtool is disabling shared libraries support. If you
10183 *** really care for shared libraries, you may want to modify your PATH
10184 *** so that a non-GNU linker is found, and then restart.
10193 # see comment about AmigaOS4 .so support
10194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10195 archive_expsym_cmds=''
10198 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)'
10199 hardcode_libdir_flag_spec='-L$libdir'
10200 hardcode_minus_L=yes
10206 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10207 allow_undefined_flag=unsupported
10208 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10209 # support --undefined. This deserves some investigation. FIXME
10210 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10216 cygwin* | mingw* | pw32* | cegcc*)
10217 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10218 # as there is no search path for DLLs.
10219 hardcode_libdir_flag_spec='-L$libdir'
10220 allow_undefined_flag=unsupported
10221 always_export_symbols=no
10222 enable_shared_with_static_runtimes=yes
10223 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10225 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10227 # If the export-symbols file already is a .def file (1st line
10228 # is EXPORTS), use it as is; otherwise, prepend...
10229 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10230 cp $export_symbols $output_objdir/$soname.def;
10232 echo EXPORTS > $output_objdir/$soname.def;
10233 cat $export_symbols >> $output_objdir/$soname.def;
10235 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10243 hardcode_shlibpath_var=no
10244 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10245 export_dynamic_flag_spec='${wl}-E'
10246 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10247 # Instead, shared libraries are loaded at an image base (0x10000000 by
10248 # default) and relocated if they conflict, which is a slow very memory
10249 # consuming and fragmenting process. To avoid this, we pick a random,
10250 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10251 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10252 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10253 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'
10256 gnu* | linux* | tpf* | k*bsd*-gnu)
10258 if test "$host_os" = linux-dietlibc; then
10259 case $cc_basename in
10260 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10263 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10264 && test "$tmp_diet" = no
10267 tmp_sharedflag='-shared'
10268 case $cc_basename,$host_cpu in
10269 pgcc*) # Portland Group C compiler
10270 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'
10271 tmp_addflag=' $pic_flag'
10273 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10274 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10275 tmp_addflag=' $pic_flag -Mnomain' ;;
10276 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10277 tmp_addflag=' -i_dynamic' ;;
10278 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10279 tmp_addflag=' -i_dynamic -nofor_main' ;;
10280 ifc* | ifort*) # Intel Fortran compiler
10281 tmp_addflag=' -nofor_main' ;;
10282 lf95*) # Lahey Fortran 8.1
10283 whole_archive_flag_spec=
10284 tmp_sharedflag='--shared' ;;
10285 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10286 tmp_sharedflag='-qmkshrobj'
10289 case `$CC -V 2>&1 | sed 5q` in
10290 *Sun\ C*) # Sun C 5.9
10291 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'
10292 compiler_needs_object=yes
10293 tmp_sharedflag='-G' ;;
10294 *Sun\ F*) # Sun Fortran 8.3
10295 tmp_sharedflag='-G' ;;
10297 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10299 if test "x$supports_anon_versioning" = xyes; then
10300 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10301 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10302 echo "local: *; };" >> $output_objdir/$libname.ver~
10303 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10306 case $cc_basename in
10308 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10309 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10310 hardcode_libdir_flag_spec=
10311 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10312 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10313 if test "x$supports_anon_versioning" = xyes; then
10314 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10315 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10316 echo "local: *; };" >> $output_objdir/$libname.ver~
10317 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10327 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10328 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10332 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10337 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10341 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10342 *** create shared libraries on Solaris systems. Therefore, libtool
10343 *** is disabling shared libraries support. We urge you to upgrade GNU
10344 *** binutils to release 2.9.1 or newer. Another option is to modify
10345 *** your PATH or compiler configuration so that the native linker is
10346 *** used, and then restart.
10349 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10351 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10357 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10358 case `$LD -v 2>&1` in
10359 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10363 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10364 *** reliably create shared libraries on SCO systems. Therefore, libtool
10365 *** is disabling shared libraries support. We urge you to upgrade GNU
10366 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10367 *** your PATH or compiler configuration so that the native linker is
10368 *** used, and then restart.
10373 # For security reasons, it is highly recommended that you always
10374 # use absolute paths for naming shared libraries, and exclude the
10375 # DT_RUNPATH tag from executables and libraries. But doing so
10376 # requires that you compile everything twice, which is a pain.
10377 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10378 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10380 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10389 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10391 hardcode_direct=yes
10392 hardcode_shlibpath_var=no
10396 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10397 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10398 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10405 if test "$ld_shlibs" = no; then
10407 hardcode_libdir_flag_spec=
10408 export_dynamic_flag_spec=
10409 whole_archive_flag_spec=
10412 # PORTME fill in a description of your system's linker (not GNU ld)
10415 allow_undefined_flag=unsupported
10416 always_export_symbols=yes
10417 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'
10418 # Note: this linker hardcodes the directories in LIBPATH if there
10419 # are no directories specified by -L.
10420 hardcode_minus_L=yes
10421 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10422 # Neither direct hardcoding nor static linking is supported with a
10424 hardcode_direct=unsupported
10429 if test "$host_cpu" = ia64; then
10430 # On IA64, the linker does run time linking by default, so we don't
10431 # have to do anything special.
10432 aix_use_runtimelinking=no
10433 exp_sym_flag='-Bexport'
10436 # If we're using GNU nm, then we don't want the "-C" option.
10437 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10438 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10439 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'
10441 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'
10443 aix_use_runtimelinking=no
10445 # Test if we are trying to use run time linking or normal
10446 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10447 # need to do runtime linking.
10448 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10449 for ld_flag in $LDFLAGS; do
10450 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10451 aix_use_runtimelinking=yes
10458 exp_sym_flag='-bexport'
10459 no_entry_flag='-bnoentry'
10462 # When large executables or shared objects are built, AIX ld can
10463 # have problems creating the table of contents. If linking a library
10464 # or program results in "error TOC overflow" add -mminimal-toc to
10465 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10466 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10469 hardcode_direct=yes
10470 hardcode_direct_absolute=yes
10471 hardcode_libdir_separator=':'
10472 link_all_deplibs=yes
10473 file_list_spec='${wl}-f,'
10475 if test "$GCC" = yes; then
10476 case $host_os in aix4.[012]|aix4.[012].*)
10477 # We only want to do this on AIX 4.2 and lower, the check
10478 # below for broken collect2 doesn't work under 4.3+
10479 collect2name=`${CC} -print-prog-name=collect2`
10480 if test -f "$collect2name" &&
10481 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10483 # We have reworked collect2
10486 # We have old collect2
10487 hardcode_direct=unsupported
10488 # It fails to find uninstalled libraries when the uninstalled
10489 # path is not listed in the libpath. Setting hardcode_minus_L
10490 # to unsupported forces relinking
10491 hardcode_minus_L=yes
10492 hardcode_libdir_flag_spec='-L$libdir'
10493 hardcode_libdir_separator=
10497 shared_flag='-shared'
10498 if test "$aix_use_runtimelinking" = yes; then
10499 shared_flag="$shared_flag "'${wl}-G'
10503 if test "$host_cpu" = ia64; then
10504 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10505 # chokes on -Wl,-G. The following line is correct:
10508 if test "$aix_use_runtimelinking" = yes; then
10509 shared_flag='${wl}-G'
10511 shared_flag='${wl}-bM:SRE'
10516 export_dynamic_flag_spec='${wl}-bexpall'
10517 # It seems that -bexpall does not export symbols beginning with
10518 # underscore (_), so it is better to generate a list of symbols to export.
10519 always_export_symbols=yes
10520 if test "$aix_use_runtimelinking" = yes; then
10521 # Warning - without using the other runtime loading flags (-brtl),
10522 # -berok will link without error, but may produce a broken library.
10523 allow_undefined_flag='-berok'
10524 # Determine the default libpath from the value encoded in an
10525 # empty executable.
10526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527 /* end confdefs.h. */
10537 if ac_fn_c_try_link "$LINENO"; then :
10539 lt_aix_libpath_sed='
10540 /Import File Strings/,/^$/ {
10546 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10547 # Check for a 64-bit object if we didn't find anything.
10548 if test -z "$aix_libpath"; then
10549 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10552 rm -f core conftest.err conftest.$ac_objext \
10553 conftest$ac_exeext conftest.$ac_ext
10554 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10556 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10557 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"
10559 if test "$host_cpu" = ia64; then
10560 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10561 allow_undefined_flag="-z nodefs"
10562 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"
10564 # Determine the default libpath from the value encoded in an
10565 # empty executable.
10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567 /* end confdefs.h. */
10577 if ac_fn_c_try_link "$LINENO"; then :
10579 lt_aix_libpath_sed='
10580 /Import File Strings/,/^$/ {
10586 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10587 # Check for a 64-bit object if we didn't find anything.
10588 if test -z "$aix_libpath"; then
10589 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10592 rm -f core conftest.err conftest.$ac_objext \
10593 conftest$ac_exeext conftest.$ac_ext
10594 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10596 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10597 # Warning - without using the other run time loading flags,
10598 # -berok will link without error, but may produce a broken library.
10599 no_undefined_flag=' ${wl}-bernotok'
10600 allow_undefined_flag=' ${wl}-berok'
10601 # Exported symbols can be pulled into shared objects from archives
10602 whole_archive_flag_spec='$convenience'
10603 archive_cmds_need_lc=yes
10604 # This is similar to how AIX traditionally builds its shared libraries.
10605 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'
10613 # see comment about AmigaOS4 .so support
10614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10615 archive_expsym_cmds=''
10618 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)'
10619 hardcode_libdir_flag_spec='-L$libdir'
10620 hardcode_minus_L=yes
10626 export_dynamic_flag_spec=-rdynamic
10629 cygwin* | mingw* | pw32* | cegcc*)
10630 # When not using gcc, we currently assume that we are using
10631 # Microsoft Visual C++.
10632 # hardcode_libdir_flag_spec is actually meaningless, as there is
10633 # no search path for DLLs.
10634 hardcode_libdir_flag_spec=' '
10635 allow_undefined_flag=unsupported
10636 # Tell ltmain to make .lib files, not .a files.
10638 # Tell ltmain to make .dll files, not .so files.
10640 # FIXME: Setting linknames here is a bad hack.
10641 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10642 # The linker will automatically build a .lib file if we build a DLL.
10643 old_archive_from_new_cmds='true'
10644 # FIXME: Should let the user specify the lib program.
10645 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10646 fix_srcfile_path='`cygpath -w "$srcfile"`'
10647 enable_shared_with_static_runtimes=yes
10650 darwin* | rhapsody*)
10653 archive_cmds_need_lc=no
10655 hardcode_automatic=yes
10656 hardcode_shlibpath_var=unsupported
10657 whole_archive_flag_spec=''
10658 link_all_deplibs=yes
10659 allow_undefined_flag="$_lt_dar_allow_undefined"
10660 case $cc_basename in
10661 ifort*) _lt_dar_can_shared=yes ;;
10662 *) _lt_dar_can_shared=$GCC ;;
10664 if test "$_lt_dar_can_shared" = "yes"; then
10665 output_verbose_link_cmd=echo
10666 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10667 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10668 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}"
10669 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}"
10678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10679 hardcode_libdir_flag_spec='-L$libdir'
10680 hardcode_shlibpath_var=no
10687 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10688 # support. Future versions do this automatically, but an explicit c++rt0.o
10689 # does not break anything, and helps significantly (at the cost of a little
10692 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10693 hardcode_libdir_flag_spec='-R$libdir'
10694 hardcode_direct=yes
10695 hardcode_shlibpath_var=no
10698 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10700 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10701 hardcode_direct=yes
10702 hardcode_minus_L=yes
10703 hardcode_shlibpath_var=no
10706 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10707 freebsd* | dragonfly*)
10708 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10709 hardcode_libdir_flag_spec='-R$libdir'
10710 hardcode_direct=yes
10711 hardcode_shlibpath_var=no
10715 if test "$GCC" = yes; then
10716 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'
10718 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'
10720 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10721 hardcode_libdir_separator=:
10722 hardcode_direct=yes
10724 # hardcode_minus_L: Not really in the search PATH,
10725 # but as the default location of the library.
10726 hardcode_minus_L=yes
10727 export_dynamic_flag_spec='${wl}-E'
10731 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10732 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10734 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10736 if test "$with_gnu_ld" = no; then
10737 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10738 hardcode_libdir_flag_spec_ld='+b $libdir'
10739 hardcode_libdir_separator=:
10740 hardcode_direct=yes
10741 hardcode_direct_absolute=yes
10742 export_dynamic_flag_spec='${wl}-E'
10743 # hardcode_minus_L: Not really in the search PATH,
10744 # but as the default location of the library.
10745 hardcode_minus_L=yes
10750 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10753 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10756 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10759 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10765 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10768 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10771 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10775 if test "$with_gnu_ld" = no; then
10776 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10777 hardcode_libdir_separator=:
10782 hardcode_shlibpath_var=no
10785 hardcode_direct=yes
10786 hardcode_direct_absolute=yes
10787 export_dynamic_flag_spec='${wl}-E'
10789 # hardcode_minus_L: Not really in the search PATH,
10790 # but as the default location of the library.
10791 hardcode_minus_L=yes
10797 irix5* | irix6* | nonstopux*)
10798 if test "$GCC" = yes; then
10799 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'
10800 # Try to use the -exported_symbol ld option, if it does not
10801 # work, assume that -exports_file does not work either and
10802 # implicitly export all symbols.
10803 save_LDFLAGS="$LDFLAGS"
10804 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806 /* end confdefs.h. */
10809 if ac_fn_c_try_link "$LINENO"; then :
10810 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'
10813 rm -f core conftest.err conftest.$ac_objext \
10814 conftest$ac_exeext conftest.$ac_ext
10815 LDFLAGS="$save_LDFLAGS"
10817 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'
10818 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'
10820 archive_cmds_need_lc='no'
10821 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10822 hardcode_libdir_separator=:
10824 link_all_deplibs=yes
10828 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10829 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10831 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10833 hardcode_libdir_flag_spec='-R$libdir'
10834 hardcode_direct=yes
10835 hardcode_shlibpath_var=no
10839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10840 hardcode_direct=yes
10841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10842 hardcode_libdir_separator=:
10843 hardcode_shlibpath_var=no
10850 if test -f /usr/libexec/ld.so; then
10851 hardcode_direct=yes
10852 hardcode_shlibpath_var=no
10853 hardcode_direct_absolute=yes
10854 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10855 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10856 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10857 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10858 export_dynamic_flag_spec='${wl}-E'
10861 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10862 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10863 hardcode_libdir_flag_spec='-R$libdir'
10866 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10867 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10877 hardcode_libdir_flag_spec='-L$libdir'
10878 hardcode_minus_L=yes
10879 allow_undefined_flag=unsupported
10880 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'
10881 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10885 if test "$GCC" = yes; then
10886 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10887 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'
10889 allow_undefined_flag=' -expect_unresolved \*'
10890 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'
10892 archive_cmds_need_lc='no'
10893 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10894 hardcode_libdir_separator=:
10897 osf4* | osf5*) # as osf3* with the addition of -msym flag
10898 if test "$GCC" = yes; then
10899 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10900 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'
10901 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10903 allow_undefined_flag=' -expect_unresolved \*'
10904 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'
10905 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~
10906 $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'
10908 # Both c and cxx compiler support -rpath directly
10909 hardcode_libdir_flag_spec='-rpath $libdir'
10911 archive_cmds_need_lc='no'
10912 hardcode_libdir_separator=:
10916 no_undefined_flag=' -z defs'
10917 if test "$GCC" = yes; then
10919 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10920 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10921 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10923 case `$CC -V 2>&1` in
10926 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10927 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10928 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10932 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10933 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10934 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10938 hardcode_libdir_flag_spec='-R$libdir'
10939 hardcode_shlibpath_var=no
10941 solaris2.[0-5] | solaris2.[0-5].*) ;;
10943 # The compiler driver will combine and reorder linker options,
10944 # but understands `-z linker_flag'. GCC discards it without `$wl',
10945 # but is careful enough not to reorder.
10946 # Supported since Solaris 2.6 (maybe 2.5.1?)
10947 if test "$GCC" = yes; then
10948 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10950 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10954 link_all_deplibs=yes
10958 if test "x$host_vendor" = xsequent; then
10959 # Use $CC to link under sequent, because it throws in some extra .o
10960 # files that make .init and .fini sections work.
10961 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10963 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10965 hardcode_libdir_flag_spec='-L$libdir'
10966 hardcode_direct=yes
10967 hardcode_minus_L=yes
10968 hardcode_shlibpath_var=no
10972 case $host_vendor in
10974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10975 hardcode_direct=yes # is this really true???
10978 ## LD is ld it makes a PLAMLIB
10979 ## CC just makes a GrossModule.
10980 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10981 reload_cmds='$CC -r -o $output$reload_objs'
10985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10986 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10989 runpath_var='LD_RUN_PATH'
10990 hardcode_shlibpath_var=no
10994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10995 hardcode_shlibpath_var=no
10996 export_dynamic_flag_spec='-Bexport'
11000 if test -d /usr/nec; then
11001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11002 hardcode_shlibpath_var=no
11003 runpath_var=LD_RUN_PATH
11004 hardcode_runpath_var=yes
11009 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11010 no_undefined_flag='${wl}-z,text'
11011 archive_cmds_need_lc=no
11012 hardcode_shlibpath_var=no
11013 runpath_var='LD_RUN_PATH'
11015 if test "$GCC" = yes; then
11016 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11017 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11019 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11020 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11024 sysv5* | sco3.2v5* | sco5v6*)
11025 # Note: We can NOT use -z defs as we might desire, because we do not
11026 # link with -lc, and that would cause any symbols used from libc to
11027 # always be unresolved, which means just about no library would
11028 # ever link correctly. If we're not using GNU ld we use -z text
11029 # though, which does catch some bad symbols but isn't as heavy-handed
11031 no_undefined_flag='${wl}-z,text'
11032 allow_undefined_flag='${wl}-z,nodefs'
11033 archive_cmds_need_lc=no
11034 hardcode_shlibpath_var=no
11035 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11036 hardcode_libdir_separator=':'
11037 link_all_deplibs=yes
11038 export_dynamic_flag_spec='${wl}-Bexport'
11039 runpath_var='LD_RUN_PATH'
11041 if test "$GCC" = yes; then
11042 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11043 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11045 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11046 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11052 hardcode_libdir_flag_spec='-L$libdir'
11053 hardcode_shlibpath_var=no
11061 if test x$host_vendor = xsni; then
11063 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11064 export_dynamic_flag_spec='${wl}-Blargedynsym'
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11071 $as_echo "$ld_shlibs" >&6; }
11072 test "$ld_shlibs" = no && can_build_shared=no
11074 with_gnu_ld=$with_gnu_ld
11091 # Do we need to explicitly link libc?
11093 case "x$archive_cmds_need_lc" in
11095 # Assume -lc should be added
11096 archive_cmds_need_lc=yes
11098 if test "$enable_shared" = yes && test "$GCC" = yes; then
11099 case $archive_cmds in
11101 # FIXME: we may have to deal with multi-command sequences.
11104 # Test whether the compiler implicitly links with -lc since on some
11105 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11106 # to ld, don't add -lc before -lgcc.
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11108 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11113 (eval $ac_compile) 2>&5
11115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11116 test $ac_status = 0; } 2>conftest.err; then
11119 libobjs=conftest.$ac_objext
11121 wl=$lt_prog_compiler_wl
11122 pic_flag=$lt_prog_compiler_pic
11128 lt_save_allow_undefined_flag=$allow_undefined_flag
11129 allow_undefined_flag=
11130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11131 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11134 test $ac_status = 0; }
11136 archive_cmds_need_lc=no
11138 archive_cmds_need_lc=yes
11140 allow_undefined_flag=$lt_save_allow_undefined_flag
11142 cat conftest.err 1>&5
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11146 $as_echo "$archive_cmds_need_lc" >&6; }
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11310 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11312 if test "$GCC" = yes; then
11314 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11315 *) lt_awk_arg="/^libraries:/" ;;
11317 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11318 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11319 # if the path contains ";" then we assume it to be the separator
11320 # otherwise default to the standard path separator (i.e. ":") - it is
11321 # assumed that no part of a normal pathname contains ";" but that should
11322 # okay in the real world where ";" in dirpaths is itself problematic.
11323 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11325 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11327 # Ok, now we have the path, separated by spaces, we can step through it
11328 # and add multilib dir if necessary.
11329 lt_tmp_lt_search_path_spec=
11330 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11331 for lt_sys_path in $lt_search_path_spec; do
11332 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11333 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11335 test -d "$lt_sys_path" && \
11336 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11339 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11340 BEGIN {RS=" "; FS="/|\n";} {
11343 for (lt_i = NF; lt_i > 0; lt_i--) {
11344 if ($lt_i != "" && $lt_i != ".") {
11345 if ($lt_i == "..") {
11348 if (lt_count == 0) {
11349 lt_foo="/" $lt_i lt_foo;
11356 if (lt_foo != "") { lt_freq[lt_foo]++; }
11357 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11359 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11361 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11363 library_names_spec=
11364 libname_spec='lib$name'
11368 postuninstall_cmds=
11372 shlibpath_overrides_runpath=unknown
11374 dynamic_linker="$host_os ld.so"
11375 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11376 need_lib_prefix=unknown
11377 hardcode_into_libs=no
11379 # when you set need_version to no, make sure it does not cause -set_version
11380 # flags to be left without arguments
11381 need_version=unknown
11386 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11387 shlibpath_var=LIBPATH
11389 # AIX 3 has no versioning support, so we append a major version to the name.
11390 soname_spec='${libname}${release}${shared_ext}$major'
11397 hardcode_into_libs=yes
11398 if test "$host_cpu" = ia64; then
11399 # AIX 5 supports IA64
11400 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11401 shlibpath_var=LD_LIBRARY_PATH
11403 # With GCC up to 2.95.x, collect2 would create an import file
11404 # for dependence libraries. The import file would start with
11405 # the line `#! .'. This would cause the generated library to
11406 # depend on `.', always an invalid library. This was fixed in
11407 # development snapshots of GCC prior to 3.0.
11409 aix4 | aix4.[01] | aix4.[01].*)
11410 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11412 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11415 can_build_shared=no
11419 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11420 # soname into executable. Probably we can add versioning support to
11421 # collect2, so additional links can be useful in future.
11422 if test "$aix_use_runtimelinking" = yes; then
11423 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11424 # instead of lib<name>.a to let people know that these are not
11425 # typical AIX shared libraries.
11426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11428 # We preserve .a as extension for shared libraries through AIX4.2
11429 # and later when we are not doing run time linking.
11430 library_names_spec='${libname}${release}.a $libname.a'
11431 soname_spec='${libname}${release}${shared_ext}$major'
11433 shlibpath_var=LIBPATH
11440 # Since July 2007 AmigaOS4 officially supports .so libraries.
11441 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11445 library_names_spec='$libname.ixlibrary $libname.a'
11446 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11447 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'
11453 library_names_spec='${libname}${shared_ext}'
11454 dynamic_linker="$host_os ld.so"
11455 shlibpath_var=LIBRARY_PATH
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11462 soname_spec='${libname}${release}${shared_ext}$major'
11463 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11464 shlibpath_var=LD_LIBRARY_PATH
11465 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11466 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11467 # the default ld.so.conf also contains /usr/contrib/lib and
11468 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11469 # libtool to hard-code these into programs
11472 cygwin* | mingw* | pw32* | cegcc*)
11473 version_type=windows
11478 case $GCC,$host_os in
11479 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11480 library_names_spec='$libname.dll.a'
11481 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11482 postinstall_cmds='base_file=`basename \${file}`~
11483 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11484 dldir=$destdir/`dirname \$dlpath`~
11485 test -d \$dldir || mkdir -p \$dldir~
11486 $install_prog $dir/$dlname \$dldir/$dlname~
11487 chmod a+x \$dldir/$dlname~
11488 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11489 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11491 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11492 dlpath=$dir/\$dldll~
11494 shlibpath_overrides_runpath=yes
11498 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11499 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11500 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11503 # MinGW DLLs use traditional 'lib' prefix
11504 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11505 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11506 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11507 # It is most probably a Windows format PATH printed by
11508 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11509 # path with ; separators, and with drive letters. We can handle the
11510 # drive letters (cygwin fileutils understands them), so leave them,
11511 # especially as we might pass files found there to a mingw objdump,
11512 # which wouldn't understand a cygwinified path. Ahh.
11513 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11515 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11519 # pw32 DLLs use 'pw' prefix rather than 'lib'
11520 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11526 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11529 dynamic_linker='Win32 ld.exe'
11530 # FIXME: first we should search . and the directory the executable is in
11534 darwin* | rhapsody*)
11535 dynamic_linker="$host_os dyld"
11536 version_type=darwin
11539 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11540 soname_spec='${libname}${release}${major}$shared_ext'
11541 shlibpath_overrides_runpath=yes
11542 shlibpath_var=DYLD_LIBRARY_PATH
11543 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11545 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11546 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11554 soname_spec='${libname}${release}${shared_ext}$major'
11555 shlibpath_var=LD_LIBRARY_PATH
11562 freebsd* | dragonfly*)
11563 # DragonFly does not have aout. When/if they implement a new
11564 # versioning mechanism, adjust this.
11565 if test -x /usr/bin/objformat; then
11566 objformat=`/usr/bin/objformat`
11569 freebsd[123]*) objformat=aout ;;
11570 *) objformat=elf ;;
11573 version_type=freebsd-$objformat
11574 case $version_type in
11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11585 shlibpath_var=LD_LIBRARY_PATH
11588 shlibpath_overrides_runpath=yes
11590 freebsd3.[01]* | freebsdelf3.[01]*)
11591 shlibpath_overrides_runpath=yes
11592 hardcode_into_libs=yes
11594 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11595 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11596 shlibpath_overrides_runpath=no
11597 hardcode_into_libs=yes
11599 *) # from 4.6 on, and DragonFly
11600 shlibpath_overrides_runpath=yes
11601 hardcode_into_libs=yes
11610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11611 soname_spec='${libname}${release}${shared_ext}$major'
11612 shlibpath_var=LD_LIBRARY_PATH
11613 hardcode_into_libs=yes
11616 hpux9* | hpux10* | hpux11*)
11617 # Give a soname corresponding to the major version so that dld.sl refuses to
11618 # link against other versions.
11625 hardcode_into_libs=yes
11626 dynamic_linker="$host_os dld.so"
11627 shlibpath_var=LD_LIBRARY_PATH
11628 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11630 soname_spec='${libname}${release}${shared_ext}$major'
11631 if test "X$HPUX_IA64_MODE" = X32; then
11632 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11634 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11636 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11640 hardcode_into_libs=yes
11641 dynamic_linker="$host_os dld.sl"
11642 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11643 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11645 soname_spec='${libname}${release}${shared_ext}$major'
11646 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11647 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11651 dynamic_linker="$host_os dld.sl"
11652 shlibpath_var=SHLIB_PATH
11653 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11655 soname_spec='${libname}${release}${shared_ext}$major'
11658 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11659 postinstall_cmds='chmod 555 $lib'
11666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11667 soname_spec='${libname}${release}${shared_ext}$major'
11668 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11669 shlibpath_var=LD_LIBRARY_PATH
11670 shlibpath_overrides_runpath=no
11671 hardcode_into_libs=yes
11674 irix5* | irix6* | nonstopux*)
11676 nonstopux*) version_type=nonstopux ;;
11678 if test "$lt_cv_prog_gnu_ld" = yes; then
11686 soname_spec='${libname}${release}${shared_ext}$major'
11687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11689 irix5* | nonstopux*)
11690 libsuff= shlibsuff=
11693 case $LD in # libtool.m4 will add one of these switches to LD
11694 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11695 libsuff= shlibsuff= libmagic=32-bit;;
11696 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11697 libsuff=32 shlibsuff=N32 libmagic=N32;;
11698 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11699 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11700 *) libsuff= shlibsuff= libmagic=never-match;;
11704 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11705 shlibpath_overrides_runpath=no
11706 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11707 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11708 hardcode_into_libs=yes
11711 # No shared lib support for Linux oldld, aout, or coff.
11712 linux*oldld* | linux*aout* | linux*coff*)
11716 # This must be Linux ELF.
11717 linux* | k*bsd*-gnu)
11721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11722 soname_spec='${libname}${release}${shared_ext}$major'
11723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11724 shlibpath_var=LD_LIBRARY_PATH
11725 shlibpath_overrides_runpath=no
11726 # Some binutils ld are patched to set DT_RUNPATH
11727 save_LDFLAGS=$LDFLAGS
11728 save_libdir=$libdir
11729 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11730 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732 /* end confdefs.h. */
11742 if ac_fn_c_try_link "$LINENO"; then :
11743 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11744 shlibpath_overrides_runpath=yes
11747 rm -f core conftest.err conftest.$ac_objext \
11748 conftest$ac_exeext conftest.$ac_ext
11749 LDFLAGS=$save_LDFLAGS
11750 libdir=$save_libdir
11752 # This implies no fast_install, which is unacceptable.
11753 # Some rework will be needed to allow for fast_install
11754 # before this can be enabled.
11755 hardcode_into_libs=yes
11757 # Append ld.so.conf contents to the search path
11758 if test -f /etc/ld.so.conf; then
11759 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' ' '`
11760 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11763 # We used to test for /lib/ld.so.1 and disable shared libraries on
11764 # powerpc, because MkLinux only supported shared libraries with the
11765 # GNU dynamic linker. Since this was broken with cross compilers,
11766 # most powerpc-linux boxes support dynamic linking these days and
11767 # people can always --disable-shared, the test was removed, and we
11768 # assume the GNU/Linux dynamic linker is in use.
11769 dynamic_linker='GNU/Linux ld.so'
11776 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11779 dynamic_linker='NetBSD (a.out) ld.so'
11781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11782 soname_spec='${libname}${release}${shared_ext}$major'
11783 dynamic_linker='NetBSD ld.elf_so'
11785 shlibpath_var=LD_LIBRARY_PATH
11786 shlibpath_overrides_runpath=yes
11787 hardcode_into_libs=yes
11792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11793 shlibpath_var=LD_LIBRARY_PATH
11794 shlibpath_overrides_runpath=yes
11801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11802 soname_spec='${libname}${release}${shared_ext}$major'
11803 shlibpath_var=LD_LIBRARY_PATH
11804 shlibpath_overrides_runpath=no
11805 hardcode_into_libs=yes
11806 dynamic_linker='ldqnx.so'
11811 sys_lib_dlsearch_path_spec="/usr/lib"
11813 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11815 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11816 *) need_version=no ;;
11818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11820 shlibpath_var=LD_LIBRARY_PATH
11821 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11823 openbsd2.[89] | openbsd2.[89].*)
11824 shlibpath_overrides_runpath=no
11827 shlibpath_overrides_runpath=yes
11831 shlibpath_overrides_runpath=yes
11836 libname_spec='$name'
11839 library_names_spec='$libname${shared_ext} $libname.a'
11840 dynamic_linker='OS/2 ld.exe'
11841 shlibpath_var=LIBPATH
11844 osf3* | osf4* | osf5*)
11848 soname_spec='${libname}${release}${shared_ext}$major'
11849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11850 shlibpath_var=LD_LIBRARY_PATH
11851 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11852 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11864 soname_spec='${libname}${release}${shared_ext}$major'
11865 shlibpath_var=LD_LIBRARY_PATH
11866 shlibpath_overrides_runpath=yes
11867 hardcode_into_libs=yes
11868 # ldd complains unless libraries are executable
11869 postinstall_cmds='chmod +x $lib'
11874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11875 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11876 shlibpath_var=LD_LIBRARY_PATH
11877 shlibpath_overrides_runpath=yes
11878 if test "$with_gnu_ld" = yes; then
11886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11887 soname_spec='${libname}${release}${shared_ext}$major'
11888 shlibpath_var=LD_LIBRARY_PATH
11889 case $host_vendor in
11891 shlibpath_overrides_runpath=no
11893 runpath_var=LD_RUN_PATH
11901 shlibpath_overrides_runpath=no
11902 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11908 if test -d /usr/nec ;then
11910 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11911 soname_spec='$libname${shared_ext}.$major'
11912 shlibpath_var=LD_LIBRARY_PATH
11916 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11917 version_type=freebsd-elf
11920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11921 soname_spec='${libname}${release}${shared_ext}$major'
11922 shlibpath_var=LD_LIBRARY_PATH
11923 shlibpath_overrides_runpath=yes
11924 hardcode_into_libs=yes
11925 if test "$with_gnu_ld" = yes; then
11926 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11928 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11931 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11935 sys_lib_dlsearch_path_spec='/usr/lib'
11939 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11944 shlibpath_var=LD_LIBRARY_PATH
11945 shlibpath_overrides_runpath=no
11946 hardcode_into_libs=yes
11951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11952 soname_spec='${libname}${release}${shared_ext}$major'
11953 shlibpath_var=LD_LIBRARY_PATH
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11961 $as_echo "$dynamic_linker" >&6; }
11962 test "$dynamic_linker" = no && can_build_shared=no
11964 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11965 if test "$GCC" = yes; then
11966 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11969 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11970 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11972 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11973 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12063 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12065 if test -n "$hardcode_libdir_flag_spec" ||
12066 test -n "$runpath_var" ||
12067 test "X$hardcode_automatic" = "Xyes" ; then
12069 # We can hardcode non-existent directories.
12070 if test "$hardcode_direct" != no &&
12071 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12072 # have to relink, otherwise we might link with an installed library
12073 # when we should be linking with a yet-to-be-installed one
12074 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12075 test "$hardcode_minus_L" != no; then
12076 # Linking always hardcodes the temporary library directory.
12077 hardcode_action=relink
12079 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12080 hardcode_action=immediate
12083 # We cannot hardcode anything, or else we can only hardcode existing
12085 hardcode_action=unsupported
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12088 $as_echo "$hardcode_action" >&6; }
12090 if test "$hardcode_action" = relink ||
12091 test "$inherit_rpath" = yes; then
12092 # Fast installation is not supported
12093 enable_fast_install=no
12094 elif test "$shlibpath_overrides_runpath" = yes ||
12095 test "$enable_shared" = no; then
12096 # Fast installation is not necessary
12097 enable_fast_install=needless
12105 if test "x$enable_dlopen" != xyes; then
12106 enable_dlopen=unknown
12107 enable_dlopen_self=unknown
12108 enable_dlopen_self_static=unknown
12115 lt_cv_dlopen="load_add_on"
12117 lt_cv_dlopen_self=yes
12120 mingw* | pw32* | cegcc*)
12121 lt_cv_dlopen="LoadLibrary"
12126 lt_cv_dlopen="dlopen"
12131 # if libdl is installed we need to link against it
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12133 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12134 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12135 $as_echo_n "(cached) " >&6
12137 ac_check_lib_save_LIBS=$LIBS
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h. */
12142 /* Override any GCC internal prototype to avoid an error.
12143 Use char because int might match the return type of a GCC
12144 builtin and then its argument prototype would still apply. */
12157 if ac_fn_c_try_link "$LINENO"; then :
12158 ac_cv_lib_dl_dlopen=yes
12160 ac_cv_lib_dl_dlopen=no
12162 rm -f core conftest.err conftest.$ac_objext \
12163 conftest$ac_exeext conftest.$ac_ext
12164 LIBS=$ac_check_lib_save_LIBS
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12167 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12168 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12169 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12172 lt_cv_dlopen="dyld"
12174 lt_cv_dlopen_self=yes
12181 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12182 if test "x$ac_cv_func_shl_load" = x""yes; then :
12183 lt_cv_dlopen="shl_load"
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12186 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12187 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12188 $as_echo_n "(cached) " >&6
12190 ac_check_lib_save_LIBS=$LIBS
12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193 /* end confdefs.h. */
12195 /* Override any GCC internal prototype to avoid an error.
12196 Use char because int might match the return type of a GCC
12197 builtin and then its argument prototype would still apply. */
12205 return shl_load ();
12210 if ac_fn_c_try_link "$LINENO"; then :
12211 ac_cv_lib_dld_shl_load=yes
12213 ac_cv_lib_dld_shl_load=no
12215 rm -f core conftest.err conftest.$ac_objext \
12216 conftest$ac_exeext conftest.$ac_ext
12217 LIBS=$ac_check_lib_save_LIBS
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12220 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12221 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12222 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12224 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12225 if test "x$ac_cv_func_dlopen" = x""yes; then :
12226 lt_cv_dlopen="dlopen"
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12229 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12230 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12231 $as_echo_n "(cached) " >&6
12233 ac_check_lib_save_LIBS=$LIBS
12235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236 /* end confdefs.h. */
12238 /* Override any GCC internal prototype to avoid an error.
12239 Use char because int might match the return type of a GCC
12240 builtin and then its argument prototype would still apply. */
12253 if ac_fn_c_try_link "$LINENO"; then :
12254 ac_cv_lib_dl_dlopen=yes
12256 ac_cv_lib_dl_dlopen=no
12258 rm -f core conftest.err conftest.$ac_objext \
12259 conftest$ac_exeext conftest.$ac_ext
12260 LIBS=$ac_check_lib_save_LIBS
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12263 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12264 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12265 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12268 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12269 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12270 $as_echo_n "(cached) " >&6
12272 ac_check_lib_save_LIBS=$LIBS
12273 LIBS="-lsvld $LIBS"
12274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12275 /* end confdefs.h. */
12277 /* Override any GCC internal prototype to avoid an error.
12278 Use char because int might match the return type of a GCC
12279 builtin and then its argument prototype would still apply. */
12292 if ac_fn_c_try_link "$LINENO"; then :
12293 ac_cv_lib_svld_dlopen=yes
12295 ac_cv_lib_svld_dlopen=no
12297 rm -f core conftest.err conftest.$ac_objext \
12298 conftest$ac_exeext conftest.$ac_ext
12299 LIBS=$ac_check_lib_save_LIBS
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12302 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12303 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12304 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12307 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12308 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12309 $as_echo_n "(cached) " >&6
12311 ac_check_lib_save_LIBS=$LIBS
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h. */
12316 /* Override any GCC internal prototype to avoid an error.
12317 Use char because int might match the return type of a GCC
12318 builtin and then its argument prototype would still apply. */
12326 return dld_link ();
12331 if ac_fn_c_try_link "$LINENO"; then :
12332 ac_cv_lib_dld_dld_link=yes
12334 ac_cv_lib_dld_dld_link=no
12336 rm -f core conftest.err conftest.$ac_objext \
12337 conftest$ac_exeext conftest.$ac_ext
12338 LIBS=$ac_check_lib_save_LIBS
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12341 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12342 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12343 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12364 if test "x$lt_cv_dlopen" != xno; then
12370 case $lt_cv_dlopen in
12372 save_CPPFLAGS="$CPPFLAGS"
12373 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12375 save_LDFLAGS="$LDFLAGS"
12376 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12379 LIBS="$lt_cv_dlopen_libs $LIBS"
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12382 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12383 if test "${lt_cv_dlopen_self+set}" = set; then :
12384 $as_echo_n "(cached) " >&6
12386 if test "$cross_compiling" = yes; then :
12387 lt_cv_dlopen_self=cross
12389 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12390 lt_status=$lt_dlunknown
12391 cat > conftest.$ac_ext <<_LT_EOF
12392 #line 12392 "configure"
12393 #include "confdefs.h"
12402 # define LT_DLGLOBAL RTLD_GLOBAL
12405 # define LT_DLGLOBAL DL_GLOBAL
12407 # define LT_DLGLOBAL 0
12411 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12412 find out it does not work in some platform. */
12413 #ifndef LT_DLLAZY_OR_NOW
12415 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12418 # define LT_DLLAZY_OR_NOW DL_LAZY
12421 # define LT_DLLAZY_OR_NOW RTLD_NOW
12424 # define LT_DLLAZY_OR_NOW DL_NOW
12426 # define LT_DLLAZY_OR_NOW 0
12433 void fnord() { int i=42;}
12436 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12437 int status = $lt_dlunknown;
12441 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12442 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12443 /* dlclose (self); */
12451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12452 (eval $ac_link) 2>&5
12454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12455 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12456 (./conftest; exit; ) >&5 2>/dev/null
12458 case x$lt_status in
12459 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12460 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12461 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12464 # compilation failed
12465 lt_cv_dlopen_self=no
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12473 $as_echo "$lt_cv_dlopen_self" >&6; }
12475 if test "x$lt_cv_dlopen_self" = xyes; then
12476 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12478 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12479 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12480 $as_echo_n "(cached) " >&6
12482 if test "$cross_compiling" = yes; then :
12483 lt_cv_dlopen_self_static=cross
12485 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12486 lt_status=$lt_dlunknown
12487 cat > conftest.$ac_ext <<_LT_EOF
12488 #line 12488 "configure"
12489 #include "confdefs.h"
12498 # define LT_DLGLOBAL RTLD_GLOBAL
12501 # define LT_DLGLOBAL DL_GLOBAL
12503 # define LT_DLGLOBAL 0
12507 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12508 find out it does not work in some platform. */
12509 #ifndef LT_DLLAZY_OR_NOW
12511 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12514 # define LT_DLLAZY_OR_NOW DL_LAZY
12517 # define LT_DLLAZY_OR_NOW RTLD_NOW
12520 # define LT_DLLAZY_OR_NOW DL_NOW
12522 # define LT_DLLAZY_OR_NOW 0
12529 void fnord() { int i=42;}
12532 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12533 int status = $lt_dlunknown;
12537 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12538 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12539 /* dlclose (self); */
12547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12548 (eval $ac_link) 2>&5
12550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12551 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12552 (./conftest; exit; ) >&5 2>/dev/null
12554 case x$lt_status in
12555 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12556 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12557 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12560 # compilation failed
12561 lt_cv_dlopen_self_static=no
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12569 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12572 CPPFLAGS="$save_CPPFLAGS"
12573 LDFLAGS="$save_LDFLAGS"
12578 case $lt_cv_dlopen_self in
12579 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12580 *) enable_dlopen_self=unknown ;;
12583 case $lt_cv_dlopen_self_static in
12584 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12585 *) enable_dlopen_self_static=unknown ;;
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12608 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12609 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12610 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12611 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12613 $as_echo "yes" >&6; }
12615 # FIXME - insert some real tests, host_os isn't really good enough
12618 if test -n "$STRIP" ; then
12619 striplib="$STRIP -x"
12620 old_striplib="$STRIP -S"
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12622 $as_echo "yes" >&6; }
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 $as_echo "no" >&6; }
12646 # Report which library types will actually be built
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12648 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12650 $as_echo "$can_build_shared" >&6; }
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12653 $as_echo_n "checking whether to build shared libraries... " >&6; }
12654 test "$can_build_shared" = "no" && enable_shared=no
12656 # On AIX, shared libraries and static libraries use the same namespace, and
12657 # are all built from PIC.
12660 test "$enable_shared" = yes && enable_static=no
12661 if test -n "$RANLIB"; then
12662 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12663 postinstall_cmds='$RANLIB $lib'
12668 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12669 test "$enable_shared" = yes && enable_static=no
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12674 $as_echo "$enable_shared" >&6; }
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12677 $as_echo_n "checking whether to build static libraries... " >&6; }
12678 # Make sure either enable_shared or enable_static is yes.
12679 test "$enable_shared" = yes || enable_static=yes
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12681 $as_echo "$enable_static" >&6; }
12688 ac_cpp='$CPP $CPPFLAGS'
12689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12697 ac_cpp='$CXXCPP $CPPFLAGS'
12698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12702 archive_cmds_need_lc_CXX=no
12703 allow_undefined_flag_CXX=
12704 always_export_symbols_CXX=no
12705 archive_expsym_cmds_CXX=
12706 compiler_needs_object_CXX=no
12707 export_dynamic_flag_spec_CXX=
12708 hardcode_direct_CXX=no
12709 hardcode_direct_absolute_CXX=no
12710 hardcode_libdir_flag_spec_CXX=
12711 hardcode_libdir_flag_spec_ld_CXX=
12712 hardcode_libdir_separator_CXX=
12713 hardcode_minus_L_CXX=no
12714 hardcode_shlibpath_var_CXX=unsupported
12715 hardcode_automatic_CXX=no
12716 inherit_rpath_CXX=no
12718 module_expsym_cmds_CXX=
12719 link_all_deplibs_CXX=unknown
12720 old_archive_cmds_CXX=$old_archive_cmds
12721 no_undefined_flag_CXX=
12722 whole_archive_flag_spec_CXX=
12723 enable_shared_with_static_runtimes_CXX=no
12725 # Source file extension for C++ test sources.
12728 # Object file extension for compiled C++ test sources.
12732 # No sense in running all these tests if we already determined that
12733 # the CXX compiler isn't working. Some variables (like enable_shared)
12734 # are currently assumed to apply to all compilers on this platform,
12735 # and will be corrupted by setting them based on a non-working compiler.
12736 if test "$_lt_caught_CXX_error" != yes; then
12737 # Code to be used in simple compile tests
12738 lt_simple_compile_test_code="int some_variable = 0;"
12740 # Code to be used in simple link tests
12741 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12743 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12750 # If no C compiler was specified, use CC.
12753 # If no C compiler flags were specified, use CFLAGS.
12754 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12756 # Allow CC to be a program name with arguments.
12760 # save warnings/boilerplate of simple test code
12761 ac_outfile=conftest.$ac_objext
12762 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12763 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12764 _lt_compiler_boilerplate=`cat conftest.err`
12767 ac_outfile=conftest.$ac_objext
12768 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12769 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12770 _lt_linker_boilerplate=`cat conftest.err`
12774 # Allow CC to be a program name with arguments.
12779 lt_save_with_gnu_ld=$with_gnu_ld
12780 lt_save_path_LD=$lt_cv_path_LD
12781 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12782 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12784 $as_unset lt_cv_prog_gnu_ld
12786 if test -n "${lt_cv_path_LDCXX+set}"; then
12787 lt_cv_path_LD=$lt_cv_path_LDCXX
12789 $as_unset lt_cv_path_LD
12791 test -z "${LDCXX+set}" || LD=$LDCXX
12795 for cc_temp in $compiler""; do
12797 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12798 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12803 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12806 if test -n "$compiler"; then
12807 # We don't want -fno-exception when compiling C++ code, so set the
12808 # no_builtin_flag separately
12809 if test "$GXX" = yes; then
12810 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12812 lt_prog_compiler_no_builtin_flag_CXX=
12815 if test "$GXX" = yes; then
12816 # Set up default GNU C++ configuration
12820 # Check whether --with-gnu-ld was given.
12821 if test "${with_gnu_ld+set}" = set; then :
12822 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12828 if test "$GCC" = yes; then
12829 # Check if gcc -print-prog-name=ld gives a path.
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12831 $as_echo_n "checking for ld used by $CC... " >&6; }
12834 # gcc leaves a trailing carriage return which upsets mingw
12835 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12837 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12840 # Accept absolute paths.
12842 re_direlt='/[^/][^/]*/\.\./'
12843 # Canonicalize the pathname of ld
12844 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12845 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12846 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12848 test -z "$LD" && LD="$ac_prog"
12851 # If it fails, then pretend we aren't using GCC.
12855 # If it is relative, then search for the first ld in PATH.
12856 with_gnu_ld=unknown
12859 elif test "$with_gnu_ld" = yes; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12861 $as_echo_n "checking for GNU ld... " >&6; }
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12864 $as_echo_n "checking for non-GNU ld... " >&6; }
12866 if test "${lt_cv_path_LD+set}" = set; then :
12867 $as_echo_n "(cached) " >&6
12869 if test -z "$LD"; then
12870 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12871 for ac_dir in $PATH; do
12873 test -z "$ac_dir" && ac_dir=.
12874 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12875 lt_cv_path_LD="$ac_dir/$ac_prog"
12876 # Check to see if the program is GNU ld. I'd rather use --version,
12877 # but apparently some variants of GNU ld only accept -v.
12878 # Break only if it was the GNU/non-GNU ld that we prefer.
12879 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12880 *GNU* | *'with BFD'*)
12881 test "$with_gnu_ld" != no && break
12884 test "$with_gnu_ld" != yes && break
12891 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12895 LD="$lt_cv_path_LD"
12896 if test -n "$LD"; then
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12898 $as_echo "$LD" >&6; }
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12901 $as_echo "no" >&6; }
12903 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12905 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12906 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12907 $as_echo_n "(cached) " >&6
12909 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12910 case `$LD -v 2>&1 </dev/null` in
12911 *GNU* | *'with BFD'*)
12912 lt_cv_prog_gnu_ld=yes
12915 lt_cv_prog_gnu_ld=no
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12920 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12921 with_gnu_ld=$lt_cv_prog_gnu_ld
12929 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12930 # archiving commands below assume that GNU ld is being used.
12931 if test "$with_gnu_ld" = yes; then
12932 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12933 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'
12935 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12936 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12938 # If archive_cmds runs LD, not CC, wlarc should be empty
12939 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12940 # investigate it a little bit more. (MM)
12943 # ancient GNU ld didn't support --whole-archive et. al.
12944 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12945 $GREP 'no-whole-archive' > /dev/null; then
12946 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12948 whole_archive_flag_spec_CXX=
12954 # A generic and very simple default shared library creation
12955 # command for GNU C++ for the case where it uses the native
12956 # linker, instead of GNU ld. If possible, this setting should
12957 # overridden to take advantage of the native linker features on
12958 # the platform it is being used on.
12959 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12962 # Commands to make compiler produce verbose output that lists
12963 # what "hidden" libraries, object files and flags are used when
12964 # linking a shared library.
12965 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12973 # PORTME: fill in a description of your system's C++ link characteristics
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12975 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12979 # FIXME: insert proper C++ library support
12983 if test "$host_cpu" = ia64; then
12984 # On IA64, the linker does run time linking by default, so we don't
12985 # have to do anything special.
12986 aix_use_runtimelinking=no
12987 exp_sym_flag='-Bexport'
12990 aix_use_runtimelinking=no
12992 # Test if we are trying to use run time linking or normal
12993 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12994 # need to do runtime linking.
12995 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12996 for ld_flag in $LDFLAGS; do
12999 aix_use_runtimelinking=yes
13007 exp_sym_flag='-bexport'
13008 no_entry_flag='-bnoentry'
13011 # When large executables or shared objects are built, AIX ld can
13012 # have problems creating the table of contents. If linking a library
13013 # or program results in "error TOC overflow" add -mminimal-toc to
13014 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13015 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13017 archive_cmds_CXX=''
13018 hardcode_direct_CXX=yes
13019 hardcode_direct_absolute_CXX=yes
13020 hardcode_libdir_separator_CXX=':'
13021 link_all_deplibs_CXX=yes
13022 file_list_spec_CXX='${wl}-f,'
13024 if test "$GXX" = yes; then
13025 case $host_os in aix4.[012]|aix4.[012].*)
13026 # We only want to do this on AIX 4.2 and lower, the check
13027 # below for broken collect2 doesn't work under 4.3+
13028 collect2name=`${CC} -print-prog-name=collect2`
13029 if test -f "$collect2name" &&
13030 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13032 # We have reworked collect2
13035 # We have old collect2
13036 hardcode_direct_CXX=unsupported
13037 # It fails to find uninstalled libraries when the uninstalled
13038 # path is not listed in the libpath. Setting hardcode_minus_L
13039 # to unsupported forces relinking
13040 hardcode_minus_L_CXX=yes
13041 hardcode_libdir_flag_spec_CXX='-L$libdir'
13042 hardcode_libdir_separator_CXX=
13045 shared_flag='-shared'
13046 if test "$aix_use_runtimelinking" = yes; then
13047 shared_flag="$shared_flag "'${wl}-G'
13051 if test "$host_cpu" = ia64; then
13052 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13053 # chokes on -Wl,-G. The following line is correct:
13056 if test "$aix_use_runtimelinking" = yes; then
13057 shared_flag='${wl}-G'
13059 shared_flag='${wl}-bM:SRE'
13064 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13065 # It seems that -bexpall does not export symbols beginning with
13066 # underscore (_), so it is better to generate a list of symbols to
13068 always_export_symbols_CXX=yes
13069 if test "$aix_use_runtimelinking" = yes; then
13070 # Warning - without using the other runtime loading flags (-brtl),
13071 # -berok will link without error, but may produce a broken library.
13072 allow_undefined_flag_CXX='-berok'
13073 # Determine the default libpath from the value encoded in an empty
13075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13076 /* end confdefs.h. */
13086 if ac_fn_cxx_try_link "$LINENO"; then :
13088 lt_aix_libpath_sed='
13089 /Import File Strings/,/^$/ {
13095 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13096 # Check for a 64-bit object if we didn't find anything.
13097 if test -z "$aix_libpath"; then
13098 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13101 rm -f core conftest.err conftest.$ac_objext \
13102 conftest$ac_exeext conftest.$ac_ext
13103 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13105 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13107 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"
13109 if test "$host_cpu" = ia64; then
13110 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13111 allow_undefined_flag_CXX="-z nodefs"
13112 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"
13114 # Determine the default libpath from the value encoded in an
13115 # empty executable.
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h. */
13127 if ac_fn_cxx_try_link "$LINENO"; then :
13129 lt_aix_libpath_sed='
13130 /Import File Strings/,/^$/ {
13136 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13137 # Check for a 64-bit object if we didn't find anything.
13138 if test -z "$aix_libpath"; then
13139 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13142 rm -f core conftest.err conftest.$ac_objext \
13143 conftest$ac_exeext conftest.$ac_ext
13144 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13146 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13147 # Warning - without using the other run time loading flags,
13148 # -berok will link without error, but may produce a broken library.
13149 no_undefined_flag_CXX=' ${wl}-bernotok'
13150 allow_undefined_flag_CXX=' ${wl}-berok'
13151 # Exported symbols can be pulled into shared objects from archives
13152 whole_archive_flag_spec_CXX='$convenience'
13153 archive_cmds_need_lc_CXX=yes
13154 # This is similar to how AIX traditionally builds its shared
13156 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'
13162 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13163 allow_undefined_flag_CXX=unsupported
13164 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13165 # support --undefined. This deserves some investigation. FIXME
13166 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13173 case $cc_basename in
13175 # FIXME: insert proper C++ library support
13181 cygwin* | mingw* | pw32* | cegcc*)
13182 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13183 # as there is no search path for DLLs.
13184 hardcode_libdir_flag_spec_CXX='-L$libdir'
13185 allow_undefined_flag_CXX=unsupported
13186 always_export_symbols_CXX=no
13187 enable_shared_with_static_runtimes_CXX=yes
13189 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13190 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'
13191 # If the export-symbols file already is a .def file (1st line
13192 # is EXPORTS), use it as is; otherwise, prepend...
13193 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13194 cp $export_symbols $output_objdir/$soname.def;
13196 echo EXPORTS > $output_objdir/$soname.def;
13197 cat $export_symbols >> $output_objdir/$soname.def;
13199 $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'
13204 darwin* | rhapsody*)
13207 archive_cmds_need_lc_CXX=no
13208 hardcode_direct_CXX=no
13209 hardcode_automatic_CXX=yes
13210 hardcode_shlibpath_var_CXX=unsupported
13211 whole_archive_flag_spec_CXX=''
13212 link_all_deplibs_CXX=yes
13213 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13214 case $cc_basename in
13215 ifort*) _lt_dar_can_shared=yes ;;
13216 *) _lt_dar_can_shared=$GCC ;;
13218 if test "$_lt_dar_can_shared" = "yes"; then
13219 output_verbose_link_cmd=echo
13220 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}"
13221 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13222 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}"
13223 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}"
13224 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13225 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}"
13226 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}"
13236 case $cc_basename in
13238 # FIXME: insert proper C++ library support
13242 # Green Hills C++ Compiler
13243 # FIXME: insert proper C++ library support
13247 # FIXME: insert proper C++ library support
13254 # C++ shared libraries reported to be fairly broken before
13260 archive_cmds_need_lc_CXX=no
13263 freebsd* | dragonfly*)
13264 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13273 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13274 hardcode_libdir_separator_CXX=:
13275 export_dynamic_flag_spec_CXX='${wl}-E'
13276 hardcode_direct_CXX=yes
13277 hardcode_minus_L_CXX=yes # Not in the search PATH,
13278 # but as the default
13279 # location of the library.
13281 case $cc_basename in
13283 # FIXME: insert proper C++ library support
13287 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'
13288 # Commands to make compiler produce verbose output that lists
13289 # what "hidden" libraries, object files and flags are used when
13290 # linking a shared library.
13292 # There doesn't appear to be a way to prevent this compiler from
13293 # explicitly linking system object files so we need to strip them
13294 # from the output so that they don't get included in the library
13296 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'
13299 if test "$GXX" = yes; then
13300 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'
13302 # FIXME: insert proper C++ library support
13310 if test $with_gnu_ld = no; then
13311 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13312 hardcode_libdir_separator_CXX=:
13318 export_dynamic_flag_spec_CXX='${wl}-E'
13324 hardcode_direct_CXX=no
13325 hardcode_shlibpath_var_CXX=no
13328 hardcode_direct_CXX=yes
13329 hardcode_direct_absolute_CXX=yes
13330 hardcode_minus_L_CXX=yes # Not in the search PATH,
13331 # but as the default
13332 # location of the library.
13336 case $cc_basename in
13338 # FIXME: insert proper C++ library support
13344 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13347 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13350 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13353 # Commands to make compiler produce verbose output that lists
13354 # what "hidden" libraries, object files and flags are used when
13355 # linking a shared library.
13357 # There doesn't appear to be a way to prevent this compiler from
13358 # explicitly linking system object files so we need to strip them
13359 # from the output so that they don't get included in the library
13361 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'
13364 if test "$GXX" = yes; then
13365 if test $with_gnu_ld = no; then
13368 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13371 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13374 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'
13379 # FIXME: insert proper C++ library support
13387 hardcode_direct_CXX=no
13388 hardcode_shlibpath_var_CXX=no
13389 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13390 export_dynamic_flag_spec_CXX='${wl}-E'
13391 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13392 # Instead, shared libraries are loaded at an image base (0x10000000 by
13393 # default) and relocated if they conflict, which is a slow very memory
13394 # consuming and fragmenting process. To avoid this, we pick a random,
13395 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13396 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13397 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'
13398 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'
13401 case $cc_basename in
13404 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'
13406 # Archives containing C++ object files must be created using
13407 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13408 # necessary to make sure instantiated templates are included
13410 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13413 if test "$GXX" = yes; then
13414 if test "$with_gnu_ld" = no; then
13415 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13417 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'
13420 link_all_deplibs_CXX=yes
13423 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13424 hardcode_libdir_separator_CXX=:
13425 inherit_rpath_CXX=yes
13428 linux* | k*bsd*-gnu)
13429 case $cc_basename in
13431 # Kuck and Associates, Inc. (KAI) C++ Compiler
13433 # KCC will only create a shared library if the output file
13434 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13435 # to its proper name (with version) after linking.
13436 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'
13437 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'
13438 # Commands to make compiler produce verbose output that lists
13439 # what "hidden" libraries, object files and flags are used when
13440 # linking a shared library.
13442 # There doesn't appear to be a way to prevent this compiler from
13443 # explicitly linking system object files so we need to strip them
13444 # from the output so that they don't get included in the library
13446 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'
13448 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13449 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13451 # Archives containing C++ object files must be created using
13452 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13453 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13458 # version 8.0 and above of icpc choke on multiply defined symbols
13459 # if we add $predep_objects and $postdep_objects, however 7.1 and
13460 # earlier do not add the objects themselves.
13461 case `$CC -V 2>&1` in
13463 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13464 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'
13466 *) # Version 8.0 or newer
13469 ia64*) tmp_idyn=' -i_dynamic';;
13471 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13472 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'
13475 archive_cmds_need_lc_CXX=no
13476 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13477 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13478 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13481 # Portland Group C++ compiler
13483 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13484 prelink_cmds_CXX='tpldir=Template.dir~
13486 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13487 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13488 old_archive_cmds_CXX='tpldir=Template.dir~
13490 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13491 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13493 archive_cmds_CXX='tpldir=Template.dir~
13495 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13496 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13497 archive_expsym_cmds_CXX='tpldir=Template.dir~
13499 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13500 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13502 *) # Version 6 will use weak symbols
13503 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13504 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'
13508 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13509 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13510 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'
13514 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13515 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'
13517 runpath_var=LD_RUN_PATH
13518 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13519 hardcode_libdir_separator_CXX=:
13521 # Commands to make compiler produce verbose output that lists
13522 # what "hidden" libraries, object files and flags are used when
13523 # linking a shared library.
13525 # There doesn't appear to be a way to prevent this compiler from
13526 # explicitly linking system object files so we need to strip them
13527 # from the output so that they don't get included in the library
13529 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'
13532 # IBM XL 8.0 on PPC, with GNU ld
13533 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13534 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13535 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13536 if test "x$supports_anon_versioning" = xyes; then
13537 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13538 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13539 echo "local: *; };" >> $output_objdir/$libname.ver~
13540 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13544 case `$CC -V 2>&1 | sed 5q` in
13547 no_undefined_flag_CXX=' -zdefs'
13548 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13549 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'
13550 hardcode_libdir_flag_spec_CXX='-R$libdir'
13551 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'
13552 compiler_needs_object_CXX=yes
13554 # Not sure whether something based on
13555 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13557 output_verbose_link_cmd='echo'
13559 # Archives containing C++ object files must be created using
13560 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13561 # necessary to make sure instantiated templates are included
13563 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13571 # FIXME: insert proper C++ library support
13576 # FIXME: insert proper C++ library support
13581 case $cc_basename in
13583 # FIXME: insert proper C++ library support
13587 # FIXME: insert proper C++ library support
13594 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13595 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13597 hardcode_libdir_flag_spec_CXX='-R$libdir'
13598 hardcode_direct_CXX=yes
13599 hardcode_shlibpath_var_CXX=no
13601 # Workaround some broken pre-1.5 toolchains
13602 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13610 # C++ shared libraries are fairly broken
13615 if test -f /usr/libexec/ld.so; then
13616 hardcode_direct_CXX=yes
13617 hardcode_shlibpath_var_CXX=no
13618 hardcode_direct_absolute_CXX=yes
13619 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13620 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13621 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13622 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13623 export_dynamic_flag_spec_CXX='${wl}-E'
13624 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13626 output_verbose_link_cmd=echo
13632 osf3* | osf4* | osf5*)
13633 case $cc_basename in
13635 # Kuck and Associates, Inc. (KAI) C++ Compiler
13637 # KCC will only create a shared library if the output file
13638 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13639 # to its proper name (with version) after linking.
13640 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'
13642 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13643 hardcode_libdir_separator_CXX=:
13645 # Archives containing C++ object files must be created using
13646 # the KAI C++ compiler.
13648 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13649 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13653 # Rational C++ 2.4.1
13654 # FIXME: insert proper C++ library support
13660 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13661 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'
13662 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13665 allow_undefined_flag_CXX=' -expect_unresolved \*'
13666 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'
13667 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13668 echo "-hidden">> $lib.exp~
13669 $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~
13671 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13675 hardcode_libdir_separator_CXX=:
13677 # Commands to make compiler produce verbose output that lists
13678 # what "hidden" libraries, object files and flags are used when
13679 # linking a shared library.
13681 # There doesn't appear to be a way to prevent this compiler from
13682 # explicitly linking system object files so we need to strip them
13683 # from the output so that they don't get included in the library
13685 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'
13688 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13689 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13692 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'
13695 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'
13699 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13700 hardcode_libdir_separator_CXX=:
13702 # Commands to make compiler produce verbose output that lists
13703 # what "hidden" libraries, object files and flags are used when
13704 # linking a shared library.
13705 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13708 # FIXME: insert proper C++ library support
13716 # FIXME: insert proper C++ library support
13721 case $cc_basename in
13724 # FIXME: insert proper C++ library support
13729 # FIXME: insert proper C++ library support
13733 # FIXME: insert proper C++ library support
13740 case $cc_basename in
13742 # Sun C++ 4.2, 5.x and Centerline C++
13743 archive_cmds_need_lc_CXX=yes
13744 no_undefined_flag_CXX=' -zdefs'
13745 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13746 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13747 $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'
13749 hardcode_libdir_flag_spec_CXX='-R$libdir'
13750 hardcode_shlibpath_var_CXX=no
13752 solaris2.[0-5] | solaris2.[0-5].*) ;;
13754 # The compiler driver will combine and reorder linker options,
13755 # but understands `-z linker_flag'.
13756 # Supported since Solaris 2.6 (maybe 2.5.1?)
13757 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13760 link_all_deplibs_CXX=yes
13762 output_verbose_link_cmd='echo'
13764 # Archives containing C++ object files must be created using
13765 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13766 # necessary to make sure instantiated templates are included
13768 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13771 # Green Hills C++ Compiler
13772 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13774 # The C++ compiler must be used to create the archive.
13775 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13778 # GNU C++ compiler with Solaris linker
13779 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13780 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13781 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13782 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13783 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13784 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13786 # Commands to make compiler produce verbose output that lists
13787 # what "hidden" libraries, object files and flags are used when
13788 # linking a shared library.
13789 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13791 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13793 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13794 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13795 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13797 # Commands to make compiler produce verbose output that lists
13798 # what "hidden" libraries, object files and flags are used when
13799 # linking a shared library.
13800 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13803 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13805 solaris2.[0-5] | solaris2.[0-5].*) ;;
13807 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13815 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13816 no_undefined_flag_CXX='${wl}-z,text'
13817 archive_cmds_need_lc_CXX=no
13818 hardcode_shlibpath_var_CXX=no
13819 runpath_var='LD_RUN_PATH'
13821 case $cc_basename in
13823 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13824 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13827 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13828 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13833 sysv5* | sco3.2v5* | sco5v6*)
13834 # Note: We can NOT use -z defs as we might desire, because we do not
13835 # link with -lc, and that would cause any symbols used from libc to
13836 # always be unresolved, which means just about no library would
13837 # ever link correctly. If we're not using GNU ld we use -z text
13838 # though, which does catch some bad symbols but isn't as heavy-handed
13840 no_undefined_flag_CXX='${wl}-z,text'
13841 allow_undefined_flag_CXX='${wl}-z,nodefs'
13842 archive_cmds_need_lc_CXX=no
13843 hardcode_shlibpath_var_CXX=no
13844 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13845 hardcode_libdir_separator_CXX=':'
13846 link_all_deplibs_CXX=yes
13847 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13848 runpath_var='LD_RUN_PATH'
13850 case $cc_basename in
13852 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13853 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13856 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13857 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13863 case $cc_basename in
13865 # NonStop-UX NCC 3.20
13866 # FIXME: insert proper C++ library support
13870 # FIXME: insert proper C++ library support
13877 # FIXME: insert proper C++ library support
13882 # FIXME: insert proper C++ library support
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13888 $as_echo "$ld_shlibs_CXX" >&6; }
13889 test "$ld_shlibs_CXX" = no && can_build_shared=no
13895 ## There is no encapsulation within the following macros, do not change
13896 ## the running order or otherwise move them around unless you know exactly
13897 ## what you are doing...
13898 # Dependencies to place before and after the object being linked:
13899 predep_objects_CXX=
13900 postdep_objects_CXX=
13903 compiler_lib_search_path_CXX=
13905 cat > conftest.$ac_ext <<_LT_EOF
13909 Foo (void) { a = 0; }
13915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13916 (eval $ac_compile) 2>&5
13918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13919 test $ac_status = 0; }; then
13920 # Parse the compiler output and extract the necessary
13921 # objects, libraries and library flags.
13923 # Sentinel used to keep track of whether or not we are before
13924 # the conftest object file.
13925 pre_test_object_deps_done=no
13927 for p in `eval "$output_verbose_link_cmd"`; do
13931 # Some compilers place space between "-{L,R}" and the path.
13932 # Remove the space.
13933 if test $p = "-L" ||
13934 test $p = "-R"; then
13941 if test "$pre_test_object_deps_done" = no; then
13944 # Internal compiler library paths should come after those
13945 # provided the user. The postdeps already come after the
13946 # user supplied libs so there is no need to process them.
13947 if test -z "$compiler_lib_search_path_CXX"; then
13948 compiler_lib_search_path_CXX="${prev}${p}"
13950 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13953 # The "-l" case would never come before the object being
13954 # linked, so don't bother handling this case.
13957 if test -z "$postdeps_CXX"; then
13958 postdeps_CXX="${prev}${p}"
13960 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13966 # This assumes that the test object file only shows up
13967 # once in the compiler output.
13968 if test "$p" = "conftest.$objext"; then
13969 pre_test_object_deps_done=yes
13973 if test "$pre_test_object_deps_done" = no; then
13974 if test -z "$predep_objects_CXX"; then
13975 predep_objects_CXX="$p"
13977 predep_objects_CXX="$predep_objects_CXX $p"
13980 if test -z "$postdep_objects_CXX"; then
13981 postdep_objects_CXX="$p"
13983 postdep_objects_CXX="$postdep_objects_CXX $p"
13988 *) ;; # Ignore the rest.
13996 echo "libtool.m4: error: problem compiling CXX test program"
13999 $RM -f confest.$objext
14001 # PORTME: override above test on systems where it is broken
14004 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14005 # hack all around it, let's just trust "g++" to DTRT.
14006 predep_objects_CXX=
14007 postdep_objects_CXX=
14012 case `$CC -V 2>&1 | sed 5q` in
14016 # The more standards-conforming stlport4 library is
14017 # incompatible with the Cstd library. Avoid specifying
14018 # it if it's in CXXFLAGS. Ignore libCrun as
14019 # -library=stlport4 depends on it.
14020 case " $CXX $CXXFLAGS " in
14021 *" -library=stlport4 "*)
14022 solaris_use_stlport4=yes
14026 if test "$solaris_use_stlport4" != yes; then
14027 postdeps_CXX='-library=Cstd -library=Crun'
14034 case $cc_basename in
14036 # The more standards-conforming stlport4 library is
14037 # incompatible with the Cstd library. Avoid specifying
14038 # it if it's in CXXFLAGS. Ignore libCrun as
14039 # -library=stlport4 depends on it.
14040 case " $CXX $CXXFLAGS " in
14041 *" -library=stlport4 "*)
14042 solaris_use_stlport4=yes
14046 # Adding this requires a known-good setup of shared libraries for
14047 # Sun compiler versions before 5.6, else PIC objects from an old
14048 # archive will be linked into the output, leading to subtle bugs.
14049 if test "$solaris_use_stlport4" != yes; then
14050 postdeps_CXX='-library=Cstd -library=Crun'
14058 case " $postdeps_CXX " in
14059 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14061 compiler_lib_search_dirs_CXX=
14062 if test -n "${compiler_lib_search_path_CXX}"; then
14063 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14096 lt_prog_compiler_wl_CXX=
14097 lt_prog_compiler_pic_CXX=
14098 lt_prog_compiler_static_CXX=
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14101 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14103 # C++ specific cases for pic, static, wl, etc.
14104 if test "$GXX" = yes; then
14105 lt_prog_compiler_wl_CXX='-Wl,'
14106 lt_prog_compiler_static_CXX='-static'
14110 # All AIX code is PIC.
14111 if test "$host_cpu" = ia64; then
14112 # AIX 5 now supports IA64 processor
14113 lt_prog_compiler_static_CXX='-Bstatic'
14120 # see comment about AmigaOS4 .so support
14121 lt_prog_compiler_pic_CXX='-fPIC'
14124 # FIXME: we need at least 68020 code to build shared libraries, but
14125 # adding the `-m68020' flag to GCC prevents building anything better,
14127 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14132 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14133 # PIC is the default for these OSes.
14135 mingw* | cygwin* | os2* | pw32* | cegcc*)
14136 # This hack is so that the source file can tell whether it is being
14137 # built for inclusion in a dll (and should export symbols for example).
14138 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14139 # (--disable-auto-import) libraries
14140 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14142 darwin* | rhapsody*)
14143 # PIC is the default on this platform
14144 # Common symbols not allowed in MH_DYLIB files
14145 lt_prog_compiler_pic_CXX='-fno-common'
14148 # DJGPP does not support shared libraries at all
14149 lt_prog_compiler_pic_CXX=
14152 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14153 # Instead, we relocate shared libraries at runtime.
14156 if test -d /usr/nec; then
14157 lt_prog_compiler_pic_CXX=-Kconform_pic
14161 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14162 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14163 # sets the default TLS model and affects inlining.
14168 lt_prog_compiler_pic_CXX='-fPIC'
14173 # QNX uses GNU C++, but need to define -shared option too, otherwise
14174 # it will coredump.
14175 lt_prog_compiler_pic_CXX='-fPIC -shared'
14178 lt_prog_compiler_pic_CXX='-fPIC'
14184 # All AIX code is PIC.
14185 if test "$host_cpu" = ia64; then
14186 # AIX 5 now supports IA64 processor
14187 lt_prog_compiler_static_CXX='-Bstatic'
14189 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14193 case $cc_basename in
14195 # Green Hills C++ Compiler
14196 # _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"
14201 case $cc_basename in
14203 lt_prog_compiler_pic_CXX='-KPIC'
14206 # Green Hills C++ Compiler
14207 lt_prog_compiler_pic_CXX='-pic'
14213 freebsd* | dragonfly*)
14214 # FreeBSD uses GNU C++
14216 hpux9* | hpux10* | hpux11*)
14217 case $cc_basename in
14219 lt_prog_compiler_wl_CXX='-Wl,'
14220 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14221 if test "$host_cpu" != ia64; then
14222 lt_prog_compiler_pic_CXX='+Z'
14226 lt_prog_compiler_wl_CXX='-Wl,'
14227 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14233 lt_prog_compiler_pic_CXX='+Z'
14242 # This is c89, which is MS Visual C++ (no shared libs)
14243 # Anyone wants to do a port?
14245 irix5* | irix6* | nonstopux*)
14246 case $cc_basename in
14248 lt_prog_compiler_wl_CXX='-Wl,'
14249 lt_prog_compiler_static_CXX='-non_shared'
14250 # CC pic flag -KPIC is the default.
14256 linux* | k*bsd*-gnu)
14257 case $cc_basename in
14260 lt_prog_compiler_wl_CXX='--backend -Wl,'
14261 lt_prog_compiler_pic_CXX='-fPIC'
14264 # old Intel C++ for x86_64 which still supported -KPIC.
14265 lt_prog_compiler_wl_CXX='-Wl,'
14266 lt_prog_compiler_pic_CXX='-KPIC'
14267 lt_prog_compiler_static_CXX='-static'
14270 # Intel C++, used to be incompatible with GCC.
14271 # ICC 10 doesn't accept -KPIC any more.
14272 lt_prog_compiler_wl_CXX='-Wl,'
14273 lt_prog_compiler_pic_CXX='-fPIC'
14274 lt_prog_compiler_static_CXX='-static'
14277 # Portland Group C++ compiler
14278 lt_prog_compiler_wl_CXX='-Wl,'
14279 lt_prog_compiler_pic_CXX='-fpic'
14280 lt_prog_compiler_static_CXX='-Bstatic'
14284 # Make sure the PIC flag is empty. It appears that all Alpha
14285 # Linux and Compaq Tru64 Unix objects are PIC.
14286 lt_prog_compiler_pic_CXX=
14287 lt_prog_compiler_static_CXX='-non_shared'
14290 # IBM XL 8.0 on PPC
14291 lt_prog_compiler_wl_CXX='-Wl,'
14292 lt_prog_compiler_pic_CXX='-qpic'
14293 lt_prog_compiler_static_CXX='-qstaticlink'
14296 case `$CC -V 2>&1 | sed 5q` in
14299 lt_prog_compiler_pic_CXX='-KPIC'
14300 lt_prog_compiler_static_CXX='-Bstatic'
14301 lt_prog_compiler_wl_CXX='-Qoption ld '
14312 case $cc_basename in
14314 lt_prog_compiler_pic_CXX='-W c,exportall'
14323 # QNX uses GNU C++, but need to define -shared option too, otherwise
14324 # it will coredump.
14325 lt_prog_compiler_pic_CXX='-fPIC -shared'
14327 osf3* | osf4* | osf5*)
14328 case $cc_basename in
14330 lt_prog_compiler_wl_CXX='--backend -Wl,'
14333 # Rational C++ 2.4.1
14334 lt_prog_compiler_pic_CXX='-pic'
14337 # Digital/Compaq C++
14338 lt_prog_compiler_wl_CXX='-Wl,'
14339 # Make sure the PIC flag is empty. It appears that all Alpha
14340 # Linux and Compaq Tru64 Unix objects are PIC.
14341 lt_prog_compiler_pic_CXX=
14342 lt_prog_compiler_static_CXX='-non_shared'
14351 case $cc_basename in
14353 # Sun C++ 4.2, 5.x and Centerline C++
14354 lt_prog_compiler_pic_CXX='-KPIC'
14355 lt_prog_compiler_static_CXX='-Bstatic'
14356 lt_prog_compiler_wl_CXX='-Qoption ld '
14359 # Green Hills C++ Compiler
14360 lt_prog_compiler_pic_CXX='-PIC'
14367 case $cc_basename in
14370 lt_prog_compiler_pic_CXX='-pic'
14371 lt_prog_compiler_static_CXX='-Bstatic'
14375 lt_prog_compiler_pic_CXX='-pic'
14381 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14382 case $cc_basename in
14384 lt_prog_compiler_wl_CXX='-Wl,'
14385 lt_prog_compiler_pic_CXX='-KPIC'
14386 lt_prog_compiler_static_CXX='-Bstatic'
14391 case $cc_basename in
14393 # NonStop-UX NCC 3.20
14394 lt_prog_compiler_pic_CXX='-KPIC'
14403 lt_prog_compiler_can_build_shared_CXX=no
14409 # For platforms which do not support PIC, -DPIC is meaningless:
14411 lt_prog_compiler_pic_CXX=
14414 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14418 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14423 # Check to make sure the PIC flag actually works.
14425 if test -n "$lt_prog_compiler_pic_CXX"; then
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14427 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14428 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14429 $as_echo_n "(cached) " >&6
14431 lt_cv_prog_compiler_pic_works_CXX=no
14432 ac_outfile=conftest.$ac_objext
14433 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14434 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14435 # Insert the option either (1) after the last *FLAGS variable, or
14436 # (2) before a word containing "conftest.", or (3) at the end.
14437 # Note that $ac_compile itself does not contain backslashes and begins
14438 # with a dollar sign (not a hyphen), so the echo should work correctly.
14439 # The option is referenced via a variable to avoid confusing sed.
14440 lt_compile=`echo "$ac_compile" | $SED \
14441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14443 -e 's:$: $lt_compiler_flag:'`
14444 (eval echo "\"\$as_me:14444: $lt_compile\"" >&5)
14445 (eval "$lt_compile" 2>conftest.err)
14447 cat conftest.err >&5
14448 echo "$as_me:14448: \$? = $ac_status" >&5
14449 if (exit $ac_status) && test -s "$ac_outfile"; then
14450 # The compiler can only warn and ignore the option if not recognized
14451 # So say no if there are warnings other than the usual output.
14452 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14453 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14454 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14455 lt_cv_prog_compiler_pic_works_CXX=yes
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14462 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14464 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14465 case $lt_prog_compiler_pic_CXX in
14467 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14470 lt_prog_compiler_pic_CXX=
14471 lt_prog_compiler_can_build_shared_CXX=no
14479 # Check to make sure the static flag actually works.
14481 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14483 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14484 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14485 $as_echo_n "(cached) " >&6
14487 lt_cv_prog_compiler_static_works_CXX=no
14488 save_LDFLAGS="$LDFLAGS"
14489 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14490 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14491 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14492 # The linker can only warn and ignore the option if not recognized
14493 # So say no if there are warnings
14494 if test -s conftest.err; then
14495 # Append any errors to the config.log.
14496 cat conftest.err 1>&5
14497 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14499 if diff conftest.exp conftest.er2 >/dev/null; then
14500 lt_cv_prog_compiler_static_works_CXX=yes
14503 lt_cv_prog_compiler_static_works_CXX=yes
14507 LDFLAGS="$save_LDFLAGS"
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14511 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14513 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14516 lt_prog_compiler_static_CXX=
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14523 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14524 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14525 $as_echo_n "(cached) " >&6
14527 lt_cv_prog_compiler_c_o_CXX=no
14528 $RM -r conftest 2>/dev/null
14532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14534 lt_compiler_flag="-o out/conftest2.$ac_objext"
14535 # Insert the option either (1) after the last *FLAGS variable, or
14536 # (2) before a word containing "conftest.", or (3) at the end.
14537 # Note that $ac_compile itself does not contain backslashes and begins
14538 # with a dollar sign (not a hyphen), so the echo should work correctly.
14539 lt_compile=`echo "$ac_compile" | $SED \
14540 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14542 -e 's:$: $lt_compiler_flag:'`
14543 (eval echo "\"\$as_me:14543: $lt_compile\"" >&5)
14544 (eval "$lt_compile" 2>out/conftest.err)
14546 cat out/conftest.err >&5
14547 echo "$as_me:14547: \$? = $ac_status" >&5
14548 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14550 # The compiler can only warn and ignore the option if not recognized
14551 # So say no if there are warnings
14552 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14553 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14554 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14555 lt_cv_prog_compiler_c_o_CXX=yes
14560 # SGI C++ compiler will create directory out/ii_files/ for
14561 # template instantiation
14562 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14563 $RM out/* && rmdir out
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14570 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14575 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14576 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14577 $as_echo_n "(cached) " >&6
14579 lt_cv_prog_compiler_c_o_CXX=no
14580 $RM -r conftest 2>/dev/null
14584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14586 lt_compiler_flag="-o out/conftest2.$ac_objext"
14587 # Insert the option either (1) after the last *FLAGS variable, or
14588 # (2) before a word containing "conftest.", or (3) at the end.
14589 # Note that $ac_compile itself does not contain backslashes and begins
14590 # with a dollar sign (not a hyphen), so the echo should work correctly.
14591 lt_compile=`echo "$ac_compile" | $SED \
14592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14594 -e 's:$: $lt_compiler_flag:'`
14595 (eval echo "\"\$as_me:14595: $lt_compile\"" >&5)
14596 (eval "$lt_compile" 2>out/conftest.err)
14598 cat out/conftest.err >&5
14599 echo "$as_me:14599: \$? = $ac_status" >&5
14600 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14602 # The compiler can only warn and ignore the option if not recognized
14603 # So say no if there are warnings
14604 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14605 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14606 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14607 lt_cv_prog_compiler_c_o_CXX=yes
14612 # SGI C++ compiler will create directory out/ii_files/ for
14613 # template instantiation
14614 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14615 $RM out/* && rmdir out
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14622 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14627 hard_links="nottested"
14628 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14629 # do not overwrite the value of need_locks provided by the user
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14631 $as_echo_n "checking if we can lock with hard links... " >&6; }
14634 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14636 ln conftest.a conftest.b 2>&5 || hard_links=no
14637 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14639 $as_echo "$hard_links" >&6; }
14640 if test "$hard_links" = no; then
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14642 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14652 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14654 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14657 # If we're using GNU nm, then we don't want the "-C" option.
14658 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14659 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14660 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'
14662 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'
14666 export_symbols_cmds_CXX="$ltdll_cmds"
14668 cygwin* | mingw* | cegcc*)
14669 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'
14672 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14675 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14678 $as_echo "$ld_shlibs_CXX" >&6; }
14679 test "$ld_shlibs_CXX" = no && can_build_shared=no
14681 with_gnu_ld_CXX=$with_gnu_ld
14689 # Do we need to explicitly link libc?
14691 case "x$archive_cmds_need_lc_CXX" in
14693 # Assume -lc should be added
14694 archive_cmds_need_lc_CXX=yes
14696 if test "$enable_shared" = yes && test "$GCC" = yes; then
14697 case $archive_cmds_CXX in
14699 # FIXME: we may have to deal with multi-command sequences.
14702 # Test whether the compiler implicitly links with -lc since on some
14703 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14704 # to ld, don't add -lc before -lgcc.
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14706 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14708 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14711 (eval $ac_compile) 2>&5
14713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14714 test $ac_status = 0; } 2>conftest.err; then
14717 libobjs=conftest.$ac_objext
14719 wl=$lt_prog_compiler_wl_CXX
14720 pic_flag=$lt_prog_compiler_pic_CXX
14726 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14727 allow_undefined_flag_CXX=
14728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14729 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14732 test $ac_status = 0; }
14734 archive_cmds_need_lc_CXX=no
14736 archive_cmds_need_lc_CXX=yes
14738 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14740 cat conftest.err 1>&5
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14744 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14815 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14817 library_names_spec=
14818 libname_spec='lib$name'
14822 postuninstall_cmds=
14826 shlibpath_overrides_runpath=unknown
14828 dynamic_linker="$host_os ld.so"
14829 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14830 need_lib_prefix=unknown
14831 hardcode_into_libs=no
14833 # when you set need_version to no, make sure it does not cause -set_version
14834 # flags to be left without arguments
14835 need_version=unknown
14840 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14841 shlibpath_var=LIBPATH
14843 # AIX 3 has no versioning support, so we append a major version to the name.
14844 soname_spec='${libname}${release}${shared_ext}$major'
14851 hardcode_into_libs=yes
14852 if test "$host_cpu" = ia64; then
14853 # AIX 5 supports IA64
14854 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14855 shlibpath_var=LD_LIBRARY_PATH
14857 # With GCC up to 2.95.x, collect2 would create an import file
14858 # for dependence libraries. The import file would start with
14859 # the line `#! .'. This would cause the generated library to
14860 # depend on `.', always an invalid library. This was fixed in
14861 # development snapshots of GCC prior to 3.0.
14863 aix4 | aix4.[01] | aix4.[01].*)
14864 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14866 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14869 can_build_shared=no
14873 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14874 # soname into executable. Probably we can add versioning support to
14875 # collect2, so additional links can be useful in future.
14876 if test "$aix_use_runtimelinking" = yes; then
14877 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14878 # instead of lib<name>.a to let people know that these are not
14879 # typical AIX shared libraries.
14880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14882 # We preserve .a as extension for shared libraries through AIX4.2
14883 # and later when we are not doing run time linking.
14884 library_names_spec='${libname}${release}.a $libname.a'
14885 soname_spec='${libname}${release}${shared_ext}$major'
14887 shlibpath_var=LIBPATH
14894 # Since July 2007 AmigaOS4 officially supports .so libraries.
14895 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14899 library_names_spec='$libname.ixlibrary $libname.a'
14900 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14901 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'
14907 library_names_spec='${libname}${shared_ext}'
14908 dynamic_linker="$host_os ld.so"
14909 shlibpath_var=LIBRARY_PATH
14915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14916 soname_spec='${libname}${release}${shared_ext}$major'
14917 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14918 shlibpath_var=LD_LIBRARY_PATH
14919 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14920 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14921 # the default ld.so.conf also contains /usr/contrib/lib and
14922 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14923 # libtool to hard-code these into programs
14926 cygwin* | mingw* | pw32* | cegcc*)
14927 version_type=windows
14932 case $GCC,$host_os in
14933 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14934 library_names_spec='$libname.dll.a'
14935 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14936 postinstall_cmds='base_file=`basename \${file}`~
14937 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14938 dldir=$destdir/`dirname \$dlpath`~
14939 test -d \$dldir || mkdir -p \$dldir~
14940 $install_prog $dir/$dlname \$dldir/$dlname~
14941 chmod a+x \$dldir/$dlname~
14942 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14943 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14945 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14946 dlpath=$dir/\$dldll~
14948 shlibpath_overrides_runpath=yes
14952 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14953 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14954 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14957 # MinGW DLLs use traditional 'lib' prefix
14958 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14959 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14960 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14961 # It is most probably a Windows format PATH printed by
14962 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14963 # path with ; separators, and with drive letters. We can handle the
14964 # drive letters (cygwin fileutils understands them), so leave them,
14965 # especially as we might pass files found there to a mingw objdump,
14966 # which wouldn't understand a cygwinified path. Ahh.
14967 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14969 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14973 # pw32 DLLs use 'pw' prefix rather than 'lib'
14974 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14980 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14983 dynamic_linker='Win32 ld.exe'
14984 # FIXME: first we should search . and the directory the executable is in
14988 darwin* | rhapsody*)
14989 dynamic_linker="$host_os dyld"
14990 version_type=darwin
14993 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14994 soname_spec='${libname}${release}${major}$shared_ext'
14995 shlibpath_overrides_runpath=yes
14996 shlibpath_var=DYLD_LIBRARY_PATH
14997 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14999 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15007 soname_spec='${libname}${release}${shared_ext}$major'
15008 shlibpath_var=LD_LIBRARY_PATH
15015 freebsd* | dragonfly*)
15016 # DragonFly does not have aout. When/if they implement a new
15017 # versioning mechanism, adjust this.
15018 if test -x /usr/bin/objformat; then
15019 objformat=`/usr/bin/objformat`
15022 freebsd[123]*) objformat=aout ;;
15023 *) objformat=elf ;;
15026 version_type=freebsd-$objformat
15027 case $version_type in
15029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15034 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15038 shlibpath_var=LD_LIBRARY_PATH
15041 shlibpath_overrides_runpath=yes
15043 freebsd3.[01]* | freebsdelf3.[01]*)
15044 shlibpath_overrides_runpath=yes
15045 hardcode_into_libs=yes
15047 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15048 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15049 shlibpath_overrides_runpath=no
15050 hardcode_into_libs=yes
15052 *) # from 4.6 on, and DragonFly
15053 shlibpath_overrides_runpath=yes
15054 hardcode_into_libs=yes
15063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15064 soname_spec='${libname}${release}${shared_ext}$major'
15065 shlibpath_var=LD_LIBRARY_PATH
15066 hardcode_into_libs=yes
15069 hpux9* | hpux10* | hpux11*)
15070 # Give a soname corresponding to the major version so that dld.sl refuses to
15071 # link against other versions.
15078 hardcode_into_libs=yes
15079 dynamic_linker="$host_os dld.so"
15080 shlibpath_var=LD_LIBRARY_PATH
15081 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15083 soname_spec='${libname}${release}${shared_ext}$major'
15084 if test "X$HPUX_IA64_MODE" = X32; then
15085 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15087 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15089 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15093 hardcode_into_libs=yes
15094 dynamic_linker="$host_os dld.sl"
15095 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15096 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15098 soname_spec='${libname}${release}${shared_ext}$major'
15099 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15100 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15104 dynamic_linker="$host_os dld.sl"
15105 shlibpath_var=SHLIB_PATH
15106 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15108 soname_spec='${libname}${release}${shared_ext}$major'
15111 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15112 postinstall_cmds='chmod 555 $lib'
15119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15120 soname_spec='${libname}${release}${shared_ext}$major'
15121 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15122 shlibpath_var=LD_LIBRARY_PATH
15123 shlibpath_overrides_runpath=no
15124 hardcode_into_libs=yes
15127 irix5* | irix6* | nonstopux*)
15129 nonstopux*) version_type=nonstopux ;;
15131 if test "$lt_cv_prog_gnu_ld" = yes; then
15139 soname_spec='${libname}${release}${shared_ext}$major'
15140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15142 irix5* | nonstopux*)
15143 libsuff= shlibsuff=
15146 case $LD in # libtool.m4 will add one of these switches to LD
15147 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15148 libsuff= shlibsuff= libmagic=32-bit;;
15149 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15150 libsuff=32 shlibsuff=N32 libmagic=N32;;
15151 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15152 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15153 *) libsuff= shlibsuff= libmagic=never-match;;
15157 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15158 shlibpath_overrides_runpath=no
15159 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15160 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15161 hardcode_into_libs=yes
15164 # No shared lib support for Linux oldld, aout, or coff.
15165 linux*oldld* | linux*aout* | linux*coff*)
15169 # This must be Linux ELF.
15170 linux* | k*bsd*-gnu)
15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15175 soname_spec='${libname}${release}${shared_ext}$major'
15176 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15177 shlibpath_var=LD_LIBRARY_PATH
15178 shlibpath_overrides_runpath=no
15179 # Some binutils ld are patched to set DT_RUNPATH
15180 save_LDFLAGS=$LDFLAGS
15181 save_libdir=$libdir
15182 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15183 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15185 /* end confdefs.h. */
15195 if ac_fn_cxx_try_link "$LINENO"; then :
15196 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15197 shlibpath_overrides_runpath=yes
15200 rm -f core conftest.err conftest.$ac_objext \
15201 conftest$ac_exeext conftest.$ac_ext
15202 LDFLAGS=$save_LDFLAGS
15203 libdir=$save_libdir
15205 # This implies no fast_install, which is unacceptable.
15206 # Some rework will be needed to allow for fast_install
15207 # before this can be enabled.
15208 hardcode_into_libs=yes
15210 # Append ld.so.conf contents to the search path
15211 if test -f /etc/ld.so.conf; then
15212 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' ' '`
15213 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15216 # We used to test for /lib/ld.so.1 and disable shared libraries on
15217 # powerpc, because MkLinux only supported shared libraries with the
15218 # GNU dynamic linker. Since this was broken with cross compilers,
15219 # most powerpc-linux boxes support dynamic linking these days and
15220 # people can always --disable-shared, the test was removed, and we
15221 # assume the GNU/Linux dynamic linker is in use.
15222 dynamic_linker='GNU/Linux ld.so'
15229 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15232 dynamic_linker='NetBSD (a.out) ld.so'
15234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15235 soname_spec='${libname}${release}${shared_ext}$major'
15236 dynamic_linker='NetBSD ld.elf_so'
15238 shlibpath_var=LD_LIBRARY_PATH
15239 shlibpath_overrides_runpath=yes
15240 hardcode_into_libs=yes
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246 shlibpath_var=LD_LIBRARY_PATH
15247 shlibpath_overrides_runpath=yes
15254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15255 soname_spec='${libname}${release}${shared_ext}$major'
15256 shlibpath_var=LD_LIBRARY_PATH
15257 shlibpath_overrides_runpath=no
15258 hardcode_into_libs=yes
15259 dynamic_linker='ldqnx.so'
15264 sys_lib_dlsearch_path_spec="/usr/lib"
15266 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15268 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15269 *) need_version=no ;;
15271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15273 shlibpath_var=LD_LIBRARY_PATH
15274 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15276 openbsd2.[89] | openbsd2.[89].*)
15277 shlibpath_overrides_runpath=no
15280 shlibpath_overrides_runpath=yes
15284 shlibpath_overrides_runpath=yes
15289 libname_spec='$name'
15292 library_names_spec='$libname${shared_ext} $libname.a'
15293 dynamic_linker='OS/2 ld.exe'
15294 shlibpath_var=LIBPATH
15297 osf3* | osf4* | osf5*)
15301 soname_spec='${libname}${release}${shared_ext}$major'
15302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15303 shlibpath_var=LD_LIBRARY_PATH
15304 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15305 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15317 soname_spec='${libname}${release}${shared_ext}$major'
15318 shlibpath_var=LD_LIBRARY_PATH
15319 shlibpath_overrides_runpath=yes
15320 hardcode_into_libs=yes
15321 # ldd complains unless libraries are executable
15322 postinstall_cmds='chmod +x $lib'
15327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15328 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15329 shlibpath_var=LD_LIBRARY_PATH
15330 shlibpath_overrides_runpath=yes
15331 if test "$with_gnu_ld" = yes; then
15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340 soname_spec='${libname}${release}${shared_ext}$major'
15341 shlibpath_var=LD_LIBRARY_PATH
15342 case $host_vendor in
15344 shlibpath_overrides_runpath=no
15346 runpath_var=LD_RUN_PATH
15354 shlibpath_overrides_runpath=no
15355 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15361 if test -d /usr/nec ;then
15363 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15364 soname_spec='$libname${shared_ext}.$major'
15365 shlibpath_var=LD_LIBRARY_PATH
15369 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15370 version_type=freebsd-elf
15373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15374 soname_spec='${libname}${release}${shared_ext}$major'
15375 shlibpath_var=LD_LIBRARY_PATH
15376 shlibpath_overrides_runpath=yes
15377 hardcode_into_libs=yes
15378 if test "$with_gnu_ld" = yes; then
15379 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15381 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15384 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15388 sys_lib_dlsearch_path_spec='/usr/lib'
15392 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15397 shlibpath_var=LD_LIBRARY_PATH
15398 shlibpath_overrides_runpath=no
15399 hardcode_into_libs=yes
15404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15405 soname_spec='${libname}${release}${shared_ext}$major'
15406 shlibpath_var=LD_LIBRARY_PATH
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15414 $as_echo "$dynamic_linker" >&6; }
15415 test "$dynamic_linker" = no && can_build_shared=no
15417 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15418 if test "$GCC" = yes; then
15419 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15422 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15423 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15425 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15426 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15465 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15466 hardcode_action_CXX=
15467 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15468 test -n "$runpath_var_CXX" ||
15469 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15471 # We can hardcode non-existent directories.
15472 if test "$hardcode_direct_CXX" != no &&
15473 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15474 # have to relink, otherwise we might link with an installed library
15475 # when we should be linking with a yet-to-be-installed one
15476 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15477 test "$hardcode_minus_L_CXX" != no; then
15478 # Linking always hardcodes the temporary library directory.
15479 hardcode_action_CXX=relink
15481 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15482 hardcode_action_CXX=immediate
15485 # We cannot hardcode anything, or else we can only hardcode existing
15487 hardcode_action_CXX=unsupported
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15490 $as_echo "$hardcode_action_CXX" >&6; }
15492 if test "$hardcode_action_CXX" = relink ||
15493 test "$inherit_rpath_CXX" = yes; then
15494 # Fast installation is not supported
15495 enable_fast_install=no
15496 elif test "$shlibpath_overrides_runpath" = yes ||
15497 test "$enable_shared" = no; then
15498 # Fast installation is not necessary
15499 enable_fast_install=needless
15508 fi # test -n "$compiler"
15514 with_gnu_ld=$lt_save_with_gnu_ld
15515 lt_cv_path_LDCXX=$lt_cv_path_LD
15516 lt_cv_path_LD=$lt_save_path_LD
15517 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15518 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15519 fi # test "$_lt_caught_CXX_error" != yes
15522 ac_cpp='$CPP $CPPFLAGS'
15523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15539 ac_config_commands="$ac_config_commands libtool"
15544 # Only expand once:
15549 if test x$use_libtool != xno; then
15550 DEFAULT_OBJECT_TYPE=".lo"
15551 DEFAULT_ARCHIVE_TYPE=".la"
15552 DEFAULT_SHARED_OBJECT_TYPE=".la"
15553 LIBTOOL="\$(LIBTOOL)"
15554 LIBTOOL_INSTALL_TARGET="libtool-install"
15555 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15556 LIBTOOL_CLEAN_TARGET="libtool-clean"
15557 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15558 FD_PLUGIN_DIR="src/plugins/fd"
15561 DEFAULT_OBJECT_TYPE=".o"
15562 DEFAULT_ARCHIVE_TYPE=".a"
15563 DEFAULT_SHARED_OBJECT_TYPE=".so"
15564 LIBTOOL="# \$(LIBTOOL)"
15565 LIBTOOL_INSTALL_TARGET=""
15566 LIBTOOL_UNINSTALL_TARGET=""
15567 LIBTOOL_CLEAN_TARGET=""
15568 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15583 # Check whether --enable-includes was given.
15584 if test "${enable_includes+set}" = set; then :
15585 enableval=$enable_includes;
15586 if test x$enableval = xyes; then
15587 install_includes=yes
15595 if test x$use_libtool != xno -a x$install_includes = xyes; then
15596 INCLUDE_INSTALL_TARGET="install-includes"
15597 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15599 INCLUDE_INSTALL_TARGET=""
15600 INCLUDE_UNINSTALL_TARGET=""
15608 *cygwin* ) CYGWIN=yes;;
15612 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15618 HAVE_SUN_OS_FALSE='#'
15620 HAVE_SUN_OS_TRUE='#'
15623 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15630 HAVE_SUN_OS_FALSE='#'
15632 HAVE_SUN_OS_TRUE='#'
15637 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15643 HAVE_OSF1_OS_FALSE='#'
15645 HAVE_OSF1_OS_TRUE='#'
15646 HAVE_OSF1_OS_FALSE=
15648 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15655 HAVE_OSF1_OS_FALSE='#'
15657 HAVE_OSF1_OS_TRUE='#'
15658 HAVE_OSF1_OS_FALSE=
15662 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15668 HAVE_AIX_OS_FALSE='#'
15670 HAVE_AIX_OS_TRUE='#'
15673 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15680 HAVE_AIX_OS_FALSE='#'
15682 HAVE_AIX_OS_TRUE='#'
15687 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15693 HAVE_HPUX_OS_FALSE='#'
15695 HAVE_HPUX_OS_TRUE='#'
15696 HAVE_HPUX_OS_FALSE=
15698 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15705 HAVE_HPUX_OS_FALSE='#'
15707 HAVE_HPUX_OS_TRUE='#'
15708 HAVE_HPUX_OS_FALSE=
15712 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15717 HAVE_LINUX_OS_TRUE=
15718 HAVE_LINUX_OS_FALSE='#'
15720 HAVE_LINUX_OS_TRUE='#'
15721 HAVE_LINUX_OS_FALSE=
15723 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15729 HAVE_LINUX_OS_TRUE=
15730 HAVE_LINUX_OS_FALSE='#'
15732 HAVE_LINUX_OS_TRUE='#'
15733 HAVE_LINUX_OS_FALSE=
15737 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15742 HAVE_FREEBSD_OS_TRUE=
15743 HAVE_FREEBSD_OS_FALSE='#'
15745 HAVE_FREEBSD_OS_TRUE='#'
15746 HAVE_FREEBSD_OS_FALSE=
15748 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15754 HAVE_FREEBSD_OS_TRUE=
15755 HAVE_FREEBSD_OS_FALSE='#'
15757 HAVE_FREEBSD_OS_TRUE='#'
15758 HAVE_FREEBSD_OS_FALSE=
15762 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15767 HAVE_NETBSD_OS_TRUE=
15768 HAVE_NETBSD_OS_FALSE='#'
15770 HAVE_NETBSD_OS_TRUE='#'
15771 HAVE_NETBSD_OS_FALSE=
15773 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15779 HAVE_NETBSD_OS_TRUE=
15780 HAVE_NETBSD_OS_FALSE='#'
15782 HAVE_NETBSD_OS_TRUE='#'
15783 HAVE_NETBSD_OS_FALSE=
15787 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15792 HAVE_OPENBSD_OS_TRUE=
15793 HAVE_OPENBSD_OS_FALSE='#'
15795 HAVE_OPENBSD_OS_TRUE='#'
15796 HAVE_OPENBSD_OS_FALSE=
15798 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15804 HAVE_OPENBSD_OS_TRUE=
15805 HAVE_OPENBSD_OS_FALSE='#'
15807 HAVE_OPENBSD_OS_TRUE='#'
15808 HAVE_OPENBSD_OS_FALSE=
15812 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15818 HAVE_BSDI_OS_FALSE='#'
15820 HAVE_BSDI_OS_TRUE='#'
15821 HAVE_BSDI_OS_FALSE=
15823 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15830 HAVE_BSDI_OS_FALSE='#'
15832 HAVE_BSDI_OS_TRUE='#'
15833 HAVE_BSDI_OS_FALSE=
15837 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15843 HAVE_SGI_OS_FALSE='#'
15845 HAVE_SGI_OS_TRUE='#'
15848 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15855 HAVE_SGI_OS_FALSE='#'
15857 HAVE_SGI_OS_TRUE='#'
15862 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15868 HAVE_IRIX_OS_FALSE='#'
15870 HAVE_IRIX_OS_TRUE='#'
15871 HAVE_IRIX_OS_FALSE=
15873 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15880 HAVE_IRIX_OS_FALSE='#'
15882 HAVE_IRIX_OS_TRUE='#'
15883 HAVE_IRIX_OS_FALSE=
15887 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15892 HAVE_DARWIN_OS_TRUE=
15893 HAVE_DARWIN_OS_FALSE='#'
15895 HAVE_DARWIN_OS_TRUE='#'
15896 HAVE_DARWIN_OS_FALSE=
15898 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15904 HAVE_DARWIN_OS_TRUE=
15905 HAVE_DARWIN_OS_FALSE='#'
15907 HAVE_DARWIN_OS_TRUE='#'
15908 HAVE_DARWIN_OS_FALSE=
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
15914 $as_echo_n "checking for Operating System Distribution... " >&6; }
15915 if test "x$DISTNAME" != "x"
15917 echo "distname set to $DISTNAME"
15918 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15921 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15924 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15927 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15930 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15933 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15936 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15939 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
15942 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15945 elif test -f /etc/SuSE-release
15948 elif test -d /etc/SuSEconfig
15951 elif test -f /etc/mandrake-release
15954 elif test -f /etc/whitebox-release
15957 elif test -f /etc/redhat-release
15960 elif test -f /etc/gentoo-release
15963 elif test -f /etc/debian_version
15966 elif test -f /etc/slackware-version
15969 elif test x$host_vendor = xapple
15972 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15975 elif test -f /etc/engarde-version
15978 elif test -f /etc/arch-release
15981 elif test "$CYGWIN" = yes
15984 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15990 $as_echo "done" >&6; }
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15994 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15996 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15997 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
15998 $as_echo_n "(cached) " >&6
16000 cat >conftest.make <<\_ACEOF
16003 @echo '@@@%%%=$(MAKE)=@@@%%%'
16005 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16006 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16007 *@@@%%%=?*=@@@%%%*)
16008 eval ac_cv_prog_make_${ac_make}_set=yes;;
16010 eval ac_cv_prog_make_${ac_make}_set=no;;
16012 rm -f conftest.make
16014 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16016 $as_echo "yes" >&6; }
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16020 $as_echo "no" >&6; }
16021 SET_MAKE="MAKE=${MAKE-make}"
16027 if test -n "$ac_aux_dir"; then
16028 case "$ac_aux_dir" in
16029 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16030 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16033 if test -z "$MKINSTALLDIRS"; then
16034 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16040 $as_echo_n "checking whether NLS is requested... " >&6; }
16041 # Check whether --enable-nls was given.
16042 if test "${enable_nls+set}" = set; then :
16043 enableval=$enable_nls; USE_NLS=$enableval
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16049 $as_echo "$USE_NLS" >&6; }
16056 # Prepare PATH_SEPARATOR.
16057 # The user is always right.
16058 if test "${PATH_SEPARATOR+set}" != set; then
16059 echo "#! /bin/sh" >conf$$.sh
16060 echo "exit 0" >>conf$$.sh
16062 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16070 # Find out how to test for executable files. Don't use a zero-byte file,
16071 # as systems may use methods other than mode bits to determine executability.
16072 cat >conf$$.file <<_ASEOF
16076 chmod +x conf$$.file
16077 if test -x conf$$.file >/dev/null 2>&1; then
16078 ac_executable_p="test -x"
16080 ac_executable_p="test -f"
16084 # Extract the first word of "msgfmt", so it can be a program name with args.
16085 set dummy msgfmt; ac_word=$2
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16087 $as_echo_n "checking for $ac_word... " >&6; }
16088 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16089 $as_echo_n "(cached) " >&6
16093 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16096 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16097 for ac_dir in $PATH; do
16099 test -z "$ac_dir" && ac_dir=.
16100 for ac_exec_ext in '' $ac_executable_extensions; do
16101 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16102 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16103 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16104 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16105 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16112 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16116 MSGFMT="$ac_cv_path_MSGFMT"
16117 if test "$MSGFMT" != ":"; then
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16119 $as_echo "$MSGFMT" >&6; }
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16122 $as_echo "no" >&6; }
16125 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16126 set dummy gmsgfmt; ac_word=$2
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16128 $as_echo_n "checking for $ac_word... " >&6; }
16129 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16130 $as_echo_n "(cached) " >&6
16134 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16138 for as_dir in $PATH
16141 test -z "$as_dir" && as_dir=.
16142 for ac_exec_ext in '' $ac_executable_extensions; do
16143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16144 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16152 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16156 GMSGFMT=$ac_cv_path_GMSGFMT
16157 if test -n "$GMSGFMT"; then
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16159 $as_echo "$GMSGFMT" >&6; }
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16162 $as_echo "no" >&6; }
16168 # Prepare PATH_SEPARATOR.
16169 # The user is always right.
16170 if test "${PATH_SEPARATOR+set}" != set; then
16171 echo "#! /bin/sh" >conf$$.sh
16172 echo "exit 0" >>conf$$.sh
16174 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16182 # Find out how to test for executable files. Don't use a zero-byte file,
16183 # as systems may use methods other than mode bits to determine executability.
16184 cat >conf$$.file <<_ASEOF
16188 chmod +x conf$$.file
16189 if test -x conf$$.file >/dev/null 2>&1; then
16190 ac_executable_p="test -x"
16192 ac_executable_p="test -f"
16196 # Extract the first word of "xgettext", so it can be a program name with args.
16197 set dummy xgettext; ac_word=$2
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16199 $as_echo_n "checking for $ac_word... " >&6; }
16200 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16201 $as_echo_n "(cached) " >&6
16203 case "$XGETTEXT" in
16205 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16208 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16209 for ac_dir in $PATH; do
16211 test -z "$ac_dir" && ac_dir=.
16212 for ac_exec_ext in '' $ac_executable_extensions; do
16213 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16214 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16215 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16216 (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
16217 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16224 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16228 XGETTEXT="$ac_cv_path_XGETTEXT"
16229 if test "$XGETTEXT" != ":"; then
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16231 $as_echo "$XGETTEXT" >&6; }
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16234 $as_echo "no" >&6; }
16240 # Prepare PATH_SEPARATOR.
16241 # The user is always right.
16242 if test "${PATH_SEPARATOR+set}" != set; then
16243 echo "#! /bin/sh" >conf$$.sh
16244 echo "exit 0" >>conf$$.sh
16246 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16254 # Find out how to test for executable files. Don't use a zero-byte file,
16255 # as systems may use methods other than mode bits to determine executability.
16256 cat >conf$$.file <<_ASEOF
16260 chmod +x conf$$.file
16261 if test -x conf$$.file >/dev/null 2>&1; then
16262 ac_executable_p="test -x"
16264 ac_executable_p="test -f"
16268 # Extract the first word of "msgmerge", so it can be a program name with args.
16269 set dummy msgmerge; ac_word=$2
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16271 $as_echo_n "checking for $ac_word... " >&6; }
16272 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16273 $as_echo_n "(cached) " >&6
16275 case "$MSGMERGE" in
16277 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16280 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16281 for ac_dir in $PATH; do
16283 test -z "$ac_dir" && ac_dir=.
16284 for ac_exec_ext in '' $ac_executable_extensions; do
16285 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16286 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16287 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16288 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16295 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16299 MSGMERGE="$ac_cv_path_MSGMERGE"
16300 if test "$MSGMERGE" != ":"; then
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16302 $as_echo "$MSGMERGE" >&6; }
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16305 $as_echo "no" >&6; }
16309 if test "$GMSGFMT" != ":"; then
16310 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16311 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16314 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16316 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16321 if test "$XGETTEXT" != ":"; then
16322 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16323 (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
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16327 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16333 ac_config_commands="$ac_config_commands default-1"
16337 if test "X$prefix" = "XNONE"; then
16338 acl_final_prefix="$ac_default_prefix"
16340 acl_final_prefix="$prefix"
16342 if test "X$exec_prefix" = "XNONE"; then
16343 acl_final_exec_prefix='${prefix}'
16345 acl_final_exec_prefix="$exec_prefix"
16347 acl_save_prefix="$prefix"
16348 prefix="$acl_final_prefix"
16349 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16350 prefix="$acl_save_prefix"
16353 # Check whether --with-gnu-ld was given.
16354 if test "${with_gnu_ld+set}" = set; then :
16355 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16360 # Prepare PATH_SEPARATOR.
16361 # The user is always right.
16362 if test "${PATH_SEPARATOR+set}" != set; then
16363 echo "#! /bin/sh" >conf$$.sh
16364 echo "exit 0" >>conf$$.sh
16366 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16374 if test "$GCC" = yes; then
16375 # Check if gcc -print-prog-name=ld gives a path.
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16377 $as_echo_n "checking for ld used by GCC... " >&6; }
16380 # gcc leaves a trailing carriage return which upsets mingw
16381 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16383 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16386 # Accept absolute paths.
16387 [\\/]* | [A-Za-z]:[\\/]*)
16388 re_direlt='/[^/][^/]*/\.\./'
16389 # Canonicalize the path of ld
16390 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16391 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16392 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16394 test -z "$LD" && LD="$ac_prog"
16397 # If it fails, then pretend we aren't using GCC.
16401 # If it is relative, then search for the first ld in PATH.
16402 with_gnu_ld=unknown
16405 elif test "$with_gnu_ld" = yes; then
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16407 $as_echo_n "checking for GNU ld... " >&6; }
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16410 $as_echo_n "checking for non-GNU ld... " >&6; }
16412 if test "${acl_cv_path_LD+set}" = set; then :
16413 $as_echo_n "(cached) " >&6
16415 if test -z "$LD"; then
16416 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16417 for ac_dir in $PATH; do
16418 test -z "$ac_dir" && ac_dir=.
16419 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16420 acl_cv_path_LD="$ac_dir/$ac_prog"
16421 # Check to see if the program is GNU ld. I'd rather use --version,
16422 # but apparently some GNU ld's only accept -v.
16423 # Break only if it was the GNU/non-GNU ld that we prefer.
16424 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16425 *GNU* | *'with BFD'*)
16426 test "$with_gnu_ld" != no && break ;;
16428 test "$with_gnu_ld" != yes && break ;;
16434 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16438 LD="$acl_cv_path_LD"
16439 if test -n "$LD"; then
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16441 $as_echo "$LD" >&6; }
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16444 $as_echo "no" >&6; }
16446 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16448 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16449 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
16450 $as_echo_n "(cached) " >&6
16452 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16453 case `$LD -v 2>&1 </dev/null` in
16454 *GNU* | *'with BFD'*)
16455 acl_cv_prog_gnu_ld=yes ;;
16457 acl_cv_prog_gnu_ld=no ;;
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16461 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16462 with_gnu_ld=$acl_cv_prog_gnu_ld
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16468 $as_echo_n "checking for shared library run path origin... " >&6; }
16469 if test "${acl_cv_rpath+set}" = set; then :
16470 $as_echo_n "(cached) " >&6
16473 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16474 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16476 rm -f ./conftest.sh
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16481 $as_echo "$acl_cv_rpath" >&6; }
16483 libext="$acl_cv_libext"
16484 shlibext="$acl_cv_shlibext"
16485 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16486 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16487 hardcode_direct="$acl_cv_hardcode_direct"
16488 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16489 # Check whether --enable-rpath was given.
16490 if test "${enable_rpath+set}" = set; then :
16491 enableval=$enable_rpath; :
16505 acl_save_prefix="$prefix"
16506 prefix="$acl_final_prefix"
16507 acl_save_exec_prefix="$exec_prefix"
16508 exec_prefix="$acl_final_exec_prefix"
16510 eval additional_includedir=\"$includedir\"
16511 eval additional_libdir=\"$libdir\"
16513 exec_prefix="$acl_save_exec_prefix"
16514 prefix="$acl_save_prefix"
16517 # Check whether --with-libiconv-prefix was given.
16518 if test "${with_libiconv_prefix+set}" = set; then :
16519 withval=$with_libiconv_prefix;
16520 if test "X$withval" = "Xno"; then
16523 if test "X$withval" = "X"; then
16525 acl_save_prefix="$prefix"
16526 prefix="$acl_final_prefix"
16527 acl_save_exec_prefix="$exec_prefix"
16528 exec_prefix="$acl_final_exec_prefix"
16530 eval additional_includedir=\"$includedir\"
16531 eval additional_libdir=\"$libdir\"
16533 exec_prefix="$acl_save_exec_prefix"
16534 prefix="$acl_save_prefix"
16537 additional_includedir="$withval/include"
16538 additional_libdir="$withval/lib"
16549 names_already_handled=
16550 names_next_round='iconv '
16551 while test -n "$names_next_round"; do
16552 names_this_round="$names_next_round"
16554 for name in $names_this_round; do
16556 for n in $names_already_handled; do
16557 if test "$n" = "$name"; then
16558 already_handled=yes
16562 if test -z "$already_handled"; then
16563 names_already_handled="$names_already_handled $name"
16564 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16565 eval value=\"\$HAVE_LIB$uppername\"
16566 if test -n "$value"; then
16567 if test "$value" = yes; then
16568 eval value=\"\$LIB$uppername\"
16569 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16570 eval value=\"\$LTLIB$uppername\"
16571 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16580 if test $use_additional = yes; then
16581 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16582 found_dir="$additional_libdir"
16583 found_so="$additional_libdir/lib$name.$shlibext"
16584 if test -f "$additional_libdir/lib$name.la"; then
16585 found_la="$additional_libdir/lib$name.la"
16588 if test -f "$additional_libdir/lib$name.$libext"; then
16589 found_dir="$additional_libdir"
16590 found_a="$additional_libdir/lib$name.$libext"
16591 if test -f "$additional_libdir/lib$name.la"; then
16592 found_la="$additional_libdir/lib$name.la"
16597 if test "X$found_dir" = "X"; then
16598 for x in $LDFLAGS $LTLIBICONV; do
16600 acl_save_prefix="$prefix"
16601 prefix="$acl_final_prefix"
16602 acl_save_exec_prefix="$exec_prefix"
16603 exec_prefix="$acl_final_exec_prefix"
16605 exec_prefix="$acl_save_exec_prefix"
16606 prefix="$acl_save_prefix"
16610 dir=`echo "X$x" | sed -e 's/^X-L//'`
16611 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16613 found_so="$dir/lib$name.$shlibext"
16614 if test -f "$dir/lib$name.la"; then
16615 found_la="$dir/lib$name.la"
16618 if test -f "$dir/lib$name.$libext"; then
16620 found_a="$dir/lib$name.$libext"
16621 if test -f "$dir/lib$name.la"; then
16622 found_la="$dir/lib$name.la"
16628 if test "X$found_dir" != "X"; then
16633 if test "X$found_dir" != "X"; then
16634 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16635 if test "X$found_so" != "X"; then
16636 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16637 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16640 for x in $ltrpathdirs; do
16641 if test "X$x" = "X$found_dir"; then
16646 if test -z "$haveit"; then
16647 ltrpathdirs="$ltrpathdirs $found_dir"
16649 if test "$hardcode_direct" = yes; then
16650 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16652 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16653 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16655 for x in $rpathdirs; do
16656 if test "X$x" = "X$found_dir"; then
16661 if test -z "$haveit"; then
16662 rpathdirs="$rpathdirs $found_dir"
16666 for x in $LDFLAGS $LIBICONV; do
16668 acl_save_prefix="$prefix"
16669 prefix="$acl_final_prefix"
16670 acl_save_exec_prefix="$exec_prefix"
16671 exec_prefix="$acl_final_exec_prefix"
16673 exec_prefix="$acl_save_exec_prefix"
16674 prefix="$acl_save_prefix"
16676 if test "X$x" = "X-L$found_dir"; then
16681 if test -z "$haveit"; then
16682 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16684 if test "$hardcode_minus_L" != no; then
16685 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16687 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16693 if test "X$found_a" != "X"; then
16694 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16696 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16699 additional_includedir=
16700 case "$found_dir" in
16702 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16703 additional_includedir="$basedir/include"
16706 if test "X$additional_includedir" != "X"; then
16707 if test "X$additional_includedir" != "X/usr/include"; then
16709 if test "X$additional_includedir" = "X/usr/local/include"; then
16710 if test -n "$GCC"; then
16712 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16716 if test -z "$haveit"; then
16717 for x in $CPPFLAGS $INCICONV; do
16719 acl_save_prefix="$prefix"
16720 prefix="$acl_final_prefix"
16721 acl_save_exec_prefix="$exec_prefix"
16722 exec_prefix="$acl_final_exec_prefix"
16724 exec_prefix="$acl_save_exec_prefix"
16725 prefix="$acl_save_prefix"
16727 if test "X$x" = "X-I$additional_includedir"; then
16732 if test -z "$haveit"; then
16733 if test -d "$additional_includedir"; then
16734 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16740 if test -n "$found_la"; then
16741 save_libdir="$libdir"
16742 case "$found_la" in
16743 */* | *\\*) . "$found_la" ;;
16744 *) . "./$found_la" ;;
16746 libdir="$save_libdir"
16747 for dep in $dependency_libs; do
16750 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16751 if test "X$additional_libdir" != "X/usr/lib"; then
16753 if test "X$additional_libdir" = "X/usr/local/lib"; then
16754 if test -n "$GCC"; then
16756 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16760 if test -z "$haveit"; then
16762 for x in $LDFLAGS $LIBICONV; 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 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16783 for x in $LDFLAGS $LTLIBICONV; do
16785 acl_save_prefix="$prefix"
16786 prefix="$acl_final_prefix"
16787 acl_save_exec_prefix="$exec_prefix"
16788 exec_prefix="$acl_final_exec_prefix"
16790 exec_prefix="$acl_save_exec_prefix"
16791 prefix="$acl_save_prefix"
16793 if test "X$x" = "X-L$additional_libdir"; then
16798 if test -z "$haveit"; then
16799 if test -d "$additional_libdir"; then
16800 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16807 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16808 if test "$enable_rpath" != no; then
16810 for x in $rpathdirs; do
16811 if test "X$x" = "X$dir"; then
16816 if test -z "$haveit"; then
16817 rpathdirs="$rpathdirs $dir"
16820 for x in $ltrpathdirs; do
16821 if test "X$x" = "X$dir"; then
16826 if test -z "$haveit"; then
16827 ltrpathdirs="$ltrpathdirs $dir"
16832 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16835 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16838 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16839 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16845 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16846 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16852 if test "X$rpathdirs" != "X"; then
16853 if test -n "$hardcode_libdir_separator"; then
16855 for found_dir in $rpathdirs; do
16856 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16858 acl_save_libdir="$libdir"
16860 eval flag=\"$hardcode_libdir_flag_spec\"
16861 libdir="$acl_save_libdir"
16862 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16864 for found_dir in $rpathdirs; do
16865 acl_save_libdir="$libdir"
16866 libdir="$found_dir"
16867 eval flag=\"$hardcode_libdir_flag_spec\"
16868 libdir="$acl_save_libdir"
16869 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16873 if test "X$ltrpathdirs" != "X"; then
16874 for found_dir in $ltrpathdirs; do
16875 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16897 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16898 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
16899 $as_echo_n "(cached) " >&6
16901 gt_save_CPPFLAGS="$CPPFLAGS"
16902 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16903 gt_save_LIBS="$LIBS"
16904 LIBS="$LIBS -framework CoreFoundation"
16905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16906 /* end confdefs.h. */
16907 #include <CFPreferences.h>
16911 CFPreferencesCopyAppValue(NULL, NULL)
16916 if ac_fn_c_try_link "$LINENO"; then :
16917 gt_cv_func_CFPreferencesCopyAppValue=yes
16919 gt_cv_func_CFPreferencesCopyAppValue=no
16921 rm -f core conftest.err conftest.$ac_objext \
16922 conftest$ac_exeext conftest.$ac_ext
16923 CPPFLAGS="$gt_save_CPPFLAGS"
16924 LIBS="$gt_save_LIBS"
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16927 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16928 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16930 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16934 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16935 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
16936 $as_echo_n "(cached) " >&6
16938 gt_save_CPPFLAGS="$CPPFLAGS"
16939 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16940 gt_save_LIBS="$LIBS"
16941 LIBS="$LIBS -framework CoreFoundation"
16942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16943 /* end confdefs.h. */
16944 #include <CFLocale.h>
16948 CFLocaleCopyCurrent();
16953 if ac_fn_c_try_link "$LINENO"; then :
16954 gt_cv_func_CFLocaleCopyCurrent=yes
16956 gt_cv_func_CFLocaleCopyCurrent=no
16958 rm -f core conftest.err conftest.$ac_objext \
16959 conftest$ac_exeext conftest.$ac_ext
16960 CPPFLAGS="$gt_save_CPPFLAGS"
16961 LIBS="$gt_save_LIBS"
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16964 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16965 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16967 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16971 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16972 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16979 $as_echo_n "checking whether NLS is requested... " >&6; }
16980 # Check whether --enable-nls was given.
16981 if test "${enable_nls+set}" = set; then :
16982 enableval=$enable_nls; USE_NLS=$enableval
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16988 $as_echo "$USE_NLS" >&6; }
16997 if test "$USE_NLS" = "yes"; then
16998 gt_use_preinstalled_gnugettext=no
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17006 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17007 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
17008 $as_echo_n "(cached) " >&6
17010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17011 /* end confdefs.h. */
17012 #include <libintl.h>
17013 extern int _nl_msg_cat_cntr;
17014 extern int *_nl_domain_bindings;
17018 bindtextdomain ("", "");
17019 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17024 if ac_fn_c_try_link "$LINENO"; then :
17025 gt_cv_func_gnugettext1_libc=yes
17027 gt_cv_func_gnugettext1_libc=no
17029 rm -f core conftest.err conftest.$ac_objext \
17030 conftest$ac_exeext conftest.$ac_ext
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17033 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17035 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17041 am_save_CPPFLAGS="$CPPFLAGS"
17043 for element in $INCICONV; do
17045 for x in $CPPFLAGS; do
17047 acl_save_prefix="$prefix"
17048 prefix="$acl_final_prefix"
17049 acl_save_exec_prefix="$exec_prefix"
17050 exec_prefix="$acl_final_exec_prefix"
17052 exec_prefix="$acl_save_exec_prefix"
17053 prefix="$acl_save_prefix"
17055 if test "X$x" = "X$element"; then
17060 if test -z "$haveit"; then
17061 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17067 $as_echo_n "checking for iconv... " >&6; }
17068 if test "${am_cv_func_iconv+set}" = set; then :
17069 $as_echo_n "(cached) " >&6
17072 am_cv_func_iconv="no, consider installing GNU libiconv"
17074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075 /* end confdefs.h. */
17076 #include <stdlib.h>
17081 iconv_t cd = iconv_open("","");
17082 iconv(cd,NULL,NULL,NULL,NULL);
17088 if ac_fn_c_try_link "$LINENO"; then :
17089 am_cv_func_iconv=yes
17091 rm -f core conftest.err conftest.$ac_objext \
17092 conftest$ac_exeext conftest.$ac_ext
17093 if test "$am_cv_func_iconv" != yes; then
17094 am_save_LIBS="$LIBS"
17095 LIBS="$LIBS $LIBICONV"
17096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17097 /* end confdefs.h. */
17098 #include <stdlib.h>
17103 iconv_t cd = iconv_open("","");
17104 iconv(cd,NULL,NULL,NULL,NULL);
17110 if ac_fn_c_try_link "$LINENO"; then :
17111 am_cv_lib_iconv=yes
17112 am_cv_func_iconv=yes
17114 rm -f core conftest.err conftest.$ac_objext \
17115 conftest$ac_exeext conftest.$ac_ext
17116 LIBS="$am_save_LIBS"
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17121 $as_echo "$am_cv_func_iconv" >&6; }
17122 if test "$am_cv_func_iconv" = yes; then
17124 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17127 if test "$am_cv_lib_iconv" = yes; then
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17129 $as_echo_n "checking how to link with libiconv... " >&6; }
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17131 $as_echo "$LIBICONV" >&6; }
17133 CPPFLAGS="$am_save_CPPFLAGS"
17145 acl_save_prefix="$prefix"
17146 prefix="$acl_final_prefix"
17147 acl_save_exec_prefix="$exec_prefix"
17148 exec_prefix="$acl_final_exec_prefix"
17150 eval additional_includedir=\"$includedir\"
17151 eval additional_libdir=\"$libdir\"
17153 exec_prefix="$acl_save_exec_prefix"
17154 prefix="$acl_save_prefix"
17157 # Check whether --with-libintl-prefix was given.
17158 if test "${with_libintl_prefix+set}" = set; then :
17159 withval=$with_libintl_prefix;
17160 if test "X$withval" = "Xno"; then
17163 if test "X$withval" = "X"; then
17165 acl_save_prefix="$prefix"
17166 prefix="$acl_final_prefix"
17167 acl_save_exec_prefix="$exec_prefix"
17168 exec_prefix="$acl_final_exec_prefix"
17170 eval additional_includedir=\"$includedir\"
17171 eval additional_libdir=\"$libdir\"
17173 exec_prefix="$acl_save_exec_prefix"
17174 prefix="$acl_save_prefix"
17177 additional_includedir="$withval/include"
17178 additional_libdir="$withval/lib"
17189 names_already_handled=
17190 names_next_round='intl '
17191 while test -n "$names_next_round"; do
17192 names_this_round="$names_next_round"
17194 for name in $names_this_round; do
17196 for n in $names_already_handled; do
17197 if test "$n" = "$name"; then
17198 already_handled=yes
17202 if test -z "$already_handled"; then
17203 names_already_handled="$names_already_handled $name"
17204 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17205 eval value=\"\$HAVE_LIB$uppername\"
17206 if test -n "$value"; then
17207 if test "$value" = yes; then
17208 eval value=\"\$LIB$uppername\"
17209 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17210 eval value=\"\$LTLIB$uppername\"
17211 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17220 if test $use_additional = yes; then
17221 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17222 found_dir="$additional_libdir"
17223 found_so="$additional_libdir/lib$name.$shlibext"
17224 if test -f "$additional_libdir/lib$name.la"; then
17225 found_la="$additional_libdir/lib$name.la"
17228 if test -f "$additional_libdir/lib$name.$libext"; then
17229 found_dir="$additional_libdir"
17230 found_a="$additional_libdir/lib$name.$libext"
17231 if test -f "$additional_libdir/lib$name.la"; then
17232 found_la="$additional_libdir/lib$name.la"
17237 if test "X$found_dir" = "X"; then
17238 for x in $LDFLAGS $LTLIBINTL; do
17240 acl_save_prefix="$prefix"
17241 prefix="$acl_final_prefix"
17242 acl_save_exec_prefix="$exec_prefix"
17243 exec_prefix="$acl_final_exec_prefix"
17245 exec_prefix="$acl_save_exec_prefix"
17246 prefix="$acl_save_prefix"
17250 dir=`echo "X$x" | sed -e 's/^X-L//'`
17251 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17253 found_so="$dir/lib$name.$shlibext"
17254 if test -f "$dir/lib$name.la"; then
17255 found_la="$dir/lib$name.la"
17258 if test -f "$dir/lib$name.$libext"; then
17260 found_a="$dir/lib$name.$libext"
17261 if test -f "$dir/lib$name.la"; then
17262 found_la="$dir/lib$name.la"
17268 if test "X$found_dir" != "X"; then
17273 if test "X$found_dir" != "X"; then
17274 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17275 if test "X$found_so" != "X"; then
17276 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17277 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17280 for x in $ltrpathdirs; do
17281 if test "X$x" = "X$found_dir"; then
17286 if test -z "$haveit"; then
17287 ltrpathdirs="$ltrpathdirs $found_dir"
17289 if test "$hardcode_direct" = yes; then
17290 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17292 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17293 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17295 for x in $rpathdirs; do
17296 if test "X$x" = "X$found_dir"; then
17301 if test -z "$haveit"; then
17302 rpathdirs="$rpathdirs $found_dir"
17306 for x in $LDFLAGS $LIBINTL; do
17308 acl_save_prefix="$prefix"
17309 prefix="$acl_final_prefix"
17310 acl_save_exec_prefix="$exec_prefix"
17311 exec_prefix="$acl_final_exec_prefix"
17313 exec_prefix="$acl_save_exec_prefix"
17314 prefix="$acl_save_prefix"
17316 if test "X$x" = "X-L$found_dir"; then
17321 if test -z "$haveit"; then
17322 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17324 if test "$hardcode_minus_L" != no; then
17325 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17327 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17333 if test "X$found_a" != "X"; then
17334 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17336 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17339 additional_includedir=
17340 case "$found_dir" in
17342 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17343 additional_includedir="$basedir/include"
17346 if test "X$additional_includedir" != "X"; then
17347 if test "X$additional_includedir" != "X/usr/include"; then
17349 if test "X$additional_includedir" = "X/usr/local/include"; then
17350 if test -n "$GCC"; then
17352 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17356 if test -z "$haveit"; then
17357 for x in $CPPFLAGS $INCINTL; do
17359 acl_save_prefix="$prefix"
17360 prefix="$acl_final_prefix"
17361 acl_save_exec_prefix="$exec_prefix"
17362 exec_prefix="$acl_final_exec_prefix"
17364 exec_prefix="$acl_save_exec_prefix"
17365 prefix="$acl_save_prefix"
17367 if test "X$x" = "X-I$additional_includedir"; then
17372 if test -z "$haveit"; then
17373 if test -d "$additional_includedir"; then
17374 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17380 if test -n "$found_la"; then
17381 save_libdir="$libdir"
17382 case "$found_la" in
17383 */* | *\\*) . "$found_la" ;;
17384 *) . "./$found_la" ;;
17386 libdir="$save_libdir"
17387 for dep in $dependency_libs; do
17390 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17391 if test "X$additional_libdir" != "X/usr/lib"; then
17393 if test "X$additional_libdir" = "X/usr/local/lib"; then
17394 if test -n "$GCC"; then
17396 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17400 if test -z "$haveit"; then
17402 for x in $LDFLAGS $LIBINTL; 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 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17423 for x in $LDFLAGS $LTLIBINTL; do
17425 acl_save_prefix="$prefix"
17426 prefix="$acl_final_prefix"
17427 acl_save_exec_prefix="$exec_prefix"
17428 exec_prefix="$acl_final_exec_prefix"
17430 exec_prefix="$acl_save_exec_prefix"
17431 prefix="$acl_save_prefix"
17433 if test "X$x" = "X-L$additional_libdir"; then
17438 if test -z "$haveit"; then
17439 if test -d "$additional_libdir"; then
17440 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17447 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17448 if test "$enable_rpath" != no; then
17450 for x in $rpathdirs; do
17451 if test "X$x" = "X$dir"; then
17456 if test -z "$haveit"; then
17457 rpathdirs="$rpathdirs $dir"
17460 for x in $ltrpathdirs; do
17461 if test "X$x" = "X$dir"; then
17466 if test -z "$haveit"; then
17467 ltrpathdirs="$ltrpathdirs $dir"
17472 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17475 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17478 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17479 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17485 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17486 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17492 if test "X$rpathdirs" != "X"; then
17493 if test -n "$hardcode_libdir_separator"; then
17495 for found_dir in $rpathdirs; do
17496 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17498 acl_save_libdir="$libdir"
17500 eval flag=\"$hardcode_libdir_flag_spec\"
17501 libdir="$acl_save_libdir"
17502 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17504 for found_dir in $rpathdirs; do
17505 acl_save_libdir="$libdir"
17506 libdir="$found_dir"
17507 eval flag=\"$hardcode_libdir_flag_spec\"
17508 libdir="$acl_save_libdir"
17509 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17513 if test "X$ltrpathdirs" != "X"; then
17514 for found_dir in $ltrpathdirs; do
17515 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17520 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17521 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
17522 $as_echo_n "(cached) " >&6
17524 gt_save_CPPFLAGS="$CPPFLAGS"
17525 CPPFLAGS="$CPPFLAGS $INCINTL"
17526 gt_save_LIBS="$LIBS"
17527 LIBS="$LIBS $LIBINTL"
17528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17529 /* end confdefs.h. */
17530 #include <libintl.h>
17531 extern int _nl_msg_cat_cntr;
17536 const char *_nl_expand_alias (const char *);
17540 bindtextdomain ("", "");
17541 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17546 if ac_fn_c_try_link "$LINENO"; then :
17547 gt_cv_func_gnugettext1_libintl=yes
17549 gt_cv_func_gnugettext1_libintl=no
17551 rm -f core conftest.err conftest.$ac_objext \
17552 conftest$ac_exeext conftest.$ac_ext
17553 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17554 LIBS="$LIBS $LIBICONV"
17555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17556 /* end confdefs.h. */
17557 #include <libintl.h>
17558 extern int _nl_msg_cat_cntr;
17563 const char *_nl_expand_alias (const char *);
17567 bindtextdomain ("", "");
17568 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17573 if ac_fn_c_try_link "$LINENO"; then :
17574 LIBINTL="$LIBINTL $LIBICONV"
17575 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17576 gt_cv_func_gnugettext1_libintl=yes
17579 rm -f core conftest.err conftest.$ac_objext \
17580 conftest$ac_exeext conftest.$ac_ext
17582 CPPFLAGS="$gt_save_CPPFLAGS"
17583 LIBS="$gt_save_LIBS"
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17586 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17589 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17590 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17591 && test "$PACKAGE" != gettext-runtime \
17592 && test "$PACKAGE" != gettext-tools; }; then
17593 gt_use_preinstalled_gnugettext=yes
17602 if test -n "$INTL_MACOSX_LIBS"; then
17603 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17604 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17605 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17606 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17610 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17611 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17613 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17621 $as_echo_n "checking whether to use NLS... " >&6; }
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17623 $as_echo "$USE_NLS" >&6; }
17624 if test "$USE_NLS" = "yes"; then
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17626 $as_echo_n "checking where the gettext function comes from... " >&6; }
17627 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17628 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17629 gt_source="external libintl"
17634 gt_source="included intl directory"
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17637 $as_echo "$gt_source" >&6; }
17640 if test "$USE_NLS" = "yes"; then
17642 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17643 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17645 $as_echo_n "checking how to link with libintl... " >&6; }
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17647 $as_echo "$LIBINTL" >&6; }
17649 for element in $INCINTL; do
17651 for x in $CPPFLAGS; do
17653 acl_save_prefix="$prefix"
17654 prefix="$acl_final_prefix"
17655 acl_save_exec_prefix="$exec_prefix"
17656 exec_prefix="$acl_final_exec_prefix"
17658 exec_prefix="$acl_save_exec_prefix"
17659 prefix="$acl_save_prefix"
17661 if test "X$x" = "X$element"; then
17666 if test -z "$haveit"; then
17667 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17674 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17677 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17686 INTLLIBS="$LIBINTL"
17694 os_name=`uname -s 2>/dev/null`
17695 if test x${prefix} = xNONE ; then
17696 if test `eval echo ${sysconfdir}` = NONE/etc ; then
17697 sysconfdir=/etc/bacula
17700 if test `eval echo ${libdir}` = NONE/lib ; then
17703 os_processor=`uname -p 2>/dev/null`
17704 case ${os_processor} in
17719 if test `eval echo ${includedir}` = NONE/include ; then
17720 includedir=/usr/include
17723 if test `eval echo ${datarootdir}` = NONE/share ; then
17724 datarootdir=/usr/share
17729 if test x${exec_prefix} = xNONE ; then
17730 exec_prefix=${prefix}
17733 sysconfdir=`eval echo ${sysconfdir}`
17734 datarootdir=`eval echo ${datarootdir}`
17735 docdir=`eval echo ${docdir}`
17736 htmldir=`eval echo ${htmldir}`
17737 libdir=`eval echo ${libdir}`
17738 includedir=`eval echo ${includedir}`
17739 localedir=`eval echo ${datarootdir}/locale`
17740 cat >>confdefs.h <<_ACEOF
17741 #define SYSCONFDIR "$sysconfdir"
17744 cat >>confdefs.h <<_ACEOF
17745 #define LOCALEDIR "$localedir"
17749 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17750 sbindir=${exec_prefix}/sbin
17752 sbindir=`eval echo ${sbindir}`
17754 if test x$mandir = x'${prefix}/man' ; then
17755 mandir=/usr/share/man
17758 if test x$htmldir = x${docdir} ; then
17759 htmldir=`eval echo ${docdir}bacula/html`
17762 if test x$docdir = x'/usr/share/doc/' ; then
17763 docdir=`eval echo ${docdir}bacula`
17767 for ac_prog in msgfmt
17769 # Extract the first word of "$ac_prog", so it can be a program name with args.
17770 set dummy $ac_prog; ac_word=$2
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17772 $as_echo_n "checking for $ac_word... " >&6; }
17773 if test "${ac_cv_path_MSGFMT+set}" = set; then :
17774 $as_echo_n "(cached) " >&6
17778 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17782 for as_dir in $PATH
17785 test -z "$as_dir" && as_dir=.
17786 for ac_exec_ext in '' $ac_executable_extensions; do
17787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17788 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17799 MSGFMT=$ac_cv_path_MSGFMT
17800 if test -n "$MSGFMT"; then
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17802 $as_echo "$MSGFMT" >&6; }
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17805 $as_echo "no" >&6; }
17809 test -n "$MSGFMT" && break
17811 test -n "$MSGFMT" || MSGFMT="no"
17813 if test "$MSGFMT" = "no"
17815 echo 'msgfmt program not found, disabling NLS !'
17817 USE_INCLUDED_LIBINTL=no
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17821 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17822 if test "${ac_cv_gnu_library_2+set}" = set; then :
17823 $as_echo_n "(cached) " >&6
17825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17826 /* end confdefs.h. */
17828 #include <features.h>
17829 #ifdef __GNU_LIBRARY__
17830 #if (__GLIBC__ >= 2)
17836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17837 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17838 ac_cv_gnu_library_2=yes
17840 ac_cv_gnu_library_2=no
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17848 $as_echo "$ac_cv_gnu_library_2" >&6; }
17850 GLIBC2="$ac_cv_gnu_library_2"
17853 if test -n "$ac_tool_prefix"; then
17854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17855 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17857 $as_echo_n "checking for $ac_word... " >&6; }
17858 if test "${ac_cv_prog_RANLIB+set}" = set; then :
17859 $as_echo_n "(cached) " >&6
17861 if test -n "$RANLIB"; then
17862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17865 for as_dir in $PATH
17868 test -z "$as_dir" && as_dir=.
17869 for ac_exec_ext in '' $ac_executable_extensions; do
17870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17881 RANLIB=$ac_cv_prog_RANLIB
17882 if test -n "$RANLIB"; then
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17884 $as_echo "$RANLIB" >&6; }
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17887 $as_echo "no" >&6; }
17892 if test -z "$ac_cv_prog_RANLIB"; then
17893 ac_ct_RANLIB=$RANLIB
17894 # Extract the first word of "ranlib", so it can be a program name with args.
17895 set dummy ranlib; ac_word=$2
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17897 $as_echo_n "checking for $ac_word... " >&6; }
17898 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
17899 $as_echo_n "(cached) " >&6
17901 if test -n "$ac_ct_RANLIB"; then
17902 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17905 for as_dir in $PATH
17908 test -z "$as_dir" && as_dir=.
17909 for ac_exec_ext in '' $ac_executable_extensions; do
17910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17911 ac_cv_prog_ac_ct_RANLIB="ranlib"
17912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17921 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17922 if test -n "$ac_ct_RANLIB"; then
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17924 $as_echo "$ac_ct_RANLIB" >&6; }
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17927 $as_echo "no" >&6; }
17930 if test "x$ac_ct_RANLIB" = x; then
17933 case $cross_compiling:$ac_tool_warned in
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17937 ac_tool_warned=yes ;;
17939 RANLIB=$ac_ct_RANLIB
17942 RANLIB="$ac_cv_prog_RANLIB"
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
17947 $as_echo_n "checking for strerror in -lcposix... " >&6; }
17948 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
17949 $as_echo_n "(cached) " >&6
17951 ac_check_lib_save_LIBS=$LIBS
17952 LIBS="-lcposix $LIBS"
17953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17954 /* end confdefs.h. */
17956 /* Override any GCC internal prototype to avoid an error.
17957 Use char because int might match the return type of a GCC
17958 builtin and then its argument prototype would still apply. */
17966 return strerror ();
17971 if ac_fn_c_try_link "$LINENO"; then :
17972 ac_cv_lib_cposix_strerror=yes
17974 ac_cv_lib_cposix_strerror=no
17976 rm -f core conftest.err conftest.$ac_objext \
17977 conftest$ac_exeext conftest.$ac_ext
17978 LIBS=$ac_check_lib_save_LIBS
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
17981 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
17982 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
17983 LIBS="$LIBS -lcposix"
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17989 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17990 if test "${ac_cv_c_const+set}" = set; then :
17991 $as_echo_n "(cached) " >&6
17993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17994 /* end confdefs.h. */
17999 /* FIXME: Include the comments suggested by Paul. */
18000 #ifndef __cplusplus
18001 /* Ultrix mips cc rejects this. */
18002 typedef int charset[2];
18004 /* SunOS 4.1.1 cc rejects this. */
18005 char const *const *pcpcc;
18007 /* NEC SVR4.0.2 mips cc rejects this. */
18008 struct point {int x, y;};
18009 static struct point const zero = {0,0};
18010 /* AIX XL C 1.02.0.0 rejects this.
18011 It does not let you subtract one const X* pointer from another in
18012 an arm of an if-expression whose if-part is not a constant
18014 const char *g = "string";
18015 pcpcc = &g + (g ? g-g : 0);
18016 /* HPUX 7.0 cc rejects these. */
18018 ppc = (char**) pcpcc;
18019 pcpcc = (char const *const *) ppc;
18020 { /* SCO 3.2v4 cc rejects this. */
18022 char const *s = 0 ? (char *) 0 : (char const *) 0;
18027 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18028 int x[] = {25, 17};
18029 const int *foo = &x[0];
18032 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18033 typedef const int *iptr;
18037 { /* AIX XL C 1.02.0.0 rejects this saying
18038 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18039 struct s { int j; const int *ap[3]; };
18040 struct s *b; b->j = 5;
18042 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18043 const int foo = 10;
18044 if (!foo) return 0;
18046 return !cs[0] && !zero.x;
18053 if ac_fn_c_try_compile "$LINENO"; then :
18058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18061 $as_echo "$ac_cv_c_const" >&6; }
18062 if test $ac_cv_c_const = no; then
18064 $as_echo "#define const /**/" >>confdefs.h
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18070 $as_echo_n "checking for signed... " >&6; }
18071 if test "${bh_cv_c_signed+set}" = set; then :
18072 $as_echo_n "(cached) " >&6
18074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18075 /* end confdefs.h. */
18085 if ac_fn_c_try_compile "$LINENO"; then :
18090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18093 $as_echo "$bh_cv_c_signed" >&6; }
18094 if test $bh_cv_c_signed = no; then
18096 $as_echo "#define signed /**/" >>confdefs.h
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18101 $as_echo_n "checking for inline... " >&6; }
18102 if test "${ac_cv_c_inline+set}" = set; then :
18103 $as_echo_n "(cached) " >&6
18106 for ac_kw in inline __inline__ __inline; do
18107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18108 /* end confdefs.h. */
18109 #ifndef __cplusplus
18111 static $ac_kw foo_t static_foo () {return 0; }
18112 $ac_kw foo_t foo () {return 0; }
18116 if ac_fn_c_try_compile "$LINENO"; then :
18117 ac_cv_c_inline=$ac_kw
18119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18120 test "$ac_cv_c_inline" != no && break
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18125 $as_echo "$ac_cv_c_inline" >&6; }
18127 case $ac_cv_c_inline in
18130 case $ac_cv_c_inline in
18132 *) ac_val=$ac_cv_c_inline;;
18134 cat >>confdefs.h <<_ACEOF
18135 #ifndef __cplusplus
18136 #define inline $ac_val
18142 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18143 if test "x$ac_cv_type_off_t" = x""yes; then :
18147 cat >>confdefs.h <<_ACEOF
18148 #define off_t long int
18153 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18154 if test "x$ac_cv_type_size_t" = x""yes; then :
18158 cat >>confdefs.h <<_ACEOF
18159 #define size_t unsigned int
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18166 $as_echo_n "checking for long long... " >&6; }
18167 if test "${ac_cv_type_long_long+set}" = set; then :
18168 $as_echo_n "(cached) " >&6
18170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18171 /* end confdefs.h. */
18172 long long ll = 1LL; int i = 63;
18176 long long llmax = (long long) -1;
18177 return ll << i | ll >> i | llmax / ll | llmax % ll;
18182 if ac_fn_c_try_link "$LINENO"; then :
18183 ac_cv_type_long_long=yes
18185 ac_cv_type_long_long=no
18187 rm -f core conftest.err conftest.$ac_objext \
18188 conftest$ac_exeext conftest.$ac_ext
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18191 $as_echo "$ac_cv_type_long_long" >&6; }
18192 if test $ac_cv_type_long_long = yes; then
18194 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18200 $as_echo_n "checking for long double... " >&6; }
18201 if test "${gt_cv_c_long_double+set}" = set; then :
18202 $as_echo_n "(cached) " >&6
18204 if test "$GCC" = yes; then
18205 gt_cv_c_long_double=yes
18207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18208 /* end confdefs.h. */
18210 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
18211 long double foo = 0.0;
18212 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
18213 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18223 if ac_fn_c_try_compile "$LINENO"; then :
18224 gt_cv_c_long_double=yes
18226 gt_cv_c_long_double=no
18228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18232 $as_echo "$gt_cv_c_long_double" >&6; }
18233 if test $gt_cv_c_long_double = yes; then
18235 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18241 $as_echo_n "checking for wchar_t... " >&6; }
18242 if test "${gt_cv_c_wchar_t+set}" = set; then :
18243 $as_echo_n "(cached) " >&6
18245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18246 /* end confdefs.h. */
18247 #include <stddef.h>
18248 wchar_t foo = (wchar_t)'\0';
18257 if ac_fn_c_try_compile "$LINENO"; then :
18258 gt_cv_c_wchar_t=yes
18262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18265 $as_echo "$gt_cv_c_wchar_t" >&6; }
18266 if test $gt_cv_c_wchar_t = yes; then
18268 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18274 $as_echo_n "checking for wint_t... " >&6; }
18275 if test "${gt_cv_c_wint_t+set}" = set; then :
18276 $as_echo_n "(cached) " >&6
18278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18279 /* end confdefs.h. */
18281 wint_t foo = (wchar_t)'\0';
18290 if ac_fn_c_try_compile "$LINENO"; then :
18295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18298 $as_echo "$gt_cv_c_wint_t" >&6; }
18299 if test $gt_cv_c_wint_t = yes; then
18301 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18307 $as_echo_n "checking for inttypes.h... " >&6; }
18308 if test "${gl_cv_header_inttypes_h+set}" = set; then :
18309 $as_echo_n "(cached) " >&6
18311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18312 /* end confdefs.h. */
18313 #include <sys/types.h>
18314 #include <inttypes.h>
18318 uintmax_t i = (uintmax_t) -1;
18323 if ac_fn_c_try_compile "$LINENO"; then :
18324 gl_cv_header_inttypes_h=yes
18326 gl_cv_header_inttypes_h=no
18328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18331 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18332 if test $gl_cv_header_inttypes_h = yes; then
18334 cat >>confdefs.h <<_ACEOF
18335 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18342 $as_echo_n "checking for stdint.h... " >&6; }
18343 if test "${gl_cv_header_stdint_h+set}" = set; then :
18344 $as_echo_n "(cached) " >&6
18346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18347 /* end confdefs.h. */
18348 #include <sys/types.h>
18349 #include <stdint.h>
18353 uintmax_t i = (uintmax_t) -1;
18358 if ac_fn_c_try_compile "$LINENO"; then :
18359 gl_cv_header_stdint_h=yes
18361 gl_cv_header_stdint_h=no
18363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18366 $as_echo "$gl_cv_header_stdint_h" >&6; }
18367 if test $gl_cv_header_stdint_h = yes; then
18369 cat >>confdefs.h <<_ACEOF
18370 #define HAVE_STDINT_H_WITH_UINTMAX 1
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18379 $as_echo_n "checking for intmax_t... " >&6; }
18380 if test "${gt_cv_c_intmax_t+set}" = set; then :
18381 $as_echo_n "(cached) " >&6
18383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18384 /* end confdefs.h. */
18386 #include <stddef.h>
18387 #include <stdlib.h>
18388 #if HAVE_STDINT_H_WITH_UINTMAX
18389 #include <stdint.h>
18391 #if HAVE_INTTYPES_H_WITH_UINTMAX
18392 #include <inttypes.h>
18403 if ac_fn_c_try_compile "$LINENO"; then :
18404 gt_cv_c_intmax_t=yes
18406 gt_cv_c_intmax_t=no
18408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18411 $as_echo "$gt_cv_c_intmax_t" >&6; }
18412 if test $gt_cv_c_intmax_t = yes; then
18414 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18421 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18422 if test "${gt_cv_func_printf_posix+set}" = set; then :
18423 $as_echo_n "(cached) " >&6
18426 if test "$cross_compiling" = yes; then :
18428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429 /* end confdefs.h. */
18431 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18437 $EGREP "notposix" >/dev/null 2>&1; then :
18438 gt_cv_func_printf_posix="guessing no"
18440 gt_cv_func_printf_posix="guessing yes"
18446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18447 /* end confdefs.h. */
18450 #include <string.h>
18451 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18452 dollar expansion (possibly an autoconf bug). */
18453 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18454 static char buf[100];
18457 sprintf (buf, format, 33, 55);
18458 return (strcmp (buf, "55 33") != 0);
18461 if ac_fn_c_try_run "$LINENO"; then :
18462 gt_cv_func_printf_posix=yes
18464 gt_cv_func_printf_posix=no
18466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18467 conftest.$ac_objext conftest.beam conftest.$ac_ext
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18473 $as_echo "$gt_cv_func_printf_posix" >&6; }
18474 case $gt_cv_func_printf_posix in
18477 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18482 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18483 # for constant arguments. Useless!
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18485 $as_echo_n "checking for working alloca.h... " >&6; }
18486 if test "${ac_cv_working_alloca_h+set}" = set; then :
18487 $as_echo_n "(cached) " >&6
18489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18490 /* end confdefs.h. */
18491 #include <alloca.h>
18495 char *p = (char *) alloca (2 * sizeof (int));
18501 if ac_fn_c_try_link "$LINENO"; then :
18502 ac_cv_working_alloca_h=yes
18504 ac_cv_working_alloca_h=no
18506 rm -f core conftest.err conftest.$ac_objext \
18507 conftest$ac_exeext conftest.$ac_ext
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18510 $as_echo "$ac_cv_working_alloca_h" >&6; }
18511 if test $ac_cv_working_alloca_h = yes; then
18513 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18518 $as_echo_n "checking for alloca... " >&6; }
18519 if test "${ac_cv_func_alloca_works+set}" = set; then :
18520 $as_echo_n "(cached) " >&6
18522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18523 /* end confdefs.h. */
18525 # define alloca __builtin_alloca
18528 # include <malloc.h>
18529 # define alloca _alloca
18531 # ifdef HAVE_ALLOCA_H
18532 # include <alloca.h>
18537 # ifndef alloca /* predefined by HP cc +Olibcalls */
18548 char *p = (char *) alloca (1);
18554 if ac_fn_c_try_link "$LINENO"; then :
18555 ac_cv_func_alloca_works=yes
18557 ac_cv_func_alloca_works=no
18559 rm -f core conftest.err conftest.$ac_objext \
18560 conftest$ac_exeext conftest.$ac_ext
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18563 $as_echo "$ac_cv_func_alloca_works" >&6; }
18565 if test $ac_cv_func_alloca_works = yes; then
18567 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18570 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18571 # that cause trouble. Some versions do not even contain alloca or
18572 # contain a buggy version. If you still want to use their alloca,
18573 # use ar to extract alloca.o from them instead of compiling alloca.c.
18575 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18577 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18581 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18582 if test "${ac_cv_os_cray+set}" = set; then :
18583 $as_echo_n "(cached) " >&6
18585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18586 /* end confdefs.h. */
18587 #if defined CRAY && ! defined CRAY2
18594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18595 $EGREP "webecray" >/dev/null 2>&1; then :
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18604 $as_echo "$ac_cv_os_cray" >&6; }
18605 if test $ac_cv_os_cray = yes; then
18606 for ac_func in _getb67 GETB67 getb67; do
18607 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18608 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18609 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18611 cat >>confdefs.h <<_ACEOF
18612 #define CRAY_STACKSEG_END $ac_func
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18622 $as_echo_n "checking stack direction for C alloca... " >&6; }
18623 if test "${ac_cv_c_stack_direction+set}" = set; then :
18624 $as_echo_n "(cached) " >&6
18626 if test "$cross_compiling" = yes; then :
18627 ac_cv_c_stack_direction=0
18629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18630 /* end confdefs.h. */
18631 $ac_includes_default
18633 find_stack_direction ()
18635 static char *addr = 0;
18640 return find_stack_direction ();
18643 return (&dummy > addr) ? 1 : -1;
18649 return find_stack_direction () < 0;
18652 if ac_fn_c_try_run "$LINENO"; then :
18653 ac_cv_c_stack_direction=1
18655 ac_cv_c_stack_direction=-1
18657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18658 conftest.$ac_objext conftest.beam conftest.$ac_ext
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18663 $as_echo "$ac_cv_c_stack_direction" >&6; }
18664 cat >>confdefs.h <<_ACEOF
18665 #define STACK_DIRECTION $ac_cv_c_stack_direction
18674 for ac_header in $ac_header_list
18676 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18677 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18679 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18680 cat >>confdefs.h <<_ACEOF
18681 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18695 for ac_func in getpagesize
18697 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18698 if test "x$ac_cv_func_getpagesize" = x""yes; then :
18699 cat >>confdefs.h <<_ACEOF
18700 #define HAVE_GETPAGESIZE 1
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18707 $as_echo_n "checking for working mmap... " >&6; }
18708 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
18709 $as_echo_n "(cached) " >&6
18711 if test "$cross_compiling" = yes; then :
18712 ac_cv_func_mmap_fixed_mapped=no
18714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18715 /* end confdefs.h. */
18716 $ac_includes_default
18717 /* malloc might have been renamed as rpl_malloc. */
18720 /* Thanks to Mike Haertel and Jim Avera for this test.
18721 Here is a matrix of mmap possibilities:
18722 mmap private not fixed
18723 mmap private fixed at somewhere currently unmapped
18724 mmap private fixed at somewhere already mapped
18725 mmap shared not fixed
18726 mmap shared fixed at somewhere currently unmapped
18727 mmap shared fixed at somewhere already mapped
18728 For private mappings, we should verify that changes cannot be read()
18729 back from the file, nor mmap's back from the file at a different
18730 address. (There have been systems where private was not correctly
18731 implemented like the infamous i386 svr4.0, and systems where the
18732 VM page cache was not coherent with the file system buffer cache
18733 like early versions of FreeBSD and possibly contemporary NetBSD.)
18734 For shared mappings, we should conversely verify that changes get
18735 propagated back to all the places they're supposed to be.
18737 Grep wants private fixed already mapped.
18738 The main things grep needs to know about mmap are:
18739 * does it exist and is it safe to write into the mmap'd area
18740 * how to use it (BSD variants) */
18743 #include <sys/mman.h>
18745 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18749 /* This mess was copied from the GNU getpagesize.h. */
18750 #ifndef HAVE_GETPAGESIZE
18751 # ifdef _SC_PAGESIZE
18752 # define getpagesize() sysconf(_SC_PAGESIZE)
18753 # else /* no _SC_PAGESIZE */
18754 # ifdef HAVE_SYS_PARAM_H
18755 # include <sys/param.h>
18756 # ifdef EXEC_PAGESIZE
18757 # define getpagesize() EXEC_PAGESIZE
18758 # else /* no EXEC_PAGESIZE */
18760 # define getpagesize() NBPG * CLSIZE
18763 # endif /* no CLSIZE */
18764 # else /* no NBPG */
18766 # define getpagesize() NBPC
18767 # else /* no NBPC */
18769 # define getpagesize() PAGESIZE
18770 # endif /* PAGESIZE */
18771 # endif /* no NBPC */
18772 # endif /* no NBPG */
18773 # endif /* no EXEC_PAGESIZE */
18774 # else /* no HAVE_SYS_PARAM_H */
18775 # define getpagesize() 8192 /* punt totally */
18776 # endif /* no HAVE_SYS_PARAM_H */
18777 # endif /* no _SC_PAGESIZE */
18779 #endif /* no HAVE_GETPAGESIZE */
18784 char *data, *data2, *data3;
18785 const char *cdata2;
18789 pagesize = getpagesize ();
18791 /* First, make a file with some known garbage in it. */
18792 data = (char *) malloc (pagesize);
18795 for (i = 0; i < pagesize; ++i)
18796 *(data + i) = rand ();
18798 fd = creat ("conftest.mmap", 0600);
18801 if (write (fd, data, pagesize) != pagesize)
18805 /* Next, check that the tail of a page is zero-filled. File must have
18806 non-zero length, otherwise we risk SIGBUS for entire page. */
18807 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18811 if (write (fd2, cdata2, 1) != 1)
18813 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18814 if (data2 == MAP_FAILED)
18816 for (i = 0; i < pagesize; ++i)
18820 if (munmap (data2, pagesize))
18823 /* Next, try to mmap the file at a fixed address which already has
18824 something else allocated at it. If we can, also make sure that
18825 we see the same garbage. */
18826 fd = open ("conftest.mmap", O_RDWR);
18829 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18830 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18832 for (i = 0; i < pagesize; ++i)
18833 if (*(data + i) != *(data2 + i))
18836 /* Finally, make sure that changes to the mapped area do not
18837 percolate back to the file as seen by read(). (This is a bug on
18838 some variants of i386 svr4.0.) */
18839 for (i = 0; i < pagesize; ++i)
18840 *(data2 + i) = *(data2 + i) + 1;
18841 data3 = (char *) malloc (pagesize);
18844 if (read (fd, data3, pagesize) != pagesize)
18846 for (i = 0; i < pagesize; ++i)
18847 if (*(data + i) != *(data3 + i))
18853 if ac_fn_c_try_run "$LINENO"; then :
18854 ac_cv_func_mmap_fixed_mapped=yes
18856 ac_cv_func_mmap_fixed_mapped=no
18858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18859 conftest.$ac_objext conftest.beam conftest.$ac_ext
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18864 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18865 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18867 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18870 rm -f conftest.mmap conftest.txt
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18874 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18875 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
18876 $as_echo_n "(cached) " >&6
18878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18879 /* end confdefs.h. */
18881 #include <features.h>
18882 #ifdef __GNU_LIBRARY__
18883 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18890 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18891 ac_cv_gnu_library_2_1=yes
18893 ac_cv_gnu_library_2_1=no
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18901 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18903 GLIBC21="$ac_cv_gnu_library_2_1"
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18909 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18910 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
18911 $as_echo_n "(cached) " >&6
18914 if test "$cross_compiling" = yes; then :
18916 # Guess based on the CPU.
18917 case "$host_cpu" in
18918 alpha* | i3456786 | m68k | s390*)
18919 gt_cv_int_divbyzero_sigfpe="guessing yes";;
18921 gt_cv_int_divbyzero_sigfpe="guessing no";;
18925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18926 /* end confdefs.h. */
18928 #include <stdlib.h>
18929 #include <signal.h>
18933 sigfpe_handler (int sig)
18935 sigfpe_handler (sig) int sig;
18938 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
18939 exit (sig != SIGFPE);
18949 signal (SIGFPE, sigfpe_handler);
18950 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
18951 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18952 signal (SIGTRAP, sigfpe_handler);
18954 /* Linux/SPARC yields signal SIGILL. */
18955 #if defined (__sparc__) && defined (__linux__)
18956 signal (SIGILL, sigfpe_handler);
18965 if ac_fn_c_try_run "$LINENO"; then :
18966 gt_cv_int_divbyzero_sigfpe=yes
18968 gt_cv_int_divbyzero_sigfpe=no
18970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18971 conftest.$ac_objext conftest.beam conftest.$ac_ext
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
18977 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
18978 case "$gt_cv_int_divbyzero_sigfpe" in
18983 cat >>confdefs.h <<_ACEOF
18984 #define INTDIV0_RAISES_SIGFPE $value
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
18990 $as_echo_n "checking for unsigned long long... " >&6; }
18991 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
18992 $as_echo_n "(cached) " >&6
18994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18995 /* end confdefs.h. */
18996 unsigned long long ull = 1ULL; int i = 63;
19000 unsigned long long ullmax = (unsigned long long) -1;
19001 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19006 if ac_fn_c_try_link "$LINENO"; then :
19007 ac_cv_type_unsigned_long_long=yes
19009 ac_cv_type_unsigned_long_long=no
19011 rm -f core conftest.err conftest.$ac_objext \
19012 conftest$ac_exeext conftest.$ac_ext
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19015 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19016 if test $ac_cv_type_unsigned_long_long = yes; then
19018 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19025 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19027 test $ac_cv_type_unsigned_long_long = yes \
19028 && ac_type='unsigned long long' \
19029 || ac_type='unsigned long'
19031 cat >>confdefs.h <<_ACEOF
19032 #define uintmax_t $ac_type
19037 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19043 $as_echo_n "checking for inttypes.h... " >&6; }
19044 if test "${gt_cv_header_inttypes_h+set}" = set; then :
19045 $as_echo_n "(cached) " >&6
19048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19049 /* end confdefs.h. */
19050 #include <sys/types.h>
19051 #include <inttypes.h>
19060 if ac_fn_c_try_compile "$LINENO"; then :
19061 gt_cv_header_inttypes_h=yes
19063 gt_cv_header_inttypes_h=no
19065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19069 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19070 if test $gt_cv_header_inttypes_h = yes; then
19072 cat >>confdefs.h <<_ACEOF
19073 #define HAVE_INTTYPES_H 1
19080 if test $gt_cv_header_inttypes_h = yes; then
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19082 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19083 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
19084 $as_echo_n "(cached) " >&6
19087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19088 /* end confdefs.h. */
19089 #include <inttypes.h>
19102 if ac_fn_c_try_compile "$LINENO"; then :
19103 gt_cv_inttypes_pri_broken=no
19105 gt_cv_inttypes_pri_broken=yes
19107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19111 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19113 if test "$gt_cv_inttypes_pri_broken" = yes; then
19115 cat >>confdefs.h <<_ACEOF
19116 #define PRI_MACROS_BROKEN 1
19122 for ac_header in stdint.h
19124 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19125 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19126 cat >>confdefs.h <<_ACEOF
19127 #define HAVE_STDINT_H 1
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19135 $as_echo_n "checking for SIZE_MAX... " >&6; }
19137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19138 /* end confdefs.h. */
19140 #include <limits.h>
19142 #include <stdint.h>
19149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19150 $EGREP "Found it" >/dev/null 2>&1; then :
19155 if test -z "$result"; then
19156 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
19163 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
19170 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
19177 if test "$fits_in_uint" = 1; then
19178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19179 /* end confdefs.h. */
19180 #include <stddef.h>
19182 extern unsigned long foo;
19192 if ac_fn_c_try_compile "$LINENO"; then :
19195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19197 if test -z "$result"; then
19198 if test "$fits_in_uint" = 1; then
19199 result="$res_hi$res_lo"U
19201 result="$res_hi$res_lo"UL
19204 result='~(size_t)0'
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19208 $as_echo "$result" >&6; }
19209 if test "$result" != yes; then
19211 cat >>confdefs.h <<_ACEOF
19212 #define SIZE_MAX $result
19220 for ac_header in stdint.h
19222 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19223 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19224 cat >>confdefs.h <<_ACEOF
19225 #define HAVE_STDINT_H 1
19239 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19240 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
19244 $as_echo "#define ptrdiff_t long" >>confdefs.h
19249 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19250 stdlib.h string.h unistd.h sys/param.h
19252 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19253 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19254 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19255 cat >>confdefs.h <<_ACEOF
19256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19263 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19264 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19265 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19268 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19269 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19270 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19271 cat >>confdefs.h <<_ACEOF
19272 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19281 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19282 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
19283 $as_echo_n "(cached) " >&6
19285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19286 /* end confdefs.h. */
19293 char *p = (char *) _snprintf;
19300 if ac_fn_c_try_compile "$LINENO"; then :
19301 ac_cv_have_decl__snprintf=yes
19303 ac_cv_have_decl__snprintf=no
19305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19308 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19309 if test $ac_cv_have_decl__snprintf = yes; then
19315 cat >>confdefs.h <<_ACEOF
19316 #define HAVE_DECL__SNPRINTF $gt_value
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19322 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19323 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
19324 $as_echo_n "(cached) " >&6
19326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19327 /* end confdefs.h. */
19334 char *p = (char *) _snwprintf;
19341 if ac_fn_c_try_compile "$LINENO"; then :
19342 ac_cv_have_decl__snwprintf=yes
19344 ac_cv_have_decl__snwprintf=no
19346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19349 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19350 if test $ac_cv_have_decl__snwprintf = yes; then
19356 cat >>confdefs.h <<_ACEOF
19357 #define HAVE_DECL__SNWPRINTF $gt_value
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19364 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19365 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
19366 $as_echo_n "(cached) " >&6
19368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19369 /* end confdefs.h. */
19375 #ifndef feof_unlocked
19376 char *p = (char *) feof_unlocked;
19383 if ac_fn_c_try_compile "$LINENO"; then :
19384 ac_cv_have_decl_feof_unlocked=yes
19386 ac_cv_have_decl_feof_unlocked=no
19388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19391 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19392 if test $ac_cv_have_decl_feof_unlocked = yes; then
19398 cat >>confdefs.h <<_ACEOF
19399 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19405 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19406 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
19407 $as_echo_n "(cached) " >&6
19409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19410 /* end confdefs.h. */
19416 #ifndef fgets_unlocked
19417 char *p = (char *) fgets_unlocked;
19424 if ac_fn_c_try_compile "$LINENO"; then :
19425 ac_cv_have_decl_fgets_unlocked=yes
19427 ac_cv_have_decl_fgets_unlocked=no
19429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19432 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19433 if test $ac_cv_have_decl_fgets_unlocked = yes; then
19439 cat >>confdefs.h <<_ACEOF
19440 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19446 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19447 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
19448 $as_echo_n "(cached) " >&6
19450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19451 /* end confdefs.h. */
19457 #ifndef getc_unlocked
19458 char *p = (char *) getc_unlocked;
19465 if ac_fn_c_try_compile "$LINENO"; then :
19466 ac_cv_have_decl_getc_unlocked=yes
19468 ac_cv_have_decl_getc_unlocked=no
19470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19473 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19474 if test $ac_cv_have_decl_getc_unlocked = yes; then
19480 cat >>confdefs.h <<_ACEOF
19481 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19486 case $gt_cv_func_printf_posix in
19487 *yes) HAVE_POSIX_PRINTF=1 ;;
19488 *) HAVE_POSIX_PRINTF=0 ;;
19491 if test "$ac_cv_func_asprintf" = yes; then
19497 if test "$ac_cv_func_snprintf" = yes; then
19503 if test "$ac_cv_func_wprintf" = yes; then
19515 am_save_CPPFLAGS="$CPPFLAGS"
19517 for element in $INCICONV; do
19519 for x in $CPPFLAGS; do
19521 acl_save_prefix="$prefix"
19522 prefix="$acl_final_prefix"
19523 acl_save_exec_prefix="$exec_prefix"
19524 exec_prefix="$acl_final_exec_prefix"
19526 exec_prefix="$acl_save_exec_prefix"
19527 prefix="$acl_save_prefix"
19529 if test "X$x" = "X$element"; then
19534 if test -z "$haveit"; then
19535 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19541 $as_echo_n "checking for iconv... " >&6; }
19542 if test "${am_cv_func_iconv+set}" = set; then :
19543 $as_echo_n "(cached) " >&6
19546 am_cv_func_iconv="no, consider installing GNU libiconv"
19548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19549 /* end confdefs.h. */
19550 #include <stdlib.h>
19555 iconv_t cd = iconv_open("","");
19556 iconv(cd,NULL,NULL,NULL,NULL);
19562 if ac_fn_c_try_link "$LINENO"; then :
19563 am_cv_func_iconv=yes
19565 rm -f core conftest.err conftest.$ac_objext \
19566 conftest$ac_exeext conftest.$ac_ext
19567 if test "$am_cv_func_iconv" != yes; then
19568 am_save_LIBS="$LIBS"
19569 LIBS="$LIBS $LIBICONV"
19570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19571 /* end confdefs.h. */
19572 #include <stdlib.h>
19577 iconv_t cd = iconv_open("","");
19578 iconv(cd,NULL,NULL,NULL,NULL);
19584 if ac_fn_c_try_link "$LINENO"; then :
19585 am_cv_lib_iconv=yes
19586 am_cv_func_iconv=yes
19588 rm -f core conftest.err conftest.$ac_objext \
19589 conftest$ac_exeext conftest.$ac_ext
19590 LIBS="$am_save_LIBS"
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19595 $as_echo "$am_cv_func_iconv" >&6; }
19596 if test "$am_cv_func_iconv" = yes; then
19598 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19601 if test "$am_cv_lib_iconv" = yes; then
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19603 $as_echo_n "checking how to link with libiconv... " >&6; }
19604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19605 $as_echo "$LIBICONV" >&6; }
19607 CPPFLAGS="$am_save_CPPFLAGS"
19614 if test "$am_cv_func_iconv" = yes; then
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19616 $as_echo_n "checking for iconv declaration... " >&6; }
19617 if test "${am_cv_proto_iconv+set}" = set; then :
19618 $as_echo_n "(cached) " >&6
19621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19622 /* end confdefs.h. */
19624 #include <stdlib.h>
19630 #if defined(__STDC__) || defined(__cplusplus)
19631 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19644 if ac_fn_c_try_compile "$LINENO"; then :
19645 am_cv_proto_iconv_arg1=""
19647 am_cv_proto_iconv_arg1="const"
19649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19650 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);"
19653 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19655 }$am_cv_proto_iconv" >&5
19657 }$am_cv_proto_iconv" >&6; }
19659 cat >>confdefs.h <<_ACEOF
19660 #define ICONV_CONST $am_cv_proto_iconv_arg1
19666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19667 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19668 if test "${am_cv_langinfo_codeset+set}" = set; then :
19669 $as_echo_n "(cached) " >&6
19671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19672 /* end confdefs.h. */
19673 #include <langinfo.h>
19677 char* cs = nl_langinfo(CODESET);
19682 if ac_fn_c_try_link "$LINENO"; then :
19683 am_cv_langinfo_codeset=yes
19685 am_cv_langinfo_codeset=no
19687 rm -f core conftest.err conftest.$ac_objext \
19688 conftest$ac_exeext conftest.$ac_ext
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19692 $as_echo "$am_cv_langinfo_codeset" >&6; }
19693 if test $am_cv_langinfo_codeset = yes; then
19695 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19699 if test $ac_cv_header_locale_h = yes; then
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19702 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19703 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
19704 $as_echo_n "(cached) " >&6
19706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19707 /* end confdefs.h. */
19708 #include <locale.h>
19717 if ac_fn_c_try_link "$LINENO"; then :
19718 gt_cv_val_LC_MESSAGES=yes
19720 gt_cv_val_LC_MESSAGES=no
19722 rm -f core conftest.err conftest.$ac_objext \
19723 conftest$ac_exeext conftest.$ac_ext
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19726 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19727 if test $gt_cv_val_LC_MESSAGES = yes; then
19729 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19735 if test -n "$INTL_MACOSX_LIBS"; then
19736 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19739 for ac_prog in bison
19741 # Extract the first word of "$ac_prog", so it can be a program name with args.
19742 set dummy $ac_prog; ac_word=$2
19743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19744 $as_echo_n "checking for $ac_word... " >&6; }
19745 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
19746 $as_echo_n "(cached) " >&6
19748 if test -n "$INTLBISON"; then
19749 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19752 for as_dir in $PATH
19755 test -z "$as_dir" && as_dir=.
19756 for ac_exec_ext in '' $ac_executable_extensions; do
19757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19758 ac_cv_prog_INTLBISON="$ac_prog"
19759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19768 INTLBISON=$ac_cv_prog_INTLBISON
19769 if test -n "$INTLBISON"; then
19770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19771 $as_echo "$INTLBISON" >&6; }
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19774 $as_echo "no" >&6; }
19778 test -n "$INTLBISON" && break
19781 if test -z "$INTLBISON"; then
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19785 $as_echo_n "checking version of bison... " >&6; }
19786 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19787 case $ac_prog_version in
19788 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19789 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19790 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19791 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19794 $as_echo "$ac_prog_version" >&6; }
19796 if test $ac_verc_fail = yes; then
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19816 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19817 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
19818 $as_echo_n "(cached) " >&6
19820 gt_save_CPPFLAGS="$CPPFLAGS"
19821 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19822 gt_save_LIBS="$LIBS"
19823 LIBS="$LIBS -framework CoreFoundation"
19824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19825 /* end confdefs.h. */
19826 #include <CFPreferences.h>
19830 CFPreferencesCopyAppValue(NULL, NULL)
19835 if ac_fn_c_try_link "$LINENO"; then :
19836 gt_cv_func_CFPreferencesCopyAppValue=yes
19838 gt_cv_func_CFPreferencesCopyAppValue=no
19840 rm -f core conftest.err conftest.$ac_objext \
19841 conftest$ac_exeext conftest.$ac_ext
19842 CPPFLAGS="$gt_save_CPPFLAGS"
19843 LIBS="$gt_save_LIBS"
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19846 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19847 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19849 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19853 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19854 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
19855 $as_echo_n "(cached) " >&6
19857 gt_save_CPPFLAGS="$CPPFLAGS"
19858 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19859 gt_save_LIBS="$LIBS"
19860 LIBS="$LIBS -framework CoreFoundation"
19861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19862 /* end confdefs.h. */
19863 #include <CFLocale.h>
19867 CFLocaleCopyCurrent();
19872 if ac_fn_c_try_link "$LINENO"; then :
19873 gt_cv_func_CFLocaleCopyCurrent=yes
19875 gt_cv_func_CFLocaleCopyCurrent=no
19877 rm -f core conftest.err conftest.$ac_objext \
19878 conftest$ac_exeext conftest.$ac_ext
19879 CPPFLAGS="$gt_save_CPPFLAGS"
19880 LIBS="$gt_save_LIBS"
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19883 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19884 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19886 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19890 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19891 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19898 $as_echo_n "checking whether NLS is requested... " >&6; }
19899 # Check whether --enable-nls was given.
19900 if test "${enable_nls+set}" = set; then :
19901 enableval=$enable_nls; USE_NLS=$enableval
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19907 $as_echo "$USE_NLS" >&6; }
19912 BUILD_INCLUDED_LIBINTL=no
19913 USE_INCLUDED_LIBINTL=no
19919 if test "$USE_NLS" = "yes"; then
19920 gt_use_preinstalled_gnugettext=no
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19923 $as_echo_n "checking whether included gettext is requested... " >&6; }
19925 # Check whether --with-included-gettext was given.
19926 if test "${with_included_gettext+set}" = set; then :
19927 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19929 nls_cv_force_use_gnu_gettext=no
19932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19933 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19935 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19936 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19944 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19945 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
19946 $as_echo_n "(cached) " >&6
19948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19949 /* end confdefs.h. */
19950 #include <libintl.h>
19951 extern int _nl_msg_cat_cntr;
19952 extern int *_nl_domain_bindings;
19956 bindtextdomain ("", "");
19957 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
19962 if ac_fn_c_try_link "$LINENO"; then :
19963 gt_cv_func_gnugettext1_libc=yes
19965 gt_cv_func_gnugettext1_libc=no
19967 rm -f core conftest.err conftest.$ac_objext \
19968 conftest$ac_exeext conftest.$ac_ext
19970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
19971 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
19973 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
19979 acl_save_prefix="$prefix"
19980 prefix="$acl_final_prefix"
19981 acl_save_exec_prefix="$exec_prefix"
19982 exec_prefix="$acl_final_exec_prefix"
19984 eval additional_includedir=\"$includedir\"
19985 eval additional_libdir=\"$libdir\"
19987 exec_prefix="$acl_save_exec_prefix"
19988 prefix="$acl_save_prefix"
19991 # Check whether --with-libintl-prefix was given.
19992 if test "${with_libintl_prefix+set}" = set; then :
19993 withval=$with_libintl_prefix;
19994 if test "X$withval" = "Xno"; then
19997 if test "X$withval" = "X"; then
19999 acl_save_prefix="$prefix"
20000 prefix="$acl_final_prefix"
20001 acl_save_exec_prefix="$exec_prefix"
20002 exec_prefix="$acl_final_exec_prefix"
20004 eval additional_includedir=\"$includedir\"
20005 eval additional_libdir=\"$libdir\"
20007 exec_prefix="$acl_save_exec_prefix"
20008 prefix="$acl_save_prefix"
20011 additional_includedir="$withval/include"
20012 additional_libdir="$withval/lib"
20023 names_already_handled=
20024 names_next_round='intl '
20025 while test -n "$names_next_round"; do
20026 names_this_round="$names_next_round"
20028 for name in $names_this_round; do
20030 for n in $names_already_handled; do
20031 if test "$n" = "$name"; then
20032 already_handled=yes
20036 if test -z "$already_handled"; then
20037 names_already_handled="$names_already_handled $name"
20038 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20039 eval value=\"\$HAVE_LIB$uppername\"
20040 if test -n "$value"; then
20041 if test "$value" = yes; then
20042 eval value=\"\$LIB$uppername\"
20043 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20044 eval value=\"\$LTLIB$uppername\"
20045 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20054 if test $use_additional = yes; then
20055 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20056 found_dir="$additional_libdir"
20057 found_so="$additional_libdir/lib$name.$shlibext"
20058 if test -f "$additional_libdir/lib$name.la"; then
20059 found_la="$additional_libdir/lib$name.la"
20062 if test -f "$additional_libdir/lib$name.$libext"; then
20063 found_dir="$additional_libdir"
20064 found_a="$additional_libdir/lib$name.$libext"
20065 if test -f "$additional_libdir/lib$name.la"; then
20066 found_la="$additional_libdir/lib$name.la"
20071 if test "X$found_dir" = "X"; then
20072 for x in $LDFLAGS $LTLIBINTL; do
20074 acl_save_prefix="$prefix"
20075 prefix="$acl_final_prefix"
20076 acl_save_exec_prefix="$exec_prefix"
20077 exec_prefix="$acl_final_exec_prefix"
20079 exec_prefix="$acl_save_exec_prefix"
20080 prefix="$acl_save_prefix"
20084 dir=`echo "X$x" | sed -e 's/^X-L//'`
20085 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20087 found_so="$dir/lib$name.$shlibext"
20088 if test -f "$dir/lib$name.la"; then
20089 found_la="$dir/lib$name.la"
20092 if test -f "$dir/lib$name.$libext"; then
20094 found_a="$dir/lib$name.$libext"
20095 if test -f "$dir/lib$name.la"; then
20096 found_la="$dir/lib$name.la"
20102 if test "X$found_dir" != "X"; then
20107 if test "X$found_dir" != "X"; then
20108 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20109 if test "X$found_so" != "X"; then
20110 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20111 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20114 for x in $ltrpathdirs; do
20115 if test "X$x" = "X$found_dir"; then
20120 if test -z "$haveit"; then
20121 ltrpathdirs="$ltrpathdirs $found_dir"
20123 if test "$hardcode_direct" = yes; then
20124 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20126 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20127 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20129 for x in $rpathdirs; do
20130 if test "X$x" = "X$found_dir"; then
20135 if test -z "$haveit"; then
20136 rpathdirs="$rpathdirs $found_dir"
20140 for x in $LDFLAGS $LIBINTL; do
20142 acl_save_prefix="$prefix"
20143 prefix="$acl_final_prefix"
20144 acl_save_exec_prefix="$exec_prefix"
20145 exec_prefix="$acl_final_exec_prefix"
20147 exec_prefix="$acl_save_exec_prefix"
20148 prefix="$acl_save_prefix"
20150 if test "X$x" = "X-L$found_dir"; then
20155 if test -z "$haveit"; then
20156 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20158 if test "$hardcode_minus_L" != no; then
20159 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20161 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20167 if test "X$found_a" != "X"; then
20168 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20170 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20173 additional_includedir=
20174 case "$found_dir" in
20176 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20177 additional_includedir="$basedir/include"
20180 if test "X$additional_includedir" != "X"; then
20181 if test "X$additional_includedir" != "X/usr/include"; then
20183 if test "X$additional_includedir" = "X/usr/local/include"; then
20184 if test -n "$GCC"; then
20186 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20190 if test -z "$haveit"; then
20191 for x in $CPPFLAGS $INCINTL; do
20193 acl_save_prefix="$prefix"
20194 prefix="$acl_final_prefix"
20195 acl_save_exec_prefix="$exec_prefix"
20196 exec_prefix="$acl_final_exec_prefix"
20198 exec_prefix="$acl_save_exec_prefix"
20199 prefix="$acl_save_prefix"
20201 if test "X$x" = "X-I$additional_includedir"; then
20206 if test -z "$haveit"; then
20207 if test -d "$additional_includedir"; then
20208 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20214 if test -n "$found_la"; then
20215 save_libdir="$libdir"
20216 case "$found_la" in
20217 */* | *\\*) . "$found_la" ;;
20218 *) . "./$found_la" ;;
20220 libdir="$save_libdir"
20221 for dep in $dependency_libs; do
20224 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20225 if test "X$additional_libdir" != "X/usr/lib"; then
20227 if test "X$additional_libdir" = "X/usr/local/lib"; then
20228 if test -n "$GCC"; then
20230 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20234 if test -z "$haveit"; then
20236 for x in $LDFLAGS $LIBINTL; do
20238 acl_save_prefix="$prefix"
20239 prefix="$acl_final_prefix"
20240 acl_save_exec_prefix="$exec_prefix"
20241 exec_prefix="$acl_final_exec_prefix"
20243 exec_prefix="$acl_save_exec_prefix"
20244 prefix="$acl_save_prefix"
20246 if test "X$x" = "X-L$additional_libdir"; then
20251 if test -z "$haveit"; then
20252 if test -d "$additional_libdir"; then
20253 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20257 for x in $LDFLAGS $LTLIBINTL; do
20259 acl_save_prefix="$prefix"
20260 prefix="$acl_final_prefix"
20261 acl_save_exec_prefix="$exec_prefix"
20262 exec_prefix="$acl_final_exec_prefix"
20264 exec_prefix="$acl_save_exec_prefix"
20265 prefix="$acl_save_prefix"
20267 if test "X$x" = "X-L$additional_libdir"; then
20272 if test -z "$haveit"; then
20273 if test -d "$additional_libdir"; then
20274 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20281 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20282 if test "$enable_rpath" != no; then
20284 for x in $rpathdirs; do
20285 if test "X$x" = "X$dir"; then
20290 if test -z "$haveit"; then
20291 rpathdirs="$rpathdirs $dir"
20294 for x in $ltrpathdirs; do
20295 if test "X$x" = "X$dir"; then
20300 if test -z "$haveit"; then
20301 ltrpathdirs="$ltrpathdirs $dir"
20306 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20309 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20312 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20313 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20319 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20320 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20326 if test "X$rpathdirs" != "X"; then
20327 if test -n "$hardcode_libdir_separator"; then
20329 for found_dir in $rpathdirs; do
20330 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20332 acl_save_libdir="$libdir"
20334 eval flag=\"$hardcode_libdir_flag_spec\"
20335 libdir="$acl_save_libdir"
20336 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20338 for found_dir in $rpathdirs; do
20339 acl_save_libdir="$libdir"
20340 libdir="$found_dir"
20341 eval flag=\"$hardcode_libdir_flag_spec\"
20342 libdir="$acl_save_libdir"
20343 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20347 if test "X$ltrpathdirs" != "X"; then
20348 for found_dir in $ltrpathdirs; do
20349 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20354 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20355 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
20356 $as_echo_n "(cached) " >&6
20358 gt_save_CPPFLAGS="$CPPFLAGS"
20359 CPPFLAGS="$CPPFLAGS $INCINTL"
20360 gt_save_LIBS="$LIBS"
20361 LIBS="$LIBS $LIBINTL"
20362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20363 /* end confdefs.h. */
20364 #include <libintl.h>
20365 extern int _nl_msg_cat_cntr;
20370 const char *_nl_expand_alias (const char *);
20374 bindtextdomain ("", "");
20375 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20380 if ac_fn_c_try_link "$LINENO"; then :
20381 gt_cv_func_gnugettext1_libintl=yes
20383 gt_cv_func_gnugettext1_libintl=no
20385 rm -f core conftest.err conftest.$ac_objext \
20386 conftest$ac_exeext conftest.$ac_ext
20387 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20388 LIBS="$LIBS $LIBICONV"
20389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20390 /* end confdefs.h. */
20391 #include <libintl.h>
20392 extern int _nl_msg_cat_cntr;
20397 const char *_nl_expand_alias (const char *);
20401 bindtextdomain ("", "");
20402 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20407 if ac_fn_c_try_link "$LINENO"; then :
20408 LIBINTL="$LIBINTL $LIBICONV"
20409 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20410 gt_cv_func_gnugettext1_libintl=yes
20413 rm -f core conftest.err conftest.$ac_objext \
20414 conftest$ac_exeext conftest.$ac_ext
20416 CPPFLAGS="$gt_save_CPPFLAGS"
20417 LIBS="$gt_save_LIBS"
20419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20420 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20423 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20424 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20425 && test "$PACKAGE" != gettext-runtime \
20426 && test "$PACKAGE" != gettext-tools; }; then
20427 gt_use_preinstalled_gnugettext=yes
20435 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20436 nls_cv_use_gnu_gettext=yes
20440 if test "$nls_cv_use_gnu_gettext" = "yes"; then
20441 BUILD_INCLUDED_LIBINTL=yes
20442 USE_INCLUDED_LIBINTL=yes
20443 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20444 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20445 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20449 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20450 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20455 if test -n "$INTL_MACOSX_LIBS"; then
20456 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20457 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20458 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20459 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20463 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20464 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20466 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20474 $as_echo_n "checking whether to use NLS... " >&6; }
20475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20476 $as_echo "$USE_NLS" >&6; }
20477 if test "$USE_NLS" = "yes"; then
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20479 $as_echo_n "checking where the gettext function comes from... " >&6; }
20480 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20481 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20482 gt_source="external libintl"
20487 gt_source="included intl directory"
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20490 $as_echo "$gt_source" >&6; }
20493 if test "$USE_NLS" = "yes"; then
20495 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20496 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20498 $as_echo_n "checking how to link with libintl... " >&6; }
20499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20500 $as_echo "$LIBINTL" >&6; }
20502 for element in $INCINTL; do
20504 for x in $CPPFLAGS; do
20506 acl_save_prefix="$prefix"
20507 prefix="$acl_final_prefix"
20508 acl_save_exec_prefix="$exec_prefix"
20509 exec_prefix="$acl_final_exec_prefix"
20511 exec_prefix="$acl_save_exec_prefix"
20512 prefix="$acl_save_prefix"
20514 if test "X$x" = "X$element"; then
20519 if test -z "$haveit"; then
20520 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20527 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20530 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20538 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20539 BUILD_INCLUDED_LIBINTL=yes
20546 nls_cv_header_intl=
20547 nls_cv_header_libgt=
20559 if test "$USE_INCLUDED_LIBINTL" = yes; then
20560 INTLOBJS="\$(GETTOBJS)"
20564 INTL_LIBTOOL_SUFFIX_PREFIX=
20568 INTLLIBS="$LIBINTL"
20580 support_postgresql=no
20583 support_smartalloc=yes
20584 support_readline=yes
20588 support_wx_console=no
20589 support_tray_monitor=no
20594 support_static_tools=no
20595 support_static_fd=no
20596 support_static_sd=no
20597 support_static_dir=no
20598 support_static_cons=no
20600 build_client_only=no
20609 # Check whether --enable-gnome was given.
20610 if test "${enable_gnome+set}" = set; then :
20611 enableval=$enable_gnome;
20612 if test x$enableval = xyes; then
20621 if test x$support_gnome = xyes; then
20622 as_fn_error $? "bgnome-console no longer supported" "$LINENO" 5
20623 as_fn_error $? "--enable-gnome option no longer supported" "$LINENO" 5
20625 # AC_SUBST(GNOME_DIR)
20627 # Check whether --enable-bat was given.
20628 if test "${enable_bat+set}" = set; then :
20629 enableval=$enable_bat;
20630 if test x$enableval = xyes; then
20632 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20642 if test x$support_bat = xyes; then
20643 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20645 if test $pkg = 0; then
20646 BAT_DIR=src/qt-console
20648 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20666 # Check whether --enable-bwx-console was given.
20667 if test "${enable_bwx_console+set}" = set; then :
20668 enableval=$enable_bwx_console;
20669 if test x$enableval = xyes; then
20670 support_wx_console=yes
20678 if test x$support_wx_console = xyes; then
20679 abc=`$WXCONFIG $WXFLAGS --cppflags`
20681 if test $pkg = 0; then
20682 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20683 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20684 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20688 WX_DIR="src/wx-console"
20691 echo "wx-config program not found. bwx-console disabled."
20693 support_wx_console=no
20698 # Check whether --enable-tray-monitor was given.
20699 if test "${enable_tray_monitor+set}" = set; then :
20700 enableval=$enable_tray_monitor;
20701 if test x$enableval = xyes; then
20702 support_tray_monitor=yes
20710 if test x$support_tray_monitor = xyes; then
20711 abc=`$PKGCONFIG --exists gtk+-2.0`
20713 if test $pkg = 0; then
20714 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20715 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20718 TRAY_MONITOR_DIR=src/tray-monitor
20719 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20721 if test $pkg = 0; then
20723 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20730 # Check whether --enable-smartalloc was given.
20731 if test "${enable_smartalloc+set}" = set; then :
20732 enableval=$enable_smartalloc;
20733 if test x$enableval = xno; then
20734 support_smartalloc=no
20741 if test x$support_smartalloc = xyes; then
20743 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20747 # Check whether --enable-lockmgr was given.
20748 if test "${enable_lockmgr+set}" = set; then :
20749 enableval=$enable_lockmgr;
20750 if test x$enableval = xyes; then
20751 support_lockmgr=yes
20758 if test x$support_lockmgr = xyes; then
20760 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20765 # Check whether --enable-static-tools was given.
20766 if test "${enable_static_tools+set}" = set; then :
20767 enableval=$enable_static_tools;
20768 if test x$enableval = xyes; then
20769 if test x$use_libtool = xyes; then
20770 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20771 please rerun configure with --disable-libtool" "$LINENO" 5
20773 support_static_tools=yes
20781 if test x$support_static_tools = xyes; then
20782 TTOOL_LDFLAGS="-static"
20786 # Check whether --enable-static-fd was given.
20787 if test "${enable_static_fd+set}" = set; then :
20788 enableval=$enable_static_fd;
20789 if test x$enableval = xyes; then
20790 if test x$use_libtool = xyes; then
20791 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20792 please rerun configure with --disable-libtool" "$LINENO" 5
20794 support_static_fd=yes
20802 if test x$support_static_fd = xyes; then
20803 STATIC_FD="static-bacula-fd"
20807 # Check whether --enable-static-sd was given.
20808 if test "${enable_static_sd+set}" = set; then :
20809 enableval=$enable_static_sd;
20810 if test x$enableval = xyes; then
20811 if test x$use_libtool = xyes; then
20812 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20813 please rerun configure with --disable-libtool" "$LINENO" 5
20815 support_static_sd=yes
20823 if test x$support_static_sd = xyes; then
20824 STATIC_SD="static-bacula-sd"
20828 # Check whether --enable-static-dir was given.
20829 if test "${enable_static_dir+set}" = set; then :
20830 enableval=$enable_static_dir;
20831 if test x$enableval = xyes; then
20832 if test x$use_libtool = xyes; then
20833 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20834 please rerun configure with --disable-libtool" "$LINENO" 5
20836 support_static_dir=yes
20844 if test x$support_static_dir = xyes; then
20845 STATIC_DIR="static-bacula-dir"
20849 # Check whether --enable-static-cons was given.
20850 if test "${enable_static_cons+set}" = set; then :
20851 enableval=$enable_static_cons;
20852 if test x$enableval = xyes; then
20853 if test x$use_libtool = xyes; then
20854 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20855 please rerun configure with --disable-libtool" "$LINENO" 5
20857 support_static_cons=yes
20867 if test x$support_static_cons = xyes; then
20868 STATIC_CONS="static-bconsole"
20869 STATIC_GNOME_CONS="static-bgnome-console"
20870 STATIC_WX_CONS="static-bwx-console"
20876 # Check whether --enable-client-only was given.
20877 if test "${enable_client_only+set}" = set; then :
20878 enableval=$enable_client_only;
20879 if test x$enableval = xyes; then
20880 build_client_only=yes
20888 if test x$build_client_only = xno; then
20895 # Check whether --enable-build-dird was given.
20896 if test "${enable_build_dird+set}" = set; then :
20897 enableval=$enable_build_dird;
20898 if test x$enableval = xno; then
20905 if test x$build_dird = xyes; then
20906 DIRD_DIR="src/dird"
20907 DIR_TOOLS="DIRTOOLS"
20910 DIR_TOOLS="NODIRTOOLS"
20915 # Check whether --enable-build-stored was given.
20916 if test "${enable_build_stored+set}" = set; then :
20917 enableval=$enable_build_stored;
20918 if test x$enableval = xno; then
20925 if test x$build_stored = xyes; then
20926 STORED_DIR="src/stored"
20932 # Check whether --enable-conio was given.
20933 if test "${enable_conio+set}" = set; then :
20934 enableval=$enable_conio;
20935 if test x$enableval = xno; then
20945 # Check whether --enable-ipv6 was given.
20946 if test "${enable_ipv6+set}" = set; then :
20947 enableval=$enable_ipv6;
20948 if test x$enableval = xno; then
20956 if test x$support_ipv6 = xyes; then
20957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20958 /* end confdefs.h. */
20959 #include <sys/types.h>
20960 #include <sys/socket.h>
20961 #include <netinet/in.h>
20965 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
20970 if ac_fn_c_try_link "$LINENO"; then :
20975 rm -f core conftest.err conftest.$ac_objext \
20976 conftest$ac_exeext conftest.$ac_ext
20979 if test x$support_ipv6 = xyes; then
20981 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
20986 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
20987 if test "x$ac_cv_header_curses_h" = x""yes; then :
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
20989 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
20990 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
20991 $as_echo_n "(cached) " >&6
20993 ac_check_lib_save_LIBS=$LIBS
20994 LIBS="-lncurses $LIBS"
20995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20996 /* end confdefs.h. */
20998 /* Override any GCC internal prototype to avoid an error.
20999 Use char because int might match the return type of a GCC
21000 builtin and then its argument prototype would still apply. */
21013 if ac_fn_c_try_link "$LINENO"; then :
21014 ac_cv_lib_ncurses_tgetent=yes
21016 ac_cv_lib_ncurses_tgetent=no
21018 rm -f core conftest.err conftest.$ac_objext \
21019 conftest$ac_exeext conftest.$ac_ext
21020 LIBS=$ac_check_lib_save_LIBS
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21023 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21024 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21025 TERM_LIB="-lncurses"
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21028 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21029 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
21030 $as_echo_n "(cached) " >&6
21032 ac_check_lib_save_LIBS=$LIBS
21033 LIBS="-ltermcap $LIBS"
21034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21035 /* end confdefs.h. */
21037 /* Override any GCC internal prototype to avoid an error.
21038 Use char because int might match the return type of a GCC
21039 builtin and then its argument prototype would still apply. */
21052 if ac_fn_c_try_link "$LINENO"; then :
21053 ac_cv_lib_termcap_tgetent=yes
21055 ac_cv_lib_termcap_tgetent=no
21057 rm -f core conftest.err conftest.$ac_objext \
21058 conftest$ac_exeext conftest.$ac_ext
21059 LIBS=$ac_check_lib_save_LIBS
21061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21062 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21063 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21064 TERM_LIB="-ltermcap"
21072 for ac_header in curses.h
21074 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21075 if test "x$ac_cv_header_curses_h" = x""yes; then :
21076 cat >>confdefs.h <<_ACEOF
21077 #define HAVE_CURSES_H 1
21084 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21085 if test "x$ac_cv_header_term_h" = x""yes; then :
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21087 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21088 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21089 $as_echo_n "(cached) " >&6
21091 ac_check_lib_save_LIBS=$LIBS
21092 LIBS="-lcurses $LIBS"
21093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21094 /* end confdefs.h. */
21096 /* Override any GCC internal prototype to avoid an error.
21097 Use char because int might match the return type of a GCC
21098 builtin and then its argument prototype would still apply. */
21111 if ac_fn_c_try_link "$LINENO"; then :
21112 ac_cv_lib_curses_tgetent=yes
21114 ac_cv_lib_curses_tgetent=no
21116 rm -f core conftest.err conftest.$ac_objext \
21117 conftest$ac_exeext conftest.$ac_ext
21118 LIBS=$ac_check_lib_save_LIBS
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21121 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21122 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21123 TERM_LIB="-lcurses"
21137 if test x$support_conio = xyes; then
21138 if test x$TERM_LIB != x; then
21139 CONS_LIBS=$TERM_LIB
21143 support_readline=no
21145 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21148 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21153 # Check whether --enable-readline was given.
21154 if test "${enable_readline+set}" = set; then :
21155 enableval=$enable_readline;
21156 if test x$enableval = xno; then
21157 support_readline=no
21163 if test x$TERM_LIB = x ; then
21164 support_readline=no
21169 if test x$support_readline = xyes; then
21171 # Check whether --with-readline was given.
21172 if test "${with_readline+set}" = set; then :
21173 withval=$with_readline;
21174 case "$with_readline" in
21179 if test -f ${with_readline}/readline.h; then
21180 CONS_INC="-I${with_readline}"
21181 CONS_LDFLAGS="-L$with_readline"
21182 elif test -f ${with_readline}/include/readline/readline.h; then
21183 CONS_INC="-I${with_readline}/include/readline"
21184 CONS_LDFLAGS="-L${with_readline}/lib"
21185 with_readline="${with_readline}/include/readline"
21187 with_readline="/usr/include/readline"
21190 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21191 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21192 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21195 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21197 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21203 echo "readline.h not found. readline turned off ..."
21215 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21216 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
21219 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21222 CONS_INC="-I/usr/include/readline"
21223 CONS_LIBS="-lreadline $TERM_LIB"
21227 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21228 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21229 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21232 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21235 CONS_INC="-I${TOP_DIR}/depkgs/readline"
21236 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21237 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21238 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21243 echo "readline.h not found. readline turned off ..."
21270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21271 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21272 if test "${ac_cv_header_stat_broken+set}" = set; then :
21273 $as_echo_n "(cached) " >&6
21275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21276 /* end confdefs.h. */
21277 #include <sys/types.h>
21278 #include <sys/stat.h>
21280 #if defined S_ISBLK && defined S_IFDIR
21281 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21284 #if defined S_ISBLK && defined S_IFCHR
21285 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21288 #if defined S_ISLNK && defined S_IFREG
21289 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21292 #if defined S_ISSOCK && defined S_IFREG
21293 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21297 if ac_fn_c_try_compile "$LINENO"; then :
21298 ac_cv_header_stat_broken=no
21300 ac_cv_header_stat_broken=yes
21302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21305 $as_echo "$ac_cv_header_stat_broken" >&6; }
21306 if test $ac_cv_header_stat_broken = yes; then
21308 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21312 ac_header_dirent=no
21313 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21314 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21316 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21317 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
21318 $as_echo_n "(cached) " >&6
21320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21321 /* end confdefs.h. */
21322 #include <sys/types.h>
21334 if ac_fn_c_try_compile "$LINENO"; then :
21335 eval "$as_ac_Header=yes"
21337 eval "$as_ac_Header=no"
21339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21341 eval ac_res=\$$as_ac_Header
21342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21343 $as_echo "$ac_res" >&6; }
21344 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21345 cat >>confdefs.h <<_ACEOF
21346 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21349 ac_header_dirent=$ac_hdr; break
21353 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21354 if test $ac_header_dirent = dirent.h; then
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21356 $as_echo_n "checking for library containing opendir... " >&6; }
21357 if test "${ac_cv_search_opendir+set}" = set; then :
21358 $as_echo_n "(cached) " >&6
21360 ac_func_search_save_LIBS=$LIBS
21361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21362 /* end confdefs.h. */
21364 /* Override any GCC internal prototype to avoid an error.
21365 Use char because int might match the return type of a GCC
21366 builtin and then its argument prototype would still apply. */
21379 for ac_lib in '' dir; do
21380 if test -z "$ac_lib"; then
21381 ac_res="none required"
21384 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21386 if ac_fn_c_try_link "$LINENO"; then :
21387 ac_cv_search_opendir=$ac_res
21389 rm -f core conftest.err conftest.$ac_objext \
21391 if test "${ac_cv_search_opendir+set}" = set; then :
21395 if test "${ac_cv_search_opendir+set}" = set; then :
21398 ac_cv_search_opendir=no
21400 rm conftest.$ac_ext
21401 LIBS=$ac_func_search_save_LIBS
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21404 $as_echo "$ac_cv_search_opendir" >&6; }
21405 ac_res=$ac_cv_search_opendir
21406 if test "$ac_res" != no; then :
21407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21413 $as_echo_n "checking for library containing opendir... " >&6; }
21414 if test "${ac_cv_search_opendir+set}" = set; then :
21415 $as_echo_n "(cached) " >&6
21417 ac_func_search_save_LIBS=$LIBS
21418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21419 /* end confdefs.h. */
21421 /* Override any GCC internal prototype to avoid an error.
21422 Use char because int might match the return type of a GCC
21423 builtin and then its argument prototype would still apply. */
21436 for ac_lib in '' x; do
21437 if test -z "$ac_lib"; then
21438 ac_res="none required"
21441 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21443 if ac_fn_c_try_link "$LINENO"; then :
21444 ac_cv_search_opendir=$ac_res
21446 rm -f core conftest.err conftest.$ac_objext \
21448 if test "${ac_cv_search_opendir+set}" = set; then :
21452 if test "${ac_cv_search_opendir+set}" = set; then :
21455 ac_cv_search_opendir=no
21457 rm conftest.$ac_ext
21458 LIBS=$ac_func_search_save_LIBS
21460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21461 $as_echo "$ac_cv_search_opendir" >&6; }
21462 ac_res=$ac_cv_search_opendir
21463 if test "$ac_res" != no; then :
21464 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21470 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21472 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21473 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21474 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21475 cat >>confdefs.h <<_ACEOF
21476 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21482 for ac_func in nanosleep nl_langinfo
21484 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21485 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21486 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21487 cat >>confdefs.h <<_ACEOF
21488 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21494 for ac_header in varargs.h
21496 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21497 if test "x$ac_cv_header_varargs_h" = x""yes; then :
21498 cat >>confdefs.h <<_ACEOF
21499 #define HAVE_VARARGS_H 1
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21509 $as_echo_n "checking for Python support... " >&6; }
21511 # Check whether --with-python was given.
21512 if test "${with_python+set}" = set; then :
21513 withval=$with_python;
21516 if test "$withval" != "no"; then
21517 if test "$withval" = "yes"; then
21518 if test -e /usr/bin/python-config ; then
21519 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21520 PYTHON_LIBS=`/usr/bin/python-config --libs`
21522 for python_root in /usr /usr/local /usr/sfw; do
21523 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21524 if test -f $python_root/include/${ver}/Python.h; then
21525 PYTHON_INCDIR=-I$python_root/include/${ver}
21526 if test -d $python_root/lib64/${ver}/config; then
21527 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21529 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21536 if test x$PYTHON_INCDIR = x; then
21537 if test -f $prefix/include/Python.h; then
21538 PYTHON_INCDIR=-I$prefix/include
21539 if test -d $prefix/lib64/config; then
21540 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21542 PYTHON_LIBS="-L$prefix/lib/config -lpython"
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21546 $as_echo "no" >&6; }
21547 as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
21552 if test -e $withval/bin/python-config ; then
21553 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21554 PYTHON_LIBS=`$withval/bin/python-config --libs`
21555 elif test -f $withval/Python.h; then
21556 PYTHON_INCDIR=-I$withval
21557 PYTHON_LIBS="-L$withval/config -lpython"
21558 elif test -f $withval/include/Python.h; then
21559 PYTHON_INCDIR=-I$withval/include
21560 if test -d $withval/lib64/config; then
21561 PYTHON_LIBS="-L$withval/lib64/config -lpython"
21563 PYTHON_LIBS="-L$withval/lib/config -lpython"
21565 elif test -f $withval/include/python/Python.h; then
21566 PYTHON_INCDIR=-I$withval/include/python
21567 if test -d $withval/lib64/python/config; then
21568 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21570 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21574 $as_echo "no" >&6; }
21575 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21579 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21582 $as_echo "yes" >&6; }
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21585 $as_echo "$as_me: checking for more Python libs" >&6;}
21586 saved_LIBS="$LIBS"; LIBS=
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21588 $as_echo_n "checking for library containing shm_open... " >&6; }
21589 if test "${ac_cv_search_shm_open+set}" = set; then :
21590 $as_echo_n "(cached) " >&6
21592 ac_func_search_save_LIBS=$LIBS
21593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21594 /* end confdefs.h. */
21596 /* Override any GCC internal prototype to avoid an error.
21597 Use char because int might match the return type of a GCC
21598 builtin and then its argument prototype would still apply. */
21606 return shm_open ();
21611 for ac_lib in '' rt; do
21612 if test -z "$ac_lib"; then
21613 ac_res="none required"
21616 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21618 if ac_fn_c_try_link "$LINENO"; then :
21619 ac_cv_search_shm_open=$ac_res
21621 rm -f core conftest.err conftest.$ac_objext \
21623 if test "${ac_cv_search_shm_open+set}" = set; then :
21627 if test "${ac_cv_search_shm_open+set}" = set; then :
21630 ac_cv_search_shm_open=no
21632 rm conftest.$ac_ext
21633 LIBS=$ac_func_search_save_LIBS
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21636 $as_echo "$ac_cv_search_shm_open" >&6; }
21637 ac_res=$ac_cv_search_shm_open
21638 if test "$ac_res" != no; then :
21639 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21644 $as_echo_n "checking for openpty in -lutil... " >&6; }
21645 if test "${ac_cv_lib_util_openpty+set}" = set; then :
21646 $as_echo_n "(cached) " >&6
21648 ac_check_lib_save_LIBS=$LIBS
21649 LIBS="-lutil $LIBS"
21650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21651 /* end confdefs.h. */
21653 /* Override any GCC internal prototype to avoid an error.
21654 Use char because int might match the return type of a GCC
21655 builtin and then its argument prototype would still apply. */
21668 if ac_fn_c_try_link "$LINENO"; then :
21669 ac_cv_lib_util_openpty=yes
21671 ac_cv_lib_util_openpty=no
21673 rm -f core conftest.err conftest.$ac_objext \
21674 conftest$ac_exeext conftest.$ac_ext
21675 LIBS=$ac_check_lib_save_LIBS
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21678 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21679 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
21680 cat >>confdefs.h <<_ACEOF
21681 #define HAVE_LIBUTIL 1
21684 LIBS="-lutil $LIBS"
21688 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21692 $as_echo "no" >&6; }
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21698 $as_echo "no" >&6; }
21706 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21707 if test "x$ac_cv_func_socket" = x""yes; then :
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21709 $as_echo "using libc's socket" >&6; }
21711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21712 $as_echo_n "checking for socket in -lxnet... " >&6; }
21713 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
21714 $as_echo_n "(cached) " >&6
21716 ac_check_lib_save_LIBS=$LIBS
21717 LIBS="-lxnet $LIBS"
21718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21719 /* end confdefs.h. */
21721 /* Override any GCC internal prototype to avoid an error.
21722 Use char because int might match the return type of a GCC
21723 builtin and then its argument prototype would still apply. */
21736 if ac_fn_c_try_link "$LINENO"; then :
21737 ac_cv_lib_xnet_socket=yes
21739 ac_cv_lib_xnet_socket=no
21741 rm -f core conftest.err conftest.$ac_objext \
21742 conftest$ac_exeext conftest.$ac_ext
21743 LIBS=$ac_check_lib_save_LIBS
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21746 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21747 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
21748 cat >>confdefs.h <<_ACEOF
21749 #define HAVE_LIBXNET 1
21752 LIBS="-lxnet $LIBS"
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21757 $as_echo_n "checking for socket in -lsocket... " >&6; }
21758 if test "${ac_cv_lib_socket_socket+set}" = set; then :
21759 $as_echo_n "(cached) " >&6
21761 ac_check_lib_save_LIBS=$LIBS
21762 LIBS="-lsocket $LIBS"
21763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21764 /* end confdefs.h. */
21766 /* Override any GCC internal prototype to avoid an error.
21767 Use char because int might match the return type of a GCC
21768 builtin and then its argument prototype would still apply. */
21781 if ac_fn_c_try_link "$LINENO"; then :
21782 ac_cv_lib_socket_socket=yes
21784 ac_cv_lib_socket_socket=no
21786 rm -f core conftest.err conftest.$ac_objext \
21787 conftest$ac_exeext conftest.$ac_ext
21788 LIBS=$ac_check_lib_save_LIBS
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21791 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21792 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
21793 cat >>confdefs.h <<_ACEOF
21794 #define HAVE_LIBSOCKET 1
21797 LIBS="-lsocket $LIBS"
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21802 $as_echo_n "checking for socket in -linet... " >&6; }
21803 if test "${ac_cv_lib_inet_socket+set}" = set; then :
21804 $as_echo_n "(cached) " >&6
21806 ac_check_lib_save_LIBS=$LIBS
21807 LIBS="-linet $LIBS"
21808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21809 /* end confdefs.h. */
21811 /* Override any GCC internal prototype to avoid an error.
21812 Use char because int might match the return type of a GCC
21813 builtin and then its argument prototype would still apply. */
21826 if ac_fn_c_try_link "$LINENO"; then :
21827 ac_cv_lib_inet_socket=yes
21829 ac_cv_lib_inet_socket=no
21831 rm -f core conftest.err conftest.$ac_objext \
21832 conftest$ac_exeext conftest.$ac_ext
21833 LIBS=$ac_check_lib_save_LIBS
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21836 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21837 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
21838 cat >>confdefs.h <<_ACEOF
21839 #define HAVE_LIBINET 1
21842 LIBS="-linet $LIBS"
21852 # Check whether --with-tcp-wrappers was given.
21853 if test "${with_tcp_wrappers+set}" = set; then :
21854 withval=$with_tcp_wrappers;
21855 if test "x$withval" != "xno" ; then
21857 LIBS="$saved_LIBS -lwrap"
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21859 $as_echo_n "checking for library containing nanosleep... " >&6; }
21860 if test "${ac_cv_search_nanosleep+set}" = set; then :
21861 $as_echo_n "(cached) " >&6
21863 ac_func_search_save_LIBS=$LIBS
21864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21865 /* end confdefs.h. */
21867 /* Override any GCC internal prototype to avoid an error.
21868 Use char because int might match the return type of a GCC
21869 builtin and then its argument prototype would still apply. */
21877 return nanosleep ();
21882 for ac_lib in '' rt; do
21883 if test -z "$ac_lib"; then
21884 ac_res="none required"
21887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21889 if ac_fn_c_try_link "$LINENO"; then :
21890 ac_cv_search_nanosleep=$ac_res
21892 rm -f core conftest.err conftest.$ac_objext \
21894 if test "${ac_cv_search_nanosleep+set}" = set; then :
21898 if test "${ac_cv_search_nanosleep+set}" = set; then :
21901 ac_cv_search_nanosleep=no
21903 rm conftest.$ac_ext
21904 LIBS=$ac_func_search_save_LIBS
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
21907 $as_echo "$ac_cv_search_nanosleep" >&6; }
21908 ac_res=$ac_cv_search_nanosleep
21909 if test "$ac_res" != no; then :
21910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
21915 $as_echo_n "checking for libwrap... " >&6; }
21916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21917 /* end confdefs.h. */
21919 #include <sys/types.h>
21921 int deny_severity = 0;
21922 int allow_severity = 0;
21923 struct request_info *req;
21935 if ac_fn_c_try_link "$LINENO"; then :
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21938 $as_echo "yes" >&6; }
21940 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21948 LIBS="$saved_LIBS -lwrap -lnsl"
21949 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
21950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21951 /* end confdefs.h. */
21953 #include <sys/types.h>
21955 int deny_severity = 0;
21956 int allow_severity = 0;
21957 struct request_info *req;
21969 if ac_fn_c_try_link "$LINENO"; then :
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21972 $as_echo "yes" >&6; }
21974 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21982 as_fn_error $? "*** libwrap missing" "$LINENO" 5
21986 rm -f core conftest.err conftest.$ac_objext \
21987 conftest$ac_exeext conftest.$ac_ext
21991 rm -f core conftest.err conftest.$ac_objext \
21992 conftest$ac_exeext conftest.$ac_ext
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22000 $as_echo_n "checking for OpenSSL... " >&6; }
22002 # Check whether --with-openssl was given.
22003 if test "${with_openssl+set}" = set; then :
22004 withval=$with_openssl;
22005 with_openssl_directory=${withval}
22011 if test "x$with_openssl_directory" != "xno"; then
22012 OPENSSL_LIBS="-lssl -lcrypto"
22015 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22017 # Make sure the $with_openssl_directory also makes sense
22019 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22020 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22021 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22025 saved_LIBS="${LIBS}"
22026 saved_CFLAGS="${CFLAGS}"
22027 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22028 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22031 /* end confdefs.h. */
22033 #include <openssl/ssl.h>
22039 CRYPTO_set_id_callback(NULL);
22045 if ac_fn_c_try_link "$LINENO"; then :
22048 support_crypto="yes"
22053 support_crypto="no"
22057 rm -f core conftest.err conftest.$ac_objext \
22058 conftest$ac_exeext conftest.$ac_ext
22060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22061 /* end confdefs.h. */
22063 #include <openssl/evp.h>
22075 if ac_fn_c_try_link "$LINENO"; then :
22077 ac_cv_openssl_sha2="yes"
22081 ac_cv_openssl_sha2="no"
22085 rm -f core conftest.err conftest.$ac_objext \
22086 conftest$ac_exeext conftest.$ac_ext
22088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22089 /* end confdefs.h. */
22091 #include <openssl/evp.h>
22103 if ac_fn_c_try_link "$LINENO"; then :
22105 ac_cv_openssl_export="no"
22109 ac_cv_openssl_export="yes"
22113 rm -f core conftest.err conftest.$ac_objext \
22114 conftest$ac_exeext conftest.$ac_ext
22116 if test "$support_tls" = "yes"; then
22118 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22121 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22124 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22128 if test "$ac_cv_openssl_sha2" = "yes"; then
22130 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22134 if test "$ac_cv_openssl_export" = "yes"; then
22136 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22140 if test "$support_crypto" = "yes"; then
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lssl" >&5
22142 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lssl... " >&6; }
22143 if test "${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+set}" = set; then :
22144 $as_echo_n "(cached) " >&6
22146 ac_check_lib_save_LIBS=$LIBS
22148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22149 /* end confdefs.h. */
22151 /* Override any GCC internal prototype to avoid an error.
22152 Use char because int might match the return type of a GCC
22153 builtin and then its argument prototype would still apply. */
22157 char EVP_PKEY_encrypt_old ();
22161 return EVP_PKEY_encrypt_old ();
22166 if ac_fn_c_try_link "$LINENO"; then :
22167 ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
22169 ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
22171 rm -f core conftest.err conftest.$ac_objext \
22172 conftest$ac_exeext conftest.$ac_ext
22173 LIBS=$ac_check_lib_save_LIBS
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
22176 $as_echo "$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
22177 if test "x$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" = x""yes; then :
22179 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22185 LIBS="${saved_LIBS}"
22186 CFLAGS="${saved_CFLAGS}"
22189 support_crypto="no"
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22194 $as_echo "$support_tls" >&6; }
22196 if test "$support_tls" = "no"; then
22200 if test "$support_crypto" = "no"; then
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22209 $as_echo_n "checking for library containing dlopen... " >&6; }
22210 if test "${ac_cv_search_dlopen+set}" = set; then :
22211 $as_echo_n "(cached) " >&6
22213 ac_func_search_save_LIBS=$LIBS
22214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22215 /* end confdefs.h. */
22217 /* Override any GCC internal prototype to avoid an error.
22218 Use char because int might match the return type of a GCC
22219 builtin and then its argument prototype would still apply. */
22232 for ac_lib in '' dl; do
22233 if test -z "$ac_lib"; then
22234 ac_res="none required"
22237 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22239 if ac_fn_c_try_link "$LINENO"; then :
22240 ac_cv_search_dlopen=$ac_res
22242 rm -f core conftest.err conftest.$ac_objext \
22244 if test "${ac_cv_search_dlopen+set}" = set; then :
22248 if test "${ac_cv_search_dlopen+set}" = set; then :
22251 ac_cv_search_dlopen=no
22253 rm conftest.$ac_ext
22254 LIBS=$ac_func_search_save_LIBS
22256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22257 $as_echo "$ac_cv_search_dlopen" >&6; }
22258 ac_res=$ac_cv_search_dlopen
22259 if test "$ac_res" != no; then :
22260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22265 working_dir=`eval echo ${prefix}/var/bacula/working`
22267 # Check whether --with-working-dir was given.
22268 if test "${with_working_dir+set}" = set; then :
22269 withval=$with_working_dir;
22270 if test "x$withval" != "xno" ; then
22271 working_dir=$withval
22282 # Check whether --with-archivedir was given.
22283 if test "${with_archivedir+set}" = set; then :
22284 withval=$with_archivedir;
22285 if test "x$withval" != "xno" ; then
22286 archivedir=$withval
22295 basename=`hostname`
22297 # Check whether --with-basename was given.
22298 if test "${with_basename+set}" = set; then :
22299 withval=$with_basename;
22300 if test "x$withval" != "xno" ; then
22310 hostname=`uname -n | cut -d '.' -f 1`
22311 if test x${hostname} = x ; then
22312 hostname="localhost"
22315 # Check whether --with-hostname was given.
22316 if test "${with_hostname+set}" = set; then :
22317 withval=$with_hostname;
22318 if test "x$withval" != "xno" ; then
22329 scriptdir=`eval echo ${sysconfdir}`
22331 # Check whether --with-scriptdir was given.
22332 if test "${with_scriptdir+set}" = set; then :
22333 withval=$with_scriptdir;
22334 if test "x$withval" != "xno" ; then
22347 # Check whether --with-bsrdir was given.
22348 if test "${with_bsrdir+set}" = set; then :
22349 withval=$with_bsrdir;
22350 if test "x$withval" != "xno" ; then
22362 # Check whether --with-logdir was given.
22363 if test "${with_logdir+set}" = set; then :
22364 withval=$with_logdir;
22365 if test "x$withval" != "xno" ; then
22376 # ------------------------------------------
22377 # Where to place plugindir (plugin files)
22378 # ------------------------------------------
22379 plugindir=`eval echo ${libdir}`
22381 # Check whether --with-plugindir was given.
22382 if test "${with_plugindir+set}" = set; then :
22383 withval=$with_plugindir;
22384 if test "x$withval" != "xno" ; then
22394 dump_email=root@localhost
22396 # Check whether --with-dump-email was given.
22397 if test "${with_dump_email+set}" = set; then :
22398 withval=$with_dump_email;
22399 if test "x$withval" != "xno" ; then
22400 dump_email=$withval
22409 job_email=root@localhost
22411 # Check whether --with-job-email was given.
22412 if test "${with_job_email+set}" = set; then :
22413 withval=$with_job_email;
22414 if test "x$withval" != "xno" ; then
22424 smtp_host=localhost
22426 # Check whether --with-smtp_host was given.
22427 if test "${with_smtp_host+set}" = set; then :
22428 withval=$with_smtp_host;
22429 if test "x$withval" != "xno" ; then
22441 # Check whether --with-pid-dir was given.
22442 if test "${with_pid_dir+set}" = set; then :
22443 withval=$with_pid_dir;
22444 if test "x$withval" != "xno" ; then
22452 cat >>confdefs.h <<_ACEOF
22453 #define _PATH_BACULA_PIDDIR "$piddir"
22458 subsysdir=/var/run/subsys
22459 if test -d /var/run/subsys; then
22460 subsysdir=/var/run/subsys
22461 elif test -d /var/lock/subsys; then
22462 subsysdir=/var/lock/subsys
22464 subsysdir=/var/run/subsys
22467 # Check whether --with-subsys-dir was given.
22468 if test "${with_subsys_dir+set}" = set; then :
22469 withval=$with_subsys_dir;
22470 if test "x$withval" != "xno" ; then
22482 # Check whether --with-baseport was given.
22483 if test "${with_baseport+set}" = set; then :
22484 withval=$with_baseport;
22485 if test "x$withval" != "xno" ; then
22494 dir_port=`expr $baseport`
22495 fd_port=`expr $baseport + 1`
22496 sd_port=`expr $fd_port + 1`
22504 # Check whether --with-dir-password was given.
22505 if test "${with_dir_password+set}" = set; then :
22506 withval=$with_dir_password;
22507 if test "x$withval" != "xno" ; then
22508 dir_password=$withval
22515 if test "x$dir_password" = "x" ; then
22516 if test "x$OPENSSL" = "xnone" ; then
22517 key=`autoconf/randpass 33`
22519 key=`openssl rand -base64 33`
22526 # Check whether --with-fd-password was given.
22527 if test "${with_fd_password+set}" = set; then :
22528 withval=$with_fd_password;
22529 if test "x$withval" != "xno" ; then
22530 fd_password=$withval
22537 if test "x$fd_password" = "x" ; then
22538 if test "x$OPENSSL" = "xnone" ; then
22539 key=`autoconf/randpass 37`
22541 key=`openssl rand -base64 33`
22548 # Check whether --with-sd-password was given.
22549 if test "${with_sd_password+set}" = set; then :
22550 withval=$with_sd_password;
22551 if test "x$withval" != "xno" ; then
22552 sd_password=$withval
22559 if test "x$sd_password" = "x" ; then
22560 if test "x$OPENSSL" = "xnone" ; then
22561 key=`autoconf/randpass 41`
22563 key=`openssl rand -base64 33`
22570 # Check whether --with-mon-dir-password was given.
22571 if test "${with_mon_dir_password+set}" = set; then :
22572 withval=$with_mon_dir_password;
22573 if test "x$withval" != "xno" ; then
22574 mon_dir_password=$withval
22581 if test "x$mon_dir_password" = "x" ; then
22582 if test "x$OPENSSL" = "xnone" ; then
22583 key=`autoconf/randpass 33`
22585 key=`openssl rand -base64 33`
22587 mon_dir_password=$key
22592 # Check whether --with-mon-fd-password was given.
22593 if test "${with_mon_fd_password+set}" = set; then :
22594 withval=$with_mon_fd_password;
22595 if test "x$withval" != "xno" ; then
22596 mon_fd_password=$withval
22603 if test "x$mon_fd_password" = "x" ; then
22604 if test "x$OPENSSL" = "xnone" ; then
22605 key=`autoconf/randpass 37`
22607 key=`openssl rand -base64 33`
22609 mon_fd_password=$key
22614 # Check whether --with-mon-sd-password was given.
22615 if test "${with_mon_sd_password+set}" = set; then :
22616 withval=$with_mon_sd_password;
22617 if test "x$withval" != "xno" ; then
22618 mon_sd_password=$withval
22625 if test "x$mon_sd_password" = "x" ; then
22626 if test "x$OPENSSL" = "xnone" ; then
22627 key=`autoconf/randpass 41`
22629 key=`openssl rand -base64 33`
22631 mon_sd_password=$key
22643 # Check whether --with-db_name was given.
22644 if test "${with_db_name+set}" = set; then :
22645 withval=$with_db_name;
22646 if test "x$withval" != "x" ; then
22657 # Check whether --with-db_user was given.
22658 if test "${with_db_user+set}" = set; then :
22659 withval=$with_db_user;
22660 if test "x$withval" != "x" ; then
22671 # Check whether --with-db_password was given.
22672 if test "${with_db_password+set}" = set; then :
22673 withval=$with_db_password;
22674 if test "x$withval" != "x" ; then
22675 db_password=$withval
22685 # Check whether --with-db_port was given.
22686 if test "${with_db_port+set}" = set; then :
22687 withval=$with_db_port;
22688 if test "x$withval" != "x" ; then
22698 # Handle users and groups for each daemon
22702 # Check whether --with-dir_user was given.
22703 if test "${with_dir_user+set}" = set; then :
22704 withval=$with_dir_user;
22705 if test "x$withval" != "x" ; then
22715 # Check whether --with-dir_group was given.
22716 if test "${with_dir_group+set}" = set; then :
22717 withval=$with_dir_group;
22718 if test "x$withval" != "x" ; then
22728 # Check whether --with-sd_user was given.
22729 if test "${with_sd_user+set}" = set; then :
22730 withval=$with_sd_user;
22731 if test "x$withval" != "x" ; then
22741 # Check whether --with-sd_group was given.
22742 if test "${with_sd_group+set}" = set; then :
22743 withval=$with_sd_group;
22744 if test "x$withval" != "x" ; then
22754 # Check whether --with-fd_user was given.
22755 if test "${with_fd_user+set}" = set; then :
22756 withval=$with_fd_user;
22757 if test "x$withval" != "x" ; then
22767 # Check whether --with-fd_group was given.
22768 if test "${with_fd_group+set}" = set; then :
22769 withval=$with_fd_group;
22770 if test "x$withval" != "x" ; then
22787 # Check whether --with-sbin-perm was given.
22788 if test "${with_sbin_perm+set}" = set; then :
22789 withval=$with_sbin_perm;
22790 if test "x$withval" != "x" ; then
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22804 $as_echo_n "checking for PostgreSQL support... " >&6; }
22806 # Check whether --with-postgresql was given.
22807 if test "${with_postgresql+set}" = set; then :
22808 withval=$with_postgresql;
22809 if test "$withval" != "no"; then
22810 if test "$db_found" = "yes"; then
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
22812 $as_echo "error" >&6; }
22813 as_fn_error $? "\"You can configure for only one database.\"" "$LINENO" 5;
22815 if test "$withval" = "yes"; then
22816 PG_CONFIG=`which pg_config`
22817 if test -n "$PG_CONFIG";then
22818 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22819 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22820 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22821 elif test -f /usr/local/include/libpq-fe.h; then
22822 POSTGRESQL_INCDIR=/usr/local/include
22823 if test -d /usr/local/lib64; then
22824 POSTGRESQL_LIBDIR=/usr/local/lib64
22826 POSTGRESQL_LIBDIR=/usr/local/lib
22828 POSTGRESQL_BINDIR=/usr/local/bin
22829 elif test -f /usr/include/libpq-fe.h; then
22830 POSTGRESQL_INCDIR=/usr/include
22831 if test -d /usr/lib64; then
22832 POSTGRESQL_LIBDIR=/usr/lib64
22834 POSTGRESQL_LIBDIR=/usr/lib
22836 POSTGRESQL_BINDIR=/usr/bin
22837 elif test -f /usr/include/pgsql/libpq-fe.h; then
22838 POSTGRESQL_INCDIR=/usr/include/pgsql
22839 if test -d /usr/lib64/pgsql; then
22840 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22842 POSTGRESQL_LIBDIR=/usr/lib/pgsql
22844 POSTGRESQL_BINDIR=/usr/bin
22845 elif test -f /usr/include/postgresql/libpq-fe.h; then
22846 POSTGRESQL_INCDIR=/usr/include/postgresql
22847 if test -d /usr/lib64/postgresql; then
22848 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22850 POSTGRESQL_LIBDIR=/usr/lib/postgresql
22852 POSTGRESQL_BINDIR=/usr/bin
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22855 $as_echo "no" >&6; }
22856 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22858 elif test -f $withval/include/libpq-fe.h; then
22859 POSTGRESQL_INCDIR=$withval/include
22860 POSTGRESQL_LIBDIR=$withval/lib
22861 POSTGRESQL_BINDIR=$withval/bin
22862 elif test -f $withval/include/postgresql/libpq-fe.h; then
22863 POSTGRESQL_INCDIR=$withval/include/postgresql
22864 if test -d $withval/lib64; then
22865 POSTGRESQL_LIBDIR=$withval/lib64
22867 POSTGRESQL_LIBDIR=$withval/lib
22869 POSTGRESQL_BINDIR=$withval/bin
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22872 $as_echo "no" >&6; }
22873 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22875 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22878 $as_echo "yes" >&6; }
22879 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
22880 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22881 if test "x$ac_cv_func_crypt" = x""yes; then :
22884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22885 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22886 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22887 $as_echo_n "(cached) " >&6
22889 ac_check_lib_save_LIBS=$LIBS
22890 LIBS="-lcrypt $LIBS"
22891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22892 /* end confdefs.h. */
22894 /* Override any GCC internal prototype to avoid an error.
22895 Use char because int might match the return type of a GCC
22896 builtin and then its argument prototype would still apply. */
22909 if ac_fn_c_try_link "$LINENO"; then :
22910 ac_cv_lib_crypt_crypt=yes
22912 ac_cv_lib_crypt_crypt=no
22914 rm -f core conftest.err conftest.$ac_objext \
22915 conftest$ac_exeext conftest.$ac_ext
22916 LIBS=$ac_check_lib_save_LIBS
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22919 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22920 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
22921 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
22926 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
22927 SQL_LFLAGS=$POSTGRESQL_LFLAGS
22928 SQL_BINDIR=$POSTGRESQL_BINDIR
22929 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
22932 support_postgresql=yes
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22937 $as_echo "no" >&6; }
22942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22943 $as_echo "no" >&6; }
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
22956 $as_echo_n "checking for MySQL support... " >&6; }
22958 # Check whether --with-mysql was given.
22959 if test "${with_mysql+set}" = set; then :
22960 withval=$with_mysql;
22961 if test "$withval" != "no"; then
22962 if test "$withval" = "yes"; then
22963 if test -f /usr/local/mysql/include/mysql/mysql.h; then
22964 MYSQL_INCDIR=/usr/local/mysql/include/mysql
22965 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
22966 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
22967 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
22969 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
22971 MYSQL_BINDIR=/usr/local/mysql/bin
22972 elif test -f /usr/include/mysql/mysql.h; then
22973 MYSQL_INCDIR=/usr/include/mysql
22974 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
22975 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
22976 MYSQL_LIBDIR=/usr/lib64/mysql
22977 elif test -f /usr/lib64/libmysqlclient_r.a \
22978 -o -f /usr/lib64/libmysqlclient_r.so; then
22979 MYSQL_LIBDIR=/usr/lib64
22980 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
22981 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
22982 MYSQL_LIBDIR=/usr/lib/mysql
22984 MYSQL_LIBDIR=/usr/lib
22986 MYSQL_BINDIR=/usr/bin
22987 elif test -f /usr/include/mysql.h; then
22988 MYSQL_INCDIR=/usr/include
22989 if test -f /usr/lib64/libmysqlclient_r.a \
22990 -o -f /usr/lib64/libmysqlclient_r.so; then
22991 MYSQL_LIBDIR=/usr/lib64
22993 MYSQL_LIBDIR=/usr/lib
22995 MYSQL_BINDIR=/usr/bin
22996 elif test -f /usr/local/include/mysql/mysql.h; then
22997 MYSQL_INCDIR=/usr/local/include/mysql
22998 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
22999 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23000 MYSQL_LIBDIR=/usr/local/lib64/mysql
23002 MYSQL_LIBDIR=/usr/local/lib/mysql
23004 MYSQL_BINDIR=/usr/local/bin
23005 elif test -f /usr/local/include/mysql.h; then
23006 MYSQL_INCDIR=/usr/local/include
23007 if test -f /usr/local/lib64/libmysqlclient_r.a \
23008 -o -f /usr/local/lib64/libmysqlclient_r.so; then
23009 MYSQL_LIBDIR=/usr/local/lib64
23011 MYSQL_LIBDIR=/usr/local/lib
23013 MYSQL_BINDIR=/usr/local/bin
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23016 $as_echo "no" >&6; }
23017 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23020 if test -f $withval/include/mysql/mysql.h; then
23021 MYSQL_INCDIR=$withval/include/mysql
23022 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23023 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23024 MYSQL_LIBDIR=$withval/lib64/mysql
23025 elif test -f $withval/lib64/libmysqlclient_r.a \
23026 -o -f $withval/lib64/libmysqlclient_r.so; then
23027 MYSQL_LIBDIR=$withval/lib64
23028 elif test -f $withval/lib/libmysqlclient_r.a \
23029 -o -f $withval/lib/libmysqlclient_r.so; then
23030 MYSQL_LIBDIR=$withval/lib
23032 MYSQL_LIBDIR=$withval/lib/mysql
23034 MYSQL_BINDIR=$withval/bin
23035 elif test -f $withval/include/mysql.h; then
23036 MYSQL_INCDIR=$withval/include
23037 if test -f $withval/lib64/libmysqlclient_r.a \
23038 -o -f $withval/lib64/libmysqlclient_r.so; then
23039 MYSQL_LIBDIR=$withval/lib64
23041 MYSQL_LIBDIR=$withval/lib
23043 MYSQL_BINDIR=$withval/bin
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23046 $as_echo "no" >&6; }
23047 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23050 SQL_INCLUDE=-I$MYSQL_INCDIR
23051 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23052 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23053 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23054 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23057 SQL_BINDIR=$MYSQL_BINDIR
23058 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23061 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23064 $as_echo "yes" >&6; }
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23072 $as_echo "no" >&6; }
23080 # Check whether --with-embedded-mysql was given.
23081 if test "${with_embedded_mysql+set}" = set; then :
23082 withval=$with_embedded_mysql;
23083 if test "$withval" != "no"; then
23084 if test "$withval" = "yes"; then
23085 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23086 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23087 if test -d /usr/local/mysql/lib64/mysql; then
23088 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23090 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23092 MYSQL_BINDIR=/usr/local/mysql/bin
23093 elif test -f /usr/include/mysql/mysql.h; then
23094 MYSQL_INCDIR=/usr/include/mysql
23095 if test -d /usr/lib64/mysql; then
23096 MYSQL_LIBDIR=/usr/lib64/mysql
23098 MYSQL_LIBDIR=/usr/lib/mysql
23100 MYSQL_BINDIR=/usr/bin
23101 elif test -f /usr/include/mysql.h; then
23102 MYSQL_INCDIR=/usr/include
23103 if test -d /usr/lib64; then
23104 MYSQL_LIBDIR=/usr/lib64
23106 MYSQL_LIBDIR=/usr/lib
23108 MYSQL_BINDIR=/usr/bin
23109 elif test -f /usr/local/include/mysql/mysql.h; then
23110 MYSQL_INCDIR=/usr/local/include/mysql
23111 if test -d /usr/local/lib64/mysql; then
23112 MYSQL_LIBDIR=/usr/local/lib64/mysql
23114 MYSQL_LIBDIR=/usr/local/lib/mysql
23116 MYSQL_BINDIR=/usr/local/bin
23117 elif test -f /usr/local/include/mysql.h; then
23118 MYSQL_INCDIR=/usr/local/include
23119 if test -d /usr/local/lib64; then
23120 MYSQL_LIBDIR=/usr/local/lib64
23122 MYSQL_LIBDIR=/usr/local/lib
23124 MYSQL_BINDIR=/usr/local/bin
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23127 $as_echo "no" >&6; }
23128 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23131 if test -f $withval/include/mysql/mysql.h; then
23132 MYSQL_INCDIR=$withval/include/mysql
23133 if test -d $withval/lib64/mysql; then
23134 MYSQL_LIBDIR=$withval/lib64/mysql
23136 MYSQL_LIBDIR=$withval/lib/mysql
23138 MYSQL_BINDIR=$withval/bin
23139 elif test -f $withval/include/mysql.h; then
23140 MYSQL_INCDIR=$withval/include
23141 if test -d $withval/lib64; then
23142 MYSQL_LIBDIR=$withval/lib64
23144 MYSQL_LIBDIR=$withval/lib
23146 MYSQL_BINDIR=$withval/bin
23148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23149 $as_echo "no" >&6; }
23150 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23153 SQL_INCLUDE=-I$MYSQL_INCDIR
23154 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23155 SQL_BINDIR=$MYSQL_BINDIR
23156 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23158 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23160 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23163 $as_echo "yes" >&6; }
23170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23171 $as_echo "no" >&6; }
23187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ingres support" >&5
23188 $as_echo_n "checking for Ingres support... " >&6; }
23190 # Check whether --with-ingres was given.
23191 if test "${with_ingres+set}" = set; then :
23192 withval=$with_ingres;
23193 if test "$withval" != "no"; then
23194 if test "$withval" = "yes"; then
23195 if test -f ${II_SYSTEM}/files/eqdefc.h; then
23196 INGRES_INCDIR=${II_SYSTEM}/files
23197 INGRES_LIBDIR=${II_SYSTEM}/lib
23198 INGRES_BINDIR=${II_SYSTEM}/bin
23199 elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
23200 INGRES_INCDIR=${II_SYSTEM}/ingres/files
23201 INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
23202 INGRES_BINDIR=${II_SYSTEM}/ingres/bin
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23205 $as_echo "no" >&6; }
23206 as_fn_error $? "Unable to find eqdefc.h in standard locations" "$LINENO" 5
23209 if test -f $withval/files/eqdefc.h; then
23210 INGRES_INCDIR=$withval/files
23211 INGRES_LIBDIR=$withval/lib
23212 INGRES_BINDIR=$withval/bin
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23215 $as_echo "no" >&6; }
23216 as_fn_error $? "Invalid Ingres directory $withval - unable to find Ingres headers under $withval" "$LINENO" 5
23219 SQL_INCLUDE=-I$INGRES_INCDIR
23220 SQL_LFLAGS="-L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
23221 SQL_BINDIR=$INGRES_BINDIR
23222 SQL_LIB=$INGRES_LIBDIR/libingres.a
23224 $as_echo "#define HAVE_INGRES 1" >>confdefs.h
23226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23227 $as_echo "yes" >&6; }
23234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23235 $as_echo "no" >&6; }
23240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23241 $as_echo "no" >&6; }
23253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23254 $as_echo_n "checking for SQLite3 support... " >&6; }
23256 # Check whether --with-sqlite3 was given.
23257 if test "${with_sqlite3+set}" = set; then :
23258 withval=$with_sqlite3;
23259 if test "$withval" != "no"; then
23260 if test "$withval" = "yes"; then
23261 if test -f /usr/local/include/sqlite3.h; then
23262 SQLITE_INCDIR=/usr/local/include
23263 if test -d /usr/local/lib64; then
23264 SQLITE_LIBDIR=/usr/local/lib64
23266 SQLITE_LIBDIR=/usr/local/lib
23268 SQLITE_BINDIR=/usr/local/bin
23269 elif test -f /usr/include/sqlite3.h; then
23270 SQLITE_INCDIR=/usr/include
23271 if test -d /usr/lib64; then
23272 SQLITE_LIBDIR=/usr/lib64
23274 SQLITE_LIBDIR=/usr/lib
23276 SQLITE_BINDIR=/usr/bin
23277 elif test -f $prefix/include/sqlite3.h; then
23278 SQLITE_INCDIR=$prefix/include
23279 if test -d $prefix/lib64; then
23280 SQLITE_LIBDIR=$prefix/lib64
23282 SQLITE_LIBDIR=$prefix/lib
23284 SQLITE_BINDIR=$prefix/bin
23286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23287 $as_echo "no" >&6; }
23288 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23291 if test -f $withval/sqlite3.h; then
23292 SQLITE_INCDIR=$withval
23293 SQLITE_LIBDIR=$withval
23294 SQLITE_BINDIR=$withval
23295 elif test -f $withval/include/sqlite3.h; then
23296 SQLITE_INCDIR=$withval/include
23297 if test -d $withval/lib64; then
23298 SQLITE_LIBDIR=$withval/lib64
23300 SQLITE_LIBDIR=$withval/lib
23302 SQLITE_BINDIR=$withval/bin
23304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23305 $as_echo "no" >&6; }
23306 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23309 SQL_INCLUDE=-I$SQLITE_INCDIR
23310 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
23311 SQL_BINDIR=$SQLITE_BINDIR
23312 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
23314 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23317 $as_echo "yes" >&6; }
23319 support_sqlite3=yes
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23325 $as_echo "no" >&6; }
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23331 $as_echo "no" >&6; }
23341 # BA_CHECK_SQLITE_DB
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI support" >&5
23346 $as_echo_n "checking for DBI support... " >&6; }
23348 # Check whether --with-dbi was given.
23349 if test "${with_dbi+set}" = set; then :
23351 if test "$withval" != "no"; then
23352 if test "$withval" = "yes"; then
23353 if test -f /usr/local/include/dbi/dbi.h; then
23354 DBI_INCDIR=/usr/local/dbi/include
23355 if test -d /usr/local/lib64; then
23356 DBI_LIBDIR=/usr/local/lib64
23358 DBI_LIBDIR=/usr/local/lib
23360 DBI_BINDIR=/usr/local/bin
23361 elif test -f /usr/include/dbi/dbi.h; then
23362 DBI_INCDIR=/usr/include
23363 if test -d /usr/lib64; then
23364 DBI_LIBDIR=/usr/lib64
23366 DBI_LIBDIR=/usr/lib
23368 DBI_BINDIR=/usr/bin
23369 elif test -f $prefix/include/dbi/dbi.h; then
23370 DBI_INCDIR=$prefix/include
23371 if test -d $prefix/lib64; then
23372 DBI_LIBDIR=$prefix/lib64
23374 DBI_LIBDIR=$prefix/lib
23376 DBI_BINDIR=$prefix/bin
23378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23379 $as_echo "no" >&6; }
23380 as_fn_error $? "Unable to find dbi.h in standard locations" "$LINENO" 5
23382 if test -d /usr/local/lib/dbd; then
23383 DRIVERDIR=/usr/local/lib/dbd
23384 if test -d /usr/local/lib64/dbd; then
23385 DRIVERDIR=/usr/local/lib64/dbd
23387 DRIVERDIR=/usr/local/lib/dbd
23389 elif test -d /usr/lib/dbd; then
23390 DRIVERDIR=/usr/lib/dbd
23391 if test -d /usr/lib64/dbd; then
23392 DRIVERDIR=/usr/lib64/dbd
23394 DRIVERDIR=/usr/lib/dbd
23396 elif test -d $prefix/lib/dbd; then
23397 if test -d $prefix/lib64/dbd; then
23398 DRIVERDIR=$prefix/lib64/dbd
23400 DRIVERDIR=$prefix/lib/dbd
23402 elif test -d /usr/local/lib64/dbd; then
23403 DRIVERDIR=/usr/local/lib64/dbd
23404 elif test -d /usr/lib64/dbd; then
23405 DRIVERDIR=/usr/lib64/dbd
23406 elif test -d $prefix/lib64/dbd; then
23407 DRIVERDIR=$prefix/lib64/dbd
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23410 $as_echo "no" >&6; }
23411 as_fn_error $? "Unable to find DBD drivers in standard locations" "$LINENO" 5
23414 if test -f $withval/dbi.h; then
23415 DBI_INCDIR=$withval
23416 DBI_LIBDIR=$withval
23417 DBI_BINDIR=$withval
23418 elif test -f $withval/include/dbi/dbi.h; then
23419 DBI_INCDIR=$withval/include
23420 if test -d $withval/lib64; then
23421 DBI_LIBDIR=$withval/lib64
23423 DBI_LIBDIR=$withval/lib
23425 DBI_BINDIR=$withval/bin
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23428 $as_echo "no" >&6; }
23429 as_fn_error $? "Invalid DBI directory $withval - unable to find dbi.h under $withval" "$LINENO" 5
23431 if test -d $withval/dbd; then
23432 DRIVERDIR=$withval/dbd
23433 elif test -d $withval/lib/; then
23434 if test -d $withval/lib64/dbd; then
23435 DRIVERDIR=$withval/lib64/dbd
23437 DRIVERDIR=$withval/lib/dbd
23439 elif test -d $withval/lib64/dbd; then
23440 DRIVERDIR=$withval/lib64/dbd
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23443 $as_echo "no" >&6; }
23444 as_fn_error $? "Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" "$LINENO" 5
23447 SQL_INCLUDE=-I$DBI_INCDIR
23448 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
23449 SQL_BINDIR=$DBI_BINDIR
23450 SQL_LIB=$DBI_LIBDIR/libdbi.a
23451 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
23454 $as_echo "#define HAVE_DBI 1" >>confdefs.h
23456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23457 $as_echo "yes" >&6; }
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23466 $as_echo "no" >&6; }
23471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23472 $as_echo "no" >&6; }
23487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI drivers support" >&5
23488 $as_echo_n "checking for DBI drivers support... " >&6; }
23490 # Check whether --with-dbi-driver was given.
23491 if test "${with_dbi_driver+set}" = set; then :
23492 withval=$with_dbi_driver;
23493 if test "$withval" != "no"; then
23497 if test -f /usr/local/mysql/bin/mysql; then
23498 SQL_BINDIR=/usr/local/mysql/bin
23499 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23500 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23501 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
23503 SQL_LIBDIR=/usr/local/mysql/lib/mysql
23505 elif test -f /usr/bin/mysql; then
23506 SQL_BINDIR=/usr/bin
23507 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23508 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23509 SQL_LIBDIR=/usr/lib64/mysql
23510 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23511 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23512 SQL_LIBDIR=/usr/lib/mysql
23514 SQL_LIBDIR=/usr/lib
23516 elif test -f /usr/local/bin/mysql; then
23517 SQL_BINDIR=/usr/local/bin
23518 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23519 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23520 SQL_LIBDIR=/usr/local/lib64/mysql
23521 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
23522 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
23523 SQL_LIBDIR=/usr/local/lib/mysql
23525 SQL_LIBDIR=/usr/local/lib
23527 elif test -f $withval/bin/mysql; then
23528 SQL_BINDIR=$withval/bin
23529 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23530 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23531 SQL_LIBDIR=$withval/lib64/mysql
23532 elif test -f $withval/lib64/libmysqlclient_r.a \
23533 -o -f $withval/lib64/libmysqlclient_r.so; then
23534 SQL_LIBDIR=$withval/lib64
23535 elif test -f $withval/lib/libmysqlclient_r.a \
23536 -o -f $withval/lib/libmysqlclient_r.so; then
23537 SQL_LIBDIR=$withval/lib/
23539 SQL_LIBDIR=$withval/lib/mysql
23542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23543 $as_echo "no" >&6; }
23544 as_fn_error $? "Unable to find mysql in standard locations" "$LINENO" 5
23546 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
23547 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
23549 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
23553 db_prog="postgresql"
23554 PG_CONFIG=`which pg_config`
23555 if test -n "$PG_CONFIG"; then
23556 SQL_BINDIR=`"$PG_CONFIG" --bindir`
23557 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
23558 elif test -f /usr/local/bin/psql; then
23559 SQL_BINDIR=/usr/local/bin
23560 if test -d /usr/local/lib64; then
23561 SQL_LIBDIR=/usr/local/lib64
23563 SQL_LIBDIR=/usr/local/lib
23565 elif test -f /usr/bin/psql; then
23566 SQL_BINDIR=/usr/local/bin
23567 if test -d /usr/lib64/postgresql; then
23568 SQL_LIBDIR=/usr/lib64/postgresql
23569 elif test -d /usr/lib/postgresql; then
23570 SQL_LIBDIR=/usr/lib/postgresql
23571 elif test -d /usr/lib64; then
23572 SQL_LIBDIR=/usr/lib64
23574 SQL_LIBDIR=/usr/lib
23576 elif test -f $withval/bin/psql; then
23577 SQL_BINDIR=$withval/bin
23578 if test -d $withval/lib64; then
23579 SQL_LIBDIR=$withval/lib64
23581 SQL_LIBDIR=$withval/lib
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23585 $as_echo "no" >&6; }
23586 as_fn_error $? "Unable to find psql in standard locations" "$LINENO" 5
23588 if test -f $SQL_LIBDIR/libpq.so; then
23589 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
23591 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
23596 if test -f /usr/local/bin/sqlite; then
23597 SQL_BINDIR=/usr/local/bin
23598 if test -d /usr/local/lib64; then
23599 SQL_LIBDIR=/usr/local/lib64
23601 SQL_LIBDIR=/usr/local/lib
23603 elif test -f /usr/bin/sqlite; then
23604 SQL_BINDIR=/usr/bin
23605 if test -d /usr/lib64; then
23606 SQL_LIBDIR=/usr/lib64
23608 SQL_LIBDIR=/usr/lib
23610 elif test -f $withval/bin/sqlite; then
23611 SQL_BINDIR=$withval/bin
23612 if test -d $withval/lib64; then
23613 SQL_LIBDIR=$withval/lib64
23615 SQL_LIBDIR=$withval/lib
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23619 $as_echo "no" >&6; }
23620 as_fn_error $? "Unable to find sqlite in standard locations" "$LINENO" 5
23622 if test -f $SQL_LIBDIR/libsqlite.so; then
23623 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
23625 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
23630 if test -f /usr/local/bin/sqlite3; then
23631 SQL_BINDIR=/usr/local/bin
23632 if test -d /usr/local/lib64; then
23633 SQL_LIBDIR=/usr/local/lib64
23635 SQL_LIBDIR=/usr/local/lib
23637 elif test -f /usr/bin/sqlite3; then
23638 SQL_BINDIR=/usr/bin
23639 if test -d /usr/lib64; then
23640 SQL_LIBDIR=/usr/lib64
23642 SQL_LIBDIR=/usr/lib
23644 elif test -f $withval/bin/sqlite3; then
23645 SQL_BINDIR=$withval/bin
23646 if test -d $withval/lib64; then
23647 SQL_LIBDIR=$withval/lib64
23649 SQL_LIBDIR=$withval/lib
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23653 $as_echo "no" >&6; }
23654 as_fn_error $? "Unable to find sqlite in standard locations" "$LINENO" 5
23656 if test -f $SQL_LIBDIR/libsqlite3.so; then
23657 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
23659 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
23663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23664 $as_echo "no" >&6; }
23665 as_fn_error $? "Unable to set DBI driver. $withval is not supported" "$LINENO" 5
23669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23670 $as_echo "yes" >&6; }
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23674 $as_echo "no" >&6; }
23679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23680 $as_echo "no" >&6; }
23693 support_batch_insert=no
23694 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
23696 if test $pkg = 0; then
23697 support_batch_insert=yes
23698 # Check whether --enable-batch-insert was given.
23699 if test "${enable_batch_insert+set}" = set; then :
23700 enableval=$enable_batch_insert;
23701 if test x$enableval = xno; then
23702 support_batch_insert=no
23704 support_batch_insert=yes
23712 saved_LIBS="${LIBS}"
23713 LIBS="${saved_LIBS} ${SQL_LFLAGS}"
23715 if test x$DB_TYPE = xpostgresql; then
23716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23717 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23718 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23719 $as_echo_n "(cached) " >&6
23721 ac_check_lib_save_LIBS=$LIBS
23723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23724 /* end confdefs.h. */
23726 /* Override any GCC internal prototype to avoid an error.
23727 Use char because int might match the return type of a GCC
23728 builtin and then its argument prototype would still apply. */
23732 char PQisthreadsafe ();
23736 return PQisthreadsafe ();
23741 if ac_fn_c_try_link "$LINENO"; then :
23742 ac_cv_lib_pq_PQisthreadsafe=yes
23744 ac_cv_lib_pq_PQisthreadsafe=no
23746 rm -f core conftest.err conftest.$ac_objext \
23747 conftest$ac_exeext conftest.$ac_ext
23748 LIBS=$ac_check_lib_save_LIBS
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23751 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23752 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23754 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23759 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23760 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23761 $as_echo_n "(cached) " >&6
23763 ac_check_lib_save_LIBS=$LIBS
23765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23766 /* end confdefs.h. */
23768 /* Override any GCC internal prototype to avoid an error.
23769 Use char because int might match the return type of a GCC
23770 builtin and then its argument prototype would still apply. */
23774 char PQputCopyData ();
23778 return PQputCopyData ();
23783 if ac_fn_c_try_link "$LINENO"; then :
23784 ac_cv_lib_pq_PQputCopyData=yes
23786 ac_cv_lib_pq_PQputCopyData=no
23788 rm -f core conftest.err conftest.$ac_objext \
23789 conftest$ac_exeext conftest.$ac_ext
23790 LIBS=$ac_check_lib_save_LIBS
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23793 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23794 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23796 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23800 if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
23802 support_batch_insert=no
23806 if test x$DB_TYPE = xdbi; then
23810 if test $DB_PROG = postgresql; then
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23812 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23813 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23814 $as_echo_n "(cached) " >&6
23816 ac_check_lib_save_LIBS=$LIBS
23818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23819 /* end confdefs.h. */
23821 /* Override any GCC internal prototype to avoid an error.
23822 Use char because int might match the return type of a GCC
23823 builtin and then its argument prototype would still apply. */
23827 char PQisthreadsafe ();
23831 return PQisthreadsafe ();
23836 if ac_fn_c_try_link "$LINENO"; then :
23837 ac_cv_lib_pq_PQisthreadsafe=yes
23839 ac_cv_lib_pq_PQisthreadsafe=no
23841 rm -f core conftest.err conftest.$ac_objext \
23842 conftest$ac_exeext conftest.$ac_ext
23843 LIBS=$ac_check_lib_save_LIBS
23845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23846 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23847 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23848 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23853 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23854 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23855 $as_echo_n "(cached) " >&6
23857 ac_check_lib_save_LIBS=$LIBS
23859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23860 /* end confdefs.h. */
23862 /* Override any GCC internal prototype to avoid an error.
23863 Use char because int might match the return type of a GCC
23864 builtin and then its argument prototype would still apply. */
23868 char PQputCopyData ();
23872 return PQputCopyData ();
23877 if ac_fn_c_try_link "$LINENO"; then :
23878 ac_cv_lib_pq_PQputCopyData=yes
23880 ac_cv_lib_pq_PQputCopyData=no
23882 rm -f core conftest.err conftest.$ac_objext \
23883 conftest$ac_exeext conftest.$ac_ext
23884 LIBS=$ac_check_lib_save_LIBS
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23887 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23888 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23889 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23893 test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
23897 if test $DB_PROG = mysql; then
23898 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23902 if test $DB_PROG = sqlite3; then
23903 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23906 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23907 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then :
23908 $as_echo_n "(cached) " >&6
23910 ac_check_lib_save_LIBS=$LIBS
23911 LIBS="-lsqlite3 $LIBS"
23912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23913 /* end confdefs.h. */
23915 /* Override any GCC internal prototype to avoid an error.
23916 Use char because int might match the return type of a GCC
23917 builtin and then its argument prototype would still apply. */
23921 char sqlite3_threadsafe ();
23925 return sqlite3_threadsafe ();
23930 if ac_fn_c_try_link "$LINENO"; then :
23931 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23933 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23935 rm -f core conftest.err conftest.$ac_objext \
23936 conftest$ac_exeext conftest.$ac_ext
23937 LIBS=$ac_check_lib_save_LIBS
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23940 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23941 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then :
23943 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
23949 if test $pkg = 0; then
23950 # Check whether --enable-batch-insert was given.
23951 if test "${enable_batch_insert+set}" = set; then :
23952 enableval=$enable_batch_insert;
23953 if test x$enableval = xno; then
23954 support_batch_insert=no
23956 support_batch_insert=yes
23967 LIBS="${saved_LIBS}"
23971 if test x$DB_TYPE = xingres; then
23972 support_batch_insert=yes
23975 if test $support_batch_insert = yes ; then
23977 $as_echo "#define HAVE_BATCH_FILE_INSERT 1" >>confdefs.h
23981 $as_echo "#define PROTOTYPES 1" >>confdefs.h
23984 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
23985 if test -z "$CCOPTS"; then
23986 CCOPTS='-g -O2 -Wall'
23993 largefile_support="no"
23995 # Check whether --enable-largefile was given.
23996 if test "${enable_largefile+set}" = set; then :
23997 enableval=$enable_largefile;
24000 if test "$enable_largefile" != no; then
24001 if test -n "$ac_tool_prefix"; then
24002 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24003 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24005 $as_echo_n "checking for $ac_word... " >&6; }
24006 if test "${ac_cv_prog_GETCONF+set}" = set; then :
24007 $as_echo_n "(cached) " >&6
24009 if test -n "$GETCONF"; then
24010 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24013 for as_dir in $PATH
24016 test -z "$as_dir" && as_dir=.
24017 for ac_exec_ext in '' $ac_executable_extensions; do
24018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24019 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24029 GETCONF=$ac_cv_prog_GETCONF
24030 if test -n "$GETCONF"; then
24031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24032 $as_echo "$GETCONF" >&6; }
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24035 $as_echo "no" >&6; }
24040 if test -z "$ac_cv_prog_GETCONF"; then
24041 ac_ct_GETCONF=$GETCONF
24042 # Extract the first word of "getconf", so it can be a program name with args.
24043 set dummy getconf; ac_word=$2
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24045 $as_echo_n "checking for $ac_word... " >&6; }
24046 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
24047 $as_echo_n "(cached) " >&6
24049 if test -n "$ac_ct_GETCONF"; then
24050 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24053 for as_dir in $PATH
24056 test -z "$as_dir" && as_dir=.
24057 for ac_exec_ext in '' $ac_executable_extensions; do
24058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24059 ac_cv_prog_ac_ct_GETCONF="getconf"
24060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24069 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24070 if test -n "$ac_ct_GETCONF"; then
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24072 $as_echo "$ac_ct_GETCONF" >&6; }
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24075 $as_echo "no" >&6; }
24078 if test "x$ac_ct_GETCONF" = x; then
24081 case $cross_compiling:$ac_tool_warned in
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24085 ac_tool_warned=yes ;;
24087 GETCONF=$ac_ct_GETCONF
24090 GETCONF="$ac_cv_prog_GETCONF"
24093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24094 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24095 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
24096 $as_echo_n "(cached) " >&6
24098 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24099 ac_cv_sys_largefile_CFLAGS=no
24101 # IRIX 6.2 and later require cc -n32.
24102 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24103 if test "$GCC" != yes; then
24104 ac_cv_sys_largefile_CFLAGS=-n32
24107 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24109 /* end confdefs.h. */
24119 if ac_fn_c_try_link "$LINENO"; then :
24122 ac_cv_sys_largefile_CFLAGS=no
24124 rm -f core conftest.err conftest.$ac_objext \
24125 conftest$ac_exeext conftest.$ac_ext
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24131 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24133 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24134 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
24135 $as_echo_n "(cached) " >&6
24137 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24138 ac_cv_sys_largefile_LDFLAGS=no
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24143 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24145 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24146 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
24147 $as_echo_n "(cached) " >&6
24149 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24150 ac_cv_sys_largefile_LIBS=no
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24155 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24157 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24160 -D_FILE_OFFSET_BITS=*) ;;
24161 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24162 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24167 case "$CPPFLAGS" in
24168 '') CPPFLAGS="$ac_flag" ;;
24169 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24177 '') CFLAGS="$ac_flag" ;;
24178 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24183 case "$ac_cv_sys_largefile_LDFLAGS" in
24187 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24188 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24191 case "$ac_cv_sys_largefile_LIBS" in
24195 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24196 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24200 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24201 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24202 $as_echo_n "(cached) " >&6
24204 ac_cv_sys_file_offset_bits=no
24205 ac_cv_sys_file_offset_bits=64
24206 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24208 -D_FILE_OFFSET_BITS)
24209 ac_cv_sys_file_offset_bits=1 ;;
24210 -D_FILE_OFFSET_BITS=*)
24211 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24217 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24218 if test "$ac_cv_sys_file_offset_bits" != no; then
24220 cat >>confdefs.h <<_ACEOF
24221 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24226 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24227 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24228 $as_echo_n "(cached) " >&6
24230 ac_cv_sys_largefile_source=no
24231 ac_cv_sys_largefile_source=1
24232 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24234 -D_LARGEFILE_SOURCE)
24235 ac_cv_sys_largefile_source=1 ;;
24236 -D_LARGEFILE_SOURCE=*)
24237 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24243 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24244 if test "$ac_cv_sys_largefile_source" != no; then
24246 cat >>confdefs.h <<_ACEOF
24247 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24252 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24253 if test "${ac_cv_sys_large_files+set}" = set; then :
24254 $as_echo_n "(cached) " >&6
24256 ac_cv_sys_large_files=no
24257 ac_cv_sys_large_files=1
24258 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24261 ac_cv_sys_large_files=1 ;;
24263 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24269 $as_echo "$ac_cv_sys_large_files" >&6; }
24270 if test "$ac_cv_sys_large_files" != no; then
24272 cat >>confdefs.h <<_ACEOF
24273 #define _LARGE_FILES $ac_cv_sys_large_files
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24281 $as_echo_n "checking for X... " >&6; }
24284 # Check whether --with-x was given.
24285 if test "${with_x+set}" = set; then :
24289 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24290 if test "x$with_x" = xno; then
24291 # The user explicitly disabled X.
24294 case $x_includes,$x_libraries in #(
24295 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24296 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24297 $as_echo_n "(cached) " >&6
24299 # One or both of the vars are not set, and there is no cached value.
24300 ac_x_includes=no ac_x_libraries=no
24301 rm -f -r conftest.dir
24302 if mkdir conftest.dir; then
24304 cat >Imakefile <<'_ACEOF'
24306 @echo incroot='${INCROOT}'
24308 @echo usrlibdir='${USRLIBDIR}'
24310 @echo libdir='${LIBDIR}'
24312 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24313 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24314 for ac_var in incroot usrlibdir libdir; do
24315 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24317 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24318 for ac_extension in a so sl dylib la dll; do
24319 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24320 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24321 ac_im_usrlibdir=$ac_im_libdir; break
24324 # Screen out bogus values from the imake configuration. They are
24325 # bogus both because they are the default anyway, and because
24326 # using them would break gcc on systems where it needs fixed includes.
24327 case $ac_im_incroot in
24328 /usr/include) ac_x_includes= ;;
24329 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24331 case $ac_im_usrlibdir in
24332 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24333 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24337 rm -f -r conftest.dir
24340 # Standard set of common directories for X headers.
24341 # Check X11 before X11Rn because it is often a symlink to the current release.
24355 /usr/local/X11/include
24356 /usr/local/X11R7/include
24357 /usr/local/X11R6/include
24358 /usr/local/X11R5/include
24359 /usr/local/X11R4/include
24361 /usr/local/include/X11
24362 /usr/local/include/X11R7
24363 /usr/local/include/X11R6
24364 /usr/local/include/X11R5
24365 /usr/local/include/X11R4
24369 /usr/XFree86/include/X11
24373 /usr/unsupported/include
24374 /usr/athena/include
24375 /usr/local/x11r5/include
24376 /usr/lpp/Xamples/include
24378 /usr/openwin/include
24379 /usr/openwin/share/include'
24381 if test "$ac_x_includes" = no; then
24382 # Guess where to find include files, by looking for Xlib.h.
24383 # First, try using that file with no special directory specified.
24384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24385 /* end confdefs.h. */
24386 #include <X11/Xlib.h>
24388 if ac_fn_c_try_cpp "$LINENO"; then :
24389 # We can compile using X headers with no special include directory.
24392 for ac_dir in $ac_x_header_dirs; do
24393 if test -r "$ac_dir/X11/Xlib.h"; then
24394 ac_x_includes=$ac_dir
24399 rm -f conftest.err conftest.$ac_ext
24400 fi # $ac_x_includes = no
24402 if test "$ac_x_libraries" = no; then
24403 # Check for the libraries.
24404 # See if we find them without any special options.
24405 # Don't add to $LIBS permanently.
24408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24409 /* end confdefs.h. */
24410 #include <X11/Xlib.h>
24419 if ac_fn_c_try_link "$LINENO"; then :
24421 # We can link X programs with no special library path.
24425 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24427 # Don't even attempt the hair of trying to link an X program!
24428 for ac_extension in a so sl dylib la dll; do
24429 if test -r "$ac_dir/libX11.$ac_extension"; then
24430 ac_x_libraries=$ac_dir
24436 rm -f core conftest.err conftest.$ac_objext \
24437 conftest$ac_exeext conftest.$ac_ext
24438 fi # $ac_x_libraries = no
24440 case $ac_x_includes,$ac_x_libraries in #(
24441 no,* | *,no | *\'*)
24442 # Didn't find X, or a directory has "'" in its name.
24443 ac_cv_have_x="have_x=no";; #(
24445 # Record where we found X for the cache.
24446 ac_cv_have_x="have_x=yes\
24447 ac_x_includes='$ac_x_includes'\
24448 ac_x_libraries='$ac_x_libraries'"
24454 eval "$ac_cv_have_x"
24457 if test "$have_x" != yes; then
24458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24459 $as_echo "$have_x" >&6; }
24462 # If each of the values was on the command line, it overrides each guess.
24463 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24464 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24465 # Update the cache value to reflect the command line values.
24466 ac_cv_have_x="have_x=yes\
24467 ac_x_includes='$x_includes'\
24468 ac_x_libraries='$x_libraries'"
24469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24470 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24473 if test "$no_x" = yes; then
24474 # Not all programs may use this symbol, but it does not hurt to define it.
24476 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24478 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24480 if test -n "$x_includes"; then
24481 X_CFLAGS="$X_CFLAGS -I$x_includes"
24484 # It would also be nice to do this for all -L options, not just this one.
24485 if test -n "$x_libraries"; then
24486 X_LIBS="$X_LIBS -L$x_libraries"
24487 # For Solaris; some versions of Sun CC require a space after -R and
24488 # others require no space. Words are not sufficient . . . .
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24490 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24491 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24492 ac_xsave_c_werror_flag=$ac_c_werror_flag
24493 ac_c_werror_flag=yes
24494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24495 /* end confdefs.h. */
24505 if ac_fn_c_try_link "$LINENO"; then :
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24507 $as_echo "no" >&6; }
24508 X_LIBS="$X_LIBS -R$x_libraries"
24510 LIBS="$ac_xsave_LIBS -R $x_libraries"
24511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24512 /* end confdefs.h. */
24522 if ac_fn_c_try_link "$LINENO"; then :
24523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24524 $as_echo "yes" >&6; }
24525 X_LIBS="$X_LIBS -R $x_libraries"
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24528 $as_echo "neither works" >&6; }
24530 rm -f core conftest.err conftest.$ac_objext \
24531 conftest$ac_exeext conftest.$ac_ext
24533 rm -f core conftest.err conftest.$ac_objext \
24534 conftest$ac_exeext conftest.$ac_ext
24535 ac_c_werror_flag=$ac_xsave_c_werror_flag
24536 LIBS=$ac_xsave_LIBS
24539 # Check for system-dependent libraries X programs must link with.
24540 # Do this before checking for the system-independent R6 libraries
24541 # (-lICE), since we may need -lsocket or whatever for X linking.
24543 if test "$ISC" = yes; then
24544 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24546 # Martyn Johnson says this is needed for Ultrix, if the X
24547 # libraries were built with DECnet support. And Karl Berry says
24548 # the Alpha needs dnet_stub (dnet does not exist).
24549 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24551 /* end confdefs.h. */
24553 /* Override any GCC internal prototype to avoid an error.
24554 Use char because int might match the return type of a GCC
24555 builtin and then its argument prototype would still apply. */
24559 char XOpenDisplay ();
24563 return XOpenDisplay ();
24568 if ac_fn_c_try_link "$LINENO"; then :
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24572 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24573 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
24574 $as_echo_n "(cached) " >&6
24576 ac_check_lib_save_LIBS=$LIBS
24577 LIBS="-ldnet $LIBS"
24578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24579 /* end confdefs.h. */
24581 /* Override any GCC internal prototype to avoid an error.
24582 Use char because int might match the return type of a GCC
24583 builtin and then its argument prototype would still apply. */
24591 return dnet_ntoa ();
24596 if ac_fn_c_try_link "$LINENO"; then :
24597 ac_cv_lib_dnet_dnet_ntoa=yes
24599 ac_cv_lib_dnet_dnet_ntoa=no
24601 rm -f core conftest.err conftest.$ac_objext \
24602 conftest$ac_exeext conftest.$ac_ext
24603 LIBS=$ac_check_lib_save_LIBS
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24606 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24607 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
24608 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24611 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24613 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24614 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
24615 $as_echo_n "(cached) " >&6
24617 ac_check_lib_save_LIBS=$LIBS
24618 LIBS="-ldnet_stub $LIBS"
24619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24620 /* end confdefs.h. */
24622 /* Override any GCC internal prototype to avoid an error.
24623 Use char because int might match the return type of a GCC
24624 builtin and then its argument prototype would still apply. */
24632 return dnet_ntoa ();
24637 if ac_fn_c_try_link "$LINENO"; then :
24638 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24640 ac_cv_lib_dnet_stub_dnet_ntoa=no
24642 rm -f core conftest.err conftest.$ac_objext \
24643 conftest$ac_exeext conftest.$ac_ext
24644 LIBS=$ac_check_lib_save_LIBS
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24647 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24648 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
24649 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24654 rm -f core conftest.err conftest.$ac_objext \
24655 conftest$ac_exeext conftest.$ac_ext
24656 LIBS="$ac_xsave_LIBS"
24658 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24659 # to get the SysV transport functions.
24660 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24662 # The nsl library prevents programs from opening the X display
24663 # on Irix 5.2, according to T.E. Dickey.
24664 # The functions gethostbyname, getservbyname, and inet_addr are
24665 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24666 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24667 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
24671 if test $ac_cv_func_gethostbyname = no; then
24672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24673 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24674 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
24675 $as_echo_n "(cached) " >&6
24677 ac_check_lib_save_LIBS=$LIBS
24679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24680 /* end confdefs.h. */
24682 /* Override any GCC internal prototype to avoid an error.
24683 Use char because int might match the return type of a GCC
24684 builtin and then its argument prototype would still apply. */
24688 char gethostbyname ();
24692 return gethostbyname ();
24697 if ac_fn_c_try_link "$LINENO"; then :
24698 ac_cv_lib_nsl_gethostbyname=yes
24700 ac_cv_lib_nsl_gethostbyname=no
24702 rm -f core conftest.err conftest.$ac_objext \
24703 conftest$ac_exeext conftest.$ac_ext
24704 LIBS=$ac_check_lib_save_LIBS
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24707 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24708 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24709 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24712 if test $ac_cv_lib_nsl_gethostbyname = no; then
24713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24714 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24715 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24716 $as_echo_n "(cached) " >&6
24718 ac_check_lib_save_LIBS=$LIBS
24720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24721 /* end confdefs.h. */
24723 /* Override any GCC internal prototype to avoid an error.
24724 Use char because int might match the return type of a GCC
24725 builtin and then its argument prototype would still apply. */
24729 char gethostbyname ();
24733 return gethostbyname ();
24738 if ac_fn_c_try_link "$LINENO"; then :
24739 ac_cv_lib_bsd_gethostbyname=yes
24741 ac_cv_lib_bsd_gethostbyname=no
24743 rm -f core conftest.err conftest.$ac_objext \
24744 conftest$ac_exeext conftest.$ac_ext
24745 LIBS=$ac_check_lib_save_LIBS
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24748 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24749 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24750 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24756 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24757 # socket/setsockopt and other routines are undefined under SCO ODT
24758 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24759 # on later versions), says Simon Leinen: it contains gethostby*
24760 # variants that don't use the name server (or something). -lsocket
24761 # must be given before -lnsl if both are needed. We assume that
24762 # if connect needs -lnsl, so does gethostbyname.
24763 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24764 if test "x$ac_cv_func_connect" = x""yes; then :
24768 if test $ac_cv_func_connect = no; then
24769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24770 $as_echo_n "checking for connect in -lsocket... " >&6; }
24771 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24772 $as_echo_n "(cached) " >&6
24774 ac_check_lib_save_LIBS=$LIBS
24775 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24777 /* end confdefs.h. */
24779 /* Override any GCC internal prototype to avoid an error.
24780 Use char because int might match the return type of a GCC
24781 builtin and then its argument prototype would still apply. */
24794 if ac_fn_c_try_link "$LINENO"; then :
24795 ac_cv_lib_socket_connect=yes
24797 ac_cv_lib_socket_connect=no
24799 rm -f core conftest.err conftest.$ac_objext \
24800 conftest$ac_exeext conftest.$ac_ext
24801 LIBS=$ac_check_lib_save_LIBS
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24804 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24805 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24806 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24811 # Guillermo Gomez says -lposix is necessary on A/UX.
24812 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24813 if test "x$ac_cv_func_remove" = x""yes; then :
24817 if test $ac_cv_func_remove = no; then
24818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24819 $as_echo_n "checking for remove in -lposix... " >&6; }
24820 if test "${ac_cv_lib_posix_remove+set}" = set; then :
24821 $as_echo_n "(cached) " >&6
24823 ac_check_lib_save_LIBS=$LIBS
24824 LIBS="-lposix $LIBS"
24825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24826 /* end confdefs.h. */
24828 /* Override any GCC internal prototype to avoid an error.
24829 Use char because int might match the return type of a GCC
24830 builtin and then its argument prototype would still apply. */
24843 if ac_fn_c_try_link "$LINENO"; then :
24844 ac_cv_lib_posix_remove=yes
24846 ac_cv_lib_posix_remove=no
24848 rm -f core conftest.err conftest.$ac_objext \
24849 conftest$ac_exeext conftest.$ac_ext
24850 LIBS=$ac_check_lib_save_LIBS
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24853 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24854 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24855 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24860 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24861 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24862 if test "x$ac_cv_func_shmat" = x""yes; then :
24866 if test $ac_cv_func_shmat = no; then
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24868 $as_echo_n "checking for shmat in -lipc... " >&6; }
24869 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
24870 $as_echo_n "(cached) " >&6
24872 ac_check_lib_save_LIBS=$LIBS
24874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24875 /* end confdefs.h. */
24877 /* Override any GCC internal prototype to avoid an error.
24878 Use char because int might match the return type of a GCC
24879 builtin and then its argument prototype would still apply. */
24892 if ac_fn_c_try_link "$LINENO"; then :
24893 ac_cv_lib_ipc_shmat=yes
24895 ac_cv_lib_ipc_shmat=no
24897 rm -f core conftest.err conftest.$ac_objext \
24898 conftest$ac_exeext conftest.$ac_ext
24899 LIBS=$ac_check_lib_save_LIBS
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24902 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24903 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
24904 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24910 # Check for libraries that X11R6 Xt/Xaw programs need.
24911 ac_save_LDFLAGS=$LDFLAGS
24912 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24913 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24914 # check for ICE first), but we must link in the order -lSM -lICE or
24915 # we get undefined symbols. So assume we have SM if we have ICE.
24916 # These have to be linked with before -lX11, unlike the other
24917 # libraries we check for below, so use a different variable.
24918 # John Interrante, Karl Berry
24919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24920 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24921 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
24922 $as_echo_n "(cached) " >&6
24924 ac_check_lib_save_LIBS=$LIBS
24925 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24927 /* end confdefs.h. */
24929 /* Override any GCC internal prototype to avoid an error.
24930 Use char because int might match the return type of a GCC
24931 builtin and then its argument prototype would still apply. */
24935 char IceConnectionNumber ();
24939 return IceConnectionNumber ();
24944 if ac_fn_c_try_link "$LINENO"; then :
24945 ac_cv_lib_ICE_IceConnectionNumber=yes
24947 ac_cv_lib_ICE_IceConnectionNumber=no
24949 rm -f core conftest.err conftest.$ac_objext \
24950 conftest$ac_exeext conftest.$ac_ext
24951 LIBS=$ac_check_lib_save_LIBS
24953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24954 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24955 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
24956 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24959 LDFLAGS=$ac_save_LDFLAGS
24996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24997 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24998 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24999 cat >>confdefs.h <<_ACEOF
25000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25008 $as_echo_n "checking for ANSI C header files... " >&6; }
25009 if test "${ac_cv_header_stdc+set}" = set; then :
25010 $as_echo_n "(cached) " >&6
25012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25013 /* end confdefs.h. */
25014 #include <stdlib.h>
25015 #include <stdarg.h>
25016 #include <string.h>
25027 if ac_fn_c_try_compile "$LINENO"; then :
25028 ac_cv_header_stdc=yes
25030 ac_cv_header_stdc=no
25032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25034 if test $ac_cv_header_stdc = yes; then
25035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25037 /* end confdefs.h. */
25038 #include <string.h>
25041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25042 $EGREP "memchr" >/dev/null 2>&1; then :
25045 ac_cv_header_stdc=no
25051 if test $ac_cv_header_stdc = yes; then
25052 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25054 /* end confdefs.h. */
25055 #include <stdlib.h>
25058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25059 $EGREP "free" >/dev/null 2>&1; then :
25062 ac_cv_header_stdc=no
25068 if test $ac_cv_header_stdc = yes; then
25069 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25070 if test "$cross_compiling" = yes; then :
25073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25074 /* end confdefs.h. */
25076 #include <stdlib.h>
25077 #if ((' ' & 0x0FF) == 0x020)
25078 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25079 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25081 # define ISLOWER(c) \
25082 (('a' <= (c) && (c) <= 'i') \
25083 || ('j' <= (c) && (c) <= 'r') \
25084 || ('s' <= (c) && (c) <= 'z'))
25085 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25088 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25093 for (i = 0; i < 256; i++)
25094 if (XOR (islower (i), ISLOWER (i))
25095 || toupper (i) != TOUPPER (i))
25100 if ac_fn_c_try_run "$LINENO"; then :
25103 ac_cv_header_stdc=no
25105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25106 conftest.$ac_objext conftest.beam conftest.$ac_ext
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25112 $as_echo "$ac_cv_header_stdc" >&6; }
25113 if test $ac_cv_header_stdc = yes; then
25115 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25120 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25121 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
25122 $as_echo_n "(cached) " >&6
25124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25125 /* end confdefs.h. */
25126 #include <sys/types.h>
25130 return makedev(0, 0);
25135 if ac_fn_c_try_link "$LINENO"; then :
25136 ac_cv_header_sys_types_h_makedev=yes
25138 ac_cv_header_sys_types_h_makedev=no
25140 rm -f core conftest.err conftest.$ac_objext \
25141 conftest$ac_exeext conftest.$ac_ext
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25145 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25147 if test $ac_cv_header_sys_types_h_makedev = no; then
25148 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25149 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
25151 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25157 if test $ac_cv_header_sys_mkdev_h = no; then
25158 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25159 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
25161 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25169 ac_header_dirent=no
25170 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25171 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25173 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25174 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
25175 $as_echo_n "(cached) " >&6
25177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25178 /* end confdefs.h. */
25179 #include <sys/types.h>
25191 if ac_fn_c_try_compile "$LINENO"; then :
25192 eval "$as_ac_Header=yes"
25194 eval "$as_ac_Header=no"
25196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25198 eval ac_res=\$$as_ac_Header
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25200 $as_echo "$ac_res" >&6; }
25201 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25202 cat >>confdefs.h <<_ACEOF
25203 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25206 ac_header_dirent=$ac_hdr; break
25210 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25211 if test $ac_header_dirent = dirent.h; then
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25213 $as_echo_n "checking for library containing opendir... " >&6; }
25214 if test "${ac_cv_search_opendir+set}" = set; then :
25215 $as_echo_n "(cached) " >&6
25217 ac_func_search_save_LIBS=$LIBS
25218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25219 /* end confdefs.h. */
25221 /* Override any GCC internal prototype to avoid an error.
25222 Use char because int might match the return type of a GCC
25223 builtin and then its argument prototype would still apply. */
25236 for ac_lib in '' dir; do
25237 if test -z "$ac_lib"; then
25238 ac_res="none required"
25241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25243 if ac_fn_c_try_link "$LINENO"; then :
25244 ac_cv_search_opendir=$ac_res
25246 rm -f core conftest.err conftest.$ac_objext \
25248 if test "${ac_cv_search_opendir+set}" = set; then :
25252 if test "${ac_cv_search_opendir+set}" = set; then :
25255 ac_cv_search_opendir=no
25257 rm conftest.$ac_ext
25258 LIBS=$ac_func_search_save_LIBS
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25261 $as_echo "$ac_cv_search_opendir" >&6; }
25262 ac_res=$ac_cv_search_opendir
25263 if test "$ac_res" != no; then :
25264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25270 $as_echo_n "checking for library containing opendir... " >&6; }
25271 if test "${ac_cv_search_opendir+set}" = set; then :
25272 $as_echo_n "(cached) " >&6
25274 ac_func_search_save_LIBS=$LIBS
25275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25276 /* end confdefs.h. */
25278 /* Override any GCC internal prototype to avoid an error.
25279 Use char because int might match the return type of a GCC
25280 builtin and then its argument prototype would still apply. */
25293 for ac_lib in '' x; do
25294 if test -z "$ac_lib"; then
25295 ac_res="none required"
25298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25300 if ac_fn_c_try_link "$LINENO"; then :
25301 ac_cv_search_opendir=$ac_res
25303 rm -f core conftest.err conftest.$ac_objext \
25305 if test "${ac_cv_search_opendir+set}" = set; then :
25309 if test "${ac_cv_search_opendir+set}" = set; then :
25312 ac_cv_search_opendir=no
25314 rm conftest.$ac_ext
25315 LIBS=$ac_func_search_save_LIBS
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25318 $as_echo "$ac_cv_search_opendir" >&6; }
25319 ac_res=$ac_cv_search_opendir
25320 if test "$ac_res" != no; then :
25321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25328 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25329 if test "${ac_cv_header_stat_broken+set}" = set; then :
25330 $as_echo_n "(cached) " >&6
25332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25333 /* end confdefs.h. */
25334 #include <sys/types.h>
25335 #include <sys/stat.h>
25337 #if defined S_ISBLK && defined S_IFDIR
25338 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25341 #if defined S_ISBLK && defined S_IFCHR
25342 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25345 #if defined S_ISLNK && defined S_IFREG
25346 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25349 #if defined S_ISSOCK && defined S_IFREG
25350 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25354 if ac_fn_c_try_compile "$LINENO"; then :
25355 ac_cv_header_stat_broken=no
25357 ac_cv_header_stat_broken=yes
25359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25362 $as_echo "$ac_cv_header_stat_broken" >&6; }
25363 if test $ac_cv_header_stat_broken = yes; then
25365 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25370 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25371 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25372 $as_echo_n "(cached) " >&6
25374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25375 /* end confdefs.h. */
25376 #include <sys/types.h>
25377 #include <sys/wait.h>
25378 #ifndef WEXITSTATUS
25379 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25382 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25390 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25395 if ac_fn_c_try_compile "$LINENO"; then :
25396 ac_cv_header_sys_wait_h=yes
25398 ac_cv_header_sys_wait_h=no
25400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25403 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25404 if test $ac_cv_header_sys_wait_h = yes; then
25406 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25411 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25412 if test "${ac_cv_header_time+set}" = set; then :
25413 $as_echo_n "(cached) " >&6
25415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25416 /* end confdefs.h. */
25417 #include <sys/types.h>
25418 #include <sys/time.h>
25424 if ((struct tm *) 0)
25430 if ac_fn_c_try_compile "$LINENO"; then :
25431 ac_cv_header_time=yes
25433 ac_cv_header_time=no
25435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25438 $as_echo "$ac_cv_header_time" >&6; }
25439 if test $ac_cv_header_time = yes; then
25441 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25445 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25446 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
25448 cat >>confdefs.h <<_ACEOF
25449 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25453 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25458 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25459 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
25461 cat >>confdefs.h <<_ACEOF
25462 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25466 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25469 case " $LIBOBJS " in
25470 *" fileblocks.$ac_objext "* ) ;;
25471 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25479 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25480 if test "${ac_cv_struct_tm+set}" = set; then :
25481 $as_echo_n "(cached) " >&6
25483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25484 /* end confdefs.h. */
25485 #include <sys/types.h>
25492 int *p = &tm.tm_sec;
25498 if ac_fn_c_try_compile "$LINENO"; then :
25499 ac_cv_struct_tm=time.h
25501 ac_cv_struct_tm=sys/time.h
25503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25506 $as_echo "$ac_cv_struct_tm" >&6; }
25507 if test $ac_cv_struct_tm = sys/time.h; then
25509 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25513 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25514 #include <$ac_cv_struct_tm>
25517 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
25519 cat >>confdefs.h <<_ACEOF
25520 #define HAVE_STRUCT_TM_TM_ZONE 1
25526 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25528 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25531 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25533 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
25539 cat >>confdefs.h <<_ACEOF
25540 #define HAVE_DECL_TZNAME $ac_have_decl
25543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25544 $as_echo_n "checking for tzname... " >&6; }
25545 if test "${ac_cv_var_tzname+set}" = set; then :
25546 $as_echo_n "(cached) " >&6
25548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25549 /* end confdefs.h. */
25551 #if !HAVE_DECL_TZNAME
25552 extern char *tzname[];
25558 return tzname[0][0];
25563 if ac_fn_c_try_link "$LINENO"; then :
25564 ac_cv_var_tzname=yes
25566 ac_cv_var_tzname=no
25568 rm -f core conftest.err conftest.$ac_objext \
25569 conftest$ac_exeext conftest.$ac_ext
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25572 $as_echo "$ac_cv_var_tzname" >&6; }
25573 if test $ac_cv_var_tzname = yes; then
25575 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25582 $as_echo_n "checking for utime.h... " >&6; }
25583 if test "${ba_cv_header_utime_h+set}" = set; then :
25584 $as_echo_n "(cached) " >&6
25587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25588 /* end confdefs.h. */
25590 #include <sys/types.h>
25603 if ac_fn_c_try_compile "$LINENO"; then :
25605 ba_cv_header_utime_h=yes
25609 ba_cv_header_utime_h=no
25613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25618 $as_echo "$ba_cv_header_utime_h" >&6; }
25619 test $ba_cv_header_utime_h = yes &&
25620 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25624 $as_echo_n "checking for socklen_t... " >&6; }
25625 if test "${ba_cv_header_socklen_t+set}" = set; then :
25626 $as_echo_n "(cached) " >&6
25629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25630 /* end confdefs.h. */
25632 #include <sys/types.h>
25633 #include <sys/socket.h>
25645 if ac_fn_c_try_compile "$LINENO"; then :
25647 ba_cv_header_socklen_t=yes
25651 ba_cv_header_socklen_t=no
25655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25660 $as_echo "$ba_cv_header_socklen_t" >&6; }
25661 test $ba_cv_header_socklen_t = yes &&
25662 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25666 ac_cpp='$CXXCPP $CPPFLAGS'
25667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25672 $as_echo_n "checking for ioctl_req_t... " >&6; }
25673 if test "${ba_cv_header_ioctl_req_t+set}" = set; then :
25674 $as_echo_n "(cached) " >&6
25677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25678 /* end confdefs.h. */
25680 #include <unistd.h>
25681 #include <sys/types.h>
25682 #include <sys/ioctl.h>
25688 int (*d_ioctl)(int fd, unsigned long int request, ...);
25695 if ac_fn_cxx_try_compile "$LINENO"; then :
25697 ba_cv_header_ioctl_req_t=yes
25701 ba_cv_header_ioctl_req_t=no
25705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25710 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25711 test $ba_cv_header_ioctl_req_t = yes &&
25712 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25716 ac_cpp='$CPP $CPPFLAGS'
25717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25723 ac_cpp='$CXXCPP $CPPFLAGS'
25724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25729 $as_echo_n "checking for typeof... " >&6; }
25730 if test "${ba_cv_have_typeof+set}" = set; then :
25731 $as_echo_n "(cached) " >&6
25734 if test "$cross_compiling" = yes; then :
25736 ba_cv_have_typeof=no
25740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25741 /* end confdefs.h. */
25743 main(){char *a = 0; a = (typeof a)a;}
25746 if ac_fn_cxx_try_run "$LINENO"; then :
25748 ba_cv_have_typeof=yes
25752 ba_cv_have_typeof=no
25755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25756 conftest.$ac_objext conftest.beam conftest.$ac_ext
25762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25763 $as_echo "$ba_cv_have_typeof" >&6; }
25764 test $ba_cv_have_typeof = yes &&
25765 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25768 ac_cpp='$CPP $CPPFLAGS'
25769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25775 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25776 if test "${ac_cv_c_const+set}" = set; then :
25777 $as_echo_n "(cached) " >&6
25779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25780 /* end confdefs.h. */
25785 /* FIXME: Include the comments suggested by Paul. */
25786 #ifndef __cplusplus
25787 /* Ultrix mips cc rejects this. */
25788 typedef int charset[2];
25790 /* SunOS 4.1.1 cc rejects this. */
25791 char const *const *pcpcc;
25793 /* NEC SVR4.0.2 mips cc rejects this. */
25794 struct point {int x, y;};
25795 static struct point const zero = {0,0};
25796 /* AIX XL C 1.02.0.0 rejects this.
25797 It does not let you subtract one const X* pointer from another in
25798 an arm of an if-expression whose if-part is not a constant
25800 const char *g = "string";
25801 pcpcc = &g + (g ? g-g : 0);
25802 /* HPUX 7.0 cc rejects these. */
25804 ppc = (char**) pcpcc;
25805 pcpcc = (char const *const *) ppc;
25806 { /* SCO 3.2v4 cc rejects this. */
25808 char const *s = 0 ? (char *) 0 : (char const *) 0;
25813 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25814 int x[] = {25, 17};
25815 const int *foo = &x[0];
25818 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25819 typedef const int *iptr;
25823 { /* AIX XL C 1.02.0.0 rejects this saying
25824 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25825 struct s { int j; const int *ap[3]; };
25826 struct s *b; b->j = 5;
25828 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25829 const int foo = 10;
25830 if (!foo) return 0;
25832 return !cs[0] && !zero.x;
25839 if ac_fn_c_try_compile "$LINENO"; then :
25844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25847 $as_echo "$ac_cv_c_const" >&6; }
25848 if test $ac_cv_c_const = no; then
25850 $as_echo "#define const /**/" >>confdefs.h
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
25856 $as_echo_n "checking how to get filesystem type... " >&6; }
25858 # The order of these tests is important.
25859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25860 /* end confdefs.h. */
25862 #include <sys/statvfs.h>
25863 #include <sys/fstyp.h>
25866 if ac_fn_c_try_cpp "$LINENO"; then :
25867 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
25871 rm -f conftest.err conftest.$ac_ext
25872 if test $fstype = no; then
25873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25874 /* end confdefs.h. */
25876 #include <sys/statfs.h>
25877 #include <sys/fstyp.h>
25880 if ac_fn_c_try_cpp "$LINENO"; then :
25881 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
25885 rm -f conftest.err conftest.$ac_ext
25887 if test $fstype = no; then
25888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25889 /* end confdefs.h. */
25891 #include <sys/statfs.h>
25892 #include <sys/vmount.h>
25895 if ac_fn_c_try_cpp "$LINENO"; then :
25896 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
25900 rm -f conftest.err conftest.$ac_ext
25902 if test $fstype = no; then
25903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25904 /* end confdefs.h. */
25906 #include <mntent.h>
25909 if ac_fn_c_try_cpp "$LINENO"; then :
25910 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
25914 rm -f conftest.err conftest.$ac_ext
25916 if test $fstype = no; then
25917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25918 /* end confdefs.h. */
25919 #include <sys/mount.h>
25922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25923 $EGREP "f_type;" >/dev/null 2>&1; then :
25924 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
25930 if test $fstype = no; then
25931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25932 /* end confdefs.h. */
25934 #include <sys/mount.h>
25935 #include <sys/fs_types.h>
25938 if ac_fn_c_try_cpp "$LINENO"; then :
25939 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
25943 rm -f conftest.err conftest.$ac_ext
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
25946 $as_echo "$fstype" >&6; }
25948 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
25949 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
25951 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
25958 $as_echo_n "checking return type of signal handlers... " >&6; }
25959 if test "${ac_cv_type_signal+set}" = set; then :
25960 $as_echo_n "(cached) " >&6
25962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25963 /* end confdefs.h. */
25964 #include <sys/types.h>
25965 #include <signal.h>
25970 return *(signal (0, 0)) (0) == 1;
25975 if ac_fn_c_try_compile "$LINENO"; then :
25976 ac_cv_type_signal=int
25978 ac_cv_type_signal=void
25980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
25983 $as_echo "$ac_cv_type_signal" >&6; }
25985 cat >>confdefs.h <<_ACEOF
25986 #define RETSIGTYPE $ac_cv_type_signal
25991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
25992 $as_echo_n "checking for type of signal functions... " >&6; }
25993 if test "${bash_cv_signal_vintage+set}" = set; then :
25994 $as_echo_n "(cached) " >&6
25997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25998 /* end confdefs.h. */
25999 #include <signal.h>
26005 struct sigaction sa;
26006 sigemptyset(&ss); sigsuspend(&ss);
26007 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26008 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26014 if ac_fn_c_try_link "$LINENO"; then :
26015 bash_cv_signal_vintage="posix"
26018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26019 /* end confdefs.h. */
26020 #include <signal.h>
26025 int mask = sigmask(SIGINT);
26026 sigsetmask(mask); sigblock(mask); sigpause(mask);
26032 if ac_fn_c_try_link "$LINENO"; then :
26033 bash_cv_signal_vintage="4.2bsd"
26036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26037 /* end confdefs.h. */
26039 #include <signal.h>
26040 RETSIGTYPE foo() { }
26045 int mask = sigmask(SIGINT);
26046 sigset(SIGINT, foo); sigrelse(SIGINT);
26047 sighold(SIGINT); sigpause(SIGINT);
26053 if ac_fn_c_try_link "$LINENO"; then :
26054 bash_cv_signal_vintage="svr3"
26056 bash_cv_signal_vintage="v7"
26059 rm -f core conftest.err conftest.$ac_objext \
26060 conftest$ac_exeext conftest.$ac_ext
26063 rm -f core conftest.err conftest.$ac_objext \
26064 conftest$ac_exeext conftest.$ac_ext
26067 rm -f core conftest.err conftest.$ac_objext \
26068 conftest$ac_exeext conftest.$ac_ext
26072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26073 $as_echo "$bash_cv_signal_vintage" >&6; }
26074 if test "$bash_cv_signal_vintage" = "posix"; then
26075 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26077 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26078 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26080 elif test "$bash_cv_signal_vintage" = "svr3"; then
26081 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26085 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26086 if test "x$ac_cv_type_mode_t" = x""yes; then :
26090 cat >>confdefs.h <<_ACEOF
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26097 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26098 if test "${ac_cv_type_uid_t+set}" = set; then :
26099 $as_echo_n "(cached) " >&6
26101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26102 /* end confdefs.h. */
26103 #include <sys/types.h>
26106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26107 $EGREP "uid_t" >/dev/null 2>&1; then :
26108 ac_cv_type_uid_t=yes
26110 ac_cv_type_uid_t=no
26115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26116 $as_echo "$ac_cv_type_uid_t" >&6; }
26117 if test $ac_cv_type_uid_t = no; then
26119 $as_echo "#define uid_t int" >>confdefs.h
26122 $as_echo "#define gid_t int" >>confdefs.h
26126 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26127 if test "x$ac_cv_type_size_t" = x""yes; then :
26131 cat >>confdefs.h <<_ACEOF
26132 #define size_t unsigned int
26137 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26138 if test "x$ac_cv_type_pid_t" = x""yes; then :
26142 cat >>confdefs.h <<_ACEOF
26148 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26149 if test "x$ac_cv_type_off_t" = x""yes; then :
26153 cat >>confdefs.h <<_ACEOF
26154 #define off_t long int
26160 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26161 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26163 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26166 for ac_type in 'int' 'long int' 'long long int'; do
26167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26168 /* end confdefs.h. */
26169 $ac_includes_default
26173 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26180 if ac_fn_c_try_compile "$LINENO"; then :
26182 cat >>confdefs.h <<_ACEOF
26183 #define intptr_t $ac_type
26188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26189 test -z "$ac_type" && break
26195 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26196 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
26198 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26201 for ac_type in 'unsigned int' 'unsigned long int' \
26202 'unsigned long long int'; do
26203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26204 /* end confdefs.h. */
26205 $ac_includes_default
26209 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26216 if ac_fn_c_try_compile "$LINENO"; then :
26218 cat >>confdefs.h <<_ACEOF
26219 #define uintptr_t $ac_type
26224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26225 test -z "$ac_type" && break
26230 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26231 if test "x$ac_cv_type_ino_t" = x""yes; then :
26235 cat >>confdefs.h <<_ACEOF
26236 #define ino_t unsigned long
26241 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26242 if test "x$ac_cv_type_dev_t" = x""yes; then :
26246 cat >>confdefs.h <<_ACEOF
26247 #define dev_t unsigned long
26252 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26253 if test "x$ac_cv_type_daddr_t" = x""yes; then :
26257 cat >>confdefs.h <<_ACEOF
26258 #define daddr_t long
26263 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26264 if test "x$ac_cv_type_major_t" = x""yes; then :
26268 cat >>confdefs.h <<_ACEOF
26269 #define major_t int
26274 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26275 if test "x$ac_cv_type_minor_t" = x""yes; then :
26279 cat >>confdefs.h <<_ACEOF
26280 #define minor_t int
26285 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26286 if test "x$ac_cv_type_ssize_t" = x""yes; then :
26290 cat >>confdefs.h <<_ACEOF
26291 #define ssize_t int
26296 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26297 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26299 cat >>confdefs.h <<_ACEOF
26300 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26304 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26307 case " $LIBOBJS " in
26308 *" fileblocks.$ac_objext "* ) ;;
26309 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26316 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26317 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
26319 cat >>confdefs.h <<_ACEOF
26320 #define HAVE_STRUCT_STAT_ST_RDEV 1
26324 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26330 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26331 if test "${ac_cv_struct_tm+set}" = set; then :
26332 $as_echo_n "(cached) " >&6
26334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26335 /* end confdefs.h. */
26336 #include <sys/types.h>
26343 int *p = &tm.tm_sec;
26349 if ac_fn_c_try_compile "$LINENO"; then :
26350 ac_cv_struct_tm=time.h
26352 ac_cv_struct_tm=sys/time.h
26354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26357 $as_echo "$ac_cv_struct_tm" >&6; }
26358 if test $ac_cv_struct_tm = sys/time.h; then
26360 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26365 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26366 if test "${ac_cv_c_const+set}" = set; then :
26367 $as_echo_n "(cached) " >&6
26369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26370 /* end confdefs.h. */
26375 /* FIXME: Include the comments suggested by Paul. */
26376 #ifndef __cplusplus
26377 /* Ultrix mips cc rejects this. */
26378 typedef int charset[2];
26380 /* SunOS 4.1.1 cc rejects this. */
26381 char const *const *pcpcc;
26383 /* NEC SVR4.0.2 mips cc rejects this. */
26384 struct point {int x, y;};
26385 static struct point const zero = {0,0};
26386 /* AIX XL C 1.02.0.0 rejects this.
26387 It does not let you subtract one const X* pointer from another in
26388 an arm of an if-expression whose if-part is not a constant
26390 const char *g = "string";
26391 pcpcc = &g + (g ? g-g : 0);
26392 /* HPUX 7.0 cc rejects these. */
26394 ppc = (char**) pcpcc;
26395 pcpcc = (char const *const *) ppc;
26396 { /* SCO 3.2v4 cc rejects this. */
26398 char const *s = 0 ? (char *) 0 : (char const *) 0;
26403 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26404 int x[] = {25, 17};
26405 const int *foo = &x[0];
26408 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26409 typedef const int *iptr;
26413 { /* AIX XL C 1.02.0.0 rejects this saying
26414 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26415 struct s { int j; const int *ap[3]; };
26416 struct s *b; b->j = 5;
26418 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26419 const int foo = 10;
26420 if (!foo) return 0;
26422 return !cs[0] && !zero.x;
26429 if ac_fn_c_try_compile "$LINENO"; then :
26434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26437 $as_echo "$ac_cv_c_const" >&6; }
26438 if test $ac_cv_c_const = no; then
26440 $as_echo "#define const /**/" >>confdefs.h
26445 # The cast to long int works around a bug in the HP C Compiler
26446 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26447 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26448 # This bug is HP SR number 8606223364.
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26450 $as_echo_n "checking size of char... " >&6; }
26451 if test "${ac_cv_sizeof_char+set}" = set; then :
26452 $as_echo_n "(cached) " >&6
26454 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
26457 if test "$ac_cv_type_char" = yes; then
26458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26460 as_fn_error 77 "cannot compute sizeof (char)
26461 See \`config.log' for more details" "$LINENO" 5; }
26463 ac_cv_sizeof_char=0
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26469 $as_echo "$ac_cv_sizeof_char" >&6; }
26473 cat >>confdefs.h <<_ACEOF
26474 #define SIZEOF_CHAR $ac_cv_sizeof_char
26478 # The cast to long int works around a bug in the HP C Compiler
26479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26481 # This bug is HP SR number 8606223364.
26482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26483 $as_echo_n "checking size of short int... " >&6; }
26484 if test "${ac_cv_sizeof_short_int+set}" = set; then :
26485 $as_echo_n "(cached) " >&6
26487 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
26490 if test "$ac_cv_type_short_int" = yes; then
26491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26493 as_fn_error 77 "cannot compute sizeof (short int)
26494 See \`config.log' for more details" "$LINENO" 5; }
26496 ac_cv_sizeof_short_int=0
26501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26502 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26506 cat >>confdefs.h <<_ACEOF
26507 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26511 # The cast to long int works around a bug in the HP C Compiler
26512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26513 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26514 # This bug is HP SR number 8606223364.
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26516 $as_echo_n "checking size of int... " >&6; }
26517 if test "${ac_cv_sizeof_int+set}" = set; then :
26518 $as_echo_n "(cached) " >&6
26520 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
26523 if test "$ac_cv_type_int" = yes; then
26524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26526 as_fn_error 77 "cannot compute sizeof (int)
26527 See \`config.log' for more details" "$LINENO" 5; }
26534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26535 $as_echo "$ac_cv_sizeof_int" >&6; }
26539 cat >>confdefs.h <<_ACEOF
26540 #define SIZEOF_INT $ac_cv_sizeof_int
26544 # The cast to long int works around a bug in the HP C Compiler
26545 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26546 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26547 # This bug is HP SR number 8606223364.
26548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26549 $as_echo_n "checking size of long int... " >&6; }
26550 if test "${ac_cv_sizeof_long_int+set}" = set; then :
26551 $as_echo_n "(cached) " >&6
26553 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
26556 if test "$ac_cv_type_long_int" = yes; then
26557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26559 as_fn_error 77 "cannot compute sizeof (long int)
26560 See \`config.log' for more details" "$LINENO" 5; }
26562 ac_cv_sizeof_long_int=0
26567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26568 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26572 cat >>confdefs.h <<_ACEOF
26573 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26577 # The cast to long int works around a bug in the HP C Compiler
26578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26580 # This bug is HP SR number 8606223364.
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26582 $as_echo_n "checking size of long long int... " >&6; }
26583 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
26584 $as_echo_n "(cached) " >&6
26586 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
26589 if test "$ac_cv_type_long_long_int" = yes; then
26590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26592 as_fn_error 77 "cannot compute sizeof (long long int)
26593 See \`config.log' for more details" "$LINENO" 5; }
26595 ac_cv_sizeof_long_long_int=0
26600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26601 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26605 cat >>confdefs.h <<_ACEOF
26606 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26610 # The cast to long int works around a bug in the HP C Compiler
26611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26613 # This bug is HP SR number 8606223364.
26614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26615 $as_echo_n "checking size of int *... " >&6; }
26616 if test "${ac_cv_sizeof_int_p+set}" = set; then :
26617 $as_echo_n "(cached) " >&6
26619 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
26622 if test "$ac_cv_type_int_p" = yes; then
26623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26625 as_fn_error 77 "cannot compute sizeof (int *)
26626 See \`config.log' for more details" "$LINENO" 5; }
26628 ac_cv_sizeof_int_p=0
26633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26634 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26638 cat >>confdefs.h <<_ACEOF
26639 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26645 $as_echo_n "checking for u_int type... " >&6; }
26646 if test "${ac_cv_have_u_int+set}" = set; then :
26647 $as_echo_n "(cached) " >&6
26650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26651 /* end confdefs.h. */
26653 #include <sys/types.h>
26665 if ac_fn_c_try_compile "$LINENO"; then :
26667 ac_cv_have_u_int="yes"
26671 ac_cv_have_u_int="no"
26675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
26680 $as_echo "$ac_cv_have_u_int" >&6; }
26681 if test "x$ac_cv_have_u_int" = "xyes" ; then
26682 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
26687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
26688 $as_echo_n "checking for intmax_t type... " >&6; }
26689 if test "${ac_cv_have_intmax_t+set}" = set; then :
26690 $as_echo_n "(cached) " >&6
26693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26694 /* end confdefs.h. */
26696 #include <sys/types.h>
26708 if ac_fn_c_try_compile "$LINENO"; then :
26710 ac_cv_have_intmax_t="yes"
26714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26715 /* end confdefs.h. */
26717 #include <stdint.h>
26729 if ac_fn_c_try_compile "$LINENO"; then :
26731 ac_cv_have_intmax_t="yes"
26735 ac_cv_have_intmax_t="no"
26739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
26748 $as_echo "$ac_cv_have_intmax_t" >&6; }
26749 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26750 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
26755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
26756 $as_echo_n "checking for u_intmax_t type... " >&6; }
26757 if test "${ac_cv_have_u_intmax_t+set}" = set; then :
26758 $as_echo_n "(cached) " >&6
26761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26762 /* end confdefs.h. */
26764 #include <sys/types.h>
26770 u_intmax_t a; a = 1;
26776 if ac_fn_c_try_compile "$LINENO"; then :
26778 ac_cv_have_u_intmax_t="yes"
26782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26783 /* end confdefs.h. */
26785 #include <stdint.h>
26791 u_intmax_t a; a = 1;
26797 if ac_fn_c_try_compile "$LINENO"; then :
26799 ac_cv_have_u_intmax_t="yes"
26803 ac_cv_have_u_intmax_t="no"
26807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
26816 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
26817 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26818 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
26823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
26824 $as_echo_n "checking for intXX_t types... " >&6; }
26825 if test "${ac_cv_have_intxx_t+set}" = set; then :
26826 $as_echo_n "(cached) " >&6
26829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26830 /* end confdefs.h. */
26832 #include <sys/types.h>
26838 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26844 if ac_fn_c_try_compile "$LINENO"; then :
26846 ac_cv_have_intxx_t="yes"
26850 ac_cv_have_intxx_t="no"
26854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
26859 $as_echo "$ac_cv_have_intxx_t" >&6; }
26860 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26861 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
26866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
26867 $as_echo_n "checking for int64_t type... " >&6; }
26868 if test "${ac_cv_have_int64_t+set}" = set; then :
26869 $as_echo_n "(cached) " >&6
26872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26873 /* end confdefs.h. */
26875 #include <sys/types.h>
26887 if ac_fn_c_try_compile "$LINENO"; then :
26889 ac_cv_have_int64_t="yes"
26893 ac_cv_have_int64_t="no"
26897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
26902 $as_echo "$ac_cv_have_int64_t" >&6; }
26903 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26904 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
26909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
26910 $as_echo_n "checking for u_intXX_t types... " >&6; }
26911 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
26912 $as_echo_n "(cached) " >&6
26915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26916 /* end confdefs.h. */
26918 #include <sys/types.h>
26924 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26930 if ac_fn_c_try_compile "$LINENO"; then :
26932 ac_cv_have_u_intxx_t="yes"
26936 ac_cv_have_u_intxx_t="no"
26940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
26945 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
26946 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26947 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
26952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
26953 $as_echo_n "checking for u_int64_t types... " >&6; }
26954 if test "${ac_cv_have_u_int64_t+set}" = set; then :
26955 $as_echo_n "(cached) " >&6
26958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26959 /* end confdefs.h. */
26961 #include <sys/types.h>
26967 u_int64_t a; a = 1;
26973 if ac_fn_c_try_compile "$LINENO"; then :
26975 ac_cv_have_u_int64_t="yes"
26979 ac_cv_have_u_int64_t="no"
26983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
26988 $as_echo "$ac_cv_have_u_int64_t" >&6; }
26989 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26990 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
26995 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26996 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26999 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27001 /* end confdefs.h. */
27003 #include <sys/bitypes.h>
27009 int8_t a; int16_t b; int32_t c;
27010 u_int8_t e; u_int16_t f; u_int32_t g;
27011 a = b = c = e = f = g = 1;
27017 if ac_fn_c_try_compile "$LINENO"; then :
27019 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27021 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27023 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27026 $as_echo "yes" >&6; }
27030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27031 $as_echo "no" >&6; }
27035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27038 if test -z "$have_u_intxx_t" ; then
27039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27040 $as_echo_n "checking for uintXX_t types... " >&6; }
27041 if test "${ac_cv_have_uintxx_t+set}" = set; then :
27042 $as_echo_n "(cached) " >&6
27045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27046 /* end confdefs.h. */
27048 #include <sys/types.h>
27054 uint8_t a; uint16_t b;
27055 uint32_t c; a = b = c = 1;
27061 if ac_fn_c_try_compile "$LINENO"; then :
27063 ac_cv_have_uintxx_t="yes"
27067 ac_cv_have_uintxx_t="no"
27071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27076 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27077 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27078 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27083 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27084 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27087 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27089 /* end confdefs.h. */
27091 #include <sys/bitypes.h>
27097 int64_t a; u_int64_t b;
27104 if ac_fn_c_try_compile "$LINENO"; then :
27106 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27108 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27111 $as_echo "yes" >&6; }
27115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27116 $as_echo "no" >&6; }
27120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27123 if (test -z "$have_uintxx_t" && \
27124 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27127 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27129 /* end confdefs.h. */
27131 #include <sys/bitypes.h>
27137 uint8_t a; uint16_t b;
27138 uint32_t c; a = b = c = 1;
27144 if ac_fn_c_try_compile "$LINENO"; then :
27146 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27149 $as_echo "yes" >&6; }
27153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27154 $as_echo "no" >&6; }
27158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27177 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27178 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27179 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27180 cat >>confdefs.h <<_ACEOF
27181 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27185 echo 'configure: cannot find needed function.'; exit 1
27191 for ac_func in fchdir
27193 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27194 if test "x$ac_cv_func_fchdir" = x""yes; then :
27195 cat >>confdefs.h <<_ACEOF
27196 #define HAVE_FCHDIR 1
27198 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27203 for ac_func in strtoll
27205 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27206 if test "x$ac_cv_func_strtoll" = x""yes; then :
27207 cat >>confdefs.h <<_ACEOF
27208 #define HAVE_STRTOLL 1
27210 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27215 for ac_func in posix_fadvise
27217 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27218 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
27219 cat >>confdefs.h <<_ACEOF
27220 #define HAVE_POSIX_FADVISE 1
27226 for ac_func in fdatasync
27228 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27229 if test "x$ac_cv_func_fdatasync" = x""yes; then :
27230 cat >>confdefs.h <<_ACEOF
27231 #define HAVE_FDATASYNC 1
27238 for ac_func in chflags
27240 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27241 if test "x$ac_cv_func_chflags" = x""yes; then :
27242 cat >>confdefs.h <<_ACEOF
27243 #define HAVE_CHFLAGS 1
27250 for ac_func in snprintf vsnprintf gethostid fseeko
27252 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27253 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27254 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27255 cat >>confdefs.h <<_ACEOF
27256 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27264 $as_echo_n "checking for va_copy... " >&6; }
27265 if test "${ba_cv_va_copy+set}" = set; then :
27266 $as_echo_n "(cached) " >&6
27269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27270 /* end confdefs.h. */
27272 #include <stdarg.h>
27273 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27274 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27280 call_use_va_copy(1,2,3)
27286 if ac_fn_c_try_link "$LINENO"; then :
27296 rm -f core conftest.err conftest.$ac_objext \
27297 conftest$ac_exeext conftest.$ac_ext
27301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27302 $as_echo "$ba_cv_va_copy" >&6; }
27303 test $ba_cv_va_copy = yes &&
27304 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27307 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27309 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27310 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27311 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27312 cat >>confdefs.h <<_ACEOF
27313 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27320 # If resolver functions are not in libc check for -lnsl or -lresolv.
27321 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27322 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
27323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27324 $as_echo "using libc's resolver" >&6; }
27326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27327 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27328 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
27329 $as_echo_n "(cached) " >&6
27331 ac_check_lib_save_LIBS=$LIBS
27333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27334 /* end confdefs.h. */
27336 /* Override any GCC internal prototype to avoid an error.
27337 Use char because int might match the return type of a GCC
27338 builtin and then its argument prototype would still apply. */
27342 char gethostbyname_r ();
27346 return gethostbyname_r ();
27351 if ac_fn_c_try_link "$LINENO"; then :
27352 ac_cv_lib_nsl_gethostbyname_r=yes
27354 ac_cv_lib_nsl_gethostbyname_r=no
27356 rm -f core conftest.err conftest.$ac_objext \
27357 conftest$ac_exeext conftest.$ac_ext
27358 LIBS=$ac_check_lib_save_LIBS
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27361 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27362 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
27363 cat >>confdefs.h <<_ACEOF
27364 #define HAVE_LIBNSL 1
27371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27372 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27373 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then :
27374 $as_echo_n "(cached) " >&6
27376 ac_check_lib_save_LIBS=$LIBS
27377 LIBS="-lresolv $LIBS"
27378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27379 /* end confdefs.h. */
27381 /* Override any GCC internal prototype to avoid an error.
27382 Use char because int might match the return type of a GCC
27383 builtin and then its argument prototype would still apply. */
27387 char gethostbyname_r ();
27391 return gethostbyname_r ();
27396 if ac_fn_c_try_link "$LINENO"; then :
27397 ac_cv_lib_resolv_gethostbyname_r=yes
27399 ac_cv_lib_resolv_gethostbyname_r=no
27401 rm -f core conftest.err conftest.$ac_objext \
27402 conftest$ac_exeext conftest.$ac_ext
27403 LIBS=$ac_check_lib_save_LIBS
27405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27406 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27407 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then :
27408 cat >>confdefs.h <<_ACEOF
27409 #define HAVE_LIBRESOLV 1
27412 LIBS="-lresolv $LIBS"
27419 for ac_func in inet_pton
27421 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27422 if test "x$ac_cv_func_inet_pton" = x""yes; then :
27423 cat >>confdefs.h <<_ACEOF
27424 #define HAVE_INET_PTON 1
27426 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27431 for ac_func in inet_ntop
27433 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27434 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
27435 cat >>confdefs.h <<_ACEOF
27436 #define HAVE_INET_NTOP 1
27438 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27443 for ac_func in gethostbyname2
27445 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27446 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
27447 cat >>confdefs.h <<_ACEOF
27448 #define HAVE_GETHOSTBYNAME2 1
27450 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27457 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27458 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then :
27459 $as_echo_n "(cached) " >&6
27462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27463 /* end confdefs.h. */
27465 #include <sys/socket.h>
27471 struct sockaddr s; s.sa_len;
27477 if ac_fn_c_try_compile "$LINENO"; then :
27479 ac_cv_struct_sockaddr_sa_len=yes
27482 ac_cv_struct_sockaddr_sa_len=no
27486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27491 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27493 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27495 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27499 for ac_func in strftime
27501 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27502 if test "x$ac_cv_func_strftime" = x""yes; then :
27503 cat >>confdefs.h <<_ACEOF
27504 #define HAVE_STRFTIME 1
27508 # strftime is in -lintl on SCO UNIX.
27509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27510 $as_echo_n "checking for strftime in -lintl... " >&6; }
27511 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
27512 $as_echo_n "(cached) " >&6
27514 ac_check_lib_save_LIBS=$LIBS
27515 LIBS="-lintl $LIBS"
27516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27517 /* end confdefs.h. */
27519 /* Override any GCC internal prototype to avoid an error.
27520 Use char because int might match the return type of a GCC
27521 builtin and then its argument prototype would still apply. */
27529 return strftime ();
27534 if ac_fn_c_try_link "$LINENO"; then :
27535 ac_cv_lib_intl_strftime=yes
27537 ac_cv_lib_intl_strftime=no
27539 rm -f core conftest.err conftest.$ac_objext \
27540 conftest$ac_exeext conftest.$ac_ext
27541 LIBS=$ac_check_lib_save_LIBS
27543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27544 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27545 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
27546 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27548 LIBS="-lintl $LIBS"
27554 for ac_func in vprintf
27556 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27557 if test "x$ac_cv_func_vprintf" = x""yes; then :
27558 cat >>confdefs.h <<_ACEOF
27559 #define HAVE_VPRINTF 1
27562 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27563 if test "x$ac_cv_func__doprnt" = x""yes; then :
27565 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27573 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27574 # for constant arguments. Useless!
27575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27576 $as_echo_n "checking for working alloca.h... " >&6; }
27577 if test "${ac_cv_working_alloca_h+set}" = set; then :
27578 $as_echo_n "(cached) " >&6
27580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27581 /* end confdefs.h. */
27582 #include <alloca.h>
27586 char *p = (char *) alloca (2 * sizeof (int));
27592 if ac_fn_c_try_link "$LINENO"; then :
27593 ac_cv_working_alloca_h=yes
27595 ac_cv_working_alloca_h=no
27597 rm -f core conftest.err conftest.$ac_objext \
27598 conftest$ac_exeext conftest.$ac_ext
27600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27601 $as_echo "$ac_cv_working_alloca_h" >&6; }
27602 if test $ac_cv_working_alloca_h = yes; then
27604 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
27608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
27609 $as_echo_n "checking for alloca... " >&6; }
27610 if test "${ac_cv_func_alloca_works+set}" = set; then :
27611 $as_echo_n "(cached) " >&6
27613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27614 /* end confdefs.h. */
27616 # define alloca __builtin_alloca
27619 # include <malloc.h>
27620 # define alloca _alloca
27622 # ifdef HAVE_ALLOCA_H
27623 # include <alloca.h>
27628 # ifndef alloca /* predefined by HP cc +Olibcalls */
27639 char *p = (char *) alloca (1);
27645 if ac_fn_c_try_link "$LINENO"; then :
27646 ac_cv_func_alloca_works=yes
27648 ac_cv_func_alloca_works=no
27650 rm -f core conftest.err conftest.$ac_objext \
27651 conftest$ac_exeext conftest.$ac_ext
27653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
27654 $as_echo "$ac_cv_func_alloca_works" >&6; }
27656 if test $ac_cv_func_alloca_works = yes; then
27658 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27661 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27662 # that cause trouble. Some versions do not even contain alloca or
27663 # contain a buggy version. If you still want to use their alloca,
27664 # use ar to extract alloca.o from them instead of compiling alloca.c.
27666 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27668 $as_echo "#define C_ALLOCA 1" >>confdefs.h
27671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
27672 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27673 if test "${ac_cv_os_cray+set}" = set; then :
27674 $as_echo_n "(cached) " >&6
27676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27677 /* end confdefs.h. */
27678 #if defined CRAY && ! defined CRAY2
27685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27686 $EGREP "webecray" >/dev/null 2>&1; then :
27694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
27695 $as_echo "$ac_cv_os_cray" >&6; }
27696 if test $ac_cv_os_cray = yes; then
27697 for ac_func in _getb67 GETB67 getb67; do
27698 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27699 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27700 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27702 cat >>confdefs.h <<_ACEOF
27703 #define CRAY_STACKSEG_END $ac_func
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
27713 $as_echo_n "checking stack direction for C alloca... " >&6; }
27714 if test "${ac_cv_c_stack_direction+set}" = set; then :
27715 $as_echo_n "(cached) " >&6
27717 if test "$cross_compiling" = yes; then :
27718 ac_cv_c_stack_direction=0
27720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27721 /* end confdefs.h. */
27722 $ac_includes_default
27724 find_stack_direction ()
27726 static char *addr = 0;
27731 return find_stack_direction ();
27734 return (&dummy > addr) ? 1 : -1;
27740 return find_stack_direction () < 0;
27743 if ac_fn_c_try_run "$LINENO"; then :
27744 ac_cv_c_stack_direction=1
27746 ac_cv_c_stack_direction=-1
27748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27749 conftest.$ac_objext conftest.beam conftest.$ac_ext
27753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
27754 $as_echo "$ac_cv_c_stack_direction" >&6; }
27755 cat >>confdefs.h <<_ACEOF
27756 #define STACK_DIRECTION $ac_cv_c_stack_direction
27762 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
27763 # -lseq on Dynix/PTX, -lgen on Unixware.
27764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
27765 $as_echo_n "checking for library containing getmntent... " >&6; }
27766 if test "${ac_cv_search_getmntent+set}" = set; then :
27767 $as_echo_n "(cached) " >&6
27769 ac_func_search_save_LIBS=$LIBS
27770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27771 /* end confdefs.h. */
27773 /* Override any GCC internal prototype to avoid an error.
27774 Use char because int might match the return type of a GCC
27775 builtin and then its argument prototype would still apply. */
27783 return getmntent ();
27788 for ac_lib in '' sun seq gen; do
27789 if test -z "$ac_lib"; then
27790 ac_res="none required"
27793 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27795 if ac_fn_c_try_link "$LINENO"; then :
27796 ac_cv_search_getmntent=$ac_res
27798 rm -f core conftest.err conftest.$ac_objext \
27800 if test "${ac_cv_search_getmntent+set}" = set; then :
27804 if test "${ac_cv_search_getmntent+set}" = set; then :
27807 ac_cv_search_getmntent=no
27809 rm conftest.$ac_ext
27810 LIBS=$ac_func_search_save_LIBS
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
27813 $as_echo "$ac_cv_search_getmntent" >&6; }
27814 ac_res=$ac_cv_search_getmntent
27815 if test "$ac_res" != no; then :
27816 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27817 ac_cv_func_getmntent=yes
27819 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
27822 ac_cv_func_getmntent=no
27826 for ac_func in getmntinfo
27828 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
27829 if test "x$ac_cv_func_getmntinfo" = x""yes; then :
27830 cat >>confdefs.h <<_ACEOF
27831 #define HAVE_GETMNTINFO 1
27833 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
27838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
27839 $as_echo_n "checking whether closedir returns void... " >&6; }
27840 if test "${ac_cv_func_closedir_void+set}" = set; then :
27841 $as_echo_n "(cached) " >&6
27843 if test "$cross_compiling" = yes; then :
27844 ac_cv_func_closedir_void=yes
27846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27847 /* end confdefs.h. */
27848 $ac_includes_default
27849 #include <$ac_header_dirent>
27850 #ifndef __cplusplus
27857 return closedir (opendir (".")) != 0;
27862 if ac_fn_c_try_run "$LINENO"; then :
27863 ac_cv_func_closedir_void=no
27865 ac_cv_func_closedir_void=yes
27867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27868 conftest.$ac_objext conftest.beam conftest.$ac_ext
27872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
27873 $as_echo "$ac_cv_func_closedir_void" >&6; }
27874 if test $ac_cv_func_closedir_void = yes; then
27876 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
27880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27881 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27882 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
27883 $as_echo_n "(cached) " >&6
27885 if test "$cross_compiling" = yes; then :
27886 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
27888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27889 /* end confdefs.h. */
27890 $ac_includes_default
27894 /* If this system has a BSD-style setpgrp which takes arguments,
27895 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
27896 exit successfully. */
27897 return setpgrp (1,1) != -1;
27902 if ac_fn_c_try_run "$LINENO"; then :
27903 ac_cv_func_setpgrp_void=no
27905 ac_cv_func_setpgrp_void=yes
27907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27908 conftest.$ac_objext conftest.beam conftest.$ac_ext
27912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
27913 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
27914 if test $ac_cv_func_setpgrp_void = yes; then
27916 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
27919 # AC_FUNC_FNMATCH dnl use local version
27921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
27922 $as_echo_n "checking for gettext in -lintl... " >&6; }
27923 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
27924 $as_echo_n "(cached) " >&6
27926 ac_check_lib_save_LIBS=$LIBS
27927 LIBS="-lintl $LIBS"
27928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27929 /* end confdefs.h. */
27931 /* Override any GCC internal prototype to avoid an error.
27932 Use char because int might match the return type of a GCC
27933 builtin and then its argument prototype would still apply. */
27946 if ac_fn_c_try_link "$LINENO"; then :
27947 ac_cv_lib_intl_gettext=yes
27949 ac_cv_lib_intl_gettext=no
27951 rm -f core conftest.err conftest.$ac_objext \
27952 conftest$ac_exeext conftest.$ac_ext
27953 LIBS=$ac_check_lib_save_LIBS
27955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
27956 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
27957 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
27958 LIBS="$LIBS -lintl"
27962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
27963 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
27964 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
27965 $as_echo_n "(cached) " >&6
27967 ac_check_lib_save_LIBS=$LIBS
27969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27970 /* end confdefs.h. */
27972 /* Override any GCC internal prototype to avoid an error.
27973 Use char because int might match the return type of a GCC
27974 builtin and then its argument prototype would still apply. */
27982 return getpwnam ();
27987 if ac_fn_c_try_link "$LINENO"; then :
27988 ac_cv_lib_sun_getpwnam=yes
27990 ac_cv_lib_sun_getpwnam=no
27992 rm -f core conftest.err conftest.$ac_objext \
27993 conftest$ac_exeext conftest.$ac_ext
27994 LIBS=$ac_check_lib_save_LIBS
27996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
27997 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
27998 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
27999 cat >>confdefs.h <<_ACEOF
28000 #define HAVE_LIBSUN 1
28008 for ac_header in zlib.h
28010 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28011 if test "x$ac_cv_header_zlib_h" = x""yes; then :
28012 cat >>confdefs.h <<_ACEOF
28013 #define HAVE_ZLIB_H 1
28020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28021 $as_echo_n "checking for deflate in -lz... " >&6; }
28022 if test "${ac_cv_lib_z_deflate+set}" = set; then :
28023 $as_echo_n "(cached) " >&6
28025 ac_check_lib_save_LIBS=$LIBS
28027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28028 /* end confdefs.h. */
28030 /* Override any GCC internal prototype to avoid an error.
28031 Use char because int might match the return type of a GCC
28032 builtin and then its argument prototype would still apply. */
28045 if ac_fn_c_try_link "$LINENO"; then :
28046 ac_cv_lib_z_deflate=yes
28048 ac_cv_lib_z_deflate=no
28050 rm -f core conftest.err conftest.$ac_objext \
28051 conftest$ac_exeext conftest.$ac_ext
28052 LIBS=$ac_check_lib_save_LIBS
28054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28055 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28056 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
28061 if test x$ZLIBS = x-lz; then
28062 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28071 # Check whether --enable-afs was given.
28072 if test "${enable_afs+set}" = set; then :
28073 enableval=$enable_afs;
28074 if test x$enableval = xyes; then
28076 elif test x$enableval = xno; then
28085 if test x$support_afs = xyes -o x$support_afs = xauto; then
28087 # Check whether --with-afsdir was given.
28088 if test "${with_afsdir+set}" = set; then :
28089 withval=$with_afsdir; with_afsdir=$withval
28094 if test x$with_afsdir = x; then
28095 for root in /usr /usr/local; do
28096 if test -d ${root}/include/afs/ ; then
28097 with_afsdir=${root}
28103 AFS_CFLAGS="-I${with_afsdir}/include"
28105 saved_CFLAGS="${CFLAGS}"
28106 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
28108 for ac_header in afs/stds.h
28110 ac_fn_c_check_header_mongrel "$LINENO" "afs/stds.h" "ac_cv_header_afs_stds_h" "$ac_includes_default"
28111 if test "x$ac_cv_header_afs_stds_h" = x""yes; then :
28112 cat >>confdefs.h <<_ACEOF
28113 #define HAVE_AFS_STDS_H 1
28121 CFLAGS="${saved_CFLAGS}"
28123 for dir in ${with_afsdir}/lib ${with_afsdir}/lib/afs
28125 for arch_type in .a .so
28127 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} | grep pioctl`
28129 if test $pkg = 0; then
28131 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util.a"
28137 if test x$support_afs = xyes -a $have_afs != yes; then
28138 as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
28139 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
28141 if test $have_afs = yes; then
28143 $as_echo "#define HAVE_AFS 1" >>confdefs.h
28146 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
28156 # Check whether --enable-acl was given.
28157 if test "${enable_acl+set}" = set; then :
28158 enableval=$enable_acl;
28159 if test x$enableval = xyes; then
28161 elif test x$enableval = xno; then
28170 have_extended_acl=no
28171 if test x$support_acl = xyes -o x$support_acl = xauto; then
28172 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28173 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
28175 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28180 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28181 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
28187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28188 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28189 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
28190 $as_echo_n "(cached) " >&6
28192 ac_check_lib_save_LIBS=$LIBS
28194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28195 /* end confdefs.h. */
28197 /* Override any GCC internal prototype to avoid an error.
28198 Use char because int might match the return type of a GCC
28199 builtin and then its argument prototype would still apply. */
28203 char acl_get_file ();
28207 return acl_get_file ();
28212 if ac_fn_c_try_link "$LINENO"; then :
28213 ac_cv_lib_acl_acl_get_file=yes
28215 ac_cv_lib_acl_acl_get_file=no
28217 rm -f core conftest.err conftest.$ac_objext \
28218 conftest$ac_exeext conftest.$ac_ext
28219 LIBS=$ac_check_lib_save_LIBS
28221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28222 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28223 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
28226 if test $have_afs = yes; then
28227 if test -d /usr/lib64/; then
28228 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
28230 FDLIBS="-L/usr/lib -lacl $FDLIBS"
28233 FDLIBS="-lacl $FDLIBS"
28238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28239 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28240 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
28241 $as_echo_n "(cached) " >&6
28243 ac_check_lib_save_LIBS=$LIBS
28244 LIBS="-lpacl $LIBS"
28245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28246 /* end confdefs.h. */
28248 /* Override any GCC internal prototype to avoid an error.
28249 Use char because int might match the return type of a GCC
28250 builtin and then its argument prototype would still apply. */
28254 char acl_get_file ();
28258 return acl_get_file ();
28263 if ac_fn_c_try_link "$LINENO"; then :
28264 ac_cv_lib_pacl_acl_get_file=yes
28266 ac_cv_lib_pacl_acl_get_file=no
28268 rm -f core conftest.err conftest.$ac_objext \
28269 conftest$ac_exeext conftest.$ac_ext
28270 LIBS=$ac_check_lib_save_LIBS
28272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28273 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28274 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
28277 FDLIBS="-lpacl $FDLIBS"
28281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28282 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28283 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
28284 $as_echo_n "(cached) " >&6
28286 ac_check_lib_save_LIBS=$LIBS
28288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28289 /* end confdefs.h. */
28291 /* Override any GCC internal prototype to avoid an error.
28292 Use char because int might match the return type of a GCC
28293 builtin and then its argument prototype would still apply. */
28301 return acltotext ();
28306 if ac_fn_c_try_link "$LINENO"; then :
28307 ac_cv_lib_sec_acltotext=yes
28309 ac_cv_lib_sec_acltotext=no
28311 rm -f core conftest.err conftest.$ac_objext \
28312 conftest$ac_exeext conftest.$ac_ext
28313 LIBS=$ac_check_lib_save_LIBS
28315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28316 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28317 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
28320 FDLIBS="-lsec $FDLIBS"
28322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28323 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28324 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
28325 $as_echo_n "(cached) " >&6
28327 ac_check_lib_save_LIBS=$LIBS
28329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28330 /* end confdefs.h. */
28332 /* Override any GCC internal prototype to avoid an error.
28333 Use char because int might match the return type of a GCC
28334 builtin and then its argument prototype would still apply. */
28338 char acl_totext ();
28342 return acl_totext ();
28347 if ac_fn_c_try_link "$LINENO"; then :
28348 ac_cv_lib_sec_acl_totext=yes
28350 ac_cv_lib_sec_acl_totext=no
28352 rm -f core conftest.err conftest.$ac_objext \
28353 conftest$ac_exeext conftest.$ac_ext
28354 LIBS=$ac_check_lib_save_LIBS
28356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28357 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28358 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
28360 have_extended_acl=yes
28382 if test x$support_acl = xyes -a $have_acl != yes; then
28383 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
28384 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28386 if test $have_acl = yes; then
28388 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28392 if test $have_extended_acl = yes; then
28394 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28401 # Check whether --enable-xattr was given.
28402 if test "${enable_xattr+set}" = set; then :
28403 enableval=$enable_xattr;
28404 if test x$enableval = xyes; then
28406 elif test x$enableval = xno; then
28415 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28416 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28417 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
28419 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28424 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28425 if test "x$ac_cv_header_libutil_h" = x""yes; then :
28427 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28432 for ac_func in extattr_get_link extattr_set_link extattr_list_link
28434 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28435 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28436 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28437 cat >>confdefs.h <<_ACEOF
28438 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28443 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28446 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28449 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28457 if test $have_xattr = no; then
28458 for ac_func in extattr_get_file extattr_set_file extattr_list_file
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 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28463 cat >>confdefs.h <<_ACEOF
28464 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28469 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28472 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28475 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28484 if test $have_xattr = yes; then
28485 have_extattr_string_in_libc=no
28486 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28488 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28489 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28490 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28491 cat >>confdefs.h <<_ACEOF
28492 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28495 have_extattr_string_in_libc=yes
28497 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28500 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28508 if test $have_extattr_string_in_libc = no; then
28509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28510 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28511 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
28512 $as_echo_n "(cached) " >&6
28514 ac_check_lib_save_LIBS=$LIBS
28515 LIBS="-lutil $LIBS"
28516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28517 /* end confdefs.h. */
28519 /* Override any GCC internal prototype to avoid an error.
28520 Use char because int might match the return type of a GCC
28521 builtin and then its argument prototype would still apply. */
28525 char extattr_namespace_to_string extattr_string_to_namespace ();
28529 return extattr_namespace_to_string extattr_string_to_namespace ();
28534 if ac_fn_c_try_link "$LINENO"; then :
28535 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28537 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28539 rm -f core conftest.err conftest.$ac_objext \
28540 conftest$ac_exeext conftest.$ac_ext
28541 LIBS=$ac_check_lib_save_LIBS
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28544 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28545 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
28548 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28551 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28553 FDLIBS="-lutil $FDLIBS"
28561 if test $have_xattr = no; then
28562 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
28563 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
28565 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
28570 for ac_func in llistxattr lgetxattr lsetxattr
28572 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28573 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28574 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28575 cat >>confdefs.h <<_ACEOF
28576 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28581 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
28584 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
28587 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
28595 if test $have_xattr = no; then
28596 for ac_func in listxattr getxattr setxattr
28598 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28599 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28600 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28601 cat >>confdefs.h <<_ACEOF
28602 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28607 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
28610 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
28613 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
28623 if test $have_xattr = no; then
28624 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
28625 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
28627 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
28632 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
28633 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
28635 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
28640 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
28641 if test "x$ac_cv_header_attr_h" = x""yes; then :
28643 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
28649 for ac_func in openat fstatat unlinkat fchownat futimesat
28651 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28652 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28653 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28654 cat >>confdefs.h <<_ACEOF
28655 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28660 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
28663 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
28666 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
28669 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
28672 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
28680 if test $have_xattr = yes; then
28681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
28682 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
28683 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
28684 $as_echo_n "(cached) " >&6
28686 ac_check_lib_save_LIBS=$LIBS
28687 LIBS="-lnvpair $LIBS"
28688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28689 /* end confdefs.h. */
28691 /* Override any GCC internal prototype to avoid an error.
28692 Use char because int might match the return type of a GCC
28693 builtin and then its argument prototype would still apply. */
28697 char nvlist_next_nvpair ();
28701 return nvlist_next_nvpair ();
28706 if ac_fn_c_try_link "$LINENO"; then :
28707 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
28709 ac_cv_lib_nvpair_nvlist_next_nvpair=no
28711 rm -f core conftest.err conftest.$ac_objext \
28712 conftest$ac_exeext conftest.$ac_ext
28713 LIBS=$ac_check_lib_save_LIBS
28715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
28716 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
28717 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
28720 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
28722 FDLIBS="-lnvpair $FDLIBS"
28730 if test x$support_xattr = xyes -a $have_xattr != yes; then
28731 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
28732 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
28734 if test $have_xattr = yes; then
28736 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
28743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
28744 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
28745 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
28746 $as_echo_n "(cached) " >&6
28748 ac_check_lib_save_LIBS=$LIBS
28749 LIBS="-lpthread $LIBS"
28750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28751 /* end confdefs.h. */
28753 /* Override any GCC internal prototype to avoid an error.
28754 Use char because int might match the return type of a GCC
28755 builtin and then its argument prototype would still apply. */
28759 char pthread_create ();
28763 return pthread_create ();
28768 if ac_fn_c_try_link "$LINENO"; then :
28769 ac_cv_lib_pthread_pthread_create=yes
28771 ac_cv_lib_pthread_pthread_create=no
28773 rm -f core conftest.err conftest.$ac_objext \
28774 conftest$ac_exeext conftest.$ac_ext
28775 LIBS=$ac_check_lib_save_LIBS
28777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
28778 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
28779 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
28780 PTHREAD_LIB="-lpthread"
28783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
28784 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
28785 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
28786 $as_echo_n "(cached) " >&6
28788 ac_check_lib_save_LIBS=$LIBS
28789 LIBS="-lpthreads $LIBS"
28790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28791 /* end confdefs.h. */
28793 /* Override any GCC internal prototype to avoid an error.
28794 Use char because int might match the return type of a GCC
28795 builtin and then its argument prototype would still apply. */
28799 char pthread_create ();
28803 return pthread_create ();
28808 if ac_fn_c_try_link "$LINENO"; then :
28809 ac_cv_lib_pthreads_pthread_create=yes
28811 ac_cv_lib_pthreads_pthread_create=no
28813 rm -f core conftest.err conftest.$ac_objext \
28814 conftest$ac_exeext conftest.$ac_ext
28815 LIBS=$ac_check_lib_save_LIBS
28817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
28818 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
28819 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
28820 PTHREAD_LIB="-lpthreads"
28823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
28824 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
28825 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
28826 $as_echo_n "(cached) " >&6
28828 ac_check_lib_save_LIBS=$LIBS
28830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28831 /* end confdefs.h. */
28833 /* Override any GCC internal prototype to avoid an error.
28834 Use char because int might match the return type of a GCC
28835 builtin and then its argument prototype would still apply. */
28839 char pthread_create ();
28843 return pthread_create ();
28848 if ac_fn_c_try_link "$LINENO"; then :
28849 ac_cv_lib_c_r_pthread_create=yes
28851 ac_cv_lib_c_r_pthread_create=no
28853 rm -f core conftest.err conftest.$ac_objext \
28854 conftest$ac_exeext conftest.$ac_ext
28855 LIBS=$ac_check_lib_save_LIBS
28857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
28858 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
28859 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
28860 PTHREAD_LIB="-lc_r"
28863 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
28864 if test "x$ac_cv_func_pthread_create" = x""yes; then :
28881 for ac_header in sys/prctl.h sys/capability.h
28883 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28884 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28885 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28886 cat >>confdefs.h <<_ACEOF
28887 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28894 for ac_func in prctl setreuid
28896 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28897 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28898 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28899 cat >>confdefs.h <<_ACEOF
28900 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
28907 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
28908 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
28909 $as_echo_n "(cached) " >&6
28911 ac_check_lib_save_LIBS=$LIBS
28913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28914 /* end confdefs.h. */
28916 /* Override any GCC internal prototype to avoid an error.
28917 Use char because int might match the return type of a GCC
28918 builtin and then its argument prototype would still apply. */
28922 char cap_set_proc ();
28926 return cap_set_proc ();
28931 if ac_fn_c_try_link "$LINENO"; then :
28932 ac_cv_lib_cap_cap_set_proc=yes
28934 ac_cv_lib_cap_cap_set_proc=no
28936 rm -f core conftest.err conftest.$ac_objext \
28937 conftest$ac_exeext conftest.$ac_ext
28938 LIBS=$ac_check_lib_save_LIBS
28940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
28941 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
28942 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
28948 if test x$CAP_LIBS = x-lcap; then
28950 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
28956 $as_echo "#define FDLIBS 1" >>confdefs.h
28959 CFLAGS=${CFLAGS--O}
28961 if test x$have_gcc = xyes ; then
28962 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
28963 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
28965 LDFLAGS=${LDFLAGS--O}
28966 DB_LIBS="${SQL_LFLAGS}"
28967 CPPFLAGS="$CPPFLAGS"
28994 PFILES="platforms/Makefile"
28999 hostname=`uname -n | cut -d '.' -f 1`
29000 if test x${hostname} = x ; then
29001 hostname="localhost"
29003 ping -c 1 $hostname 2>/dev/null 1>/dev/null
29004 if test ! $? = 0; then
29005 hostname="localhost"
29008 case "$DISTNAME" in
29011 PSCMD="ps -e -o pid,comm"
29012 PFILES="${PFILES} \
29013 platforms/aix/Makefile"
29014 TAPEDRIVE="/dev/rmt0.1"
29018 PTHREAD_LIB="-lpthread -lexc"
29019 if test "${CC}" = "gcc" ; then
29026 TAPEDRIVE="/dev/nrmt0"
29029 DISTVER=`uname -a |awk '{print $3}'`
29030 TAPEDRIVE="/dev/nrmt0"
29031 PTHREAD_LIB="-pthread"
29032 CFLAGS="${CFLAGS} -pthread"
29033 PSCMD="ps -ax -o pid,command"
29036 PFILES="${PFILES} \
29037 platforms/bsdi/Makefile \
29038 platforms/bsdi/bacula-fd \
29039 platforms/bsdi/bacula-sd \
29040 platforms/bsdi/bacula-dir"
29041 largefile_support="yes"
29044 DISTVER=`uname -a |awk '{print $3}'`
29045 TAPEDRIVE="/dev/nrst0"
29047 WCFLAGS="-mwindows"
29048 WLDFLAGS="-mwindows"
29052 TAPEDRIVE="/dev/nst0"
29053 PSCMD="ps -e -o pid,command"
29055 PFILES="${PFILES} \
29056 platforms/darwin/Makefile"
29060 TAPEDRIVE="/dev/nst0"
29061 PSCMD="ps -e -o pid,command"
29063 PFILES="${PFILES} \
29064 platforms/osx/Makefile"
29067 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
29070 DISTVER=`cat /etc/debian_version`
29071 if test -f /etc/lsb-release ; then
29073 if test "x$DISTRIB_ID" != "x" ; then
29074 DISTNAME=$DISTRIB_ID
29076 if test "x$DISTRIB_RELEASE" != "x" ; then
29077 DISTVER=$DISTRIB_RELEASE
29080 if test "$DISTNAME" = "Ubuntu" ; then
29083 TAPEDRIVE="/dev/nst0"
29084 PSCMD="ps -e -o pid,command"
29085 if test "$DISTNAME" = "ubuntu" ; then
29086 PFILES="${PFILES} \
29087 platforms/ubuntu/Makefile \
29088 platforms/ubuntu/bacula-fd \
29089 platforms/ubuntu/bacula-sd \
29090 platforms/ubuntu/bacula-dir"
29092 PFILES="${PFILES} \
29093 platforms/debian/Makefile \
29094 platforms/debian/bacula-fd \
29095 platforms/debian/bacula-sd \
29096 platforms/debian/bacula-dir"
29100 DISTVER=`uname -a |awk '{print $3}'`
29101 VER=`echo $DISTVER | cut -c 1`
29102 if test x$VER = x4 ; then
29103 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29104 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29108 TAPEDRIVE="/dev/nrsa0"
29109 PSCMD="ps -ax -o pid,command"
29110 PFILES="${PFILES} \
29111 platforms/freebsd/Makefile \
29112 platforms/freebsd/bacula-fd \
29113 platforms/freebsd/bacula-sd \
29114 platforms/freebsd/bacula-dir"
29115 largefile_support="yes"
29118 PSCMD="UNIX95=1; ps -e -o pid,comm"
29119 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29121 TAPEDRIVE="/dev/rmt/0hnb"
29122 PTHREAD_LIB="-lpthread"
29123 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29128 TAPEDRIVE="/dev/rmt/0cbn"
29129 PSCMD="ps -e -o pid,comm"
29130 PFILES="${PFILES} \
29131 platforms/irix/Makefile \
29132 platforms/irix/bacula-fd \
29133 platforms/irix/bacula-sd \
29134 platforms/irix/bacula-dir"
29137 DISTVER=`uname -a |awk '{print $3}'`
29140 TAPEDRIVE="/dev/nrst0"
29141 PSCMD="ps -ax -o pid,command"
29142 PTHREAD_LIB="-pthread"
29143 CFLAGS="${CFLAGS} -pthread"
29146 DISTVER=`uname -a |awk '{print $3}'`
29149 TAPEDRIVE="/dev/nrst0"
29150 PSCMD="ps -ax -o pid,command"
29151 PTHREAD_LIB="-pthread"
29152 CFLAGS="${CFLAGS} -pthread"
29153 PFILES="${PFILES} \
29154 platforms/openbsd/Makefile \
29155 platforms/openbsd/bacula-fd \
29156 platforms/openbsd/bacula-sd \
29157 platforms/openbsd/bacula-dir"
29160 if test -f /etc/whitebox-release ; then
29161 f=/etc/whitebox-release
29163 f=/etc/redhat-release
29165 if test `cat $f | grep release |\
29166 cut -f 3 -d ' '`x = "Enterprise"x ; then
29167 DISTVER="Enterprise "`cat $f | grep release |\
29170 DISTVER=`cat /etc/redhat-release | grep release |\
29173 TAPEDRIVE="/dev/nst0"
29174 PSCMD="ps -e -o pid,command"
29175 PFILES="${PFILES} \
29176 platforms/redhat/Makefile \
29177 platforms/redhat/bacula-fd \
29178 platforms/redhat/bacula-sd \
29179 platforms/redhat/bacula-dir
29183 DISTVER=`cat /etc/mandrake-release | grep release |\
29185 TAPEDRIVE="/dev/nst0"
29186 PSCMD="ps -e -o pid,command"
29187 PFILES="${PFILES} \
29188 platforms/mandrake/Makefile \
29189 platforms/mandrake/bacula-fd \
29190 platforms/mandrake/bacula-sd \
29191 platforms/mandrake/bacula-dir \
29195 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29196 TAPEDRIVE="/dev/nst0"
29197 PSCMD="ps -e -o pid,command"
29198 PFILES="${PFILES} \
29199 platforms/gentoo/Makefile \
29200 platforms/gentoo/bacula-init \
29201 platforms/gentoo/bacula-fd \
29202 platforms/gentoo/bacula-sd \
29203 platforms/gentoo/bacula-dir"
29206 DISTVER=`cat /etc/slackware-version`
29207 TAPEDRIVE="/dev/nst0"
29208 PSCMD="ps -e -o pid,command"
29209 PFILES="${PFILES} \
29210 platforms/slackware/Makefile \
29211 platforms/slackware/rc.bacula-fd \
29212 platforms/slackware/rc.bacula-sd \
29213 platforms/slackware/rc.bacula-dir\
29214 platforms/slackware/functions.bacula"
29218 TAPEDRIVE="/dev/rmt/0cbn"
29219 PSCMD="ps -e -o pid,comm"
29220 PFILES="${PFILES} \
29221 platforms/solaris/Makefile \
29222 platforms/solaris/bacula-fd \
29223 platforms/solaris/bacula-sd \
29224 platforms/solaris/bacula-dir"
29225 if test x$DISTVER = x5.6 ; then
29226 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29229 LIBS="$LIBS -lresolv -lrt"
29232 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29234 TAPEDRIVE="/dev/nst0"
29235 PSCMD="ps -e -o pid,command"
29236 PFILES="${PFILES} \
29237 platforms/suse/Makefile \
29238 platforms/suse/bacula-fd \
29239 platforms/suse/bacula-sd \
29240 platforms/suse/bacula-dir \
29241 platforms/suse/bacula"
29246 TAPEDRIVE="/dev/nst0"
29247 PSCMD="ps -e -o pid,command"
29248 PFILES="${PFILES} \
29249 platforms/suse/Makefile \
29250 platforms/suse/bacula-fd \
29251 platforms/suse/bacula-sd \
29252 platforms/suse/bacula-dir"
29256 TAPEDRIVE="/dev/nst0"
29259 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29265 LIBS="$PTHREAD_LIB $LIBS"
29267 cat >>confdefs.h <<_ACEOF
29271 cat >>confdefs.h <<_ACEOF
29282 MCOMMON=./autoconf/Make.common
29285 if test "x${subsysdir}" = "x${sbindir}" ; then
29288 echo "You have set both --sbindir and --with-subsys-dir"
29289 echo " equal to: ${subsysdir} "
29290 echo "This is not permitted. Please reconfigure."
29292 echo "Aborting configuration ..."
29298 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_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 examples/nagios/check_bacula/Makefile $PFILES"
29300 ac_config_commands="$ac_config_commands default"
29302 cat >confcache <<\_ACEOF
29303 # This file is a shell script that caches the results of configure
29304 # tests run on this system so they can be shared between configure
29305 # scripts and configure runs, see configure's option --config-cache.
29306 # It is not useful on other systems. If it contains results you don't
29307 # want to keep, you may remove or edit it.
29309 # config.status only pays attention to the cache file if you give it
29310 # the --recheck option to rerun configure.
29312 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29313 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29314 # following values.
29318 # The following way of writing the cache mishandles newlines in values,
29319 # but we know of no workaround that is simple, portable, and efficient.
29320 # So, we kill variables containing newlines.
29321 # Ultrix sh set writes to stderr and can't be redirected directly,
29322 # and sets the high bit in the cache file unless we assign to the vars.
29324 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29325 eval ac_val=\$$ac_var
29329 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29330 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29333 _ | IFS | as_nl) ;; #(
29334 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29335 *) { eval $ac_var=; unset $ac_var;} ;;
29341 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29342 *${as_nl}ac_space=\ *)
29343 # `set' does not quote correctly, so add quotes: double-quote
29344 # substitution turns \\\\ into \\, and sed turns \\ into \.
29347 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29350 # `set' quotes correctly as required by POSIX, so do not add quotes.
29351 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29360 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29362 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29364 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29365 if test -w "$cache_file"; then
29366 test "x$cache_file" != "x/dev/null" &&
29367 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29368 $as_echo "$as_me: updating cache $cache_file" >&6;}
29369 cat confcache >$cache_file
29371 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29372 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29377 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29378 # Let make expand exec_prefix.
29379 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29381 DEFS=-DHAVE_CONFIG_H
29386 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29387 # 1. Remove the extension, and $U if already installed.
29388 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29389 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29390 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29391 # will be set to the directory where LIBOBJS objects are built.
29392 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29393 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29395 LIBOBJS=$ac_libobjs
29397 LTLIBOBJS=$ac_ltlibobjs
29401 : ${CONFIG_STATUS=./config.status}
29403 ac_clean_files_save=$ac_clean_files
29404 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29406 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29408 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29410 # Generated by $as_me.
29411 # Run this file to recreate the current configuration.
29412 # Compiler output produced by configure, useful for debugging
29413 # configure, is in config.log if it exists.
29416 ac_cs_recheck=false
29419 SHELL=\${CONFIG_SHELL-$SHELL}
29422 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29423 ## -------------------- ##
29424 ## M4sh Initialization. ##
29425 ## -------------------- ##
29427 # Be more Bourne compatible
29428 DUALCASE=1; export DUALCASE # for MKS sh
29429 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29432 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29433 # is contrary to our usage. Disable this feature.
29434 alias -g '${1+"$@"}'='"$@"'
29435 setopt NO_GLOB_SUBST
29437 case `(set -o) 2>/dev/null` in #(
29449 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29450 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29451 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29452 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29453 # Prefer a ksh shell builtin over an external printf program on Solaris,
29454 # but without wasting forks for bash or zsh.
29455 if test -z "$BASH_VERSION$ZSH_VERSION" \
29456 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29457 as_echo='print -r --'
29458 as_echo_n='print -rn --'
29459 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29460 as_echo='printf %s\n'
29461 as_echo_n='printf %s'
29463 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29464 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29465 as_echo_n='/usr/ucb/echo -n'
29467 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29468 as_echo_n_body='eval
29472 expr "X$arg" : "X\\(.*\\)$as_nl";
29473 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29475 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29477 export as_echo_n_body
29478 as_echo_n='sh -c $as_echo_n_body as_echo'
29480 export as_echo_body
29481 as_echo='sh -c $as_echo_body as_echo'
29484 # The user is always right.
29485 if test "${PATH_SEPARATOR+set}" != set; then
29487 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29488 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29495 # We need space, tab and new line, in precisely that order. Quoting is
29496 # there to prevent editors from complaining about space-tab.
29497 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29498 # splitting by setting IFS to empty value.)
29501 # Find who we are. Look in the path if we contain no directory separator.
29503 *[\\/]* ) as_myself=$0 ;;
29504 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29505 for as_dir in $PATH
29508 test -z "$as_dir" && as_dir=.
29509 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29515 # We did not find ourselves, most probably we were run as `sh COMMAND'
29516 # in which case we are not to be found in the path.
29517 if test "x$as_myself" = x; then
29520 if test ! -f "$as_myself"; then
29521 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29525 # Unset variables that we do not need and which cause bugs (e.g. in
29526 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29527 # suppresses any "Segmentation fault" message there. '((' could
29528 # trigger a bug in pdksh 5.2.14.
29529 for as_var in BASH_ENV ENV MAIL MAILPATH
29530 do eval test x\${$as_var+set} = xset \
29531 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29544 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29547 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29548 # ----------------------------------------
29549 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29550 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29551 # script with STATUS, using 1 if that was 0.
29554 as_status=$1; test $as_status -eq 0 && as_status=1
29556 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29557 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29559 $as_echo "$as_me: error: $2" >&2
29560 as_fn_exit $as_status
29564 # as_fn_set_status STATUS
29565 # -----------------------
29566 # Set $? to STATUS, without forking.
29567 as_fn_set_status ()
29570 } # as_fn_set_status
29572 # as_fn_exit STATUS
29573 # -----------------
29574 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29578 as_fn_set_status $1
29584 # Portably unset VAR.
29587 { eval $1=; unset $1;}
29589 as_unset=as_fn_unset
29590 # as_fn_append VAR VALUE
29591 # ----------------------
29592 # Append the text in VALUE to the end of the definition contained in VAR. Take
29593 # advantage of any shell optimizations that allow amortized linear growth over
29594 # repeated appends, instead of the typical quadratic growth present in naive
29596 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29597 eval 'as_fn_append ()
29608 # as_fn_arith ARG...
29609 # ------------------
29610 # Perform arithmetic evaluation on the ARGs, and store the result in the
29611 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29612 # must be portable across $(()) and expr.
29613 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29614 eval 'as_fn_arith ()
29621 as_val=`expr "$@" || test $? -eq 1`
29626 if expr a : '\(a\)' >/dev/null 2>&1 &&
29627 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29633 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29634 as_basename=basename
29639 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29645 as_me=`$as_basename -- "$0" ||
29646 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29647 X"$0" : 'X\(//\)$' \| \
29648 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29650 sed '/^.*\/\([^/][^/]*\)\/*$/{
29664 # Avoid depending upon Character Ranges.
29665 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29666 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29667 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29668 as_cr_digits='0123456789'
29669 as_cr_alnum=$as_cr_Letters$as_cr_digits
29671 ECHO_C= ECHO_N= ECHO_T=
29672 case `echo -n x` in #(((((
29674 case `echo 'xy\c'` in
29675 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29677 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29684 rm -f conf$$ conf$$.exe conf$$.file
29685 if test -d conf$$.dir; then
29686 rm -f conf$$.dir/conf$$.file
29689 mkdir conf$$.dir 2>/dev/null
29691 if (echo >conf$$.file) 2>/dev/null; then
29692 if ln -s conf$$.file conf$$ 2>/dev/null; then
29694 # ... but there are two gotchas:
29695 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29696 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29697 # In both cases, we have to default to `cp -p'.
29698 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29700 elif ln conf$$.file conf$$ 2>/dev/null; then
29708 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29709 rmdir conf$$.dir 2>/dev/null
29714 # Create "$as_dir" as a directory, including parents if necessary.
29719 -*) as_dir=./$as_dir;;
29721 test -d "$as_dir" || eval $as_mkdir_p || {
29725 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29726 *) as_qdir=$as_dir;;
29728 as_dirs="'$as_qdir' $as_dirs"
29729 as_dir=`$as_dirname -- "$as_dir" ||
29730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29731 X"$as_dir" : 'X\(//\)[^/]' \| \
29732 X"$as_dir" : 'X\(//\)$' \| \
29733 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29734 $as_echo X"$as_dir" |
29735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29739 /^X\(\/\/\)[^/].*/{
29752 test -d "$as_dir" && break
29754 test -z "$as_dirs" || eval "mkdir $as_dirs"
29755 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
29759 if mkdir -p . 2>/dev/null; then
29760 as_mkdir_p='mkdir -p "$as_dir"'
29762 test -d ./-p && rmdir ./-p
29766 if test -x / >/dev/null 2>&1; then
29767 as_test_x='test -x'
29769 if ls -dL / >/dev/null 2>&1; then
29776 if test -d "$1"; then
29782 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29783 ???[sx]*):;;*)false;;esac;fi
29787 as_executable_p=$as_test_x
29789 # Sed expression to map a string onto a valid CPP name.
29790 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29792 # Sed expression to map a string onto a valid variable name.
29793 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29797 ## ----------------------------------- ##
29798 ## Main body of $CONFIG_STATUS script. ##
29799 ## ----------------------------------- ##
29801 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29804 # Save the log message, to keep $0 and so on meaningful, and to
29805 # report actual input values of CONFIG_FILES etc. instead of their
29806 # values after options handling.
29808 This file was extended by $as_me, which was
29809 generated by GNU Autoconf 2.66. Invocation command line was
29811 CONFIG_FILES = $CONFIG_FILES
29812 CONFIG_HEADERS = $CONFIG_HEADERS
29813 CONFIG_LINKS = $CONFIG_LINKS
29814 CONFIG_COMMANDS = $CONFIG_COMMANDS
29817 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29822 case $ac_config_files in *"
29823 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29826 case $ac_config_headers in *"
29827 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29832 # Files that config.status was made for.
29833 config_files="$ac_config_files"
29834 config_headers="$ac_config_headers"
29835 config_commands="$ac_config_commands"
29839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29841 \`$as_me' instantiates files and other configuration actions
29842 from templates according to the current configuration. Unless the files
29843 and actions are specified as TAGs, all are instantiated by default.
29845 Usage: $0 [OPTION]... [TAG]...
29847 -h, --help print this help, then exit
29848 -V, --version print version number and configuration settings, then exit
29849 --config print configuration, then exit
29850 -q, --quiet, --silent
29851 do not print progress messages
29852 -d, --debug don't remove temporary files
29853 --recheck update $as_me by reconfiguring in the same conditions
29854 --file=FILE[:TEMPLATE]
29855 instantiate the configuration file FILE
29856 --header=FILE[:TEMPLATE]
29857 instantiate the configuration header FILE
29859 Configuration files:
29862 Configuration headers:
29865 Configuration commands:
29868 Report bugs to the package provider."
29871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29872 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29875 configured by $0, generated by GNU Autoconf 2.66,
29876 with options \\"\$ac_cs_config\\"
29878 Copyright (C) 2010 Free Software Foundation, Inc.
29879 This config.status script is free software; the Free Software Foundation
29880 gives unlimited permission to copy, distribute and modify it."
29886 test -n "\$AWK" || AWK=awk
29889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29890 # The default lists apply if the user does not specify any file.
29896 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29897 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29908 # Handling of the options.
29909 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29911 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29912 $as_echo "$ac_cs_version"; exit ;;
29913 --config | --confi | --conf | --con | --co | --c )
29914 $as_echo "$ac_cs_config"; exit ;;
29915 --debug | --debu | --deb | --de | --d | -d )
29917 --file | --fil | --fi | --f )
29920 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29922 as_fn_append CONFIG_FILES " '$ac_optarg'"
29923 ac_need_defaults=false;;
29924 --header | --heade | --head | --hea )
29927 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29929 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29930 ac_need_defaults=false;;
29932 # Conflict between --help and --header
29933 as_fn_error $? "ambiguous option: \`$1'
29934 Try \`$0 --help' for more information.";;
29935 --help | --hel | -h )
29936 $as_echo "$ac_cs_usage"; exit ;;
29937 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29938 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29941 # This is an error.
29942 -*) as_fn_error $? "unrecognized option: \`$1'
29943 Try \`$0 --help' for more information." ;;
29945 *) as_fn_append ac_config_targets " $1"
29946 ac_need_defaults=false ;;
29952 ac_configure_extra_args=
29954 if $ac_cs_silent; then
29956 ac_configure_extra_args="$ac_configure_extra_args --silent"
29960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29961 if \$ac_cs_recheck; then
29962 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29964 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29965 CONFIG_SHELL='$SHELL'
29966 export CONFIG_SHELL
29971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29975 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29976 ## Running $as_me. ##
29982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29988 # The HP-UX ksh and POSIX shell print the target directory to stdout
29989 # if CDPATH is set.
29990 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29992 sed_quote_subst='$sed_quote_subst'
29993 double_quote_subst='$double_quote_subst'
29994 delay_variable_subst='$delay_variable_subst'
29995 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
29996 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
29997 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
29998 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
29999 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30000 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30001 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30002 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30003 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30004 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30005 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30006 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30007 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30008 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30009 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30010 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30011 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30012 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30013 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30014 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30015 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30016 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30017 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30018 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30019 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30020 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30021 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30022 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30023 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30024 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30025 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30026 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30027 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30028 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30029 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30030 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30031 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30032 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30033 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30034 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30035 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30036 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30037 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30038 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30039 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"`'
30040 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"`'
30041 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30042 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30043 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30044 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30045 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30046 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30047 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30048 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30049 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30050 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30051 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30052 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30053 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30054 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30055 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30056 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30057 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30058 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30059 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30060 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30061 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30062 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30063 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30064 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30065 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30066 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30067 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30068 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30069 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30070 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30071 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30072 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30073 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30074 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30075 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30076 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30077 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30078 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30079 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30080 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30081 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30082 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30083 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30084 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30085 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30086 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30087 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30088 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30089 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30090 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30091 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30092 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30093 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30094 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30095 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30096 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30097 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30098 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30099 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30100 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30101 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30102 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30103 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30104 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30105 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30106 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30107 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30108 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30109 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30110 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30111 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30112 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30113 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30114 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30115 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30116 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30117 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30118 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30119 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30120 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30121 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30122 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30123 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30124 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30125 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30126 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30127 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30128 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30129 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30130 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30131 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30132 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30133 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30134 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30135 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30136 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30137 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30138 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30139 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30140 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30141 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30142 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30143 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30144 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30145 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30146 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30147 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30148 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30149 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30150 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30151 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30152 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30153 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30154 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30155 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30156 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30157 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30158 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30159 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30160 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30161 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30162 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30163 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30164 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30165 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30168 LTCFLAGS='$LTCFLAGS'
30169 compiler='$compiler_DEFAULT'
30171 # Quote evaled strings.
30183 deplibs_check_method \
30192 lt_cv_sys_global_symbol_pipe \
30193 lt_cv_sys_global_symbol_to_cdecl \
30194 lt_cv_sys_global_symbol_to_c_name_address \
30195 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30198 lt_prog_compiler_no_builtin_flag \
30199 lt_prog_compiler_wl \
30200 lt_prog_compiler_pic \
30201 lt_prog_compiler_static \
30202 lt_cv_prog_compiler_c_o \
30210 export_dynamic_flag_spec \
30211 whole_archive_flag_spec \
30212 compiler_needs_object \
30214 allow_undefined_flag \
30215 no_undefined_flag \
30216 hardcode_libdir_flag_spec \
30217 hardcode_libdir_flag_spec_ld \
30218 hardcode_libdir_separator \
30223 variables_saved_for_relink \
30225 library_names_spec \
30230 compiler_lib_search_dirs \
30235 compiler_lib_search_path \
30238 lt_prog_compiler_no_builtin_flag_CXX \
30239 lt_prog_compiler_wl_CXX \
30240 lt_prog_compiler_pic_CXX \
30241 lt_prog_compiler_static_CXX \
30242 lt_cv_prog_compiler_c_o_CXX \
30243 export_dynamic_flag_spec_CXX \
30244 whole_archive_flag_spec_CXX \
30245 compiler_needs_object_CXX \
30247 allow_undefined_flag_CXX \
30248 no_undefined_flag_CXX \
30249 hardcode_libdir_flag_spec_CXX \
30250 hardcode_libdir_flag_spec_ld_CXX \
30251 hardcode_libdir_separator_CXX \
30252 fix_srcfile_path_CXX \
30253 exclude_expsyms_CXX \
30254 include_expsyms_CXX \
30255 file_list_spec_CXX \
30256 compiler_lib_search_dirs_CXX \
30257 predep_objects_CXX \
30258 postdep_objects_CXX \
30261 compiler_lib_search_path_CXX; do
30262 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30263 *[\\\\\\\`\\"\\\$]*)
30264 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30267 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30272 # Double-quote double-evaled strings.
30273 for var in reload_cmds \
30274 old_postinstall_cmds \
30275 old_postuninstall_cmds \
30277 extract_expsyms_cmds \
30278 old_archive_from_new_cmds \
30279 old_archive_from_expsyms_cmds \
30281 archive_expsym_cmds \
30283 module_expsym_cmds \
30284 export_symbols_cmds \
30287 postuninstall_cmds \
30289 sys_lib_search_path_spec \
30290 sys_lib_dlsearch_path_spec \
30291 old_archive_cmds_CXX \
30292 old_archive_from_new_cmds_CXX \
30293 old_archive_from_expsyms_cmds_CXX \
30295 archive_expsym_cmds_CXX \
30297 module_expsym_cmds_CXX \
30298 export_symbols_cmds_CXX \
30299 prelink_cmds_CXX; do
30300 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30301 *[\\\\\\\`\\"\\\$]*)
30302 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30305 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30310 # Fix-up fallback echo if it was mangled by the above quoting rules.
30312 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30316 ac_aux_dir='$ac_aux_dir'
30317 xsi_shell='$xsi_shell'
30318 lt_shell_append='$lt_shell_append'
30320 # See if we are running on zsh, and set the options which allow our
30321 # commands through without removal of \ escapes INIT.
30322 if test -n "\${ZSH_VERSION+set}" ; then
30323 setopt NO_GLOB_SUBST
30329 TIMESTAMP='$TIMESTAMP'
30337 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30338 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30340 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30341 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30342 LINGUAS="${LINGUAS-%UNSET%}"
30347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30349 # Handling of arguments.
30350 for ac_config_target in $ac_config_targets
30352 case $ac_config_target in
30353 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30354 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30355 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30356 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30357 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30358 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30359 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30360 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30361 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30362 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30363 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30364 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30365 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30366 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30367 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30368 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30369 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30370 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30371 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30372 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30373 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30374 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30375 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30376 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30377 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30378 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30379 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30380 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30381 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30382 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30383 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30384 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30385 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30386 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30387 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30388 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30389 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30390 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30391 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30392 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30393 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30394 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30395 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30396 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30397 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30398 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30399 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30400 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30401 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30402 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30403 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30404 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30405 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30406 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30407 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30408 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30409 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30410 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30411 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30412 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30413 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30414 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30415 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30416 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30417 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30418 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30419 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30420 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30421 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30422 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30423 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30424 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30425 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30426 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30427 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30428 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30429 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30430 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30431 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30432 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30433 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30434 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30435 "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
30436 "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
30437 "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
30438 "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
30439 "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
30440 "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
30441 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30442 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30443 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30444 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30445 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30446 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30447 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30448 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30449 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30450 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30451 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30452 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30453 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30454 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30455 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30456 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30457 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30458 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30459 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30460 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30461 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30462 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
30463 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
30464 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
30465 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30466 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30467 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30469 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30474 # If the user did not use the arguments to specify the items to instantiate,
30475 # then the envvar interface is used. Set only those that are not.
30476 # We use the long form for the default assignment because of an extremely
30477 # bizarre bug on SunOS 4.1.3.
30478 if $ac_need_defaults; then
30479 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30480 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30481 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30484 # Have a temporary directory for convenience. Make it in the build tree
30485 # simply because there is no reason against having it here, and in addition,
30486 # creating and moving files from /tmp can sometimes cause problems.
30487 # Hook for its removal unless debugging.
30488 # Note that there is a small window in which the directory will not be cleaned:
30489 # after its creation but before its name has been assigned to `$tmp'.
30493 trap 'exit_status=$?
30494 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30496 trap 'as_fn_exit 1' 1 2 13 15
30498 # Create a (secure) tmp directory for tmp files.
30501 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30502 test -n "$tmp" && test -d "$tmp"
30505 tmp=./conf$$-$RANDOM
30506 (umask 077 && mkdir "$tmp")
30507 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
30509 # Set up the scripts for CONFIG_FILES section.
30510 # No need to generate them if there are no CONFIG_FILES.
30511 # This happens for instance with `./config.status config.h'.
30512 if test -n "$CONFIG_FILES"; then
30514 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30515 ac_cs_awk_getline=:
30516 ac_cs_awk_pipe_init=
30517 ac_cs_awk_read_file='
30518 while ((getline aline < (F[key])) > 0)
30521 ac_cs_awk_pipe_fini=
30523 ac_cs_awk_getline=false
30524 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30525 ac_cs_awk_read_file='
30527 print "cat " F[key] " &&"
30528 '$ac_cs_awk_pipe_init
30529 # The final `:' finishes the AND list.
30530 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30532 ac_cr=`echo X | tr X '\015'`
30533 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30534 # But we know of no other shell where ac_cr would be empty at this
30535 # point, so we can use a bashism as a fallback.
30536 if test "x$ac_cr" = x; then
30537 eval ac_cr=\$\'\\r\'
30539 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30540 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30543 ac_cs_awk_cr=$ac_cr
30546 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30549 # Create commands to substitute file output variables.
30551 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30552 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30553 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30556 } >conf$$files.sh &&
30557 . ./conf$$files.sh ||
30558 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30559 rm -f conf$$files.sh
30562 echo "cat >conf$$subs.awk <<_ACEOF" &&
30563 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30565 } >conf$$subs.sh ||
30566 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30567 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30569 for ac_last_try in false false false false false :; do
30570 . ./conf$$subs.sh ||
30571 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30573 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30574 if test $ac_delim_n = $ac_delim_num; then
30576 elif $ac_last_try; then
30577 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30579 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30582 rm -f conf$$subs.sh
30584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30585 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30589 s/^/S["/; s/!.*/"]=/
30599 s/\(.\{148\}\)..*/\1/
30601 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30606 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30613 s/\(.\{148\}\)..*/\1/
30615 s/["\\]/\\&/g; s/^/"/; s/$/"/
30619 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30624 ' <conf$$subs.awk | sed '
30629 ' >>$CONFIG_STATUS || ac_write_fail=1
30630 rm -f conf$$subs.awk
30631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30633 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30634 for (key in S) S_is_set[key] = 1
30636 \$ac_cs_awk_pipe_init
30640 nfields = split(line, field, "@")
30642 len = length(field[1])
30643 for (i = 2; i < nfields; i++) {
30645 keylen = length(key)
30646 if (S_is_set[key]) {
30648 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30649 len += length(value) + length(field[++i])
30654 if (nfields == 3 && !substed) {
30656 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30657 \$ac_cs_awk_read_file
30663 \$ac_cs_awk_pipe_fini
30666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30667 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30668 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30671 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30672 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
30675 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
30676 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
30677 # trailing colons and then remove the whole line if VPATH becomes empty
30678 # (actually we leave an empty line to preserve line numbers).
30679 if test "x$srcdir" = x.; then
30680 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
30698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30699 fi # test -n "$CONFIG_FILES"
30701 # Set up the scripts for CONFIG_HEADERS section.
30702 # No need to generate them if there are no CONFIG_HEADERS.
30703 # This happens for instance with `./config.status Makefile'.
30704 if test -n "$CONFIG_HEADERS"; then
30705 cat >"$tmp/defines.awk" <<\_ACAWK ||
30709 # Transform confdefs.h into an awk script `defines.awk', embedded as
30710 # here-document in config.status, that substitutes the proper values into
30711 # config.h.in to produce config.h.
30713 # Create a delimiter string that does not exist in confdefs.h, to ease
30714 # handling of long lines.
30716 for ac_last_try in false false :; do
30717 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30718 if test -z "$ac_t"; then
30720 elif $ac_last_try; then
30721 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
30723 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30727 # For the awk script, D is an array of macro values keyed by name,
30728 # likewise P contains macro parameters if any. Preserve backslash
30729 # newline sequences.
30731 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30733 s/.\{148\}/&'"$ac_delim"'/g
30736 s/^[ ]*#[ ]*define[ ][ ]*/ /
30743 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30745 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30749 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30750 D["\1"]=" \3\\\\\\n"\\/p
30752 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30757 s/.\{148\}/&'"$ac_delim"'/g
30762 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30765 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30767 ' <confdefs.h | sed '
30768 s/'"$ac_delim"'/"\\\
30769 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30772 for (key in D) D_is_set[key] = 1
30775 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30777 split(line, arg, " ")
30778 if (arg[1] == "#") {
30782 defundef = substr(arg[1], 2)
30785 split(mac1, mac2, "(") #)
30787 prefix = substr(line, 1, index(line, defundef) - 1)
30788 if (D_is_set[macro]) {
30789 # Preserve the white space surrounding the "#".
30790 print prefix "define", macro P[macro] D[macro]
30793 # Replace #undef with comments. This is necessary, for example,
30794 # in the case of _POSIX_SOURCE, which is predefined and required
30795 # on some systems where configure will not decide to define it.
30796 if (defundef == "undef") {
30797 print "/*", prefix defundef, macro, "*/"
30805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30806 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
30807 fi # test -n "$CONFIG_HEADERS"
30810 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30815 :[FHLC]) ac_mode=$ac_tag; continue;;
30817 case $ac_mode$ac_tag in
30819 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
30820 :[FH]-) ac_tag=-:-;;
30821 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30838 -) ac_f="$tmp/stdin";;
30839 *) # Look for the file first in the build tree, then in the source tree
30840 # (if the path is not absolute). The absolute path cannot be DOS-style,
30841 # because $ac_f cannot contain `:'.
30845 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30847 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30849 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30850 as_fn_append ac_file_inputs " '$ac_f'"
30853 # Let's still pretend it is `configure' which instantiates (i.e., don't
30854 # use $as_me), people would be surprised to read:
30855 # /* config.h. Generated by config.status. */
30856 configure_input='Generated from '`
30857 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30859 if test x"$ac_file" != x-; then
30860 configure_input="$ac_file. $configure_input"
30861 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30862 $as_echo "$as_me: creating $ac_file" >&6;}
30864 # Neutralize special characters interpreted by sed in replacement strings.
30865 case $configure_input in #(
30866 *\&* | *\|* | *\\* )
30867 ac_sed_conf_input=`$as_echo "$configure_input" |
30868 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30869 *) ac_sed_conf_input=$configure_input;;
30873 *:-:* | *:-) cat >"$tmp/stdin" \
30874 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
30879 ac_dir=`$as_dirname -- "$ac_file" ||
30880 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30881 X"$ac_file" : 'X\(//\)[^/]' \| \
30882 X"$ac_file" : 'X\(//\)$' \| \
30883 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30884 $as_echo X"$ac_file" |
30885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30889 /^X\(\/\/\)[^/].*/{
30902 as_dir="$ac_dir"; as_fn_mkdir_p
30906 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30908 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30909 # A ".." for each directory in $ac_dir_suffix.
30910 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30911 case $ac_top_builddir_sub in
30912 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30913 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30916 ac_abs_top_builddir=$ac_pwd
30917 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30918 # for backward compatibility:
30919 ac_top_builddir=$ac_top_build_prefix
30922 .) # We are building in place.
30924 ac_top_srcdir=$ac_top_builddir_sub
30925 ac_abs_top_srcdir=$ac_pwd ;;
30926 [\\/]* | ?:[\\/]* ) # Absolute name.
30927 ac_srcdir=$srcdir$ac_dir_suffix;
30928 ac_top_srcdir=$srcdir
30929 ac_abs_top_srcdir=$srcdir ;;
30930 *) # Relative name.
30931 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30932 ac_top_srcdir=$ac_top_build_prefix$srcdir
30933 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30935 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30945 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30946 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30951 # If the template does not know about datarootdir, expand it.
30952 # FIXME: This hack should be removed a few years after 2.60.
30953 ac_datarootdir_hack=; ac_datarootdir_seen=
30964 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30965 *datarootdir*) ac_datarootdir_seen=yes;;
30966 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30968 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30971 ac_datarootdir_hack='
30972 s&@datadir@&$datadir&g
30973 s&@docdir@&$docdir&g
30974 s&@infodir@&$infodir&g
30975 s&@localedir@&$localedir&g
30976 s&@mandir@&$mandir&g
30977 s&\\\${datarootdir}&$datarootdir&g' ;;
30981 # Neutralize VPATH when `$srcdir' = `.'.
30982 # Shell code in configure.ac might set extrasub.
30983 # FIXME: do we really want to maintain this feature?
30984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30985 ac_sed_extra="$ac_vpsub
30988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30990 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30991 s|@configure_input@|$ac_sed_conf_input|;t t
30992 s&@top_builddir@&$ac_top_builddir_sub&;t t
30993 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30994 s&@srcdir@&$ac_srcdir&;t t
30995 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30996 s&@top_srcdir@&$ac_top_srcdir&;t t
30997 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30998 s&@builddir@&$ac_builddir&;t t
30999 s&@abs_builddir@&$ac_abs_builddir&;t t
31000 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31001 s&@INSTALL@&$ac_INSTALL&;t t
31002 $ac_datarootdir_hack
31004 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31005 if $ac_cs_awk_getline; then
31006 $AWK -f "$tmp/subs.awk"
31008 $AWK -f "$tmp/subs.awk" | $SHELL
31010 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31012 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31013 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31014 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31016 which seems to be undefined. Please make sure it is defined" >&5
31017 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31018 which seems to be undefined. Please make sure it is defined" >&2;}
31022 -) cat "$tmp/out" && rm -f "$tmp/out";;
31023 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31025 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31031 if test x"$ac_file" != x-; then
31033 $as_echo "/* $configure_input */" \
31034 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31035 } >"$tmp/config.h" \
31036 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31037 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31038 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31039 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31042 mv "$tmp/config.h" "$ac_file" \
31043 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31046 $as_echo "/* $configure_input */" \
31047 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31048 || as_fn_error $? "could not create -" "$LINENO" 5
31052 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31053 $as_echo "$as_me: executing $ac_file commands" >&6;}
31058 case $ac_file$ac_mode in
31061 # See if we are running on zsh, and set the options which allow our
31062 # commands through without removal of \ escapes.
31063 if test -n "${ZSH_VERSION+set}" ; then
31064 setopt NO_GLOB_SUBST
31067 cfgfile="${ofile}T"
31068 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31071 cat <<_LT_EOF >> "$cfgfile"
31074 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31075 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31076 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31077 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31079 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31080 # 2006, 2007, 2008 Free Software Foundation, Inc.
31081 # Written by Gordon Matzigkeit, 1996
31083 # This file is part of GNU Libtool.
31085 # GNU Libtool is free software; you can redistribute it and/or
31086 # modify it under the terms of the GNU General Public License as
31087 # published by the Free Software Foundation; either version 2 of
31088 # the License, or (at your option) any later version.
31090 # As a special exception to the GNU General Public License,
31091 # if you distribute this file as part of a program or library that
31092 # is built using GNU Libtool, you may include this file under the
31093 # same distribution terms that you use for the rest of that program.
31095 # GNU Libtool is distributed in the hope that it will be useful,
31096 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31097 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31098 # GNU General Public License for more details.
31100 # You should have received a copy of the GNU General Public License
31101 # along with GNU Libtool; see the file COPYING. If not, a copy
31102 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31103 # obtained by writing to the Free Software Foundation, Inc.,
31104 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31107 # The names of the tagged configurations supported by this script.
31108 available_tags="CXX "
31110 # ### BEGIN LIBTOOL CONFIG
31112 # Which release of libtool.m4 was used?
31113 macro_version=$macro_version
31114 macro_revision=$macro_revision
31116 # Whether or not to build shared libraries.
31117 build_libtool_libs=$enable_shared
31119 # Whether or not to build static libraries.
31120 build_old_libs=$enable_static
31122 # What type of objects to build.
31125 # Whether or not to optimize for fast installation.
31126 fast_install=$enable_fast_install
31129 host_alias=$host_alias
31133 # The build system.
31134 build_alias=$build_alias
31138 # A sed program that does not truncate output.
31141 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31142 Xsed="\$SED -e 1s/^X//"
31144 # A grep program that handles long lines.
31150 # A literal string matcher.
31153 # A BSD- or MS-compatible name lister.
31156 # Whether we need soft or hard links.
31159 # What is the maximum length of a command?
31160 max_cmd_len=$max_cmd_len
31162 # Object file suffix (normally "o").
31165 # Executable file suffix (normally "").
31168 # whether the shell understands "unset".
31171 # turn spaces into newlines.
31174 # turn newlines into spaces.
31177 # How to create reloadable object files.
31178 reload_flag=$lt_reload_flag
31179 reload_cmds=$lt_reload_cmds
31181 # An object symbol dumper.
31182 OBJDUMP=$lt_OBJDUMP
31184 # Method to check whether dependent libraries are shared objects.
31185 deplibs_check_method=$lt_deplibs_check_method
31187 # Command to use when deplibs_check_method == "file_magic".
31188 file_magic_cmd=$lt_file_magic_cmd
31192 AR_FLAGS=$lt_AR_FLAGS
31194 # A symbol stripping program.
31197 # Commands used to install an old-style archive.
31199 old_postinstall_cmds=$lt_old_postinstall_cmds
31200 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31205 # LTCC compiler flags.
31206 LTCFLAGS=$lt_CFLAGS
31208 # Take the output of nm and produce a listing of raw symbols and C names.
31209 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31211 # Transform the output of nm in a proper C declaration.
31212 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31214 # Transform the output of nm in a C name address pair.
31215 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31217 # Transform the output of nm in a C name address pair when lib prefix is needed.
31218 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31220 # The name of the directory that contains temporary libtool files.
31223 # Shell to use when invoking shell scripts.
31226 # An echo program that does not interpret backslashes.
31229 # Used to examine libraries when file_magic_cmd begins with "file".
31230 MAGIC_CMD=$MAGIC_CMD
31232 # Must we lock files when doing compilation?
31233 need_locks=$lt_need_locks
31235 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31236 DSYMUTIL=$lt_DSYMUTIL
31238 # Tool to change global to local symbols on Mac OS X.
31241 # Tool to manipulate fat objects and archives on Mac OS X.
31244 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31247 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31248 OTOOL64=$lt_OTOOL64
31250 # Old archive suffix (normally "a").
31253 # Shared library suffix (normally ".so").
31254 shrext_cmds=$lt_shrext_cmds
31256 # The commands to extract the exported symbol list from a shared archive.
31257 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31259 # Variables whose values should be saved in libtool wrapper scripts and
31260 # restored at link time.
31261 variables_saved_for_relink=$lt_variables_saved_for_relink
31263 # Do we need the "lib" prefix for modules?
31264 need_lib_prefix=$need_lib_prefix
31266 # Do we need a version for libraries?
31267 need_version=$need_version
31269 # Library versioning type.
31270 version_type=$version_type
31272 # Shared library runtime path variable.
31273 runpath_var=$runpath_var
31275 # Shared library path variable.
31276 shlibpath_var=$shlibpath_var
31278 # Is shlibpath searched before the hard-coded library search path?
31279 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31281 # Format of library name prefix.
31282 libname_spec=$lt_libname_spec
31284 # List of archive names. First name is the real one, the rest are links.
31285 # The last name is the one that the linker finds with -lNAME
31286 library_names_spec=$lt_library_names_spec
31288 # The coded name of the library, if different from the real name.
31289 soname_spec=$lt_soname_spec
31291 # Command to use after installation of a shared archive.
31292 postinstall_cmds=$lt_postinstall_cmds
31294 # Command to use after uninstallation of a shared archive.
31295 postuninstall_cmds=$lt_postuninstall_cmds
31297 # Commands used to finish a libtool library installation in a directory.
31298 finish_cmds=$lt_finish_cmds
31300 # As "finish_cmds", except a single script fragment to be evaled but
31302 finish_eval=$lt_finish_eval
31304 # Whether we should hardcode library paths into libraries.
31305 hardcode_into_libs=$hardcode_into_libs
31307 # Compile-time system search path for libraries.
31308 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31310 # Run-time system search path for libraries.
31311 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31313 # Whether dlopen is supported.
31314 dlopen_support=$enable_dlopen
31316 # Whether dlopen of programs is supported.
31317 dlopen_self=$enable_dlopen_self
31319 # Whether dlopen of statically linked programs is supported.
31320 dlopen_self_static=$enable_dlopen_self_static
31322 # Commands to strip libraries.
31323 old_striplib=$lt_old_striplib
31324 striplib=$lt_striplib
31327 # The linker used to build libraries.
31330 # Commands used to build an old-style archive.
31331 old_archive_cmds=$lt_old_archive_cmds
31333 # A language specific compiler.
31336 # Is the compiler the GNU compiler?
31339 # Compiler flag to turn off builtin functions.
31340 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31342 # How to pass a linker flag through the compiler.
31343 wl=$lt_lt_prog_compiler_wl
31345 # Additional compiler flags for building library objects.
31346 pic_flag=$lt_lt_prog_compiler_pic
31348 # Compiler flag to prevent dynamic linking.
31349 link_static_flag=$lt_lt_prog_compiler_static
31351 # Does compiler simultaneously support -c and -o options?
31352 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31354 # Whether or not to add -lc for building shared libraries.
31355 build_libtool_need_lc=$archive_cmds_need_lc
31357 # Whether or not to disallow shared libs when runtime libs are static.
31358 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31360 # Compiler flag to allow reflexive dlopens.
31361 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31363 # Compiler flag to generate shared objects directly from archives.
31364 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31366 # Whether the compiler copes with passing no objects directly.
31367 compiler_needs_object=$lt_compiler_needs_object
31369 # Create an old-style archive from a shared archive.
31370 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31372 # Create a temporary old-style archive to link instead of a shared archive.
31373 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31375 # Commands used to build a shared archive.
31376 archive_cmds=$lt_archive_cmds
31377 archive_expsym_cmds=$lt_archive_expsym_cmds
31379 # Commands used to build a loadable module if different from building
31380 # a shared archive.
31381 module_cmds=$lt_module_cmds
31382 module_expsym_cmds=$lt_module_expsym_cmds
31384 # Whether we are building with GNU ld or not.
31385 with_gnu_ld=$lt_with_gnu_ld
31387 # Flag that allows shared libraries with undefined symbols to be built.
31388 allow_undefined_flag=$lt_allow_undefined_flag
31390 # Flag that enforces no undefined symbols.
31391 no_undefined_flag=$lt_no_undefined_flag
31393 # Flag to hardcode \$libdir into a binary during linking.
31394 # This must work even if \$libdir does not exist
31395 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31397 # If ld is used when linking, flag to hardcode \$libdir into a binary
31398 # during linking. This must work even if \$libdir does not exist.
31399 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31401 # Whether we need a single "-rpath" flag with a separated argument.
31402 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31404 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31405 # DIR into the resulting binary.
31406 hardcode_direct=$hardcode_direct
31408 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31409 # DIR into the resulting binary and the resulting library dependency is
31410 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31411 # library is relocated.
31412 hardcode_direct_absolute=$hardcode_direct_absolute
31414 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31415 # into the resulting binary.
31416 hardcode_minus_L=$hardcode_minus_L
31418 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31419 # into the resulting binary.
31420 hardcode_shlibpath_var=$hardcode_shlibpath_var
31422 # Set to "yes" if building a shared library automatically hardcodes DIR
31423 # into the library and all subsequent libraries and executables linked
31425 hardcode_automatic=$hardcode_automatic
31427 # Set to yes if linker adds runtime paths of dependent libraries
31428 # to runtime path list.
31429 inherit_rpath=$inherit_rpath
31431 # Whether libtool must link a program against all its dependency libraries.
31432 link_all_deplibs=$link_all_deplibs
31434 # Fix the shell variable \$srcfile for the compiler.
31435 fix_srcfile_path=$lt_fix_srcfile_path
31437 # Set to "yes" if exported symbols are required.
31438 always_export_symbols=$always_export_symbols
31440 # The commands to list exported symbols.
31441 export_symbols_cmds=$lt_export_symbols_cmds
31443 # Symbols that should not be listed in the preloaded symbols.
31444 exclude_expsyms=$lt_exclude_expsyms
31446 # Symbols that must always be exported.
31447 include_expsyms=$lt_include_expsyms
31449 # Commands necessary for linking programs (against libraries) with templates.
31450 prelink_cmds=$lt_prelink_cmds
31452 # Specify filename containing input files.
31453 file_list_spec=$lt_file_list_spec
31455 # How to hardcode a shared library path into an executable.
31456 hardcode_action=$hardcode_action
31458 # The directories searched by this compiler when creating a shared library.
31459 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31461 # Dependencies to place before and after the objects being linked to
31462 # create a shared library.
31463 predep_objects=$lt_predep_objects
31464 postdep_objects=$lt_postdep_objects
31465 predeps=$lt_predeps
31466 postdeps=$lt_postdeps
31468 # The library search path used internally by the compiler when linking
31469 # a shared library.
31470 compiler_lib_search_path=$lt_compiler_lib_search_path
31472 # ### END LIBTOOL CONFIG
31478 cat <<\_LT_EOF >> "$cfgfile"
31479 # AIX sometimes has problems with the GCC collect2 program. For some
31480 # reason, if we set the COLLECT_NAMES environment variable, the problems
31481 # vanish in a puff of smoke.
31482 if test "X${COLLECT_NAMES+set}" != Xset; then
31484 export COLLECT_NAMES
31491 ltmain="$ac_aux_dir/ltmain.sh"
31494 # We use sed instead of cat because bash on DJGPP gets confused if
31495 # if finds mixed CR/LF and LF-only lines. Since sed operates in
31496 # text mode, it properly converts lines to CR/LF. This bash problem
31497 # is reportedly fixed, but why not run on old versions too?
31498 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31499 || (rm -f "$cfgfile"; exit 1)
31503 cat << \_LT_EOF >> "$cfgfile"
31505 # func_dirname file append nondir_replacement
31506 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31507 # otherwise set result to NONDIR_REPLACEMENT.
31511 */*) func_dirname_result="${1%/*}${2}" ;;
31512 * ) func_dirname_result="${3}" ;;
31516 # func_basename file
31519 func_basename_result="${1##*/}"
31522 # func_dirname_and_basename file append nondir_replacement
31523 # perform func_basename and func_dirname in a single function
31525 # dirname: Compute the dirname of FILE. If nonempty,
31526 # add APPEND to the result, otherwise set result
31527 # to NONDIR_REPLACEMENT.
31528 # value returned in "$func_dirname_result"
31529 # basename: Compute filename of FILE.
31530 # value retuned in "$func_basename_result"
31531 # Implementation must be kept synchronized with func_dirname
31532 # and func_basename. For efficiency, we do not delegate to
31533 # those functions but instead duplicate the functionality here.
31534 func_dirname_and_basename ()
31537 */*) func_dirname_result="${1%/*}${2}" ;;
31538 * ) func_dirname_result="${3}" ;;
31540 func_basename_result="${1##*/}"
31543 # func_stripname prefix suffix name
31544 # strip PREFIX and SUFFIX off of NAME.
31545 # PREFIX and SUFFIX must not contain globbing or regex special
31546 # characters, hashes, percent signs, but SUFFIX may contain a leading
31547 # dot (in which case that matches only a dot).
31550 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31551 # positional parameters, so assign one to ordinary parameter first.
31552 func_stripname_result=${3}
31553 func_stripname_result=${func_stripname_result#"${1}"}
31554 func_stripname_result=${func_stripname_result%"${2}"}
31560 func_opt_split_opt=${1%%=*}
31561 func_opt_split_arg=${1#*=}
31568 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31569 *) func_lo2o_result=${1} ;;
31573 # func_xform libobj-or-source
31576 func_xform_result=${1%.*}.lo
31579 # func_arith arithmetic-term...
31582 func_arith_result=$(( $* ))
31586 # STRING may not start with a hyphen.
31589 func_len_result=${#1}
31594 *) # Bourne compatible functions.
31595 cat << \_LT_EOF >> "$cfgfile"
31597 # func_dirname file append nondir_replacement
31598 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31599 # otherwise set result to NONDIR_REPLACEMENT.
31602 # Extract subdirectory from the argument.
31603 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31604 if test "X$func_dirname_result" = "X${1}"; then
31605 func_dirname_result="${3}"
31607 func_dirname_result="$func_dirname_result${2}"
31611 # func_basename file
31614 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31618 # func_stripname prefix suffix name
31619 # strip PREFIX and SUFFIX off of NAME.
31620 # PREFIX and SUFFIX must not contain globbing or regex special
31621 # characters, hashes, percent signs, but SUFFIX may contain a leading
31622 # dot (in which case that matches only a dot).
31623 # func_strip_suffix prefix name
31627 .*) func_stripname_result=`$ECHO "X${3}" \
31628 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31629 *) func_stripname_result=`$ECHO "X${3}" \
31630 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31635 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31636 my_sed_long_arg='1s/^-[^=]*=//'
31641 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31642 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31648 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31651 # func_xform libobj-or-source
31654 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31657 # func_arith arithmetic-term...
31660 func_arith_result=`expr "$@"`
31664 # STRING may not start with a hyphen.
31667 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31673 case $lt_shell_append in
31675 cat << \_LT_EOF >> "$cfgfile"
31677 # func_append var value
31678 # Append VALUE to the end of shell variable VAR.
31686 cat << \_LT_EOF >> "$cfgfile"
31688 # func_append var value
31689 # Append VALUE to the end of shell variable VAR.
31700 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31701 || (rm -f "$cfgfile"; exit 1)
31703 mv -f "$cfgfile" "$ofile" ||
31704 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31708 cat <<_LT_EOF >> "$ofile"
31710 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31712 # The linker used to build libraries.
31715 # Commands used to build an old-style archive.
31716 old_archive_cmds=$lt_old_archive_cmds_CXX
31718 # A language specific compiler.
31719 CC=$lt_compiler_CXX
31721 # Is the compiler the GNU compiler?
31724 # Compiler flag to turn off builtin functions.
31725 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31727 # How to pass a linker flag through the compiler.
31728 wl=$lt_lt_prog_compiler_wl_CXX
31730 # Additional compiler flags for building library objects.
31731 pic_flag=$lt_lt_prog_compiler_pic_CXX
31733 # Compiler flag to prevent dynamic linking.
31734 link_static_flag=$lt_lt_prog_compiler_static_CXX
31736 # Does compiler simultaneously support -c and -o options?
31737 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31739 # Whether or not to add -lc for building shared libraries.
31740 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31742 # Whether or not to disallow shared libs when runtime libs are static.
31743 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31745 # Compiler flag to allow reflexive dlopens.
31746 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31748 # Compiler flag to generate shared objects directly from archives.
31749 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31751 # Whether the compiler copes with passing no objects directly.
31752 compiler_needs_object=$lt_compiler_needs_object_CXX
31754 # Create an old-style archive from a shared archive.
31755 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31757 # Create a temporary old-style archive to link instead of a shared archive.
31758 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31760 # Commands used to build a shared archive.
31761 archive_cmds=$lt_archive_cmds_CXX
31762 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31764 # Commands used to build a loadable module if different from building
31765 # a shared archive.
31766 module_cmds=$lt_module_cmds_CXX
31767 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31769 # Whether we are building with GNU ld or not.
31770 with_gnu_ld=$lt_with_gnu_ld_CXX
31772 # Flag that allows shared libraries with undefined symbols to be built.
31773 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31775 # Flag that enforces no undefined symbols.
31776 no_undefined_flag=$lt_no_undefined_flag_CXX
31778 # Flag to hardcode \$libdir into a binary during linking.
31779 # This must work even if \$libdir does not exist
31780 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31782 # If ld is used when linking, flag to hardcode \$libdir into a binary
31783 # during linking. This must work even if \$libdir does not exist.
31784 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31786 # Whether we need a single "-rpath" flag with a separated argument.
31787 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31789 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31790 # DIR into the resulting binary.
31791 hardcode_direct=$hardcode_direct_CXX
31793 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31794 # DIR into the resulting binary and the resulting library dependency is
31795 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31796 # library is relocated.
31797 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31799 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31800 # into the resulting binary.
31801 hardcode_minus_L=$hardcode_minus_L_CXX
31803 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31804 # into the resulting binary.
31805 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31807 # Set to "yes" if building a shared library automatically hardcodes DIR
31808 # into the library and all subsequent libraries and executables linked
31810 hardcode_automatic=$hardcode_automatic_CXX
31812 # Set to yes if linker adds runtime paths of dependent libraries
31813 # to runtime path list.
31814 inherit_rpath=$inherit_rpath_CXX
31816 # Whether libtool must link a program against all its dependency libraries.
31817 link_all_deplibs=$link_all_deplibs_CXX
31819 # Fix the shell variable \$srcfile for the compiler.
31820 fix_srcfile_path=$lt_fix_srcfile_path_CXX
31822 # Set to "yes" if exported symbols are required.
31823 always_export_symbols=$always_export_symbols_CXX
31825 # The commands to list exported symbols.
31826 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31828 # Symbols that should not be listed in the preloaded symbols.
31829 exclude_expsyms=$lt_exclude_expsyms_CXX
31831 # Symbols that must always be exported.
31832 include_expsyms=$lt_include_expsyms_CXX
31834 # Commands necessary for linking programs (against libraries) with templates.
31835 prelink_cmds=$lt_prelink_cmds_CXX
31837 # Specify filename containing input files.
31838 file_list_spec=$lt_file_list_spec_CXX
31840 # How to hardcode a shared library path into an executable.
31841 hardcode_action=$hardcode_action_CXX
31843 # The directories searched by this compiler when creating a shared library.
31844 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31846 # Dependencies to place before and after the objects being linked to
31847 # create a shared library.
31848 predep_objects=$lt_predep_objects_CXX
31849 postdep_objects=$lt_postdep_objects_CXX
31850 predeps=$lt_predeps_CXX
31851 postdeps=$lt_postdeps_CXX
31853 # The library search path used internally by the compiler when linking
31854 # a shared library.
31855 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31857 # ### END LIBTOOL TAG CONFIG: CXX
31862 for ac_file in $CONFIG_FILES; do
31863 # Support "outfile[:infile[:infile...]]"
31865 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31867 # PO directories have a Makefile.in generated from Makefile.in.in.
31868 case "$ac_file" in */Makefile.in)
31869 # Adjust a relative srcdir.
31870 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31871 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31872 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31873 # In autoconf-2.13 it is called $ac_given_srcdir.
31874 # In autoconf-2.50 it is called $srcdir.
31875 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31876 case "$ac_given_srcdir" in
31877 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31878 /*) top_srcdir="$ac_given_srcdir" ;;
31879 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31881 # Treat a directory as a PO directory if and only if it has a
31882 # POTFILES.in file. This allows packages to have multiple PO
31883 # directories under different names or in different locations.
31884 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31885 rm -f "$ac_dir/POTFILES"
31886 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31887 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31888 POMAKEFILEDEPS="POTFILES.in"
31889 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31890 # on $ac_dir but don't depend on user-specified configuration
31892 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31893 # The LINGUAS file contains the set of available languages.
31894 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31895 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31897 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31898 # Hide the ALL_LINGUAS assigment from automake.
31899 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31900 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31902 # The set of available languages was given in configure.in.
31903 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31906 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31907 # Compute UPDATEPOFILES
31908 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31909 # Compute DUMMYPOFILES
31910 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31912 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31913 case "$ac_given_srcdir" in
31915 *) srcdirpre='$(srcdir)/' ;;
31921 for lang in $ALL_LINGUAS; do
31922 POFILES="$POFILES $srcdirpre$lang.po"
31923 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31924 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31925 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31927 # CATALOGS depends on both $ac_dir and the user's LINGUAS
31928 # environment variable.
31930 if test -n "$ALL_LINGUAS"; then
31931 for presentlang in $ALL_LINGUAS; do
31933 if test "%UNSET%" != "$LINGUAS"; then
31934 desiredlanguages="$LINGUAS"
31936 desiredlanguages="$ALL_LINGUAS"
31938 for desiredlang in $desiredlanguages; do
31939 # Use the presentlang catalog if desiredlang is
31940 # a. equal to presentlang, or
31941 # b. a variant of presentlang (because in this case,
31942 # presentlang can be used as a fallback for messages
31943 # which are not translated in the desiredlang catalog).
31944 case "$desiredlang" in
31945 "$presentlang"*) useit=yes;;
31948 if test $useit = yes; then
31949 INST_LINGUAS="$INST_LINGUAS $presentlang"
31954 if test -n "$INST_LINGUAS"; then
31955 for lang in $INST_LINGUAS; do
31956 CATALOGS="$CATALOGS $lang.gmo"
31959 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31960 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"
31961 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31962 if test -f "$f"; then
31964 *.orig | *.bak | *~) ;;
31965 *) cat "$f" >> "$ac_dir/Makefile" ;;
31982 ac_clean_files=$ac_clean_files_save
31984 test $ac_write_fail = 0 ||
31985 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
31988 # configure is writing to config.log, and then calls config.status.
31989 # config.status does its own redirection, appending to config.log.
31990 # Unfortunately, on DOS this fails, as config.log is still kept open
31991 # by configure, so config.status won't be able to write to it; its
31992 # output is simply discarded. So we exec the FD to /dev/null,
31993 # effectively closing config.log, so it can be properly (re)opened and
31994 # appended to by config.status. When coming back to configure, we
31995 # need to make the FD available again.
31996 if test "$no_create" != yes; then
31998 ac_config_status_args=
31999 test "$silent" = yes &&
32000 ac_config_status_args="$ac_config_status_args --quiet"
32002 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32004 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32005 # would make configure fail if this is the last instruction.
32006 $ac_cs_success || as_fn_exit 1
32008 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32010 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32014 if test "${support_bat}" = "yes" ; then
32015 if test "x$QMAKE" = "xnone"; then
32016 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
32021 echo "Creating bat Makefile"
32026 ${MAKE:-make} clean
32030 if test X"$GCC" = "Xyes" ; then
32031 echo "Doing make of dependencies"
32032 ${MAKE:-make} depend
32036 chmod 755 install_conf_file build-depkgs-qt-console
32040 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32041 chmod 755 dvd-handler dvd-simulator
32042 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32046 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
32047 chmod 755 $c/update_postgresql_tables_10_to_11
32048 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
32049 chmod 755 $c/update_postgresql_tables_11_to_12
32054 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32055 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32057 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32058 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32060 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32061 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32063 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32064 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32066 chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
32067 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
32070 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
32071 chmod 755 $c/sqlite
32074 chmod 755 src/win32/build-depkgs-mingw32
32076 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32077 largefile_support="yes"
32080 if test X"$GCC" = "Xyes" ; then
32081 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32082 if test "x${CCVERSION}" = "x" ; then
32083 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32085 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32086 if test x"${CXXVERSION}" = x ; then
32087 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32091 # clean up any old junk
32095 ${MAKE:-make} clean
32097 if test "x${db_type}" = "xInternal" ; then
32100 echo "You have not specified either --enable-client-only or one of the"
32101 echo " supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
32102 echo " This is not permitted. Please reconfigure."
32104 echo "Aborting the configuration ..."
32111 Configuration on `date`:
32113 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32114 Bacula version: ${BACULA} ${VERSION} (${DATE})
32115 Source code location: ${srcdir}
32116 Install binaries: ${sbindir}
32117 Install libraries: ${libdir}
32118 Install config files: ${sysconfdir}
32119 Scripts directory: ${scriptdir}
32120 Archive directory: ${archivedir}
32121 Working directory: ${working_dir}
32122 PID directory: ${piddir}
32123 Subsys directory: ${subsysdir}
32124 Man directory: ${mandir}
32125 Data directory: ${datarootdir}
32126 Plugin directory: ${plugindir}
32127 C Compiler: ${CC} ${CCVERSION}
32128 C++ Compiler: ${CXX} ${CXXVERSION}
32129 Compiler flags: ${WCFLAGS} ${CFLAGS}
32130 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32132 Statically Linked Tools: ${support_static_tools}
32133 Statically Linked FD: ${support_static_fd}
32134 Statically Linked SD: ${support_static_sd}
32135 Statically Linked DIR: ${support_static_dir}
32136 Statically Linked CONS: ${support_static_cons}
32137 Database type: ${db_type}
32138 Database port: ${db_port}
32139 Database lib: ${DB_LIBS}
32140 Database name: ${db_name}
32141 Database user: ${db_user}
32143 Job Output Email: ${job_email}
32144 Traceback Email: ${dump_email}
32145 SMTP Host Address: ${smtp_host}
32147 Director Port: ${dir_port}
32148 File daemon Port: ${fd_port}
32149 Storage daemon Port: ${sd_port}
32151 Director User: ${dir_user}
32152 Director Group: ${dir_group}
32153 Storage Daemon User: ${sd_user}
32154 Storage DaemonGroup: ${sd_group}
32155 File Daemon User: ${fd_user}
32156 File Daemon Group: ${fd_group}
32158 SQL binaries Directory ${SQL_BINDIR}
32160 Large file support: $largefile_support
32161 Bacula conio support: ${got_conio} ${CONS_LIBS}
32162 readline support: ${got_readline} ${PRTREADLINE_SRC}
32163 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32164 TLS support: ${support_tls}
32165 Encryption support: ${support_crypto}
32166 ZLIB support: ${have_zlib}
32167 enable-smartalloc: ${support_smartalloc}
32168 enable-lockmgr: ${support_lockmgr}
32169 bat support: ${support_bat}
32170 enable-gnome: ${support_gnome} ${gnome_version}
32171 enable-bwx-console: ${support_wx_console} ${wx_version}
32172 enable-tray-monitor: ${support_tray_monitor}
32173 client-only: ${build_client_only}
32174 build-dird: ${build_dird}
32175 build-stored: ${build_stored}
32176 Plugin support: ${have_plugins}
32177 AFS support: ${have_afs}
32178 ACL support: ${have_acl}
32179 XATTR support: ${have_xattr}
32180 Python support: ${support_python} ${PYTHON_LIBS}
32181 Batch insert enabled: ${support_batch_insert}
32185 # create a small shell script useful for support with
32186 # configure options and config.out info
32187 cat > scripts/bacula_config << EOF
32190 $ $0 $ac_configure_args
32192 cat config.out >> scripts/bacula_config
32193 echo __EOC__ >> scripts/bacula_config
32194 chmod 755 scripts/bacula_config
32198 # Display a warning message if postgresql client lib is <= 8.1
32199 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
32200 -a x$support_batch_insert = xyes
32202 echo "WARNING: Your PostgreSQL client library is too old to detect "
32203 echo " if it was compiled with --enable-thread-safety, consider to"
32204 echo " upgrade it in order to avoid problems with Batch insert mode"