2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir=./$as_dir;;
285 test -d "$as_dir" || eval $as_mkdir_p || {
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354 as_val=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status=$?; test $as_status -eq 0 && as_status=1
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 elif ln conf$$.file conf$$ 2>/dev/null; then
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
495 test -d ./-p && rmdir ./-p
499 if test -x / >/dev/null 2>&1; then
502 if ls -dL / >/dev/null 2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541 if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
544 elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
555 if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568 if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
590 # So, first we look for a working echo in the user's PATH.
592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593 for dir in $PATH /usr/ucb; do
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
605 if test "X$ECHO" = Xecho; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X/bin/ksh; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL=/bin/ksh
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634 SHELL="$CONFIG_SHELL"
636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
643 # maybe with a smaller string...
646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659 # Oops. We lost completely, so just stick with echo.
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
678 test -n "$DJDIR" || exec 7<&0 </dev/null
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689 ac_default_prefix=/usr/local
691 ac_config_libobj_dir=.
698 # Identity of this package.
706 ac_unique_file="src/version.h"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
720 # ifdef HAVE_STDLIB_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
744 ac_subst_vars='LTLIBOBJS
834 TRAY_MONITOR_CPPFLAGS
843 INTL_LIBTOOL_SUFFIX_PREFIX
850 BUILD_INCLUDED_LIBINTL
881 HAVE_OPENBSD_OS_FALSE
885 HAVE_FREEBSD_OS_FALSE
897 INCLUDE_UNINSTALL_TARGET
898 INCLUDE_INSTALL_TARGET
901 LIBTOOL_UNINSTALL_TARGET
902 LIBTOOL_INSTALL_TARGET
903 DEFAULT_SHARED_OBJECT_TYPE
1017 program_transform_name
1028 ac_subst_files='MCOMMON'
1030 enable_option_checking
1041 with_libiconv_prefix
1043 with_included_gettext
1083 with_mon_dir_password
1084 with_mon_fd_password
1085 with_mon_sd_password
1109 ac_precious_vars='build_alias
1127 # Initialize some variables set by options.
1129 ac_init_version=false
1130 ac_unrecognized_opts=
1131 ac_unrecognized_sep=
1132 # The variables have the same names as the options, with
1133 # dashes changed to underlines.
1134 cache_file=/dev/null
1141 program_transform_name=s,x,x,
1149 # Installation directory options.
1150 # These are left unexpanded so users can "make install exec_prefix=/foo"
1151 # and all the variables that are supposed to be based on exec_prefix
1152 # by default will actually change.
1153 # Use braces instead of parens because sh, perl, etc. also accept them.
1154 # (The list follows the same order as the GNU Coding Standards.)
1155 bindir='${exec_prefix}/bin'
1156 sbindir='${exec_prefix}/sbin'
1157 libexecdir='${exec_prefix}/libexec'
1158 datarootdir='${prefix}/share'
1159 datadir='${datarootdir}'
1160 sysconfdir='${prefix}/etc'
1161 sharedstatedir='${prefix}/com'
1162 localstatedir='${prefix}/var'
1163 includedir='${prefix}/include'
1164 oldincludedir='/usr/include'
1165 docdir='${datarootdir}/doc/${PACKAGE}'
1166 infodir='${datarootdir}/info'
1171 libdir='${exec_prefix}/lib'
1172 localedir='${datarootdir}/locale'
1173 mandir='${datarootdir}/man'
1179 # If the previous option needs an argument, assign it.
1180 if test -n "$ac_prev"; then
1181 eval $ac_prev=\$ac_option
1187 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1191 # Accept the important Cygnus configure options, so we can diagnose typos.
1193 case $ac_dashdash$ac_option in
1197 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1199 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1200 bindir=$ac_optarg ;;
1202 -build | --build | --buil | --bui | --bu)
1203 ac_prev=build_alias ;;
1204 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1205 build_alias=$ac_optarg ;;
1207 -cache-file | --cache-file | --cache-fil | --cache-fi \
1208 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1209 ac_prev=cache_file ;;
1210 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1211 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1212 cache_file=$ac_optarg ;;
1214 --config-cache | -C)
1215 cache_file=config.cache ;;
1217 -datadir | --datadir | --datadi | --datad)
1219 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1220 datadir=$ac_optarg ;;
1222 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1223 | --dataroo | --dataro | --datar)
1224 ac_prev=datarootdir ;;
1225 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1226 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1227 datarootdir=$ac_optarg ;;
1229 -disable-* | --disable-*)
1230 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233 as_fn_error "invalid feature name: $ac_useropt"
1234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1238 "enable_$ac_useropt"
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1243 eval enable_$ac_useropt=no ;;
1245 -docdir | --docdir | --docdi | --doc | --do)
1247 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1248 docdir=$ac_optarg ;;
1250 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1252 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1253 dvidir=$ac_optarg ;;
1255 -enable-* | --enable-*)
1256 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259 as_fn_error "invalid feature name: $ac_useropt"
1260 ac_useropt_orig=$ac_useropt
1261 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1264 "enable_$ac_useropt"
1266 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1267 ac_unrecognized_sep=', ';;
1269 eval enable_$ac_useropt=\$ac_optarg ;;
1271 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1272 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1273 | --exec | --exe | --ex)
1274 ac_prev=exec_prefix ;;
1275 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1276 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1277 | --exec=* | --exe=* | --ex=*)
1278 exec_prefix=$ac_optarg ;;
1280 -gas | --gas | --ga | --g)
1281 # Obsolete; use --with-gas.
1284 -help | --help | --hel | --he | -h)
1285 ac_init_help=long ;;
1286 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1287 ac_init_help=recursive ;;
1288 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1289 ac_init_help=short ;;
1291 -host | --host | --hos | --ho)
1292 ac_prev=host_alias ;;
1293 -host=* | --host=* | --hos=* | --ho=*)
1294 host_alias=$ac_optarg ;;
1296 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1298 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1300 htmldir=$ac_optarg ;;
1302 -includedir | --includedir | --includedi | --included | --include \
1303 | --includ | --inclu | --incl | --inc)
1304 ac_prev=includedir ;;
1305 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1306 | --includ=* | --inclu=* | --incl=* | --inc=*)
1307 includedir=$ac_optarg ;;
1309 -infodir | --infodir | --infodi | --infod | --info | --inf)
1311 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1312 infodir=$ac_optarg ;;
1314 -libdir | --libdir | --libdi | --libd)
1316 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1317 libdir=$ac_optarg ;;
1319 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1320 | --libexe | --libex | --libe)
1321 ac_prev=libexecdir ;;
1322 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1323 | --libexe=* | --libex=* | --libe=*)
1324 libexecdir=$ac_optarg ;;
1326 -localedir | --localedir | --localedi | --localed | --locale)
1327 ac_prev=localedir ;;
1328 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1329 localedir=$ac_optarg ;;
1331 -localstatedir | --localstatedir | --localstatedi | --localstated \
1332 | --localstate | --localstat | --localsta | --localst | --locals)
1333 ac_prev=localstatedir ;;
1334 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1335 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1336 localstatedir=$ac_optarg ;;
1338 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1340 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1341 mandir=$ac_optarg ;;
1343 -nfp | --nfp | --nf)
1344 # Obsolete; use --without-fp.
1347 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1348 | --no-cr | --no-c | -n)
1351 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1352 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1355 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1356 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1357 | --oldin | --oldi | --old | --ol | --o)
1358 ac_prev=oldincludedir ;;
1359 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1360 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1361 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1362 oldincludedir=$ac_optarg ;;
1364 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1366 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1367 prefix=$ac_optarg ;;
1369 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1370 | --program-pre | --program-pr | --program-p)
1371 ac_prev=program_prefix ;;
1372 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1373 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1374 program_prefix=$ac_optarg ;;
1376 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1377 | --program-suf | --program-su | --program-s)
1378 ac_prev=program_suffix ;;
1379 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1380 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1381 program_suffix=$ac_optarg ;;
1383 -program-transform-name | --program-transform-name \
1384 | --program-transform-nam | --program-transform-na \
1385 | --program-transform-n | --program-transform- \
1386 | --program-transform | --program-transfor \
1387 | --program-transfo | --program-transf \
1388 | --program-trans | --program-tran \
1389 | --progr-tra | --program-tr | --program-t)
1390 ac_prev=program_transform_name ;;
1391 -program-transform-name=* | --program-transform-name=* \
1392 | --program-transform-nam=* | --program-transform-na=* \
1393 | --program-transform-n=* | --program-transform-=* \
1394 | --program-transform=* | --program-transfor=* \
1395 | --program-transfo=* | --program-transf=* \
1396 | --program-trans=* | --program-tran=* \
1397 | --progr-tra=* | --program-tr=* | --program-t=*)
1398 program_transform_name=$ac_optarg ;;
1400 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1402 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1403 pdfdir=$ac_optarg ;;
1405 -psdir | --psdir | --psdi | --psd | --ps)
1407 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1410 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1411 | -silent | --silent | --silen | --sile | --sil)
1414 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1416 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1418 sbindir=$ac_optarg ;;
1420 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1421 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1422 | --sharedst | --shareds | --shared | --share | --shar \
1424 ac_prev=sharedstatedir ;;
1425 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1426 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1427 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1429 sharedstatedir=$ac_optarg ;;
1431 -site | --site | --sit)
1433 -site=* | --site=* | --sit=*)
1436 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1438 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1439 srcdir=$ac_optarg ;;
1441 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1442 | --syscon | --sysco | --sysc | --sys | --sy)
1443 ac_prev=sysconfdir ;;
1444 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1445 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1446 sysconfdir=$ac_optarg ;;
1448 -target | --target | --targe | --targ | --tar | --ta | --t)
1449 ac_prev=target_alias ;;
1450 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1451 target_alias=$ac_optarg ;;
1453 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1456 -version | --version | --versio | --versi | --vers | -V)
1457 ac_init_version=: ;;
1460 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1461 # Reject names that are not valid shell variable names.
1462 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1463 as_fn_error "invalid package name: $ac_useropt"
1464 ac_useropt_orig=$ac_useropt
1465 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1466 case $ac_user_opts in
1470 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1471 ac_unrecognized_sep=', ';;
1473 eval with_$ac_useropt=\$ac_optarg ;;
1475 -without-* | --without-*)
1476 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1477 # Reject names that are not valid shell variable names.
1478 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1479 as_fn_error "invalid package name: $ac_useropt"
1480 ac_useropt_orig=$ac_useropt
1481 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1482 case $ac_user_opts in
1486 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1487 ac_unrecognized_sep=', ';;
1489 eval with_$ac_useropt=no ;;
1492 # Obsolete; use --with-x.
1495 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1496 | --x-incl | --x-inc | --x-in | --x-i)
1497 ac_prev=x_includes ;;
1498 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1499 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1500 x_includes=$ac_optarg ;;
1502 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1503 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1504 ac_prev=x_libraries ;;
1505 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1506 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1507 x_libraries=$ac_optarg ;;
1509 -*) as_fn_error "unrecognized option: \`$ac_option'
1510 Try \`$0 --help' for more information."
1514 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1515 # Reject names that are not valid shell variable names.
1516 case $ac_envvar in #(
1517 '' | [0-9]* | *[!_$as_cr_alnum]* )
1518 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1520 eval $ac_envvar=\$ac_optarg
1521 export $ac_envvar ;;
1524 # FIXME: should be removed in autoconf 3.0.
1525 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1526 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1527 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1528 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1534 if test -n "$ac_prev"; then
1535 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1536 as_fn_error "missing argument to $ac_option"
1539 if test -n "$ac_unrecognized_opts"; then
1540 case $enable_option_checking in
1542 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1543 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1547 # Check all directory arguments for consistency.
1548 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1549 datadir sysconfdir sharedstatedir localstatedir includedir \
1550 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1551 libdir localedir mandir
1553 eval ac_val=\$$ac_var
1554 # Remove trailing slashes.
1557 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1558 eval $ac_var=\$ac_val;;
1560 # Be sure to have absolute directory names.
1562 [\\/$]* | ?:[\\/]* ) continue;;
1563 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1565 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1568 # There might be people who depend on the old broken behavior: `$host'
1569 # used to hold the argument of --host etc.
1570 # FIXME: To remove some day.
1573 target=$target_alias
1575 # FIXME: To remove some day.
1576 if test "x$host_alias" != x; then
1577 if test "x$build_alias" = x; then
1578 cross_compiling=maybe
1579 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1580 If a cross compiler is detected then cross compile mode will be used." >&2
1581 elif test "x$build_alias" != "x$host_alias"; then
1587 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1589 test "$silent" = yes && exec 6>/dev/null
1592 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1593 ac_ls_di=`ls -di .` &&
1594 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1595 as_fn_error "working directory cannot be determined"
1596 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1597 as_fn_error "pwd does not report name of working directory"
1600 # Find the source files, if location was not specified.
1601 if test -z "$srcdir"; then
1602 ac_srcdir_defaulted=yes
1603 # Try the directory containing this script, then the parent directory.
1604 ac_confdir=`$as_dirname -- "$as_myself" ||
1605 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1606 X"$as_myself" : 'X\(//\)[^/]' \| \
1607 X"$as_myself" : 'X\(//\)$' \| \
1608 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1609 $as_echo X"$as_myself" |
1610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1628 if test ! -r "$srcdir/$ac_unique_file"; then
1632 ac_srcdir_defaulted=no
1634 if test ! -r "$srcdir/$ac_unique_file"; then
1635 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1636 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1638 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1640 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1642 # When building in place, set srcdir=.
1643 if test "$ac_abs_confdir" = "$ac_pwd"; then
1646 # Remove unnecessary trailing slashes from srcdir.
1647 # Double slashes in file names in object file debugging info
1648 # mess up M-x gdb in Emacs.
1650 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1652 for ac_var in $ac_precious_vars; do
1653 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1654 eval ac_env_${ac_var}_value=\$${ac_var}
1655 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1656 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1660 # Report the --help message.
1662 if test "$ac_init_help" = "long"; then
1663 # Omit some internal or obsolete options to make the list less imposing.
1664 # This message is too long to be a string in the A/UX 3.1 sh.
1666 \`configure' configures this package to adapt to many kinds of systems.
1668 Usage: $0 [OPTION]... [VAR=VALUE]...
1670 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1671 VAR=VALUE. See below for descriptions of some of the useful variables.
1673 Defaults for the options are specified in brackets.
1676 -h, --help display this help and exit
1677 --help=short display options specific to this package
1678 --help=recursive display the short help of all the included packages
1679 -V, --version display version information and exit
1680 -q, --quiet, --silent do not print \`checking...' messages
1681 --cache-file=FILE cache test results in FILE [disabled]
1682 -C, --config-cache alias for \`--cache-file=config.cache'
1683 -n, --no-create do not create output files
1684 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1686 Installation directories:
1687 --prefix=PREFIX install architecture-independent files in PREFIX
1688 [$ac_default_prefix]
1689 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1692 By default, \`make install' will install all the files in
1693 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1694 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1695 for instance \`--prefix=\$HOME'.
1697 For better control, use the options below.
1699 Fine tuning of the installation directories:
1700 --bindir=DIR user executables [EPREFIX/bin]
1701 --sbindir=DIR system admin executables [EPREFIX/sbin]
1702 --libexecdir=DIR program executables [EPREFIX/libexec]
1703 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1704 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1705 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1706 --libdir=DIR object code libraries [EPREFIX/lib]
1707 --includedir=DIR C header files [PREFIX/include]
1708 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1709 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1710 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1711 --infodir=DIR info documentation [DATAROOTDIR/info]
1712 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1713 --mandir=DIR man documentation [DATAROOTDIR/man]
1714 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1715 --htmldir=DIR html documentation [DOCDIR]
1716 --dvidir=DIR dvi documentation [DOCDIR]
1717 --pdfdir=DIR pdf documentation [DOCDIR]
1718 --psdir=DIR ps documentation [DOCDIR]
1724 --x-includes=DIR X include files are in DIR
1725 --x-libraries=DIR X library files are in DIR
1728 --build=BUILD configure for building on BUILD [guessed]
1729 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1733 if test -n "$ac_init_help"; then
1738 --disable-option-checking ignore unrecognized --enable/--with options
1739 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1740 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1741 --enable-libtool enable building using GNU libtool [default=yes]
1742 --enable-shared[=PKGS] build shared libraries [default=yes]
1743 --enable-static[=PKGS] build static libraries [default=no]
1744 --enable-fast-install[=PKGS]
1745 optimize for fast installation [default=yes]
1746 --disable-libtool-lock avoid locking (might break parallel builds)
1747 --enable-includes enable installing of include files [default=no]
1748 --disable-nls do not use Native Language Support
1749 --disable-rpath do not hardcode runtime library paths
1750 --enable-gnome enable build of bgnome-console GUI [default=no]
1751 --enable-bat enable build of bat Qt4 GUI [default=no]
1752 --enable-bwx-console enable build of wxWidgets console [default=no]
1753 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1755 --enable-smartalloc enable smartalloc debugging support [default=no]
1756 --enable-lockmgr enable lock manager support [default=no]
1757 --enable-static-tools enable static tape tools [default=no]
1758 --enable-static-fd enable static File daemon [default=no]
1759 --enable-static-sd enable static Storage daemon [default=no]
1760 --enable-static-dir enable static Director [default=no]
1761 --enable-static-cons enable static Console [default=no]
1762 --enable-client-only build client (File daemon) only [default=no]
1763 --enable-build-dird enable building of dird (Director) [default=yes]
1764 --enable-build-stored enable building of stored (Storage daemon)
1766 --disable-conio disable conio support [default=no]
1767 --enable-ipv6 enable ipv6 support [default=yes]
1768 --disable-readline disable readline support [default=yes]
1769 --enable-batch-insert enable the DB batch insert code [default=no]
1770 --disable-largefile omit support for large files
1771 --disable-acl disable acl support [default=auto]
1772 --disable-xattr disable xattr support [default=auto]
1775 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1776 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1777 --with-pic try to use only PIC/non-PIC objects [default=use
1779 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1780 --with-gnu-ld assume the C compiler uses GNU ld default=no
1781 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1782 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1783 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1784 --without-libintl-prefix don't search for libintl in includedir and libdir
1785 --with-included-gettext use the GNU gettext library included here
1786 --with-qwt[=DIR] specify qwt library directory
1787 --with-readline[=DIR] specify readline library directory
1788 --with-python[=DIR] Include Python support. DIR is the Python base
1789 install directory, default is to search through a
1790 number of common places for the Python files.
1791 --with-tcp-wrappers[=DIR]
1792 enable tcpwrappers support
1793 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1794 --with-working-dir=PATH specify path of Bacula working directory
1795 --with-archivedir=PATH specify path of SD archive directory
1796 --with-basename=RESNAME specify base resource name for daemons
1797 --with-hostname=RESNAME specify host name for daemons
1798 --with-scriptdir=PATH specify path of Bacula scripts directory
1799 --with-bsrdir=PATH specify path of Bacula bsrs directory
1800 --with-logdir=PATH specify path of Bacula logs directory
1801 --with-plugindir=PATH specify path of Bacula plugins directory
1802 --with-dump-email=EMAIL dump email address
1803 --with-job-email=EMAIL job output email address
1804 --with-smtp-host=HOST SMTP mail host address
1805 --with-pid-dir=PATH specify location of Bacula pid files
1806 --with-subsys-dir=PATH specify location of Bacula subsys file
1807 --with-baseport=PORT specify base port address for daemons
1808 --with-dir-password=PASSWORD
1809 specify Director's password
1810 --with-fd-password=PASSWORD
1811 specify Client's password
1812 --with-sd-password=PASSWORD
1813 specify Storage daemon's password
1814 --with-mon-dir-password=PASSWORD
1815 specify Director's password used by the monitor
1816 --with-mon-fd-password=PASSWORD
1817 specify Client's password used by the monitor
1818 --with-mon-sd-password=PASSWORD
1819 specify Storage daemon's password used by the
1821 --with-db-name=DBNAME specify database name [default=bacula]
1822 --with-db-user=UNAME specify database user [default=bacula]
1823 --with-db-password=PWD specify database password [default=*none*]
1824 --with-db-port=DBPORT specify a database port [default=null]
1825 --with-dir-user=USER specify user for Director daemon
1826 --with-dir-group=GROUP specify group for Director daemon
1827 --with-sd-user=USER specify user for Storage daemon
1828 --with-sd-group=GROUP specify group for Storage daemon
1829 --with-fd-user=USER specify user for File daemon
1830 --with-fd-group=GROUP specify group for File daemon
1831 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1832 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1833 base install directory, [default=/usr/local/pgsql]
1834 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1835 directory, default is to search through a number of
1836 common places for the MySQL files.
1837 --with-embedded-mysql[=DIR]
1838 Include MySQL support. DIR is the MySQL base install
1839 directory, default is to search through a number of
1840 common places for the MySQL files.
1841 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1842 install directory, default is to search through a
1843 number of common places for the SQLite3 files.
1844 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1845 directory, default is to search through a number of
1846 common places for the DBI files.
1847 --with-dbi-driver[=DRIVER]
1848 Suport for DBI driver. DRIVER is the one DBI driver
1849 like Mysql, Postgresql, others. Default is to not
1850 configure any driver.
1851 --with-x use the X Window System
1853 Some influential environment variables:
1854 CC C compiler command
1855 CFLAGS C compiler flags
1856 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1857 nonstandard directory <lib dir>
1858 LIBS libraries to pass to the linker, e.g. -l<library>
1859 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1860 you have headers in a nonstandard directory <include dir>
1861 CXX C++ compiler command
1862 CXXFLAGS C++ compiler flags
1864 WXCONFIG wx-config command. On some systems, you must set it to
1865 wx-config-2.6 to use wxWidgets 2.6.
1866 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1867 CXXCPP C++ preprocessor
1868 XMKMF Path to xmkmf, Makefile generator for X Window System
1870 Use these variables to override the choices made by `configure' or to help
1871 it to find libraries and programs with nonstandard names/locations.
1873 Report bugs to the package provider.
1878 if test "$ac_init_help" = "recursive"; then
1879 # If there are subdirs, report their specific --help.
1880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1881 test -d "$ac_dir" ||
1882 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1887 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1889 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1890 # A ".." for each directory in $ac_dir_suffix.
1891 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1892 case $ac_top_builddir_sub in
1893 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1894 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1897 ac_abs_top_builddir=$ac_pwd
1898 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1899 # for backward compatibility:
1900 ac_top_builddir=$ac_top_build_prefix
1903 .) # We are building in place.
1905 ac_top_srcdir=$ac_top_builddir_sub
1906 ac_abs_top_srcdir=$ac_pwd ;;
1907 [\\/]* | ?:[\\/]* ) # Absolute name.
1908 ac_srcdir=$srcdir$ac_dir_suffix;
1909 ac_top_srcdir=$srcdir
1910 ac_abs_top_srcdir=$srcdir ;;
1912 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1913 ac_top_srcdir=$ac_top_build_prefix$srcdir
1914 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1916 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1918 cd "$ac_dir" || { ac_status=$?; continue; }
1919 # Check for guested configure.
1920 if test -f "$ac_srcdir/configure.gnu"; then
1922 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1923 elif test -f "$ac_srcdir/configure"; then
1925 $SHELL "$ac_srcdir/configure" --help=recursive
1927 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1929 cd "$ac_pwd" || { ac_status=$?; break; }
1933 test -n "$ac_init_help" && exit $ac_status
1934 if $ac_init_version; then
1937 generated by GNU Autoconf 2.65
1939 Copyright (C) 2009 Free Software Foundation, Inc.
1940 This configure script is free software; the Free Software Foundation
1941 gives unlimited permission to copy, distribute and modify it.
1946 ## ------------------------ ##
1947 ## Autoconf initialization. ##
1948 ## ------------------------ ##
1950 # ac_fn_c_try_compile LINENO
1951 # --------------------------
1952 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1953 ac_fn_c_try_compile ()
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 rm -f conftest.$ac_objext
1957 if { { ac_try="$ac_compile"
1959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1960 *) ac_try_echo=$ac_try;;
1962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963 $as_echo "$ac_try_echo"; } >&5
1964 (eval "$ac_compile") 2>conftest.err
1966 if test -s conftest.err; then
1967 grep -v '^ *+' conftest.err >conftest.er1
1968 cat conftest.er1 >&5
1969 mv -f conftest.er1 conftest.err
1971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1972 test $ac_status = 0; } && {
1973 test -z "$ac_c_werror_flag" ||
1974 test ! -s conftest.err
1975 } && test -s conftest.$ac_objext; then :
1978 $as_echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1983 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1984 as_fn_set_status $ac_retval
1986 } # ac_fn_c_try_compile
1988 # ac_fn_cxx_try_compile LINENO
1989 # ----------------------------
1990 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1991 ac_fn_cxx_try_compile ()
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 rm -f conftest.$ac_objext
1995 if { { ac_try="$ac_compile"
1997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998 *) ac_try_echo=$ac_try;;
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002 (eval "$ac_compile") 2>conftest.err
2004 if test -s conftest.err; then
2005 grep -v '^ *+' conftest.err >conftest.er1
2006 cat conftest.er1 >&5
2007 mv -f conftest.er1 conftest.err
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && {
2011 test -z "$ac_cxx_werror_flag" ||
2012 test ! -s conftest.err
2013 } && test -s conftest.$ac_objext; then :
2016 $as_echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2021 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2022 as_fn_set_status $ac_retval
2024 } # ac_fn_cxx_try_compile
2026 # ac_fn_c_try_cpp LINENO
2027 # ----------------------
2028 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 if { { ac_try="$ac_cpp conftest.$ac_ext"
2034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035 *) ac_try_echo=$ac_try;;
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2041 if test -s conftest.err; then
2042 grep -v '^ *+' conftest.err >conftest.er1
2043 cat conftest.er1 >&5
2044 mv -f conftest.er1 conftest.err
2046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047 test $ac_status = 0; } >/dev/null && {
2048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2049 test ! -s conftest.err
2053 $as_echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.$ac_ext >&5
2058 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2059 as_fn_set_status $ac_retval
2063 # ac_fn_c_try_link LINENO
2064 # -----------------------
2065 # Try to link conftest.$ac_ext, and return whether this succeeded.
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 rm -f conftest.$ac_objext conftest$ac_exeext
2070 if { { ac_try="$ac_link"
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_link") 2>conftest.err
2079 if test -s conftest.err; then
2080 grep -v '^ *+' conftest.err >conftest.er1
2081 cat conftest.er1 >&5
2082 mv -f conftest.er1 conftest.err
2084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085 test $ac_status = 0; } && {
2086 test -z "$ac_c_werror_flag" ||
2087 test ! -s conftest.err
2088 } && test -s conftest$ac_exeext && {
2089 test "$cross_compiling" = yes ||
2090 $as_test_x conftest$ac_exeext
2094 $as_echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2099 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2100 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2101 # interfere with the next link command; also delete a directory that is
2102 # left behind by Apple's compiler. We do this before executing the actions.
2103 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2104 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2105 as_fn_set_status $ac_retval
2107 } # ac_fn_c_try_link
2109 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2110 # -------------------------------------------------------
2111 # Tests whether HEADER exists and can be compiled using the include files in
2112 # INCLUDES, setting the cache variable VAR accordingly.
2113 ac_fn_c_check_header_compile ()
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2117 $as_echo_n "checking for $2... " >&6; }
2118 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2119 $as_echo_n "(cached) " >&6
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2126 if ac_fn_c_try_compile "$LINENO"; then :
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2136 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2138 } # ac_fn_c_check_header_compile
2140 # ac_fn_c_try_run LINENO
2141 # ----------------------
2142 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2143 # that executables *can* be run.
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 if { { ac_try="$ac_link"
2149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2150 *) ac_try_echo=$ac_try;;
2152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2153 $as_echo "$ac_try_echo"; } >&5
2154 (eval "$ac_link") 2>&5
2156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2157 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2158 { { case "(($ac_try" in
2159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2160 *) ac_try_echo=$ac_try;;
2162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2163 $as_echo "$ac_try_echo"; } >&5
2164 (eval "$ac_try") 2>&5
2166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2167 test $ac_status = 0; }; }; then :
2170 $as_echo "$as_me: program exited with status $ac_status" >&5
2171 $as_echo "$as_me: failed program was:" >&5
2172 sed 's/^/| /' conftest.$ac_ext >&5
2174 ac_retval=$ac_status
2176 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2177 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2178 as_fn_set_status $ac_retval
2182 # ac_fn_c_check_func LINENO FUNC VAR
2183 # ----------------------------------
2184 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2185 ac_fn_c_check_func ()
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2189 $as_echo_n "checking for $2... " >&6; }
2190 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2191 $as_echo_n "(cached) " >&6
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2195 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2197 #define $2 innocuous_$2
2199 /* System header to define __stub macros and hopefully few prototypes,
2200 which can conflict with char $2 (); below.
2201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2202 <limits.h> exists even on freestanding compilers. */
2205 # include <limits.h>
2207 # include <assert.h>
2212 /* Override any GCC internal prototype to avoid an error.
2213 Use char because int might match the return type of a GCC
2214 builtin and then its argument prototype would still apply. */
2219 /* The GNU C library defines this for functions which it implements
2220 to always fail with ENOSYS. Some functions are actually named
2221 something starting with __ and the normal name is an alias. */
2222 #if defined __stub_$2 || defined __stub___$2
2234 if ac_fn_c_try_link "$LINENO"; then :
2239 rm -f core conftest.err conftest.$ac_objext \
2240 conftest$ac_exeext conftest.$ac_ext
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2244 $as_echo "$ac_res" >&6; }
2245 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2247 } # ac_fn_c_check_func
2249 # ac_fn_cxx_try_cpp LINENO
2250 # ------------------------
2251 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2252 ac_fn_cxx_try_cpp ()
2254 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2255 if { { ac_try="$ac_cpp conftest.$ac_ext"
2257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258 *) ac_try_echo=$ac_try;;
2260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2261 $as_echo "$ac_try_echo"; } >&5
2262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2264 if test -s conftest.err; then
2265 grep -v '^ *+' conftest.err >conftest.er1
2266 cat conftest.er1 >&5
2267 mv -f conftest.er1 conftest.err
2269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2270 test $ac_status = 0; } >/dev/null && {
2271 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2272 test ! -s conftest.err
2276 $as_echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2281 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2282 as_fn_set_status $ac_retval
2284 } # ac_fn_cxx_try_cpp
2286 # ac_fn_cxx_try_link LINENO
2287 # -------------------------
2288 # Try to link conftest.$ac_ext, and return whether this succeeded.
2289 ac_fn_cxx_try_link ()
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 rm -f conftest.$ac_objext conftest$ac_exeext
2293 if { { ac_try="$ac_link"
2295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2296 *) ac_try_echo=$ac_try;;
2298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2299 $as_echo "$ac_try_echo"; } >&5
2300 (eval "$ac_link") 2>conftest.err
2302 if test -s conftest.err; then
2303 grep -v '^ *+' conftest.err >conftest.er1
2304 cat conftest.er1 >&5
2305 mv -f conftest.er1 conftest.err
2307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2308 test $ac_status = 0; } && {
2309 test -z "$ac_cxx_werror_flag" ||
2310 test ! -s conftest.err
2311 } && test -s conftest$ac_exeext && {
2312 test "$cross_compiling" = yes ||
2313 $as_test_x conftest$ac_exeext
2317 $as_echo "$as_me: failed program was:" >&5
2318 sed 's/^/| /' conftest.$ac_ext >&5
2322 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2323 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2324 # interfere with the next link command; also delete a directory that is
2325 # left behind by Apple's compiler. We do this before executing the actions.
2326 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2327 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2328 as_fn_set_status $ac_retval
2330 } # ac_fn_cxx_try_link
2332 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2333 # -------------------------------------------
2334 # Tests whether TYPE exists after having included INCLUDES, setting cache
2335 # variable VAR accordingly.
2336 ac_fn_c_check_type ()
2338 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2340 $as_echo_n "checking for $2... " >&6; }
2341 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2342 $as_echo_n "(cached) " >&6
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2357 if ac_fn_c_try_compile "$LINENO"; then :
2358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359 /* end confdefs.h. */
2370 if ac_fn_c_try_compile "$LINENO"; then :
2375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2381 $as_echo "$ac_res" >&6; }
2382 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2384 } # ac_fn_c_check_type
2386 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2387 # -------------------------------------------------------
2388 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2389 # the include files in INCLUDES and setting the cache variable VAR
2391 ac_fn_c_check_header_mongrel ()
2393 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2394 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2396 $as_echo_n "checking for $2... " >&6; }
2397 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2398 $as_echo_n "(cached) " >&6
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2402 $as_echo "$ac_res" >&6; }
2404 # Is the header compilable?
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2406 $as_echo_n "checking $2 usability... " >&6; }
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h. */
2412 if ac_fn_c_try_compile "$LINENO"; then :
2413 ac_header_compiler=yes
2415 ac_header_compiler=no
2417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2419 $as_echo "$ac_header_compiler" >&6; }
2421 # Is the header present?
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2423 $as_echo_n "checking $2 presence... " >&6; }
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h. */
2428 if ac_fn_c_try_cpp "$LINENO"; then :
2429 ac_header_preproc=yes
2431 ac_header_preproc=no
2433 rm -f conftest.err conftest.$ac_ext
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2435 $as_echo "$ac_header_preproc" >&6; }
2437 # So? What about this header?
2438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2441 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2443 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2447 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2449 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2451 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2453 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2455 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2459 $as_echo_n "checking for $2... " >&6; }
2460 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2461 $as_echo_n "(cached) " >&6
2463 eval "$3=\$ac_header_compiler"
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2467 $as_echo "$ac_res" >&6; }
2469 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2471 } # ac_fn_c_check_header_mongrel
2473 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2474 # --------------------------------------------
2475 # Tries to find the compile-time value of EXPR in a program that includes
2476 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2478 ac_fn_c_compute_int ()
2480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2481 if test "$cross_compiling" = yes; then
2482 # Depending upon the size, compute the lo and hi bounds.
2483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484 /* end confdefs.h. */
2489 static int test_array [1 - 2 * !(($2) >= 0)];
2496 if ac_fn_c_try_compile "$LINENO"; then :
2499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500 /* end confdefs.h. */
2505 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2512 if ac_fn_c_try_compile "$LINENO"; then :
2513 ac_hi=$ac_mid; break
2515 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2516 if test $ac_lo -le $ac_mid; then
2520 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2531 static int test_array [1 - 2 * !(($2) < 0)];
2538 if ac_fn_c_try_compile "$LINENO"; then :
2541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2542 /* end confdefs.h. */
2547 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2554 if ac_fn_c_try_compile "$LINENO"; then :
2555 ac_lo=$ac_mid; break
2557 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2558 if test $ac_mid -le $ac_hi; then
2562 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2572 # Binary search between lo and hi bounds.
2573 while test "x$ac_lo" != "x$ac_hi"; do
2574 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h. */
2581 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2588 if ac_fn_c_try_compile "$LINENO"; then :
2591 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2596 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2601 /* end confdefs.h. */
2603 static long int longval () { return $2; }
2604 static unsigned long int ulongval () { return $2; }
2611 FILE *f = fopen ("conftest.val", "w");
2616 long int i = longval ();
2619 fprintf (f, "%ld", i);
2623 unsigned long int i = ulongval ();
2626 fprintf (f, "%lu", i);
2628 /* Do not output a trailing newline, as this causes \r\n confusion
2629 on some platforms. */
2630 return ferror (f) || fclose (f) != 0;
2636 if ac_fn_c_try_run "$LINENO"; then :
2637 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2642 conftest.$ac_objext conftest.beam conftest.$ac_ext
2646 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2647 as_fn_set_status $ac_retval
2649 } # ac_fn_c_compute_int
2651 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2652 # ----------------------------------------------------
2653 # Tries to find if the field MEMBER exists in type AGGR, after including
2654 # INCLUDES, setting cache variable VAR accordingly.
2655 ac_fn_c_check_member ()
2657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2659 $as_echo_n "checking for $2.$3... " >&6; }
2660 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2661 $as_echo_n "(cached) " >&6
2663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2664 /* end confdefs.h. */
2676 if ac_fn_c_try_compile "$LINENO"; then :
2679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680 /* end confdefs.h. */
2686 if (sizeof ac_aggr.$3)
2692 if ac_fn_c_try_compile "$LINENO"; then :
2697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2703 $as_echo "$ac_res" >&6; }
2704 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2706 } # ac_fn_c_check_member
2708 # ac_fn_c_check_decl LINENO SYMBOL VAR
2709 # ------------------------------------
2710 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2711 ac_fn_c_check_decl ()
2713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2715 $as_echo_n "checking whether $2 is declared... " >&6; }
2716 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2717 $as_echo_n "(cached) " >&6
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h. */
2733 if ac_fn_c_try_compile "$LINENO"; then :
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2742 $as_echo "$ac_res" >&6; }
2743 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2745 } # ac_fn_c_check_decl
2747 # ac_fn_cxx_try_run LINENO
2748 # ------------------------
2749 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2750 # that executables *can* be run.
2751 ac_fn_cxx_try_run ()
2753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2754 if { { ac_try="$ac_link"
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2760 $as_echo "$ac_try_echo"; } >&5
2761 (eval "$ac_link") 2>&5
2763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2764 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2765 { { case "(($ac_try" in
2766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767 *) ac_try_echo=$ac_try;;
2769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2770 $as_echo "$ac_try_echo"; } >&5
2771 (eval "$ac_try") 2>&5
2773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2774 test $ac_status = 0; }; }; then :
2777 $as_echo "$as_me: program exited with status $ac_status" >&5
2778 $as_echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2781 ac_retval=$ac_status
2783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2784 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2785 as_fn_set_status $ac_retval
2787 } # ac_fn_cxx_try_run
2788 cat >config.log <<_ACEOF
2789 This file contains any messages produced by compilers while
2790 running configure, to aid debugging if configure makes a mistake.
2792 It was created by $as_me, which was
2793 generated by GNU Autoconf 2.65. Invocation command line was
2805 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2806 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2807 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2808 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2809 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2811 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2812 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2814 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2815 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2816 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2817 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2818 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2819 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2820 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 test -z "$as_dir" && as_dir=.
2829 $as_echo "PATH: $as_dir"
2845 # Keep a trace of the command line.
2846 # Strip out --no-create and --no-recursion so they do not pile up.
2847 # Strip out --silent because we don't want to record it for future runs.
2848 # Also quote any args containing shell meta-characters.
2849 # Make two passes to allow for proper duplicate-argument suppression.
2853 ac_must_keep_next=false
2859 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2860 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2861 | -silent | --silent | --silen | --sile | --sil)
2864 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2867 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2869 as_fn_append ac_configure_args1 " '$ac_arg'"
2870 if test $ac_must_keep_next = true; then
2871 ac_must_keep_next=false # Got value, back to normal.
2874 *=* | --config-cache | -C | -disable-* | --disable-* \
2875 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2876 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2877 | -with-* | --with-* | -without-* | --without-* | --x)
2878 case "$ac_configure_args0 " in
2879 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2882 -* ) ac_must_keep_next=true ;;
2885 as_fn_append ac_configure_args " '$ac_arg'"
2890 { ac_configure_args0=; unset ac_configure_args0;}
2891 { ac_configure_args1=; unset ac_configure_args1;}
2893 # When interrupted or exit'd, cleanup temporary files, and complete
2894 # config.log. We remove comments because anyway the quotes in there
2895 # would cause problems or look ugly.
2896 # WARNING: Use '\'' to represent an apostrophe within the trap.
2897 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2898 trap 'exit_status=$?
2899 # Save into config.log some information that might help in debugging.
2904 ## ---------------- ##
2905 ## Cache variables. ##
2906 ## ---------------- ##
2909 # The following way of writing the cache mishandles newlines in values,
2911 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2912 eval ac_val=\$$ac_var
2916 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2917 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2920 _ | IFS | as_nl) ;; #(
2921 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2922 *) { eval $ac_var=; unset $ac_var;} ;;
2927 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2928 *${as_nl}ac_space=\ *)
2930 "s/'\''/'\''\\\\'\'''\''/g;
2931 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2934 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2942 ## ----------------- ##
2943 ## Output variables. ##
2944 ## ----------------- ##
2947 for ac_var in $ac_subst_vars
2949 eval ac_val=\$$ac_var
2951 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2953 $as_echo "$ac_var='\''$ac_val'\''"
2957 if test -n "$ac_subst_files"; then
2959 ## ------------------- ##
2960 ## File substitutions. ##
2961 ## ------------------- ##
2964 for ac_var in $ac_subst_files
2966 eval ac_val=\$$ac_var
2968 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2970 $as_echo "$ac_var='\''$ac_val'\''"
2975 if test -s confdefs.h; then
2985 test "$ac_signal" != 0 &&
2986 $as_echo "$as_me: caught signal $ac_signal"
2987 $as_echo "$as_me: exit $exit_status"
2989 rm -f core *.core core.conftest.* &&
2990 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2993 for ac_signal in 1 2 13 15; do
2994 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2998 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2999 rm -f -r conftest* confdefs.h
3001 $as_echo "/* confdefs.h */" > confdefs.h
3003 # Predefined preprocessor variables.
3005 cat >>confdefs.h <<_ACEOF
3006 #define PACKAGE_NAME "$PACKAGE_NAME"
3009 cat >>confdefs.h <<_ACEOF
3010 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3013 cat >>confdefs.h <<_ACEOF
3014 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3017 cat >>confdefs.h <<_ACEOF
3018 #define PACKAGE_STRING "$PACKAGE_STRING"
3021 cat >>confdefs.h <<_ACEOF
3022 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3025 cat >>confdefs.h <<_ACEOF
3026 #define PACKAGE_URL "$PACKAGE_URL"
3030 # Let the site file select an alternate cache file if it wants to.
3031 # Prefer an explicitly selected file to automatically selected ones.
3034 if test -n "$CONFIG_SITE"; then
3035 ac_site_file1=$CONFIG_SITE
3036 elif test "x$prefix" != xNONE; then
3037 ac_site_file1=$prefix/share/config.site
3038 ac_site_file2=$prefix/etc/config.site
3040 ac_site_file1=$ac_default_prefix/share/config.site
3041 ac_site_file2=$ac_default_prefix/etc/config.site
3043 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3045 test "x$ac_site_file" = xNONE && continue
3046 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3048 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3049 sed 's/^/| /' "$ac_site_file" >&5
3054 if test -r "$cache_file"; then
3055 # Some versions of bash will fail to source /dev/null (special files
3056 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3057 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3059 $as_echo "$as_me: loading cache $cache_file" >&6;}
3061 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3062 *) . "./$cache_file";;
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3067 $as_echo "$as_me: creating cache $cache_file" >&6;}
3071 as_fn_append ac_header_list " stdlib.h"
3072 as_fn_append ac_header_list " unistd.h"
3073 as_fn_append ac_header_list " sys/param.h"
3074 # Check that the precious variables saved in the cache have kept the same
3076 ac_cache_corrupted=false
3077 for ac_var in $ac_precious_vars; do
3078 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3079 eval ac_new_set=\$ac_env_${ac_var}_set
3080 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3081 eval ac_new_val=\$ac_env_${ac_var}_value
3082 case $ac_old_set,$ac_new_set in
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3085 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3086 ac_cache_corrupted=: ;;
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3089 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3090 ac_cache_corrupted=: ;;
3093 if test "x$ac_old_val" != "x$ac_new_val"; then
3094 # differences in whitespace do not lead to failure.
3095 ac_old_val_w=`echo x $ac_old_val`
3096 ac_new_val_w=`echo x $ac_new_val`
3097 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3099 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3100 ac_cache_corrupted=:
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3103 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3104 eval $ac_var=\$ac_old_val
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3107 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3109 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3112 # Pass precious variables to config.status.
3113 if test "$ac_new_set" = set; then
3115 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3116 *) ac_arg=$ac_var=$ac_new_val ;;
3118 case " $ac_configure_args " in
3119 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3120 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3124 if $ac_cache_corrupted; then
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3128 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3129 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3131 ## -------------------- ##
3132 ## Main body of script. ##
3133 ## -------------------- ##
3136 ac_cpp='$CPP $CPPFLAGS'
3137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3150 for ac_t in install-sh install.sh shtool; do
3151 if test -f "$ac_dir/$ac_t"; then
3153 ac_install_sh="$ac_aux_dir/$ac_t -c"
3158 if test -z "$ac_aux_dir"; then
3159 as_fn_error "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3162 # These three variables are undocumented and unsupported,
3163 # and are intended to be withdrawn in a future Autoconf release.
3164 # They can cause serious problems if a builder's source tree is in a directory
3165 # whose full name contains unusual characters.
3166 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3167 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3168 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3171 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3174 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3175 WIN32MAINDIR=${BUILD_DIR}
3176 WIN32TOPDIR=${TOP_DIR}
3186 # Extract the first word of "$ac_prog", so it can be a program name with args.
3187 set dummy $ac_prog; ac_word=$2
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 $as_echo_n "checking for $ac_word... " >&6; }
3190 if test "${ac_cv_path_TRUEPRG+set}" = set; then :
3191 $as_echo_n "(cached) " >&6
3195 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 TRUEPRG=$ac_cv_path_TRUEPRG
3217 if test -n "$TRUEPRG"; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3219 $as_echo "$TRUEPRG" >&6; }
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3226 test -n "$TRUEPRG" && break
3228 test -n "$TRUEPRG" || TRUEPRG=":"
3230 for ac_prog in false
3232 # Extract the first word of "$ac_prog", so it can be a program name with args.
3233 set dummy $ac_prog; ac_word=$2
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235 $as_echo_n "checking for $ac_word... " >&6; }
3236 if test "${ac_cv_path_FALSEPRG+set}" = set; then :
3237 $as_echo_n "(cached) " >&6
3241 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 test -z "$as_dir" && as_dir=.
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3251 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 FALSEPRG=$ac_cv_path_FALSEPRG
3263 if test -n "$FALSEPRG"; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3265 $as_echo "$FALSEPRG" >&6; }
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268 $as_echo "no" >&6; }
3272 test -n "$FALSEPRG" && break
3274 test -n "$FALSEPRG" || FALSEPRG=":"
3279 if test "x$BACULA" != x; then
3280 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3282 BACULA=${BACULA:-Bacula}
3283 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3284 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3285 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3286 echo "configuring for ${BACULA} $VERSION ($DATE)"
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294 if test -n "$ac_tool_prefix"; then
3295 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3296 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3298 $as_echo_n "checking for $ac_word... " >&6; }
3299 if test "${ac_cv_prog_CC+set}" = set; then :
3300 $as_echo_n "(cached) " >&6
3302 if test -n "$CC"; then
3303 ac_cv_prog_CC="$CC" # Let the user override the test.
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 test -z "$as_dir" && as_dir=.
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3312 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 if test -n "$CC"; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3325 $as_echo "$CC" >&6; }
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328 $as_echo "no" >&6; }
3333 if test -z "$ac_cv_prog_CC"; then
3335 # Extract the first word of "gcc", so it can be a program name with args.
3336 set dummy gcc; ac_word=$2
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3338 $as_echo_n "checking for $ac_word... " >&6; }
3339 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3340 $as_echo_n "(cached) " >&6
3342 if test -n "$ac_ct_CC"; then
3343 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3352 ac_cv_prog_ac_ct_CC="gcc"
3353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3363 if test -n "$ac_ct_CC"; then
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3365 $as_echo "$ac_ct_CC" >&6; }
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3371 if test "x$ac_ct_CC" = x; then
3374 case $cross_compiling:$ac_tool_warned in
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3378 ac_tool_warned=yes ;;
3386 if test -z "$CC"; then
3387 if test -n "$ac_tool_prefix"; then
3388 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3389 set dummy ${ac_tool_prefix}cc; ac_word=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if test "${ac_cv_prog_CC+set}" = set; then :
3393 $as_echo_n "(cached) " >&6
3395 if test -n "$CC"; then
3396 ac_cv_prog_CC="$CC" # Let the user override the test.
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405 ac_cv_prog_CC="${ac_tool_prefix}cc"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 if test -n "$CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3418 $as_echo "$CC" >&6; }
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3427 if test -z "$CC"; then
3428 # Extract the first word of "cc", so it can be a program name with args.
3429 set dummy cc; ac_word=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if test "${ac_cv_prog_CC+set}" = set; then :
3433 $as_echo_n "(cached) " >&6
3435 if test -n "$CC"; then
3436 ac_cv_prog_CC="$CC" # Let the user override the test.
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 test -z "$as_dir" && as_dir=.
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3446 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3447 ac_prog_rejected=yes
3451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 if test $ac_prog_rejected = yes; then
3459 # We found a bogon in the path, so make sure we never use it.
3460 set dummy $ac_cv_prog_CC
3462 if test $# != 0; then
3463 # We chose a different compiler from the bogus one.
3464 # However, it has the same basename, so the bogon will be chosen
3465 # first if we set CC to just the basename; use the full file name.
3467 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3473 if test -n "$CC"; then
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3475 $as_echo "$CC" >&6; }
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3483 if test -z "$CC"; then
3484 if test -n "$ac_tool_prefix"; then
3485 for ac_prog in cl.exe
3487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3488 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3490 $as_echo_n "checking for $ac_word... " >&6; }
3491 if test "${ac_cv_prog_CC+set}" = set; then :
3492 $as_echo_n "(cached) " >&6
3494 if test -n "$CC"; then
3495 ac_cv_prog_CC="$CC" # Let the user override the test.
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 test -z "$as_dir" && as_dir=.
3502 for ac_exec_ext in '' $ac_executable_extensions; do
3503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3504 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 if test -n "$CC"; then
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3517 $as_echo "$CC" >&6; }
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520 $as_echo "no" >&6; }
3524 test -n "$CC" && break
3527 if test -z "$CC"; then
3529 for ac_prog in cl.exe
3531 # Extract the first word of "$ac_prog", so it can be a program name with args.
3532 set dummy $ac_prog; ac_word=$2
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534 $as_echo_n "checking for $ac_word... " >&6; }
3535 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3536 $as_echo_n "(cached) " >&6
3538 if test -n "$ac_ct_CC"; then
3539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3548 ac_cv_prog_ac_ct_CC="$ac_prog"
3549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559 if test -n "$ac_ct_CC"; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3561 $as_echo "$ac_ct_CC" >&6; }
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3568 test -n "$ac_ct_CC" && break
3571 if test "x$ac_ct_CC" = x; then
3574 case $cross_compiling:$ac_tool_warned in
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3578 ac_tool_warned=yes ;;
3587 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error "no acceptable C compiler found in \$PATH
3590 See \`config.log' for more details." "$LINENO" 5; }
3592 # Provide some information about the compiler.
3593 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3596 for ac_option in --version -v -V -qversion; do
3597 { { ac_try="$ac_compiler $ac_option >&5"
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3603 $as_echo "$ac_try_echo"; } >&5
3604 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3606 if test -s conftest.err; then
3608 ... rest of stderr output deleted ...
3609 10q' conftest.err >conftest.er1
3610 cat conftest.er1 >&5
3612 rm -f conftest.er1 conftest.err
3613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614 test $ac_status = 0; }
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3628 ac_clean_files_save=$ac_clean_files
3629 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3630 # Try to create an executable without -o first, disregard a.out.
3631 # It will help us diagnose broken compilers, and finding out an intuition
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3634 $as_echo_n "checking whether the C compiler works... " >&6; }
3635 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3637 # The possible output files:
3638 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3641 for ac_file in $ac_files
3644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3645 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3650 if { { ac_try="$ac_link_default"
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656 $as_echo "$ac_try_echo"; } >&5
3657 (eval "$ac_link_default") 2>&5
3659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660 test $ac_status = 0; }; then :
3661 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3662 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3663 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3664 # so that the user can short-circuit this test for compilers unknown to
3666 for ac_file in $ac_files ''
3668 test -f "$ac_file" || continue
3670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3673 # We found the default executable, but exeext='' is most
3677 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3679 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3681 # We set ac_cv_exeext here because the later test for it is not
3682 # safe: cross compilers may not add the suffix if given an `-o'
3683 # argument, so we may need to know it at that point already.
3684 # Even if this section looks crufty: it has the advantage of
3691 test "$ac_cv_exeext" = no && ac_cv_exeext=
3696 if test -z "$ac_file"; then :
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3699 $as_echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3704 { as_fn_set_status 77
3705 as_fn_error "C compiler cannot create executables
3706 See \`config.log' for more details." "$LINENO" 5; }; }
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3709 $as_echo "yes" >&6; }
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3712 $as_echo_n "checking for C compiler default output file name... " >&6; }
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3714 $as_echo "$ac_file" >&6; }
3715 ac_exeext=$ac_cv_exeext
3717 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3718 ac_clean_files=$ac_clean_files_save
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3720 $as_echo_n "checking for suffix of executables... " >&6; }
3721 if { { ac_try="$ac_link"
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727 $as_echo "$ac_try_echo"; } >&5
3728 (eval "$ac_link") 2>&5
3730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3731 test $ac_status = 0; }; then :
3732 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3733 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3734 # work properly (i.e., refer to `conftest.exe'), while it won't with
3736 for ac_file in conftest.exe conftest conftest.*; do
3737 test -f "$ac_file" || continue
3739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3740 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3748 as_fn_error "cannot compute suffix of executables: cannot compile and link
3749 See \`config.log' for more details." "$LINENO" 5; }
3751 rm -f conftest conftest$ac_cv_exeext
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3753 $as_echo "$ac_cv_exeext" >&6; }
3755 rm -f conftest.$ac_ext
3756 EXEEXT=$ac_cv_exeext
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3764 FILE *f = fopen ("conftest.out", "w");
3765 return ferror (f) || fclose (f) != 0;
3771 ac_clean_files="$ac_clean_files conftest.out"
3772 # Check that the compiler produces executables we can run. If not, either
3773 # the compiler is broken, or we cross compile.
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3775 $as_echo_n "checking whether we are cross compiling... " >&6; }
3776 if test "$cross_compiling" != yes; then
3777 { { ac_try="$ac_link"
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783 $as_echo "$ac_try_echo"; } >&5
3784 (eval "$ac_link") 2>&5
3786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787 test $ac_status = 0; }
3788 if { ac_try='./conftest$ac_cv_exeext'
3789 { { case "(($ac_try" in
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3794 $as_echo "$ac_try_echo"; } >&5
3795 (eval "$ac_try") 2>&5
3797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798 test $ac_status = 0; }; }; then
3801 if test "$cross_compiling" = maybe; then
3804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3806 as_fn_error "cannot run C compiled programs.
3807 If you meant to cross compile, use \`--host'.
3808 See \`config.log' for more details." "$LINENO" 5; }
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3813 $as_echo "$cross_compiling" >&6; }
3815 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3816 ac_clean_files=$ac_clean_files_save
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3818 $as_echo_n "checking for suffix of object files... " >&6; }
3819 if test "${ac_cv_objext+set}" = set; then :
3820 $as_echo_n "(cached) " >&6
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3833 rm -f conftest.o conftest.obj
3834 if { { ac_try="$ac_compile"
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3840 $as_echo "$ac_try_echo"; } >&5
3841 (eval "$ac_compile") 2>&5
3843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844 test $ac_status = 0; }; then :
3845 for ac_file in conftest.o conftest.obj conftest.*; do
3846 test -f "$ac_file" || continue;
3848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3849 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3854 $as_echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3859 as_fn_error "cannot compute suffix of object files: cannot compile
3860 See \`config.log' for more details." "$LINENO" 5; }
3862 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3865 $as_echo "$ac_cv_objext" >&6; }
3866 OBJEXT=$ac_cv_objext
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3869 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3870 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3871 $as_echo_n "(cached) " >&6
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3887 if ac_fn_c_try_compile "$LINENO"; then :
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3897 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3898 if test $ac_compiler_gnu = yes; then
3903 ac_test_CFLAGS=${CFLAGS+set}
3904 ac_save_CFLAGS=$CFLAGS
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3906 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3907 if test "${ac_cv_prog_cc_g+set}" = set; then :
3908 $as_echo_n "(cached) " >&6
3910 ac_save_c_werror_flag=$ac_c_werror_flag
3911 ac_c_werror_flag=yes
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3925 if ac_fn_c_try_compile "$LINENO"; then :
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3940 if ac_fn_c_try_compile "$LINENO"; then :
3943 ac_c_werror_flag=$ac_save_c_werror_flag
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h. */
3956 if ac_fn_c_try_compile "$LINENO"; then :
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964 ac_c_werror_flag=$ac_save_c_werror_flag
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3967 $as_echo "$ac_cv_prog_cc_g" >&6; }
3968 if test "$ac_test_CFLAGS" = set; then
3969 CFLAGS=$ac_save_CFLAGS
3970 elif test $ac_cv_prog_cc_g = yes; then
3971 if test "$GCC" = yes; then
3977 if test "$GCC" = yes; then
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3984 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3985 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3986 $as_echo_n "(cached) " >&6
3988 ac_cv_prog_cc_c89=no
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3994 #include <sys/types.h>
3995 #include <sys/stat.h>
3996 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3997 struct buf { int x; };
3998 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3999 static char *e (p, i)
4005 static char *f (char * (*g) (char **, int), char **p, ...)
4010 s = g (p, va_arg (v,int));
4015 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4016 function prototypes and stuff, but not '\xHH' hex character constants.
4017 These don't provoke an error unfortunately, instead are silently treated
4018 as 'x'. The following induces an error, until -std is added to get
4019 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4020 array size at least. It's necessary to write '\x00'==0 to get something
4021 that's true only with -std. */
4022 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4024 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4025 inside strings and character constants. */
4027 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4029 int test (int i, double x);
4030 struct s1 {int (*f) (int a);};
4031 struct s2 {int (*f) (double a);};
4032 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4038 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4043 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4044 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4046 CC="$ac_save_CC $ac_arg"
4047 if ac_fn_c_try_compile "$LINENO"; then :
4048 ac_cv_prog_cc_c89=$ac_arg
4050 rm -f core conftest.err conftest.$ac_objext
4051 test "x$ac_cv_prog_cc_c89" != "xno" && break
4053 rm -f conftest.$ac_ext
4058 case "x$ac_cv_prog_cc_c89" in
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4061 $as_echo "none needed" >&6; } ;;
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4064 $as_echo "unsupported" >&6; } ;;
4066 CC="$CC $ac_cv_prog_cc_c89"
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4068 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4070 if test "x$ac_cv_prog_cc_c89" != xno; then :
4075 ac_cpp='$CPP $CPPFLAGS'
4076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4081 ac_cpp='$CXXCPP $CPPFLAGS'
4082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4085 if test -z "$CXX"; then
4086 if test -n "$CCC"; then
4089 if test -n "$ac_tool_prefix"; then
4090 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4092 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4093 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4095 $as_echo_n "checking for $ac_word... " >&6; }
4096 if test "${ac_cv_prog_CXX+set}" = set; then :
4097 $as_echo_n "(cached) " >&6
4099 if test -n "$CXX"; then
4100 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 test -z "$as_dir" && as_dir=.
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4109 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 if test -n "$CXX"; then
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4122 $as_echo "$CXX" >&6; }
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4125 $as_echo "no" >&6; }
4129 test -n "$CXX" && break
4132 if test -z "$CXX"; then
4134 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4136 # Extract the first word of "$ac_prog", so it can be a program name with args.
4137 set dummy $ac_prog; ac_word=$2
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139 $as_echo_n "checking for $ac_word... " >&6; }
4140 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4141 $as_echo_n "(cached) " >&6
4143 if test -n "$ac_ct_CXX"; then
4144 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4153 ac_cv_prog_ac_ct_CXX="$ac_prog"
4154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4164 if test -n "$ac_ct_CXX"; then
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4166 $as_echo "$ac_ct_CXX" >&6; }
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169 $as_echo "no" >&6; }
4173 test -n "$ac_ct_CXX" && break
4176 if test "x$ac_ct_CXX" = x; then
4179 case $cross_compiling:$ac_tool_warned in
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4183 ac_tool_warned=yes ;;
4191 # Provide some information about the compiler.
4192 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4195 for ac_option in --version -v -V -qversion; do
4196 { { ac_try="$ac_compiler $ac_option >&5"
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4202 $as_echo "$ac_try_echo"; } >&5
4203 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4205 if test -s conftest.err; then
4207 ... rest of stderr output deleted ...
4208 10q' conftest.err >conftest.er1
4209 cat conftest.er1 >&5
4211 rm -f conftest.er1 conftest.err
4212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4213 test $ac_status = 0; }
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4217 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4218 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4219 $as_echo_n "(cached) " >&6
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4235 if ac_fn_cxx_try_compile "$LINENO"; then :
4240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4245 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4246 if test $ac_compiler_gnu = yes; then
4251 ac_test_CXXFLAGS=${CXXFLAGS+set}
4252 ac_save_CXXFLAGS=$CXXFLAGS
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4254 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4255 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4256 $as_echo_n "(cached) " >&6
4258 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4259 ac_cxx_werror_flag=yes
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4273 if ac_fn_cxx_try_compile "$LINENO"; then :
4274 ac_cv_prog_cxx_g=yes
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4288 if ac_fn_cxx_try_compile "$LINENO"; then :
4291 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4304 if ac_fn_cxx_try_compile "$LINENO"; then :
4305 ac_cv_prog_cxx_g=yes
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4315 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4316 if test "$ac_test_CXXFLAGS" = set; then
4317 CXXFLAGS=$ac_save_CXXFLAGS
4318 elif test $ac_cv_prog_cxx_g = yes; then
4319 if test "$GXX" = yes; then
4325 if test "$GXX" = yes; then
4332 ac_cpp='$CPP $CPPFLAGS'
4333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337 if test "x$CC" != xcc; then
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4339 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4342 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4344 set dummy $CC; ac_cc=`$as_echo "$2" |
4345 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4346 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4347 $as_echo_n "(cached) " >&6
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4360 # Make sure it works both with $CC and with simple cc.
4361 # We do the test twice because some compilers refuse to overwrite an
4362 # existing .o file with -o, though they will create one.
4363 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4365 if { { case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4370 $as_echo "$ac_try_echo"; } >&5
4371 (eval "$ac_try") 2>&5
4373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4374 test $ac_status = 0; } &&
4375 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4380 $as_echo "$ac_try_echo"; } >&5
4381 (eval "$ac_try") 2>&5
4383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4384 test $ac_status = 0; };
4386 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4387 if test "x$CC" != xcc; then
4388 # Test first that cc exists at all.
4389 if { ac_try='cc -c conftest.$ac_ext >&5'
4390 { { case "(($ac_try" in
4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392 *) ac_try_echo=$ac_try;;
4394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4395 $as_echo "$ac_try_echo"; } >&5
4396 (eval "$ac_try") 2>&5
4398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4399 test $ac_status = 0; }; }; then
4400 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4402 if { { case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407 $as_echo "$ac_try_echo"; } >&5
4408 (eval "$ac_try") 2>&5
4410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4411 test $ac_status = 0; } &&
4412 test -f conftest2.$ac_objext && { { 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; };
4426 # cc exists but doesn't like -o.
4427 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4432 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4434 rm -f core conftest*
4437 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4439 $as_echo "yes" >&6; }
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4442 $as_echo "no" >&6; }
4444 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4449 ac_cpp='$CPP $CPPFLAGS'
4450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4454 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4455 # On Suns, sometimes $CPP names a directory.
4456 if test -n "$CPP" && test -d "$CPP"; then
4459 if test -z "$CPP"; then
4460 if test "${ac_cv_prog_CPP+set}" = set; then :
4461 $as_echo_n "(cached) " >&6
4463 # Double quotes because CPP needs to be expanded
4464 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4467 for ac_c_preproc_warn_flag in '' yes
4469 # Use a header file that comes with gcc, so configuring glibc
4470 # with a fresh cross-compiler works.
4471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4472 # <limits.h> exists even on freestanding compilers.
4473 # On the NeXT, cc -E runs the code through the compiler's parser,
4474 # not just through cpp. "Syntax error" is here to catch this case.
4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4478 # include <limits.h>
4480 # include <assert.h>
4484 if ac_fn_c_try_cpp "$LINENO"; then :
4487 # Broken: fails on valid input.
4490 rm -f conftest.err conftest.$ac_ext
4492 # OK, works on sane cases. Now check whether nonexistent headers
4493 # can be detected and how.
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4496 #include <ac_nonexistent.h>
4498 if ac_fn_c_try_cpp "$LINENO"; then :
4499 # Broken: success on invalid input.
4502 # Passes both tests.
4506 rm -f conftest.err conftest.$ac_ext
4509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4510 rm -f conftest.err conftest.$ac_ext
4511 if $ac_preproc_ok; then :
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4524 $as_echo "$CPP" >&6; }
4526 for ac_c_preproc_warn_flag in '' yes
4528 # Use a header file that comes with gcc, so configuring glibc
4529 # with a fresh cross-compiler works.
4530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4531 # <limits.h> exists even on freestanding compilers.
4532 # On the NeXT, cc -E runs the code through the compiler's parser,
4533 # not just through cpp. "Syntax error" is here to catch this case.
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4537 # include <limits.h>
4539 # include <assert.h>
4543 if ac_fn_c_try_cpp "$LINENO"; then :
4546 # Broken: fails on valid input.
4549 rm -f conftest.err conftest.$ac_ext
4551 # OK, works on sane cases. Now check whether nonexistent headers
4552 # can be detected and how.
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4555 #include <ac_nonexistent.h>
4557 if ac_fn_c_try_cpp "$LINENO"; then :
4558 # Broken: success on invalid input.
4561 # Passes both tests.
4565 rm -f conftest.err conftest.$ac_ext
4568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4569 rm -f conftest.err conftest.$ac_ext
4570 if $ac_preproc_ok; then :
4573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4575 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4576 See \`config.log' for more details." "$LINENO" 5; }
4580 ac_cpp='$CPP $CPPFLAGS'
4581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4587 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4588 if test "${ac_cv_path_GREP+set}" = set; then :
4589 $as_echo_n "(cached) " >&6
4591 if test -z "$GREP"; then
4592 ac_path_GREP_found=false
4593 # Loop through the user's path and test for each of PROGNAME-LIST
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4598 test -z "$as_dir" && as_dir=.
4599 for ac_prog in grep ggrep; do
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4602 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4603 # Check for GNU ac_path_GREP and select it if it is found.
4604 # Check for GNU $ac_path_GREP
4605 case `"$ac_path_GREP" --version 2>&1` in
4607 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4610 $as_echo_n 0123456789 >"conftest.in"
4613 cat "conftest.in" "conftest.in" >"conftest.tmp"
4614 mv "conftest.tmp" "conftest.in"
4615 cp "conftest.in" "conftest.nl"
4616 $as_echo 'GREP' >> "conftest.nl"
4617 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4618 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4619 as_fn_arith $ac_count + 1 && ac_count=$as_val
4620 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4621 # Best one so far, save it but keep looking for a better one
4622 ac_cv_path_GREP="$ac_path_GREP"
4623 ac_path_GREP_max=$ac_count
4625 # 10*(2^10) chars as input seems more than enough
4626 test $ac_count -gt 10 && break
4628 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4631 $ac_path_GREP_found && break 3
4636 if test -z "$ac_cv_path_GREP"; then
4637 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4640 ac_cv_path_GREP=$GREP
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4645 $as_echo "$ac_cv_path_GREP" >&6; }
4646 GREP="$ac_cv_path_GREP"
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4650 $as_echo_n "checking for egrep... " >&6; }
4651 if test "${ac_cv_path_EGREP+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4654 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4655 then ac_cv_path_EGREP="$GREP -E"
4657 if test -z "$EGREP"; then
4658 ac_path_EGREP_found=false
4659 # Loop through the user's path and test for each of PROGNAME-LIST
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4664 test -z "$as_dir" && as_dir=.
4665 for ac_prog in egrep; do
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4668 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4669 # Check for GNU ac_path_EGREP and select it if it is found.
4670 # Check for GNU $ac_path_EGREP
4671 case `"$ac_path_EGREP" --version 2>&1` in
4673 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4676 $as_echo_n 0123456789 >"conftest.in"
4679 cat "conftest.in" "conftest.in" >"conftest.tmp"
4680 mv "conftest.tmp" "conftest.in"
4681 cp "conftest.in" "conftest.nl"
4682 $as_echo 'EGREP' >> "conftest.nl"
4683 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4685 as_fn_arith $ac_count + 1 && ac_count=$as_val
4686 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4687 # Best one so far, save it but keep looking for a better one
4688 ac_cv_path_EGREP="$ac_path_EGREP"
4689 ac_path_EGREP_max=$ac_count
4691 # 10*(2^10) chars as input seems more than enough
4692 test $ac_count -gt 10 && break
4694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4697 $ac_path_EGREP_found && break 3
4702 if test -z "$ac_cv_path_EGREP"; then
4703 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4706 ac_cv_path_EGREP=$EGREP
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4712 $as_echo "$ac_cv_path_EGREP" >&6; }
4713 EGREP="$ac_cv_path_EGREP"
4716 if test $ac_cv_c_compiler_gnu = yes; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4718 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4719 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4722 ac_pattern="Autoconf.*'x'"
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4729 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4730 ac_cv_prog_gcc_traditional=yes
4732 ac_cv_prog_gcc_traditional=no
4737 if test $ac_cv_prog_gcc_traditional = no; then
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4744 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4745 ac_cv_prog_gcc_traditional=yes
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4752 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4753 if test $ac_cv_prog_gcc_traditional = yes; then
4754 CC="$CC -traditional"
4758 BASECC=`basename $CC`
4760 if test "x$BASECC" = xgcc; then
4761 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4765 # Extract the first word of "$CXX", so it can be a program name with args.
4766 set dummy $CXX; ac_word=$2
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768 $as_echo_n "checking for $ac_word... " >&6; }
4769 if test "${ac_cv_path_CXX+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
4774 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4797 if test -n "$CXX"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4799 $as_echo "$CXX" >&6; }
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4806 if test ! -e $CXX; then
4807 as_fn_error "Unable to find C++ compiler" "$LINENO" 5
4810 # Find a good install program. We prefer a C program (faster),
4811 # so one script is as good as another. But avoid the broken or
4812 # incompatible versions:
4813 # SysV /etc/install, /usr/sbin/install
4814 # SunOS /usr/etc/install
4815 # IRIX /sbin/install
4817 # AmigaOS /C/install, which installs bootblocks on floppy discs
4818 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4819 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4820 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4821 # OS/2's system install, which has a completely different semantic
4822 # ./install, which can be erroneously created by make from ./install.sh.
4823 # Reject install programs that cannot install multiple files.
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4825 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4826 if test -z "$INSTALL"; then
4827 if test "${ac_cv_path_install+set}" = set; then :
4828 $as_echo_n "(cached) " >&6
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 test -z "$as_dir" && as_dir=.
4835 # Account for people who put trailing slashes in PATH elements.
4836 case $as_dir/ in #((
4837 ./ | .// | /[cC]/* | \
4838 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4839 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4842 # OSF1 and SCO ODT 3.0 have their own names for install.
4843 # Don't use installbsd from OSF since it installs stuff as root
4845 for ac_prog in ginstall scoinst install; do
4846 for ac_exec_ext in '' $ac_executable_extensions; do
4847 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4848 if test $ac_prog = install &&
4849 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4850 # AIX install. It has an incompatible calling convention.
4852 elif test $ac_prog = install &&
4853 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4854 # program-specific install script used by HP pwplus--don't use.
4857 rm -rf conftest.one conftest.two conftest.dir
4858 echo one > conftest.one
4859 echo two > conftest.two
4861 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4862 test -s conftest.one && test -s conftest.two &&
4863 test -s conftest.dir/conftest.one &&
4864 test -s conftest.dir/conftest.two
4866 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4879 rm -rf conftest.one conftest.two conftest.dir
4882 if test "${ac_cv_path_install+set}" = set; then
4883 INSTALL=$ac_cv_path_install
4885 # As a last resort, use the slow shell script. Don't cache a
4886 # value for INSTALL within a source directory, because that will
4887 # break other packages using the cache if that directory is
4888 # removed, or if the value is a relative name.
4889 INSTALL=$ac_install_sh
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4893 $as_echo "$INSTALL" >&6; }
4895 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4896 # It thinks the first close brace ends the variable substitution.
4897 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4899 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4901 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4903 # Extract the first word of "mv", so it can be a program name with args.
4904 set dummy mv; ac_word=$2
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if test "${ac_cv_path_MV+set}" = set; then :
4908 $as_echo_n "(cached) " >&6
4912 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4935 if test -n "$MV"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4937 $as_echo "$MV" >&6; }
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4944 # Extract the first word of "rm", so it can be a program name with args.
4945 set dummy rm; ac_word=$2
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947 $as_echo_n "checking for $ac_word... " >&6; }
4948 if test "${ac_cv_path_REMOVE+set}" = set; then :
4949 $as_echo_n "(cached) " >&6
4953 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 test -z "$as_dir" && as_dir=.
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4975 REMOVE=$ac_cv_path_REMOVE
4976 if test -n "$REMOVE"; then
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4978 $as_echo "$REMOVE" >&6; }
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981 $as_echo "no" >&6; }
4985 # Extract the first word of "cp", so it can be a program name with args.
4986 set dummy cp; ac_word=$2
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4988 $as_echo_n "checking for $ac_word... " >&6; }
4989 if test "${ac_cv_path_CP+set}" = set; then :
4990 $as_echo_n "(cached) " >&6
4994 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 test -z "$as_dir" && as_dir=.
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5004 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5012 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5017 if test -n "$CP"; then
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5019 $as_echo "$CP" >&6; }
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5026 # Extract the first word of "sed", so it can be a program name with args.
5027 set dummy sed; ac_word=$2
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 $as_echo_n "checking for $ac_word... " >&6; }
5030 if test "${ac_cv_path_SED+set}" = set; then :
5031 $as_echo_n "(cached) " >&6
5035 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5045 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5053 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5058 if test -n "$SED"; then
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5060 $as_echo "$SED" >&6; }
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063 $as_echo "no" >&6; }
5067 # Extract the first word of "echo", so it can be a program name with args.
5068 set dummy echo; ac_word=$2
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 $as_echo_n "checking for $ac_word... " >&6; }
5071 if test "${ac_cv_path_ECHO+set}" = set; then :
5072 $as_echo_n "(cached) " >&6
5076 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 test -z "$as_dir" && as_dir=.
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5086 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5098 ECHO=$ac_cv_path_ECHO
5099 if test -n "$ECHO"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5101 $as_echo "$ECHO" >&6; }
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5108 # Extract the first word of "cmp", so it can be a program name with args.
5109 set dummy cmp; ac_word=$2
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5111 $as_echo_n "checking for $ac_word... " >&6; }
5112 if test "${ac_cv_path_CMP+set}" = set; then :
5113 $as_echo_n "(cached) " >&6
5117 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5140 if test -n "$CMP"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5142 $as_echo "$CMP" >&6; }
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 $as_echo "no" >&6; }
5149 # Extract the first word of "tbl", so it can be a program name with args.
5150 set dummy tbl; ac_word=$2
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152 $as_echo_n "checking for $ac_word... " >&6; }
5153 if test "${ac_cv_path_TBL+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5158 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5181 if test -n "$TBL"; then
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5183 $as_echo "$TBL" >&6; }
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5190 # Extract the first word of "ar", so it can be a program name with args.
5191 set dummy ar; ac_word=$2
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193 $as_echo_n "checking for $ac_word... " >&6; }
5194 if test "${ac_cv_path_AR+set}" = set; then :
5195 $as_echo_n "(cached) " >&6
5199 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5209 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5222 if test -n "$AR"; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5224 $as_echo "$AR" >&6; }
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5231 # Extract the first word of "openssl", so it can be a program name with args.
5232 set dummy openssl; ac_word=$2
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234 $as_echo_n "checking for $ac_word... " >&6; }
5235 if test "${ac_cv_path_OPENSSL+set}" = set; then :
5236 $as_echo_n "(cached) " >&6
5240 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5262 OPENSSL=$ac_cv_path_OPENSSL
5263 if test -n "$OPENSSL"; then
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5265 $as_echo "$OPENSSL" >&6; }
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 $as_echo "no" >&6; }
5272 # Extract the first word of "mtx", so it can be a program name with args.
5273 set dummy mtx; ac_word=$2
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5275 $as_echo_n "checking for $ac_word... " >&6; }
5276 if test "${ac_cv_path_MTX+set}" = set; then :
5277 $as_echo_n "(cached) " >&6
5281 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5304 if test -n "$MTX"; then
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5306 $as_echo "$MTX" >&6; }
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 $as_echo "no" >&6; }
5313 # Extract the first word of "dd", so it can be a program name with args.
5314 set dummy dd; ac_word=$2
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if test "${ac_cv_path_DD+set}" = set; then :
5318 $as_echo_n "(cached) " >&6
5322 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 test -z "$as_dir" && as_dir=.
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5332 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5345 if test -n "$DD"; then
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5347 $as_echo "$DD" >&6; }
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 $as_echo "no" >&6; }
5354 # Extract the first word of "mkisofs", so it can be a program name with args.
5355 set dummy mkisofs; ac_word=$2
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357 $as_echo_n "checking for $ac_word... " >&6; }
5358 if test "${ac_cv_path_MKISOFS+set}" = set; then :
5359 $as_echo_n "(cached) " >&6
5363 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5385 MKISOFS=$ac_cv_path_MKISOFS
5386 if test -n "$MKISOFS"; then
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5388 $as_echo "$MKISOFS" >&6; }
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5391 $as_echo "no" >&6; }
5395 # Extract the first word of "python", so it can be a program name with args.
5396 set dummy python; ac_word=$2
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if test "${ac_cv_path_PYTHON+set}" = set; then :
5400 $as_echo_n "(cached) " >&6
5404 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5414 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5426 PYTHON=$ac_cv_path_PYTHON
5427 if test -n "$PYTHON"; then
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5429 $as_echo "$PYTHON" >&6; }
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432 $as_echo "no" >&6; }
5436 # Extract the first word of "growisofs", so it can be a program name with args.
5437 set dummy growisofs; ac_word=$2
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5439 $as_echo_n "checking for $ac_word... " >&6; }
5440 if test "${ac_cv_path_GROWISOFS+set}" = set; then :
5441 $as_echo_n "(cached) " >&6
5445 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 test -z "$as_dir" && as_dir=.
5453 for ac_exec_ext in '' $ac_executable_extensions; do
5454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5455 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5467 GROWISOFS=$ac_cv_path_GROWISOFS
5468 if test -n "$GROWISOFS"; then
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5470 $as_echo "$GROWISOFS" >&6; }
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 $as_echo "no" >&6; }
5477 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5478 set dummy dvd+rw-mediainfo; ac_word=$2
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480 $as_echo_n "checking for $ac_word... " >&6; }
5481 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then :
5482 $as_echo_n "(cached) " >&6
5484 case $DVDRWMEDIAINFO in
5486 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 test -z "$as_dir" && as_dir=.
5494 for ac_exec_ext in '' $ac_executable_extensions; do
5495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5496 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5508 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5509 if test -n "$DVDRWMEDIAINFO"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5511 $as_echo "$DVDRWMEDIAINFO" >&6; }
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5518 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5519 set dummy dvd+rw-format; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then :
5523 $as_echo_n "(cached) " >&6
5525 case $DVDRWFORMAT in
5527 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 test -z "$as_dir" && as_dir=.
5535 for ac_exec_ext in '' $ac_executable_extensions; do
5536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5537 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5549 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5550 if test -n "$DVDRWFORMAT"; then
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5552 $as_echo "$DVDRWFORMAT" >&6; }
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 $as_echo "no" >&6; }
5559 # Extract the first word of "pkg-config", so it can be a program name with args.
5560 set dummy pkg-config; ac_word=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
5564 $as_echo_n "(cached) " >&6
5568 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 test -z "$as_dir" && as_dir=.
5576 for ac_exec_ext in '' $ac_executable_extensions; do
5577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5578 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5590 PKGCONFIG=$ac_cv_path_PKGCONFIG
5591 if test -n "$PKGCONFIG"; then
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5593 $as_echo "$PKGCONFIG" >&6; }
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5600 # Extract the first word of "qmake", so it can be a program name with args.
5601 set dummy qmake; ac_word=$2
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603 $as_echo_n "checking for $ac_word... " >&6; }
5604 if test "${ac_cv_path_QMAKE+set}" = set; then :
5605 $as_echo_n "(cached) " >&6
5609 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5619 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5631 QMAKE=$ac_cv_path_QMAKE
5632 if test -n "$QMAKE"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5634 $as_echo "$QMAKE" >&6; }
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5641 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5642 set dummy qmake-qt4; ac_word=$2
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644 $as_echo_n "checking for $ac_word... " >&6; }
5645 if test "${ac_cv_path_QMAKEQT4+set}" = set; then :
5646 $as_echo_n "(cached) " >&6
5650 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5660 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5668 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5672 QMAKEQT4=$ac_cv_path_QMAKEQT4
5673 if test -n "$QMAKEQT4"; then
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKEQT4" >&5
5675 $as_echo "$QMAKEQT4" >&6; }
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678 $as_echo "no" >&6; }
5682 # Extract the first word of "gmake", so it can be a program name with args.
5683 set dummy gmake; ac_word=$2
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5685 $as_echo_n "checking for $ac_word... " >&6; }
5686 if test "${ac_cv_path_GMAKE+set}" = set; then :
5687 $as_echo_n "(cached) " >&6
5691 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 test -z "$as_dir" && as_dir=.
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5701 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5713 GMAKE=$ac_cv_path_GMAKE
5714 if test -n "$GMAKE"; then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5716 $as_echo "$GMAKE" >&6; }
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719 $as_echo "no" >&6; }
5724 if test "x$WXCONFIG" = x; then
5727 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5728 set dummy ${WXCONFIG}; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if test "${ac_cv_path_WXCONFIG+set}" = set; then :
5732 $as_echo_n "(cached) " >&6
5736 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 test -z "$as_dir" && as_dir=.
5744 for ac_exec_ext in '' $ac_executable_extensions; do
5745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5746 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5758 WXCONFIG=$ac_cv_path_WXCONFIG
5759 if test -n "$WXCONFIG"; then
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5761 $as_echo "$WXCONFIG" >&6; }
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764 $as_echo "no" >&6; }
5769 # Extract the first word of "cdrecord", so it can be a program name with args.
5770 set dummy cdrecord; ac_word=$2
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772 $as_echo_n "checking for $ac_word... " >&6; }
5773 if test "${ac_cv_path_CDRECORD+set}" = set; then :
5774 $as_echo_n "(cached) " >&6
5778 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 test -z "$as_dir" && as_dir=.
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5788 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5796 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5800 CDRECORD=$ac_cv_path_CDRECORD
5801 if test -n "$CDRECORD"; then
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5803 $as_echo "$CDRECORD" >&6; }
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806 $as_echo "no" >&6; }
5810 # Extract the first word of "pidof", so it can be a program name with args.
5811 set dummy pidof; ac_word=$2
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5813 $as_echo_n "checking for $ac_word... " >&6; }
5814 if test "${ac_cv_path_PIDOF+set}" = set; then :
5815 $as_echo_n "(cached) " >&6
5819 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 test -z "$as_dir" && as_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5829 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5841 PIDOF=$ac_cv_path_PIDOF
5842 if test -n "$PIDOF"; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5844 $as_echo "$PIDOF" >&6; }
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847 $as_echo "no" >&6; }
5851 for ac_prog in gawk mawk nawk awk
5853 # Extract the first word of "$ac_prog", so it can be a program name with args.
5854 set dummy $ac_prog; ac_word=$2
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856 $as_echo_n "checking for $ac_word... " >&6; }
5857 if test "${ac_cv_prog_AWK+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5860 if test -n "$AWK"; then
5861 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5870 ac_cv_prog_AWK="$ac_prog"
5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 if test -n "$AWK"; then
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5883 $as_echo "$AWK" >&6; }
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 $as_echo "no" >&6; }
5890 test -n "$AWK" && break
5893 # Some AWK programs fail, so test it and warn the user
5894 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5895 { if ((prog == $2) || (("(" prog ")") == $2) ||
5896 (("" prog "") == $2) ||
5897 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5899 as_fn_error "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5900 The regex engine of $AWK is too broken to be used you
5901 might want to install GNU AWK.
5902 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5905 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5906 set dummy $THE_AWK; ac_word=$2
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908 $as_echo_n "checking for $ac_word... " >&6; }
5909 if test "${ac_cv_path_AWK+set}" = set; then :
5910 $as_echo_n "(cached) " >&6
5914 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 test -z "$as_dir" && as_dir=.
5922 for ac_exec_ext in '' $ac_executable_extensions; do
5923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5924 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5937 if test -n "$AWK"; then
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5939 $as_echo "$AWK" >&6; }
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 $as_echo "no" >&6; }
5948 test -n "$ARFLAG" || ARFLAGS="cr"
5960 # Check whether --enable-libtool was given.
5961 if test "${enable_libtool+set}" = set; then :
5962 enableval=$enable_libtool;
5963 if test x$enableval = xno; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5973 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5978 macro_version='2.2.6'
5979 macro_revision='1.3012'
5993 ltmain="$ac_aux_dir/ltmain.sh"
5995 # Make sure we can run config.sub.
5996 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5997 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6000 $as_echo_n "checking build system type... " >&6; }
6001 if test "${ac_cv_build+set}" = set; then :
6002 $as_echo_n "(cached) " >&6
6004 ac_build_alias=$build_alias
6005 test "x$ac_build_alias" = x &&
6006 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6007 test "x$ac_build_alias" = x &&
6008 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6009 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6010 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6014 $as_echo "$ac_cv_build" >&6; }
6015 case $ac_cv_build in
6017 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6020 ac_save_IFS=$IFS; IFS='-'
6026 # Remember, the first character of IFS is used to create $*,
6027 # except with old shells:
6030 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6034 $as_echo_n "checking host system type... " >&6; }
6035 if test "${ac_cv_host+set}" = set; then :
6036 $as_echo_n "(cached) " >&6
6038 if test "x$host_alias" = x; then
6039 ac_cv_host=$ac_cv_build
6041 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6042 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6047 $as_echo "$ac_cv_host" >&6; }
6050 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6053 ac_save_IFS=$IFS; IFS='-'
6059 # Remember, the first character of IFS is used to create $*,
6060 # except with old shells:
6063 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6067 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6068 if test "${ac_cv_path_SED+set}" = set; then :
6069 $as_echo_n "(cached) " >&6
6071 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6072 for ac_i in 1 2 3 4 5 6 7; do
6073 ac_script="$ac_script$as_nl$ac_script"
6075 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6076 { ac_script=; unset ac_script;}
6077 if test -z "$SED"; then
6078 ac_path_SED_found=false
6079 # Loop through the user's path and test for each of PROGNAME-LIST
6080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 test -z "$as_dir" && as_dir=.
6085 for ac_prog in sed gsed; do
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6088 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6089 # Check for GNU ac_path_SED and select it if it is found.
6090 # Check for GNU $ac_path_SED
6091 case `"$ac_path_SED" --version 2>&1` in
6093 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6096 $as_echo_n 0123456789 >"conftest.in"
6099 cat "conftest.in" "conftest.in" >"conftest.tmp"
6100 mv "conftest.tmp" "conftest.in"
6101 cp "conftest.in" "conftest.nl"
6102 $as_echo '' >> "conftest.nl"
6103 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6104 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6105 as_fn_arith $ac_count + 1 && ac_count=$as_val
6106 if test $ac_count -gt ${ac_path_SED_max-0}; then
6107 # Best one so far, save it but keep looking for a better one
6108 ac_cv_path_SED="$ac_path_SED"
6109 ac_path_SED_max=$ac_count
6111 # 10*(2^10) chars as input seems more than enough
6112 test $ac_count -gt 10 && break
6114 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6117 $ac_path_SED_found && break 3
6122 if test -z "$ac_cv_path_SED"; then
6123 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6131 $as_echo "$ac_cv_path_SED" >&6; }
6132 SED="$ac_cv_path_SED"
6135 test -z "$SED" && SED=sed
6136 Xsed="$SED -e 1s/^X//"
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6149 $as_echo_n "checking for fgrep... " >&6; }
6150 if test "${ac_cv_path_FGREP+set}" = set; then :
6151 $as_echo_n "(cached) " >&6
6153 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6154 then ac_cv_path_FGREP="$GREP -F"
6156 if test -z "$FGREP"; then
6157 ac_path_FGREP_found=false
6158 # Loop through the user's path and test for each of PROGNAME-LIST
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6163 test -z "$as_dir" && as_dir=.
6164 for ac_prog in fgrep; do
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6167 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6168 # Check for GNU ac_path_FGREP and select it if it is found.
6169 # Check for GNU $ac_path_FGREP
6170 case `"$ac_path_FGREP" --version 2>&1` in
6172 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6175 $as_echo_n 0123456789 >"conftest.in"
6178 cat "conftest.in" "conftest.in" >"conftest.tmp"
6179 mv "conftest.tmp" "conftest.in"
6180 cp "conftest.in" "conftest.nl"
6181 $as_echo 'FGREP' >> "conftest.nl"
6182 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6183 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6184 as_fn_arith $ac_count + 1 && ac_count=$as_val
6185 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6186 # Best one so far, save it but keep looking for a better one
6187 ac_cv_path_FGREP="$ac_path_FGREP"
6188 ac_path_FGREP_max=$ac_count
6190 # 10*(2^10) chars as input seems more than enough
6191 test $ac_count -gt 10 && break
6193 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6196 $ac_path_FGREP_found && break 3
6201 if test -z "$ac_cv_path_FGREP"; then
6202 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6205 ac_cv_path_FGREP=$FGREP
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6211 $as_echo "$ac_cv_path_FGREP" >&6; }
6212 FGREP="$ac_cv_path_FGREP"
6215 test -z "$GREP" && GREP=grep
6235 # Check whether --with-gnu-ld was given.
6236 if test "${with_gnu_ld+set}" = set; then :
6237 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6243 if test "$GCC" = yes; then
6244 # Check if gcc -print-prog-name=ld gives a path.
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6246 $as_echo_n "checking for ld used by $CC... " >&6; }
6249 # gcc leaves a trailing carriage return which upsets mingw
6250 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6252 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6255 # Accept absolute paths.
6257 re_direlt='/[^/][^/]*/\.\./'
6258 # Canonicalize the pathname of ld
6259 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6260 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6261 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6263 test -z "$LD" && LD="$ac_prog"
6266 # If it fails, then pretend we aren't using GCC.
6270 # If it is relative, then search for the first ld in PATH.
6274 elif test "$with_gnu_ld" = yes; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6276 $as_echo_n "checking for GNU ld... " >&6; }
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6279 $as_echo_n "checking for non-GNU ld... " >&6; }
6281 if test "${lt_cv_path_LD+set}" = set; then :
6282 $as_echo_n "(cached) " >&6
6284 if test -z "$LD"; then
6285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6286 for ac_dir in $PATH; do
6288 test -z "$ac_dir" && ac_dir=.
6289 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6290 lt_cv_path_LD="$ac_dir/$ac_prog"
6291 # Check to see if the program is GNU ld. I'd rather use --version,
6292 # but apparently some variants of GNU ld only accept -v.
6293 # Break only if it was the GNU/non-GNU ld that we prefer.
6294 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6295 *GNU* | *'with BFD'*)
6296 test "$with_gnu_ld" != no && break
6299 test "$with_gnu_ld" != yes && break
6306 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6311 if test -n "$LD"; then
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6313 $as_echo "$LD" >&6; }
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 $as_echo "no" >&6; }
6318 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6320 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6321 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6322 $as_echo_n "(cached) " >&6
6324 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6325 case `$LD -v 2>&1 </dev/null` in
6326 *GNU* | *'with BFD'*)
6327 lt_cv_prog_gnu_ld=yes
6330 lt_cv_prog_gnu_ld=no
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6335 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6336 with_gnu_ld=$lt_cv_prog_gnu_ld
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6347 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6348 if test "${lt_cv_path_NM+set}" = set; then :
6349 $as_echo_n "(cached) " >&6
6351 if test -n "$NM"; then
6352 # Let the user override the test.
6355 lt_nm_to_check="${ac_tool_prefix}nm"
6356 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6357 lt_nm_to_check="$lt_nm_to_check nm"
6359 for lt_tmp_nm in $lt_nm_to_check; do
6360 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6361 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6363 test -z "$ac_dir" && ac_dir=.
6364 tmp_nm="$ac_dir/$lt_tmp_nm"
6365 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6366 # Check to see if the nm accepts a BSD-compat flag.
6367 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6368 # nm: unknown option "B" ignored
6369 # Tru64's nm complains that /dev/null is an invalid object file
6370 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6371 */dev/null* | *'Invalid file or object type'*)
6372 lt_cv_path_NM="$tmp_nm -B"
6376 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6378 lt_cv_path_NM="$tmp_nm -p"
6382 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6383 continue # so that we can try to find one that supports BSD flags
6392 : ${lt_cv_path_NM=no}
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6396 $as_echo "$lt_cv_path_NM" >&6; }
6397 if test "$lt_cv_path_NM" != "no"; then
6400 # Didn't find any BSD compatible name lister, look for dumpbin.
6401 if test -n "$ac_tool_prefix"; then
6402 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6409 $as_echo_n "(cached) " >&6
6411 if test -n "$DUMPBIN"; then
6412 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 DUMPBIN=$ac_cv_prog_DUMPBIN
6432 if test -n "$DUMPBIN"; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6434 $as_echo "$DUMPBIN" >&6; }
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437 $as_echo "no" >&6; }
6441 test -n "$DUMPBIN" && break
6444 if test -z "$DUMPBIN"; then
6445 ac_ct_DUMPBIN=$DUMPBIN
6446 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6448 # Extract the first word of "$ac_prog", so it can be a program name with args.
6449 set dummy $ac_prog; ac_word=$2
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 $as_echo_n "checking for $ac_word... " >&6; }
6452 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6453 $as_echo_n "(cached) " >&6
6455 if test -n "$ac_ct_DUMPBIN"; then
6456 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 test -z "$as_dir" && as_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6465 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6476 if test -n "$ac_ct_DUMPBIN"; then
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6478 $as_echo "$ac_ct_DUMPBIN" >&6; }
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481 $as_echo "no" >&6; }
6485 test -n "$ac_ct_DUMPBIN" && break
6488 if test "x$ac_ct_DUMPBIN" = x; then
6491 case $cross_compiling:$ac_tool_warned in
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6495 ac_tool_warned=yes ;;
6497 DUMPBIN=$ac_ct_DUMPBIN
6502 if test "$DUMPBIN" != ":"; then
6506 test -z "$NM" && NM=nm
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6514 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6515 if test "${lt_cv_nm_interface+set}" = set; then :
6516 $as_echo_n "(cached) " >&6
6518 lt_cv_nm_interface="BSD nm"
6519 echo "int some_variable = 0;" > conftest.$ac_ext
6520 (eval echo "\"\$as_me:6520: $ac_compile\"" >&5)
6521 (eval "$ac_compile" 2>conftest.err)
6522 cat conftest.err >&5
6523 (eval echo "\"\$as_me:6523: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6524 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6525 cat conftest.err >&5
6526 (eval echo "\"\$as_me:6526: output\"" >&5)
6527 cat conftest.out >&5
6528 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6529 lt_cv_nm_interface="MS dumpbin"
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6534 $as_echo "$lt_cv_nm_interface" >&6; }
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6537 $as_echo_n "checking whether ln -s works... " >&6; }
6539 if test "$LN_S" = "ln -s"; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6541 $as_echo "yes" >&6; }
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6544 $as_echo "no, using $LN_S" >&6; }
6547 # find the maximum length of command line arguments
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6549 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6550 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6551 $as_echo_n "(cached) " >&6
6558 # On DJGPP, this test can blow up pretty badly due to problems in libc
6559 # (any single argument exceeding 2000 bytes causes a buffer overrun
6560 # during glob expansion). Even if it were fixed, the result of this
6561 # check would be larger than it should be.
6562 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6566 # Under GNU Hurd, this test is not required because there is
6567 # no limit to the length of command line arguments.
6568 # Libtool will interpret -1 as no limit whatsoever
6569 lt_cv_sys_max_cmd_len=-1;
6572 cygwin* | mingw* | cegcc*)
6573 # On Win9x/ME, this test blows up -- it succeeds, but takes
6574 # about 5 minutes as the teststring grows exponentially.
6575 # Worse, since 9x/ME are not pre-emptively multitasking,
6576 # you end up with a "frozen" computer, even though with patience
6577 # the test eventually succeeds (with a max line length of 256k).
6578 # Instead, let's just punt: use the minimum linelength reported by
6579 # all of the supported platforms: 8192 (on NT/2K/XP).
6580 lt_cv_sys_max_cmd_len=8192;
6584 # On AmigaOS with pdksh, this test takes hours, literally.
6585 # So we just punt and use a minimum line length of 8192.
6586 lt_cv_sys_max_cmd_len=8192;
6589 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6590 # This has been around since 386BSD, at least. Likely further.
6591 if test -x /sbin/sysctl; then
6592 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6593 elif test -x /usr/sbin/sysctl; then
6594 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6596 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6598 # And add a safety zone
6599 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6600 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6604 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6605 lt_cv_sys_max_cmd_len=196608
6609 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6610 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6611 # nice to cause kernel panics so lets avoid the loop below.
6612 # First set a reasonable default.
6613 lt_cv_sys_max_cmd_len=16384
6615 if test -x /sbin/sysconfig; then
6616 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6617 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6622 lt_cv_sys_max_cmd_len=102400
6624 sysv5* | sco5v6* | sysv4.2uw2*)
6625 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6626 if test -n "$kargmax"; then
6627 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6629 lt_cv_sys_max_cmd_len=32768
6633 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6634 if test -n "$lt_cv_sys_max_cmd_len"; then
6635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6636 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6638 # Make teststring a little bigger before we do anything with it.
6639 # a 1K string should be a reasonable start.
6640 for i in 1 2 3 4 5 6 7 8 ; do
6641 teststring=$teststring$teststring
6643 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6644 # If test is not a shell built-in, we'll probably end up computing a
6645 # maximum length that is only half of the actual maximum length, but
6647 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6648 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6649 test $i != 17 # 1/2 MB should be enough
6652 teststring=$teststring$teststring
6654 # Only check the string length outside the loop.
6655 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6657 # Add a significant safety factor because C++ compilers can tack on
6658 # massive amounts of additional arguments before passing them to the
6659 # linker. It appears as though 1/2 is a usable value.
6660 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6667 if test -n $lt_cv_sys_max_cmd_len ; then
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6669 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6672 $as_echo "none" >&6; }
6674 max_cmd_len=$lt_cv_sys_max_cmd_len
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6686 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6687 # Try some XSI features
6690 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6692 && eval 'test $(( 1 + 1 )) -eq 2 \
6693 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6696 $as_echo "$xsi_shell" >&6; }
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6700 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6702 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6704 && lt_shell_append=yes
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6706 $as_echo "$lt_shell_append" >&6; }
6709 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6719 # test EBCDIC or ASCII
6720 case `echo X|tr X '\101'` in
6721 A) # ASCII based system
6722 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6723 lt_SP2NL='tr \040 \012'
6724 lt_NL2SP='tr \015\012 \040\040'
6726 *) # EBCDIC based system
6727 lt_SP2NL='tr \100 \n'
6728 lt_NL2SP='tr \r\n \100\100'
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6741 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6742 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6743 $as_echo_n "(cached) " >&6
6745 lt_cv_ld_reload_flag='-r'
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6748 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6749 reload_flag=$lt_cv_ld_reload_flag
6750 case $reload_flag in
6752 *) reload_flag=" $reload_flag" ;;
6754 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6757 if test "$GCC" = yes; then
6758 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6760 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6773 if test -n "$ac_tool_prefix"; then
6774 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6775 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 $as_echo_n "checking for $ac_word... " >&6; }
6778 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6779 $as_echo_n "(cached) " >&6
6781 if test -n "$OBJDUMP"; then
6782 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 OBJDUMP=$ac_cv_prog_OBJDUMP
6802 if test -n "$OBJDUMP"; then
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6804 $as_echo "$OBJDUMP" >&6; }
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6812 if test -z "$ac_cv_prog_OBJDUMP"; then
6813 ac_ct_OBJDUMP=$OBJDUMP
6814 # Extract the first word of "objdump", so it can be a program name with args.
6815 set dummy objdump; ac_word=$2
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817 $as_echo_n "checking for $ac_word... " >&6; }
6818 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6819 $as_echo_n "(cached) " >&6
6821 if test -n "$ac_ct_OBJDUMP"; then
6822 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6842 if test -n "$ac_ct_OBJDUMP"; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6844 $as_echo "$ac_ct_OBJDUMP" >&6; }
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6850 if test "x$ac_ct_OBJDUMP" = x; then
6853 case $cross_compiling:$ac_tool_warned in
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6857 ac_tool_warned=yes ;;
6859 OBJDUMP=$ac_ct_OBJDUMP
6862 OBJDUMP="$ac_cv_prog_OBJDUMP"
6865 test -z "$OBJDUMP" && OBJDUMP=objdump
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6876 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6877 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6878 $as_echo_n "(cached) " >&6
6880 lt_cv_file_magic_cmd='$MAGIC_CMD'
6881 lt_cv_file_magic_test_file=
6882 lt_cv_deplibs_check_method='unknown'
6883 # Need to set the preceding variable on all platforms that support
6884 # interlibrary dependencies.
6885 # 'none' -- dependencies not supported.
6886 # `unknown' -- same as none, but documents that we really don't know.
6887 # 'pass_all' -- all dependencies passed with no checks.
6888 # 'test_compile' -- check by making test program.
6889 # 'file_magic [[regex]]' -- check by looking for files in library path
6890 # which responds to the $file_magic_cmd with a given extended regex.
6891 # If you have `file' or equivalent on your system and you're not sure
6892 # whether `pass_all' will *always* work, you probably want this one.
6896 lt_cv_deplibs_check_method=pass_all
6900 lt_cv_deplibs_check_method=pass_all
6904 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6905 lt_cv_file_magic_cmd='/usr/bin/file -L'
6906 lt_cv_file_magic_test_file=/shlib/libc.so
6910 # func_win32_libid is a shell function defined in ltmain.sh
6911 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6912 lt_cv_file_magic_cmd='func_win32_libid'
6916 # Base MSYS/MinGW do not provide the 'file' command needed by
6917 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6918 # unless we find 'file', for example because we are cross-compiling.
6919 if ( file / ) >/dev/null 2>&1; then
6920 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6921 lt_cv_file_magic_cmd='func_win32_libid'
6923 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6924 lt_cv_file_magic_cmd='$OBJDUMP -f'
6929 # use the weaker test based on 'objdump'. See mingw*.
6930 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6931 lt_cv_file_magic_cmd='$OBJDUMP -f'
6934 darwin* | rhapsody*)
6935 lt_cv_deplibs_check_method=pass_all
6938 freebsd* | dragonfly*)
6939 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6942 # Not sure whether the presence of OpenBSD here was a mistake.
6943 # Let's accept both of them until this is cleared up.
6944 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6945 lt_cv_file_magic_cmd=/usr/bin/file
6946 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6950 lt_cv_deplibs_check_method=pass_all
6955 lt_cv_deplibs_check_method=pass_all
6958 hpux10.20* | hpux11*)
6959 lt_cv_file_magic_cmd=/usr/bin/file
6962 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6963 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6966 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]'
6967 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6970 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6971 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6977 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6978 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6981 irix5* | irix6* | nonstopux*)
6983 *-32|*"-32 ") libmagic=32-bit;;
6984 *-n32|*"-n32 ") libmagic=N32;;
6985 *-64|*"-64 ") libmagic=64-bit;;
6986 *) libmagic=never-match;;
6988 lt_cv_deplibs_check_method=pass_all
6991 # This must be Linux ELF.
6992 linux* | k*bsd*-gnu)
6993 lt_cv_deplibs_check_method=pass_all
6997 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7005 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7006 lt_cv_file_magic_cmd=/usr/bin/file
7007 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7011 lt_cv_deplibs_check_method=pass_all
7015 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7022 osf3* | osf4* | osf5*)
7023 lt_cv_deplibs_check_method=pass_all
7027 lt_cv_deplibs_check_method=pass_all
7031 lt_cv_deplibs_check_method=pass_all
7034 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7035 lt_cv_deplibs_check_method=pass_all
7039 case $host_vendor in
7041 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]'
7042 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7045 lt_cv_deplibs_check_method=pass_all
7048 lt_cv_file_magic_cmd='/bin/file'
7049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7052 lt_cv_file_magic_cmd='/bin/file'
7053 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7054 lt_cv_file_magic_test_file=/lib/libc.so
7057 lt_cv_deplibs_check_method=pass_all
7060 lt_cv_deplibs_check_method=pass_all
7066 lt_cv_deplibs_check_method=pass_all
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7072 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7073 file_magic_cmd=$lt_cv_file_magic_cmd
7074 deplibs_check_method=$lt_cv_deplibs_check_method
7075 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7088 if test -n "$ac_tool_prefix"; then
7089 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7090 set dummy ${ac_tool_prefix}ar; ac_word=$2
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7092 $as_echo_n "checking for $ac_word... " >&6; }
7093 if test "${ac_cv_prog_AR+set}" = set; then :
7094 $as_echo_n "(cached) " >&6
7096 if test -n "$AR"; then
7097 ac_cv_prog_AR="$AR" # Let the user override the test.
7099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 test -z "$as_dir" && as_dir=.
7104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7106 ac_cv_prog_AR="${ac_tool_prefix}ar"
7107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 if test -n "$AR"; then
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7119 $as_echo "$AR" >&6; }
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122 $as_echo "no" >&6; }
7127 if test -z "$ac_cv_prog_AR"; then
7129 # Extract the first word of "ar", so it can be a program name with args.
7130 set dummy ar; ac_word=$2
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132 $as_echo_n "checking for $ac_word... " >&6; }
7133 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7134 $as_echo_n "(cached) " >&6
7136 if test -n "$ac_ct_AR"; then
7137 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 test -z "$as_dir" && as_dir=.
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7146 ac_cv_prog_ac_ct_AR="ar"
7147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7157 if test -n "$ac_ct_AR"; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7159 $as_echo "$ac_ct_AR" >&6; }
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 $as_echo "no" >&6; }
7165 if test "x$ac_ct_AR" = x; then
7168 case $cross_compiling:$ac_tool_warned in
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7172 ac_tool_warned=yes ;;
7180 test -z "$AR" && AR=ar
7181 test -z "$AR_FLAGS" && AR_FLAGS=cru
7193 if test -n "$ac_tool_prefix"; then
7194 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7195 set dummy ${ac_tool_prefix}strip; ac_word=$2
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197 $as_echo_n "checking for $ac_word... " >&6; }
7198 if test "${ac_cv_prog_STRIP+set}" = set; then :
7199 $as_echo_n "(cached) " >&6
7201 if test -n "$STRIP"; then
7202 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7211 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 STRIP=$ac_cv_prog_STRIP
7222 if test -n "$STRIP"; then
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7224 $as_echo "$STRIP" >&6; }
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227 $as_echo "no" >&6; }
7232 if test -z "$ac_cv_prog_STRIP"; then
7234 # Extract the first word of "strip", so it can be a program name with args.
7235 set dummy strip; ac_word=$2
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237 $as_echo_n "checking for $ac_word... " >&6; }
7238 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7239 $as_echo_n "(cached) " >&6
7241 if test -n "$ac_ct_STRIP"; then
7242 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7251 ac_cv_prog_ac_ct_STRIP="strip"
7252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7262 if test -n "$ac_ct_STRIP"; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7264 $as_echo "$ac_ct_STRIP" >&6; }
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 $as_echo "no" >&6; }
7270 if test "x$ac_ct_STRIP" = x; then
7273 case $cross_compiling:$ac_tool_warned in
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7277 ac_tool_warned=yes ;;
7282 STRIP="$ac_cv_prog_STRIP"
7285 test -z "$STRIP" && STRIP=:
7292 if test -n "$ac_tool_prefix"; then
7293 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7294 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296 $as_echo_n "checking for $ac_word... " >&6; }
7297 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7298 $as_echo_n "(cached) " >&6
7300 if test -n "$RANLIB"; then
7301 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7310 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 RANLIB=$ac_cv_prog_RANLIB
7321 if test -n "$RANLIB"; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7323 $as_echo "$RANLIB" >&6; }
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7331 if test -z "$ac_cv_prog_RANLIB"; then
7332 ac_ct_RANLIB=$RANLIB
7333 # Extract the first word of "ranlib", so it can be a program name with args.
7334 set dummy ranlib; ac_word=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7338 $as_echo_n "(cached) " >&6
7340 if test -n "$ac_ct_RANLIB"; then
7341 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7350 ac_cv_prog_ac_ct_RANLIB="ranlib"
7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7361 if test -n "$ac_ct_RANLIB"; then
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7363 $as_echo "$ac_ct_RANLIB" >&6; }
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7369 if test "x$ac_ct_RANLIB" = x; then
7372 case $cross_compiling:$ac_tool_warned in
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7376 ac_tool_warned=yes ;;
7378 RANLIB=$ac_ct_RANLIB
7381 RANLIB="$ac_cv_prog_RANLIB"
7384 test -z "$RANLIB" && RANLIB=:
7391 # Determine commands to create old-style static archives.
7392 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7393 old_postinstall_cmds='chmod 644 $oldlib'
7394 old_postuninstall_cmds=
7396 if test -n "$RANLIB"; then
7399 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7402 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7405 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7441 # If no C compiler was specified, use CC.
7444 # If no C compiler flags were specified, use CFLAGS.
7445 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7447 # Allow CC to be a program name with arguments.
7451 # Check for command to grab the raw symbol name followed by C symbol from nm.
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7453 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7454 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7455 $as_echo_n "(cached) " >&6
7458 # These are sane defaults that work on at least a few old systems.
7459 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7461 # Character class describing NM global symbol codes.
7462 symcode='[BCDEGRST]'
7464 # Regexp to match symbols that can be accessed directly from C.
7465 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7467 # Define system-specific variables.
7472 cygwin* | mingw* | pw32* | cegcc*)
7473 symcode='[ABCDGISTW]'
7476 if test "$host_cpu" = ia64; then
7477 symcode='[ABCDEGRST]'
7481 symcode='[BCDEGRST]'
7484 symcode='[BCDEGQRST]'
7495 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7503 # If we're using GNU nm, then use its standard symbol codes.
7504 case `$NM -V 2>&1` in
7505 *GNU* | *'with BFD'*)
7506 symcode='[ABCDGIRSTW]' ;;
7509 # Transform an extracted symbol line into a proper C declaration.
7510 # Some systems (esp. on ia64) link data and code symbols differently,
7511 # so use this general approach.
7512 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7514 # Transform an extracted symbol line into symbol name and symbol address
7515 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7516 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'"
7518 # Handle CRLF in mingw tool chain
7522 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7526 # Try without a prefix underscore, then with it.
7527 for ac_symprfx in "" "_"; do
7529 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7530 symxfrm="\\1 $ac_symprfx\\2 \\2"
7532 # Write the raw and C identifiers.
7533 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7534 # Fake it for dumpbin and say T for any non-static function
7535 # and D for any global variable.
7536 # Also find C++ and __fastcall symbols from MSVC++,
7537 # which start with @ or ?.
7538 lt_cv_sys_global_symbol_pipe="$AWK '"\
7539 " {last_section=section; section=\$ 3};"\
7540 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7541 " \$ 0!~/External *\|/{next};"\
7542 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7543 " {if(hide[section]) next};"\
7544 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7545 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7546 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7547 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7548 " ' prfx=^$ac_symprfx"
7550 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7553 # Check to see that the pipe works correctly.
7557 cat > conftest.$ac_ext <<_LT_EOF
7562 void nm_test_func(void);
7563 void nm_test_func(void){}
7567 int main(){nm_test_var='a';nm_test_func();return(0);}
7570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7571 (eval $ac_compile) 2>&5
7573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7574 test $ac_status = 0; }; then
7575 # Now try to grab the symbols.
7577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7578 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7581 test $ac_status = 0; } && test -s "$nlist"; then
7582 # Try sorting and uniquifying the output.
7583 if sort "$nlist" | uniq > "$nlist"T; then
7584 mv -f "$nlist"T "$nlist"
7589 # Make sure that we snagged all the symbols we need.
7590 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7591 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7592 cat <<_LT_EOF > conftest.$ac_ext
7598 # Now generate the symbol file.
7599 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7601 cat <<_LT_EOF >> conftest.$ac_ext
7603 /* The mapping between symbol names and symbols. */
7608 lt__PROGRAM__LTX_preloaded_symbols[] =
7610 { "@PROGRAM@", (void *) 0 },
7612 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7613 cat <<\_LT_EOF >> conftest.$ac_ext
7617 /* This works around a problem in FreeBSD linker */
7618 #ifdef FREEBSD_WORKAROUND
7619 static const void *lt_preloaded_setup() {
7620 return lt__PROGRAM__LTX_preloaded_symbols;
7628 # Now try linking the two files.
7629 mv conftest.$ac_objext conftstm.$ac_objext
7630 lt_save_LIBS="$LIBS"
7631 lt_save_CFLAGS="$CFLAGS"
7632 LIBS="conftstm.$ac_objext"
7633 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7635 (eval $ac_link) 2>&5
7637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7638 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7641 LIBS="$lt_save_LIBS"
7642 CFLAGS="$lt_save_CFLAGS"
7644 echo "cannot find nm_test_func in $nlist" >&5
7647 echo "cannot find nm_test_var in $nlist" >&5
7650 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7653 echo "$progname: failed program was:" >&5
7654 cat conftest.$ac_ext >&5
7656 rm -rf conftest* conftst*
7658 # Do not use the global_symbol_pipe unless it works.
7659 if test "$pipe_works" = yes; then
7662 lt_cv_sys_global_symbol_pipe=
7668 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7669 lt_cv_sys_global_symbol_to_cdecl=
7671 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7673 $as_echo "failed" >&6; }
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7676 $as_echo "ok" >&6; }
7700 # Check whether --enable-libtool-lock was given.
7701 if test "${enable_libtool_lock+set}" = set; then :
7702 enableval=$enable_libtool_lock;
7705 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7707 # Some flags need to be propagated to the compiler or linker for good
7711 # Find out which ABI we are using.
7712 echo 'int i;' > conftest.$ac_ext
7713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7714 (eval $ac_compile) 2>&5
7716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7717 test $ac_status = 0; }; then
7718 case `/usr/bin/file conftest.$ac_objext` in
7730 # Find out which ABI we are using.
7731 echo '#line 7731 "configure"' > conftest.$ac_ext
7732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7733 (eval $ac_compile) 2>&5
7735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7736 test $ac_status = 0; }; then
7737 if test "$lt_cv_prog_gnu_ld" = yes; then
7738 case `/usr/bin/file conftest.$ac_objext` in
7740 LD="${LD-ld} -melf32bsmip"
7743 LD="${LD-ld} -melf32bmipn32"
7746 LD="${LD-ld} -melf64bmip"
7750 case `/usr/bin/file conftest.$ac_objext` in
7766 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7767 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7768 # Find out which ABI we are using.
7769 echo 'int i;' > conftest.$ac_ext
7770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7771 (eval $ac_compile) 2>&5
7773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7774 test $ac_status = 0; }; then
7775 case `/usr/bin/file conftest.o` in
7778 x86_64-*kfreebsd*-gnu)
7779 LD="${LD-ld} -m elf_i386_fbsd"
7782 LD="${LD-ld} -m elf_i386"
7784 ppc64-*linux*|powerpc64-*linux*)
7785 LD="${LD-ld} -m elf32ppclinux"
7788 LD="${LD-ld} -m elf_s390"
7791 LD="${LD-ld} -m elf32_sparc"
7797 x86_64-*kfreebsd*-gnu)
7798 LD="${LD-ld} -m elf_x86_64_fbsd"
7801 LD="${LD-ld} -m elf_x86_64"
7803 ppc*-*linux*|powerpc*-*linux*)
7804 LD="${LD-ld} -m elf64ppc"
7806 s390*-*linux*|s390*-*tpf*)
7807 LD="${LD-ld} -m elf64_s390"
7810 LD="${LD-ld} -m elf64_sparc"
7820 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7821 SAVE_CFLAGS="$CFLAGS"
7822 CFLAGS="$CFLAGS -belf"
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7824 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7825 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7826 $as_echo_n "(cached) " >&6
7829 ac_cpp='$CPP $CPPFLAGS'
7830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h. */
7845 if ac_fn_c_try_link "$LINENO"; then :
7846 lt_cv_cc_needs_belf=yes
7848 lt_cv_cc_needs_belf=no
7850 rm -f core conftest.err conftest.$ac_objext \
7851 conftest$ac_exeext conftest.$ac_ext
7853 ac_cpp='$CPP $CPPFLAGS'
7854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7860 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7861 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7862 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7863 CFLAGS="$SAVE_CFLAGS"
7867 # Find out which ABI we are using.
7868 echo 'int i;' > conftest.$ac_ext
7869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7870 (eval $ac_compile) 2>&5
7872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7873 test $ac_status = 0; }; then
7874 case `/usr/bin/file conftest.o` in
7876 case $lt_cv_prog_gnu_ld in
7877 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7879 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7891 need_locks="$enable_libtool_lock"
7895 rhapsody* | darwin*)
7896 if test -n "$ac_tool_prefix"; then
7897 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7898 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7902 $as_echo_n "(cached) " >&6
7904 if test -n "$DSYMUTIL"; then
7905 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7914 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7924 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7925 if test -n "$DSYMUTIL"; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7927 $as_echo "$DSYMUTIL" >&6; }
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 $as_echo "no" >&6; }
7935 if test -z "$ac_cv_prog_DSYMUTIL"; then
7936 ac_ct_DSYMUTIL=$DSYMUTIL
7937 # Extract the first word of "dsymutil", so it can be a program name with args.
7938 set dummy dsymutil; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7942 $as_echo_n "(cached) " >&6
7944 if test -n "$ac_ct_DSYMUTIL"; then
7945 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7954 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7965 if test -n "$ac_ct_DSYMUTIL"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7967 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7973 if test "x$ac_ct_DSYMUTIL" = x; then
7976 case $cross_compiling:$ac_tool_warned in
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7980 ac_tool_warned=yes ;;
7982 DSYMUTIL=$ac_ct_DSYMUTIL
7985 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7988 if test -n "$ac_tool_prefix"; then
7989 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7990 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992 $as_echo_n "checking for $ac_word... " >&6; }
7993 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7994 $as_echo_n "(cached) " >&6
7996 if test -n "$NMEDIT"; then
7997 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 test -z "$as_dir" && as_dir=.
8004 for ac_exec_ext in '' $ac_executable_extensions; do
8005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8006 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8016 NMEDIT=$ac_cv_prog_NMEDIT
8017 if test -n "$NMEDIT"; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8019 $as_echo "$NMEDIT" >&6; }
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 $as_echo "no" >&6; }
8027 if test -z "$ac_cv_prog_NMEDIT"; then
8028 ac_ct_NMEDIT=$NMEDIT
8029 # Extract the first word of "nmedit", so it can be a program name with args.
8030 set dummy nmedit; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8034 $as_echo_n "(cached) " >&6
8036 if test -n "$ac_ct_NMEDIT"; then
8037 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8046 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8057 if test -n "$ac_ct_NMEDIT"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8059 $as_echo "$ac_ct_NMEDIT" >&6; }
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8065 if test "x$ac_ct_NMEDIT" = x; then
8068 case $cross_compiling:$ac_tool_warned in
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8072 ac_tool_warned=yes ;;
8074 NMEDIT=$ac_ct_NMEDIT
8077 NMEDIT="$ac_cv_prog_NMEDIT"
8080 if test -n "$ac_tool_prefix"; then
8081 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8082 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if test "${ac_cv_prog_LIPO+set}" = set; then :
8086 $as_echo_n "(cached) " >&6
8088 if test -n "$LIPO"; then
8089 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8098 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8108 LIPO=$ac_cv_prog_LIPO
8109 if test -n "$LIPO"; then
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8111 $as_echo "$LIPO" >&6; }
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8119 if test -z "$ac_cv_prog_LIPO"; then
8121 # Extract the first word of "lipo", so it can be a program name with args.
8122 set dummy lipo; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8126 $as_echo_n "(cached) " >&6
8128 if test -n "$ac_ct_LIPO"; then
8129 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 test -z "$as_dir" && as_dir=.
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8138 ac_cv_prog_ac_ct_LIPO="lipo"
8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8148 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8149 if test -n "$ac_ct_LIPO"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8151 $as_echo "$ac_ct_LIPO" >&6; }
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8157 if test "x$ac_ct_LIPO" = x; then
8160 case $cross_compiling:$ac_tool_warned in
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8164 ac_tool_warned=yes ;;
8169 LIPO="$ac_cv_prog_LIPO"
8172 if test -n "$ac_tool_prefix"; then
8173 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8174 set dummy ${ac_tool_prefix}otool; ac_word=$2
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176 $as_echo_n "checking for $ac_word... " >&6; }
8177 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8178 $as_echo_n "(cached) " >&6
8180 if test -n "$OTOOL"; then
8181 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 test -z "$as_dir" && as_dir=.
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8190 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8200 OTOOL=$ac_cv_prog_OTOOL
8201 if test -n "$OTOOL"; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8203 $as_echo "$OTOOL" >&6; }
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8211 if test -z "$ac_cv_prog_OTOOL"; then
8213 # Extract the first word of "otool", so it can be a program name with args.
8214 set dummy otool; ac_word=$2
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216 $as_echo_n "checking for $ac_word... " >&6; }
8217 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8218 $as_echo_n "(cached) " >&6
8220 if test -n "$ac_ct_OTOOL"; then
8221 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 test -z "$as_dir" && as_dir=.
8228 for ac_exec_ext in '' $ac_executable_extensions; do
8229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8230 ac_cv_prog_ac_ct_OTOOL="otool"
8231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8240 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8241 if test -n "$ac_ct_OTOOL"; then
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8243 $as_echo "$ac_ct_OTOOL" >&6; }
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 $as_echo "no" >&6; }
8249 if test "x$ac_ct_OTOOL" = x; then
8252 case $cross_compiling:$ac_tool_warned in
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8256 ac_tool_warned=yes ;;
8261 OTOOL="$ac_cv_prog_OTOOL"
8264 if test -n "$ac_tool_prefix"; then
8265 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8266 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8268 $as_echo_n "checking for $ac_word... " >&6; }
8269 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8270 $as_echo_n "(cached) " >&6
8272 if test -n "$OTOOL64"; then
8273 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 test -z "$as_dir" && as_dir=.
8280 for ac_exec_ext in '' $ac_executable_extensions; do
8281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8282 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8292 OTOOL64=$ac_cv_prog_OTOOL64
8293 if test -n "$OTOOL64"; then
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8295 $as_echo "$OTOOL64" >&6; }
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8298 $as_echo "no" >&6; }
8303 if test -z "$ac_cv_prog_OTOOL64"; then
8304 ac_ct_OTOOL64=$OTOOL64
8305 # Extract the first word of "otool64", so it can be a program name with args.
8306 set dummy otool64; ac_word=$2
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308 $as_echo_n "checking for $ac_word... " >&6; }
8309 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8310 $as_echo_n "(cached) " >&6
8312 if test -n "$ac_ct_OTOOL64"; then
8313 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 test -z "$as_dir" && as_dir=.
8320 for ac_exec_ext in '' $ac_executable_extensions; do
8321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8322 ac_cv_prog_ac_ct_OTOOL64="otool64"
8323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8332 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8333 if test -n "$ac_ct_OTOOL64"; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8335 $as_echo "$ac_ct_OTOOL64" >&6; }
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8341 if test "x$ac_ct_OTOOL64" = x; then
8344 case $cross_compiling:$ac_tool_warned in
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8348 ac_tool_warned=yes ;;
8350 OTOOL64=$ac_ct_OTOOL64
8353 OTOOL64="$ac_cv_prog_OTOOL64"
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8383 $as_echo_n "checking for -single_module linker flag... " >&6; }
8384 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8385 $as_echo_n "(cached) " >&6
8387 lt_cv_apple_cc_single_mod=no
8388 if test -z "${LT_MULTI_MODULE}"; then
8389 # By default we will add the -single_module flag. You can override
8390 # by either setting the environment variable LT_MULTI_MODULE
8391 # non-empty at configure time, or by adding -multi_module to the
8393 rm -rf libconftest.dylib*
8394 echo "int foo(void){return 1;}" > conftest.c
8395 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8396 -dynamiclib -Wl,-single_module conftest.c" >&5
8397 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8398 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8400 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8401 lt_cv_apple_cc_single_mod=yes
8403 cat conftest.err >&5
8405 rm -rf libconftest.dylib*
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8410 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8412 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8413 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8414 $as_echo_n "(cached) " >&6
8416 lt_cv_ld_exported_symbols_list=no
8417 save_LDFLAGS=$LDFLAGS
8418 echo "_main" > conftest.sym
8419 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421 /* end confdefs.h. */
8431 if ac_fn_c_try_link "$LINENO"; then :
8432 lt_cv_ld_exported_symbols_list=yes
8434 lt_cv_ld_exported_symbols_list=no
8436 rm -f core conftest.err conftest.$ac_objext \
8437 conftest$ac_exeext conftest.$ac_ext
8438 LDFLAGS="$save_LDFLAGS"
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8442 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8444 rhapsody* | darwin1.[012])
8445 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8447 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8448 darwin*) # darwin 5.x on
8449 # if running on 10.5 or later, the deployment target defaults
8450 # to the OS version, if on x86, and 10.4, the deployment
8451 # target defaults to 10.4. Don't you love it?
8452 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8453 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8454 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8456 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8458 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8462 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8463 _lt_dar_single_mod='$single_module'
8465 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8466 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8468 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8470 if test "$DSYMUTIL" != ":"; then
8471 _lt_dsymutil='~$DSYMUTIL $lib || :'
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8479 $as_echo_n "checking for ANSI C header files... " >&6; }
8480 if test "${ac_cv_header_stdc+set}" = set; then :
8481 $as_echo_n "(cached) " >&6
8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8498 if ac_fn_c_try_compile "$LINENO"; then :
8499 ac_cv_header_stdc=yes
8501 ac_cv_header_stdc=no
8503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8505 if test $ac_cv_header_stdc = yes; then
8506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508 /* end confdefs.h. */
8512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8513 $EGREP "memchr" >/dev/null 2>&1; then :
8516 ac_cv_header_stdc=no
8522 if test $ac_cv_header_stdc = yes; then
8523 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8530 $EGREP "free" >/dev/null 2>&1; then :
8533 ac_cv_header_stdc=no
8539 if test $ac_cv_header_stdc = yes; then
8540 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8541 if test "$cross_compiling" = yes; then :
8544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545 /* end confdefs.h. */
8548 #if ((' ' & 0x0FF) == 0x020)
8549 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8550 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8552 # define ISLOWER(c) \
8553 (('a' <= (c) && (c) <= 'i') \
8554 || ('j' <= (c) && (c) <= 'r') \
8555 || ('s' <= (c) && (c) <= 'z'))
8556 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8559 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8564 for (i = 0; i < 256; i++)
8565 if (XOR (islower (i), ISLOWER (i))
8566 || toupper (i) != TOUPPER (i))
8571 if ac_fn_c_try_run "$LINENO"; then :
8574 ac_cv_header_stdc=no
8576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8577 conftest.$ac_objext conftest.beam conftest.$ac_ext
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8583 $as_echo "$ac_cv_header_stdc" >&6; }
8584 if test $ac_cv_header_stdc = yes; then
8586 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8590 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8591 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8592 inttypes.h stdint.h unistd.h
8594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8595 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8597 eval as_val=\$$as_ac_Header
8598 if test "x$as_val" = x""yes; then :
8599 cat >>confdefs.h <<_ACEOF
8600 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8608 for ac_header in dlfcn.h
8610 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8612 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8613 cat >>confdefs.h <<_ACEOF
8614 #define HAVE_DLFCN_H 1
8624 ac_cpp='$CXXCPP $CPPFLAGS'
8625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8628 if test -z "$CXX"; then
8629 if test -n "$CCC"; then
8632 if test -n "$ac_tool_prefix"; then
8633 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8638 $as_echo_n "checking for $ac_word... " >&6; }
8639 if test "${ac_cv_prog_CXX+set}" = set; then :
8640 $as_echo_n "(cached) " >&6
8642 if test -n "$CXX"; then
8643 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649 test -z "$as_dir" && as_dir=.
8650 for ac_exec_ext in '' $ac_executable_extensions; do
8651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8652 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663 if test -n "$CXX"; then
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8665 $as_echo "$CXX" >&6; }
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668 $as_echo "no" >&6; }
8672 test -n "$CXX" && break
8675 if test -z "$CXX"; then
8677 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8679 # Extract the first word of "$ac_prog", so it can be a program name with args.
8680 set dummy $ac_prog; ac_word=$2
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8682 $as_echo_n "checking for $ac_word... " >&6; }
8683 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8684 $as_echo_n "(cached) " >&6
8686 if test -n "$ac_ct_CXX"; then
8687 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693 test -z "$as_dir" && as_dir=.
8694 for ac_exec_ext in '' $ac_executable_extensions; do
8695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8696 ac_cv_prog_ac_ct_CXX="$ac_prog"
8697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8706 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8707 if test -n "$ac_ct_CXX"; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8709 $as_echo "$ac_ct_CXX" >&6; }
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712 $as_echo "no" >&6; }
8716 test -n "$ac_ct_CXX" && break
8719 if test "x$ac_ct_CXX" = x; then
8722 case $cross_compiling:$ac_tool_warned in
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8726 ac_tool_warned=yes ;;
8734 # Provide some information about the compiler.
8735 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8738 for ac_option in --version -v -V -qversion; do
8739 { { ac_try="$ac_compiler $ac_option >&5"
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8745 $as_echo "$ac_try_echo"; } >&5
8746 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8748 if test -s conftest.err; then
8750 ... rest of stderr output deleted ...
8751 10q' conftest.err >conftest.er1
8752 cat conftest.er1 >&5
8754 rm -f conftest.er1 conftest.err
8755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8756 test $ac_status = 0; }
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8760 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8761 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8762 $as_echo_n "(cached) " >&6
8764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8765 /* end confdefs.h. */
8778 if ac_fn_cxx_try_compile "$LINENO"; then :
8783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8784 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8788 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8789 if test $ac_compiler_gnu = yes; then
8794 ac_test_CXXFLAGS=${CXXFLAGS+set}
8795 ac_save_CXXFLAGS=$CXXFLAGS
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8797 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8798 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8799 $as_echo_n "(cached) " >&6
8801 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8802 ac_cxx_werror_flag=yes
8805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h. */
8816 if ac_fn_cxx_try_compile "$LINENO"; then :
8817 ac_cv_prog_cxx_g=yes
8820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h. */
8831 if ac_fn_cxx_try_compile "$LINENO"; then :
8834 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8847 if ac_fn_cxx_try_compile "$LINENO"; then :
8848 ac_cv_prog_cxx_g=yes
8850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8858 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8859 if test "$ac_test_CXXFLAGS" = set; then
8860 CXXFLAGS=$ac_save_CXXFLAGS
8861 elif test $ac_cv_prog_cxx_g = yes; then
8862 if test "$GXX" = yes; then
8868 if test "$GXX" = yes; then
8875 ac_cpp='$CPP $CPPFLAGS'
8876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8880 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8881 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8882 (test "X$CXX" != "Xg++"))) ; then
8884 ac_cpp='$CXXCPP $CPPFLAGS'
8885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8889 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8890 if test -z "$CXXCPP"; then
8891 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8892 $as_echo_n "(cached) " >&6
8894 # Double quotes because CXXCPP needs to be expanded
8895 for CXXCPP in "$CXX -E" "/lib/cpp"
8898 for ac_cxx_preproc_warn_flag in '' yes
8900 # Use a header file that comes with gcc, so configuring glibc
8901 # with a fresh cross-compiler works.
8902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8903 # <limits.h> exists even on freestanding compilers.
8904 # On the NeXT, cc -E runs the code through the compiler's parser,
8905 # not just through cpp. "Syntax error" is here to catch this case.
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8909 # include <limits.h>
8911 # include <assert.h>
8915 if ac_fn_cxx_try_cpp "$LINENO"; then :
8918 # Broken: fails on valid input.
8921 rm -f conftest.err conftest.$ac_ext
8923 # OK, works on sane cases. Now check whether nonexistent headers
8924 # can be detected and how.
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927 #include <ac_nonexistent.h>
8929 if ac_fn_cxx_try_cpp "$LINENO"; then :
8930 # Broken: success on invalid input.
8933 # Passes both tests.
8937 rm -f conftest.err conftest.$ac_ext
8940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8941 rm -f conftest.err conftest.$ac_ext
8942 if $ac_preproc_ok; then :
8947 ac_cv_prog_CXXCPP=$CXXCPP
8950 CXXCPP=$ac_cv_prog_CXXCPP
8952 ac_cv_prog_CXXCPP=$CXXCPP
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8955 $as_echo "$CXXCPP" >&6; }
8957 for ac_cxx_preproc_warn_flag in '' yes
8959 # Use a header file that comes with gcc, so configuring glibc
8960 # with a fresh cross-compiler works.
8961 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8962 # <limits.h> exists even on freestanding compilers.
8963 # On the NeXT, cc -E runs the code through the compiler's parser,
8964 # not just through cpp. "Syntax error" is here to catch this case.
8965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966 /* end confdefs.h. */
8968 # include <limits.h>
8970 # include <assert.h>
8974 if ac_fn_cxx_try_cpp "$LINENO"; then :
8977 # Broken: fails on valid input.
8980 rm -f conftest.err conftest.$ac_ext
8982 # OK, works on sane cases. Now check whether nonexistent headers
8983 # can be detected and how.
8984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8986 #include <ac_nonexistent.h>
8988 if ac_fn_cxx_try_cpp "$LINENO"; then :
8989 # Broken: success on invalid input.
8992 # Passes both tests.
8996 rm -f conftest.err conftest.$ac_ext
8999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9000 rm -f conftest.err conftest.$ac_ext
9001 if $ac_preproc_ok; then :
9004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9006 _lt_caught_CXX_error=yes; }
9010 ac_cpp='$CPP $CPPFLAGS'
9011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9016 _lt_caught_CXX_error=yes
9024 # Check whether --enable-shared was given.
9025 if test "${enable_shared+set}" = set; then :
9026 enableval=$enable_shared; p=${PACKAGE-default}
9028 yes) enable_shared=yes ;;
9029 no) enable_shared=no ;;
9032 # Look at the argument we got. We use all the common list separators.
9033 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9034 for pkg in $enableval; do
9036 if test "X$pkg" = "X$p"; then
9053 # Check whether --enable-static was given.
9054 if test "${enable_static+set}" = set; then :
9055 enableval=$enable_static; p=${PACKAGE-default}
9057 yes) enable_static=yes ;;
9058 no) enable_static=no ;;
9061 # Look at the argument we got. We use all the common list separators.
9062 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9063 for pkg in $enableval; do
9065 if test "X$pkg" = "X$p"; then
9094 # Check whether --with-pic was given.
9095 if test "${with_pic+set}" = set; then :
9096 withval=$with_pic; pic_mode="$withval"
9102 test -z "$pic_mode" && pic_mode=default
9110 # Check whether --enable-fast-install was given.
9111 if test "${enable_fast_install+set}" = set; then :
9112 enableval=$enable_fast_install; p=${PACKAGE-default}
9114 yes) enable_fast_install=yes ;;
9115 no) enable_fast_install=no ;;
9117 enable_fast_install=no
9118 # Look at the argument we got. We use all the common list separators.
9119 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9120 for pkg in $enableval; do
9122 if test "X$pkg" = "X$p"; then
9123 enable_fast_install=yes
9130 enable_fast_install=yes
9143 # This can be used to rebuild libtool when needed
9144 LIBTOOL_DEPS="$ltmain"
9146 # Always use our own libtool.
9147 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9173 test -z "$LN_S" && LN_S="ln -s"
9188 if test -n "${ZSH_VERSION+set}" ; then
9189 setopt NO_GLOB_SUBST
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9193 $as_echo_n "checking for objdir... " >&6; }
9194 if test "${lt_cv_objdir+set}" = set; then :
9195 $as_echo_n "(cached) " >&6
9197 rm -f .libs 2>/dev/null
9198 mkdir .libs 2>/dev/null
9199 if test -d .libs; then
9202 # MS-DOS does not allow filenames that begin with a dot.
9205 rmdir .libs 2>/dev/null
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9208 $as_echo "$lt_cv_objdir" >&6; }
9209 objdir=$lt_cv_objdir
9215 cat >>confdefs.h <<_ACEOF
9216 #define LT_OBJDIR "$lt_cv_objdir/"
9237 # AIX sometimes has problems with the GCC collect2 program. For some
9238 # reason, if we set the COLLECT_NAMES environment variable, the problems
9239 # vanish in a puff of smoke.
9240 if test "X${COLLECT_NAMES+set}" != Xset; then
9242 export COLLECT_NAMES
9247 # Sed substitution that helps us do robust quoting. It backslashifies
9248 # metacharacters that are still active within double-quoted strings.
9249 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9251 # Same as above, but do not quote variable references.
9252 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9254 # Sed substitution to delay expansion of an escaped shell variable in a
9255 # double_quote_subst'ed string.
9256 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9258 # Sed substitution to delay expansion of an escaped single quote.
9259 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9261 # Sed substitution to avoid accidental globbing in evaled expressions
9262 no_glob_subst='s/\*/\\\*/g'
9266 can_build_shared=yes
9268 # All known linkers require a `.a' archive for static linking (except MSVC,
9269 # which needs '.lib').
9272 with_gnu_ld="$lt_cv_prog_gnu_ld"
9275 old_CFLAGS="$CFLAGS"
9277 # Set sane defaults for various variables
9278 test -z "$CC" && CC=cc
9279 test -z "$LTCC" && LTCC=$CC
9280 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9281 test -z "$LD" && LD=ld
9282 test -z "$ac_objext" && ac_objext=o
9284 for cc_temp in $compiler""; do
9286 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9287 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9292 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9295 # Only perform the check for file, if the check method requires it
9296 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9297 case $deplibs_check_method in
9299 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9301 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9302 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9303 $as_echo_n "(cached) " >&6
9307 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9310 lt_save_MAGIC_CMD="$MAGIC_CMD"
9311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9312 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9313 for ac_dir in $ac_dummy; do
9315 test -z "$ac_dir" && ac_dir=.
9316 if test -f $ac_dir/${ac_tool_prefix}file; then
9317 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9318 if test -n "$file_magic_test_file"; then
9319 case $deplibs_check_method in
9321 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9322 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9323 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9324 $EGREP "$file_magic_regex" > /dev/null; then
9329 *** Warning: the command libtool uses to detect shared libraries,
9330 *** $file_magic_cmd, produces output that libtool cannot recognize.
9331 *** The result is that libtool may fail to recognize shared libraries
9332 *** as such. This will affect the creation of libtool libraries that
9333 *** depend on shared libraries, but programs linked with such libtool
9334 *** libraries will work regardless of this problem. Nevertheless, you
9335 *** may want to report the problem to your system manager and/or to
9336 *** bug-libtool@gnu.org
9346 MAGIC_CMD="$lt_save_MAGIC_CMD"
9351 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9352 if test -n "$MAGIC_CMD"; then
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9354 $as_echo "$MAGIC_CMD" >&6; }
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9357 $as_echo "no" >&6; }
9364 if test -z "$lt_cv_path_MAGIC_CMD"; then
9365 if test -n "$ac_tool_prefix"; then
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9367 $as_echo_n "checking for file... " >&6; }
9368 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9369 $as_echo_n "(cached) " >&6
9373 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9376 lt_save_MAGIC_CMD="$MAGIC_CMD"
9377 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9378 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9379 for ac_dir in $ac_dummy; do
9381 test -z "$ac_dir" && ac_dir=.
9382 if test -f $ac_dir/file; then
9383 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9384 if test -n "$file_magic_test_file"; then
9385 case $deplibs_check_method in
9387 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9388 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9389 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9390 $EGREP "$file_magic_regex" > /dev/null; then
9395 *** Warning: the command libtool uses to detect shared libraries,
9396 *** $file_magic_cmd, produces output that libtool cannot recognize.
9397 *** The result is that libtool may fail to recognize shared libraries
9398 *** as such. This will affect the creation of libtool libraries that
9399 *** depend on shared libraries, but programs linked with such libtool
9400 *** libraries will work regardless of this problem. Nevertheless, you
9401 *** may want to report the problem to your system manager and/or to
9402 *** bug-libtool@gnu.org
9412 MAGIC_CMD="$lt_save_MAGIC_CMD"
9417 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9418 if test -n "$MAGIC_CMD"; then
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9420 $as_echo "$MAGIC_CMD" >&6; }
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9423 $as_echo "no" >&6; }
9436 # Use C for the default configuration in the libtool script
9440 ac_cpp='$CPP $CPPFLAGS'
9441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9446 # Source file extension for C test sources.
9449 # Object file extension for compiled C test sources.
9453 # Code to be used in simple compile tests
9454 lt_simple_compile_test_code="int some_variable = 0;"
9456 # Code to be used in simple link tests
9457 lt_simple_link_test_code='int main(){return(0);}'
9465 # If no C compiler was specified, use CC.
9468 # If no C compiler flags were specified, use CFLAGS.
9469 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9471 # Allow CC to be a program name with arguments.
9474 # Save the default compiler, since it gets overwritten when the other
9475 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9476 compiler_DEFAULT=$CC
9478 # save warnings/boilerplate of simple test code
9479 ac_outfile=conftest.$ac_objext
9480 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9481 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9482 _lt_compiler_boilerplate=`cat conftest.err`
9485 ac_outfile=conftest.$ac_objext
9486 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9487 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9488 _lt_linker_boilerplate=`cat conftest.err`
9493 ## There is no encapsulation within the following macros, do not change
9494 ## the running order or otherwise move them around unless you know exactly
9495 ## what you are doing...
9496 if test -n "$compiler"; then
9498 lt_prog_compiler_no_builtin_flag=
9500 if test "$GCC" = yes; then
9501 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9504 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9505 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9506 $as_echo_n "(cached) " >&6
9508 lt_cv_prog_compiler_rtti_exceptions=no
9509 ac_outfile=conftest.$ac_objext
9510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9511 lt_compiler_flag="-fno-rtti -fno-exceptions"
9512 # Insert the option either (1) after the last *FLAGS variable, or
9513 # (2) before a word containing "conftest.", or (3) at the end.
9514 # Note that $ac_compile itself does not contain backslashes and begins
9515 # with a dollar sign (not a hyphen), so the echo should work correctly.
9516 # The option is referenced via a variable to avoid confusing sed.
9517 lt_compile=`echo "$ac_compile" | $SED \
9518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9520 -e 's:$: $lt_compiler_flag:'`
9521 (eval echo "\"\$as_me:9521: $lt_compile\"" >&5)
9522 (eval "$lt_compile" 2>conftest.err)
9524 cat conftest.err >&5
9525 echo "$as_me:9525: \$? = $ac_status" >&5
9526 if (exit $ac_status) && test -s "$ac_outfile"; then
9527 # The compiler can only warn and ignore the option if not recognized
9528 # So say no if there are warnings other than the usual output.
9529 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9530 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9531 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9532 lt_cv_prog_compiler_rtti_exceptions=yes
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9539 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9541 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9542 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9554 lt_prog_compiler_wl=
9555 lt_prog_compiler_pic=
9556 lt_prog_compiler_static=
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9559 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9561 if test "$GCC" = yes; then
9562 lt_prog_compiler_wl='-Wl,'
9563 lt_prog_compiler_static='-static'
9567 # All AIX code is PIC.
9568 if test "$host_cpu" = ia64; then
9569 # AIX 5 now supports IA64 processor
9570 lt_prog_compiler_static='-Bstatic'
9577 # see comment about AmigaOS4 .so support
9578 lt_prog_compiler_pic='-fPIC'
9581 # FIXME: we need at least 68020 code to build shared libraries, but
9582 # adding the `-m68020' flag to GCC prevents building anything better,
9584 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9589 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9590 # PIC is the default for these OSes.
9593 mingw* | cygwin* | pw32* | os2* | cegcc*)
9594 # This hack is so that the source file can tell whether it is being
9595 # built for inclusion in a dll (and should export symbols for example).
9596 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9597 # (--disable-auto-import) libraries
9598 lt_prog_compiler_pic='-DDLL_EXPORT'
9601 darwin* | rhapsody*)
9602 # PIC is the default on this platform
9603 # Common symbols not allowed in MH_DYLIB files
9604 lt_prog_compiler_pic='-fno-common'
9608 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9609 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9610 # sets the default TLS model and affects inlining.
9616 lt_prog_compiler_pic='-fPIC'
9622 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9623 # Instead, we relocate shared libraries at runtime.
9627 # Just because we use GCC doesn't mean we suddenly get shared libraries
9628 # on systems that don't support them.
9629 lt_prog_compiler_can_build_shared=no
9634 # QNX uses GNU C++, but need to define -shared option too, otherwise
9636 lt_prog_compiler_pic='-fPIC -shared'
9640 if test -d /usr/nec; then
9641 lt_prog_compiler_pic=-Kconform_pic
9646 lt_prog_compiler_pic='-fPIC'
9650 # PORTME Check for flag to pass linker flags through the system compiler.
9653 lt_prog_compiler_wl='-Wl,'
9654 if test "$host_cpu" = ia64; then
9655 # AIX 5 now supports IA64 processor
9656 lt_prog_compiler_static='-Bstatic'
9658 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9662 mingw* | cygwin* | pw32* | os2* | cegcc*)
9663 # This hack is so that the source file can tell whether it is being
9664 # built for inclusion in a dll (and should export symbols for example).
9665 lt_prog_compiler_pic='-DDLL_EXPORT'
9668 hpux9* | hpux10* | hpux11*)
9669 lt_prog_compiler_wl='-Wl,'
9670 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9677 lt_prog_compiler_pic='+Z'
9680 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9681 lt_prog_compiler_static='${wl}-a ${wl}archive'
9684 irix5* | irix6* | nonstopux*)
9685 lt_prog_compiler_wl='-Wl,'
9686 # PIC (with -KPIC) is the default.
9687 lt_prog_compiler_static='-non_shared'
9690 linux* | k*bsd*-gnu)
9691 case $cc_basename in
9692 # old Intel for x86_64 which still supported -KPIC.
9694 lt_prog_compiler_wl='-Wl,'
9695 lt_prog_compiler_pic='-KPIC'
9696 lt_prog_compiler_static='-static'
9698 # icc used to be incompatible with GCC.
9699 # ICC 10 doesn't accept -KPIC any more.
9701 lt_prog_compiler_wl='-Wl,'
9702 lt_prog_compiler_pic='-fPIC'
9703 lt_prog_compiler_static='-static'
9705 # Lahey Fortran 8.1.
9707 lt_prog_compiler_wl='-Wl,'
9708 lt_prog_compiler_pic='--shared'
9709 lt_prog_compiler_static='--static'
9711 pgcc* | pgf77* | pgf90* | pgf95*)
9712 # Portland Group compilers (*not* the Pentium gcc compiler,
9713 # which looks to be a dead project)
9714 lt_prog_compiler_wl='-Wl,'
9715 lt_prog_compiler_pic='-fpic'
9716 lt_prog_compiler_static='-Bstatic'
9719 lt_prog_compiler_wl='-Wl,'
9720 # All Alpha code is PIC.
9721 lt_prog_compiler_static='-non_shared'
9724 # IBM XL C 8.0/Fortran 10.1 on PPC
9725 lt_prog_compiler_wl='-Wl,'
9726 lt_prog_compiler_pic='-qpic'
9727 lt_prog_compiler_static='-qstaticlink'
9730 case `$CC -V 2>&1 | sed 5q` in
9733 lt_prog_compiler_pic='-KPIC'
9734 lt_prog_compiler_static='-Bstatic'
9735 lt_prog_compiler_wl='-Wl,'
9738 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9739 lt_prog_compiler_pic='-KPIC'
9740 lt_prog_compiler_static='-Bstatic'
9741 lt_prog_compiler_wl=''
9749 lt_prog_compiler_pic='-KPIC'
9750 lt_prog_compiler_static='-Bstatic'
9754 # QNX uses GNU C++, but need to define -shared option too, otherwise
9756 lt_prog_compiler_pic='-fPIC -shared'
9759 osf3* | osf4* | osf5*)
9760 lt_prog_compiler_wl='-Wl,'
9761 # All OSF/1 code is PIC.
9762 lt_prog_compiler_static='-non_shared'
9766 lt_prog_compiler_static='-non_shared'
9770 lt_prog_compiler_pic='-KPIC'
9771 lt_prog_compiler_static='-Bstatic'
9772 case $cc_basename in
9774 lt_prog_compiler_wl='-Qoption ld ';;
9776 lt_prog_compiler_wl='-Wl,';;
9781 lt_prog_compiler_wl='-Qoption ld '
9782 lt_prog_compiler_pic='-PIC'
9783 lt_prog_compiler_static='-Bstatic'
9786 sysv4 | sysv4.2uw2* | sysv4.3*)
9787 lt_prog_compiler_wl='-Wl,'
9788 lt_prog_compiler_pic='-KPIC'
9789 lt_prog_compiler_static='-Bstatic'
9793 if test -d /usr/nec ;then
9794 lt_prog_compiler_pic='-Kconform_pic'
9795 lt_prog_compiler_static='-Bstatic'
9799 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9800 lt_prog_compiler_wl='-Wl,'
9801 lt_prog_compiler_pic='-KPIC'
9802 lt_prog_compiler_static='-Bstatic'
9806 lt_prog_compiler_wl='-Wl,'
9807 lt_prog_compiler_can_build_shared=no
9811 lt_prog_compiler_pic='-pic'
9812 lt_prog_compiler_static='-Bstatic'
9816 lt_prog_compiler_can_build_shared=no
9822 # For platforms which do not support PIC, -DPIC is meaningless:
9824 lt_prog_compiler_pic=
9827 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9831 $as_echo "$lt_prog_compiler_pic" >&6; }
9839 # Check to make sure the PIC flag actually works.
9841 if test -n "$lt_prog_compiler_pic"; then
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9843 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9844 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9845 $as_echo_n "(cached) " >&6
9847 lt_cv_prog_compiler_pic_works=no
9848 ac_outfile=conftest.$ac_objext
9849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9850 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9851 # Insert the option either (1) after the last *FLAGS variable, or
9852 # (2) before a word containing "conftest.", or (3) at the end.
9853 # Note that $ac_compile itself does not contain backslashes and begins
9854 # with a dollar sign (not a hyphen), so the echo should work correctly.
9855 # The option is referenced via a variable to avoid confusing sed.
9856 lt_compile=`echo "$ac_compile" | $SED \
9857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9859 -e 's:$: $lt_compiler_flag:'`
9860 (eval echo "\"\$as_me:9860: $lt_compile\"" >&5)
9861 (eval "$lt_compile" 2>conftest.err)
9863 cat conftest.err >&5
9864 echo "$as_me:9864: \$? = $ac_status" >&5
9865 if (exit $ac_status) && test -s "$ac_outfile"; then
9866 # The compiler can only warn and ignore the option if not recognized
9867 # So say no if there are warnings other than the usual output.
9868 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9870 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9871 lt_cv_prog_compiler_pic_works=yes
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9878 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9880 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9881 case $lt_prog_compiler_pic in
9883 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9886 lt_prog_compiler_pic=
9887 lt_prog_compiler_can_build_shared=no
9898 # Check to make sure the static flag actually works.
9900 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9902 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9903 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9904 $as_echo_n "(cached) " >&6
9906 lt_cv_prog_compiler_static_works=no
9907 save_LDFLAGS="$LDFLAGS"
9908 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9909 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9910 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9911 # The linker can only warn and ignore the option if not recognized
9912 # So say no if there are warnings
9913 if test -s conftest.err; then
9914 # Append any errors to the config.log.
9915 cat conftest.err 1>&5
9916 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9917 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9918 if diff conftest.exp conftest.er2 >/dev/null; then
9919 lt_cv_prog_compiler_static_works=yes
9922 lt_cv_prog_compiler_static_works=yes
9926 LDFLAGS="$save_LDFLAGS"
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9930 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9932 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9935 lt_prog_compiler_static=
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9945 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9946 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9947 $as_echo_n "(cached) " >&6
9949 lt_cv_prog_compiler_c_o=no
9950 $RM -r conftest 2>/dev/null
9954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9956 lt_compiler_flag="-o out/conftest2.$ac_objext"
9957 # Insert the option either (1) after the last *FLAGS variable, or
9958 # (2) before a word containing "conftest.", or (3) at the end.
9959 # Note that $ac_compile itself does not contain backslashes and begins
9960 # with a dollar sign (not a hyphen), so the echo should work correctly.
9961 lt_compile=`echo "$ac_compile" | $SED \
9962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9964 -e 's:$: $lt_compiler_flag:'`
9965 (eval echo "\"\$as_me:9965: $lt_compile\"" >&5)
9966 (eval "$lt_compile" 2>out/conftest.err)
9968 cat out/conftest.err >&5
9969 echo "$as_me:9969: \$? = $ac_status" >&5
9970 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9972 # The compiler can only warn and ignore the option if not recognized
9973 # So say no if there are warnings
9974 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9975 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9976 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9977 lt_cv_prog_compiler_c_o=yes
9982 # SGI C++ compiler will create directory out/ii_files/ for
9983 # template instantiation
9984 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9985 $RM out/* && rmdir out
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9992 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10000 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10001 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10002 $as_echo_n "(cached) " >&6
10004 lt_cv_prog_compiler_c_o=no
10005 $RM -r conftest 2>/dev/null
10009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10011 lt_compiler_flag="-o out/conftest2.$ac_objext"
10012 # Insert the option either (1) after the last *FLAGS variable, or
10013 # (2) before a word containing "conftest.", or (3) at the end.
10014 # Note that $ac_compile itself does not contain backslashes and begins
10015 # with a dollar sign (not a hyphen), so the echo should work correctly.
10016 lt_compile=`echo "$ac_compile" | $SED \
10017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10019 -e 's:$: $lt_compiler_flag:'`
10020 (eval echo "\"\$as_me:10020: $lt_compile\"" >&5)
10021 (eval "$lt_compile" 2>out/conftest.err)
10023 cat out/conftest.err >&5
10024 echo "$as_me:10024: \$? = $ac_status" >&5
10025 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10027 # The compiler can only warn and ignore the option if not recognized
10028 # So say no if there are warnings
10029 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10030 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10031 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10032 lt_cv_prog_compiler_c_o=yes
10037 # SGI C++ compiler will create directory out/ii_files/ for
10038 # template instantiation
10039 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10040 $RM out/* && rmdir out
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10047 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10052 hard_links="nottested"
10053 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10054 # do not overwrite the value of need_locks provided by the user
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10056 $as_echo_n "checking if we can lock with hard links... " >&6; }
10059 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10061 ln conftest.a conftest.b 2>&5 || hard_links=no
10062 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10064 $as_echo "$hard_links" >&6; }
10065 if test "$hard_links" = no; then
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10067 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10080 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10083 allow_undefined_flag=
10084 always_export_symbols=no
10086 archive_expsym_cmds=
10087 compiler_needs_object=no
10088 enable_shared_with_static_runtimes=no
10089 export_dynamic_flag_spec=
10090 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10091 hardcode_automatic=no
10093 hardcode_direct_absolute=no
10094 hardcode_libdir_flag_spec=
10095 hardcode_libdir_flag_spec_ld=
10096 hardcode_libdir_separator=
10097 hardcode_minus_L=no
10098 hardcode_shlibpath_var=unsupported
10100 link_all_deplibs=unknown
10102 module_expsym_cmds=
10103 old_archive_from_new_cmds=
10104 old_archive_from_expsyms_cmds=
10105 thread_safe_flag_spec=
10106 whole_archive_flag_spec=
10107 # include_expsyms should be a list of space-separated symbols to be *always*
10108 # included in the symbol list
10110 # exclude_expsyms can be an extended regexp of symbols to exclude
10111 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10112 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10113 # as well as any symbol that contains `d'.
10114 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10115 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10116 # platforms (ab)use it in PIC code, but their linkers get confused if
10117 # the symbol is explicitly referenced. Since portable code cannot
10118 # rely on this symbol name, it's probably fine to never include it in
10119 # preloaded symbol tables.
10120 # Exclude shared library initialization/finalization symbols.
10121 extract_expsyms_cmds=
10124 cygwin* | mingw* | pw32* | cegcc*)
10125 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10126 # When not using gcc, we currently assume that we are using
10127 # Microsoft Visual C++.
10128 if test "$GCC" != yes; then
10133 # we just hope/assume this is gcc and not c89 (= MSVC++)
10142 if test "$with_gnu_ld" = yes; then
10143 # If archive_cmds runs LD, not CC, wlarc should be empty
10146 # Set some defaults for GNU ld with shared library support. These
10147 # are reset later if shared libraries are not supported. Putting them
10148 # here allows them to be overridden if necessary.
10149 runpath_var=LD_RUN_PATH
10150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10151 export_dynamic_flag_spec='${wl}--export-dynamic'
10152 # ancient GNU ld didn't support --whole-archive et. al.
10153 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10154 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10156 whole_archive_flag_spec=
10158 supports_anon_versioning=no
10159 case `$LD -v 2>&1` in
10160 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10161 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10162 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10163 *\ 2.11.*) ;; # other 2.11 versions
10164 *) supports_anon_versioning=yes ;;
10167 # See if GNU ld supports shared libraries.
10170 # On AIX/PPC, the GNU linker is very broken
10171 if test "$host_cpu" != ia64; then
10175 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10176 *** to be unable to reliably create shared libraries on AIX.
10177 *** Therefore, libtool is disabling shared libraries support. If you
10178 *** really care for shared libraries, you may want to modify your PATH
10179 *** so that a non-GNU linker is found, and then restart.
10188 # see comment about AmigaOS4 .so support
10189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10190 archive_expsym_cmds=''
10193 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)'
10194 hardcode_libdir_flag_spec='-L$libdir'
10195 hardcode_minus_L=yes
10201 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10202 allow_undefined_flag=unsupported
10203 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10204 # support --undefined. This deserves some investigation. FIXME
10205 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10211 cygwin* | mingw* | pw32* | cegcc*)
10212 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10213 # as there is no search path for DLLs.
10214 hardcode_libdir_flag_spec='-L$libdir'
10215 allow_undefined_flag=unsupported
10216 always_export_symbols=no
10217 enable_shared_with_static_runtimes=yes
10218 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10220 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10222 # If the export-symbols file already is a .def file (1st line
10223 # is EXPORTS), use it as is; otherwise, prepend...
10224 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10225 cp $export_symbols $output_objdir/$soname.def;
10227 echo EXPORTS > $output_objdir/$soname.def;
10228 cat $export_symbols >> $output_objdir/$soname.def;
10230 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10238 hardcode_shlibpath_var=no
10239 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10240 export_dynamic_flag_spec='${wl}-E'
10241 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10242 # Instead, shared libraries are loaded at an image base (0x10000000 by
10243 # default) and relocated if they conflict, which is a slow very memory
10244 # consuming and fragmenting process. To avoid this, we pick a random,
10245 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10246 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10247 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10248 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'
10251 gnu* | linux* | tpf* | k*bsd*-gnu)
10253 if test "$host_os" = linux-dietlibc; then
10254 case $cc_basename in
10255 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10258 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10259 && test "$tmp_diet" = no
10262 tmp_sharedflag='-shared'
10263 case $cc_basename,$host_cpu in
10264 pgcc*) # Portland Group C compiler
10265 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'
10266 tmp_addflag=' $pic_flag'
10268 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10269 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'
10270 tmp_addflag=' $pic_flag -Mnomain' ;;
10271 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10272 tmp_addflag=' -i_dynamic' ;;
10273 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10274 tmp_addflag=' -i_dynamic -nofor_main' ;;
10275 ifc* | ifort*) # Intel Fortran compiler
10276 tmp_addflag=' -nofor_main' ;;
10277 lf95*) # Lahey Fortran 8.1
10278 whole_archive_flag_spec=
10279 tmp_sharedflag='--shared' ;;
10280 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10281 tmp_sharedflag='-qmkshrobj'
10284 case `$CC -V 2>&1 | sed 5q` in
10285 *Sun\ C*) # Sun C 5.9
10286 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'
10287 compiler_needs_object=yes
10288 tmp_sharedflag='-G' ;;
10289 *Sun\ F*) # Sun Fortran 8.3
10290 tmp_sharedflag='-G' ;;
10292 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10294 if test "x$supports_anon_versioning" = xyes; then
10295 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10296 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10297 echo "local: *; };" >> $output_objdir/$libname.ver~
10298 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10301 case $cc_basename in
10303 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10304 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10305 hardcode_libdir_flag_spec=
10306 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10307 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10308 if test "x$supports_anon_versioning" = xyes; then
10309 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10310 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10311 echo "local: *; };" >> $output_objdir/$libname.ver~
10312 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10322 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10323 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10327 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10332 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10336 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10337 *** create shared libraries on Solaris systems. Therefore, libtool
10338 *** is disabling shared libraries support. We urge you to upgrade GNU
10339 *** binutils to release 2.9.1 or newer. Another option is to modify
10340 *** your PATH or compiler configuration so that the native linker is
10341 *** used, and then restart.
10344 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10346 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10352 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10353 case `$LD -v 2>&1` in
10354 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10358 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10359 *** reliably create shared libraries on SCO systems. Therefore, libtool
10360 *** is disabling shared libraries support. We urge you to upgrade GNU
10361 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10362 *** your PATH or compiler configuration so that the native linker is
10363 *** used, and then restart.
10368 # For security reasons, it is highly recommended that you always
10369 # use absolute paths for naming shared libraries, and exclude the
10370 # DT_RUNPATH tag from executables and libraries. But doing so
10371 # requires that you compile everything twice, which is a pain.
10372 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10374 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10375 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10384 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10386 hardcode_direct=yes
10387 hardcode_shlibpath_var=no
10391 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10393 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10400 if test "$ld_shlibs" = no; then
10402 hardcode_libdir_flag_spec=
10403 export_dynamic_flag_spec=
10404 whole_archive_flag_spec=
10407 # PORTME fill in a description of your system's linker (not GNU ld)
10410 allow_undefined_flag=unsupported
10411 always_export_symbols=yes
10412 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'
10413 # Note: this linker hardcodes the directories in LIBPATH if there
10414 # are no directories specified by -L.
10415 hardcode_minus_L=yes
10416 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10417 # Neither direct hardcoding nor static linking is supported with a
10419 hardcode_direct=unsupported
10424 if test "$host_cpu" = ia64; then
10425 # On IA64, the linker does run time linking by default, so we don't
10426 # have to do anything special.
10427 aix_use_runtimelinking=no
10428 exp_sym_flag='-Bexport'
10431 # If we're using GNU nm, then we don't want the "-C" option.
10432 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10433 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10434 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'
10436 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'
10438 aix_use_runtimelinking=no
10440 # Test if we are trying to use run time linking or normal
10441 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10442 # need to do runtime linking.
10443 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10444 for ld_flag in $LDFLAGS; do
10445 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10446 aix_use_runtimelinking=yes
10453 exp_sym_flag='-bexport'
10454 no_entry_flag='-bnoentry'
10457 # When large executables or shared objects are built, AIX ld can
10458 # have problems creating the table of contents. If linking a library
10459 # or program results in "error TOC overflow" add -mminimal-toc to
10460 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10461 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10464 hardcode_direct=yes
10465 hardcode_direct_absolute=yes
10466 hardcode_libdir_separator=':'
10467 link_all_deplibs=yes
10468 file_list_spec='${wl}-f,'
10470 if test "$GCC" = yes; then
10471 case $host_os in aix4.[012]|aix4.[012].*)
10472 # We only want to do this on AIX 4.2 and lower, the check
10473 # below for broken collect2 doesn't work under 4.3+
10474 collect2name=`${CC} -print-prog-name=collect2`
10475 if test -f "$collect2name" &&
10476 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10478 # We have reworked collect2
10481 # We have old collect2
10482 hardcode_direct=unsupported
10483 # It fails to find uninstalled libraries when the uninstalled
10484 # path is not listed in the libpath. Setting hardcode_minus_L
10485 # to unsupported forces relinking
10486 hardcode_minus_L=yes
10487 hardcode_libdir_flag_spec='-L$libdir'
10488 hardcode_libdir_separator=
10492 shared_flag='-shared'
10493 if test "$aix_use_runtimelinking" = yes; then
10494 shared_flag="$shared_flag "'${wl}-G'
10498 if test "$host_cpu" = ia64; then
10499 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10500 # chokes on -Wl,-G. The following line is correct:
10503 if test "$aix_use_runtimelinking" = yes; then
10504 shared_flag='${wl}-G'
10506 shared_flag='${wl}-bM:SRE'
10511 export_dynamic_flag_spec='${wl}-bexpall'
10512 # It seems that -bexpall does not export symbols beginning with
10513 # underscore (_), so it is better to generate a list of symbols to export.
10514 always_export_symbols=yes
10515 if test "$aix_use_runtimelinking" = yes; then
10516 # Warning - without using the other runtime loading flags (-brtl),
10517 # -berok will link without error, but may produce a broken library.
10518 allow_undefined_flag='-berok'
10519 # Determine the default libpath from the value encoded in an
10520 # empty executable.
10521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h. */
10532 if ac_fn_c_try_link "$LINENO"; then :
10534 lt_aix_libpath_sed='
10535 /Import File Strings/,/^$/ {
10541 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10542 # Check for a 64-bit object if we didn't find anything.
10543 if test -z "$aix_libpath"; then
10544 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10547 rm -f core conftest.err conftest.$ac_objext \
10548 conftest$ac_exeext conftest.$ac_ext
10549 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10551 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10552 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"
10554 if test "$host_cpu" = ia64; then
10555 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10556 allow_undefined_flag="-z nodefs"
10557 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"
10559 # Determine the default libpath from the value encoded in an
10560 # empty executable.
10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10572 if ac_fn_c_try_link "$LINENO"; then :
10574 lt_aix_libpath_sed='
10575 /Import File Strings/,/^$/ {
10581 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10582 # Check for a 64-bit object if we didn't find anything.
10583 if test -z "$aix_libpath"; then
10584 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10587 rm -f core conftest.err conftest.$ac_objext \
10588 conftest$ac_exeext conftest.$ac_ext
10589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10591 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10592 # Warning - without using the other run time loading flags,
10593 # -berok will link without error, but may produce a broken library.
10594 no_undefined_flag=' ${wl}-bernotok'
10595 allow_undefined_flag=' ${wl}-berok'
10596 # Exported symbols can be pulled into shared objects from archives
10597 whole_archive_flag_spec='$convenience'
10598 archive_cmds_need_lc=yes
10599 # This is similar to how AIX traditionally builds its shared libraries.
10600 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'
10608 # see comment about AmigaOS4 .so support
10609 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10610 archive_expsym_cmds=''
10613 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)'
10614 hardcode_libdir_flag_spec='-L$libdir'
10615 hardcode_minus_L=yes
10621 export_dynamic_flag_spec=-rdynamic
10624 cygwin* | mingw* | pw32* | cegcc*)
10625 # When not using gcc, we currently assume that we are using
10626 # Microsoft Visual C++.
10627 # hardcode_libdir_flag_spec is actually meaningless, as there is
10628 # no search path for DLLs.
10629 hardcode_libdir_flag_spec=' '
10630 allow_undefined_flag=unsupported
10631 # Tell ltmain to make .lib files, not .a files.
10633 # Tell ltmain to make .dll files, not .so files.
10635 # FIXME: Setting linknames here is a bad hack.
10636 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10637 # The linker will automatically build a .lib file if we build a DLL.
10638 old_archive_from_new_cmds='true'
10639 # FIXME: Should let the user specify the lib program.
10640 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10641 fix_srcfile_path='`cygpath -w "$srcfile"`'
10642 enable_shared_with_static_runtimes=yes
10645 darwin* | rhapsody*)
10648 archive_cmds_need_lc=no
10650 hardcode_automatic=yes
10651 hardcode_shlibpath_var=unsupported
10652 whole_archive_flag_spec=''
10653 link_all_deplibs=yes
10654 allow_undefined_flag="$_lt_dar_allow_undefined"
10655 case $cc_basename in
10656 ifort*) _lt_dar_can_shared=yes ;;
10657 *) _lt_dar_can_shared=$GCC ;;
10659 if test "$_lt_dar_can_shared" = "yes"; then
10660 output_verbose_link_cmd=echo
10661 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10662 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10663 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}"
10664 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}"
10673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10674 hardcode_libdir_flag_spec='-L$libdir'
10675 hardcode_shlibpath_var=no
10682 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10683 # support. Future versions do this automatically, but an explicit c++rt0.o
10684 # does not break anything, and helps significantly (at the cost of a little
10687 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10688 hardcode_libdir_flag_spec='-R$libdir'
10689 hardcode_direct=yes
10690 hardcode_shlibpath_var=no
10693 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10695 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10696 hardcode_direct=yes
10697 hardcode_minus_L=yes
10698 hardcode_shlibpath_var=no
10701 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10702 freebsd* | dragonfly*)
10703 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10704 hardcode_libdir_flag_spec='-R$libdir'
10705 hardcode_direct=yes
10706 hardcode_shlibpath_var=no
10710 if test "$GCC" = yes; then
10711 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'
10713 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'
10715 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10716 hardcode_libdir_separator=:
10717 hardcode_direct=yes
10719 # hardcode_minus_L: Not really in the search PATH,
10720 # but as the default location of the library.
10721 hardcode_minus_L=yes
10722 export_dynamic_flag_spec='${wl}-E'
10726 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10727 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10729 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10731 if test "$with_gnu_ld" = no; then
10732 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10733 hardcode_libdir_flag_spec_ld='+b $libdir'
10734 hardcode_libdir_separator=:
10735 hardcode_direct=yes
10736 hardcode_direct_absolute=yes
10737 export_dynamic_flag_spec='${wl}-E'
10738 # hardcode_minus_L: Not really in the search PATH,
10739 # but as the default location of the library.
10740 hardcode_minus_L=yes
10745 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10748 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10751 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10754 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10760 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10763 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10766 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10770 if test "$with_gnu_ld" = no; then
10771 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10772 hardcode_libdir_separator=:
10777 hardcode_shlibpath_var=no
10780 hardcode_direct=yes
10781 hardcode_direct_absolute=yes
10782 export_dynamic_flag_spec='${wl}-E'
10784 # hardcode_minus_L: Not really in the search PATH,
10785 # but as the default location of the library.
10786 hardcode_minus_L=yes
10792 irix5* | irix6* | nonstopux*)
10793 if test "$GCC" = yes; then
10794 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'
10795 # Try to use the -exported_symbol ld option, if it does not
10796 # work, assume that -exports_file does not work either and
10797 # implicitly export all symbols.
10798 save_LDFLAGS="$LDFLAGS"
10799 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10801 /* end confdefs.h. */
10804 if ac_fn_c_try_link "$LINENO"; then :
10805 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'
10808 rm -f core conftest.err conftest.$ac_objext \
10809 conftest$ac_exeext conftest.$ac_ext
10810 LDFLAGS="$save_LDFLAGS"
10812 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'
10813 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'
10815 archive_cmds_need_lc='no'
10816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10817 hardcode_libdir_separator=:
10819 link_all_deplibs=yes
10823 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10824 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10826 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10828 hardcode_libdir_flag_spec='-R$libdir'
10829 hardcode_direct=yes
10830 hardcode_shlibpath_var=no
10834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10835 hardcode_direct=yes
10836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10837 hardcode_libdir_separator=:
10838 hardcode_shlibpath_var=no
10845 if test -f /usr/libexec/ld.so; then
10846 hardcode_direct=yes
10847 hardcode_shlibpath_var=no
10848 hardcode_direct_absolute=yes
10849 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10850 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10851 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10852 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10853 export_dynamic_flag_spec='${wl}-E'
10856 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10857 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10858 hardcode_libdir_flag_spec='-R$libdir'
10861 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10862 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10872 hardcode_libdir_flag_spec='-L$libdir'
10873 hardcode_minus_L=yes
10874 allow_undefined_flag=unsupported
10875 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'
10876 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10880 if test "$GCC" = yes; then
10881 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10882 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'
10884 allow_undefined_flag=' -expect_unresolved \*'
10885 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'
10887 archive_cmds_need_lc='no'
10888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10889 hardcode_libdir_separator=:
10892 osf4* | osf5*) # as osf3* with the addition of -msym flag
10893 if test "$GCC" = yes; then
10894 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10895 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'
10896 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10898 allow_undefined_flag=' -expect_unresolved \*'
10899 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'
10900 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~
10901 $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'
10903 # Both c and cxx compiler support -rpath directly
10904 hardcode_libdir_flag_spec='-rpath $libdir'
10906 archive_cmds_need_lc='no'
10907 hardcode_libdir_separator=:
10911 no_undefined_flag=' -z defs'
10912 if test "$GCC" = yes; then
10914 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10915 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10916 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10918 case `$CC -V 2>&1` in
10921 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10922 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10923 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10927 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10928 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10929 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10933 hardcode_libdir_flag_spec='-R$libdir'
10934 hardcode_shlibpath_var=no
10936 solaris2.[0-5] | solaris2.[0-5].*) ;;
10938 # The compiler driver will combine and reorder linker options,
10939 # but understands `-z linker_flag'. GCC discards it without `$wl',
10940 # but is careful enough not to reorder.
10941 # Supported since Solaris 2.6 (maybe 2.5.1?)
10942 if test "$GCC" = yes; then
10943 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10945 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10949 link_all_deplibs=yes
10953 if test "x$host_vendor" = xsequent; then
10954 # Use $CC to link under sequent, because it throws in some extra .o
10955 # files that make .init and .fini sections work.
10956 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10958 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10960 hardcode_libdir_flag_spec='-L$libdir'
10961 hardcode_direct=yes
10962 hardcode_minus_L=yes
10963 hardcode_shlibpath_var=no
10967 case $host_vendor in
10969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10970 hardcode_direct=yes # is this really true???
10973 ## LD is ld it makes a PLAMLIB
10974 ## CC just makes a GrossModule.
10975 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10976 reload_cmds='$CC -r -o $output$reload_objs'
10980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10981 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10984 runpath_var='LD_RUN_PATH'
10985 hardcode_shlibpath_var=no
10989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10990 hardcode_shlibpath_var=no
10991 export_dynamic_flag_spec='-Bexport'
10995 if test -d /usr/nec; then
10996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10997 hardcode_shlibpath_var=no
10998 runpath_var=LD_RUN_PATH
10999 hardcode_runpath_var=yes
11004 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11005 no_undefined_flag='${wl}-z,text'
11006 archive_cmds_need_lc=no
11007 hardcode_shlibpath_var=no
11008 runpath_var='LD_RUN_PATH'
11010 if test "$GCC" = yes; then
11011 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11012 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11014 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11015 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11019 sysv5* | sco3.2v5* | sco5v6*)
11020 # Note: We can NOT use -z defs as we might desire, because we do not
11021 # link with -lc, and that would cause any symbols used from libc to
11022 # always be unresolved, which means just about no library would
11023 # ever link correctly. If we're not using GNU ld we use -z text
11024 # though, which does catch some bad symbols but isn't as heavy-handed
11026 no_undefined_flag='${wl}-z,text'
11027 allow_undefined_flag='${wl}-z,nodefs'
11028 archive_cmds_need_lc=no
11029 hardcode_shlibpath_var=no
11030 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11031 hardcode_libdir_separator=':'
11032 link_all_deplibs=yes
11033 export_dynamic_flag_spec='${wl}-Bexport'
11034 runpath_var='LD_RUN_PATH'
11036 if test "$GCC" = yes; then
11037 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11038 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11040 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11041 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11047 hardcode_libdir_flag_spec='-L$libdir'
11048 hardcode_shlibpath_var=no
11056 if test x$host_vendor = xsni; then
11058 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11059 export_dynamic_flag_spec='${wl}-Blargedynsym'
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11066 $as_echo "$ld_shlibs" >&6; }
11067 test "$ld_shlibs" = no && can_build_shared=no
11069 with_gnu_ld=$with_gnu_ld
11086 # Do we need to explicitly link libc?
11088 case "x$archive_cmds_need_lc" in
11090 # Assume -lc should be added
11091 archive_cmds_need_lc=yes
11093 if test "$enable_shared" = yes && test "$GCC" = yes; then
11094 case $archive_cmds in
11096 # FIXME: we may have to deal with multi-command sequences.
11099 # Test whether the compiler implicitly links with -lc since on some
11100 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11101 # to ld, don't add -lc before -lgcc.
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11103 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11108 (eval $ac_compile) 2>&5
11110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11111 test $ac_status = 0; } 2>conftest.err; then
11114 libobjs=conftest.$ac_objext
11116 wl=$lt_prog_compiler_wl
11117 pic_flag=$lt_prog_compiler_pic
11123 lt_save_allow_undefined_flag=$allow_undefined_flag
11124 allow_undefined_flag=
11125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11126 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11129 test $ac_status = 0; }
11131 archive_cmds_need_lc=no
11133 archive_cmds_need_lc=yes
11135 allow_undefined_flag=$lt_save_allow_undefined_flag
11137 cat conftest.err 1>&5
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11141 $as_echo "$archive_cmds_need_lc" >&6; }
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11305 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11307 if test "$GCC" = yes; then
11309 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11310 *) lt_awk_arg="/^libraries:/" ;;
11312 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11313 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11314 # if the path contains ";" then we assume it to be the separator
11315 # otherwise default to the standard path separator (i.e. ":") - it is
11316 # assumed that no part of a normal pathname contains ";" but that should
11317 # okay in the real world where ";" in dirpaths is itself problematic.
11318 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11320 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11322 # Ok, now we have the path, separated by spaces, we can step through it
11323 # and add multilib dir if necessary.
11324 lt_tmp_lt_search_path_spec=
11325 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11326 for lt_sys_path in $lt_search_path_spec; do
11327 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11328 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11330 test -d "$lt_sys_path" && \
11331 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11334 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11335 BEGIN {RS=" "; FS="/|\n";} {
11338 for (lt_i = NF; lt_i > 0; lt_i--) {
11339 if ($lt_i != "" && $lt_i != ".") {
11340 if ($lt_i == "..") {
11343 if (lt_count == 0) {
11344 lt_foo="/" $lt_i lt_foo;
11351 if (lt_foo != "") { lt_freq[lt_foo]++; }
11352 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11354 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11356 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11358 library_names_spec=
11359 libname_spec='lib$name'
11363 postuninstall_cmds=
11367 shlibpath_overrides_runpath=unknown
11369 dynamic_linker="$host_os ld.so"
11370 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11371 need_lib_prefix=unknown
11372 hardcode_into_libs=no
11374 # when you set need_version to no, make sure it does not cause -set_version
11375 # flags to be left without arguments
11376 need_version=unknown
11381 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11382 shlibpath_var=LIBPATH
11384 # AIX 3 has no versioning support, so we append a major version to the name.
11385 soname_spec='${libname}${release}${shared_ext}$major'
11392 hardcode_into_libs=yes
11393 if test "$host_cpu" = ia64; then
11394 # AIX 5 supports IA64
11395 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11396 shlibpath_var=LD_LIBRARY_PATH
11398 # With GCC up to 2.95.x, collect2 would create an import file
11399 # for dependence libraries. The import file would start with
11400 # the line `#! .'. This would cause the generated library to
11401 # depend on `.', always an invalid library. This was fixed in
11402 # development snapshots of GCC prior to 3.0.
11404 aix4 | aix4.[01] | aix4.[01].*)
11405 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11407 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11410 can_build_shared=no
11414 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11415 # soname into executable. Probably we can add versioning support to
11416 # collect2, so additional links can be useful in future.
11417 if test "$aix_use_runtimelinking" = yes; then
11418 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11419 # instead of lib<name>.a to let people know that these are not
11420 # typical AIX shared libraries.
11421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11423 # We preserve .a as extension for shared libraries through AIX4.2
11424 # and later when we are not doing run time linking.
11425 library_names_spec='${libname}${release}.a $libname.a'
11426 soname_spec='${libname}${release}${shared_ext}$major'
11428 shlibpath_var=LIBPATH
11435 # Since July 2007 AmigaOS4 officially supports .so libraries.
11436 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11440 library_names_spec='$libname.ixlibrary $libname.a'
11441 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11442 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'
11448 library_names_spec='${libname}${shared_ext}'
11449 dynamic_linker="$host_os ld.so"
11450 shlibpath_var=LIBRARY_PATH
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11457 soname_spec='${libname}${release}${shared_ext}$major'
11458 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11459 shlibpath_var=LD_LIBRARY_PATH
11460 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11461 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11462 # the default ld.so.conf also contains /usr/contrib/lib and
11463 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11464 # libtool to hard-code these into programs
11467 cygwin* | mingw* | pw32* | cegcc*)
11468 version_type=windows
11473 case $GCC,$host_os in
11474 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11475 library_names_spec='$libname.dll.a'
11476 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11477 postinstall_cmds='base_file=`basename \${file}`~
11478 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11479 dldir=$destdir/`dirname \$dlpath`~
11480 test -d \$dldir || mkdir -p \$dldir~
11481 $install_prog $dir/$dlname \$dldir/$dlname~
11482 chmod a+x \$dldir/$dlname~
11483 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11484 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11486 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11487 dlpath=$dir/\$dldll~
11489 shlibpath_overrides_runpath=yes
11493 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11494 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11495 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11498 # MinGW DLLs use traditional 'lib' prefix
11499 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11500 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11501 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11502 # It is most probably a Windows format PATH printed by
11503 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11504 # path with ; separators, and with drive letters. We can handle the
11505 # drive letters (cygwin fileutils understands them), so leave them,
11506 # especially as we might pass files found there to a mingw objdump,
11507 # which wouldn't understand a cygwinified path. Ahh.
11508 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11510 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11514 # pw32 DLLs use 'pw' prefix rather than 'lib'
11515 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11521 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11524 dynamic_linker='Win32 ld.exe'
11525 # FIXME: first we should search . and the directory the executable is in
11529 darwin* | rhapsody*)
11530 dynamic_linker="$host_os dyld"
11531 version_type=darwin
11534 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11535 soname_spec='${libname}${release}${major}$shared_ext'
11536 shlibpath_overrides_runpath=yes
11537 shlibpath_var=DYLD_LIBRARY_PATH
11538 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11540 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11541 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11549 soname_spec='${libname}${release}${shared_ext}$major'
11550 shlibpath_var=LD_LIBRARY_PATH
11557 freebsd* | dragonfly*)
11558 # DragonFly does not have aout. When/if they implement a new
11559 # versioning mechanism, adjust this.
11560 if test -x /usr/bin/objformat; then
11561 objformat=`/usr/bin/objformat`
11564 freebsd[123]*) objformat=aout ;;
11565 *) objformat=elf ;;
11568 version_type=freebsd-$objformat
11569 case $version_type in
11571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11576 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11580 shlibpath_var=LD_LIBRARY_PATH
11583 shlibpath_overrides_runpath=yes
11585 freebsd3.[01]* | freebsdelf3.[01]*)
11586 shlibpath_overrides_runpath=yes
11587 hardcode_into_libs=yes
11589 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11590 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11591 shlibpath_overrides_runpath=no
11592 hardcode_into_libs=yes
11594 *) # from 4.6 on, and DragonFly
11595 shlibpath_overrides_runpath=yes
11596 hardcode_into_libs=yes
11605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11606 soname_spec='${libname}${release}${shared_ext}$major'
11607 shlibpath_var=LD_LIBRARY_PATH
11608 hardcode_into_libs=yes
11611 hpux9* | hpux10* | hpux11*)
11612 # Give a soname corresponding to the major version so that dld.sl refuses to
11613 # link against other versions.
11620 hardcode_into_libs=yes
11621 dynamic_linker="$host_os dld.so"
11622 shlibpath_var=LD_LIBRARY_PATH
11623 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11625 soname_spec='${libname}${release}${shared_ext}$major'
11626 if test "X$HPUX_IA64_MODE" = X32; then
11627 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11629 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11631 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11635 hardcode_into_libs=yes
11636 dynamic_linker="$host_os dld.sl"
11637 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11638 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11640 soname_spec='${libname}${release}${shared_ext}$major'
11641 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11642 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11646 dynamic_linker="$host_os dld.sl"
11647 shlibpath_var=SHLIB_PATH
11648 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11650 soname_spec='${libname}${release}${shared_ext}$major'
11653 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11654 postinstall_cmds='chmod 555 $lib'
11661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11662 soname_spec='${libname}${release}${shared_ext}$major'
11663 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11664 shlibpath_var=LD_LIBRARY_PATH
11665 shlibpath_overrides_runpath=no
11666 hardcode_into_libs=yes
11669 irix5* | irix6* | nonstopux*)
11671 nonstopux*) version_type=nonstopux ;;
11673 if test "$lt_cv_prog_gnu_ld" = yes; then
11681 soname_spec='${libname}${release}${shared_ext}$major'
11682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11684 irix5* | nonstopux*)
11685 libsuff= shlibsuff=
11688 case $LD in # libtool.m4 will add one of these switches to LD
11689 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11690 libsuff= shlibsuff= libmagic=32-bit;;
11691 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11692 libsuff=32 shlibsuff=N32 libmagic=N32;;
11693 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11694 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11695 *) libsuff= shlibsuff= libmagic=never-match;;
11699 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11700 shlibpath_overrides_runpath=no
11701 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11702 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11703 hardcode_into_libs=yes
11706 # No shared lib support for Linux oldld, aout, or coff.
11707 linux*oldld* | linux*aout* | linux*coff*)
11711 # This must be Linux ELF.
11712 linux* | k*bsd*-gnu)
11716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11717 soname_spec='${libname}${release}${shared_ext}$major'
11718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11719 shlibpath_var=LD_LIBRARY_PATH
11720 shlibpath_overrides_runpath=no
11721 # Some binutils ld are patched to set DT_RUNPATH
11722 save_LDFLAGS=$LDFLAGS
11723 save_libdir=$libdir
11724 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11725 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11727 /* end confdefs.h. */
11737 if ac_fn_c_try_link "$LINENO"; then :
11738 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11739 shlibpath_overrides_runpath=yes
11742 rm -f core conftest.err conftest.$ac_objext \
11743 conftest$ac_exeext conftest.$ac_ext
11744 LDFLAGS=$save_LDFLAGS
11745 libdir=$save_libdir
11747 # This implies no fast_install, which is unacceptable.
11748 # Some rework will be needed to allow for fast_install
11749 # before this can be enabled.
11750 hardcode_into_libs=yes
11752 # Append ld.so.conf contents to the search path
11753 if test -f /etc/ld.so.conf; then
11754 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' ' '`
11755 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11758 # We used to test for /lib/ld.so.1 and disable shared libraries on
11759 # powerpc, because MkLinux only supported shared libraries with the
11760 # GNU dynamic linker. Since this was broken with cross compilers,
11761 # most powerpc-linux boxes support dynamic linking these days and
11762 # people can always --disable-shared, the test was removed, and we
11763 # assume the GNU/Linux dynamic linker is in use.
11764 dynamic_linker='GNU/Linux ld.so'
11771 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11774 dynamic_linker='NetBSD (a.out) ld.so'
11776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11777 soname_spec='${libname}${release}${shared_ext}$major'
11778 dynamic_linker='NetBSD ld.elf_so'
11780 shlibpath_var=LD_LIBRARY_PATH
11781 shlibpath_overrides_runpath=yes
11782 hardcode_into_libs=yes
11787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11788 shlibpath_var=LD_LIBRARY_PATH
11789 shlibpath_overrides_runpath=yes
11796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11797 soname_spec='${libname}${release}${shared_ext}$major'
11798 shlibpath_var=LD_LIBRARY_PATH
11799 shlibpath_overrides_runpath=no
11800 hardcode_into_libs=yes
11801 dynamic_linker='ldqnx.so'
11806 sys_lib_dlsearch_path_spec="/usr/lib"
11808 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11810 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11811 *) need_version=no ;;
11813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11815 shlibpath_var=LD_LIBRARY_PATH
11816 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11818 openbsd2.[89] | openbsd2.[89].*)
11819 shlibpath_overrides_runpath=no
11822 shlibpath_overrides_runpath=yes
11826 shlibpath_overrides_runpath=yes
11831 libname_spec='$name'
11834 library_names_spec='$libname${shared_ext} $libname.a'
11835 dynamic_linker='OS/2 ld.exe'
11836 shlibpath_var=LIBPATH
11839 osf3* | osf4* | osf5*)
11843 soname_spec='${libname}${release}${shared_ext}$major'
11844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11845 shlibpath_var=LD_LIBRARY_PATH
11846 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11847 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11859 soname_spec='${libname}${release}${shared_ext}$major'
11860 shlibpath_var=LD_LIBRARY_PATH
11861 shlibpath_overrides_runpath=yes
11862 hardcode_into_libs=yes
11863 # ldd complains unless libraries are executable
11864 postinstall_cmds='chmod +x $lib'
11869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11870 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11871 shlibpath_var=LD_LIBRARY_PATH
11872 shlibpath_overrides_runpath=yes
11873 if test "$with_gnu_ld" = yes; then
11881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11882 soname_spec='${libname}${release}${shared_ext}$major'
11883 shlibpath_var=LD_LIBRARY_PATH
11884 case $host_vendor in
11886 shlibpath_overrides_runpath=no
11888 runpath_var=LD_RUN_PATH
11896 shlibpath_overrides_runpath=no
11897 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11903 if test -d /usr/nec ;then
11905 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11906 soname_spec='$libname${shared_ext}.$major'
11907 shlibpath_var=LD_LIBRARY_PATH
11911 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11912 version_type=freebsd-elf
11915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11916 soname_spec='${libname}${release}${shared_ext}$major'
11917 shlibpath_var=LD_LIBRARY_PATH
11918 shlibpath_overrides_runpath=yes
11919 hardcode_into_libs=yes
11920 if test "$with_gnu_ld" = yes; then
11921 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11923 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11926 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11930 sys_lib_dlsearch_path_spec='/usr/lib'
11934 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11939 shlibpath_var=LD_LIBRARY_PATH
11940 shlibpath_overrides_runpath=no
11941 hardcode_into_libs=yes
11946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11947 soname_spec='${libname}${release}${shared_ext}$major'
11948 shlibpath_var=LD_LIBRARY_PATH
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11956 $as_echo "$dynamic_linker" >&6; }
11957 test "$dynamic_linker" = no && can_build_shared=no
11959 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11960 if test "$GCC" = yes; then
11961 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11964 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11965 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11967 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11968 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12058 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12060 if test -n "$hardcode_libdir_flag_spec" ||
12061 test -n "$runpath_var" ||
12062 test "X$hardcode_automatic" = "Xyes" ; then
12064 # We can hardcode non-existent directories.
12065 if test "$hardcode_direct" != no &&
12066 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12067 # have to relink, otherwise we might link with an installed library
12068 # when we should be linking with a yet-to-be-installed one
12069 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12070 test "$hardcode_minus_L" != no; then
12071 # Linking always hardcodes the temporary library directory.
12072 hardcode_action=relink
12074 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12075 hardcode_action=immediate
12078 # We cannot hardcode anything, or else we can only hardcode existing
12080 hardcode_action=unsupported
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12083 $as_echo "$hardcode_action" >&6; }
12085 if test "$hardcode_action" = relink ||
12086 test "$inherit_rpath" = yes; then
12087 # Fast installation is not supported
12088 enable_fast_install=no
12089 elif test "$shlibpath_overrides_runpath" = yes ||
12090 test "$enable_shared" = no; then
12091 # Fast installation is not necessary
12092 enable_fast_install=needless
12100 if test "x$enable_dlopen" != xyes; then
12101 enable_dlopen=unknown
12102 enable_dlopen_self=unknown
12103 enable_dlopen_self_static=unknown
12110 lt_cv_dlopen="load_add_on"
12112 lt_cv_dlopen_self=yes
12115 mingw* | pw32* | cegcc*)
12116 lt_cv_dlopen="LoadLibrary"
12121 lt_cv_dlopen="dlopen"
12126 # if libdl is installed we need to link against it
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12128 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12129 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12130 $as_echo_n "(cached) " >&6
12132 ac_check_lib_save_LIBS=$LIBS
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h. */
12137 /* Override any GCC internal prototype to avoid an error.
12138 Use char because int might match the return type of a GCC
12139 builtin and then its argument prototype would still apply. */
12152 if ac_fn_c_try_link "$LINENO"; then :
12153 ac_cv_lib_dl_dlopen=yes
12155 ac_cv_lib_dl_dlopen=no
12157 rm -f core conftest.err conftest.$ac_objext \
12158 conftest$ac_exeext conftest.$ac_ext
12159 LIBS=$ac_check_lib_save_LIBS
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12162 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12163 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12164 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12167 lt_cv_dlopen="dyld"
12169 lt_cv_dlopen_self=yes
12176 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12177 if test "x$ac_cv_func_shl_load" = x""yes; then :
12178 lt_cv_dlopen="shl_load"
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12181 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12182 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12183 $as_echo_n "(cached) " >&6
12185 ac_check_lib_save_LIBS=$LIBS
12187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188 /* end confdefs.h. */
12190 /* Override any GCC internal prototype to avoid an error.
12191 Use char because int might match the return type of a GCC
12192 builtin and then its argument prototype would still apply. */
12200 return shl_load ();
12205 if ac_fn_c_try_link "$LINENO"; then :
12206 ac_cv_lib_dld_shl_load=yes
12208 ac_cv_lib_dld_shl_load=no
12210 rm -f core conftest.err conftest.$ac_objext \
12211 conftest$ac_exeext conftest.$ac_ext
12212 LIBS=$ac_check_lib_save_LIBS
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12215 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12216 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12217 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12219 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12220 if test "x$ac_cv_func_dlopen" = x""yes; then :
12221 lt_cv_dlopen="dlopen"
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12224 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12225 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12226 $as_echo_n "(cached) " >&6
12228 ac_check_lib_save_LIBS=$LIBS
12230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h. */
12233 /* Override any GCC internal prototype to avoid an error.
12234 Use char because int might match the return type of a GCC
12235 builtin and then its argument prototype would still apply. */
12248 if ac_fn_c_try_link "$LINENO"; then :
12249 ac_cv_lib_dl_dlopen=yes
12251 ac_cv_lib_dl_dlopen=no
12253 rm -f core conftest.err conftest.$ac_objext \
12254 conftest$ac_exeext conftest.$ac_ext
12255 LIBS=$ac_check_lib_save_LIBS
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12258 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12259 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12260 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12263 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12264 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12265 $as_echo_n "(cached) " >&6
12267 ac_check_lib_save_LIBS=$LIBS
12268 LIBS="-lsvld $LIBS"
12269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270 /* end confdefs.h. */
12272 /* Override any GCC internal prototype to avoid an error.
12273 Use char because int might match the return type of a GCC
12274 builtin and then its argument prototype would still apply. */
12287 if ac_fn_c_try_link "$LINENO"; then :
12288 ac_cv_lib_svld_dlopen=yes
12290 ac_cv_lib_svld_dlopen=no
12292 rm -f core conftest.err conftest.$ac_objext \
12293 conftest$ac_exeext conftest.$ac_ext
12294 LIBS=$ac_check_lib_save_LIBS
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12297 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12298 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12299 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12302 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12303 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12304 $as_echo_n "(cached) " >&6
12306 ac_check_lib_save_LIBS=$LIBS
12308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12309 /* end confdefs.h. */
12311 /* Override any GCC internal prototype to avoid an error.
12312 Use char because int might match the return type of a GCC
12313 builtin and then its argument prototype would still apply. */
12321 return dld_link ();
12326 if ac_fn_c_try_link "$LINENO"; then :
12327 ac_cv_lib_dld_dld_link=yes
12329 ac_cv_lib_dld_dld_link=no
12331 rm -f core conftest.err conftest.$ac_objext \
12332 conftest$ac_exeext conftest.$ac_ext
12333 LIBS=$ac_check_lib_save_LIBS
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12336 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12337 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12338 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12359 if test "x$lt_cv_dlopen" != xno; then
12365 case $lt_cv_dlopen in
12367 save_CPPFLAGS="$CPPFLAGS"
12368 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12370 save_LDFLAGS="$LDFLAGS"
12371 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12374 LIBS="$lt_cv_dlopen_libs $LIBS"
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12377 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12378 if test "${lt_cv_dlopen_self+set}" = set; then :
12379 $as_echo_n "(cached) " >&6
12381 if test "$cross_compiling" = yes; then :
12382 lt_cv_dlopen_self=cross
12384 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12385 lt_status=$lt_dlunknown
12386 cat > conftest.$ac_ext <<_LT_EOF
12387 #line 12387 "configure"
12388 #include "confdefs.h"
12397 # define LT_DLGLOBAL RTLD_GLOBAL
12400 # define LT_DLGLOBAL DL_GLOBAL
12402 # define LT_DLGLOBAL 0
12406 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12407 find out it does not work in some platform. */
12408 #ifndef LT_DLLAZY_OR_NOW
12410 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12413 # define LT_DLLAZY_OR_NOW DL_LAZY
12416 # define LT_DLLAZY_OR_NOW RTLD_NOW
12419 # define LT_DLLAZY_OR_NOW DL_NOW
12421 # define LT_DLLAZY_OR_NOW 0
12428 void fnord() { int i=42;}
12431 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12432 int status = $lt_dlunknown;
12436 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12437 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12438 /* dlclose (self); */
12446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12447 (eval $ac_link) 2>&5
12449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12450 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12451 (./conftest; exit; ) >&5 2>/dev/null
12453 case x$lt_status in
12454 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12455 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12456 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12459 # compilation failed
12460 lt_cv_dlopen_self=no
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12468 $as_echo "$lt_cv_dlopen_self" >&6; }
12470 if test "x$lt_cv_dlopen_self" = xyes; then
12471 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12473 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12474 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12475 $as_echo_n "(cached) " >&6
12477 if test "$cross_compiling" = yes; then :
12478 lt_cv_dlopen_self_static=cross
12480 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12481 lt_status=$lt_dlunknown
12482 cat > conftest.$ac_ext <<_LT_EOF
12483 #line 12483 "configure"
12484 #include "confdefs.h"
12493 # define LT_DLGLOBAL RTLD_GLOBAL
12496 # define LT_DLGLOBAL DL_GLOBAL
12498 # define LT_DLGLOBAL 0
12502 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12503 find out it does not work in some platform. */
12504 #ifndef LT_DLLAZY_OR_NOW
12506 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12509 # define LT_DLLAZY_OR_NOW DL_LAZY
12512 # define LT_DLLAZY_OR_NOW RTLD_NOW
12515 # define LT_DLLAZY_OR_NOW DL_NOW
12517 # define LT_DLLAZY_OR_NOW 0
12524 void fnord() { int i=42;}
12527 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12528 int status = $lt_dlunknown;
12532 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12533 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12534 /* dlclose (self); */
12542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12543 (eval $ac_link) 2>&5
12545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12546 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12547 (./conftest; exit; ) >&5 2>/dev/null
12549 case x$lt_status in
12550 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12551 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12552 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12555 # compilation failed
12556 lt_cv_dlopen_self_static=no
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12564 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12567 CPPFLAGS="$save_CPPFLAGS"
12568 LDFLAGS="$save_LDFLAGS"
12573 case $lt_cv_dlopen_self in
12574 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12575 *) enable_dlopen_self=unknown ;;
12578 case $lt_cv_dlopen_self_static in
12579 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12580 *) enable_dlopen_self_static=unknown ;;
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12603 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12604 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12605 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12606 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12608 $as_echo "yes" >&6; }
12610 # FIXME - insert some real tests, host_os isn't really good enough
12613 if test -n "$STRIP" ; then
12614 striplib="$STRIP -x"
12615 old_striplib="$STRIP -S"
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12617 $as_echo "yes" >&6; }
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620 $as_echo "no" >&6; }
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12641 # Report which library types will actually be built
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12643 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12645 $as_echo "$can_build_shared" >&6; }
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12648 $as_echo_n "checking whether to build shared libraries... " >&6; }
12649 test "$can_build_shared" = "no" && enable_shared=no
12651 # On AIX, shared libraries and static libraries use the same namespace, and
12652 # are all built from PIC.
12655 test "$enable_shared" = yes && enable_static=no
12656 if test -n "$RANLIB"; then
12657 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12658 postinstall_cmds='$RANLIB $lib'
12663 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12664 test "$enable_shared" = yes && enable_static=no
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12669 $as_echo "$enable_shared" >&6; }
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12672 $as_echo_n "checking whether to build static libraries... " >&6; }
12673 # Make sure either enable_shared or enable_static is yes.
12674 test "$enable_shared" = yes || enable_static=yes
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12676 $as_echo "$enable_static" >&6; }
12683 ac_cpp='$CPP $CPPFLAGS'
12684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12692 ac_cpp='$CXXCPP $CPPFLAGS'
12693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12697 archive_cmds_need_lc_CXX=no
12698 allow_undefined_flag_CXX=
12699 always_export_symbols_CXX=no
12700 archive_expsym_cmds_CXX=
12701 compiler_needs_object_CXX=no
12702 export_dynamic_flag_spec_CXX=
12703 hardcode_direct_CXX=no
12704 hardcode_direct_absolute_CXX=no
12705 hardcode_libdir_flag_spec_CXX=
12706 hardcode_libdir_flag_spec_ld_CXX=
12707 hardcode_libdir_separator_CXX=
12708 hardcode_minus_L_CXX=no
12709 hardcode_shlibpath_var_CXX=unsupported
12710 hardcode_automatic_CXX=no
12711 inherit_rpath_CXX=no
12713 module_expsym_cmds_CXX=
12714 link_all_deplibs_CXX=unknown
12715 old_archive_cmds_CXX=$old_archive_cmds
12716 no_undefined_flag_CXX=
12717 whole_archive_flag_spec_CXX=
12718 enable_shared_with_static_runtimes_CXX=no
12720 # Source file extension for C++ test sources.
12723 # Object file extension for compiled C++ test sources.
12727 # No sense in running all these tests if we already determined that
12728 # the CXX compiler isn't working. Some variables (like enable_shared)
12729 # are currently assumed to apply to all compilers on this platform,
12730 # and will be corrupted by setting them based on a non-working compiler.
12731 if test "$_lt_caught_CXX_error" != yes; then
12732 # Code to be used in simple compile tests
12733 lt_simple_compile_test_code="int some_variable = 0;"
12735 # Code to be used in simple link tests
12736 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12738 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12745 # If no C compiler was specified, use CC.
12748 # If no C compiler flags were specified, use CFLAGS.
12749 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12751 # Allow CC to be a program name with arguments.
12755 # save warnings/boilerplate of simple test code
12756 ac_outfile=conftest.$ac_objext
12757 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12758 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12759 _lt_compiler_boilerplate=`cat conftest.err`
12762 ac_outfile=conftest.$ac_objext
12763 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12764 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12765 _lt_linker_boilerplate=`cat conftest.err`
12769 # Allow CC to be a program name with arguments.
12774 lt_save_with_gnu_ld=$with_gnu_ld
12775 lt_save_path_LD=$lt_cv_path_LD
12776 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12777 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12779 $as_unset lt_cv_prog_gnu_ld
12781 if test -n "${lt_cv_path_LDCXX+set}"; then
12782 lt_cv_path_LD=$lt_cv_path_LDCXX
12784 $as_unset lt_cv_path_LD
12786 test -z "${LDCXX+set}" || LD=$LDCXX
12790 for cc_temp in $compiler""; do
12792 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12793 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12798 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12801 if test -n "$compiler"; then
12802 # We don't want -fno-exception when compiling C++ code, so set the
12803 # no_builtin_flag separately
12804 if test "$GXX" = yes; then
12805 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12807 lt_prog_compiler_no_builtin_flag_CXX=
12810 if test "$GXX" = yes; then
12811 # Set up default GNU C++ configuration
12815 # Check whether --with-gnu-ld was given.
12816 if test "${with_gnu_ld+set}" = set; then :
12817 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12823 if test "$GCC" = yes; then
12824 # Check if gcc -print-prog-name=ld gives a path.
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12826 $as_echo_n "checking for ld used by $CC... " >&6; }
12829 # gcc leaves a trailing carriage return which upsets mingw
12830 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12832 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12835 # Accept absolute paths.
12837 re_direlt='/[^/][^/]*/\.\./'
12838 # Canonicalize the pathname of ld
12839 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12840 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12841 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12843 test -z "$LD" && LD="$ac_prog"
12846 # If it fails, then pretend we aren't using GCC.
12850 # If it is relative, then search for the first ld in PATH.
12851 with_gnu_ld=unknown
12854 elif test "$with_gnu_ld" = yes; then
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12856 $as_echo_n "checking for GNU ld... " >&6; }
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12859 $as_echo_n "checking for non-GNU ld... " >&6; }
12861 if test "${lt_cv_path_LD+set}" = set; then :
12862 $as_echo_n "(cached) " >&6
12864 if test -z "$LD"; then
12865 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12866 for ac_dir in $PATH; do
12868 test -z "$ac_dir" && ac_dir=.
12869 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12870 lt_cv_path_LD="$ac_dir/$ac_prog"
12871 # Check to see if the program is GNU ld. I'd rather use --version,
12872 # but apparently some variants of GNU ld only accept -v.
12873 # Break only if it was the GNU/non-GNU ld that we prefer.
12874 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12875 *GNU* | *'with BFD'*)
12876 test "$with_gnu_ld" != no && break
12879 test "$with_gnu_ld" != yes && break
12886 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12890 LD="$lt_cv_path_LD"
12891 if test -n "$LD"; then
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12893 $as_echo "$LD" >&6; }
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12896 $as_echo "no" >&6; }
12898 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12900 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12901 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12902 $as_echo_n "(cached) " >&6
12904 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12905 case `$LD -v 2>&1 </dev/null` in
12906 *GNU* | *'with BFD'*)
12907 lt_cv_prog_gnu_ld=yes
12910 lt_cv_prog_gnu_ld=no
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12915 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12916 with_gnu_ld=$lt_cv_prog_gnu_ld
12924 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12925 # archiving commands below assume that GNU ld is being used.
12926 if test "$with_gnu_ld" = yes; then
12927 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12928 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'
12930 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12931 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12933 # If archive_cmds runs LD, not CC, wlarc should be empty
12934 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12935 # investigate it a little bit more. (MM)
12938 # ancient GNU ld didn't support --whole-archive et. al.
12939 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12940 $GREP 'no-whole-archive' > /dev/null; then
12941 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12943 whole_archive_flag_spec_CXX=
12949 # A generic and very simple default shared library creation
12950 # command for GNU C++ for the case where it uses the native
12951 # linker, instead of GNU ld. If possible, this setting should
12952 # overridden to take advantage of the native linker features on
12953 # the platform it is being used on.
12954 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12957 # Commands to make compiler produce verbose output that lists
12958 # what "hidden" libraries, object files and flags are used when
12959 # linking a shared library.
12960 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12968 # PORTME: fill in a description of your system's C++ link characteristics
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12970 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12974 # FIXME: insert proper C++ library support
12978 if test "$host_cpu" = ia64; then
12979 # On IA64, the linker does run time linking by default, so we don't
12980 # have to do anything special.
12981 aix_use_runtimelinking=no
12982 exp_sym_flag='-Bexport'
12985 aix_use_runtimelinking=no
12987 # Test if we are trying to use run time linking or normal
12988 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12989 # need to do runtime linking.
12990 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12991 for ld_flag in $LDFLAGS; do
12994 aix_use_runtimelinking=yes
13002 exp_sym_flag='-bexport'
13003 no_entry_flag='-bnoentry'
13006 # When large executables or shared objects are built, AIX ld can
13007 # have problems creating the table of contents. If linking a library
13008 # or program results in "error TOC overflow" add -mminimal-toc to
13009 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13010 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13012 archive_cmds_CXX=''
13013 hardcode_direct_CXX=yes
13014 hardcode_direct_absolute_CXX=yes
13015 hardcode_libdir_separator_CXX=':'
13016 link_all_deplibs_CXX=yes
13017 file_list_spec_CXX='${wl}-f,'
13019 if test "$GXX" = yes; then
13020 case $host_os in aix4.[012]|aix4.[012].*)
13021 # We only want to do this on AIX 4.2 and lower, the check
13022 # below for broken collect2 doesn't work under 4.3+
13023 collect2name=`${CC} -print-prog-name=collect2`
13024 if test -f "$collect2name" &&
13025 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13027 # We have reworked collect2
13030 # We have old collect2
13031 hardcode_direct_CXX=unsupported
13032 # It fails to find uninstalled libraries when the uninstalled
13033 # path is not listed in the libpath. Setting hardcode_minus_L
13034 # to unsupported forces relinking
13035 hardcode_minus_L_CXX=yes
13036 hardcode_libdir_flag_spec_CXX='-L$libdir'
13037 hardcode_libdir_separator_CXX=
13040 shared_flag='-shared'
13041 if test "$aix_use_runtimelinking" = yes; then
13042 shared_flag="$shared_flag "'${wl}-G'
13046 if test "$host_cpu" = ia64; then
13047 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13048 # chokes on -Wl,-G. The following line is correct:
13051 if test "$aix_use_runtimelinking" = yes; then
13052 shared_flag='${wl}-G'
13054 shared_flag='${wl}-bM:SRE'
13059 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13060 # It seems that -bexpall does not export symbols beginning with
13061 # underscore (_), so it is better to generate a list of symbols to
13063 always_export_symbols_CXX=yes
13064 if test "$aix_use_runtimelinking" = yes; then
13065 # Warning - without using the other runtime loading flags (-brtl),
13066 # -berok will link without error, but may produce a broken library.
13067 allow_undefined_flag_CXX='-berok'
13068 # Determine the default libpath from the value encoded in an empty
13070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13071 /* end confdefs.h. */
13081 if ac_fn_cxx_try_link "$LINENO"; then :
13083 lt_aix_libpath_sed='
13084 /Import File Strings/,/^$/ {
13090 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13091 # Check for a 64-bit object if we didn't find anything.
13092 if test -z "$aix_libpath"; then
13093 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13096 rm -f core conftest.err conftest.$ac_objext \
13097 conftest$ac_exeext conftest.$ac_ext
13098 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13100 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13102 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"
13104 if test "$host_cpu" = ia64; then
13105 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13106 allow_undefined_flag_CXX="-z nodefs"
13107 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"
13109 # Determine the default libpath from the value encoded in an
13110 # empty executable.
13111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13112 /* end confdefs.h. */
13122 if ac_fn_cxx_try_link "$LINENO"; then :
13124 lt_aix_libpath_sed='
13125 /Import File Strings/,/^$/ {
13131 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13132 # Check for a 64-bit object if we didn't find anything.
13133 if test -z "$aix_libpath"; then
13134 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13137 rm -f core conftest.err conftest.$ac_objext \
13138 conftest$ac_exeext conftest.$ac_ext
13139 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13141 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13142 # Warning - without using the other run time loading flags,
13143 # -berok will link without error, but may produce a broken library.
13144 no_undefined_flag_CXX=' ${wl}-bernotok'
13145 allow_undefined_flag_CXX=' ${wl}-berok'
13146 # Exported symbols can be pulled into shared objects from archives
13147 whole_archive_flag_spec_CXX='$convenience'
13148 archive_cmds_need_lc_CXX=yes
13149 # This is similar to how AIX traditionally builds its shared
13151 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'
13157 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13158 allow_undefined_flag_CXX=unsupported
13159 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13160 # support --undefined. This deserves some investigation. FIXME
13161 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13168 case $cc_basename in
13170 # FIXME: insert proper C++ library support
13176 cygwin* | mingw* | pw32* | cegcc*)
13177 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13178 # as there is no search path for DLLs.
13179 hardcode_libdir_flag_spec_CXX='-L$libdir'
13180 allow_undefined_flag_CXX=unsupported
13181 always_export_symbols_CXX=no
13182 enable_shared_with_static_runtimes_CXX=yes
13184 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13185 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'
13186 # If the export-symbols file already is a .def file (1st line
13187 # is EXPORTS), use it as is; otherwise, prepend...
13188 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13189 cp $export_symbols $output_objdir/$soname.def;
13191 echo EXPORTS > $output_objdir/$soname.def;
13192 cat $export_symbols >> $output_objdir/$soname.def;
13194 $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'
13199 darwin* | rhapsody*)
13202 archive_cmds_need_lc_CXX=no
13203 hardcode_direct_CXX=no
13204 hardcode_automatic_CXX=yes
13205 hardcode_shlibpath_var_CXX=unsupported
13206 whole_archive_flag_spec_CXX=''
13207 link_all_deplibs_CXX=yes
13208 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13209 case $cc_basename in
13210 ifort*) _lt_dar_can_shared=yes ;;
13211 *) _lt_dar_can_shared=$GCC ;;
13213 if test "$_lt_dar_can_shared" = "yes"; then
13214 output_verbose_link_cmd=echo
13215 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}"
13216 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13217 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}"
13218 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}"
13219 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13220 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}"
13221 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}"
13231 case $cc_basename in
13233 # FIXME: insert proper C++ library support
13237 # Green Hills C++ Compiler
13238 # FIXME: insert proper C++ library support
13242 # FIXME: insert proper C++ library support
13249 # C++ shared libraries reported to be fairly broken before
13255 archive_cmds_need_lc_CXX=no
13258 freebsd* | dragonfly*)
13259 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13268 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13269 hardcode_libdir_separator_CXX=:
13270 export_dynamic_flag_spec_CXX='${wl}-E'
13271 hardcode_direct_CXX=yes
13272 hardcode_minus_L_CXX=yes # Not in the search PATH,
13273 # but as the default
13274 # location of the library.
13276 case $cc_basename in
13278 # FIXME: insert proper C++ library support
13282 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'
13283 # Commands to make compiler produce verbose output that lists
13284 # what "hidden" libraries, object files and flags are used when
13285 # linking a shared library.
13287 # There doesn't appear to be a way to prevent this compiler from
13288 # explicitly linking system object files so we need to strip them
13289 # from the output so that they don't get included in the library
13291 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'
13294 if test "$GXX" = yes; then
13295 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'
13297 # FIXME: insert proper C++ library support
13305 if test $with_gnu_ld = no; then
13306 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13307 hardcode_libdir_separator_CXX=:
13313 export_dynamic_flag_spec_CXX='${wl}-E'
13319 hardcode_direct_CXX=no
13320 hardcode_shlibpath_var_CXX=no
13323 hardcode_direct_CXX=yes
13324 hardcode_direct_absolute_CXX=yes
13325 hardcode_minus_L_CXX=yes # Not in the search PATH,
13326 # but as the default
13327 # location of the library.
13331 case $cc_basename in
13333 # FIXME: insert proper C++ library support
13339 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13342 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13345 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13348 # Commands to make compiler produce verbose output that lists
13349 # what "hidden" libraries, object files and flags are used when
13350 # linking a shared library.
13352 # There doesn't appear to be a way to prevent this compiler from
13353 # explicitly linking system object files so we need to strip them
13354 # from the output so that they don't get included in the library
13356 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'
13359 if test "$GXX" = yes; then
13360 if test $with_gnu_ld = no; then
13363 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13366 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13369 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'
13374 # FIXME: insert proper C++ library support
13382 hardcode_direct_CXX=no
13383 hardcode_shlibpath_var_CXX=no
13384 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13385 export_dynamic_flag_spec_CXX='${wl}-E'
13386 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13387 # Instead, shared libraries are loaded at an image base (0x10000000 by
13388 # default) and relocated if they conflict, which is a slow very memory
13389 # consuming and fragmenting process. To avoid this, we pick a random,
13390 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13391 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13392 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'
13393 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'
13396 case $cc_basename in
13399 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'
13401 # Archives containing C++ object files must be created using
13402 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13403 # necessary to make sure instantiated templates are included
13405 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13408 if test "$GXX" = yes; then
13409 if test "$with_gnu_ld" = no; then
13410 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'
13412 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'
13415 link_all_deplibs_CXX=yes
13418 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13419 hardcode_libdir_separator_CXX=:
13420 inherit_rpath_CXX=yes
13423 linux* | k*bsd*-gnu)
13424 case $cc_basename in
13426 # Kuck and Associates, Inc. (KAI) C++ Compiler
13428 # KCC will only create a shared library if the output file
13429 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13430 # to its proper name (with version) after linking.
13431 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'
13432 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'
13433 # Commands to make compiler produce verbose output that lists
13434 # what "hidden" libraries, object files and flags are used when
13435 # linking a shared library.
13437 # There doesn't appear to be a way to prevent this compiler from
13438 # explicitly linking system object files so we need to strip them
13439 # from the output so that they don't get included in the library
13441 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'
13443 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13444 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13446 # Archives containing C++ object files must be created using
13447 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13448 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13453 # version 8.0 and above of icpc choke on multiply defined symbols
13454 # if we add $predep_objects and $postdep_objects, however 7.1 and
13455 # earlier do not add the objects themselves.
13456 case `$CC -V 2>&1` in
13458 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13459 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'
13461 *) # Version 8.0 or newer
13464 ia64*) tmp_idyn=' -i_dynamic';;
13466 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13467 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'
13470 archive_cmds_need_lc_CXX=no
13471 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13472 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13473 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13476 # Portland Group C++ compiler
13478 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13479 prelink_cmds_CXX='tpldir=Template.dir~
13481 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13482 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13483 old_archive_cmds_CXX='tpldir=Template.dir~
13485 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13486 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13488 archive_cmds_CXX='tpldir=Template.dir~
13490 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13491 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13492 archive_expsym_cmds_CXX='tpldir=Template.dir~
13494 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13495 $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'
13497 *) # Version 6 will use weak symbols
13498 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13499 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'
13503 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13504 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13505 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'
13509 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13510 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'
13512 runpath_var=LD_RUN_PATH
13513 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13514 hardcode_libdir_separator_CXX=:
13516 # Commands to make compiler produce verbose output that lists
13517 # what "hidden" libraries, object files and flags are used when
13518 # linking a shared library.
13520 # There doesn't appear to be a way to prevent this compiler from
13521 # explicitly linking system object files so we need to strip them
13522 # from the output so that they don't get included in the library
13524 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'
13527 # IBM XL 8.0 on PPC, with GNU ld
13528 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13529 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13530 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13531 if test "x$supports_anon_versioning" = xyes; then
13532 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13533 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13534 echo "local: *; };" >> $output_objdir/$libname.ver~
13535 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13539 case `$CC -V 2>&1 | sed 5q` in
13542 no_undefined_flag_CXX=' -zdefs'
13543 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13544 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'
13545 hardcode_libdir_flag_spec_CXX='-R$libdir'
13546 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'
13547 compiler_needs_object_CXX=yes
13549 # Not sure whether something based on
13550 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13552 output_verbose_link_cmd='echo'
13554 # Archives containing C++ object files must be created using
13555 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13556 # necessary to make sure instantiated templates are included
13558 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13566 # FIXME: insert proper C++ library support
13571 # FIXME: insert proper C++ library support
13576 case $cc_basename in
13578 # FIXME: insert proper C++ library support
13582 # FIXME: insert proper C++ library support
13589 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13590 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13592 hardcode_libdir_flag_spec_CXX='-R$libdir'
13593 hardcode_direct_CXX=yes
13594 hardcode_shlibpath_var_CXX=no
13596 # Workaround some broken pre-1.5 toolchains
13597 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13605 # C++ shared libraries are fairly broken
13610 if test -f /usr/libexec/ld.so; then
13611 hardcode_direct_CXX=yes
13612 hardcode_shlibpath_var_CXX=no
13613 hardcode_direct_absolute_CXX=yes
13614 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13615 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13616 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13617 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13618 export_dynamic_flag_spec_CXX='${wl}-E'
13619 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13621 output_verbose_link_cmd=echo
13627 osf3* | osf4* | osf5*)
13628 case $cc_basename in
13630 # Kuck and Associates, Inc. (KAI) C++ Compiler
13632 # KCC will only create a shared library if the output file
13633 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13634 # to its proper name (with version) after linking.
13635 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'
13637 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13638 hardcode_libdir_separator_CXX=:
13640 # Archives containing C++ object files must be created using
13641 # the KAI C++ compiler.
13643 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13644 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13648 # Rational C++ 2.4.1
13649 # FIXME: insert proper C++ library support
13655 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13656 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'
13657 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13660 allow_undefined_flag_CXX=' -expect_unresolved \*'
13661 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'
13662 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13663 echo "-hidden">> $lib.exp~
13664 $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~
13666 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13670 hardcode_libdir_separator_CXX=:
13672 # Commands to make compiler produce verbose output that lists
13673 # what "hidden" libraries, object files and flags are used when
13674 # linking a shared library.
13676 # There doesn't appear to be a way to prevent this compiler from
13677 # explicitly linking system object files so we need to strip them
13678 # from the output so that they don't get included in the library
13680 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'
13683 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13684 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13687 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'
13690 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'
13694 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13695 hardcode_libdir_separator_CXX=:
13697 # Commands to make compiler produce verbose output that lists
13698 # what "hidden" libraries, object files and flags are used when
13699 # linking a shared library.
13700 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13703 # FIXME: insert proper C++ library support
13711 # FIXME: insert proper C++ library support
13716 case $cc_basename in
13719 # FIXME: insert proper C++ library support
13724 # FIXME: insert proper C++ library support
13728 # FIXME: insert proper C++ library support
13735 case $cc_basename in
13737 # Sun C++ 4.2, 5.x and Centerline C++
13738 archive_cmds_need_lc_CXX=yes
13739 no_undefined_flag_CXX=' -zdefs'
13740 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13741 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13742 $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'
13744 hardcode_libdir_flag_spec_CXX='-R$libdir'
13745 hardcode_shlibpath_var_CXX=no
13747 solaris2.[0-5] | solaris2.[0-5].*) ;;
13749 # The compiler driver will combine and reorder linker options,
13750 # but understands `-z linker_flag'.
13751 # Supported since Solaris 2.6 (maybe 2.5.1?)
13752 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13755 link_all_deplibs_CXX=yes
13757 output_verbose_link_cmd='echo'
13759 # Archives containing C++ object files must be created using
13760 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13761 # necessary to make sure instantiated templates are included
13763 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13766 # Green Hills C++ Compiler
13767 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13769 # The C++ compiler must be used to create the archive.
13770 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13773 # GNU C++ compiler with Solaris linker
13774 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13775 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13776 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13777 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13778 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13779 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13781 # Commands to make compiler produce verbose output that lists
13782 # what "hidden" libraries, object files and flags are used when
13783 # linking a shared library.
13784 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13786 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13788 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13789 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13790 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13792 # Commands to make compiler produce verbose output that lists
13793 # what "hidden" libraries, object files and flags are used when
13794 # linking a shared library.
13795 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13798 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13800 solaris2.[0-5] | solaris2.[0-5].*) ;;
13802 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13810 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13811 no_undefined_flag_CXX='${wl}-z,text'
13812 archive_cmds_need_lc_CXX=no
13813 hardcode_shlibpath_var_CXX=no
13814 runpath_var='LD_RUN_PATH'
13816 case $cc_basename in
13818 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13819 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13822 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13823 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13828 sysv5* | sco3.2v5* | sco5v6*)
13829 # Note: We can NOT use -z defs as we might desire, because we do not
13830 # link with -lc, and that would cause any symbols used from libc to
13831 # always be unresolved, which means just about no library would
13832 # ever link correctly. If we're not using GNU ld we use -z text
13833 # though, which does catch some bad symbols but isn't as heavy-handed
13835 no_undefined_flag_CXX='${wl}-z,text'
13836 allow_undefined_flag_CXX='${wl}-z,nodefs'
13837 archive_cmds_need_lc_CXX=no
13838 hardcode_shlibpath_var_CXX=no
13839 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13840 hardcode_libdir_separator_CXX=':'
13841 link_all_deplibs_CXX=yes
13842 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13843 runpath_var='LD_RUN_PATH'
13845 case $cc_basename in
13847 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13848 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13851 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13852 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13858 case $cc_basename in
13860 # NonStop-UX NCC 3.20
13861 # FIXME: insert proper C++ library support
13865 # FIXME: insert proper C++ library support
13872 # FIXME: insert proper C++ library support
13877 # FIXME: insert proper C++ library support
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13883 $as_echo "$ld_shlibs_CXX" >&6; }
13884 test "$ld_shlibs_CXX" = no && can_build_shared=no
13890 ## There is no encapsulation within the following macros, do not change
13891 ## the running order or otherwise move them around unless you know exactly
13892 ## what you are doing...
13893 # Dependencies to place before and after the object being linked:
13894 predep_objects_CXX=
13895 postdep_objects_CXX=
13898 compiler_lib_search_path_CXX=
13900 cat > conftest.$ac_ext <<_LT_EOF
13904 Foo (void) { a = 0; }
13910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13911 (eval $ac_compile) 2>&5
13913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13914 test $ac_status = 0; }; then
13915 # Parse the compiler output and extract the necessary
13916 # objects, libraries and library flags.
13918 # Sentinel used to keep track of whether or not we are before
13919 # the conftest object file.
13920 pre_test_object_deps_done=no
13922 for p in `eval "$output_verbose_link_cmd"`; do
13926 # Some compilers place space between "-{L,R}" and the path.
13927 # Remove the space.
13928 if test $p = "-L" ||
13929 test $p = "-R"; then
13936 if test "$pre_test_object_deps_done" = no; then
13939 # Internal compiler library paths should come after those
13940 # provided the user. The postdeps already come after the
13941 # user supplied libs so there is no need to process them.
13942 if test -z "$compiler_lib_search_path_CXX"; then
13943 compiler_lib_search_path_CXX="${prev}${p}"
13945 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13948 # The "-l" case would never come before the object being
13949 # linked, so don't bother handling this case.
13952 if test -z "$postdeps_CXX"; then
13953 postdeps_CXX="${prev}${p}"
13955 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13961 # This assumes that the test object file only shows up
13962 # once in the compiler output.
13963 if test "$p" = "conftest.$objext"; then
13964 pre_test_object_deps_done=yes
13968 if test "$pre_test_object_deps_done" = no; then
13969 if test -z "$predep_objects_CXX"; then
13970 predep_objects_CXX="$p"
13972 predep_objects_CXX="$predep_objects_CXX $p"
13975 if test -z "$postdep_objects_CXX"; then
13976 postdep_objects_CXX="$p"
13978 postdep_objects_CXX="$postdep_objects_CXX $p"
13983 *) ;; # Ignore the rest.
13991 echo "libtool.m4: error: problem compiling CXX test program"
13994 $RM -f confest.$objext
13996 # PORTME: override above test on systems where it is broken
13999 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14000 # hack all around it, let's just trust "g++" to DTRT.
14001 predep_objects_CXX=
14002 postdep_objects_CXX=
14007 case `$CC -V 2>&1 | sed 5q` in
14011 # The more standards-conforming stlport4 library is
14012 # incompatible with the Cstd library. Avoid specifying
14013 # it if it's in CXXFLAGS. Ignore libCrun as
14014 # -library=stlport4 depends on it.
14015 case " $CXX $CXXFLAGS " in
14016 *" -library=stlport4 "*)
14017 solaris_use_stlport4=yes
14021 if test "$solaris_use_stlport4" != yes; then
14022 postdeps_CXX='-library=Cstd -library=Crun'
14029 case $cc_basename in
14031 # The more standards-conforming stlport4 library is
14032 # incompatible with the Cstd library. Avoid specifying
14033 # it if it's in CXXFLAGS. Ignore libCrun as
14034 # -library=stlport4 depends on it.
14035 case " $CXX $CXXFLAGS " in
14036 *" -library=stlport4 "*)
14037 solaris_use_stlport4=yes
14041 # Adding this requires a known-good setup of shared libraries for
14042 # Sun compiler versions before 5.6, else PIC objects from an old
14043 # archive will be linked into the output, leading to subtle bugs.
14044 if test "$solaris_use_stlport4" != yes; then
14045 postdeps_CXX='-library=Cstd -library=Crun'
14053 case " $postdeps_CXX " in
14054 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14056 compiler_lib_search_dirs_CXX=
14057 if test -n "${compiler_lib_search_path_CXX}"; then
14058 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14091 lt_prog_compiler_wl_CXX=
14092 lt_prog_compiler_pic_CXX=
14093 lt_prog_compiler_static_CXX=
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14096 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14098 # C++ specific cases for pic, static, wl, etc.
14099 if test "$GXX" = yes; then
14100 lt_prog_compiler_wl_CXX='-Wl,'
14101 lt_prog_compiler_static_CXX='-static'
14105 # All AIX code is PIC.
14106 if test "$host_cpu" = ia64; then
14107 # AIX 5 now supports IA64 processor
14108 lt_prog_compiler_static_CXX='-Bstatic'
14115 # see comment about AmigaOS4 .so support
14116 lt_prog_compiler_pic_CXX='-fPIC'
14119 # FIXME: we need at least 68020 code to build shared libraries, but
14120 # adding the `-m68020' flag to GCC prevents building anything better,
14122 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14127 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14128 # PIC is the default for these OSes.
14130 mingw* | cygwin* | os2* | pw32* | cegcc*)
14131 # This hack is so that the source file can tell whether it is being
14132 # built for inclusion in a dll (and should export symbols for example).
14133 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14134 # (--disable-auto-import) libraries
14135 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14137 darwin* | rhapsody*)
14138 # PIC is the default on this platform
14139 # Common symbols not allowed in MH_DYLIB files
14140 lt_prog_compiler_pic_CXX='-fno-common'
14143 # DJGPP does not support shared libraries at all
14144 lt_prog_compiler_pic_CXX=
14147 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14148 # Instead, we relocate shared libraries at runtime.
14151 if test -d /usr/nec; then
14152 lt_prog_compiler_pic_CXX=-Kconform_pic
14156 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14157 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14158 # sets the default TLS model and affects inlining.
14163 lt_prog_compiler_pic_CXX='-fPIC'
14168 # QNX uses GNU C++, but need to define -shared option too, otherwise
14169 # it will coredump.
14170 lt_prog_compiler_pic_CXX='-fPIC -shared'
14173 lt_prog_compiler_pic_CXX='-fPIC'
14179 # All AIX code is PIC.
14180 if test "$host_cpu" = ia64; then
14181 # AIX 5 now supports IA64 processor
14182 lt_prog_compiler_static_CXX='-Bstatic'
14184 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14188 case $cc_basename in
14190 # Green Hills C++ Compiler
14191 # _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"
14196 case $cc_basename in
14198 lt_prog_compiler_pic_CXX='-KPIC'
14201 # Green Hills C++ Compiler
14202 lt_prog_compiler_pic_CXX='-pic'
14208 freebsd* | dragonfly*)
14209 # FreeBSD uses GNU C++
14211 hpux9* | hpux10* | hpux11*)
14212 case $cc_basename in
14214 lt_prog_compiler_wl_CXX='-Wl,'
14215 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14216 if test "$host_cpu" != ia64; then
14217 lt_prog_compiler_pic_CXX='+Z'
14221 lt_prog_compiler_wl_CXX='-Wl,'
14222 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14228 lt_prog_compiler_pic_CXX='+Z'
14237 # This is c89, which is MS Visual C++ (no shared libs)
14238 # Anyone wants to do a port?
14240 irix5* | irix6* | nonstopux*)
14241 case $cc_basename in
14243 lt_prog_compiler_wl_CXX='-Wl,'
14244 lt_prog_compiler_static_CXX='-non_shared'
14245 # CC pic flag -KPIC is the default.
14251 linux* | k*bsd*-gnu)
14252 case $cc_basename in
14255 lt_prog_compiler_wl_CXX='--backend -Wl,'
14256 lt_prog_compiler_pic_CXX='-fPIC'
14259 # old Intel C++ for x86_64 which still supported -KPIC.
14260 lt_prog_compiler_wl_CXX='-Wl,'
14261 lt_prog_compiler_pic_CXX='-KPIC'
14262 lt_prog_compiler_static_CXX='-static'
14265 # Intel C++, used to be incompatible with GCC.
14266 # ICC 10 doesn't accept -KPIC any more.
14267 lt_prog_compiler_wl_CXX='-Wl,'
14268 lt_prog_compiler_pic_CXX='-fPIC'
14269 lt_prog_compiler_static_CXX='-static'
14272 # Portland Group C++ compiler
14273 lt_prog_compiler_wl_CXX='-Wl,'
14274 lt_prog_compiler_pic_CXX='-fpic'
14275 lt_prog_compiler_static_CXX='-Bstatic'
14279 # Make sure the PIC flag is empty. It appears that all Alpha
14280 # Linux and Compaq Tru64 Unix objects are PIC.
14281 lt_prog_compiler_pic_CXX=
14282 lt_prog_compiler_static_CXX='-non_shared'
14285 # IBM XL 8.0 on PPC
14286 lt_prog_compiler_wl_CXX='-Wl,'
14287 lt_prog_compiler_pic_CXX='-qpic'
14288 lt_prog_compiler_static_CXX='-qstaticlink'
14291 case `$CC -V 2>&1 | sed 5q` in
14294 lt_prog_compiler_pic_CXX='-KPIC'
14295 lt_prog_compiler_static_CXX='-Bstatic'
14296 lt_prog_compiler_wl_CXX='-Qoption ld '
14307 case $cc_basename in
14309 lt_prog_compiler_pic_CXX='-W c,exportall'
14318 # QNX uses GNU C++, but need to define -shared option too, otherwise
14319 # it will coredump.
14320 lt_prog_compiler_pic_CXX='-fPIC -shared'
14322 osf3* | osf4* | osf5*)
14323 case $cc_basename in
14325 lt_prog_compiler_wl_CXX='--backend -Wl,'
14328 # Rational C++ 2.4.1
14329 lt_prog_compiler_pic_CXX='-pic'
14332 # Digital/Compaq C++
14333 lt_prog_compiler_wl_CXX='-Wl,'
14334 # Make sure the PIC flag is empty. It appears that all Alpha
14335 # Linux and Compaq Tru64 Unix objects are PIC.
14336 lt_prog_compiler_pic_CXX=
14337 lt_prog_compiler_static_CXX='-non_shared'
14346 case $cc_basename in
14348 # Sun C++ 4.2, 5.x and Centerline C++
14349 lt_prog_compiler_pic_CXX='-KPIC'
14350 lt_prog_compiler_static_CXX='-Bstatic'
14351 lt_prog_compiler_wl_CXX='-Qoption ld '
14354 # Green Hills C++ Compiler
14355 lt_prog_compiler_pic_CXX='-PIC'
14362 case $cc_basename in
14365 lt_prog_compiler_pic_CXX='-pic'
14366 lt_prog_compiler_static_CXX='-Bstatic'
14370 lt_prog_compiler_pic_CXX='-pic'
14376 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14377 case $cc_basename in
14379 lt_prog_compiler_wl_CXX='-Wl,'
14380 lt_prog_compiler_pic_CXX='-KPIC'
14381 lt_prog_compiler_static_CXX='-Bstatic'
14386 case $cc_basename in
14388 # NonStop-UX NCC 3.20
14389 lt_prog_compiler_pic_CXX='-KPIC'
14398 lt_prog_compiler_can_build_shared_CXX=no
14404 # For platforms which do not support PIC, -DPIC is meaningless:
14406 lt_prog_compiler_pic_CXX=
14409 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14413 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14418 # Check to make sure the PIC flag actually works.
14420 if test -n "$lt_prog_compiler_pic_CXX"; then
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14422 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14423 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14424 $as_echo_n "(cached) " >&6
14426 lt_cv_prog_compiler_pic_works_CXX=no
14427 ac_outfile=conftest.$ac_objext
14428 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14429 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14430 # Insert the option either (1) after the last *FLAGS variable, or
14431 # (2) before a word containing "conftest.", or (3) at the end.
14432 # Note that $ac_compile itself does not contain backslashes and begins
14433 # with a dollar sign (not a hyphen), so the echo should work correctly.
14434 # The option is referenced via a variable to avoid confusing sed.
14435 lt_compile=`echo "$ac_compile" | $SED \
14436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14438 -e 's:$: $lt_compiler_flag:'`
14439 (eval echo "\"\$as_me:14439: $lt_compile\"" >&5)
14440 (eval "$lt_compile" 2>conftest.err)
14442 cat conftest.err >&5
14443 echo "$as_me:14443: \$? = $ac_status" >&5
14444 if (exit $ac_status) && test -s "$ac_outfile"; then
14445 # The compiler can only warn and ignore the option if not recognized
14446 # So say no if there are warnings other than the usual output.
14447 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14449 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14450 lt_cv_prog_compiler_pic_works_CXX=yes
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14457 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14459 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14460 case $lt_prog_compiler_pic_CXX in
14462 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14465 lt_prog_compiler_pic_CXX=
14466 lt_prog_compiler_can_build_shared_CXX=no
14474 # Check to make sure the static flag actually works.
14476 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14478 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14479 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14480 $as_echo_n "(cached) " >&6
14482 lt_cv_prog_compiler_static_works_CXX=no
14483 save_LDFLAGS="$LDFLAGS"
14484 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14485 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14486 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14487 # The linker can only warn and ignore the option if not recognized
14488 # So say no if there are warnings
14489 if test -s conftest.err; then
14490 # Append any errors to the config.log.
14491 cat conftest.err 1>&5
14492 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14494 if diff conftest.exp conftest.er2 >/dev/null; then
14495 lt_cv_prog_compiler_static_works_CXX=yes
14498 lt_cv_prog_compiler_static_works_CXX=yes
14502 LDFLAGS="$save_LDFLAGS"
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14506 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14508 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14511 lt_prog_compiler_static_CXX=
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14518 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14519 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14520 $as_echo_n "(cached) " >&6
14522 lt_cv_prog_compiler_c_o_CXX=no
14523 $RM -r conftest 2>/dev/null
14527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14529 lt_compiler_flag="-o out/conftest2.$ac_objext"
14530 # Insert the option either (1) after the last *FLAGS variable, or
14531 # (2) before a word containing "conftest.", or (3) at the end.
14532 # Note that $ac_compile itself does not contain backslashes and begins
14533 # with a dollar sign (not a hyphen), so the echo should work correctly.
14534 lt_compile=`echo "$ac_compile" | $SED \
14535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14537 -e 's:$: $lt_compiler_flag:'`
14538 (eval echo "\"\$as_me:14538: $lt_compile\"" >&5)
14539 (eval "$lt_compile" 2>out/conftest.err)
14541 cat out/conftest.err >&5
14542 echo "$as_me:14542: \$? = $ac_status" >&5
14543 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14545 # The compiler can only warn and ignore the option if not recognized
14546 # So say no if there are warnings
14547 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14548 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14549 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14550 lt_cv_prog_compiler_c_o_CXX=yes
14555 # SGI C++ compiler will create directory out/ii_files/ for
14556 # template instantiation
14557 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14558 $RM out/* && rmdir out
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14565 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14570 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14571 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14572 $as_echo_n "(cached) " >&6
14574 lt_cv_prog_compiler_c_o_CXX=no
14575 $RM -r conftest 2>/dev/null
14579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14581 lt_compiler_flag="-o out/conftest2.$ac_objext"
14582 # Insert the option either (1) after the last *FLAGS variable, or
14583 # (2) before a word containing "conftest.", or (3) at the end.
14584 # Note that $ac_compile itself does not contain backslashes and begins
14585 # with a dollar sign (not a hyphen), so the echo should work correctly.
14586 lt_compile=`echo "$ac_compile" | $SED \
14587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14589 -e 's:$: $lt_compiler_flag:'`
14590 (eval echo "\"\$as_me:14590: $lt_compile\"" >&5)
14591 (eval "$lt_compile" 2>out/conftest.err)
14593 cat out/conftest.err >&5
14594 echo "$as_me:14594: \$? = $ac_status" >&5
14595 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14597 # The compiler can only warn and ignore the option if not recognized
14598 # So say no if there are warnings
14599 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14600 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14601 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14602 lt_cv_prog_compiler_c_o_CXX=yes
14607 # SGI C++ compiler will create directory out/ii_files/ for
14608 # template instantiation
14609 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14610 $RM out/* && rmdir out
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14617 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14622 hard_links="nottested"
14623 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14624 # do not overwrite the value of need_locks provided by the user
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14626 $as_echo_n "checking if we can lock with hard links... " >&6; }
14629 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14631 ln conftest.a conftest.b 2>&5 || hard_links=no
14632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14634 $as_echo "$hard_links" >&6; }
14635 if test "$hard_links" = no; then
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14637 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14647 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14649 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14652 # If we're using GNU nm, then we don't want the "-C" option.
14653 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14654 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14655 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'
14657 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'
14661 export_symbols_cmds_CXX="$ltdll_cmds"
14663 cygwin* | mingw* | cegcc*)
14664 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'
14667 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14670 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14673 $as_echo "$ld_shlibs_CXX" >&6; }
14674 test "$ld_shlibs_CXX" = no && can_build_shared=no
14676 with_gnu_ld_CXX=$with_gnu_ld
14684 # Do we need to explicitly link libc?
14686 case "x$archive_cmds_need_lc_CXX" in
14688 # Assume -lc should be added
14689 archive_cmds_need_lc_CXX=yes
14691 if test "$enable_shared" = yes && test "$GCC" = yes; then
14692 case $archive_cmds_CXX in
14694 # FIXME: we may have to deal with multi-command sequences.
14697 # Test whether the compiler implicitly links with -lc since on some
14698 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14699 # to ld, don't add -lc before -lgcc.
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14701 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14706 (eval $ac_compile) 2>&5
14708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14709 test $ac_status = 0; } 2>conftest.err; then
14712 libobjs=conftest.$ac_objext
14714 wl=$lt_prog_compiler_wl_CXX
14715 pic_flag=$lt_prog_compiler_pic_CXX
14721 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14722 allow_undefined_flag_CXX=
14723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14724 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14727 test $ac_status = 0; }
14729 archive_cmds_need_lc_CXX=no
14731 archive_cmds_need_lc_CXX=yes
14733 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14735 cat conftest.err 1>&5
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14739 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14810 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14812 library_names_spec=
14813 libname_spec='lib$name'
14817 postuninstall_cmds=
14821 shlibpath_overrides_runpath=unknown
14823 dynamic_linker="$host_os ld.so"
14824 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14825 need_lib_prefix=unknown
14826 hardcode_into_libs=no
14828 # when you set need_version to no, make sure it does not cause -set_version
14829 # flags to be left without arguments
14830 need_version=unknown
14835 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14836 shlibpath_var=LIBPATH
14838 # AIX 3 has no versioning support, so we append a major version to the name.
14839 soname_spec='${libname}${release}${shared_ext}$major'
14846 hardcode_into_libs=yes
14847 if test "$host_cpu" = ia64; then
14848 # AIX 5 supports IA64
14849 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14850 shlibpath_var=LD_LIBRARY_PATH
14852 # With GCC up to 2.95.x, collect2 would create an import file
14853 # for dependence libraries. The import file would start with
14854 # the line `#! .'. This would cause the generated library to
14855 # depend on `.', always an invalid library. This was fixed in
14856 # development snapshots of GCC prior to 3.0.
14858 aix4 | aix4.[01] | aix4.[01].*)
14859 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14861 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14864 can_build_shared=no
14868 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14869 # soname into executable. Probably we can add versioning support to
14870 # collect2, so additional links can be useful in future.
14871 if test "$aix_use_runtimelinking" = yes; then
14872 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14873 # instead of lib<name>.a to let people know that these are not
14874 # typical AIX shared libraries.
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14877 # We preserve .a as extension for shared libraries through AIX4.2
14878 # and later when we are not doing run time linking.
14879 library_names_spec='${libname}${release}.a $libname.a'
14880 soname_spec='${libname}${release}${shared_ext}$major'
14882 shlibpath_var=LIBPATH
14889 # Since July 2007 AmigaOS4 officially supports .so libraries.
14890 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14894 library_names_spec='$libname.ixlibrary $libname.a'
14895 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14896 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'
14902 library_names_spec='${libname}${shared_ext}'
14903 dynamic_linker="$host_os ld.so"
14904 shlibpath_var=LIBRARY_PATH
14910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14911 soname_spec='${libname}${release}${shared_ext}$major'
14912 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14913 shlibpath_var=LD_LIBRARY_PATH
14914 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14915 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14916 # the default ld.so.conf also contains /usr/contrib/lib and
14917 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14918 # libtool to hard-code these into programs
14921 cygwin* | mingw* | pw32* | cegcc*)
14922 version_type=windows
14927 case $GCC,$host_os in
14928 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14929 library_names_spec='$libname.dll.a'
14930 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14931 postinstall_cmds='base_file=`basename \${file}`~
14932 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14933 dldir=$destdir/`dirname \$dlpath`~
14934 test -d \$dldir || mkdir -p \$dldir~
14935 $install_prog $dir/$dlname \$dldir/$dlname~
14936 chmod a+x \$dldir/$dlname~
14937 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14938 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14940 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14941 dlpath=$dir/\$dldll~
14943 shlibpath_overrides_runpath=yes
14947 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14948 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14949 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14952 # MinGW DLLs use traditional 'lib' prefix
14953 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14954 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14955 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14956 # It is most probably a Windows format PATH printed by
14957 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14958 # path with ; separators, and with drive letters. We can handle the
14959 # drive letters (cygwin fileutils understands them), so leave them,
14960 # especially as we might pass files found there to a mingw objdump,
14961 # which wouldn't understand a cygwinified path. Ahh.
14962 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14964 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14968 # pw32 DLLs use 'pw' prefix rather than 'lib'
14969 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14975 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14978 dynamic_linker='Win32 ld.exe'
14979 # FIXME: first we should search . and the directory the executable is in
14983 darwin* | rhapsody*)
14984 dynamic_linker="$host_os dyld"
14985 version_type=darwin
14988 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14989 soname_spec='${libname}${release}${major}$shared_ext'
14990 shlibpath_overrides_runpath=yes
14991 shlibpath_var=DYLD_LIBRARY_PATH
14992 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14994 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15002 soname_spec='${libname}${release}${shared_ext}$major'
15003 shlibpath_var=LD_LIBRARY_PATH
15010 freebsd* | dragonfly*)
15011 # DragonFly does not have aout. When/if they implement a new
15012 # versioning mechanism, adjust this.
15013 if test -x /usr/bin/objformat; then
15014 objformat=`/usr/bin/objformat`
15017 freebsd[123]*) objformat=aout ;;
15018 *) objformat=elf ;;
15021 version_type=freebsd-$objformat
15022 case $version_type in
15024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15029 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15033 shlibpath_var=LD_LIBRARY_PATH
15036 shlibpath_overrides_runpath=yes
15038 freebsd3.[01]* | freebsdelf3.[01]*)
15039 shlibpath_overrides_runpath=yes
15040 hardcode_into_libs=yes
15042 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15043 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15044 shlibpath_overrides_runpath=no
15045 hardcode_into_libs=yes
15047 *) # from 4.6 on, and DragonFly
15048 shlibpath_overrides_runpath=yes
15049 hardcode_into_libs=yes
15058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15059 soname_spec='${libname}${release}${shared_ext}$major'
15060 shlibpath_var=LD_LIBRARY_PATH
15061 hardcode_into_libs=yes
15064 hpux9* | hpux10* | hpux11*)
15065 # Give a soname corresponding to the major version so that dld.sl refuses to
15066 # link against other versions.
15073 hardcode_into_libs=yes
15074 dynamic_linker="$host_os dld.so"
15075 shlibpath_var=LD_LIBRARY_PATH
15076 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15078 soname_spec='${libname}${release}${shared_ext}$major'
15079 if test "X$HPUX_IA64_MODE" = X32; then
15080 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15082 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15084 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15088 hardcode_into_libs=yes
15089 dynamic_linker="$host_os dld.sl"
15090 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15091 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15093 soname_spec='${libname}${release}${shared_ext}$major'
15094 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15095 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15099 dynamic_linker="$host_os dld.sl"
15100 shlibpath_var=SHLIB_PATH
15101 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15103 soname_spec='${libname}${release}${shared_ext}$major'
15106 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15107 postinstall_cmds='chmod 555 $lib'
15114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15115 soname_spec='${libname}${release}${shared_ext}$major'
15116 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15117 shlibpath_var=LD_LIBRARY_PATH
15118 shlibpath_overrides_runpath=no
15119 hardcode_into_libs=yes
15122 irix5* | irix6* | nonstopux*)
15124 nonstopux*) version_type=nonstopux ;;
15126 if test "$lt_cv_prog_gnu_ld" = yes; then
15134 soname_spec='${libname}${release}${shared_ext}$major'
15135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15137 irix5* | nonstopux*)
15138 libsuff= shlibsuff=
15141 case $LD in # libtool.m4 will add one of these switches to LD
15142 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15143 libsuff= shlibsuff= libmagic=32-bit;;
15144 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15145 libsuff=32 shlibsuff=N32 libmagic=N32;;
15146 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15147 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15148 *) libsuff= shlibsuff= libmagic=never-match;;
15152 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15153 shlibpath_overrides_runpath=no
15154 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15155 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15156 hardcode_into_libs=yes
15159 # No shared lib support for Linux oldld, aout, or coff.
15160 linux*oldld* | linux*aout* | linux*coff*)
15164 # This must be Linux ELF.
15165 linux* | k*bsd*-gnu)
15169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15170 soname_spec='${libname}${release}${shared_ext}$major'
15171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15172 shlibpath_var=LD_LIBRARY_PATH
15173 shlibpath_overrides_runpath=no
15174 # Some binutils ld are patched to set DT_RUNPATH
15175 save_LDFLAGS=$LDFLAGS
15176 save_libdir=$libdir
15177 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15178 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15180 /* end confdefs.h. */
15190 if ac_fn_cxx_try_link "$LINENO"; then :
15191 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15192 shlibpath_overrides_runpath=yes
15195 rm -f core conftest.err conftest.$ac_objext \
15196 conftest$ac_exeext conftest.$ac_ext
15197 LDFLAGS=$save_LDFLAGS
15198 libdir=$save_libdir
15200 # This implies no fast_install, which is unacceptable.
15201 # Some rework will be needed to allow for fast_install
15202 # before this can be enabled.
15203 hardcode_into_libs=yes
15205 # Append ld.so.conf contents to the search path
15206 if test -f /etc/ld.so.conf; then
15207 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' ' '`
15208 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15211 # We used to test for /lib/ld.so.1 and disable shared libraries on
15212 # powerpc, because MkLinux only supported shared libraries with the
15213 # GNU dynamic linker. Since this was broken with cross compilers,
15214 # most powerpc-linux boxes support dynamic linking these days and
15215 # people can always --disable-shared, the test was removed, and we
15216 # assume the GNU/Linux dynamic linker is in use.
15217 dynamic_linker='GNU/Linux ld.so'
15224 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15227 dynamic_linker='NetBSD (a.out) ld.so'
15229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15230 soname_spec='${libname}${release}${shared_ext}$major'
15231 dynamic_linker='NetBSD ld.elf_so'
15233 shlibpath_var=LD_LIBRARY_PATH
15234 shlibpath_overrides_runpath=yes
15235 hardcode_into_libs=yes
15240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15241 shlibpath_var=LD_LIBRARY_PATH
15242 shlibpath_overrides_runpath=yes
15249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15250 soname_spec='${libname}${release}${shared_ext}$major'
15251 shlibpath_var=LD_LIBRARY_PATH
15252 shlibpath_overrides_runpath=no
15253 hardcode_into_libs=yes
15254 dynamic_linker='ldqnx.so'
15259 sys_lib_dlsearch_path_spec="/usr/lib"
15261 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15263 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15264 *) need_version=no ;;
15266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15268 shlibpath_var=LD_LIBRARY_PATH
15269 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15271 openbsd2.[89] | openbsd2.[89].*)
15272 shlibpath_overrides_runpath=no
15275 shlibpath_overrides_runpath=yes
15279 shlibpath_overrides_runpath=yes
15284 libname_spec='$name'
15287 library_names_spec='$libname${shared_ext} $libname.a'
15288 dynamic_linker='OS/2 ld.exe'
15289 shlibpath_var=LIBPATH
15292 osf3* | osf4* | osf5*)
15296 soname_spec='${libname}${release}${shared_ext}$major'
15297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15298 shlibpath_var=LD_LIBRARY_PATH
15299 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15300 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15312 soname_spec='${libname}${release}${shared_ext}$major'
15313 shlibpath_var=LD_LIBRARY_PATH
15314 shlibpath_overrides_runpath=yes
15315 hardcode_into_libs=yes
15316 # ldd complains unless libraries are executable
15317 postinstall_cmds='chmod +x $lib'
15322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15323 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15324 shlibpath_var=LD_LIBRARY_PATH
15325 shlibpath_overrides_runpath=yes
15326 if test "$with_gnu_ld" = yes; then
15334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15335 soname_spec='${libname}${release}${shared_ext}$major'
15336 shlibpath_var=LD_LIBRARY_PATH
15337 case $host_vendor in
15339 shlibpath_overrides_runpath=no
15341 runpath_var=LD_RUN_PATH
15349 shlibpath_overrides_runpath=no
15350 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15356 if test -d /usr/nec ;then
15358 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15359 soname_spec='$libname${shared_ext}.$major'
15360 shlibpath_var=LD_LIBRARY_PATH
15364 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15365 version_type=freebsd-elf
15368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15369 soname_spec='${libname}${release}${shared_ext}$major'
15370 shlibpath_var=LD_LIBRARY_PATH
15371 shlibpath_overrides_runpath=yes
15372 hardcode_into_libs=yes
15373 if test "$with_gnu_ld" = yes; then
15374 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15376 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15379 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15383 sys_lib_dlsearch_path_spec='/usr/lib'
15387 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15392 shlibpath_var=LD_LIBRARY_PATH
15393 shlibpath_overrides_runpath=no
15394 hardcode_into_libs=yes
15399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15400 soname_spec='${libname}${release}${shared_ext}$major'
15401 shlibpath_var=LD_LIBRARY_PATH
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15409 $as_echo "$dynamic_linker" >&6; }
15410 test "$dynamic_linker" = no && can_build_shared=no
15412 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15413 if test "$GCC" = yes; then
15414 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15417 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15418 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15420 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15421 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15460 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15461 hardcode_action_CXX=
15462 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15463 test -n "$runpath_var_CXX" ||
15464 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15466 # We can hardcode non-existent directories.
15467 if test "$hardcode_direct_CXX" != no &&
15468 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15469 # have to relink, otherwise we might link with an installed library
15470 # when we should be linking with a yet-to-be-installed one
15471 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15472 test "$hardcode_minus_L_CXX" != no; then
15473 # Linking always hardcodes the temporary library directory.
15474 hardcode_action_CXX=relink
15476 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15477 hardcode_action_CXX=immediate
15480 # We cannot hardcode anything, or else we can only hardcode existing
15482 hardcode_action_CXX=unsupported
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15485 $as_echo "$hardcode_action_CXX" >&6; }
15487 if test "$hardcode_action_CXX" = relink ||
15488 test "$inherit_rpath_CXX" = yes; then
15489 # Fast installation is not supported
15490 enable_fast_install=no
15491 elif test "$shlibpath_overrides_runpath" = yes ||
15492 test "$enable_shared" = no; then
15493 # Fast installation is not necessary
15494 enable_fast_install=needless
15503 fi # test -n "$compiler"
15509 with_gnu_ld=$lt_save_with_gnu_ld
15510 lt_cv_path_LDCXX=$lt_cv_path_LD
15511 lt_cv_path_LD=$lt_save_path_LD
15512 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15513 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15514 fi # test "$_lt_caught_CXX_error" != yes
15517 ac_cpp='$CPP $CPPFLAGS'
15518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15534 ac_config_commands="$ac_config_commands libtool"
15539 # Only expand once:
15544 if test x$use_libtool != xno; then
15545 DEFAULT_OBJECT_TYPE=".lo"
15546 DEFAULT_ARCHIVE_TYPE=".la"
15547 DEFAULT_SHARED_OBJECT_TYPE=".la"
15548 LIBTOOL="\$(LIBTOOL)"
15549 LIBTOOL_INSTALL_TARGET="libtool-install"
15550 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15551 LIBTOOL_CLEAN_TARGET="libtool-clean"
15552 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15554 DEFAULT_OBJECT_TYPE=".o"
15555 DEFAULT_ARCHIVE_TYPE=".a"
15556 DEFAULT_SHARED_OBJECT_TYPE=".so"
15557 LIBTOOL="# \$(LIBTOOL)"
15558 LIBTOOL_INSTALL_TARGET=""
15559 LIBTOOL_UNINSTALL_TARGET=""
15560 LIBTOOL_CLEAN_TARGET=""
15561 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15573 # Check whether --enable-includes was given.
15574 if test "${enable_includes+set}" = set; then :
15575 enableval=$enable_includes;
15576 if test x$enableval = xyes; then
15577 install_includes=yes
15585 if test x$use_libtool != xno -a x$install_includes = xyes; then
15586 INCLUDE_INSTALL_TARGET="install-includes"
15587 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15589 INCLUDE_INSTALL_TARGET=""
15590 INCLUDE_UNINSTALL_TARGET=""
15598 *cygwin* ) CYGWIN=yes;;
15602 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15608 HAVE_SUN_OS_FALSE='#'
15610 HAVE_SUN_OS_TRUE='#'
15613 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15620 HAVE_SUN_OS_FALSE='#'
15622 HAVE_SUN_OS_TRUE='#'
15627 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15633 HAVE_OSF1_OS_FALSE='#'
15635 HAVE_OSF1_OS_TRUE='#'
15636 HAVE_OSF1_OS_FALSE=
15638 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15645 HAVE_OSF1_OS_FALSE='#'
15647 HAVE_OSF1_OS_TRUE='#'
15648 HAVE_OSF1_OS_FALSE=
15652 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15658 HAVE_AIX_OS_FALSE='#'
15660 HAVE_AIX_OS_TRUE='#'
15663 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15670 HAVE_AIX_OS_FALSE='#'
15672 HAVE_AIX_OS_TRUE='#'
15677 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15683 HAVE_HPUX_OS_FALSE='#'
15685 HAVE_HPUX_OS_TRUE='#'
15686 HAVE_HPUX_OS_FALSE=
15688 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15695 HAVE_HPUX_OS_FALSE='#'
15697 HAVE_HPUX_OS_TRUE='#'
15698 HAVE_HPUX_OS_FALSE=
15702 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15707 HAVE_LINUX_OS_TRUE=
15708 HAVE_LINUX_OS_FALSE='#'
15710 HAVE_LINUX_OS_TRUE='#'
15711 HAVE_LINUX_OS_FALSE=
15713 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15719 HAVE_LINUX_OS_TRUE=
15720 HAVE_LINUX_OS_FALSE='#'
15722 HAVE_LINUX_OS_TRUE='#'
15723 HAVE_LINUX_OS_FALSE=
15727 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15732 HAVE_FREEBSD_OS_TRUE=
15733 HAVE_FREEBSD_OS_FALSE='#'
15735 HAVE_FREEBSD_OS_TRUE='#'
15736 HAVE_FREEBSD_OS_FALSE=
15738 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15744 HAVE_FREEBSD_OS_TRUE=
15745 HAVE_FREEBSD_OS_FALSE='#'
15747 HAVE_FREEBSD_OS_TRUE='#'
15748 HAVE_FREEBSD_OS_FALSE=
15752 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15757 HAVE_NETBSD_OS_TRUE=
15758 HAVE_NETBSD_OS_FALSE='#'
15760 HAVE_NETBSD_OS_TRUE='#'
15761 HAVE_NETBSD_OS_FALSE=
15763 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15769 HAVE_NETBSD_OS_TRUE=
15770 HAVE_NETBSD_OS_FALSE='#'
15772 HAVE_NETBSD_OS_TRUE='#'
15773 HAVE_NETBSD_OS_FALSE=
15777 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15782 HAVE_OPENBSD_OS_TRUE=
15783 HAVE_OPENBSD_OS_FALSE='#'
15785 HAVE_OPENBSD_OS_TRUE='#'
15786 HAVE_OPENBSD_OS_FALSE=
15788 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15794 HAVE_OPENBSD_OS_TRUE=
15795 HAVE_OPENBSD_OS_FALSE='#'
15797 HAVE_OPENBSD_OS_TRUE='#'
15798 HAVE_OPENBSD_OS_FALSE=
15802 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15808 HAVE_BSDI_OS_FALSE='#'
15810 HAVE_BSDI_OS_TRUE='#'
15811 HAVE_BSDI_OS_FALSE=
15813 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15820 HAVE_BSDI_OS_FALSE='#'
15822 HAVE_BSDI_OS_TRUE='#'
15823 HAVE_BSDI_OS_FALSE=
15827 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15833 HAVE_SGI_OS_FALSE='#'
15835 HAVE_SGI_OS_TRUE='#'
15838 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15845 HAVE_SGI_OS_FALSE='#'
15847 HAVE_SGI_OS_TRUE='#'
15852 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15858 HAVE_IRIX_OS_FALSE='#'
15860 HAVE_IRIX_OS_TRUE='#'
15861 HAVE_IRIX_OS_FALSE=
15863 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15870 HAVE_IRIX_OS_FALSE='#'
15872 HAVE_IRIX_OS_TRUE='#'
15873 HAVE_IRIX_OS_FALSE=
15877 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15882 HAVE_DARWIN_OS_TRUE=
15883 HAVE_DARWIN_OS_FALSE='#'
15885 HAVE_DARWIN_OS_TRUE='#'
15886 HAVE_DARWIN_OS_FALSE=
15888 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15894 HAVE_DARWIN_OS_TRUE=
15895 HAVE_DARWIN_OS_FALSE='#'
15897 HAVE_DARWIN_OS_TRUE='#'
15898 HAVE_DARWIN_OS_FALSE=
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
15904 $as_echo_n "checking for Operating System Distribution... " >&6; }
15905 if test "x$DISTNAME" != "x"
15907 echo "distname set to $DISTNAME"
15908 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15911 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15914 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15917 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15920 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15923 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15926 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15929 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
15932 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15935 elif test -f /etc/SuSE-release
15938 elif test -d /etc/SuSEconfig
15941 elif test -f /etc/mandrake-release
15944 elif test -f /etc/whitebox-release
15947 elif test -f /etc/redhat-release
15950 elif test -f /etc/gentoo-release
15953 elif test -f /etc/debian_version
15956 elif test -f /etc/slackware-version
15959 elif test x$host_vendor = xapple
15962 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15965 elif test -f /etc/engarde-version
15968 elif test "$CYGWIN" = yes
15971 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15977 $as_echo "done" >&6; }
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15981 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15983 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15984 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15985 $as_echo_n "(cached) " >&6
15987 cat >conftest.make <<\_ACEOF
15990 @echo '@@@%%%=$(MAKE)=@@@%%%'
15992 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15993 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15994 *@@@%%%=?*=@@@%%%*)
15995 eval ac_cv_prog_make_${ac_make}_set=yes;;
15997 eval ac_cv_prog_make_${ac_make}_set=no;;
15999 rm -f conftest.make
16001 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16003 $as_echo "yes" >&6; }
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16007 $as_echo "no" >&6; }
16008 SET_MAKE="MAKE=${MAKE-make}"
16014 if test -n "$ac_aux_dir"; then
16015 case "$ac_aux_dir" in
16016 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16017 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16020 if test -z "$MKINSTALLDIRS"; then
16021 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16027 $as_echo_n "checking whether NLS is requested... " >&6; }
16028 # Check whether --enable-nls was given.
16029 if test "${enable_nls+set}" = set; then :
16030 enableval=$enable_nls; USE_NLS=$enableval
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16036 $as_echo "$USE_NLS" >&6; }
16043 # Prepare PATH_SEPARATOR.
16044 # The user is always right.
16045 if test "${PATH_SEPARATOR+set}" != set; then
16046 echo "#! /bin/sh" >conf$$.sh
16047 echo "exit 0" >>conf$$.sh
16049 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16057 # Find out how to test for executable files. Don't use a zero-byte file,
16058 # as systems may use methods other than mode bits to determine executability.
16059 cat >conf$$.file <<_ASEOF
16063 chmod +x conf$$.file
16064 if test -x conf$$.file >/dev/null 2>&1; then
16065 ac_executable_p="test -x"
16067 ac_executable_p="test -f"
16071 # Extract the first word of "msgfmt", so it can be a program name with args.
16072 set dummy msgfmt; ac_word=$2
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16074 $as_echo_n "checking for $ac_word... " >&6; }
16075 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16076 $as_echo_n "(cached) " >&6
16080 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16083 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16084 for ac_dir in $PATH; do
16086 test -z "$ac_dir" && ac_dir=.
16087 for ac_exec_ext in '' $ac_executable_extensions; do
16088 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16089 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16090 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16091 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16092 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16099 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16103 MSGFMT="$ac_cv_path_MSGFMT"
16104 if test "$MSGFMT" != ":"; then
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16106 $as_echo "$MSGFMT" >&6; }
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16109 $as_echo "no" >&6; }
16112 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16113 set dummy gmsgfmt; ac_word=$2
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16115 $as_echo_n "checking for $ac_word... " >&6; }
16116 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16117 $as_echo_n "(cached) " >&6
16121 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16125 for as_dir in $PATH
16128 test -z "$as_dir" && as_dir=.
16129 for ac_exec_ext in '' $ac_executable_extensions; do
16130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16131 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16139 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16143 GMSGFMT=$ac_cv_path_GMSGFMT
16144 if test -n "$GMSGFMT"; then
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16146 $as_echo "$GMSGFMT" >&6; }
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16149 $as_echo "no" >&6; }
16155 # Prepare PATH_SEPARATOR.
16156 # The user is always right.
16157 if test "${PATH_SEPARATOR+set}" != set; then
16158 echo "#! /bin/sh" >conf$$.sh
16159 echo "exit 0" >>conf$$.sh
16161 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16169 # Find out how to test for executable files. Don't use a zero-byte file,
16170 # as systems may use methods other than mode bits to determine executability.
16171 cat >conf$$.file <<_ASEOF
16175 chmod +x conf$$.file
16176 if test -x conf$$.file >/dev/null 2>&1; then
16177 ac_executable_p="test -x"
16179 ac_executable_p="test -f"
16183 # Extract the first word of "xgettext", so it can be a program name with args.
16184 set dummy xgettext; ac_word=$2
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16186 $as_echo_n "checking for $ac_word... " >&6; }
16187 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16188 $as_echo_n "(cached) " >&6
16190 case "$XGETTEXT" in
16192 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16195 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16196 for ac_dir in $PATH; do
16198 test -z "$ac_dir" && ac_dir=.
16199 for ac_exec_ext in '' $ac_executable_extensions; do
16200 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16201 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16202 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16203 (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
16204 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16211 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16215 XGETTEXT="$ac_cv_path_XGETTEXT"
16216 if test "$XGETTEXT" != ":"; then
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16218 $as_echo "$XGETTEXT" >&6; }
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16221 $as_echo "no" >&6; }
16227 # Prepare PATH_SEPARATOR.
16228 # The user is always right.
16229 if test "${PATH_SEPARATOR+set}" != set; then
16230 echo "#! /bin/sh" >conf$$.sh
16231 echo "exit 0" >>conf$$.sh
16233 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16241 # Find out how to test for executable files. Don't use a zero-byte file,
16242 # as systems may use methods other than mode bits to determine executability.
16243 cat >conf$$.file <<_ASEOF
16247 chmod +x conf$$.file
16248 if test -x conf$$.file >/dev/null 2>&1; then
16249 ac_executable_p="test -x"
16251 ac_executable_p="test -f"
16255 # Extract the first word of "msgmerge", so it can be a program name with args.
16256 set dummy msgmerge; ac_word=$2
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16258 $as_echo_n "checking for $ac_word... " >&6; }
16259 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16260 $as_echo_n "(cached) " >&6
16262 case "$MSGMERGE" in
16264 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16267 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16268 for ac_dir in $PATH; do
16270 test -z "$ac_dir" && ac_dir=.
16271 for ac_exec_ext in '' $ac_executable_extensions; do
16272 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16273 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16274 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16275 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16282 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16286 MSGMERGE="$ac_cv_path_MSGMERGE"
16287 if test "$MSGMERGE" != ":"; then
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16289 $as_echo "$MSGMERGE" >&6; }
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16292 $as_echo "no" >&6; }
16296 if test "$GMSGFMT" != ":"; then
16297 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16298 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16301 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16303 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16308 if test "$XGETTEXT" != ":"; then
16309 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16310 (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
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16314 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16320 ac_config_commands="$ac_config_commands default-1"
16324 if test "X$prefix" = "XNONE"; then
16325 acl_final_prefix="$ac_default_prefix"
16327 acl_final_prefix="$prefix"
16329 if test "X$exec_prefix" = "XNONE"; then
16330 acl_final_exec_prefix='${prefix}'
16332 acl_final_exec_prefix="$exec_prefix"
16334 acl_save_prefix="$prefix"
16335 prefix="$acl_final_prefix"
16336 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16337 prefix="$acl_save_prefix"
16340 # Check whether --with-gnu-ld was given.
16341 if test "${with_gnu_ld+set}" = set; then :
16342 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16347 # Prepare PATH_SEPARATOR.
16348 # The user is always right.
16349 if test "${PATH_SEPARATOR+set}" != set; then
16350 echo "#! /bin/sh" >conf$$.sh
16351 echo "exit 0" >>conf$$.sh
16353 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16361 if test "$GCC" = yes; then
16362 # Check if gcc -print-prog-name=ld gives a path.
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16364 $as_echo_n "checking for ld used by GCC... " >&6; }
16367 # gcc leaves a trailing carriage return which upsets mingw
16368 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16370 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16373 # Accept absolute paths.
16374 [\\/]* | [A-Za-z]:[\\/]*)
16375 re_direlt='/[^/][^/]*/\.\./'
16376 # Canonicalize the path of ld
16377 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16378 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16379 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16381 test -z "$LD" && LD="$ac_prog"
16384 # If it fails, then pretend we aren't using GCC.
16388 # If it is relative, then search for the first ld in PATH.
16389 with_gnu_ld=unknown
16392 elif test "$with_gnu_ld" = yes; then
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16394 $as_echo_n "checking for GNU ld... " >&6; }
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16397 $as_echo_n "checking for non-GNU ld... " >&6; }
16399 if test "${acl_cv_path_LD+set}" = set; then :
16400 $as_echo_n "(cached) " >&6
16402 if test -z "$LD"; then
16403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16404 for ac_dir in $PATH; do
16405 test -z "$ac_dir" && ac_dir=.
16406 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16407 acl_cv_path_LD="$ac_dir/$ac_prog"
16408 # Check to see if the program is GNU ld. I'd rather use --version,
16409 # but apparently some GNU ld's only accept -v.
16410 # Break only if it was the GNU/non-GNU ld that we prefer.
16411 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16412 *GNU* | *'with BFD'*)
16413 test "$with_gnu_ld" != no && break ;;
16415 test "$with_gnu_ld" != yes && break ;;
16421 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16425 LD="$acl_cv_path_LD"
16426 if test -n "$LD"; then
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16428 $as_echo "$LD" >&6; }
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16431 $as_echo "no" >&6; }
16433 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16435 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16436 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
16437 $as_echo_n "(cached) " >&6
16439 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16440 case `$LD -v 2>&1 </dev/null` in
16441 *GNU* | *'with BFD'*)
16442 acl_cv_prog_gnu_ld=yes ;;
16444 acl_cv_prog_gnu_ld=no ;;
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16448 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16449 with_gnu_ld=$acl_cv_prog_gnu_ld
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16455 $as_echo_n "checking for shared library run path origin... " >&6; }
16456 if test "${acl_cv_rpath+set}" = set; then :
16457 $as_echo_n "(cached) " >&6
16460 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16461 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16463 rm -f ./conftest.sh
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16468 $as_echo "$acl_cv_rpath" >&6; }
16470 libext="$acl_cv_libext"
16471 shlibext="$acl_cv_shlibext"
16472 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16473 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16474 hardcode_direct="$acl_cv_hardcode_direct"
16475 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16476 # Check whether --enable-rpath was given.
16477 if test "${enable_rpath+set}" = set; then :
16478 enableval=$enable_rpath; :
16492 acl_save_prefix="$prefix"
16493 prefix="$acl_final_prefix"
16494 acl_save_exec_prefix="$exec_prefix"
16495 exec_prefix="$acl_final_exec_prefix"
16497 eval additional_includedir=\"$includedir\"
16498 eval additional_libdir=\"$libdir\"
16500 exec_prefix="$acl_save_exec_prefix"
16501 prefix="$acl_save_prefix"
16504 # Check whether --with-libiconv-prefix was given.
16505 if test "${with_libiconv_prefix+set}" = set; then :
16506 withval=$with_libiconv_prefix;
16507 if test "X$withval" = "Xno"; then
16510 if test "X$withval" = "X"; then
16512 acl_save_prefix="$prefix"
16513 prefix="$acl_final_prefix"
16514 acl_save_exec_prefix="$exec_prefix"
16515 exec_prefix="$acl_final_exec_prefix"
16517 eval additional_includedir=\"$includedir\"
16518 eval additional_libdir=\"$libdir\"
16520 exec_prefix="$acl_save_exec_prefix"
16521 prefix="$acl_save_prefix"
16524 additional_includedir="$withval/include"
16525 additional_libdir="$withval/lib"
16536 names_already_handled=
16537 names_next_round='iconv '
16538 while test -n "$names_next_round"; do
16539 names_this_round="$names_next_round"
16541 for name in $names_this_round; do
16543 for n in $names_already_handled; do
16544 if test "$n" = "$name"; then
16545 already_handled=yes
16549 if test -z "$already_handled"; then
16550 names_already_handled="$names_already_handled $name"
16551 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16552 eval value=\"\$HAVE_LIB$uppername\"
16553 if test -n "$value"; then
16554 if test "$value" = yes; then
16555 eval value=\"\$LIB$uppername\"
16556 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16557 eval value=\"\$LTLIB$uppername\"
16558 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16567 if test $use_additional = yes; then
16568 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16569 found_dir="$additional_libdir"
16570 found_so="$additional_libdir/lib$name.$shlibext"
16571 if test -f "$additional_libdir/lib$name.la"; then
16572 found_la="$additional_libdir/lib$name.la"
16575 if test -f "$additional_libdir/lib$name.$libext"; then
16576 found_dir="$additional_libdir"
16577 found_a="$additional_libdir/lib$name.$libext"
16578 if test -f "$additional_libdir/lib$name.la"; then
16579 found_la="$additional_libdir/lib$name.la"
16584 if test "X$found_dir" = "X"; then
16585 for x in $LDFLAGS $LTLIBICONV; do
16587 acl_save_prefix="$prefix"
16588 prefix="$acl_final_prefix"
16589 acl_save_exec_prefix="$exec_prefix"
16590 exec_prefix="$acl_final_exec_prefix"
16592 exec_prefix="$acl_save_exec_prefix"
16593 prefix="$acl_save_prefix"
16597 dir=`echo "X$x" | sed -e 's/^X-L//'`
16598 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16600 found_so="$dir/lib$name.$shlibext"
16601 if test -f "$dir/lib$name.la"; then
16602 found_la="$dir/lib$name.la"
16605 if test -f "$dir/lib$name.$libext"; then
16607 found_a="$dir/lib$name.$libext"
16608 if test -f "$dir/lib$name.la"; then
16609 found_la="$dir/lib$name.la"
16615 if test "X$found_dir" != "X"; then
16620 if test "X$found_dir" != "X"; then
16621 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16622 if test "X$found_so" != "X"; then
16623 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16624 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16627 for x in $ltrpathdirs; do
16628 if test "X$x" = "X$found_dir"; then
16633 if test -z "$haveit"; then
16634 ltrpathdirs="$ltrpathdirs $found_dir"
16636 if test "$hardcode_direct" = yes; then
16637 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16639 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16640 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16642 for x in $rpathdirs; do
16643 if test "X$x" = "X$found_dir"; then
16648 if test -z "$haveit"; then
16649 rpathdirs="$rpathdirs $found_dir"
16653 for x in $LDFLAGS $LIBICONV; do
16655 acl_save_prefix="$prefix"
16656 prefix="$acl_final_prefix"
16657 acl_save_exec_prefix="$exec_prefix"
16658 exec_prefix="$acl_final_exec_prefix"
16660 exec_prefix="$acl_save_exec_prefix"
16661 prefix="$acl_save_prefix"
16663 if test "X$x" = "X-L$found_dir"; then
16668 if test -z "$haveit"; then
16669 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16671 if test "$hardcode_minus_L" != no; then
16672 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16674 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16680 if test "X$found_a" != "X"; then
16681 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16683 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16686 additional_includedir=
16687 case "$found_dir" in
16689 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16690 additional_includedir="$basedir/include"
16693 if test "X$additional_includedir" != "X"; then
16694 if test "X$additional_includedir" != "X/usr/include"; then
16696 if test "X$additional_includedir" = "X/usr/local/include"; then
16697 if test -n "$GCC"; then
16699 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16703 if test -z "$haveit"; then
16704 for x in $CPPFLAGS $INCICONV; do
16706 acl_save_prefix="$prefix"
16707 prefix="$acl_final_prefix"
16708 acl_save_exec_prefix="$exec_prefix"
16709 exec_prefix="$acl_final_exec_prefix"
16711 exec_prefix="$acl_save_exec_prefix"
16712 prefix="$acl_save_prefix"
16714 if test "X$x" = "X-I$additional_includedir"; then
16719 if test -z "$haveit"; then
16720 if test -d "$additional_includedir"; then
16721 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16727 if test -n "$found_la"; then
16728 save_libdir="$libdir"
16729 case "$found_la" in
16730 */* | *\\*) . "$found_la" ;;
16731 *) . "./$found_la" ;;
16733 libdir="$save_libdir"
16734 for dep in $dependency_libs; do
16737 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16738 if test "X$additional_libdir" != "X/usr/lib"; then
16740 if test "X$additional_libdir" = "X/usr/local/lib"; then
16741 if test -n "$GCC"; then
16743 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16747 if test -z "$haveit"; then
16749 for x in $LDFLAGS $LIBICONV; do
16751 acl_save_prefix="$prefix"
16752 prefix="$acl_final_prefix"
16753 acl_save_exec_prefix="$exec_prefix"
16754 exec_prefix="$acl_final_exec_prefix"
16756 exec_prefix="$acl_save_exec_prefix"
16757 prefix="$acl_save_prefix"
16759 if test "X$x" = "X-L$additional_libdir"; then
16764 if test -z "$haveit"; then
16765 if test -d "$additional_libdir"; then
16766 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16770 for x in $LDFLAGS $LTLIBICONV; do
16772 acl_save_prefix="$prefix"
16773 prefix="$acl_final_prefix"
16774 acl_save_exec_prefix="$exec_prefix"
16775 exec_prefix="$acl_final_exec_prefix"
16777 exec_prefix="$acl_save_exec_prefix"
16778 prefix="$acl_save_prefix"
16780 if test "X$x" = "X-L$additional_libdir"; then
16785 if test -z "$haveit"; then
16786 if test -d "$additional_libdir"; then
16787 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16794 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16795 if test "$enable_rpath" != no; then
16797 for x in $rpathdirs; do
16798 if test "X$x" = "X$dir"; then
16803 if test -z "$haveit"; then
16804 rpathdirs="$rpathdirs $dir"
16807 for x in $ltrpathdirs; do
16808 if test "X$x" = "X$dir"; then
16813 if test -z "$haveit"; then
16814 ltrpathdirs="$ltrpathdirs $dir"
16819 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16822 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16825 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16826 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16832 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16833 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16839 if test "X$rpathdirs" != "X"; then
16840 if test -n "$hardcode_libdir_separator"; then
16842 for found_dir in $rpathdirs; do
16843 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16845 acl_save_libdir="$libdir"
16847 eval flag=\"$hardcode_libdir_flag_spec\"
16848 libdir="$acl_save_libdir"
16849 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16851 for found_dir in $rpathdirs; do
16852 acl_save_libdir="$libdir"
16853 libdir="$found_dir"
16854 eval flag=\"$hardcode_libdir_flag_spec\"
16855 libdir="$acl_save_libdir"
16856 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16860 if test "X$ltrpathdirs" != "X"; then
16861 for found_dir in $ltrpathdirs; do
16862 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16884 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16885 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
16886 $as_echo_n "(cached) " >&6
16888 gt_save_CPPFLAGS="$CPPFLAGS"
16889 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16890 gt_save_LIBS="$LIBS"
16891 LIBS="$LIBS -framework CoreFoundation"
16892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16893 /* end confdefs.h. */
16894 #include <CFPreferences.h>
16898 CFPreferencesCopyAppValue(NULL, NULL)
16903 if ac_fn_c_try_link "$LINENO"; then :
16904 gt_cv_func_CFPreferencesCopyAppValue=yes
16906 gt_cv_func_CFPreferencesCopyAppValue=no
16908 rm -f core conftest.err conftest.$ac_objext \
16909 conftest$ac_exeext conftest.$ac_ext
16910 CPPFLAGS="$gt_save_CPPFLAGS"
16911 LIBS="$gt_save_LIBS"
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16914 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16915 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16917 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16921 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16922 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
16923 $as_echo_n "(cached) " >&6
16925 gt_save_CPPFLAGS="$CPPFLAGS"
16926 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16927 gt_save_LIBS="$LIBS"
16928 LIBS="$LIBS -framework CoreFoundation"
16929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16930 /* end confdefs.h. */
16931 #include <CFLocale.h>
16935 CFLocaleCopyCurrent();
16940 if ac_fn_c_try_link "$LINENO"; then :
16941 gt_cv_func_CFLocaleCopyCurrent=yes
16943 gt_cv_func_CFLocaleCopyCurrent=no
16945 rm -f core conftest.err conftest.$ac_objext \
16946 conftest$ac_exeext conftest.$ac_ext
16947 CPPFLAGS="$gt_save_CPPFLAGS"
16948 LIBS="$gt_save_LIBS"
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16951 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16952 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16954 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16958 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16959 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16966 $as_echo_n "checking whether NLS is requested... " >&6; }
16967 # Check whether --enable-nls was given.
16968 if test "${enable_nls+set}" = set; then :
16969 enableval=$enable_nls; USE_NLS=$enableval
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16975 $as_echo "$USE_NLS" >&6; }
16984 if test "$USE_NLS" = "yes"; then
16985 gt_use_preinstalled_gnugettext=no
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
16993 $as_echo_n "checking for GNU gettext in libc... " >&6; }
16994 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
16995 $as_echo_n "(cached) " >&6
16997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16998 /* end confdefs.h. */
16999 #include <libintl.h>
17000 extern int _nl_msg_cat_cntr;
17001 extern int *_nl_domain_bindings;
17005 bindtextdomain ("", "");
17006 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17011 if ac_fn_c_try_link "$LINENO"; then :
17012 gt_cv_func_gnugettext1_libc=yes
17014 gt_cv_func_gnugettext1_libc=no
17016 rm -f core conftest.err conftest.$ac_objext \
17017 conftest$ac_exeext conftest.$ac_ext
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17020 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17022 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17028 am_save_CPPFLAGS="$CPPFLAGS"
17030 for element in $INCICONV; do
17032 for x in $CPPFLAGS; do
17034 acl_save_prefix="$prefix"
17035 prefix="$acl_final_prefix"
17036 acl_save_exec_prefix="$exec_prefix"
17037 exec_prefix="$acl_final_exec_prefix"
17039 exec_prefix="$acl_save_exec_prefix"
17040 prefix="$acl_save_prefix"
17042 if test "X$x" = "X$element"; then
17047 if test -z "$haveit"; then
17048 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17054 $as_echo_n "checking for iconv... " >&6; }
17055 if test "${am_cv_func_iconv+set}" = set; then :
17056 $as_echo_n "(cached) " >&6
17059 am_cv_func_iconv="no, consider installing GNU libiconv"
17061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17062 /* end confdefs.h. */
17063 #include <stdlib.h>
17068 iconv_t cd = iconv_open("","");
17069 iconv(cd,NULL,NULL,NULL,NULL);
17075 if ac_fn_c_try_link "$LINENO"; then :
17076 am_cv_func_iconv=yes
17078 rm -f core conftest.err conftest.$ac_objext \
17079 conftest$ac_exeext conftest.$ac_ext
17080 if test "$am_cv_func_iconv" != yes; then
17081 am_save_LIBS="$LIBS"
17082 LIBS="$LIBS $LIBICONV"
17083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17084 /* end confdefs.h. */
17085 #include <stdlib.h>
17090 iconv_t cd = iconv_open("","");
17091 iconv(cd,NULL,NULL,NULL,NULL);
17097 if ac_fn_c_try_link "$LINENO"; then :
17098 am_cv_lib_iconv=yes
17099 am_cv_func_iconv=yes
17101 rm -f core conftest.err conftest.$ac_objext \
17102 conftest$ac_exeext conftest.$ac_ext
17103 LIBS="$am_save_LIBS"
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17108 $as_echo "$am_cv_func_iconv" >&6; }
17109 if test "$am_cv_func_iconv" = yes; then
17111 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17114 if test "$am_cv_lib_iconv" = yes; then
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17116 $as_echo_n "checking how to link with libiconv... " >&6; }
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17118 $as_echo "$LIBICONV" >&6; }
17120 CPPFLAGS="$am_save_CPPFLAGS"
17132 acl_save_prefix="$prefix"
17133 prefix="$acl_final_prefix"
17134 acl_save_exec_prefix="$exec_prefix"
17135 exec_prefix="$acl_final_exec_prefix"
17137 eval additional_includedir=\"$includedir\"
17138 eval additional_libdir=\"$libdir\"
17140 exec_prefix="$acl_save_exec_prefix"
17141 prefix="$acl_save_prefix"
17144 # Check whether --with-libintl-prefix was given.
17145 if test "${with_libintl_prefix+set}" = set; then :
17146 withval=$with_libintl_prefix;
17147 if test "X$withval" = "Xno"; then
17150 if test "X$withval" = "X"; then
17152 acl_save_prefix="$prefix"
17153 prefix="$acl_final_prefix"
17154 acl_save_exec_prefix="$exec_prefix"
17155 exec_prefix="$acl_final_exec_prefix"
17157 eval additional_includedir=\"$includedir\"
17158 eval additional_libdir=\"$libdir\"
17160 exec_prefix="$acl_save_exec_prefix"
17161 prefix="$acl_save_prefix"
17164 additional_includedir="$withval/include"
17165 additional_libdir="$withval/lib"
17176 names_already_handled=
17177 names_next_round='intl '
17178 while test -n "$names_next_round"; do
17179 names_this_round="$names_next_round"
17181 for name in $names_this_round; do
17183 for n in $names_already_handled; do
17184 if test "$n" = "$name"; then
17185 already_handled=yes
17189 if test -z "$already_handled"; then
17190 names_already_handled="$names_already_handled $name"
17191 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17192 eval value=\"\$HAVE_LIB$uppername\"
17193 if test -n "$value"; then
17194 if test "$value" = yes; then
17195 eval value=\"\$LIB$uppername\"
17196 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17197 eval value=\"\$LTLIB$uppername\"
17198 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17207 if test $use_additional = yes; then
17208 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17209 found_dir="$additional_libdir"
17210 found_so="$additional_libdir/lib$name.$shlibext"
17211 if test -f "$additional_libdir/lib$name.la"; then
17212 found_la="$additional_libdir/lib$name.la"
17215 if test -f "$additional_libdir/lib$name.$libext"; then
17216 found_dir="$additional_libdir"
17217 found_a="$additional_libdir/lib$name.$libext"
17218 if test -f "$additional_libdir/lib$name.la"; then
17219 found_la="$additional_libdir/lib$name.la"
17224 if test "X$found_dir" = "X"; then
17225 for x in $LDFLAGS $LTLIBINTL; do
17227 acl_save_prefix="$prefix"
17228 prefix="$acl_final_prefix"
17229 acl_save_exec_prefix="$exec_prefix"
17230 exec_prefix="$acl_final_exec_prefix"
17232 exec_prefix="$acl_save_exec_prefix"
17233 prefix="$acl_save_prefix"
17237 dir=`echo "X$x" | sed -e 's/^X-L//'`
17238 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17240 found_so="$dir/lib$name.$shlibext"
17241 if test -f "$dir/lib$name.la"; then
17242 found_la="$dir/lib$name.la"
17245 if test -f "$dir/lib$name.$libext"; then
17247 found_a="$dir/lib$name.$libext"
17248 if test -f "$dir/lib$name.la"; then
17249 found_la="$dir/lib$name.la"
17255 if test "X$found_dir" != "X"; then
17260 if test "X$found_dir" != "X"; then
17261 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17262 if test "X$found_so" != "X"; then
17263 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17264 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17267 for x in $ltrpathdirs; do
17268 if test "X$x" = "X$found_dir"; then
17273 if test -z "$haveit"; then
17274 ltrpathdirs="$ltrpathdirs $found_dir"
17276 if test "$hardcode_direct" = yes; then
17277 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17279 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17280 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17282 for x in $rpathdirs; do
17283 if test "X$x" = "X$found_dir"; then
17288 if test -z "$haveit"; then
17289 rpathdirs="$rpathdirs $found_dir"
17293 for x in $LDFLAGS $LIBINTL; do
17295 acl_save_prefix="$prefix"
17296 prefix="$acl_final_prefix"
17297 acl_save_exec_prefix="$exec_prefix"
17298 exec_prefix="$acl_final_exec_prefix"
17300 exec_prefix="$acl_save_exec_prefix"
17301 prefix="$acl_save_prefix"
17303 if test "X$x" = "X-L$found_dir"; then
17308 if test -z "$haveit"; then
17309 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17311 if test "$hardcode_minus_L" != no; then
17312 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17314 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17320 if test "X$found_a" != "X"; then
17321 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17323 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17326 additional_includedir=
17327 case "$found_dir" in
17329 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17330 additional_includedir="$basedir/include"
17333 if test "X$additional_includedir" != "X"; then
17334 if test "X$additional_includedir" != "X/usr/include"; then
17336 if test "X$additional_includedir" = "X/usr/local/include"; then
17337 if test -n "$GCC"; then
17339 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17343 if test -z "$haveit"; then
17344 for x in $CPPFLAGS $INCINTL; do
17346 acl_save_prefix="$prefix"
17347 prefix="$acl_final_prefix"
17348 acl_save_exec_prefix="$exec_prefix"
17349 exec_prefix="$acl_final_exec_prefix"
17351 exec_prefix="$acl_save_exec_prefix"
17352 prefix="$acl_save_prefix"
17354 if test "X$x" = "X-I$additional_includedir"; then
17359 if test -z "$haveit"; then
17360 if test -d "$additional_includedir"; then
17361 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17367 if test -n "$found_la"; then
17368 save_libdir="$libdir"
17369 case "$found_la" in
17370 */* | *\\*) . "$found_la" ;;
17371 *) . "./$found_la" ;;
17373 libdir="$save_libdir"
17374 for dep in $dependency_libs; do
17377 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17378 if test "X$additional_libdir" != "X/usr/lib"; then
17380 if test "X$additional_libdir" = "X/usr/local/lib"; then
17381 if test -n "$GCC"; then
17383 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17387 if test -z "$haveit"; then
17389 for x in $LDFLAGS $LIBINTL; do
17391 acl_save_prefix="$prefix"
17392 prefix="$acl_final_prefix"
17393 acl_save_exec_prefix="$exec_prefix"
17394 exec_prefix="$acl_final_exec_prefix"
17396 exec_prefix="$acl_save_exec_prefix"
17397 prefix="$acl_save_prefix"
17399 if test "X$x" = "X-L$additional_libdir"; then
17404 if test -z "$haveit"; then
17405 if test -d "$additional_libdir"; then
17406 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17410 for x in $LDFLAGS $LTLIBINTL; do
17412 acl_save_prefix="$prefix"
17413 prefix="$acl_final_prefix"
17414 acl_save_exec_prefix="$exec_prefix"
17415 exec_prefix="$acl_final_exec_prefix"
17417 exec_prefix="$acl_save_exec_prefix"
17418 prefix="$acl_save_prefix"
17420 if test "X$x" = "X-L$additional_libdir"; then
17425 if test -z "$haveit"; then
17426 if test -d "$additional_libdir"; then
17427 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17434 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17435 if test "$enable_rpath" != no; then
17437 for x in $rpathdirs; do
17438 if test "X$x" = "X$dir"; then
17443 if test -z "$haveit"; then
17444 rpathdirs="$rpathdirs $dir"
17447 for x in $ltrpathdirs; do
17448 if test "X$x" = "X$dir"; then
17453 if test -z "$haveit"; then
17454 ltrpathdirs="$ltrpathdirs $dir"
17459 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17462 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17465 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17466 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17472 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17473 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17479 if test "X$rpathdirs" != "X"; then
17480 if test -n "$hardcode_libdir_separator"; then
17482 for found_dir in $rpathdirs; do
17483 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17485 acl_save_libdir="$libdir"
17487 eval flag=\"$hardcode_libdir_flag_spec\"
17488 libdir="$acl_save_libdir"
17489 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17491 for found_dir in $rpathdirs; do
17492 acl_save_libdir="$libdir"
17493 libdir="$found_dir"
17494 eval flag=\"$hardcode_libdir_flag_spec\"
17495 libdir="$acl_save_libdir"
17496 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17500 if test "X$ltrpathdirs" != "X"; then
17501 for found_dir in $ltrpathdirs; do
17502 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17507 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17508 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
17509 $as_echo_n "(cached) " >&6
17511 gt_save_CPPFLAGS="$CPPFLAGS"
17512 CPPFLAGS="$CPPFLAGS $INCINTL"
17513 gt_save_LIBS="$LIBS"
17514 LIBS="$LIBS $LIBINTL"
17515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17516 /* end confdefs.h. */
17517 #include <libintl.h>
17518 extern int _nl_msg_cat_cntr;
17523 const char *_nl_expand_alias (const char *);
17527 bindtextdomain ("", "");
17528 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17533 if ac_fn_c_try_link "$LINENO"; then :
17534 gt_cv_func_gnugettext1_libintl=yes
17536 gt_cv_func_gnugettext1_libintl=no
17538 rm -f core conftest.err conftest.$ac_objext \
17539 conftest$ac_exeext conftest.$ac_ext
17540 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17541 LIBS="$LIBS $LIBICONV"
17542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17543 /* end confdefs.h. */
17544 #include <libintl.h>
17545 extern int _nl_msg_cat_cntr;
17550 const char *_nl_expand_alias (const char *);
17554 bindtextdomain ("", "");
17555 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17560 if ac_fn_c_try_link "$LINENO"; then :
17561 LIBINTL="$LIBINTL $LIBICONV"
17562 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17563 gt_cv_func_gnugettext1_libintl=yes
17566 rm -f core conftest.err conftest.$ac_objext \
17567 conftest$ac_exeext conftest.$ac_ext
17569 CPPFLAGS="$gt_save_CPPFLAGS"
17570 LIBS="$gt_save_LIBS"
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17573 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17576 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17577 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17578 && test "$PACKAGE" != gettext-runtime \
17579 && test "$PACKAGE" != gettext-tools; }; then
17580 gt_use_preinstalled_gnugettext=yes
17589 if test -n "$INTL_MACOSX_LIBS"; then
17590 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17591 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17592 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17593 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17597 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17598 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17600 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17608 $as_echo_n "checking whether to use NLS... " >&6; }
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17610 $as_echo "$USE_NLS" >&6; }
17611 if test "$USE_NLS" = "yes"; then
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17613 $as_echo_n "checking where the gettext function comes from... " >&6; }
17614 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17615 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17616 gt_source="external libintl"
17621 gt_source="included intl directory"
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17624 $as_echo "$gt_source" >&6; }
17627 if test "$USE_NLS" = "yes"; then
17629 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17630 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17632 $as_echo_n "checking how to link with libintl... " >&6; }
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17634 $as_echo "$LIBINTL" >&6; }
17636 for element in $INCINTL; do
17638 for x in $CPPFLAGS; do
17640 acl_save_prefix="$prefix"
17641 prefix="$acl_final_prefix"
17642 acl_save_exec_prefix="$exec_prefix"
17643 exec_prefix="$acl_final_exec_prefix"
17645 exec_prefix="$acl_save_exec_prefix"
17646 prefix="$acl_save_prefix"
17648 if test "X$x" = "X$element"; then
17653 if test -z "$haveit"; then
17654 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17661 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17664 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17673 INTLLIBS="$LIBINTL"
17681 os_name=`uname -s 2>/dev/null`
17682 if test x${prefix} = xNONE ; then
17683 if test `eval echo ${sysconfdir}` = NONE/etc ; then
17684 sysconfdir=/etc/bacula
17687 if test `eval echo ${libdir}` = NONE/lib ; then
17690 os_processor=`uname -p 2>/dev/null`
17691 case ${os_processor} in
17706 if test `eval echo ${includedir}` = NONE/include ; then
17707 includedir=/usr/include
17710 if test `eval echo ${datarootdir}` = NONE/share ; then
17711 datarootdir=/usr/share
17716 if test x${exec_prefix} = xNONE ; then
17717 exec_prefix=${prefix}
17720 sysconfdir=`eval echo ${sysconfdir}`
17721 datarootdir=`eval echo ${datarootdir}`
17722 docdir=`eval echo ${docdir}`
17723 htmldir=`eval echo ${htmldir}`
17724 libdir=`eval echo ${libdir}`
17725 includedir=`eval echo ${includedir}`
17726 localedir=`eval echo ${datarootdir}/locale`
17727 cat >>confdefs.h <<_ACEOF
17728 #define SYSCONFDIR "$sysconfdir"
17731 cat >>confdefs.h <<_ACEOF
17732 #define LOCALEDIR "$localedir"
17736 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17737 sbindir=${exec_prefix}/sbin
17739 sbindir=`eval echo ${sbindir}`
17741 if test x$mandir = x'${prefix}/man' ; then
17742 mandir=/usr/share/man
17745 if test x$htmldir = x${docdir} ; then
17746 htmldir=`eval echo ${docdir}bacula/html`
17749 if test x$docdir = x'/usr/share/doc/' ; then
17750 docdir=`eval echo ${docdir}bacula`
17754 for ac_prog in msgfmt
17756 # Extract the first word of "$ac_prog", so it can be a program name with args.
17757 set dummy $ac_prog; ac_word=$2
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17759 $as_echo_n "checking for $ac_word... " >&6; }
17760 if test "${ac_cv_path_MSGFMT+set}" = set; then :
17761 $as_echo_n "(cached) " >&6
17765 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17769 for as_dir in $PATH
17772 test -z "$as_dir" && as_dir=.
17773 for ac_exec_ext in '' $ac_executable_extensions; do
17774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17775 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17786 MSGFMT=$ac_cv_path_MSGFMT
17787 if test -n "$MSGFMT"; then
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17789 $as_echo "$MSGFMT" >&6; }
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17792 $as_echo "no" >&6; }
17796 test -n "$MSGFMT" && break
17798 test -n "$MSGFMT" || MSGFMT="no"
17800 if test "$MSGFMT" = "no"
17802 echo 'msgfmt program not found, disabling NLS !'
17804 USE_INCLUDED_LIBINTL=no
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17808 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17809 if test "${ac_cv_gnu_library_2+set}" = set; then :
17810 $as_echo_n "(cached) " >&6
17812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17813 /* end confdefs.h. */
17815 #include <features.h>
17816 #ifdef __GNU_LIBRARY__
17817 #if (__GLIBC__ >= 2)
17823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17824 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17825 ac_cv_gnu_library_2=yes
17827 ac_cv_gnu_library_2=no
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17835 $as_echo "$ac_cv_gnu_library_2" >&6; }
17837 GLIBC2="$ac_cv_gnu_library_2"
17840 if test -n "$ac_tool_prefix"; then
17841 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17842 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17844 $as_echo_n "checking for $ac_word... " >&6; }
17845 if test "${ac_cv_prog_RANLIB+set}" = set; then :
17846 $as_echo_n "(cached) " >&6
17848 if test -n "$RANLIB"; then
17849 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17852 for as_dir in $PATH
17855 test -z "$as_dir" && as_dir=.
17856 for ac_exec_ext in '' $ac_executable_extensions; do
17857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17858 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17868 RANLIB=$ac_cv_prog_RANLIB
17869 if test -n "$RANLIB"; then
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17871 $as_echo "$RANLIB" >&6; }
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17874 $as_echo "no" >&6; }
17879 if test -z "$ac_cv_prog_RANLIB"; then
17880 ac_ct_RANLIB=$RANLIB
17881 # Extract the first word of "ranlib", so it can be a program name with args.
17882 set dummy ranlib; ac_word=$2
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17884 $as_echo_n "checking for $ac_word... " >&6; }
17885 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
17886 $as_echo_n "(cached) " >&6
17888 if test -n "$ac_ct_RANLIB"; then
17889 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17892 for as_dir in $PATH
17895 test -z "$as_dir" && as_dir=.
17896 for ac_exec_ext in '' $ac_executable_extensions; do
17897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17898 ac_cv_prog_ac_ct_RANLIB="ranlib"
17899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17908 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17909 if test -n "$ac_ct_RANLIB"; then
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17911 $as_echo "$ac_ct_RANLIB" >&6; }
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17914 $as_echo "no" >&6; }
17917 if test "x$ac_ct_RANLIB" = x; then
17920 case $cross_compiling:$ac_tool_warned in
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17924 ac_tool_warned=yes ;;
17926 RANLIB=$ac_ct_RANLIB
17929 RANLIB="$ac_cv_prog_RANLIB"
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
17934 $as_echo_n "checking for strerror in -lcposix... " >&6; }
17935 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
17936 $as_echo_n "(cached) " >&6
17938 ac_check_lib_save_LIBS=$LIBS
17939 LIBS="-lcposix $LIBS"
17940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17941 /* end confdefs.h. */
17943 /* Override any GCC internal prototype to avoid an error.
17944 Use char because int might match the return type of a GCC
17945 builtin and then its argument prototype would still apply. */
17953 return strerror ();
17958 if ac_fn_c_try_link "$LINENO"; then :
17959 ac_cv_lib_cposix_strerror=yes
17961 ac_cv_lib_cposix_strerror=no
17963 rm -f core conftest.err conftest.$ac_objext \
17964 conftest$ac_exeext conftest.$ac_ext
17965 LIBS=$ac_check_lib_save_LIBS
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
17968 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
17969 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
17970 LIBS="$LIBS -lcposix"
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17976 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17977 if test "${ac_cv_c_const+set}" = set; then :
17978 $as_echo_n "(cached) " >&6
17980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17981 /* end confdefs.h. */
17986 /* FIXME: Include the comments suggested by Paul. */
17987 #ifndef __cplusplus
17988 /* Ultrix mips cc rejects this. */
17989 typedef int charset[2];
17991 /* SunOS 4.1.1 cc rejects this. */
17992 char const *const *pcpcc;
17994 /* NEC SVR4.0.2 mips cc rejects this. */
17995 struct point {int x, y;};
17996 static struct point const zero = {0,0};
17997 /* AIX XL C 1.02.0.0 rejects this.
17998 It does not let you subtract one const X* pointer from another in
17999 an arm of an if-expression whose if-part is not a constant
18001 const char *g = "string";
18002 pcpcc = &g + (g ? g-g : 0);
18003 /* HPUX 7.0 cc rejects these. */
18005 ppc = (char**) pcpcc;
18006 pcpcc = (char const *const *) ppc;
18007 { /* SCO 3.2v4 cc rejects this. */
18009 char const *s = 0 ? (char *) 0 : (char const *) 0;
18014 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18015 int x[] = {25, 17};
18016 const int *foo = &x[0];
18019 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18020 typedef const int *iptr;
18024 { /* AIX XL C 1.02.0.0 rejects this saying
18025 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18026 struct s { int j; const int *ap[3]; };
18027 struct s *b; b->j = 5;
18029 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18030 const int foo = 10;
18031 if (!foo) return 0;
18033 return !cs[0] && !zero.x;
18040 if ac_fn_c_try_compile "$LINENO"; then :
18045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18048 $as_echo "$ac_cv_c_const" >&6; }
18049 if test $ac_cv_c_const = no; then
18051 $as_echo "#define const /**/" >>confdefs.h
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18057 $as_echo_n "checking for signed... " >&6; }
18058 if test "${bh_cv_c_signed+set}" = set; then :
18059 $as_echo_n "(cached) " >&6
18061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18062 /* end confdefs.h. */
18072 if ac_fn_c_try_compile "$LINENO"; then :
18077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18080 $as_echo "$bh_cv_c_signed" >&6; }
18081 if test $bh_cv_c_signed = no; then
18083 $as_echo "#define signed /**/" >>confdefs.h
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18088 $as_echo_n "checking for inline... " >&6; }
18089 if test "${ac_cv_c_inline+set}" = set; then :
18090 $as_echo_n "(cached) " >&6
18093 for ac_kw in inline __inline__ __inline; do
18094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18095 /* end confdefs.h. */
18096 #ifndef __cplusplus
18098 static $ac_kw foo_t static_foo () {return 0; }
18099 $ac_kw foo_t foo () {return 0; }
18103 if ac_fn_c_try_compile "$LINENO"; then :
18104 ac_cv_c_inline=$ac_kw
18106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18107 test "$ac_cv_c_inline" != no && break
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18112 $as_echo "$ac_cv_c_inline" >&6; }
18114 case $ac_cv_c_inline in
18117 case $ac_cv_c_inline in
18119 *) ac_val=$ac_cv_c_inline;;
18121 cat >>confdefs.h <<_ACEOF
18122 #ifndef __cplusplus
18123 #define inline $ac_val
18129 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18130 if test "x$ac_cv_type_off_t" = x""yes; then :
18134 cat >>confdefs.h <<_ACEOF
18135 #define off_t long int
18140 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18141 if test "x$ac_cv_type_size_t" = x""yes; then :
18145 cat >>confdefs.h <<_ACEOF
18146 #define size_t unsigned int
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18153 $as_echo_n "checking for long long... " >&6; }
18154 if test "${ac_cv_type_long_long+set}" = set; then :
18155 $as_echo_n "(cached) " >&6
18157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18158 /* end confdefs.h. */
18159 long long ll = 1LL; int i = 63;
18163 long long llmax = (long long) -1;
18164 return ll << i | ll >> i | llmax / ll | llmax % ll;
18169 if ac_fn_c_try_link "$LINENO"; then :
18170 ac_cv_type_long_long=yes
18172 ac_cv_type_long_long=no
18174 rm -f core conftest.err conftest.$ac_objext \
18175 conftest$ac_exeext conftest.$ac_ext
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18178 $as_echo "$ac_cv_type_long_long" >&6; }
18179 if test $ac_cv_type_long_long = yes; then
18181 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18187 $as_echo_n "checking for long double... " >&6; }
18188 if test "${gt_cv_c_long_double+set}" = set; then :
18189 $as_echo_n "(cached) " >&6
18191 if test "$GCC" = yes; then
18192 gt_cv_c_long_double=yes
18194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18195 /* end confdefs.h. */
18197 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
18198 long double foo = 0.0;
18199 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
18200 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18210 if ac_fn_c_try_compile "$LINENO"; then :
18211 gt_cv_c_long_double=yes
18213 gt_cv_c_long_double=no
18215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18219 $as_echo "$gt_cv_c_long_double" >&6; }
18220 if test $gt_cv_c_long_double = yes; then
18222 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18228 $as_echo_n "checking for wchar_t... " >&6; }
18229 if test "${gt_cv_c_wchar_t+set}" = set; then :
18230 $as_echo_n "(cached) " >&6
18232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18233 /* end confdefs.h. */
18234 #include <stddef.h>
18235 wchar_t foo = (wchar_t)'\0';
18244 if ac_fn_c_try_compile "$LINENO"; then :
18245 gt_cv_c_wchar_t=yes
18249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18252 $as_echo "$gt_cv_c_wchar_t" >&6; }
18253 if test $gt_cv_c_wchar_t = yes; then
18255 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18261 $as_echo_n "checking for wint_t... " >&6; }
18262 if test "${gt_cv_c_wint_t+set}" = set; then :
18263 $as_echo_n "(cached) " >&6
18265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18266 /* end confdefs.h. */
18268 wint_t foo = (wchar_t)'\0';
18277 if ac_fn_c_try_compile "$LINENO"; then :
18282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18285 $as_echo "$gt_cv_c_wint_t" >&6; }
18286 if test $gt_cv_c_wint_t = yes; then
18288 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18294 $as_echo_n "checking for inttypes.h... " >&6; }
18295 if test "${gl_cv_header_inttypes_h+set}" = set; then :
18296 $as_echo_n "(cached) " >&6
18298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18299 /* end confdefs.h. */
18300 #include <sys/types.h>
18301 #include <inttypes.h>
18305 uintmax_t i = (uintmax_t) -1;
18310 if ac_fn_c_try_compile "$LINENO"; then :
18311 gl_cv_header_inttypes_h=yes
18313 gl_cv_header_inttypes_h=no
18315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18318 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18319 if test $gl_cv_header_inttypes_h = yes; then
18321 cat >>confdefs.h <<_ACEOF
18322 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18329 $as_echo_n "checking for stdint.h... " >&6; }
18330 if test "${gl_cv_header_stdint_h+set}" = set; then :
18331 $as_echo_n "(cached) " >&6
18333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18334 /* end confdefs.h. */
18335 #include <sys/types.h>
18336 #include <stdint.h>
18340 uintmax_t i = (uintmax_t) -1;
18345 if ac_fn_c_try_compile "$LINENO"; then :
18346 gl_cv_header_stdint_h=yes
18348 gl_cv_header_stdint_h=no
18350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18353 $as_echo "$gl_cv_header_stdint_h" >&6; }
18354 if test $gl_cv_header_stdint_h = yes; then
18356 cat >>confdefs.h <<_ACEOF
18357 #define HAVE_STDINT_H_WITH_UINTMAX 1
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18366 $as_echo_n "checking for intmax_t... " >&6; }
18367 if test "${gt_cv_c_intmax_t+set}" = set; then :
18368 $as_echo_n "(cached) " >&6
18370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18371 /* end confdefs.h. */
18373 #include <stddef.h>
18374 #include <stdlib.h>
18375 #if HAVE_STDINT_H_WITH_UINTMAX
18376 #include <stdint.h>
18378 #if HAVE_INTTYPES_H_WITH_UINTMAX
18379 #include <inttypes.h>
18390 if ac_fn_c_try_compile "$LINENO"; then :
18391 gt_cv_c_intmax_t=yes
18393 gt_cv_c_intmax_t=no
18395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18398 $as_echo "$gt_cv_c_intmax_t" >&6; }
18399 if test $gt_cv_c_intmax_t = yes; then
18401 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18408 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18409 if test "${gt_cv_func_printf_posix+set}" = set; then :
18410 $as_echo_n "(cached) " >&6
18413 if test "$cross_compiling" = yes; then :
18415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18416 /* end confdefs.h. */
18418 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18424 $EGREP "notposix" >/dev/null 2>&1; then :
18425 gt_cv_func_printf_posix="guessing no"
18427 gt_cv_func_printf_posix="guessing yes"
18433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18434 /* end confdefs.h. */
18437 #include <string.h>
18438 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18439 dollar expansion (possibly an autoconf bug). */
18440 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18441 static char buf[100];
18444 sprintf (buf, format, 33, 55);
18445 return (strcmp (buf, "55 33") != 0);
18448 if ac_fn_c_try_run "$LINENO"; then :
18449 gt_cv_func_printf_posix=yes
18451 gt_cv_func_printf_posix=no
18453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18454 conftest.$ac_objext conftest.beam conftest.$ac_ext
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18460 $as_echo "$gt_cv_func_printf_posix" >&6; }
18461 case $gt_cv_func_printf_posix in
18464 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18469 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18470 # for constant arguments. Useless!
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18472 $as_echo_n "checking for working alloca.h... " >&6; }
18473 if test "${ac_cv_working_alloca_h+set}" = set; then :
18474 $as_echo_n "(cached) " >&6
18476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18477 /* end confdefs.h. */
18478 #include <alloca.h>
18482 char *p = (char *) alloca (2 * sizeof (int));
18488 if ac_fn_c_try_link "$LINENO"; then :
18489 ac_cv_working_alloca_h=yes
18491 ac_cv_working_alloca_h=no
18493 rm -f core conftest.err conftest.$ac_objext \
18494 conftest$ac_exeext conftest.$ac_ext
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18497 $as_echo "$ac_cv_working_alloca_h" >&6; }
18498 if test $ac_cv_working_alloca_h = yes; then
18500 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18505 $as_echo_n "checking for alloca... " >&6; }
18506 if test "${ac_cv_func_alloca_works+set}" = set; then :
18507 $as_echo_n "(cached) " >&6
18509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18510 /* end confdefs.h. */
18512 # define alloca __builtin_alloca
18515 # include <malloc.h>
18516 # define alloca _alloca
18518 # ifdef HAVE_ALLOCA_H
18519 # include <alloca.h>
18524 # ifndef alloca /* predefined by HP cc +Olibcalls */
18535 char *p = (char *) alloca (1);
18541 if ac_fn_c_try_link "$LINENO"; then :
18542 ac_cv_func_alloca_works=yes
18544 ac_cv_func_alloca_works=no
18546 rm -f core conftest.err conftest.$ac_objext \
18547 conftest$ac_exeext conftest.$ac_ext
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18550 $as_echo "$ac_cv_func_alloca_works" >&6; }
18552 if test $ac_cv_func_alloca_works = yes; then
18554 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18557 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18558 # that cause trouble. Some versions do not even contain alloca or
18559 # contain a buggy version. If you still want to use their alloca,
18560 # use ar to extract alloca.o from them instead of compiling alloca.c.
18562 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18564 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18568 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18569 if test "${ac_cv_os_cray+set}" = set; then :
18570 $as_echo_n "(cached) " >&6
18572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18573 /* end confdefs.h. */
18574 #if defined CRAY && ! defined CRAY2
18581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18582 $EGREP "webecray" >/dev/null 2>&1; then :
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18591 $as_echo "$ac_cv_os_cray" >&6; }
18592 if test $ac_cv_os_cray = yes; then
18593 for ac_func in _getb67 GETB67 getb67; do
18594 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18595 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18596 eval as_val=\$$as_ac_var
18597 if test "x$as_val" = x""yes; then :
18599 cat >>confdefs.h <<_ACEOF
18600 #define CRAY_STACKSEG_END $ac_func
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18610 $as_echo_n "checking stack direction for C alloca... " >&6; }
18611 if test "${ac_cv_c_stack_direction+set}" = set; then :
18612 $as_echo_n "(cached) " >&6
18614 if test "$cross_compiling" = yes; then :
18615 ac_cv_c_stack_direction=0
18617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18618 /* end confdefs.h. */
18619 $ac_includes_default
18621 find_stack_direction ()
18623 static char *addr = 0;
18628 return find_stack_direction ();
18631 return (&dummy > addr) ? 1 : -1;
18637 return find_stack_direction () < 0;
18640 if ac_fn_c_try_run "$LINENO"; then :
18641 ac_cv_c_stack_direction=1
18643 ac_cv_c_stack_direction=-1
18645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18646 conftest.$ac_objext conftest.beam conftest.$ac_ext
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18651 $as_echo "$ac_cv_c_stack_direction" >&6; }
18652 cat >>confdefs.h <<_ACEOF
18653 #define STACK_DIRECTION $ac_cv_c_stack_direction
18662 for ac_header in $ac_header_list
18664 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18665 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18667 eval as_val=\$$as_ac_Header
18668 if test "x$as_val" = x""yes; then :
18669 cat >>confdefs.h <<_ACEOF
18670 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18684 for ac_func in getpagesize
18686 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18687 if test "x$ac_cv_func_getpagesize" = x""yes; then :
18688 cat >>confdefs.h <<_ACEOF
18689 #define HAVE_GETPAGESIZE 1
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18696 $as_echo_n "checking for working mmap... " >&6; }
18697 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
18698 $as_echo_n "(cached) " >&6
18700 if test "$cross_compiling" = yes; then :
18701 ac_cv_func_mmap_fixed_mapped=no
18703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18704 /* end confdefs.h. */
18705 $ac_includes_default
18706 /* malloc might have been renamed as rpl_malloc. */
18709 /* Thanks to Mike Haertel and Jim Avera for this test.
18710 Here is a matrix of mmap possibilities:
18711 mmap private not fixed
18712 mmap private fixed at somewhere currently unmapped
18713 mmap private fixed at somewhere already mapped
18714 mmap shared not fixed
18715 mmap shared fixed at somewhere currently unmapped
18716 mmap shared fixed at somewhere already mapped
18717 For private mappings, we should verify that changes cannot be read()
18718 back from the file, nor mmap's back from the file at a different
18719 address. (There have been systems where private was not correctly
18720 implemented like the infamous i386 svr4.0, and systems where the
18721 VM page cache was not coherent with the file system buffer cache
18722 like early versions of FreeBSD and possibly contemporary NetBSD.)
18723 For shared mappings, we should conversely verify that changes get
18724 propagated back to all the places they're supposed to be.
18726 Grep wants private fixed already mapped.
18727 The main things grep needs to know about mmap are:
18728 * does it exist and is it safe to write into the mmap'd area
18729 * how to use it (BSD variants) */
18732 #include <sys/mman.h>
18734 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18738 /* This mess was copied from the GNU getpagesize.h. */
18739 #ifndef HAVE_GETPAGESIZE
18740 # ifdef _SC_PAGESIZE
18741 # define getpagesize() sysconf(_SC_PAGESIZE)
18742 # else /* no _SC_PAGESIZE */
18743 # ifdef HAVE_SYS_PARAM_H
18744 # include <sys/param.h>
18745 # ifdef EXEC_PAGESIZE
18746 # define getpagesize() EXEC_PAGESIZE
18747 # else /* no EXEC_PAGESIZE */
18749 # define getpagesize() NBPG * CLSIZE
18752 # endif /* no CLSIZE */
18753 # else /* no NBPG */
18755 # define getpagesize() NBPC
18756 # else /* no NBPC */
18758 # define getpagesize() PAGESIZE
18759 # endif /* PAGESIZE */
18760 # endif /* no NBPC */
18761 # endif /* no NBPG */
18762 # endif /* no EXEC_PAGESIZE */
18763 # else /* no HAVE_SYS_PARAM_H */
18764 # define getpagesize() 8192 /* punt totally */
18765 # endif /* no HAVE_SYS_PARAM_H */
18766 # endif /* no _SC_PAGESIZE */
18768 #endif /* no HAVE_GETPAGESIZE */
18773 char *data, *data2, *data3;
18777 pagesize = getpagesize ();
18779 /* First, make a file with some known garbage in it. */
18780 data = (char *) malloc (pagesize);
18783 for (i = 0; i < pagesize; ++i)
18784 *(data + i) = rand ();
18786 fd = creat ("conftest.mmap", 0600);
18789 if (write (fd, data, pagesize) != pagesize)
18793 /* Next, check that the tail of a page is zero-filled. File must have
18794 non-zero length, otherwise we risk SIGBUS for entire page. */
18795 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18799 if (write (fd2, data2, 1) != 1)
18801 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18802 if (data2 == MAP_FAILED)
18804 for (i = 0; i < pagesize; ++i)
18808 if (munmap (data2, pagesize))
18811 /* Next, try to mmap the file at a fixed address which already has
18812 something else allocated at it. If we can, also make sure that
18813 we see the same garbage. */
18814 fd = open ("conftest.mmap", O_RDWR);
18817 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18818 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18820 for (i = 0; i < pagesize; ++i)
18821 if (*(data + i) != *(data2 + i))
18824 /* Finally, make sure that changes to the mapped area do not
18825 percolate back to the file as seen by read(). (This is a bug on
18826 some variants of i386 svr4.0.) */
18827 for (i = 0; i < pagesize; ++i)
18828 *(data2 + i) = *(data2 + i) + 1;
18829 data3 = (char *) malloc (pagesize);
18832 if (read (fd, data3, pagesize) != pagesize)
18834 for (i = 0; i < pagesize; ++i)
18835 if (*(data + i) != *(data3 + i))
18841 if ac_fn_c_try_run "$LINENO"; then :
18842 ac_cv_func_mmap_fixed_mapped=yes
18844 ac_cv_func_mmap_fixed_mapped=no
18846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18847 conftest.$ac_objext conftest.beam conftest.$ac_ext
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18852 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18853 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18855 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18858 rm -f conftest.mmap conftest.txt
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18862 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18863 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
18864 $as_echo_n "(cached) " >&6
18866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18867 /* end confdefs.h. */
18869 #include <features.h>
18870 #ifdef __GNU_LIBRARY__
18871 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18878 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18879 ac_cv_gnu_library_2_1=yes
18881 ac_cv_gnu_library_2_1=no
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18889 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18891 GLIBC21="$ac_cv_gnu_library_2_1"
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18897 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18898 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
18899 $as_echo_n "(cached) " >&6
18902 if test "$cross_compiling" = yes; then :
18904 # Guess based on the CPU.
18905 case "$host_cpu" in
18906 alpha* | i3456786 | m68k | s390*)
18907 gt_cv_int_divbyzero_sigfpe="guessing yes";;
18909 gt_cv_int_divbyzero_sigfpe="guessing no";;
18913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18914 /* end confdefs.h. */
18916 #include <stdlib.h>
18917 #include <signal.h>
18921 sigfpe_handler (int sig)
18923 sigfpe_handler (sig) int sig;
18926 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
18927 exit (sig != SIGFPE);
18937 signal (SIGFPE, sigfpe_handler);
18938 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
18939 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18940 signal (SIGTRAP, sigfpe_handler);
18942 /* Linux/SPARC yields signal SIGILL. */
18943 #if defined (__sparc__) && defined (__linux__)
18944 signal (SIGILL, sigfpe_handler);
18953 if ac_fn_c_try_run "$LINENO"; then :
18954 gt_cv_int_divbyzero_sigfpe=yes
18956 gt_cv_int_divbyzero_sigfpe=no
18958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18959 conftest.$ac_objext conftest.beam conftest.$ac_ext
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
18965 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
18966 case "$gt_cv_int_divbyzero_sigfpe" in
18971 cat >>confdefs.h <<_ACEOF
18972 #define INTDIV0_RAISES_SIGFPE $value
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
18978 $as_echo_n "checking for unsigned long long... " >&6; }
18979 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
18980 $as_echo_n "(cached) " >&6
18982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18983 /* end confdefs.h. */
18984 unsigned long long ull = 1ULL; int i = 63;
18988 unsigned long long ullmax = (unsigned long long) -1;
18989 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
18994 if ac_fn_c_try_link "$LINENO"; then :
18995 ac_cv_type_unsigned_long_long=yes
18997 ac_cv_type_unsigned_long_long=no
18999 rm -f core conftest.err conftest.$ac_objext \
19000 conftest$ac_exeext conftest.$ac_ext
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19003 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19004 if test $ac_cv_type_unsigned_long_long = yes; then
19006 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19013 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19015 test $ac_cv_type_unsigned_long_long = yes \
19016 && ac_type='unsigned long long' \
19017 || ac_type='unsigned long'
19019 cat >>confdefs.h <<_ACEOF
19020 #define uintmax_t $ac_type
19025 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19031 $as_echo_n "checking for inttypes.h... " >&6; }
19032 if test "${gt_cv_header_inttypes_h+set}" = set; then :
19033 $as_echo_n "(cached) " >&6
19036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19037 /* end confdefs.h. */
19038 #include <sys/types.h>
19039 #include <inttypes.h>
19048 if ac_fn_c_try_compile "$LINENO"; then :
19049 gt_cv_header_inttypes_h=yes
19051 gt_cv_header_inttypes_h=no
19053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19057 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19058 if test $gt_cv_header_inttypes_h = yes; then
19060 cat >>confdefs.h <<_ACEOF
19061 #define HAVE_INTTYPES_H 1
19068 if test $gt_cv_header_inttypes_h = yes; then
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19070 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19071 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
19072 $as_echo_n "(cached) " >&6
19075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19076 /* end confdefs.h. */
19077 #include <inttypes.h>
19090 if ac_fn_c_try_compile "$LINENO"; then :
19091 gt_cv_inttypes_pri_broken=no
19093 gt_cv_inttypes_pri_broken=yes
19095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19099 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19101 if test "$gt_cv_inttypes_pri_broken" = yes; then
19103 cat >>confdefs.h <<_ACEOF
19104 #define PRI_MACROS_BROKEN 1
19110 for ac_header in stdint.h
19112 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19113 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19114 cat >>confdefs.h <<_ACEOF
19115 #define HAVE_STDINT_H 1
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19123 $as_echo_n "checking for SIZE_MAX... " >&6; }
19125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19126 /* end confdefs.h. */
19128 #include <limits.h>
19130 #include <stdint.h>
19137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19138 $EGREP "Found it" >/dev/null 2>&1; then :
19143 if test -z "$result"; then
19144 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
19151 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
19158 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
19165 if test "$fits_in_uint" = 1; then
19166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19167 /* end confdefs.h. */
19168 #include <stddef.h>
19170 extern unsigned long foo;
19180 if ac_fn_c_try_compile "$LINENO"; then :
19183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19185 if test -z "$result"; then
19186 if test "$fits_in_uint" = 1; then
19187 result="$res_hi$res_lo"U
19189 result="$res_hi$res_lo"UL
19192 result='~(size_t)0'
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19196 $as_echo "$result" >&6; }
19197 if test "$result" != yes; then
19199 cat >>confdefs.h <<_ACEOF
19200 #define SIZE_MAX $result
19208 for ac_header in stdint.h
19210 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19211 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19212 cat >>confdefs.h <<_ACEOF
19213 #define HAVE_STDINT_H 1
19227 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19228 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
19232 $as_echo "#define ptrdiff_t long" >>confdefs.h
19237 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19238 stdlib.h string.h unistd.h sys/param.h
19240 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19241 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19242 eval as_val=\$$as_ac_Header
19243 if test "x$as_val" = x""yes; then :
19244 cat >>confdefs.h <<_ACEOF
19245 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19252 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19253 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19254 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19257 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19258 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19259 eval as_val=\$$as_ac_var
19260 if test "x$as_val" = x""yes; then :
19261 cat >>confdefs.h <<_ACEOF
19262 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19271 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19272 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
19273 $as_echo_n "(cached) " >&6
19275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19276 /* end confdefs.h. */
19283 char *p = (char *) _snprintf;
19290 if ac_fn_c_try_compile "$LINENO"; then :
19291 ac_cv_have_decl__snprintf=yes
19293 ac_cv_have_decl__snprintf=no
19295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19298 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19299 if test $ac_cv_have_decl__snprintf = yes; then
19305 cat >>confdefs.h <<_ACEOF
19306 #define HAVE_DECL__SNPRINTF $gt_value
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19312 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19313 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
19314 $as_echo_n "(cached) " >&6
19316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19317 /* end confdefs.h. */
19324 char *p = (char *) _snwprintf;
19331 if ac_fn_c_try_compile "$LINENO"; then :
19332 ac_cv_have_decl__snwprintf=yes
19334 ac_cv_have_decl__snwprintf=no
19336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19339 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19340 if test $ac_cv_have_decl__snwprintf = yes; then
19346 cat >>confdefs.h <<_ACEOF
19347 #define HAVE_DECL__SNWPRINTF $gt_value
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19354 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19355 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
19356 $as_echo_n "(cached) " >&6
19358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19359 /* end confdefs.h. */
19365 #ifndef feof_unlocked
19366 char *p = (char *) feof_unlocked;
19373 if ac_fn_c_try_compile "$LINENO"; then :
19374 ac_cv_have_decl_feof_unlocked=yes
19376 ac_cv_have_decl_feof_unlocked=no
19378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19381 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19382 if test $ac_cv_have_decl_feof_unlocked = yes; then
19388 cat >>confdefs.h <<_ACEOF
19389 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19395 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19396 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
19397 $as_echo_n "(cached) " >&6
19399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19400 /* end confdefs.h. */
19406 #ifndef fgets_unlocked
19407 char *p = (char *) fgets_unlocked;
19414 if ac_fn_c_try_compile "$LINENO"; then :
19415 ac_cv_have_decl_fgets_unlocked=yes
19417 ac_cv_have_decl_fgets_unlocked=no
19419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19422 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19423 if test $ac_cv_have_decl_fgets_unlocked = yes; then
19429 cat >>confdefs.h <<_ACEOF
19430 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19436 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19437 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
19438 $as_echo_n "(cached) " >&6
19440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19441 /* end confdefs.h. */
19447 #ifndef getc_unlocked
19448 char *p = (char *) getc_unlocked;
19455 if ac_fn_c_try_compile "$LINENO"; then :
19456 ac_cv_have_decl_getc_unlocked=yes
19458 ac_cv_have_decl_getc_unlocked=no
19460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19463 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19464 if test $ac_cv_have_decl_getc_unlocked = yes; then
19470 cat >>confdefs.h <<_ACEOF
19471 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19476 case $gt_cv_func_printf_posix in
19477 *yes) HAVE_POSIX_PRINTF=1 ;;
19478 *) HAVE_POSIX_PRINTF=0 ;;
19481 if test "$ac_cv_func_asprintf" = yes; then
19487 if test "$ac_cv_func_snprintf" = yes; then
19493 if test "$ac_cv_func_wprintf" = yes; then
19505 am_save_CPPFLAGS="$CPPFLAGS"
19507 for element in $INCICONV; do
19509 for x in $CPPFLAGS; do
19511 acl_save_prefix="$prefix"
19512 prefix="$acl_final_prefix"
19513 acl_save_exec_prefix="$exec_prefix"
19514 exec_prefix="$acl_final_exec_prefix"
19516 exec_prefix="$acl_save_exec_prefix"
19517 prefix="$acl_save_prefix"
19519 if test "X$x" = "X$element"; then
19524 if test -z "$haveit"; then
19525 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19531 $as_echo_n "checking for iconv... " >&6; }
19532 if test "${am_cv_func_iconv+set}" = set; then :
19533 $as_echo_n "(cached) " >&6
19536 am_cv_func_iconv="no, consider installing GNU libiconv"
19538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19539 /* end confdefs.h. */
19540 #include <stdlib.h>
19545 iconv_t cd = iconv_open("","");
19546 iconv(cd,NULL,NULL,NULL,NULL);
19552 if ac_fn_c_try_link "$LINENO"; then :
19553 am_cv_func_iconv=yes
19555 rm -f core conftest.err conftest.$ac_objext \
19556 conftest$ac_exeext conftest.$ac_ext
19557 if test "$am_cv_func_iconv" != yes; then
19558 am_save_LIBS="$LIBS"
19559 LIBS="$LIBS $LIBICONV"
19560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19561 /* end confdefs.h. */
19562 #include <stdlib.h>
19567 iconv_t cd = iconv_open("","");
19568 iconv(cd,NULL,NULL,NULL,NULL);
19574 if ac_fn_c_try_link "$LINENO"; then :
19575 am_cv_lib_iconv=yes
19576 am_cv_func_iconv=yes
19578 rm -f core conftest.err conftest.$ac_objext \
19579 conftest$ac_exeext conftest.$ac_ext
19580 LIBS="$am_save_LIBS"
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19585 $as_echo "$am_cv_func_iconv" >&6; }
19586 if test "$am_cv_func_iconv" = yes; then
19588 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19591 if test "$am_cv_lib_iconv" = yes; then
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19593 $as_echo_n "checking how to link with libiconv... " >&6; }
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19595 $as_echo "$LIBICONV" >&6; }
19597 CPPFLAGS="$am_save_CPPFLAGS"
19604 if test "$am_cv_func_iconv" = yes; then
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19606 $as_echo_n "checking for iconv declaration... " >&6; }
19607 if test "${am_cv_proto_iconv+set}" = set; then :
19608 $as_echo_n "(cached) " >&6
19611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19612 /* end confdefs.h. */
19614 #include <stdlib.h>
19620 #if defined(__STDC__) || defined(__cplusplus)
19621 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19634 if ac_fn_c_try_compile "$LINENO"; then :
19635 am_cv_proto_iconv_arg1=""
19637 am_cv_proto_iconv_arg1="const"
19639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19640 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);"
19643 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19645 }$am_cv_proto_iconv" >&5
19647 }$am_cv_proto_iconv" >&6; }
19649 cat >>confdefs.h <<_ACEOF
19650 #define ICONV_CONST $am_cv_proto_iconv_arg1
19656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19657 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19658 if test "${am_cv_langinfo_codeset+set}" = set; then :
19659 $as_echo_n "(cached) " >&6
19661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19662 /* end confdefs.h. */
19663 #include <langinfo.h>
19667 char* cs = nl_langinfo(CODESET);
19672 if ac_fn_c_try_link "$LINENO"; then :
19673 am_cv_langinfo_codeset=yes
19675 am_cv_langinfo_codeset=no
19677 rm -f core conftest.err conftest.$ac_objext \
19678 conftest$ac_exeext conftest.$ac_ext
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19682 $as_echo "$am_cv_langinfo_codeset" >&6; }
19683 if test $am_cv_langinfo_codeset = yes; then
19685 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19689 if test $ac_cv_header_locale_h = yes; then
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19692 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19693 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
19694 $as_echo_n "(cached) " >&6
19696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19697 /* end confdefs.h. */
19698 #include <locale.h>
19707 if ac_fn_c_try_link "$LINENO"; then :
19708 gt_cv_val_LC_MESSAGES=yes
19710 gt_cv_val_LC_MESSAGES=no
19712 rm -f core conftest.err conftest.$ac_objext \
19713 conftest$ac_exeext conftest.$ac_ext
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19716 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19717 if test $gt_cv_val_LC_MESSAGES = yes; then
19719 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19725 if test -n "$INTL_MACOSX_LIBS"; then
19726 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19729 for ac_prog in bison
19731 # Extract the first word of "$ac_prog", so it can be a program name with args.
19732 set dummy $ac_prog; ac_word=$2
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19734 $as_echo_n "checking for $ac_word... " >&6; }
19735 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
19736 $as_echo_n "(cached) " >&6
19738 if test -n "$INTLBISON"; then
19739 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19742 for as_dir in $PATH
19745 test -z "$as_dir" && as_dir=.
19746 for ac_exec_ext in '' $ac_executable_extensions; do
19747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19748 ac_cv_prog_INTLBISON="$ac_prog"
19749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19758 INTLBISON=$ac_cv_prog_INTLBISON
19759 if test -n "$INTLBISON"; then
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19761 $as_echo "$INTLBISON" >&6; }
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19764 $as_echo "no" >&6; }
19768 test -n "$INTLBISON" && break
19771 if test -z "$INTLBISON"; then
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19775 $as_echo_n "checking version of bison... " >&6; }
19776 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19777 case $ac_prog_version in
19778 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19779 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19780 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19781 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19784 $as_echo "$ac_prog_version" >&6; }
19786 if test $ac_verc_fail = yes; then
19805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19806 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19807 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
19808 $as_echo_n "(cached) " >&6
19810 gt_save_CPPFLAGS="$CPPFLAGS"
19811 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19812 gt_save_LIBS="$LIBS"
19813 LIBS="$LIBS -framework CoreFoundation"
19814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19815 /* end confdefs.h. */
19816 #include <CFPreferences.h>
19820 CFPreferencesCopyAppValue(NULL, NULL)
19825 if ac_fn_c_try_link "$LINENO"; then :
19826 gt_cv_func_CFPreferencesCopyAppValue=yes
19828 gt_cv_func_CFPreferencesCopyAppValue=no
19830 rm -f core conftest.err conftest.$ac_objext \
19831 conftest$ac_exeext conftest.$ac_ext
19832 CPPFLAGS="$gt_save_CPPFLAGS"
19833 LIBS="$gt_save_LIBS"
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19836 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19837 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19839 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19843 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19844 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
19845 $as_echo_n "(cached) " >&6
19847 gt_save_CPPFLAGS="$CPPFLAGS"
19848 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19849 gt_save_LIBS="$LIBS"
19850 LIBS="$LIBS -framework CoreFoundation"
19851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19852 /* end confdefs.h. */
19853 #include <CFLocale.h>
19857 CFLocaleCopyCurrent();
19862 if ac_fn_c_try_link "$LINENO"; then :
19863 gt_cv_func_CFLocaleCopyCurrent=yes
19865 gt_cv_func_CFLocaleCopyCurrent=no
19867 rm -f core conftest.err conftest.$ac_objext \
19868 conftest$ac_exeext conftest.$ac_ext
19869 CPPFLAGS="$gt_save_CPPFLAGS"
19870 LIBS="$gt_save_LIBS"
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19873 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19874 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19876 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19880 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19881 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19888 $as_echo_n "checking whether NLS is requested... " >&6; }
19889 # Check whether --enable-nls was given.
19890 if test "${enable_nls+set}" = set; then :
19891 enableval=$enable_nls; USE_NLS=$enableval
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19897 $as_echo "$USE_NLS" >&6; }
19902 BUILD_INCLUDED_LIBINTL=no
19903 USE_INCLUDED_LIBINTL=no
19909 if test "$USE_NLS" = "yes"; then
19910 gt_use_preinstalled_gnugettext=no
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19913 $as_echo_n "checking whether included gettext is requested... " >&6; }
19915 # Check whether --with-included-gettext was given.
19916 if test "${with_included_gettext+set}" = set; then :
19917 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19919 nls_cv_force_use_gnu_gettext=no
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19923 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19925 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19926 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19934 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19935 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
19936 $as_echo_n "(cached) " >&6
19938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19939 /* end confdefs.h. */
19940 #include <libintl.h>
19941 extern int _nl_msg_cat_cntr;
19942 extern int *_nl_domain_bindings;
19946 bindtextdomain ("", "");
19947 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
19952 if ac_fn_c_try_link "$LINENO"; then :
19953 gt_cv_func_gnugettext1_libc=yes
19955 gt_cv_func_gnugettext1_libc=no
19957 rm -f core conftest.err conftest.$ac_objext \
19958 conftest$ac_exeext conftest.$ac_ext
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
19961 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
19963 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
19969 acl_save_prefix="$prefix"
19970 prefix="$acl_final_prefix"
19971 acl_save_exec_prefix="$exec_prefix"
19972 exec_prefix="$acl_final_exec_prefix"
19974 eval additional_includedir=\"$includedir\"
19975 eval additional_libdir=\"$libdir\"
19977 exec_prefix="$acl_save_exec_prefix"
19978 prefix="$acl_save_prefix"
19981 # Check whether --with-libintl-prefix was given.
19982 if test "${with_libintl_prefix+set}" = set; then :
19983 withval=$with_libintl_prefix;
19984 if test "X$withval" = "Xno"; then
19987 if test "X$withval" = "X"; then
19989 acl_save_prefix="$prefix"
19990 prefix="$acl_final_prefix"
19991 acl_save_exec_prefix="$exec_prefix"
19992 exec_prefix="$acl_final_exec_prefix"
19994 eval additional_includedir=\"$includedir\"
19995 eval additional_libdir=\"$libdir\"
19997 exec_prefix="$acl_save_exec_prefix"
19998 prefix="$acl_save_prefix"
20001 additional_includedir="$withval/include"
20002 additional_libdir="$withval/lib"
20013 names_already_handled=
20014 names_next_round='intl '
20015 while test -n "$names_next_round"; do
20016 names_this_round="$names_next_round"
20018 for name in $names_this_round; do
20020 for n in $names_already_handled; do
20021 if test "$n" = "$name"; then
20022 already_handled=yes
20026 if test -z "$already_handled"; then
20027 names_already_handled="$names_already_handled $name"
20028 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20029 eval value=\"\$HAVE_LIB$uppername\"
20030 if test -n "$value"; then
20031 if test "$value" = yes; then
20032 eval value=\"\$LIB$uppername\"
20033 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20034 eval value=\"\$LTLIB$uppername\"
20035 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20044 if test $use_additional = yes; then
20045 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20046 found_dir="$additional_libdir"
20047 found_so="$additional_libdir/lib$name.$shlibext"
20048 if test -f "$additional_libdir/lib$name.la"; then
20049 found_la="$additional_libdir/lib$name.la"
20052 if test -f "$additional_libdir/lib$name.$libext"; then
20053 found_dir="$additional_libdir"
20054 found_a="$additional_libdir/lib$name.$libext"
20055 if test -f "$additional_libdir/lib$name.la"; then
20056 found_la="$additional_libdir/lib$name.la"
20061 if test "X$found_dir" = "X"; then
20062 for x in $LDFLAGS $LTLIBINTL; do
20064 acl_save_prefix="$prefix"
20065 prefix="$acl_final_prefix"
20066 acl_save_exec_prefix="$exec_prefix"
20067 exec_prefix="$acl_final_exec_prefix"
20069 exec_prefix="$acl_save_exec_prefix"
20070 prefix="$acl_save_prefix"
20074 dir=`echo "X$x" | sed -e 's/^X-L//'`
20075 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20077 found_so="$dir/lib$name.$shlibext"
20078 if test -f "$dir/lib$name.la"; then
20079 found_la="$dir/lib$name.la"
20082 if test -f "$dir/lib$name.$libext"; then
20084 found_a="$dir/lib$name.$libext"
20085 if test -f "$dir/lib$name.la"; then
20086 found_la="$dir/lib$name.la"
20092 if test "X$found_dir" != "X"; then
20097 if test "X$found_dir" != "X"; then
20098 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20099 if test "X$found_so" != "X"; then
20100 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20101 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20104 for x in $ltrpathdirs; do
20105 if test "X$x" = "X$found_dir"; then
20110 if test -z "$haveit"; then
20111 ltrpathdirs="$ltrpathdirs $found_dir"
20113 if test "$hardcode_direct" = yes; then
20114 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20116 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20117 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20119 for x in $rpathdirs; do
20120 if test "X$x" = "X$found_dir"; then
20125 if test -z "$haveit"; then
20126 rpathdirs="$rpathdirs $found_dir"
20130 for x in $LDFLAGS $LIBINTL; do
20132 acl_save_prefix="$prefix"
20133 prefix="$acl_final_prefix"
20134 acl_save_exec_prefix="$exec_prefix"
20135 exec_prefix="$acl_final_exec_prefix"
20137 exec_prefix="$acl_save_exec_prefix"
20138 prefix="$acl_save_prefix"
20140 if test "X$x" = "X-L$found_dir"; then
20145 if test -z "$haveit"; then
20146 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20148 if test "$hardcode_minus_L" != no; then
20149 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20151 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20157 if test "X$found_a" != "X"; then
20158 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20160 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20163 additional_includedir=
20164 case "$found_dir" in
20166 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20167 additional_includedir="$basedir/include"
20170 if test "X$additional_includedir" != "X"; then
20171 if test "X$additional_includedir" != "X/usr/include"; then
20173 if test "X$additional_includedir" = "X/usr/local/include"; then
20174 if test -n "$GCC"; then
20176 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20180 if test -z "$haveit"; then
20181 for x in $CPPFLAGS $INCINTL; do
20183 acl_save_prefix="$prefix"
20184 prefix="$acl_final_prefix"
20185 acl_save_exec_prefix="$exec_prefix"
20186 exec_prefix="$acl_final_exec_prefix"
20188 exec_prefix="$acl_save_exec_prefix"
20189 prefix="$acl_save_prefix"
20191 if test "X$x" = "X-I$additional_includedir"; then
20196 if test -z "$haveit"; then
20197 if test -d "$additional_includedir"; then
20198 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20204 if test -n "$found_la"; then
20205 save_libdir="$libdir"
20206 case "$found_la" in
20207 */* | *\\*) . "$found_la" ;;
20208 *) . "./$found_la" ;;
20210 libdir="$save_libdir"
20211 for dep in $dependency_libs; do
20214 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20215 if test "X$additional_libdir" != "X/usr/lib"; then
20217 if test "X$additional_libdir" = "X/usr/local/lib"; then
20218 if test -n "$GCC"; then
20220 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20224 if test -z "$haveit"; then
20226 for x in $LDFLAGS $LIBINTL; do
20228 acl_save_prefix="$prefix"
20229 prefix="$acl_final_prefix"
20230 acl_save_exec_prefix="$exec_prefix"
20231 exec_prefix="$acl_final_exec_prefix"
20233 exec_prefix="$acl_save_exec_prefix"
20234 prefix="$acl_save_prefix"
20236 if test "X$x" = "X-L$additional_libdir"; then
20241 if test -z "$haveit"; then
20242 if test -d "$additional_libdir"; then
20243 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20247 for x in $LDFLAGS $LTLIBINTL; do
20249 acl_save_prefix="$prefix"
20250 prefix="$acl_final_prefix"
20251 acl_save_exec_prefix="$exec_prefix"
20252 exec_prefix="$acl_final_exec_prefix"
20254 exec_prefix="$acl_save_exec_prefix"
20255 prefix="$acl_save_prefix"
20257 if test "X$x" = "X-L$additional_libdir"; then
20262 if test -z "$haveit"; then
20263 if test -d "$additional_libdir"; then
20264 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20271 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20272 if test "$enable_rpath" != no; then
20274 for x in $rpathdirs; do
20275 if test "X$x" = "X$dir"; then
20280 if test -z "$haveit"; then
20281 rpathdirs="$rpathdirs $dir"
20284 for x in $ltrpathdirs; do
20285 if test "X$x" = "X$dir"; then
20290 if test -z "$haveit"; then
20291 ltrpathdirs="$ltrpathdirs $dir"
20296 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20299 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20302 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20303 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20309 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20310 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20316 if test "X$rpathdirs" != "X"; then
20317 if test -n "$hardcode_libdir_separator"; then
20319 for found_dir in $rpathdirs; do
20320 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20322 acl_save_libdir="$libdir"
20324 eval flag=\"$hardcode_libdir_flag_spec\"
20325 libdir="$acl_save_libdir"
20326 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20328 for found_dir in $rpathdirs; do
20329 acl_save_libdir="$libdir"
20330 libdir="$found_dir"
20331 eval flag=\"$hardcode_libdir_flag_spec\"
20332 libdir="$acl_save_libdir"
20333 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20337 if test "X$ltrpathdirs" != "X"; then
20338 for found_dir in $ltrpathdirs; do
20339 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20344 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20345 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
20346 $as_echo_n "(cached) " >&6
20348 gt_save_CPPFLAGS="$CPPFLAGS"
20349 CPPFLAGS="$CPPFLAGS $INCINTL"
20350 gt_save_LIBS="$LIBS"
20351 LIBS="$LIBS $LIBINTL"
20352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20353 /* end confdefs.h. */
20354 #include <libintl.h>
20355 extern int _nl_msg_cat_cntr;
20360 const char *_nl_expand_alias (const char *);
20364 bindtextdomain ("", "");
20365 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20370 if ac_fn_c_try_link "$LINENO"; then :
20371 gt_cv_func_gnugettext1_libintl=yes
20373 gt_cv_func_gnugettext1_libintl=no
20375 rm -f core conftest.err conftest.$ac_objext \
20376 conftest$ac_exeext conftest.$ac_ext
20377 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20378 LIBS="$LIBS $LIBICONV"
20379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20380 /* end confdefs.h. */
20381 #include <libintl.h>
20382 extern int _nl_msg_cat_cntr;
20387 const char *_nl_expand_alias (const char *);
20391 bindtextdomain ("", "");
20392 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20397 if ac_fn_c_try_link "$LINENO"; then :
20398 LIBINTL="$LIBINTL $LIBICONV"
20399 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20400 gt_cv_func_gnugettext1_libintl=yes
20403 rm -f core conftest.err conftest.$ac_objext \
20404 conftest$ac_exeext conftest.$ac_ext
20406 CPPFLAGS="$gt_save_CPPFLAGS"
20407 LIBS="$gt_save_LIBS"
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20410 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20413 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20414 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20415 && test "$PACKAGE" != gettext-runtime \
20416 && test "$PACKAGE" != gettext-tools; }; then
20417 gt_use_preinstalled_gnugettext=yes
20425 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20426 nls_cv_use_gnu_gettext=yes
20430 if test "$nls_cv_use_gnu_gettext" = "yes"; then
20431 BUILD_INCLUDED_LIBINTL=yes
20432 USE_INCLUDED_LIBINTL=yes
20433 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20434 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20435 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20439 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20440 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20445 if test -n "$INTL_MACOSX_LIBS"; then
20446 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20447 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20448 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20449 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20453 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20454 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20456 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20464 $as_echo_n "checking whether to use NLS... " >&6; }
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20466 $as_echo "$USE_NLS" >&6; }
20467 if test "$USE_NLS" = "yes"; then
20468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20469 $as_echo_n "checking where the gettext function comes from... " >&6; }
20470 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20471 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20472 gt_source="external libintl"
20477 gt_source="included intl directory"
20479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20480 $as_echo "$gt_source" >&6; }
20483 if test "$USE_NLS" = "yes"; then
20485 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20486 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20488 $as_echo_n "checking how to link with libintl... " >&6; }
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20490 $as_echo "$LIBINTL" >&6; }
20492 for element in $INCINTL; do
20494 for x in $CPPFLAGS; do
20496 acl_save_prefix="$prefix"
20497 prefix="$acl_final_prefix"
20498 acl_save_exec_prefix="$exec_prefix"
20499 exec_prefix="$acl_final_exec_prefix"
20501 exec_prefix="$acl_save_exec_prefix"
20502 prefix="$acl_save_prefix"
20504 if test "X$x" = "X$element"; then
20509 if test -z "$haveit"; then
20510 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20517 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20520 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20528 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20529 BUILD_INCLUDED_LIBINTL=yes
20536 nls_cv_header_intl=
20537 nls_cv_header_libgt=
20549 if test "$USE_INCLUDED_LIBINTL" = yes; then
20550 INTLOBJS="\$(GETTOBJS)"
20554 INTL_LIBTOOL_SUFFIX_PREFIX=
20558 INTLLIBS="$LIBINTL"
20570 support_postgresql=no
20572 support_smartalloc=yes
20573 support_readline=yes
20577 support_wx_console=no
20578 support_tray_monitor=no
20583 support_static_tools=no
20584 support_static_fd=no
20585 support_static_sd=no
20586 support_static_dir=no
20587 support_static_cons=no
20589 build_client_only=no
20598 # Check whether --enable-gnome was given.
20599 if test "${enable_gnome+set}" = set; then :
20600 enableval=$enable_gnome;
20601 if test x$enableval = xyes; then
20610 if test x$support_gnome = xyes; then
20611 as_fn_error "bgnome-console no longer supported" "$LINENO" 5
20612 as_fn_error "--enable-gnome option no longer supported" "$LINENO" 5
20614 # AC_SUBST(GNOME_DIR)
20616 # Check whether --enable-bat was given.
20617 if test "${enable_bat+set}" = set; then :
20618 enableval=$enable_bat;
20619 if test x$enableval = xyes; then
20621 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20631 if test x$support_bat = xyes; then
20632 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20634 if test $pkg = 0; then
20635 BAT_DIR=src/qt-console
20637 as_fn_error "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20647 if test x$support_bat = xyes; then
20648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qwt support" >&5
20649 $as_echo_n "checking for qwt support... " >&6; }
20651 # Check whether --with-qwt was given.
20652 if test "${with_qwt+set}" = set; then :
20654 case "$with_qwt" in
20659 if test -f ${with_qwt}/include/qwt.h; then
20660 QWT_INC="${with_qwt}/include"
20661 QWT_LDFLAGS="-L${with_qwt}/lib"
20672 if test $no_qwt = no; then
20673 if test x$QWT_INC = x; then
20674 for root in /usr /usr/local; do
20675 for ver in qwt qwt5 qwt-qt4; do
20676 if test -f ${root}/include/${ver}/qwt.h; then
20677 QWT_INC="${root}/include/${ver}"
20678 if test -d ${root}/lib64/; then
20679 QWT_LDFLAGS="-L${root}/lib64"
20680 elif test -d ${root}/lib/64/; then
20681 QWT_LDFLAGS="-L${root}/64"
20683 QWT_LDFLAGS="-L${root}/lib"
20694 if test x$QWT_INC = x; then
20695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20696 $as_echo "no" >&6; }
20699 $as_echo "#define HAVE_QWT 1" >>confdefs.h
20701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20702 $as_echo "yes" >&6; }
20712 # Check whether --enable-bwx-console was given.
20713 if test "${enable_bwx_console+set}" = set; then :
20714 enableval=$enable_bwx_console;
20715 if test x$enableval = xyes; then
20716 support_wx_console=yes
20724 if test x$support_wx_console = xyes; then
20725 abc=`$WXCONFIG $WXFLAGS --cppflags`
20727 if test $pkg = 0; then
20728 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20729 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20730 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20734 WX_DIR="src/wx-console"
20737 echo "wx-config program not found. bwx-console disabled."
20739 support_wx_console=no
20744 # Check whether --enable-tray-monitor was given.
20745 if test "${enable_tray_monitor+set}" = set; then :
20746 enableval=$enable_tray_monitor;
20747 if test x$enableval = xyes; then
20748 support_tray_monitor=yes
20756 if test x$support_tray_monitor = xyes; then
20757 abc=`$PKGCONFIG --exists gtk+-2.0`
20759 if test $pkg = 0; then
20760 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20761 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20764 TRAY_MONITOR_DIR=src/tray-monitor
20765 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20767 if test $pkg = 0; then
20769 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20776 # Check whether --enable-smartalloc was given.
20777 if test "${enable_smartalloc+set}" = set; then :
20778 enableval=$enable_smartalloc;
20779 if test x$enableval = xno; then
20780 support_smartalloc=no
20787 if test x$support_smartalloc = xyes; then
20789 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20793 # Check whether --enable-lockmgr was given.
20794 if test "${enable_lockmgr+set}" = set; then :
20795 enableval=$enable_lockmgr;
20796 if test x$enableval = xyes; then
20797 support_lockmgr=yes
20804 if test x$support_lockmgr = xyes; then
20806 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20811 # Check whether --enable-static-tools was given.
20812 if test "${enable_static_tools+set}" = set; then :
20813 enableval=$enable_static_tools;
20814 if test x$enableval = xyes; then
20815 if test x$use_libtool = xyes; then
20816 as_fn_error "Libtool is enabled, not compatible with static tools,
20817 please rerun configure with --disable-libtool" "$LINENO" 5
20819 support_static_tools=yes
20827 if test x$support_static_tools = xyes; then
20828 TTOOL_LDFLAGS="-static"
20832 # Check whether --enable-static-fd was given.
20833 if test "${enable_static_fd+set}" = set; then :
20834 enableval=$enable_static_fd;
20835 if test x$enableval = xyes; then
20836 if test x$use_libtool = xyes; then
20837 as_fn_error "Libtool is enabled, not compatible with static tools,
20838 please rerun configure with --disable-libtool" "$LINENO" 5
20840 support_static_fd=yes
20848 if test x$support_static_fd = xyes; then
20849 STATIC_FD="static-bacula-fd"
20853 # Check whether --enable-static-sd was given.
20854 if test "${enable_static_sd+set}" = set; then :
20855 enableval=$enable_static_sd;
20856 if test x$enableval = xyes; then
20857 if test x$use_libtool = xyes; then
20858 as_fn_error "Libtool is enabled, not compatible with static tools,
20859 please rerun configure with --disable-libtool" "$LINENO" 5
20861 support_static_sd=yes
20869 if test x$support_static_sd = xyes; then
20870 STATIC_SD="static-bacula-sd"
20874 # Check whether --enable-static-dir was given.
20875 if test "${enable_static_dir+set}" = set; then :
20876 enableval=$enable_static_dir;
20877 if test x$enableval = xyes; then
20878 if test x$use_libtool = xyes; then
20879 as_fn_error "Libtool is enabled, not compatible with static tools,
20880 please rerun configure with --disable-libtool" "$LINENO" 5
20882 support_static_dir=yes
20890 if test x$support_static_dir = xyes; then
20891 STATIC_DIR="static-bacula-dir"
20895 # Check whether --enable-static-cons was given.
20896 if test "${enable_static_cons+set}" = set; then :
20897 enableval=$enable_static_cons;
20898 if test x$enableval = xyes; then
20899 if test x$use_libtool = xyes; then
20900 as_fn_error "Libtool is enabled, not compatible with static tools,
20901 please rerun configure with --disable-libtool" "$LINENO" 5
20903 support_static_cons=yes
20913 if test x$support_static_cons = xyes; then
20914 STATIC_CONS="static-bconsole"
20915 STATIC_GNOME_CONS="static-bgnome-console"
20916 STATIC_WX_CONS="static-bwx-console"
20922 # Check whether --enable-client-only was given.
20923 if test "${enable_client_only+set}" = set; then :
20924 enableval=$enable_client_only;
20925 if test x$enableval = xyes; then
20926 build_client_only=yes
20934 if test x$build_client_only = xno; then
20941 # Check whether --enable-build-dird was given.
20942 if test "${enable_build_dird+set}" = set; then :
20943 enableval=$enable_build_dird;
20944 if test x$enableval = xno; then
20951 if test x$build_dird = xyes; then
20952 DIRD_DIR="src/dird"
20953 DIR_TOOLS="DIRTOOLS"
20956 DIR_TOOLS="NODIRTOOLS"
20961 # Check whether --enable-build-stored was given.
20962 if test "${enable_build_stored+set}" = set; then :
20963 enableval=$enable_build_stored;
20964 if test x$enableval = xno; then
20971 if test x$build_stored = xyes; then
20972 STORED_DIR="src/stored"
20978 # Check whether --enable-conio was given.
20979 if test "${enable_conio+set}" = set; then :
20980 enableval=$enable_conio;
20981 if test x$enableval = xno; then
20991 # Check whether --enable-ipv6 was given.
20992 if test "${enable_ipv6+set}" = set; then :
20993 enableval=$enable_ipv6;
20994 if test x$enableval = xno; then
21002 if test x$support_ipv6 = xyes; then
21003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21004 /* end confdefs.h. */
21005 #include <sys/types.h>
21006 #include <sys/socket.h>
21007 #include <netinet/in.h>
21011 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21016 if ac_fn_c_try_link "$LINENO"; then :
21021 rm -f core conftest.err conftest.$ac_objext \
21022 conftest$ac_exeext conftest.$ac_ext
21025 if test x$support_ipv6 = xyes; then
21027 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21032 if test x$support_conio = xyes; then
21033 ac_fn_c_check_header_mongrel "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default"
21034 if test "x$ac_cv_header_termcap_h" = x""yes; then :
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21036 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21037 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
21038 $as_echo_n "(cached) " >&6
21040 ac_check_lib_save_LIBS=$LIBS
21041 LIBS="-ltermcap $LIBS"
21042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21043 /* end confdefs.h. */
21045 /* Override any GCC internal prototype to avoid an error.
21046 Use char because int might match the return type of a GCC
21047 builtin and then its argument prototype would still apply. */
21060 if ac_fn_c_try_link "$LINENO"; then :
21061 ac_cv_lib_termcap_tgetent=yes
21063 ac_cv_lib_termcap_tgetent=no
21065 rm -f core conftest.err conftest.$ac_objext \
21066 conftest$ac_exeext conftest.$ac_ext
21067 LIBS=$ac_check_lib_save_LIBS
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21070 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21071 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21072 CONS_LIBS="-ltermcap"
21076 support_readline=no
21078 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21083 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21084 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
21085 $as_echo_n "(cached) " >&6
21087 ac_check_lib_save_LIBS=$LIBS
21088 LIBS="-lncurses $LIBS"
21089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21090 /* end confdefs.h. */
21092 /* Override any GCC internal prototype to avoid an error.
21093 Use char because int might match the return type of a GCC
21094 builtin and then its argument prototype would still apply. */
21107 if ac_fn_c_try_link "$LINENO"; then :
21108 ac_cv_lib_ncurses_tgetent=yes
21110 ac_cv_lib_ncurses_tgetent=no
21112 rm -f core conftest.err conftest.$ac_objext \
21113 conftest$ac_exeext conftest.$ac_ext
21114 LIBS=$ac_check_lib_save_LIBS
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21117 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21118 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21119 CONS_LIBS="-lncurses"
21123 support_readline=no
21125 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21136 for ac_header in curses.h
21138 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21139 if test "x$ac_cv_header_curses_h" = x""yes; then :
21140 cat >>confdefs.h <<_ACEOF
21141 #define HAVE_CURSES_H 1
21148 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
21149 #include <curses.h>
21153 if test "x$ac_cv_header_term_h" = x""yes; then :
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21155 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21156 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21157 $as_echo_n "(cached) " >&6
21159 ac_check_lib_save_LIBS=$LIBS
21160 LIBS="-lcurses $LIBS"
21161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21162 /* end confdefs.h. */
21164 /* Override any GCC internal prototype to avoid an error.
21165 Use char because int might match the return type of a GCC
21166 builtin and then its argument prototype would still apply. */
21179 if ac_fn_c_try_link "$LINENO"; then :
21180 ac_cv_lib_curses_tgetent=yes
21182 ac_cv_lib_curses_tgetent=no
21184 rm -f core conftest.err conftest.$ac_objext \
21185 conftest$ac_exeext conftest.$ac_ext
21186 LIBS=$ac_check_lib_save_LIBS
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21189 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21190 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21191 CONS_LIBS="-lcurses"
21195 support_readline=no
21197 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21204 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
21215 # Check whether --enable-readline was given.
21216 if test "${enable_readline+set}" = set; then :
21217 enableval=$enable_readline;
21218 if test x$enableval = xno; then
21219 support_readline=no
21228 if test x$support_readline = xyes; then
21230 # Check whether --with-readline was given.
21231 if test "${with_readline+set}" = set; then :
21232 withval=$with_readline;
21233 case "$with_readline" in
21238 if test -f ${with_readline}/readline.h; then
21239 CONS_INC="-I${with_readline}"
21240 CONS_LDFLAGS="-L$with_readline"
21241 elif test -f ${with_readline}/include/readline/readline.h; then
21242 CONS_INC="-I${with_readline}/include/readline"
21243 CONS_LDFLAGS="-L${with_readline}/lib"
21244 with_readline="${with_readline}/include/readline"
21246 with_readline="/usr/include/readline"
21249 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21250 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21251 eval as_val=\$$as_ac_Header
21252 if test "x$as_val" = x""yes; then :
21255 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21257 CONS_LIBS="-lreadline -lhistory -ltermcap"
21263 echo "readline.h not found. readline turned off ..."
21275 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21276 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
21279 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21282 CONS_INC="-I/usr/include/readline"
21283 CONS_LIBS="-lreadline -ltermcap"
21287 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21288 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21289 eval as_val=\$$as_ac_Header
21290 if test "x$as_val" = x""yes; then :
21293 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21296 CONS_INC="-I${TOP_DIR}/depkgs/readline"
21297 CONS_LIBS="-lreadline -lhistory -ltermcap"
21298 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21299 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21304 echo "readline.h not found. readline turned off ..."
21331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21332 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21333 if test "${ac_cv_header_stat_broken+set}" = set; then :
21334 $as_echo_n "(cached) " >&6
21336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21337 /* end confdefs.h. */
21338 #include <sys/types.h>
21339 #include <sys/stat.h>
21341 #if defined S_ISBLK && defined S_IFDIR
21342 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21345 #if defined S_ISBLK && defined S_IFCHR
21346 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21349 #if defined S_ISLNK && defined S_IFREG
21350 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21353 #if defined S_ISSOCK && defined S_IFREG
21354 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21358 if ac_fn_c_try_compile "$LINENO"; then :
21359 ac_cv_header_stat_broken=no
21361 ac_cv_header_stat_broken=yes
21363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21366 $as_echo "$ac_cv_header_stat_broken" >&6; }
21367 if test $ac_cv_header_stat_broken = yes; then
21369 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21373 ac_header_dirent=no
21374 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21375 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21377 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
21379 $as_echo_n "(cached) " >&6
21381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21382 /* end confdefs.h. */
21383 #include <sys/types.h>
21395 if ac_fn_c_try_compile "$LINENO"; then :
21396 eval "$as_ac_Header=yes"
21398 eval "$as_ac_Header=no"
21400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21402 eval ac_res=\$$as_ac_Header
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21404 $as_echo "$ac_res" >&6; }
21405 eval as_val=\$$as_ac_Header
21406 if test "x$as_val" = x""yes; then :
21407 cat >>confdefs.h <<_ACEOF
21408 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21411 ac_header_dirent=$ac_hdr; break
21415 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21416 if test $ac_header_dirent = dirent.h; then
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21418 $as_echo_n "checking for library containing opendir... " >&6; }
21419 if test "${ac_cv_search_opendir+set}" = set; then :
21420 $as_echo_n "(cached) " >&6
21422 ac_func_search_save_LIBS=$LIBS
21423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21424 /* end confdefs.h. */
21426 /* Override any GCC internal prototype to avoid an error.
21427 Use char because int might match the return type of a GCC
21428 builtin and then its argument prototype would still apply. */
21441 for ac_lib in '' dir; do
21442 if test -z "$ac_lib"; then
21443 ac_res="none required"
21446 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21448 if ac_fn_c_try_link "$LINENO"; then :
21449 ac_cv_search_opendir=$ac_res
21451 rm -f core conftest.err conftest.$ac_objext \
21453 if test "${ac_cv_search_opendir+set}" = set; then :
21457 if test "${ac_cv_search_opendir+set}" = set; then :
21460 ac_cv_search_opendir=no
21462 rm conftest.$ac_ext
21463 LIBS=$ac_func_search_save_LIBS
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21466 $as_echo "$ac_cv_search_opendir" >&6; }
21467 ac_res=$ac_cv_search_opendir
21468 if test "$ac_res" != no; then :
21469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21475 $as_echo_n "checking for library containing opendir... " >&6; }
21476 if test "${ac_cv_search_opendir+set}" = set; then :
21477 $as_echo_n "(cached) " >&6
21479 ac_func_search_save_LIBS=$LIBS
21480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21481 /* end confdefs.h. */
21483 /* Override any GCC internal prototype to avoid an error.
21484 Use char because int might match the return type of a GCC
21485 builtin and then its argument prototype would still apply. */
21498 for ac_lib in '' x; do
21499 if test -z "$ac_lib"; then
21500 ac_res="none required"
21503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21505 if ac_fn_c_try_link "$LINENO"; then :
21506 ac_cv_search_opendir=$ac_res
21508 rm -f core conftest.err conftest.$ac_objext \
21510 if test "${ac_cv_search_opendir+set}" = set; then :
21514 if test "${ac_cv_search_opendir+set}" = set; then :
21517 ac_cv_search_opendir=no
21519 rm conftest.$ac_ext
21520 LIBS=$ac_func_search_save_LIBS
21522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21523 $as_echo "$ac_cv_search_opendir" >&6; }
21524 ac_res=$ac_cv_search_opendir
21525 if test "$ac_res" != no; then :
21526 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21532 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21534 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21535 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21536 eval as_val=\$$as_ac_var
21537 if test "x$as_val" = x""yes; then :
21538 cat >>confdefs.h <<_ACEOF
21539 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21545 for ac_func in nanosleep nl_langinfo
21547 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21548 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21549 eval as_val=\$$as_ac_var
21550 if test "x$as_val" = x""yes; then :
21551 cat >>confdefs.h <<_ACEOF
21552 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21558 for ac_header in varargs.h
21560 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21561 if test "x$ac_cv_header_varargs_h" = x""yes; then :
21562 cat >>confdefs.h <<_ACEOF
21563 #define HAVE_VARARGS_H 1
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21573 $as_echo_n "checking for Python support... " >&6; }
21575 # Check whether --with-python was given.
21576 if test "${with_python+set}" = set; then :
21577 withval=$with_python;
21580 if test "$withval" != "no"; then
21581 if test "$withval" = "yes"; then
21582 if test -e /usr/bin/python-config ; then
21583 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21584 PYTHON_LIBS=`/usr/bin/python-config --libs`
21586 for python_root in /usr /usr/local /usr/sfw; do
21587 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21588 if test -f $python_root/include/${ver}/Python.h; then
21589 PYTHON_INCDIR=-I$python_root/include/${ver}
21590 if test -d $python_root/lib64/${ver}/config; then
21591 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21593 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21600 if test x$PYTHON_INCDIR = x; then
21601 if test -f $prefix/include/Python.h; then
21602 PYTHON_INCDIR=-I$prefix/include
21603 if test -d $prefix/lib64/config; then
21604 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21606 PYTHON_LIBS="-L$prefix/lib/config -lpython"
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21610 $as_echo "no" >&6; }
21611 as_fn_error "Unable to find Python.h in standard locations" "$LINENO" 5
21616 if test -e $withval/bin/python-config ; then
21617 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21618 PYTHON_LIBS=`$withval/bin/python-config --libs`
21619 elif test -f $withval/Python.h; then
21620 PYTHON_INCDIR=-I$withval
21621 PYTHON_LIBS="-L$withval/config -lpython"
21622 elif test -f $withval/include/Python.h; then
21623 PYTHON_INCDIR=-I$withval/include
21624 if test -d $withval/lib64/config; then
21625 PYTHON_LIBS="-L$withval/lib64/config -lpython"
21627 PYTHON_LIBS="-L$withval/lib/config -lpython"
21629 elif test -f $withval/include/python/Python.h; then
21630 PYTHON_INCDIR=-I$withval/include/python
21631 if test -d $withval/lib64/python/config; then
21632 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21634 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21638 $as_echo "no" >&6; }
21639 as_fn_error "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21643 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21646 $as_echo "yes" >&6; }
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21649 $as_echo "$as_me: checking for more Python libs" >&6;}
21650 saved_LIBS="$LIBS"; LIBS=
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21652 $as_echo_n "checking for library containing shm_open... " >&6; }
21653 if test "${ac_cv_search_shm_open+set}" = set; then :
21654 $as_echo_n "(cached) " >&6
21656 ac_func_search_save_LIBS=$LIBS
21657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21658 /* end confdefs.h. */
21660 /* Override any GCC internal prototype to avoid an error.
21661 Use char because int might match the return type of a GCC
21662 builtin and then its argument prototype would still apply. */
21670 return shm_open ();
21675 for ac_lib in '' rt; do
21676 if test -z "$ac_lib"; then
21677 ac_res="none required"
21680 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21682 if ac_fn_c_try_link "$LINENO"; then :
21683 ac_cv_search_shm_open=$ac_res
21685 rm -f core conftest.err conftest.$ac_objext \
21687 if test "${ac_cv_search_shm_open+set}" = set; then :
21691 if test "${ac_cv_search_shm_open+set}" = set; then :
21694 ac_cv_search_shm_open=no
21696 rm conftest.$ac_ext
21697 LIBS=$ac_func_search_save_LIBS
21699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21700 $as_echo "$ac_cv_search_shm_open" >&6; }
21701 ac_res=$ac_cv_search_shm_open
21702 if test "$ac_res" != no; then :
21703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21708 $as_echo_n "checking for openpty in -lutil... " >&6; }
21709 if test "${ac_cv_lib_util_openpty+set}" = set; then :
21710 $as_echo_n "(cached) " >&6
21712 ac_check_lib_save_LIBS=$LIBS
21713 LIBS="-lutil $LIBS"
21714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21715 /* end confdefs.h. */
21717 /* Override any GCC internal prototype to avoid an error.
21718 Use char because int might match the return type of a GCC
21719 builtin and then its argument prototype would still apply. */
21732 if ac_fn_c_try_link "$LINENO"; then :
21733 ac_cv_lib_util_openpty=yes
21735 ac_cv_lib_util_openpty=no
21737 rm -f core conftest.err conftest.$ac_objext \
21738 conftest$ac_exeext conftest.$ac_ext
21739 LIBS=$ac_check_lib_save_LIBS
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21742 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21743 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
21744 cat >>confdefs.h <<_ACEOF
21745 #define HAVE_LIBUTIL 1
21748 LIBS="-lutil $LIBS"
21752 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21756 $as_echo "no" >&6; }
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21762 $as_echo "no" >&6; }
21770 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21771 if test "x$ac_cv_func_socket" = x""yes; then :
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21773 $as_echo "using libc's socket" >&6; }
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21776 $as_echo_n "checking for socket in -lxnet... " >&6; }
21777 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
21778 $as_echo_n "(cached) " >&6
21780 ac_check_lib_save_LIBS=$LIBS
21781 LIBS="-lxnet $LIBS"
21782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21783 /* end confdefs.h. */
21785 /* Override any GCC internal prototype to avoid an error.
21786 Use char because int might match the return type of a GCC
21787 builtin and then its argument prototype would still apply. */
21800 if ac_fn_c_try_link "$LINENO"; then :
21801 ac_cv_lib_xnet_socket=yes
21803 ac_cv_lib_xnet_socket=no
21805 rm -f core conftest.err conftest.$ac_objext \
21806 conftest$ac_exeext conftest.$ac_ext
21807 LIBS=$ac_check_lib_save_LIBS
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21810 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21811 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
21812 cat >>confdefs.h <<_ACEOF
21813 #define HAVE_LIBXNET 1
21816 LIBS="-lxnet $LIBS"
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21821 $as_echo_n "checking for socket in -lsocket... " >&6; }
21822 if test "${ac_cv_lib_socket_socket+set}" = set; then :
21823 $as_echo_n "(cached) " >&6
21825 ac_check_lib_save_LIBS=$LIBS
21826 LIBS="-lsocket $LIBS"
21827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21828 /* end confdefs.h. */
21830 /* Override any GCC internal prototype to avoid an error.
21831 Use char because int might match the return type of a GCC
21832 builtin and then its argument prototype would still apply. */
21845 if ac_fn_c_try_link "$LINENO"; then :
21846 ac_cv_lib_socket_socket=yes
21848 ac_cv_lib_socket_socket=no
21850 rm -f core conftest.err conftest.$ac_objext \
21851 conftest$ac_exeext conftest.$ac_ext
21852 LIBS=$ac_check_lib_save_LIBS
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21855 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21856 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
21857 cat >>confdefs.h <<_ACEOF
21858 #define HAVE_LIBSOCKET 1
21861 LIBS="-lsocket $LIBS"
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21866 $as_echo_n "checking for socket in -linet... " >&6; }
21867 if test "${ac_cv_lib_inet_socket+set}" = set; then :
21868 $as_echo_n "(cached) " >&6
21870 ac_check_lib_save_LIBS=$LIBS
21871 LIBS="-linet $LIBS"
21872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21873 /* end confdefs.h. */
21875 /* Override any GCC internal prototype to avoid an error.
21876 Use char because int might match the return type of a GCC
21877 builtin and then its argument prototype would still apply. */
21890 if ac_fn_c_try_link "$LINENO"; then :
21891 ac_cv_lib_inet_socket=yes
21893 ac_cv_lib_inet_socket=no
21895 rm -f core conftest.err conftest.$ac_objext \
21896 conftest$ac_exeext conftest.$ac_ext
21897 LIBS=$ac_check_lib_save_LIBS
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21900 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21901 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
21902 cat >>confdefs.h <<_ACEOF
21903 #define HAVE_LIBINET 1
21906 LIBS="-linet $LIBS"
21916 # Check whether --with-tcp-wrappers was given.
21917 if test "${with_tcp_wrappers+set}" = set; then :
21918 withval=$with_tcp_wrappers;
21919 if test "x$withval" != "xno" ; then
21921 LIBS="$saved_LIBS -lwrap"
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21923 $as_echo_n "checking for library containing nanosleep... " >&6; }
21924 if test "${ac_cv_search_nanosleep+set}" = set; then :
21925 $as_echo_n "(cached) " >&6
21927 ac_func_search_save_LIBS=$LIBS
21928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21929 /* end confdefs.h. */
21931 /* Override any GCC internal prototype to avoid an error.
21932 Use char because int might match the return type of a GCC
21933 builtin and then its argument prototype would still apply. */
21941 return nanosleep ();
21946 for ac_lib in '' rt; do
21947 if test -z "$ac_lib"; then
21948 ac_res="none required"
21951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21953 if ac_fn_c_try_link "$LINENO"; then :
21954 ac_cv_search_nanosleep=$ac_res
21956 rm -f core conftest.err conftest.$ac_objext \
21958 if test "${ac_cv_search_nanosleep+set}" = set; then :
21962 if test "${ac_cv_search_nanosleep+set}" = set; then :
21965 ac_cv_search_nanosleep=no
21967 rm conftest.$ac_ext
21968 LIBS=$ac_func_search_save_LIBS
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
21971 $as_echo "$ac_cv_search_nanosleep" >&6; }
21972 ac_res=$ac_cv_search_nanosleep
21973 if test "$ac_res" != no; then :
21974 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
21979 $as_echo_n "checking for libwrap... " >&6; }
21980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21981 /* end confdefs.h. */
21983 #include <sys/types.h>
21985 int deny_severity = 0;
21986 int allow_severity = 0;
21987 struct request_info *req;
21999 if ac_fn_c_try_link "$LINENO"; then :
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22002 $as_echo "yes" >&6; }
22004 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22012 LIBS="$saved_LIBS -lwrap -lnsl"
22013 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22015 /* end confdefs.h. */
22017 #include <sys/types.h>
22019 int deny_severity = 0;
22020 int allow_severity = 0;
22021 struct request_info *req;
22033 if ac_fn_c_try_link "$LINENO"; then :
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22036 $as_echo "yes" >&6; }
22038 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22046 as_fn_error "*** libwrap missing" "$LINENO" 5
22050 rm -f core conftest.err conftest.$ac_objext \
22051 conftest$ac_exeext conftest.$ac_ext
22055 rm -f core conftest.err conftest.$ac_objext \
22056 conftest$ac_exeext conftest.$ac_ext
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22064 $as_echo_n "checking for OpenSSL... " >&6; }
22066 # Check whether --with-openssl was given.
22067 if test "${with_openssl+set}" = set; then :
22068 withval=$with_openssl;
22069 with_openssl_directory=${withval}
22075 if test "x$with_openssl_directory" != "xno"; then
22076 OPENSSL_LIBS="-lssl -lcrypto"
22079 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22081 # Make sure the $with_openssl_directory also makes sense
22083 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22084 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22085 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22089 saved_LIBS="${LIBS}"
22090 saved_CFLAGS="${CFLAGS}"
22091 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22092 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22095 /* end confdefs.h. */
22097 #include <openssl/ssl.h>
22103 CRYPTO_set_id_callback(NULL);
22109 if ac_fn_c_try_link "$LINENO"; then :
22112 support_crypto="yes"
22120 rm -f core conftest.err conftest.$ac_objext \
22121 conftest$ac_exeext conftest.$ac_ext
22123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22124 /* end confdefs.h. */
22126 #include <openssl/evp.h>
22138 if ac_fn_c_try_link "$LINENO"; then :
22140 ac_cv_openssl_sha2="yes"
22144 ac_cv_openssl_sha2="no"
22148 rm -f core conftest.err conftest.$ac_objext \
22149 conftest$ac_exeext conftest.$ac_ext
22151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22152 /* end confdefs.h. */
22154 #include <openssl/evp.h>
22166 if ac_fn_c_try_link "$LINENO"; then :
22168 ac_cv_openssl_export="no"
22172 ac_cv_openssl_export="yes"
22176 rm -f core conftest.err conftest.$ac_objext \
22177 conftest$ac_exeext conftest.$ac_ext
22179 LIBS="${saved_LIBS}"
22180 CFLAGS="${saved_CFLAGS}"
22182 if test "$support_tls" = "yes"; then
22184 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22187 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22190 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22194 if test "$ac_cv_openssl_sha2" = "yes"; then
22196 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22200 if test "$ac_cv_openssl_export" = "yes"; then
22202 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22207 support_crypto="no"
22212 if test "$support_tls" = "no"; then
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22218 $as_echo "$support_tls" >&6; }
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22223 $as_echo_n "checking for library containing dlopen... " >&6; }
22224 if test "${ac_cv_search_dlopen+set}" = set; then :
22225 $as_echo_n "(cached) " >&6
22227 ac_func_search_save_LIBS=$LIBS
22228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22229 /* end confdefs.h. */
22231 /* Override any GCC internal prototype to avoid an error.
22232 Use char because int might match the return type of a GCC
22233 builtin and then its argument prototype would still apply. */
22246 for ac_lib in '' dl; do
22247 if test -z "$ac_lib"; then
22248 ac_res="none required"
22251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22253 if ac_fn_c_try_link "$LINENO"; then :
22254 ac_cv_search_dlopen=$ac_res
22256 rm -f core conftest.err conftest.$ac_objext \
22258 if test "${ac_cv_search_dlopen+set}" = set; then :
22262 if test "${ac_cv_search_dlopen+set}" = set; then :
22265 ac_cv_search_dlopen=no
22267 rm conftest.$ac_ext
22268 LIBS=$ac_func_search_save_LIBS
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22271 $as_echo "$ac_cv_search_dlopen" >&6; }
22272 ac_res=$ac_cv_search_dlopen
22273 if test "$ac_res" != no; then :
22274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22279 working_dir=`eval echo ${prefix}/var/bacula/working`
22281 # Check whether --with-working-dir was given.
22282 if test "${with_working_dir+set}" = set; then :
22283 withval=$with_working_dir;
22284 if test "x$withval" != "xno" ; then
22285 working_dir=$withval
22296 # Check whether --with-archivedir was given.
22297 if test "${with_archivedir+set}" = set; then :
22298 withval=$with_archivedir;
22299 if test "x$withval" != "xno" ; then
22300 archivedir=$withval
22309 basename=`hostname`
22311 # Check whether --with-basename was given.
22312 if test "${with_basename+set}" = set; then :
22313 withval=$with_basename;
22314 if test "x$withval" != "xno" ; then
22324 hostname=`uname -n | cut -d '.' -f 1`
22325 if test x${hostname} = x ; then
22326 hostname="localhost"
22329 # Check whether --with-hostname was given.
22330 if test "${with_hostname+set}" = set; then :
22331 withval=$with_hostname;
22332 if test "x$withval" != "xno" ; then
22343 scriptdir=`eval echo ${sysconfdir}`
22345 # Check whether --with-scriptdir was given.
22346 if test "${with_scriptdir+set}" = set; then :
22347 withval=$with_scriptdir;
22348 if test "x$withval" != "xno" ; then
22361 # Check whether --with-bsrdir was given.
22362 if test "${with_bsrdir+set}" = set; then :
22363 withval=$with_bsrdir;
22364 if test "x$withval" != "xno" ; then
22376 # Check whether --with-logdir was given.
22377 if test "${with_logdir+set}" = set; then :
22378 withval=$with_logdir;
22379 if test "x$withval" != "xno" ; then
22390 # ------------------------------------------
22391 # Where to place plugindir (plugin files)
22392 # ------------------------------------------
22393 plugindir=`eval echo ${libdir}`
22395 # Check whether --with-plugindir was given.
22396 if test "${with_plugindir+set}" = set; then :
22397 withval=$with_plugindir;
22398 if test "x$withval" != "xno" ; then
22408 dump_email=root@localhost
22410 # Check whether --with-dump-email was given.
22411 if test "${with_dump_email+set}" = set; then :
22412 withval=$with_dump_email;
22413 if test "x$withval" != "xno" ; then
22414 dump_email=$withval
22423 job_email=root@localhost
22425 # Check whether --with-job-email was given.
22426 if test "${with_job_email+set}" = set; then :
22427 withval=$with_job_email;
22428 if test "x$withval" != "xno" ; then
22438 smtp_host=localhost
22440 # Check whether --with-smtp_host was given.
22441 if test "${with_smtp_host+set}" = set; then :
22442 withval=$with_smtp_host;
22443 if test "x$withval" != "xno" ; then
22455 # Check whether --with-pid-dir was given.
22456 if test "${with_pid_dir+set}" = set; then :
22457 withval=$with_pid_dir;
22458 if test "x$withval" != "xno" ; then
22466 cat >>confdefs.h <<_ACEOF
22467 #define _PATH_BACULA_PIDDIR "$piddir"
22472 subsysdir=/var/run/subsys
22473 if test -d /var/run/subsys; then
22474 subsysdir=/var/run/subsys
22475 elif test -d /var/lock/subsys; then
22476 subsysdir=/var/lock/subsys
22478 subsysdir=/var/run/subsys
22481 # Check whether --with-subsys-dir was given.
22482 if test "${with_subsys_dir+set}" = set; then :
22483 withval=$with_subsys_dir;
22484 if test "x$withval" != "xno" ; then
22496 # Check whether --with-baseport was given.
22497 if test "${with_baseport+set}" = set; then :
22498 withval=$with_baseport;
22499 if test "x$withval" != "xno" ; then
22508 dir_port=`expr $baseport`
22509 fd_port=`expr $baseport + 1`
22510 sd_port=`expr $fd_port + 1`
22518 # Check whether --with-dir-password was given.
22519 if test "${with_dir_password+set}" = set; then :
22520 withval=$with_dir_password;
22521 if test "x$withval" != "xno" ; then
22522 dir_password=$withval
22529 if test "x$dir_password" = "x" ; then
22530 if test "x$OPENSSL" = "xnone" ; then
22531 key=`autoconf/randpass 33`
22533 key=`openssl rand -base64 33`
22540 # Check whether --with-fd-password was given.
22541 if test "${with_fd_password+set}" = set; then :
22542 withval=$with_fd_password;
22543 if test "x$withval" != "xno" ; then
22544 fd_password=$withval
22551 if test "x$fd_password" = "x" ; then
22552 if test "x$OPENSSL" = "xnone" ; then
22553 key=`autoconf/randpass 37`
22555 key=`openssl rand -base64 33`
22562 # Check whether --with-sd-password was given.
22563 if test "${with_sd_password+set}" = set; then :
22564 withval=$with_sd_password;
22565 if test "x$withval" != "xno" ; then
22566 sd_password=$withval
22573 if test "x$sd_password" = "x" ; then
22574 if test "x$OPENSSL" = "xnone" ; then
22575 key=`autoconf/randpass 41`
22577 key=`openssl rand -base64 33`
22584 # Check whether --with-mon-dir-password was given.
22585 if test "${with_mon_dir_password+set}" = set; then :
22586 withval=$with_mon_dir_password;
22587 if test "x$withval" != "xno" ; then
22588 mon_dir_password=$withval
22595 if test "x$mon_dir_password" = "x" ; then
22596 if test "x$OPENSSL" = "xnone" ; then
22597 key=`autoconf/randpass 33`
22599 key=`openssl rand -base64 33`
22601 mon_dir_password=$key
22606 # Check whether --with-mon-fd-password was given.
22607 if test "${with_mon_fd_password+set}" = set; then :
22608 withval=$with_mon_fd_password;
22609 if test "x$withval" != "xno" ; then
22610 mon_fd_password=$withval
22617 if test "x$mon_fd_password" = "x" ; then
22618 if test "x$OPENSSL" = "xnone" ; then
22619 key=`autoconf/randpass 37`
22621 key=`openssl rand -base64 33`
22623 mon_fd_password=$key
22628 # Check whether --with-mon-sd-password was given.
22629 if test "${with_mon_sd_password+set}" = set; then :
22630 withval=$with_mon_sd_password;
22631 if test "x$withval" != "xno" ; then
22632 mon_sd_password=$withval
22639 if test "x$mon_sd_password" = "x" ; then
22640 if test "x$OPENSSL" = "xnone" ; then
22641 key=`autoconf/randpass 41`
22643 key=`openssl rand -base64 33`
22645 mon_sd_password=$key
22657 # Check whether --with-db_name was given.
22658 if test "${with_db_name+set}" = set; then :
22659 withval=$with_db_name;
22660 if test "x$withval" != "x" ; then
22671 # Check whether --with-db_user was given.
22672 if test "${with_db_user+set}" = set; then :
22673 withval=$with_db_user;
22674 if test "x$withval" != "x" ; then
22685 # Check whether --with-db_password was given.
22686 if test "${with_db_password+set}" = set; then :
22687 withval=$with_db_password;
22688 if test "x$withval" != "x" ; then
22689 db_password=$withval
22699 # Check whether --with-db_port was given.
22700 if test "${with_db_port+set}" = set; then :
22701 withval=$with_db_port;
22702 if test "x$withval" != "x" ; then
22712 # Handle users and groups for each daemon
22716 # Check whether --with-dir_user was given.
22717 if test "${with_dir_user+set}" = set; then :
22718 withval=$with_dir_user;
22719 if test "x$withval" != "x" ; then
22729 # Check whether --with-dir_group was given.
22730 if test "${with_dir_group+set}" = set; then :
22731 withval=$with_dir_group;
22732 if test "x$withval" != "x" ; then
22742 # Check whether --with-sd_user was given.
22743 if test "${with_sd_user+set}" = set; then :
22744 withval=$with_sd_user;
22745 if test "x$withval" != "x" ; then
22755 # Check whether --with-sd_group was given.
22756 if test "${with_sd_group+set}" = set; then :
22757 withval=$with_sd_group;
22758 if test "x$withval" != "x" ; then
22768 # Check whether --with-fd_user was given.
22769 if test "${with_fd_user+set}" = set; then :
22770 withval=$with_fd_user;
22771 if test "x$withval" != "x" ; then
22781 # Check whether --with-fd_group was given.
22782 if test "${with_fd_group+set}" = set; then :
22783 withval=$with_fd_group;
22784 if test "x$withval" != "x" ; then
22801 # Check whether --with-sbin-perm was given.
22802 if test "${with_sbin_perm+set}" = set; then :
22803 withval=$with_sbin_perm;
22804 if test "x$withval" != "x" ; then
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22818 $as_echo_n "checking for PostgreSQL support... " >&6; }
22820 # Check whether --with-postgresql was given.
22821 if test "${with_postgresql+set}" = set; then :
22822 withval=$with_postgresql;
22823 if test "$withval" != "no"; then
22824 if test "$db_found" = "yes"; then
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
22826 $as_echo "error" >&6; }
22827 as_fn_error "\"You can configure for only one database.\"" "$LINENO" 5;
22829 if test "$withval" = "yes"; then
22830 PG_CONFIG=`which pg_config`
22831 if test -n "$PG_CONFIG";then
22832 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22833 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22834 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22835 elif test -f /usr/local/include/libpq-fe.h; then
22836 POSTGRESQL_INCDIR=/usr/local/include
22837 if test -d /usr/local/lib64; then
22838 POSTGRESQL_LIBDIR=/usr/local/lib64
22840 POSTGRESQL_LIBDIR=/usr/local/lib
22842 POSTGRESQL_BINDIR=/usr/local/bin
22843 elif test -f /usr/include/libpq-fe.h; then
22844 POSTGRESQL_INCDIR=/usr/include
22845 if test -d /usr/lib64; then
22846 POSTGRESQL_LIBDIR=/usr/lib64
22848 POSTGRESQL_LIBDIR=/usr/lib
22850 POSTGRESQL_BINDIR=/usr/bin
22851 elif test -f /usr/include/pgsql/libpq-fe.h; then
22852 POSTGRESQL_INCDIR=/usr/include/pgsql
22853 if test -d /usr/lib64/pgsql; then
22854 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22856 POSTGRESQL_LIBDIR=/usr/lib/pgsql
22858 POSTGRESQL_BINDIR=/usr/bin
22859 elif test -f /usr/include/postgresql/libpq-fe.h; then
22860 POSTGRESQL_INCDIR=/usr/include/postgresql
22861 if test -d /usr/lib64/postgresql; then
22862 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22864 POSTGRESQL_LIBDIR=/usr/lib/postgresql
22866 POSTGRESQL_BINDIR=/usr/bin
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22869 $as_echo "no" >&6; }
22870 as_fn_error "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22872 elif test -f $withval/include/libpq-fe.h; then
22873 POSTGRESQL_INCDIR=$withval/include
22874 POSTGRESQL_LIBDIR=$withval/lib
22875 POSTGRESQL_BINDIR=$withval/bin
22876 elif test -f $withval/include/postgresql/libpq-fe.h; then
22877 POSTGRESQL_INCDIR=$withval/include/postgresql
22878 if test -d $withval/lib64; then
22879 POSTGRESQL_LIBDIR=$withval/lib64
22881 POSTGRESQL_LIBDIR=$withval/lib
22883 POSTGRESQL_BINDIR=$withval/bin
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22886 $as_echo "no" >&6; }
22887 as_fn_error "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22889 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
22890 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22891 if test "x$ac_cv_func_crypt" = x""yes; then :
22894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22895 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22896 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22897 $as_echo_n "(cached) " >&6
22899 ac_check_lib_save_LIBS=$LIBS
22900 LIBS="-lcrypt $LIBS"
22901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22902 /* end confdefs.h. */
22904 /* Override any GCC internal prototype to avoid an error.
22905 Use char because int might match the return type of a GCC
22906 builtin and then its argument prototype would still apply. */
22919 if ac_fn_c_try_link "$LINENO"; then :
22920 ac_cv_lib_crypt_crypt=yes
22922 ac_cv_lib_crypt_crypt=no
22924 rm -f core conftest.err conftest.$ac_objext \
22925 conftest$ac_exeext conftest.$ac_ext
22926 LIBS=$ac_check_lib_save_LIBS
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22929 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22930 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
22931 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
22936 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
22937 SQL_LFLAGS=$POSTGRESQL_LFLAGS
22938 SQL_BINDIR=$POSTGRESQL_BINDIR
22939 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
22941 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22944 $as_echo "yes" >&6; }
22946 support_postgresql=yes
22950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22951 $as_echo "no" >&6; }
22956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22957 $as_echo "no" >&6; }
22969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
22970 $as_echo_n "checking for MySQL support... " >&6; }
22972 # Check whether --with-mysql was given.
22973 if test "${with_mysql+set}" = set; then :
22974 withval=$with_mysql;
22975 if test "$withval" != "no"; then
22976 if test "$withval" = "yes"; then
22977 if test -f /usr/local/mysql/include/mysql/mysql.h; then
22978 MYSQL_INCDIR=/usr/local/mysql/include/mysql
22979 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
22980 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
22981 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
22983 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
22985 MYSQL_BINDIR=/usr/local/mysql/bin
22986 elif test -f /usr/include/mysql/mysql.h; then
22987 MYSQL_INCDIR=/usr/include/mysql
22988 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
22989 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
22990 MYSQL_LIBDIR=/usr/lib64/mysql
22991 elif test -f /usr/lib64/libmysqlclient_r.a \
22992 -o -f /usr/lib64/libmysqlclient_r.so; then
22993 MYSQL_LIBDIR=/usr/lib64
22994 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
22995 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
22996 MYSQL_LIBDIR=/usr/lib/mysql
22998 MYSQL_LIBDIR=/usr/lib
23000 MYSQL_BINDIR=/usr/bin
23001 elif test -f /usr/include/mysql.h; then
23002 MYSQL_INCDIR=/usr/include
23003 if test -f /usr/lib64/libmysqlclient_r.a \
23004 -o -f /usr/lib64/libmysqlclient_r.so; then
23005 MYSQL_LIBDIR=/usr/lib64
23007 MYSQL_LIBDIR=/usr/lib
23009 MYSQL_BINDIR=/usr/bin
23010 elif test -f /usr/local/include/mysql/mysql.h; then
23011 MYSQL_INCDIR=/usr/local/include/mysql
23012 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23013 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23014 MYSQL_LIBDIR=/usr/local/lib64/mysql
23016 MYSQL_LIBDIR=/usr/local/lib/mysql
23018 MYSQL_BINDIR=/usr/local/bin
23019 elif test -f /usr/local/include/mysql.h; then
23020 MYSQL_INCDIR=/usr/local/include
23021 if test -f /usr/local/lib64/libmysqlclient_r.a \
23022 -o -f /usr/local/lib64/libmysqlclient_r.so; then
23023 MYSQL_LIBDIR=/usr/local/lib64
23025 MYSQL_LIBDIR=/usr/local/lib
23027 MYSQL_BINDIR=/usr/local/bin
23029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23030 $as_echo "no" >&6; }
23031 as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23034 if test -f $withval/include/mysql/mysql.h; then
23035 MYSQL_INCDIR=$withval/include/mysql
23036 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23037 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23038 MYSQL_LIBDIR=$withval/lib64/mysql
23039 elif test -f $withval/lib64/libmysqlclient_r.a \
23040 -o -f $withval/lib64/libmysqlclient_r.so; then
23041 MYSQL_LIBDIR=$withval/lib64
23042 elif test -f $withval/lib/libmysqlclient_r.a \
23043 -o -f $withval/lib/libmysqlclient_r.so; then
23044 MYSQL_LIBDIR=$withval/lib
23046 MYSQL_LIBDIR=$withval/lib/mysql
23048 MYSQL_BINDIR=$withval/bin
23049 elif test -f $withval/include/mysql.h; then
23050 MYSQL_INCDIR=$withval/include
23051 if test -f $withval/lib64/libmysqlclient_r.a \
23052 -o -f $withval/lib64/libmysqlclient_r.so; then
23053 MYSQL_LIBDIR=$withval/lib64
23055 MYSQL_LIBDIR=$withval/lib
23057 MYSQL_BINDIR=$withval/bin
23059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23060 $as_echo "no" >&6; }
23061 as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23064 SQL_INCLUDE=-I$MYSQL_INCDIR
23065 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23066 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23067 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23068 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23071 SQL_BINDIR=$MYSQL_BINDIR
23072 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23074 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23077 $as_echo "yes" >&6; }
23084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23085 $as_echo "no" >&6; }
23093 # Check whether --with-embedded-mysql was given.
23094 if test "${with_embedded_mysql+set}" = set; then :
23095 withval=$with_embedded_mysql;
23096 if test "$withval" != "no"; then
23097 if test "$withval" = "yes"; then
23098 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23099 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23100 if test -d /usr/local/mysql/lib64/mysql; then
23101 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23103 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23105 MYSQL_BINDIR=/usr/local/mysql/bin
23106 elif test -f /usr/include/mysql/mysql.h; then
23107 MYSQL_INCDIR=/usr/include/mysql
23108 if test -d /usr/lib64/mysql; then
23109 MYSQL_LIBDIR=/usr/lib64/mysql
23111 MYSQL_LIBDIR=/usr/lib/mysql
23113 MYSQL_BINDIR=/usr/bin
23114 elif test -f /usr/include/mysql.h; then
23115 MYSQL_INCDIR=/usr/include
23116 if test -d /usr/lib64; then
23117 MYSQL_LIBDIR=/usr/lib64
23119 MYSQL_LIBDIR=/usr/lib
23121 MYSQL_BINDIR=/usr/bin
23122 elif test -f /usr/local/include/mysql/mysql.h; then
23123 MYSQL_INCDIR=/usr/local/include/mysql
23124 if test -d /usr/local/lib64/mysql; then
23125 MYSQL_LIBDIR=/usr/local/lib64/mysql
23127 MYSQL_LIBDIR=/usr/local/lib/mysql
23129 MYSQL_BINDIR=/usr/local/bin
23130 elif test -f /usr/local/include/mysql.h; then
23131 MYSQL_INCDIR=/usr/local/include
23132 if test -d /usr/local/lib64; then
23133 MYSQL_LIBDIR=/usr/local/lib64
23135 MYSQL_LIBDIR=/usr/local/lib
23137 MYSQL_BINDIR=/usr/local/bin
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23140 $as_echo "no" >&6; }
23141 as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23144 if test -f $withval/include/mysql/mysql.h; then
23145 MYSQL_INCDIR=$withval/include/mysql
23146 if test -d $withval/lib64/mysql; then
23147 MYSQL_LIBDIR=$withval/lib64/mysql
23149 MYSQL_LIBDIR=$withval/lib/mysql
23151 MYSQL_BINDIR=$withval/bin
23152 elif test -f $withval/include/mysql.h; then
23153 MYSQL_INCDIR=$withval/include
23154 if test -d $withval/lib64; then
23155 MYSQL_LIBDIR=$withval/lib64
23157 MYSQL_LIBDIR=$withval/lib
23159 MYSQL_BINDIR=$withval/bin
23161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23162 $as_echo "no" >&6; }
23163 as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23166 SQL_INCLUDE=-I$MYSQL_INCDIR
23167 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23168 SQL_BINDIR=$MYSQL_BINDIR
23169 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23171 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23173 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23176 $as_echo "yes" >&6; }
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23184 $as_echo "no" >&6; }
23200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23201 $as_echo_n "checking for SQLite3 support... " >&6; }
23203 # Check whether --with-sqlite3 was given.
23204 if test "${with_sqlite3+set}" = set; then :
23205 withval=$with_sqlite3;
23206 if test "$withval" != "no"; then
23207 if test "$withval" = "yes"; then
23208 if test -f /usr/local/include/sqlite3.h; then
23209 SQLITE_INCDIR=/usr/local/include
23210 if test -d /usr/local/lib64; then
23211 SQLITE_LIBDIR=/usr/local/lib64
23213 SQLITE_LIBDIR=/usr/local/lib
23215 SQLITE_BINDIR=/usr/local/bin
23216 elif test -f /usr/include/sqlite3.h; then
23217 SQLITE_INCDIR=/usr/include
23218 if test -d /usr/lib64; then
23219 SQLITE_LIBDIR=/usr/lib64
23221 SQLITE_LIBDIR=/usr/lib
23223 SQLITE_BINDIR=/usr/bin
23224 elif test -f $prefix/include/sqlite3.h; then
23225 SQLITE_INCDIR=$prefix/include
23226 if test -d $prefix/lib64; then
23227 SQLITE_LIBDIR=$prefix/lib64
23229 SQLITE_LIBDIR=$prefix/lib
23231 SQLITE_BINDIR=$prefix/bin
23233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23234 $as_echo "no" >&6; }
23235 as_fn_error "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23238 if test -f $withval/sqlite3.h; then
23239 SQLITE_INCDIR=$withval
23240 SQLITE_LIBDIR=$withval
23241 SQLITE_BINDIR=$withval
23242 elif test -f $withval/include/sqlite3.h; then
23243 SQLITE_INCDIR=$withval/include
23244 if test -d $withval/lib64; then
23245 SQLITE_LIBDIR=$withval/lib64
23247 SQLITE_LIBDIR=$withval/lib
23249 SQLITE_BINDIR=$withval/bin
23251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23252 $as_echo "no" >&6; }
23253 as_fn_error "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23256 SQL_INCLUDE=-I$SQLITE_INCDIR
23257 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
23258 SQL_BINDIR=$SQLITE_BINDIR
23259 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
23261 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23264 $as_echo "yes" >&6; }
23266 support_sqlite3=yes
23271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23272 $as_echo "no" >&6; }
23277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23278 $as_echo "no" >&6; }
23288 # BA_CHECK_SQLITE_DB
23292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI support" >&5
23293 $as_echo_n "checking for DBI support... " >&6; }
23295 # Check whether --with-dbi was given.
23296 if test "${with_dbi+set}" = set; then :
23298 if test "$withval" != "no"; then
23299 if test "$withval" = "yes"; then
23300 if test -f /usr/local/include/dbi/dbi.h; then
23301 DBI_INCDIR=/usr/local/dbi/include
23302 if test -d /usr/local/lib64; then
23303 DBI_LIBDIR=/usr/local/lib64
23305 DBI_LIBDIR=/usr/local/lib
23307 DBI_BINDIR=/usr/local/bin
23308 elif test -f /usr/include/dbi/dbi.h; then
23309 DBI_INCDIR=/usr/include
23310 if test -d /usr/lib64; then
23311 DBI_LIBDIR=/usr/lib64
23313 DBI_LIBDIR=/usr/lib
23315 DBI_BINDIR=/usr/bin
23316 elif test -f $prefix/include/dbi/dbi.h; then
23317 DBI_INCDIR=$prefix/include
23318 if test -d $prefix/lib64; then
23319 DBI_LIBDIR=$prefix/lib64
23321 DBI_LIBDIR=$prefix/lib
23323 DBI_BINDIR=$prefix/bin
23325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23326 $as_echo "no" >&6; }
23327 as_fn_error "Unable to find dbi.h in standard locations" "$LINENO" 5
23329 if test -d /usr/local/lib/dbd; then
23330 DRIVERDIR=/usr/local/lib/dbd
23331 if test -d /usr/local/lib64/dbd; then
23332 DRIVERDIR=/usr/local/lib64/dbd
23334 DRIVERDIR=/usr/local/lib/dbd
23336 elif test -d /usr/lib/dbd; then
23337 DRIVERDIR=/usr/lib/dbd
23338 if test -d /usr/lib64/dbd; then
23339 DRIVERDIR=/usr/lib64/dbd
23341 DRIVERDIR=/usr/lib/dbd
23343 elif test -d $prefix/lib/dbd; then
23344 if test -d $prefix/lib64/dbd; then
23345 DRIVERDIR=$prefix/lib64/dbd
23347 DRIVERDIR=$prefix/lib/dbd
23349 elif test -d /usr/local/lib64/dbd; then
23350 DRIVERDIR=/usr/local/lib64/dbd
23351 elif test -d /usr/lib64/dbd; then
23352 DRIVERDIR=/usr/lib64/dbd
23353 elif test -d $prefix/lib64/dbd; then
23354 DRIVERDIR=$prefix/lib64/dbd
23356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23357 $as_echo "no" >&6; }
23358 as_fn_error "Unable to find DBD drivers in standard locations" "$LINENO" 5
23361 if test -f $withval/dbi.h; then
23362 DBI_INCDIR=$withval
23363 DBI_LIBDIR=$withval
23364 DBI_BINDIR=$withval
23365 elif test -f $withval/include/dbi/dbi.h; then
23366 DBI_INCDIR=$withval/include
23367 if test -d $withval/lib64; then
23368 DBI_LIBDIR=$withval/lib64
23370 DBI_LIBDIR=$withval/lib
23372 DBI_BINDIR=$withval/bin
23374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23375 $as_echo "no" >&6; }
23376 as_fn_error "Invalid DBI directory $withval - unable to find dbi.h under $withval" "$LINENO" 5
23378 if test -d $withval/dbd; then
23379 DRIVERDIR=$withval/dbd
23380 elif test -d $withval/lib/; then
23381 if test -d $withval/lib64/dbd; then
23382 DRIVERDIR=$withval/lib64/dbd
23384 DRIVERDIR=$withval/lib/dbd
23386 elif test -d $withval/lib64/dbd; then
23387 DRIVERDIR=$withval/lib64/dbd
23389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23390 $as_echo "no" >&6; }
23391 as_fn_error "Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" "$LINENO" 5
23394 SQL_INCLUDE=-I$DBI_INCDIR
23395 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
23396 SQL_BINDIR=$DBI_BINDIR
23397 SQL_LIB=$DBI_LIBDIR/libdbi.a
23398 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
23401 $as_echo "#define HAVE_DBI 1" >>confdefs.h
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23404 $as_echo "yes" >&6; }
23412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23413 $as_echo "no" >&6; }
23418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23419 $as_echo "no" >&6; }
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI drivers support" >&5
23435 $as_echo_n "checking for DBI drivers support... " >&6; }
23437 # Check whether --with-dbi-driver was given.
23438 if test "${with_dbi_driver+set}" = set; then :
23439 withval=$with_dbi_driver;
23440 if test "$withval" != "no"; then
23444 if test -f /usr/local/mysql/bin/mysql; then
23445 SQL_BINDIR=/usr/local/mysql/bin
23446 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23447 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23448 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
23450 SQL_LIBDIR=/usr/local/mysql/lib/mysql
23452 elif test -f /usr/bin/mysql; then
23453 SQL_BINDIR=/usr/bin
23454 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23455 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23456 SQL_LIBDIR=/usr/lib64/mysql
23457 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23458 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23459 SQL_LIBDIR=/usr/lib/mysql
23461 SQL_LIBDIR=/usr/lib
23463 elif test -f /usr/local/bin/mysql; then
23464 SQL_BINDIR=/usr/local/bin
23465 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23466 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23467 SQL_LIBDIR=/usr/local/lib64/mysql
23468 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
23469 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
23470 SQL_LIBDIR=/usr/local/lib/mysql
23472 SQL_LIBDIR=/usr/local/lib
23474 elif test -f $withval/bin/mysql; then
23475 SQL_BINDIR=$withval/bin
23476 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23477 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23478 SQL_LIBDIR=$withval/lib64/mysql
23479 elif test -f $withval/lib64/libmysqlclient_r.a \
23480 -o -f $withval/lib64/libmysqlclient_r.so; then
23481 SQL_LIBDIR=$withval/lib64
23482 elif test -f $withval/lib/libmysqlclient_r.a \
23483 -o -f $withval/lib/libmysqlclient_r.so; then
23484 SQL_LIBDIR=$withval/lib/
23486 SQL_LIBDIR=$withval/lib/mysql
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23490 $as_echo "no" >&6; }
23491 as_fn_error "Unable to find mysql in standard locations" "$LINENO" 5
23493 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
23494 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
23496 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
23500 db_prog="postgresql"
23501 PG_CONFIG=`which pg_config`
23502 if test -n "$PG_CONFIG"; then
23503 SQL_BINDIR=`"$PG_CONFIG" --bindir`
23504 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
23505 elif test -f /usr/local/bin/psql; then
23506 SQL_BINDIR=/usr/local/bin
23507 if test -d /usr/local/lib64; then
23508 SQL_LIBDIR=/usr/local/lib64
23510 SQL_LIBDIR=/usr/local/lib
23512 elif test -f /usr/bin/psql; then
23513 SQL_BINDIR=/usr/local/bin
23514 if test -d /usr/lib64/postgresql; then
23515 SQL_LIBDIR=/usr/lib64/postgresql
23516 elif test -d /usr/lib/postgresql; then
23517 SQL_LIBDIR=/usr/lib/postgresql
23518 elif test -d /usr/lib64; then
23519 SQL_LIBDIR=/usr/lib64
23521 SQL_LIBDIR=/usr/lib
23523 elif test -f $withval/bin/psql; then
23524 SQL_BINDIR=$withval/bin
23525 if test -d $withval/lib64; then
23526 SQL_LIBDIR=$withval/lib64
23528 SQL_LIBDIR=$withval/lib
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23532 $as_echo "no" >&6; }
23533 as_fn_error "Unable to find psql in standard locations" "$LINENO" 5
23535 if test -f $SQL_LIBDIR/libpq.so; then
23536 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
23538 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
23543 if test -f /usr/local/bin/sqlite; then
23544 SQL_BINDIR=/usr/local/bin
23545 if test -d /usr/local/lib64; then
23546 SQL_LIBDIR=/usr/local/lib64
23548 SQL_LIBDIR=/usr/local/lib
23550 elif test -f /usr/bin/sqlite; then
23551 SQL_BINDIR=/usr/bin
23552 if test -d /usr/lib64; then
23553 SQL_LIBDIR=/usr/lib64
23555 SQL_LIBDIR=/usr/lib
23557 elif test -f $withval/bin/sqlite; then
23558 SQL_BINDIR=$withval/bin
23559 if test -d $withval/lib64; then
23560 SQL_LIBDIR=$withval/lib64
23562 SQL_LIBDIR=$withval/lib
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23566 $as_echo "no" >&6; }
23567 as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23569 if test -f $SQL_LIBDIR/libsqlite.so; then
23570 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
23572 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
23577 if test -f /usr/local/bin/sqlite3; then
23578 SQL_BINDIR=/usr/local/bin
23579 if test -d /usr/local/lib64; then
23580 SQL_LIBDIR=/usr/local/lib64
23582 SQL_LIBDIR=/usr/local/lib
23584 elif test -f /usr/bin/sqlite3; then
23585 SQL_BINDIR=/usr/bin
23586 if test -d /usr/lib64; then
23587 SQL_LIBDIR=/usr/lib64
23589 SQL_LIBDIR=/usr/lib
23591 elif test -f $withval/bin/sqlite3; then
23592 SQL_BINDIR=$withval/bin
23593 if test -d $withval/lib64; then
23594 SQL_LIBDIR=$withval/lib64
23596 SQL_LIBDIR=$withval/lib
23599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23600 $as_echo "no" >&6; }
23601 as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23603 if test -f $SQL_LIBDIR/libsqlite3.so; then
23604 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
23606 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23611 $as_echo "no" >&6; }
23612 as_fn_error "Unable to set DBI driver. $withval is not supported" "$LINENO" 5
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23617 $as_echo "yes" >&6; }
23620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23621 $as_echo "no" >&6; }
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23627 $as_echo "no" >&6; }
23640 support_batch_insert=no
23641 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
23643 if test $pkg = 0; then
23644 support_batch_insert=yes
23645 # Check whether --enable-batch-insert was given.
23646 if test "${enable_batch_insert+set}" = set; then :
23647 enableval=$enable_batch_insert;
23648 if test x$enableval = xno; then
23649 support_batch_insert=no
23651 support_batch_insert=yes
23659 if test x$DB_TYPE = xpostgresql; then
23660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23661 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23662 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23663 $as_echo_n "(cached) " >&6
23665 ac_check_lib_save_LIBS=$LIBS
23667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23668 /* end confdefs.h. */
23670 /* Override any GCC internal prototype to avoid an error.
23671 Use char because int might match the return type of a GCC
23672 builtin and then its argument prototype would still apply. */
23676 char PQisthreadsafe ();
23680 return PQisthreadsafe ();
23685 if ac_fn_c_try_link "$LINENO"; then :
23686 ac_cv_lib_pq_PQisthreadsafe=yes
23688 ac_cv_lib_pq_PQisthreadsafe=no
23690 rm -f core conftest.err conftest.$ac_objext \
23691 conftest$ac_exeext conftest.$ac_ext
23692 LIBS=$ac_check_lib_save_LIBS
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23695 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23696 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23697 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23702 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23703 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23704 $as_echo_n "(cached) " >&6
23706 ac_check_lib_save_LIBS=$LIBS
23708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23709 /* end confdefs.h. */
23711 /* Override any GCC internal prototype to avoid an error.
23712 Use char because int might match the return type of a GCC
23713 builtin and then its argument prototype would still apply. */
23717 char PQputCopyData ();
23721 return PQputCopyData ();
23726 if ac_fn_c_try_link "$LINENO"; then :
23727 ac_cv_lib_pq_PQputCopyData=yes
23729 ac_cv_lib_pq_PQputCopyData=no
23731 rm -f core conftest.err conftest.$ac_objext \
23732 conftest$ac_exeext conftest.$ac_ext
23733 LIBS=$ac_check_lib_save_LIBS
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23736 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23737 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23738 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23742 if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
23744 support_batch_insert=no
23748 if test x$DB_TYPE = xdbi; then
23752 if test $DB_PROG = postgresql; then
23753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23754 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23755 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23756 $as_echo_n "(cached) " >&6
23758 ac_check_lib_save_LIBS=$LIBS
23760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23761 /* end confdefs.h. */
23763 /* Override any GCC internal prototype to avoid an error.
23764 Use char because int might match the return type of a GCC
23765 builtin and then its argument prototype would still apply. */
23769 char PQisthreadsafe ();
23773 return PQisthreadsafe ();
23778 if ac_fn_c_try_link "$LINENO"; then :
23779 ac_cv_lib_pq_PQisthreadsafe=yes
23781 ac_cv_lib_pq_PQisthreadsafe=no
23783 rm -f core conftest.err conftest.$ac_objext \
23784 conftest$ac_exeext conftest.$ac_ext
23785 LIBS=$ac_check_lib_save_LIBS
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23788 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23789 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23790 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23795 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23796 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23797 $as_echo_n "(cached) " >&6
23799 ac_check_lib_save_LIBS=$LIBS
23801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23802 /* end confdefs.h. */
23804 /* Override any GCC internal prototype to avoid an error.
23805 Use char because int might match the return type of a GCC
23806 builtin and then its argument prototype would still apply. */
23810 char PQputCopyData ();
23814 return PQputCopyData ();
23819 if ac_fn_c_try_link "$LINENO"; then :
23820 ac_cv_lib_pq_PQputCopyData=yes
23822 ac_cv_lib_pq_PQputCopyData=no
23824 rm -f core conftest.err conftest.$ac_objext \
23825 conftest$ac_exeext conftest.$ac_ext
23826 LIBS=$ac_check_lib_save_LIBS
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23829 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23830 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23831 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23835 test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
23839 if test $DB_PROG = mysql; then
23840 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23844 if test $DB_PROG = sqlite3; then
23845 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23849 if test $pkg = 0; then
23850 # Check whether --enable-batch-insert was given.
23851 if test "${enable_batch_insert+set}" = set; then :
23852 enableval=$enable_batch_insert;
23853 if test x$enableval = xno; then
23854 support_batch_insert=no
23856 support_batch_insert=yes
23869 if test $support_batch_insert = yes ; then
23871 $as_echo "#define HAVE_BATCH_FILE_INSERT 1" >>confdefs.h
23875 $as_echo "#define PROTOTYPES 1" >>confdefs.h
23878 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
23879 if test -z "$CCOPTS"; then
23880 CCOPTS='-g -O2 -Wall'
23887 largefile_support="no"
23889 # Check whether --enable-largefile was given.
23890 if test "${enable_largefile+set}" = set; then :
23891 enableval=$enable_largefile;
23894 if test "$enable_largefile" != no; then
23895 if test -n "$ac_tool_prefix"; then
23896 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
23897 set dummy ${ac_tool_prefix}getconf; ac_word=$2
23898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23899 $as_echo_n "checking for $ac_word... " >&6; }
23900 if test "${ac_cv_prog_GETCONF+set}" = set; then :
23901 $as_echo_n "(cached) " >&6
23903 if test -n "$GETCONF"; then
23904 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
23906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23907 for as_dir in $PATH
23910 test -z "$as_dir" && as_dir=.
23911 for ac_exec_ext in '' $ac_executable_extensions; do
23912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23913 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
23914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23923 GETCONF=$ac_cv_prog_GETCONF
23924 if test -n "$GETCONF"; then
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
23926 $as_echo "$GETCONF" >&6; }
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23929 $as_echo "no" >&6; }
23934 if test -z "$ac_cv_prog_GETCONF"; then
23935 ac_ct_GETCONF=$GETCONF
23936 # Extract the first word of "getconf", so it can be a program name with args.
23937 set dummy getconf; ac_word=$2
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23939 $as_echo_n "checking for $ac_word... " >&6; }
23940 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
23941 $as_echo_n "(cached) " >&6
23943 if test -n "$ac_ct_GETCONF"; then
23944 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
23946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23947 for as_dir in $PATH
23950 test -z "$as_dir" && as_dir=.
23951 for ac_exec_ext in '' $ac_executable_extensions; do
23952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23953 ac_cv_prog_ac_ct_GETCONF="getconf"
23954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23963 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
23964 if test -n "$ac_ct_GETCONF"; then
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
23966 $as_echo "$ac_ct_GETCONF" >&6; }
23968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23969 $as_echo "no" >&6; }
23972 if test "x$ac_ct_GETCONF" = x; then
23975 case $cross_compiling:$ac_tool_warned in
23977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23979 ac_tool_warned=yes ;;
23981 GETCONF=$ac_ct_GETCONF
23984 GETCONF="$ac_cv_prog_GETCONF"
23987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
23988 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
23989 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
23990 $as_echo_n "(cached) " >&6
23992 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
23993 ac_cv_sys_largefile_CFLAGS=no
23995 # IRIX 6.2 and later require cc -n32.
23996 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
23997 if test "$GCC" != yes; then
23998 ac_cv_sys_largefile_CFLAGS=-n32
24001 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24003 /* end confdefs.h. */
24013 if ac_fn_c_try_link "$LINENO"; then :
24016 ac_cv_sys_largefile_CFLAGS=no
24018 rm -f core conftest.err conftest.$ac_objext \
24019 conftest$ac_exeext conftest.$ac_ext
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24025 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24027 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24028 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
24029 $as_echo_n "(cached) " >&6
24031 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24032 ac_cv_sys_largefile_LDFLAGS=no
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24037 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24039 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24040 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
24041 $as_echo_n "(cached) " >&6
24043 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24044 ac_cv_sys_largefile_LIBS=no
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24049 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24051 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24054 -D_FILE_OFFSET_BITS=*) ;;
24055 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24056 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24061 case "$CPPFLAGS" in
24062 '') CPPFLAGS="$ac_flag" ;;
24063 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24071 '') CFLAGS="$ac_flag" ;;
24072 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24077 case "$ac_cv_sys_largefile_LDFLAGS" in
24081 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24082 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24085 case "$ac_cv_sys_largefile_LIBS" in
24089 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24090 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24094 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24095 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24096 $as_echo_n "(cached) " >&6
24098 ac_cv_sys_file_offset_bits=no
24099 ac_cv_sys_file_offset_bits=64
24100 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24102 -D_FILE_OFFSET_BITS)
24103 ac_cv_sys_file_offset_bits=1 ;;
24104 -D_FILE_OFFSET_BITS=*)
24105 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24111 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24112 if test "$ac_cv_sys_file_offset_bits" != no; then
24114 cat >>confdefs.h <<_ACEOF
24115 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24120 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24121 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24122 $as_echo_n "(cached) " >&6
24124 ac_cv_sys_largefile_source=no
24125 ac_cv_sys_largefile_source=1
24126 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24128 -D_LARGEFILE_SOURCE)
24129 ac_cv_sys_largefile_source=1 ;;
24130 -D_LARGEFILE_SOURCE=*)
24131 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24137 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24138 if test "$ac_cv_sys_largefile_source" != no; then
24140 cat >>confdefs.h <<_ACEOF
24141 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24146 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24147 if test "${ac_cv_sys_large_files+set}" = set; then :
24148 $as_echo_n "(cached) " >&6
24150 ac_cv_sys_large_files=no
24151 ac_cv_sys_large_files=1
24152 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24155 ac_cv_sys_large_files=1 ;;
24157 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24163 $as_echo "$ac_cv_sys_large_files" >&6; }
24164 if test "$ac_cv_sys_large_files" != no; then
24166 cat >>confdefs.h <<_ACEOF
24167 #define _LARGE_FILES $ac_cv_sys_large_files
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24175 $as_echo_n "checking for X... " >&6; }
24178 # Check whether --with-x was given.
24179 if test "${with_x+set}" = set; then :
24183 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24184 if test "x$with_x" = xno; then
24185 # The user explicitly disabled X.
24188 case $x_includes,$x_libraries in #(
24189 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24190 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24191 $as_echo_n "(cached) " >&6
24193 # One or both of the vars are not set, and there is no cached value.
24194 ac_x_includes=no ac_x_libraries=no
24195 rm -f -r conftest.dir
24196 if mkdir conftest.dir; then
24198 cat >Imakefile <<'_ACEOF'
24200 @echo incroot='${INCROOT}'
24202 @echo usrlibdir='${USRLIBDIR}'
24204 @echo libdir='${LIBDIR}'
24206 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24207 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24208 for ac_var in incroot usrlibdir libdir; do
24209 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24211 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24212 for ac_extension in a so sl dylib la dll; do
24213 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24214 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24215 ac_im_usrlibdir=$ac_im_libdir; break
24218 # Screen out bogus values from the imake configuration. They are
24219 # bogus both because they are the default anyway, and because
24220 # using them would break gcc on systems where it needs fixed includes.
24221 case $ac_im_incroot in
24222 /usr/include) ac_x_includes= ;;
24223 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24225 case $ac_im_usrlibdir in
24226 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24227 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24231 rm -f -r conftest.dir
24234 # Standard set of common directories for X headers.
24235 # Check X11 before X11Rn because it is often a symlink to the current release.
24249 /usr/local/X11/include
24250 /usr/local/X11R7/include
24251 /usr/local/X11R6/include
24252 /usr/local/X11R5/include
24253 /usr/local/X11R4/include
24255 /usr/local/include/X11
24256 /usr/local/include/X11R7
24257 /usr/local/include/X11R6
24258 /usr/local/include/X11R5
24259 /usr/local/include/X11R4
24263 /usr/XFree86/include/X11
24267 /usr/unsupported/include
24268 /usr/athena/include
24269 /usr/local/x11r5/include
24270 /usr/lpp/Xamples/include
24272 /usr/openwin/include
24273 /usr/openwin/share/include'
24275 if test "$ac_x_includes" = no; then
24276 # Guess where to find include files, by looking for Xlib.h.
24277 # First, try using that file with no special directory specified.
24278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24279 /* end confdefs.h. */
24280 #include <X11/Xlib.h>
24282 if ac_fn_c_try_cpp "$LINENO"; then :
24283 # We can compile using X headers with no special include directory.
24286 for ac_dir in $ac_x_header_dirs; do
24287 if test -r "$ac_dir/X11/Xlib.h"; then
24288 ac_x_includes=$ac_dir
24293 rm -f conftest.err conftest.$ac_ext
24294 fi # $ac_x_includes = no
24296 if test "$ac_x_libraries" = no; then
24297 # Check for the libraries.
24298 # See if we find them without any special options.
24299 # Don't add to $LIBS permanently.
24302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24303 /* end confdefs.h. */
24304 #include <X11/Xlib.h>
24313 if ac_fn_c_try_link "$LINENO"; then :
24315 # We can link X programs with no special library path.
24319 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24321 # Don't even attempt the hair of trying to link an X program!
24322 for ac_extension in a so sl dylib la dll; do
24323 if test -r "$ac_dir/libX11.$ac_extension"; then
24324 ac_x_libraries=$ac_dir
24330 rm -f core conftest.err conftest.$ac_objext \
24331 conftest$ac_exeext conftest.$ac_ext
24332 fi # $ac_x_libraries = no
24334 case $ac_x_includes,$ac_x_libraries in #(
24335 no,* | *,no | *\'*)
24336 # Didn't find X, or a directory has "'" in its name.
24337 ac_cv_have_x="have_x=no";; #(
24339 # Record where we found X for the cache.
24340 ac_cv_have_x="have_x=yes\
24341 ac_x_includes='$ac_x_includes'\
24342 ac_x_libraries='$ac_x_libraries'"
24348 eval "$ac_cv_have_x"
24351 if test "$have_x" != yes; then
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24353 $as_echo "$have_x" >&6; }
24356 # If each of the values was on the command line, it overrides each guess.
24357 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24358 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24359 # Update the cache value to reflect the command line values.
24360 ac_cv_have_x="have_x=yes\
24361 ac_x_includes='$x_includes'\
24362 ac_x_libraries='$x_libraries'"
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24364 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24367 if test "$no_x" = yes; then
24368 # Not all programs may use this symbol, but it does not hurt to define it.
24370 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24372 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24374 if test -n "$x_includes"; then
24375 X_CFLAGS="$X_CFLAGS -I$x_includes"
24378 # It would also be nice to do this for all -L options, not just this one.
24379 if test -n "$x_libraries"; then
24380 X_LIBS="$X_LIBS -L$x_libraries"
24381 # For Solaris; some versions of Sun CC require a space after -R and
24382 # others require no space. Words are not sufficient . . . .
24383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24384 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24385 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24386 ac_xsave_c_werror_flag=$ac_c_werror_flag
24387 ac_c_werror_flag=yes
24388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24389 /* end confdefs.h. */
24399 if ac_fn_c_try_link "$LINENO"; then :
24400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24401 $as_echo "no" >&6; }
24402 X_LIBS="$X_LIBS -R$x_libraries"
24404 LIBS="$ac_xsave_LIBS -R $x_libraries"
24405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24406 /* end confdefs.h. */
24416 if ac_fn_c_try_link "$LINENO"; then :
24417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24418 $as_echo "yes" >&6; }
24419 X_LIBS="$X_LIBS -R $x_libraries"
24421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24422 $as_echo "neither works" >&6; }
24424 rm -f core conftest.err conftest.$ac_objext \
24425 conftest$ac_exeext conftest.$ac_ext
24427 rm -f core conftest.err conftest.$ac_objext \
24428 conftest$ac_exeext conftest.$ac_ext
24429 ac_c_werror_flag=$ac_xsave_c_werror_flag
24430 LIBS=$ac_xsave_LIBS
24433 # Check for system-dependent libraries X programs must link with.
24434 # Do this before checking for the system-independent R6 libraries
24435 # (-lICE), since we may need -lsocket or whatever for X linking.
24437 if test "$ISC" = yes; then
24438 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24440 # Martyn Johnson says this is needed for Ultrix, if the X
24441 # libraries were built with DECnet support. And Karl Berry says
24442 # the Alpha needs dnet_stub (dnet does not exist).
24443 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24445 /* end confdefs.h. */
24447 /* Override any GCC internal prototype to avoid an error.
24448 Use char because int might match the return type of a GCC
24449 builtin and then its argument prototype would still apply. */
24453 char XOpenDisplay ();
24457 return XOpenDisplay ();
24462 if ac_fn_c_try_link "$LINENO"; then :
24465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24466 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24467 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
24468 $as_echo_n "(cached) " >&6
24470 ac_check_lib_save_LIBS=$LIBS
24471 LIBS="-ldnet $LIBS"
24472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24473 /* end confdefs.h. */
24475 /* Override any GCC internal prototype to avoid an error.
24476 Use char because int might match the return type of a GCC
24477 builtin and then its argument prototype would still apply. */
24485 return dnet_ntoa ();
24490 if ac_fn_c_try_link "$LINENO"; then :
24491 ac_cv_lib_dnet_dnet_ntoa=yes
24493 ac_cv_lib_dnet_dnet_ntoa=no
24495 rm -f core conftest.err conftest.$ac_objext \
24496 conftest$ac_exeext conftest.$ac_ext
24497 LIBS=$ac_check_lib_save_LIBS
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24500 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24501 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
24502 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24505 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24507 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24508 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
24509 $as_echo_n "(cached) " >&6
24511 ac_check_lib_save_LIBS=$LIBS
24512 LIBS="-ldnet_stub $LIBS"
24513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24514 /* end confdefs.h. */
24516 /* Override any GCC internal prototype to avoid an error.
24517 Use char because int might match the return type of a GCC
24518 builtin and then its argument prototype would still apply. */
24526 return dnet_ntoa ();
24531 if ac_fn_c_try_link "$LINENO"; then :
24532 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24534 ac_cv_lib_dnet_stub_dnet_ntoa=no
24536 rm -f core conftest.err conftest.$ac_objext \
24537 conftest$ac_exeext conftest.$ac_ext
24538 LIBS=$ac_check_lib_save_LIBS
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24541 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24542 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
24543 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24548 rm -f core conftest.err conftest.$ac_objext \
24549 conftest$ac_exeext conftest.$ac_ext
24550 LIBS="$ac_xsave_LIBS"
24552 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24553 # to get the SysV transport functions.
24554 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24556 # The nsl library prevents programs from opening the X display
24557 # on Irix 5.2, according to T.E. Dickey.
24558 # The functions gethostbyname, getservbyname, and inet_addr are
24559 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24560 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24561 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
24565 if test $ac_cv_func_gethostbyname = no; then
24566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24567 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24568 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
24569 $as_echo_n "(cached) " >&6
24571 ac_check_lib_save_LIBS=$LIBS
24573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24574 /* end confdefs.h. */
24576 /* Override any GCC internal prototype to avoid an error.
24577 Use char because int might match the return type of a GCC
24578 builtin and then its argument prototype would still apply. */
24582 char gethostbyname ();
24586 return gethostbyname ();
24591 if ac_fn_c_try_link "$LINENO"; then :
24592 ac_cv_lib_nsl_gethostbyname=yes
24594 ac_cv_lib_nsl_gethostbyname=no
24596 rm -f core conftest.err conftest.$ac_objext \
24597 conftest$ac_exeext conftest.$ac_ext
24598 LIBS=$ac_check_lib_save_LIBS
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24601 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24602 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24603 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24606 if test $ac_cv_lib_nsl_gethostbyname = no; then
24607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24608 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24609 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24610 $as_echo_n "(cached) " >&6
24612 ac_check_lib_save_LIBS=$LIBS
24614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24615 /* end confdefs.h. */
24617 /* Override any GCC internal prototype to avoid an error.
24618 Use char because int might match the return type of a GCC
24619 builtin and then its argument prototype would still apply. */
24623 char gethostbyname ();
24627 return gethostbyname ();
24632 if ac_fn_c_try_link "$LINENO"; then :
24633 ac_cv_lib_bsd_gethostbyname=yes
24635 ac_cv_lib_bsd_gethostbyname=no
24637 rm -f core conftest.err conftest.$ac_objext \
24638 conftest$ac_exeext conftest.$ac_ext
24639 LIBS=$ac_check_lib_save_LIBS
24641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24642 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24643 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24644 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24650 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24651 # socket/setsockopt and other routines are undefined under SCO ODT
24652 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24653 # on later versions), says Simon Leinen: it contains gethostby*
24654 # variants that don't use the name server (or something). -lsocket
24655 # must be given before -lnsl if both are needed. We assume that
24656 # if connect needs -lnsl, so does gethostbyname.
24657 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24658 if test "x$ac_cv_func_connect" = x""yes; then :
24662 if test $ac_cv_func_connect = no; then
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24664 $as_echo_n "checking for connect in -lsocket... " >&6; }
24665 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24666 $as_echo_n "(cached) " >&6
24668 ac_check_lib_save_LIBS=$LIBS
24669 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24671 /* end confdefs.h. */
24673 /* Override any GCC internal prototype to avoid an error.
24674 Use char because int might match the return type of a GCC
24675 builtin and then its argument prototype would still apply. */
24688 if ac_fn_c_try_link "$LINENO"; then :
24689 ac_cv_lib_socket_connect=yes
24691 ac_cv_lib_socket_connect=no
24693 rm -f core conftest.err conftest.$ac_objext \
24694 conftest$ac_exeext conftest.$ac_ext
24695 LIBS=$ac_check_lib_save_LIBS
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24698 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24699 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24700 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24705 # Guillermo Gomez says -lposix is necessary on A/UX.
24706 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24707 if test "x$ac_cv_func_remove" = x""yes; then :
24711 if test $ac_cv_func_remove = no; then
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24713 $as_echo_n "checking for remove in -lposix... " >&6; }
24714 if test "${ac_cv_lib_posix_remove+set}" = set; then :
24715 $as_echo_n "(cached) " >&6
24717 ac_check_lib_save_LIBS=$LIBS
24718 LIBS="-lposix $LIBS"
24719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24720 /* end confdefs.h. */
24722 /* Override any GCC internal prototype to avoid an error.
24723 Use char because int might match the return type of a GCC
24724 builtin and then its argument prototype would still apply. */
24737 if ac_fn_c_try_link "$LINENO"; then :
24738 ac_cv_lib_posix_remove=yes
24740 ac_cv_lib_posix_remove=no
24742 rm -f core conftest.err conftest.$ac_objext \
24743 conftest$ac_exeext conftest.$ac_ext
24744 LIBS=$ac_check_lib_save_LIBS
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24747 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24748 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24749 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24754 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24755 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24756 if test "x$ac_cv_func_shmat" = x""yes; then :
24760 if test $ac_cv_func_shmat = no; then
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24762 $as_echo_n "checking for shmat in -lipc... " >&6; }
24763 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
24764 $as_echo_n "(cached) " >&6
24766 ac_check_lib_save_LIBS=$LIBS
24768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24769 /* end confdefs.h. */
24771 /* Override any GCC internal prototype to avoid an error.
24772 Use char because int might match the return type of a GCC
24773 builtin and then its argument prototype would still apply. */
24786 if ac_fn_c_try_link "$LINENO"; then :
24787 ac_cv_lib_ipc_shmat=yes
24789 ac_cv_lib_ipc_shmat=no
24791 rm -f core conftest.err conftest.$ac_objext \
24792 conftest$ac_exeext conftest.$ac_ext
24793 LIBS=$ac_check_lib_save_LIBS
24795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24796 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24797 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
24798 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24804 # Check for libraries that X11R6 Xt/Xaw programs need.
24805 ac_save_LDFLAGS=$LDFLAGS
24806 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24807 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24808 # check for ICE first), but we must link in the order -lSM -lICE or
24809 # we get undefined symbols. So assume we have SM if we have ICE.
24810 # These have to be linked with before -lX11, unlike the other
24811 # libraries we check for below, so use a different variable.
24812 # John Interrante, Karl Berry
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24814 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24815 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
24816 $as_echo_n "(cached) " >&6
24818 ac_check_lib_save_LIBS=$LIBS
24819 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24821 /* end confdefs.h. */
24823 /* Override any GCC internal prototype to avoid an error.
24824 Use char because int might match the return type of a GCC
24825 builtin and then its argument prototype would still apply. */
24829 char IceConnectionNumber ();
24833 return IceConnectionNumber ();
24838 if ac_fn_c_try_link "$LINENO"; then :
24839 ac_cv_lib_ICE_IceConnectionNumber=yes
24841 ac_cv_lib_ICE_IceConnectionNumber=no
24843 rm -f core conftest.err conftest.$ac_objext \
24844 conftest$ac_exeext conftest.$ac_ext
24845 LIBS=$ac_check_lib_save_LIBS
24847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24848 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24849 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
24850 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24853 LDFLAGS=$ac_save_LDFLAGS
24890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24891 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24892 eval as_val=\$$as_ac_Header
24893 if test "x$as_val" = x""yes; then :
24894 cat >>confdefs.h <<_ACEOF
24895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24903 $as_echo_n "checking for ANSI C header files... " >&6; }
24904 if test "${ac_cv_header_stdc+set}" = set; then :
24905 $as_echo_n "(cached) " >&6
24907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24908 /* end confdefs.h. */
24909 #include <stdlib.h>
24910 #include <stdarg.h>
24911 #include <string.h>
24922 if ac_fn_c_try_compile "$LINENO"; then :
24923 ac_cv_header_stdc=yes
24925 ac_cv_header_stdc=no
24927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24929 if test $ac_cv_header_stdc = yes; then
24930 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24932 /* end confdefs.h. */
24933 #include <string.h>
24936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24937 $EGREP "memchr" >/dev/null 2>&1; then :
24940 ac_cv_header_stdc=no
24946 if test $ac_cv_header_stdc = yes; then
24947 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24949 /* end confdefs.h. */
24950 #include <stdlib.h>
24953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24954 $EGREP "free" >/dev/null 2>&1; then :
24957 ac_cv_header_stdc=no
24963 if test $ac_cv_header_stdc = yes; then
24964 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24965 if test "$cross_compiling" = yes; then :
24968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24969 /* end confdefs.h. */
24971 #include <stdlib.h>
24972 #if ((' ' & 0x0FF) == 0x020)
24973 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24974 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24976 # define ISLOWER(c) \
24977 (('a' <= (c) && (c) <= 'i') \
24978 || ('j' <= (c) && (c) <= 'r') \
24979 || ('s' <= (c) && (c) <= 'z'))
24980 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24983 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24988 for (i = 0; i < 256; i++)
24989 if (XOR (islower (i), ISLOWER (i))
24990 || toupper (i) != TOUPPER (i))
24995 if ac_fn_c_try_run "$LINENO"; then :
24998 ac_cv_header_stdc=no
25000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25001 conftest.$ac_objext conftest.beam conftest.$ac_ext
25006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25007 $as_echo "$ac_cv_header_stdc" >&6; }
25008 if test $ac_cv_header_stdc = yes; then
25010 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25015 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25016 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
25017 $as_echo_n "(cached) " >&6
25019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25020 /* end confdefs.h. */
25021 #include <sys/types.h>
25025 return makedev(0, 0);
25030 if ac_fn_c_try_link "$LINENO"; then :
25031 ac_cv_header_sys_types_h_makedev=yes
25033 ac_cv_header_sys_types_h_makedev=no
25035 rm -f core conftest.err conftest.$ac_objext \
25036 conftest$ac_exeext conftest.$ac_ext
25039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25040 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25042 if test $ac_cv_header_sys_types_h_makedev = no; then
25043 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25044 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
25046 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25052 if test $ac_cv_header_sys_mkdev_h = no; then
25053 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25054 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
25056 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25064 ac_header_dirent=no
25065 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25066 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25068 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
25070 $as_echo_n "(cached) " >&6
25072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25073 /* end confdefs.h. */
25074 #include <sys/types.h>
25086 if ac_fn_c_try_compile "$LINENO"; then :
25087 eval "$as_ac_Header=yes"
25089 eval "$as_ac_Header=no"
25091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25093 eval ac_res=\$$as_ac_Header
25094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25095 $as_echo "$ac_res" >&6; }
25096 eval as_val=\$$as_ac_Header
25097 if test "x$as_val" = x""yes; then :
25098 cat >>confdefs.h <<_ACEOF
25099 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25102 ac_header_dirent=$ac_hdr; break
25106 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25107 if test $ac_header_dirent = dirent.h; then
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25109 $as_echo_n "checking for library containing opendir... " >&6; }
25110 if test "${ac_cv_search_opendir+set}" = set; then :
25111 $as_echo_n "(cached) " >&6
25113 ac_func_search_save_LIBS=$LIBS
25114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25115 /* end confdefs.h. */
25117 /* Override any GCC internal prototype to avoid an error.
25118 Use char because int might match the return type of a GCC
25119 builtin and then its argument prototype would still apply. */
25132 for ac_lib in '' dir; do
25133 if test -z "$ac_lib"; then
25134 ac_res="none required"
25137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25139 if ac_fn_c_try_link "$LINENO"; then :
25140 ac_cv_search_opendir=$ac_res
25142 rm -f core conftest.err conftest.$ac_objext \
25144 if test "${ac_cv_search_opendir+set}" = set; then :
25148 if test "${ac_cv_search_opendir+set}" = set; then :
25151 ac_cv_search_opendir=no
25153 rm conftest.$ac_ext
25154 LIBS=$ac_func_search_save_LIBS
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25157 $as_echo "$ac_cv_search_opendir" >&6; }
25158 ac_res=$ac_cv_search_opendir
25159 if test "$ac_res" != no; then :
25160 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25166 $as_echo_n "checking for library containing opendir... " >&6; }
25167 if test "${ac_cv_search_opendir+set}" = set; then :
25168 $as_echo_n "(cached) " >&6
25170 ac_func_search_save_LIBS=$LIBS
25171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25172 /* end confdefs.h. */
25174 /* Override any GCC internal prototype to avoid an error.
25175 Use char because int might match the return type of a GCC
25176 builtin and then its argument prototype would still apply. */
25189 for ac_lib in '' x; do
25190 if test -z "$ac_lib"; then
25191 ac_res="none required"
25194 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25196 if ac_fn_c_try_link "$LINENO"; then :
25197 ac_cv_search_opendir=$ac_res
25199 rm -f core conftest.err conftest.$ac_objext \
25201 if test "${ac_cv_search_opendir+set}" = set; then :
25205 if test "${ac_cv_search_opendir+set}" = set; then :
25208 ac_cv_search_opendir=no
25210 rm conftest.$ac_ext
25211 LIBS=$ac_func_search_save_LIBS
25213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25214 $as_echo "$ac_cv_search_opendir" >&6; }
25215 ac_res=$ac_cv_search_opendir
25216 if test "$ac_res" != no; then :
25217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25224 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25225 if test "${ac_cv_header_stat_broken+set}" = set; then :
25226 $as_echo_n "(cached) " >&6
25228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25229 /* end confdefs.h. */
25230 #include <sys/types.h>
25231 #include <sys/stat.h>
25233 #if defined S_ISBLK && defined S_IFDIR
25234 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25237 #if defined S_ISBLK && defined S_IFCHR
25238 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25241 #if defined S_ISLNK && defined S_IFREG
25242 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25245 #if defined S_ISSOCK && defined S_IFREG
25246 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25250 if ac_fn_c_try_compile "$LINENO"; then :
25251 ac_cv_header_stat_broken=no
25253 ac_cv_header_stat_broken=yes
25255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25258 $as_echo "$ac_cv_header_stat_broken" >&6; }
25259 if test $ac_cv_header_stat_broken = yes; then
25261 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25266 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25267 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25268 $as_echo_n "(cached) " >&6
25270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25271 /* end confdefs.h. */
25272 #include <sys/types.h>
25273 #include <sys/wait.h>
25274 #ifndef WEXITSTATUS
25275 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25278 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25286 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25291 if ac_fn_c_try_compile "$LINENO"; then :
25292 ac_cv_header_sys_wait_h=yes
25294 ac_cv_header_sys_wait_h=no
25296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25299 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25300 if test $ac_cv_header_sys_wait_h = yes; then
25302 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25307 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25308 if test "${ac_cv_header_time+set}" = set; then :
25309 $as_echo_n "(cached) " >&6
25311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25312 /* end confdefs.h. */
25313 #include <sys/types.h>
25314 #include <sys/time.h>
25320 if ((struct tm *) 0)
25326 if ac_fn_c_try_compile "$LINENO"; then :
25327 ac_cv_header_time=yes
25329 ac_cv_header_time=no
25331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25334 $as_echo "$ac_cv_header_time" >&6; }
25335 if test $ac_cv_header_time = yes; then
25337 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25341 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25342 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
25344 cat >>confdefs.h <<_ACEOF
25345 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25349 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25354 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25355 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
25357 cat >>confdefs.h <<_ACEOF
25358 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25362 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25365 case " $LIBOBJS " in
25366 *" fileblocks.$ac_objext "* ) ;;
25367 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25375 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25376 if test "${ac_cv_struct_tm+set}" = set; then :
25377 $as_echo_n "(cached) " >&6
25379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25380 /* end confdefs.h. */
25381 #include <sys/types.h>
25388 int *p = &tm.tm_sec;
25394 if ac_fn_c_try_compile "$LINENO"; then :
25395 ac_cv_struct_tm=time.h
25397 ac_cv_struct_tm=sys/time.h
25399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25402 $as_echo "$ac_cv_struct_tm" >&6; }
25403 if test $ac_cv_struct_tm = sys/time.h; then
25405 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25409 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25410 #include <$ac_cv_struct_tm>
25413 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
25415 cat >>confdefs.h <<_ACEOF
25416 #define HAVE_STRUCT_TM_TM_ZONE 1
25422 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25424 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25427 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25429 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
25435 cat >>confdefs.h <<_ACEOF
25436 #define HAVE_DECL_TZNAME $ac_have_decl
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25440 $as_echo_n "checking for tzname... " >&6; }
25441 if test "${ac_cv_var_tzname+set}" = set; then :
25442 $as_echo_n "(cached) " >&6
25444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25445 /* end confdefs.h. */
25447 #if !HAVE_DECL_TZNAME
25448 extern char *tzname[];
25454 return tzname[0][0];
25459 if ac_fn_c_try_link "$LINENO"; then :
25460 ac_cv_var_tzname=yes
25462 ac_cv_var_tzname=no
25464 rm -f core conftest.err conftest.$ac_objext \
25465 conftest$ac_exeext conftest.$ac_ext
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25468 $as_echo "$ac_cv_var_tzname" >&6; }
25469 if test $ac_cv_var_tzname = yes; then
25471 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25478 $as_echo_n "checking for utime.h... " >&6; }
25479 if test "${ba_cv_header_utime_h+set}" = set; then :
25480 $as_echo_n "(cached) " >&6
25483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25484 /* end confdefs.h. */
25486 #include <sys/types.h>
25499 if ac_fn_c_try_compile "$LINENO"; then :
25501 ba_cv_header_utime_h=yes
25505 ba_cv_header_utime_h=no
25509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25514 $as_echo "$ba_cv_header_utime_h" >&6; }
25515 test $ba_cv_header_utime_h = yes &&
25516 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25520 $as_echo_n "checking for socklen_t... " >&6; }
25521 if test "${ba_cv_header_socklen_t+set}" = set; then :
25522 $as_echo_n "(cached) " >&6
25525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25526 /* end confdefs.h. */
25528 #include <sys/types.h>
25529 #include <sys/socket.h>
25541 if ac_fn_c_try_compile "$LINENO"; then :
25543 ba_cv_header_socklen_t=yes
25547 ba_cv_header_socklen_t=no
25551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25556 $as_echo "$ba_cv_header_socklen_t" >&6; }
25557 test $ba_cv_header_socklen_t = yes && $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25561 ac_cpp='$CXXCPP $CPPFLAGS'
25562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25567 $as_echo_n "checking for typeof... " >&6; }
25568 if test "${ba_cv_have_typeof+set}" = set; then :
25569 $as_echo_n "(cached) " >&6
25572 if test "$cross_compiling" = yes; then :
25574 ba_cv_have_typeof=no
25578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25579 /* end confdefs.h. */
25581 main(){char *a = 0; a = (typeof a)a;}
25584 if ac_fn_cxx_try_run "$LINENO"; then :
25586 ba_cv_have_typeof=yes
25590 ba_cv_have_typeof=no
25593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25594 conftest.$ac_objext conftest.beam conftest.$ac_ext
25600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25601 $as_echo "$ba_cv_have_typeof" >&6; }
25602 test $ba_cv_have_typeof = yes &&
25603 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25606 ac_cpp='$CPP $CPPFLAGS'
25607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25613 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25614 if test "${ac_cv_c_const+set}" = set; then :
25615 $as_echo_n "(cached) " >&6
25617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25618 /* end confdefs.h. */
25623 /* FIXME: Include the comments suggested by Paul. */
25624 #ifndef __cplusplus
25625 /* Ultrix mips cc rejects this. */
25626 typedef int charset[2];
25628 /* SunOS 4.1.1 cc rejects this. */
25629 char const *const *pcpcc;
25631 /* NEC SVR4.0.2 mips cc rejects this. */
25632 struct point {int x, y;};
25633 static struct point const zero = {0,0};
25634 /* AIX XL C 1.02.0.0 rejects this.
25635 It does not let you subtract one const X* pointer from another in
25636 an arm of an if-expression whose if-part is not a constant
25638 const char *g = "string";
25639 pcpcc = &g + (g ? g-g : 0);
25640 /* HPUX 7.0 cc rejects these. */
25642 ppc = (char**) pcpcc;
25643 pcpcc = (char const *const *) ppc;
25644 { /* SCO 3.2v4 cc rejects this. */
25646 char const *s = 0 ? (char *) 0 : (char const *) 0;
25651 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25652 int x[] = {25, 17};
25653 const int *foo = &x[0];
25656 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25657 typedef const int *iptr;
25661 { /* AIX XL C 1.02.0.0 rejects this saying
25662 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25663 struct s { int j; const int *ap[3]; };
25664 struct s *b; b->j = 5;
25666 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25667 const int foo = 10;
25668 if (!foo) return 0;
25670 return !cs[0] && !zero.x;
25677 if ac_fn_c_try_compile "$LINENO"; then :
25682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25685 $as_echo "$ac_cv_c_const" >&6; }
25686 if test $ac_cv_c_const = no; then
25688 $as_echo "#define const /**/" >>confdefs.h
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
25694 $as_echo_n "checking how to get filesystem type... " >&6; }
25696 # The order of these tests is important.
25697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25698 /* end confdefs.h. */
25700 #include <sys/statvfs.h>
25701 #include <sys/fstyp.h>
25704 if ac_fn_c_try_cpp "$LINENO"; then :
25705 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
25709 rm -f conftest.err conftest.$ac_ext
25710 if test $fstype = no; then
25711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25712 /* end confdefs.h. */
25714 #include <sys/statfs.h>
25715 #include <sys/fstyp.h>
25718 if ac_fn_c_try_cpp "$LINENO"; then :
25719 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
25723 rm -f conftest.err conftest.$ac_ext
25725 if test $fstype = no; then
25726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25727 /* end confdefs.h. */
25729 #include <sys/statfs.h>
25730 #include <sys/vmount.h>
25733 if ac_fn_c_try_cpp "$LINENO"; then :
25734 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
25738 rm -f conftest.err conftest.$ac_ext
25740 if test $fstype = no; then
25741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25742 /* end confdefs.h. */
25744 #include <mntent.h>
25747 if ac_fn_c_try_cpp "$LINENO"; then :
25748 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
25752 rm -f conftest.err conftest.$ac_ext
25754 if test $fstype = no; then
25755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25756 /* end confdefs.h. */
25757 #include <sys/mount.h>
25760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25761 $EGREP "f_type;" >/dev/null 2>&1; then :
25762 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
25768 if test $fstype = no; then
25769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25770 /* end confdefs.h. */
25772 #include <sys/mount.h>
25773 #include <sys/fs_types.h>
25776 if ac_fn_c_try_cpp "$LINENO"; then :
25777 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
25781 rm -f conftest.err conftest.$ac_ext
25783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
25784 $as_echo "$fstype" >&6; }
25786 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
25787 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
25789 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
25795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
25796 $as_echo_n "checking return type of signal handlers... " >&6; }
25797 if test "${ac_cv_type_signal+set}" = set; then :
25798 $as_echo_n "(cached) " >&6
25800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25801 /* end confdefs.h. */
25802 #include <sys/types.h>
25803 #include <signal.h>
25808 return *(signal (0, 0)) (0) == 1;
25813 if ac_fn_c_try_compile "$LINENO"; then :
25814 ac_cv_type_signal=int
25816 ac_cv_type_signal=void
25818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
25821 $as_echo "$ac_cv_type_signal" >&6; }
25823 cat >>confdefs.h <<_ACEOF
25824 #define RETSIGTYPE $ac_cv_type_signal
25829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
25830 $as_echo_n "checking for type of signal functions... " >&6; }
25831 if test "${bash_cv_signal_vintage+set}" = set; then :
25832 $as_echo_n "(cached) " >&6
25835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25836 /* end confdefs.h. */
25837 #include <signal.h>
25843 struct sigaction sa;
25844 sigemptyset(&ss); sigsuspend(&ss);
25845 sigaction(SIGINT, &sa, (struct sigaction *) 0);
25846 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
25852 if ac_fn_c_try_link "$LINENO"; then :
25853 bash_cv_signal_vintage="posix"
25856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25857 /* end confdefs.h. */
25858 #include <signal.h>
25863 int mask = sigmask(SIGINT);
25864 sigsetmask(mask); sigblock(mask); sigpause(mask);
25870 if ac_fn_c_try_link "$LINENO"; then :
25871 bash_cv_signal_vintage="4.2bsd"
25874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25875 /* end confdefs.h. */
25877 #include <signal.h>
25878 RETSIGTYPE foo() { }
25883 int mask = sigmask(SIGINT);
25884 sigset(SIGINT, foo); sigrelse(SIGINT);
25885 sighold(SIGINT); sigpause(SIGINT);
25891 if ac_fn_c_try_link "$LINENO"; then :
25892 bash_cv_signal_vintage="svr3"
25894 bash_cv_signal_vintage="v7"
25897 rm -f core conftest.err conftest.$ac_objext \
25898 conftest$ac_exeext conftest.$ac_ext
25901 rm -f core conftest.err conftest.$ac_objext \
25902 conftest$ac_exeext conftest.$ac_ext
25905 rm -f core conftest.err conftest.$ac_objext \
25906 conftest$ac_exeext conftest.$ac_ext
25910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
25911 $as_echo "$bash_cv_signal_vintage" >&6; }
25912 if test "$bash_cv_signal_vintage" = "posix"; then
25913 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
25915 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
25916 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
25918 elif test "$bash_cv_signal_vintage" = "svr3"; then
25919 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
25923 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
25924 if test "x$ac_cv_type_mode_t" = x""yes; then :
25928 cat >>confdefs.h <<_ACEOF
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
25935 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
25936 if test "${ac_cv_type_uid_t+set}" = set; then :
25937 $as_echo_n "(cached) " >&6
25939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25940 /* end confdefs.h. */
25941 #include <sys/types.h>
25944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25945 $EGREP "uid_t" >/dev/null 2>&1; then :
25946 ac_cv_type_uid_t=yes
25948 ac_cv_type_uid_t=no
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
25954 $as_echo "$ac_cv_type_uid_t" >&6; }
25955 if test $ac_cv_type_uid_t = no; then
25957 $as_echo "#define uid_t int" >>confdefs.h
25960 $as_echo "#define gid_t int" >>confdefs.h
25964 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
25965 if test "x$ac_cv_type_size_t" = x""yes; then :
25969 cat >>confdefs.h <<_ACEOF
25970 #define size_t unsigned int
25975 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
25976 if test "x$ac_cv_type_pid_t" = x""yes; then :
25980 cat >>confdefs.h <<_ACEOF
25986 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
25987 if test "x$ac_cv_type_off_t" = x""yes; then :
25991 cat >>confdefs.h <<_ACEOF
25992 #define off_t long int
25998 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
25999 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26001 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26004 for ac_type in 'int' 'long int' 'long long int'; do
26005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26006 /* end confdefs.h. */
26007 $ac_includes_default
26011 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26018 if ac_fn_c_try_compile "$LINENO"; then :
26020 cat >>confdefs.h <<_ACEOF
26021 #define intptr_t $ac_type
26026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26027 test -z "$ac_type" && break
26033 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26034 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
26036 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26039 for ac_type in 'unsigned int' 'unsigned long int' \
26040 'unsigned long long int'; do
26041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26042 /* end confdefs.h. */
26043 $ac_includes_default
26047 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26054 if ac_fn_c_try_compile "$LINENO"; then :
26056 cat >>confdefs.h <<_ACEOF
26057 #define uintptr_t $ac_type
26062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26063 test -z "$ac_type" && break
26068 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26069 if test "x$ac_cv_type_ino_t" = x""yes; then :
26073 cat >>confdefs.h <<_ACEOF
26074 #define ino_t unsigned long
26079 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26080 if test "x$ac_cv_type_dev_t" = x""yes; then :
26084 cat >>confdefs.h <<_ACEOF
26085 #define dev_t unsigned long
26090 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26091 if test "x$ac_cv_type_daddr_t" = x""yes; then :
26095 cat >>confdefs.h <<_ACEOF
26096 #define daddr_t long
26101 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26102 if test "x$ac_cv_type_major_t" = x""yes; then :
26106 cat >>confdefs.h <<_ACEOF
26107 #define major_t int
26112 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26113 if test "x$ac_cv_type_minor_t" = x""yes; then :
26117 cat >>confdefs.h <<_ACEOF
26118 #define minor_t int
26123 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26124 if test "x$ac_cv_type_ssize_t" = x""yes; then :
26128 cat >>confdefs.h <<_ACEOF
26129 #define ssize_t int
26134 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26135 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26137 cat >>confdefs.h <<_ACEOF
26138 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26142 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26145 case " $LIBOBJS " in
26146 *" fileblocks.$ac_objext "* ) ;;
26147 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26154 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26155 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
26157 cat >>confdefs.h <<_ACEOF
26158 #define HAVE_STRUCT_STAT_ST_RDEV 1
26162 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26168 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26169 if test "${ac_cv_struct_tm+set}" = set; then :
26170 $as_echo_n "(cached) " >&6
26172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26173 /* end confdefs.h. */
26174 #include <sys/types.h>
26181 int *p = &tm.tm_sec;
26187 if ac_fn_c_try_compile "$LINENO"; then :
26188 ac_cv_struct_tm=time.h
26190 ac_cv_struct_tm=sys/time.h
26192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26195 $as_echo "$ac_cv_struct_tm" >&6; }
26196 if test $ac_cv_struct_tm = sys/time.h; then
26198 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26203 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26204 if test "${ac_cv_c_const+set}" = set; then :
26205 $as_echo_n "(cached) " >&6
26207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26208 /* end confdefs.h. */
26213 /* FIXME: Include the comments suggested by Paul. */
26214 #ifndef __cplusplus
26215 /* Ultrix mips cc rejects this. */
26216 typedef int charset[2];
26218 /* SunOS 4.1.1 cc rejects this. */
26219 char const *const *pcpcc;
26221 /* NEC SVR4.0.2 mips cc rejects this. */
26222 struct point {int x, y;};
26223 static struct point const zero = {0,0};
26224 /* AIX XL C 1.02.0.0 rejects this.
26225 It does not let you subtract one const X* pointer from another in
26226 an arm of an if-expression whose if-part is not a constant
26228 const char *g = "string";
26229 pcpcc = &g + (g ? g-g : 0);
26230 /* HPUX 7.0 cc rejects these. */
26232 ppc = (char**) pcpcc;
26233 pcpcc = (char const *const *) ppc;
26234 { /* SCO 3.2v4 cc rejects this. */
26236 char const *s = 0 ? (char *) 0 : (char const *) 0;
26241 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26242 int x[] = {25, 17};
26243 const int *foo = &x[0];
26246 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26247 typedef const int *iptr;
26251 { /* AIX XL C 1.02.0.0 rejects this saying
26252 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26253 struct s { int j; const int *ap[3]; };
26254 struct s *b; b->j = 5;
26256 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26257 const int foo = 10;
26258 if (!foo) return 0;
26260 return !cs[0] && !zero.x;
26267 if ac_fn_c_try_compile "$LINENO"; then :
26272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26275 $as_echo "$ac_cv_c_const" >&6; }
26276 if test $ac_cv_c_const = no; then
26278 $as_echo "#define const /**/" >>confdefs.h
26283 # The cast to long int works around a bug in the HP C Compiler
26284 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26285 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26286 # This bug is HP SR number 8606223364.
26287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26288 $as_echo_n "checking size of char... " >&6; }
26289 if test "${ac_cv_sizeof_char+set}" = set; then :
26290 $as_echo_n "(cached) " >&6
26292 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
26295 if test "$ac_cv_type_char" = yes; then
26296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26298 { as_fn_set_status 77
26299 as_fn_error "cannot compute sizeof (char)
26300 See \`config.log' for more details." "$LINENO" 5; }; }
26302 ac_cv_sizeof_char=0
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26308 $as_echo "$ac_cv_sizeof_char" >&6; }
26312 cat >>confdefs.h <<_ACEOF
26313 #define SIZEOF_CHAR $ac_cv_sizeof_char
26317 # The cast to long int works around a bug in the HP C Compiler
26318 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26319 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26320 # This bug is HP SR number 8606223364.
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26322 $as_echo_n "checking size of short int... " >&6; }
26323 if test "${ac_cv_sizeof_short_int+set}" = set; then :
26324 $as_echo_n "(cached) " >&6
26326 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
26329 if test "$ac_cv_type_short_int" = yes; then
26330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26332 { as_fn_set_status 77
26333 as_fn_error "cannot compute sizeof (short int)
26334 See \`config.log' for more details." "$LINENO" 5; }; }
26336 ac_cv_sizeof_short_int=0
26341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26342 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26346 cat >>confdefs.h <<_ACEOF
26347 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26351 # The cast to long int works around a bug in the HP C Compiler
26352 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26353 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26354 # This bug is HP SR number 8606223364.
26355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26356 $as_echo_n "checking size of int... " >&6; }
26357 if test "${ac_cv_sizeof_int+set}" = set; then :
26358 $as_echo_n "(cached) " >&6
26360 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
26363 if test "$ac_cv_type_int" = yes; then
26364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26366 { as_fn_set_status 77
26367 as_fn_error "cannot compute sizeof (int)
26368 See \`config.log' for more details." "$LINENO" 5; }; }
26375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26376 $as_echo "$ac_cv_sizeof_int" >&6; }
26380 cat >>confdefs.h <<_ACEOF
26381 #define SIZEOF_INT $ac_cv_sizeof_int
26385 # The cast to long int works around a bug in the HP C Compiler
26386 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26387 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26388 # This bug is HP SR number 8606223364.
26389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26390 $as_echo_n "checking size of long int... " >&6; }
26391 if test "${ac_cv_sizeof_long_int+set}" = set; then :
26392 $as_echo_n "(cached) " >&6
26394 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
26397 if test "$ac_cv_type_long_int" = yes; then
26398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26400 { as_fn_set_status 77
26401 as_fn_error "cannot compute sizeof (long int)
26402 See \`config.log' for more details." "$LINENO" 5; }; }
26404 ac_cv_sizeof_long_int=0
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26410 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26414 cat >>confdefs.h <<_ACEOF
26415 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26419 # The cast to long int works around a bug in the HP C Compiler
26420 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26421 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26422 # This bug is HP SR number 8606223364.
26423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26424 $as_echo_n "checking size of long long int... " >&6; }
26425 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
26426 $as_echo_n "(cached) " >&6
26428 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
26431 if test "$ac_cv_type_long_long_int" = yes; then
26432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26434 { as_fn_set_status 77
26435 as_fn_error "cannot compute sizeof (long long int)
26436 See \`config.log' for more details." "$LINENO" 5; }; }
26438 ac_cv_sizeof_long_long_int=0
26443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26444 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26448 cat >>confdefs.h <<_ACEOF
26449 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26453 # The cast to long int works around a bug in the HP C Compiler
26454 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26455 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26456 # This bug is HP SR number 8606223364.
26457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26458 $as_echo_n "checking size of int *... " >&6; }
26459 if test "${ac_cv_sizeof_int_p+set}" = set; then :
26460 $as_echo_n "(cached) " >&6
26462 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
26465 if test "$ac_cv_type_int_p" = yes; then
26466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26468 { as_fn_set_status 77
26469 as_fn_error "cannot compute sizeof (int *)
26470 See \`config.log' for more details." "$LINENO" 5; }; }
26472 ac_cv_sizeof_int_p=0
26477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26478 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26482 cat >>confdefs.h <<_ACEOF
26483 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26489 $as_echo_n "checking for u_int type... " >&6; }
26490 if test "${ac_cv_have_u_int+set}" = set; then :
26491 $as_echo_n "(cached) " >&6
26494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26495 /* end confdefs.h. */
26497 #include <sys/types.h>
26509 if ac_fn_c_try_compile "$LINENO"; then :
26511 ac_cv_have_u_int="yes"
26515 ac_cv_have_u_int="no"
26519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
26524 $as_echo "$ac_cv_have_u_int" >&6; }
26525 if test "x$ac_cv_have_u_int" = "xyes" ; then
26526 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
26531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
26532 $as_echo_n "checking for intmax_t type... " >&6; }
26533 if test "${ac_cv_have_intmax_t+set}" = set; then :
26534 $as_echo_n "(cached) " >&6
26537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26538 /* end confdefs.h. */
26540 #include <sys/types.h>
26552 if ac_fn_c_try_compile "$LINENO"; then :
26554 ac_cv_have_intmax_t="yes"
26558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26559 /* end confdefs.h. */
26561 #include <stdint.h>
26573 if ac_fn_c_try_compile "$LINENO"; then :
26575 ac_cv_have_intmax_t="yes"
26579 ac_cv_have_intmax_t="no"
26583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
26592 $as_echo "$ac_cv_have_intmax_t" >&6; }
26593 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26594 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
26599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
26600 $as_echo_n "checking for u_intmax_t type... " >&6; }
26601 if test "${ac_cv_have_u_intmax_t+set}" = set; then :
26602 $as_echo_n "(cached) " >&6
26605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26606 /* end confdefs.h. */
26608 #include <sys/types.h>
26614 u_intmax_t a; a = 1;
26620 if ac_fn_c_try_compile "$LINENO"; then :
26622 ac_cv_have_u_intmax_t="yes"
26626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26627 /* end confdefs.h. */
26629 #include <stdint.h>
26635 u_intmax_t a; a = 1;
26641 if ac_fn_c_try_compile "$LINENO"; then :
26643 ac_cv_have_u_intmax_t="yes"
26647 ac_cv_have_u_intmax_t="no"
26651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
26660 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
26661 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26662 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
26668 $as_echo_n "checking for intXX_t types... " >&6; }
26669 if test "${ac_cv_have_intxx_t+set}" = set; then :
26670 $as_echo_n "(cached) " >&6
26673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26674 /* end confdefs.h. */
26676 #include <sys/types.h>
26682 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26688 if ac_fn_c_try_compile "$LINENO"; then :
26690 ac_cv_have_intxx_t="yes"
26694 ac_cv_have_intxx_t="no"
26698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
26703 $as_echo "$ac_cv_have_intxx_t" >&6; }
26704 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26705 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
26711 $as_echo_n "checking for int64_t type... " >&6; }
26712 if test "${ac_cv_have_int64_t+set}" = set; then :
26713 $as_echo_n "(cached) " >&6
26716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26717 /* end confdefs.h. */
26719 #include <sys/types.h>
26731 if ac_fn_c_try_compile "$LINENO"; then :
26733 ac_cv_have_int64_t="yes"
26737 ac_cv_have_int64_t="no"
26741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
26746 $as_echo "$ac_cv_have_int64_t" >&6; }
26747 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26748 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
26753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
26754 $as_echo_n "checking for u_intXX_t types... " >&6; }
26755 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
26756 $as_echo_n "(cached) " >&6
26759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26760 /* end confdefs.h. */
26762 #include <sys/types.h>
26768 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26774 if ac_fn_c_try_compile "$LINENO"; then :
26776 ac_cv_have_u_intxx_t="yes"
26780 ac_cv_have_u_intxx_t="no"
26784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
26789 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
26790 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26791 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
26796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
26797 $as_echo_n "checking for u_int64_t types... " >&6; }
26798 if test "${ac_cv_have_u_int64_t+set}" = set; then :
26799 $as_echo_n "(cached) " >&6
26802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26803 /* end confdefs.h. */
26805 #include <sys/types.h>
26811 u_int64_t a; a = 1;
26817 if ac_fn_c_try_compile "$LINENO"; then :
26819 ac_cv_have_u_int64_t="yes"
26823 ac_cv_have_u_int64_t="no"
26827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
26832 $as_echo "$ac_cv_have_u_int64_t" >&6; }
26833 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26834 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
26839 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26840 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26843 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
26844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26845 /* end confdefs.h. */
26847 #include <sys/bitypes.h>
26853 int8_t a; int16_t b; int32_t c;
26854 u_int8_t e; u_int16_t f; u_int32_t g;
26855 a = b = c = e = f = g = 1;
26861 if ac_fn_c_try_compile "$LINENO"; then :
26863 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
26865 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
26867 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
26869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26870 $as_echo "yes" >&6; }
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26875 $as_echo "no" >&6; }
26879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26882 if test -z "$have_u_intxx_t" ; then
26883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
26884 $as_echo_n "checking for uintXX_t types... " >&6; }
26885 if test "${ac_cv_have_uintxx_t+set}" = set; then :
26886 $as_echo_n "(cached) " >&6
26889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26890 /* end confdefs.h. */
26892 #include <sys/types.h>
26898 uint8_t a; uint16_t b;
26899 uint32_t c; a = b = c = 1;
26905 if ac_fn_c_try_compile "$LINENO"; then :
26907 ac_cv_have_uintxx_t="yes"
26911 ac_cv_have_uintxx_t="no"
26915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
26920 $as_echo "$ac_cv_have_uintxx_t" >&6; }
26921 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26922 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
26927 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26928 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26931 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
26932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26933 /* end confdefs.h. */
26935 #include <sys/bitypes.h>
26941 int64_t a; u_int64_t b;
26948 if ac_fn_c_try_compile "$LINENO"; then :
26950 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
26952 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
26954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26955 $as_echo "yes" >&6; }
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26960 $as_echo "no" >&6; }
26964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26967 if (test -z "$have_uintxx_t" && \
26968 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
26971 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
26972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26973 /* end confdefs.h. */
26975 #include <sys/bitypes.h>
26981 uint8_t a; uint16_t b;
26982 uint32_t c; a = b = c = 1;
26988 if ac_fn_c_try_compile "$LINENO"; then :
26990 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
26992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26993 $as_echo "yes" >&6; }
26997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26998 $as_echo "no" >&6; }
27002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27021 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27022 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27023 eval as_val=\$$as_ac_var
27024 if test "x$as_val" = x""yes; then :
27025 cat >>confdefs.h <<_ACEOF
27026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27030 echo 'configure: cannot find needed function.'; exit 1
27036 for ac_func in fchdir
27038 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27039 if test "x$ac_cv_func_fchdir" = x""yes; then :
27040 cat >>confdefs.h <<_ACEOF
27041 #define HAVE_FCHDIR 1
27043 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27048 for ac_func in strtoll
27050 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27051 if test "x$ac_cv_func_strtoll" = x""yes; then :
27052 cat >>confdefs.h <<_ACEOF
27053 #define HAVE_STRTOLL 1
27055 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27060 for ac_func in posix_fadvise
27062 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27063 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
27064 cat >>confdefs.h <<_ACEOF
27065 #define HAVE_POSIX_FADVISE 1
27071 for ac_func in fdatasync
27073 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27074 if test "x$ac_cv_func_fdatasync" = x""yes; then :
27075 cat >>confdefs.h <<_ACEOF
27076 #define HAVE_FDATASYNC 1
27083 for ac_func in chflags
27085 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27086 if test "x$ac_cv_func_chflags" = x""yes; then :
27087 cat >>confdefs.h <<_ACEOF
27088 #define HAVE_CHFLAGS 1
27095 for ac_func in snprintf vsnprintf gethostid fseeko
27097 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27098 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27099 eval as_val=\$$as_ac_var
27100 if test "x$as_val" = x""yes; then :
27101 cat >>confdefs.h <<_ACEOF
27102 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27110 $as_echo_n "checking for va_copy... " >&6; }
27111 if test "${ba_cv_va_copy+set}" = set; then :
27112 $as_echo_n "(cached) " >&6
27115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27116 /* end confdefs.h. */
27118 #include <stdarg.h>
27119 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27120 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27126 call_use_va_copy(1,2,3)
27132 if ac_fn_c_try_link "$LINENO"; then :
27142 rm -f core conftest.err conftest.$ac_objext \
27143 conftest$ac_exeext conftest.$ac_ext
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27148 $as_echo "$ba_cv_va_copy" >&6; }
27149 test $ba_cv_va_copy = yes &&
27150 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27153 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27155 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27156 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27157 eval as_val=\$$as_ac_var
27158 if test "x$as_val" = x""yes; then :
27159 cat >>confdefs.h <<_ACEOF
27160 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27167 # If resolver functions are not in libc check for -lnsl or -lresolv.
27168 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27169 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
27170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27171 $as_echo "using libc's resolver" >&6; }
27173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27174 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27175 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
27176 $as_echo_n "(cached) " >&6
27178 ac_check_lib_save_LIBS=$LIBS
27180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27181 /* end confdefs.h. */
27183 /* Override any GCC internal prototype to avoid an error.
27184 Use char because int might match the return type of a GCC
27185 builtin and then its argument prototype would still apply. */
27189 char gethostbyname_r ();
27193 return gethostbyname_r ();
27198 if ac_fn_c_try_link "$LINENO"; then :
27199 ac_cv_lib_nsl_gethostbyname_r=yes
27201 ac_cv_lib_nsl_gethostbyname_r=no
27203 rm -f core conftest.err conftest.$ac_objext \
27204 conftest$ac_exeext conftest.$ac_ext
27205 LIBS=$ac_check_lib_save_LIBS
27207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27208 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27209 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
27210 cat >>confdefs.h <<_ACEOF
27211 #define HAVE_LIBNSL 1
27218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27219 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27220 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then :
27221 $as_echo_n "(cached) " >&6
27223 ac_check_lib_save_LIBS=$LIBS
27224 LIBS="-lresolv $LIBS"
27225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27226 /* end confdefs.h. */
27228 /* Override any GCC internal prototype to avoid an error.
27229 Use char because int might match the return type of a GCC
27230 builtin and then its argument prototype would still apply. */
27234 char gethostbyname_r ();
27238 return gethostbyname_r ();
27243 if ac_fn_c_try_link "$LINENO"; then :
27244 ac_cv_lib_resolv_gethostbyname_r=yes
27246 ac_cv_lib_resolv_gethostbyname_r=no
27248 rm -f core conftest.err conftest.$ac_objext \
27249 conftest$ac_exeext conftest.$ac_ext
27250 LIBS=$ac_check_lib_save_LIBS
27252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27253 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27254 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then :
27255 cat >>confdefs.h <<_ACEOF
27256 #define HAVE_LIBRESOLV 1
27259 LIBS="-lresolv $LIBS"
27266 for ac_func in inet_pton
27268 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27269 if test "x$ac_cv_func_inet_pton" = x""yes; then :
27270 cat >>confdefs.h <<_ACEOF
27271 #define HAVE_INET_PTON 1
27273 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27278 for ac_func in inet_ntop
27280 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27281 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
27282 cat >>confdefs.h <<_ACEOF
27283 #define HAVE_INET_NTOP 1
27285 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27290 for ac_func in gethostbyname2
27292 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27293 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
27294 cat >>confdefs.h <<_ACEOF
27295 #define HAVE_GETHOSTBYNAME2 1
27297 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27304 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27305 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then :
27306 $as_echo_n "(cached) " >&6
27309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27310 /* end confdefs.h. */
27312 #include <sys/socket.h>
27318 struct sockaddr s; s.sa_len;
27324 if ac_fn_c_try_compile "$LINENO"; then :
27326 ac_cv_struct_sockaddr_sa_len=yes
27329 ac_cv_struct_sockaddr_sa_len=no
27333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27338 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27340 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27342 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27346 for ac_func in strftime
27348 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27349 if test "x$ac_cv_func_strftime" = x""yes; then :
27350 cat >>confdefs.h <<_ACEOF
27351 #define HAVE_STRFTIME 1
27355 # strftime is in -lintl on SCO UNIX.
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27357 $as_echo_n "checking for strftime in -lintl... " >&6; }
27358 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
27359 $as_echo_n "(cached) " >&6
27361 ac_check_lib_save_LIBS=$LIBS
27362 LIBS="-lintl $LIBS"
27363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27364 /* end confdefs.h. */
27366 /* Override any GCC internal prototype to avoid an error.
27367 Use char because int might match the return type of a GCC
27368 builtin and then its argument prototype would still apply. */
27376 return strftime ();
27381 if ac_fn_c_try_link "$LINENO"; then :
27382 ac_cv_lib_intl_strftime=yes
27384 ac_cv_lib_intl_strftime=no
27386 rm -f core conftest.err conftest.$ac_objext \
27387 conftest$ac_exeext conftest.$ac_ext
27388 LIBS=$ac_check_lib_save_LIBS
27390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27391 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27392 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
27393 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27395 LIBS="-lintl $LIBS"
27401 for ac_func in vprintf
27403 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27404 if test "x$ac_cv_func_vprintf" = x""yes; then :
27405 cat >>confdefs.h <<_ACEOF
27406 #define HAVE_VPRINTF 1
27409 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27410 if test "x$ac_cv_func__doprnt" = x""yes; then :
27412 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27420 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27421 # for constant arguments. Useless!
27422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27423 $as_echo_n "checking for working alloca.h... " >&6; }
27424 if test "${ac_cv_working_alloca_h+set}" = set; then :
27425 $as_echo_n "(cached) " >&6
27427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27428 /* end confdefs.h. */
27429 #include <alloca.h>
27433 char *p = (char *) alloca (2 * sizeof (int));
27439 if ac_fn_c_try_link "$LINENO"; then :
27440 ac_cv_working_alloca_h=yes
27442 ac_cv_working_alloca_h=no
27444 rm -f core conftest.err conftest.$ac_objext \
27445 conftest$ac_exeext conftest.$ac_ext
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27448 $as_echo "$ac_cv_working_alloca_h" >&6; }
27449 if test $ac_cv_working_alloca_h = yes; then
27451 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
27455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
27456 $as_echo_n "checking for alloca... " >&6; }
27457 if test "${ac_cv_func_alloca_works+set}" = set; then :
27458 $as_echo_n "(cached) " >&6
27460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27461 /* end confdefs.h. */
27463 # define alloca __builtin_alloca
27466 # include <malloc.h>
27467 # define alloca _alloca
27469 # ifdef HAVE_ALLOCA_H
27470 # include <alloca.h>
27475 # ifndef alloca /* predefined by HP cc +Olibcalls */
27486 char *p = (char *) alloca (1);
27492 if ac_fn_c_try_link "$LINENO"; then :
27493 ac_cv_func_alloca_works=yes
27495 ac_cv_func_alloca_works=no
27497 rm -f core conftest.err conftest.$ac_objext \
27498 conftest$ac_exeext conftest.$ac_ext
27500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
27501 $as_echo "$ac_cv_func_alloca_works" >&6; }
27503 if test $ac_cv_func_alloca_works = yes; then
27505 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27508 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27509 # that cause trouble. Some versions do not even contain alloca or
27510 # contain a buggy version. If you still want to use their alloca,
27511 # use ar to extract alloca.o from them instead of compiling alloca.c.
27513 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27515 $as_echo "#define C_ALLOCA 1" >>confdefs.h
27518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
27519 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27520 if test "${ac_cv_os_cray+set}" = set; then :
27521 $as_echo_n "(cached) " >&6
27523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27524 /* end confdefs.h. */
27525 #if defined CRAY && ! defined CRAY2
27532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27533 $EGREP "webecray" >/dev/null 2>&1; then :
27541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
27542 $as_echo "$ac_cv_os_cray" >&6; }
27543 if test $ac_cv_os_cray = yes; then
27544 for ac_func in _getb67 GETB67 getb67; do
27545 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27546 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27547 eval as_val=\$$as_ac_var
27548 if test "x$as_val" = x""yes; then :
27550 cat >>confdefs.h <<_ACEOF
27551 #define CRAY_STACKSEG_END $ac_func
27560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
27561 $as_echo_n "checking stack direction for C alloca... " >&6; }
27562 if test "${ac_cv_c_stack_direction+set}" = set; then :
27563 $as_echo_n "(cached) " >&6
27565 if test "$cross_compiling" = yes; then :
27566 ac_cv_c_stack_direction=0
27568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27569 /* end confdefs.h. */
27570 $ac_includes_default
27572 find_stack_direction ()
27574 static char *addr = 0;
27579 return find_stack_direction ();
27582 return (&dummy > addr) ? 1 : -1;
27588 return find_stack_direction () < 0;
27591 if ac_fn_c_try_run "$LINENO"; then :
27592 ac_cv_c_stack_direction=1
27594 ac_cv_c_stack_direction=-1
27596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27597 conftest.$ac_objext conftest.beam conftest.$ac_ext
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
27602 $as_echo "$ac_cv_c_stack_direction" >&6; }
27603 cat >>confdefs.h <<_ACEOF
27604 #define STACK_DIRECTION $ac_cv_c_stack_direction
27610 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
27611 # -lseq on Dynix/PTX, -lgen on Unixware.
27612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
27613 $as_echo_n "checking for library containing getmntent... " >&6; }
27614 if test "${ac_cv_search_getmntent+set}" = set; then :
27615 $as_echo_n "(cached) " >&6
27617 ac_func_search_save_LIBS=$LIBS
27618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27619 /* end confdefs.h. */
27621 /* Override any GCC internal prototype to avoid an error.
27622 Use char because int might match the return type of a GCC
27623 builtin and then its argument prototype would still apply. */
27631 return getmntent ();
27636 for ac_lib in '' sun seq gen; do
27637 if test -z "$ac_lib"; then
27638 ac_res="none required"
27641 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27643 if ac_fn_c_try_link "$LINENO"; then :
27644 ac_cv_search_getmntent=$ac_res
27646 rm -f core conftest.err conftest.$ac_objext \
27648 if test "${ac_cv_search_getmntent+set}" = set; then :
27652 if test "${ac_cv_search_getmntent+set}" = set; then :
27655 ac_cv_search_getmntent=no
27657 rm conftest.$ac_ext
27658 LIBS=$ac_func_search_save_LIBS
27660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
27661 $as_echo "$ac_cv_search_getmntent" >&6; }
27662 ac_res=$ac_cv_search_getmntent
27663 if test "$ac_res" != no; then :
27664 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27665 ac_cv_func_getmntent=yes
27667 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
27670 ac_cv_func_getmntent=no
27674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
27675 $as_echo_n "checking whether closedir returns void... " >&6; }
27676 if test "${ac_cv_func_closedir_void+set}" = set; then :
27677 $as_echo_n "(cached) " >&6
27679 if test "$cross_compiling" = yes; then :
27680 ac_cv_func_closedir_void=yes
27682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27683 /* end confdefs.h. */
27684 $ac_includes_default
27685 #include <$ac_header_dirent>
27686 #ifndef __cplusplus
27693 return closedir (opendir (".")) != 0;
27698 if ac_fn_c_try_run "$LINENO"; then :
27699 ac_cv_func_closedir_void=no
27701 ac_cv_func_closedir_void=yes
27703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27704 conftest.$ac_objext conftest.beam conftest.$ac_ext
27708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
27709 $as_echo "$ac_cv_func_closedir_void" >&6; }
27710 if test $ac_cv_func_closedir_void = yes; then
27712 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
27716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27717 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27718 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
27719 $as_echo_n "(cached) " >&6
27721 if test "$cross_compiling" = yes; then :
27722 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
27724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27725 /* end confdefs.h. */
27726 $ac_includes_default
27730 /* If this system has a BSD-style setpgrp which takes arguments,
27731 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
27732 exit successfully. */
27733 return setpgrp (1,1) != -1;
27738 if ac_fn_c_try_run "$LINENO"; then :
27739 ac_cv_func_setpgrp_void=no
27741 ac_cv_func_setpgrp_void=yes
27743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27744 conftest.$ac_objext conftest.beam conftest.$ac_ext
27748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
27749 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
27750 if test $ac_cv_func_setpgrp_void = yes; then
27752 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
27755 # AC_FUNC_FNMATCH dnl use local version
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
27758 $as_echo_n "checking for gettext in -lintl... " >&6; }
27759 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
27760 $as_echo_n "(cached) " >&6
27762 ac_check_lib_save_LIBS=$LIBS
27763 LIBS="-lintl $LIBS"
27764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27765 /* end confdefs.h. */
27767 /* Override any GCC internal prototype to avoid an error.
27768 Use char because int might match the return type of a GCC
27769 builtin and then its argument prototype would still apply. */
27782 if ac_fn_c_try_link "$LINENO"; then :
27783 ac_cv_lib_intl_gettext=yes
27785 ac_cv_lib_intl_gettext=no
27787 rm -f core conftest.err conftest.$ac_objext \
27788 conftest$ac_exeext conftest.$ac_ext
27789 LIBS=$ac_check_lib_save_LIBS
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
27792 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
27793 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
27794 LIBS="$LIBS -lintl"
27798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
27799 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
27800 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
27801 $as_echo_n "(cached) " >&6
27803 ac_check_lib_save_LIBS=$LIBS
27805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27806 /* end confdefs.h. */
27808 /* Override any GCC internal prototype to avoid an error.
27809 Use char because int might match the return type of a GCC
27810 builtin and then its argument prototype would still apply. */
27818 return getpwnam ();
27823 if ac_fn_c_try_link "$LINENO"; then :
27824 ac_cv_lib_sun_getpwnam=yes
27826 ac_cv_lib_sun_getpwnam=no
27828 rm -f core conftest.err conftest.$ac_objext \
27829 conftest$ac_exeext conftest.$ac_ext
27830 LIBS=$ac_check_lib_save_LIBS
27832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
27833 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
27834 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
27835 cat >>confdefs.h <<_ACEOF
27836 #define HAVE_LIBSUN 1
27844 for ac_header in zlib.h
27846 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
27847 if test "x$ac_cv_header_zlib_h" = x""yes; then :
27848 cat >>confdefs.h <<_ACEOF
27849 #define HAVE_ZLIB_H 1
27856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
27857 $as_echo_n "checking for deflate in -lz... " >&6; }
27858 if test "${ac_cv_lib_z_deflate+set}" = set; then :
27859 $as_echo_n "(cached) " >&6
27861 ac_check_lib_save_LIBS=$LIBS
27863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27864 /* end confdefs.h. */
27866 /* Override any GCC internal prototype to avoid an error.
27867 Use char because int might match the return type of a GCC
27868 builtin and then its argument prototype would still apply. */
27881 if ac_fn_c_try_link "$LINENO"; then :
27882 ac_cv_lib_z_deflate=yes
27884 ac_cv_lib_z_deflate=no
27886 rm -f core conftest.err conftest.$ac_objext \
27887 conftest$ac_exeext conftest.$ac_ext
27888 LIBS=$ac_check_lib_save_LIBS
27890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
27891 $as_echo "$ac_cv_lib_z_deflate" >&6; }
27892 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
27897 if test x$FDLIBS = x-lz; then
27898 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
27904 # Check whether --enable-acl was given.
27905 if test "${enable_acl+set}" = set; then :
27906 enableval=$enable_acl;
27907 if test x$enableval = xyes; then
27909 elif test x$enableval = xno; then
27918 have_extended_acl=no
27919 if test x$support_acl = xyes -o x$support_acl = xauto; then
27920 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
27921 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
27923 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
27928 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
27929 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
27935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
27936 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
27937 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
27938 $as_echo_n "(cached) " >&6
27940 ac_check_lib_save_LIBS=$LIBS
27942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27943 /* end confdefs.h. */
27945 /* Override any GCC internal prototype to avoid an error.
27946 Use char because int might match the return type of a GCC
27947 builtin and then its argument prototype would still apply. */
27951 char acl_get_file ();
27955 return acl_get_file ();
27960 if ac_fn_c_try_link "$LINENO"; then :
27961 ac_cv_lib_acl_acl_get_file=yes
27963 ac_cv_lib_acl_acl_get_file=no
27965 rm -f core conftest.err conftest.$ac_objext \
27966 conftest$ac_exeext conftest.$ac_ext
27967 LIBS=$ac_check_lib_save_LIBS
27969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
27970 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
27971 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
27974 FDLIBS="-lacl $FDLIBS"
27978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
27979 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
27980 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
27981 $as_echo_n "(cached) " >&6
27983 ac_check_lib_save_LIBS=$LIBS
27984 LIBS="-lpacl $LIBS"
27985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27986 /* end confdefs.h. */
27988 /* Override any GCC internal prototype to avoid an error.
27989 Use char because int might match the return type of a GCC
27990 builtin and then its argument prototype would still apply. */
27994 char acl_get_file ();
27998 return acl_get_file ();
28003 if ac_fn_c_try_link "$LINENO"; then :
28004 ac_cv_lib_pacl_acl_get_file=yes
28006 ac_cv_lib_pacl_acl_get_file=no
28008 rm -f core conftest.err conftest.$ac_objext \
28009 conftest$ac_exeext conftest.$ac_ext
28010 LIBS=$ac_check_lib_save_LIBS
28012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28013 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28014 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
28017 FDLIBS="-lpacl $FDLIBS"
28021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28022 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28023 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
28024 $as_echo_n "(cached) " >&6
28026 ac_check_lib_save_LIBS=$LIBS
28028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28029 /* end confdefs.h. */
28031 /* Override any GCC internal prototype to avoid an error.
28032 Use char because int might match the return type of a GCC
28033 builtin and then its argument prototype would still apply. */
28041 return acltotext ();
28046 if ac_fn_c_try_link "$LINENO"; then :
28047 ac_cv_lib_sec_acltotext=yes
28049 ac_cv_lib_sec_acltotext=no
28051 rm -f core conftest.err conftest.$ac_objext \
28052 conftest$ac_exeext conftest.$ac_ext
28053 LIBS=$ac_check_lib_save_LIBS
28055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28056 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28057 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
28060 FDLIBS="-lsec $FDLIBS"
28062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28063 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28064 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
28065 $as_echo_n "(cached) " >&6
28067 ac_check_lib_save_LIBS=$LIBS
28069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28070 /* end confdefs.h. */
28072 /* Override any GCC internal prototype to avoid an error.
28073 Use char because int might match the return type of a GCC
28074 builtin and then its argument prototype would still apply. */
28078 char acl_totext ();
28082 return acl_totext ();
28087 if ac_fn_c_try_link "$LINENO"; then :
28088 ac_cv_lib_sec_acl_totext=yes
28090 ac_cv_lib_sec_acl_totext=no
28092 rm -f core conftest.err conftest.$ac_objext \
28093 conftest$ac_exeext conftest.$ac_ext
28094 LIBS=$ac_check_lib_save_LIBS
28096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28097 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28098 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
28100 have_extended_acl=yes
28122 if test x$support_acl = xyes -a $have_acl != yes; then
28123 as_fn_error "acl support explicitly enabled but no supported acl implementation found,
28124 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28126 if test $have_acl = yes; then
28128 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28132 if test $have_extended_acl = yes; then
28134 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28141 # Check whether --enable-xattr was given.
28142 if test "${enable_xattr+set}" = set; then :
28143 enableval=$enable_xattr;
28144 if test x$enableval = xyes; then
28146 elif test x$enableval = xno; then
28155 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28156 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28157 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
28159 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28164 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28165 if test "x$ac_cv_header_libutil_h" = x""yes; then :
28167 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28172 for ac_func in extattr_get_link extattr_set_link extattr_list_link
28174 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28175 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28176 eval as_val=\$$as_ac_var
28177 if test "x$as_val" = x""yes; then :
28178 cat >>confdefs.h <<_ACEOF
28179 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28184 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28187 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28190 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28198 if test $have_xattr = no; then
28199 for ac_func in extattr_get_file extattr_set_file extattr_list_file
28201 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28202 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28203 eval as_val=\$$as_ac_var
28204 if test "x$as_val" = x""yes; then :
28205 cat >>confdefs.h <<_ACEOF
28206 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28211 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28214 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28217 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28226 if test $have_xattr = yes; then
28227 have_extattr_string_in_libc=no
28228 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28230 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28231 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28232 eval as_val=\$$as_ac_var
28233 if test "x$as_val" = x""yes; then :
28234 cat >>confdefs.h <<_ACEOF
28235 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28238 have_extattr_string_in_libc=yes
28240 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28243 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28251 if test $have_extattr_string_in_libc = no; then
28252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28253 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28254 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
28255 $as_echo_n "(cached) " >&6
28257 ac_check_lib_save_LIBS=$LIBS
28258 LIBS="-lutil $LIBS"
28259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28260 /* end confdefs.h. */
28262 /* Override any GCC internal prototype to avoid an error.
28263 Use char because int might match the return type of a GCC
28264 builtin and then its argument prototype would still apply. */
28268 char extattr_namespace_to_string extattr_string_to_namespace ();
28272 return extattr_namespace_to_string extattr_string_to_namespace ();
28277 if ac_fn_c_try_link "$LINENO"; then :
28278 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28280 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28282 rm -f core conftest.err conftest.$ac_objext \
28283 conftest$ac_exeext conftest.$ac_ext
28284 LIBS=$ac_check_lib_save_LIBS
28286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28287 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28288 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
28291 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28294 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28296 FDLIBS="-lutil $FDLIBS"
28304 if test $have_xattr = no; then
28305 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
28306 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
28308 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
28313 for ac_func in llistxattr lgetxattr lsetxattr
28315 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28316 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28317 eval as_val=\$$as_ac_var
28318 if test "x$as_val" = x""yes; then :
28319 cat >>confdefs.h <<_ACEOF
28320 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28325 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
28328 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
28331 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
28339 if test $have_xattr = no; then
28340 for ac_func in listxattr getxattr setxattr
28342 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28343 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28344 eval as_val=\$$as_ac_var
28345 if test "x$as_val" = x""yes; then :
28346 cat >>confdefs.h <<_ACEOF
28347 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28352 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
28355 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
28358 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
28368 if test $have_xattr = no; then
28369 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
28370 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
28372 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
28377 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
28378 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
28380 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
28385 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
28386 if test "x$ac_cv_header_attr_h" = x""yes; then :
28388 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
28394 for ac_func in openat fstatat unlinkat fchownat futimesat
28396 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28397 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28398 eval as_val=\$$as_ac_var
28399 if test "x$as_val" = x""yes; then :
28400 cat >>confdefs.h <<_ACEOF
28401 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28406 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
28409 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
28412 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
28415 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
28418 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
28426 if test $have_xattr = yes; then
28427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
28428 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
28429 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
28430 $as_echo_n "(cached) " >&6
28432 ac_check_lib_save_LIBS=$LIBS
28433 LIBS="-lnvpair $LIBS"
28434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28435 /* end confdefs.h. */
28437 /* Override any GCC internal prototype to avoid an error.
28438 Use char because int might match the return type of a GCC
28439 builtin and then its argument prototype would still apply. */
28443 char nvlist_next_nvpair ();
28447 return nvlist_next_nvpair ();
28452 if ac_fn_c_try_link "$LINENO"; then :
28453 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
28455 ac_cv_lib_nvpair_nvlist_next_nvpair=no
28457 rm -f core conftest.err conftest.$ac_objext \
28458 conftest$ac_exeext conftest.$ac_ext
28459 LIBS=$ac_check_lib_save_LIBS
28461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
28462 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
28463 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
28466 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
28468 FDLIBS="-lnvpair $FDLIBS"
28476 if test x$support_xattr = xyes -a $have_xattr != yes; then
28477 as_fn_error "xattr support explicitly enabled but no supported xattr implementation found,
28478 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
28480 if test $have_xattr = yes; then
28482 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
28489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
28490 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
28491 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
28492 $as_echo_n "(cached) " >&6
28494 ac_check_lib_save_LIBS=$LIBS
28495 LIBS="-lpthread $LIBS"
28496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28497 /* end confdefs.h. */
28499 /* Override any GCC internal prototype to avoid an error.
28500 Use char because int might match the return type of a GCC
28501 builtin and then its argument prototype would still apply. */
28505 char pthread_create ();
28509 return pthread_create ();
28514 if ac_fn_c_try_link "$LINENO"; then :
28515 ac_cv_lib_pthread_pthread_create=yes
28517 ac_cv_lib_pthread_pthread_create=no
28519 rm -f core conftest.err conftest.$ac_objext \
28520 conftest$ac_exeext conftest.$ac_ext
28521 LIBS=$ac_check_lib_save_LIBS
28523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
28524 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
28525 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
28526 PTHREAD_LIB="-lpthread"
28529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
28530 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
28531 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
28532 $as_echo_n "(cached) " >&6
28534 ac_check_lib_save_LIBS=$LIBS
28535 LIBS="-lpthreads $LIBS"
28536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28537 /* end confdefs.h. */
28539 /* Override any GCC internal prototype to avoid an error.
28540 Use char because int might match the return type of a GCC
28541 builtin and then its argument prototype would still apply. */
28545 char pthread_create ();
28549 return pthread_create ();
28554 if ac_fn_c_try_link "$LINENO"; then :
28555 ac_cv_lib_pthreads_pthread_create=yes
28557 ac_cv_lib_pthreads_pthread_create=no
28559 rm -f core conftest.err conftest.$ac_objext \
28560 conftest$ac_exeext conftest.$ac_ext
28561 LIBS=$ac_check_lib_save_LIBS
28563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
28564 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
28565 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
28566 PTHREAD_LIB="-lpthreads"
28569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
28570 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
28571 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
28572 $as_echo_n "(cached) " >&6
28574 ac_check_lib_save_LIBS=$LIBS
28576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28577 /* end confdefs.h. */
28579 /* Override any GCC internal prototype to avoid an error.
28580 Use char because int might match the return type of a GCC
28581 builtin and then its argument prototype would still apply. */
28585 char pthread_create ();
28589 return pthread_create ();
28594 if ac_fn_c_try_link "$LINENO"; then :
28595 ac_cv_lib_c_r_pthread_create=yes
28597 ac_cv_lib_c_r_pthread_create=no
28599 rm -f core conftest.err conftest.$ac_objext \
28600 conftest$ac_exeext conftest.$ac_ext
28601 LIBS=$ac_check_lib_save_LIBS
28603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
28604 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
28605 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
28606 PTHREAD_LIB="-lc_r"
28609 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
28610 if test "x$ac_cv_func_pthread_create" = x""yes; then :
28627 for ac_header in sys/prctl.h sys/capability.h
28629 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28630 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28631 eval as_val=\$$as_ac_Header
28632 if test "x$as_val" = x""yes; then :
28633 cat >>confdefs.h <<_ACEOF
28634 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28641 for ac_func in prctl setreuid
28643 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28644 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28645 eval as_val=\$$as_ac_var
28646 if test "x$as_val" = x""yes; then :
28647 cat >>confdefs.h <<_ACEOF
28648 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
28655 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
28656 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
28657 $as_echo_n "(cached) " >&6
28659 ac_check_lib_save_LIBS=$LIBS
28661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28662 /* end confdefs.h. */
28664 /* Override any GCC internal prototype to avoid an error.
28665 Use char because int might match the return type of a GCC
28666 builtin and then its argument prototype would still apply. */
28670 char cap_set_proc ();
28674 return cap_set_proc ();
28679 if ac_fn_c_try_link "$LINENO"; then :
28680 ac_cv_lib_cap_cap_set_proc=yes
28682 ac_cv_lib_cap_cap_set_proc=no
28684 rm -f core conftest.err conftest.$ac_objext \
28685 conftest$ac_exeext conftest.$ac_ext
28686 LIBS=$ac_check_lib_save_LIBS
28688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
28689 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
28690 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
28696 if test x$CAP_LIBS = x-lcap; then
28698 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
28704 $as_echo "#define FDLIBS 1" >>confdefs.h
28707 CFLAGS=${CFLAGS--O}
28709 if test x$have_gcc = xyes ; then
28710 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
28711 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
28713 LDFLAGS=${LDFLAGS--O}
28714 DB_LIBS="${SQL_LFLAGS}"
28715 CPPFLAGS="$CPPFLAGS"
28742 PFILES="platforms/Makefile"
28747 hostname=`uname -n | cut -d '.' -f 1`
28748 if test x${hostname} = x ; then
28749 hostname="localhost"
28751 ping -c 1 $hostname 2>/dev/null 1>/dev/null
28752 if test ! $? = 0; then
28753 hostname="localhost"
28756 case "$DISTNAME" in
28759 PSCMD="ps -e -o pid,comm"
28760 PFILES="${PFILES} \
28761 platforms/aix/Makefile"
28762 TAPEDRIVE="/dev/rmt0.1"
28766 PTHREAD_LIB="-lpthread -lexc"
28767 if test "${CC}" = "gcc" ; then
28774 TAPEDRIVE="/dev/nrmt0"
28777 DISTVER=`uname -a |awk '{print $3}'`
28778 TAPEDRIVE="/dev/nrmt0"
28779 PTHREAD_LIB="-pthread"
28780 CFLAGS="${CFLAGS} -pthread"
28781 PSCMD="ps -ax -o pid,command"
28784 PFILES="${PFILES} \
28785 platforms/bsdi/Makefile \
28786 platforms/bsdi/bacula-fd \
28787 platforms/bsdi/bacula-sd \
28788 platforms/bsdi/bacula-dir"
28789 largefile_support="yes"
28792 DISTVER=`uname -a |awk '{print $3}'`
28793 TAPEDRIVE="/dev/nrst0"
28795 WCFLAGS="-mwindows"
28796 WLDFLAGS="-mwindows"
28800 TAPEDRIVE="/dev/nst0"
28801 PSCMD="ps -e -o pid,command"
28803 PFILES="${PFILES} \
28804 platforms/darwin/Makefile"
28808 TAPEDRIVE="/dev/nst0"
28809 PSCMD="ps -e -o pid,command"
28811 PFILES="${PFILES} \
28812 platforms/osx/Makefile"
28815 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
28818 DISTVER=`cat /etc/debian_version`
28819 if test -f /etc/lsb-release ; then
28821 if test "x$DISTRIB_ID" != "x" ; then
28822 DISTNAME=$DISTRIB_ID
28824 if test "x$DISTRIB_RELEASE" != "x" ; then
28825 DISTVER=$DISTRIB_RELEASE
28828 if test "$DISTNAME" = "Ubuntu" ; then
28831 TAPEDRIVE="/dev/nst0"
28832 PSCMD="ps -e -o pid,command"
28833 if test "$DISTNAME" = "ubuntu" ; then
28834 PFILES="${PFILES} \
28835 platforms/ubuntu/Makefile \
28836 platforms/ubuntu/bacula-fd \
28837 platforms/ubuntu/bacula-sd \
28838 platforms/ubuntu/bacula-dir"
28840 PFILES="${PFILES} \
28841 platforms/debian/Makefile \
28842 platforms/debian/bacula-fd \
28843 platforms/debian/bacula-sd \
28844 platforms/debian/bacula-dir"
28848 DISTVER=`uname -a |awk '{print $3}'`
28849 VER=`echo $DISTVER | cut -c 1`
28850 if test x$VER = x4 ; then
28851 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
28852 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
28856 TAPEDRIVE="/dev/nrsa0"
28857 PSCMD="ps -ax -o pid,command"
28858 PFILES="${PFILES} \
28859 platforms/freebsd/Makefile \
28860 platforms/freebsd/bacula-fd \
28861 platforms/freebsd/bacula-sd \
28862 platforms/freebsd/bacula-dir"
28863 largefile_support="yes"
28866 PSCMD="UNIX95=1; ps -e -o pid,comm"
28867 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
28869 TAPEDRIVE="/dev/rmt/0hnb"
28870 PTHREAD_LIB="-lpthread"
28871 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
28876 TAPEDRIVE="/dev/rmt/0cbn"
28877 PSCMD="ps -e -o pid,comm"
28878 PFILES="${PFILES} \
28879 platforms/irix/Makefile \
28880 platforms/irix/bacula-fd \
28881 platforms/irix/bacula-sd \
28882 platforms/irix/bacula-dir"
28885 DISTVER=`uname -a |awk '{print $3}'`
28888 TAPEDRIVE="/dev/nrst0"
28889 PSCMD="ps -ax -o pid,command"
28890 PTHREAD_LIB="-pthread"
28891 CFLAGS="${CFLAGS} -pthread"
28894 DISTVER=`uname -a |awk '{print $3}'`
28897 TAPEDRIVE="/dev/nrst0"
28898 PSCMD="ps -ax -o pid,command"
28899 PTHREAD_LIB="-pthread"
28900 CFLAGS="${CFLAGS} -pthread"
28901 PFILES="${PFILES} \
28902 platforms/openbsd/Makefile \
28903 platforms/openbsd/bacula-fd \
28904 platforms/openbsd/bacula-sd \
28905 platforms/openbsd/bacula-dir"
28908 if test -f /etc/whitebox-release ; then
28909 f=/etc/whitebox-release
28911 f=/etc/redhat-release
28913 if test `cat $f | grep release |\
28914 cut -f 3 -d ' '`x = "Enterprise"x ; then
28915 DISTVER="Enterprise "`cat $f | grep release |\
28918 DISTVER=`cat /etc/redhat-release | grep release |\
28921 TAPEDRIVE="/dev/nst0"
28922 PSCMD="ps -e -o pid,command"
28923 PFILES="${PFILES} \
28924 platforms/redhat/Makefile \
28925 platforms/redhat/bacula-fd \
28926 platforms/redhat/bacula-sd \
28927 platforms/redhat/bacula-dir
28931 DISTVER=`cat /etc/mandrake-release | grep release |\
28933 TAPEDRIVE="/dev/nst0"
28934 PSCMD="ps -e -o pid,command"
28935 PFILES="${PFILES} \
28936 platforms/mandrake/Makefile \
28937 platforms/mandrake/bacula-fd \
28938 platforms/mandrake/bacula-sd \
28939 platforms/mandrake/bacula-dir \
28940 platforms/mandrake/bacula.spec \
28944 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
28945 TAPEDRIVE="/dev/nst0"
28946 PSCMD="ps -e -o pid,command"
28947 PFILES="${PFILES} \
28948 platforms/gentoo/Makefile \
28949 platforms/gentoo/bacula-init \
28950 platforms/gentoo/bacula-fd \
28951 platforms/gentoo/bacula-sd \
28952 platforms/gentoo/bacula-dir"
28955 DISTVER=`cat /etc/slackware-version`
28956 TAPEDRIVE="/dev/nst0"
28957 PSCMD="ps -e -o pid,command"
28958 PFILES="${PFILES} \
28959 platforms/slackware/Makefile \
28960 platforms/slackware/rc.bacula-fd \
28961 platforms/slackware/rc.bacula-sd \
28962 platforms/slackware/rc.bacula-dir\
28963 platforms/slackware/functions.bacula"
28967 TAPEDRIVE="/dev/rmt/0cbn"
28968 PSCMD="ps -e -o pid,comm"
28969 PFILES="${PFILES} \
28970 platforms/solaris/Makefile \
28971 platforms/solaris/bacula-fd \
28972 platforms/solaris/bacula-sd \
28973 platforms/solaris/bacula-dir"
28974 if test x$DISTVER = x5.6 ; then
28975 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
28978 LIBS="$LIBS -lresolv"
28981 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
28983 TAPEDRIVE="/dev/nst0"
28984 PSCMD="ps -e -o pid,command"
28985 PFILES="${PFILES} \
28986 platforms/suse/Makefile \
28987 platforms/suse/bacula-fd \
28988 platforms/suse/bacula-sd \
28989 platforms/suse/bacula-dir \
28990 platforms/suse/bacula \
28991 platforms/suse/bacula.spec"
28996 TAPEDRIVE="/dev/nst0"
28997 PSCMD="ps -e -o pid,command"
28998 PFILES="${PFILES} \
28999 platforms/suse/Makefile \
29000 platforms/suse/bacula-fd \
29001 platforms/suse/bacula-sd \
29002 platforms/suse/bacula-dir"
29006 TAPEDRIVE="/dev/nst0"
29009 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29015 LIBS="$PTHREAD_LIB $LIBS"
29017 cat >>confdefs.h <<_ACEOF
29021 cat >>confdefs.h <<_ACEOF
29032 MCOMMON=./autoconf/Make.common
29035 if test "x${subsysdir}" = "x${sbindir}" ; then
29038 echo "You have set both --sbindir and --with-subsys-dir"
29039 echo " equal to: ${subsysdir} "
29040 echo "This is not permitted. Please reconfigure."
29042 echo "Aborting configuration ..."
29048 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 src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 examples/nagios/check_bacula/Makefile $PFILES"
29050 ac_config_commands="$ac_config_commands default"
29052 cat >confcache <<\_ACEOF
29053 # This file is a shell script that caches the results of configure
29054 # tests run on this system so they can be shared between configure
29055 # scripts and configure runs, see configure's option --config-cache.
29056 # It is not useful on other systems. If it contains results you don't
29057 # want to keep, you may remove or edit it.
29059 # config.status only pays attention to the cache file if you give it
29060 # the --recheck option to rerun configure.
29062 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29063 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29064 # following values.
29068 # The following way of writing the cache mishandles newlines in values,
29069 # but we know of no workaround that is simple, portable, and efficient.
29070 # So, we kill variables containing newlines.
29071 # Ultrix sh set writes to stderr and can't be redirected directly,
29072 # and sets the high bit in the cache file unless we assign to the vars.
29074 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29075 eval ac_val=\$$ac_var
29079 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29080 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29083 _ | IFS | as_nl) ;; #(
29084 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29085 *) { eval $ac_var=; unset $ac_var;} ;;
29091 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29092 *${as_nl}ac_space=\ *)
29093 # `set' does not quote correctly, so add quotes: double-quote
29094 # substitution turns \\\\ into \\, and sed turns \\ into \.
29097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29100 # `set' quotes correctly as required by POSIX, so do not add quotes.
29101 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29110 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29112 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29114 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29115 if test -w "$cache_file"; then
29116 test "x$cache_file" != "x/dev/null" &&
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29118 $as_echo "$as_me: updating cache $cache_file" >&6;}
29119 cat confcache >$cache_file
29121 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29122 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29127 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29128 # Let make expand exec_prefix.
29129 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29131 DEFS=-DHAVE_CONFIG_H
29135 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29136 # 1. Remove the extension, and $U if already installed.
29137 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29138 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29139 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29140 # will be set to the directory where LIBOBJS objects are built.
29141 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29142 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29144 LIBOBJS=$ac_libobjs
29146 LTLIBOBJS=$ac_ltlibobjs
29150 : ${CONFIG_STATUS=./config.status}
29152 ac_clean_files_save=$ac_clean_files
29153 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29154 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29155 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29157 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29159 # Generated by $as_me.
29160 # Run this file to recreate the current configuration.
29161 # Compiler output produced by configure, useful for debugging
29162 # configure, is in config.log if it exists.
29165 ac_cs_recheck=false
29168 SHELL=\${CONFIG_SHELL-$SHELL}
29171 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29172 ## -------------------- ##
29173 ## M4sh Initialization. ##
29174 ## -------------------- ##
29176 # Be more Bourne compatible
29177 DUALCASE=1; export DUALCASE # for MKS sh
29178 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29181 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29182 # is contrary to our usage. Disable this feature.
29183 alias -g '${1+"$@"}'='"$@"'
29184 setopt NO_GLOB_SUBST
29186 case `(set -o) 2>/dev/null` in #(
29198 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29199 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29200 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29201 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29202 # Prefer a ksh shell builtin over an external printf program on Solaris,
29203 # but without wasting forks for bash or zsh.
29204 if test -z "$BASH_VERSION$ZSH_VERSION" \
29205 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29206 as_echo='print -r --'
29207 as_echo_n='print -rn --'
29208 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29209 as_echo='printf %s\n'
29210 as_echo_n='printf %s'
29212 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29213 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29214 as_echo_n='/usr/ucb/echo -n'
29216 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29217 as_echo_n_body='eval
29221 expr "X$arg" : "X\\(.*\\)$as_nl";
29222 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29224 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29226 export as_echo_n_body
29227 as_echo_n='sh -c $as_echo_n_body as_echo'
29229 export as_echo_body
29230 as_echo='sh -c $as_echo_body as_echo'
29233 # The user is always right.
29234 if test "${PATH_SEPARATOR+set}" != set; then
29236 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29237 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29244 # We need space, tab and new line, in precisely that order. Quoting is
29245 # there to prevent editors from complaining about space-tab.
29246 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29247 # splitting by setting IFS to empty value.)
29250 # Find who we are. Look in the path if we contain no directory separator.
29252 *[\\/]* ) as_myself=$0 ;;
29253 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29254 for as_dir in $PATH
29257 test -z "$as_dir" && as_dir=.
29258 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29264 # We did not find ourselves, most probably we were run as `sh COMMAND'
29265 # in which case we are not to be found in the path.
29266 if test "x$as_myself" = x; then
29269 if test ! -f "$as_myself"; then
29270 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29274 # Unset variables that we do not need and which cause bugs (e.g. in
29275 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29276 # suppresses any "Segmentation fault" message there. '((' could
29277 # trigger a bug in pdksh 5.2.14.
29278 for as_var in BASH_ENV ENV MAIL MAILPATH
29279 do eval test x\${$as_var+set} = xset \
29280 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29293 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29296 # as_fn_error ERROR [LINENO LOG_FD]
29297 # ---------------------------------
29298 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29299 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29300 # script with status $?, using 1 if that was 0.
29303 as_status=$?; test $as_status -eq 0 && as_status=1
29305 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29306 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29308 $as_echo "$as_me: error: $1" >&2
29309 as_fn_exit $as_status
29313 # as_fn_set_status STATUS
29314 # -----------------------
29315 # Set $? to STATUS, without forking.
29316 as_fn_set_status ()
29319 } # as_fn_set_status
29321 # as_fn_exit STATUS
29322 # -----------------
29323 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29327 as_fn_set_status $1
29333 # Portably unset VAR.
29336 { eval $1=; unset $1;}
29338 as_unset=as_fn_unset
29339 # as_fn_append VAR VALUE
29340 # ----------------------
29341 # Append the text in VALUE to the end of the definition contained in VAR. Take
29342 # advantage of any shell optimizations that allow amortized linear growth over
29343 # repeated appends, instead of the typical quadratic growth present in naive
29345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29346 eval 'as_fn_append ()
29357 # as_fn_arith ARG...
29358 # ------------------
29359 # Perform arithmetic evaluation on the ARGs, and store the result in the
29360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29361 # must be portable across $(()) and expr.
29362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29363 eval 'as_fn_arith ()
29370 as_val=`expr "$@" || test $? -eq 1`
29375 if expr a : '\(a\)' >/dev/null 2>&1 &&
29376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29383 as_basename=basename
29388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29394 as_me=`$as_basename -- "$0" ||
29395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29396 X"$0" : 'X\(//\)$' \| \
29397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29399 sed '/^.*\/\([^/][^/]*\)\/*$/{
29413 # Avoid depending upon Character Ranges.
29414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29417 as_cr_digits='0123456789'
29418 as_cr_alnum=$as_cr_Letters$as_cr_digits
29420 ECHO_C= ECHO_N= ECHO_T=
29421 case `echo -n x` in #(((((
29423 case `echo 'xy\c'` in
29424 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29426 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29433 rm -f conf$$ conf$$.exe conf$$.file
29434 if test -d conf$$.dir; then
29435 rm -f conf$$.dir/conf$$.file
29438 mkdir conf$$.dir 2>/dev/null
29440 if (echo >conf$$.file) 2>/dev/null; then
29441 if ln -s conf$$.file conf$$ 2>/dev/null; then
29443 # ... but there are two gotchas:
29444 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29445 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29446 # In both cases, we have to default to `cp -p'.
29447 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29449 elif ln conf$$.file conf$$ 2>/dev/null; then
29457 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29458 rmdir conf$$.dir 2>/dev/null
29463 # Create "$as_dir" as a directory, including parents if necessary.
29468 -*) as_dir=./$as_dir;;
29470 test -d "$as_dir" || eval $as_mkdir_p || {
29474 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29475 *) as_qdir=$as_dir;;
29477 as_dirs="'$as_qdir' $as_dirs"
29478 as_dir=`$as_dirname -- "$as_dir" ||
29479 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29480 X"$as_dir" : 'X\(//\)[^/]' \| \
29481 X"$as_dir" : 'X\(//\)$' \| \
29482 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29483 $as_echo X"$as_dir" |
29484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29488 /^X\(\/\/\)[^/].*/{
29501 test -d "$as_dir" && break
29503 test -z "$as_dirs" || eval "mkdir $as_dirs"
29504 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29508 if mkdir -p . 2>/dev/null; then
29509 as_mkdir_p='mkdir -p "$as_dir"'
29511 test -d ./-p && rmdir ./-p
29515 if test -x / >/dev/null 2>&1; then
29516 as_test_x='test -x'
29518 if ls -dL / >/dev/null 2>&1; then
29525 if test -d "$1"; then
29531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29532 ???[sx]*):;;*)false;;esac;fi
29536 as_executable_p=$as_test_x
29538 # Sed expression to map a string onto a valid CPP name.
29539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29541 # Sed expression to map a string onto a valid variable name.
29542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29546 ## ----------------------------------- ##
29547 ## Main body of $CONFIG_STATUS script. ##
29548 ## ----------------------------------- ##
29550 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29553 # Save the log message, to keep $0 and so on meaningful, and to
29554 # report actual input values of CONFIG_FILES etc. instead of their
29555 # values after options handling.
29557 This file was extended by $as_me, which was
29558 generated by GNU Autoconf 2.65. Invocation command line was
29560 CONFIG_FILES = $CONFIG_FILES
29561 CONFIG_HEADERS = $CONFIG_HEADERS
29562 CONFIG_LINKS = $CONFIG_LINKS
29563 CONFIG_COMMANDS = $CONFIG_COMMANDS
29566 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29571 case $ac_config_files in *"
29572 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29575 case $ac_config_headers in *"
29576 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29581 # Files that config.status was made for.
29582 config_files="$ac_config_files"
29583 config_headers="$ac_config_headers"
29584 config_commands="$ac_config_commands"
29588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29590 \`$as_me' instantiates files and other configuration actions
29591 from templates according to the current configuration. Unless the files
29592 and actions are specified as TAGs, all are instantiated by default.
29594 Usage: $0 [OPTION]... [TAG]...
29596 -h, --help print this help, then exit
29597 -V, --version print version number and configuration settings, then exit
29598 --config print configuration, then exit
29599 -q, --quiet, --silent
29600 do not print progress messages
29601 -d, --debug don't remove temporary files
29602 --recheck update $as_me by reconfiguring in the same conditions
29603 --file=FILE[:TEMPLATE]
29604 instantiate the configuration file FILE
29605 --header=FILE[:TEMPLATE]
29606 instantiate the configuration header FILE
29608 Configuration files:
29611 Configuration headers:
29614 Configuration commands:
29617 Report bugs to the package provider."
29620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29621 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29624 configured by $0, generated by GNU Autoconf 2.65,
29625 with options \\"\$ac_cs_config\\"
29627 Copyright (C) 2009 Free Software Foundation, Inc.
29628 This config.status script is free software; the Free Software Foundation
29629 gives unlimited permission to copy, distribute and modify it."
29635 test -n "\$AWK" || AWK=awk
29638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29639 # The default lists apply if the user does not specify any file.
29645 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29646 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29657 # Handling of the options.
29658 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29660 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29661 $as_echo "$ac_cs_version"; exit ;;
29662 --config | --confi | --conf | --con | --co | --c )
29663 $as_echo "$ac_cs_config"; exit ;;
29664 --debug | --debu | --deb | --de | --d | -d )
29666 --file | --fil | --fi | --f )
29669 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29671 as_fn_append CONFIG_FILES " '$ac_optarg'"
29672 ac_need_defaults=false;;
29673 --header | --heade | --head | --hea )
29676 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29678 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29679 ac_need_defaults=false;;
29681 # Conflict between --help and --header
29682 as_fn_error "ambiguous option: \`$1'
29683 Try \`$0 --help' for more information.";;
29684 --help | --hel | -h )
29685 $as_echo "$ac_cs_usage"; exit ;;
29686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29687 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29690 # This is an error.
29691 -*) as_fn_error "unrecognized option: \`$1'
29692 Try \`$0 --help' for more information." ;;
29694 *) as_fn_append ac_config_targets " $1"
29695 ac_need_defaults=false ;;
29701 ac_configure_extra_args=
29703 if $ac_cs_silent; then
29705 ac_configure_extra_args="$ac_configure_extra_args --silent"
29709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29710 if \$ac_cs_recheck; then
29711 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29713 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29714 CONFIG_SHELL='$SHELL'
29715 export CONFIG_SHELL
29720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29724 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29725 ## Running $as_me. ##
29731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29737 # The HP-UX ksh and POSIX shell print the target directory to stdout
29738 # if CDPATH is set.
29739 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29741 sed_quote_subst='$sed_quote_subst'
29742 double_quote_subst='$double_quote_subst'
29743 delay_variable_subst='$delay_variable_subst'
29744 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
29745 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
29746 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
29747 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
29748 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
29749 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
29750 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
29751 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
29752 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
29753 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
29754 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
29755 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
29756 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
29757 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
29758 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
29759 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
29760 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
29761 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
29762 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
29763 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
29764 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
29765 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
29766 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
29767 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
29768 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
29769 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
29770 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
29771 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29772 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
29773 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
29774 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
29775 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
29776 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29777 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
29778 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
29779 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29780 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29781 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29782 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
29783 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29784 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
29785 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
29786 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
29787 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
29788 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"`'
29789 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"`'
29790 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
29791 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
29792 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
29793 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
29794 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
29795 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
29796 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
29797 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
29798 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
29799 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
29800 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
29801 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
29802 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
29803 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
29804 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
29805 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
29806 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29807 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29808 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
29809 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
29810 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29811 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29812 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
29813 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29814 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29815 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29816 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29817 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29818 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29819 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
29820 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29821 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29822 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29823 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
29824 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
29825 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
29826 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
29827 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
29828 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29829 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
29830 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
29831 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
29832 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
29833 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
29834 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29835 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29836 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29837 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29838 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
29839 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
29840 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29841 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
29842 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
29843 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29844 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29845 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
29846 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29847 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
29848 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29849 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29850 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29851 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29852 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
29853 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
29854 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29855 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29856 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
29857 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
29858 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
29859 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
29860 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
29861 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
29862 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
29863 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29864 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29865 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
29866 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
29867 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
29868 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29869 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29870 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29871 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29872 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29873 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29874 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29875 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29876 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29877 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29878 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29879 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29880 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29881 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29882 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29883 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29884 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29885 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29886 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29887 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29888 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29889 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29890 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29891 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29892 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29893 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29894 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29895 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29896 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29897 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29898 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29899 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29900 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29901 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29902 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29903 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29904 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29905 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29906 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29907 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29908 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29909 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29910 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29911 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29912 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29913 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29914 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29917 LTCFLAGS='$LTCFLAGS'
29918 compiler='$compiler_DEFAULT'
29920 # Quote evaled strings.
29932 deplibs_check_method \
29941 lt_cv_sys_global_symbol_pipe \
29942 lt_cv_sys_global_symbol_to_cdecl \
29943 lt_cv_sys_global_symbol_to_c_name_address \
29944 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29947 lt_prog_compiler_no_builtin_flag \
29948 lt_prog_compiler_wl \
29949 lt_prog_compiler_pic \
29950 lt_prog_compiler_static \
29951 lt_cv_prog_compiler_c_o \
29959 export_dynamic_flag_spec \
29960 whole_archive_flag_spec \
29961 compiler_needs_object \
29963 allow_undefined_flag \
29964 no_undefined_flag \
29965 hardcode_libdir_flag_spec \
29966 hardcode_libdir_flag_spec_ld \
29967 hardcode_libdir_separator \
29972 variables_saved_for_relink \
29974 library_names_spec \
29979 compiler_lib_search_dirs \
29984 compiler_lib_search_path \
29987 lt_prog_compiler_no_builtin_flag_CXX \
29988 lt_prog_compiler_wl_CXX \
29989 lt_prog_compiler_pic_CXX \
29990 lt_prog_compiler_static_CXX \
29991 lt_cv_prog_compiler_c_o_CXX \
29992 export_dynamic_flag_spec_CXX \
29993 whole_archive_flag_spec_CXX \
29994 compiler_needs_object_CXX \
29996 allow_undefined_flag_CXX \
29997 no_undefined_flag_CXX \
29998 hardcode_libdir_flag_spec_CXX \
29999 hardcode_libdir_flag_spec_ld_CXX \
30000 hardcode_libdir_separator_CXX \
30001 fix_srcfile_path_CXX \
30002 exclude_expsyms_CXX \
30003 include_expsyms_CXX \
30004 file_list_spec_CXX \
30005 compiler_lib_search_dirs_CXX \
30006 predep_objects_CXX \
30007 postdep_objects_CXX \
30010 compiler_lib_search_path_CXX; do
30011 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30012 *[\\\\\\\`\\"\\\$]*)
30013 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30016 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30021 # Double-quote double-evaled strings.
30022 for var in reload_cmds \
30023 old_postinstall_cmds \
30024 old_postuninstall_cmds \
30026 extract_expsyms_cmds \
30027 old_archive_from_new_cmds \
30028 old_archive_from_expsyms_cmds \
30030 archive_expsym_cmds \
30032 module_expsym_cmds \
30033 export_symbols_cmds \
30036 postuninstall_cmds \
30038 sys_lib_search_path_spec \
30039 sys_lib_dlsearch_path_spec \
30040 old_archive_cmds_CXX \
30041 old_archive_from_new_cmds_CXX \
30042 old_archive_from_expsyms_cmds_CXX \
30044 archive_expsym_cmds_CXX \
30046 module_expsym_cmds_CXX \
30047 export_symbols_cmds_CXX \
30048 prelink_cmds_CXX; do
30049 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30050 *[\\\\\\\`\\"\\\$]*)
30051 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30054 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30059 # Fix-up fallback echo if it was mangled by the above quoting rules.
30061 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30065 ac_aux_dir='$ac_aux_dir'
30066 xsi_shell='$xsi_shell'
30067 lt_shell_append='$lt_shell_append'
30069 # See if we are running on zsh, and set the options which allow our
30070 # commands through without removal of \ escapes INIT.
30071 if test -n "\${ZSH_VERSION+set}" ; then
30072 setopt NO_GLOB_SUBST
30078 TIMESTAMP='$TIMESTAMP'
30086 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30087 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30089 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30090 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30091 LINGUAS="${LINGUAS-%UNSET%}"
30096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30098 # Handling of arguments.
30099 for ac_config_target in $ac_config_targets
30101 case $ac_config_target in
30102 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30103 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30104 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30105 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30106 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30107 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30108 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30109 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30110 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30111 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30112 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30113 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30114 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30115 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30116 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30117 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30118 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30119 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30120 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30121 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30122 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30123 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30124 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30125 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30126 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30127 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30128 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30129 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30130 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30131 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30132 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30133 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30134 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30135 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30136 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30137 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30138 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30139 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30140 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30141 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30142 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30143 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30144 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30145 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30146 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30147 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30148 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30149 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30150 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30151 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30152 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30153 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30154 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30155 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30156 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30157 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30158 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30159 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30160 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30161 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30162 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30163 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30164 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30165 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30166 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30167 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30168 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30169 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30170 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30171 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30172 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30173 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30174 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30175 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30176 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30177 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30178 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30179 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30180 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30181 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30182 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30183 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30184 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30185 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30186 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30187 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30188 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30189 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30190 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30191 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30192 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30193 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30194 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30195 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30196 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30197 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30198 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30199 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30200 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30201 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30202 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30203 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30204 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30205 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30206 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30207 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30208 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30209 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30210 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30211 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30212 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30214 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30219 # If the user did not use the arguments to specify the items to instantiate,
30220 # then the envvar interface is used. Set only those that are not.
30221 # We use the long form for the default assignment because of an extremely
30222 # bizarre bug on SunOS 4.1.3.
30223 if $ac_need_defaults; then
30224 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30225 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30226 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30229 # Have a temporary directory for convenience. Make it in the build tree
30230 # simply because there is no reason against having it here, and in addition,
30231 # creating and moving files from /tmp can sometimes cause problems.
30232 # Hook for its removal unless debugging.
30233 # Note that there is a small window in which the directory will not be cleaned:
30234 # after its creation but before its name has been assigned to `$tmp'.
30238 trap 'exit_status=$?
30239 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30241 trap 'as_fn_exit 1' 1 2 13 15
30243 # Create a (secure) tmp directory for tmp files.
30246 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30247 test -n "$tmp" && test -d "$tmp"
30250 tmp=./conf$$-$RANDOM
30251 (umask 077 && mkdir "$tmp")
30252 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30254 # Set up the scripts for CONFIG_FILES section.
30255 # No need to generate them if there are no CONFIG_FILES.
30256 # This happens for instance with `./config.status config.h'.
30257 if test -n "$CONFIG_FILES"; then
30259 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30260 ac_cs_awk_getline=:
30261 ac_cs_awk_pipe_init=
30262 ac_cs_awk_read_file='
30263 while ((getline aline < (F[key])) > 0)
30266 ac_cs_awk_pipe_fini=
30268 ac_cs_awk_getline=false
30269 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30270 ac_cs_awk_read_file='
30272 print "cat " F[key] " &&"
30273 '$ac_cs_awk_pipe_init
30274 # The final `:' finishes the AND list.
30275 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30277 ac_cr=`echo X | tr X '\015'`
30278 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30279 # But we know of no other shell where ac_cr would be empty at this
30280 # point, so we can use a bashism as a fallback.
30281 if test "x$ac_cr" = x; then
30282 eval ac_cr=\$\'\\r\'
30284 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30285 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30288 ac_cs_awk_cr=$ac_cr
30291 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30294 # Create commands to substitute file output variables.
30296 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30297 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30298 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30301 } >conf$$files.sh &&
30302 . ./conf$$files.sh ||
30303 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30304 rm -f conf$$files.sh
30307 echo "cat >conf$$subs.awk <<_ACEOF" &&
30308 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30310 } >conf$$subs.sh ||
30311 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30312 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30314 for ac_last_try in false false false false false :; do
30315 . ./conf$$subs.sh ||
30316 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30318 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30319 if test $ac_delim_n = $ac_delim_num; then
30321 elif $ac_last_try; then
30322 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30324 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30327 rm -f conf$$subs.sh
30329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30330 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30334 s/^/S["/; s/!.*/"]=/
30344 s/\(.\{148\}\)..*/\1/
30346 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30351 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30358 s/\(.\{148\}\)..*/\1/
30360 s/["\\]/\\&/g; s/^/"/; s/$/"/
30364 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30369 ' <conf$$subs.awk | sed '
30374 ' >>$CONFIG_STATUS || ac_write_fail=1
30375 rm -f conf$$subs.awk
30376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30378 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30379 for (key in S) S_is_set[key] = 1
30381 \$ac_cs_awk_pipe_init
30385 nfields = split(line, field, "@")
30387 len = length(field[1])
30388 for (i = 2; i < nfields; i++) {
30390 keylen = length(key)
30391 if (S_is_set[key]) {
30393 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30394 len += length(value) + length(field[++i])
30399 if (nfields == 3 && !substed) {
30401 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30402 \$ac_cs_awk_read_file
30408 \$ac_cs_awk_pipe_fini
30411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30412 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30413 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30416 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30417 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30420 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30421 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30422 # trailing colons and then remove the whole line if VPATH becomes empty
30423 # (actually we leave an empty line to preserve line numbers).
30424 if test "x$srcdir" = x.; then
30425 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30426 s/:*\$(srcdir):*/:/
30427 s/:*\${srcdir}:*/:/
30429 s/^\([^=]*=[ ]*\):*/\1/
30435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30436 fi # test -n "$CONFIG_FILES"
30438 # Set up the scripts for CONFIG_HEADERS section.
30439 # No need to generate them if there are no CONFIG_HEADERS.
30440 # This happens for instance with `./config.status Makefile'.
30441 if test -n "$CONFIG_HEADERS"; then
30442 cat >"$tmp/defines.awk" <<\_ACAWK ||
30446 # Transform confdefs.h into an awk script `defines.awk', embedded as
30447 # here-document in config.status, that substitutes the proper values into
30448 # config.h.in to produce config.h.
30450 # Create a delimiter string that does not exist in confdefs.h, to ease
30451 # handling of long lines.
30453 for ac_last_try in false false :; do
30454 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30455 if test -z "$ac_t"; then
30457 elif $ac_last_try; then
30458 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30460 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30464 # For the awk script, D is an array of macro values keyed by name,
30465 # likewise P contains macro parameters if any. Preserve backslash
30466 # newline sequences.
30468 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30470 s/.\{148\}/&'"$ac_delim"'/g
30473 s/^[ ]*#[ ]*define[ ][ ]*/ /
30480 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30482 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30486 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30487 D["\1"]=" \3\\\\\\n"\\/p
30489 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30494 s/.\{148\}/&'"$ac_delim"'/g
30499 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30502 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30504 ' <confdefs.h | sed '
30505 s/'"$ac_delim"'/"\\\
30506 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30509 for (key in D) D_is_set[key] = 1
30512 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30514 split(line, arg, " ")
30515 if (arg[1] == "#") {
30519 defundef = substr(arg[1], 2)
30522 split(mac1, mac2, "(") #)
30524 prefix = substr(line, 1, index(line, defundef) - 1)
30525 if (D_is_set[macro]) {
30526 # Preserve the white space surrounding the "#".
30527 print prefix "define", macro P[macro] D[macro]
30530 # Replace #undef with comments. This is necessary, for example,
30531 # in the case of _POSIX_SOURCE, which is predefined and required
30532 # on some systems where configure will not decide to define it.
30533 if (defundef == "undef") {
30534 print "/*", prefix defundef, macro, "*/"
30542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30543 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30544 fi # test -n "$CONFIG_HEADERS"
30547 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30552 :[FHLC]) ac_mode=$ac_tag; continue;;
30554 case $ac_mode$ac_tag in
30556 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30557 :[FH]-) ac_tag=-:-;;
30558 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30575 -) ac_f="$tmp/stdin";;
30576 *) # Look for the file first in the build tree, then in the source tree
30577 # (if the path is not absolute). The absolute path cannot be DOS-style,
30578 # because $ac_f cannot contain `:'.
30582 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30584 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30586 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30587 as_fn_append ac_file_inputs " '$ac_f'"
30590 # Let's still pretend it is `configure' which instantiates (i.e., don't
30591 # use $as_me), people would be surprised to read:
30592 # /* config.h. Generated by config.status. */
30593 configure_input='Generated from '`
30594 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30596 if test x"$ac_file" != x-; then
30597 configure_input="$ac_file. $configure_input"
30598 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30599 $as_echo "$as_me: creating $ac_file" >&6;}
30601 # Neutralize special characters interpreted by sed in replacement strings.
30602 case $configure_input in #(
30603 *\&* | *\|* | *\\* )
30604 ac_sed_conf_input=`$as_echo "$configure_input" |
30605 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30606 *) ac_sed_conf_input=$configure_input;;
30610 *:-:* | *:-) cat >"$tmp/stdin" \
30611 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30616 ac_dir=`$as_dirname -- "$ac_file" ||
30617 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30618 X"$ac_file" : 'X\(//\)[^/]' \| \
30619 X"$ac_file" : 'X\(//\)$' \| \
30620 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30621 $as_echo X"$ac_file" |
30622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30626 /^X\(\/\/\)[^/].*/{
30639 as_dir="$ac_dir"; as_fn_mkdir_p
30643 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30645 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30646 # A ".." for each directory in $ac_dir_suffix.
30647 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30648 case $ac_top_builddir_sub in
30649 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30650 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30653 ac_abs_top_builddir=$ac_pwd
30654 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30655 # for backward compatibility:
30656 ac_top_builddir=$ac_top_build_prefix
30659 .) # We are building in place.
30661 ac_top_srcdir=$ac_top_builddir_sub
30662 ac_abs_top_srcdir=$ac_pwd ;;
30663 [\\/]* | ?:[\\/]* ) # Absolute name.
30664 ac_srcdir=$srcdir$ac_dir_suffix;
30665 ac_top_srcdir=$srcdir
30666 ac_abs_top_srcdir=$srcdir ;;
30667 *) # Relative name.
30668 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30669 ac_top_srcdir=$ac_top_build_prefix$srcdir
30670 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30672 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30682 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30683 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30688 # If the template does not know about datarootdir, expand it.
30689 # FIXME: This hack should be removed a few years after 2.60.
30690 ac_datarootdir_hack=; ac_datarootdir_seen=
30701 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30702 *datarootdir*) ac_datarootdir_seen=yes;;
30703 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30705 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30708 ac_datarootdir_hack='
30709 s&@datadir@&$datadir&g
30710 s&@docdir@&$docdir&g
30711 s&@infodir@&$infodir&g
30712 s&@localedir@&$localedir&g
30713 s&@mandir@&$mandir&g
30714 s&\\\${datarootdir}&$datarootdir&g' ;;
30718 # Neutralize VPATH when `$srcdir' = `.'.
30719 # Shell code in configure.ac might set extrasub.
30720 # FIXME: do we really want to maintain this feature?
30721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30722 ac_sed_extra="$ac_vpsub
30725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30727 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30728 s|@configure_input@|$ac_sed_conf_input|;t t
30729 s&@top_builddir@&$ac_top_builddir_sub&;t t
30730 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30731 s&@srcdir@&$ac_srcdir&;t t
30732 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30733 s&@top_srcdir@&$ac_top_srcdir&;t t
30734 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30735 s&@builddir@&$ac_builddir&;t t
30736 s&@abs_builddir@&$ac_abs_builddir&;t t
30737 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30738 s&@INSTALL@&$ac_INSTALL&;t t
30739 $ac_datarootdir_hack
30741 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30742 if $ac_cs_awk_getline; then
30743 $AWK -f "$tmp/subs.awk"
30745 $AWK -f "$tmp/subs.awk" | $SHELL
30747 || as_fn_error "could not create $ac_file" "$LINENO" 5
30749 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30750 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30751 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30753 which seems to be undefined. Please make sure it is defined." >&5
30754 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30755 which seems to be undefined. Please make sure it is defined." >&2;}
30759 -) cat "$tmp/out" && rm -f "$tmp/out";;
30760 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30762 || as_fn_error "could not create $ac_file" "$LINENO" 5
30768 if test x"$ac_file" != x-; then
30770 $as_echo "/* $configure_input */" \
30771 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30772 } >"$tmp/config.h" \
30773 || as_fn_error "could not create $ac_file" "$LINENO" 5
30774 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30775 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30776 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30779 mv "$tmp/config.h" "$ac_file" \
30780 || as_fn_error "could not create $ac_file" "$LINENO" 5
30783 $as_echo "/* $configure_input */" \
30784 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30785 || as_fn_error "could not create -" "$LINENO" 5
30789 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30790 $as_echo "$as_me: executing $ac_file commands" >&6;}
30795 case $ac_file$ac_mode in
30798 # See if we are running on zsh, and set the options which allow our
30799 # commands through without removal of \ escapes.
30800 if test -n "${ZSH_VERSION+set}" ; then
30801 setopt NO_GLOB_SUBST
30804 cfgfile="${ofile}T"
30805 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30808 cat <<_LT_EOF >> "$cfgfile"
30811 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30812 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30813 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30814 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30816 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30817 # 2006, 2007, 2008 Free Software Foundation, Inc.
30818 # Written by Gordon Matzigkeit, 1996
30820 # This file is part of GNU Libtool.
30822 # GNU Libtool is free software; you can redistribute it and/or
30823 # modify it under the terms of the GNU General Public License as
30824 # published by the Free Software Foundation; either version 2 of
30825 # the License, or (at your option) any later version.
30827 # As a special exception to the GNU General Public License,
30828 # if you distribute this file as part of a program or library that
30829 # is built using GNU Libtool, you may include this file under the
30830 # same distribution terms that you use for the rest of that program.
30832 # GNU Libtool is distributed in the hope that it will be useful,
30833 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30834 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30835 # GNU General Public License for more details.
30837 # You should have received a copy of the GNU General Public License
30838 # along with GNU Libtool; see the file COPYING. If not, a copy
30839 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30840 # obtained by writing to the Free Software Foundation, Inc.,
30841 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30844 # The names of the tagged configurations supported by this script.
30845 available_tags="CXX "
30847 # ### BEGIN LIBTOOL CONFIG
30849 # Which release of libtool.m4 was used?
30850 macro_version=$macro_version
30851 macro_revision=$macro_revision
30853 # Whether or not to build shared libraries.
30854 build_libtool_libs=$enable_shared
30856 # Whether or not to build static libraries.
30857 build_old_libs=$enable_static
30859 # What type of objects to build.
30862 # Whether or not to optimize for fast installation.
30863 fast_install=$enable_fast_install
30866 host_alias=$host_alias
30870 # The build system.
30871 build_alias=$build_alias
30875 # A sed program that does not truncate output.
30878 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30879 Xsed="\$SED -e 1s/^X//"
30881 # A grep program that handles long lines.
30887 # A literal string matcher.
30890 # A BSD- or MS-compatible name lister.
30893 # Whether we need soft or hard links.
30896 # What is the maximum length of a command?
30897 max_cmd_len=$max_cmd_len
30899 # Object file suffix (normally "o").
30902 # Executable file suffix (normally "").
30905 # whether the shell understands "unset".
30908 # turn spaces into newlines.
30911 # turn newlines into spaces.
30914 # How to create reloadable object files.
30915 reload_flag=$lt_reload_flag
30916 reload_cmds=$lt_reload_cmds
30918 # An object symbol dumper.
30919 OBJDUMP=$lt_OBJDUMP
30921 # Method to check whether dependent libraries are shared objects.
30922 deplibs_check_method=$lt_deplibs_check_method
30924 # Command to use when deplibs_check_method == "file_magic".
30925 file_magic_cmd=$lt_file_magic_cmd
30929 AR_FLAGS=$lt_AR_FLAGS
30931 # A symbol stripping program.
30934 # Commands used to install an old-style archive.
30936 old_postinstall_cmds=$lt_old_postinstall_cmds
30937 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30942 # LTCC compiler flags.
30943 LTCFLAGS=$lt_CFLAGS
30945 # Take the output of nm and produce a listing of raw symbols and C names.
30946 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30948 # Transform the output of nm in a proper C declaration.
30949 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30951 # Transform the output of nm in a C name address pair.
30952 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30954 # Transform the output of nm in a C name address pair when lib prefix is needed.
30955 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30957 # The name of the directory that contains temporary libtool files.
30960 # Shell to use when invoking shell scripts.
30963 # An echo program that does not interpret backslashes.
30966 # Used to examine libraries when file_magic_cmd begins with "file".
30967 MAGIC_CMD=$MAGIC_CMD
30969 # Must we lock files when doing compilation?
30970 need_locks=$lt_need_locks
30972 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30973 DSYMUTIL=$lt_DSYMUTIL
30975 # Tool to change global to local symbols on Mac OS X.
30978 # Tool to manipulate fat objects and archives on Mac OS X.
30981 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
30984 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30985 OTOOL64=$lt_OTOOL64
30987 # Old archive suffix (normally "a").
30990 # Shared library suffix (normally ".so").
30991 shrext_cmds=$lt_shrext_cmds
30993 # The commands to extract the exported symbol list from a shared archive.
30994 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30996 # Variables whose values should be saved in libtool wrapper scripts and
30997 # restored at link time.
30998 variables_saved_for_relink=$lt_variables_saved_for_relink
31000 # Do we need the "lib" prefix for modules?
31001 need_lib_prefix=$need_lib_prefix
31003 # Do we need a version for libraries?
31004 need_version=$need_version
31006 # Library versioning type.
31007 version_type=$version_type
31009 # Shared library runtime path variable.
31010 runpath_var=$runpath_var
31012 # Shared library path variable.
31013 shlibpath_var=$shlibpath_var
31015 # Is shlibpath searched before the hard-coded library search path?
31016 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31018 # Format of library name prefix.
31019 libname_spec=$lt_libname_spec
31021 # List of archive names. First name is the real one, the rest are links.
31022 # The last name is the one that the linker finds with -lNAME
31023 library_names_spec=$lt_library_names_spec
31025 # The coded name of the library, if different from the real name.
31026 soname_spec=$lt_soname_spec
31028 # Command to use after installation of a shared archive.
31029 postinstall_cmds=$lt_postinstall_cmds
31031 # Command to use after uninstallation of a shared archive.
31032 postuninstall_cmds=$lt_postuninstall_cmds
31034 # Commands used to finish a libtool library installation in a directory.
31035 finish_cmds=$lt_finish_cmds
31037 # As "finish_cmds", except a single script fragment to be evaled but
31039 finish_eval=$lt_finish_eval
31041 # Whether we should hardcode library paths into libraries.
31042 hardcode_into_libs=$hardcode_into_libs
31044 # Compile-time system search path for libraries.
31045 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31047 # Run-time system search path for libraries.
31048 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31050 # Whether dlopen is supported.
31051 dlopen_support=$enable_dlopen
31053 # Whether dlopen of programs is supported.
31054 dlopen_self=$enable_dlopen_self
31056 # Whether dlopen of statically linked programs is supported.
31057 dlopen_self_static=$enable_dlopen_self_static
31059 # Commands to strip libraries.
31060 old_striplib=$lt_old_striplib
31061 striplib=$lt_striplib
31064 # The linker used to build libraries.
31067 # Commands used to build an old-style archive.
31068 old_archive_cmds=$lt_old_archive_cmds
31070 # A language specific compiler.
31073 # Is the compiler the GNU compiler?
31076 # Compiler flag to turn off builtin functions.
31077 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31079 # How to pass a linker flag through the compiler.
31080 wl=$lt_lt_prog_compiler_wl
31082 # Additional compiler flags for building library objects.
31083 pic_flag=$lt_lt_prog_compiler_pic
31085 # Compiler flag to prevent dynamic linking.
31086 link_static_flag=$lt_lt_prog_compiler_static
31088 # Does compiler simultaneously support -c and -o options?
31089 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31091 # Whether or not to add -lc for building shared libraries.
31092 build_libtool_need_lc=$archive_cmds_need_lc
31094 # Whether or not to disallow shared libs when runtime libs are static.
31095 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31097 # Compiler flag to allow reflexive dlopens.
31098 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31100 # Compiler flag to generate shared objects directly from archives.
31101 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31103 # Whether the compiler copes with passing no objects directly.
31104 compiler_needs_object=$lt_compiler_needs_object
31106 # Create an old-style archive from a shared archive.
31107 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31109 # Create a temporary old-style archive to link instead of a shared archive.
31110 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31112 # Commands used to build a shared archive.
31113 archive_cmds=$lt_archive_cmds
31114 archive_expsym_cmds=$lt_archive_expsym_cmds
31116 # Commands used to build a loadable module if different from building
31117 # a shared archive.
31118 module_cmds=$lt_module_cmds
31119 module_expsym_cmds=$lt_module_expsym_cmds
31121 # Whether we are building with GNU ld or not.
31122 with_gnu_ld=$lt_with_gnu_ld
31124 # Flag that allows shared libraries with undefined symbols to be built.
31125 allow_undefined_flag=$lt_allow_undefined_flag
31127 # Flag that enforces no undefined symbols.
31128 no_undefined_flag=$lt_no_undefined_flag
31130 # Flag to hardcode \$libdir into a binary during linking.
31131 # This must work even if \$libdir does not exist
31132 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31134 # If ld is used when linking, flag to hardcode \$libdir into a binary
31135 # during linking. This must work even if \$libdir does not exist.
31136 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31138 # Whether we need a single "-rpath" flag with a separated argument.
31139 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31141 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31142 # DIR into the resulting binary.
31143 hardcode_direct=$hardcode_direct
31145 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31146 # DIR into the resulting binary and the resulting library dependency is
31147 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31148 # library is relocated.
31149 hardcode_direct_absolute=$hardcode_direct_absolute
31151 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31152 # into the resulting binary.
31153 hardcode_minus_L=$hardcode_minus_L
31155 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31156 # into the resulting binary.
31157 hardcode_shlibpath_var=$hardcode_shlibpath_var
31159 # Set to "yes" if building a shared library automatically hardcodes DIR
31160 # into the library and all subsequent libraries and executables linked
31162 hardcode_automatic=$hardcode_automatic
31164 # Set to yes if linker adds runtime paths of dependent libraries
31165 # to runtime path list.
31166 inherit_rpath=$inherit_rpath
31168 # Whether libtool must link a program against all its dependency libraries.
31169 link_all_deplibs=$link_all_deplibs
31171 # Fix the shell variable \$srcfile for the compiler.
31172 fix_srcfile_path=$lt_fix_srcfile_path
31174 # Set to "yes" if exported symbols are required.
31175 always_export_symbols=$always_export_symbols
31177 # The commands to list exported symbols.
31178 export_symbols_cmds=$lt_export_symbols_cmds
31180 # Symbols that should not be listed in the preloaded symbols.
31181 exclude_expsyms=$lt_exclude_expsyms
31183 # Symbols that must always be exported.
31184 include_expsyms=$lt_include_expsyms
31186 # Commands necessary for linking programs (against libraries) with templates.
31187 prelink_cmds=$lt_prelink_cmds
31189 # Specify filename containing input files.
31190 file_list_spec=$lt_file_list_spec
31192 # How to hardcode a shared library path into an executable.
31193 hardcode_action=$hardcode_action
31195 # The directories searched by this compiler when creating a shared library.
31196 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31198 # Dependencies to place before and after the objects being linked to
31199 # create a shared library.
31200 predep_objects=$lt_predep_objects
31201 postdep_objects=$lt_postdep_objects
31202 predeps=$lt_predeps
31203 postdeps=$lt_postdeps
31205 # The library search path used internally by the compiler when linking
31206 # a shared library.
31207 compiler_lib_search_path=$lt_compiler_lib_search_path
31209 # ### END LIBTOOL CONFIG
31215 cat <<\_LT_EOF >> "$cfgfile"
31216 # AIX sometimes has problems with the GCC collect2 program. For some
31217 # reason, if we set the COLLECT_NAMES environment variable, the problems
31218 # vanish in a puff of smoke.
31219 if test "X${COLLECT_NAMES+set}" != Xset; then
31221 export COLLECT_NAMES
31228 ltmain="$ac_aux_dir/ltmain.sh"
31231 # We use sed instead of cat because bash on DJGPP gets confused if
31232 # if finds mixed CR/LF and LF-only lines. Since sed operates in
31233 # text mode, it properly converts lines to CR/LF. This bash problem
31234 # is reportedly fixed, but why not run on old versions too?
31235 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31236 || (rm -f "$cfgfile"; exit 1)
31240 cat << \_LT_EOF >> "$cfgfile"
31242 # func_dirname file append nondir_replacement
31243 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31244 # otherwise set result to NONDIR_REPLACEMENT.
31248 */*) func_dirname_result="${1%/*}${2}" ;;
31249 * ) func_dirname_result="${3}" ;;
31253 # func_basename file
31256 func_basename_result="${1##*/}"
31259 # func_dirname_and_basename file append nondir_replacement
31260 # perform func_basename and func_dirname in a single function
31262 # dirname: Compute the dirname of FILE. If nonempty,
31263 # add APPEND to the result, otherwise set result
31264 # to NONDIR_REPLACEMENT.
31265 # value returned in "$func_dirname_result"
31266 # basename: Compute filename of FILE.
31267 # value retuned in "$func_basename_result"
31268 # Implementation must be kept synchronized with func_dirname
31269 # and func_basename. For efficiency, we do not delegate to
31270 # those functions but instead duplicate the functionality here.
31271 func_dirname_and_basename ()
31274 */*) func_dirname_result="${1%/*}${2}" ;;
31275 * ) func_dirname_result="${3}" ;;
31277 func_basename_result="${1##*/}"
31280 # func_stripname prefix suffix name
31281 # strip PREFIX and SUFFIX off of NAME.
31282 # PREFIX and SUFFIX must not contain globbing or regex special
31283 # characters, hashes, percent signs, but SUFFIX may contain a leading
31284 # dot (in which case that matches only a dot).
31287 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31288 # positional parameters, so assign one to ordinary parameter first.
31289 func_stripname_result=${3}
31290 func_stripname_result=${func_stripname_result#"${1}"}
31291 func_stripname_result=${func_stripname_result%"${2}"}
31297 func_opt_split_opt=${1%%=*}
31298 func_opt_split_arg=${1#*=}
31305 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31306 *) func_lo2o_result=${1} ;;
31310 # func_xform libobj-or-source
31313 func_xform_result=${1%.*}.lo
31316 # func_arith arithmetic-term...
31319 func_arith_result=$(( $* ))
31323 # STRING may not start with a hyphen.
31326 func_len_result=${#1}
31331 *) # Bourne compatible functions.
31332 cat << \_LT_EOF >> "$cfgfile"
31334 # func_dirname file append nondir_replacement
31335 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31336 # otherwise set result to NONDIR_REPLACEMENT.
31339 # Extract subdirectory from the argument.
31340 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31341 if test "X$func_dirname_result" = "X${1}"; then
31342 func_dirname_result="${3}"
31344 func_dirname_result="$func_dirname_result${2}"
31348 # func_basename file
31351 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31355 # func_stripname prefix suffix name
31356 # strip PREFIX and SUFFIX off of NAME.
31357 # PREFIX and SUFFIX must not contain globbing or regex special
31358 # characters, hashes, percent signs, but SUFFIX may contain a leading
31359 # dot (in which case that matches only a dot).
31360 # func_strip_suffix prefix name
31364 .*) func_stripname_result=`$ECHO "X${3}" \
31365 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31366 *) func_stripname_result=`$ECHO "X${3}" \
31367 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31372 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31373 my_sed_long_arg='1s/^-[^=]*=//'
31378 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31379 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31385 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31388 # func_xform libobj-or-source
31391 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31394 # func_arith arithmetic-term...
31397 func_arith_result=`expr "$@"`
31401 # STRING may not start with a hyphen.
31404 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31410 case $lt_shell_append in
31412 cat << \_LT_EOF >> "$cfgfile"
31414 # func_append var value
31415 # Append VALUE to the end of shell variable VAR.
31423 cat << \_LT_EOF >> "$cfgfile"
31425 # func_append var value
31426 # Append VALUE to the end of shell variable VAR.
31437 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31438 || (rm -f "$cfgfile"; exit 1)
31440 mv -f "$cfgfile" "$ofile" ||
31441 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31445 cat <<_LT_EOF >> "$ofile"
31447 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31449 # The linker used to build libraries.
31452 # Commands used to build an old-style archive.
31453 old_archive_cmds=$lt_old_archive_cmds_CXX
31455 # A language specific compiler.
31456 CC=$lt_compiler_CXX
31458 # Is the compiler the GNU compiler?
31461 # Compiler flag to turn off builtin functions.
31462 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31464 # How to pass a linker flag through the compiler.
31465 wl=$lt_lt_prog_compiler_wl_CXX
31467 # Additional compiler flags for building library objects.
31468 pic_flag=$lt_lt_prog_compiler_pic_CXX
31470 # Compiler flag to prevent dynamic linking.
31471 link_static_flag=$lt_lt_prog_compiler_static_CXX
31473 # Does compiler simultaneously support -c and -o options?
31474 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31476 # Whether or not to add -lc for building shared libraries.
31477 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31479 # Whether or not to disallow shared libs when runtime libs are static.
31480 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31482 # Compiler flag to allow reflexive dlopens.
31483 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31485 # Compiler flag to generate shared objects directly from archives.
31486 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31488 # Whether the compiler copes with passing no objects directly.
31489 compiler_needs_object=$lt_compiler_needs_object_CXX
31491 # Create an old-style archive from a shared archive.
31492 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31494 # Create a temporary old-style archive to link instead of a shared archive.
31495 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31497 # Commands used to build a shared archive.
31498 archive_cmds=$lt_archive_cmds_CXX
31499 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31501 # Commands used to build a loadable module if different from building
31502 # a shared archive.
31503 module_cmds=$lt_module_cmds_CXX
31504 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31506 # Whether we are building with GNU ld or not.
31507 with_gnu_ld=$lt_with_gnu_ld_CXX
31509 # Flag that allows shared libraries with undefined symbols to be built.
31510 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31512 # Flag that enforces no undefined symbols.
31513 no_undefined_flag=$lt_no_undefined_flag_CXX
31515 # Flag to hardcode \$libdir into a binary during linking.
31516 # This must work even if \$libdir does not exist
31517 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31519 # If ld is used when linking, flag to hardcode \$libdir into a binary
31520 # during linking. This must work even if \$libdir does not exist.
31521 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31523 # Whether we need a single "-rpath" flag with a separated argument.
31524 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31526 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31527 # DIR into the resulting binary.
31528 hardcode_direct=$hardcode_direct_CXX
31530 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31531 # DIR into the resulting binary and the resulting library dependency is
31532 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31533 # library is relocated.
31534 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31536 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31537 # into the resulting binary.
31538 hardcode_minus_L=$hardcode_minus_L_CXX
31540 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31541 # into the resulting binary.
31542 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31544 # Set to "yes" if building a shared library automatically hardcodes DIR
31545 # into the library and all subsequent libraries and executables linked
31547 hardcode_automatic=$hardcode_automatic_CXX
31549 # Set to yes if linker adds runtime paths of dependent libraries
31550 # to runtime path list.
31551 inherit_rpath=$inherit_rpath_CXX
31553 # Whether libtool must link a program against all its dependency libraries.
31554 link_all_deplibs=$link_all_deplibs_CXX
31556 # Fix the shell variable \$srcfile for the compiler.
31557 fix_srcfile_path=$lt_fix_srcfile_path_CXX
31559 # Set to "yes" if exported symbols are required.
31560 always_export_symbols=$always_export_symbols_CXX
31562 # The commands to list exported symbols.
31563 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31565 # Symbols that should not be listed in the preloaded symbols.
31566 exclude_expsyms=$lt_exclude_expsyms_CXX
31568 # Symbols that must always be exported.
31569 include_expsyms=$lt_include_expsyms_CXX
31571 # Commands necessary for linking programs (against libraries) with templates.
31572 prelink_cmds=$lt_prelink_cmds_CXX
31574 # Specify filename containing input files.
31575 file_list_spec=$lt_file_list_spec_CXX
31577 # How to hardcode a shared library path into an executable.
31578 hardcode_action=$hardcode_action_CXX
31580 # The directories searched by this compiler when creating a shared library.
31581 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31583 # Dependencies to place before and after the objects being linked to
31584 # create a shared library.
31585 predep_objects=$lt_predep_objects_CXX
31586 postdep_objects=$lt_postdep_objects_CXX
31587 predeps=$lt_predeps_CXX
31588 postdeps=$lt_postdeps_CXX
31590 # The library search path used internally by the compiler when linking
31591 # a shared library.
31592 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31594 # ### END LIBTOOL TAG CONFIG: CXX
31599 for ac_file in $CONFIG_FILES; do
31600 # Support "outfile[:infile[:infile...]]"
31602 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31604 # PO directories have a Makefile.in generated from Makefile.in.in.
31605 case "$ac_file" in */Makefile.in)
31606 # Adjust a relative srcdir.
31607 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31608 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31609 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31610 # In autoconf-2.13 it is called $ac_given_srcdir.
31611 # In autoconf-2.50 it is called $srcdir.
31612 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31613 case "$ac_given_srcdir" in
31614 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31615 /*) top_srcdir="$ac_given_srcdir" ;;
31616 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31618 # Treat a directory as a PO directory if and only if it has a
31619 # POTFILES.in file. This allows packages to have multiple PO
31620 # directories under different names or in different locations.
31621 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31622 rm -f "$ac_dir/POTFILES"
31623 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31624 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31625 POMAKEFILEDEPS="POTFILES.in"
31626 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31627 # on $ac_dir but don't depend on user-specified configuration
31629 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31630 # The LINGUAS file contains the set of available languages.
31631 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31632 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31634 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31635 # Hide the ALL_LINGUAS assigment from automake.
31636 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31637 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31639 # The set of available languages was given in configure.in.
31640 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31643 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31644 # Compute UPDATEPOFILES
31645 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31646 # Compute DUMMYPOFILES
31647 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31649 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31650 case "$ac_given_srcdir" in
31652 *) srcdirpre='$(srcdir)/' ;;
31658 for lang in $ALL_LINGUAS; do
31659 POFILES="$POFILES $srcdirpre$lang.po"
31660 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31661 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31662 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31664 # CATALOGS depends on both $ac_dir and the user's LINGUAS
31665 # environment variable.
31667 if test -n "$ALL_LINGUAS"; then
31668 for presentlang in $ALL_LINGUAS; do
31670 if test "%UNSET%" != "$LINGUAS"; then
31671 desiredlanguages="$LINGUAS"
31673 desiredlanguages="$ALL_LINGUAS"
31675 for desiredlang in $desiredlanguages; do
31676 # Use the presentlang catalog if desiredlang is
31677 # a. equal to presentlang, or
31678 # b. a variant of presentlang (because in this case,
31679 # presentlang can be used as a fallback for messages
31680 # which are not translated in the desiredlang catalog).
31681 case "$desiredlang" in
31682 "$presentlang"*) useit=yes;;
31685 if test $useit = yes; then
31686 INST_LINGUAS="$INST_LINGUAS $presentlang"
31691 if test -n "$INST_LINGUAS"; then
31692 for lang in $INST_LINGUAS; do
31693 CATALOGS="$CATALOGS $lang.gmo"
31696 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31697 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"
31698 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31699 if test -f "$f"; then
31701 *.orig | *.bak | *~) ;;
31702 *) cat "$f" >> "$ac_dir/Makefile" ;;
31719 ac_clean_files=$ac_clean_files_save
31721 test $ac_write_fail = 0 ||
31722 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31725 # configure is writing to config.log, and then calls config.status.
31726 # config.status does its own redirection, appending to config.log.
31727 # Unfortunately, on DOS this fails, as config.log is still kept open
31728 # by configure, so config.status won't be able to write to it; its
31729 # output is simply discarded. So we exec the FD to /dev/null,
31730 # effectively closing config.log, so it can be properly (re)opened and
31731 # appended to by config.status. When coming back to configure, we
31732 # need to make the FD available again.
31733 if test "$no_create" != yes; then
31735 ac_config_status_args=
31736 test "$silent" = yes &&
31737 ac_config_status_args="$ac_config_status_args --quiet"
31739 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31741 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31742 # would make configure fail if this is the last instruction.
31743 $ac_cs_success || as_fn_exit $?
31745 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31747 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31751 if test "${support_bat}" = "yes" ; then
31752 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
31753 as_fn_error "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" "$LINENO" 5
31758 if test "x$QMAKEQT4" != "xnone"; then
31763 echo "Creating bat Makefile"
31767 ${MAKE:-make} clean
31771 if test X"$GCC" = "Xyes" ; then
31772 echo "Doing make of dependencies"
31773 ${MAKE:-make} depend
31777 chmod 755 install_conf_file build-depkgs-qt-console
31781 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31782 chmod 755 dvd-handler dvd-simulator breload make_catalog_backup.pl
31783 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31787 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
31788 chmod 755 $c/update_postgresql_tables_10_to_11
31792 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
31793 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
31795 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
31796 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
31798 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
31799 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
31801 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
31802 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
31804 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
31805 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
31807 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31808 chmod 755 $c/sqlite
31811 chmod 755 src/win32/build-depkgs-mingw32
31813 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31814 largefile_support="yes"
31817 if test X"$GCC" = "Xyes" ; then
31818 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31819 if test "x${CCVERSION}" = "x" ; then
31820 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31822 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31823 if test x"${CXXVERSION}" = x ; then
31824 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31828 # clean up any old junk
31832 ${MAKE:-make} clean
31834 if test "x${db_type}" = "xInternal" ; then
31837 echo "You have not specified either --enable-client-only or one of the"
31838 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
31839 echo " This is not permitted. Please reconfigure."
31841 echo "Aborting the configuration ..."
31848 Configuration on `date`:
31850 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
31851 Bacula version: ${BACULA} ${VERSION} (${DATE})
31852 Source code location: ${srcdir}
31853 Install binaries: ${sbindir}
31854 Install libraries: ${libdir}
31855 Install config files: ${sysconfdir}
31856 Scripts directory: ${scriptdir}
31857 Archive directory: ${archivedir}
31858 Working directory: ${working_dir}
31859 PID directory: ${piddir}
31860 Subsys directory: ${subsysdir}
31861 Man directory: ${mandir}
31862 Data directory: ${datarootdir}
31863 Plugin directory: ${plugindir}
31864 C Compiler: ${CC} ${CCVERSION}
31865 C++ Compiler: ${CXX} ${CXXVERSION}
31866 Compiler flags: ${WCFLAGS} ${CFLAGS}
31867 Linker flags: ${WLDFLAGS} ${LDFLAGS}
31869 Statically Linked Tools: ${support_static_tools}
31870 Statically Linked FD: ${support_static_fd}
31871 Statically Linked SD: ${support_static_sd}
31872 Statically Linked DIR: ${support_static_dir}
31873 Statically Linked CONS: ${support_static_cons}
31874 Database type: ${db_type}
31875 Database port: ${db_port}
31876 Database lib: ${DB_LIBS}
31877 Database name: ${db_name}
31878 Database user: ${db_user}
31880 Job Output Email: ${job_email}
31881 Traceback Email: ${dump_email}
31882 SMTP Host Address: ${smtp_host}
31884 Director Port: ${dir_port}
31885 File daemon Port: ${fd_port}
31886 Storage daemon Port: ${sd_port}
31888 Director User: ${dir_user}
31889 Director Group: ${dir_group}
31890 Storage Daemon User: ${sd_user}
31891 Storage DaemonGroup: ${sd_group}
31892 File Daemon User: ${fd_user}
31893 File Daemon Group: ${fd_group}
31895 SQL binaries Directory ${SQL_BINDIR}
31897 Large file support: $largefile_support
31898 Bacula conio support: ${got_conio} ${CONS_LIBS}
31899 readline support: ${got_readline} ${PRTREADLINE_SRC}
31900 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
31901 TLS support: ${support_tls}
31902 Encryption support: ${support_crypto}
31903 ZLIB support: ${have_zlib}
31904 enable-smartalloc: ${support_smartalloc}
31905 enable-lockmgr: ${support_lockmgr}
31906 bat support: ${support_bat} ${QWT_LDFLAGS}
31907 enable-gnome: ${support_gnome} ${gnome_version}
31908 enable-bwx-console: ${support_wx_console} ${wx_version}
31909 enable-tray-monitor: ${support_tray_monitor}
31910 client-only: ${build_client_only}
31911 build-dird: ${build_dird}
31912 build-stored: ${build_stored}
31913 ACL support: ${have_acl}
31914 XATTR support: ${have_xattr}
31915 Python support: ${support_python} ${PYTHON_LIBS}
31916 Batch insert enabled: ${support_batch_insert}
31922 # create a small shell script useful for support with
31923 # configure options and config.out info
31924 cat > scripts/bacula_config << EOF
31927 $ $0 $ac_configure_args
31929 cat config.out >> scripts/bacula_config
31930 echo __EOC__ >> scripts/bacula_config
31931 chmod 755 scripts/bacula_config
31933 # Display a warning message if postgresql client lib is <= 8.1
31934 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
31935 -a x$support_batch_insert = xyes
31937 echo "WARNING: Your PostgreSQL client library is too old to detect "
31938 echo " if it was compiled with --enable-thread-safety, consider to"
31939 echo " upgrade it in order to avoid problems with Batch insert mode"