2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for amanda 3.3.3.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir=.
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 *v*x* | *x*v* ) as_opts=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 # Portably unset VAR.
270 { eval $1=; unset $1;}
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 # Create "$as_dir" as a directory, including parents if necessary.
299 -*) as_dir=./$as_dir;;
301 test -d "$as_dir" || eval $as_mkdir_p || {
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
511 test -d ./-p && rmdir ./-p
515 if test -x / >/dev/null 2>&1; then
518 if ls -dL / >/dev/null 2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix=/usr/local
560 ac_config_libobj_dir=.
567 # Identity of this package.
568 PACKAGE_NAME='amanda'
569 PACKAGE_TARNAME='amanda'
570 PACKAGE_VERSION='3.3.3'
571 PACKAGE_STRING='amanda 3.3.3'
575 ac_unique_file="common-src/amanda.h"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
589 # ifdef HAVE_STDLIB_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
612 gl_use_threads_default=
615 gl_getopt_required=POSIX
616 gl_getopt_required=POSIX
617 ac_subst_vars='gltests_LTLIBOBJS
625 WANT_NDMP_DEVICE_FALSE
626 WANT_NDMP_DEVICE_TRUE
627 WANT_DVDRW_DEVICE_FALSE
628 WANT_DVDRW_DEVICE_TRUE
629 WANT_TAPE_DEVICE_FALSE
630 WANT_TAPE_DEVICE_TRUE
645 AMANDA_STATIC_LDFLAGS
664 AMANDA_SWIG_PERL_CFLAGS
713 WANT_KRB5_SECURITY_FALSE
714 WANT_KRB5_SECURITY_TRUE
716 WANT_SSH_SECURITY_FALSE
717 WANT_SSH_SECURITY_TRUE
720 WANT_RSH_SECURITY_FALSE
721 WANT_RSH_SECURITY_TRUE
723 WANT_BSDUDP_SECURITY_FALSE
724 WANT_BSDUDP_SECURITY_TRUE
726 WANT_BSDTCP_SECURITY_FALSE
727 WANT_BSDTCP_SECURITY_TRUE
730 WANT_BSD_SECURITY_FALSE
731 WANT_BSD_SECURITY_TRUE
762 WANT_MANDATORY_THREAD_CHECK_FALSE
763 WANT_MANDATORY_THREAD_CHECK_TRUE
764 WANT_CYGWIN_COPY_PERL_DLL_FALSE
765 WANT_CYGWIN_COPY_PERL_DLL_TRUE
771 WANT_AMFLOCK_LNLOCK_FALSE
772 WANT_AMFLOCK_LNLOCK_TRUE
773 WANT_AMFLOCK_LOCKF_FALSE
774 WANT_AMFLOCK_LOCKF_TRUE
775 WANT_AMFLOCK_FLOCK_FALSE
776 WANT_AMFLOCK_FLOCK_TRUE
777 WANT_AMFLOCK_POSIX_FALSE
778 WANT_AMFLOCK_POSIX_TRUE
780 DEFAULT_AMANDATES_FILE
786 CONFIG_CLOBBER_MY_CONFIG
789 ENABLE_MANPAGE_BUILD_FALSE
790 ENABLE_MANPAGE_BUILD_TRUE
818 WANT_INSTALLPERMS_FALSE
819 WANT_INSTALLPERMS_TRUE
820 WANT_SETUID_CLIENT_FALSE
821 WANT_SETUID_CLIENT_TRUE
834 GNUTAR_LISTED_INCREMENTAL_DIR
841 AMANDA_WARNING_CFLAGS
845 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
852 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
855 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
857 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
858 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
859 TIME_H_DEFINES_STRUCT_TIMESPEC
860 NEXT_AS_FIRST_DIRECTIVE_TIME_H
875 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
877 NEXT_AS_FIRST_DIRECTIVE_STRING_H
880 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
882 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
893 HAVE_SIGNED_SIG_ATOMIC_T
896 BITSIZEOF_SIG_ATOMIC_T
902 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
906 HAVE_UNSIGNED_LONG_LONG_INT
908 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
917 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
919 APPLE_UNIVERSAL_BUILD
996 REPLACE_CANONICALIZE_FILE_NAME
1001 HAVE_STRUCT_RANDOM_DATA
1017 HAVE_DECL_GETLOADAVG
1018 HAVE_CANONICALIZE_FILE_NAME
1029 GNULIB_REALLOC_POSIX
1042 GNULIB_CANONICALIZE_FILE_NAME
1084 LOCALCHARSET_TESTS_ENVIRONMENT
1087 HAVE_LANGINFO_CODESET
1089 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
1095 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1097 REPLACE_GETTIMEOFDAY
1106 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1113 NEXT_AS_FIRST_DIRECTIVE_NETDB_H
1115 HAVE_DECL_GETNAMEINFO
1116 HAVE_DECL_GETADDRINFO
1117 HAVE_DECL_GAI_STRERROR
1118 HAVE_DECL_FREEADDRINFO
1119 HAVE_STRUCT_ADDRINFO
1124 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1128 HAVE_STRUCT_SOCKADDR_STORAGE
1151 REPLACE_STDIO_WRITE_FUNCS
1160 REPLACE_OBSTACK_PRINTF
1182 HAVE_DECL_OBSTACK_PRINTF
1186 GNULIB_VSPRINTF_POSIX
1188 GNULIB_VPRINTF_POSIX
1190 GNULIB_VFPRINTF_POSIX
1195 GNULIB_STDIO_H_SIGPIPE
1196 GNULIB_SPRINTF_POSIX
1208 GNULIB_OBSTACK_PRINTF_POSIX
1209 GNULIB_OBSTACK_PRINTF
1221 GNULIB_FPRINTF_POSIX
1228 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1237 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1239 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1240 UNISTD_H_HAVE_WINSOCK2_H
1266 HAVE_DECL_GETUSERSHELL
1267 HAVE_DECL_GETPAGESIZE
1268 HAVE_DECL_GETLOGIN_R
1303 GNULIB_UNISTD_H_SIGPIPE
1304 GNULIB_UNISTD_H_GETOPT
1325 GNULIB_GETDTABLESIZE
1326 GNULIB_GETDOMAINNAME
1374 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1376 PRAGMA_SYSTEM_HEADER
1377 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1386 GL_COND_LIBTOOL_FALSE
1387 GL_COND_LIBTOOL_TRUE
1421 INSTALL_STRIP_PROGRAM
1474 program_transform_name
1487 enable_option_checking
1488 enable_dependency_tracking
1508 with_gnutar_listed_incremental
1514 with_low_tcpportrange
1518 with_maxtapeblocksize
1525 enable_syntax_checks
1534 enable_manpage_build
1550 with_libiconv_prefix
1554 with_bsdtcp_security
1555 with_bsdudp_security
1560 with_dump_honor_nodump
1575 enable_static_binary
1583 ac_precious_vars='build_alias
1613 # Initialize some variables set by options.
1615 ac_init_version=false
1616 ac_unrecognized_opts=
1617 ac_unrecognized_sep=
1618 # The variables have the same names as the options, with
1619 # dashes changed to underlines.
1620 cache_file=/dev/null
1627 program_transform_name=s,x,x,
1635 # Installation directory options.
1636 # These are left unexpanded so users can "make install exec_prefix=/foo"
1637 # and all the variables that are supposed to be based on exec_prefix
1638 # by default will actually change.
1639 # Use braces instead of parens because sh, perl, etc. also accept them.
1640 # (The list follows the same order as the GNU Coding Standards.)
1641 bindir='${exec_prefix}/bin'
1642 sbindir='${exec_prefix}/sbin'
1643 libexecdir='${exec_prefix}/libexec'
1644 datarootdir='${prefix}/share'
1645 datadir='${datarootdir}'
1646 sysconfdir='${prefix}/etc'
1647 sharedstatedir='${prefix}/com'
1648 localstatedir='${prefix}/var'
1649 includedir='${prefix}/include'
1650 oldincludedir='/usr/include'
1651 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1652 infodir='${datarootdir}/info'
1657 libdir='${exec_prefix}/lib'
1658 localedir='${datarootdir}/locale'
1659 mandir='${datarootdir}/man'
1665 # If the previous option needs an argument, assign it.
1666 if test -n "$ac_prev"; then
1667 eval $ac_prev=\$ac_option
1673 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1678 # Accept the important Cygnus configure options, so we can diagnose typos.
1680 case $ac_dashdash$ac_option in
1684 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1686 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1687 bindir=$ac_optarg ;;
1689 -build | --build | --buil | --bui | --bu)
1690 ac_prev=build_alias ;;
1691 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1692 build_alias=$ac_optarg ;;
1694 -cache-file | --cache-file | --cache-fil | --cache-fi \
1695 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1696 ac_prev=cache_file ;;
1697 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1698 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1699 cache_file=$ac_optarg ;;
1701 --config-cache | -C)
1702 cache_file=config.cache ;;
1704 -datadir | --datadir | --datadi | --datad)
1706 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1707 datadir=$ac_optarg ;;
1709 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1710 | --dataroo | --dataro | --datar)
1711 ac_prev=datarootdir ;;
1712 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1713 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1714 datarootdir=$ac_optarg ;;
1716 -disable-* | --disable-*)
1717 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1718 # Reject names that are not valid shell variable names.
1719 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1720 as_fn_error $? "invalid feature name: $ac_useropt"
1721 ac_useropt_orig=$ac_useropt
1722 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1723 case $ac_user_opts in
1725 "enable_$ac_useropt"
1727 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1728 ac_unrecognized_sep=', ';;
1730 eval enable_$ac_useropt=no ;;
1732 -docdir | --docdir | --docdi | --doc | --do)
1734 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1735 docdir=$ac_optarg ;;
1737 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1739 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1740 dvidir=$ac_optarg ;;
1742 -enable-* | --enable-*)
1743 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1744 # Reject names that are not valid shell variable names.
1745 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1746 as_fn_error $? "invalid feature name: $ac_useropt"
1747 ac_useropt_orig=$ac_useropt
1748 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1749 case $ac_user_opts in
1751 "enable_$ac_useropt"
1753 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1754 ac_unrecognized_sep=', ';;
1756 eval enable_$ac_useropt=\$ac_optarg ;;
1758 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1759 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1760 | --exec | --exe | --ex)
1761 ac_prev=exec_prefix ;;
1762 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1763 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1764 | --exec=* | --exe=* | --ex=*)
1765 exec_prefix=$ac_optarg ;;
1767 -gas | --gas | --ga | --g)
1768 # Obsolete; use --with-gas.
1771 -help | --help | --hel | --he | -h)
1772 ac_init_help=long ;;
1773 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1774 ac_init_help=recursive ;;
1775 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1776 ac_init_help=short ;;
1778 -host | --host | --hos | --ho)
1779 ac_prev=host_alias ;;
1780 -host=* | --host=* | --hos=* | --ho=*)
1781 host_alias=$ac_optarg ;;
1783 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1785 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1787 htmldir=$ac_optarg ;;
1789 -includedir | --includedir | --includedi | --included | --include \
1790 | --includ | --inclu | --incl | --inc)
1791 ac_prev=includedir ;;
1792 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1793 | --includ=* | --inclu=* | --incl=* | --inc=*)
1794 includedir=$ac_optarg ;;
1796 -infodir | --infodir | --infodi | --infod | --info | --inf)
1798 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1799 infodir=$ac_optarg ;;
1801 -libdir | --libdir | --libdi | --libd)
1803 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1804 libdir=$ac_optarg ;;
1806 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1807 | --libexe | --libex | --libe)
1808 ac_prev=libexecdir ;;
1809 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1810 | --libexe=* | --libex=* | --libe=*)
1811 libexecdir=$ac_optarg ;;
1813 -localedir | --localedir | --localedi | --localed | --locale)
1814 ac_prev=localedir ;;
1815 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1816 localedir=$ac_optarg ;;
1818 -localstatedir | --localstatedir | --localstatedi | --localstated \
1819 | --localstate | --localstat | --localsta | --localst | --locals)
1820 ac_prev=localstatedir ;;
1821 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1822 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1823 localstatedir=$ac_optarg ;;
1825 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1827 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1828 mandir=$ac_optarg ;;
1830 -nfp | --nfp | --nf)
1831 # Obsolete; use --without-fp.
1834 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1835 | --no-cr | --no-c | -n)
1838 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1839 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1842 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1843 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1844 | --oldin | --oldi | --old | --ol | --o)
1845 ac_prev=oldincludedir ;;
1846 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1847 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1848 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1849 oldincludedir=$ac_optarg ;;
1851 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1853 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1854 prefix=$ac_optarg ;;
1856 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1857 | --program-pre | --program-pr | --program-p)
1858 ac_prev=program_prefix ;;
1859 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1860 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1861 program_prefix=$ac_optarg ;;
1863 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1864 | --program-suf | --program-su | --program-s)
1865 ac_prev=program_suffix ;;
1866 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1867 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1868 program_suffix=$ac_optarg ;;
1870 -program-transform-name | --program-transform-name \
1871 | --program-transform-nam | --program-transform-na \
1872 | --program-transform-n | --program-transform- \
1873 | --program-transform | --program-transfor \
1874 | --program-transfo | --program-transf \
1875 | --program-trans | --program-tran \
1876 | --progr-tra | --program-tr | --program-t)
1877 ac_prev=program_transform_name ;;
1878 -program-transform-name=* | --program-transform-name=* \
1879 | --program-transform-nam=* | --program-transform-na=* \
1880 | --program-transform-n=* | --program-transform-=* \
1881 | --program-transform=* | --program-transfor=* \
1882 | --program-transfo=* | --program-transf=* \
1883 | --program-trans=* | --program-tran=* \
1884 | --progr-tra=* | --program-tr=* | --program-t=*)
1885 program_transform_name=$ac_optarg ;;
1887 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1889 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1890 pdfdir=$ac_optarg ;;
1892 -psdir | --psdir | --psdi | --psd | --ps)
1894 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1897 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1898 | -silent | --silent | --silen | --sile | --sil)
1901 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1903 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1905 sbindir=$ac_optarg ;;
1907 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1908 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1909 | --sharedst | --shareds | --shared | --share | --shar \
1911 ac_prev=sharedstatedir ;;
1912 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1913 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1914 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1916 sharedstatedir=$ac_optarg ;;
1918 -site | --site | --sit)
1920 -site=* | --site=* | --sit=*)
1923 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1925 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1926 srcdir=$ac_optarg ;;
1928 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1929 | --syscon | --sysco | --sysc | --sys | --sy)
1930 ac_prev=sysconfdir ;;
1931 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1932 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1933 sysconfdir=$ac_optarg ;;
1935 -target | --target | --targe | --targ | --tar | --ta | --t)
1936 ac_prev=target_alias ;;
1937 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1938 target_alias=$ac_optarg ;;
1940 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1943 -version | --version | --versio | --versi | --vers | -V)
1944 ac_init_version=: ;;
1947 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1948 # Reject names that are not valid shell variable names.
1949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1950 as_fn_error $? "invalid package name: $ac_useropt"
1951 ac_useropt_orig=$ac_useropt
1952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1953 case $ac_user_opts in
1957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1958 ac_unrecognized_sep=', ';;
1960 eval with_$ac_useropt=\$ac_optarg ;;
1962 -without-* | --without-*)
1963 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1964 # Reject names that are not valid shell variable names.
1965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1966 as_fn_error $? "invalid package name: $ac_useropt"
1967 ac_useropt_orig=$ac_useropt
1968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1969 case $ac_user_opts in
1973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1974 ac_unrecognized_sep=', ';;
1976 eval with_$ac_useropt=no ;;
1979 # Obsolete; use --with-x.
1982 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1983 | --x-incl | --x-inc | --x-in | --x-i)
1984 ac_prev=x_includes ;;
1985 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1986 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1987 x_includes=$ac_optarg ;;
1989 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1990 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1991 ac_prev=x_libraries ;;
1992 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1993 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1994 x_libraries=$ac_optarg ;;
1996 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1997 Try \`$0 --help' for more information"
2001 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2002 # Reject names that are not valid shell variable names.
2003 case $ac_envvar in #(
2004 '' | [0-9]* | *[!_$as_cr_alnum]* )
2005 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2007 eval $ac_envvar=\$ac_optarg
2008 export $ac_envvar ;;
2011 # FIXME: should be removed in autoconf 3.0.
2012 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2013 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2014 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2015 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2021 if test -n "$ac_prev"; then
2022 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2023 as_fn_error $? "missing argument to $ac_option"
2026 if test -n "$ac_unrecognized_opts"; then
2027 case $enable_option_checking in
2029 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2030 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2034 # Check all directory arguments for consistency.
2035 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2036 datadir sysconfdir sharedstatedir localstatedir includedir \
2037 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2038 libdir localedir mandir
2040 eval ac_val=\$$ac_var
2041 # Remove trailing slashes.
2044 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2045 eval $ac_var=\$ac_val;;
2047 # Be sure to have absolute directory names.
2049 [\\/$]* | ?:[\\/]* ) continue;;
2050 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2052 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2055 # There might be people who depend on the old broken behavior: `$host'
2056 # used to hold the argument of --host etc.
2057 # FIXME: To remove some day.
2060 target=$target_alias
2062 # FIXME: To remove some day.
2063 if test "x$host_alias" != x; then
2064 if test "x$build_alias" = x; then
2065 cross_compiling=maybe
2066 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
2067 If a cross compiler is detected then cross compile mode will be used" >&2
2068 elif test "x$build_alias" != "x$host_alias"; then
2074 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2076 test "$silent" = yes && exec 6>/dev/null
2079 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2080 ac_ls_di=`ls -di .` &&
2081 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2082 as_fn_error $? "working directory cannot be determined"
2083 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2084 as_fn_error $? "pwd does not report name of working directory"
2087 # Find the source files, if location was not specified.
2088 if test -z "$srcdir"; then
2089 ac_srcdir_defaulted=yes
2090 # Try the directory containing this script, then the parent directory.
2091 ac_confdir=`$as_dirname -- "$as_myself" ||
2092 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2093 X"$as_myself" : 'X\(//\)[^/]' \| \
2094 X"$as_myself" : 'X\(//\)$' \| \
2095 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2096 $as_echo X"$as_myself" |
2097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2115 if test ! -r "$srcdir/$ac_unique_file"; then
2119 ac_srcdir_defaulted=no
2121 if test ! -r "$srcdir/$ac_unique_file"; then
2122 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2123 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2125 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2127 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2129 # When building in place, set srcdir=.
2130 if test "$ac_abs_confdir" = "$ac_pwd"; then
2133 # Remove unnecessary trailing slashes from srcdir.
2134 # Double slashes in file names in object file debugging info
2135 # mess up M-x gdb in Emacs.
2137 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2139 for ac_var in $ac_precious_vars; do
2140 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2141 eval ac_env_${ac_var}_value=\$${ac_var}
2142 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2143 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2147 # Report the --help message.
2149 if test "$ac_init_help" = "long"; then
2150 # Omit some internal or obsolete options to make the list less imposing.
2151 # This message is too long to be a string in the A/UX 3.1 sh.
2153 \`configure' configures amanda 3.3.3 to adapt to many kinds of systems.
2155 Usage: $0 [OPTION]... [VAR=VALUE]...
2157 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2158 VAR=VALUE. See below for descriptions of some of the useful variables.
2160 Defaults for the options are specified in brackets.
2163 -h, --help display this help and exit
2164 --help=short display options specific to this package
2165 --help=recursive display the short help of all the included packages
2166 -V, --version display version information and exit
2167 -q, --quiet, --silent do not print \`checking ...' messages
2168 --cache-file=FILE cache test results in FILE [disabled]
2169 -C, --config-cache alias for \`--cache-file=config.cache'
2170 -n, --no-create do not create output files
2171 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2173 Installation directories:
2174 --prefix=PREFIX install architecture-independent files in PREFIX
2175 [$ac_default_prefix]
2176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2179 By default, \`make install' will install all the files in
2180 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2181 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2182 for instance \`--prefix=\$HOME'.
2184 For better control, use the options below.
2186 Fine tuning of the installation directories:
2187 --bindir=DIR user executables [EPREFIX/bin]
2188 --sbindir=DIR system admin executables [EPREFIX/sbin]
2189 --libexecdir=DIR program executables [EPREFIX/libexec]
2190 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2191 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2192 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2193 --libdir=DIR object code libraries [EPREFIX/lib]
2194 --includedir=DIR C header files [PREFIX/include]
2195 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2196 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2197 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2198 --infodir=DIR info documentation [DATAROOTDIR/info]
2199 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2200 --mandir=DIR man documentation [DATAROOTDIR/man]
2201 --docdir=DIR documentation root [DATAROOTDIR/doc/amanda]
2202 --htmldir=DIR html documentation [DOCDIR]
2203 --dvidir=DIR dvi documentation [DOCDIR]
2204 --pdfdir=DIR pdf documentation [DOCDIR]
2205 --psdir=DIR ps documentation [DOCDIR]
2211 --program-prefix=PREFIX prepend PREFIX to installed program names
2212 --program-suffix=SUFFIX append SUFFIX to installed program names
2213 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2216 --build=BUILD configure for building on BUILD [guessed]
2217 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2221 if test -n "$ac_init_help"; then
2222 case $ac_init_help in
2223 short | recursive ) echo "Configuration of amanda 3.3.3:";;
2228 --disable-option-checking ignore unrecognized --enable/--with options
2229 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2230 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2231 --disable-dependency-tracking speeds up one-time build
2232 --enable-dependency-tracking do not reject slow dependency extractors
2233 --enable-threads={posix|solaris|pth|win32}
2234 specify multithreading API
2235 --disable-threads build without multithread safety
2236 --disable-rpath do not hardcode runtime library paths
2237 --disable-largefile omit support for large files
2238 --enable-as-needed enable use od --as-needed linker flag
2239 --disable-installperms do not modify ownership and permissions on installed
2241 --enable-syntax-checks Perform syntax checks when installing - developers
2243 --enable-manpage-build Build the manpages from their XML source (shipped
2244 manpages are usually sufficient)
2245 --disable-nls do not use Native Language Support
2246 --enable-werror To compile with -Werror compiler flag
2247 --enable-swig-error To compile swiged C file with -Werror compiler flag
2248 --enable-shared[=PKGS] build shared libraries [default=yes]
2249 --enable-static[=PKGS] build static libraries [default=yes]
2250 --enable-fast-install[=PKGS]
2251 optimize for fast installation [default=yes]
2252 --disable-libtool-lock avoid locking (might break parallel builds)
2253 --enable-static-binary To build statically linked binaries
2254 --disable-glibtest do not try to compile and run a test GLIB program
2255 --disable-s3-device disable the S3 device
2256 --disable-dvdrw-device disable the DVD-RW device
2257 --disable-ndmp-device disable the NDMP device
2260 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2261 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2262 --with-gnu-ld assume the C compiler uses GNU ld default=no
2263 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
2264 --without-libpth-prefix don't search for libpth in includedir and libdir
2265 --without-included-regex
2266 don't compile regex; this is the default on systems
2267 with recent-enough versions of the GNU C Library
2268 (use with caution on other systems).
2269 --with-cflags=FLAGS deprecated; use ./configure CFLAGS=...
2270 --with-includes=INCLUDE-DIRS
2271 deprecated; use ./configure CPPFLAGS='-I.. -I..'
2272 --with-libraries=LIBRARY-DIRS
2273 deprecated; use ./configure LDFLAGS='-L.. -L..' (add
2274 -R on Solaris, NetBSD)
2275 --with-user=USER force execution to USER on client systems (REQUIRED)
2276 --with-group=GROUP group allowed to execute setuid-root programs
2278 --with-dumperdir=DIR where we install the dumpers (deprecated)
2279 --with-configdir=DIR runtime config files in DIR [sysconfdir/amanda]
2280 --with-indexdir deprecated: use indexdir in amanda.conf
2281 --with-dbdir deprecated: use infofile in amanda.conf
2282 --with-logdir deprecated: use logfile in amanda.conf
2284 --with-gnutar-listdir=DIR
2285 put gnutar directory lists in DIR (default:
2286 localstatedir/amanda/gnutar-lists)
2287 --with-gnutar-listed-incremental
2288 deprecated; use --with-gnutar-listdir
2289 --with-tmpdir directory for temporary and debugging files
2290 (default: /tmp/amanda)
2291 --without-force-uid do not check userids when running programs
2293 force ownership of installed files to USER (default same as --with-user)
2295 --with-fqdn use FQDN's to backup multiple networks
2296 --without-reuseaddr Don't reuse network connections until full timeout
2298 --with-low-tcpportrange=low,high
2299 bind reserved TCP server sockets to ports within
2300 --with-tcpportrange=low,high
2301 bind unreserved TCP server sockets to ports within
2302 --with-udpportrange=low,high
2303 bind reserved UDP server sockets to ports within
2304 --with-buffered-dump buffer the dumping sockets on the server for speed
2306 --with-assertions compile assertions into code
2307 --with-debugging=DIR
2308 put debug logs in DIR (default same as --with-tmpdir)
2310 --with-debug-days=NN number of days to keep debugging files (default: 4)
2311 --with-testing[=SUFFIX] use alternate service names with suffix (default
2313 --with-single-userid
2314 force amanda to run as a single userid (for testing)
2316 --without-server do not build server stuff (set --without-restore)
2317 --without-client do not build client stuff
2318 --without-restore do not build amrestore nor amidxtaped
2319 --without-amrecover do not build amrecover
2320 --with-client-only deprecated: use --without-server
2321 --with-server-only deprecated: use --without-client
2322 --without-ndmp do not build ndmp
2323 --with-gnuplot=PATH use gnuplot executable at PATH in amplot
2324 --with-xsltproc[[[=PATH]]]
2325 Use the xsltproc binary in in PATH.
2326 --with-xsltproc-flags=FLAGS
2327 Flags to pass to xsltproc (default --nonet)
2328 --with-index-server=HOST
2329 default amanda index server (default: `uname -n`)
2330 --with-config=CONFIG default amanda configuration (default: DailySet1)
2331 --with-tape-server=HOST default tape server for restore (default: same as
2333 --with-tape-device=DEVICE
2334 default device on restore tape server
2335 --with-changer-device=DEV
2337 --with-amandates default location for 'amandates' (default:
2338 $localstatedir/amanda/amandates)
2339 --with-perlextlibs=libs extra LIBS for Perl extensions
2340 --with-ipv6 enable IPv6 support (default if IPv6 is found)
2341 --without-ipv6 disable IPv6
2342 --with-amlibdir[[[=PATH]]]
2343 Where library are installed, default: $libdir/amanda
2344 --without-amlibdir Library are installed in $libdir
2345 --with-amlibexecdir[[[=PATH]]]
2346 Where amanda own programs are installed, default:
2348 --without-amlibexecdir Amanda own programs are installed in $libexecdir
2349 --with-amperldir[[[=PATH]]]
2350 Where amanda's perl modules are installed; default:
2352 --without-amperldir Install amanda's perl modules in $amlibdir/perl
2353 --with-amdatadir[[[=PATH]]]
2354 Where amanda's templates and examples are installed;
2355 default: $datadir/amanda
2356 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2357 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2358 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2359 --without-libintl-prefix don't search for libintl in includedir and libdir
2360 --without-bsd-security do not include BSD authentication
2361 --without-amandahosts use ".rhosts" instead of ".amandahosts"
2362 --with-bsdtcp-security include BSDTCP authentication
2363 --with-bsdudp-security include BSDUDP authentication
2364 --with-rsh-security include RSH authentication
2365 --with-ssh-security include SSH authentication
2366 --with-ssh-options=[OPTIONS]
2367 Use these ssh options for ssh security; the default
2369 --with-krb5-security=DIR
2370 Location of Kerberos V software [/usr/kerberos
2371 /usr/cygnus /usr /opt/kerberos]
2372 --with-dump-honor-nodump
2373 if dump supports -h, use it for level0s too
2374 --with-gnutar=PROG use PROG as GNU 'tar'
2375 --with-star=PROG use PROG as 'star'
2376 --with-suntar=PROG use PROG as 'suntar'
2377 --with-smbclient=PROG use PROG as 'smbclient'
2378 --with-samba-user deprecated; place username in 'amandapass'
2379 --with-rundump use rundump, a setuid-root wrapper, to invoke dump
2380 --with-pic try to use only PIC/non-PIC objects [default=use
2382 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2383 --with-sysroot=DIR Search for dependent libraries within DIR
2384 (or the compiler's sysroot if not specified).
2385 --with-readline require readline support (for amrecover)
2386 --without-readline don't search for readline
2387 --with-libcurl=PREFIX look for the curl library in PREFIX/lib and headers
2390 Some influential environment variables:
2391 CC C compiler command
2392 CFLAGS C compiler flags
2393 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2394 nonstandard directory <lib dir>
2395 LIBS libraries to pass to the linker, e.g. -l<library>
2396 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2397 you have headers in a nonstandard directory <include dir>
2399 GNUPLOT Location of the 'gnuplot' binary
2400 SWIG Path to the 'swig' binary (developers only)
2401 PERL Path to the 'perl' binary
2402 GNUTAR Location of the GNU 'tar' binary
2403 STAR Location of the 'star' binary
2404 SUNTAR Location of the 'suntar' binary
2405 YACC The `Yet Another Compiler Compiler' implementation to use.
2406 Defaults to the first program found out of: `bison -y', `byacc',
2408 YFLAGS The list of arguments that will be passed by default to $YACC.
2409 This script will default YFLAGS to the empty string to avoid a
2410 default value of `-d' given by some make applications.
2411 MTX Path to the 'mtx' binary
2412 MOUNT Path to the 'mount' binary
2413 UMOUNT Path to the 'umount' binary
2414 GLIB_CFLAGS CFLAGS to build with glib; disables use of pkg-config; must
2415 specify all GLIB_ vars
2416 GLIB_LIBS libraries to build with glib; disables use of pkg-config; must
2417 specify all GLIB_vars
2419 genmarshal binary to use with glib; disables use of pkg-config;
2420 must specify all GLIB_ vars
2422 gobject_query binary to use with glib; disables use of
2423 pkg-config; must specify all GLIB_ vars
2425 mkenums binary to use with glib; disables use of pkg-config;
2426 must specify all GLIB_ vars
2427 PKG_CONFIG path to pkg-config utility
2429 directories to add to pkg-config's search path
2431 path overriding pkg-config's built-in search path
2433 Use these variables to override the choices made by `configure' or to help
2434 it to find libraries and programs with nonstandard names/locations.
2436 Report bugs to the package provider.
2441 if test "$ac_init_help" = "recursive"; then
2442 # If there are subdirs, report their specific --help.
2443 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2444 test -d "$ac_dir" ||
2445 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2450 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2452 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2453 # A ".." for each directory in $ac_dir_suffix.
2454 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2455 case $ac_top_builddir_sub in
2456 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2457 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2460 ac_abs_top_builddir=$ac_pwd
2461 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2462 # for backward compatibility:
2463 ac_top_builddir=$ac_top_build_prefix
2466 .) # We are building in place.
2468 ac_top_srcdir=$ac_top_builddir_sub
2469 ac_abs_top_srcdir=$ac_pwd ;;
2470 [\\/]* | ?:[\\/]* ) # Absolute name.
2471 ac_srcdir=$srcdir$ac_dir_suffix;
2472 ac_top_srcdir=$srcdir
2473 ac_abs_top_srcdir=$srcdir ;;
2475 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2476 ac_top_srcdir=$ac_top_build_prefix$srcdir
2477 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2479 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2481 cd "$ac_dir" || { ac_status=$?; continue; }
2482 # Check for guested configure.
2483 if test -f "$ac_srcdir/configure.gnu"; then
2485 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2486 elif test -f "$ac_srcdir/configure"; then
2488 $SHELL "$ac_srcdir/configure" --help=recursive
2490 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2492 cd "$ac_pwd" || { ac_status=$?; break; }
2496 test -n "$ac_init_help" && exit $ac_status
2497 if $ac_init_version; then
2499 amanda configure 3.3.3
2500 generated by GNU Autoconf 2.68
2502 Copyright (C) 2010 Free Software Foundation, Inc.
2503 This configure script is free software; the Free Software Foundation
2504 gives unlimited permission to copy, distribute and modify it.
2509 ## ------------------------ ##
2510 ## Autoconf initialization. ##
2511 ## ------------------------ ##
2513 # ac_fn_c_try_compile LINENO
2514 # --------------------------
2515 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2516 ac_fn_c_try_compile ()
2518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2519 rm -f conftest.$ac_objext
2520 if { { ac_try="$ac_compile"
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2526 $as_echo "$ac_try_echo"; } >&5
2527 (eval "$ac_compile") 2>conftest.err
2529 if test -s conftest.err; then
2530 grep -v '^ *+' conftest.err >conftest.er1
2531 cat conftest.er1 >&5
2532 mv -f conftest.er1 conftest.err
2534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2535 test $ac_status = 0; } && {
2536 test -z "$ac_c_werror_flag" ||
2537 test ! -s conftest.err
2538 } && test -s conftest.$ac_objext; then :
2541 $as_echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2546 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2547 as_fn_set_status $ac_retval
2549 } # ac_fn_c_try_compile
2551 # ac_fn_c_try_cpp LINENO
2552 # ----------------------
2553 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 if { { ac_try="$ac_cpp conftest.$ac_ext"
2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2563 $as_echo "$ac_try_echo"; } >&5
2564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2566 if test -s conftest.err; then
2567 grep -v '^ *+' conftest.err >conftest.er1
2568 cat conftest.er1 >&5
2569 mv -f conftest.er1 conftest.err
2571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2572 test $ac_status = 0; } > conftest.i && {
2573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2574 test ! -s conftest.err
2578 $as_echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2584 as_fn_set_status $ac_retval
2588 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2589 # -------------------------------------------------------
2590 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2591 # the include files in INCLUDES and setting the cache variable VAR
2593 ac_fn_c_check_header_mongrel ()
2595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2596 if eval \${$3+:} false; then :
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2598 $as_echo_n "checking for $2... " >&6; }
2599 if eval \${$3+:} false; then :
2600 $as_echo_n "(cached) " >&6
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2604 $as_echo "$ac_res" >&6; }
2606 # Is the header compilable?
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2608 $as_echo_n "checking $2 usability... " >&6; }
2609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610 /* end confdefs.h. */
2614 if ac_fn_c_try_compile "$LINENO"; then :
2615 ac_header_compiler=yes
2617 ac_header_compiler=no
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2621 $as_echo "$ac_header_compiler" >&6; }
2623 # Is the header present?
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2625 $as_echo_n "checking $2 presence... " >&6; }
2626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2627 /* end confdefs.h. */
2630 if ac_fn_c_try_cpp "$LINENO"; then :
2631 ac_header_preproc=yes
2633 ac_header_preproc=no
2635 rm -f conftest.err conftest.i conftest.$ac_ext
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2637 $as_echo "$ac_header_preproc" >&6; }
2639 # So? What about this header?
2640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2643 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2645 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2649 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2651 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2653 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2655 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2657 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2661 $as_echo_n "checking for $2... " >&6; }
2662 if eval \${$3+:} false; then :
2663 $as_echo_n "(cached) " >&6
2665 eval "$3=\$ac_header_compiler"
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2669 $as_echo "$ac_res" >&6; }
2671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2673 } # ac_fn_c_check_header_mongrel
2675 # ac_fn_c_try_run LINENO
2676 # ----------------------
2677 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2678 # that executables *can* be run.
2681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2682 if { { ac_try="$ac_link"
2684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685 *) ac_try_echo=$ac_try;;
2687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2688 $as_echo "$ac_try_echo"; } >&5
2689 (eval "$ac_link") 2>&5
2691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2692 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2693 { { case "(($ac_try" in
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2698 $as_echo "$ac_try_echo"; } >&5
2699 (eval "$ac_try") 2>&5
2701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2702 test $ac_status = 0; }; }; then :
2705 $as_echo "$as_me: program exited with status $ac_status" >&5
2706 $as_echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2709 ac_retval=$ac_status
2711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2713 as_fn_set_status $ac_retval
2717 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2718 # -------------------------------------------------------
2719 # Tests whether HEADER exists and can be compiled using the include files in
2720 # INCLUDES, setting the cache variable VAR accordingly.
2721 ac_fn_c_check_header_compile ()
2723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2725 $as_echo_n "checking for $2... " >&6; }
2726 if eval \${$3+:} false; then :
2727 $as_echo_n "(cached) " >&6
2729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2730 /* end confdefs.h. */
2734 if ac_fn_c_try_compile "$LINENO"; then :
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2743 $as_echo "$ac_res" >&6; }
2744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2746 } # ac_fn_c_check_header_compile
2748 # ac_fn_c_try_link LINENO
2749 # -----------------------
2750 # Try to link conftest.$ac_ext, and return whether this succeeded.
2753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2754 rm -f conftest.$ac_objext conftest$ac_exeext
2755 if { { ac_try="$ac_link"
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2761 $as_echo "$ac_try_echo"; } >&5
2762 (eval "$ac_link") 2>conftest.err
2764 if test -s conftest.err; then
2765 grep -v '^ *+' conftest.err >conftest.er1
2766 cat conftest.er1 >&5
2767 mv -f conftest.er1 conftest.err
2769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2770 test $ac_status = 0; } && {
2771 test -z "$ac_c_werror_flag" ||
2772 test ! -s conftest.err
2773 } && test -s conftest$ac_exeext && {
2774 test "$cross_compiling" = yes ||
2775 $as_test_x conftest$ac_exeext
2779 $as_echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2784 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2785 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2786 # interfere with the next link command; also delete a directory that is
2787 # left behind by Apple's compiler. We do this before executing the actions.
2788 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2790 as_fn_set_status $ac_retval
2792 } # ac_fn_c_try_link
2794 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2795 # -------------------------------------------
2796 # Tests whether TYPE exists after having included INCLUDES, setting cache
2797 # variable VAR accordingly.
2798 ac_fn_c_check_type ()
2800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2802 $as_echo_n "checking for $2... " >&6; }
2803 if eval \${$3+:} false; then :
2804 $as_echo_n "(cached) " >&6
2807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2808 /* end confdefs.h. */
2819 if ac_fn_c_try_compile "$LINENO"; then :
2820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2821 /* end confdefs.h. */
2832 if ac_fn_c_try_compile "$LINENO"; then :
2837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2843 $as_echo "$ac_res" >&6; }
2844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2846 } # ac_fn_c_check_type
2848 # ac_fn_c_check_func LINENO FUNC VAR
2849 # ----------------------------------
2850 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2851 ac_fn_c_check_func ()
2853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2855 $as_echo_n "checking for $2... " >&6; }
2856 if eval \${$3+:} false; then :
2857 $as_echo_n "(cached) " >&6
2859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2860 /* end confdefs.h. */
2861 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2863 #define $2 innocuous_$2
2865 /* System header to define __stub macros and hopefully few prototypes,
2866 which can conflict with char $2 (); below.
2867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2868 <limits.h> exists even on freestanding compilers. */
2871 # include <limits.h>
2873 # include <assert.h>
2878 /* Override any GCC internal prototype to avoid an error.
2879 Use char because int might match the return type of a GCC
2880 builtin and then its argument prototype would still apply. */
2885 /* The GNU C library defines this for functions which it implements
2886 to always fail with ENOSYS. Some functions are actually named
2887 something starting with __ and the normal name is an alias. */
2888 #if defined __stub_$2 || defined __stub___$2
2900 if ac_fn_c_try_link "$LINENO"; then :
2905 rm -f core conftest.err conftest.$ac_objext \
2906 conftest$ac_exeext conftest.$ac_ext
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2910 $as_echo "$ac_res" >&6; }
2911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2913 } # ac_fn_c_check_func
2915 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2916 # --------------------------------------------
2917 # Tries to find the compile-time value of EXPR in a program that includes
2918 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2920 ac_fn_c_compute_int ()
2922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2923 if test "$cross_compiling" = yes; then
2924 # Depending upon the size, compute the lo and hi bounds.
2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926 /* end confdefs.h. */
2931 static int test_array [1 - 2 * !(($2) >= 0)];
2938 if ac_fn_c_try_compile "$LINENO"; then :
2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942 /* end confdefs.h. */
2947 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2954 if ac_fn_c_try_compile "$LINENO"; then :
2955 ac_hi=$ac_mid; break
2957 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2958 if test $ac_lo -le $ac_mid; then
2962 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2968 /* end confdefs.h. */
2973 static int test_array [1 - 2 * !(($2) < 0)];
2980 if ac_fn_c_try_compile "$LINENO"; then :
2983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2984 /* end confdefs.h. */
2989 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2996 if ac_fn_c_try_compile "$LINENO"; then :
2997 ac_lo=$ac_mid; break
2999 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3000 if test $ac_mid -le $ac_hi; then
3004 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3014 # Binary search between lo and hi bounds.
3015 while test "x$ac_lo" != "x$ac_hi"; do
3016 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018 /* end confdefs.h. */
3023 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3030 if ac_fn_c_try_compile "$LINENO"; then :
3033 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3043 /* end confdefs.h. */
3045 static long int longval () { return $2; }
3046 static unsigned long int ulongval () { return $2; }
3053 FILE *f = fopen ("conftest.val", "w");
3058 long int i = longval ();
3061 fprintf (f, "%ld", i);
3065 unsigned long int i = ulongval ();
3068 fprintf (f, "%lu", i);
3070 /* Do not output a trailing newline, as this causes \r\n confusion
3071 on some platforms. */
3072 return ferror (f) || fclose (f) != 0;
3078 if ac_fn_c_try_run "$LINENO"; then :
3079 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3084 conftest.$ac_objext conftest.beam conftest.$ac_ext
3088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3089 as_fn_set_status $ac_retval
3091 } # ac_fn_c_compute_int
3093 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3094 # ---------------------------------------------
3095 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3097 ac_fn_c_check_decl ()
3099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3100 as_decl_name=`echo $2|sed 's/ *(.*//'`
3101 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3103 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3104 if eval \${$3+:} false; then :
3105 $as_echo_n "(cached) " >&6
3107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h. */
3113 #ifndef $as_decl_name
3115 (void) $as_decl_use;
3117 (void) $as_decl_name;
3125 if ac_fn_c_try_compile "$LINENO"; then :
3130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3134 $as_echo "$ac_res" >&6; }
3135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3137 } # ac_fn_c_check_decl
3139 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3140 # ----------------------------------------------------
3141 # Tries to find if the field MEMBER exists in type AGGR, after including
3142 # INCLUDES, setting cache variable VAR accordingly.
3143 ac_fn_c_check_member ()
3145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3147 $as_echo_n "checking for $2.$3... " >&6; }
3148 if eval \${$4+:} false; then :
3149 $as_echo_n "(cached) " >&6
3151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3152 /* end confdefs.h. */
3164 if ac_fn_c_try_compile "$LINENO"; then :
3167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168 /* end confdefs.h. */
3174 if (sizeof ac_aggr.$3)
3180 if ac_fn_c_try_compile "$LINENO"; then :
3185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3191 $as_echo "$ac_res" >&6; }
3192 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3194 } # ac_fn_c_check_member
3195 cat >config.log <<_ACEOF
3196 This file contains any messages produced by compilers while
3197 running configure, to aid debugging if configure makes a mistake.
3199 It was created by amanda $as_me 3.3.3, which was
3200 generated by GNU Autoconf 2.68. Invocation command line was
3212 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3213 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3214 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3215 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3216 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3218 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3219 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3221 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3222 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3223 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3224 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3225 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3226 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3227 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 test -z "$as_dir" && as_dir=.
3236 $as_echo "PATH: $as_dir"
3252 # Keep a trace of the command line.
3253 # Strip out --no-create and --no-recursion so they do not pile up.
3254 # Strip out --silent because we don't want to record it for future runs.
3255 # Also quote any args containing shell meta-characters.
3256 # Make two passes to allow for proper duplicate-argument suppression.
3260 ac_must_keep_next=false
3266 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3268 | -silent | --silent | --silen | --sile | --sil)
3271 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3274 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3276 as_fn_append ac_configure_args1 " '$ac_arg'"
3277 if test $ac_must_keep_next = true; then
3278 ac_must_keep_next=false # Got value, back to normal.
3281 *=* | --config-cache | -C | -disable-* | --disable-* \
3282 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3283 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3284 | -with-* | --with-* | -without-* | --without-* | --x)
3285 case "$ac_configure_args0 " in
3286 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3289 -* ) ac_must_keep_next=true ;;
3292 as_fn_append ac_configure_args " '$ac_arg'"
3297 { ac_configure_args0=; unset ac_configure_args0;}
3298 { ac_configure_args1=; unset ac_configure_args1;}
3300 # When interrupted or exit'd, cleanup temporary files, and complete
3301 # config.log. We remove comments because anyway the quotes in there
3302 # would cause problems or look ugly.
3303 # WARNING: Use '\'' to represent an apostrophe within the trap.
3304 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3305 trap 'exit_status=$?
3306 # Save into config.log some information that might help in debugging.
3310 $as_echo "## ---------------- ##
3311 ## Cache variables. ##
3312 ## ---------------- ##"
3314 # The following way of writing the cache mishandles newlines in values,
3316 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3317 eval ac_val=\$$ac_var
3321 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3322 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3325 _ | IFS | as_nl) ;; #(
3326 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3327 *) { eval $ac_var=; unset $ac_var;} ;;
3332 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3333 *${as_nl}ac_space=\ *)
3335 "s/'\''/'\''\\\\'\'''\''/g;
3336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3339 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3346 $as_echo "## ----------------- ##
3347 ## Output variables. ##
3348 ## ----------------- ##"
3350 for ac_var in $ac_subst_vars
3352 eval ac_val=\$$ac_var
3354 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3356 $as_echo "$ac_var='\''$ac_val'\''"
3360 if test -n "$ac_subst_files"; then
3361 $as_echo "## ------------------- ##
3362 ## File substitutions. ##
3363 ## ------------------- ##"
3365 for ac_var in $ac_subst_files
3367 eval ac_val=\$$ac_var
3369 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3371 $as_echo "$ac_var='\''$ac_val'\''"
3376 if test -s confdefs.h; then
3377 $as_echo "## ----------- ##
3384 test "$ac_signal" != 0 &&
3385 $as_echo "$as_me: caught signal $ac_signal"
3386 $as_echo "$as_me: exit $exit_status"
3388 rm -f core *.core core.conftest.* &&
3389 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3392 for ac_signal in 1 2 13 15; do
3393 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3397 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3398 rm -f -r conftest* confdefs.h
3400 $as_echo "/* confdefs.h */" > confdefs.h
3402 # Predefined preprocessor variables.
3404 cat >>confdefs.h <<_ACEOF
3405 #define PACKAGE_NAME "$PACKAGE_NAME"
3408 cat >>confdefs.h <<_ACEOF
3409 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3412 cat >>confdefs.h <<_ACEOF
3413 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3416 cat >>confdefs.h <<_ACEOF
3417 #define PACKAGE_STRING "$PACKAGE_STRING"
3420 cat >>confdefs.h <<_ACEOF
3421 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3424 cat >>confdefs.h <<_ACEOF
3425 #define PACKAGE_URL "$PACKAGE_URL"
3429 # Let the site file select an alternate cache file if it wants to.
3430 # Prefer an explicitly selected file to automatically selected ones.
3433 if test -n "$CONFIG_SITE"; then
3434 # We do not want a PATH search for config.site.
3435 case $CONFIG_SITE in #((
3436 -*) ac_site_file1=./$CONFIG_SITE;;
3437 */*) ac_site_file1=$CONFIG_SITE;;
3438 *) ac_site_file1=./$CONFIG_SITE;;
3440 elif test "x$prefix" != xNONE; then
3441 ac_site_file1=$prefix/share/config.site
3442 ac_site_file2=$prefix/etc/config.site
3444 ac_site_file1=$ac_default_prefix/share/config.site
3445 ac_site_file2=$ac_default_prefix/etc/config.site
3447 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3449 test "x$ac_site_file" = xNONE && continue
3450 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3452 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3453 sed 's/^/| /' "$ac_site_file" >&5
3455 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 as_fn_error $? "failed to load site script $ac_site_file
3458 See \`config.log' for more details" "$LINENO" 5; }
3462 if test -r "$cache_file"; then
3463 # Some versions of bash will fail to source /dev/null (special files
3464 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3465 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3467 $as_echo "$as_me: loading cache $cache_file" >&6;}
3469 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3470 *) . "./$cache_file";;
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3475 $as_echo "$as_me: creating cache $cache_file" >&6;}
3479 gl_header_list="$gl_header_list arpa/inet.h"
3480 gl_func_list="$gl_func_list btowc"
3481 gl_header_list="$gl_header_list errno.h"
3482 gl_header_list="$gl_header_list float.h"
3483 gl_header_list="$gl_header_list sys/param.h"
3484 gl_header_list="$gl_header_list sys/vfs.h"
3485 gl_header_list="$gl_header_list sys/fs_types.h"
3486 gl_func_list="$gl_func_list ftruncate"
3487 gl_header_list="$gl_header_list sys/socket.h"
3488 gl_header_list="$gl_header_list netdb.h"
3489 gl_header_list="$gl_header_list netinet/in.h"
3490 gl_getopt_required=GNU
3491 gl_header_list="$gl_header_list getopt.h"
3492 gl_header_list="$gl_header_list sys/time.h"
3493 gl_func_list="$gl_func_list gettimeofday"
3494 gl_header_list="$gl_header_list langinfo.h"
3495 gl_func_list="$gl_func_list lstat"
3496 gl_func_list="$gl_func_list mbsinit"
3497 gl_func_list="$gl_func_list mbrtowc"
3498 gl_header_list="$gl_header_list sys/mman.h"
3499 gl_func_list="$gl_func_list mprotect"
3500 gl_func_list="$gl_func_list memchr"
3501 gl_func_list="$gl_func_list nl_langinfo"
3502 gl_header_list="$gl_header_list locale.h"
3503 gl_func_list="$gl_func_list isblank"
3504 gl_func_list="$gl_func_list iswctype"
3505 gl_func_list="$gl_func_list wcscoll"
3506 gl_header_list="$gl_header_list stddef.h"
3507 gl_header_list="$gl_header_list stdint.h"
3508 gl_header_list="$gl_header_list wchar.h"
3509 gl_header_list="$gl_header_list stdio.h"
3510 gl_header_list="$gl_header_list stdlib.h"
3511 gl_header_list="$gl_header_list string.h"
3512 gl_header_list="$gl_header_list sys/stat.h"
3513 gl_header_list="$gl_header_list time.h"
3514 gl_header_list="$gl_header_list unistd.h"
3515 gl_func_list="$gl_func_list vasnprintf"
3516 gl_func_list="$gl_func_list wcrtomb"
3517 gl_func_list="$gl_func_list iswcntrl"
3518 gl_func_list="$gl_func_list iswblank"
3519 gl_header_list="$gl_header_list wctype.h"
3520 # Check that the precious variables saved in the cache have kept the same
3522 ac_cache_corrupted=false
3523 for ac_var in $ac_precious_vars; do
3524 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3525 eval ac_new_set=\$ac_env_${ac_var}_set
3526 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3527 eval ac_new_val=\$ac_env_${ac_var}_value
3528 case $ac_old_set,$ac_new_set in
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3531 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3532 ac_cache_corrupted=: ;;
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3535 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3536 ac_cache_corrupted=: ;;
3539 if test "x$ac_old_val" != "x$ac_new_val"; then
3540 # differences in whitespace do not lead to failure.
3541 ac_old_val_w=`echo x $ac_old_val`
3542 ac_new_val_w=`echo x $ac_new_val`
3543 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3545 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3546 ac_cache_corrupted=:
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3549 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3550 eval $ac_var=\$ac_old_val
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3553 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3555 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3558 # Pass precious variables to config.status.
3559 if test "$ac_new_set" = set; then
3561 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3562 *) ac_arg=$ac_var=$ac_new_val ;;
3564 case " $ac_configure_args " in
3565 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3566 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3570 if $ac_cache_corrupted; then
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3574 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3575 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3577 ## -------------------- ##
3578 ## Main body of script. ##
3579 ## -------------------- ##
3582 ac_cpp='$CPP $CPPFLAGS'
3583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590 for ac_dir in config "$srcdir"/config; do
3591 if test -f "$ac_dir/install-sh"; then
3593 ac_install_sh="$ac_aux_dir/install-sh -c"
3595 elif test -f "$ac_dir/install.sh"; then
3597 ac_install_sh="$ac_aux_dir/install.sh -c"
3599 elif test -f "$ac_dir/shtool"; then
3601 ac_install_sh="$ac_aux_dir/shtool install -c"
3605 if test -z "$ac_aux_dir"; then
3606 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3609 # These three variables are undocumented and unsupported,
3610 # and are intended to be withdrawn in a future Autoconf release.
3611 # They can cause serious problems if a builder's source tree is in a directory
3612 # whose full name contains unusual characters.
3613 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3614 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3615 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3619 # Make sure we can run config.sub.
3620 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3621 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3624 $as_echo_n "checking build system type... " >&6; }
3625 if ${ac_cv_build+:} false; then :
3626 $as_echo_n "(cached) " >&6
3628 ac_build_alias=$build_alias
3629 test "x$ac_build_alias" = x &&
3630 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3631 test "x$ac_build_alias" = x &&
3632 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3633 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3634 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3638 $as_echo "$ac_cv_build" >&6; }
3639 case $ac_cv_build in
3641 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3644 ac_save_IFS=$IFS; IFS='-'
3650 # Remember, the first character of IFS is used to create $*,
3651 # except with old shells:
3654 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3658 $as_echo_n "checking host system type... " >&6; }
3659 if ${ac_cv_host+:} false; then :
3660 $as_echo_n "(cached) " >&6
3662 if test "x$host_alias" = x; then
3663 ac_cv_host=$ac_cv_build
3665 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3666 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3671 $as_echo "$ac_cv_host" >&6; }
3674 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3677 ac_save_IFS=$IFS; IFS='-'
3683 # Remember, the first character of IFS is used to create $*,
3684 # except with old shells:
3687 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3695 SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/sfw/bin:/usr/bsd:/etc:/usr/etc"
3696 # expand prefix or exec_prefix in LOCPATH
3698 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3699 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3700 eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
3702 SYSLOCPATH="$SYSPATH:$LOCPATH"
3703 LOCSYSPATH="$LOCPATH:$SYSPATH"
3707 # Extract the first word of "grep", so it can be a program name with args.
3708 set dummy grep; ac_word=$2
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if ${ac_cv_path_GREP+:} false; then :
3712 $as_echo_n "(cached) " >&6
3716 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $LOCSYSPATH
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3726 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
3738 GREP=$ac_cv_path_GREP
3739 if test -n "$GREP"; then
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3741 $as_echo "$GREP" >&6; }
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744 $as_echo "no" >&6; }
3749 cat >>confdefs.h <<_ACEOF
3750 #define GREP "$GREP"
3759 # Extract the first word of "svn", so it can be a program name with args.
3760 set dummy svn; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if ${ac_cv_path_SVN+:} false; then :
3764 $as_echo_n "(cached) " >&6
3768 ac_cv_path_SVN="$SVN" # Let the user override the test with a path.
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $LOCSYSPATH
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3778 ac_cv_path_SVN="$as_dir/$ac_word$ac_exec_ext"
3779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3790 if test -n "$SVN"; then
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVN" >&5
3792 $as_echo "$SVN" >&6; }
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795 $as_echo "no" >&6; }
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Subversion revision information" >&5
3800 $as_echo_n "checking Subversion revision information... " >&6; }
3801 if test -d $srcdir/.svn -a -n "$SVN" && (cd $srcdir > /dev/null ; $SVN info . ) > conftemp.svn; then
3802 SVN_REV=`$GREP Revision: conftemp.svn|cut -d: -f 2|cut -c2-`
3803 SVN_URL=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
3804 SVN_PATH=`$GREP URL: conftemp.svn|cut -d "/" -f 7-`
3805 SVN_TYPE=`echo ${SVN_PATH} |cut -d "/" -f 1`
3806 SVN_BRANCH=`echo "${SVN_PATH}"| cut -d "/" -f 2`
3807 url=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
3808 ( echo '#define BUILT_REV "'$SVN_REV'"'
3809 echo '#define BUILT_BRANCH "'$SVN_BRANCH'"'
3810 ) > common-src/svn-info.h
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: updated" >&5
3813 $as_echo "updated" >&6; }
3815 # Makefiles will be upset if the file doesn't exist, so double-check
3816 if test -f common-src/svn-info.h; then
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not changed" >&5
3819 $as_echo "not changed" >&6; }
3821 echo '/* no information available */' > common-src/svn-info.h
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
3823 $as_echo "not available" >&6; }
3833 # Extract the first word of "git", so it can be a program name with args.
3834 set dummy git; ac_word=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if ${ac_cv_path_GIT+:} false; then :
3838 $as_echo_n "(cached) " >&6
3842 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $LOCSYSPATH
3849 test -z "$as_dir" && as_dir=.
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3852 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
3853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 if test -n "$GIT"; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
3866 $as_echo "$GIT" >&6; }
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking git revision information" >&5
3874 $as_echo_n "checking git revision information... " >&6; }
3875 if test -d $srcdir/.git -a -n "$GIT"; then
3876 GIT_SHA1=`(cd $srcdir > /dev/null ; $GIT rev-parse HEAD | cut -c -8 )`
3877 if test -n "$GIT_SHA1"; then
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT_SHA1" >&5
3879 $as_echo "$GIT_SHA1" >&6; }
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 'git rev-parse HEAD' failed" >&5
3882 $as_echo "'git rev-parse HEAD' failed" >&6; }
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
3886 $as_echo "not available" >&6; }
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: \"version: $VERSION\"" >&5
3893 $as_echo "$as_me: \"version: $VERSION\"" >&6;}
3895 am__api_version='1.11'
3897 # Find a good install program. We prefer a C program (faster),
3898 # so one script is as good as another. But avoid the broken or
3899 # incompatible versions:
3900 # SysV /etc/install, /usr/sbin/install
3901 # SunOS /usr/etc/install
3902 # IRIX /sbin/install
3904 # AmigaOS /C/install, which installs bootblocks on floppy discs
3905 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3906 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3907 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3908 # OS/2's system install, which has a completely different semantic
3909 # ./install, which can be erroneously created by make from ./install.sh.
3910 # Reject install programs that cannot install multiple files.
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3912 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3913 if test -z "$INSTALL"; then
3914 if ${ac_cv_path_install+:} false; then :
3915 $as_echo_n "(cached) " >&6
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 test -z "$as_dir" && as_dir=.
3922 # Account for people who put trailing slashes in PATH elements.
3923 case $as_dir/ in #((
3924 ./ | .// | /[cC]/* | \
3925 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3926 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3929 # OSF1 and SCO ODT 3.0 have their own names for install.
3930 # Don't use installbsd from OSF since it installs stuff as root
3932 for ac_prog in ginstall scoinst install; do
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3935 if test $ac_prog = install &&
3936 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3937 # AIX install. It has an incompatible calling convention.
3939 elif test $ac_prog = install &&
3940 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3941 # program-specific install script used by HP pwplus--don't use.
3944 rm -rf conftest.one conftest.two conftest.dir
3945 echo one > conftest.one
3946 echo two > conftest.two
3948 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3949 test -s conftest.one && test -s conftest.two &&
3950 test -s conftest.dir/conftest.one &&
3951 test -s conftest.dir/conftest.two
3953 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3966 rm -rf conftest.one conftest.two conftest.dir
3969 if test "${ac_cv_path_install+set}" = set; then
3970 INSTALL=$ac_cv_path_install
3972 # As a last resort, use the slow shell script. Don't cache a
3973 # value for INSTALL within a source directory, because that will
3974 # break other packages using the cache if that directory is
3975 # removed, or if the value is a relative name.
3976 INSTALL=$ac_install_sh
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3980 $as_echo "$INSTALL" >&6; }
3982 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3983 # It thinks the first close brace ends the variable substitution.
3984 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3986 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3988 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3991 $as_echo_n "checking whether build environment is sane... " >&6; }
3994 echo timestamp > conftest.file
3995 # Reject unsafe characters in $srcdir or the absolute working directory
3996 # name. Accept space and tab only in the latter.
4000 *[\\\"\#\$\&\'\`$am_lf]*)
4001 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4004 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4005 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4008 # Do `set' in a subshell so we don't clobber the current shell's
4009 # arguments. Must try -L first in case configure is actually a
4010 # symlink; some systems play weird games with the mod time of symlinks
4011 # (eg FreeBSD returns the mod time of the symlink's containing
4014 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4015 if test "$*" = "X"; then
4017 set X `ls -t "$srcdir/configure" conftest.file`
4020 if test "$*" != "X $srcdir/configure conftest.file" \
4021 && test "$*" != "X conftest.file $srcdir/configure"; then
4023 # If neither matched, then we have a broken ls. This can happen
4024 # if, for instance, CONFIG_SHELL is bash and it inherits a
4025 # broken ls alias from the environment. This has actually
4026 # happened. Such a system could not be considered "sane".
4027 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4028 alias in your environment" "$LINENO" 5
4031 test "$2" = conftest.file
4037 as_fn_error $? "newly created file is older than distributed files!
4038 Check your system clock" "$LINENO" 5
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4041 $as_echo "yes" >&6; }
4042 test "$program_prefix" != NONE &&
4043 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4044 # Use a double $ so make ignores it.
4045 test "$program_suffix" != NONE &&
4046 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4047 # Double any \ or $.
4048 # By default was `s,x,x', remove it if useless.
4049 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4050 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4052 # expand $ac_aux_dir to an absolute path
4053 am_aux_dir=`cd $ac_aux_dir && pwd`
4055 if test x"${MISSING+set}" != xset; then
4058 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4060 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4063 # Use eval to expand $SHELL
4064 if eval "$MISSING --run true"; then
4065 am_missing_run="$MISSING --run "
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4069 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4072 if test x"${install_sh}" != xset; then
4075 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4077 install_sh="\${SHELL} $am_aux_dir/install-sh"
4081 # Installed binaries are usually stripped using `strip' when the user
4082 # run `make install-strip'. However `strip' might not be the right
4083 # tool to use in cross-compilation environments, therefore Automake
4084 # will honor the `STRIP' environment variable to overrule this program.
4085 if test "$cross_compiling" != no; then
4086 if test -n "$ac_tool_prefix"; then
4087 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4088 set dummy ${ac_tool_prefix}strip; ac_word=$2
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090 $as_echo_n "checking for $ac_word... " >&6; }
4091 if ${ac_cv_prog_STRIP+:} false; then :
4092 $as_echo_n "(cached) " >&6
4094 if test -n "$STRIP"; then
4095 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4104 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 STRIP=$ac_cv_prog_STRIP
4115 if test -n "$STRIP"; then
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4117 $as_echo "$STRIP" >&6; }
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4125 if test -z "$ac_cv_prog_STRIP"; then
4127 # Extract the first word of "strip", so it can be a program name with args.
4128 set dummy strip; ac_word=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4132 $as_echo_n "(cached) " >&6
4134 if test -n "$ac_ct_STRIP"; then
4135 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4144 ac_cv_prog_ac_ct_STRIP="strip"
4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4154 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4155 if test -n "$ac_ct_STRIP"; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4157 $as_echo "$ac_ct_STRIP" >&6; }
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4163 if test "x$ac_ct_STRIP" = x; then
4166 case $cross_compiling:$ac_tool_warned in
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4170 ac_tool_warned=yes ;;
4175 STRIP="$ac_cv_prog_STRIP"
4179 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4182 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4183 if test -z "$MKDIR_P"; then
4184 if ${ac_cv_path_mkdir+:} false; then :
4185 $as_echo_n "(cached) " >&6
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4191 test -z "$as_dir" && as_dir=.
4192 for ac_prog in mkdir gmkdir; do
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4195 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4196 'mkdir (GNU coreutils) '* | \
4197 'mkdir (coreutils) '* | \
4198 'mkdir (fileutils) '4.1*)
4199 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4209 test -d ./--version && rmdir ./--version
4210 if test "${ac_cv_path_mkdir+set}" = set; then
4211 MKDIR_P="$ac_cv_path_mkdir -p"
4213 # As a last resort, use the slow shell script. Don't cache a
4214 # value for MKDIR_P within a source directory, because that will
4215 # break other packages using the cache if that directory is
4216 # removed, or if the value is a relative name.
4217 MKDIR_P="$ac_install_sh -d"
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4221 $as_echo "$MKDIR_P" >&6; }
4226 [\\/$]* | ?:[\\/]*) ;;
4227 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4230 for ac_prog in gawk mawk nawk awk
4232 # Extract the first word of "$ac_prog", so it can be a program name with args.
4233 set dummy $ac_prog; ac_word=$2
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235 $as_echo_n "checking for $ac_word... " >&6; }
4236 if ${ac_cv_prog_AWK+:} false; then :
4237 $as_echo_n "(cached) " >&6
4239 if test -n "$AWK"; then
4240 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 test -z "$as_dir" && as_dir=.
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4249 ac_cv_prog_AWK="$ac_prog"
4250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 if test -n "$AWK"; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4262 $as_echo "$AWK" >&6; }
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265 $as_echo "no" >&6; }
4269 test -n "$AWK" && break
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4273 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4275 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4276 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4277 $as_echo_n "(cached) " >&6
4279 cat >conftest.make <<\_ACEOF
4282 @echo '@@@%%%=$(MAKE)=@@@%%%'
4284 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4285 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4287 eval ac_cv_prog_make_${ac_make}_set=yes;;
4289 eval ac_cv_prog_make_${ac_make}_set=no;;
4293 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4295 $as_echo "yes" >&6; }
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299 $as_echo "no" >&6; }
4300 SET_MAKE="MAKE=${MAKE-make}"
4303 rm -rf .tst 2>/dev/null
4304 mkdir .tst 2>/dev/null
4305 if test -d .tst; then
4310 rmdir .tst 2>/dev/null
4312 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4313 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4314 # is not polluted with repeated "-I."
4315 am__isrc=' -I$(srcdir)'
4316 # test to see if srcdir already configured
4317 if test -f $srcdir/config.status; then
4318 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4322 # test whether we have cygpath
4323 if test -z "$CYGPATH_W"; then
4324 if (cygpath --version) >/dev/null 2>/dev/null; then
4325 CYGPATH_W='cygpath -w'
4332 # Define the identity of the package.
4337 cat >>confdefs.h <<_ACEOF
4338 #define PACKAGE "$PACKAGE"
4342 cat >>confdefs.h <<_ACEOF
4343 #define VERSION "$VERSION"
4346 # Some tools Automake needs.
4348 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4351 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4354 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4357 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4360 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4362 # We need awk for the "check" target. The system "awk" is bad on
4364 # Always define AMTAR for backward compatibility. Yes, it's still used
4365 # in the wild :-( We should find a proper way to deprecate it ...
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4370 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
4371 # Loop over all known methods to create a tar archive until one works.
4372 _am_tools='gnutar plaintar pax cpio none'
4373 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4374 # Do not fold the above two line into one, because Tru64 sh and
4375 # Solaris sh will not grok spaces in the rhs of `-'.
4376 for _am_tool in $_am_tools
4380 for _am_tar in tar gnutar gtar;
4382 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4383 ($_am_tar --version) >&5 2>&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } && break
4388 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4389 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4390 am__untar="$_am_tar -xf -"
4393 # Must skip GNU tar: if it does not support --format= it doesn't create
4394 # ustar tarball either.
4395 (tar --version) >/dev/null 2>&1 && continue
4396 am__tar='tar chf - "$$tardir"'
4397 am__tar_='tar chf - "$tardir"'
4398 am__untar='tar xf -'
4401 am__tar='pax -L -x ustar -w "$$tardir"'
4402 am__tar_='pax -L -x ustar -w "$tardir"'
4406 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4407 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4408 am__untar='cpio -i -H ustar -d'
4417 # If the value was cached, stop now. We just wanted to have am__tar
4418 # and am__untar set.
4419 test -n "${am_cv_prog_tar_ustar}" && break
4421 # tar/untar a dummy directory, and stop if the command works
4424 echo GrepMe > conftest.dir/file
4425 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4426 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }
4431 if test -s conftest.tar; then
4432 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4433 ($am__untar <conftest.tar) >&5 2>&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }
4437 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4442 if ${am_cv_prog_tar_ustar+:} false; then :
4443 $as_echo_n "(cached) " >&6
4445 am_cv_prog_tar_ustar=$_am_tool
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4449 $as_echo "$am_cv_prog_tar_ustar" >&6; }
4455 ac_config_headers="$ac_config_headers config/config.h"
4461 # Take care of some early Amanda-specific setup
4464 # initialize warnings file
4465 rm -f config.warnings
4468 if test -f "$srcdir/SNAPSHOT"; then
4469 cat < "$srcdir/SNAPSHOT"
4471 snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
4473 test -z "$snapdate" || VERSION="$VERSION-$snapdate"
4474 SNAPSHOT_STAMP=SNAPSHOT
4482 VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
4483 VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
4484 if test -z "$VERSION_MINOR"; then
4487 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\(.*\)'`\"
4489 VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
4490 if test -z "$VERSION_PATCH"; then
4492 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\(.*\)'`\"
4494 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
4505 cat >>confdefs.h <<_ACEOF
4506 #define VERSION_MAJOR $VERSION_MAJOR
4510 cat >>confdefs.h <<_ACEOF
4511 #define VERSION_MINOR $VERSION_MINOR
4515 cat >>confdefs.h <<_ACEOF
4516 #define VERSION_PATCH $VERSION_PATCH
4520 cat >>confdefs.h <<_ACEOF
4521 #define VERSION_COMMENT $VERSION_COMMENT
4526 if test -f config.local; then
4527 echo "running local script ./config.local"
4533 # Set up compiler location, basic flags, and include locations
4534 # and library locations before we start checking the system
4535 # configuration in more detail...
4538 ac_cpp='$CPP $CPPFLAGS'
4539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4542 if test -n "$ac_tool_prefix"; then
4543 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4544 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546 $as_echo_n "checking for $ac_word... " >&6; }
4547 if ${ac_cv_prog_CC+:} false; then :
4548 $as_echo_n "(cached) " >&6
4550 if test -n "$CC"; then
4551 ac_cv_prog_CC="$CC" # Let the user override the test.
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 if test -n "$CC"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4573 $as_echo "$CC" >&6; }
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4581 if test -z "$ac_cv_prog_CC"; then
4583 # Extract the first word of "gcc", so it can be a program name with args.
4584 set dummy gcc; ac_word=$2
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586 $as_echo_n "checking for $ac_word... " >&6; }
4587 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4588 $as_echo_n "(cached) " >&6
4590 if test -n "$ac_ct_CC"; then
4591 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4600 ac_cv_prog_ac_ct_CC="gcc"
4601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4611 if test -n "$ac_ct_CC"; then
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4613 $as_echo "$ac_ct_CC" >&6; }
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4616 $as_echo "no" >&6; }
4619 if test "x$ac_ct_CC" = x; then
4622 case $cross_compiling:$ac_tool_warned in
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4626 ac_tool_warned=yes ;;
4634 if test -z "$CC"; then
4635 if test -n "$ac_tool_prefix"; then
4636 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4637 set dummy ${ac_tool_prefix}cc; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if ${ac_cv_prog_CC+:} false; then :
4641 $as_echo_n "(cached) " >&6
4643 if test -n "$CC"; then
4644 ac_cv_prog_CC="$CC" # Let the user override the test.
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4653 ac_cv_prog_CC="${ac_tool_prefix}cc"
4654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 if test -n "$CC"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4666 $as_echo "$CC" >&6; }
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4675 if test -z "$CC"; then
4676 # Extract the first word of "cc", so it can be a program name with args.
4677 set dummy cc; ac_word=$2
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if ${ac_cv_prog_CC+:} false; then :
4681 $as_echo_n "(cached) " >&6
4683 if test -n "$CC"; then
4684 ac_cv_prog_CC="$CC" # Let the user override the test.
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4694 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4695 ac_prog_rejected=yes
4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 if test $ac_prog_rejected = yes; then
4707 # We found a bogon in the path, so make sure we never use it.
4708 set dummy $ac_cv_prog_CC
4710 if test $# != 0; then
4711 # We chose a different compiler from the bogus one.
4712 # However, it has the same basename, so the bogon will be chosen
4713 # first if we set CC to just the basename; use the full file name.
4715 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4721 if test -n "$CC"; then
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4723 $as_echo "$CC" >&6; }
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726 $as_echo "no" >&6; }
4731 if test -z "$CC"; then
4732 if test -n "$ac_tool_prefix"; then
4733 for ac_prog in cl.exe
4735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if ${ac_cv_prog_CC+:} false; then :
4740 $as_echo_n "(cached) " >&6
4742 if test -n "$CC"; then
4743 ac_cv_prog_CC="$CC" # Let the user override the test.
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 if test -n "$CC"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4765 $as_echo "$CC" >&6; }
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4772 test -n "$CC" && break
4775 if test -z "$CC"; then
4777 for ac_prog in cl.exe
4779 # Extract the first word of "$ac_prog", so it can be a program name with args.
4780 set dummy $ac_prog; ac_word=$2
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4784 $as_echo_n "(cached) " >&6
4786 if test -n "$ac_ct_CC"; then
4787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4796 ac_cv_prog_ac_ct_CC="$ac_prog"
4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4807 if test -n "$ac_ct_CC"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4809 $as_echo "$ac_ct_CC" >&6; }
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4816 test -n "$ac_ct_CC" && break
4819 if test "x$ac_ct_CC" = x; then
4822 case $cross_compiling:$ac_tool_warned in
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4826 ac_tool_warned=yes ;;
4835 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4837 as_fn_error $? "no acceptable C compiler found in \$PATH
4838 See \`config.log' for more details" "$LINENO" 5; }
4840 # Provide some information about the compiler.
4841 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4844 for ac_option in --version -v -V -qversion; do
4845 { { ac_try="$ac_compiler $ac_option >&5"
4847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4848 *) ac_try_echo=$ac_try;;
4850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4851 $as_echo "$ac_try_echo"; } >&5
4852 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4854 if test -s conftest.err; then
4856 ... rest of stderr output deleted ...
4857 10q' conftest.err >conftest.er1
4858 cat conftest.er1 >&5
4860 rm -f conftest.er1 conftest.err
4861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4862 test $ac_status = 0; }
4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4876 ac_clean_files_save=$ac_clean_files
4877 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4878 # Try to create an executable without -o first, disregard a.out.
4879 # It will help us diagnose broken compilers, and finding out an intuition
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4882 $as_echo_n "checking whether the C compiler works... " >&6; }
4883 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4885 # The possible output files:
4886 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4889 for ac_file in $ac_files
4892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4893 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4898 if { { ac_try="$ac_link_default"
4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4904 $as_echo "$ac_try_echo"; } >&5
4905 (eval "$ac_link_default") 2>&5
4907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4908 test $ac_status = 0; }; then :
4909 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4910 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4911 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4912 # so that the user can short-circuit this test for compilers unknown to
4914 for ac_file in $ac_files ''
4916 test -f "$ac_file" || continue
4918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4921 # We found the default executable, but exeext='' is most
4925 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4927 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4929 # We set ac_cv_exeext here because the later test for it is not
4930 # safe: cross compilers may not add the suffix if given an `-o'
4931 # argument, so we may need to know it at that point already.
4932 # Even if this section looks crufty: it has the advantage of
4939 test "$ac_cv_exeext" = no && ac_cv_exeext=
4944 if test -z "$ac_file"; then :
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946 $as_echo "no" >&6; }
4947 $as_echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4950 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4952 as_fn_error 77 "C compiler cannot create executables
4953 See \`config.log' for more details" "$LINENO" 5; }
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4956 $as_echo "yes" >&6; }
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4959 $as_echo_n "checking for C compiler default output file name... " >&6; }
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4961 $as_echo "$ac_file" >&6; }
4962 ac_exeext=$ac_cv_exeext
4964 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4965 ac_clean_files=$ac_clean_files_save
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4967 $as_echo_n "checking for suffix of executables... " >&6; }
4968 if { { ac_try="$ac_link"
4970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4971 *) ac_try_echo=$ac_try;;
4973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4974 $as_echo "$ac_try_echo"; } >&5
4975 (eval "$ac_link") 2>&5
4977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4978 test $ac_status = 0; }; then :
4979 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4980 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4981 # work properly (i.e., refer to `conftest.exe'), while it won't with
4983 for ac_file in conftest.exe conftest conftest.*; do
4984 test -f "$ac_file" || continue
4986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4987 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4995 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4996 See \`config.log' for more details" "$LINENO" 5; }
4998 rm -f conftest conftest$ac_cv_exeext
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5000 $as_echo "$ac_cv_exeext" >&6; }
5002 rm -f conftest.$ac_ext
5003 EXEEXT=$ac_cv_exeext
5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h. */
5011 FILE *f = fopen ("conftest.out", "w");
5012 return ferror (f) || fclose (f) != 0;
5018 ac_clean_files="$ac_clean_files conftest.out"
5019 # Check that the compiler produces executables we can run. If not, either
5020 # the compiler is broken, or we cross compile.
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5022 $as_echo_n "checking whether we are cross compiling... " >&6; }
5023 if test "$cross_compiling" != yes; then
5024 { { ac_try="$ac_link"
5026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027 *) ac_try_echo=$ac_try;;
5029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5030 $as_echo "$ac_try_echo"; } >&5
5031 (eval "$ac_link") 2>&5
5033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5034 test $ac_status = 0; }
5035 if { ac_try='./conftest$ac_cv_exeext'
5036 { { case "(($ac_try" in
5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5041 $as_echo "$ac_try_echo"; } >&5
5042 (eval "$ac_try") 2>&5
5044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5045 test $ac_status = 0; }; }; then
5048 if test "$cross_compiling" = maybe; then
5051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5053 as_fn_error $? "cannot run C compiled programs.
5054 If you meant to cross compile, use \`--host'.
5055 See \`config.log' for more details" "$LINENO" 5; }
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5060 $as_echo "$cross_compiling" >&6; }
5062 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5063 ac_clean_files=$ac_clean_files_save
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5065 $as_echo_n "checking for suffix of object files... " >&6; }
5066 if ${ac_cv_objext+:} false; then :
5067 $as_echo_n "(cached) " >&6
5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h. */
5080 rm -f conftest.o conftest.obj
5081 if { { ac_try="$ac_compile"
5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084 *) ac_try_echo=$ac_try;;
5086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5087 $as_echo "$ac_try_echo"; } >&5
5088 (eval "$ac_compile") 2>&5
5090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5091 test $ac_status = 0; }; then :
5092 for ac_file in conftest.o conftest.obj conftest.*; do
5093 test -f "$ac_file" || continue;
5095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5096 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5101 $as_echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5106 as_fn_error $? "cannot compute suffix of object files: cannot compile
5107 See \`config.log' for more details" "$LINENO" 5; }
5109 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5112 $as_echo "$ac_cv_objext" >&6; }
5113 OBJEXT=$ac_cv_objext
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5116 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5117 if ${ac_cv_c_compiler_gnu+:} false; then :
5118 $as_echo_n "(cached) " >&6
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5134 if ac_fn_c_try_compile "$LINENO"; then :
5139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5144 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5145 if test $ac_compiler_gnu = yes; then
5150 ac_test_CFLAGS=${CFLAGS+set}
5151 ac_save_CFLAGS=$CFLAGS
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5153 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5154 if ${ac_cv_prog_cc_g+:} false; then :
5155 $as_echo_n "(cached) " >&6
5157 ac_save_c_werror_flag=$ac_c_werror_flag
5158 ac_c_werror_flag=yes
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5172 if ac_fn_c_try_compile "$LINENO"; then :
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5187 if ac_fn_c_try_compile "$LINENO"; then :
5190 ac_c_werror_flag=$ac_save_c_werror_flag
5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h. */
5203 if ac_fn_c_try_compile "$LINENO"; then :
5206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211 ac_c_werror_flag=$ac_save_c_werror_flag
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5214 $as_echo "$ac_cv_prog_cc_g" >&6; }
5215 if test "$ac_test_CFLAGS" = set; then
5216 CFLAGS=$ac_save_CFLAGS
5217 elif test $ac_cv_prog_cc_g = yes; then
5218 if test "$GCC" = yes; then
5224 if test "$GCC" = yes; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5231 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5232 if ${ac_cv_prog_cc_c89+:} false; then :
5233 $as_echo_n "(cached) " >&6
5235 ac_cv_prog_cc_c89=no
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5241 #include <sys/types.h>
5242 #include <sys/stat.h>
5243 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5244 struct buf { int x; };
5245 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5246 static char *e (p, i)
5252 static char *f (char * (*g) (char **, int), char **p, ...)
5257 s = g (p, va_arg (v,int));
5262 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5263 function prototypes and stuff, but not '\xHH' hex character constants.
5264 These don't provoke an error unfortunately, instead are silently treated
5265 as 'x'. The following induces an error, until -std is added to get
5266 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5267 array size at least. It's necessary to write '\x00'==0 to get something
5268 that's true only with -std. */
5269 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5271 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5272 inside strings and character constants. */
5274 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5276 int test (int i, double x);
5277 struct s1 {int (*f) (int a);};
5278 struct s2 {int (*f) (double a);};
5279 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5285 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5290 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5291 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5293 CC="$ac_save_CC $ac_arg"
5294 if ac_fn_c_try_compile "$LINENO"; then :
5295 ac_cv_prog_cc_c89=$ac_arg
5297 rm -f core conftest.err conftest.$ac_objext
5298 test "x$ac_cv_prog_cc_c89" != "xno" && break
5300 rm -f conftest.$ac_ext
5305 case "x$ac_cv_prog_cc_c89" in
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5308 $as_echo "none needed" >&6; } ;;
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5311 $as_echo "unsupported" >&6; } ;;
5313 CC="$CC $ac_cv_prog_cc_c89"
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5315 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5317 if test "x$ac_cv_prog_cc_c89" != xno; then :
5322 ac_cpp='$CPP $CPPFLAGS'
5323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5326 DEPDIR="${am__leading_dot}deps"
5328 ac_config_commands="$ac_config_commands depfiles"
5331 am_make=${MAKE-make}
5332 cat > confinc << 'END'
5334 @echo this is the am__doit target
5337 # If we don't find an include directive, just comment out the code.
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5339 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5343 # First try GNU make style include.
5344 echo "include confinc" > confmf
5345 # Ignore all kinds of additional output from `make'.
5346 case `$am_make -s -f confmf 2> /dev/null` in #(
5347 *the\ am__doit\ target*)
5353 # Now try BSD make style include.
5354 if test "$am__include" = "#"; then
5355 echo '.include "confinc"' > confmf
5356 case `$am_make -s -f confmf 2> /dev/null` in #(
5357 *the\ am__doit\ target*)
5358 am__include=.include
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5367 $as_echo "$_am_result" >&6; }
5368 rm -f confinc confmf
5370 # Check whether --enable-dependency-tracking was given.
5371 if test "${enable_dependency_tracking+set}" = set; then :
5372 enableval=$enable_dependency_tracking;
5375 if test "x$enable_dependency_tracking" != xno; then
5376 am_depcomp="$ac_aux_dir/depcomp"
5380 if test "x$enable_dependency_tracking" != xno; then
5390 depcc="$CC" am_compiler_list=
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5393 $as_echo_n "checking dependency style of $depcc... " >&6; }
5394 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5395 $as_echo_n "(cached) " >&6
5397 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5398 # We make a subdir and do the tests there. Otherwise we can end up
5399 # making bogus files that we don't know about and never remove. For
5400 # instance it was reported that on HP-UX the gcc test will end up
5401 # making a dummy file named `D' -- because `-MD' means `put the output
5405 # Copy depcomp to subdir because otherwise we won't find it if we're
5406 # using a relative directory.
5407 cp "$am_depcomp" conftest.dir
5409 # We will build objects and dependencies in a subdirectory because
5410 # it helps to detect inapplicable dependency modes. For instance
5411 # both Tru64's cc and ICC support -MD to output dependencies as a
5412 # side effect of compilation, but ICC will put the dependencies in
5413 # the current directory while Tru64 will put them in the object
5417 am_cv_CC_dependencies_compiler_type=none
5418 if test "$am_compiler_list" = ""; then
5419 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5422 case " $depcc " in #(
5423 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5426 for depmode in $am_compiler_list; do
5427 # Setup a source with many dependencies, because some compilers
5428 # like to wrap large dependency lists on column 80 (with \), and
5429 # we should not choose a depcomp mode which is confused by this.
5431 # We need to recreate these files for each test, as the compiler may
5432 # overwrite some of them when testing with obscure command lines.
5433 # This happens at least with the AIX C compiler.
5435 for i in 1 2 3 4 5 6; do
5436 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5437 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5438 # Solaris 8's {/usr,}/bin/sh.
5439 touch sub/conftst$i.h
5441 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5443 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5444 # mode. It turns out that the SunPro C++ compiler does not properly
5445 # handle `-M -o', and we need to detect this. Also, some Intel
5446 # versions had trouble with output in subdirs
5447 am__obj=sub/conftest.${OBJEXT-o}
5448 am__minus_obj="-o $am__obj"
5451 # This depmode causes a compiler race in universal mode.
5452 test "$am__universal" = false || continue
5455 # after this tag, mechanisms are not by side-effect, so they'll
5456 # only be used when explicitly requested
5457 if test "x$enable_dependency_tracking" = xyes; then
5463 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5464 # This compiler won't grok `-c -o', but also, the minuso test has
5465 # not run yet. These depmodes are late enough in the game, and
5466 # so weak that their functioning should not be impacted.
5467 am__obj=conftest.${OBJEXT-o}
5472 if depmode=$depmode \
5473 source=sub/conftest.c object=$am__obj \
5474 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5475 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5476 >/dev/null 2>conftest.err &&
5477 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5478 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5479 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5480 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5481 # icc doesn't choke on unknown options, it will just issue warnings
5482 # or remarks (even with -Werror). So we grep stderr for any message
5483 # that says an option was ignored or not supported.
5484 # When given -MP, icc 7.0 and 7.1 complain thusly:
5485 # icc: Command line warning: ignoring option '-M'; no argument required
5486 # The diagnosis changed in icc 8.0:
5487 # icc: Command line remark: option '-MP' not supported
5488 if (grep 'ignoring option' conftest.err ||
5489 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5490 am_cv_CC_dependencies_compiler_type=$depmode
5499 am_cv_CC_dependencies_compiler_type=none
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5504 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5505 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5508 test "x$enable_dependency_tracking" != xno \
5509 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5511 am__fastdepCC_FALSE='#'
5513 am__fastdepCC_TRUE='#'
5514 am__fastdepCC_FALSE=
5518 if test -n "$ac_tool_prefix"; then
5519 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5520 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if ${ac_cv_prog_RANLIB+:} false; then :
5524 $as_echo_n "(cached) " >&6
5526 if test -n "$RANLIB"; then
5527 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 RANLIB=$ac_cv_prog_RANLIB
5547 if test -n "$RANLIB"; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5549 $as_echo "$RANLIB" >&6; }
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5557 if test -z "$ac_cv_prog_RANLIB"; then
5558 ac_ct_RANLIB=$RANLIB
5559 # Extract the first word of "ranlib", so it can be a program name with args.
5560 set dummy ranlib; 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 ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5564 $as_echo_n "(cached) " >&6
5566 if test -n "$ac_ct_RANLIB"; then
5567 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576 ac_cv_prog_ac_ct_RANLIB="ranlib"
5577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5587 if test -n "$ac_ct_RANLIB"; then
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5589 $as_echo "$ac_ct_RANLIB" >&6; }
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5592 $as_echo "no" >&6; }
5595 if test "x$ac_ct_RANLIB" = x; then
5598 case $cross_compiling:$ac_tool_warned in
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5602 ac_tool_warned=yes ;;
5604 RANLIB=$ac_ct_RANLIB
5607 RANLIB="$ac_cv_prog_RANLIB"
5610 if test "x$CC" != xcc; then
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5612 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5615 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5617 set dummy $CC; ac_cc=`$as_echo "$2" |
5618 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5619 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5620 $as_echo_n "(cached) " >&6
5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623 /* end confdefs.h. */
5633 # Make sure it works both with $CC and with simple cc.
5634 # We do the test twice because some compilers refuse to overwrite an
5635 # existing .o file with -o, though they will create one.
5636 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5638 if { { case "(($ac_try" in
5639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5640 *) ac_try_echo=$ac_try;;
5642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5643 $as_echo "$ac_try_echo"; } >&5
5644 (eval "$ac_try") 2>&5
5646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5647 test $ac_status = 0; } &&
5648 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650 *) ac_try_echo=$ac_try;;
5652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5653 $as_echo "$ac_try_echo"; } >&5
5654 (eval "$ac_try") 2>&5
5656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5657 test $ac_status = 0; };
5659 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5660 if test "x$CC" != xcc; then
5661 # Test first that cc exists at all.
5662 if { ac_try='cc -c conftest.$ac_ext >&5'
5663 { { case "(($ac_try" in
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5668 $as_echo "$ac_try_echo"; } >&5
5669 (eval "$ac_try") 2>&5
5671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5672 test $ac_status = 0; }; }; then
5673 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5675 if { { case "(($ac_try" in
5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677 *) ac_try_echo=$ac_try;;
5679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5680 $as_echo "$ac_try_echo"; } >&5
5681 (eval "$ac_try") 2>&5
5683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5684 test $ac_status = 0; } &&
5685 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5690 $as_echo "$ac_try_echo"; } >&5
5691 (eval "$ac_try") 2>&5
5693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5694 test $ac_status = 0; };
5699 # cc exists but doesn't like -o.
5700 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5705 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5707 rm -f core conftest*
5710 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5712 $as_echo "yes" >&6; }
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715 $as_echo "no" >&6; }
5717 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5721 # FIXME: we rely on the cache variable name because
5722 # there is no other way.
5724 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5725 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5726 if test "$am_t" != yes; then
5727 # Losing compiler, so override with the script.
5728 # FIXME: It is wrong to rewrite CC.
5729 # But if we don't then we get into trouble of one sort or another.
5730 # A longer-term fix would be to have automake use am__CC in this case,
5731 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5732 CC="$am_aux_dir/compile $CC"
5738 ac_cpp='$CPP $CPPFLAGS'
5739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5743 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5744 # On Suns, sometimes $CPP names a directory.
5745 if test -n "$CPP" && test -d "$CPP"; then
5748 if test -z "$CPP"; then
5749 if ${ac_cv_prog_CPP+:} false; then :
5750 $as_echo_n "(cached) " >&6
5752 # Double quotes because CPP needs to be expanded
5753 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5756 for ac_c_preproc_warn_flag in '' yes
5758 # Use a header file that comes with gcc, so configuring glibc
5759 # with a fresh cross-compiler works.
5760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5761 # <limits.h> exists even on freestanding compilers.
5762 # On the NeXT, cc -E runs the code through the compiler's parser,
5763 # not just through cpp. "Syntax error" is here to catch this case.
5764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765 /* end confdefs.h. */
5767 # include <limits.h>
5769 # include <assert.h>
5773 if ac_fn_c_try_cpp "$LINENO"; then :
5776 # Broken: fails on valid input.
5779 rm -f conftest.err conftest.i conftest.$ac_ext
5781 # OK, works on sane cases. Now check whether nonexistent headers
5782 # can be detected and how.
5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784 /* end confdefs.h. */
5785 #include <ac_nonexistent.h>
5787 if ac_fn_c_try_cpp "$LINENO"; then :
5788 # Broken: success on invalid input.
5791 # Passes both tests.
5795 rm -f conftest.err conftest.i conftest.$ac_ext
5798 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5799 rm -f conftest.i conftest.err conftest.$ac_ext
5800 if $ac_preproc_ok; then :
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5813 $as_echo "$CPP" >&6; }
5815 for ac_c_preproc_warn_flag in '' yes
5817 # Use a header file that comes with gcc, so configuring glibc
5818 # with a fresh cross-compiler works.
5819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5820 # <limits.h> exists even on freestanding compilers.
5821 # On the NeXT, cc -E runs the code through the compiler's parser,
5822 # not just through cpp. "Syntax error" is here to catch this case.
5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h. */
5826 # include <limits.h>
5828 # include <assert.h>
5832 if ac_fn_c_try_cpp "$LINENO"; then :
5835 # Broken: fails on valid input.
5838 rm -f conftest.err conftest.i conftest.$ac_ext
5840 # OK, works on sane cases. Now check whether nonexistent headers
5841 # can be detected and how.
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5844 #include <ac_nonexistent.h>
5846 if ac_fn_c_try_cpp "$LINENO"; then :
5847 # Broken: success on invalid input.
5850 # Passes both tests.
5854 rm -f conftest.err conftest.i conftest.$ac_ext
5857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5858 rm -f conftest.i conftest.err conftest.$ac_ext
5859 if $ac_preproc_ok; then :
5862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5864 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5865 See \`config.log' for more details" "$LINENO" 5; }
5869 ac_cpp='$CPP $CPPFLAGS'
5870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5876 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5877 if ${ac_cv_path_GREP+:} false; then :
5878 $as_echo_n "(cached) " >&6
5880 if test -z "$GREP"; then
5881 ac_path_GREP_found=false
5882 # Loop through the user's path and test for each of PROGNAME-LIST
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5887 test -z "$as_dir" && as_dir=.
5888 for ac_prog in grep ggrep; do
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5891 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5892 # Check for GNU ac_path_GREP and select it if it is found.
5893 # Check for GNU $ac_path_GREP
5894 case `"$ac_path_GREP" --version 2>&1` in
5896 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5899 $as_echo_n 0123456789 >"conftest.in"
5902 cat "conftest.in" "conftest.in" >"conftest.tmp"
5903 mv "conftest.tmp" "conftest.in"
5904 cp "conftest.in" "conftest.nl"
5905 $as_echo 'GREP' >> "conftest.nl"
5906 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5907 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5908 as_fn_arith $ac_count + 1 && ac_count=$as_val
5909 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5910 # Best one so far, save it but keep looking for a better one
5911 ac_cv_path_GREP="$ac_path_GREP"
5912 ac_path_GREP_max=$ac_count
5914 # 10*(2^10) chars as input seems more than enough
5915 test $ac_count -gt 10 && break
5917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5920 $ac_path_GREP_found && break 3
5925 if test -z "$ac_cv_path_GREP"; then
5926 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5929 ac_cv_path_GREP=$GREP
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5934 $as_echo "$ac_cv_path_GREP" >&6; }
5935 GREP="$ac_cv_path_GREP"
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5939 $as_echo_n "checking for egrep... " >&6; }
5940 if ${ac_cv_path_EGREP+:} false; then :
5941 $as_echo_n "(cached) " >&6
5943 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5944 then ac_cv_path_EGREP="$GREP -E"
5946 if test -z "$EGREP"; then
5947 ac_path_EGREP_found=false
5948 # Loop through the user's path and test for each of PROGNAME-LIST
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5953 test -z "$as_dir" && as_dir=.
5954 for ac_prog in egrep; do
5955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5957 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5958 # Check for GNU ac_path_EGREP and select it if it is found.
5959 # Check for GNU $ac_path_EGREP
5960 case `"$ac_path_EGREP" --version 2>&1` in
5962 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5965 $as_echo_n 0123456789 >"conftest.in"
5968 cat "conftest.in" "conftest.in" >"conftest.tmp"
5969 mv "conftest.tmp" "conftest.in"
5970 cp "conftest.in" "conftest.nl"
5971 $as_echo 'EGREP' >> "conftest.nl"
5972 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5973 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5974 as_fn_arith $ac_count + 1 && ac_count=$as_val
5975 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5976 # Best one so far, save it but keep looking for a better one
5977 ac_cv_path_EGREP="$ac_path_EGREP"
5978 ac_path_EGREP_max=$ac_count
5980 # 10*(2^10) chars as input seems more than enough
5981 test $ac_count -gt 10 && break
5983 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5986 $ac_path_EGREP_found && break 3
5991 if test -z "$ac_cv_path_EGREP"; then
5992 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5995 ac_cv_path_EGREP=$EGREP
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6001 $as_echo "$ac_cv_path_EGREP" >&6; }
6002 EGREP="$ac_cv_path_EGREP"
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6006 $as_echo_n "checking for ANSI C header files... " >&6; }
6007 if ${ac_cv_header_stdc+:} false; then :
6008 $as_echo_n "(cached) " >&6
6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6025 if ac_fn_c_try_compile "$LINENO"; then :
6026 ac_cv_header_stdc=yes
6028 ac_cv_header_stdc=no
6030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6032 if test $ac_cv_header_stdc = yes; then
6033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h. */
6039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6040 $EGREP "memchr" >/dev/null 2>&1; then :
6043 ac_cv_header_stdc=no
6049 if test $ac_cv_header_stdc = yes; then
6050 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6057 $EGREP "free" >/dev/null 2>&1; then :
6060 ac_cv_header_stdc=no
6066 if test $ac_cv_header_stdc = yes; then
6067 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6068 if test "$cross_compiling" = yes; then :
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6075 #if ((' ' & 0x0FF) == 0x020)
6076 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6077 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6079 # define ISLOWER(c) \
6080 (('a' <= (c) && (c) <= 'i') \
6081 || ('j' <= (c) && (c) <= 'r') \
6082 || ('s' <= (c) && (c) <= 'z'))
6083 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6086 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6091 for (i = 0; i < 256; i++)
6092 if (XOR (islower (i), ISLOWER (i))
6093 || toupper (i) != TOUPPER (i))
6098 if ac_fn_c_try_run "$LINENO"; then :
6101 ac_cv_header_stdc=no
6103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6104 conftest.$ac_objext conftest.beam conftest.$ac_ext
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6110 $as_echo "$ac_cv_header_stdc" >&6; }
6111 if test $ac_cv_header_stdc = yes; then
6113 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6117 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6118 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6119 inttypes.h stdint.h unistd.h
6121 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6122 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6124 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6125 cat >>confdefs.h <<_ACEOF
6126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6137 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6138 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6145 if test "$MINIX" = yes; then
6147 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6150 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6153 $as_echo "#define _MINIX 1" >>confdefs.h
6160 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6167 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6168 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6169 $as_echo_n "(cached) " >&6
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6174 # define __EXTENSIONS__ 1
6175 $ac_includes_default
6184 if ac_fn_c_try_compile "$LINENO"; then :
6185 ac_cv_safe_to_define___extensions__=yes
6187 ac_cv_safe_to_define___extensions__=no
6189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6192 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6193 test $ac_cv_safe_to_define___extensions__ = yes &&
6194 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6196 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6198 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6200 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6202 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6212 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
6213 if ${ac_cv_sys_largefile_source+:} false; then :
6214 $as_echo_n "(cached) " >&6
6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h. */
6219 #include <sys/types.h> /* for off_t */
6224 int (*fp) (FILE *, off_t, int) = fseeko;
6225 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6230 if ac_fn_c_try_link "$LINENO"; then :
6231 ac_cv_sys_largefile_source=no; break
6233 rm -f core conftest.err conftest.$ac_objext \
6234 conftest$ac_exeext conftest.$ac_ext
6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236 /* end confdefs.h. */
6237 #define _LARGEFILE_SOURCE 1
6238 #include <sys/types.h> /* for off_t */
6243 int (*fp) (FILE *, off_t, int) = fseeko;
6244 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6249 if ac_fn_c_try_link "$LINENO"; then :
6250 ac_cv_sys_largefile_source=1; break
6252 rm -f core conftest.err conftest.$ac_objext \
6253 conftest$ac_exeext conftest.$ac_ext
6254 ac_cv_sys_largefile_source=unknown
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
6259 $as_echo "$ac_cv_sys_largefile_source" >&6; }
6260 case $ac_cv_sys_largefile_source in #(
6263 cat >>confdefs.h <<_ACEOF
6264 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6270 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6271 # in glibc 2.1.3, but that breaks too many other things.
6272 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6273 if test $ac_cv_sys_largefile_source != unknown; then
6275 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
6284 # Check whether --enable-threads was given.
6285 if test "${enable_threads+set}" = set; then :
6286 enableval=$enable_threads; gl_use_threads=$enableval
6288 if test -n "$gl_use_threads_default"; then
6289 gl_use_threads="$gl_use_threads_default"
6292 osf*) gl_use_threads=no ;;
6295 1.[0-5].*) gl_use_threads=no ;;
6296 *) gl_use_threads=yes ;;
6299 *) gl_use_threads=yes ;;
6305 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6306 # For using <pthread.h>:
6309 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6310 # groks <pthread.h>. cc also understands the flag -pthread, but
6311 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6312 # 2. putting a flag into CPPFLAGS that has an effect on the linker
6313 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
6314 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6315 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
6318 # Some systems optimize for single-threaded programs by default, and
6319 # need special flags to disable these optimizations. For example, the
6320 # definition of 'errno' in <errno.h>.
6322 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
6323 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
6330 # Code from module alignof:
6331 # Code from module alloca-opt:
6332 # Code from module arg-nonnull:
6333 # Code from module arpa_inet:
6334 # Code from module base64:
6335 # Code from module btowc:
6336 # Code from module c++defs:
6337 # Code from module c-ctype:
6338 # Code from module configmake:
6339 # Code from module environ:
6340 # Code from module errno:
6341 # Code from module extensions:
6343 # Code from module float:
6344 # Code from module fseeko:
6346 # Code from module fsusage:
6347 # Code from module ftello:
6349 # Code from module ftruncate:
6350 # Code from module full-read:
6351 # Code from module full-write:
6352 # Code from module getaddrinfo:
6353 # Code from module getopt-gnu:
6354 # Code from module getopt-posix:
6355 # Code from module gettext-h:
6356 # Code from module gettimeofday:
6357 # Code from module havelib:
6358 # Code from module hostent:
6359 # Code from module include_next:
6360 # Code from module inet_ntop:
6361 # Code from module inet_pton:
6362 # Code from module langinfo:
6363 # Code from module localcharset:
6364 # Code from module lock:
6365 # Code from module lseek:
6366 # Code from module lstat:
6367 # Code from module malloc-gnu:
6368 # Code from module malloc-posix:
6369 # Code from module mbrtowc:
6370 # Code from module mbsinit:
6371 # Code from module memchr:
6372 # Code from module mkdtemp:
6373 # Code from module multiarch:
6374 # Code from module netdb:
6375 # Code from module netinet_in:
6376 # Code from module nl_langinfo:
6377 # Code from module physmem:
6378 # Code from module regex:
6379 # Code from module safe-read:
6380 # Code from module safe-write:
6381 # Code from module servent:
6382 # Code from module size_max:
6383 # Code from module snprintf:
6384 # Code from module socklen:
6385 # Code from module ssize_t:
6386 # Code from module stat:
6387 # Code from module stdbool:
6388 # Code from module stddef:
6389 # Code from module stdint:
6390 # Code from module stdio:
6391 # Code from module stdlib:
6392 # Code from module streq:
6393 # Code from module string:
6394 # Code from module sys_socket:
6395 # Code from module sys_stat:
6396 # Code from module sys_time:
6397 # Code from module tempname:
6398 # Code from module threadlib:
6402 # Code from module time:
6403 # Code from module unistd:
6404 # Code from module vasnprintf:
6405 # Code from module verify:
6406 # Code from module warn-on-use:
6407 # Code from module wchar:
6408 # Code from module wcrtomb:
6409 # Code from module wctype:
6410 # Code from module write:
6411 # Code from module xsize:
6417 LIBC_FATAL_STDERR_=1
6418 export LIBC_FATAL_STDERR_
6420 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6421 if test "x$ac_cv_type_size_t" = xyes; then :
6425 cat >>confdefs.h <<_ACEOF
6426 #define size_t unsigned int
6431 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6432 # for constant arguments. Useless!
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6434 $as_echo_n "checking for working alloca.h... " >&6; }
6435 if ${ac_cv_working_alloca_h+:} false; then :
6436 $as_echo_n "(cached) " >&6
6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439 /* end confdefs.h. */
6444 char *p = (char *) alloca (2 * sizeof (int));
6450 if ac_fn_c_try_link "$LINENO"; then :
6451 ac_cv_working_alloca_h=yes
6453 ac_cv_working_alloca_h=no
6455 rm -f core conftest.err conftest.$ac_objext \
6456 conftest$ac_exeext conftest.$ac_ext
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6459 $as_echo "$ac_cv_working_alloca_h" >&6; }
6460 if test $ac_cv_working_alloca_h = yes; then
6462 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6467 $as_echo_n "checking for alloca... " >&6; }
6468 if ${ac_cv_func_alloca_works+:} false; then :
6469 $as_echo_n "(cached) " >&6
6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6474 # define alloca __builtin_alloca
6477 # include <malloc.h>
6478 # define alloca _alloca
6480 # ifdef HAVE_ALLOCA_H
6481 # include <alloca.h>
6486 # ifndef alloca /* predefined by HP cc +Olibcalls */
6487 void *alloca (size_t);
6497 char *p = (char *) alloca (1);
6503 if ac_fn_c_try_link "$LINENO"; then :
6504 ac_cv_func_alloca_works=yes
6506 ac_cv_func_alloca_works=no
6508 rm -f core conftest.err conftest.$ac_objext \
6509 conftest$ac_exeext conftest.$ac_ext
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6512 $as_echo "$ac_cv_func_alloca_works" >&6; }
6514 if test $ac_cv_func_alloca_works = yes; then
6516 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6519 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6520 # that cause trouble. Some versions do not even contain alloca or
6521 # contain a buggy version. If you still want to use their alloca,
6522 # use ar to extract alloca.o from them instead of compiling alloca.c.
6528 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6530 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6534 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6535 if ${ac_cv_os_cray+:} false; then :
6536 $as_echo_n "(cached) " >&6
6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h. */
6540 #if defined CRAY && ! defined CRAY2
6547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6548 $EGREP "webecray" >/dev/null 2>&1; then :
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6557 $as_echo "$ac_cv_os_cray" >&6; }
6558 if test $ac_cv_os_cray = yes; then
6559 for ac_func in _getb67 GETB67 getb67; do
6560 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6561 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6562 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6564 cat >>confdefs.h <<_ACEOF
6565 #define CRAY_STACKSEG_END $ac_func
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6575 $as_echo_n "checking stack direction for C alloca... " >&6; }
6576 if ${ac_cv_c_stack_direction+:} false; then :
6577 $as_echo_n "(cached) " >&6
6579 if test "$cross_compiling" = yes; then :
6580 ac_cv_c_stack_direction=0
6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6584 $ac_includes_default
6586 find_stack_direction ()
6588 static char *addr = 0;
6593 return find_stack_direction ();
6596 return (&dummy > addr) ? 1 : -1;
6602 return find_stack_direction () < 0;
6605 if ac_fn_c_try_run "$LINENO"; then :
6606 ac_cv_c_stack_direction=1
6608 ac_cv_c_stack_direction=-1
6610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6611 conftest.$ac_objext conftest.beam conftest.$ac_ext
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6616 $as_echo "$ac_cv_c_stack_direction" >&6; }
6617 cat >>confdefs.h <<_ACEOF
6618 #define STACK_DIRECTION $ac_cv_c_stack_direction
6627 HAVE_DECL_INET_NTOP=1;
6628 HAVE_DECL_INET_PTON=1;
6634 for ac_header in $gl_header_list
6636 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6637 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6638 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6639 cat >>confdefs.h <<_ACEOF
6640 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6654 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6655 if ${gl_cv_have_include_next+:} false; then :
6656 $as_echo_n "(cached) " >&6
6658 rm -rf conftestd1a conftestd1b conftestd2
6659 mkdir conftestd1a conftestd1b conftestd2
6660 cat <<EOF > conftestd1a/conftest.h
6661 #define DEFINED_IN_CONFTESTD1
6662 #include_next <conftest.h>
6663 #ifdef DEFINED_IN_CONFTESTD2
6666 #error "include_next doesn't work"
6669 cat <<EOF > conftestd1b/conftest.h
6670 #define DEFINED_IN_CONFTESTD1
6672 #include_next <conftest.h>
6673 #ifdef DEFINED_IN_CONFTESTD2
6676 #error "include_next doesn't work"
6679 cat <<EOF > conftestd2/conftest.h
6680 #ifndef DEFINED_IN_CONFTESTD1
6681 #error "include_next test doesn't work"
6683 #define DEFINED_IN_CONFTESTD2
6685 gl_save_CPPFLAGS="$CPPFLAGS"
6686 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6689 #include <conftest.h>
6691 if ac_fn_c_try_compile "$LINENO"; then :
6692 gl_cv_have_include_next=yes
6694 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6697 #include <conftest.h>
6699 if ac_fn_c_try_compile "$LINENO"; then :
6700 gl_cv_have_include_next=buggy
6702 gl_cv_have_include_next=no
6704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708 CPPFLAGS="$gl_save_CPPFLAGS"
6709 rm -rf conftestd1a conftestd1b conftestd2
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6713 $as_echo "$gl_cv_have_include_next" >&6; }
6714 PRAGMA_SYSTEM_HEADER=
6715 if test $gl_cv_have_include_next = yes; then
6716 INCLUDE_NEXT=include_next
6717 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6718 if test -n "$GCC"; then
6719 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6722 if test $gl_cv_have_include_next = buggy; then
6723 INCLUDE_NEXT=include
6724 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6726 INCLUDE_NEXT=include
6727 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6735 $as_echo_n "checking for inline... " >&6; }
6736 if ${ac_cv_c_inline+:} false; then :
6737 $as_echo_n "(cached) " >&6
6740 for ac_kw in inline __inline__ __inline; do
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6745 static $ac_kw foo_t static_foo () {return 0; }
6746 $ac_kw foo_t foo () {return 0; }
6750 if ac_fn_c_try_compile "$LINENO"; then :
6751 ac_cv_c_inline=$ac_kw
6753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6754 test "$ac_cv_c_inline" != no && break
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6759 $as_echo "$ac_cv_c_inline" >&6; }
6761 case $ac_cv_c_inline in
6764 case $ac_cv_c_inline in
6766 *) ac_val=$ac_cv_c_inline;;
6768 cat >>confdefs.h <<_ACEOF
6770 #define inline $ac_val
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6777 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6778 if ${ac_cv_c_restrict+:} false; then :
6779 $as_echo_n "(cached) " >&6
6782 # The order here caters to the fact that C++ does not require restrict.
6783 for ac_kw in __restrict __restrict__ _Restrict restrict; do
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786 typedef int * int_ptr;
6787 int foo (int_ptr $ac_kw ip) {
6801 if ac_fn_c_try_compile "$LINENO"; then :
6802 ac_cv_c_restrict=$ac_kw
6804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805 test "$ac_cv_c_restrict" != no && break
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6810 $as_echo "$ac_cv_c_restrict" >&6; }
6812 case $ac_cv_c_restrict in
6814 no) $as_echo "#define restrict /**/" >>confdefs.h
6816 *) cat >>confdefs.h <<_ACEOF
6817 #define restrict $ac_cv_c_restrict
6829 GNULIB_MBSNRTOWCS=0;
6832 GNULIB_WCSNRTOMBS=0;
6844 HAVE_DECL_WCWIDTH=1;
6845 REPLACE_MBSTATE_T=0;
6851 REPLACE_MBSRTOWCS=0;
6852 REPLACE_MBSNRTOWCS=0;
6854 REPLACE_WCSRTOMBS=0;
6855 REPLACE_WCSNRTOMBS=0;
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
6860 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
6861 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
6862 $as_echo_n "(cached) " >&6
6864 gl_cv_header_wchar_h_correct_inline=yes
6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h. */
6868 #define wcstod renamed_wcstod
6870 extern int zero (void);
6871 int main () { return zero(); }
6874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6875 (eval $ac_compile) 2>&5
6877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6878 test $ac_status = 0; }; then
6879 mv conftest.$ac_objext conftest1.$ac_objext
6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881 /* end confdefs.h. */
6883 #define wcstod renamed_wcstod
6885 int zero (void) { return 0; }
6888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6889 (eval $ac_compile) 2>&5
6891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6892 test $ac_status = 0; }; then
6893 mv conftest.$ac_objext conftest2.$ac_objext
6894 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
6897 gl_cv_header_wchar_h_correct_inline=no
6901 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
6905 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
6906 if test $gl_cv_header_wchar_h_correct_inline = no; then
6907 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
6908 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
6909 C99 mode. You have four options:
6910 - Add the flag -fgnu89-inline to CC and reconfigure, or
6911 - Fix your include files, using parts of
6912 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
6913 - Use a gcc version older than 4.3, or
6914 - Don't use the flags -std=c99 or -std=gnu99.
6915 Configuration aborted." "$LINENO" 5
6922 for ac_func in $gl_func_list
6924 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6925 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6926 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6927 cat >>confdefs.h <<_ACEOF
6928 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6940 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6941 if ${am_cv_langinfo_codeset+:} false; then :
6942 $as_echo_n "(cached) " >&6
6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945 /* end confdefs.h. */
6946 #include <langinfo.h>
6950 char* cs = nl_langinfo(CODESET);
6955 if ac_fn_c_try_link "$LINENO"; then :
6956 am_cv_langinfo_codeset=yes
6958 am_cv_langinfo_codeset=no
6960 rm -f core conftest.err conftest.$ac_objext \
6961 conftest$ac_exeext conftest.$ac_ext
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6965 $as_echo "$am_cv_langinfo_codeset" >&6; }
6966 if test $am_cv_langinfo_codeset = yes; then
6968 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
6976 $as_echo_n "checking for a traditional french locale... " >&6; }
6977 if ${gt_cv_locale_fr+:} false; then :
6978 $as_echo_n "(cached) " >&6
6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6986 #if HAVE_LANGINFO_CODESET
6987 # include <langinfo.h>
6994 /* Check whether the given locale name is recognized by the system. */
6995 if (setlocale (LC_ALL, "") == NULL) return 1;
6996 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
6997 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
6998 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
6999 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7000 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7001 some unit tests fail. */
7002 #if HAVE_LANGINFO_CODESET
7004 const char *cs = nl_langinfo (CODESET);
7005 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
7010 /* On Cygwin, avoid locale names without encoding suffix, because the
7011 locale_charset() function relies on the encoding suffix. Note that
7012 LC_ALL is set on the command line. */
7013 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7015 /* Check whether in the abbreviation of the second month, the second
7016 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
7017 one byte long. This excludes the UTF-8 encoding. */
7018 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7019 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
7020 /* Check whether the decimal separator is a comma.
7021 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7022 are nl_langinfo(RADIXCHAR) are both ".". */
7023 if (localeconv () ->decimal_point[0] != ',') return 1;
7028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7029 (eval $ac_link) 2>&5
7031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7032 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7033 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7034 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
7035 # configure script would override the LC_ALL setting. Likewise for
7036 # LC_CTYPE, which is also set at the beginning of the configure script.
7037 # Test for the usual locale name.
7038 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7039 gt_cv_locale_fr=fr_FR
7041 # Test for the locale name with explicit encoding suffix.
7042 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7043 gt_cv_locale_fr=fr_FR.ISO-8859-1
7045 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
7046 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7047 gt_cv_locale_fr=fr_FR.ISO8859-1
7049 # Test for the HP-UX locale name.
7050 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7051 gt_cv_locale_fr=fr_FR.iso88591
7053 # Test for the Solaris 7 locale name.
7054 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7058 gt_cv_locale_fr=none
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
7069 $as_echo "$gt_cv_locale_fr" >&6; }
7070 LOCALE_FR=$gt_cv_locale_fr
7079 GNULIB_EUIDACCESS=0;
7086 GNULIB_GETDOMAINNAME=0;
7087 GNULIB_GETDTABLESIZE=0;
7089 GNULIB_GETHOSTNAME=0;
7091 GNULIB_GETLOGIN_R=0;
7092 GNULIB_GETPAGESIZE=0;
7093 GNULIB_GETUSERSHELL=0;
7102 GNULIB_READLINKAT=0;
7108 GNULIB_UNISTD_H_GETOPT=0;
7109 GNULIB_UNISTD_H_SIGPIPE=0;
7123 HAVE_GETDOMAINNAME=1;
7124 HAVE_GETDTABLESIZE=1;
7143 HAVE_DECL_ENVIRON=1;
7144 HAVE_DECL_GETLOGIN_R=1;
7145 HAVE_DECL_GETPAGESIZE=1;
7146 HAVE_DECL_GETUSERSHELL=1;
7155 REPLACE_GETGROUPS=0;
7156 REPLACE_GETPAGESIZE=0;
7167 REPLACE_TTYNAME_R=0;
7172 UNISTD_H_HAVE_WINSOCK2_H=0;
7173 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
7182 $as_echo_n "checking if environ is properly declared... " >&6; }
7183 if ${gt_cv_var_environ_declaration+:} false; then :
7184 $as_echo_n "(cached) " >&6
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7190 extern struct { int foo; } environ;
7199 if ac_fn_c_try_compile "$LINENO"; then :
7200 gt_cv_var_environ_declaration=no
7202 gt_cv_var_environ_declaration=yes
7204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
7208 $as_echo "$gt_cv_var_environ_declaration" >&6; }
7209 if test $gt_cv_var_environ_declaration = yes; then
7211 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
7216 if test $gt_cv_var_environ_declaration != yes; then
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
7228 $as_echo_n "checking for complete errno.h... " >&6; }
7229 if ${gl_cv_header_errno_h_complete+:} false; then :
7230 $as_echo_n "(cached) " >&6
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7243 #if !defined ENOLINK
7249 #if !defined EMULTIHOP
7252 #if !defined EBADMSG
7255 #if !defined EOVERFLOW
7258 #if !defined ENOTSUP
7264 #if !defined ECANCELED
7269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7270 $EGREP "booboo" >/dev/null 2>&1; then :
7271 gl_cv_header_errno_h_complete=no
7273 gl_cv_header_errno_h_complete=yes
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
7280 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7281 if test $gl_cv_header_errno_h_complete = yes; then
7296 if test $gl_cv_have_include_next = yes; then
7297 gl_cv_next_errno_h='<'errno.h'>'
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
7300 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7301 if ${gl_cv_next_errno_h+:} false; then :
7302 $as_echo_n "(cached) " >&6
7305 if test $ac_cv_header_errno_h = yes; then
7306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307 /* end confdefs.h. */
7312 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7313 *) gl_absname_cpp="$ac_cpp" ;;
7315 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7316 sed -n '\#/errno.h#{
7317 s#.*"\(.*/errno.h\)".*#\1#
7323 gl_cv_next_errno_h='<'errno.h'>'
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7328 $as_echo "$gl_cv_next_errno_h" >&6; }
7330 NEXT_ERRNO_H=$gl_cv_next_errno_h
7332 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7333 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7334 gl_next_as_first_directive='<'errno.h'>'
7336 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7337 gl_next_as_first_directive=$gl_cv_next_errno_h
7339 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
7347 if test -n "$ERRNO_H"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7349 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7350 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
7351 $as_echo_n "(cached) " >&6
7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h. */
7363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7364 $EGREP "yes" >/dev/null 2>&1; then :
7365 gl_cv_header_errno_h_EMULTIHOP=yes
7367 gl_cv_header_errno_h_EMULTIHOP=no
7371 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373 /* end confdefs.h. */
7375 #define _XOPEN_SOURCE_EXTENDED 1
7382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7383 $EGREP "yes" >/dev/null 2>&1; then :
7384 gl_cv_header_errno_h_EMULTIHOP=hidden
7388 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7389 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
7390 #define _XOPEN_SOURCE_EXTENDED 1
7392 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7404 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7405 case $gl_cv_header_errno_h_EMULTIHOP in
7407 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7410 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7418 if test -n "$ERRNO_H"; then
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7420 $as_echo_n "checking for ENOLINK value... " >&6; }
7421 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
7422 $as_echo_n "(cached) " >&6
7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7435 $EGREP "yes" >/dev/null 2>&1; then :
7436 gl_cv_header_errno_h_ENOLINK=yes
7438 gl_cv_header_errno_h_ENOLINK=no
7442 if test $gl_cv_header_errno_h_ENOLINK = no; then
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7446 #define _XOPEN_SOURCE_EXTENDED 1
7453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7454 $EGREP "yes" >/dev/null 2>&1; then :
7455 gl_cv_header_errno_h_ENOLINK=hidden
7459 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7460 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7461 #define _XOPEN_SOURCE_EXTENDED 1
7463 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7475 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7476 case $gl_cv_header_errno_h_ENOLINK in
7478 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7481 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7489 if test -n "$ERRNO_H"; then
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7491 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7492 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
7493 $as_echo_n "(cached) " >&6
7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497 /* end confdefs.h. */
7505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7506 $EGREP "yes" >/dev/null 2>&1; then :
7507 gl_cv_header_errno_h_EOVERFLOW=yes
7509 gl_cv_header_errno_h_EOVERFLOW=no
7513 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515 /* end confdefs.h. */
7517 #define _XOPEN_SOURCE_EXTENDED 1
7524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7525 $EGREP "yes" >/dev/null 2>&1; then :
7526 gl_cv_header_errno_h_EOVERFLOW=hidden
7530 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7531 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7532 #define _XOPEN_SOURCE_EXTENDED 1
7534 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7546 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7547 case $gl_cv_header_errno_h_EOVERFLOW in
7549 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7552 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7571 GNULIB_FPRINTF_POSIX=0;
7583 GNULIB_OBSTACK_PRINTF=0;
7584 GNULIB_OBSTACK_PRINTF_POSIX=0;
7588 GNULIB_PRINTF_POSIX=0;
7596 GNULIB_SPRINTF_POSIX=0;
7597 GNULIB_STDIO_H_SIGPIPE=0;
7602 GNULIB_VFPRINTF_POSIX=0;
7604 GNULIB_VPRINTF_POSIX=0;
7606 GNULIB_VSPRINTF_POSIX=0;
7608 HAVE_DECL_GETDELIM=1;
7609 HAVE_DECL_GETLINE=1;
7610 HAVE_DECL_OBSTACK_PRINTF=1;
7611 HAVE_DECL_SNPRINTF=1;
7612 HAVE_DECL_VSNPRINTF=1;
7632 REPLACE_OBSTACK_PRINTF=0;
7641 REPLACE_STDIO_WRITE_FUNCS=0;
7643 REPLACE_VASPRINTF=0;
7647 REPLACE_VSNPRINTF=0;
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
7656 $as_echo_n "checking for fseeko... " >&6; }
7657 if ${gl_cv_func_fseeko+:} false; then :
7658 $as_echo_n "(cached) " >&6
7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h. */
7668 fseeko (stdin, 0, 0);
7673 if ac_fn_c_try_link "$LINENO"; then :
7674 gl_cv_func_fseeko=yes
7676 gl_cv_func_fseeko=no
7678 rm -f core conftest.err conftest.$ac_objext \
7679 conftest$ac_exeext conftest.$ac_ext
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
7683 $as_echo "$gl_cv_func_fseeko" >&6; }
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
7687 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
7688 if ${gl_cv_var_stdin_large_offset+:} false; then :
7689 $as_echo_n "(cached) " >&6
7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7697 #if defined __SL64 && defined __SCLE /* cygwin */
7698 /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
7699 fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and
7700 it is easier to do a version check than building a runtime test. */
7701 # include <cygwin/version.h>
7702 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
7710 if ac_fn_c_try_link "$LINENO"; then :
7711 gl_cv_var_stdin_large_offset=yes
7713 gl_cv_var_stdin_large_offset=no
7715 rm -f core conftest.err conftest.$ac_objext \
7716 conftest$ac_exeext conftest.$ac_ext
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
7719 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
7746 GNULIB_GETPEERNAME=0;
7747 GNULIB_GETSOCKNAME=0;
7748 GNULIB_GETSOCKOPT=0;
7754 GNULIB_SETSOCKOPT=0;
7757 HAVE_STRUCT_SOCKADDR_STORAGE=1;
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
7771 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
7772 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
7773 $as_echo_n "(cached) " >&6
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7778 #include <sys/socket.h>
7787 if ac_fn_c_try_compile "$LINENO"; then :
7788 gl_cv_header_sys_socket_h_selfcontained=yes
7790 gl_cv_header_sys_socket_h_selfcontained=no
7792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
7796 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
7797 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
7798 for ac_func in shutdown
7800 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
7801 if test "x$ac_cv_func_shutdown" = xyes; then :
7802 cat >>confdefs.h <<_ACEOF
7803 #define HAVE_SHUTDOWN 1
7809 if test $ac_cv_func_shutdown = yes; then
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
7811 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
7812 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
7813 $as_echo_n "(cached) " >&6
7816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817 /* end confdefs.h. */
7818 #include <sys/socket.h>
7822 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
7827 if ac_fn_c_try_compile "$LINENO"; then :
7828 gl_cv_header_sys_socket_h_shut=yes
7830 gl_cv_header_sys_socket_h_shut=no
7832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
7836 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
7837 if test $gl_cv_header_sys_socket_h_shut = no; then
7838 SYS_SOCKET_H='sys/socket.h'
7842 # We need to check for ws2tcpip.h now.
7856 if test $gl_cv_have_include_next = yes; then
7857 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
7860 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
7861 if ${gl_cv_next_sys_socket_h+:} false; then :
7862 $as_echo_n "(cached) " >&6
7865 if test $ac_cv_header_sys_socket_h = yes; then
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7868 #include <sys/socket.h>
7872 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7873 *) gl_absname_cpp="$ac_cpp" ;;
7875 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7876 sed -n '\#/sys/socket.h#{
7877 s#.*"\(.*/sys/socket.h\)".*#\1#
7883 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
7888 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
7890 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
7892 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7893 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7894 gl_next_as_first_directive='<'sys/socket.h'>'
7896 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7897 gl_next_as_first_directive=$gl_cv_next_sys_socket_h
7899 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
7903 if test $ac_cv_header_sys_socket_h = yes; then
7908 for ac_header in ws2tcpip.h
7910 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
7911 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
7912 cat >>confdefs.h <<_ACEOF
7913 #define HAVE_WS2TCPIP_H 1
7920 if test $ac_cv_header_ws2tcpip_h = yes; then
7929 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
7930 /* sys/types.h is not needed according to POSIX, but the
7931 sys/socket.h in i386-unknown-freebsd4.10 and
7932 powerpc-apple-darwin5.5 required it. */
7933 #include <sys/types.h>
7934 #ifdef HAVE_SYS_SOCKET_H
7935 #include <sys/socket.h>
7937 #ifdef HAVE_WS2TCPIP_H
7938 #include <ws2tcpip.h>
7942 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
7944 cat >>confdefs.h <<_ACEOF
7945 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
7950 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
7951 /* sys/types.h is not needed according to POSIX, but the
7952 sys/socket.h in i386-unknown-freebsd4.10 and
7953 powerpc-apple-darwin5.5 required it. */
7954 #include <sys/types.h>
7955 #ifdef HAVE_SYS_SOCKET_H
7956 #include <sys/socket.h>
7958 #ifdef HAVE_WS2TCPIP_H
7959 #include <ws2tcpip.h>
7963 if test "x$ac_cv_type_sa_family_t" = xyes; then :
7965 cat >>confdefs.h <<_ACEOF
7966 #define HAVE_SA_FAMILY_T 1
7972 if test $ac_cv_type_struct_sockaddr_storage = no; then
7973 HAVE_STRUCT_SOCKADDR_STORAGE=0
7975 if test $ac_cv_type_sa_family_t = no; then
7988 if test $ac_cv_header_sys_socket_h != yes; then
7989 for ac_header in winsock2.h
7991 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
7992 if test "x$ac_cv_header_winsock2_h" = xyes; then :
7993 cat >>confdefs.h <<_ACEOF
7994 #define HAVE_WINSOCK2_H 1
8002 if test "$ac_cv_header_winsock2_h" = yes; then
8004 UNISTD_H_HAVE_WINSOCK2_H=1
8005 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
8013 for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do
8014 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8016 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8017 if eval \${$as_gl_Symbol+:} false; then :
8018 $as_echo_n "(cached) " >&6
8020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8021 /* end confdefs.h. */
8023 /* Some systems require prerequisite headers. */
8024 #include <sys/types.h>
8025 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
8026 # include <sys/time.h>
8028 #include <sys/select.h>
8039 if ac_fn_c_try_compile "$LINENO"; then :
8040 eval "$as_gl_Symbol=yes"
8042 eval "$as_gl_Symbol=no"
8044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8046 eval ac_res=\$$as_gl_Symbol
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8048 $as_echo "$ac_res" >&6; }
8049 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
8050 cat >>confdefs.h <<_ACEOF
8051 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8054 eval ac_cv_have_decl_$gl_func=yes
8060 GNULIB_GETADDRINFO=0;
8061 HAVE_STRUCT_ADDRINFO=1;
8062 HAVE_DECL_FREEADDRINFO=1;
8063 HAVE_DECL_GAI_STRERROR=1;
8064 HAVE_DECL_GETADDRINFO=1;
8065 HAVE_DECL_GETNAMEINFO=1;
8093 if test $gl_cv_have_include_next = yes; then
8094 gl_cv_next_netdb_h='<'netdb.h'>'
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
8097 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
8098 if ${gl_cv_next_netdb_h+:} false; then :
8099 $as_echo_n "(cached) " >&6
8102 if test $ac_cv_header_netdb_h = yes; then
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8109 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8110 *) gl_absname_cpp="$ac_cpp" ;;
8112 gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8113 sed -n '\#/netdb.h#{
8114 s#.*"\(.*/netdb.h\)".*#\1#
8120 gl_cv_next_netdb_h='<'netdb.h'>'
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
8125 $as_echo "$gl_cv_next_netdb_h" >&6; }
8127 NEXT_NETDB_H=$gl_cv_next_netdb_h
8129 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8130 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8131 gl_next_as_first_directive='<'netdb.h'>'
8133 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8134 gl_next_as_first_directive=$gl_cv_next_netdb_h
8136 NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
8140 if test $ac_cv_header_netdb_h = yes; then
8148 for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
8149 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8151 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8152 if eval \${$as_gl_Symbol+:} false; then :
8153 $as_echo_n "(cached) " >&6
8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156 /* end confdefs.h. */
8167 if ac_fn_c_try_compile "$LINENO"; then :
8168 eval "$as_gl_Symbol=yes"
8170 eval "$as_gl_Symbol=no"
8172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8174 eval ac_res=\$$as_gl_Symbol
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8176 $as_echo "$ac_res" >&6; }
8177 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
8178 cat >>confdefs.h <<_ACEOF
8179 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8182 eval ac_cv_have_decl_$gl_func=yes
8189 gl_saved_libs="$LIBS"
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8191 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8192 if ${ac_cv_search_gethostbyname+:} false; then :
8193 $as_echo_n "(cached) " >&6
8195 ac_func_search_save_LIBS=$LIBS
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8199 /* Override any GCC internal prototype to avoid an error.
8200 Use char because int might match the return type of a GCC
8201 builtin and then its argument prototype would still apply. */
8205 char gethostbyname ();
8209 return gethostbyname ();
8214 for ac_lib in '' nsl network net; do
8215 if test -z "$ac_lib"; then
8216 ac_res="none required"
8219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8221 if ac_fn_c_try_link "$LINENO"; then :
8222 ac_cv_search_gethostbyname=$ac_res
8224 rm -f core conftest.err conftest.$ac_objext \
8226 if ${ac_cv_search_gethostbyname+:} false; then :
8230 if ${ac_cv_search_gethostbyname+:} false; then :
8233 ac_cv_search_gethostbyname=no
8236 LIBS=$ac_func_search_save_LIBS
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8239 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8240 ac_res=$ac_cv_search_gethostbyname
8241 if test "$ac_res" != no; then :
8242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8243 if test "$ac_cv_search_gethostbyname" != "none required"; then
8244 HOSTENT_LIB="$ac_cv_search_gethostbyname"
8248 LIBS="$gl_saved_libs"
8249 if test -z "$HOSTENT_LIB"; then
8250 for ac_func in gethostbyname
8252 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8253 if test "x$ac_cv_func_gethostbyname" = xyes; then :
8254 cat >>confdefs.h <<_ACEOF
8255 #define HAVE_GETHOSTBYNAME 1
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
8261 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
8262 if ${gl_cv_w32_gethostbyname+:} false; then :
8263 $as_echo_n "(cached) " >&6
8265 gl_cv_w32_gethostbyname=no
8266 gl_save_LIBS="$LIBS"
8267 LIBS="$LIBS -lws2_32"
8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269 /* end confdefs.h. */
8271 #ifdef HAVE_WINSOCK2_H
8272 #include <winsock2.h>
8279 gethostbyname(NULL);
8284 if ac_fn_c_try_link "$LINENO"; then :
8285 gl_cv_w32_gethostbyname=yes
8287 rm -f core conftest.err conftest.$ac_objext \
8288 conftest$ac_exeext conftest.$ac_ext
8289 LIBS="$gl_save_LIBS"
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
8293 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
8294 if test "$gl_cv_w32_gethostbyname" = "yes"; then
8295 HOSTENT_LIB="-lws2_32"
8306 gl_saved_libs="$LIBS"
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
8308 $as_echo_n "checking for library containing getservbyname... " >&6; }
8309 if ${ac_cv_search_getservbyname+:} false; then :
8310 $as_echo_n "(cached) " >&6
8312 ac_func_search_save_LIBS=$LIBS
8313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8314 /* end confdefs.h. */
8316 /* Override any GCC internal prototype to avoid an error.
8317 Use char because int might match the return type of a GCC
8318 builtin and then its argument prototype would still apply. */
8322 char getservbyname ();
8326 return getservbyname ();
8331 for ac_lib in '' socket network net; do
8332 if test -z "$ac_lib"; then
8333 ac_res="none required"
8336 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8338 if ac_fn_c_try_link "$LINENO"; then :
8339 ac_cv_search_getservbyname=$ac_res
8341 rm -f core conftest.err conftest.$ac_objext \
8343 if ${ac_cv_search_getservbyname+:} false; then :
8347 if ${ac_cv_search_getservbyname+:} false; then :
8350 ac_cv_search_getservbyname=no
8353 LIBS=$ac_func_search_save_LIBS
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
8356 $as_echo "$ac_cv_search_getservbyname" >&6; }
8357 ac_res=$ac_cv_search_getservbyname
8358 if test "$ac_res" != no; then :
8359 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8360 if test "$ac_cv_search_getservbyname" != "none required"; then
8361 SERVENT_LIB="$ac_cv_search_getservbyname"
8365 LIBS="$gl_saved_libs"
8366 if test -z "$SERVENT_LIB"; then
8367 for ac_func in getservbyname
8369 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
8370 if test "x$ac_cv_func_getservbyname" = xyes; then :
8371 cat >>confdefs.h <<_ACEOF
8372 #define HAVE_GETSERVBYNAME 1
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
8378 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
8379 if ${gl_cv_w32_getservbyname+:} false; then :
8380 $as_echo_n "(cached) " >&6
8382 gl_cv_w32_getservbyname=no
8383 gl_save_LIBS="$LIBS"
8384 LIBS="$LIBS -lws2_32"
8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h. */
8388 #ifdef HAVE_WINSOCK2_H
8389 #include <winsock2.h>
8396 getservbyname(NULL,NULL);
8401 if ac_fn_c_try_link "$LINENO"; then :
8402 gl_cv_w32_getservbyname=yes
8404 rm -f core conftest.err conftest.$ac_objext \
8405 conftest$ac_exeext conftest.$ac_ext
8406 LIBS="$gl_save_LIBS"
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
8410 $as_echo "$gl_cv_w32_getservbyname" >&6; }
8411 if test "$gl_cv_w32_getservbyname" = "yes"; then
8412 SERVENT_LIB="-lws2_32"
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
8437 $as_echo_n "checking for IPv4 sockets... " >&6; }
8438 if ${gl_cv_socket_ipv4+:} false; then :
8439 $as_echo_n "(cached) " >&6
8441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442 /* end confdefs.h. */
8443 #include <sys/types.h>
8444 #ifdef HAVE_SYS_SOCKET_H
8445 #include <sys/socket.h>
8447 #ifdef HAVE_NETINET_IN_H
8448 #include <netinet/in.h>
8450 #ifdef HAVE_WINSOCK2_H
8451 #include <winsock2.h>
8456 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
8457 if (&x && &y && &z) return 0;
8462 if ac_fn_c_try_compile "$LINENO"; then :
8463 gl_cv_socket_ipv4=yes
8465 gl_cv_socket_ipv4=no
8467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
8471 $as_echo "$gl_cv_socket_ipv4" >&6; }
8472 if test $gl_cv_socket_ipv4 = yes; then
8474 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
8479 $as_echo_n "checking for IPv6 sockets... " >&6; }
8480 if ${gl_cv_socket_ipv6+:} false; then :
8481 $as_echo_n "(cached) " >&6
8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8485 #include <sys/types.h>
8486 #ifdef HAVE_SYS_SOCKET_H
8487 #include <sys/socket.h>
8489 #ifdef HAVE_NETINET_IN_H
8490 #include <netinet/in.h>
8492 #ifdef HAVE_WINSOCK2_H
8493 #include <winsock2.h>
8495 #ifdef HAVE_WS2TCPIP_H
8496 #include <ws2tcpip.h>
8501 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
8502 if (&x && &y && &z) return 0;
8507 if ac_fn_c_try_compile "$LINENO"; then :
8508 gl_cv_socket_ipv6=yes
8510 gl_cv_socket_ipv6=no
8512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
8516 $as_echo "$gl_cv_socket_ipv6" >&6; }
8517 if test $gl_cv_socket_ipv6 = yes; then
8519 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
8532 $as_echo_n "checking for library containing inet_ntop... " >&6; }
8533 if ${ac_cv_search_inet_ntop+:} false; then :
8534 $as_echo_n "(cached) " >&6
8536 ac_func_search_save_LIBS=$LIBS
8537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h. */
8540 /* Override any GCC internal prototype to avoid an error.
8541 Use char because int might match the return type of a GCC
8542 builtin and then its argument prototype would still apply. */
8550 return inet_ntop ();
8555 for ac_lib in '' nsl; do
8556 if test -z "$ac_lib"; then
8557 ac_res="none required"
8560 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8562 if ac_fn_c_try_link "$LINENO"; then :
8563 ac_cv_search_inet_ntop=$ac_res
8565 rm -f core conftest.err conftest.$ac_objext \
8567 if ${ac_cv_search_inet_ntop+:} false; then :
8571 if ${ac_cv_search_inet_ntop+:} false; then :
8574 ac_cv_search_inet_ntop=no
8577 LIBS=$ac_func_search_save_LIBS
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
8580 $as_echo "$ac_cv_search_inet_ntop" >&6; }
8581 ac_res=$ac_cv_search_inet_ntop
8582 if test "$ac_res" != no; then :
8583 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8594 for ac_func in inet_ntop
8596 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
8597 if test "x$ac_cv_func_inet_ntop" = xyes; then :
8598 cat >>confdefs.h <<_ACEOF
8599 #define HAVE_INET_NTOP 1
8604 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
8614 if test "$ac_cv_search_inet_ntop" != "no" &&
8615 test "$ac_cv_search_inet_ntop" != "none required"; then
8616 INET_NTOP_LIB="$ac_cv_search_inet_ntop"
8621 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
8623 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
8629 cat >>confdefs.h <<_ACEOF
8630 #define HAVE_DECL_INET_NTOP $ac_have_decl
8633 if test $ac_cv_have_decl_inet_ntop = no; then
8634 HAVE_DECL_INET_NTOP=0
8661 if test $gl_cv_have_include_next = yes; then
8662 gl_cv_next_getopt_h='<'getopt.h'>'
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
8665 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
8666 if ${gl_cv_next_getopt_h+:} false; then :
8667 $as_echo_n "(cached) " >&6
8670 if test $ac_cv_header_getopt_h = yes; then
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8677 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8678 *) gl_absname_cpp="$ac_cpp" ;;
8680 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8681 sed -n '\#/getopt.h#{
8682 s#.*"\(.*/getopt.h\)".*#\1#
8688 gl_cv_next_getopt_h='<'getopt.h'>'
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
8693 $as_echo "$gl_cv_next_getopt_h" >&6; }
8695 NEXT_GETOPT_H=$gl_cv_next_getopt_h
8697 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8698 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8699 gl_next_as_first_directive='<'getopt.h'>'
8701 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8702 gl_next_as_first_directive=$gl_cv_next_getopt_h
8704 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
8715 if test $ac_cv_header_getopt_h = yes; then
8724 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
8725 for ac_header in getopt.h
8727 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
8728 if test "x$ac_cv_header_getopt_h" = xyes; then :
8729 cat >>confdefs.h <<_ACEOF
8730 #define HAVE_GETOPT_H 1
8734 gl_replace_getopt=yes
8741 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
8742 for ac_func in getopt_long_only
8744 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
8745 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
8746 cat >>confdefs.h <<_ACEOF
8747 #define HAVE_GETOPT_LONG_ONLY 1
8751 gl_replace_getopt=yes
8757 if test -z "$gl_replace_getopt"; then
8758 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
8760 if test "x$ac_cv_have_decl_optreset" = xyes; then :
8766 cat >>confdefs.h <<_ACEOF
8767 #define HAVE_DECL_OPTRESET $ac_have_decl
8769 if test $ac_have_decl = 1; then :
8772 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
8774 if test "x$ac_cv_have_decl_getopt_clip" = xyes; then :
8780 cat >>confdefs.h <<_ACEOF
8781 #define HAVE_DECL_GETOPT_CLIP $ac_have_decl
8789 if test -z "$gl_replace_getopt"; then
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
8791 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
8792 if ${gl_cv_func_getopt_posix+:} false; then :
8793 $as_echo_n "(cached) " >&6
8796 if test "$cross_compiling" = yes; then :
8798 mingw*) gl_cv_func_getopt_posix="guessing no";;
8799 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
8800 *) gl_cv_func_getopt_posix="guessing yes";;
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8811 #if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
8812 # define OPTIND_MIN 0
8814 # define OPTIND_MIN 1
8825 argv[argc++] = "program";
8826 argv[argc++] = "-a";
8827 argv[argc++] = "foo";
8828 argv[argc++] = "bar";
8830 optind = OPTIND_MIN;
8833 c = getopt (argc, argv, "ab");
8836 c = getopt (argc, argv, "ab");
8842 /* Some internal state exists at this point. */
8848 argv[argc++] = "program";
8849 argv[argc++] = "donald";
8850 argv[argc++] = "-p";
8851 argv[argc++] = "billy";
8852 argv[argc++] = "duck";
8853 argv[argc++] = "-a";
8854 argv[argc++] = "bar";
8856 optind = OPTIND_MIN;
8859 c = getopt (argc, argv, "+abp:q:");
8862 if (!(strcmp (argv[0], "program") == 0))
8864 if (!(strcmp (argv[1], "donald") == 0))
8866 if (!(strcmp (argv[2], "-p") == 0))
8868 if (!(strcmp (argv[3], "billy") == 0))
8870 if (!(strcmp (argv[4], "duck") == 0))
8872 if (!(strcmp (argv[5], "-a") == 0))
8874 if (!(strcmp (argv[6], "bar") == 0))
8879 /* Detect MacOS 10.5, AIX 7.1 bug. */
8881 char *argv[3] = { "program", "-ab", NULL };
8882 optind = OPTIND_MIN;
8884 if (getopt (2, argv, "ab:") != 'a')
8886 if (getopt (2, argv, "ab:") != '?')
8898 if ac_fn_c_try_run "$LINENO"; then :
8899 gl_cv_func_getopt_posix=yes
8901 gl_cv_func_getopt_posix=no
8903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8904 conftest.$ac_objext conftest.beam conftest.$ac_ext
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
8910 $as_echo "$gl_cv_func_getopt_posix" >&6; }
8911 case "$gl_cv_func_getopt_posix" in
8912 *no) gl_replace_getopt=yes ;;
8916 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
8918 $as_echo_n "checking for working GNU getopt function... " >&6; }
8919 if ${gl_cv_func_getopt_gnu+:} false; then :
8920 $as_echo_n "(cached) " >&6
8922 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
8923 # optstring is necessary for programs like m4 that have POSIX-mandated
8924 # semantics for supporting options interspersed with files.
8925 # Also, since getopt_long is a GNU extension, we require optind=0.
8926 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
8927 # so take care to revert to the correct (non-)export state.
8928 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
8929 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
8930 xx) gl_had_POSIXLY_CORRECT=exported ;;
8931 x) gl_had_POSIXLY_CORRECT=yes ;;
8932 *) gl_had_POSIXLY_CORRECT= ;;
8935 export POSIXLY_CORRECT
8936 if test "$cross_compiling" = yes; then :
8937 case $host_os:$ac_cv_have_decl_optreset in
8938 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
8939 *:yes) gl_cv_func_getopt_gnu=no;;
8940 *) gl_cv_func_getopt_gnu=yes;;
8944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8945 /* end confdefs.h. */
8954 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
8955 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
8956 OSF/1 5.1, Solaris 10. */
8959 myargv[0] = "conftest";
8963 if (getopt (2, myargv, "+a") != '?')
8966 /* This code succeeds on glibc 2.8, mingw,
8967 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
8968 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
8970 char *argv[] = { "program", "-p", "foo", "bar", NULL };
8973 if (getopt (4, argv, "p::") != 'p')
8977 if (getopt (4, argv, "p::") != -1)
8982 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
8984 char *argv[] = { "program", "foo", "-p", NULL };
8986 if (getopt (3, argv, "-p") != 1)
8988 if (getopt (3, argv, "-p") != 'p')
8991 /* This code fails on glibc 2.11. */
8993 char *argv[] = { "program", "-b", "-a", NULL };
8994 optind = opterr = 0;
8995 if (getopt (3, argv, "+:a:b") != 'b')
8997 if (getopt (3, argv, "+:a:b") != ':')
9006 if ac_fn_c_try_run "$LINENO"; then :
9007 gl_cv_func_getopt_gnu=yes
9009 gl_cv_func_getopt_gnu=no
9011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9012 conftest.$ac_objext conftest.beam conftest.$ac_ext
9015 case $gl_had_POSIXLY_CORRECT in
9017 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
9018 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
9023 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
9024 if test "$gl_cv_func_getopt_gnu" = "no"; then
9025 gl_replace_getopt=yes
9030 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
9031 if test "x$ac_cv_have_decl_getenv" = xyes; then :
9037 cat >>confdefs.h <<_ACEOF
9038 #define HAVE_DECL_GETENV $ac_have_decl
9047 if test -n "$gl_replace_getopt"; then :
9053 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
9057 GNULIB_UNISTD_H_GETOPT=1
9066 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
9076 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
9093 GNULIB_GETTIMEOFDAY=0;
9094 HAVE_GETTIMEOFDAY=1;
9095 HAVE_STRUCT_TIMEVAL=1;
9097 REPLACE_GETTIMEOFDAY=0;
9126 if test $gl_cv_have_include_next = yes; then
9127 gl_cv_next_sys_time_h='<'sys/time.h'>'
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9130 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9131 if ${gl_cv_next_sys_time_h+:} false; then :
9132 $as_echo_n "(cached) " >&6
9135 if test $ac_cv_header_sys_time_h = yes; then
9136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9137 /* end confdefs.h. */
9138 #include <sys/time.h>
9142 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9143 *) gl_absname_cpp="$ac_cpp" ;;
9145 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9146 sed -n '\#/sys/time.h#{
9147 s#.*"\(.*/sys/time.h\)".*#\1#
9153 gl_cv_next_sys_time_h='<'sys/time.h'>'
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9158 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9160 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
9162 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9163 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9164 gl_next_as_first_directive='<'sys/time.h'>'
9166 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9167 gl_next_as_first_directive=$gl_cv_next_sys_time_h
9169 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
9174 if test $ac_cv_header_sys_time_h != yes; then
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9179 $as_echo_n "checking for struct timeval... " >&6; }
9180 if ${gl_cv_sys_struct_timeval+:} false; then :
9181 $as_echo_n "(cached) " >&6
9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h. */
9186 #include <sys/time.h>
9193 static struct timeval x; x.tv_sec = x.tv_usec;
9198 if ac_fn_c_try_compile "$LINENO"; then :
9199 gl_cv_sys_struct_timeval=yes
9201 gl_cv_sys_struct_timeval=no
9203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
9206 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
9207 if test $gl_cv_sys_struct_timeval != yes; then
9208 HAVE_STRUCT_TIMEVAL=0
9212 for gl_func in gettimeofday; do
9213 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9215 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9216 if eval \${$as_gl_Symbol+:} false; then :
9217 $as_echo_n "(cached) " >&6
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9223 # include <sys/time.h>
9236 if ac_fn_c_try_compile "$LINENO"; then :
9237 eval "$as_gl_Symbol=yes"
9239 eval "$as_gl_Symbol=no"
9241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9243 eval ac_res=\$$as_gl_Symbol
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9245 $as_echo "$ac_res" >&6; }
9246 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
9247 cat >>confdefs.h <<_ACEOF
9248 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9251 eval ac_cv_have_decl_$gl_func=yes
9265 GNULIB_NL_LANGINFO=0;
9267 REPLACE_NL_LANGINFO=0;
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9277 $as_echo_n "checking for working fcntl.h... " >&6; }
9278 if ${gl_cv_header_working_fcntl_h+:} false; then :
9279 $as_echo_n "(cached) " >&6
9281 if test "$cross_compiling" = yes; then :
9282 gl_cv_header_working_fcntl_h=cross-compiling
9284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9285 /* end confdefs.h. */
9286 #include <sys/types.h>
9287 #include <sys/stat.h>
9294 #define O_NOFOLLOW 0
9296 static int const constants[] =
9298 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9299 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9306 int status = !constants;
9308 static char const sym[] = "conftest.sym";
9309 if (symlink (".", sym) != 0
9310 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
9315 static char const file[] = "confdefs.h";
9316 int fd = open (file, O_RDONLY | O_NOATIME);
9318 struct stat st0, st1;
9320 || fstat (fd, &st0) != 0
9322 || read (fd, &c, 1) != 1
9324 || stat (file, &st1) != 0
9325 || st0.st_atime != st1.st_atime)
9333 if ac_fn_c_try_run "$LINENO"; then :
9334 gl_cv_header_working_fcntl_h=yes
9337 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
9338 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
9339 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9340 *) gl_cv_header_working_fcntl_h='no';;
9343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9344 conftest.$ac_objext conftest.beam conftest.$ac_ext
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9349 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9351 case $gl_cv_header_working_fcntl_h in #(
9352 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
9356 cat >>confdefs.h <<_ACEOF
9357 #define HAVE_WORKING_O_NOATIME $ac_val
9361 case $gl_cv_header_working_fcntl_h in #(
9362 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
9366 cat >>confdefs.h <<_ACEOF
9367 #define HAVE_WORKING_O_NOFOLLOW $ac_val
9372 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
9373 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
9379 cat >>confdefs.h <<_ACEOF
9380 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
9386 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
9387 if ${ac_cv_gnu_library_2_1+:} false; then :
9388 $as_echo_n "(cached) " >&6
9390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9391 /* end confdefs.h. */
9393 #include <features.h>
9394 #ifdef __GNU_LIBRARY__
9395 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9402 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
9403 ac_cv_gnu_library_2_1=yes
9405 ac_cv_gnu_library_2_1=no
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9413 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9415 GLIBC21="$ac_cv_gnu_library_2_1"
9419 if test "X$prefix" = "XNONE"; then
9420 acl_final_prefix="$ac_default_prefix"
9422 acl_final_prefix="$prefix"
9424 if test "X$exec_prefix" = "XNONE"; then
9425 acl_final_exec_prefix='${prefix}'
9427 acl_final_exec_prefix="$exec_prefix"
9429 acl_save_prefix="$prefix"
9430 prefix="$acl_final_prefix"
9431 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9432 prefix="$acl_save_prefix"
9435 # Check whether --with-gnu-ld was given.
9436 if test "${with_gnu_ld+set}" = set; then :
9437 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9442 # Prepare PATH_SEPARATOR.
9443 # The user is always right.
9444 if test "${PATH_SEPARATOR+set}" != set; then
9445 echo "#! /bin/sh" >conf$$.sh
9446 echo "exit 0" >>conf$$.sh
9448 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9456 if test "$GCC" = yes; then
9457 # Check if gcc -print-prog-name=ld gives a path.
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9459 $as_echo_n "checking for ld used by GCC... " >&6; }
9462 # gcc leaves a trailing carriage return which upsets mingw
9463 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9465 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9468 # Accept absolute paths.
9469 [\\/]* | [A-Za-z]:[\\/]*)
9470 re_direlt='/[^/][^/]*/\.\./'
9471 # Canonicalize the path of ld
9472 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9473 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9474 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9476 test -z "$LD" && LD="$ac_prog"
9479 # If it fails, then pretend we aren't using GCC.
9483 # If it is relative, then search for the first ld in PATH.
9487 elif test "$with_gnu_ld" = yes; then
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9489 $as_echo_n "checking for GNU ld... " >&6; }
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9492 $as_echo_n "checking for non-GNU ld... " >&6; }
9494 if ${acl_cv_path_LD+:} false; then :
9495 $as_echo_n "(cached) " >&6
9497 if test -z "$LD"; then
9498 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9499 for ac_dir in $PATH; do
9500 test -z "$ac_dir" && ac_dir=.
9501 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9502 acl_cv_path_LD="$ac_dir/$ac_prog"
9503 # Check to see if the program is GNU ld. I'd rather use --version,
9504 # but apparently some GNU ld's only accept -v.
9505 # Break only if it was the GNU/non-GNU ld that we prefer.
9506 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9507 *GNU* | *'with BFD'*)
9508 test "$with_gnu_ld" != no && break ;;
9510 test "$with_gnu_ld" != yes && break ;;
9516 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9520 LD="$acl_cv_path_LD"
9521 if test -n "$LD"; then
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9523 $as_echo "$LD" >&6; }
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9526 $as_echo "no" >&6; }
9528 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9530 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9531 if ${acl_cv_prog_gnu_ld+:} false; then :
9532 $as_echo_n "(cached) " >&6
9534 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9535 case `$LD -v 2>&1 </dev/null` in
9536 *GNU* | *'with BFD'*)
9537 acl_cv_prog_gnu_ld=yes ;;
9539 acl_cv_prog_gnu_ld=no ;;
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9543 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9544 with_gnu_ld=$acl_cv_prog_gnu_ld
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9550 $as_echo_n "checking for shared library run path origin... " >&6; }
9551 if ${acl_cv_rpath+:} false; then :
9552 $as_echo_n "(cached) " >&6
9555 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9556 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9563 $as_echo "$acl_cv_rpath" >&6; }
9565 libext="$acl_cv_libext"
9566 shlibext="$acl_cv_shlibext"
9567 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9568 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9569 hardcode_direct="$acl_cv_hardcode_direct"
9570 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9571 # Check whether --enable-rpath was given.
9572 if test "${enable_rpath+set}" = set; then :
9573 enableval=$enable_rpath; :
9581 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9582 if test -n "$searchpath"; then
9583 acl_save_IFS="${IFS= }"; IFS=":"
9584 for searchdir in $searchpath; do
9585 if test -d "$searchdir"; then
9586 case "$searchdir" in
9587 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
9588 *) searchdir=`cd "$searchdir" && pwd`
9589 case "$searchdir" in
9590 */lib64 ) acl_libdirstem=lib64 ;;
9605 if test "$gl_use_threads" != no; then
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
9607 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
9608 if ${gl_cv_have_weak+:} false; then :
9609 $as_echo_n "(cached) " >&6
9612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h. */
9614 extern void xyzzy ();
9624 if ac_fn_c_try_link "$LINENO"; then :
9625 gl_cv_have_weak=maybe
9627 rm -f core conftest.err conftest.$ac_objext \
9628 conftest$ac_exeext conftest.$ac_ext
9629 if test $gl_cv_have_weak = maybe; then
9630 if test "$cross_compiling" = yes; then :
9631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h. */
9634 Extensible Linking Format
9638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9639 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
9640 gl_cv_have_weak="guessing yes"
9642 gl_cv_have_weak="guessing no"
9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9655 return (fputs == NULL);
9658 if ac_fn_c_try_run "$LINENO"; then :
9663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9664 conftest.$ac_objext conftest.beam conftest.$ac_ext
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
9671 $as_echo "$gl_cv_have_weak" >&6; }
9672 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
9673 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
9674 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
9675 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9676 if test "x$ac_cv_header_pthread_h" = xyes; then :
9677 gl_have_pthread_h=yes
9679 gl_have_pthread_h=no
9683 if test "$gl_have_pthread_h" = yes; then
9684 # Other possible tests:
9685 # -lpthreads (FSU threads, PCthreads)
9688 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
9689 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
9690 # the second one only in libpthread, and lock.c needs it.
9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9693 #include <pthread.h>
9697 pthread_mutex_lock((pthread_mutex_t*)0);
9698 pthread_mutexattr_init((pthread_mutexattr_t*)0);
9703 if ac_fn_c_try_link "$LINENO"; then :
9706 rm -f core conftest.err conftest.$ac_objext \
9707 conftest$ac_exeext conftest.$ac_ext
9708 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
9709 # since it is defined as a macro on OSF/1.)
9710 if test -n "$gl_have_pthread"; then
9711 # The program links fine without libpthread. But it may actually
9712 # need to link with libpthread in order to create multiple threads.
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
9714 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
9715 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
9716 $as_echo_n "(cached) " >&6
9718 ac_check_lib_save_LIBS=$LIBS
9719 LIBS="-lpthread $LIBS"
9720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721 /* end confdefs.h. */
9723 /* Override any GCC internal prototype to avoid an error.
9724 Use char because int might match the return type of a GCC
9725 builtin and then its argument prototype would still apply. */
9729 char pthread_kill ();
9733 return pthread_kill ();
9738 if ac_fn_c_try_link "$LINENO"; then :
9739 ac_cv_lib_pthread_pthread_kill=yes
9741 ac_cv_lib_pthread_pthread_kill=no
9743 rm -f core conftest.err conftest.$ac_objext \
9744 conftest$ac_exeext conftest.$ac_ext
9745 LIBS=$ac_check_lib_save_LIBS
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
9748 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
9749 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
9750 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
9751 # On Solaris and HP-UX, most pthread functions exist also in libc.
9752 # Therefore pthread_in_use() needs to actually try to create a
9753 # thread: pthread_create from libc will fail, whereas
9754 # pthread_create will actually create a thread.
9758 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
9765 # Some library is needed. Try libpthread and libc_r.
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
9767 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
9768 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
9769 $as_echo_n "(cached) " >&6
9771 ac_check_lib_save_LIBS=$LIBS
9772 LIBS="-lpthread $LIBS"
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9776 /* Override any GCC internal prototype to avoid an error.
9777 Use char because int might match the return type of a GCC
9778 builtin and then its argument prototype would still apply. */
9782 char pthread_kill ();
9786 return pthread_kill ();
9791 if ac_fn_c_try_link "$LINENO"; then :
9792 ac_cv_lib_pthread_pthread_kill=yes
9794 ac_cv_lib_pthread_pthread_kill=no
9796 rm -f core conftest.err conftest.$ac_objext \
9797 conftest$ac_exeext conftest.$ac_ext
9798 LIBS=$ac_check_lib_save_LIBS
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
9801 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
9802 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
9804 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
9805 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
9808 if test -z "$gl_have_pthread"; then
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
9811 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
9812 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
9813 $as_echo_n "(cached) " >&6
9815 ac_check_lib_save_LIBS=$LIBS
9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h. */
9820 /* Override any GCC internal prototype to avoid an error.
9821 Use char because int might match the return type of a GCC
9822 builtin and then its argument prototype would still apply. */
9826 char pthread_kill ();
9830 return pthread_kill ();
9835 if ac_fn_c_try_link "$LINENO"; then :
9836 ac_cv_lib_c_r_pthread_kill=yes
9838 ac_cv_lib_c_r_pthread_kill=no
9840 rm -f core conftest.err conftest.$ac_objext \
9841 conftest$ac_exeext conftest.$ac_ext
9842 LIBS=$ac_check_lib_save_LIBS
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
9845 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
9846 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
9848 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
9849 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
9854 if test -n "$gl_have_pthread"; then
9855 gl_threads_api=posix
9857 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
9859 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
9860 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
9862 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
9871 if test -z "$gl_have_pthread"; then
9872 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
9873 gl_have_solaristhread=
9874 gl_save_LIBS="$LIBS"
9875 LIBS="$LIBS -lthread"
9876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9877 /* end confdefs.h. */
9890 if ac_fn_c_try_link "$LINENO"; then :
9891 gl_have_solaristhread=yes
9893 rm -f core conftest.err conftest.$ac_objext \
9894 conftest$ac_exeext conftest.$ac_ext
9895 LIBS="$gl_save_LIBS"
9896 if test -n "$gl_have_solaristhread"; then
9897 gl_threads_api=solaris
9899 LTLIBTHREAD=-lthread
9900 LIBMULTITHREAD="$LIBTHREAD"
9901 LTLIBMULTITHREAD="$LTLIBTHREAD"
9903 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
9905 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
9907 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
9915 if test "$gl_use_threads" = pth; then
9916 gl_save_CPPFLAGS="$CPPFLAGS"
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
9923 $as_echo_n "checking how to link with libpth... " >&6; }
9924 if ${ac_cv_libpth_libs+:} false; then :
9925 $as_echo_n "(cached) " >&6
9933 acl_save_prefix="$prefix"
9934 prefix="$acl_final_prefix"
9935 acl_save_exec_prefix="$exec_prefix"
9936 exec_prefix="$acl_final_exec_prefix"
9938 eval additional_includedir=\"$includedir\"
9939 eval additional_libdir=\"$libdir\"
9941 exec_prefix="$acl_save_exec_prefix"
9942 prefix="$acl_save_prefix"
9945 # Check whether --with-libpth-prefix was given.
9946 if test "${with_libpth_prefix+set}" = set; then :
9947 withval=$with_libpth_prefix;
9948 if test "X$withval" = "Xno"; then
9951 if test "X$withval" = "X"; then
9953 acl_save_prefix="$prefix"
9954 prefix="$acl_final_prefix"
9955 acl_save_exec_prefix="$exec_prefix"
9956 exec_prefix="$acl_final_exec_prefix"
9958 eval additional_includedir=\"$includedir\"
9959 eval additional_libdir=\"$libdir\"
9961 exec_prefix="$acl_save_exec_prefix"
9962 prefix="$acl_save_prefix"
9965 additional_includedir="$withval/include"
9966 additional_libdir="$withval/$acl_libdirstem"
9977 names_already_handled=
9978 names_next_round='pth '
9979 while test -n "$names_next_round"; do
9980 names_this_round="$names_next_round"
9982 for name in $names_this_round; do
9984 for n in $names_already_handled; do
9985 if test "$n" = "$name"; then
9990 if test -z "$already_handled"; then
9991 names_already_handled="$names_already_handled $name"
9992 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9993 eval value=\"\$HAVE_LIB$uppername\"
9994 if test -n "$value"; then
9995 if test "$value" = yes; then
9996 eval value=\"\$LIB$uppername\"
9997 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
9998 eval value=\"\$LTLIB$uppername\"
9999 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
10008 if test $use_additional = yes; then
10009 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10010 found_dir="$additional_libdir"
10011 found_so="$additional_libdir/lib$name.$shlibext"
10012 if test -f "$additional_libdir/lib$name.la"; then
10013 found_la="$additional_libdir/lib$name.la"
10016 if test -f "$additional_libdir/lib$name.$libext"; then
10017 found_dir="$additional_libdir"
10018 found_a="$additional_libdir/lib$name.$libext"
10019 if test -f "$additional_libdir/lib$name.la"; then
10020 found_la="$additional_libdir/lib$name.la"
10025 if test "X$found_dir" = "X"; then
10026 for x in $LDFLAGS $LTLIBPTH; do
10028 acl_save_prefix="$prefix"
10029 prefix="$acl_final_prefix"
10030 acl_save_exec_prefix="$exec_prefix"
10031 exec_prefix="$acl_final_exec_prefix"
10033 exec_prefix="$acl_save_exec_prefix"
10034 prefix="$acl_save_prefix"
10038 dir=`echo "X$x" | sed -e 's/^X-L//'`
10039 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10041 found_so="$dir/lib$name.$shlibext"
10042 if test -f "$dir/lib$name.la"; then
10043 found_la="$dir/lib$name.la"
10046 if test -f "$dir/lib$name.$libext"; then
10048 found_a="$dir/lib$name.$libext"
10049 if test -f "$dir/lib$name.la"; then
10050 found_la="$dir/lib$name.la"
10056 if test "X$found_dir" != "X"; then
10061 if test "X$found_dir" != "X"; then
10062 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
10063 if test "X$found_so" != "X"; then
10064 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
10065 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10068 for x in $ltrpathdirs; do
10069 if test "X$x" = "X$found_dir"; then
10074 if test -z "$haveit"; then
10075 ltrpathdirs="$ltrpathdirs $found_dir"
10077 if test "$hardcode_direct" = yes; then
10078 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10080 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10081 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10083 for x in $rpathdirs; do
10084 if test "X$x" = "X$found_dir"; then
10089 if test -z "$haveit"; then
10090 rpathdirs="$rpathdirs $found_dir"
10094 for x in $LDFLAGS $LIBPTH; do
10096 acl_save_prefix="$prefix"
10097 prefix="$acl_final_prefix"
10098 acl_save_exec_prefix="$exec_prefix"
10099 exec_prefix="$acl_final_exec_prefix"
10101 exec_prefix="$acl_save_exec_prefix"
10102 prefix="$acl_save_prefix"
10104 if test "X$x" = "X-L$found_dir"; then
10109 if test -z "$haveit"; then
10110 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
10112 if test "$hardcode_minus_L" != no; then
10113 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10115 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
10121 if test "X$found_a" != "X"; then
10122 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
10124 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
10127 additional_includedir=
10128 case "$found_dir" in
10129 */$acl_libdirstem | */$acl_libdirstem/)
10130 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10131 additional_includedir="$basedir/include"
10134 if test "X$additional_includedir" != "X"; then
10135 if test "X$additional_includedir" != "X/usr/include"; then
10137 if test "X$additional_includedir" = "X/usr/local/include"; then
10138 if test -n "$GCC"; then
10140 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10144 if test -z "$haveit"; then
10145 for x in $CPPFLAGS $INCPTH; do
10147 acl_save_prefix="$prefix"
10148 prefix="$acl_final_prefix"
10149 acl_save_exec_prefix="$exec_prefix"
10150 exec_prefix="$acl_final_exec_prefix"
10152 exec_prefix="$acl_save_exec_prefix"
10153 prefix="$acl_save_prefix"
10155 if test "X$x" = "X-I$additional_includedir"; then
10160 if test -z "$haveit"; then
10161 if test -d "$additional_includedir"; then
10162 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
10168 if test -n "$found_la"; then
10169 save_libdir="$libdir"
10170 case "$found_la" in
10171 */* | *\\*) . "$found_la" ;;
10172 *) . "./$found_la" ;;
10174 libdir="$save_libdir"
10175 for dep in $dependency_libs; do
10178 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10179 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
10181 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
10182 if test -n "$GCC"; then
10184 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10188 if test -z "$haveit"; then
10190 for x in $LDFLAGS $LIBPTH; do
10192 acl_save_prefix="$prefix"
10193 prefix="$acl_final_prefix"
10194 acl_save_exec_prefix="$exec_prefix"
10195 exec_prefix="$acl_final_exec_prefix"
10197 exec_prefix="$acl_save_exec_prefix"
10198 prefix="$acl_save_prefix"
10200 if test "X$x" = "X-L$additional_libdir"; then
10205 if test -z "$haveit"; then
10206 if test -d "$additional_libdir"; then
10207 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
10211 for x in $LDFLAGS $LTLIBPTH; do
10213 acl_save_prefix="$prefix"
10214 prefix="$acl_final_prefix"
10215 acl_save_exec_prefix="$exec_prefix"
10216 exec_prefix="$acl_final_exec_prefix"
10218 exec_prefix="$acl_save_exec_prefix"
10219 prefix="$acl_save_prefix"
10221 if test "X$x" = "X-L$additional_libdir"; then
10226 if test -z "$haveit"; then
10227 if test -d "$additional_libdir"; then
10228 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
10235 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10236 if test "$enable_rpath" != no; then
10238 for x in $rpathdirs; do
10239 if test "X$x" = "X$dir"; then
10244 if test -z "$haveit"; then
10245 rpathdirs="$rpathdirs $dir"
10248 for x in $ltrpathdirs; do
10249 if test "X$x" = "X$dir"; then
10254 if test -z "$haveit"; then
10255 ltrpathdirs="$ltrpathdirs $dir"
10260 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10263 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10266 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
10267 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
10273 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
10274 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
10280 if test "X$rpathdirs" != "X"; then
10281 if test -n "$hardcode_libdir_separator"; then
10283 for found_dir in $rpathdirs; do
10284 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10286 acl_save_libdir="$libdir"
10288 eval flag=\"$hardcode_libdir_flag_spec\"
10289 libdir="$acl_save_libdir"
10290 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
10292 for found_dir in $rpathdirs; do
10293 acl_save_libdir="$libdir"
10294 libdir="$found_dir"
10295 eval flag=\"$hardcode_libdir_flag_spec\"
10296 libdir="$acl_save_libdir"
10297 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
10301 if test "X$ltrpathdirs" != "X"; then
10302 for found_dir in $ltrpathdirs; do
10303 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
10307 ac_cv_libpth_libs="$LIBPTH"
10308 ac_cv_libpth_ltlibs="$LTLIBPTH"
10309 ac_cv_libpth_cppflags="$INCPTH"
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
10313 $as_echo "$ac_cv_libpth_libs" >&6; }
10314 LIBPTH="$ac_cv_libpth_libs"
10315 LTLIBPTH="$ac_cv_libpth_ltlibs"
10316 INCPTH="$ac_cv_libpth_cppflags"
10318 for element in $INCPTH; do
10320 for x in $CPPFLAGS; do
10322 acl_save_prefix="$prefix"
10323 prefix="$acl_final_prefix"
10324 acl_save_exec_prefix="$exec_prefix"
10325 exec_prefix="$acl_final_exec_prefix"
10327 exec_prefix="$acl_save_exec_prefix"
10328 prefix="$acl_save_prefix"
10330 if test "X$x" = "X$element"; then
10335 if test -z "$haveit"; then
10336 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10347 gl_save_LIBS="$LIBS"
10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350 /* end confdefs.h. */
10360 if ac_fn_c_try_link "$LINENO"; then :
10363 rm -f core conftest.err conftest.$ac_objext \
10364 conftest$ac_exeext conftest.$ac_ext
10365 LIBS="$gl_save_LIBS"
10366 if test -n "$gl_have_pth"; then
10368 LIBTHREAD="$LIBPTH"
10369 LTLIBTHREAD="$LTLIBPTH"
10370 LIBMULTITHREAD="$LIBTHREAD"
10371 LTLIBMULTITHREAD="$LTLIBTHREAD"
10373 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
10375 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
10376 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
10378 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
10385 CPPFLAGS="$gl_save_CPPFLAGS"
10388 if test -z "$gl_have_pthread"; then
10389 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
10390 if { case "$host_os" in
10395 gl_threads_api=win32
10397 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
10404 $as_echo_n "checking for multithread API to use... " >&6; }
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
10406 $as_echo "$gl_threads_api" >&6; }
10428 GNULIB_UTIMENSAT=0;
10442 REPLACE_FUTIMENS=0;
10448 REPLACE_UTIMENSAT=0;
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10456 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10457 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
10458 $as_echo_n "(cached) " >&6
10460 rm -f conftest.sym conftest.file
10461 echo >conftest.file
10462 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10463 if test "$cross_compiling" = yes; then :
10464 ac_cv_func_lstat_dereferences_slashed_symlink=no
10466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10467 /* end confdefs.h. */
10468 $ac_includes_default
10473 /* Linux will dereference the symlink and fail, as required by POSIX.
10474 That is better in the sense that it means we will not
10475 have to compile and use the lstat wrapper. */
10476 return lstat ("conftest.sym/", &sbuf) == 0;
10481 if ac_fn_c_try_run "$LINENO"; then :
10482 ac_cv_func_lstat_dereferences_slashed_symlink=yes
10484 ac_cv_func_lstat_dereferences_slashed_symlink=no
10486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10487 conftest.$ac_objext conftest.beam conftest.$ac_ext
10491 # If the `ln -s' command failed, then we probably don't even
10492 # have an lstat function.
10493 ac_cv_func_lstat_dereferences_slashed_symlink=no
10495 rm -f conftest.sym conftest.file
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10499 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10501 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10503 cat >>confdefs.h <<_ACEOF
10504 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10508 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
10517 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
10524 GNULIB_CALLOC_POSIX=0;
10525 GNULIB_CANONICALIZE_FILE_NAME=0;
10526 GNULIB_GETLOADAVG=0;
10527 GNULIB_GETSUBOPT=0;
10529 GNULIB_MALLOC_POSIX=0;
10532 GNULIB_MKOSTEMPS=0;
10538 GNULIB_REALLOC_POSIX=0;
10549 HAVE_CANONICALIZE_FILE_NAME=1;
10550 HAVE_DECL_GETLOADAVG=1;
10566 HAVE_STRUCT_RANDOM_DATA=1;
10567 HAVE_SYS_LOADAVG_H=0;
10571 REPLACE_CANONICALIZE_FILE_NAME=0;
10576 REPLACE_REALPATH=0;
10579 REPLACE_UNSETENV=0;
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
10583 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
10584 if ${gl_cv_func_malloc_posix+:} false; then :
10585 $as_echo_n "(cached) " >&6
10588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589 /* end confdefs.h. */
10594 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
10602 if ac_fn_c_try_compile "$LINENO"; then :
10603 gl_cv_func_malloc_posix=yes
10605 gl_cv_func_malloc_posix=no
10607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
10611 $as_echo "$gl_cv_func_malloc_posix" >&6; }
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
10616 $as_echo_n "checking for mbstate_t... " >&6; }
10617 if ${ac_cv_type_mbstate_t+:} false; then :
10618 $as_echo_n "(cached) " >&6
10620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10621 /* end confdefs.h. */
10622 $ac_includes_default
10623 # include <wchar.h>
10627 mbstate_t x; return sizeof x;
10632 if ac_fn_c_try_compile "$LINENO"; then :
10633 ac_cv_type_mbstate_t=yes
10635 ac_cv_type_mbstate_t=no
10637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
10640 $as_echo "$ac_cv_type_mbstate_t" >&6; }
10641 if test $ac_cv_type_mbstate_t = yes; then
10643 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
10647 $as_echo "#define mbstate_t int" >>confdefs.h
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
10665 $as_echo_n "checking for a traditional japanese locale... " >&6; }
10666 if ${gt_cv_locale_ja+:} false; then :
10667 $as_echo_n "(cached) " >&6
10670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h. */
10673 #include <locale.h>
10675 #if HAVE_LANGINFO_CODESET
10676 # include <langinfo.h>
10678 #include <stdlib.h>
10679 #include <string.h>
10685 /* Check whether the given locale name is recognized by the system. */
10686 if (setlocale (LC_ALL, "") == NULL) return 1;
10687 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10688 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10689 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10690 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10691 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10692 some unit tests fail. */
10693 #if HAVE_LANGINFO_CODESET
10695 const char *cs = nl_langinfo (CODESET);
10696 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10701 /* On Cygwin, avoid locale names without encoding suffix, because the
10702 locale_charset() function relies on the encoding suffix. Note that
10703 LC_ALL is set on the command line. */
10704 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10706 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
10707 on Cygwin 1.5.x. */
10708 if (MB_CUR_MAX == 1)
10710 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10711 This excludes the UTF-8 encoding. */
10712 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10713 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10714 for (p = buf; *p != '\0'; p++)
10715 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10722 (eval $ac_link) 2>&5
10724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10725 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10726 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10727 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10728 # configure script would override the LC_ALL setting. Likewise for
10729 # LC_CTYPE, which is also set at the beginning of the configure script.
10730 # Test for the AIX locale name.
10731 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10732 gt_cv_locale_ja=ja_JP
10734 # Test for the locale name with explicit encoding suffix.
10735 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10736 gt_cv_locale_ja=ja_JP.EUC-JP
10738 # Test for the HP-UX, OSF/1, NetBSD locale name.
10739 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10740 gt_cv_locale_ja=ja_JP.eucJP
10742 # Test for the IRIX, FreeBSD locale name.
10743 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10744 gt_cv_locale_ja=ja_JP.EUC
10746 # Test for the Solaris 7 locale name.
10747 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10750 # Special test for NetBSD 1.6.
10751 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
10752 gt_cv_locale_ja=ja_JP.eucJP
10755 gt_cv_locale_ja=none
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
10767 $as_echo "$gt_cv_locale_ja" >&6; }
10768 LOCALE_JA=$gt_cv_locale_ja
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
10775 $as_echo_n "checking for a transitional chinese locale... " >&6; }
10776 if ${gt_cv_locale_zh_CN+:} false; then :
10777 $as_echo_n "(cached) " >&6
10780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10781 /* end confdefs.h. */
10783 #include <locale.h>
10784 #include <stdlib.h>
10786 #if HAVE_LANGINFO_CODESET
10787 # include <langinfo.h>
10789 #include <stdlib.h>
10790 #include <string.h>
10796 /* Check whether the given locale name is recognized by the system. */
10797 if (setlocale (LC_ALL, "") == NULL) return 1;
10798 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10799 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10800 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10801 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10802 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10803 some unit tests fail. */
10804 #if HAVE_LANGINFO_CODESET
10806 const char *cs = nl_langinfo (CODESET);
10807 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10812 /* On Cygwin, avoid locale names without encoding suffix, because the
10813 locale_charset() function relies on the encoding suffix. Note that
10814 LC_ALL is set on the command line. */
10815 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10817 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10818 This excludes the UTF-8 encoding. */
10819 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10820 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10821 for (p = buf; *p != '\0'; p++)
10822 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10824 /* Check whether a typical GB18030 multibyte sequence is recognized as a
10825 single wide character. This excludes the GB2312 and GBK encodings. */
10826 if (mblen ("\203\062\332\066", 5) != 4)
10832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10833 (eval $ac_link) 2>&5
10835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10836 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10837 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10838 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10839 # configure script would override the LC_ALL setting. Likewise for
10840 # LC_CTYPE, which is also set at the beginning of the configure script.
10841 # Test for the locale name without encoding suffix.
10842 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10843 gt_cv_locale_zh_CN=zh_CN
10845 # Test for the locale name with explicit encoding suffix.
10846 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10847 gt_cv_locale_zh_CN=zh_CN.GB18030
10850 gt_cv_locale_zh_CN=none
10854 # If there was a link error, due to mblen(), the system is so old that
10855 # it certainly doesn't have a chinese locale.
10856 gt_cv_locale_zh_CN=none
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
10862 $as_echo "$gt_cv_locale_zh_CN" >&6; }
10863 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
10869 $as_echo_n "checking for a french Unicode locale... " >&6; }
10870 if ${gt_cv_locale_fr_utf8+:} false; then :
10871 $as_echo_n "(cached) " >&6
10874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h. */
10877 #include <locale.h>
10879 #if HAVE_LANGINFO_CODESET
10880 # include <langinfo.h>
10882 #include <stdlib.h>
10883 #include <string.h>
10887 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
10888 imitates locale dependent behaviour by looking at the environment
10889 variables, and all locales use the UTF-8 encoding. */
10890 #if !(defined __BEOS__ || defined __HAIKU__)
10891 /* Check whether the given locale name is recognized by the system. */
10892 if (setlocale (LC_ALL, "") == NULL) return 1;
10893 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10894 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10895 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10896 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10897 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10898 some unit tests fail. */
10899 # if HAVE_LANGINFO_CODESET
10901 const char *cs = nl_langinfo (CODESET);
10902 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10907 /* On Cygwin, avoid locale names without encoding suffix, because the
10908 locale_charset() function relies on the encoding suffix. Note that
10909 LC_ALL is set on the command line. */
10910 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10912 /* Check whether in the abbreviation of the second month, the second
10913 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
10914 two bytes long, with UTF-8 encoding. */
10915 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10916 if (strftime (buf, sizeof (buf), "%b", &t) < 4
10917 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
10920 /* Check whether the decimal separator is a comma.
10921 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10922 are nl_langinfo(RADIXCHAR) are both ".". */
10923 if (localeconv () ->decimal_point[0] != ',') return 1;
10928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10929 (eval $ac_link) 2>&5
10931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10932 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10933 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10934 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10935 # configure script would override the LC_ALL setting. Likewise for
10936 # LC_CTYPE, which is also set at the beginning of the configure script.
10937 # Test for the usual locale name.
10938 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10939 gt_cv_locale_fr_utf8=fr_FR
10941 # Test for the locale name with explicit encoding suffix.
10942 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10943 gt_cv_locale_fr_utf8=fr_FR.UTF-8
10945 # Test for the Solaris 7 locale name.
10946 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10947 gt_cv_locale_fr_utf8=fr.UTF-8
10950 gt_cv_locale_fr_utf8=none
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
10959 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
10960 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
10978 GNULIB_RAWMEMCHR=0;
10981 GNULIB_STRCHRNUL=0;
10989 GNULIB_STRCASESTR=0;
10996 GNULIB_MBSCASECMP=0;
10997 GNULIB_MBSNCASECMP=0;
10998 GNULIB_MBSPCASECMP=0;
10999 GNULIB_MBSCASESTR=0;
11006 GNULIB_STRSIGNAL=0;
11007 GNULIB_STRVERSCMP=0;
11010 HAVE_DECL_MEMMEM=1;
11012 HAVE_DECL_MEMRCHR=1;
11017 HAVE_DECL_STRDUP=1;
11018 HAVE_DECL_STRNDUP=1;
11019 HAVE_DECL_STRNLEN=1;
11023 HAVE_DECL_STRTOK_R=1;
11024 HAVE_DECL_STRSIGNAL=1;
11031 REPLACE_STRCASESTR=0;
11032 REPLACE_STRERROR=0;
11036 REPLACE_STRSIGNAL=0;
11037 REPLACE_STRTOK_R=0;
11038 UNDEFINE_STRTOK_R=0;
11052 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
11053 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
11054 # irrelevant for anonymous mappings.
11055 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11056 if test "x$ac_cv_func_mmap" = xyes; then :
11063 # Try to allow MAP_ANONYMOUS.
11064 gl_have_mmap_anonymous=no
11065 if test $gl_have_mmap = yes; then
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
11067 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
11068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069 /* end confdefs.h. */
11071 #include <sys/mman.h>
11072 #ifdef MAP_ANONYMOUS
11073 I cant identify this map.
11077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11078 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
11079 gl_have_mmap_anonymous=yes
11083 if test $gl_have_mmap_anonymous != yes; then
11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h. */
11087 #include <sys/mman.h>
11089 I cant identify this map.
11093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11094 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
11096 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
11098 gl_have_mmap_anonymous=yes
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
11104 $as_echo "$gl_have_mmap_anonymous" >&6; }
11105 if test $gl_have_mmap_anonymous = yes; then
11107 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
11135 if test $ac_cv_func_memchr = yes; then
11136 # Detect platform-specific bugs in some versions of glibc:
11137 # memchr should not dereference anything with length 0
11138 # http://bugzilla.redhat.com/499689
11139 # memchr should not dereference overestimated length after a match
11140 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
11141 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
11142 # Assume that memchr works on platforms that lack mprotect.
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
11144 $as_echo_n "checking whether memchr works... " >&6; }
11145 if ${gl_cv_func_memchr_works+:} false; then :
11146 $as_echo_n "(cached) " >&6
11148 if test "$cross_compiling" = yes; then :
11149 gl_cv_func_memchr_works="guessing no"
11151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11152 /* end confdefs.h. */
11154 #include <string.h>
11155 #if HAVE_SYS_MMAN_H
11156 # include <fcntl.h>
11157 # include <unistd.h>
11158 # include <sys/types.h>
11159 # include <sys/mman.h>
11161 # define MAP_FILE 0
11169 char *fence = NULL;
11170 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
11171 # if HAVE_MAP_ANONYMOUS
11172 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
11174 # else /* !HAVE_MAP_ANONYMOUS */
11175 const int flags = MAP_FILE | MAP_PRIVATE;
11176 int fd = open ("/dev/zero", O_RDONLY, 0666);
11180 int pagesize = getpagesize ();
11182 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
11184 if (two_pages != (char *)(-1)
11185 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
11186 fence = two_pages + pagesize;
11191 if (memchr (fence, 0, 0))
11193 strcpy (fence - 9, "12345678");
11194 if (memchr (fence - 9, 0, 79) != fence - 1)
11203 if ac_fn_c_try_run "$LINENO"; then :
11204 gl_cv_func_memchr_works=yes
11206 gl_cv_func_memchr_works=no
11208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11209 conftest.$ac_objext conftest.beam conftest.$ac_ext
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
11214 $as_echo "$gl_cv_func_memchr_works" >&6; }
11215 if test "$gl_cv_func_memchr_works" != yes; then
11221 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
11230 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
11233 for ac_header in bp-sym.h
11235 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
11236 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
11237 cat >>confdefs.h <<_ACEOF
11238 #define HAVE_BP_SYM_H 1
11249 gl_cv_c_multiarch=no
11250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11251 /* end confdefs.h. */
11252 #ifndef __APPLE_CC__
11253 not a universal capable compiler
11258 if ac_fn_c_try_compile "$LINENO"; then :
11262 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
11263 if test -n "$prev"; then
11265 i?86 | x86_64 | ppc | ppc64)
11266 if test -z "$arch" || test "$arch" = "$word"; then
11269 gl_cv_c_multiarch=yes
11275 if test "x$word" = "x-arch"; then
11282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11283 if test $gl_cv_c_multiarch = yes; then
11285 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11287 APPLE_UNIVERSAL_BUILD=1
11289 APPLE_UNIVERSAL_BUILD=0
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external symbol _system_configuration" >&5
11299 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
11300 if ${gl_cv_var__system_configuration+:} false; then :
11301 $as_echo_n "(cached) " >&6
11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11305 #include <sys/systemcfg.h>
11310 double x = _system_configuration.physmem;
11311 if (x > 0.0) return 0;
11316 if ac_fn_c_try_link "$LINENO"; then :
11317 gl_cv_var__system_configuration=yes
11319 gl_cv_var__system_configuration=no
11321 rm -f core conftest.err conftest.$ac_objext \
11322 conftest$ac_exeext conftest.$ac_ext
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var__system_configuration" >&5
11325 $as_echo "$gl_cv_var__system_configuration" >&6; }
11327 if test $gl_cv_var__system_configuration = yes; then
11329 $as_echo "#define HAVE__SYSTEM_CONFIGURATION 1" >>confdefs.h
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
11356 $as_echo_n "checking for ssize_t... " >&6; }
11357 if ${gt_cv_ssize_t+:} false; then :
11358 $as_echo_n "(cached) " >&6
11360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h. */
11362 #include <sys/types.h>
11366 int x = sizeof (ssize_t *) + sizeof (ssize_t);
11372 if ac_fn_c_try_compile "$LINENO"; then :
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
11380 $as_echo "$gt_cv_ssize_t" >&6; }
11381 if test $gt_cv_ssize_t = no; then
11383 $as_echo "#define ssize_t int" >>confdefs.h
11388 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11389 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
11395 cat >>confdefs.h <<_ACEOF
11396 #define HAVE_DECL_SNPRINTF $ac_have_decl
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system is Windows or MSDOS" >&5
11402 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
11403 if ${ac_cv_win_or_dos+:} false; then :
11404 $as_echo_n "(cached) " >&6
11407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h. */
11414 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
11415 neither MSDOS nor Windows
11421 if ac_fn_c_try_compile "$LINENO"; then :
11422 ac_cv_win_or_dos=yes
11424 ac_cv_win_or_dos=no
11426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_win_or_dos" >&5
11430 $as_echo "$ac_cv_win_or_dos" >&6; }
11432 if test x"$ac_cv_win_or_dos" = xyes; then
11433 ac_fs_accepts_drive_letter_prefix=1
11434 ac_fs_backslash_is_file_name_separator=1
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether drive letter can start relative path" >&5
11436 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
11437 if ${ac_cv_drive_letter_can_be_relative+:} false; then :
11438 $as_echo_n "(cached) " >&6
11441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11442 /* end confdefs.h. */
11448 #if defined __CYGWIN__
11449 drive letters are always absolute
11455 if ac_fn_c_try_compile "$LINENO"; then :
11456 ac_cv_drive_letter_can_be_relative=yes
11458 ac_cv_drive_letter_can_be_relative=no
11460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_drive_letter_can_be_relative" >&5
11464 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
11465 if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
11466 ac_fs_drive_letter_can_be_relative=1
11468 ac_fs_drive_letter_can_be_relative=0
11471 ac_fs_accepts_drive_letter_prefix=0
11472 ac_fs_backslash_is_file_name_separator=0
11473 ac_fs_drive_letter_can_be_relative=0
11477 cat >>confdefs.h <<_ACEOF
11478 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
11485 cat >>confdefs.h <<_ACEOF
11486 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
11491 cat >>confdefs.h <<_ACEOF
11492 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11497 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11498 if ${ac_cv_header_stdbool_h+:} false; then :
11499 $as_echo_n "(cached) " >&6
11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h. */
11504 #include <stdbool.h>
11506 "error: bool is not defined"
11509 "error: false is not defined"
11512 "error: false is not 0"
11515 "error: true is not defined"
11518 "error: true is not 1"
11520 #ifndef __bool_true_false_are_defined
11521 "error: __bool_true_false_are_defined is not defined"
11524 struct s { _Bool s: 1; _Bool t; } s;
11526 char a[true == 1 ? 1 : -1];
11527 char b[false == 0 ? 1 : -1];
11528 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11529 char d[(bool) 0.5 == true ? 1 : -1];
11530 /* See body of main program for 'e'. */
11531 char f[(_Bool) 0.0 == false ? 1 : -1];
11533 char h[sizeof (_Bool)];
11534 char i[sizeof s.t];
11535 enum { j = false, k = true, l = false * true, m = true * 256 };
11536 /* The following fails for
11537 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11539 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11540 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11541 /* Catch a bug in an HP-UX C compiler. See
11542 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11543 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11555 /* Refer to every declared value, to avoid compiler optimizations. */
11556 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11557 + !m + !n + !o + !p + !q + !pq);
11563 if ac_fn_c_try_compile "$LINENO"; then :
11564 ac_cv_header_stdbool_h=yes
11566 ac_cv_header_stdbool_h=no
11568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11571 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11572 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11573 if test "x$ac_cv_type__Bool" = xyes; then :
11575 cat >>confdefs.h <<_ACEOF
11576 #define HAVE__BOOL 1
11582 if test $ac_cv_header_stdbool_h = yes; then
11584 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11594 $as_echo_n "checking for wchar_t... " >&6; }
11595 if ${gt_cv_c_wchar_t+:} false; then :
11596 $as_echo_n "(cached) " >&6
11598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11599 /* end confdefs.h. */
11600 #include <stddef.h>
11601 wchar_t foo = (wchar_t)'\0';
11610 if ac_fn_c_try_compile "$LINENO"; then :
11611 gt_cv_c_wchar_t=yes
11615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11618 $as_echo "$gt_cv_c_wchar_t" >&6; }
11619 if test $gt_cv_c_wchar_t = yes; then
11621 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
11632 $as_echo_n "checking for long long int... " >&6; }
11633 if ${ac_cv_type_long_long_int+:} false; then :
11634 $as_echo_n "(cached) " >&6
11636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637 /* end confdefs.h. */
11639 /* For now, do not test the preprocessor; as of 2007 there are too many
11640 implementations with broken preprocessors. Perhaps this can
11641 be revisited in 2012. In the meantime, code should not expect
11642 #if to work with literals wider than 32 bits. */
11643 /* Test literals. */
11644 long long int ll = 9223372036854775807ll;
11645 long long int nll = -9223372036854775807LL;
11646 unsigned long long int ull = 18446744073709551615ULL;
11647 /* Test constant expressions. */
11648 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11650 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11656 /* Test availability of runtime routines for shift and division. */
11657 long long int llmax = 9223372036854775807ll;
11658 unsigned long long int ullmax = 18446744073709551615ull;
11659 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11660 | (llmax / ll) | (llmax % ll)
11661 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11662 | (ullmax / ull) | (ullmax % ull));
11668 if ac_fn_c_try_link "$LINENO"; then :
11669 if test "$cross_compiling" = yes; then :
11670 ac_cv_type_long_long_int=yes
11672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11673 /* end confdefs.h. */
11674 #include <limits.h>
11677 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
11678 # define LLONG_MAX (HALF - 1 + HALF)
11683 long long int n = 1;
11687 long long int m = n << i;
11690 if (LLONG_MAX / 2 < m)
11698 if ac_fn_c_try_run "$LINENO"; then :
11699 ac_cv_type_long_long_int=yes
11701 ac_cv_type_long_long_int=no
11703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11704 conftest.$ac_objext conftest.beam conftest.$ac_ext
11708 ac_cv_type_long_long_int=no
11710 rm -f core conftest.err conftest.$ac_objext \
11711 conftest$ac_exeext conftest.$ac_ext
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
11714 $as_echo "$ac_cv_type_long_long_int" >&6; }
11715 if test $ac_cv_type_long_long_int = yes; then
11717 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
11723 $as_echo_n "checking for unsigned long long int... " >&6; }
11724 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
11725 $as_echo_n "(cached) " >&6
11727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h. */
11730 /* For now, do not test the preprocessor; as of 2007 there are too many
11731 implementations with broken preprocessors. Perhaps this can
11732 be revisited in 2012. In the meantime, code should not expect
11733 #if to work with literals wider than 32 bits. */
11734 /* Test literals. */
11735 long long int ll = 9223372036854775807ll;
11736 long long int nll = -9223372036854775807LL;
11737 unsigned long long int ull = 18446744073709551615ULL;
11738 /* Test constant expressions. */
11739 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11741 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11747 /* Test availability of runtime routines for shift and division. */
11748 long long int llmax = 9223372036854775807ll;
11749 unsigned long long int ullmax = 18446744073709551615ull;
11750 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11751 | (llmax / ll) | (llmax % ll)
11752 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11753 | (ullmax / ull) | (ullmax % ull));
11759 if ac_fn_c_try_link "$LINENO"; then :
11760 ac_cv_type_unsigned_long_long_int=yes
11762 ac_cv_type_unsigned_long_long_int=no
11764 rm -f core conftest.err conftest.$ac_objext \
11765 conftest$ac_exeext conftest.$ac_ext
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
11768 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
11769 if test $ac_cv_type_unsigned_long_long_int = yes; then
11771 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
11787 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
11788 if ${gl_cv_prog_as_underscore+:} false; then :
11789 $as_echo_n "(cached) " >&6
11791 cat > conftest.c <<EOF
11793 extern "C" int foo (void);
11795 int foo(void) { return 0; }
11797 # Look for the assembly language name in the .s file.
11798 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
11799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11800 (eval $ac_try) 2>&5
11802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11803 test $ac_status = 0; }; } >/dev/null 2>&1
11804 if grep _foo conftest.s >/dev/null ; then
11805 gl_cv_prog_as_underscore=yes
11807 gl_cv_prog_as_underscore=no
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
11813 $as_echo "$gl_cv_prog_as_underscore" >&6; }
11814 if test $gl_cv_prog_as_underscore = yes; then
11815 USER_LABEL_PREFIX=_
11820 cat >>confdefs.h <<_ACEOF
11821 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
11824 ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
11857 if test $gl_cv_have_include_next = yes; then
11858 gl_cv_next_string_h='<'string.h'>'
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
11861 $as_echo_n "checking absolute name of <string.h>... " >&6; }
11862 if ${gl_cv_next_string_h+:} false; then :
11863 $as_echo_n "(cached) " >&6
11866 if test $ac_cv_header_string_h = yes; then
11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h. */
11869 #include <string.h>
11873 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11874 *) gl_absname_cpp="$ac_cpp" ;;
11876 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11877 sed -n '\#/string.h#{
11878 s#.*"\(.*/string.h\)".*#\1#
11884 gl_cv_next_string_h='<'string.h'>'
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
11889 $as_echo "$gl_cv_next_string_h" >&6; }
11891 NEXT_STRING_H=$gl_cv_next_string_h
11893 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11894 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11895 gl_next_as_first_directive='<'string.h'>'
11897 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11898 gl_next_as_first_directive=$gl_cv_next_string_h
11900 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
11906 for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
11907 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11909 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11910 if eval \${$as_gl_Symbol+:} false; then :
11911 $as_echo_n "(cached) " >&6
11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h. */
11915 #include <string.h>
11926 if ac_fn_c_try_compile "$LINENO"; then :
11927 eval "$as_gl_Symbol=yes"
11929 eval "$as_gl_Symbol=no"
11931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11933 eval ac_res=\$$as_gl_Symbol
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11935 $as_echo "$ac_res" >&6; }
11936 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
11937 cat >>confdefs.h <<_ACEOF
11938 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11941 eval ac_cv_have_decl_$gl_func=yes
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11947 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11948 if ${ac_cv_header_stat_broken+:} false; then :
11949 $as_echo_n "(cached) " >&6
11951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952 /* end confdefs.h. */
11953 #include <sys/types.h>
11954 #include <sys/stat.h>
11956 #if defined S_ISBLK && defined S_IFDIR
11957 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11960 #if defined S_ISBLK && defined S_IFCHR
11961 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11964 #if defined S_ISLNK && defined S_IFREG
11965 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11968 #if defined S_ISSOCK && defined S_IFREG
11969 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11973 if ac_fn_c_try_compile "$LINENO"; then :
11974 ac_cv_header_stat_broken=no
11976 ac_cv_header_stat_broken=yes
11978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11981 $as_echo "$ac_cv_header_stat_broken" >&6; }
11982 if test $ac_cv_header_stat_broken = yes; then
11984 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11993 # Check whether --enable-largefile was given.
11994 if test "${enable_largefile+set}" = set; then :
11995 enableval=$enable_largefile;
11998 if test "$enable_largefile" != no; then
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12001 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12002 if ${ac_cv_sys_largefile_CC+:} false; then :
12003 $as_echo_n "(cached) " >&6
12005 ac_cv_sys_largefile_CC=no
12006 if test "$GCC" != yes; then
12009 # IRIX 6.2 and later do not support large files by default,
12010 # so use the C compiler's -n32 option if that helps.
12011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12012 /* end confdefs.h. */
12013 #include <sys/types.h>
12014 /* Check that off_t can represent 2**63 - 1 correctly.
12015 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12016 since some C++ compilers masquerading as C compilers
12017 incorrectly reject 9223372036854775807. */
12018 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12019 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12020 && LARGE_OFF_T % 2147483647 == 1)
12030 if ac_fn_c_try_compile "$LINENO"; then :
12033 rm -f core conftest.err conftest.$ac_objext
12035 if ac_fn_c_try_compile "$LINENO"; then :
12036 ac_cv_sys_largefile_CC=' -n32'; break
12038 rm -f core conftest.err conftest.$ac_objext
12042 rm -f conftest.$ac_ext
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12046 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12047 if test "$ac_cv_sys_largefile_CC" != no; then
12048 CC=$CC$ac_cv_sys_largefile_CC
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12052 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12053 if ${ac_cv_sys_file_offset_bits+:} false; then :
12054 $as_echo_n "(cached) " >&6
12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12059 #include <sys/types.h>
12060 /* Check that off_t can represent 2**63 - 1 correctly.
12061 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12062 since some C++ compilers masquerading as C compilers
12063 incorrectly reject 9223372036854775807. */
12064 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12065 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12066 && LARGE_OFF_T % 2147483647 == 1)
12076 if ac_fn_c_try_compile "$LINENO"; then :
12077 ac_cv_sys_file_offset_bits=no; break
12079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h. */
12082 #define _FILE_OFFSET_BITS 64
12083 #include <sys/types.h>
12084 /* Check that off_t can represent 2**63 - 1 correctly.
12085 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12086 since some C++ compilers masquerading as C compilers
12087 incorrectly reject 9223372036854775807. */
12088 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12089 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12090 && LARGE_OFF_T % 2147483647 == 1)
12100 if ac_fn_c_try_compile "$LINENO"; then :
12101 ac_cv_sys_file_offset_bits=64; break
12103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12104 ac_cv_sys_file_offset_bits=unknown
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12109 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12110 case $ac_cv_sys_file_offset_bits in #(
12113 cat >>confdefs.h <<_ACEOF
12114 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12119 if test $ac_cv_sys_file_offset_bits = unknown; then
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12121 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12122 if ${ac_cv_sys_large_files+:} false; then :
12123 $as_echo_n "(cached) " >&6
12126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127 /* end confdefs.h. */
12128 #include <sys/types.h>
12129 /* Check that off_t can represent 2**63 - 1 correctly.
12130 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12131 since some C++ compilers masquerading as C compilers
12132 incorrectly reject 9223372036854775807. */
12133 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12134 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12135 && LARGE_OFF_T % 2147483647 == 1)
12145 if ac_fn_c_try_compile "$LINENO"; then :
12146 ac_cv_sys_large_files=no; break
12148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12150 /* end confdefs.h. */
12151 #define _LARGE_FILES 1
12152 #include <sys/types.h>
12153 /* Check that off_t can represent 2**63 - 1 correctly.
12154 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12155 since some C++ compilers masquerading as C compilers
12156 incorrectly reject 9223372036854775807. */
12157 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12158 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12159 && LARGE_OFF_T % 2147483647 == 1)
12169 if ac_fn_c_try_compile "$LINENO"; then :
12170 ac_cv_sys_large_files=1; break
12172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12173 ac_cv_sys_large_files=unknown
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12178 $as_echo "$ac_cv_sys_large_files" >&6; }
12179 case $ac_cv_sys_large_files in #(
12182 cat >>confdefs.h <<_ACEOF
12183 #define _LARGE_FILES $ac_cv_sys_large_files
12193 GNULIB_NANOSLEEP=0;
12197 HAVE_LOCALTIME_R=1;
12201 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
12202 REPLACE_MKTIME=GNULIB_PORTCHECK;
12203 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
12204 REPLACE_TIMEGM=GNULIB_PORTCHECK;
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
12220 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
12221 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
12222 $as_echo_n "(cached) " >&6
12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225 /* end confdefs.h. */
12231 static struct timespec x; x.tv_sec = x.tv_nsec;
12236 if ac_fn_c_try_compile "$LINENO"; then :
12237 gl_cv_sys_struct_timespec_in_time_h=yes
12239 gl_cv_sys_struct_timespec_in_time_h=no
12241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
12244 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
12246 TIME_H_DEFINES_STRUCT_TIMESPEC=0
12247 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
12248 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
12249 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
12250 TIME_H_DEFINES_STRUCT_TIMESPEC=1
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
12253 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
12254 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
12255 $as_echo_n "(cached) " >&6
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12259 #include <sys/time.h>
12264 static struct timespec x; x.tv_sec = x.tv_nsec;
12269 if ac_fn_c_try_compile "$LINENO"; then :
12270 gl_cv_sys_struct_timespec_in_sys_time_h=yes
12272 gl_cv_sys_struct_timespec_in_sys_time_h=no
12274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
12277 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
12278 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
12279 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
12282 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
12283 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
12284 $as_echo_n "(cached) " >&6
12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h. */
12288 #include <pthread.h>
12293 static struct timespec x; x.tv_sec = x.tv_nsec;
12298 if ac_fn_c_try_compile "$LINENO"; then :
12299 gl_cv_sys_struct_timespec_in_pthread_h=yes
12301 gl_cv_sys_struct_timespec_in_pthread_h=no
12303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
12306 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
12307 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
12308 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
12331 if test $gl_cv_have_include_next = yes; then
12332 gl_cv_next_time_h='<'time.h'>'
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
12335 $as_echo_n "checking absolute name of <time.h>... " >&6; }
12336 if ${gl_cv_next_time_h+:} false; then :
12337 $as_echo_n "(cached) " >&6
12340 if test $ac_cv_header_time_h = yes; then
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12347 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12348 *) gl_absname_cpp="$ac_cpp" ;;
12350 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12351 sed -n '\#/time.h#{
12352 s#.*"\(.*/time.h\)".*#\1#
12358 gl_cv_next_time_h='<'time.h'>'
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
12363 $as_echo "$gl_cv_next_time_h" >&6; }
12365 NEXT_TIME_H=$gl_cv_next_time_h
12367 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12368 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12369 gl_next_as_first_directive='<'time.h'>'
12371 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12372 gl_next_as_first_directive=$gl_cv_next_time_h
12374 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
12392 $as_echo_n "checking for wint_t... " >&6; }
12393 if ${gt_cv_c_wint_t+:} false; then :
12394 $as_echo_n "(cached) " >&6
12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h. */
12399 wint_t foo = (wchar_t)'\0';
12408 if ac_fn_c_try_compile "$LINENO"; then :
12413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
12416 $as_echo "$gt_cv_c_wint_t" >&6; }
12417 if test $gt_cv_c_wint_t = yes; then
12419 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12425 $as_echo_n "checking for inttypes.h... " >&6; }
12426 if ${gl_cv_header_inttypes_h+:} false; then :
12427 $as_echo_n "(cached) " >&6
12429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430 /* end confdefs.h. */
12431 #include <sys/types.h>
12432 #include <inttypes.h>
12436 uintmax_t i = (uintmax_t) -1;
12441 if ac_fn_c_try_compile "$LINENO"; then :
12442 gl_cv_header_inttypes_h=yes
12444 gl_cv_header_inttypes_h=no
12446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
12449 $as_echo "$gl_cv_header_inttypes_h" >&6; }
12450 if test $gl_cv_header_inttypes_h = yes; then
12452 cat >>confdefs.h <<_ACEOF
12453 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
12460 $as_echo_n "checking for stdint.h... " >&6; }
12461 if ${gl_cv_header_stdint_h+:} false; then :
12462 $as_echo_n "(cached) " >&6
12464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12465 /* end confdefs.h. */
12466 #include <sys/types.h>
12467 #include <stdint.h>
12471 uintmax_t i = (uintmax_t) -1;
12476 if ac_fn_c_try_compile "$LINENO"; then :
12477 gl_cv_header_stdint_h=yes
12479 gl_cv_header_stdint_h=no
12481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
12484 $as_echo "$gl_cv_header_stdint_h" >&6; }
12485 if test $gl_cv_header_stdint_h = yes; then
12487 cat >>confdefs.h <<_ACEOF
12488 #define HAVE_STDINT_H_WITH_UINTMAX 1
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
12497 $as_echo_n "checking for intmax_t... " >&6; }
12498 if ${gt_cv_c_intmax_t+:} false; then :
12499 $as_echo_n "(cached) " >&6
12501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12502 /* end confdefs.h. */
12504 #include <stddef.h>
12505 #include <stdlib.h>
12506 #if HAVE_STDINT_H_WITH_UINTMAX
12507 #include <stdint.h>
12509 #if HAVE_INTTYPES_H_WITH_UINTMAX
12510 #include <inttypes.h>
12516 intmax_t x = -1; return !x;
12521 if ac_fn_c_try_compile "$LINENO"; then :
12522 gt_cv_c_intmax_t=yes
12524 gt_cv_c_intmax_t=no
12526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
12529 $as_echo "$gt_cv_c_intmax_t" >&6; }
12530 if test $gt_cv_c_intmax_t = yes; then
12532 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
12536 test $ac_cv_type_long_long_int = yes \
12537 && ac_type='long long' \
12540 cat >>confdefs.h <<_ACEOF
12541 #define intmax_t $ac_type
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
12549 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
12550 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
12551 $as_echo_n "(cached) " >&6
12554 if test "$cross_compiling" = yes; then :
12557 # Guess yes on glibc systems.
12558 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12559 # Guess yes on FreeBSD >= 5.
12560 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
12561 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12562 # Guess yes on MacOS X >= 10.3.
12563 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
12564 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12565 # Guess yes on OpenBSD >= 3.9.
12566 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
12567 gl_cv_func_snprintf_retval_c99="guessing no";;
12568 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12569 # Guess yes on Solaris >= 2.6.
12570 solaris2.[0-5]*) gl_cv_func_snprintf_retval_c99="guessing no";;
12571 solaris*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12572 # Guess yes on AIX >= 4.
12573 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
12574 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12575 # Guess yes on NetBSD >= 3.
12576 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
12577 gl_cv_func_snprintf_retval_c99="guessing no";;
12578 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12579 # Guess yes on BeOS.
12580 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12581 # If we don't know, assume the worst.
12582 *) gl_cv_func_snprintf_retval_c99="guessing no";;
12586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587 /* end confdefs.h. */
12590 #include <string.h>
12591 static char buf[100];
12594 strcpy (buf, "ABCDEF");
12595 if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
12600 if ac_fn_c_try_run "$LINENO"; then :
12601 gl_cv_func_snprintf_retval_c99=yes
12603 gl_cv_func_snprintf_retval_c99=no
12605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12606 conftest.$ac_objext conftest.beam conftest.$ac_ext
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
12612 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
12620 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
12622 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12623 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12624 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12625 cat >>confdefs.h <<_ACEOF
12626 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12632 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
12634 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
12640 cat >>confdefs.h <<_ACEOF
12641 #define HAVE_DECL__SNPRINTF $ac_have_decl
12645 case "$gl_cv_func_snprintf_retval_c99" in
12648 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
12669 ac_fn_c_check_decl "$LINENO" "iswblank" "ac_cv_have_decl_iswblank" "$ac_includes_default"
12670 if test "x$ac_cv_have_decl_iswblank" = xyes; then :
12676 cat >>confdefs.h <<_ACEOF
12677 #define HAVE_DECL_ISWBLANK $ac_have_decl
12688 GL_COND_LIBTOOL_TRUE=
12689 GL_COND_LIBTOOL_FALSE='#'
12691 GL_COND_LIBTOOL_TRUE='#'
12692 GL_COND_LIBTOOL_FALSE=
12695 gl_cond_libtool=true
12696 gl_m4_base='config/gnulib'
12706 gl_source_base='gnulib'
12707 # Code from module alignof:
12708 # Code from module alloca-opt:
12714 if test $ac_cv_func_alloca_works = no; then
12718 # Define an additional variable used in the Makefile substitution.
12719 if test $ac_cv_working_alloca_h = yes; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12721 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12722 if ${gl_cv_rpl_alloca+:} false; then :
12723 $as_echo_n "(cached) " >&6
12726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727 /* end confdefs.h. */
12729 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12735 $EGREP "Need own alloca" >/dev/null 2>&1; then :
12736 gl_cv_rpl_alloca=yes
12738 gl_cv_rpl_alloca=no
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12745 $as_echo "$gl_cv_rpl_alloca" >&6; }
12746 if test $gl_cv_rpl_alloca = yes; then
12748 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12759 # Code from module arg-nonnull:
12760 # Code from module arpa_inet:
12771 if test $ac_cv_header_arpa_inet_h = yes; then
12789 if test $gl_cv_have_include_next = yes; then
12790 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
12793 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
12794 if ${gl_cv_next_arpa_inet_h+:} false; then :
12795 $as_echo_n "(cached) " >&6
12798 if test $ac_cv_header_arpa_inet_h = yes; then
12799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h. */
12801 #include <arpa/inet.h>
12805 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12806 *) gl_absname_cpp="$ac_cpp" ;;
12808 gl_cv_next_arpa_inet_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12809 sed -n '\#/arpa/inet.h#{
12810 s#.*"\(.*/arpa/inet.h\)".*#\1#
12816 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
12821 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
12823 NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
12825 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12826 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12827 gl_next_as_first_directive='<'arpa/inet.h'>'
12829 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12830 gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
12832 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
12838 for gl_func in inet_ntop inet_pton; do
12839 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12841 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12842 if eval \${$as_gl_Symbol+:} false; then :
12843 $as_echo_n "(cached) " >&6
12845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h. */
12848 /* On some systems, this header is not self-consistent. */
12850 # include <sys/socket.h>
12852 #include <arpa/inet.h>
12863 if ac_fn_c_try_compile "$LINENO"; then :
12864 eval "$as_gl_Symbol=yes"
12866 eval "$as_gl_Symbol=no"
12868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12870 eval ac_res=\$$as_gl_Symbol
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12872 $as_echo "$ac_res" >&6; }
12873 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
12874 cat >>confdefs.h <<_ACEOF
12875 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12878 eval ac_cv_have_decl_$gl_func=yes
12884 # Code from module base64:
12891 # Code from module btowc:
12904 if test $ac_cv_func_btowc = no; then
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
12912 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
12913 if ${gl_cv_func_btowc_nul+:} false; then :
12914 $as_echo_n "(cached) " >&6
12917 if test "$cross_compiling" = yes; then :
12920 # Guess no on Cygwin.
12921 cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
12922 # Guess yes otherwise.
12923 *) gl_cv_func_btowc_nul="guessing yes" ;;
12927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12928 /* end confdefs.h. */
12931 #include <string.h>
12935 if (btowc ('\0') != 0)
12940 if ac_fn_c_try_run "$LINENO"; then :
12941 gl_cv_func_btowc_nul=yes
12943 gl_cv_func_btowc_nul=no
12945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12946 conftest.$ac_objext conftest.beam conftest.$ac_ext
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
12952 $as_echo "$gl_cv_func_btowc_nul" >&6; }
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
12955 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
12956 if ${gl_cv_func_btowc_eof+:} false; then :
12957 $as_echo_n "(cached) " >&6
12961 # Guess no on IRIX.
12962 irix*) gl_cv_func_btowc_eof="guessing no" ;;
12963 # Guess yes otherwise.
12964 *) gl_cv_func_btowc_eof="guessing yes" ;;
12966 if test $LOCALE_FR != none; then
12967 if test "$cross_compiling" = yes; then :
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12973 #include <locale.h>
12975 #include <string.h>
12979 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
12981 if (btowc (EOF) != WEOF)
12987 if ac_fn_c_try_run "$LINENO"; then :
12988 gl_cv_func_btowc_eof=yes
12990 gl_cv_func_btowc_eof=no
12992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12993 conftest.$ac_objext conftest.beam conftest.$ac_ext
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
13000 $as_echo "$gl_cv_func_btowc_eof" >&6; }
13002 case "$gl_cv_func_btowc_nul" in
13004 *) REPLACE_BTOWC=1 ;;
13006 case "$gl_cv_func_btowc_eof" in
13008 *) REPLACE_BTOWC=1 ;;
13011 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
13023 gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
13037 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
13041 # Code from module c++defs:
13042 # Code from module c-ctype:
13043 # Code from module configmake:
13044 # Code from module environ:
13053 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
13057 # Code from module errno:
13059 # Code from module extensions:
13060 # Code from module float:
13080 if test $gl_cv_have_include_next = yes; then
13081 gl_cv_next_float_h='<'float.h'>'
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
13084 $as_echo_n "checking absolute name of <float.h>... " >&6; }
13085 if ${gl_cv_next_float_h+:} false; then :
13086 $as_echo_n "(cached) " >&6
13089 if test $ac_cv_header_float_h = yes; then
13090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091 /* end confdefs.h. */
13096 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13097 *) gl_absname_cpp="$ac_cpp" ;;
13099 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13100 sed -n '\#/float.h#{
13101 s#.*"\(.*/float.h\)".*#\1#
13107 gl_cv_next_float_h='<'float.h'>'
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
13112 $as_echo "$gl_cv_next_float_h" >&6; }
13114 NEXT_FLOAT_H=$gl_cv_next_float_h
13116 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13117 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13118 gl_next_as_first_directive='<'float.h'>'
13120 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13121 gl_next_as_first_directive=$gl_cv_next_float_h
13123 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
13131 # Code from module fseeko:
13137 if test $gl_cv_func_fseeko = no; then
13142 if test $gl_cv_func_fseeko = yes; then
13153 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
13158 if test $gl_cv_var_stdin_large_offset = no; then
13162 if test $gl_cv_func_fseeko = yes; then
13173 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
13187 $as_echo "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h
13191 # Code from module fsusage:
13210 for ac_header in sys/mount.h
13212 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default
13213 #if HAVE_SYS_PARAM_H
13214 #include <sys/param.h>
13217 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
13218 cat >>confdefs.h <<_ACEOF
13219 #define HAVE_SYS_MOUNT_H 1
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get file system space usage" >&5
13229 $as_echo "$as_me: checking how to get file system space usage" >&6;}
13230 ac_fsusage_space=no
13232 # Perform only the link test since it seems there are no variants of the
13233 # statvfs function. This check is more than just AC_CHECK_FUNCS([statvfs])
13234 # because that got a false positive on SCO OSR5. Adding the declaration
13235 # of a `struct statvfs' causes this test to fail (as it should) on such
13236 # systems. That system is reported to work fine with STAT_STATFS4 which
13237 # is what it gets when this test fails.
13238 if test $ac_fsusage_space = no; then
13239 # glibc/{Hurd,kFreeBSD}, MacOS X >= 10.4, FreeBSD >= 5.0, NetBSD >= 3.0,
13240 # OpenBSD >= 4.4, AIX, HP-UX, IRIX, Solaris, Cygwin, Interix, BeOS.
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statvfs function (SVR4)" >&5
13242 $as_echo_n "checking for statvfs function (SVR4)... " >&6; }
13243 if ${fu_cv_sys_stat_statvfs+:} false; then :
13244 $as_echo_n "(cached) " >&6
13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247 /* end confdefs.h. */
13248 #include <sys/types.h>
13249 #if defined __GLIBC__ && defined __linux__
13250 Do not use statvfs on systems with GNU libc on Linux, because that function
13251 stats all preceding entries in /proc/mounts, and that makes df hang if even
13252 one of the corresponding file systems is hard-mounted, but not available.
13253 statvfs in GNU libc on Hurd, BeOS, Haiku operates differently: it only makes
13258 "Do not use Tru64's statvfs implementation"
13261 #include <sys/statvfs.h>
13265 struct statvfs fsd; statvfs (0, &fsd);
13270 if ac_fn_c_try_link "$LINENO"; then :
13271 fu_cv_sys_stat_statvfs=yes
13273 fu_cv_sys_stat_statvfs=no
13275 rm -f core conftest.err conftest.$ac_objext \
13276 conftest$ac_exeext conftest.$ac_ext
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs" >&5
13279 $as_echo "$fu_cv_sys_stat_statvfs" >&6; }
13280 if test $fu_cv_sys_stat_statvfs = yes; then
13281 ac_fsusage_space=yes
13283 $as_echo "#define STAT_STATVFS 1" >>confdefs.h
13288 if test $ac_fsusage_space = no; then
13289 # DEC Alpha running OSF/1
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3-argument statfs function (DEC OSF/1)" >&5
13291 $as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
13292 if ${fu_cv_sys_stat_statfs3_osf1+:} false; then :
13293 $as_echo_n "(cached) " >&6
13295 if test "$cross_compiling" = yes; then :
13296 fu_cv_sys_stat_statfs3_osf1=no
13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13301 #include <sys/param.h>
13302 #include <sys/types.h>
13303 #include <sys/mount.h>
13309 return statfs (".", &fsd, sizeof (struct statfs)) != 0;
13312 if ac_fn_c_try_run "$LINENO"; then :
13313 fu_cv_sys_stat_statfs3_osf1=yes
13315 fu_cv_sys_stat_statfs3_osf1=no
13317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13318 conftest.$ac_objext conftest.beam conftest.$ac_ext
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs3_osf1" >&5
13324 $as_echo "$fu_cv_sys_stat_statfs3_osf1" >&6; }
13325 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
13326 ac_fsusage_space=yes
13328 $as_echo "#define STAT_STATFS3_OSF1 1" >>confdefs.h
13333 if test $ac_fsusage_space = no; then
13334 # glibc/Linux, MacOS X < 10.4, FreeBSD < 5.0, NetBSD < 3.0, OpenBSD < 4.4.
13335 # (glibc/{Hurd,kFreeBSD}, MacOS X >= 10.4, FreeBSD >= 5.0, NetBSD >= 3.0,
13336 # OpenBSD >= 4.4, AIX, HP-UX, OSF/1, Cygwin already handled above.)
13337 # (On IRIX you need to include <sys/statfs.h>, not only <sys/mount.h> and
13339 # (On Solaris, statfs has 4 arguments.)
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)" >&5
13341 $as_echo_n "checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)... " >&6; }
13342 if ${fu_cv_sys_stat_statfs2_bsize+:} false; then :
13343 $as_echo_n "(cached) " >&6
13345 if test "$cross_compiling" = yes; then :
13346 fu_cv_sys_stat_statfs2_bsize=no
13348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13349 /* end confdefs.h. */
13351 #ifdef HAVE_SYS_PARAM_H
13352 #include <sys/param.h>
13354 #ifdef HAVE_SYS_MOUNT_H
13355 #include <sys/mount.h>
13357 #ifdef HAVE_SYS_VFS_H
13358 #include <sys/vfs.h>
13365 return statfs (".", &fsd) != 0;
13368 if ac_fn_c_try_run "$LINENO"; then :
13369 fu_cv_sys_stat_statfs2_bsize=yes
13371 fu_cv_sys_stat_statfs2_bsize=no
13373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13374 conftest.$ac_objext conftest.beam conftest.$ac_ext
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_bsize" >&5
13380 $as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
13381 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
13382 ac_fsusage_space=yes
13384 $as_echo "#define STAT_STATFS2_BSIZE 1" >>confdefs.h
13389 if test $ac_fsusage_space = no; then
13391 # (Solaris already handled above.)
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13393 $as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
13394 if ${fu_cv_sys_stat_statfs4+:} false; then :
13395 $as_echo_n "(cached) " >&6
13397 if test "$cross_compiling" = yes; then :
13398 fu_cv_sys_stat_statfs4=no
13400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401 /* end confdefs.h. */
13403 #include <sys/types.h>
13404 #include <sys/statfs.h>
13409 return statfs (".", &fsd, sizeof fsd, 0) != 0;
13412 if ac_fn_c_try_run "$LINENO"; then :
13413 fu_cv_sys_stat_statfs4=yes
13415 fu_cv_sys_stat_statfs4=no
13417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13418 conftest.$ac_objext conftest.beam conftest.$ac_ext
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs4" >&5
13424 $as_echo "$fu_cv_sys_stat_statfs4" >&6; }
13425 if test $fu_cv_sys_stat_statfs4 = yes; then
13426 ac_fsusage_space=yes
13428 $as_echo "#define STAT_STATFS4 1" >>confdefs.h
13433 if test $ac_fsusage_space = no; then
13434 # 4.4BSD and older NetBSD
13435 # (OSF/1 already handled above.)
13436 # (On AIX, you need to include <sys/statfs.h>, not only <sys/mount.h>.)
13437 # (On Solaris, statfs has 4 arguments and 'struct statfs' is not declared in
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)" >&5
13440 $as_echo_n "checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)... " >&6; }
13441 if ${fu_cv_sys_stat_statfs2_fsize+:} false; then :
13442 $as_echo_n "(cached) " >&6
13444 if test "$cross_compiling" = yes; then :
13445 fu_cv_sys_stat_statfs2_fsize=no
13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h. */
13450 #include <sys/types.h>
13451 #ifdef HAVE_SYS_PARAM_H
13452 #include <sys/param.h>
13454 #ifdef HAVE_SYS_MOUNT_H
13455 #include <sys/mount.h>
13462 return statfs (".", &fsd) != 0;
13465 if ac_fn_c_try_run "$LINENO"; then :
13466 fu_cv_sys_stat_statfs2_fsize=yes
13468 fu_cv_sys_stat_statfs2_fsize=no
13470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13471 conftest.$ac_objext conftest.beam conftest.$ac_ext
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_fsize" >&5
13477 $as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
13478 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13479 ac_fsusage_space=yes
13481 $as_echo "#define STAT_STATFS2_FSIZE 1" >>confdefs.h
13486 if test $ac_fsusage_space = no; then
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13489 $as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
13490 if ${fu_cv_sys_stat_fs_data+:} false; then :
13491 $as_echo_n "(cached) " >&6
13493 if test "$cross_compiling" = yes; then :
13494 fu_cv_sys_stat_fs_data=no
13496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13497 /* end confdefs.h. */
13499 #include <sys/types.h>
13500 #ifdef HAVE_SYS_PARAM_H
13501 #include <sys/param.h>
13503 #ifdef HAVE_SYS_MOUNT_H
13504 #include <sys/mount.h>
13506 #ifdef HAVE_SYS_FS_TYPES_H
13507 #include <sys/fs_types.h>
13512 struct fs_data fsd;
13513 /* Ultrix's statfs returns 1 for success,
13514 0 for not mounted, -1 for failure. */
13515 return statfs (".", &fsd) != 1;
13518 if ac_fn_c_try_run "$LINENO"; then :
13519 fu_cv_sys_stat_fs_data=yes
13521 fu_cv_sys_stat_fs_data=no
13523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13524 conftest.$ac_objext conftest.beam conftest.$ac_ext
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_fs_data" >&5
13530 $as_echo "$fu_cv_sys_stat_fs_data" >&6; }
13531 if test $fu_cv_sys_stat_fs_data = yes; then
13532 ac_fsusage_space=yes
13534 $as_echo "#define STAT_STATFS2_FS_DATA 1" >>confdefs.h
13539 if test $ac_fsusage_space = no; then
13541 # (AIX, HP-UX, OSF/1 already handled above.)
13542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h. */
13544 #include <sys/filsys.h>
13547 if ac_fn_c_try_cpp "$LINENO"; then :
13549 $as_echo "#define STAT_READ_FILSYS 1" >>confdefs.h
13551 ac_fsusage_space=yes
13553 rm -f conftest.err conftest.i conftest.$ac_ext
13556 if test $ac_fsusage_space = yes; then :
13563 if test $gl_cv_fs_space = yes; then
13572 gl_LIBOBJS="$gl_LIBOBJS fsusage.$ac_objext"
13575 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h
13577 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13578 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13579 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13580 cat >>confdefs.h <<_ACEOF
13581 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statfs that truncates block counts" >&5
13590 $as_echo_n "checking for statfs that truncates block counts... " >&6; }
13591 if ${fu_cv_sys_truncating_statfs+:} false; then :
13592 $as_echo_n "(cached) " >&6
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13597 #if !defined(sun) && !defined(__sun)
13598 choke -- this is a workaround for a Sun-specific problem
13600 #include <sys/types.h>
13601 #include <sys/vfs.h>
13605 struct statfs t; long c = *(t.f_spare);
13611 if ac_fn_c_try_compile "$LINENO"; then :
13612 fu_cv_sys_truncating_statfs=yes
13614 fu_cv_sys_truncating_statfs=no
13616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13619 if test $fu_cv_sys_truncating_statfs = yes; then
13621 $as_echo "#define STATFS_TRUNCATES_BLOCK_COUNTS 1" >>confdefs.h
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_truncating_statfs" >&5
13625 $as_echo "$fu_cv_sys_truncating_statfs" >&6; }
13630 # Code from module ftello:
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
13639 $as_echo_n "checking for ftello... " >&6; }
13640 if ${gl_cv_func_ftello+:} false; then :
13641 $as_echo_n "(cached) " >&6
13644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13645 /* end confdefs.h. */
13655 if ac_fn_c_try_link "$LINENO"; then :
13656 gl_cv_func_ftello=yes
13658 gl_cv_func_ftello=no
13660 rm -f core conftest.err conftest.$ac_objext \
13661 conftest$ac_exeext conftest.$ac_ext
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
13665 $as_echo "$gl_cv_func_ftello" >&6; }
13666 if test $gl_cv_func_ftello = no; then
13669 if test $gl_cv_var_stdin_large_offset = no; then
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
13674 $as_echo_n "checking whether ftello works... " >&6; }
13675 if ${gl_cv_func_ftello_works+:} false; then :
13676 $as_echo_n "(cached) " >&6
13680 # Guess no on Solaris.
13681 solaris*) gl_cv_func_ftello_works="guessing no" ;;
13682 # Guess yes otherwise.
13683 *) gl_cv_func_ftello_works="guessing yes" ;;
13685 if test "$cross_compiling" = yes; then :
13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689 /* end confdefs.h. */
13692 #include <stdlib.h>
13693 #include <string.h>
13694 #define TESTFILE "conftest.tmp"
13700 /* Create a file with some contents. */
13701 fp = fopen (TESTFILE, "w");
13704 if (fwrite ("foogarsh", 1, 8, fp) < 8)
13709 /* The file's contents is now "foogarsh". */
13711 /* Try writing after reading to EOF. */
13712 fp = fopen (TESTFILE, "r+");
13715 if (fseek (fp, -1, SEEK_END))
13717 if (!(getc (fp) == 'h'))
13719 if (!(getc (fp) == EOF))
13721 if (!(ftell (fp) == 8))
13723 if (!(ftell (fp) == 8))
13725 if (!(putc ('!', fp) == '!'))
13727 if (!(ftell (fp) == 9))
13729 if (!(fclose (fp) == 0))
13731 fp = fopen (TESTFILE, "r");
13736 if (!(fread (buf, 1, 10, fp) == 9))
13738 if (!(memcmp (buf, "foogarsh!", 9) == 0))
13741 if (!(fclose (fp) == 0))
13744 /* The file's contents is now "foogarsh!". */
13749 if ac_fn_c_try_run "$LINENO"; then :
13750 gl_cv_func_ftello_works=yes
13752 gl_cv_func_ftello_works=no
13754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13755 conftest.$ac_objext conftest.beam conftest.$ac_ext
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
13761 $as_echo "$gl_cv_func_ftello_works" >&6; }
13762 case "$gl_cv_func_ftello_works" in
13767 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
13773 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
13783 gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
13795 $as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
13799 # Code from module ftruncate:
13810 if test $ac_cv_func_ftruncate = no; then
13820 gl_LIBOBJS="$gl_LIBOBJS ftruncate.$ac_objext"
13823 for ac_func in chsize
13825 ac_fn_c_check_func "$LINENO" "chsize" "ac_cv_func_chsize"
13826 if test "x$ac_cv_func_chsize" = xyes; then :
13827 cat >>confdefs.h <<_ACEOF
13828 #define HAVE_CHSIZE 1
13837 # Yes, we know mingw lacks ftruncate.
13840 # If someone lacks ftruncate, make configure fail, and request
13841 # a bug report to inform us about it.
13842 if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
13843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13845 as_fn_error $? "Your system lacks the ftruncate function.
13846 Please report this, along with the output of \"uname -a\", to the
13847 bug-coreutils@gnu.org mailing list. To continue past this point,
13848 rerun configure with SKIP_FTRUNCATE_CHECK=yes.
13849 E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
13850 See \`config.log' for more details" "$LINENO" 5; }
13862 $as_echo "#define GNULIB_TEST_FTRUNCATE 1" >>confdefs.h
13866 # Code from module full-read:
13867 # Code from module full-write:
13868 # Code from module getaddrinfo:
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
13871 $as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
13873 gai_saved_LIBS="$LIBS"
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13876 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
13877 if ${ac_cv_search_getaddrinfo+:} false; then :
13878 $as_echo_n "(cached) " >&6
13880 ac_func_search_save_LIBS=$LIBS
13881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h. */
13884 /* Override any GCC internal prototype to avoid an error.
13885 Use char because int might match the return type of a GCC
13886 builtin and then its argument prototype would still apply. */
13890 char getaddrinfo ();
13894 return getaddrinfo ();
13899 for ac_lib in '' socket network net; do
13900 if test -z "$ac_lib"; then
13901 ac_res="none required"
13904 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13906 if ac_fn_c_try_link "$LINENO"; then :
13907 ac_cv_search_getaddrinfo=$ac_res
13909 rm -f core conftest.err conftest.$ac_objext \
13911 if ${ac_cv_search_getaddrinfo+:} false; then :
13915 if ${ac_cv_search_getaddrinfo+:} false; then :
13918 ac_cv_search_getaddrinfo=no
13920 rm conftest.$ac_ext
13921 LIBS=$ac_func_search_save_LIBS
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13924 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
13925 ac_res=$ac_cv_search_getaddrinfo
13926 if test "$ac_res" != no; then :
13927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13928 if test "$ac_cv_search_getaddrinfo" != "none required"; then
13929 GETADDRINFO_LIB="$ac_cv_search_getaddrinfo"
13933 LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13936 $as_echo_n "checking for getaddrinfo... " >&6; }
13937 if ${gl_cv_func_getaddrinfo+:} false; then :
13938 $as_echo_n "(cached) " >&6
13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h. */
13944 #include <sys/types.h>
13945 #ifdef HAVE_SYS_SOCKET_H
13946 #include <sys/socket.h>
13948 #ifdef HAVE_NETDB_H
13951 #include <stddef.h>
13956 getaddrinfo("", "", NULL, NULL);
13961 if ac_fn_c_try_link "$LINENO"; then :
13962 gl_cv_func_getaddrinfo=yes
13964 gl_cv_func_getaddrinfo=no
13966 rm -f core conftest.err conftest.$ac_objext \
13967 conftest$ac_exeext conftest.$ac_ext
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getaddrinfo" >&5
13970 $as_echo "$gl_cv_func_getaddrinfo" >&6; }
13971 if test $gl_cv_func_getaddrinfo = no; then
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
13973 $as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
13974 if ${gl_cv_w32_getaddrinfo+:} false; then :
13975 $as_echo_n "(cached) " >&6
13978 gl_cv_w32_getaddrinfo=no
13979 am_save_LIBS="$LIBS"
13980 LIBS="$LIBS -lws2_32"
13981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13982 /* end confdefs.h. */
13984 #ifdef HAVE_WS2TCPIP_H
13985 #include <ws2tcpip.h>
13987 #include <stddef.h>
13992 getaddrinfo(NULL, NULL, NULL, NULL);
13997 if ac_fn_c_try_link "$LINENO"; then :
13998 gl_cv_w32_getaddrinfo=yes
14000 rm -f core conftest.err conftest.$ac_objext \
14001 conftest$ac_exeext conftest.$ac_ext
14002 LIBS="$am_save_LIBS"
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getaddrinfo" >&5
14006 $as_echo "$gl_cv_w32_getaddrinfo" >&6; }
14007 if test "$gl_cv_w32_getaddrinfo" = "yes"; then
14008 GETADDRINFO_LIB="-lws2_32"
14009 LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
14019 gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
14024 # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
14025 # inline function declared in ws2tcpip.h, so we need to get that
14026 # header included somehow.
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror (possibly via ws2tcpip.h)" >&5
14028 $as_echo_n "checking for gai_strerror (possibly via ws2tcpip.h)... " >&6; }
14029 if ${gl_cv_func_gai_strerror+:} false; then :
14030 $as_echo_n "(cached) " >&6
14033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h. */
14036 #include <sys/types.h>
14037 #ifdef HAVE_SYS_SOCKET_H
14038 #include <sys/socket.h>
14040 #ifdef HAVE_NETDB_H
14043 #ifdef HAVE_WS2TCPIP_H
14044 #include <ws2tcpip.h>
14046 #include <stddef.h>
14051 gai_strerror (NULL);
14056 if ac_fn_c_try_link "$LINENO"; then :
14057 gl_cv_func_gai_strerror=yes
14059 gl_cv_func_gai_strerror=no
14061 rm -f core conftest.err conftest.$ac_objext \
14062 conftest$ac_exeext conftest.$ac_ext
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gai_strerror" >&5
14065 $as_echo "$gl_cv_func_gai_strerror" >&6; }
14066 if test $gl_cv_func_gai_strerror = no; then
14075 gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext"
14079 LIBS="$gai_saved_LIBS"
14089 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
14091 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14093 cat >>confdefs.h <<_ACEOF
14094 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14109 ac_fn_c_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_getaddrinfo" "
14110 /* sys/types.h is not needed according to POSIX, but the
14111 sys/socket.h in i386-unknown-freebsd4.10 and
14112 powerpc-apple-darwin5.5 required it. */
14113 #include <sys/types.h>
14114 #ifdef HAVE_SYS_SOCKET_H
14115 #include <sys/socket.h>
14117 #ifdef HAVE_NETDB_H
14120 #ifdef HAVE_WS2TCPIP_H
14121 #include <ws2tcpip.h>
14125 if test "x$ac_cv_have_decl_getaddrinfo" = xyes; then :
14131 cat >>confdefs.h <<_ACEOF
14132 #define HAVE_DECL_GETADDRINFO $ac_have_decl
14134 ac_fn_c_check_decl "$LINENO" "freeaddrinfo" "ac_cv_have_decl_freeaddrinfo" "
14135 /* sys/types.h is not needed according to POSIX, but the
14136 sys/socket.h in i386-unknown-freebsd4.10 and
14137 powerpc-apple-darwin5.5 required it. */
14138 #include <sys/types.h>
14139 #ifdef HAVE_SYS_SOCKET_H
14140 #include <sys/socket.h>
14142 #ifdef HAVE_NETDB_H
14145 #ifdef HAVE_WS2TCPIP_H
14146 #include <ws2tcpip.h>
14150 if test "x$ac_cv_have_decl_freeaddrinfo" = xyes; then :
14156 cat >>confdefs.h <<_ACEOF
14157 #define HAVE_DECL_FREEADDRINFO $ac_have_decl
14159 ac_fn_c_check_decl "$LINENO" "gai_strerror" "ac_cv_have_decl_gai_strerror" "
14160 /* sys/types.h is not needed according to POSIX, but the
14161 sys/socket.h in i386-unknown-freebsd4.10 and
14162 powerpc-apple-darwin5.5 required it. */
14163 #include <sys/types.h>
14164 #ifdef HAVE_SYS_SOCKET_H
14165 #include <sys/socket.h>
14167 #ifdef HAVE_NETDB_H
14170 #ifdef HAVE_WS2TCPIP_H
14171 #include <ws2tcpip.h>
14175 if test "x$ac_cv_have_decl_gai_strerror" = xyes; then :
14181 cat >>confdefs.h <<_ACEOF
14182 #define HAVE_DECL_GAI_STRERROR $ac_have_decl
14184 ac_fn_c_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_getnameinfo" "
14185 /* sys/types.h is not needed according to POSIX, but the
14186 sys/socket.h in i386-unknown-freebsd4.10 and
14187 powerpc-apple-darwin5.5 required it. */
14188 #include <sys/types.h>
14189 #ifdef HAVE_SYS_SOCKET_H
14190 #include <sys/socket.h>
14192 #ifdef HAVE_NETDB_H
14195 #ifdef HAVE_WS2TCPIP_H
14196 #include <ws2tcpip.h>
14200 if test "x$ac_cv_have_decl_getnameinfo" = xyes; then :
14206 cat >>confdefs.h <<_ACEOF
14207 #define HAVE_DECL_GETNAMEINFO $ac_have_decl
14210 if test $ac_cv_have_decl_getaddrinfo = no; then
14211 HAVE_DECL_GETADDRINFO=0
14213 if test $ac_cv_have_decl_freeaddrinfo = no; then
14214 HAVE_DECL_FREEADDRINFO=0
14216 if test $ac_cv_have_decl_gai_strerror = no; then
14217 HAVE_DECL_GAI_STRERROR=0
14219 if test $ac_cv_have_decl_getnameinfo = no; then
14220 HAVE_DECL_GETNAMEINFO=0
14223 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
14224 #include <sys/types.h>
14225 #ifdef HAVE_SYS_SOCKET_H
14226 #include <sys/socket.h>
14228 #ifdef HAVE_NETDB_H
14231 #ifdef HAVE_WS2TCPIP_H
14232 #include <ws2tcpip.h>
14236 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
14238 cat >>confdefs.h <<_ACEOF
14239 #define HAVE_STRUCT_ADDRINFO 1
14245 if test $ac_cv_type_struct_addrinfo = no; then
14246 HAVE_STRUCT_ADDRINFO=0
14249 case " $GETADDRINFO_LIB " in
14250 *" $HOSTENT_LIB "*) ;;
14251 *) GETADDRINFO_LIB="$GETADDRINFO_LIB $HOSTENT_LIB" ;;
14254 case " $GETADDRINFO_LIB " in
14255 *" $SERVENT_LIB "*) ;;
14256 *) GETADDRINFO_LIB="$GETADDRINFO_LIB $SERVENT_LIB" ;;
14259 case " $GETADDRINFO_LIB " in
14260 *" $INET_NTOP_LIB "*) ;;
14261 *) GETADDRINFO_LIB="$GETADDRINFO_LIB $INET_NTOP_LIB" ;;
14270 GNULIB_GETADDRINFO=1
14273 # Code from module getopt-gnu:
14281 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
14284 # Code from module getopt-posix:
14290 if test -n "$gl_replace_getopt"; then :
14296 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14300 GNULIB_UNISTD_H_GETOPT=1
14309 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14319 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14335 # Code from module gettext-h:
14338 # Code from module gettimeofday:
14351 gl_gettimeofday_timezone=void
14352 if test $ac_cv_func_gettimeofday != yes; then
14353 HAVE_GETTIMEOFDAY=0
14362 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14365 for ac_header in sys/timeb.h
14367 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14368 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
14369 cat >>confdefs.h <<_ACEOF
14370 #define HAVE_SYS_TIMEB_H 1
14377 for ac_func in _ftime
14379 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
14380 if test "x$ac_cv_func__ftime" = xyes; then :
14381 cat >>confdefs.h <<_ACEOF
14382 #define HAVE__FTIME 1
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
14394 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
14395 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
14396 $as_echo_n "(cached) " >&6
14398 if test "$cross_compiling" = yes; then :
14399 gl_cv_func_gettimeofday_clobber=yes
14401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14402 /* end confdefs.h. */
14403 #include <string.h>
14404 #include <sys/time.h>
14406 #include <stdlib.h>
14414 struct tm saved_lt;
14416 lt = localtime (&t);
14418 gettimeofday (&tv, NULL);
14419 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
14425 if ac_fn_c_try_run "$LINENO"; then :
14426 gl_cv_func_gettimeofday_clobber=no
14428 gl_cv_func_gettimeofday_clobber=yes
14430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14431 conftest.$ac_objext conftest.beam conftest.$ac_ext
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
14436 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
14438 if test $gl_cv_func_gettimeofday_clobber = yes; then
14439 REPLACE_GETTIMEOFDAY=1
14449 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14452 for ac_header in sys/timeb.h
14454 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14455 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
14456 cat >>confdefs.h <<_ACEOF
14457 #define HAVE_SYS_TIMEB_H 1
14464 for ac_func in _ftime
14466 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
14467 if test "x$ac_cv_func__ftime" = xyes; then :
14468 cat >>confdefs.h <<_ACEOF
14469 #define HAVE__FTIME 1
14477 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
14480 $as_echo "#define localtime rpl_localtime" >>confdefs.h
14484 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
14489 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
14490 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
14491 $as_echo_n "(cached) " >&6
14493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14494 /* end confdefs.h. */
14495 #include <sys/time.h>
14497 int gettimeofday (struct timeval *restrict, void *restrict);
14502 /* glibc uses struct timezone * rather than the POSIX void *
14503 if _GNU_SOURCE is defined. However, since the only portable
14504 use of gettimeofday uses NULL as the second parameter, and
14505 since the glibc definition is actually more typesafe, it is
14506 not worth wrapping this to get a compliant signature. */
14507 int (*f) (struct timeval *restrict, void *restrict)
14510 return !(x | c.tv_sec | c.tv_usec);
14516 if ac_fn_c_try_compile "$LINENO"; then :
14517 gl_cv_func_gettimeofday_posix_signature=yes
14519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14520 /* end confdefs.h. */
14521 #include <sys/time.h>
14522 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
14532 if ac_fn_c_try_compile "$LINENO"; then :
14533 gl_cv_func_gettimeofday_posix_signature=almost
14535 gl_cv_func_gettimeofday_posix_signature=no
14537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
14542 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
14543 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
14544 gl_gettimeofday_timezone='struct timezone'
14545 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
14546 REPLACE_GETTIMEOFDAY=1
14555 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14558 for ac_header in sys/timeb.h
14560 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14561 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
14562 cat >>confdefs.h <<_ACEOF
14563 #define HAVE_SYS_TIMEB_H 1
14570 for ac_func in _ftime
14572 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
14573 if test "x$ac_cv_func__ftime" = xyes; then :
14574 cat >>confdefs.h <<_ACEOF
14575 #define HAVE__FTIME 1
14585 cat >>confdefs.h <<_ACEOF
14586 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
14593 GNULIB_GETTIMEOFDAY=1
14597 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
14601 # Code from module havelib:
14602 # Code from module hostent:
14605 gl_saved_libs="$LIBS"
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14607 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14608 if ${ac_cv_search_gethostbyname+:} false; then :
14609 $as_echo_n "(cached) " >&6
14611 ac_func_search_save_LIBS=$LIBS
14612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14613 /* end confdefs.h. */
14615 /* Override any GCC internal prototype to avoid an error.
14616 Use char because int might match the return type of a GCC
14617 builtin and then its argument prototype would still apply. */
14621 char gethostbyname ();
14625 return gethostbyname ();
14630 for ac_lib in '' nsl network net; do
14631 if test -z "$ac_lib"; then
14632 ac_res="none required"
14635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14637 if ac_fn_c_try_link "$LINENO"; then :
14638 ac_cv_search_gethostbyname=$ac_res
14640 rm -f core conftest.err conftest.$ac_objext \
14642 if ${ac_cv_search_gethostbyname+:} false; then :
14646 if ${ac_cv_search_gethostbyname+:} false; then :
14649 ac_cv_search_gethostbyname=no
14651 rm conftest.$ac_ext
14652 LIBS=$ac_func_search_save_LIBS
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14655 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14656 ac_res=$ac_cv_search_gethostbyname
14657 if test "$ac_res" != no; then :
14658 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14659 if test "$ac_cv_search_gethostbyname" != "none required"; then
14660 HOSTENT_LIB="$ac_cv_search_gethostbyname"
14664 LIBS="$gl_saved_libs"
14665 if test -z "$HOSTENT_LIB"; then
14666 for ac_func in gethostbyname
14668 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14669 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14670 cat >>confdefs.h <<_ACEOF
14671 #define HAVE_GETHOSTBYNAME 1
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
14677 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
14678 if ${gl_cv_w32_gethostbyname+:} false; then :
14679 $as_echo_n "(cached) " >&6
14681 gl_cv_w32_gethostbyname=no
14682 gl_save_LIBS="$LIBS"
14683 LIBS="$LIBS -lws2_32"
14684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14685 /* end confdefs.h. */
14687 #ifdef HAVE_WINSOCK2_H
14688 #include <winsock2.h>
14690 #include <stddef.h>
14695 gethostbyname(NULL);
14700 if ac_fn_c_try_link "$LINENO"; then :
14701 gl_cv_w32_gethostbyname=yes
14703 rm -f core conftest.err conftest.$ac_objext \
14704 conftest$ac_exeext conftest.$ac_ext
14705 LIBS="$gl_save_LIBS"
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
14709 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
14710 if test "$gl_cv_w32_gethostbyname" = "yes"; then
14711 HOSTENT_LIB="-lws2_32"
14720 # Code from module include_next:
14721 # Code from module inet_ntop:
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
14731 $as_echo_n "checking for library containing inet_ntop... " >&6; }
14732 if ${ac_cv_search_inet_ntop+:} false; then :
14733 $as_echo_n "(cached) " >&6
14735 ac_func_search_save_LIBS=$LIBS
14736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14737 /* end confdefs.h. */
14739 /* Override any GCC internal prototype to avoid an error.
14740 Use char because int might match the return type of a GCC
14741 builtin and then its argument prototype would still apply. */
14749 return inet_ntop ();
14754 for ac_lib in '' nsl; do
14755 if test -z "$ac_lib"; then
14756 ac_res="none required"
14759 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14761 if ac_fn_c_try_link "$LINENO"; then :
14762 ac_cv_search_inet_ntop=$ac_res
14764 rm -f core conftest.err conftest.$ac_objext \
14766 if ${ac_cv_search_inet_ntop+:} false; then :
14770 if ${ac_cv_search_inet_ntop+:} false; then :
14773 ac_cv_search_inet_ntop=no
14775 rm conftest.$ac_ext
14776 LIBS=$ac_func_search_save_LIBS
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
14779 $as_echo "$ac_cv_search_inet_ntop" >&6; }
14780 ac_res=$ac_cv_search_inet_ntop
14781 if test "$ac_res" != no; then :
14782 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14793 for ac_func in inet_ntop
14795 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
14796 if test "x$ac_cv_func_inet_ntop" = xyes; then :
14797 cat >>confdefs.h <<_ACEOF
14798 #define HAVE_INET_NTOP 1
14803 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
14813 if test "$ac_cv_search_inet_ntop" != "no" &&
14814 test "$ac_cv_search_inet_ntop" != "none required"; then
14815 INET_NTOP_LIB="$ac_cv_search_inet_ntop"
14820 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
14822 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
14828 cat >>confdefs.h <<_ACEOF
14829 #define HAVE_DECL_INET_NTOP $ac_have_decl
14832 if test $ac_cv_have_decl_inet_ntop = no; then
14833 HAVE_DECL_INET_NTOP=0
14845 # Code from module inet_pton:
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
14855 $as_echo_n "checking for library containing inet_pton... " >&6; }
14856 if ${ac_cv_search_inet_pton+:} false; then :
14857 $as_echo_n "(cached) " >&6
14859 ac_func_search_save_LIBS=$LIBS
14860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14861 /* end confdefs.h. */
14863 /* Override any GCC internal prototype to avoid an error.
14864 Use char because int might match the return type of a GCC
14865 builtin and then its argument prototype would still apply. */
14873 return inet_pton ();
14878 for ac_lib in '' nsl; do
14879 if test -z "$ac_lib"; then
14880 ac_res="none required"
14883 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14885 if ac_fn_c_try_link "$LINENO"; then :
14886 ac_cv_search_inet_pton=$ac_res
14888 rm -f core conftest.err conftest.$ac_objext \
14890 if ${ac_cv_search_inet_pton+:} false; then :
14894 if ${ac_cv_search_inet_pton+:} false; then :
14897 ac_cv_search_inet_pton=no
14899 rm conftest.$ac_ext
14900 LIBS=$ac_func_search_save_LIBS
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
14903 $as_echo "$ac_cv_search_inet_pton" >&6; }
14904 ac_res=$ac_cv_search_inet_pton
14905 if test "$ac_res" != no; then :
14906 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14917 for ac_func in inet_pton
14919 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
14920 if test "x$ac_cv_func_inet_pton" = xyes; then :
14921 cat >>confdefs.h <<_ACEOF
14922 #define HAVE_INET_PTON 1
14927 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
14937 if test "$ac_cv_search_inet_pton" != "no" &&
14938 test "$ac_cv_search_inet_pton" != "none required"; then
14939 INET_PTON_LIB="$ac_cv_search_inet_pton"
14944 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h>
14946 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
14952 cat >>confdefs.h <<_ACEOF
14953 #define HAVE_DECL_INET_PTON $ac_have_decl
14956 if test $ac_cv_have_decl_inet_pton = no; then
14957 HAVE_DECL_INET_PTON=0
14969 # Code from module langinfo:
14987 if test $gl_cv_have_include_next = yes; then
14988 gl_cv_next_langinfo_h='<'langinfo.h'>'
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
14991 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
14992 if ${gl_cv_next_langinfo_h+:} false; then :
14993 $as_echo_n "(cached) " >&6
14996 if test $ac_cv_header_langinfo_h = yes; then
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
14999 #include <langinfo.h>
15003 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15004 *) gl_absname_cpp="$ac_cpp" ;;
15006 gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15007 sed -n '\#/langinfo.h#{
15008 s#.*"\(.*/langinfo.h\)".*#\1#
15014 gl_cv_next_langinfo_h='<'langinfo.h'>'
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
15019 $as_echo "$gl_cv_next_langinfo_h" >&6; }
15021 NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
15023 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15024 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15025 gl_next_as_first_directive='<'langinfo.h'>'
15027 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15028 gl_next_as_first_directive=$gl_cv_next_langinfo_h
15030 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
15035 HAVE_LANGINFO_CODESET=0
15036 HAVE_LANGINFO_ERA=0
15044 if test $ac_cv_header_langinfo_h = yes; then
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
15047 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
15048 if ${gl_cv_header_langinfo_codeset+:} false; then :
15049 $as_echo_n "(cached) " >&6
15051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15052 /* end confdefs.h. */
15053 #include <langinfo.h>
15064 if ac_fn_c_try_compile "$LINENO"; then :
15065 gl_cv_header_langinfo_codeset=yes
15067 gl_cv_header_langinfo_codeset=no
15069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
15073 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
15074 if test $gl_cv_header_langinfo_codeset = yes; then
15075 HAVE_LANGINFO_CODESET=1
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
15078 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
15079 if ${gl_cv_header_langinfo_era+:} false; then :
15080 $as_echo_n "(cached) " >&6
15082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15083 /* end confdefs.h. */
15084 #include <langinfo.h>
15095 if ac_fn_c_try_compile "$LINENO"; then :
15096 gl_cv_header_langinfo_era=yes
15098 gl_cv_header_langinfo_era=no
15100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
15104 $as_echo "$gl_cv_header_langinfo_era" >&6; }
15105 if test $gl_cv_header_langinfo_era = yes; then
15106 HAVE_LANGINFO_ERA=1
15116 for gl_func in nl_langinfo; do
15117 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15119 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15120 if eval \${$as_gl_Symbol+:} false; then :
15121 $as_echo_n "(cached) " >&6
15123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15124 /* end confdefs.h. */
15125 #include <langinfo.h>
15136 if ac_fn_c_try_compile "$LINENO"; then :
15137 eval "$as_gl_Symbol=yes"
15139 eval "$as_gl_Symbol=no"
15141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15143 eval ac_res=\$$as_gl_Symbol
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15145 $as_echo "$ac_res" >&6; }
15146 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
15147 cat >>confdefs.h <<_ACEOF
15148 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15151 eval ac_cv_have_decl_$gl_func=yes
15156 # Code from module localcharset:
15171 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
15173 # Code from module lock:
15176 if test "$gl_threads_api" = posix; then
15177 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
15178 # pthread_rwlock_* functions.
15179 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
15181 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
15183 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
15187 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
15188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189 /* end confdefs.h. */
15191 #include <pthread.h>
15196 #if __FreeBSD__ == 4
15197 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
15199 int x = (int)PTHREAD_MUTEX_RECURSIVE;
15207 if ac_fn_c_try_compile "$LINENO"; then :
15209 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
15212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15218 # Code from module lseek:
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
15223 $as_echo_n "checking whether lseek detects pipes... " >&6; }
15224 if ${gl_cv_func_lseek_pipe+:} false; then :
15225 $as_echo_n "(cached) " >&6
15227 if test $cross_compiling = no; then
15228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229 /* end confdefs.h. */
15231 #include <sys/types.h> /* for off_t */
15232 #include <stdio.h> /* for SEEK_CUR */
15233 #include <unistd.h>
15238 /* Exit with success only if stdin is seekable. */
15239 return lseek (0, (off_t)0, SEEK_CUR) < 0;
15245 if ac_fn_c_try_link "$LINENO"; then :
15246 if test -s conftest$ac_exeext \
15247 && ./conftest$ac_exeext < conftest.$ac_ext \
15248 && test 1 = "`echo hi \
15249 | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
15250 gl_cv_func_lseek_pipe=yes
15252 gl_cv_func_lseek_pipe=no
15255 gl_cv_func_lseek_pipe=no
15257 rm -f core conftest.err conftest.$ac_objext \
15258 conftest$ac_exeext conftest.$ac_ext
15260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15261 /* end confdefs.h. */
15263 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
15264 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes. */
15268 if ac_fn_c_try_compile "$LINENO"; then :
15269 gl_cv_func_lseek_pipe=yes
15271 gl_cv_func_lseek_pipe=no
15273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
15277 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
15278 if test $gl_cv_func_lseek_pipe = no; then
15288 gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
15293 $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
15305 $as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
15309 # Code from module lstat:
15319 if test $ac_cv_func_lstat = yes; then
15321 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
15324 # Prerequisites of lib/lstat.c.
15337 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
15341 # Code from module malloc-gnu:
15344 for ac_header in stdlib.h
15346 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15347 if test "x$ac_cv_header_stdlib_h" = xyes; then :
15348 cat >>confdefs.h <<_ACEOF
15349 #define HAVE_STDLIB_H 1
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15357 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15358 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
15359 $as_echo_n "(cached) " >&6
15361 if test "$cross_compiling" = yes; then :
15362 ac_cv_func_malloc_0_nonnull=no
15364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15365 /* end confdefs.h. */
15366 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15367 # include <stdlib.h>
15375 return ! malloc (0);
15380 if ac_fn_c_try_run "$LINENO"; then :
15381 ac_cv_func_malloc_0_nonnull=yes
15383 ac_cv_func_malloc_0_nonnull=no
15385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15386 conftest.$ac_objext conftest.beam conftest.$ac_ext
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15391 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15392 if test $ac_cv_func_malloc_0_nonnull = yes; then :
15394 $as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h
15397 $as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h
15408 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
15418 cat >>confdefs.h <<_ACEOF
15419 #define GNULIB_MALLOC_GNU 1
15423 # Code from module malloc-posix:
15427 if test $gl_cv_func_malloc_posix = yes; then
15429 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
15441 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
15450 GNULIB_MALLOC_POSIX=1
15454 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
15458 # Code from module mbrtowc:
15481 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15486 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15487 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
15488 $as_echo_n "(cached) " >&6
15492 # Guess no on AIX and OSF/1.
15493 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15494 # Guess yes otherwise.
15495 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15497 if test $LOCALE_JA != none; then
15498 if test "$cross_compiling" = yes; then :
15501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15502 /* end confdefs.h. */
15504 #include <locale.h>
15505 #include <string.h>
15509 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15511 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15515 memset (&state, '\0', sizeof (mbstate_t));
15516 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15517 if (mbsinit (&state))
15523 if ac_fn_c_try_run "$LINENO"; then :
15524 gl_cv_func_mbrtowc_incomplete_state=yes
15526 gl_cv_func_mbrtowc_incomplete_state=no
15528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15529 conftest.$ac_objext conftest.beam conftest.$ac_ext
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15536 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15542 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15543 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
15544 $as_echo_n "(cached) " >&6
15548 # Guess no on Solaris 8.
15549 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15550 # Guess yes otherwise.
15551 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15553 if test $LOCALE_ZH_CN != none; then
15554 if test "$cross_compiling" = yes; then :
15557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15558 /* end confdefs.h. */
15560 #include <locale.h>
15561 #include <stdlib.h>
15562 #include <string.h>
15566 /* This fails on Solaris 8:
15567 mbrtowc returns 2, and sets wc to 0x00F0.
15568 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15569 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15571 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15575 memset (&state, '\0', sizeof (mbstate_t));
15576 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15577 && mbtowc (&wc, input + 3, 6) == 4)
15583 if ac_fn_c_try_run "$LINENO"; then :
15584 gl_cv_func_mbrtowc_sanitycheck=yes
15586 gl_cv_func_mbrtowc_sanitycheck=no
15588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15589 conftest.$ac_objext conftest.beam conftest.$ac_ext
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15596 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15598 REPLACE_MBSTATE_T=0
15599 case "$gl_cv_func_mbrtowc_incomplete_state" in
15601 *) REPLACE_MBSTATE_T=1 ;;
15603 case "$gl_cv_func_mbrtowc_sanitycheck" in
15605 *) REPLACE_MBSTATE_T=1 ;;
15608 REPLACE_MBSTATE_T=1
15610 if test $REPLACE_MBSTATE_T = 1; then
15624 if test $ac_cv_func_mbrtowc = no; then
15627 if test $REPLACE_MBSTATE_T = 1; then
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
15634 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
15635 if ${gl_cv_func_mbrtowc_null_arg+:} false; then :
15636 $as_echo_n "(cached) " >&6
15640 # Guess no on OSF/1.
15641 osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
15642 # Guess yes otherwise.
15643 *) gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
15645 if test $LOCALE_FR_UTF8 != none; then
15646 if test "$cross_compiling" = yes; then :
15649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15650 /* end confdefs.h. */
15652 #include <locale.h>
15653 #include <string.h>
15657 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15663 memset (&state, '\0', sizeof (mbstate_t));
15664 wc = (wchar_t) 0xBADFACE;
15665 mbrtowc (&wc, NULL, 5, &state);
15666 /* Check that wc was not modified. */
15667 if (wc != (wchar_t) 0xBADFACE)
15673 if ac_fn_c_try_run "$LINENO"; then :
15674 gl_cv_func_mbrtowc_null_arg=yes
15676 gl_cv_func_mbrtowc_null_arg=no
15678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15679 conftest.$ac_objext conftest.beam conftest.$ac_ext
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg" >&5
15686 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
15693 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
15694 if ${gl_cv_func_mbrtowc_retval+:} false; then :
15695 $as_echo_n "(cached) " >&6
15699 # Guess no on HP-UX and Solaris.
15700 hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
15701 # Guess yes otherwise.
15702 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
15704 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
15705 if test "$cross_compiling" = yes; then :
15708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15709 /* end confdefs.h. */
15711 #include <locale.h>
15712 #include <string.h>
15716 /* This fails on Solaris. */
15717 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15719 char input[] = "B\303\274\303\237er"; /* "Büßer" */
15723 memset (&state, '\0', sizeof (mbstate_t));
15724 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15727 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
15731 /* This fails on HP-UX 11.11. */
15732 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15734 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15738 memset (&state, '\0', sizeof (mbstate_t));
15739 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15742 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
15749 if ac_fn_c_try_run "$LINENO"; then :
15750 gl_cv_func_mbrtowc_retval=yes
15752 gl_cv_func_mbrtowc_retval=no
15754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15755 conftest.$ac_objext conftest.beam conftest.$ac_ext
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
15762 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
15768 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
15769 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
15770 $as_echo_n "(cached) " >&6
15774 # Guess no on Solaris 8 and 9.
15775 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
15776 # Guess yes otherwise.
15777 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
15779 if test $LOCALE_ZH_CN != none; then
15780 if test "$cross_compiling" = yes; then :
15783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15784 /* end confdefs.h. */
15786 #include <locale.h>
15787 #include <string.h>
15791 /* This fails on Solaris 8 and 9. */
15792 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15797 memset (&state, '\0', sizeof (mbstate_t));
15798 if (mbrtowc (&wc, "", 1, &state) != 0)
15804 if ac_fn_c_try_run "$LINENO"; then :
15805 gl_cv_func_mbrtowc_nul_retval=yes
15807 gl_cv_func_mbrtowc_nul_retval=no
15809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15810 conftest.$ac_objext conftest.beam conftest.$ac_ext
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
15817 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
15819 case "$gl_cv_func_mbrtowc_null_arg" in
15822 $as_echo "#define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h
15827 case "$gl_cv_func_mbrtowc_retval" in
15830 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
15835 case "$gl_cv_func_mbrtowc_nul_retval" in
15838 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
15845 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
15857 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
15871 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
15875 # Code from module mbsinit:
15898 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15903 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15904 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
15905 $as_echo_n "(cached) " >&6
15909 # Guess no on AIX and OSF/1.
15910 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15911 # Guess yes otherwise.
15912 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15914 if test $LOCALE_JA != none; then
15915 if test "$cross_compiling" = yes; then :
15918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15919 /* end confdefs.h. */
15921 #include <locale.h>
15922 #include <string.h>
15926 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15928 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15932 memset (&state, '\0', sizeof (mbstate_t));
15933 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15934 if (mbsinit (&state))
15940 if ac_fn_c_try_run "$LINENO"; then :
15941 gl_cv_func_mbrtowc_incomplete_state=yes
15943 gl_cv_func_mbrtowc_incomplete_state=no
15945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15946 conftest.$ac_objext conftest.beam conftest.$ac_ext
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15953 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15959 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15960 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
15961 $as_echo_n "(cached) " >&6
15965 # Guess no on Solaris 8.
15966 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15967 # Guess yes otherwise.
15968 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15970 if test $LOCALE_ZH_CN != none; then
15971 if test "$cross_compiling" = yes; then :
15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975 /* end confdefs.h. */
15977 #include <locale.h>
15978 #include <stdlib.h>
15979 #include <string.h>
15983 /* This fails on Solaris 8:
15984 mbrtowc returns 2, and sets wc to 0x00F0.
15985 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15986 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15988 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15992 memset (&state, '\0', sizeof (mbstate_t));
15993 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15994 && mbtowc (&wc, input + 3, 6) == 4)
16000 if ac_fn_c_try_run "$LINENO"; then :
16001 gl_cv_func_mbrtowc_sanitycheck=yes
16003 gl_cv_func_mbrtowc_sanitycheck=no
16005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16006 conftest.$ac_objext conftest.beam conftest.$ac_ext
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
16013 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
16015 REPLACE_MBSTATE_T=0
16016 case "$gl_cv_func_mbrtowc_incomplete_state" in
16018 *) REPLACE_MBSTATE_T=1 ;;
16020 case "$gl_cv_func_mbrtowc_sanitycheck" in
16022 *) REPLACE_MBSTATE_T=1 ;;
16025 REPLACE_MBSTATE_T=1
16027 if test $REPLACE_MBSTATE_T = 1; then
16041 if test $ac_cv_func_mbsinit = no; then
16044 if test $REPLACE_MBSTATE_T = 1; then
16048 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
16060 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
16074 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
16078 # Code from module memchr:
16087 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
16091 # Code from module mkdtemp:
16102 for ac_func in mkdtemp
16104 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
16105 if test "x$ac_cv_func_mkdtemp" = xyes; then :
16106 cat >>confdefs.h <<_ACEOF
16107 #define HAVE_MKDTEMP 1
16112 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
16118 if test $ac_cv_func_mkdtemp = no; then
16131 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
16135 # Code from module multiarch:
16137 # Code from module netdb:
16159 if test $gl_cv_have_include_next = yes; then
16160 gl_cv_next_netdb_h='<'netdb.h'>'
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
16163 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
16164 if ${gl_cv_next_netdb_h+:} false; then :
16165 $as_echo_n "(cached) " >&6
16168 if test $ac_cv_header_netdb_h = yes; then
16169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16170 /* end confdefs.h. */
16175 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16176 *) gl_absname_cpp="$ac_cpp" ;;
16178 gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16179 sed -n '\#/netdb.h#{
16180 s#.*"\(.*/netdb.h\)".*#\1#
16186 gl_cv_next_netdb_h='<'netdb.h'>'
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
16191 $as_echo "$gl_cv_next_netdb_h" >&6; }
16193 NEXT_NETDB_H=$gl_cv_next_netdb_h
16195 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16196 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16197 gl_next_as_first_directive='<'netdb.h'>'
16199 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16200 gl_next_as_first_directive=$gl_cv_next_netdb_h
16202 NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
16206 if test $ac_cv_header_netdb_h = yes; then
16214 for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
16215 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16217 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16218 if eval \${$as_gl_Symbol+:} false; then :
16219 $as_echo_n "(cached) " >&6
16221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16222 /* end confdefs.h. */
16233 if ac_fn_c_try_compile "$LINENO"; then :
16234 eval "$as_gl_Symbol=yes"
16236 eval "$as_gl_Symbol=no"
16238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16240 eval ac_res=\$$as_gl_Symbol
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16242 $as_echo "$ac_res" >&6; }
16243 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
16244 cat >>confdefs.h <<_ACEOF
16245 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16248 eval ac_cv_have_decl_$gl_func=yes
16253 # Code from module netinet_in:
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
16256 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
16257 if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
16258 $as_echo_n "(cached) " >&6
16261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16262 /* end confdefs.h. */
16263 #include <netinet/in.h>
16272 if ac_fn_c_try_compile "$LINENO"; then :
16273 gl_cv_header_netinet_in_h_selfcontained=yes
16275 gl_cv_header_netinet_in_h_selfcontained=no
16277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
16281 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
16282 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
16285 NETINET_IN_H='netinet/in.h'
16286 for ac_header in netinet/in.h
16288 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16289 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
16290 cat >>confdefs.h <<_ACEOF
16291 #define HAVE_NETINET_IN_H 1
16310 if test $gl_cv_have_include_next = yes; then
16311 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
16314 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
16315 if ${gl_cv_next_netinet_in_h+:} false; then :
16316 $as_echo_n "(cached) " >&6
16319 if test $ac_cv_header_netinet_in_h = yes; then
16320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16321 /* end confdefs.h. */
16322 #include <netinet/in.h>
16326 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16327 *) gl_absname_cpp="$ac_cpp" ;;
16329 gl_cv_next_netinet_in_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16330 sed -n '\#/netinet/in.h#{
16331 s#.*"\(.*/netinet/in.h\)".*#\1#
16337 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
16342 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
16344 NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
16346 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16347 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16348 gl_next_as_first_directive='<'netinet/in.h'>'
16350 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16351 gl_next_as_first_directive=$gl_cv_next_netinet_in_h
16353 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
16357 if test $ac_cv_header_netinet_in_h = yes; then
16358 HAVE_NETINET_IN_H=1
16360 HAVE_NETINET_IN_H=0
16367 # Code from module nl_langinfo:
16378 if test $ac_cv_func_nl_langinfo = yes; then
16379 if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
16382 REPLACE_NL_LANGINFO=1
16384 $as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
16394 gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
16407 gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
16414 GNULIB_NL_LANGINFO=1
16418 $as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
16422 # Code from module physmem:
16432 gl_LIBOBJS="$gl_LIBOBJS physmem.$ac_objext"
16435 # Prerequisites of lib/physmem.c.
16436 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
16437 machine/hal_sysinfo.h sys/table.h sys/param.h sys/systemcfg.h
16439 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16440 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16442 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16443 cat >>confdefs.h <<_ACEOF
16444 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16451 for ac_header in sys/sysctl.h
16453 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
16454 #if HAVE_SYS_PARAM_H
16455 # include <sys/param.h>
16459 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
16460 cat >>confdefs.h <<_ACEOF
16461 #define HAVE_SYS_SYSCTL_H 1
16469 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
16471 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16472 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16473 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16474 cat >>confdefs.h <<_ACEOF
16475 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16483 # Code from module regex:
16494 # Check whether --with-included-regex was given.
16495 if test "${with_included_regex+set}" = set; then :
16496 withval=$with_included_regex;
16500 case $with_included_regex in #(
16501 yes|no) ac_use_included_regex=$with_included_regex
16504 # If the system regex support is good enough that it passes the
16505 # following run test, then default to *not* using the included regex.c.
16506 # If cross compiling, assume the test would fail and use the included
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
16509 $as_echo_n "checking for working re_compile_pattern... " >&6; }
16510 if ${gl_cv_func_re_compile_pattern_working+:} false; then :
16511 $as_echo_n "(cached) " >&6
16513 if test "$cross_compiling" = yes; then :
16514 gl_cv_func_re_compile_pattern_working=no
16516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16517 /* end confdefs.h. */
16518 $ac_includes_default
16520 #include <locale.h>
16522 #include <limits.h>
16528 static struct re_pattern_buffer regex;
16529 unsigned char folded_chars[UCHAR_MAX + 1];
16532 struct re_registers regs;
16535 /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
16536 This test needs valgrind to catch the bug on Debian
16537 GNU/Linux 3.1 x86, but it might catch the bug better
16538 on other platforms and it shouldn't hurt to try the
16540 if (setlocale (LC_ALL, "en_US.UTF-8"))
16542 static char const pat[] = "insert into";
16543 static char const data[] =
16544 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
16545 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
16547 memset (®ex, 0, sizeof regex);
16548 s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
16551 if (re_search (®ex, data, sizeof data - 1,
16552 0, sizeof data - 1, ®s)
16555 if (! setlocale (LC_ALL, "C"))
16560 /* This test is from glibc bug 3957, reported by Andrew Mackey. */
16561 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
16562 memset (®ex, 0, sizeof regex);
16563 s = re_compile_pattern ("a[^x]b", 6, ®ex);
16567 /* This should fail, but succeeds for glibc-2.5. */
16568 if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1)
16571 /* This regular expression is from Spencer ere test number 75
16573 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
16574 memset (®ex, 0, sizeof regex);
16575 for (i = 0; i <= UCHAR_MAX; i++)
16576 folded_chars[i] = i;
16577 regex.translate = folded_chars;
16578 s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex);
16579 /* This should fail with _Invalid character class name_ error. */
16583 /* Ensure that [b-a] is diagnosed as invalid, when
16584 using RE_NO_EMPTY_RANGES. */
16585 re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
16586 memset (®ex, 0, sizeof regex);
16587 s = re_compile_pattern ("a[b-a]", 6, ®ex);
16591 /* This should succeed, but does not for glibc-2.1.3. */
16592 memset (®ex, 0, sizeof regex);
16593 s = re_compile_pattern ("{1", 2, ®ex);
16598 /* The following example is derived from a problem report
16599 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
16600 memset (®ex, 0, sizeof regex);
16601 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
16605 /* This should match, but does not for glibc-2.2.1. */
16606 if (re_match (®ex, "an", 2, 0, ®s) != 2)
16609 memset (®ex, 0, sizeof regex);
16610 s = re_compile_pattern ("x", 1, ®ex);
16614 /* glibc-2.2.93 does not work with a negative RANGE argument. */
16615 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
16618 /* The version of regex.c in older versions of gnulib
16619 ignored RE_ICASE. Detect that problem too. */
16620 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
16621 memset (®ex, 0, sizeof regex);
16622 s = re_compile_pattern ("x", 1, ®ex);
16626 if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
16629 /* Catch a bug reported by Vin Shelton in
16630 http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
16632 re_set_syntax (RE_SYNTAX_POSIX_BASIC
16633 & ~RE_CONTEXT_INVALID_DUP
16634 & ~RE_NO_EMPTY_RANGES);
16635 memset (®ex, 0, sizeof regex);
16636 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex);
16640 /* REG_STARTEND was added to glibc on 2004-01-15.
16641 Reject older versions. */
16642 if (! REG_STARTEND)
16645 /* Reject hosts whose regoff_t values are too narrow.
16646 These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
16648 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
16649 || sizeof (regoff_t) < sizeof (ssize_t))
16657 if ac_fn_c_try_run "$LINENO"; then :
16658 gl_cv_func_re_compile_pattern_working=yes
16660 gl_cv_func_re_compile_pattern_working=no
16662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16663 conftest.$ac_objext conftest.beam conftest.$ac_ext
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
16668 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
16669 case $gl_cv_func_re_compile_pattern_working in #(
16670 yes) ac_use_included_regex=no;; #(
16671 no) ac_use_included_regex=yes;;
16674 *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
16678 if test $ac_use_included_regex = yes; then
16680 $as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
16683 $as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
16686 $as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
16689 $as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
16692 $as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
16695 $as_echo "#define re_search rpl_re_search" >>confdefs.h
16698 $as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
16701 $as_echo "#define re_match rpl_re_match" >>confdefs.h
16704 $as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
16707 $as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
16710 $as_echo "#define re_comp rpl_re_comp" >>confdefs.h
16713 $as_echo "#define re_exec rpl_re_exec" >>confdefs.h
16716 $as_echo "#define regcomp rpl_regcomp" >>confdefs.h
16719 $as_echo "#define regexec rpl_regexec" >>confdefs.h
16722 $as_echo "#define regerror rpl_regerror" >>confdefs.h
16725 $as_echo "#define regfree rpl_regfree" >>confdefs.h
16735 gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
16742 for ac_header in libintl.h
16744 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
16745 if test "x$ac_cv_header_libintl_h" = xyes; then :
16746 cat >>confdefs.h <<_ACEOF
16747 #define HAVE_LIBINTL_H 1
16767 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16769 if test "x$ac_cv_have_decl_isblank" = xyes; then :
16775 cat >>confdefs.h <<_ACEOF
16776 #define HAVE_DECL_ISBLANK $ac_have_decl
16782 # Code from module safe-read:
16792 gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
16799 # Code from module safe-write:
16809 gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
16818 # Code from module servent:
16821 gl_saved_libs="$LIBS"
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
16823 $as_echo_n "checking for library containing getservbyname... " >&6; }
16824 if ${ac_cv_search_getservbyname+:} false; then :
16825 $as_echo_n "(cached) " >&6
16827 ac_func_search_save_LIBS=$LIBS
16828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16829 /* end confdefs.h. */
16831 /* Override any GCC internal prototype to avoid an error.
16832 Use char because int might match the return type of a GCC
16833 builtin and then its argument prototype would still apply. */
16837 char getservbyname ();
16841 return getservbyname ();
16846 for ac_lib in '' socket network net; do
16847 if test -z "$ac_lib"; then
16848 ac_res="none required"
16851 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16853 if ac_fn_c_try_link "$LINENO"; then :
16854 ac_cv_search_getservbyname=$ac_res
16856 rm -f core conftest.err conftest.$ac_objext \
16858 if ${ac_cv_search_getservbyname+:} false; then :
16862 if ${ac_cv_search_getservbyname+:} false; then :
16865 ac_cv_search_getservbyname=no
16867 rm conftest.$ac_ext
16868 LIBS=$ac_func_search_save_LIBS
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
16871 $as_echo "$ac_cv_search_getservbyname" >&6; }
16872 ac_res=$ac_cv_search_getservbyname
16873 if test "$ac_res" != no; then :
16874 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16875 if test "$ac_cv_search_getservbyname" != "none required"; then
16876 SERVENT_LIB="$ac_cv_search_getservbyname"
16880 LIBS="$gl_saved_libs"
16881 if test -z "$SERVENT_LIB"; then
16882 for ac_func in getservbyname
16884 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
16885 if test "x$ac_cv_func_getservbyname" = xyes; then :
16886 cat >>confdefs.h <<_ACEOF
16887 #define HAVE_GETSERVBYNAME 1
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
16893 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
16894 if ${gl_cv_w32_getservbyname+:} false; then :
16895 $as_echo_n "(cached) " >&6
16897 gl_cv_w32_getservbyname=no
16898 gl_save_LIBS="$LIBS"
16899 LIBS="$LIBS -lws2_32"
16900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16901 /* end confdefs.h. */
16903 #ifdef HAVE_WINSOCK2_H
16904 #include <winsock2.h>
16906 #include <stddef.h>
16911 getservbyname(NULL,NULL);
16916 if ac_fn_c_try_link "$LINENO"; then :
16917 gl_cv_w32_getservbyname=yes
16919 rm -f core conftest.err conftest.$ac_objext \
16920 conftest$ac_exeext conftest.$ac_ext
16921 LIBS="$gl_save_LIBS"
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
16925 $as_echo "$gl_cv_w32_getservbyname" >&6; }
16926 if test "$gl_cv_w32_getservbyname" = "yes"; then
16927 SERVENT_LIB="-lws2_32"
16936 # Code from module size_max:
16938 for ac_header in stdint.h
16940 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
16941 if test "x$ac_cv_header_stdint_h" = xyes; then :
16942 cat >>confdefs.h <<_ACEOF
16943 #define HAVE_STDINT_H 1
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
16951 $as_echo_n "checking for SIZE_MAX... " >&6; }
16953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16954 /* end confdefs.h. */
16956 #include <limits.h>
16958 #include <stdint.h>
16965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16966 $EGREP "Found it" >/dev/null 2>&1; then :
16971 if test -z "$result"; then
16972 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
16973 #include <limits.h>"; then :
16976 size_t_bits_minus_1=
16980 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
16987 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
16988 if test $fits_in_uint = 1; then
16989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16990 /* end confdefs.h. */
16991 #include <stddef.h>
16993 extern unsigned long foo;
17003 if ac_fn_c_try_compile "$LINENO"; then :
17006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17008 if test $fits_in_uint = 1; then
17009 result="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
17011 result="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
17014 result='((size_t)~(size_t)0)'
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
17018 $as_echo "$result" >&6; }
17019 if test "$result" != yes; then
17021 cat >>confdefs.h <<_ACEOF
17022 #define SIZE_MAX $result
17027 # Code from module snprintf:
17030 gl_cv_func_snprintf_usable=no
17031 for ac_func in snprintf
17033 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
17034 if test "x$ac_cv_func_snprintf" = xyes; then :
17035 cat >>confdefs.h <<_ACEOF
17036 #define HAVE_SNPRINTF 1
17042 if test $ac_cv_func_snprintf = yes; then
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
17046 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
17047 if ${gl_cv_func_snprintf_size1+:} false; then :
17048 $as_echo_n "(cached) " >&6
17051 if test "$cross_compiling" = yes; then :
17052 gl_cv_func_snprintf_size1="guessing yes"
17054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17055 /* end confdefs.h. */
17060 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
17061 snprintf (buf, 1, "%d", 12345);
17062 return buf[1] != 'E';
17065 if ac_fn_c_try_run "$LINENO"; then :
17066 gl_cv_func_snprintf_size1=yes
17068 gl_cv_func_snprintf_size1=no
17070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17071 conftest.$ac_objext conftest.beam conftest.$ac_ext
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
17077 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
17079 case "$gl_cv_func_snprintf_size1" in
17081 gl_cv_func_snprintf_usable=yes
17085 if test $gl_cv_func_snprintf_usable = no; then
17096 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
17098 if test $ac_cv_func_snprintf = yes; then
17111 if test $ac_cv_have_decl_snprintf = no; then
17112 HAVE_DECL_SNPRINTF=0
17122 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
17126 # Code from module socklen:
17127 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
17128 #if HAVE_SYS_SOCKET_H
17129 # include <sys/socket.h>
17130 #elif HAVE_WS2TCPIP_H
17131 # include <ws2tcpip.h>
17134 if test "x$ac_cv_type_socklen_t" = xyes; then :
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
17138 $as_echo_n "checking for socklen_t equivalent... " >&6; }
17139 if ${gl_cv_socklen_t_equiv+:} false; then :
17140 $as_echo_n "(cached) " >&6
17142 # Systems have either "struct sockaddr *" or
17143 # "void *" as the second argument to getpeername
17144 gl_cv_socklen_t_equiv=
17145 for arg2 in "struct sockaddr" void; do
17146 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
17147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17148 /* end confdefs.h. */
17149 #include <sys/types.h>
17150 #include <sys/socket.h>
17152 int getpeername (int, $arg2 *, $t *);
17157 getpeername (0, 0, &len);
17162 if ac_fn_c_try_compile "$LINENO"; then :
17163 gl_cv_socklen_t_equiv="$t"
17165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17166 test "$gl_cv_socklen_t_equiv" != "" && break
17168 test "$gl_cv_socklen_t_equiv" != "" && break
17173 if test "$gl_cv_socklen_t_equiv" = ""; then
17174 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
17177 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
17179 cat >>confdefs.h <<_ACEOF
17180 #define socklen_t $gl_cv_socklen_t_equiv
17185 # Code from module ssize_t:
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17188 $as_echo_n "checking for ssize_t... " >&6; }
17189 if ${gt_cv_ssize_t+:} false; then :
17190 $as_echo_n "(cached) " >&6
17192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17193 /* end confdefs.h. */
17194 #include <sys/types.h>
17198 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17204 if ac_fn_c_try_compile "$LINENO"; then :
17209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
17212 $as_echo "$gt_cv_ssize_t" >&6; }
17213 if test $gt_cv_ssize_t = no; then
17215 $as_echo "#define ssize_t int" >>confdefs.h
17219 # Code from module stat:
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
17231 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
17232 if ${gl_cv_func_stat_dir_slash+:} false; then :
17233 $as_echo_n "(cached) " >&6
17235 if test "$cross_compiling" = yes; then :
17237 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
17238 *) gl_cv_func_stat_dir_slash="guessing yes";;
17241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242 /* end confdefs.h. */
17243 #include <sys/stat.h>
17248 struct stat st; return stat (".", &st) != stat ("./", &st);
17253 if ac_fn_c_try_run "$LINENO"; then :
17254 gl_cv_func_stat_dir_slash=yes
17256 gl_cv_func_stat_dir_slash=no
17258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17259 conftest.$ac_objext conftest.beam conftest.$ac_ext
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
17264 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
17266 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
17267 if ${gl_cv_func_stat_file_slash+:} false; then :
17268 $as_echo_n "(cached) " >&6
17271 # Assume that if we have lstat, we can also check symlinks.
17272 if test $ac_cv_func_lstat = yes; then
17273 ln -s conftest.tmp conftest.lnk
17275 if test "$cross_compiling" = yes; then :
17276 gl_cv_func_stat_file_slash="guessing no"
17278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17279 /* end confdefs.h. */
17280 #include <sys/stat.h>
17286 if (!stat ("conftest.tmp/", &st)) return 1;
17288 if (!stat ("conftest.lnk/", &st)) return 2;
17295 if ac_fn_c_try_run "$LINENO"; then :
17296 gl_cv_func_stat_file_slash=yes
17298 gl_cv_func_stat_file_slash=no
17300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17301 conftest.$ac_objext conftest.beam conftest.$ac_ext
17304 rm -f conftest.tmp conftest.lnk
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
17307 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
17308 case $gl_cv_func_stat_dir_slash in
17309 *no) REPLACE_STAT=1
17311 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
17314 case $gl_cv_func_stat_file_slash in
17315 *no) REPLACE_STAT=1
17317 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
17320 if test $REPLACE_STAT = 1; then
17329 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
17341 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
17345 # Code from module stdbool:
17349 # Define two additional variables used in the Makefile substitution.
17351 if test "$ac_cv_header_stdbool_h" = yes; then
17354 STDBOOL_H='stdbool.h'
17358 if test "$ac_cv_type__Bool" = yes; then
17365 # Code from module stddef:
17369 if test $gt_cv_c_wchar_t = no; then
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
17374 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
17375 if ${gl_cv_decl_null_works+:} false; then :
17376 $as_echo_n "(cached) " >&6
17378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17379 /* end confdefs.h. */
17380 #include <stddef.h>
17381 int test[2 * (sizeof NULL == sizeof (void *)) -1];
17391 if ac_fn_c_try_compile "$LINENO"; then :
17392 gl_cv_decl_null_works=yes
17394 gl_cv_decl_null_works=no
17396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
17399 $as_echo "$gl_cv_decl_null_works" >&6; }
17400 if test $gl_cv_decl_null_works = no; then
17404 if test -n "$STDDEF_H"; then
17417 if test $gl_cv_have_include_next = yes; then
17418 gl_cv_next_stddef_h='<'stddef.h'>'
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
17421 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
17422 if ${gl_cv_next_stddef_h+:} false; then :
17423 $as_echo_n "(cached) " >&6
17426 if test $ac_cv_header_stddef_h = yes; then
17427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17428 /* end confdefs.h. */
17429 #include <stddef.h>
17433 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17434 *) gl_absname_cpp="$ac_cpp" ;;
17436 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17437 sed -n '\#/stddef.h#{
17438 s#.*"\(.*/stddef.h\)".*#\1#
17444 gl_cv_next_stddef_h='<'stddef.h'>'
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
17449 $as_echo "$gl_cv_next_stddef_h" >&6; }
17451 NEXT_STDDEF_H=$gl_cv_next_stddef_h
17453 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17454 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17455 gl_next_as_first_directive='<'stddef.h'>'
17457 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17458 gl_next_as_first_directive=$gl_cv_next_stddef_h
17460 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
17466 # Code from module stdint:
17470 if test $ac_cv_type_long_long_int = yes; then
17471 HAVE_LONG_LONG_INT=1
17473 HAVE_LONG_LONG_INT=0
17477 if test $ac_cv_type_unsigned_long_long_int = yes; then
17478 HAVE_UNSIGNED_LONG_LONG_INT=1
17480 HAVE_UNSIGNED_LONG_LONG_INT=0
17484 if test $ac_cv_header_inttypes_h = yes; then
17491 if test $ac_cv_header_sys_types_h = yes; then
17510 if test $gl_cv_have_include_next = yes; then
17511 gl_cv_next_stdint_h='<'stdint.h'>'
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17514 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17515 if ${gl_cv_next_stdint_h+:} false; then :
17516 $as_echo_n "(cached) " >&6
17519 if test $ac_cv_header_stdint_h = yes; then
17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17521 /* end confdefs.h. */
17522 #include <stdint.h>
17526 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17527 *) gl_absname_cpp="$ac_cpp" ;;
17529 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17530 sed -n '\#/stdint.h#{
17531 s#.*"\(.*/stdint.h\)".*#\1#
17537 gl_cv_next_stdint_h='<'stdint.h'>'
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17542 $as_echo "$gl_cv_next_stdint_h" >&6; }
17544 NEXT_STDINT_H=$gl_cv_next_stdint_h
17546 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17547 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17548 gl_next_as_first_directive='<'stdint.h'>'
17550 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17551 gl_next_as_first_directive=$gl_cv_next_stdint_h
17553 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17557 if test $ac_cv_header_stdint_h = yes; then
17564 if test $ac_cv_header_stdint_h = yes; then
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17566 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17567 if ${gl_cv_header_working_stdint_h+:} false; then :
17568 $as_echo_n "(cached) " >&6
17570 gl_cv_header_working_stdint_h=no
17571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17572 /* end confdefs.h. */
17575 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17576 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17577 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17578 #include <stdint.h>
17579 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17580 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17581 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17585 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17586 included before <wchar.h>. */
17587 #include <stddef.h>
17588 #include <signal.h>
17590 # include <stdio.h>
17592 # include <wchar.h>
17597 int8_t a1 = INT8_MAX;
17598 int8_t a1min = INT8_MIN;
17601 int16_t a2 = INT16_MAX;
17602 int16_t a2min = INT16_MIN;
17605 int32_t a3 = INT32_MAX;
17606 int32_t a3min = INT32_MIN;
17609 int64_t a4 = INT64_MAX;
17610 int64_t a4min = INT64_MIN;
17613 uint8_t b1 = UINT8_MAX;
17615 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17618 uint16_t b2 = UINT16_MAX;
17621 uint32_t b3 = UINT32_MAX;
17624 uint64_t b4 = UINT64_MAX;
17626 int_least8_t c1 = INT8_C (0x7f);
17627 int_least8_t c1max = INT_LEAST8_MAX;
17628 int_least8_t c1min = INT_LEAST8_MIN;
17629 int_least16_t c2 = INT16_C (0x7fff);
17630 int_least16_t c2max = INT_LEAST16_MAX;
17631 int_least16_t c2min = INT_LEAST16_MIN;
17632 int_least32_t c3 = INT32_C (0x7fffffff);
17633 int_least32_t c3max = INT_LEAST32_MAX;
17634 int_least32_t c3min = INT_LEAST32_MIN;
17635 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17636 int_least64_t c4max = INT_LEAST64_MAX;
17637 int_least64_t c4min = INT_LEAST64_MIN;
17638 uint_least8_t d1 = UINT8_C (0xff);
17639 uint_least8_t d1max = UINT_LEAST8_MAX;
17640 uint_least16_t d2 = UINT16_C (0xffff);
17641 uint_least16_t d2max = UINT_LEAST16_MAX;
17642 uint_least32_t d3 = UINT32_C (0xffffffff);
17643 uint_least32_t d3max = UINT_LEAST32_MAX;
17644 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17645 uint_least64_t d4max = UINT_LEAST64_MAX;
17646 int_fast8_t e1 = INT_FAST8_MAX;
17647 int_fast8_t e1min = INT_FAST8_MIN;
17648 int_fast16_t e2 = INT_FAST16_MAX;
17649 int_fast16_t e2min = INT_FAST16_MIN;
17650 int_fast32_t e3 = INT_FAST32_MAX;
17651 int_fast32_t e3min = INT_FAST32_MIN;
17652 int_fast64_t e4 = INT_FAST64_MAX;
17653 int_fast64_t e4min = INT_FAST64_MIN;
17654 uint_fast8_t f1 = UINT_FAST8_MAX;
17655 uint_fast16_t f2 = UINT_FAST16_MAX;
17656 uint_fast32_t f3 = UINT_FAST32_MAX;
17657 uint_fast64_t f4 = UINT_FAST64_MAX;
17659 intptr_t g = INTPTR_MAX;
17660 intptr_t gmin = INTPTR_MIN;
17663 uintptr_t h = UINTPTR_MAX;
17665 intmax_t i = INTMAX_MAX;
17666 uintmax_t j = UINTMAX_MAX;
17668 #include <limits.h> /* for CHAR_BIT */
17669 #define TYPE_MINIMUM(t) \
17670 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
17671 #define TYPE_MAXIMUM(t) \
17672 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
17675 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17676 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17678 /* Detect bug in FreeBSD 6.0 / ia64. */
17679 int check_SIG_ATOMIC:
17680 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17681 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17683 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17685 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17686 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17688 /* Detect bug in mingw. */
17690 WINT_MIN == TYPE_MINIMUM (wint_t)
17691 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17694 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17696 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17697 int check_UINT16_C:
17698 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17700 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17702 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17705 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17708 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17711 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17713 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17714 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17715 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17716 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17717 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17718 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17719 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17720 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17721 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17722 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17723 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17734 if ac_fn_c_try_compile "$LINENO"; then :
17735 if test "$cross_compiling" = yes; then :
17736 gl_cv_header_working_stdint_h=yes
17739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17740 /* end confdefs.h. */
17743 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17744 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17745 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17746 #include <stdint.h>
17749 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17750 included before <wchar.h>. */
17751 #include <stddef.h>
17752 #include <signal.h>
17754 # include <stdio.h>
17756 # include <wchar.h>
17761 #include <string.h>
17762 #define MVAL(macro) MVAL1(macro)
17763 #define MVAL1(expression) #expression
17764 static const char *macro_values[] =
17798 for (mv = macro_values; *mv != NULL; mv++)
17800 const char *value = *mv;
17801 /* Test whether it looks like a cast expression. */
17802 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17803 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17804 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17805 || strncmp (value, "((int)"/*)*/, 6) == 0
17806 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17807 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17816 if ac_fn_c_try_run "$LINENO"; then :
17817 gl_cv_header_working_stdint_h=yes
17819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17820 conftest.$ac_objext conftest.beam conftest.$ac_ext
17825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17829 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17831 if test "$gl_cv_header_working_stdint_h" = yes; then
17834 for ac_header in sys/inttypes.h sys/bitypes.h
17836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17837 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17838 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17839 cat >>confdefs.h <<_ACEOF
17840 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17847 if test $ac_cv_header_sys_inttypes_h = yes; then
17848 HAVE_SYS_INTTYPES_H=1
17850 HAVE_SYS_INTTYPES_H=0
17853 if test $ac_cv_header_sys_bitypes_h = yes; then
17854 HAVE_SYS_BITYPES_H=1
17856 HAVE_SYS_BITYPES_H=0
17870 if test $APPLE_UNIVERSAL_BUILD = 0; then
17873 for gltype in ptrdiff_t size_t ; do
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17875 $as_echo_n "checking for bit size of $gltype... " >&6; }
17876 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
17877 $as_echo_n "(cached) " >&6
17879 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17880 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17881 included before <wchar.h>. */
17882 #include <stddef.h>
17883 #include <signal.h>
17885 # include <stdio.h>
17887 # include <wchar.h>
17890 #include <limits.h>"; then :
17896 eval gl_cv_bitsizeof_${gltype}=\$result
17899 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17901 $as_echo "$ac_res" >&6; }
17902 eval result=\$gl_cv_bitsizeof_${gltype}
17903 if test $result = unknown; then
17906 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17907 cat >>confdefs.h <<_ACEOF
17908 #define BITSIZEOF_${GLTYPE} $result
17911 eval BITSIZEOF_${GLTYPE}=\$result
17918 for gltype in sig_atomic_t wchar_t wint_t ; do
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17920 $as_echo_n "checking for bit size of $gltype... " >&6; }
17921 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
17922 $as_echo_n "(cached) " >&6
17924 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17925 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17926 included before <wchar.h>. */
17927 #include <stddef.h>
17928 #include <signal.h>
17930 # include <stdio.h>
17932 # include <wchar.h>
17935 #include <limits.h>"; then :
17941 eval gl_cv_bitsizeof_${gltype}=\$result
17944 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17946 $as_echo "$ac_res" >&6; }
17947 eval result=\$gl_cv_bitsizeof_${gltype}
17948 if test $result = unknown; then
17951 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17952 cat >>confdefs.h <<_ACEOF
17953 #define BITSIZEOF_${GLTYPE} $result
17956 eval BITSIZEOF_${GLTYPE}=\$result
17962 for gltype in sig_atomic_t wchar_t wint_t ; do
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17964 $as_echo_n "checking whether $gltype is signed... " >&6; }
17965 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
17966 $as_echo_n "(cached) " >&6
17968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17969 /* end confdefs.h. */
17971 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17972 included before <wchar.h>. */
17973 #include <stddef.h>
17974 #include <signal.h>
17976 # include <stdio.h>
17978 # include <wchar.h>
17981 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17990 if ac_fn_c_try_compile "$LINENO"; then :
17995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17996 eval gl_cv_type_${gltype}_signed=\$result
17999 eval ac_res=\$gl_cv_type_${gltype}_signed
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18001 $as_echo "$ac_res" >&6; }
18002 eval result=\$gl_cv_type_${gltype}_signed
18003 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18004 if test "$result" = yes; then
18005 cat >>confdefs.h <<_ACEOF
18006 #define HAVE_SIGNED_${GLTYPE} 1
18009 eval HAVE_SIGNED_${GLTYPE}=1
18011 eval HAVE_SIGNED_${GLTYPE}=0
18016 gl_cv_type_ptrdiff_t_signed=yes
18017 gl_cv_type_size_t_signed=no
18018 if test $APPLE_UNIVERSAL_BUILD = 0; then
18021 for gltype in ptrdiff_t size_t ; do
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18023 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18024 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18025 $as_echo_n "(cached) " >&6
18027 eval gl_cv_type_${gltype}_suffix=no
18028 eval result=\$gl_cv_type_${gltype}_signed
18029 if test "$result" = yes; then
18034 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18036 '') gltype1='int';;
18037 l) gltype1='long int';;
18038 ll) gltype1='long long int';;
18039 i64) gltype1='__int64';;
18040 u) gltype1='unsigned int';;
18041 ul) gltype1='unsigned long int';;
18042 ull) gltype1='unsigned long long int';;
18043 ui64)gltype1='unsigned __int64';;
18045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18046 /* end confdefs.h. */
18048 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18049 included before <wchar.h>. */
18050 #include <stddef.h>
18051 #include <signal.h>
18053 # include <stdio.h>
18055 # include <wchar.h>
18058 extern $gltype foo;
18059 extern $gltype1 foo;
18068 if ac_fn_c_try_compile "$LINENO"; then :
18069 eval gl_cv_type_${gltype}_suffix=\$glsuf
18071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18072 eval result=\$gl_cv_type_${gltype}_suffix
18073 test "$result" != no && break
18076 eval ac_res=\$gl_cv_type_${gltype}_suffix
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18078 $as_echo "$ac_res" >&6; }
18079 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18080 eval result=\$gl_cv_type_${gltype}_suffix
18081 test "$result" = no && result=
18082 eval ${GLTYPE}_SUFFIX=\$result
18083 cat >>confdefs.h <<_ACEOF
18084 #define ${GLTYPE}_SUFFIX $result
18093 for gltype in sig_atomic_t wchar_t wint_t ; do
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18095 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18096 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18097 $as_echo_n "(cached) " >&6
18099 eval gl_cv_type_${gltype}_suffix=no
18100 eval result=\$gl_cv_type_${gltype}_signed
18101 if test "$result" = yes; then
18106 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18108 '') gltype1='int';;
18109 l) gltype1='long int';;
18110 ll) gltype1='long long int';;
18111 i64) gltype1='__int64';;
18112 u) gltype1='unsigned int';;
18113 ul) gltype1='unsigned long int';;
18114 ull) gltype1='unsigned long long int';;
18115 ui64)gltype1='unsigned __int64';;
18117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18118 /* end confdefs.h. */
18120 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18121 included before <wchar.h>. */
18122 #include <stddef.h>
18123 #include <signal.h>
18125 # include <stdio.h>
18127 # include <wchar.h>
18130 extern $gltype foo;
18131 extern $gltype1 foo;
18140 if ac_fn_c_try_compile "$LINENO"; then :
18141 eval gl_cv_type_${gltype}_suffix=\$glsuf
18143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18144 eval result=\$gl_cv_type_${gltype}_suffix
18145 test "$result" != no && break
18148 eval ac_res=\$gl_cv_type_${gltype}_suffix
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18150 $as_echo "$ac_res" >&6; }
18151 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18152 eval result=\$gl_cv_type_${gltype}_suffix
18153 test "$result" = no && result=
18154 eval ${GLTYPE}_SUFFIX=\$result
18155 cat >>confdefs.h <<_ACEOF
18156 #define ${GLTYPE}_SUFFIX $result
18167 # Code from module stdio:
18184 if test $gl_cv_have_include_next = yes; then
18185 gl_cv_next_stdio_h='<'stdio.h'>'
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
18188 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
18189 if ${gl_cv_next_stdio_h+:} false; then :
18190 $as_echo_n "(cached) " >&6
18193 if test $ac_cv_header_stdio_h = yes; then
18194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18195 /* end confdefs.h. */
18200 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18201 *) gl_absname_cpp="$ac_cpp" ;;
18203 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18204 sed -n '\#/stdio.h#{
18205 s#.*"\(.*/stdio.h\)".*#\1#
18211 gl_cv_next_stdio_h='<'stdio.h'>'
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
18216 $as_echo "$gl_cv_next_stdio_h" >&6; }
18218 NEXT_STDIO_H=$gl_cv_next_stdio_h
18220 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18221 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18222 gl_next_as_first_directive='<'stdio.h'>'
18224 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18225 gl_next_as_first_directive=$gl_cv_next_stdio_h
18227 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
18244 for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat snprintf tmpfile vdprintf vsnprintf; do
18245 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18247 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18248 if eval \${$as_gl_Symbol+:} false; then :
18249 $as_echo_n "(cached) " >&6
18251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18252 /* end confdefs.h. */
18264 if ac_fn_c_try_compile "$LINENO"; then :
18265 eval "$as_gl_Symbol=yes"
18267 eval "$as_gl_Symbol=no"
18269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18271 eval ac_res=\$$as_gl_Symbol
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18273 $as_echo "$ac_res" >&6; }
18274 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18275 cat >>confdefs.h <<_ACEOF
18276 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18279 eval ac_cv_have_decl_$gl_func=yes
18284 # Code from module stdlib:
18299 if test $gl_cv_have_include_next = yes; then
18300 gl_cv_next_stdlib_h='<'stdlib.h'>'
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
18303 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
18304 if ${gl_cv_next_stdlib_h+:} false; then :
18305 $as_echo_n "(cached) " >&6
18308 if test $ac_cv_header_stdlib_h = yes; then
18309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18310 /* end confdefs.h. */
18311 #include <stdlib.h>
18315 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18316 *) gl_absname_cpp="$ac_cpp" ;;
18318 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18319 sed -n '\#/stdlib.h#{
18320 s#.*"\(.*/stdlib.h\)".*#\1#
18326 gl_cv_next_stdlib_h='<'stdlib.h'>'
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
18331 $as_echo "$gl_cv_next_stdlib_h" >&6; }
18333 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
18335 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18336 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18337 gl_next_as_first_directive='<'stdlib.h'>'
18339 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18340 gl_next_as_first_directive=$gl_cv_next_stdlib_h
18342 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
18346 for ac_header in random.h
18348 ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
18350 if test "x$ac_cv_header_random_h" = xyes; then :
18351 cat >>confdefs.h <<_ACEOF
18352 #define HAVE_RANDOM_H 1
18359 if test $ac_cv_header_random_h = yes; then
18365 ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
18367 # include <random.h>
18371 if test "x$ac_cv_type_struct_random_data" = xyes; then :
18373 cat >>confdefs.h <<_ACEOF
18374 #define HAVE_STRUCT_RANDOM_DATA 1
18379 HAVE_STRUCT_RANDOM_DATA=0
18384 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt unsetenv; do
18385 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18387 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18388 if eval \${$as_gl_Symbol+:} false; then :
18389 $as_echo_n "(cached) " >&6
18391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18392 /* end confdefs.h. */
18393 #include <stdlib.h>
18394 #if HAVE_SYS_LOADAVG_H
18395 # include <sys/loadavg.h>
18398 # include <random.h>
18410 if ac_fn_c_try_compile "$LINENO"; then :
18411 eval "$as_gl_Symbol=yes"
18413 eval "$as_gl_Symbol=no"
18415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18417 eval ac_res=\$$as_gl_Symbol
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18419 $as_echo "$ac_res" >&6; }
18420 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18421 cat >>confdefs.h <<_ACEOF
18422 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18425 eval ac_cv_have_decl_$gl_func=yes
18430 # Code from module streq:
18431 # Code from module string:
18435 # Code from module sys_socket:
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
18441 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
18442 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
18443 $as_echo_n "(cached) " >&6
18446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18447 /* end confdefs.h. */
18448 #include <sys/socket.h>
18457 if ac_fn_c_try_compile "$LINENO"; then :
18458 gl_cv_header_sys_socket_h_selfcontained=yes
18460 gl_cv_header_sys_socket_h_selfcontained=no
18462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
18466 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
18467 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
18468 for ac_func in shutdown
18470 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
18471 if test "x$ac_cv_func_shutdown" = xyes; then :
18472 cat >>confdefs.h <<_ACEOF
18473 #define HAVE_SHUTDOWN 1
18479 if test $ac_cv_func_shutdown = yes; then
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
18481 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
18482 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
18483 $as_echo_n "(cached) " >&6
18486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18487 /* end confdefs.h. */
18488 #include <sys/socket.h>
18492 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
18497 if ac_fn_c_try_compile "$LINENO"; then :
18498 gl_cv_header_sys_socket_h_shut=yes
18500 gl_cv_header_sys_socket_h_shut=no
18502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
18506 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
18507 if test $gl_cv_header_sys_socket_h_shut = no; then
18508 SYS_SOCKET_H='sys/socket.h'
18512 # We need to check for ws2tcpip.h now.
18526 if test $gl_cv_have_include_next = yes; then
18527 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
18530 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
18531 if ${gl_cv_next_sys_socket_h+:} false; then :
18532 $as_echo_n "(cached) " >&6
18535 if test $ac_cv_header_sys_socket_h = yes; then
18536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18537 /* end confdefs.h. */
18538 #include <sys/socket.h>
18542 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18543 *) gl_absname_cpp="$ac_cpp" ;;
18545 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18546 sed -n '\#/sys/socket.h#{
18547 s#.*"\(.*/sys/socket.h\)".*#\1#
18553 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
18558 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
18560 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
18562 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18563 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18564 gl_next_as_first_directive='<'sys/socket.h'>'
18566 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18567 gl_next_as_first_directive=$gl_cv_next_sys_socket_h
18569 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
18573 if test $ac_cv_header_sys_socket_h = yes; then
18574 HAVE_SYS_SOCKET_H=1
18577 HAVE_SYS_SOCKET_H=0
18578 for ac_header in ws2tcpip.h
18580 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18581 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
18582 cat >>confdefs.h <<_ACEOF
18583 #define HAVE_WS2TCPIP_H 1
18590 if test $ac_cv_header_ws2tcpip_h = yes; then
18599 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
18600 /* sys/types.h is not needed according to POSIX, but the
18601 sys/socket.h in i386-unknown-freebsd4.10 and
18602 powerpc-apple-darwin5.5 required it. */
18603 #include <sys/types.h>
18604 #ifdef HAVE_SYS_SOCKET_H
18605 #include <sys/socket.h>
18607 #ifdef HAVE_WS2TCPIP_H
18608 #include <ws2tcpip.h>
18612 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
18614 cat >>confdefs.h <<_ACEOF
18615 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
18620 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
18621 /* sys/types.h is not needed according to POSIX, but the
18622 sys/socket.h in i386-unknown-freebsd4.10 and
18623 powerpc-apple-darwin5.5 required it. */
18624 #include <sys/types.h>
18625 #ifdef HAVE_SYS_SOCKET_H
18626 #include <sys/socket.h>
18628 #ifdef HAVE_WS2TCPIP_H
18629 #include <ws2tcpip.h>
18633 if test "x$ac_cv_type_sa_family_t" = xyes; then :
18635 cat >>confdefs.h <<_ACEOF
18636 #define HAVE_SA_FAMILY_T 1
18642 if test $ac_cv_type_struct_sockaddr_storage = no; then
18643 HAVE_STRUCT_SOCKADDR_STORAGE=0
18645 if test $ac_cv_type_sa_family_t = no; then
18658 if test $ac_cv_header_sys_socket_h != yes; then
18659 for ac_header in winsock2.h
18661 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18662 if test "x$ac_cv_header_winsock2_h" = xyes; then :
18663 cat >>confdefs.h <<_ACEOF
18664 #define HAVE_WINSOCK2_H 1
18672 if test "$ac_cv_header_winsock2_h" = yes; then
18674 UNISTD_H_HAVE_WINSOCK2_H=1
18675 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18683 for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do
18684 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18686 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18687 if eval \${$as_gl_Symbol+:} false; then :
18688 $as_echo_n "(cached) " >&6
18690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18691 /* end confdefs.h. */
18693 /* Some systems require prerequisite headers. */
18694 #include <sys/types.h>
18695 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
18696 # include <sys/time.h>
18698 #include <sys/select.h>
18709 if ac_fn_c_try_compile "$LINENO"; then :
18710 eval "$as_gl_Symbol=yes"
18712 eval "$as_gl_Symbol=no"
18714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18716 eval ac_res=\$$as_gl_Symbol
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18718 $as_echo "$ac_res" >&6; }
18719 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18720 cat >>confdefs.h <<_ACEOF
18721 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18724 eval ac_cv_have_decl_$gl_func=yes
18730 # Code from module sys_stat:
18750 if test $gl_cv_have_include_next = yes; then
18751 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
18754 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
18755 if ${gl_cv_next_sys_stat_h+:} false; then :
18756 $as_echo_n "(cached) " >&6
18759 if test $ac_cv_header_sys_stat_h = yes; then
18760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18761 /* end confdefs.h. */
18762 #include <sys/stat.h>
18766 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18767 *) gl_absname_cpp="$ac_cpp" ;;
18769 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18770 sed -n '\#/sys/stat.h#{
18771 s#.*"\(.*/sys/stat.h\)".*#\1#
18777 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
18782 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
18784 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
18786 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18787 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18788 gl_next_as_first_directive='<'sys/stat.h'>'
18790 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18791 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
18793 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
18798 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
18799 #include <sys/stat.h>
18801 if test "x$ac_cv_type_nlink_t" = xyes; then :
18805 $as_echo "#define nlink_t int" >>confdefs.h
18811 for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
18812 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18814 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18815 if eval \${$as_gl_Symbol+:} false; then :
18816 $as_echo_n "(cached) " >&6
18818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18819 /* end confdefs.h. */
18820 #include <sys/stat.h>
18831 if ac_fn_c_try_compile "$LINENO"; then :
18832 eval "$as_gl_Symbol=yes"
18834 eval "$as_gl_Symbol=no"
18836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18838 eval ac_res=\$$as_gl_Symbol
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18840 $as_echo "$ac_res" >&6; }
18841 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18842 cat >>confdefs.h <<_ACEOF
18843 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18846 eval ac_cv_have_decl_$gl_func=yes
18852 # Code from module sys_time:
18857 # Code from module tempname:
18869 gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
18875 # Code from module threadlib:
18880 # Code from module time:
18884 # Code from module unistd:
18901 if test $gl_cv_have_include_next = yes; then
18902 gl_cv_next_unistd_h='<'unistd.h'>'
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18905 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18906 if ${gl_cv_next_unistd_h+:} false; then :
18907 $as_echo_n "(cached) " >&6
18910 if test $ac_cv_header_unistd_h = yes; then
18911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18912 /* end confdefs.h. */
18913 #include <unistd.h>
18917 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18918 *) gl_absname_cpp="$ac_cpp" ;;
18920 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18921 sed -n '\#/unistd.h#{
18922 s#.*"\(.*/unistd.h\)".*#\1#
18928 gl_cv_next_unistd_h='<'unistd.h'>'
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18933 $as_echo "$gl_cv_next_unistd_h" >&6; }
18935 NEXT_UNISTD_H=$gl_cv_next_unistd_h
18937 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18938 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18939 gl_next_as_first_directive='<'unistd.h'>'
18941 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18942 gl_next_as_first_directive=$gl_cv_next_unistd_h
18944 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18956 if test $ac_cv_header_unistd_h = yes; then
18964 for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell lchown link linkat lseek pipe2 pread pwrite readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
18965 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18967 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18968 if eval \${$as_gl_Symbol+:} false; then :
18969 $as_echo_n "(cached) " >&6
18971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18972 /* end confdefs.h. */
18973 #include <unistd.h>
18974 /* Some systems declare various items in the wrong headers. */
18976 # include <fcntl.h>
18977 # include <stdio.h>
18978 # include <stdlib.h>
18979 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18993 if ac_fn_c_try_compile "$LINENO"; then :
18994 eval "$as_gl_Symbol=yes"
18996 eval "$as_gl_Symbol=no"
18998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19000 eval ac_res=\$$as_gl_Symbol
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19002 $as_echo "$ac_res" >&6; }
19003 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19004 cat >>confdefs.h <<_ACEOF
19005 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19008 eval ac_cv_have_decl_$gl_func=yes
19013 # Code from module vasnprintf:
19022 if test $ac_cv_func_vasnprintf = no; then
19039 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
19049 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
19059 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
19069 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
19071 if test $ac_cv_func_vasnprintf = yes; then
19073 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
19086 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19087 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19091 $as_echo "#define ptrdiff_t long" >>confdefs.h
19104 # Code from module verify:
19105 # Code from module warn-on-use:
19106 # Code from module wchar:
19129 if test $gl_cv_have_include_next = yes; then
19130 gl_cv_next_wchar_h='<'wchar.h'>'
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
19133 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
19134 if ${gl_cv_next_wchar_h+:} false; then :
19135 $as_echo_n "(cached) " >&6
19138 if test $ac_cv_header_wchar_h = yes; then
19139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19140 /* end confdefs.h. */
19145 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19146 *) gl_absname_cpp="$ac_cpp" ;;
19148 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19149 sed -n '\#/wchar.h#{
19150 s#.*"\(.*/wchar.h\)".*#\1#
19156 gl_cv_next_wchar_h='<'wchar.h'>'
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
19161 $as_echo "$gl_cv_next_wchar_h" >&6; }
19163 NEXT_WCHAR_H=$gl_cv_next_wchar_h
19165 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19166 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19167 gl_next_as_first_directive='<'wchar.h'>'
19169 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19170 gl_next_as_first_directive=$gl_cv_next_wchar_h
19172 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
19176 if test $ac_cv_header_wchar_h = yes; then
19184 if test $gt_cv_c_wint_t = yes; then
19192 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
19193 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19195 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19196 if eval \${$as_gl_Symbol+:} false; then :
19197 $as_echo_n "(cached) " >&6
19199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19200 /* end confdefs.h. */
19202 /* Some systems require additional headers. */
19204 # include <stddef.h>
19205 # include <stdio.h>
19219 if ac_fn_c_try_compile "$LINENO"; then :
19220 eval "$as_gl_Symbol=yes"
19222 eval "$as_gl_Symbol=no"
19224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19226 eval ac_res=\$$as_gl_Symbol
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19228 $as_echo "$ac_res" >&6; }
19229 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19230 cat >>confdefs.h <<_ACEOF
19231 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19234 eval ac_cv_have_decl_$gl_func=yes
19239 # Code from module wcrtomb:
19262 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
19267 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
19268 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
19269 $as_echo_n "(cached) " >&6
19273 # Guess no on AIX and OSF/1.
19274 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
19275 # Guess yes otherwise.
19276 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
19278 if test $LOCALE_JA != none; then
19279 if test "$cross_compiling" = yes; then :
19282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19283 /* end confdefs.h. */
19285 #include <locale.h>
19286 #include <string.h>
19290 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19292 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19296 memset (&state, '\0', sizeof (mbstate_t));
19297 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19298 if (mbsinit (&state))
19304 if ac_fn_c_try_run "$LINENO"; then :
19305 gl_cv_func_mbrtowc_incomplete_state=yes
19307 gl_cv_func_mbrtowc_incomplete_state=no
19309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19310 conftest.$ac_objext conftest.beam conftest.$ac_ext
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19317 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19323 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19324 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
19325 $as_echo_n "(cached) " >&6
19329 # Guess no on Solaris 8.
19330 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
19331 # Guess yes otherwise.
19332 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
19334 if test $LOCALE_ZH_CN != none; then
19335 if test "$cross_compiling" = yes; then :
19338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19339 /* end confdefs.h. */
19341 #include <locale.h>
19342 #include <stdlib.h>
19343 #include <string.h>
19347 /* This fails on Solaris 8:
19348 mbrtowc returns 2, and sets wc to 0x00F0.
19349 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
19350 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19352 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19356 memset (&state, '\0', sizeof (mbstate_t));
19357 if (mbrtowc (&wc, input + 3, 6, &state) != 4
19358 && mbtowc (&wc, input + 3, 6) == 4)
19364 if ac_fn_c_try_run "$LINENO"; then :
19365 gl_cv_func_mbrtowc_sanitycheck=yes
19367 gl_cv_func_mbrtowc_sanitycheck=no
19369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19370 conftest.$ac_objext conftest.beam conftest.$ac_ext
19376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19377 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19379 REPLACE_MBSTATE_T=0
19380 case "$gl_cv_func_mbrtowc_incomplete_state" in
19382 *) REPLACE_MBSTATE_T=1 ;;
19384 case "$gl_cv_func_mbrtowc_sanitycheck" in
19386 *) REPLACE_MBSTATE_T=1 ;;
19389 REPLACE_MBSTATE_T=1
19391 if test $REPLACE_MBSTATE_T = 1; then
19405 if test $ac_cv_func_wcrtomb = no; then
19408 if test $REPLACE_MBSTATE_T = 1; then
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
19417 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
19418 if ${gl_cv_func_wcrtomb_retval+:} false; then :
19419 $as_echo_n "(cached) " >&6
19423 # Guess no on AIX 4, OSF/1 and Solaris.
19424 aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
19425 # Guess yes otherwise.
19426 *) gl_cv_func_wcrtomb_retval="guessing yes" ;;
19428 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
19429 if test "$cross_compiling" = yes; then :
19432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19433 /* end confdefs.h. */
19435 #include <locale.h>
19437 #include <string.h>
19441 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
19443 if (wcrtomb (NULL, 0, NULL) != 1)
19446 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19448 if (wcrtomb (NULL, 0, NULL) != 1)
19451 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19453 if (wcrtomb (NULL, 0, NULL) != 1)
19456 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19458 if (wcrtomb (NULL, 0, NULL) != 1)
19464 if ac_fn_c_try_run "$LINENO"; then :
19465 gl_cv_func_wcrtomb_retval=yes
19467 gl_cv_func_wcrtomb_retval=no
19469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19470 conftest.$ac_objext conftest.beam conftest.$ac_ext
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
19477 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
19478 case "$gl_cv_func_wcrtomb_retval" in
19480 *) REPLACE_WCRTOMB=1 ;;
19484 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
19496 gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
19510 $as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
19514 # Code from module wctype:
19525 if test $ac_cv_func_iswcntrl = yes; then
19545 if test $ac_cv_func_iswblank = yes; then
19550 if test $ac_cv_have_decl_iswblank = yes; then
19569 if test $gt_cv_c_wint_t = yes; then
19576 if test $ac_cv_header_wctype_h = yes; then
19577 if test $ac_cv_func_iswcntrl = yes; then
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
19579 $as_echo_n "checking whether iswcntrl works... " >&6; }
19580 if ${gl_cv_func_iswcntrl_works+:} false; then :
19581 $as_echo_n "(cached) " >&6
19584 if test "$cross_compiling" = yes; then :
19585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19586 /* end confdefs.h. */
19587 #include <stdlib.h>
19588 #if __GNU_LIBRARY__ == 1
19589 Linux libc5 i18n is broken.
19599 if ac_fn_c_try_compile "$LINENO"; then :
19600 gl_cv_func_iswcntrl_works=yes
19602 gl_cv_func_iswcntrl_works=no
19604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19608 /* end confdefs.h. */
19610 #include <stddef.h>
19614 #include <wctype.h>
19615 int main () { return iswprint ('x') == 0; }
19617 if ac_fn_c_try_run "$LINENO"; then :
19618 gl_cv_func_iswcntrl_works=yes
19620 gl_cv_func_iswcntrl_works=no
19622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19623 conftest.$ac_objext conftest.beam conftest.$ac_ext
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
19629 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
19643 if test $gl_cv_have_include_next = yes; then
19644 gl_cv_next_wctype_h='<'wctype.h'>'
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
19647 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
19648 if ${gl_cv_next_wctype_h+:} false; then :
19649 $as_echo_n "(cached) " >&6
19652 if test $ac_cv_header_wctype_h = yes; then
19653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19654 /* end confdefs.h. */
19655 #include <wctype.h>
19659 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19660 *) gl_absname_cpp="$ac_cpp" ;;
19662 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19663 sed -n '\#/wctype.h#{
19664 s#.*"\(.*/wctype.h\)".*#\1#
19670 gl_cv_next_wctype_h='<'wctype.h'>'
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
19675 $as_echo "$gl_cv_next_wctype_h" >&6; }
19677 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
19679 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19680 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19681 gl_next_as_first_directive='<'wctype.h'>'
19683 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19684 gl_next_as_first_directive=$gl_cv_next_wctype_h
19686 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
19696 if test "$gl_cv_func_iswcntrl_works" = no; then
19703 # Code from module write:
19715 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
19719 # Code from module xsize:
19723 for ac_header in stdint.h
19725 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19726 if test "x$ac_cv_header_stdint_h" = xyes; then :
19727 cat >>confdefs.h <<_ACEOF
19728 #define HAVE_STDINT_H 1
19736 # End of code from modules
19757 gl_source_base='tests'
19758 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
19760 gl_module_indicator_condition=$gltests_WITNESS
19774 # support deprecated ./configure flags to set various compiler flags
19777 # Check whether --with-cflags was given.
19778 if test "${with_cflags+set}" = set; then :
19779 withval=$with_cflags;
19781 "" | y | ye | yes | n | no)
19782 as_fn_error $? "*** You must supply an argument to the --with-cflags option." "$LINENO" 5
19792 # Check whether --with-includes was given.
19793 if test "${with_includes+set}" = set; then :
19794 withval=$with_includes;
19796 "" | y | ye | yes | n | no)
19797 as_fn_error $? "*** You must supply an argument to the --with-includes option." "$LINENO" 5
19801 for dir in $withval; do
19802 if test -d "$dir"; then
19803 CPPFLAGS="$CPPFLAGS -I$dir"
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Include directory $dir does not exist." >&5
19807 $as_echo "$as_me: WARNING: Include directory $dir does not exist." >&2;}
19810 cat <<AAW_EOF >>config.warnings
19811 Include directory $dir does not exist.
19822 # Check whether --with-libraries was given.
19823 if test "${with_libraries+set}" = set; then :
19824 withval=$with_libraries;
19826 "" | y | ye | yes | n | no)
19827 as_fn_error $? "*** You must supply an argument to the --with-libraries option." "$LINENO" 5
19831 for dir in $withval; do
19832 if test -d "$dir"; then
19834 *-solaris2*,*-netbsd*)
19835 LDFLAGS="$LDFLAGS -R$dir"
19838 LDFLAGS="$LDFLAGS -L$dir"
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Library directory $dir does not exist." >&5
19842 $as_echo "$as_me: WARNING: Library directory $dir does not exist." >&2;}
19845 cat <<AAW_EOF >>config.warnings
19846 Library directory $dir does not exist.
19856 # Disable strict-aliasing optimizations
19858 # test for -W'feature', then add the 'no-' version.
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -fstrict-aliasing" >&5
19863 $as_echo_n "checking for gcc flag -fstrict-aliasing... " >&6; }
19864 if test "x$GCC" = "xyes"; then
19865 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19866 $CC -v --help 2>&1) |
19867 $EGREP -- '[^[:alnum:]]-fstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
19868 if test $? -eq 0; then
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19871 $as_echo "yes" >&6; }
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19875 $as_echo "no" >&6; }
19879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
19880 $as_echo "no (not using gcc)" >&6; }
19883 if test x"$found_warning" = x"yes"; then
19884 CFLAGS="$CFLAGS -fno-strict-aliasing"
19886 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing"
19895 # Warn for just about everything
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wall" >&5
19901 $as_echo_n "checking for gcc flag -Wall... " >&6; }
19902 if test "x$GCC" = "xyes"; then
19903 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19904 $CC -v --help 2>&1) |
19905 $EGREP -- '[^[:alnum:]]-Wall[^[:alnum:]-]' 2>&1 > /dev/null
19906 if test $? -eq 0; then
19908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19909 $as_echo "yes" >&6; }
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19913 $as_echo "no" >&6; }
19917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
19918 $as_echo "no (not using gcc)" >&6; }
19921 if test x"$found_warning" = x"yes"; then
19922 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wall"
19931 # And add any extra warnings too
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wextra" >&5
19936 $as_echo_n "checking for gcc flag -Wextra... " >&6; }
19937 if test "x$GCC" = "xyes"; then
19938 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19939 $CC -v --help 2>&1) |
19940 $EGREP -- '[^[:alnum:]]-Wextra[^[:alnum:]-]' 2>&1 > /dev/null
19941 if test $? -eq 0; then
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19944 $as_echo "yes" >&6; }
19947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19948 $as_echo "no" >&6; }
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
19953 $as_echo "no (not using gcc)" >&6; }
19956 if test x"$found_warning" = x"yes"; then
19957 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wextra"
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -W" >&5
19965 $as_echo_n "checking for gcc flag -W... " >&6; }
19966 if test "x$GCC" = "xyes"; then
19967 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19968 $CC -v --help 2>&1) |
19969 $EGREP -- '^[:alnum:]-W^[:alnum:]-' 2>&1 > /dev/null
19970 if test $? -eq 0; then
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19973 $as_echo "yes" >&6; }
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19977 $as_echo "no" >&6; }
19981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
19982 $as_echo "no (not using gcc)" >&6; }
19985 if test x"$found_warning" = x"yes"; then
19986 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -W"
19998 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20001 # Check whether --enable-as-needed was given.
20002 if test "${enable_as_needed+set}" = set; then :
20003 enableval=$enable_as_needed; WANT_AS_NEEDED=$enableval
20009 if test x"$WANT_AS_NEEDED" = x"yes"; then
20010 WANT_AS_NEEDED_TRUE=
20011 WANT_AS_NEEDED_FALSE='#'
20013 WANT_AS_NEEDED_TRUE='#'
20014 WANT_AS_NEEDED_FALSE=
20018 if test x"$WANT_AS_NEEDED" = x"yes"; then
20019 AS_NEEDED_FLAGS="-Wl,--as-needed"
20028 # Configuration flags (--with-xxx and --enable-xxx)
20033 # Check whether --with-user was given.
20034 if test "${with_user+set}" = set; then :
20035 withval=$with_user;
20037 "" | y | ye | yes | n | no)
20038 as_fn_error $? "*** You must supply an argument to the --with-user option." "$LINENO" 5
20041 CLIENT_LOGIN="$withval"
20048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no user specified (--with-user) -- using 'amanda'" >&5
20049 $as_echo "$as_me: WARNING: no user specified (--with-user) -- using 'amanda'" >&2;}
20052 cat <<AAW_EOF >>config.warnings
20053 no user specified (--with-user) -- using 'amanda'
20057 CLIENT_LOGIN=amanda
20064 cat >>confdefs.h <<_ACEOF
20065 #define CLIENT_LOGIN "$CLIENT_LOGIN"
20072 # Check whether --with-group was given.
20073 if test "${with_group+set}" = set; then :
20074 withval=$with_group;
20076 "" | y | ye | yes | n | no)
20077 as_fn_error $? "*** You must supply an argument to the --with-group option." "$LINENO" 5
20079 *) SETUID_GROUP="$withval"
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no group specified (--with-group) -- using 'backup'" >&5
20087 $as_echo "$as_me: WARNING: no group specified (--with-group) -- using 'backup'" >&2;}
20090 cat <<AAW_EOF >>config.warnings
20091 no group specified (--with-group) -- using 'backup'
20095 SETUID_GROUP=backup
20104 # Check whether --with-dumperdir was given.
20105 if test "${with_dumperdir+set}" = set; then :
20106 withval=$with_dumperdir;
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-dumperdir is no longer used." >&5
20109 $as_echo "$as_me: WARNING: --with-dumperdir is no longer used." >&2;}
20112 cat <<AAW_EOF >>config.warnings
20113 --with-dumperdir is no longer used.
20124 # Check whether --with-configdir was given.
20125 if test "${with_configdir+set}" = set; then :
20126 withval=$with_configdir;
20128 "" | y | ye | yes | n | no)
20129 as_fn_error $? "*** You must supply an argument to the --with-configdir option." "$LINENO" 5
20131 *) CONFIG_DIR="$withval"
20137 : ${CONFIG_DIR='${sysconfdir}/amanda'} # (variable will be evaluated below)
20145 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20146 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20147 eval ac_define_dir="\"$CONFIG_DIR\""
20148 eval ac_define_dir="\"$ac_define_dir\""
20149 CONFIG_DIR="$ac_define_dir"
20152 cat >>confdefs.h <<_ACEOF
20153 #define CONFIG_DIR "$ac_define_dir"
20156 test "$prefix_NONE" && prefix=NONE
20157 test "$exec_prefix_NONE" && exec_prefix=NONE
20162 # Check whether --with-indexdir was given.
20163 if test "${with_indexdir+set}" = set; then :
20164 withval=$with_indexdir; as_fn_error $? "*** --with-indexdir is deprecated; use indexdir in amanda.conf instead." "$LINENO" 5
20171 # Check whether --with-dbdir was given.
20172 if test "${with_dbdir+set}" = set; then :
20173 withval=$with_dbdir; as_fn_error $? "*** --with-dbdir is deprecated; use infofile in amanda.conf instead." "$LINENO" 5
20180 # Check whether --with-logdir was given.
20181 if test "${with_logdir+set}" = set; then :
20182 withval=$with_logdir; as_fn_error $? "*** --with-logdir is deprecated; use logfile in amanda.conf instead." "$LINENO" 5
20189 # Check whether --with-suffixes was given.
20190 if test "${with_suffixes+set}" = set; then :
20191 withval=$with_suffixes;
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** --with-suffixes is deprecated" >&5
20194 $as_echo "$as_me: WARNING: ** --with-suffixes is deprecated" >&2;}
20197 cat <<AAW_EOF >>config.warnings
20198 ** --with-suffixes is deprecated
20208 # Check whether --with-gnutar-listdir was given.
20209 if test "${with_gnutar_listdir+set}" = set; then :
20210 withval=$with_gnutar_listdir;
20212 n | no) GNUTAR_LISTDIR= ;;
20213 y | ye | yes) GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists' ;;
20214 *) GNUTAR_LISTDIR="$withval" ;;
20219 GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists'
20225 # substitute $prefix, etc. if necessary
20229 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20230 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20231 eval ac_define_dir="\"$GNUTAR_LISTDIR\""
20232 eval ac_define_dir="\"$ac_define_dir\""
20233 GNUTAR_LISTED_INCREMENTAL_DIR="$ac_define_dir"
20236 cat >>confdefs.h <<_ACEOF
20237 #define GNUTAR_LISTED_INCREMENTAL_DIR "$ac_define_dir"
20240 test "$prefix_NONE" && prefix=NONE
20241 test "$exec_prefix_NONE" && exec_prefix=NONE
20244 # handle deprecated option
20246 # Check whether --with-gnutar-listed-incremental was given.
20247 if test "${with_gnutar_listed_incremental+set}" = set; then :
20248 withval=$with_gnutar_listed_incremental;
20249 as_fn_error $? "*** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" "$LINENO" 5
20257 # Check whether --with-tmpdir was given.
20258 if test "${with_tmpdir+set}" = set; then :
20259 withval=$with_tmpdir;
20271 n | no) as_fn_error $? "*** --without-tmpdir is not allowed." "$LINENO" 5;;
20272 y | ye | yes) AMANDA_TMPDIR="/tmp/amanda";;
20273 *) AMANDA_TMPDIR="$tmpdir";;
20279 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20280 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20281 eval ac_define_dir="\"$AMANDA_TMPDIR\""
20282 eval ac_define_dir="\"$ac_define_dir\""
20283 AMANDA_TMPDIR="$ac_define_dir"
20286 cat >>confdefs.h <<_ACEOF
20287 #define AMANDA_TMPDIR "$ac_define_dir"
20290 test "$prefix_NONE" && prefix=NONE
20291 test "$exec_prefix_NONE" && exec_prefix=NONE
20296 # Check whether --with-force-uid was given.
20297 if test "${with_force_uid+set}" = set; then :
20298 withval=$with_force_uid; CHECK_USERID="$withval"
20300 : ${CHECK_USERID=yes}
20304 case "$CHECK_USERID" in
20308 $as_echo "#define CHECK_USERID 1" >>confdefs.h
20315 as_fn_error $? "*** You must not supply an argument to --with-force-uid option." "$LINENO" 5
20318 if test x"$CHECK_USERID" = x"1"; then
20320 CHECK_USERID_FALSE='#'
20322 CHECK_USERID_TRUE='#'
20323 CHECK_USERID_FALSE=
20330 # Check whether --with-owner was given.
20331 if test "${with_owner+set}" = set; then :
20332 withval=$with_owner;
20334 "" | y | ye | yes | n | no)
20335 as_fn_error $? "*** You must supply an argument to the --with-owner option." "$LINENO" 5
20337 *) BINARY_OWNER="$withval"
20343 BINARY_OWNER="$CLIENT_LOGIN"
20349 cat >>confdefs.h <<_ACEOF
20350 #define BINARY_OWNER "$BINARY_OWNER"
20357 # Check whether --with-fqdn was given.
20358 if test "${with_fqdn+set}" = set; then :
20359 withval=$with_fqdn; USE_FQDN=$withval
20365 case "$USE_FQDN" in
20369 $as_echo "#define USE_FQDN 1" >>confdefs.h
20372 *) as_fn_error $? "You must not supply an argument to --with-fqdn option." "$LINENO" 5
20378 # Check whether --with-reuseports was given.
20379 if test "${with_reuseports+set}" = set; then :
20380 withval=$with_reuseports; case "$withval" in
20381 y | ye | yes) USE_REUSEADDR=no;;
20382 n | no) USE_REUSEADDR=yes;;
20383 *) as_fn_error $? "You must not supply an argument to --without-reuseports" "$LINENO" 5;;
20390 if test x"$USE_REUSEADDR" = x"yes"; then
20392 $as_echo "#define USE_REUSEADDR 1" >>confdefs.h
20398 # Check whether --with-low-tcpportrange was given.
20399 if test "${with_low_tcpportrange+set}" = set; then :
20400 withval=$with_low_tcpportrange; LOW_TCPPORTRANGE="$withval"
20402 LOW_TCPPORTRANGE=unlimited
20406 if test x"$LOW_TCPPORTRANGE" != x"unlimited"; then
20407 if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
20408 as_fn_error $? "--with-low-tcpportrange requires two comma-separated positive numbers" "$LINENO" 5
20410 min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
20411 max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
20412 if test $min_low_tcp_port -gt $max_low_tcp_port; then
20413 as_fn_error $? "the second TCP port number must be greater than the first in --with-low-tcpportrange" "$LINENO" 5
20415 if test $min_low_tcp_port -lt 512; then
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&5
20418 $as_echo "$as_me: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&2;}
20421 cat <<AAW_EOF >>config.warnings
20422 the low TCP port range should be 512 or greater in --with-low-tcpportrange
20427 if test $max_low_tcp_port -ge 1024; then
20429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&5
20430 $as_echo "$as_me: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&2;}
20433 cat <<AAW_EOF >>config.warnings
20434 the low TCP port range should be less than 1024 in --with-low-tcpportrange
20440 cat >>confdefs.h <<_ACEOF
20441 #define LOW_TCPPORTRANGE $LOW_TCPPORTRANGE
20447 # Check whether --with-tcpportrange was given.
20448 if test "${with_tcpportrange+set}" = set; then :
20449 withval=$with_tcpportrange; TCPPORTRANGE="$withval"
20451 TCPPORTRANGE="unlimited"
20455 if test x"$TCPPORTRANGE" != x"unlimited"; then
20456 if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
20457 as_fn_error $? "--with-tcpportrange requires two comma-separated positive numbers" "$LINENO" 5
20459 min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
20460 max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
20461 if test $min_tcp_port -gt $max_tcp_port; then
20462 as_fn_error $? "the second TCP port number must be greater than the first in --with-tcpportrange" "$LINENO" 5
20464 if test $min_tcp_port -lt 1024; then
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
20467 $as_echo "$as_me: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
20470 cat <<AAW_EOF >>config.warnings
20471 the TCP port range should be 1024 or greater in --with-tcpportrange
20476 if test $max_tcp_port -ge 65536; then
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&5
20479 $as_echo "$as_me: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
20482 cat <<AAW_EOF >>config.warnings
20483 the TCP port range should be less than 65536 in --with-tcpportrange
20489 cat >>confdefs.h <<_ACEOF
20490 #define TCPPORTRANGE $TCPPORTRANGE
20496 # Check whether --with-udpportrange was given.
20497 if test "${with_udpportrange+set}" = set; then :
20498 withval=$with_udpportrange; UDPPORTRANGE="$withval"
20500 UDPPORTRANGE="unlimited"
20503 if test x"$UDPPORTRANGE" != x"unlimited"; then
20504 if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
20505 as_fn_error $? "--with-udpportrange requires two comma-separated positive numbers" "$LINENO" 5
20507 min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
20508 max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
20509 if test $min_udp_port -gt $max_udp_port; then
20510 as_fn_error $? "the second UDP port number must be greater than the first in --with-udpportrange" "$LINENO" 5
20512 if test $max_udp_port -ge 1024; then
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&5
20515 $as_echo "$as_me: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&2;}
20518 cat <<AAW_EOF >>config.warnings
20519 the UDP port range should be less than 1025 in --with-udpportrange
20524 if test $min_udp_port -le 0; then
20526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&5
20527 $as_echo "$as_me: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
20530 cat <<AAW_EOF >>config.warnings
20531 the UDP port range should be greater than 0 in --with-udpportrange
20537 cat >>confdefs.h <<_ACEOF
20538 #define UDPPORTRANGE $UDPPORTRANGE
20548 # Check whether --with-buffered-dump was given.
20549 if test "${with_buffered_dump+set}" = set; then :
20550 withval=$with_buffered_dump; DUMPER_SOCKET_BUFFERING=$withval
20552 DUMPER_SOCKET_BUFFERING=no
20555 case "$DUMPER_SOCKET_BUFFERING" in
20559 $as_echo "#define DUMPER_SOCKET_BUFFERING 1" >>confdefs.h
20562 *) as_fn_error $? "You must not supply an argument to --with-buffered-dump." "$LINENO" 5 ;;
20567 # Check whether --with-maxtapeblocksize was given.
20568 if test "${with_maxtapeblocksize+set}" = set; then :
20569 withval=$with_maxtapeblocksize;
20570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-maxtapeblocksize is no longer needed" >&5
20571 $as_echo "$as_me: WARNING: --with-maxtapeblocksize is no longer needed" >&2;}
20574 cat <<AAW_EOF >>config.warnings
20575 --with-maxtapeblocksize is no longer needed
20586 # Check whether --with-assertions was given.
20587 if test "${with_assertions+set}" = set; then :
20588 withval=$with_assertions;
20594 $as_echo "#define ASSERTIONS 1" >>confdefs.h
20597 *) as_fn_error $? "*** You must not supply an argument to --with-assertions option." "$LINENO" 5
20609 # Check whether --with-debugging was given.
20610 if test "${with_debugging+set}" = set; then :
20611 withval=$with_debugging; debugging="$withval"
20618 case "$debugging" in
20619 n | no) as_fn_error $? "Amanda no longer supports building with debugging disabled" "$LINENO" 5;;
20620 y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
20621 *) AMANDA_DBGDIR="$debugging";;
20624 # evaluate any extra variables in the directory
20628 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20629 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20630 eval ac_define_dir="\"$AMANDA_DBGDIR\""
20631 eval ac_define_dir="\"$ac_define_dir\""
20632 AMANDA_DBGDIR="$ac_define_dir"
20635 cat >>confdefs.h <<_ACEOF
20636 #define AMANDA_DBGDIR "$ac_define_dir"
20639 test "$prefix_NONE" && prefix=NONE
20640 test "$exec_prefix_NONE" && exec_prefix=NONE
20645 # Check whether --with-debug_days was given.
20646 if test "${with_debug_days+set}" = set; then :
20647 withval=$with_debug_days;
20648 debug_days="$withval"
20657 case "$debug_days" in
20659 AMANDA_DEBUG_DAYS=0 ;;
20661 AMANDA_DEBUG_DAYS=4 ;;
20662 [0-9] | [0-9][0-9] | [0-9][0-9][0-9])
20663 AMANDA_DEBUG_DAYS="$debug_days" ;;
20664 *) as_fn_error $? "*** --with-debug-days value not numeric or out of range." "$LINENO" 5
20668 cat >>confdefs.h <<_ACEOF
20669 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
20676 # Check whether --with-testing was given.
20677 if test "${with_testing+set}" = set; then :
20678 withval=$with_testing;
20689 n | no) SERVICE_SUFFIX="";;
20690 y | ye | yes) SERVICE_SUFFIX="-test";;
20691 *) SERVICE_SUFFIX="-$TESTING";;
20694 AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
20695 KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
20699 cat >>confdefs.h <<_ACEOF
20700 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
20704 cat >>confdefs.h <<_ACEOF
20705 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
20709 cat >>confdefs.h <<_ACEOF
20710 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
20715 SINGLE_USERID=${SINGLE_USERID:-no}
20716 WANT_SETUID_CLIENT=${WANT_SETUID_CLIENT:-true}
20719 # Check whether --with-single-userid was given.
20720 if test "${with_single_userid+set}" = set; then :
20721 withval=$with_single_userid; SINGLE_USERID=$withval
20727 WANT_SETUID_CLIENT=false
20732 if test x"$WANT_SETUID_CLIENT" = x"true"; then
20734 $as_echo "#define WANT_SETUID_CLIENT 1" >>confdefs.h
20737 if test x"$WANT_SETUID_CLIENT" = x"true"; then
20738 WANT_SETUID_CLIENT_TRUE=
20739 WANT_SETUID_CLIENT_FALSE='#'
20741 WANT_SETUID_CLIENT_TRUE='#'
20742 WANT_SETUID_CLIENT_FALSE=
20746 if test x"$SINGLE_USERID" = x"yes"; then
20748 $as_echo "#define SINGLE_USERID 1" >>confdefs.h
20753 WANT_INSTALLPERMS=yes
20754 # Check whether --enable-installperms was given.
20755 if test "${enable_installperms+set}" = set; then :
20756 enableval=$enable_installperms; WANT_INSTALLPERMS="$enableval"
20758 WANT_INSTALLPERMS="yes"
20762 if test x"$WANT_INSTALLPERMS" = x"yes"; then
20763 WANT_INSTALLPERMS_TRUE=
20764 WANT_INSTALLPERMS_FALSE='#'
20766 WANT_INSTALLPERMS_TRUE='#'
20767 WANT_INSTALLPERMS_FALSE=
20772 # Check whether --enable-syntax-checks was given.
20773 if test "${enable_syntax_checks+set}" = set; then :
20774 enableval=$enable_syntax_checks;
20775 case "$enableval" in
20776 no) SYNTAX_CHECKS=false;;
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-syntax-checks can cause build failures and should only be used by developers" >&5
20781 $as_echo "$as_me: WARNING: --enable-syntax-checks can cause build failures and should only be used by developers" >&2;}
20784 cat <<AAW_EOF >>config.warnings
20785 --enable-syntax-checks can cause build failures and should only be used by developers
20794 SYNTAX_CHECKS=false
20799 if $SYNTAX_CHECKS; then
20800 SYNTAX_CHECKS_TRUE=
20801 SYNTAX_CHECKS_FALSE='#'
20803 SYNTAX_CHECKS_TRUE='#'
20804 SYNTAX_CHECKS_FALSE=
20811 # Set up for Amanda components and modules
20816 # Check whether --with-server was given.
20817 if test "${with_server+set}" = set; then :
20818 withval=$with_server;
20820 y | ye | yes) WANT_SERVER=true;;
20821 n | no) WANT_SERVER=false;;
20822 *) as_fn_error $? "You must not supply an argument to the --without-server option." "$LINENO" 5 ;;
20831 # Check whether --with-client was given.
20832 if test "${with_client+set}" = set; then :
20833 withval=$with_client;
20835 y | ye | yes) WANT_CLIENT=true;;
20836 n | no) WANT_CLIENT=false;;
20837 *) as_fn_error $? "You must not supply an argument to the --without-client option." "$LINENO" 5 ;;
20845 WANT_RESTORE=${WANT_SERVER-true}
20847 # Check whether --with-restore was given.
20848 if test "${with_restore+set}" = set; then :
20849 withval=$with_restore;
20851 y | ye | yes) WANT_RESTORE=true;;
20852 n | no) WANT_RESTORE=false;;
20853 *) as_fn_error $? "You must not supply an argument to --with-restore option." "$LINENO" 5 ;;
20861 WANT_RECOVER=${WANT_CLIENT-true}
20863 # Check whether --with-amrecover was given.
20864 if test "${with_amrecover+set}" = set; then :
20865 withval=$with_amrecover;
20867 y | ye | yes) WANT_RECOVER=true;;
20868 n | no) WANT_RECOVER=false;;
20869 *) as_fn_error $? "You must not supply an argument to --with-amrecover option." "$LINENO" 5 ;;
20877 # Check whether --with-client-only was given.
20878 if test "${with_client_only+set}" = set; then :
20879 withval=$with_client_only; as_fn_error $? "--with-client-only is deprecated, use --without-server instead." "$LINENO" 5
20886 # Check whether --with-server-only was given.
20887 if test "${with_server_only+set}" = set; then :
20888 withval=$with_server_only; as_fn_error $? "--with-server-only is deprecated, use --without-client instead." "$LINENO" 5
20894 WANT_NDMP=${WANT_NDMP-true}
20896 # Check whether --with-ndmp was given.
20897 if test "${with_ndmp+set}" = set; then :
20898 withval=$with_ndmp;
20900 y | ye | yes) WANT_NDMP=true;;
20901 n | no) WANT_NDMP=false;;
20902 *) as_fn_error $? "You must not supply an argument to --with-ndmp option." "$LINENO" 5 ;;
20915 # detect invalid combinations of components
20916 if ! ${WANT_SERVER-true} && ${WANT_RESTORE-true}; then
20917 as_fn_error $? "--without-server requires --without-restore" "$LINENO" 5
20919 if ! ${WANT_CLIENT-true} && ${WANT_RECOVER-true}; then
20920 as_fn_error $? "--without-client requires --without-amrecover" "$LINENO" 5
20923 if $WANT_CLIENT; then
20925 WANT_CLIENT_FALSE='#'
20927 WANT_CLIENT_TRUE='#'
20931 if $WANT_RESTORE; then
20933 WANT_RESTORE_FALSE='#'
20935 WANT_RESTORE_TRUE='#'
20936 WANT_RESTORE_FALSE=
20939 if $WANT_SERVER; then
20941 WANT_SERVER_FALSE='#'
20943 WANT_SERVER_TRUE='#'
20947 if $WANT_RECOVER; then
20949 WANT_RECOVER_FALSE='#'
20951 WANT_RECOVER_TRUE='#'
20952 WANT_RECOVER_FALSE=
20955 if $WANT_NDMP; then
20957 WANT_NDMP_FALSE='#'
20964 if $WANT_SERVER || $WANT_RESTORE; then
20966 WANT_TAPE_FALSE='#'
20973 # AMANDA_COMPONENTS goes to Amanda::Constants; missing_components is just for the
20975 AMANDA_COMPONENTS=''
20976 missing_components=''
20978 if $WANT_SERVER; then
20979 AMANDA_COMPONENTS="$AMANDA_COMPONENTS server";
20981 missing_components="$missing_components (no server)";
20983 if $WANT_RESTORE; then
20984 AMANDA_COMPONENTS="$AMANDA_COMPONENTS restore";
20986 missing_components="$missing_components (no restore)";
20988 if $WANT_CLIENT; then
20989 AMANDA_COMPONENTS="$AMANDA_COMPONENTS client";
20991 missing_components="$missing_components (no client)";
20993 if $WANT_RECOVER; then
20994 AMANDA_COMPONENTS="$AMANDA_COMPONENTS amrecover";
20996 missing_components="$missing_components (no amrecover)";
20998 if $WANT_NDMP; then
20999 AMANDA_COMPONENTS="$AMANDA_COMPONENTS ndmp";
21001 missing_components="$missing_components (no ndmp)";
21010 # Check whether --with-gnuplot was given.
21011 if test "${with_gnuplot+set}" = set; then :
21012 withval=$with_gnuplot;
21015 n | no) GNUPLOT=no ;;
21016 *) GNUPLOT="$withval" ;;
21021 if test "x$GNUPLOT" = "xno"; then
21024 # Extract the first word of "gnuplot", so it can be a program name with args.
21025 set dummy gnuplot; ac_word=$2
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21027 $as_echo_n "checking for $ac_word... " >&6; }
21028 if ${ac_cv_path_GNUPLOT+:} false; then :
21029 $as_echo_n "(cached) " >&6
21033 ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
21036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21037 for as_dir in $LOCSYSPATH
21040 test -z "$as_dir" && as_dir=.
21041 for ac_exec_ext in '' $ac_executable_extensions; do
21042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21043 ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
21044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21054 GNUPLOT=$ac_cv_path_GNUPLOT
21055 if test -n "$GNUPLOT"; then
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT" >&5
21057 $as_echo "$GNUPLOT" >&6; }
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21060 $as_echo "no" >&6; }
21071 # Extract the first word of "pcat", so it can be a program name with args.
21072 set dummy pcat; ac_word=$2
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21074 $as_echo_n "checking for $ac_word... " >&6; }
21075 if ${ac_cv_path_PCAT+:} false; then :
21076 $as_echo_n "(cached) " >&6
21080 ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
21083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21084 for as_dir in $LOCSYSPATH
21087 test -z "$as_dir" && as_dir=.
21088 for ac_exec_ext in '' $ac_executable_extensions; do
21089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21090 ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
21091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21101 PCAT=$ac_cv_path_PCAT
21102 if test -n "$PCAT"; then
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAT" >&5
21104 $as_echo "$PCAT" >&6; }
21106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21107 $as_echo "no" >&6; }
21114 # Extract the first word of "compress", so it can be a program name with args.
21115 set dummy compress; ac_word=$2
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21117 $as_echo_n "checking for $ac_word... " >&6; }
21118 if ${ac_cv_path_COMPRESS+:} false; then :
21119 $as_echo_n "(cached) " >&6
21123 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
21126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21127 for as_dir in $LOCSYSPATH
21130 test -z "$as_dir" && as_dir=.
21131 for ac_exec_ext in '' $ac_executable_extensions; do
21132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21133 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
21134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21144 COMPRESS=$ac_cv_path_COMPRESS
21145 if test -n "$COMPRESS"; then
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPRESS" >&5
21147 $as_echo "$COMPRESS" >&6; }
21149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21150 $as_echo "no" >&6; }
21157 # Extract the first word of "gzip", so it can be a program name with args.
21158 set dummy gzip; ac_word=$2
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21160 $as_echo_n "checking for $ac_word... " >&6; }
21161 if ${ac_cv_path_GZIP+:} false; then :
21162 $as_echo_n "(cached) " >&6
21166 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
21169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21170 for as_dir in $LOCSYSPATH
21173 test -z "$as_dir" && as_dir=.
21174 for ac_exec_ext in '' $ac_executable_extensions; do
21175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21176 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
21177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21187 GZIP=$ac_cv_path_GZIP
21188 if test -n "$GZIP"; then
21189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
21190 $as_echo "$GZIP" >&6; }
21192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21193 $as_echo "no" >&6; }
21205 if test "x$GNUPLOT" != "x"; then
21208 # variable substitutions for amcat.awk
21209 if test "$PCAT"; then
21210 AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
21214 if test "$COMPRESS"; then
21215 AMPLOT_COMPRESS=$COMPRESS
21216 AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
21218 AMPLOT_CAT_COMPRESS=
21220 if test "$GZIP"; then
21221 AMPLOT_COMPRESS=$GZIP
21222 AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
21234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building 'amplot', because gnuplot was not found" >&5
21235 $as_echo "$as_me: WARNING: Not building 'amplot', because gnuplot was not found" >&2;}
21238 cat <<AAW_EOF >>config.warnings
21239 Not building 'amplot', because gnuplot was not found
21245 if test x"$WANT_AMPLOT" = x"true"; then
21247 WANT_AMPLOT_FALSE='#'
21249 WANT_AMPLOT_TRUE='#'
21255 # Check whether --enable-manpage-build was given.
21256 if test "${enable_manpage_build+set}" = set; then :
21257 enableval=$enable_manpage_build; ENABLE_MANPAGE_BUILD=$enableval
21259 ENABLE_MANPAGE_BUILD=no
21263 # and ensure that everything docbook-related is OK if we'll be using it
21264 if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
21265 DOC_BUILD_DATE=`date '+%d-%m-%Y'`
21268 XSLTPROC_FLAGS="--nonet"
21271 # The (lack of) whitespace and overquoting here are all necessary for
21272 # proper formatting.
21274 # Check whether --with-xsltproc was given.
21275 if test "${with_xsltproc+set}" = set; then :
21276 withval=$with_xsltproc; ac_with_xsltproc=$withval;
21278 ac_with_xsltproc=maybe;
21283 # Check whether --with-xsltproc-flags was given.
21284 if test "${with_xsltproc_flags+set}" = set; then :
21285 withval=$with_xsltproc_flags; if test "x$withval" == "xno"; then
21288 if test "x$withval" != "xyes"; then
21289 XSLTPROC_FLAGS="$withval"
21296 # search for xsltproc if it wasn't specified
21297 if test "$ac_with_xsltproc" = "yes" -o "$ac_with_xsltproc" = "maybe"; then
21298 for ac_prog in xsltproc
21300 # Extract the first word of "$ac_prog", so it can be a program name with args.
21301 set dummy $ac_prog; ac_word=$2
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21303 $as_echo_n "checking for $ac_word... " >&6; }
21304 if ${ac_cv_path_XSLTPROC+:} false; then :
21305 $as_echo_n "(cached) " >&6
21309 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
21312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21313 for as_dir in $LOCSYSPATH
21316 test -z "$as_dir" && as_dir=.
21317 for ac_exec_ext in '' $ac_executable_extensions; do
21318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21319 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
21320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21330 XSLTPROC=$ac_cv_path_XSLTPROC
21331 if test -n "$XSLTPROC"; then
21332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
21333 $as_echo "$XSLTPROC" >&6; }
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21336 $as_echo "no" >&6; }
21340 test -n "$XSLTPROC" && break
21344 if test "$ac_with_xsltproc" != "no"; then
21345 if test -x "$ac_with_xsltproc"; then
21346 XSLTPROC="$ac_with_xsltproc";
21349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&5
21350 $as_echo "$as_me: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&2;}
21353 cat <<AAW_EOF >>config.warnings
21354 Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative.
21358 for ac_prog in xsltproc
21360 # Extract the first word of "$ac_prog", so it can be a program name with args.
21361 set dummy $ac_prog; ac_word=$2
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21363 $as_echo_n "checking for $ac_word... " >&6; }
21364 if ${ac_cv_path_XSLTPROC+:} false; then :
21365 $as_echo_n "(cached) " >&6
21369 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
21372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21373 for as_dir in $LOCSYSPATH
21376 test -z "$as_dir" && as_dir=.
21377 for ac_exec_ext in '' $ac_executable_extensions; do
21378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21379 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
21380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21390 XSLTPROC=$ac_cv_path_XSLTPROC
21391 if test -n "$XSLTPROC"; then
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
21393 $as_echo "$XSLTPROC" >&6; }
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21396 $as_echo "no" >&6; }
21400 test -n "$XSLTPROC" && break
21416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook XSLT version 1.72.0" >&5
21417 $as_echo_n "checking for Docbook XSLT version 1.72.0... " >&6; }
21418 if ${ac_cv_docbook_xslt_1_72_0+:} false; then :
21419 $as_echo_n "(cached) " >&6
21422 ac_cv_docbook_xslt_1_72_0=no
21423 if test -n "$XSLTPROC"; then
21424 echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl'" >&5
21425 $XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl >&5 2>&5
21427 if test "$?" = 0; then
21428 ac_cv_docbook_xslt_1_72_0=yes
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_xslt_1_72_0" >&5
21434 $as_echo "$ac_cv_docbook_xslt_1_72_0" >&6; }
21436 HAVE_DOCBOOK_XSLT_1_72_0="$ac_cv_docbook_xslt_1_72_0"
21437 HAVE_DOCBOOK_XSLT="$HAVE_DOCBOOK_XSLT_1_72_0"
21446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current Docbook XSLT version" >&5
21447 $as_echo_n "checking for current Docbook XSLT version... " >&6; }
21448 if ${ac_cv_docbook_xslt_current_version+:} false; then :
21449 $as_echo_n "(cached) " >&6
21452 ac_cv_docbook_xslt_current_version=no
21454 if test -n "$XSLTPROC"; then
21455 cat >conftest.xsl <<EOF
21457 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
21458 xmlns:fm="http://freshmeat.net/projects/freshmeat-submit/"
21460 <xsl:output method="text"/>
21461 <xsl:template match="fm:project/fm:Version">
21462 <xsl:value-of select="." />
21464 <!-- do nothing with any other text -->
21465 <xsl:template match="text()"/>
21468 echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/current/VERSION' with input:" >&5
21470 cat conftest.xsl >&5
21473 ac_cv_docbook_xslt_current_version=`$XSLTPROC $XSLTPROC_FLAGS conftest.xsl http://docbook.sourceforge.net/release/xsl/current/VERSION 2>&5`
21475 if test "$?" != 0; then
21476 ac_cv_docbook_xslt_current_version='no'
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_xslt_current_version" >&5
21484 $as_echo "$ac_cv_docbook_xslt_current_version" >&6; }
21486 DOCBOOK_XSLT_CURRENT_VERSION="$ac_cv_docbook_xslt_current_version"
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Docbook XSLT version is 1.72.0 or newer" >&5
21488 $as_echo_n "checking whether Docbook XSLT version is 1.72.0 or newer... " >&6; }
21490 if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
21491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21492 $as_echo "no" >&6; }
21495 # Used to indicate true or false condition
21496 ax_compare_version=false
21498 # Convert the two version strings to be compared into a format that
21499 # allows a simple string comparison. The end result is that a version
21500 # string of the form 1.12.5-r617 will be converted to the form
21501 # 0001001200050617. In other words, each number is zero padded to four
21502 # digits, and non digits are removed.
21504 ax_compare_version_A=`echo "$DOCBOOK_XSLT_CURRENT_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21505 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21506 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21507 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21511 ax_compare_version_B=`echo "1.72.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21512 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21513 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21514 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21518 ax_compare_version=`echo "x$ax_compare_version_A
21519 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
21523 if test "$ax_compare_version" = "true" ; then
21525 # version is less than required, so mark it as "no"
21526 DOCBOOK_XSLT_CURRENT_VERSION=no
21531 if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21533 $as_echo "no" >&6; }
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&5
21536 $as_echo "yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&6; }
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook DTD version 4.1.2" >&5
21550 $as_echo_n "checking for Docbook DTD version 4.1.2... " >&6; }
21551 if ${ac_cv_docbook_dtd_4_1_2+:} false; then :
21552 $as_echo_n "(cached) " >&6
21555 ac_cv_docbook_dtd_4_1_2=no
21556 if test -n "$XSLTPROC"; then
21557 MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
21558 cat <<EOF >conftest.xml
21559 <?xml version="1.0" encoding='ISO-8859-1'?>
21560 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
21564 echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
21565 echo "conftest.xml:" >&5
21567 cat conftest.xml >&5
21570 $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
21571 if test "$?" = 0 -o "$?" = 5; then
21572 # failing to load the DTD is just a warning, so check for it in the output.
21573 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
21576 ac_cv_docbook_dtd_4_1_2=yes
21579 cat conftest.out >&5
21581 rm -f conftest.xml conftest.out
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_dtd_4_1_2" >&5
21586 $as_echo "$ac_cv_docbook_dtd_4_1_2" >&6; }
21588 HAVE_DOCBOOK_DTD_4_1_2="$ac_cv_docbook_dtd_4_1_2"
21589 HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_1_2"
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook DTD version 4.2" >&5
21605 $as_echo_n "checking for Docbook DTD version 4.2... " >&6; }
21606 if ${ac_cv_docbook_dtd_4_2+:} false; then :
21607 $as_echo_n "(cached) " >&6
21610 ac_cv_docbook_dtd_4_2=no
21611 if test -n "$XSLTPROC"; then
21612 MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
21613 cat <<EOF >conftest.xml
21614 <?xml version="1.0" encoding='ISO-8859-1'?>
21615 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
21619 echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
21620 echo "conftest.xml:" >&5
21622 cat conftest.xml >&5
21625 $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
21626 if test "$?" = 0 -o "$?" = 5; then
21627 # failing to load the DTD is just a warning, so check for it in the output.
21628 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
21631 ac_cv_docbook_dtd_4_2=yes
21634 cat conftest.out >&5
21636 rm -f conftest.xml conftest.out
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_dtd_4_2" >&5
21641 $as_echo "$ac_cv_docbook_dtd_4_2" >&6; }
21643 HAVE_DOCBOOK_DTD_4_2="$ac_cv_docbook_dtd_4_2"
21644 HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_2"
21651 if test -z "$XSLTPROC"; then
21652 as_fn_error $? "Cannot build manpages: 'xsltproc' was not found." "$LINENO" 5
21655 # if the 'current' Docbook revision is good enough, use that; otherwise,
21656 # if 1.72.0 is available, use that.
21658 if test "x$DOCBOOK_XSLT_CURRENT_VERSION" = "xno"; then
21659 if test "x$HAVE_DOCBOOK_XSLT_1_72_0" = "xno"; then
21660 as_fn_error $? "Cannot build manpages: docbook version 1.72.0 or higher required." "$LINENO" 5
21666 # disable validation if the correct DTDs are not available
21667 if test "x$HAVE_DOCBOOK_DTD_4_1_2" = "xno" || test "x$HAVE_DOCBOOK_DTD_4_2" = "xno"; then
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&5
21670 $as_echo "$as_me: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&2;}
21673 cat <<AAW_EOF >>config.warnings
21674 Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation
21678 XSLTPROC_FLAGS="$XSLTPROC_FLAGS --novalid"
21682 if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
21683 ENABLE_MANPAGE_BUILD_TRUE=
21684 ENABLE_MANPAGE_BUILD_FALSE='#'
21686 ENABLE_MANPAGE_BUILD_TRUE='#'
21687 ENABLE_MANPAGE_BUILD_FALSE=
21694 #allow configure CONFIG_CLOBBER_MY_CONFIG= to be used by make.
21695 CONFIG_CLOBBER_MY_CONFIG=$CLOBBER_MY_CONFIG
21699 # Check whether --with-index-server was given.
21700 if test "${with_index_server+set}" = set; then :
21701 withval=$with_index_server;
21703 "" | y | ye | yes | n | no)
21704 as_fn_error $? "*** You must supply an argument to the --with-index-server option." "$LINENO" 5
21706 *) DEFAULT_SERVER="$withval"
21711 : ${DEFAULT_SERVER=`uname -n`}
21716 cat >>confdefs.h <<_ACEOF
21717 #define DEFAULT_SERVER "$DEFAULT_SERVER"
21723 # Check whether --with-config was given.
21724 if test "${with_config+set}" = set; then :
21725 withval=$with_config;
21727 "" | y | ye | yes | n | no)
21728 as_fn_error $? "*** You must supply an argument to the --with-config option." "$LINENO" 5
21730 *) DEFAULT_CONFIG="$withval"
21735 : ${DEFAULT_CONFIG=DailySet1}
21740 cat >>confdefs.h <<_ACEOF
21741 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
21747 # Check whether --with-tape-server was given.
21748 if test "${with_tape_server+set}" = set; then :
21749 withval=$with_tape_server;
21751 "" | y | ye | yes | n | no)
21752 as_fn_error $? "*** You must supply an argument to the --with-tape-server option." "$LINENO" 5
21754 *) DEFAULT_TAPE_SERVER="$withval"
21759 : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
21764 cat >>confdefs.h <<_ACEOF
21765 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
21771 # Check whether --with-tape-device was given.
21772 if test "${with_tape_device+set}" = set; then :
21773 withval=$with_tape_device;
21775 "" | y | ye | yes | n | no)
21776 as_fn_error $? "*** You must supply an argument to the --with-tape-device option." "$LINENO" 5
21778 *) DEFAULT_TAPE_DEVICE="$withval"
21787 cat >>confdefs.h <<_ACEOF
21788 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
21793 if test "${DEFAULT_TAPE_DEVICE+set}" = "set"; then
21794 EXAMPLE_TAPEDEV="$DEFAULT_TAPE_DEVICE"
21796 EXAMPLE_TAPEDEV="tape:/dev/YOUR-TAPE-DEVICE-HERE"
21801 # Check whether --with-changer-device was given.
21802 if test "${with_changer_device+set}" = set; then :
21803 withval=$with_changer_device;
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-changer-device is no longer used." >&5
21806 $as_echo "$as_me: WARNING: --with-changer-device is no longer used." >&2;}
21809 cat <<AAW_EOF >>config.warnings
21810 --with-changer-device is no longer used.
21820 # Check whether --with-amandates was given.
21821 if test "${with_amandates+set}" = set; then :
21822 withval=$with_amandates;
21824 n | no) as_fn_error $? "*** --without-amandates is not allowed." "$LINENO" 5;;
21825 y | ye | yes) amandates='$localstatedir/amanda/amandates' ;;
21826 *) amandates="$withval";;
21830 amandates='$localstatedir/amanda/amandates'
21838 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21839 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21840 eval ac_define_dir="\"$amandates\""
21841 eval ac_define_dir="\"$ac_define_dir\""
21842 DEFAULT_AMANDATES_FILE="$ac_define_dir"
21845 cat >>confdefs.h <<_ACEOF
21846 #define DEFAULT_AMANDATES_FILE "$ac_define_dir"
21849 test "$prefix_NONE" && prefix=NONE
21850 test "$exec_prefix_NONE" && exec_prefix=NONE
21853 DEFAULT_FSF_AFTER_FILEMARK="FALSE"
21855 *-solaris*) DEFAULT_FSF_AFTER_FILEMARK="TRUE"
21859 cat >>confdefs.h <<_ACEOF
21860 #define DEFAULT_FSF_AFTER_FILEMARK $DEFAULT_FSF_AFTER_FILEMARK
21866 # Extract the first word of "getconf", so it can be a program name with args.
21867 set dummy getconf; ac_word=$2
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21869 $as_echo_n "checking for $ac_word... " >&6; }
21870 if ${ac_cv_path_GETCONF+:} false; then :
21871 $as_echo_n "(cached) " >&6
21875 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
21878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21879 for as_dir in $SYSPATH
21882 test -z "$as_dir" && as_dir=.
21883 for ac_exec_ext in '' $ac_executable_extensions; do
21884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21885 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
21886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21896 GETCONF=$ac_cv_path_GETCONF
21897 if test -n "$GETCONF"; then
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
21899 $as_echo "$GETCONF" >&6; }
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21902 $as_echo "no" >&6; }
21911 # we use 'getconf', if it exists, to get the relevant
21915 *-hp-*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
21916 *-ibm-aix*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
21919 # Checks for compilers, typedefs, structures, and compiler characteristics.
21920 # Check for large file compilation environment.
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file compilation CFLAGS" >&5
21923 $as_echo_n "checking for large file compilation CFLAGS... " >&6; }
21924 if ${amanda_cv_LFS_CFLAGS+:} false; then :
21925 $as_echo_n "(cached) " >&6
21928 amanda_cv_LFS_CFLAGS=
21929 if test "$GETCONF"; then
21930 if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
21931 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_LFS_CFLAGS" >&5
21939 $as_echo "$amanda_cv_LFS_CFLAGS" >&6; }
21940 CFLAGS="$CFLAGS $amanda_cv_LFS_CFLAGS"
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file compilation LDFLAGS" >&5
21944 $as_echo_n "checking for large file compilation LDFLAGS... " >&6; }
21945 if ${amanda_cv_LFS_LDFLAGS+:} false; then :
21946 $as_echo_n "(cached) " >&6
21949 amanda_cv_LFS_LDFLAGS=
21950 if test "$GETCONF"; then
21951 if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
21952 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_LFS_LDFLAGS" >&5
21960 $as_echo "$amanda_cv_LFS_LDFLAGS" >&6; }
21961 LDFLAGS="$LDFLAGS $amanda_cv_LFS_LDFLAGS"
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file compilation LIBS" >&5
21965 $as_echo_n "checking for large file compilation LIBS... " >&6; }
21966 if ${amanda_cv_LFS_LIBS+:} false; then :
21967 $as_echo_n "(cached) " >&6
21970 amanda_cv_LFS_LIBS=
21971 if test "$GETCONF"; then
21972 if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
21973 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_LFS_LIBS" >&5
21981 $as_echo "$amanda_cv_LFS_LIBS" >&6; }
21982 LIBS="$amanda_cv_LFS_LIBS $LIBS"
21985 if test x"$NEED_RESETOFS" = x"yes"; then
21987 $as_echo "#define NEED_RESETOFS 1" >>confdefs.h
21992 for ac_header in fstab.h \
21998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21999 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22000 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22001 cat >>confdefs.h <<_ACEOF
22002 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22010 for ac_func in endmntent
22012 ac_fn_c_check_func "$LINENO" "endmntent" "ac_cv_func_endmntent"
22013 if test "x$ac_cv_func_endmntent" = xyes; then :
22014 cat >>confdefs.h <<_ACEOF
22015 #define HAVE_ENDMNTENT 1
22021 for ac_func in setmntent
22023 ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
22024 if test "x$ac_cv_func_setmntent" = xyes; then :
22025 cat >>confdefs.h <<_ACEOF
22026 #define HAVE_SETMNTENT 1
22034 for ac_header in fcntl.h \
22041 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22042 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22043 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22044 cat >>confdefs.h <<_ACEOF
22045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22053 # find a working file-locking mechanism.
22054 # Note: these all use AC_TRY_LINK to make sure that we can compile
22055 # and link each variant. They do not try to test the variants --
22056 # that is left to runtime.
22059 # check POSIX locking
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX locking (with fcntl(2)) is available" >&5
22061 $as_echo_n "checking whether POSIX locking (with fcntl(2)) is available... " >&6; }
22062 if ${amanda_cv_posix_filelocking+:} false; then :
22063 $as_echo_n "(cached) " >&6
22066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22067 /* end confdefs.h. */
22069 #if HAVE_SYS_TYPES_H
22070 # include <sys/types.h>
22073 # include <unistd.h>
22076 # include <fcntl.h>
22085 lock.l_type = F_RDLCK;
22087 lock.l_whence = SEEK_CUR;
22089 return fcntl(1, F_SETLK, &lock);
22095 if ac_fn_c_try_link "$LINENO"; then :
22097 amanda_cv_posix_filelocking="yes"
22101 amanda_cv_posix_filelocking="no"
22104 rm -f core conftest.err conftest.$ac_objext \
22105 conftest$ac_exeext conftest.$ac_ext
22108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_posix_filelocking" >&5
22109 $as_echo "$amanda_cv_posix_filelocking" >&6; }
22110 if test "x$amanda_cv_posix_filelocking" = xyes; then
22112 $as_echo "#define WANT_AMFLOCK_POSIX 1" >>confdefs.h
22114 WANT_AMFLOCK_POSIX="yes"
22115 LOCKING="POSIX_FCNTL"
22117 if test x"$WANT_AMFLOCK_POSIX" = x"yes"; then
22118 WANT_AMFLOCK_POSIX_TRUE=
22119 WANT_AMFLOCK_POSIX_FALSE='#'
22121 WANT_AMFLOCK_POSIX_TRUE='#'
22122 WANT_AMFLOCK_POSIX_FALSE=
22126 # check flock-based (BSD) locking
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flock locking is available" >&5
22128 $as_echo_n "checking whether flock locking is available... " >&6; }
22129 if ${amanda_cv_flock_filelocking+:} false; then :
22130 $as_echo_n "(cached) " >&6
22133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22134 /* end confdefs.h. */
22136 #if HAVE_SYS_FILE_H
22137 # include <sys/file.h>
22144 return flock(1, LOCK_SH);
22150 if ac_fn_c_try_link "$LINENO"; then :
22152 amanda_cv_flock_filelocking="yes"
22156 amanda_cv_flock_filelocking="no"
22159 rm -f core conftest.err conftest.$ac_objext \
22160 conftest$ac_exeext conftest.$ac_ext
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_flock_filelocking" >&5
22164 $as_echo "$amanda_cv_flock_filelocking" >&6; }
22165 if test "x$amanda_cv_flock_filelocking" = xyes; then
22167 $as_echo "#define WANT_AMFLOCK_FLOCK 1" >>confdefs.h
22169 WANT_AMFLOCK_FLOCK="yes"
22172 if test x"$WANT_AMFLOCK_FLOCK" = x"yes"; then
22173 WANT_AMFLOCK_FLOCK_TRUE=
22174 WANT_AMFLOCK_FLOCK_FALSE='#'
22176 WANT_AMFLOCK_FLOCK_TRUE='#'
22177 WANT_AMFLOCK_FLOCK_FALSE=
22181 # check lockf-based (SVR2, SVR3, SVR4) locking
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lockf(3) locking is available" >&5
22183 $as_echo_n "checking whether lockf(3) locking is available... " >&6; }
22184 if ${amanda_cv_lockf_filelocking+:} false; then :
22185 $as_echo_n "(cached) " >&6
22188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22189 /* end confdefs.h. */
22192 # include <unistd.h>
22199 return lockf(1, F_LOCK, 0);
22205 if ac_fn_c_try_link "$LINENO"; then :
22207 amanda_cv_lockf_filelocking="yes"
22211 amanda_cv_lockf_filelocking="no"
22214 rm -f core conftest.err conftest.$ac_objext \
22215 conftest$ac_exeext conftest.$ac_ext
22218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_lockf_filelocking" >&5
22219 $as_echo "$amanda_cv_lockf_filelocking" >&6; }
22220 if test "x$amanda_cv_lockf_filelocking" = xyes; then
22222 $as_echo "#define WANT_AMFLOCK_LOCKF 1" >>confdefs.h
22224 WANT_AMFLOCK_LOCKF="yes"
22227 if test x"$WANT_AMFLOCK_LOCKF" = x"yes"; then
22228 WANT_AMFLOCK_LOCKF_TRUE=
22229 WANT_AMFLOCK_LOCKF_FALSE='#'
22231 WANT_AMFLOCK_LOCKF_TRUE='#'
22232 WANT_AMFLOCK_LOCKF_FALSE=
22236 # check our homebrew hardlink-based locking (requires hardlinks)
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link(2) is available for locking" >&5
22238 $as_echo_n "checking whether link(2) is available for locking... " >&6; }
22239 if ${amanda_cv_lnlock_filelocking+:} false; then :
22240 $as_echo_n "(cached) " >&6
22243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22244 /* end confdefs.h. */
22247 # include <unistd.h>
22254 return link("/tmp/foo", "/tmp/bar");
22260 if ac_fn_c_try_link "$LINENO"; then :
22262 amanda_cv_lnlock_filelocking="yes"
22266 amanda_cv_lnlock_filelocking="no"
22269 rm -f core conftest.err conftest.$ac_objext \
22270 conftest$ac_exeext conftest.$ac_ext
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_lnlock_filelocking" >&5
22274 $as_echo "$amanda_cv_lnlock_filelocking" >&6; }
22275 if test "x$amanda_cv_lnlock_filelocking" = xyes; then
22277 $as_echo "#define WANT_AMFLOCK_LNLOCK 1" >>confdefs.h
22279 WANT_AMFLOCK_LNLOCK="yes"
22282 if test x"$WANT_AMFLOCK_LNLOCK" = x"yes"; then
22283 WANT_AMFLOCK_LNLOCK_TRUE=
22284 WANT_AMFLOCK_LNLOCK_FALSE='#'
22286 WANT_AMFLOCK_LNLOCK_TRUE='#'
22287 WANT_AMFLOCK_LNLOCK_FALSE=
22291 if test x"$LOCKING" = "no"; then
22292 # this shouldn't happen, and is *bad* if it does
22293 as_fn_error $? "*** No working file locking capability found!" "$LINENO" 5
22300 for ac_prog in swig
22302 # Extract the first word of "$ac_prog", so it can be a program name with args.
22303 set dummy $ac_prog; ac_word=$2
22304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22305 $as_echo_n "checking for $ac_word... " >&6; }
22306 if ${ac_cv_path_SWIG+:} false; then :
22307 $as_echo_n "(cached) " >&6
22311 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
22314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22315 for as_dir in $LOCSYSPATH
22318 test -z "$as_dir" && as_dir=.
22319 for ac_exec_ext in '' $ac_executable_extensions; do
22320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22321 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
22322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22332 SWIG=$ac_cv_path_SWIG
22333 if test -n "$SWIG"; then
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
22335 $as_echo "$SWIG" >&6; }
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22338 $as_echo "no" >&6; }
22342 test -n "$SWIG" && break
22346 # 1.3.32 introduces a change in the way empty strings are handled (old versions
22347 # returned undef in Perl, while new versions return an empty Perl string)
22348 # 1.3.39 is required for the %begin block
22350 # Extract the first word of "swig", so it can be a program name with args.
22351 set dummy swig; ac_word=$2
22352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22353 $as_echo_n "checking for $ac_word... " >&6; }
22354 if ${ac_cv_path_SWIG+:} false; then :
22355 $as_echo_n "(cached) " >&6
22359 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
22362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22363 for as_dir in $PATH
22366 test -z "$as_dir" && as_dir=.
22367 for ac_exec_ext in '' $ac_executable_extensions; do
22368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22369 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
22370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22380 SWIG=$ac_cv_path_SWIG
22381 if test -n "$SWIG"; then
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
22383 $as_echo "$SWIG" >&6; }
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22386 $as_echo "no" >&6; }
22390 if test -z "$SWIG" ; then
22391 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
22392 elif test -n "1.3.39" ; then
22393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
22394 $as_echo_n "checking for SWIG version... " >&6; }
22395 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
22396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
22397 $as_echo "$swig_version" >&6; }
22398 if test -n "$swig_version" ; then
22400 # Used to indicate true or false condition
22401 ax_compare_version=false
22403 # Convert the two version strings to be compared into a format that
22404 # allows a simple string comparison. The end result is that a version
22405 # string of the form 1.12.5-r617 will be converted to the form
22406 # 0001001200050617. In other words, each number is zero padded to four
22407 # digits, and non digits are removed.
22409 ax_compare_version_A=`echo "$swig_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22410 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22411 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22412 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22416 ax_compare_version_B=`echo "1.3.39" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22417 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22418 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22419 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22423 ax_compare_version=`echo "x$ax_compare_version_A
22424 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
22428 if test "$ax_compare_version" = "true" ; then
22430 SWIG_LIB=`$SWIG -swiglib`
22433 SWIG='echo "Error: SWIG version >= 1.3.39 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
22438 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
22446 for ac_prog in perl5 perl
22448 # Extract the first word of "$ac_prog", so it can be a program name with args.
22449 set dummy $ac_prog; ac_word=$2
22450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22451 $as_echo_n "checking for $ac_word... " >&6; }
22452 if ${ac_cv_path_PERL+:} false; then :
22453 $as_echo_n "(cached) " >&6
22457 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
22460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22461 for as_dir in $LOCSYSPATH
22464 test -z "$as_dir" && as_dir=.
22465 for ac_exec_ext in '' $ac_executable_extensions; do
22466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22467 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
22468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22478 PERL=$ac_cv_path_PERL
22479 if test -n "$PERL"; then
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22481 $as_echo "$PERL" >&6; }
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22484 $as_echo "no" >&6; }
22488 test -n "$PERL" && break
22492 # Make sure we have perl
22493 if test -z "$PERL"; then
22494 # Extract the first word of "perl", so it can be a program name with args.
22495 set dummy perl; ac_word=$2
22496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22497 $as_echo_n "checking for $ac_word... " >&6; }
22498 if ${ac_cv_prog_PERL+:} false; then :
22499 $as_echo_n "(cached) " >&6
22501 if test -n "$PERL"; then
22502 ac_cv_prog_PERL="$PERL" # Let the user override the test.
22504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22505 for as_dir in $PATH
22508 test -z "$as_dir" && as_dir=.
22509 for ac_exec_ext in '' $ac_executable_extensions; do
22510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22511 ac_cv_prog_PERL="perl"
22512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22521 PERL=$ac_cv_prog_PERL
22522 if test -n "$PERL"; then
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22524 $as_echo "$PERL" >&6; }
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22527 $as_echo "no" >&6; }
22533 # Check if version of Perl is sufficient
22534 ac_perl_version="5.6.0"
22536 if test "x$PERL" != "x"; then
22537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
22538 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
22539 # NB: It would be nice to log the error if there is one, but we cannot rely
22540 # on autoconf internals
22541 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
22542 if test $? -ne 0; then
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22544 $as_echo "no" >&6; };
22546 as_fn_error $? "Amanda requires at least perl 5.6.0" "$LINENO" 5
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
22550 $as_echo "ok" >&6; };
22554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
22555 $as_echo "$as_me: WARNING: could not find perl" >&2;}
22563 WANT_CYGWIN_COPY_PERL_DLL=false
22564 WANT_MANDATORY_THREAD_CHECK=false
22566 # test for ExtUtils::Embed
22567 ac_perl_list_modules="ExtUtils::Embed 0.0"
22568 # Make sure we have perl
22569 if test -z "$PERL"; then
22570 # Extract the first word of "perl", so it can be a program name with args.
22571 set dummy perl; ac_word=$2
22572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22573 $as_echo_n "checking for $ac_word... " >&6; }
22574 if ${ac_cv_prog_PERL+:} false; then :
22575 $as_echo_n "(cached) " >&6
22577 if test -n "$PERL"; then
22578 ac_cv_prog_PERL="$PERL" # Let the user override the test.
22580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22581 for as_dir in $PATH
22584 test -z "$as_dir" && as_dir=.
22585 for ac_exec_ext in '' $ac_executable_extensions; do
22586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22587 ac_cv_prog_PERL="perl"
22588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22597 PERL=$ac_cv_prog_PERL
22598 if test -n "$PERL"; then
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22600 $as_echo "$PERL" >&6; }
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22603 $as_echo "no" >&6; }
22609 # Check the number of arguments
22610 args_num=`echo $ac_perl_list_modules | wc -w`
22611 let "ckeck_args = $args_num % 2"
22612 if test "$check_args" = "1" ; then
22613 as_fn_error $? "syntax error" "$LINENO" 5
22618 if test "x$PERL" != x; then
22620 while test ${#ac_perl_list_modules} -gt 2 ; do
22621 module_name=`echo $ac_perl_list_modules | cut -d " " -f 1`
22622 module_version=`echo $ac_perl_list_modules | cut -d " " -f 2`
22623 ac_perl_list_modules=`echo $ac_perl_list_modules | cut -d " " -f 3-`
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $module_name version $module_version" >&5
22625 $as_echo_n "checking for perl module $module_name version $module_version... " >&6; }
22627 $PERL "-M$module_name" -e exit > /dev/null 2>&1
22628 if test $? -ne 0; then
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22630 $as_echo "no" >&6; };
22632 ac_perl_list_modules=""
22634 version=`$PERL "-M$module_name" -e 'print $'"$module_name::VERSION" 2>&1`
22635 $PERL -e 'exit(shift cmp shift)' "$version" "$module_version"
22636 if test $? -eq 0 -o $? -eq 1 ; then
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
22638 $as_echo "ok" >&6; };
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22641 $as_echo "no" >&6; }
22643 ac_perl_list_modules=""
22648 if test "$ac_failed" = 0; then
22654 as_fn_error $? "*** Amanda requires the perl package ExtUtils::Embed to build its perl modules" "$LINENO" 5
22658 as_fn_error $? "could not find perl" "$LINENO" 5
22661 # get the include path for building perl extensions
22662 PERL_INC=`$PERL -MExtUtils::Embed -e perl_inc`
22665 if test x"$enable_shared" = x"no"; then
22666 as_fn_error $? "*** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" "$LINENO" 5
22670 *freebsd[123456].*) # up to and including FreeBSD 6.*
22671 # Before 7.0, FreeBSD systems don't include a DT_NEEDS segment in
22672 # libgthread to automatically pull in the desired threading library.
22673 # Instead, they assume that any application linking against
22674 # libgthread will pull in the threading library. This is fine for
22675 # Amanda C applications, but for Perl applications this assumption
22676 # means that the perl binary would pull in the threading library.
22677 # But perl is compiled without threading by default.
22679 # Specifically, this occurs on any FreeBSD using gcc-3.*: the linking
22680 # decision is made in gcc's spec files, which were changed in
22681 # gcc-4.0. For a more in-depth discussion, see
22682 # http://wiki.zmanda.com/index.php/Installation/OS_Specific_Notes/Installing_Amanda_on_FreeBSD
22684 # The easiest solution for the "default" case is to link all perl
22685 # extension libraries against the threading library, so it is loaded
22686 # when perl loads the extension library. The default threading
22687 # library in FreeBSD is libpthread. The below default will work on
22688 # such a FreeBSD system, but ports maintainers and those with
22689 # different configurations may need to override this value with
22690 # --with-perlextlibs.
22692 # We can't use -pthread because gcc on FreeBSD ignores -pthread in
22693 # combination with -shared. See
22694 # http://lists.freebsd.org/pipermail/freebsd-stable/2006-June/026229.html
22696 PERLEXTLIBS="-lpthread"
22697 WANT_MANDATORY_THREAD_CHECK=true
22700 *freebsd*) # all FreeBSD not matched above
22701 # for all FreeBSD (including 1.0-6.0, above), we want to run the
22702 # thread-check rule in perl/Makefile.am to double-check that a Perl
22703 # script can call a C extension that uses threads.
22704 WANT_MANDATORY_THREAD_CHECK=true
22708 # When need -lperl and the '-L' where it is located,
22709 # we don't want the DynaLoader.a
22710 PERLEXTLIBS=`perl -MExtUtils::Embed -e ldopts | sed -e 's/^.*-L/-L/'`
22711 # we want cygwin to copy ddl to modules directory.
22712 WANT_CYGWIN_COPY_PERL_DLL="true";
22715 if $WANT_CYGWIN_COPY_PERL_DLL; then
22716 WANT_CYGWIN_COPY_PERL_DLL_TRUE=
22717 WANT_CYGWIN_COPY_PERL_DLL_FALSE='#'
22719 WANT_CYGWIN_COPY_PERL_DLL_TRUE='#'
22720 WANT_CYGWIN_COPY_PERL_DLL_FALSE=
22723 if $WANT_MANDATORY_THREAD_CHECK; then
22724 WANT_MANDATORY_THREAD_CHECK_TRUE=
22725 WANT_MANDATORY_THREAD_CHECK_FALSE='#'
22727 WANT_MANDATORY_THREAD_CHECK_TRUE='#'
22728 WANT_MANDATORY_THREAD_CHECK_FALSE=
22733 # Check whether --with-perlextlibs was given.
22734 if test "${with_perlextlibs+set}" = set; then :
22735 withval=$with_perlextlibs;
22737 y|ye|yes) as_fn_error $? "*** You must specify a value for --with-perlextlibs" "$LINENO" 5;;
22738 n|no) PERLEXTLIBS='';;
22739 *) PERLEXTLIBS="$withval" ;;
22748 # Extract the first word of "cat", so it can be a program name with args.
22749 set dummy cat; ac_word=$2
22750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22751 $as_echo_n "checking for $ac_word... " >&6; }
22752 if ${ac_cv_path_CAT+:} false; then :
22753 $as_echo_n "(cached) " >&6
22757 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
22760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22761 for as_dir in $LOCSYSPATH
22764 test -z "$as_dir" && as_dir=.
22765 for ac_exec_ext in '' $ac_executable_extensions; do
22766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22767 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
22768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22775 test -z "$ac_cv_path_CAT" && ac_cv_path_CAT="cat"
22779 CAT=$ac_cv_path_CAT
22780 if test -n "$CAT"; then
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
22782 $as_echo "$CAT" >&6; }
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22785 $as_echo "no" >&6; }
22796 if test "$GZIP"; then
22798 $as_echo "#define HAVE_GZIP 1" >>confdefs.h
22801 COMPRESS_PATH="$GZIP"
22802 COMPRESS_SUFFIX=".gz"
22803 COMPRESS_FAST_OPT="--fast"
22804 COMPRESS_BEST_OPT="--best"
22805 UNCOMPRESS_PATH="$GZIP"
22806 UNCOMPRESS_OPT="-dc"
22808 if test "$COMPRESS"; then
22809 COMPRESS_PATH="$COMPRESS"
22810 COMPRESS_SUFFIX=".Z"
22811 COMPRESS_FAST_OPT="-f"
22812 COMPRESS_BEST_OPT="-f"
22813 UNCOMPRESS_PATH="$COMPRESS"
22814 UNCOMPRESS_OPT="-dc"
22816 # If we have to use cat, we don't define COMPRESS_FAST_OPT,
22817 # COMPRESS_BEST_OPT, or UNCOMPRESS_OPT as "" since cat will look
22818 # look for a file by the name of "".
22819 # XXX is the above true? --dustin
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find either gzip or compress. Using cat." >&5
22823 $as_echo "$as_me: WARNING: Cannot find either gzip or compress. Using cat." >&2;}
22826 cat <<AAW_EOF >>config.warnings
22827 Cannot find either gzip or compress. Using cat.
22831 COMPRESS_PATH="$CAT"
22833 COMPRESS_FAST_OPT=""
22834 COMPRESS_BEST_OPT=""
22835 UNCOMPRESS_PATH="$CAT"
22841 cat >>confdefs.h <<_ACEOF
22842 #define COMPRESS_PATH "$COMPRESS_PATH"
22846 cat >>confdefs.h <<_ACEOF
22847 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
22851 cat >>confdefs.h <<_ACEOF
22852 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
22856 cat >>confdefs.h <<_ACEOF
22857 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
22861 cat >>confdefs.h <<_ACEOF
22862 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
22866 cat >>confdefs.h <<_ACEOF
22867 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
22879 # Empty GZIP so that make dist works.
22883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_storage struct exists" >&5
22884 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
22885 if ${ac_cv_has_sockaddr_storage+:} false; then :
22886 $as_echo_n "(cached) " >&6
22889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22890 /* end confdefs.h. */
22892 # include <sys/types.h>
22893 # include <sys/socket.h>
22897 u_int i = sizeof (struct sockaddr_storage)
22902 if ac_fn_c_try_compile "$LINENO"; then :
22903 ac_cv_has_sockaddr_storage=yes
22905 ac_cv_has_sockaddr_storage=no
22907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_sockaddr_storage" >&5
22911 $as_echo "$ac_cv_has_sockaddr_storage" >&6; }
22913 if test $ac_cv_has_sockaddr_storage = yes ; then
22915 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
22924 # Check whether --with-ipv6 was given.
22925 if test "${with_ipv6+set}" = set; then :
22926 withval=$with_ipv6;
22928 y | ye | yes) amanda_with_ipv6=yes;;
22929 n | no) amanda_with_ipv6=no;;
22931 as_fn_error $? "*** You must not supply an argument to --with-ipv6 option." "$LINENO" 5
22937 amanda_with_ipv6=maybe
22943 if test x"$amanda_with_ipv6" = x"yes" ||
22944 test x"$amanda_with_ipv6" = x"maybe" ; then
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working IPv6" >&5
22946 $as_echo_n "checking for working IPv6... " >&6; }
22947 if ${amanda_cv_working_ipv6+:} false; then :
22948 $as_echo_n "(cached) " >&6
22952 *-pc-cygwin) amanda_cv_working_ipv6=no;;
22954 if test "$cross_compiling" = yes; then :
22955 amanda_cv_working_ipv6=yes
22958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22959 /* end confdefs.h. */
22961 #include <sys/types.h>
22962 #ifdef HAVE_SYS_SOCKET_H
22963 #include <sys/socket.h>
22965 #ifdef HAVE_NETINET_IN_H
22966 #include <netinet/in.h>
22968 #ifdef HAVE_WINSOCK2_H
22969 #include <winsock2.h>
22971 #include <sys/socket.h>
22977 aa = socket(AF_INET6, SOCK_STREAM, 0);
22978 if (aa > 0) return 0;
22982 if ac_fn_c_try_run "$LINENO"; then :
22983 amanda_cv_working_ipv6=yes
22985 amanda_cv_working_ipv6=no
22987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22988 conftest.$ac_objext conftest.beam conftest.$ac_ext
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_working_ipv6" >&5
22995 $as_echo "$amanda_cv_working_ipv6" >&6; }
22997 if test "$amanda_cv_working_ipv6" = yes; then
23000 $as_echo "#define WORKING_IPV6 1" >>confdefs.h
23003 # error out only if the user specifically requested support
23004 if test x"$amanda_with_ipv6" = x"yes"; then
23005 as_fn_error $? "IPv6 support was requested, but opening an IPv6 socket failed" "$LINENO" 5
23011 ac_header_dirent=no
23012 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23013 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
23015 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
23016 if eval \${$as_ac_Header+:} false; then :
23017 $as_echo_n "(cached) " >&6
23019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23020 /* end confdefs.h. */
23021 #include <sys/types.h>
23033 if ac_fn_c_try_compile "$LINENO"; then :
23034 eval "$as_ac_Header=yes"
23036 eval "$as_ac_Header=no"
23038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23040 eval ac_res=\$$as_ac_Header
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23042 $as_echo "$ac_res" >&6; }
23043 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23044 cat >>confdefs.h <<_ACEOF
23045 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23048 ac_header_dirent=$ac_hdr; break
23052 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23053 if test $ac_header_dirent = dirent.h; then
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23055 $as_echo_n "checking for library containing opendir... " >&6; }
23056 if ${ac_cv_search_opendir+:} false; then :
23057 $as_echo_n "(cached) " >&6
23059 ac_func_search_save_LIBS=$LIBS
23060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23061 /* end confdefs.h. */
23063 /* Override any GCC internal prototype to avoid an error.
23064 Use char because int might match the return type of a GCC
23065 builtin and then its argument prototype would still apply. */
23078 for ac_lib in '' dir; do
23079 if test -z "$ac_lib"; then
23080 ac_res="none required"
23083 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23085 if ac_fn_c_try_link "$LINENO"; then :
23086 ac_cv_search_opendir=$ac_res
23088 rm -f core conftest.err conftest.$ac_objext \
23090 if ${ac_cv_search_opendir+:} false; then :
23094 if ${ac_cv_search_opendir+:} false; then :
23097 ac_cv_search_opendir=no
23099 rm conftest.$ac_ext
23100 LIBS=$ac_func_search_save_LIBS
23102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23103 $as_echo "$ac_cv_search_opendir" >&6; }
23104 ac_res=$ac_cv_search_opendir
23105 if test "$ac_res" != no; then :
23106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23112 $as_echo_n "checking for library containing opendir... " >&6; }
23113 if ${ac_cv_search_opendir+:} false; then :
23114 $as_echo_n "(cached) " >&6
23116 ac_func_search_save_LIBS=$LIBS
23117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23118 /* end confdefs.h. */
23120 /* Override any GCC internal prototype to avoid an error.
23121 Use char because int might match the return type of a GCC
23122 builtin and then its argument prototype would still apply. */
23135 for ac_lib in '' x; do
23136 if test -z "$ac_lib"; then
23137 ac_res="none required"
23140 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23142 if ac_fn_c_try_link "$LINENO"; then :
23143 ac_cv_search_opendir=$ac_res
23145 rm -f core conftest.err conftest.$ac_objext \
23147 if ${ac_cv_search_opendir+:} false; then :
23151 if ${ac_cv_search_opendir+:} false; then :
23154 ac_cv_search_opendir=no
23156 rm conftest.$ac_ext
23157 LIBS=$ac_func_search_save_LIBS
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23160 $as_echo "$ac_cv_search_opendir" >&6; }
23161 ac_res=$ac_cv_search_opendir
23162 if test "$ac_res" != no; then :
23163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23170 # include the dirent headers as described in the autoconf documentation.
23171 ac_fn_c_check_decl "$LINENO" "readdir" "ac_cv_have_decl_readdir" "
23173 # include <dirent.h>
23174 # define NAMLEN(dirent) strlen((dirent)->d_name)
23176 # define dirent direct
23177 # define NAMLEN(dirent) (dirent)->d_namlen
23178 # if HAVE_SYS_NDIR_H
23179 # include <sys/ndir.h>
23181 # if HAVE_SYS_DIR_H
23182 # include <sys/dir.h>
23190 if test "x$ac_cv_have_decl_readdir" = xyes; then :
23196 cat >>confdefs.h <<_ACEOF
23197 #define HAVE_DECL_READDIR $ac_have_decl
23199 ac_fn_c_check_decl "$LINENO" "readdir_r" "ac_cv_have_decl_readdir_r" "
23201 # include <dirent.h>
23202 # define NAMLEN(dirent) strlen((dirent)->d_name)
23204 # define dirent direct
23205 # define NAMLEN(dirent) (dirent)->d_namlen
23206 # if HAVE_SYS_NDIR_H
23207 # include <sys/ndir.h>
23209 # if HAVE_SYS_DIR_H
23210 # include <sys/dir.h>
23218 if test "x$ac_cv_have_decl_readdir_r" = xyes; then :
23224 cat >>confdefs.h <<_ACEOF
23225 #define HAVE_DECL_READDIR_R $ac_have_decl
23227 ac_fn_c_check_decl "$LINENO" "readdir64" "ac_cv_have_decl_readdir64" "
23229 # include <dirent.h>
23230 # define NAMLEN(dirent) strlen((dirent)->d_name)
23232 # define dirent direct
23233 # define NAMLEN(dirent) (dirent)->d_namlen
23234 # if HAVE_SYS_NDIR_H
23235 # include <sys/ndir.h>
23237 # if HAVE_SYS_DIR_H
23238 # include <sys/dir.h>
23246 if test "x$ac_cv_have_decl_readdir64" = xyes; then :
23252 cat >>confdefs.h <<_ACEOF
23253 #define HAVE_DECL_READDIR64 $ac_have_decl
23255 ac_fn_c_check_decl "$LINENO" "readdir64_r" "ac_cv_have_decl_readdir64_r" "
23257 # include <dirent.h>
23258 # define NAMLEN(dirent) strlen((dirent)->d_name)
23260 # define dirent direct
23261 # define NAMLEN(dirent) (dirent)->d_namlen
23262 # if HAVE_SYS_NDIR_H
23263 # include <sys/ndir.h>
23265 # if HAVE_SYS_DIR_H
23266 # include <sys/dir.h>
23274 if test "x$ac_cv_have_decl_readdir64_r" = xyes; then :
23280 cat >>confdefs.h <<_ACEOF
23281 #define HAVE_DECL_READDIR64_R $ac_have_decl
23286 # disk device prefixes
23287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking disk device prefixes" >&5
23288 $as_echo_n "checking disk device prefixes... " >&6; }
23290 # Use df to find the mount point for the root filesystem. Use
23291 # the positional parameters to find the particular line from df
23292 # that contains the root paritition. We put it in a subshell so
23293 # that the original positional parameters are not messed with.
23295 df / | while read line; do
23297 while test $# -gt 0; do
23298 if test "x$1" = "x/"; then
23305 ) | sed 's/(//' | sed 's/)//' `
23307 # Search for the mount point by using expr to find the parameter
23311 while test $# -gt 0; do
23312 if expr "$1" : '.*dev' >/dev/null 2>&1; then
23320 # get any system-specific configuration information
23323 CLIENT_SCRIPTS_OPT=amhpfixdevs
23327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&5
23328 $as_echo "$as_me: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&2;}
23331 cat <<AAW_EOF >>config.warnings
23332 Run amhpfixdevs on HP-UX systems using /dev/vg??.
23340 DEV_PREFIX=/dev/dsk/
23341 RDEV_PREFIX=/dev/rdsk/
23342 CLIENT_SCRIPTS_OPT=amsinixfixdevs
23343 if ! test -d /dev/dsk; then
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&5
23346 $as_echo "$as_me: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&2;}
23349 cat <<AAW_EOF >>config.warnings
23350 Run amsinixfixdevs on Sinix systems using VxFS.
23361 CLIENT_SCRIPTS_OPT=
23365 if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
23366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
23367 $as_echo "(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6; }
23369 if test -d /dev/dsk; then
23370 DEV_PREFIX=/dev/dsk/
23371 if test -d /dev/rdsk; then
23372 RDEV_PREFIX=/dev/rdsk/
23374 RDEV_PREFIX=/dev/dsk/
23376 elif test -d /dev; then
23379 # Some systems, notably Linux, do not have raw disk devices
23380 # names. Check this by trying to see if a raw disk device name
23381 # exists using the normal raw device path prepended to the
23382 # mount point of the root filesystem.
23383 if test "$mount"; then
23384 dev_name="/dev/r`basename $mount`"
23385 if test -b $dev_name -o -c $dev_name; then
23398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
23399 $as_echo "$DEV_PREFIX - $RDEV_PREFIX" >&6; }
23403 cat >>confdefs.h <<_ACEOF
23404 #define DEV_PREFIX "${DEV_PREFIX}"
23408 cat >>confdefs.h <<_ACEOF
23409 #define RDEV_PREFIX "${RDEV_PREFIX}"
23429 CPPFLAGS="$CPPFLAGS -D__STDC_EXT__"
23433 CFLAGS="$CFLAGS -Ae"
23440 m88k-motorola-sysv4)
23461 # The old cc won't work!
23462 if test "x$GCC" != "xyes"; then
23463 as_fn_error $? "The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" "$LINENO" 5
23488 $as_echo "#define IGNORE_TAR_ERRORS 1" >>confdefs.h
23490 # Cygwin needs PATH to find cygwin1.dll
23492 $as_echo "#define NEED_PATH_ENV 1" >>confdefs.h
23495 $as_echo "#define IGNORE_FSTAB 1" >>confdefs.h
23497 LDFLAGS="$LDFLAGS -Wl,-enable-runtime-pseudo-reloc -no-undefined"
23500 *-apple-darwin7*) # MacOS X 10.3.* (Panther)
23502 *-apple-darwin8*) # MacOS X 10.4.* (Tiger)
23504 *-apple-darwin9*) # MacOS X 10.5.* (Leopard)
23506 *-apple-darwin10*) # MacOS X 10.6.* (Snow Leopard)
23511 cat <<AAW_EOF >>config.warnings
23513 This machine, target type $host, is not known to be fully supported
23514 by this configure script. If the installation of Amanda on this system
23515 succeeds or needed any patches, please email amanda-hackers@amanda.org
23516 with the patches or an indication of the sucess or failure of the
23517 Amanda installation on your system.
23530 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23531 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23532 eval ac_define_dir="\"$bindir\""
23533 eval ac_define_dir="\"$ac_define_dir\""
23534 bindir="$ac_define_dir"
23537 cat >>confdefs.h <<_ACEOF
23538 #define bindir "$ac_define_dir"
23541 test "$prefix_NONE" && prefix=NONE
23542 test "$exec_prefix_NONE" && exec_prefix=NONE
23548 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23549 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23550 eval ac_define_dir="\"$sbindir\""
23551 eval ac_define_dir="\"$ac_define_dir\""
23552 sbindir="$ac_define_dir"
23555 cat >>confdefs.h <<_ACEOF
23556 #define sbindir "$ac_define_dir"
23559 test "$prefix_NONE" && prefix=NONE
23560 test "$exec_prefix_NONE" && exec_prefix=NONE
23566 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23567 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23568 eval ac_define_dir="\"$libexecdir\""
23569 eval ac_define_dir="\"$ac_define_dir\""
23570 libexecdir="$ac_define_dir"
23573 cat >>confdefs.h <<_ACEOF
23574 #define libexecdir "$ac_define_dir"
23577 test "$prefix_NONE" && prefix=NONE
23578 test "$exec_prefix_NONE" && exec_prefix=NONE
23584 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23585 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23586 eval ac_define_dir="\"$mandir\""
23587 eval ac_define_dir="\"$ac_define_dir\""
23588 mandir="$ac_define_dir"
23591 cat >>confdefs.h <<_ACEOF
23592 #define mandir "$ac_define_dir"
23595 test "$prefix_NONE" && prefix=NONE
23596 test "$exec_prefix_NONE" && exec_prefix=NONE
23600 # amanda-specific directories
23601 AMLIBDIR=$libdir/amanda
23603 # Check whether --with-amlibdir was given.
23604 if test "${with_amlibdir+set}" = set; then :
23605 withval=$with_amlibdir;
23607 n | no) AMLIBDIR=$libdir ;;
23608 y | ye | yes) AMLIBDIR=$libdir/amanda ;;
23609 *) AMLIBDIR=$withval ;;
23618 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23619 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23620 eval ac_define_dir="\"$AMLIBDIR\""
23621 eval ac_define_dir="\"$ac_define_dir\""
23622 amlibdir="$ac_define_dir"
23625 cat >>confdefs.h <<_ACEOF
23626 #define amlibdir "$ac_define_dir"
23629 test "$prefix_NONE" && prefix=NONE
23630 test "$exec_prefix_NONE" && exec_prefix=NONE
23633 AMLIBEXECDIR=$libexecdir/amanda
23635 # Check whether --with-amlibexecdir was given.
23636 if test "${with_amlibexecdir+set}" = set; then :
23637 withval=$with_amlibexecdir;
23639 n | no) AMLIBEXECDIR=$libexecdir ;;
23640 y | ye | yes) AMLIBEXECDIR=$libexecdir/amanda ;;
23641 *) AMLIBEXECDIR=$withval ;;
23650 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23651 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23652 eval ac_define_dir="\"$AMLIBEXECDIR\""
23653 eval ac_define_dir="\"$ac_define_dir\""
23654 amlibexecdir="$ac_define_dir"
23657 cat >>confdefs.h <<_ACEOF
23658 #define amlibexecdir "$ac_define_dir"
23661 test "$prefix_NONE" && prefix=NONE
23662 test "$exec_prefix_NONE" && exec_prefix=NONE
23665 amincludedir="${includedir}/amanda"
23669 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23670 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23671 eval ac_define_dir="\"$amincludedir\""
23672 eval ac_define_dir="\"$ac_define_dir\""
23673 amincludedir="$ac_define_dir"
23676 cat >>confdefs.h <<_ACEOF
23677 #define amincludedir "$ac_define_dir"
23680 test "$prefix_NONE" && prefix=NONE
23681 test "$exec_prefix_NONE" && exec_prefix=NONE
23685 # Check whether --with-amperldir was given.
23686 if test "${with_amperldir+set}" = set; then :
23687 withval=$with_amperldir;
23689 y | ye | yes) AMPERLLIB=DEFAULT ;;
23690 n | no) AMPERLLIB=$amlibdir/perl ;;
23691 *) AMPERLLIB=$withval ;;
23701 # apply the default if no value was given.
23702 if test x"$AMPERLLIB" = x"DEFAULT"; then
23703 eval `$PERL -V:installsitelib`
23704 AMPERLLIB=$installsitelib
23709 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23710 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23711 eval ac_define_dir="\"$AMPERLLIB\""
23712 eval ac_define_dir="\"$ac_define_dir\""
23713 amperldir="$ac_define_dir"
23716 cat >>confdefs.h <<_ACEOF
23717 #define amperldir "$ac_define_dir"
23720 test "$prefix_NONE" && prefix=NONE
23721 test "$exec_prefix_NONE" && exec_prefix=NONE
23724 APPLICATION_DIR='${amlibexecdir}/application'
23728 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23729 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23730 eval ac_define_dir="\"$APPLICATION_DIR\""
23731 eval ac_define_dir="\"$ac_define_dir\""
23732 APPLICATION_DIR="$ac_define_dir"
23735 cat >>confdefs.h <<_ACEOF
23736 #define APPLICATION_DIR "$ac_define_dir"
23739 test "$prefix_NONE" && prefix=NONE
23740 test "$exec_prefix_NONE" && exec_prefix=NONE
23744 # Check whether --with-amdatadir was given.
23745 if test "${with_amdatadir+set}" = set; then :
23746 withval=$with_amdatadir;
23751 AMDATADIR=$datadir/amanda
23759 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23760 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23761 eval ac_define_dir="\"$AMDATADIR\""
23762 eval ac_define_dir="\"$ac_define_dir\""
23763 amdatadir="$ac_define_dir"
23766 cat >>confdefs.h <<_ACEOF
23767 #define amdatadir "$ac_define_dir"
23770 test "$prefix_NONE" && prefix=NONE
23771 test "$exec_prefix_NONE" && exec_prefix=NONE
23776 # Internationalization
23779 # FreeBSD needs to link libxpg4
23780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setlocale in -lxpg4" >&5
23781 $as_echo_n "checking for setlocale in -lxpg4... " >&6; }
23782 if ${ac_cv_lib_xpg4_setlocale+:} false; then :
23783 $as_echo_n "(cached) " >&6
23785 ac_check_lib_save_LIBS=$LIBS
23786 LIBS="-lxpg4 $LIBS"
23787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23788 /* end confdefs.h. */
23790 /* Override any GCC internal prototype to avoid an error.
23791 Use char because int might match the return type of a GCC
23792 builtin and then its argument prototype would still apply. */
23800 return setlocale ();
23805 if ac_fn_c_try_link "$LINENO"; then :
23806 ac_cv_lib_xpg4_setlocale=yes
23808 ac_cv_lib_xpg4_setlocale=no
23810 rm -f core conftest.err conftest.$ac_objext \
23811 conftest$ac_exeext conftest.$ac_ext
23812 LIBS=$ac_check_lib_save_LIBS
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4_setlocale" >&5
23815 $as_echo "$ac_cv_lib_xpg4_setlocale" >&6; }
23816 if test "x$ac_cv_lib_xpg4_setlocale" = xyes; then :
23817 cat >>confdefs.h <<_ACEOF
23818 #define HAVE_LIBXPG4 1
23821 LIBS="-lxpg4 $LIBS"
23826 # ------------------------------------------------------------------
23827 # All list of languages for which a translation exist. Each
23828 # language is separated by a space.
23829 # ------------------------------------------------------------------
23833 # Extract the first word of "msgfmt", so it can be a program name with args.
23834 set dummy msgfmt; ac_word=$2
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23836 $as_echo_n "checking for $ac_word... " >&6; }
23837 if ${ac_cv_path_MSGFMT+:} false; then :
23838 $as_echo_n "(cached) " >&6
23842 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
23845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23846 for as_dir in $LOCSYSPATH
23849 test -z "$as_dir" && as_dir=.
23850 for ac_exec_ext in '' $ac_executable_extensions; do
23851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23852 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
23853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23863 MSGFMT=$ac_cv_path_MSGFMT
23864 if test -n "$MSGFMT"; then
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
23866 $as_echo "$MSGFMT" >&6; }
23868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23869 $as_echo "no" >&6; }
23873 # Extract the first word of "gettext", so it can be a program name with args.
23874 set dummy gettext; ac_word=$2
23875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23876 $as_echo_n "checking for $ac_word... " >&6; }
23877 if ${ac_cv_path_GETTEXT+:} false; then :
23878 $as_echo_n "(cached) " >&6
23882 ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
23885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23886 for as_dir in $LOCSYSPATH
23889 test -z "$as_dir" && as_dir=.
23890 for ac_exec_ext in '' $ac_executable_extensions; do
23891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23892 ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
23893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23903 GETTEXT=$ac_cv_path_GETTEXT
23904 if test -n "$GETTEXT"; then
23905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETTEXT" >&5
23906 $as_echo "$GETTEXT" >&6; }
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23909 $as_echo "no" >&6; }
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
23917 $as_echo_n "checking whether NLS is requested... " >&6; }
23918 # Check whether --enable-nls was given.
23919 if test "${enable_nls+set}" = set; then :
23920 enableval=$enable_nls; USE_NLS=$enableval
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
23926 $as_echo "$USE_NLS" >&6; }
23933 # Prepare PATH_SEPARATOR.
23934 # The user is always right.
23935 if test "${PATH_SEPARATOR+set}" != set; then
23936 echo "#! /bin/sh" >conf$$.sh
23937 echo "exit 0" >>conf$$.sh
23939 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23947 # Find out how to test for executable files. Don't use a zero-byte file,
23948 # as systems may use methods other than mode bits to determine executability.
23949 cat >conf$$.file <<_ASEOF
23953 chmod +x conf$$.file
23954 if test -x conf$$.file >/dev/null 2>&1; then
23955 ac_executable_p="test -x"
23957 ac_executable_p="test -f"
23961 # Extract the first word of "msgfmt", so it can be a program name with args.
23962 set dummy msgfmt; ac_word=$2
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23964 $as_echo_n "checking for $ac_word... " >&6; }
23965 if ${ac_cv_path_MSGFMT+:} false; then :
23966 $as_echo_n "(cached) " >&6
23970 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
23973 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
23974 for ac_dir in $PATH; do
23976 test -z "$ac_dir" && ac_dir=.
23977 for ac_exec_ext in '' $ac_executable_extensions; do
23978 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
23979 echo "$as_me: trying $ac_dir/$ac_word..." >&5
23980 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
23981 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
23982 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
23989 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
23993 MSGFMT="$ac_cv_path_MSGFMT"
23994 if test "$MSGFMT" != ":"; then
23995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
23996 $as_echo "$MSGFMT" >&6; }
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23999 $as_echo "no" >&6; }
24002 # Extract the first word of "gmsgfmt", so it can be a program name with args.
24003 set dummy gmsgfmt; ac_word=$2
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24005 $as_echo_n "checking for $ac_word... " >&6; }
24006 if ${ac_cv_path_GMSGFMT+:} false; then :
24007 $as_echo_n "(cached) " >&6
24011 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
24014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24015 for as_dir in $PATH
24018 test -z "$as_dir" && as_dir=.
24019 for ac_exec_ext in '' $ac_executable_extensions; do
24020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24021 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
24022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24029 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
24033 GMSGFMT=$ac_cv_path_GMSGFMT
24034 if test -n "$GMSGFMT"; then
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
24036 $as_echo "$GMSGFMT" >&6; }
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24039 $as_echo "no" >&6; }
24044 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
24045 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
24046 *) MSGFMT_015=$MSGFMT ;;
24049 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
24050 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
24051 *) GMSGFMT_015=$GMSGFMT ;;
24056 # Prepare PATH_SEPARATOR.
24057 # The user is always right.
24058 if test "${PATH_SEPARATOR+set}" != set; then
24059 echo "#! /bin/sh" >conf$$.sh
24060 echo "exit 0" >>conf$$.sh
24062 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24070 # Find out how to test for executable files. Don't use a zero-byte file,
24071 # as systems may use methods other than mode bits to determine executability.
24072 cat >conf$$.file <<_ASEOF
24076 chmod +x conf$$.file
24077 if test -x conf$$.file >/dev/null 2>&1; then
24078 ac_executable_p="test -x"
24080 ac_executable_p="test -f"
24084 # Extract the first word of "xgettext", so it can be a program name with args.
24085 set dummy xgettext; ac_word=$2
24086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24087 $as_echo_n "checking for $ac_word... " >&6; }
24088 if ${ac_cv_path_XGETTEXT+:} false; then :
24089 $as_echo_n "(cached) " >&6
24091 case "$XGETTEXT" in
24093 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
24096 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
24097 for ac_dir in $PATH; do
24099 test -z "$ac_dir" && ac_dir=.
24100 for ac_exec_ext in '' $ac_executable_extensions; do
24101 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
24102 echo "$as_me: trying $ac_dir/$ac_word..." >&5
24103 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
24104 (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
24105 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
24112 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
24116 XGETTEXT="$ac_cv_path_XGETTEXT"
24117 if test "$XGETTEXT" != ":"; then
24118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
24119 $as_echo "$XGETTEXT" >&6; }
24121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24122 $as_echo "no" >&6; }
24127 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
24128 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
24129 *) XGETTEXT_015=$XGETTEXT ;;
24134 # Prepare PATH_SEPARATOR.
24135 # The user is always right.
24136 if test "${PATH_SEPARATOR+set}" != set; then
24137 echo "#! /bin/sh" >conf$$.sh
24138 echo "exit 0" >>conf$$.sh
24140 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24148 # Find out how to test for executable files. Don't use a zero-byte file,
24149 # as systems may use methods other than mode bits to determine executability.
24150 cat >conf$$.file <<_ASEOF
24154 chmod +x conf$$.file
24155 if test -x conf$$.file >/dev/null 2>&1; then
24156 ac_executable_p="test -x"
24158 ac_executable_p="test -f"
24162 # Extract the first word of "msgmerge", so it can be a program name with args.
24163 set dummy msgmerge; ac_word=$2
24164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24165 $as_echo_n "checking for $ac_word... " >&6; }
24166 if ${ac_cv_path_MSGMERGE+:} false; then :
24167 $as_echo_n "(cached) " >&6
24169 case "$MSGMERGE" in
24171 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
24174 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
24175 for ac_dir in $PATH; do
24177 test -z "$ac_dir" && ac_dir=.
24178 for ac_exec_ext in '' $ac_executable_extensions; do
24179 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
24180 echo "$as_me: trying $ac_dir/$ac_word..." >&5
24181 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
24182 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
24189 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
24193 MSGMERGE="$ac_cv_path_MSGMERGE"
24194 if test "$MSGMERGE" != ":"; then
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
24196 $as_echo "$MSGMERGE" >&6; }
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24199 $as_echo "no" >&6; }
24203 test -n "$localedir" || localedir='${datadir}/locale'
24206 ac_config_commands="$ac_config_commands po-directories"
24218 acl_save_prefix="$prefix"
24219 prefix="$acl_final_prefix"
24220 acl_save_exec_prefix="$exec_prefix"
24221 exec_prefix="$acl_final_exec_prefix"
24223 eval additional_includedir=\"$includedir\"
24224 eval additional_libdir=\"$libdir\"
24226 exec_prefix="$acl_save_exec_prefix"
24227 prefix="$acl_save_prefix"
24230 # Check whether --with-libiconv-prefix was given.
24231 if test "${with_libiconv_prefix+set}" = set; then :
24232 withval=$with_libiconv_prefix;
24233 if test "X$withval" = "Xno"; then
24236 if test "X$withval" = "X"; then
24238 acl_save_prefix="$prefix"
24239 prefix="$acl_final_prefix"
24240 acl_save_exec_prefix="$exec_prefix"
24241 exec_prefix="$acl_final_exec_prefix"
24243 eval additional_includedir=\"$includedir\"
24244 eval additional_libdir=\"$libdir\"
24246 exec_prefix="$acl_save_exec_prefix"
24247 prefix="$acl_save_prefix"
24250 additional_includedir="$withval/include"
24251 additional_libdir="$withval/$acl_libdirstem"
24262 names_already_handled=
24263 names_next_round='iconv '
24264 while test -n "$names_next_round"; do
24265 names_this_round="$names_next_round"
24267 for name in $names_this_round; do
24269 for n in $names_already_handled; do
24270 if test "$n" = "$name"; then
24271 already_handled=yes
24275 if test -z "$already_handled"; then
24276 names_already_handled="$names_already_handled $name"
24277 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24278 eval value=\"\$HAVE_LIB$uppername\"
24279 if test -n "$value"; then
24280 if test "$value" = yes; then
24281 eval value=\"\$LIB$uppername\"
24282 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
24283 eval value=\"\$LTLIB$uppername\"
24284 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
24293 if test $use_additional = yes; then
24294 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
24295 found_dir="$additional_libdir"
24296 found_so="$additional_libdir/lib$name.$shlibext"
24297 if test -f "$additional_libdir/lib$name.la"; then
24298 found_la="$additional_libdir/lib$name.la"
24301 if test -f "$additional_libdir/lib$name.$libext"; then
24302 found_dir="$additional_libdir"
24303 found_a="$additional_libdir/lib$name.$libext"
24304 if test -f "$additional_libdir/lib$name.la"; then
24305 found_la="$additional_libdir/lib$name.la"
24310 if test "X$found_dir" = "X"; then
24311 for x in $LDFLAGS $LTLIBICONV; do
24313 acl_save_prefix="$prefix"
24314 prefix="$acl_final_prefix"
24315 acl_save_exec_prefix="$exec_prefix"
24316 exec_prefix="$acl_final_exec_prefix"
24318 exec_prefix="$acl_save_exec_prefix"
24319 prefix="$acl_save_prefix"
24323 dir=`echo "X$x" | sed -e 's/^X-L//'`
24324 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
24326 found_so="$dir/lib$name.$shlibext"
24327 if test -f "$dir/lib$name.la"; then
24328 found_la="$dir/lib$name.la"
24331 if test -f "$dir/lib$name.$libext"; then
24333 found_a="$dir/lib$name.$libext"
24334 if test -f "$dir/lib$name.la"; then
24335 found_la="$dir/lib$name.la"
24341 if test "X$found_dir" != "X"; then
24346 if test "X$found_dir" != "X"; then
24347 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
24348 if test "X$found_so" != "X"; then
24349 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
24350 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24353 for x in $ltrpathdirs; do
24354 if test "X$x" = "X$found_dir"; then
24359 if test -z "$haveit"; then
24360 ltrpathdirs="$ltrpathdirs $found_dir"
24362 if test "$hardcode_direct" = yes; then
24363 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24365 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24366 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24368 for x in $rpathdirs; do
24369 if test "X$x" = "X$found_dir"; then
24374 if test -z "$haveit"; then
24375 rpathdirs="$rpathdirs $found_dir"
24379 for x in $LDFLAGS $LIBICONV; do
24381 acl_save_prefix="$prefix"
24382 prefix="$acl_final_prefix"
24383 acl_save_exec_prefix="$exec_prefix"
24384 exec_prefix="$acl_final_exec_prefix"
24386 exec_prefix="$acl_save_exec_prefix"
24387 prefix="$acl_save_prefix"
24389 if test "X$x" = "X-L$found_dir"; then
24394 if test -z "$haveit"; then
24395 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
24397 if test "$hardcode_minus_L" != no; then
24398 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24400 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24406 if test "X$found_a" != "X"; then
24407 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
24409 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
24412 additional_includedir=
24413 case "$found_dir" in
24414 */$acl_libdirstem | */$acl_libdirstem/)
24415 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
24416 additional_includedir="$basedir/include"
24419 if test "X$additional_includedir" != "X"; then
24420 if test "X$additional_includedir" != "X/usr/include"; then
24422 if test "X$additional_includedir" = "X/usr/local/include"; then
24423 if test -n "$GCC"; then
24425 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24429 if test -z "$haveit"; then
24430 for x in $CPPFLAGS $INCICONV; do
24432 acl_save_prefix="$prefix"
24433 prefix="$acl_final_prefix"
24434 acl_save_exec_prefix="$exec_prefix"
24435 exec_prefix="$acl_final_exec_prefix"
24437 exec_prefix="$acl_save_exec_prefix"
24438 prefix="$acl_save_prefix"
24440 if test "X$x" = "X-I$additional_includedir"; then
24445 if test -z "$haveit"; then
24446 if test -d "$additional_includedir"; then
24447 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
24453 if test -n "$found_la"; then
24454 save_libdir="$libdir"
24455 case "$found_la" in
24456 */* | *\\*) . "$found_la" ;;
24457 *) . "./$found_la" ;;
24459 libdir="$save_libdir"
24460 for dep in $dependency_libs; do
24463 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24464 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
24466 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
24467 if test -n "$GCC"; then
24469 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24473 if test -z "$haveit"; then
24475 for x in $LDFLAGS $LIBICONV; do
24477 acl_save_prefix="$prefix"
24478 prefix="$acl_final_prefix"
24479 acl_save_exec_prefix="$exec_prefix"
24480 exec_prefix="$acl_final_exec_prefix"
24482 exec_prefix="$acl_save_exec_prefix"
24483 prefix="$acl_save_prefix"
24485 if test "X$x" = "X-L$additional_libdir"; then
24490 if test -z "$haveit"; then
24491 if test -d "$additional_libdir"; then
24492 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
24496 for x in $LDFLAGS $LTLIBICONV; do
24498 acl_save_prefix="$prefix"
24499 prefix="$acl_final_prefix"
24500 acl_save_exec_prefix="$exec_prefix"
24501 exec_prefix="$acl_final_exec_prefix"
24503 exec_prefix="$acl_save_exec_prefix"
24504 prefix="$acl_save_prefix"
24506 if test "X$x" = "X-L$additional_libdir"; then
24511 if test -z "$haveit"; then
24512 if test -d "$additional_libdir"; then
24513 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
24520 dir=`echo "X$dep" | sed -e 's/^X-R//'`
24521 if test "$enable_rpath" != no; then
24523 for x in $rpathdirs; do
24524 if test "X$x" = "X$dir"; then
24529 if test -z "$haveit"; then
24530 rpathdirs="$rpathdirs $dir"
24533 for x in $ltrpathdirs; do
24534 if test "X$x" = "X$dir"; then
24539 if test -z "$haveit"; then
24540 ltrpathdirs="$ltrpathdirs $dir"
24545 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24548 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24551 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
24552 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
24558 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24559 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
24565 if test "X$rpathdirs" != "X"; then
24566 if test -n "$hardcode_libdir_separator"; then
24568 for found_dir in $rpathdirs; do
24569 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
24571 acl_save_libdir="$libdir"
24573 eval flag=\"$hardcode_libdir_flag_spec\"
24574 libdir="$acl_save_libdir"
24575 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
24577 for found_dir in $rpathdirs; do
24578 acl_save_libdir="$libdir"
24579 libdir="$found_dir"
24580 eval flag=\"$hardcode_libdir_flag_spec\"
24581 libdir="$acl_save_libdir"
24582 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
24586 if test "X$ltrpathdirs" != "X"; then
24587 for found_dir in $ltrpathdirs; do
24588 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
24609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
24610 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
24611 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
24612 $as_echo_n "(cached) " >&6
24614 gt_save_LIBS="$LIBS"
24615 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
24616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24617 /* end confdefs.h. */
24618 #include <CoreFoundation/CFPreferences.h>
24622 CFPreferencesCopyAppValue(NULL, NULL)
24627 if ac_fn_c_try_link "$LINENO"; then :
24628 gt_cv_func_CFPreferencesCopyAppValue=yes
24630 gt_cv_func_CFPreferencesCopyAppValue=no
24632 rm -f core conftest.err conftest.$ac_objext \
24633 conftest$ac_exeext conftest.$ac_ext
24634 LIBS="$gt_save_LIBS"
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
24637 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
24638 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
24640 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
24643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
24644 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
24645 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
24646 $as_echo_n "(cached) " >&6
24648 gt_save_LIBS="$LIBS"
24649 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
24650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24651 /* end confdefs.h. */
24652 #include <CoreFoundation/CFLocale.h>
24656 CFLocaleCopyCurrent();
24661 if ac_fn_c_try_link "$LINENO"; then :
24662 gt_cv_func_CFLocaleCopyCurrent=yes
24664 gt_cv_func_CFLocaleCopyCurrent=no
24666 rm -f core conftest.err conftest.$ac_objext \
24667 conftest$ac_exeext conftest.$ac_ext
24668 LIBS="$gt_save_LIBS"
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
24671 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
24672 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24674 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
24678 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24679 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
24691 if test "$USE_NLS" = "yes"; then
24692 gt_use_preinstalled_gnugettext=no
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
24700 $as_echo_n "checking for GNU gettext in libc... " >&6; }
24701 if ${gt_cv_func_gnugettext1_libc+:} false; then :
24702 $as_echo_n "(cached) " >&6
24704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24705 /* end confdefs.h. */
24706 #include <libintl.h>
24707 extern int _nl_msg_cat_cntr;
24708 extern int *_nl_domain_bindings;
24712 bindtextdomain ("", "");
24713 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
24718 if ac_fn_c_try_link "$LINENO"; then :
24719 gt_cv_func_gnugettext1_libc=yes
24721 gt_cv_func_gnugettext1_libc=no
24723 rm -f core conftest.err conftest.$ac_objext \
24724 conftest$ac_exeext conftest.$ac_ext
24726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
24727 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
24729 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
24735 am_save_CPPFLAGS="$CPPFLAGS"
24737 for element in $INCICONV; do
24739 for x in $CPPFLAGS; do
24741 acl_save_prefix="$prefix"
24742 prefix="$acl_final_prefix"
24743 acl_save_exec_prefix="$exec_prefix"
24744 exec_prefix="$acl_final_exec_prefix"
24746 exec_prefix="$acl_save_exec_prefix"
24747 prefix="$acl_save_prefix"
24749 if test "X$x" = "X$element"; then
24754 if test -z "$haveit"; then
24755 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
24761 $as_echo_n "checking for iconv... " >&6; }
24762 if ${am_cv_func_iconv+:} false; then :
24763 $as_echo_n "(cached) " >&6
24766 am_cv_func_iconv="no, consider installing GNU libiconv"
24768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24769 /* end confdefs.h. */
24770 #include <stdlib.h>
24775 iconv_t cd = iconv_open("","");
24776 iconv(cd,NULL,NULL,NULL,NULL);
24782 if ac_fn_c_try_link "$LINENO"; then :
24783 am_cv_func_iconv=yes
24785 rm -f core conftest.err conftest.$ac_objext \
24786 conftest$ac_exeext conftest.$ac_ext
24787 if test "$am_cv_func_iconv" != yes; then
24788 am_save_LIBS="$LIBS"
24789 LIBS="$LIBS $LIBICONV"
24790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24791 /* end confdefs.h. */
24792 #include <stdlib.h>
24797 iconv_t cd = iconv_open("","");
24798 iconv(cd,NULL,NULL,NULL,NULL);
24804 if ac_fn_c_try_link "$LINENO"; then :
24805 am_cv_lib_iconv=yes
24806 am_cv_func_iconv=yes
24808 rm -f core conftest.err conftest.$ac_objext \
24809 conftest$ac_exeext conftest.$ac_ext
24810 LIBS="$am_save_LIBS"
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
24815 $as_echo "$am_cv_func_iconv" >&6; }
24816 if test "$am_cv_func_iconv" = yes; then
24818 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
24821 if test "$am_cv_lib_iconv" = yes; then
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
24823 $as_echo_n "checking how to link with libiconv... " >&6; }
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
24825 $as_echo "$LIBICONV" >&6; }
24827 CPPFLAGS="$am_save_CPPFLAGS"
24840 acl_save_prefix="$prefix"
24841 prefix="$acl_final_prefix"
24842 acl_save_exec_prefix="$exec_prefix"
24843 exec_prefix="$acl_final_exec_prefix"
24845 eval additional_includedir=\"$includedir\"
24846 eval additional_libdir=\"$libdir\"
24848 exec_prefix="$acl_save_exec_prefix"
24849 prefix="$acl_save_prefix"
24852 # Check whether --with-libintl-prefix was given.
24853 if test "${with_libintl_prefix+set}" = set; then :
24854 withval=$with_libintl_prefix;
24855 if test "X$withval" = "Xno"; then
24858 if test "X$withval" = "X"; then
24860 acl_save_prefix="$prefix"
24861 prefix="$acl_final_prefix"
24862 acl_save_exec_prefix="$exec_prefix"
24863 exec_prefix="$acl_final_exec_prefix"
24865 eval additional_includedir=\"$includedir\"
24866 eval additional_libdir=\"$libdir\"
24868 exec_prefix="$acl_save_exec_prefix"
24869 prefix="$acl_save_prefix"
24872 additional_includedir="$withval/include"
24873 additional_libdir="$withval/$acl_libdirstem"
24884 names_already_handled=
24885 names_next_round='intl '
24886 while test -n "$names_next_round"; do
24887 names_this_round="$names_next_round"
24889 for name in $names_this_round; do
24891 for n in $names_already_handled; do
24892 if test "$n" = "$name"; then
24893 already_handled=yes
24897 if test -z "$already_handled"; then
24898 names_already_handled="$names_already_handled $name"
24899 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24900 eval value=\"\$HAVE_LIB$uppername\"
24901 if test -n "$value"; then
24902 if test "$value" = yes; then
24903 eval value=\"\$LIB$uppername\"
24904 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
24905 eval value=\"\$LTLIB$uppername\"
24906 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
24915 if test $use_additional = yes; then
24916 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
24917 found_dir="$additional_libdir"
24918 found_so="$additional_libdir/lib$name.$shlibext"
24919 if test -f "$additional_libdir/lib$name.la"; then
24920 found_la="$additional_libdir/lib$name.la"
24923 if test -f "$additional_libdir/lib$name.$libext"; then
24924 found_dir="$additional_libdir"
24925 found_a="$additional_libdir/lib$name.$libext"
24926 if test -f "$additional_libdir/lib$name.la"; then
24927 found_la="$additional_libdir/lib$name.la"
24932 if test "X$found_dir" = "X"; then
24933 for x in $LDFLAGS $LTLIBINTL; do
24935 acl_save_prefix="$prefix"
24936 prefix="$acl_final_prefix"
24937 acl_save_exec_prefix="$exec_prefix"
24938 exec_prefix="$acl_final_exec_prefix"
24940 exec_prefix="$acl_save_exec_prefix"
24941 prefix="$acl_save_prefix"
24945 dir=`echo "X$x" | sed -e 's/^X-L//'`
24946 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
24948 found_so="$dir/lib$name.$shlibext"
24949 if test -f "$dir/lib$name.la"; then
24950 found_la="$dir/lib$name.la"
24953 if test -f "$dir/lib$name.$libext"; then
24955 found_a="$dir/lib$name.$libext"
24956 if test -f "$dir/lib$name.la"; then
24957 found_la="$dir/lib$name.la"
24963 if test "X$found_dir" != "X"; then
24968 if test "X$found_dir" != "X"; then
24969 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
24970 if test "X$found_so" != "X"; then
24971 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
24972 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24975 for x in $ltrpathdirs; do
24976 if test "X$x" = "X$found_dir"; then
24981 if test -z "$haveit"; then
24982 ltrpathdirs="$ltrpathdirs $found_dir"
24984 if test "$hardcode_direct" = yes; then
24985 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24987 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24988 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24990 for x in $rpathdirs; do
24991 if test "X$x" = "X$found_dir"; then
24996 if test -z "$haveit"; then
24997 rpathdirs="$rpathdirs $found_dir"
25001 for x in $LDFLAGS $LIBINTL; do
25003 acl_save_prefix="$prefix"
25004 prefix="$acl_final_prefix"
25005 acl_save_exec_prefix="$exec_prefix"
25006 exec_prefix="$acl_final_exec_prefix"
25008 exec_prefix="$acl_save_exec_prefix"
25009 prefix="$acl_save_prefix"
25011 if test "X$x" = "X-L$found_dir"; then
25016 if test -z "$haveit"; then
25017 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
25019 if test "$hardcode_minus_L" != no; then
25020 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
25022 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
25028 if test "X$found_a" != "X"; then
25029 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
25031 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
25034 additional_includedir=
25035 case "$found_dir" in
25036 */$acl_libdirstem | */$acl_libdirstem/)
25037 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
25038 additional_includedir="$basedir/include"
25041 if test "X$additional_includedir" != "X"; then
25042 if test "X$additional_includedir" != "X/usr/include"; then
25044 if test "X$additional_includedir" = "X/usr/local/include"; then
25045 if test -n "$GCC"; then
25047 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25051 if test -z "$haveit"; then
25052 for x in $CPPFLAGS $INCINTL; do
25054 acl_save_prefix="$prefix"
25055 prefix="$acl_final_prefix"
25056 acl_save_exec_prefix="$exec_prefix"
25057 exec_prefix="$acl_final_exec_prefix"
25059 exec_prefix="$acl_save_exec_prefix"
25060 prefix="$acl_save_prefix"
25062 if test "X$x" = "X-I$additional_includedir"; then
25067 if test -z "$haveit"; then
25068 if test -d "$additional_includedir"; then
25069 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
25075 if test -n "$found_la"; then
25076 save_libdir="$libdir"
25077 case "$found_la" in
25078 */* | *\\*) . "$found_la" ;;
25079 *) . "./$found_la" ;;
25081 libdir="$save_libdir"
25082 for dep in $dependency_libs; do
25085 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
25086 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
25088 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
25089 if test -n "$GCC"; then
25091 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25095 if test -z "$haveit"; then
25097 for x in $LDFLAGS $LIBINTL; do
25099 acl_save_prefix="$prefix"
25100 prefix="$acl_final_prefix"
25101 acl_save_exec_prefix="$exec_prefix"
25102 exec_prefix="$acl_final_exec_prefix"
25104 exec_prefix="$acl_save_exec_prefix"
25105 prefix="$acl_save_prefix"
25107 if test "X$x" = "X-L$additional_libdir"; then
25112 if test -z "$haveit"; then
25113 if test -d "$additional_libdir"; then
25114 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
25118 for x in $LDFLAGS $LTLIBINTL; do
25120 acl_save_prefix="$prefix"
25121 prefix="$acl_final_prefix"
25122 acl_save_exec_prefix="$exec_prefix"
25123 exec_prefix="$acl_final_exec_prefix"
25125 exec_prefix="$acl_save_exec_prefix"
25126 prefix="$acl_save_prefix"
25128 if test "X$x" = "X-L$additional_libdir"; then
25133 if test -z "$haveit"; then
25134 if test -d "$additional_libdir"; then
25135 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
25142 dir=`echo "X$dep" | sed -e 's/^X-R//'`
25143 if test "$enable_rpath" != no; then
25145 for x in $rpathdirs; do
25146 if test "X$x" = "X$dir"; then
25151 if test -z "$haveit"; then
25152 rpathdirs="$rpathdirs $dir"
25155 for x in $ltrpathdirs; do
25156 if test "X$x" = "X$dir"; then
25161 if test -z "$haveit"; then
25162 ltrpathdirs="$ltrpathdirs $dir"
25167 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
25170 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
25173 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
25174 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
25180 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
25181 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
25187 if test "X$rpathdirs" != "X"; then
25188 if test -n "$hardcode_libdir_separator"; then
25190 for found_dir in $rpathdirs; do
25191 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
25193 acl_save_libdir="$libdir"
25195 eval flag=\"$hardcode_libdir_flag_spec\"
25196 libdir="$acl_save_libdir"
25197 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
25199 for found_dir in $rpathdirs; do
25200 acl_save_libdir="$libdir"
25201 libdir="$found_dir"
25202 eval flag=\"$hardcode_libdir_flag_spec\"
25203 libdir="$acl_save_libdir"
25204 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
25208 if test "X$ltrpathdirs" != "X"; then
25209 for found_dir in $ltrpathdirs; do
25210 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
25215 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
25216 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
25217 $as_echo_n "(cached) " >&6
25219 gt_save_CPPFLAGS="$CPPFLAGS"
25220 CPPFLAGS="$CPPFLAGS $INCINTL"
25221 gt_save_LIBS="$LIBS"
25222 LIBS="$LIBS $LIBINTL"
25223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25224 /* end confdefs.h. */
25225 #include <libintl.h>
25226 extern int _nl_msg_cat_cntr;
25231 const char *_nl_expand_alias (const char *);
25235 bindtextdomain ("", "");
25236 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
25241 if ac_fn_c_try_link "$LINENO"; then :
25242 gt_cv_func_gnugettext1_libintl=yes
25244 gt_cv_func_gnugettext1_libintl=no
25246 rm -f core conftest.err conftest.$ac_objext \
25247 conftest$ac_exeext conftest.$ac_ext
25248 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
25249 LIBS="$LIBS $LIBICONV"
25250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25251 /* end confdefs.h. */
25252 #include <libintl.h>
25253 extern int _nl_msg_cat_cntr;
25258 const char *_nl_expand_alias (const char *);
25262 bindtextdomain ("", "");
25263 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
25268 if ac_fn_c_try_link "$LINENO"; then :
25269 LIBINTL="$LIBINTL $LIBICONV"
25270 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
25271 gt_cv_func_gnugettext1_libintl=yes
25274 rm -f core conftest.err conftest.$ac_objext \
25275 conftest$ac_exeext conftest.$ac_ext
25277 CPPFLAGS="$gt_save_CPPFLAGS"
25278 LIBS="$gt_save_LIBS"
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
25281 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
25284 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
25285 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
25286 && test "$PACKAGE" != gettext-runtime \
25287 && test "$PACKAGE" != gettext-tools; }; then
25288 gt_use_preinstalled_gnugettext=yes
25297 if test -n "$INTL_MACOSX_LIBS"; then
25298 if test "$gt_use_preinstalled_gnugettext" = "yes" \
25299 || test "$nls_cv_use_gnu_gettext" = "yes"; then
25300 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
25301 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
25305 if test "$gt_use_preinstalled_gnugettext" = "yes" \
25306 || test "$nls_cv_use_gnu_gettext" = "yes"; then
25308 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
25316 $as_echo_n "checking whether to use NLS... " >&6; }
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
25318 $as_echo "$USE_NLS" >&6; }
25319 if test "$USE_NLS" = "yes"; then
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
25321 $as_echo_n "checking where the gettext function comes from... " >&6; }
25322 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
25323 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
25324 gt_source="external libintl"
25329 gt_source="included intl directory"
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
25332 $as_echo "$gt_source" >&6; }
25335 if test "$USE_NLS" = "yes"; then
25337 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
25338 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
25340 $as_echo_n "checking how to link with libintl... " >&6; }
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
25342 $as_echo "$LIBINTL" >&6; }
25344 for element in $INCINTL; do
25346 for x in $CPPFLAGS; do
25348 acl_save_prefix="$prefix"
25349 prefix="$acl_final_prefix"
25350 acl_save_exec_prefix="$exec_prefix"
25351 exec_prefix="$acl_final_exec_prefix"
25353 exec_prefix="$acl_save_exec_prefix"
25354 prefix="$acl_save_prefix"
25356 if test "X$x" = "X$element"; then
25361 if test -z "$haveit"; then
25362 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
25369 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
25372 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
25381 INTLLIBS="$LIBINTL"
25390 # Security (authentication) mechansims
25395 # Check whether --with-bsd-security was given.
25396 if test "${with_bsd_security+set}" = set; then :
25397 withval=$with_bsd_security;
25399 n | no) BSD_SECURITY=no ;;
25400 y | ye | yes) BSD_SECURITY=yes ;;
25401 *) as_fn_error $? "*** You must not supply an argument to --without-bsd-security." "$LINENO" 5
25408 USE_AMANDAHOSTS=yes
25410 # Check whether --with-amandahosts was given.
25411 if test "${with_amandahosts+set}" = set; then :
25412 withval=$with_amandahosts;
25414 n | no ) USE_AMANDAHOSTS=no ;;
25415 y | ye | yes) USE_AMANDAHOSTS=yes ;;
25416 *) as_fn_error $? "*** You must not supply an argument to --without-amandahosts option." "$LINENO" 5
25424 if test "x$BSD_SECURITY" = "xyes"; then
25426 $as_echo "#define BSD_SECURITY 1" >>confdefs.h
25428 if test "x$USE_AMANDAHOSTS" = "xyes"; then
25430 $as_echo "#define USE_AMANDAHOSTS 1" >>confdefs.h
25435 if test x"$BSD_SECURITY" = x"yes"; then
25436 WANT_BSD_SECURITY_TRUE=
25437 WANT_BSD_SECURITY_FALSE='#'
25439 WANT_BSD_SECURITY_TRUE='#'
25440 WANT_BSD_SECURITY_FALSE=
25447 BSDTCP_SECURITY="yes"
25449 # Check whether --with-bsdtcp-security was given.
25450 if test "${with_bsdtcp_security+set}" = set; then :
25451 withval=$with_bsdtcp_security;
25453 n | no) BSDTCP_SECURITY=no ;;
25454 y | ye | yes) BSDTCP_SECURITY=yes ;;
25455 *) as_fn_error $? "*** You must not supply an argument to --with-bsdtcp-security." "$LINENO" 5
25462 if test "x$BSDTCP_SECURITY" = "xyes"; then
25464 $as_echo "#define BSDTCP_SECURITY 1" >>confdefs.h
25468 if test x"$BSDTCP_SECURITY" = x"yes"; then
25469 WANT_BSDTCP_SECURITY_TRUE=
25470 WANT_BSDTCP_SECURITY_FALSE='#'
25472 WANT_BSDTCP_SECURITY_TRUE='#'
25473 WANT_BSDTCP_SECURITY_FALSE=
25479 BSDUDP_SECURITY="no"
25481 # Check whether --with-bsdudp-security was given.
25482 if test "${with_bsdudp_security+set}" = set; then :
25483 withval=$with_bsdudp_security;
25486 y | ye | yes) BSDUDP_SECURITY=yes ;;
25487 *) as_fn_error $? "*** You must not supply an argument to --with-bsdudp-security." "$LINENO" 5
25494 if test "x$BSDUDP_SECURITY" = "xyes"; then
25496 $as_echo "#define BSDUDP_SECURITY 1" >>confdefs.h
25500 if test x"$BSDUDP_SECURITY" = x"yes"; then
25501 WANT_BSDUDP_SECURITY_TRUE=
25502 WANT_BSDUDP_SECURITY_FALSE='#'
25504 WANT_BSDUDP_SECURITY_TRUE='#'
25505 WANT_BSDUDP_SECURITY_FALSE=
25513 # Check whether --with-rsh-security was given.
25514 if test "${with_rsh_security+set}" = set; then :
25515 withval=$with_rsh_security;
25518 y | ye | yes) RSH_SECURITY=yes ;;
25519 *) as_fn_error $? "*** You must not supply an argument to --with-rsh-security." "$LINENO" 5
25526 if test "x$RSH_SECURITY" = "xyes"; then
25528 $as_echo "#define RSH_SECURITY 1" >>confdefs.h
25531 if test x"$RSH_SECURITY" = x"yes"; then
25532 WANT_RSH_SECURITY_TRUE=
25533 WANT_RSH_SECURITY_FALSE='#'
25535 WANT_RSH_SECURITY_TRUE='#'
25536 WANT_RSH_SECURITY_FALSE=
25544 # Check whether --with-ssh-security was given.
25545 if test "${with_ssh_security+set}" = set; then :
25546 withval=$with_ssh_security;
25548 n | no) SSH_SECURITY=no ;;
25549 y | ye | yes) SSH_SECURITY=yes ;;
25550 *) as_fn_error $? "*** You must not supply an argument to --with-ssh-security." "$LINENO" 5
25557 if test "x$SSH_SECURITY" = "xyes"; then
25558 # find the SSH binary
25561 # Extract the first word of "$ac_prog", so it can be a program name with args.
25562 set dummy $ac_prog; ac_word=$2
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25564 $as_echo_n "checking for $ac_word... " >&6; }
25565 if ${ac_cv_path_SSH+:} false; then :
25566 $as_echo_n "(cached) " >&6
25570 ac_cv_path_SSH="$SSH" # Let the user override the test with a path.
25573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25574 for as_dir in $LOCSYSPATH
25577 test -z "$as_dir" && as_dir=.
25578 for ac_exec_ext in '' $ac_executable_extensions; do
25579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25580 ac_cv_path_SSH="$as_dir/$ac_word$ac_exec_ext"
25581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25591 SSH=$ac_cv_path_SSH
25592 if test -n "$SSH"; then
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSH" >&5
25594 $as_echo "$SSH" >&6; }
25596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25597 $as_echo "no" >&6; }
25601 test -n "$SSH" && break
25605 # see what options we should use
25607 # Check whether --with-ssh-options was given.
25608 if test "${with_ssh_options+set}" = set; then :
25609 withval=$with_ssh_options; SSH_OPTIONS="$withval"
25616 case "$SSH_OPTIONS" in
25617 y | ye | yes | n | no)
25618 as_fn_error $? "*** You must supply an argument to --with-ssh-options." "$LINENO" 5;;
25622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SSH options" >&5
25623 $as_echo_n "checking SSH options... " >&6; }
25624 # if we didn't get SSH options from the user, figure them out for ourselves
25625 if test -z "$SSH_OPTIONS"; then
25626 case `$SSH -V 2>&1` in
25627 OpenSSH*) SSH_OPTIONS='-x -o BatchMode=yes -o PreferredAuthentications=publickey';;
25628 *) SSH_OPTIONS='-x -o BatchMode=yes' ;;
25632 # now convert that to a comma-separated list of C strings
25633 eval "set dummy ${SSH_OPTIONS}"; shift
25635 for i in "${@}"; do
25636 quoted="\"`echo "$i" | sed -e 's/\"/\\\"/'`\""
25637 SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }$quoted";
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSH_OPTIONS" >&5
25640 $as_echo "$SSH_OPTIONS" >&6; }
25642 # finally, make the various outputs for all of this
25644 $as_echo "#define SSH_SECURITY 1" >>confdefs.h
25647 cat >>confdefs.h <<_ACEOF
25652 cat >>confdefs.h <<_ACEOF
25653 #define SSH_OPTIONS $SSH_OPTIONS
25657 if test x"$SSH_SECURITY" = x"yes"; then
25658 WANT_SSH_SECURITY_TRUE=
25659 WANT_SSH_SECURITY_FALSE='#'
25661 WANT_SSH_SECURITY_TRUE='#'
25662 WANT_SSH_SECURITY_FALSE=
25667 # (note -- don't just substitute SSH_OPTIONS -- shell quoting will break)
25670 # Specify --with-krb5-security if Kerberos software is in somewhere
25671 # other than the listed KRB5_SPOTS. We only compile kerberos support in
25672 # if the right files are there.
25675 : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
25678 # Check whether --with-krb5-security was given.
25679 if test "${with_krb5_security+set}" = set; then :
25680 withval=$with_krb5_security;
25682 n | no) KRB5_SECURITY=no ;;
25683 y | ye | yes) KRB5_SECURITY=yes ;;
25684 *) KRB5_SPOTS="$KRB5_SECURITY"
25693 if test "x$KRB5_SECURITY" = "xyes"; then
25694 # if found, force the static versions of these libs (.a) by linking directly
25695 # with the .a files. I don't know how to get -R dependancies checked
25696 # in autoconf at this time. -kashmir
25697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos V libraries" >&5
25698 $as_echo_n "checking for Kerberos V libraries... " >&6; }
25700 for dir in $KRB5_SPOTS; do
25701 for lib in lib lib64; do
25702 k5libdir=${dir}/${lib}
25703 if test \( -f ${k5libdir}/libkrb5.a -o -f ${k5libdir}/libkrb5.so \) -a \( -f ${k5libdir}/libgssapi_krb5.so -o -f ${k5libdir}/libgssapi_krb5.a \) -a \( -f ${k5libdir}/libcom_err.a -o -f ${k5libdir}/libcom_err.so \); then
25704 if test -f ${k5libdir}/libk5crypto.a -o -f ${k5libdir}/libk5crypto.so; then
25705 K5CRYPTO=-lk5crypto
25706 elif test -f ${k5libdir}/libcrypto.a -o -f ${k5libdir}/libcrypto.so; then
25711 if test -f ${k5libdir}/libkrb5support.a -o -f ${k5libdir}/libkrb5support.so; then
25712 K5SUPPORT=-lkrb5support
25716 KRB5_DIR_FOUND=$dir
25717 KRB5_LIBDIR_FOUND=$k5libdir
25718 LIBS="-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err $LIBS"
25721 elif test \( -f ${k5libdir}/libkrb5.a -o -f ${k5libdir}/libkrb5.so \) -a \( -f ${k5libdir}/libasn1.a -o -f ${k5libdir}/libasn1.so \) -a \( -f ${k5libdir}/libgssapi.a -o -f ${k5libdir}/libgssapi.so \); then
25722 LIBS="-lgssapi -lkrb5 -lasn1 $LIBS"
25724 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL_INCLUDES"
25731 if test "$KRB5_DIR_FOUND"; then
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $KRB5_DIR_FOUND" >&5
25733 $as_echo "found in $KRB5_DIR_FOUND" >&6; }
25735 # some OS's, such as NetBSD, stick krb5 includes out of the way...
25736 # should probably just use autoconf to look for various include
25737 # options and set them, but don't quite want to do that until I've
25738 # dug into it a bit more.
25740 if test -d "$KRB5_DIR_FOUND/krb5" ; then
25741 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include/krb5"
25744 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include"
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
25748 $as_echo_n "checking for main in -lkrb5support... " >&6; }
25749 if ${ac_cv_lib_krb5support_main+:} false; then :
25750 $as_echo_n "(cached) " >&6
25752 ac_check_lib_save_LIBS=$LIBS
25753 LIBS="-lkrb5support $LIBS"
25754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25755 /* end confdefs.h. */
25766 if ac_fn_c_try_link "$LINENO"; then :
25767 ac_cv_lib_krb5support_main=yes
25769 ac_cv_lib_krb5support_main=no
25771 rm -f core conftest.err conftest.$ac_objext \
25772 conftest$ac_exeext conftest.$ac_ext
25773 LIBS=$ac_check_lib_save_LIBS
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
25776 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
25777 if test "x$ac_cv_lib_krb5support_main" = xyes; then :
25778 cat >>confdefs.h <<_ACEOF
25779 #define HAVE_LIBKRB5SUPPORT 1
25782 LIBS="-lkrb5support $LIBS"
25787 if test "$KRB5_LIBDIR_FOUND" != "$libdir" ; then
25788 LDFLAGS="$LDFLAGS -L$KRB5_LIBDIR_FOUND"
25793 $as_echo "#define KRB5_SECURITY 1" >>confdefs.h
25796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no krb5 system libraries found" >&5
25797 $as_echo "no krb5 system libraries found" >&6; }
25798 as_fn_error $? "No Kerberos V libraries were found on your system; krb5-security cannot be enabled" "$LINENO" 5
25803 if test x"$KRB5_SECURITY" = x"yes"; then
25804 WANT_KRB5_SECURITY_TRUE=
25805 WANT_KRB5_SECURITY_FALSE='#'
25807 WANT_KRB5_SECURITY_TRUE='#'
25808 WANT_KRB5_SECURITY_FALSE=
25820 for ac_prog in xfsdump
25822 # Extract the first word of "$ac_prog", so it can be a program name with args.
25823 set dummy $ac_prog; ac_word=$2
25824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25825 $as_echo_n "checking for $ac_word... " >&6; }
25826 if ${ac_cv_path_XFSDUMP+:} false; then :
25827 $as_echo_n "(cached) " >&6
25831 ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
25834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25835 for as_dir in $SYSLOCPATH
25838 test -z "$as_dir" && as_dir=.
25839 for ac_exec_ext in '' $ac_executable_extensions; do
25840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25841 ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
25842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25852 XFSDUMP=$ac_cv_path_XFSDUMP
25853 if test -n "$XFSDUMP"; then
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFSDUMP" >&5
25855 $as_echo "$XFSDUMP" >&6; }
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25858 $as_echo "no" >&6; }
25862 test -n "$XFSDUMP" && break
25865 for ac_prog in xfsrestore
25867 # Extract the first word of "$ac_prog", so it can be a program name with args.
25868 set dummy $ac_prog; ac_word=$2
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25870 $as_echo_n "checking for $ac_word... " >&6; }
25871 if ${ac_cv_path_XFSRESTORE+:} false; then :
25872 $as_echo_n "(cached) " >&6
25874 case $XFSRESTORE in
25876 ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
25879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25880 for as_dir in $SYSLOCPATH
25883 test -z "$as_dir" && as_dir=.
25884 for ac_exec_ext in '' $ac_executable_extensions; do
25885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25886 ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
25887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25897 XFSRESTORE=$ac_cv_path_XFSRESTORE
25898 if test -n "$XFSRESTORE"; then
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFSRESTORE" >&5
25900 $as_echo "$XFSRESTORE" >&6; }
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25903 $as_echo "no" >&6; }
25907 test -n "$XFSRESTORE" && break
25910 if test "$XFSDUMP" -a "$XFSRESTORE"; then
25912 cat >>confdefs.h <<_ACEOF
25913 #define XFSDUMP "$XFSDUMP"
25917 cat >>confdefs.h <<_ACEOF
25918 #define XFSRESTORE "$XFSRESTORE"
25922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xfsdump causes the setuid-root rundump program to be enabled. To disable it, just #undef XFSDUMP in config/config.h" >&5
25923 $as_echo "$as_me: WARNING: xfsdump causes the setuid-root rundump program to be enabled. To disable it, just #undef XFSDUMP in config/config.h" >&2;}
25926 cat <<AAW_EOF >>config.warnings
25927 xfsdump causes the setuid-root rundump program to be enabled. To disable it, just #undef XFSDUMP in config/config.h
25936 # Extract the first word of "vxdump", so it can be a program name with args.
25937 set dummy vxdump; ac_word=$2
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25939 $as_echo_n "checking for $ac_word... " >&6; }
25940 if ${ac_cv_path_VXDUMP+:} false; then :
25941 $as_echo_n "(cached) " >&6
25945 ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
25948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25949 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
25950 for as_dir in $as_dummy
25953 test -z "$as_dir" && as_dir=.
25954 for ac_exec_ext in '' $ac_executable_extensions; do
25955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25956 ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
25957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25967 VXDUMP=$ac_cv_path_VXDUMP
25968 if test -n "$VXDUMP"; then
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VXDUMP" >&5
25970 $as_echo "$VXDUMP" >&6; }
25972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25973 $as_echo "no" >&6; }
25977 # Extract the first word of "vxrestore", so it can be a program name with args.
25978 set dummy vxrestore; ac_word=$2
25979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25980 $as_echo_n "checking for $ac_word... " >&6; }
25981 if ${ac_cv_path_VXRESTORE+:} false; then :
25982 $as_echo_n "(cached) " >&6
25986 ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
25989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25990 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
25991 for as_dir in $as_dummy
25994 test -z "$as_dir" && as_dir=.
25995 for ac_exec_ext in '' $ac_executable_extensions; do
25996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25997 ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
25998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26008 VXRESTORE=$ac_cv_path_VXRESTORE
26009 if test -n "$VXRESTORE"; then
26010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VXRESTORE" >&5
26011 $as_echo "$VXRESTORE" >&6; }
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26014 $as_echo "no" >&6; }
26018 if test "$VXDUMP" -a "$VXRESTORE"; then
26020 cat >>confdefs.h <<_ACEOF
26021 #define VXDUMP "$VXDUMP"
26025 cat >>confdefs.h <<_ACEOF
26026 #define VXRESTORE "$VXRESTORE"
26034 # Extract the first word of "vdump", so it can be a program name with args.
26035 set dummy vdump; ac_word=$2
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26037 $as_echo_n "checking for $ac_word... " >&6; }
26038 if ${ac_cv_path_VDUMP+:} false; then :
26039 $as_echo_n "(cached) " >&6
26043 ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
26046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26047 for as_dir in $SYSLOCPATH
26050 test -z "$as_dir" && as_dir=.
26051 for ac_exec_ext in '' $ac_executable_extensions; do
26052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26053 ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
26054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26064 VDUMP=$ac_cv_path_VDUMP
26065 if test -n "$VDUMP"; then
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VDUMP" >&5
26067 $as_echo "$VDUMP" >&6; }
26069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26070 $as_echo "no" >&6; }
26074 # Extract the first word of "vrestore", so it can be a program name with args.
26075 set dummy vrestore; ac_word=$2
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26077 $as_echo_n "checking for $ac_word... " >&6; }
26078 if ${ac_cv_path_VRESTORE+:} false; then :
26079 $as_echo_n "(cached) " >&6
26083 ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
26086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26087 for as_dir in $SYSLOCPATH
26090 test -z "$as_dir" && as_dir=.
26091 for ac_exec_ext in '' $ac_executable_extensions; do
26092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26093 ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
26094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26104 VRESTORE=$ac_cv_path_VRESTORE
26105 if test -n "$VRESTORE"; then
26106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VRESTORE" >&5
26107 $as_echo "$VRESTORE" >&6; }
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26110 $as_echo "no" >&6; }
26114 if test "$VDUMP" -a "$VRESTORE"; then
26116 cat >>confdefs.h <<_ACEOF
26117 #define VDUMP "$VDUMP"
26121 cat >>confdefs.h <<_ACEOF
26122 #define VRESTORE "$VRESTORE"
26131 # Set the order of dump programs to look for. Finding the proper file
26132 # system dumping program is problematic. Some systems, notably HP-UX
26133 # and AIX, have both the backup and dump programs. HP-UX can't use the
26134 # the backup program while AIX systems can't use the dump program. So
26135 # a variable is set up here to specify the order of dump programs to
26136 # search for on the system.
26137 DUMP_PROGRAMS="ufsdump dump backup"
26142 DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
26146 DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
26149 $as_echo "#define AIX_BACKUP 1" >>confdefs.h
26157 if test -n "$DUMP_RETURNS_1"; then
26159 $as_echo "#define DUMP_RETURNS_1 1" >>confdefs.h
26163 for ac_prog in $DUMP_PROGRAMS
26165 # Extract the first word of "$ac_prog", so it can be a program name with args.
26166 set dummy $ac_prog; ac_word=$2
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26168 $as_echo_n "checking for $ac_word... " >&6; }
26169 if ${ac_cv_path_DUMP+:} false; then :
26170 $as_echo_n "(cached) " >&6
26174 ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
26177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26178 for as_dir in $SYSLOCPATH
26181 test -z "$as_dir" && as_dir=.
26182 for ac_exec_ext in '' $ac_executable_extensions; do
26183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26184 ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
26185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26195 DUMP=$ac_cv_path_DUMP
26196 if test -n "$DUMP"; then
26197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMP" >&5
26198 $as_echo "$DUMP" >&6; }
26200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26201 $as_echo "no" >&6; }
26205 test -n "$DUMP" && break
26208 for ac_prog in ufsrestore restore
26210 # Extract the first word of "$ac_prog", so it can be a program name with args.
26211 set dummy $ac_prog; ac_word=$2
26212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26213 $as_echo_n "checking for $ac_word... " >&6; }
26214 if ${ac_cv_path_RESTORE+:} false; then :
26215 $as_echo_n "(cached) " >&6
26219 ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
26222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26223 for as_dir in $SYSLOCPATH
26226 test -z "$as_dir" && as_dir=.
26227 for ac_exec_ext in '' $ac_executable_extensions; do
26228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26229 ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
26230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26240 RESTORE=$ac_cv_path_RESTORE
26241 if test -n "$RESTORE"; then
26242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RESTORE" >&5
26243 $as_echo "$RESTORE" >&6; }
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26246 $as_echo "no" >&6; }
26250 test -n "$RESTORE" && break
26254 # newer versions of GNU tar include a program named 'backup' which
26255 # does *not* implement the expected 'dump' interface. Detect that here
26256 # and pretend we never saw it.
26257 if test -n "$DUMP"; then
26258 if test "`basename $DUMP`" = "backup"; then
26259 backup_gnutar=`$DUMP --version | $GREP "GNU tar"`
26260 if test $? -eq 0; then
26266 if test "$DUMP" -a "$RESTORE"; then
26268 cat >>confdefs.h <<_ACEOF
26269 #define DUMP "$DUMP"
26273 cat >>confdefs.h <<_ACEOF
26274 #define RESTORE "$RESTORE"
26278 # check for an estimate flag
26279 if test -x $DUMP; then
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DUMP supports -E or -S for estimates" >&5
26281 $as_echo_n "checking whether $DUMP supports -E or -S for estimates... " >&6; }
26282 if ${amanda_cv_dump_estimate+:} false; then :
26283 $as_echo_n "(cached) " >&6
26288 { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
26291 | $GREP -v Label >conftest.d-E 2>&1'
26292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26293 (eval $ac_try) 2>&5
26295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26296 test $ac_status = 0; }; }
26297 cat conftest.d-E >&5
26298 { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
26301 | $GREP -v Label >conftest.d-S 2>&1'
26302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26303 (eval $ac_try) 2>&5
26305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26306 test $ac_status = 0; }; }
26307 cat conftest.d-S >&5
26308 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
26311 | $GREP -v Label >conftest.d 2>&1'
26312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26313 (eval $ac_try) 2>&5
26315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26316 test $ac_status = 0; }; }
26318 if { ac_try='cmp conftest.d-E conftest.d 1>&2'
26319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26320 (eval $ac_try) 2>&5
26322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26323 test $ac_status = 0; }; }; then
26324 amanda_cv_dump_estimate=E
26325 elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
26326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26327 (eval $ac_try) 2>&5
26329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26330 test $ac_status = 0; }; }; then
26331 amanda_cv_dump_estimate=S
26333 amanda_cv_dump_estimate=no
26335 rm -f conftest.d conftest.d-E conftest.d-S
26337 *) amanda_cv_dump_estimate=no
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_dump_estimate" >&5
26343 $as_echo "$amanda_cv_dump_estimate" >&6; }
26346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $DUMP is not executable, cannot run -E/-S test" >&5
26347 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -E/-S test" >&2;}
26350 cat <<AAW_EOF >>config.warnings
26351 $DUMP is not executable, cannot run -E/-S test
26355 amanda_cv_dump_estimate=no
26357 if test "x$amanda_cv_dump_estimate" != xno; then
26359 cat >>confdefs.h <<_ACEOF
26360 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
26366 # Check whether --with-dump-honor-nodump was given.
26367 if test "${with_dump_honor_nodump+set}" = set; then :
26368 withval=$with_dump_honor_nodump;
26369 if test -x $DUMP; then
26370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DUMP supports -h (honor nodump flag)" >&5
26371 $as_echo_n "checking whether $DUMP supports -h (honor nodump flag)... " >&6; }
26372 if ${amanda_cv_honor_nodump+:} false; then :
26373 $as_echo_n "(cached) " >&6
26378 { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
26381 | $GREP -v Label >conftest.d-h 2>&1'
26382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26383 (eval $ac_try) 2>&5
26385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26386 test $ac_status = 0; }; }
26387 cat conftest.d-h >&5
26388 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
26391 | $GREP -v Label >conftest.d 2>&1'
26392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26393 (eval $ac_try) 2>&5
26395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26396 test $ac_status = 0; }; }
26398 if { ac_try='diff conftest.d-h conftest.d 1>&2'
26399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26400 (eval $ac_try) 2>&5
26402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26403 test $ac_status = 0; }; }; then
26404 amanda_cv_honor_nodump=yes
26406 amanda_cv_honor_nodump=no
26408 rm -f conftest.d conftest.d-h
26410 *) amanda_cv_honor_nodump=no
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_honor_nodump" >&5
26416 $as_echo "$amanda_cv_honor_nodump" >&6; }
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $DUMP is not executable, cannot run -h test" >&5
26420 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -h test" >&2;}
26423 cat <<AAW_EOF >>config.warnings
26424 $DUMP is not executable, cannot run -h test
26428 amanda_cv_honor_nodump=no
26430 if test "x$amanda_cv_honor_nodump" = xyes; then
26432 $as_echo "#define HAVE_HONOR_NODUMP 1" >>confdefs.h
26448 # Check whether --with-gnutar was given.
26449 if test "${with_gnutar+set}" = set; then :
26450 withval=$with_gnutar;
26453 /*) GNUTAR="$withval";;
26456 *) as_fn_error $? "*** You must supply a full pathname to --with-gnutar" "$LINENO" 5;;
26464 if test "x$GNUTAR" = "xno"; then
26468 for gnutar_name in gtar gnutar tar; do
26469 for ac_prog in $gnutar_name
26471 # Extract the first word of "$ac_prog", so it can be a program name with args.
26472 set dummy $ac_prog; ac_word=$2
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26474 $as_echo_n "checking for $ac_word... " >&6; }
26475 if ${ac_cv_path_GNUTAR+:} false; then :
26476 $as_echo_n "(cached) " >&6
26480 ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
26483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26484 for as_dir in $LOCSYSPATH
26487 test -z "$as_dir" && as_dir=.
26488 for ac_exec_ext in '' $ac_executable_extensions; do
26489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26490 ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
26491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26501 GNUTAR=$ac_cv_path_GNUTAR
26502 if test -n "$GNUTAR"; then
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
26504 $as_echo "$GNUTAR" >&6; }
26506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26507 $as_echo "no" >&6; }
26511 test -n "$GNUTAR" && break
26514 if test -n "$GNUTAR"; then
26515 case `"$GNUTAR" --version 2>&1` in
26516 *GNU*tar* | *Free*paxutils* )
26517 # OK, it is GNU tar
26521 if test -n "$OLD_GNUTAR"; then
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $GNUTAR is not GNU tar, it will be used." >&5
26524 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, it will be used." >&2;}
26527 cat <<AAW_EOF >>config.warnings
26528 $GNUTAR is not GNU tar, it will be used.
26535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&5
26536 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&2;}
26539 cat <<AAW_EOF >>config.warnings
26540 $GNUTAR is not GNU tar, so it will not be used.
26544 # reset the cache for GNUTAR so AC_PATH_PROGS will search again
26546 unset ac_cv_path_GNUTAR
26554 if test "x$GNUTAR" != "x"; then
26557 cat >>confdefs.h <<_ACEOF
26558 #define GNUTAR "$GNUTAR"
26570 # Check whether --with-star was given.
26571 if test "${with_star+set}" = set; then :
26572 withval=$with_star;
26575 /*) STAR="$withval";;
26578 *) as_fn_error $? "*** You must supply a full pathname to --with-star" "$LINENO" 5;;
26586 if test "x$STAR" = "xno"; then
26590 for ac_prog in star
26592 # Extract the first word of "$ac_prog", so it can be a program name with args.
26593 set dummy $ac_prog; ac_word=$2
26594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26595 $as_echo_n "checking for $ac_word... " >&6; }
26596 if ${ac_cv_path_STAR+:} false; then :
26597 $as_echo_n "(cached) " >&6
26601 ac_cv_path_STAR="$STAR" # Let the user override the test with a path.
26604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26605 for as_dir in $LOCSYSPATH
26608 test -z "$as_dir" && as_dir=.
26609 for ac_exec_ext in '' $ac_executable_extensions; do
26610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26611 ac_cv_path_STAR="$as_dir/$ac_word$ac_exec_ext"
26612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26622 STAR=$ac_cv_path_STAR
26623 if test -n "$STAR"; then
26624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAR" >&5
26625 $as_echo "$STAR" >&6; }
26627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26628 $as_echo "no" >&6; }
26632 test -n "$STAR" && break
26635 if test -n "$STAR"; then
26636 case `"$STAR" --version 2>/dev/null` in
26642 if test -n "$OLD_STAR"; then
26644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $STAR is not star, it will be used." >&5
26645 $as_echo "$as_me: WARNING: $STAR is not star, it will be used." >&2;}
26648 cat <<AAW_EOF >>config.warnings
26649 $STAR is not star, it will be used.
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $STAR is not star, so it will not be used." >&5
26657 $as_echo "$as_me: WARNING: $STAR is not star, so it will not be used." >&2;}
26660 cat <<AAW_EOF >>config.warnings
26661 $STAR is not star, so it will not be used.
26665 # reset the cache for STAR so AC_PATH_PROGS will search again
26667 unset ac_cv_path_STAR
26674 if test "x$STAR" != "x"; then
26677 cat >>confdefs.h <<_ACEOF
26678 #define STAR "$STAR"
26690 # Check whether --with-suntar was given.
26691 if test "${with_suntar+set}" = set; then :
26692 withval=$with_suntar;
26695 /*) SUNTAR="$withval";;
26698 *) as_fn_error $? "*** You must supply a full pathname to --with-suntar" "$LINENO" 5;;
26704 if test "x$SUNTAR" == "x"; then
26705 SUNTAR="/usr/sbin/tar"
26712 if test "x$SUNTAR" = "xno"; then
26716 if test "x$SUNTAR" != "x"; then
26719 cat >>confdefs.h <<_ACEOF
26720 #define SUNTAR "$SUNTAR"
26731 # Check whether --with-smbclient was given.
26732 if test "${with_smbclient+set}" = set; then :
26733 withval=$with_smbclient;
26735 /*) SAMBA_CLIENT="$withval";;
26737 n|no) SAMBA_CLIENT=no ;;
26738 *) as_fn_error $? "*** You must supply a full pathname to --with-smbclient" "$LINENO" 5;;
26746 # Check whether --with-samba-user was given.
26747 if test "${with_samba_user+set}" = set; then :
26748 withval=$with_samba_user; as_fn_error $? "--with-samba-user is no longer supported; place username in 'amandapass'" "$LINENO" 5
26753 if test "x$SAMBA_CLIENT" != "xno"; then
26754 # Extract the first word of "smbclient", so it can be a program name with args.
26755 set dummy smbclient; ac_word=$2
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26757 $as_echo_n "checking for $ac_word... " >&6; }
26758 if ${ac_cv_path_SAMBA_CLIENT+:} false; then :
26759 $as_echo_n "(cached) " >&6
26761 case $SAMBA_CLIENT in
26763 ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
26766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26767 for as_dir in $LOCSYSPATH
26770 test -z "$as_dir" && as_dir=.
26771 for ac_exec_ext in '' $ac_executable_extensions; do
26772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26773 ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
26774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26784 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
26785 if test -n "$SAMBA_CLIENT"; then
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAMBA_CLIENT" >&5
26787 $as_echo "$SAMBA_CLIENT" >&6; }
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26790 $as_echo "no" >&6; }
26795 if test ! -z "$SAMBA_CLIENT"; then
26796 case `"$SAMBA_CLIENT" '\\\\nosuchhost.amanda.org\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1` in
26800 *"Connection to nosuchhost.amanda.org failed"*)
26805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
26806 $as_echo "$as_me: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
26809 cat <<AAW_EOF >>config.warnings
26810 $SAMBA_CLIENT does not seem to be smbclient, so it will not be used.
26817 if test -n "$SAMBA_CLIENT"; then
26819 cat >>confdefs.h <<_ACEOF
26820 #define SAMBA_CLIENT "$SAMBA_CLIENT"
26824 cat >>confdefs.h <<_ACEOF
26825 #define SAMBA_VERSION $smbversion
26832 if test -n "$SAMBA_CLIENT"; then
26834 WANT_SAMBA_FALSE='#'
26836 WANT_SAMBA_TRUE='#'
26844 # some systems require rundump unconditionally
26846 *-ultrix*) USE_RUNDUMP=yes ;;
26847 *-dg-*) USE_RUNDUMP=yes ;;
26851 # Check whether --with-rundump was given.
26852 if test "${with_rundump+set}" = set; then :
26853 withval=$with_rundump;
26855 n | no) USE_RUNDUMP=no ;;
26856 y | ye | yes) USE_RUNDUMP=yes ;;
26857 *) as_fn_error $? "You must not supply an argument to --with-rundump option." "$LINENO" 5;;
26863 if test x"$USE_RUNDUMP" = x"yes"; then
26866 $as_echo "#define USE_RUNDUMP 1" >>confdefs.h
26876 # Look for other programs Amanda will use
26880 # Extract the first word of "grep", so it can be a program name with args.
26881 set dummy grep; ac_word=$2
26882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26883 $as_echo_n "checking for $ac_word... " >&6; }
26884 if ${ac_cv_path_GREP+:} false; then :
26885 $as_echo_n "(cached) " >&6
26889 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
26892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26893 for as_dir in $LOCSYSPATH
26896 test -z "$as_dir" && as_dir=.
26897 for ac_exec_ext in '' $ac_executable_extensions; do
26898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26899 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
26900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26907 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
26911 GREP=$ac_cv_path_GREP
26912 if test -n "$GREP"; then
26913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
26914 $as_echo "$GREP" >&6; }
26916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26917 $as_echo "no" >&6; }
26922 cat >>confdefs.h <<_ACEOF
26923 #define GREP "$GREP"
26927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
26928 $as_echo_n "checking for egrep... " >&6; }
26929 if ${ac_cv_path_EGREP+:} false; then :
26930 $as_echo_n "(cached) " >&6
26932 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
26933 then ac_cv_path_EGREP="$GREP -E"
26935 if test -z "$EGREP"; then
26936 ac_path_EGREP_found=false
26937 # Loop through the user's path and test for each of PROGNAME-LIST
26938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26939 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
26942 test -z "$as_dir" && as_dir=.
26943 for ac_prog in egrep; do
26944 for ac_exec_ext in '' $ac_executable_extensions; do
26945 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
26946 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
26947 # Check for GNU ac_path_EGREP and select it if it is found.
26948 # Check for GNU $ac_path_EGREP
26949 case `"$ac_path_EGREP" --version 2>&1` in
26951 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
26954 $as_echo_n 0123456789 >"conftest.in"
26957 cat "conftest.in" "conftest.in" >"conftest.tmp"
26958 mv "conftest.tmp" "conftest.in"
26959 cp "conftest.in" "conftest.nl"
26960 $as_echo 'EGREP' >> "conftest.nl"
26961 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
26962 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
26963 as_fn_arith $ac_count + 1 && ac_count=$as_val
26964 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
26965 # Best one so far, save it but keep looking for a better one
26966 ac_cv_path_EGREP="$ac_path_EGREP"
26967 ac_path_EGREP_max=$ac_count
26969 # 10*(2^10) chars as input seems more than enough
26970 test $ac_count -gt 10 && break
26972 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
26975 $ac_path_EGREP_found && break 3
26980 if test -z "$ac_cv_path_EGREP"; then
26981 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
26984 ac_cv_path_EGREP=$EGREP
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
26990 $as_echo "$ac_cv_path_EGREP" >&6; }
26991 EGREP="$ac_cv_path_EGREP"
26998 # Extract the first word of "lint", so it can be a program name with args.
26999 set dummy lint; ac_word=$2
27000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27001 $as_echo_n "checking for $ac_word... " >&6; }
27002 if ${ac_cv_path_AMLINT+:} false; then :
27003 $as_echo_n "(cached) " >&6
27007 ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
27010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27011 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
27012 for as_dir in $as_dummy
27015 test -z "$as_dir" && as_dir=.
27016 for ac_exec_ext in '' $ac_executable_extensions; do
27017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27018 ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
27019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27029 AMLINT=$ac_cv_path_AMLINT
27030 if test -n "$AMLINT"; then
27031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AMLINT" >&5
27032 $as_echo "$AMLINT" >&6; }
27034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27035 $as_echo "no" >&6; }
27039 if test ! -z "$AMLINT"; then
27040 $AMLINT -flags 2>&1 | $GREP -- '-errfmt=' > /dev/null
27041 if test $? -eq 0; then
27042 AMLINTFLAGS="-n -s -u -m -x"
27043 AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
27044 AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
27045 AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
27046 AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
27047 AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
27048 AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
27049 AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
27050 AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
27051 AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
27052 AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
27053 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
27054 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
27055 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
27056 AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
27057 AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
27058 AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
27059 AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
27060 AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
27061 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
27062 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
27063 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
27064 AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
27065 AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
27066 AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
27067 AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
27068 AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
27069 AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
27070 AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
27071 AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
27072 AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
27073 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
27074 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
27075 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
27076 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
27077 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
27078 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
27079 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
27080 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
27081 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
27082 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
27083 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
27084 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
27085 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
27086 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
27087 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
27088 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
27089 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
27090 AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
27091 AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
27092 AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
27097 # Extract the first word of "splint", so it can be a program name with args.
27098 set dummy splint; ac_word=$2
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27100 $as_echo_n "checking for $ac_word... " >&6; }
27101 if ${ac_cv_path_AMLINT+:} false; then :
27102 $as_echo_n "(cached) " >&6
27106 ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
27109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27110 for as_dir in $SYSLOCPATH
27113 test -z "$as_dir" && as_dir=.
27114 for ac_exec_ext in '' $ac_executable_extensions; do
27115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27116 ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
27117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27127 AMLINT=$ac_cv_path_AMLINT
27128 if test -n "$AMLINT"; then
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AMLINT" >&5
27130 $as_echo "$AMLINT" >&6; }
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27133 $as_echo "no" >&6; }
27137 if test ! -z "$AMLINT"; then
27139 AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
27141 AMLINT='echo "Error: LINT is not installed" ; false'
27147 for ac_prog in flex lex
27149 # Extract the first word of "$ac_prog", so it can be a program name with args.
27150 set dummy $ac_prog; ac_word=$2
27151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27152 $as_echo_n "checking for $ac_word... " >&6; }
27153 if ${ac_cv_prog_LEX+:} false; then :
27154 $as_echo_n "(cached) " >&6
27156 if test -n "$LEX"; then
27157 ac_cv_prog_LEX="$LEX" # Let the user override the test.
27159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27160 for as_dir in $PATH
27163 test -z "$as_dir" && as_dir=.
27164 for ac_exec_ext in '' $ac_executable_extensions; do
27165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27166 ac_cv_prog_LEX="$ac_prog"
27167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27176 LEX=$ac_cv_prog_LEX
27177 if test -n "$LEX"; then
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
27179 $as_echo "$LEX" >&6; }
27181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27182 $as_echo "no" >&6; }
27186 test -n "$LEX" && break
27188 test -n "$LEX" || LEX=":"
27190 if test "x$LEX" != "x:"; then
27191 cat >conftest.l <<_ACEOF
27197 e { yyless (input () != 0); }
27198 f { unput (yytext[0]); }
27199 . { BEGIN INITIAL; }
27201 #ifdef YYTEXT_POINTER
27202 extern char *yytext;
27207 return ! yylex () + ! yywrap ();
27210 { { ac_try="$LEX conftest.l"
27211 case "(($ac_try" in
27212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27213 *) ac_try_echo=$ac_try;;
27215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
27216 $as_echo "$ac_try_echo"; } >&5
27217 (eval "$LEX conftest.l") 2>&5
27219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27220 test $ac_status = 0; }
27221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
27222 $as_echo_n "checking lex output file root... " >&6; }
27223 if ${ac_cv_prog_lex_root+:} false; then :
27224 $as_echo_n "(cached) " >&6
27227 if test -f lex.yy.c; then
27228 ac_cv_prog_lex_root=lex.yy
27229 elif test -f lexyy.c; then
27230 ac_cv_prog_lex_root=lexyy
27232 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
27236 $as_echo "$ac_cv_prog_lex_root" >&6; }
27237 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
27239 if test -z "${LEXLIB+set}"; then
27240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
27241 $as_echo_n "checking lex library... " >&6; }
27242 if ${ac_cv_lib_lex+:} false; then :
27243 $as_echo_n "(cached) " >&6
27247 ac_cv_lib_lex='none needed'
27248 for ac_lib in '' -lfl -ll; do
27249 LIBS="$ac_lib $ac_save_LIBS"
27250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27251 /* end confdefs.h. */
27252 `cat $LEX_OUTPUT_ROOT.c`
27254 if ac_fn_c_try_link "$LINENO"; then :
27255 ac_cv_lib_lex=$ac_lib
27257 rm -f core conftest.err conftest.$ac_objext \
27258 conftest$ac_exeext conftest.$ac_ext
27259 test "$ac_cv_lib_lex" != 'none needed' && break
27264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
27265 $as_echo "$ac_cv_lib_lex" >&6; }
27266 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
27270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
27271 $as_echo_n "checking whether yytext is a pointer... " >&6; }
27272 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
27273 $as_echo_n "(cached) " >&6
27275 # POSIX says lex can declare yytext either as a pointer or an array; the
27276 # default is implementation-dependent. Figure out which it is, since
27277 # not all implementations provide the %pointer and %array declarations.
27278 ac_cv_prog_lex_yytext_pointer=no
27280 LIBS="$LEXLIB $ac_save_LIBS"
27281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27282 /* end confdefs.h. */
27284 #define YYTEXT_POINTER 1
27285 `cat $LEX_OUTPUT_ROOT.c`
27287 if ac_fn_c_try_link "$LINENO"; then :
27288 ac_cv_prog_lex_yytext_pointer=yes
27290 rm -f core conftest.err conftest.$ac_objext \
27291 conftest$ac_exeext conftest.$ac_ext
27295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
27296 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
27297 if test $ac_cv_prog_lex_yytext_pointer = yes; then
27299 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
27302 rm -f conftest.l $LEX_OUTPUT_ROOT.c
27305 if test "$LEX" = :; then
27306 LEX=${am_missing_run}flex
27311 if test x"$LEX" != x""; then
27312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lex is broken Solaris (SGU) lex" >&5
27313 $as_echo_n "checking whether lex is broken Solaris (SGU) lex... " >&6; }
27314 $LEX -V < /dev/null >/dev/null 2>conftest.out
27315 if grep SGU conftest.out >/dev/null; then
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - disabled (set LEX=/path/to/lex to use a specific binary)" >&5
27317 $as_echo "yes - disabled (set LEX=/path/to/lex to use a specific binary)" >&6; }
27318 LEX='echo no lex equivalent available; false'
27320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27321 $as_echo "no" >&6; }
27328 # Extract the first word of "ar", so it can be a program name with args.
27329 set dummy ar; ac_word=$2
27330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27331 $as_echo_n "checking for $ac_word... " >&6; }
27332 if ${ac_cv_path_AR+:} false; then :
27333 $as_echo_n "(cached) " >&6
27337 ac_cv_path_AR="$AR" # Let the user override the test with a path.
27340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27341 for as_dir in $LOCSYSPATH
27344 test -z "$as_dir" && as_dir=.
27345 for ac_exec_ext in '' $ac_executable_extensions; do
27346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27347 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
27348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27359 if test -n "$AR"; then
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
27361 $as_echo "$AR" >&6; }
27363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27364 $as_echo "no" >&6; }
27371 # Extract the first word of "gettext", so it can be a program name with args.
27372 set dummy gettext; ac_word=$2
27373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27374 $as_echo_n "checking for $ac_word... " >&6; }
27375 if ${ac_cv_path_GETTEXT+:} false; then :
27376 $as_echo_n "(cached) " >&6
27380 ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
27383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27384 for as_dir in $LOCSYSPATH
27387 test -z "$as_dir" && as_dir=.
27388 for ac_exec_ext in '' $ac_executable_extensions; do
27389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27390 ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
27391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27401 GETTEXT=$ac_cv_path_GETTEXT
27402 if test -n "$GETTEXT"; then
27403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETTEXT" >&5
27404 $as_echo "$GETTEXT" >&6; }
27406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27407 $as_echo "no" >&6; }
27412 for ac_prog in gawk mawk nawk awk
27414 # Extract the first word of "$ac_prog", so it can be a program name with args.
27415 set dummy $ac_prog; ac_word=$2
27416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27417 $as_echo_n "checking for $ac_word... " >&6; }
27418 if ${ac_cv_prog_AWK+:} false; then :
27419 $as_echo_n "(cached) " >&6
27421 if test -n "$AWK"; then
27422 ac_cv_prog_AWK="$AWK" # Let the user override the test.
27424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27425 for as_dir in $PATH
27428 test -z "$as_dir" && as_dir=.
27429 for ac_exec_ext in '' $ac_executable_extensions; do
27430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27431 ac_cv_prog_AWK="$ac_prog"
27432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27441 AWK=$ac_cv_prog_AWK
27442 if test -n "$AWK"; then
27443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
27444 $as_echo "$AWK" >&6; }
27446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27447 $as_echo "no" >&6; }
27451 test -n "$AWK" && break
27454 for ac_prog in 'bison -y' byacc
27456 # Extract the first word of "$ac_prog", so it can be a program name with args.
27457 set dummy $ac_prog; ac_word=$2
27458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27459 $as_echo_n "checking for $ac_word... " >&6; }
27460 if ${ac_cv_prog_YACC+:} false; then :
27461 $as_echo_n "(cached) " >&6
27463 if test -n "$YACC"; then
27464 ac_cv_prog_YACC="$YACC" # Let the user override the test.
27466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27467 for as_dir in $PATH
27470 test -z "$as_dir" && as_dir=.
27471 for ac_exec_ext in '' $ac_executable_extensions; do
27472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27473 ac_cv_prog_YACC="$ac_prog"
27474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27483 YACC=$ac_cv_prog_YACC
27484 if test -n "$YACC"; then
27485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
27486 $as_echo "$YACC" >&6; }
27488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27489 $as_echo "no" >&6; }
27493 test -n "$YACC" && break
27495 test -n "$YACC" || YACC="yacc"
27500 # Extract the first word of "dd", so it can be a program name with args.
27501 set dummy dd; ac_word=$2
27502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27503 $as_echo_n "checking for $ac_word... " >&6; }
27504 if ${ac_cv_path_DD+:} false; then :
27505 $as_echo_n "(cached) " >&6
27509 ac_cv_path_DD="$DD" # Let the user override the test with a path.
27512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27513 for as_dir in $LOCSYSPATH
27516 test -z "$as_dir" && as_dir=.
27517 for ac_exec_ext in '' $ac_executable_extensions; do
27518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27519 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
27520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27531 if test -n "$DD"; then
27532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
27533 $as_echo "$DD" >&6; }
27535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27536 $as_echo "no" >&6; }
27543 # Extract the first word of "bash", so it can be a program name with args.
27544 set dummy bash; ac_word=$2
27545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27546 $as_echo_n "checking for $ac_word... " >&6; }
27547 if ${ac_cv_path_BASH+:} false; then :
27548 $as_echo_n "(cached) " >&6
27552 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
27555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27556 for as_dir in $SYSPATH
27559 test -z "$as_dir" && as_dir=.
27560 for ac_exec_ext in '' $ac_executable_extensions; do
27561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27562 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
27563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27573 BASH=$ac_cv_path_BASH
27574 if test -n "$BASH"; then
27575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
27576 $as_echo "$BASH" >&6; }
27578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27579 $as_echo "no" >&6; }
27588 # Extract the first word of "sort", so it can be a program name with args.
27589 set dummy sort; ac_word=$2
27590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27591 $as_echo_n "checking for $ac_word... " >&6; }
27592 if ${ac_cv_path_SORT+:} false; then :
27593 $as_echo_n "(cached) " >&6
27597 ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
27600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27601 for as_dir in $LOCSYSPATH
27604 test -z "$as_dir" && as_dir=.
27605 for ac_exec_ext in '' $ac_executable_extensions; do
27606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27607 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
27608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27615 test -z "$ac_cv_path_SORT" && ac_cv_path_SORT="NONE"
27619 SORT=$ac_cv_path_SORT
27620 if test -n "$SORT"; then
27621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
27622 $as_echo "$SORT" >&6; }
27624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27625 $as_echo "no" >&6; }
27630 # sort is only needed in the server build
27631 if test x"$SORT" = x"NONE" && $WANT_SERVER; then
27632 as_fn_error $? "Set SORT to the path of the sort program." "$LINENO" 5
27636 cat >>confdefs.h <<_ACEOF
27637 #define SORT_PATH "$SORT"
27643 for ac_prog in Mail mailx mail
27645 # Extract the first word of "$ac_prog", so it can be a program name with args.
27646 set dummy $ac_prog; ac_word=$2
27647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27648 $as_echo_n "checking for $ac_word... " >&6; }
27649 if ${ac_cv_path_MAILER+:} false; then :
27650 $as_echo_n "(cached) " >&6
27654 ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
27657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27658 for as_dir in $PATH
27661 test -z "$as_dir" && as_dir=.
27662 for ac_exec_ext in '' $ac_executable_extensions; do
27663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27664 ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
27665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27675 MAILER=$ac_cv_path_MAILER
27676 if test -n "$MAILER"; then
27677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAILER" >&5
27678 $as_echo "$MAILER" >&6; }
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27681 $as_echo "no" >&6; }
27685 test -n "$MAILER" && break
27687 test -n "$MAILER" || MAILER="NONE"
27689 if test x"$MAILER" = x"NONE"; then
27691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&5
27692 $as_echo "$as_me: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&2;}
27695 cat <<AAW_EOF >>config.warnings
27696 WARNING: Amanda cannot send mail reports without a mailer.
27702 DEFAULT_MAILER="$MAILER"
27705 cat >>confdefs.h <<_ACEOF
27706 #define DEFAULT_MAILER "$DEFAULT_MAILER"
27713 # Extract the first word of "mt", so it can be a program name with args.
27714 set dummy mt; ac_word=$2
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27716 $as_echo_n "checking for $ac_word... " >&6; }
27717 if ${ac_cv_path_MT+:} false; then :
27718 $as_echo_n "(cached) " >&6
27722 ac_cv_path_MT="$MT" # Let the user override the test with a path.
27725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27726 for as_dir in $SYSLOCPATH
27729 test -z "$as_dir" && as_dir=.
27730 for ac_exec_ext in '' $ac_executable_extensions; do
27731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27732 ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
27733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27740 test -z "$ac_cv_path_MT" && ac_cv_path_MT="mt"
27745 if test -n "$MT"; then
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5
27747 $as_echo "$MT" >&6; }
27749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27750 $as_echo "no" >&6; }
27756 *-hp-*) MT_FILE_FLAG="-t" ;;
27757 *) MT_FILE_FLAG="-f" ;;
27762 cat >>confdefs.h <<_ACEOF
27763 #define MT_FILE_FLAG "$MT_FILE_FLAG"
27769 # Extract the first word of "mtx", so it can be a program name with args.
27770 set dummy mtx; ac_word=$2
27771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27772 $as_echo_n "checking for $ac_word... " >&6; }
27773 if ${ac_cv_path_MTX+:} false; then :
27774 $as_echo_n "(cached) " >&6
27778 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
27781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27782 for as_dir in $LOCSYSPATH
27785 test -z "$as_dir" && as_dir=.
27786 for ac_exec_ext in '' $ac_executable_extensions; do
27787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27788 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
27789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27796 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
27800 MTX=$ac_cv_path_MTX
27801 if test -n "$MTX"; then
27802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
27803 $as_echo "$MTX" >&6; }
27805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27806 $as_echo "no" >&6; }
27814 # Extract the first word of "mount", so it can be a program name with args.
27815 set dummy mount; ac_word=$2
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27817 $as_echo_n "checking for $ac_word... " >&6; }
27818 if ${ac_cv_path_MOUNT+:} false; then :
27819 $as_echo_n "(cached) " >&6
27823 ac_cv_path_MOUNT="$MOUNT" # Let the user override the test with a path.
27826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27827 for as_dir in $LOCSYSPATH
27830 test -z "$as_dir" && as_dir=.
27831 for ac_exec_ext in '' $ac_executable_extensions; do
27832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27833 ac_cv_path_MOUNT="$as_dir/$ac_word$ac_exec_ext"
27834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27841 test -z "$ac_cv_path_MOUNT" && ac_cv_path_MOUNT="mount"
27845 MOUNT=$ac_cv_path_MOUNT
27846 if test -n "$MOUNT"; then
27847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOUNT" >&5
27848 $as_echo "$MOUNT" >&6; }
27850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27851 $as_echo "no" >&6; }
27859 # Extract the first word of "umount", so it can be a program name with args.
27860 set dummy umount; ac_word=$2
27861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27862 $as_echo_n "checking for $ac_word... " >&6; }
27863 if ${ac_cv_path_UMOUNT+:} false; then :
27864 $as_echo_n "(cached) " >&6
27868 ac_cv_path_UMOUNT="$UMOUNT" # Let the user override the test with a path.
27871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27872 for as_dir in $LOCSYSPATH
27875 test -z "$as_dir" && as_dir=.
27876 for ac_exec_ext in '' $ac_executable_extensions; do
27877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27878 ac_cv_path_UMOUNT="$as_dir/$ac_word$ac_exec_ext"
27879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27886 test -z "$ac_cv_path_UMOUNT" && ac_cv_path_UMOUNT="umount"
27890 UMOUNT=$ac_cv_path_UMOUNT
27891 if test -n "$UMOUNT"; then
27892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UMOUNT" >&5
27893 $as_echo "$UMOUNT" >&6; }
27895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27896 $as_echo "no" >&6; }
27904 # Extract the first word of "uname", so it can be a program name with args.
27905 set dummy uname; ac_word=$2
27906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27907 $as_echo_n "checking for $ac_word... " >&6; }
27908 if ${ac_cv_path_UNAME+:} false; then :
27909 $as_echo_n "(cached) " >&6
27913 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
27916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27917 for as_dir in $LOCSYSPATH
27920 test -z "$as_dir" && as_dir=.
27921 for ac_exec_ext in '' $ac_executable_extensions; do
27922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27923 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
27924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27934 UNAME=$ac_cv_path_UNAME
27935 if test -n "$UNAME"; then
27936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
27937 $as_echo "$UNAME" >&6; }
27939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27940 $as_echo "no" >&6; }
27945 cat >>confdefs.h <<_ACEOF
27946 #define UNAME_PATH "$UNAME"
27953 for ac_prog in lpr lp
27955 # Extract the first word of "$ac_prog", so it can be a program name with args.
27956 set dummy $ac_prog; ac_word=$2
27957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27958 $as_echo_n "checking for $ac_word... " >&6; }
27959 if ${ac_cv_path_LPR+:} false; then :
27960 $as_echo_n "(cached) " >&6
27964 ac_cv_path_LPR="$LPR" # Let the user override the test with a path.
27967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27968 for as_dir in $PATH
27971 test -z "$as_dir" && as_dir=.
27972 for ac_exec_ext in '' $ac_executable_extensions; do
27973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27974 ac_cv_path_LPR="$as_dir/$ac_word$ac_exec_ext"
27975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27985 LPR=$ac_cv_path_LPR
27986 if test -n "$LPR"; then
27987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPR" >&5
27988 $as_echo "$LPR" >&6; }
27990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27991 $as_echo "no" >&6; }
27995 test -n "$LPR" && break
27998 if test ! -z "$LPR"; then
28000 $as_echo "#define HAVE_LPR_CMD 1" >>confdefs.h
28003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flag to use to select a printer" >&5
28004 $as_echo_n "checking which flag to use to select a printer... " >&6; }
28005 if ${amanda_cv_printer_flag+:} false; then :
28006 $as_echo_n "(cached) " >&6
28009 amanda_cv_printer_flag=$LPRFLAG
28011 lpr|*/lpr) amanda_cv_printer_flag="-P";;
28012 lp|*/lp) amanda_cv_printer_flag="-d";;
28016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_printer_flag" >&5
28017 $as_echo "$amanda_cv_printer_flag" >&6; }
28018 if test -z "$amanda_cv_printer_flag"; then
28020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: amanda will always print to the default printer" >&5
28021 $as_echo "$as_me: WARNING: WARNING: amanda will always print to the default printer" >&2;}
28024 cat <<AAW_EOF >>config.warnings
28025 WARNING: amanda will always print to the default printer
28037 # Extract the first word of "pcat", so it can be a program name with args.
28038 set dummy pcat; ac_word=$2
28039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28040 $as_echo_n "checking for $ac_word... " >&6; }
28041 if ${ac_cv_path_PCAT+:} false; then :
28042 $as_echo_n "(cached) " >&6
28046 ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
28049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28050 for as_dir in $LOCSYSPATH
28053 test -z "$as_dir" && as_dir=.
28054 for ac_exec_ext in '' $ac_executable_extensions; do
28055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28056 ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
28057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28067 PCAT=$ac_cv_path_PCAT
28068 if test -n "$PCAT"; then
28069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAT" >&5
28070 $as_echo "$PCAT" >&6; }
28072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28073 $as_echo "no" >&6; }
28080 for ac_prog in perl5 perl
28082 # Extract the first word of "$ac_prog", so it can be a program name with args.
28083 set dummy $ac_prog; ac_word=$2
28084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28085 $as_echo_n "checking for $ac_word... " >&6; }
28086 if ${ac_cv_path_PERL+:} false; then :
28087 $as_echo_n "(cached) " >&6
28091 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
28094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28095 for as_dir in $LOCSYSPATH
28098 test -z "$as_dir" && as_dir=.
28099 for ac_exec_ext in '' $ac_executable_extensions; do
28100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28101 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
28102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28112 PERL=$ac_cv_path_PERL
28113 if test -n "$PERL"; then
28114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
28115 $as_echo "$PERL" >&6; }
28117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28118 $as_echo "no" >&6; }
28122 test -n "$PERL" && break
28126 # Make sure we have perl
28127 if test -z "$PERL"; then
28128 # Extract the first word of "perl", so it can be a program name with args.
28129 set dummy perl; ac_word=$2
28130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28131 $as_echo_n "checking for $ac_word... " >&6; }
28132 if ${ac_cv_prog_PERL+:} false; then :
28133 $as_echo_n "(cached) " >&6
28135 if test -n "$PERL"; then
28136 ac_cv_prog_PERL="$PERL" # Let the user override the test.
28138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28139 for as_dir in $PATH
28142 test -z "$as_dir" && as_dir=.
28143 for ac_exec_ext in '' $ac_executable_extensions; do
28144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28145 ac_cv_prog_PERL="perl"
28146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28155 PERL=$ac_cv_prog_PERL
28156 if test -n "$PERL"; then
28157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
28158 $as_echo "$PERL" >&6; }
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28161 $as_echo "no" >&6; }
28167 # Check if version of Perl is sufficient
28168 ac_perl_version="5.6.0"
28170 if test "x$PERL" != "x"; then
28171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
28172 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
28173 # NB: It would be nice to log the error if there is one, but we cannot rely
28174 # on autoconf internals
28175 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
28176 if test $? -ne 0; then
28177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28178 $as_echo "no" >&6; };
28180 as_fn_error $? "Amanda requires at least perl 5.6.0" "$LINENO" 5
28183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
28184 $as_echo "ok" >&6; };
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
28189 $as_echo "$as_me: WARNING: could not find perl" >&2;}
28195 for ac_prog in swig
28197 # Extract the first word of "$ac_prog", so it can be a program name with args.
28198 set dummy $ac_prog; ac_word=$2
28199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28200 $as_echo_n "checking for $ac_word... " >&6; }
28201 if ${ac_cv_path_SWIG+:} false; then :
28202 $as_echo_n "(cached) " >&6
28206 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
28209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28210 for as_dir in $LOCSYSPATH
28213 test -z "$as_dir" && as_dir=.
28214 for ac_exec_ext in '' $ac_executable_extensions; do
28215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28216 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
28217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28227 SWIG=$ac_cv_path_SWIG
28228 if test -n "$SWIG"; then
28229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
28230 $as_echo "$SWIG" >&6; }
28232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28233 $as_echo "no" >&6; }
28237 test -n "$SWIG" && break
28241 # 1.3.32 introduces a change in the way empty strings are handled (old versions
28242 # returned undef in Perl, while new versions return an empty Perl string)
28243 # 1.3.39 is required for the %begin block
28245 # Extract the first word of "swig", so it can be a program name with args.
28246 set dummy swig; ac_word=$2
28247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28248 $as_echo_n "checking for $ac_word... " >&6; }
28249 if ${ac_cv_path_SWIG+:} false; then :
28250 $as_echo_n "(cached) " >&6
28254 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
28257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28258 for as_dir in $PATH
28261 test -z "$as_dir" && as_dir=.
28262 for ac_exec_ext in '' $ac_executable_extensions; do
28263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28264 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
28265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28275 SWIG=$ac_cv_path_SWIG
28276 if test -n "$SWIG"; then
28277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
28278 $as_echo "$SWIG" >&6; }
28280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28281 $as_echo "no" >&6; }
28285 if test -z "$SWIG" ; then
28286 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
28287 elif test -n "1.3.39" ; then
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
28289 $as_echo_n "checking for SWIG version... " >&6; }
28290 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
28291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
28292 $as_echo "$swig_version" >&6; }
28293 if test -n "$swig_version" ; then
28295 # Used to indicate true or false condition
28296 ax_compare_version=false
28298 # Convert the two version strings to be compared into a format that
28299 # allows a simple string comparison. The end result is that a version
28300 # string of the form 1.12.5-r617 will be converted to the form
28301 # 0001001200050617. In other words, each number is zero padded to four
28302 # digits, and non digits are removed.
28304 ax_compare_version_A=`echo "$swig_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
28305 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
28306 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
28307 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
28311 ax_compare_version_B=`echo "1.3.39" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
28312 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
28313 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
28314 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
28318 ax_compare_version=`echo "x$ax_compare_version_A
28319 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
28323 if test "$ax_compare_version" = "true" ; then
28325 SWIG_LIB=`$SWIG -swiglib`
28328 SWIG='echo "Error: SWIG version >= 1.3.39 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
28333 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
28340 # Extract the first word of "ps", so it can be a program name with args.
28341 set dummy ps; ac_word=$2
28342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28343 $as_echo_n "checking for $ac_word... " >&6; }
28344 if ${ac_cv_path_PS+:} false; then :
28345 $as_echo_n "(cached) " >&6
28349 ac_cv_path_PS="$PS" # Let the user override the test with a path.
28352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28353 for as_dir in $PATH
28356 test -z "$as_dir" && as_dir=.
28357 for ac_exec_ext in '' $ac_executable_extensions; do
28358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28359 ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
28360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28371 if test -n "$PS"; then
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5
28373 $as_echo "$PS" >&6; }
28375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28376 $as_echo "no" >&6; }
28380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ps argument to use" >&5
28381 $as_echo_n "checking ps argument to use... " >&6; }
28384 # ps is *very* non-portable, and across many systems, the same option
28385 # (e.g., -e) can mean different things. So this macro tries to
28386 # special-case most known systems, and makes an effort to detect unknown
28390 PS_ARGUMENT="-eo pid,ppid,comm"
28391 PS_ARGUMENT_ARGS="-eo pid,ppid,comm"
28395 PS_ARGUMENT="-eo pid,ppid,command"
28396 PS_ARGUMENT_ARGS="-eo pid,ppid,command"
28400 PS_ARGUMENT="-axo pid,ppid,command"
28401 PS_ARGUMENT_ARGS="-axo pid,ppid,command"
28405 PS_ARGUMENT="-aAco pid,ppid,command"
28406 PS_ARGUMENT_ARGS="-aAo pid,ppid,command"
28410 # Cygwin is special-cased in Amanda::Process
28412 PS_ARGUMENT_ARGS="-ef"
28416 # HPUX's 'PS' needs the env var UNIX95 to run in "xpg4" mode
28418 PS_ARGUMENT="-eo pid,ppid,comm"
28419 PS_ARGUMENT_ARGS="-eo pid,ppid,comm"
28424 "-axo pid,ppid,command" \
28425 "-aAco pid,ppid,command" \
28426 "-eo pid,ppid,comm"
28428 ps $try >/dev/null 2>/dev/null
28429 if test $? -eq 0; then
28435 "-axo pid,ppid,command" \
28436 "-aAo pid,ppid,command" \
28437 "-eo pid,ppid,comm"
28439 ps $try >/dev/null 2>/dev/null
28440 if test $? -eq 0; then
28441 PS_ARGUMENT_ARGS="$try"
28445 if test -z "$PS_ARGUMENT" -o -z "$PS_ARGUMENT_ARGS"; then
28446 as_fn_error $? "Can't find ps argument to use." "$LINENO" 5
28451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS_ARGUMENT" >&5
28452 $as_echo "$PS_ARGUMENT" >&6; }
28454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS_ARGUMENT_ARGS" >&5
28455 $as_echo "$PS_ARGUMENT_ARGS" >&6; }
28460 # Extract the first word of "rpcgen", so it can be a program name with args.
28461 set dummy rpcgen; ac_word=$2
28462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28463 $as_echo_n "checking for $ac_word... " >&6; }
28464 if ${ac_cv_path_RPCGEN+:} false; then :
28465 $as_echo_n "(cached) " >&6
28469 ac_cv_path_RPCGEN="$RPCGEN" # Let the user override the test with a path.
28472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28473 for as_dir in $LOCSYSPATH
28476 test -z "$as_dir" && as_dir=.
28477 for ac_exec_ext in '' $ac_executable_extensions; do
28478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28479 ac_cv_path_RPCGEN="$as_dir/$ac_word$ac_exec_ext"
28480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28490 RPCGEN=$ac_cv_path_RPCGEN
28491 if test -n "$RPCGEN"; then
28492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPCGEN" >&5
28493 $as_echo "$RPCGEN" >&6; }
28495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28496 $as_echo "no" >&6; }
28502 # Extract the first word of "nc", so it can be a program name with args.
28503 set dummy nc; ac_word=$2
28504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28505 $as_echo_n "checking for $ac_word... " >&6; }
28506 if ${ac_cv_path_NC+:} false; then :
28507 $as_echo_n "(cached) " >&6
28511 ac_cv_path_NC="$NC" # Let the user override the test with a path.
28514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28515 for as_dir in $LOCSYSPATH
28518 test -z "$as_dir" && as_dir=.
28519 for ac_exec_ext in '' $ac_executable_extensions; do
28520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28521 ac_cv_path_NC="$as_dir/$ac_word$ac_exec_ext"
28522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28533 if test -n "$NC"; then
28534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NC" >&5
28535 $as_echo "$NC" >&6; }
28537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28538 $as_echo "no" >&6; }
28542 # Extract the first word of "nc6", so it can be a program name with args.
28543 set dummy nc6; ac_word=$2
28544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28545 $as_echo_n "checking for $ac_word... " >&6; }
28546 if ${ac_cv_path_NC6+:} false; then :
28547 $as_echo_n "(cached) " >&6
28551 ac_cv_path_NC6="$NC6" # Let the user override the test with a path.
28554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28555 for as_dir in $LOCSYSPATH
28558 test -z "$as_dir" && as_dir=.
28559 for ac_exec_ext in '' $ac_executable_extensions; do
28560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28561 ac_cv_path_NC6="$as_dir/$ac_word$ac_exec_ext"
28562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28572 NC6=$ac_cv_path_NC6
28573 if test -n "$NC6"; then
28574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NC6" >&5
28575 $as_echo "$NC6" >&6; }
28577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28578 $as_echo "no" >&6; }
28582 # Extract the first word of "netcat", so it can be a program name with args.
28583 set dummy netcat; ac_word=$2
28584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28585 $as_echo_n "checking for $ac_word... " >&6; }
28586 if ${ac_cv_path_NETCAT+:} false; then :
28587 $as_echo_n "(cached) " >&6
28591 ac_cv_path_NETCAT="$NETCAT" # Let the user override the test with a path.
28594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28595 for as_dir in $LOCSYSPATH
28598 test -z "$as_dir" && as_dir=.
28599 for ac_exec_ext in '' $ac_executable_extensions; do
28600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28601 ac_cv_path_NETCAT="$as_dir/$ac_word$ac_exec_ext"
28602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28612 NETCAT=$ac_cv_path_NETCAT
28613 if test -n "$NETCAT"; then
28614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETCAT" >&5
28615 $as_echo "$NETCAT" >&6; }
28617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28618 $as_echo "no" >&6; }
28626 # Compiler / system characteristics
28632 if test $ac_cv_c_compiler_gnu = yes; then
28633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
28634 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
28635 if ${ac_cv_prog_gcc_traditional+:} false; then :
28636 $as_echo_n "(cached) " >&6
28638 ac_pattern="Autoconf.*'x'"
28639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28640 /* end confdefs.h. */
28644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28645 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
28646 ac_cv_prog_gcc_traditional=yes
28648 ac_cv_prog_gcc_traditional=no
28653 if test $ac_cv_prog_gcc_traditional = no; then
28654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28655 /* end confdefs.h. */
28656 #include <termio.h>
28659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28660 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
28661 ac_cv_prog_gcc_traditional=yes
28667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
28668 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
28669 if test $ac_cv_prog_gcc_traditional = yes; then
28670 CC="$CC -traditional"
28674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
28675 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
28676 if ${ac_cv_c_const+:} false; then :
28677 $as_echo_n "(cached) " >&6
28679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28680 /* end confdefs.h. */
28685 /* FIXME: Include the comments suggested by Paul. */
28686 #ifndef __cplusplus
28687 /* Ultrix mips cc rejects this. */
28688 typedef int charset[2];
28690 /* SunOS 4.1.1 cc rejects this. */
28691 char const *const *pcpcc;
28693 /* NEC SVR4.0.2 mips cc rejects this. */
28694 struct point {int x, y;};
28695 static struct point const zero = {0,0};
28696 /* AIX XL C 1.02.0.0 rejects this.
28697 It does not let you subtract one const X* pointer from another in
28698 an arm of an if-expression whose if-part is not a constant
28700 const char *g = "string";
28701 pcpcc = &g + (g ? g-g : 0);
28702 /* HPUX 7.0 cc rejects these. */
28704 ppc = (char**) pcpcc;
28705 pcpcc = (char const *const *) ppc;
28706 { /* SCO 3.2v4 cc rejects this. */
28708 char const *s = 0 ? (char *) 0 : (char const *) 0;
28713 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
28714 int x[] = {25, 17};
28715 const int *foo = &x[0];
28718 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28719 typedef const int *iptr;
28723 { /* AIX XL C 1.02.0.0 rejects this saying
28724 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28725 struct s { int j; const int *ap[3]; };
28726 struct s *b; b->j = 5;
28728 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28729 const int foo = 10;
28730 if (!foo) return 0;
28732 return !cs[0] && !zero.x;
28739 if ac_fn_c_try_compile "$LINENO"; then :
28744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
28747 $as_echo "$ac_cv_c_const" >&6; }
28748 if test $ac_cv_c_const = no; then
28750 $as_echo "#define const /**/" >>confdefs.h
28754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
28755 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
28756 if ${ac_cv_c_bigendian+:} false; then :
28757 $as_echo_n "(cached) " >&6
28759 ac_cv_c_bigendian=unknown
28760 # See if we're dealing with a universal compiler.
28761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28762 /* end confdefs.h. */
28763 #ifndef __APPLE_CC__
28764 not a universal capable compiler
28769 if ac_fn_c_try_compile "$LINENO"; then :
28771 # Check for potential -arch flags. It is not universal unless
28772 # there are at least two -arch flags with different values.
28775 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
28776 if test -n "$ac_prev"; then
28778 i?86 | x86_64 | ppc | ppc64)
28779 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
28782 ac_cv_c_bigendian=universal
28788 elif test "x$ac_word" = "x-arch"; then
28793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28794 if test $ac_cv_c_bigendian = unknown; then
28795 # See if sys/param.h defines the BYTE_ORDER macro.
28796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28797 /* end confdefs.h. */
28798 #include <sys/types.h>
28799 #include <sys/param.h>
28804 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
28805 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
28807 bogus endian macros
28814 if ac_fn_c_try_compile "$LINENO"; then :
28815 # It does; now see whether it defined to BIG_ENDIAN or not.
28816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28817 /* end confdefs.h. */
28818 #include <sys/types.h>
28819 #include <sys/param.h>
28824 #if BYTE_ORDER != BIG_ENDIAN
28832 if ac_fn_c_try_compile "$LINENO"; then :
28833 ac_cv_c_bigendian=yes
28835 ac_cv_c_bigendian=no
28837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28841 if test $ac_cv_c_bigendian = unknown; then
28842 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
28843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28844 /* end confdefs.h. */
28845 #include <limits.h>
28850 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
28851 bogus endian macros
28858 if ac_fn_c_try_compile "$LINENO"; then :
28859 # It does; now see whether it defined to _BIG_ENDIAN or not.
28860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28861 /* end confdefs.h. */
28862 #include <limits.h>
28867 #ifndef _BIG_ENDIAN
28875 if ac_fn_c_try_compile "$LINENO"; then :
28876 ac_cv_c_bigendian=yes
28878 ac_cv_c_bigendian=no
28880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28884 if test $ac_cv_c_bigendian = unknown; then
28885 # Compile a test program.
28886 if test "$cross_compiling" = yes; then :
28887 # Try to guess by grepping values from an object file.
28888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28889 /* end confdefs.h. */
28890 short int ascii_mm[] =
28891 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28892 short int ascii_ii[] =
28893 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28894 int use_ascii (int i) {
28895 return ascii_mm[i] + ascii_ii[i];
28897 short int ebcdic_ii[] =
28898 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28899 short int ebcdic_mm[] =
28900 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28901 int use_ebcdic (int i) {
28902 return ebcdic_mm[i] + ebcdic_ii[i];
28909 return use_ascii (foo) == use_ebcdic (foo);
28914 if ac_fn_c_try_compile "$LINENO"; then :
28915 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
28916 ac_cv_c_bigendian=yes
28918 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28919 if test "$ac_cv_c_bigendian" = unknown; then
28920 ac_cv_c_bigendian=no
28922 # finding both strings is unlikely to happen, but who knows?
28923 ac_cv_c_bigendian=unknown
28927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28930 /* end confdefs.h. */
28931 $ac_includes_default
28936 /* Are we little or big endian? From Harbison&Steele. */
28940 char c[sizeof (long int)];
28943 return u.c[sizeof (long int) - 1] == 1;
28949 if ac_fn_c_try_run "$LINENO"; then :
28950 ac_cv_c_bigendian=no
28952 ac_cv_c_bigendian=yes
28954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28955 conftest.$ac_objext conftest.beam conftest.$ac_ext
28960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
28961 $as_echo "$ac_cv_c_bigendian" >&6; }
28962 case $ac_cv_c_bigendian in #(
28964 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
28970 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
28974 as_fn_error $? "unknown endianness
28975 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
28979 # GCC_COMPILER is needed in the gnulib Makefile to silence errors
28980 if test "x$GCC" = "xyes"; then
28982 GCC_COMPILER_FALSE='#'
28984 GCC_COMPILER_TRUE='#'
28985 GCC_COMPILER_FALSE=
28996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wparentheses" >&5
28997 $as_echo_n "checking for gcc flag -Wparentheses... " >&6; }
28998 if test "x$GCC" = "xyes"; then
28999 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29000 $CC -v --help 2>&1) |
29001 $EGREP -- '[^[:alnum:]]-Wparentheses[^[:alnum:]-]' 2>&1 > /dev/null
29002 if test $? -eq 0; then
29004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29005 $as_echo "yes" >&6; }
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29009 $as_echo "no" >&6; }
29013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29014 $as_echo "no (not using gcc)" >&6; }
29017 if test x"$found_warning" = x"yes"; then
29018 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wparentheses"
29030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wdeclaration-after-statement" >&5
29031 $as_echo_n "checking for gcc flag -Wdeclaration-after-statement... " >&6; }
29032 if test "x$GCC" = "xyes"; then
29033 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29034 $CC -v --help 2>&1) |
29035 $EGREP -- '[^[:alnum:]]-Wdeclaration-after-statement[^[:alnum:]-]' 2>&1 > /dev/null
29036 if test $? -eq 0; then
29038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29039 $as_echo "yes" >&6; }
29042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29043 $as_echo "no" >&6; }
29047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29048 $as_echo "no (not using gcc)" >&6; }
29051 if test x"$found_warning" = x"yes"; then
29052 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wdeclaration-after-statement"
29064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wmissing-prototypes" >&5
29065 $as_echo_n "checking for gcc flag -Wmissing-prototypes... " >&6; }
29066 if test "x$GCC" = "xyes"; then
29067 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29068 $CC -v --help 2>&1) |
29069 $EGREP -- '[^[:alnum:]]-Wmissing-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
29070 if test $? -eq 0; then
29072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29073 $as_echo "yes" >&6; }
29076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29077 $as_echo "no" >&6; }
29081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29082 $as_echo "no (not using gcc)" >&6; }
29085 if test x"$found_warning" = x"yes"; then
29086 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-prototypes"
29098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wstrict-prototypes" >&5
29099 $as_echo_n "checking for gcc flag -Wstrict-prototypes... " >&6; }
29100 if test "x$GCC" = "xyes"; then
29101 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29102 $CC -v --help 2>&1) |
29103 $EGREP -- '[^[:alnum:]]-Wstrict-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
29104 if test $? -eq 0; then
29106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29107 $as_echo "yes" >&6; }
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29111 $as_echo "no" >&6; }
29115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29116 $as_echo "no (not using gcc)" >&6; }
29119 if test x"$found_warning" = x"yes"; then
29120 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wstrict-prototypes"
29132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wmissing-declarations" >&5
29133 $as_echo_n "checking for gcc flag -Wmissing-declarations... " >&6; }
29134 if test "x$GCC" = "xyes"; then
29135 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29136 $CC -v --help 2>&1) |
29137 $EGREP -- '[^[:alnum:]]-Wmissing-declarations[^[:alnum:]-]' 2>&1 > /dev/null
29138 if test $? -eq 0; then
29140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29141 $as_echo "yes" >&6; }
29144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29145 $as_echo "no" >&6; }
29149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29150 $as_echo "no (not using gcc)" >&6; }
29153 if test x"$found_warning" = x"yes"; then
29154 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-declarations"
29166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wformat" >&5
29167 $as_echo_n "checking for gcc flag -Wformat... " >&6; }
29168 if test "x$GCC" = "xyes"; then
29169 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29170 $CC -v --help 2>&1) |
29171 $EGREP -- '[^[:alnum:]]-Wformat[^[:alnum:]-]' 2>&1 > /dev/null
29172 if test $? -eq 0; then
29174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29175 $as_echo "yes" >&6; }
29178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29179 $as_echo "no" >&6; }
29183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29184 $as_echo "no (not using gcc)" >&6; }
29187 if test x"$found_warning" = x"yes"; then
29188 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat"
29200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wformat-security" >&5
29201 $as_echo_n "checking for gcc flag -Wformat-security... " >&6; }
29202 if test "x$GCC" = "xyes"; then
29203 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29204 $CC -v --help 2>&1) |
29205 $EGREP -- '[^[:alnum:]]-Wformat-security[^[:alnum:]-]' 2>&1 > /dev/null
29206 if test $? -eq 0; then
29208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29209 $as_echo "yes" >&6; }
29212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29213 $as_echo "no" >&6; }
29217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29218 $as_echo "no (not using gcc)" >&6; }
29221 if test x"$found_warning" = x"yes"; then
29222 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat-security"
29234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wsign-compare" >&5
29235 $as_echo_n "checking for gcc flag -Wsign-compare... " >&6; }
29236 if test "x$GCC" = "xyes"; then
29237 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29238 $CC -v --help 2>&1) |
29239 $EGREP -- '[^[:alnum:]]-Wsign-compare[^[:alnum:]-]' 2>&1 > /dev/null
29240 if test $? -eq 0; then
29242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29243 $as_echo "yes" >&6; }
29246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29247 $as_echo "no" >&6; }
29251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29252 $as_echo "no (not using gcc)" >&6; }
29255 if test x"$found_warning" = x"yes"; then
29256 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wsign-compare"
29268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wfloat-equal" >&5
29269 $as_echo_n "checking for gcc flag -Wfloat-equal... " >&6; }
29270 if test "x$GCC" = "xyes"; then
29271 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29272 $CC -v --help 2>&1) |
29273 $EGREP -- '[^[:alnum:]]-Wfloat-equal[^[:alnum:]-]' 2>&1 > /dev/null
29274 if test $? -eq 0; then
29276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29277 $as_echo "yes" >&6; }
29280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29281 $as_echo "no" >&6; }
29285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29286 $as_echo "no (not using gcc)" >&6; }
29289 if test x"$found_warning" = x"yes"; then
29290 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wfloat-equal"
29302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wold-style-definition" >&5
29303 $as_echo_n "checking for gcc flag -Wold-style-definition... " >&6; }
29304 if test "x$GCC" = "xyes"; then
29305 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29306 $CC -v --help 2>&1) |
29307 $EGREP -- '[^[:alnum:]]-Wold-style-definition[^[:alnum:]-]' 2>&1 > /dev/null
29308 if test $? -eq 0; then
29310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29311 $as_echo "yes" >&6; }
29314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29315 $as_echo "no" >&6; }
29319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29320 $as_echo "no (not using gcc)" >&6; }
29323 if test x"$found_warning" = x"yes"; then
29324 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wold-style-definition"
29333 # test for -W'warning', then add the 'no-' version.
29337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wstrict-aliasing" >&5
29338 $as_echo_n "checking for gcc flag -Wstrict-aliasing... " >&6; }
29339 if test "x$GCC" = "xyes"; then
29340 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29341 $CC -v --help 2>&1) |
29342 $EGREP -- '[^[:alnum:]]-Wstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
29343 if test $? -eq 0; then
29345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29346 $as_echo "yes" >&6; }
29349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29350 $as_echo "no" >&6; }
29354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29355 $as_echo "no (not using gcc)" >&6; }
29358 if test x"$found_warning" = x"yes"; then
29359 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-strict-aliasing"
29368 # test for -W'warning', then add the 'no-' version.
29372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wunknown-pragmas" >&5
29373 $as_echo_n "checking for gcc flag -Wunknown-pragmas... " >&6; }
29374 if test "x$GCC" = "xyes"; then
29375 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29376 $CC -v --help 2>&1) |
29377 $EGREP -- '[^[:alnum:]]-Wunknown-pragmas[^[:alnum:]-]' 2>&1 > /dev/null
29378 if test $? -eq 0; then
29380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29381 $as_echo "yes" >&6; }
29384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29385 $as_echo "no" >&6; }
29389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29390 $as_echo "no (not using gcc)" >&6; }
29393 if test x"$found_warning" = x"yes"; then
29394 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-unknown-pragmas"
29403 # Check whether --enable-werror was given.
29404 if test "${enable_werror+set}" = set; then :
29405 enableval=$enable_werror;
29406 case "$enableval" in
29412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Werror" >&5
29413 $as_echo_n "checking for gcc flag -Werror... " >&6; }
29414 if test "x$GCC" = "xyes"; then
29415 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29416 $CC -v --help 2>&1) |
29417 $EGREP -- '[^[:alnum:]]-Werror[^[:alnum:]-]' 2>&1 > /dev/null
29418 if test $? -eq 0; then
29420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29421 $as_echo "yes" >&6; }
29424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29425 $as_echo "no" >&6; }
29429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29430 $as_echo "no (not using gcc)" >&6; }
29433 if test x"$found_warning" = x"yes"; then
29434 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Werror"
29449 # Check whether --enable-swig-error was given.
29450 if test "${enable_swig_error+set}" = set; then :
29451 enableval=$enable_swig_error;
29452 case "$enableval" in
29454 AMANDA_SWIG_PERL_CFLAGS=-Werror -Wno-deprecated-declarations
29457 AMANDA_SWIG_PERL_CFLAGS=
29471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
29472 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
29477 macro_version='2.4'
29478 macro_revision='1.3293'
29492 ltmain="$ac_aux_dir/ltmain.sh"
29494 # Backslashify metacharacters that are still active within
29495 # double-quoted strings.
29496 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
29498 # Same as above, but do not quote variable references.
29499 double_quote_subst='s/\(["`\\]\)/\\\1/g'
29501 # Sed substitution to delay expansion of an escaped shell variable in a
29502 # double_quote_subst'ed string.
29503 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
29505 # Sed substitution to delay expansion of an escaped single quote.
29506 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
29508 # Sed substitution to avoid accidental globbing in evaled expressions
29509 no_glob_subst='s/\*/\\\*/g'
29511 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29512 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
29513 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
29515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
29516 $as_echo_n "checking how to print strings... " >&6; }
29517 # Test print first, because it will be a builtin if present.
29518 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
29519 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
29521 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
29524 # Use this function as a fallback that always works.
29525 func_fallback_echo ()
29527 eval 'cat <<_LTECHO_EOF
29531 ECHO='func_fallback_echo'
29534 # func_echo_all arg...
29535 # Invoke $ECHO with all args, space-separated.
29542 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
29543 $as_echo "printf" >&6; } ;;
29544 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
29545 $as_echo "print -r" >&6; } ;;
29546 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
29547 $as_echo "cat" >&6; } ;;
29563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
29564 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
29565 if ${ac_cv_path_SED+:} false; then :
29566 $as_echo_n "(cached) " >&6
29568 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
29569 for ac_i in 1 2 3 4 5 6 7; do
29570 ac_script="$ac_script$as_nl$ac_script"
29572 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
29573 { ac_script=; unset ac_script;}
29574 if test -z "$SED"; then
29575 ac_path_SED_found=false
29576 # Loop through the user's path and test for each of PROGNAME-LIST
29577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29578 for as_dir in $PATH
29581 test -z "$as_dir" && as_dir=.
29582 for ac_prog in sed gsed; do
29583 for ac_exec_ext in '' $ac_executable_extensions; do
29584 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
29585 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
29586 # Check for GNU ac_path_SED and select it if it is found.
29587 # Check for GNU $ac_path_SED
29588 case `"$ac_path_SED" --version 2>&1` in
29590 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
29593 $as_echo_n 0123456789 >"conftest.in"
29596 cat "conftest.in" "conftest.in" >"conftest.tmp"
29597 mv "conftest.tmp" "conftest.in"
29598 cp "conftest.in" "conftest.nl"
29599 $as_echo '' >> "conftest.nl"
29600 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
29601 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
29602 as_fn_arith $ac_count + 1 && ac_count=$as_val
29603 if test $ac_count -gt ${ac_path_SED_max-0}; then
29604 # Best one so far, save it but keep looking for a better one
29605 ac_cv_path_SED="$ac_path_SED"
29606 ac_path_SED_max=$ac_count
29608 # 10*(2^10) chars as input seems more than enough
29609 test $ac_count -gt 10 && break
29611 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
29614 $ac_path_SED_found && break 3
29619 if test -z "$ac_cv_path_SED"; then
29620 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
29623 ac_cv_path_SED=$SED
29627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
29628 $as_echo "$ac_cv_path_SED" >&6; }
29629 SED="$ac_cv_path_SED"
29632 test -z "$SED" && SED=sed
29633 Xsed="$SED -e 1s/^X//"
29645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
29646 $as_echo_n "checking for fgrep... " >&6; }
29647 if ${ac_cv_path_FGREP+:} false; then :
29648 $as_echo_n "(cached) " >&6
29650 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
29651 then ac_cv_path_FGREP="$GREP -F"
29653 if test -z "$FGREP"; then
29654 ac_path_FGREP_found=false
29655 # Loop through the user's path and test for each of PROGNAME-LIST
29656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29657 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
29660 test -z "$as_dir" && as_dir=.
29661 for ac_prog in fgrep; do
29662 for ac_exec_ext in '' $ac_executable_extensions; do
29663 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
29664 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
29665 # Check for GNU ac_path_FGREP and select it if it is found.
29666 # Check for GNU $ac_path_FGREP
29667 case `"$ac_path_FGREP" --version 2>&1` in
29669 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
29672 $as_echo_n 0123456789 >"conftest.in"
29675 cat "conftest.in" "conftest.in" >"conftest.tmp"
29676 mv "conftest.tmp" "conftest.in"
29677 cp "conftest.in" "conftest.nl"
29678 $as_echo 'FGREP' >> "conftest.nl"
29679 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
29680 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
29681 as_fn_arith $ac_count + 1 && ac_count=$as_val
29682 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
29683 # Best one so far, save it but keep looking for a better one
29684 ac_cv_path_FGREP="$ac_path_FGREP"
29685 ac_path_FGREP_max=$ac_count
29687 # 10*(2^10) chars as input seems more than enough
29688 test $ac_count -gt 10 && break
29690 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
29693 $ac_path_FGREP_found && break 3
29698 if test -z "$ac_cv_path_FGREP"; then
29699 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
29702 ac_cv_path_FGREP=$FGREP
29707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
29708 $as_echo "$ac_cv_path_FGREP" >&6; }
29709 FGREP="$ac_cv_path_FGREP"
29712 test -z "$GREP" && GREP=grep
29732 # Check whether --with-gnu-ld was given.
29733 if test "${with_gnu_ld+set}" = set; then :
29734 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
29740 if test "$GCC" = yes; then
29741 # Check if gcc -print-prog-name=ld gives a path.
29742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
29743 $as_echo_n "checking for ld used by $CC... " >&6; }
29746 # gcc leaves a trailing carriage return which upsets mingw
29747 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
29749 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
29752 # Accept absolute paths.
29754 re_direlt='/[^/][^/]*/\.\./'
29755 # Canonicalize the pathname of ld
29756 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
29757 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
29758 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
29760 test -z "$LD" && LD="$ac_prog"
29763 # If it fails, then pretend we aren't using GCC.
29767 # If it is relative, then search for the first ld in PATH.
29768 with_gnu_ld=unknown
29771 elif test "$with_gnu_ld" = yes; then
29772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
29773 $as_echo_n "checking for GNU ld... " >&6; }
29775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
29776 $as_echo_n "checking for non-GNU ld... " >&6; }
29778 if ${lt_cv_path_LD+:} false; then :
29779 $as_echo_n "(cached) " >&6
29781 if test -z "$LD"; then
29782 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
29783 for ac_dir in $PATH; do
29785 test -z "$ac_dir" && ac_dir=.
29786 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
29787 lt_cv_path_LD="$ac_dir/$ac_prog"
29788 # Check to see if the program is GNU ld. I'd rather use --version,
29789 # but apparently some variants of GNU ld only accept -v.
29790 # Break only if it was the GNU/non-GNU ld that we prefer.
29791 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
29792 *GNU* | *'with BFD'*)
29793 test "$with_gnu_ld" != no && break
29796 test "$with_gnu_ld" != yes && break
29803 lt_cv_path_LD="$LD" # Let the user override the test with a path.
29807 LD="$lt_cv_path_LD"
29808 if test -n "$LD"; then
29809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
29810 $as_echo "$LD" >&6; }
29812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29813 $as_echo "no" >&6; }
29815 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
29816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
29817 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
29818 if ${lt_cv_prog_gnu_ld+:} false; then :
29819 $as_echo_n "(cached) " >&6
29821 # I'd rather use --version here, but apparently some GNU lds only accept -v.
29822 case `$LD -v 2>&1 </dev/null` in
29823 *GNU* | *'with BFD'*)
29824 lt_cv_prog_gnu_ld=yes
29827 lt_cv_prog_gnu_ld=no
29831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
29832 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
29833 with_gnu_ld=$lt_cv_prog_gnu_ld
29843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
29844 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
29845 if ${lt_cv_path_NM+:} false; then :
29846 $as_echo_n "(cached) " >&6
29848 if test -n "$NM"; then
29849 # Let the user override the test.
29850 lt_cv_path_NM="$NM"
29852 lt_nm_to_check="${ac_tool_prefix}nm"
29853 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
29854 lt_nm_to_check="$lt_nm_to_check nm"
29856 for lt_tmp_nm in $lt_nm_to_check; do
29857 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
29858 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
29860 test -z "$ac_dir" && ac_dir=.
29861 tmp_nm="$ac_dir/$lt_tmp_nm"
29862 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
29863 # Check to see if the nm accepts a BSD-compat flag.
29864 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
29865 # nm: unknown option "B" ignored
29866 # Tru64's nm complains that /dev/null is an invalid object file
29867 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
29868 */dev/null* | *'Invalid file or object type'*)
29869 lt_cv_path_NM="$tmp_nm -B"
29873 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
29875 lt_cv_path_NM="$tmp_nm -p"
29879 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
29880 continue # so that we can try to find one that supports BSD flags
29889 : ${lt_cv_path_NM=no}
29892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
29893 $as_echo "$lt_cv_path_NM" >&6; }
29894 if test "$lt_cv_path_NM" != "no"; then
29895 NM="$lt_cv_path_NM"
29897 # Didn't find any BSD compatible name lister, look for dumpbin.
29898 if test -n "$DUMPBIN"; then :
29899 # Let the user override the test.
29901 if test -n "$ac_tool_prefix"; then
29902 for ac_prog in dumpbin "link -dump"
29904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
29905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
29906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29907 $as_echo_n "checking for $ac_word... " >&6; }
29908 if ${ac_cv_prog_DUMPBIN+:} false; then :
29909 $as_echo_n "(cached) " >&6
29911 if test -n "$DUMPBIN"; then
29912 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
29914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29915 for as_dir in $PATH
29918 test -z "$as_dir" && as_dir=.
29919 for ac_exec_ext in '' $ac_executable_extensions; do
29920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29921 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
29922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29931 DUMPBIN=$ac_cv_prog_DUMPBIN
29932 if test -n "$DUMPBIN"; then
29933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
29934 $as_echo "$DUMPBIN" >&6; }
29936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29937 $as_echo "no" >&6; }
29941 test -n "$DUMPBIN" && break
29944 if test -z "$DUMPBIN"; then
29945 ac_ct_DUMPBIN=$DUMPBIN
29946 for ac_prog in dumpbin "link -dump"
29948 # Extract the first word of "$ac_prog", so it can be a program name with args.
29949 set dummy $ac_prog; ac_word=$2
29950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29951 $as_echo_n "checking for $ac_word... " >&6; }
29952 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
29953 $as_echo_n "(cached) " >&6
29955 if test -n "$ac_ct_DUMPBIN"; then
29956 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
29958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29959 for as_dir in $PATH
29962 test -z "$as_dir" && as_dir=.
29963 for ac_exec_ext in '' $ac_executable_extensions; do
29964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29965 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
29966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29975 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
29976 if test -n "$ac_ct_DUMPBIN"; then
29977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
29978 $as_echo "$ac_ct_DUMPBIN" >&6; }
29980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29981 $as_echo "no" >&6; }
29985 test -n "$ac_ct_DUMPBIN" && break
29988 if test "x$ac_ct_DUMPBIN" = x; then
29991 case $cross_compiling:$ac_tool_warned in
29993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29995 ac_tool_warned=yes ;;
29997 DUMPBIN=$ac_ct_DUMPBIN
30001 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
30003 DUMPBIN="$DUMPBIN -symbols"
30011 if test "$DUMPBIN" != ":"; then
30015 test -z "$NM" && NM=nm
30022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
30023 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
30024 if ${lt_cv_nm_interface+:} false; then :
30025 $as_echo_n "(cached) " >&6
30027 lt_cv_nm_interface="BSD nm"
30028 echo "int some_variable = 0;" > conftest.$ac_ext
30029 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
30030 (eval "$ac_compile" 2>conftest.err)
30031 cat conftest.err >&5
30032 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
30033 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
30034 cat conftest.err >&5
30035 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
30036 cat conftest.out >&5
30037 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
30038 lt_cv_nm_interface="MS dumpbin"
30042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
30043 $as_echo "$lt_cv_nm_interface" >&6; }
30045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
30046 $as_echo_n "checking whether ln -s works... " >&6; }
30048 if test "$LN_S" = "ln -s"; then
30049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30050 $as_echo "yes" >&6; }
30052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
30053 $as_echo "no, using $LN_S" >&6; }
30056 # find the maximum length of command line arguments
30057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
30058 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
30059 if ${lt_cv_sys_max_cmd_len+:} false; then :
30060 $as_echo_n "(cached) " >&6
30067 # On DJGPP, this test can blow up pretty badly due to problems in libc
30068 # (any single argument exceeding 2000 bytes causes a buffer overrun
30069 # during glob expansion). Even if it were fixed, the result of this
30070 # check would be larger than it should be.
30071 lt_cv_sys_max_cmd_len=12288; # 12K is about right
30075 # Under GNU Hurd, this test is not required because there is
30076 # no limit to the length of command line arguments.
30077 # Libtool will interpret -1 as no limit whatsoever
30078 lt_cv_sys_max_cmd_len=-1;
30081 cygwin* | mingw* | cegcc*)
30082 # On Win9x/ME, this test blows up -- it succeeds, but takes
30083 # about 5 minutes as the teststring grows exponentially.
30084 # Worse, since 9x/ME are not pre-emptively multitasking,
30085 # you end up with a "frozen" computer, even though with patience
30086 # the test eventually succeeds (with a max line length of 256k).
30087 # Instead, let's just punt: use the minimum linelength reported by
30088 # all of the supported platforms: 8192 (on NT/2K/XP).
30089 lt_cv_sys_max_cmd_len=8192;
30093 # On MiNT this can take a long time and run out of memory.
30094 lt_cv_sys_max_cmd_len=8192;
30098 # On AmigaOS with pdksh, this test takes hours, literally.
30099 # So we just punt and use a minimum line length of 8192.
30100 lt_cv_sys_max_cmd_len=8192;
30103 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
30104 # This has been around since 386BSD, at least. Likely further.
30105 if test -x /sbin/sysctl; then
30106 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
30107 elif test -x /usr/sbin/sysctl; then
30108 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
30110 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
30112 # And add a safety zone
30113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
30114 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
30118 # We know the value 262144 and hardcode it with a safety zone (like BSD)
30119 lt_cv_sys_max_cmd_len=196608
30123 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
30124 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
30125 # nice to cause kernel panics so lets avoid the loop below.
30126 # First set a reasonable default.
30127 lt_cv_sys_max_cmd_len=16384
30129 if test -x /sbin/sysconfig; then
30130 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
30131 *1*) lt_cv_sys_max_cmd_len=-1 ;;
30136 lt_cv_sys_max_cmd_len=102400
30138 sysv5* | sco5v6* | sysv4.2uw2*)
30139 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
30140 if test -n "$kargmax"; then
30141 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
30143 lt_cv_sys_max_cmd_len=32768
30147 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
30148 if test -n "$lt_cv_sys_max_cmd_len"; then
30149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
30150 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
30152 # Make teststring a little bigger before we do anything with it.
30153 # a 1K string should be a reasonable start.
30154 for i in 1 2 3 4 5 6 7 8 ; do
30155 teststring=$teststring$teststring
30157 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
30158 # If test is not a shell built-in, we'll probably end up computing a
30159 # maximum length that is only half of the actual maximum length, but
30161 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
30162 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
30163 test $i != 17 # 1/2 MB should be enough
30166 teststring=$teststring$teststring
30168 # Only check the string length outside the loop.
30169 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
30171 # Add a significant safety factor because C++ compilers can tack on
30172 # massive amounts of additional arguments before passing them to the
30173 # linker. It appears as though 1/2 is a usable value.
30174 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
30181 if test -n $lt_cv_sys_max_cmd_len ; then
30182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
30183 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
30185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
30186 $as_echo "none" >&6; }
30188 max_cmd_len=$lt_cv_sys_max_cmd_len
30199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
30200 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
30201 # Try some XSI features
30203 ( _lt_dummy="a/b/c"
30204 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
30206 && eval 'test $(( 1 + 1 )) -eq 2 \
30207 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
30209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
30210 $as_echo "$xsi_shell" >&6; }
30213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
30214 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
30216 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
30218 && lt_shell_append=yes
30219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
30220 $as_echo "$lt_shell_append" >&6; }
30223 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30233 # test EBCDIC or ASCII
30234 case `echo X|tr X '\101'` in
30235 A) # ASCII based system
30236 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
30237 lt_SP2NL='tr \040 \012'
30238 lt_NL2SP='tr \015\012 \040\040'
30240 *) # EBCDIC based system
30241 lt_SP2NL='tr \100 \n'
30242 lt_NL2SP='tr \r\n \100\100'
30254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
30255 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
30256 if ${lt_cv_to_host_file_cmd+:} false; then :
30257 $as_echo_n "(cached) " >&6
30262 *-*-mingw* ) # actually msys
30263 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
30266 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
30268 * ) # otherwise, assume *nix
30269 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
30275 *-*-mingw* ) # actually msys
30276 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
30279 lt_cv_to_host_file_cmd=func_convert_file_noop
30281 * ) # otherwise, assume *nix
30282 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
30286 * ) # unhandled hosts (and "normal" native builds)
30287 lt_cv_to_host_file_cmd=func_convert_file_noop
30293 to_host_file_cmd=$lt_cv_to_host_file_cmd
30294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
30295 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
30301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
30302 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
30303 if ${lt_cv_to_tool_file_cmd+:} false; then :
30304 $as_echo_n "(cached) " >&6
30306 #assume ordinary cross tools, or native build.
30307 lt_cv_to_tool_file_cmd=func_convert_file_noop
30311 *-*-mingw* ) # actually msys
30312 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
30320 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
30322 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
30328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
30329 $as_echo_n "checking for $LD option to reload object files... " >&6; }
30330 if ${lt_cv_ld_reload_flag+:} false; then :
30331 $as_echo_n "(cached) " >&6
30333 lt_cv_ld_reload_flag='-r'
30335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
30336 $as_echo "$lt_cv_ld_reload_flag" >&6; }
30337 reload_flag=$lt_cv_ld_reload_flag
30338 case $reload_flag in
30340 *) reload_flag=" $reload_flag" ;;
30342 reload_cmds='$LD$reload_flag -o $output$reload_objs'
30344 cygwin* | mingw* | pw32* | cegcc*)
30345 if test "$GCC" != yes; then
30350 if test "$GCC" = yes; then
30351 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
30353 reload_cmds='$LD$reload_flag -o $output$reload_objs'
30366 if test -n "$ac_tool_prefix"; then
30367 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
30368 set dummy ${ac_tool_prefix}objdump; ac_word=$2
30369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30370 $as_echo_n "checking for $ac_word... " >&6; }
30371 if ${ac_cv_prog_OBJDUMP+:} false; then :
30372 $as_echo_n "(cached) " >&6
30374 if test -n "$OBJDUMP"; then
30375 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
30377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30378 for as_dir in $PATH
30381 test -z "$as_dir" && as_dir=.
30382 for ac_exec_ext in '' $ac_executable_extensions; do
30383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30384 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
30385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30394 OBJDUMP=$ac_cv_prog_OBJDUMP
30395 if test -n "$OBJDUMP"; then
30396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
30397 $as_echo "$OBJDUMP" >&6; }
30399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30400 $as_echo "no" >&6; }
30405 if test -z "$ac_cv_prog_OBJDUMP"; then
30406 ac_ct_OBJDUMP=$OBJDUMP
30407 # Extract the first word of "objdump", so it can be a program name with args.
30408 set dummy objdump; ac_word=$2
30409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30410 $as_echo_n "checking for $ac_word... " >&6; }
30411 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
30412 $as_echo_n "(cached) " >&6
30414 if test -n "$ac_ct_OBJDUMP"; then
30415 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
30417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30418 for as_dir in $PATH
30421 test -z "$as_dir" && as_dir=.
30422 for ac_exec_ext in '' $ac_executable_extensions; do
30423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30424 ac_cv_prog_ac_ct_OBJDUMP="objdump"
30425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30434 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
30435 if test -n "$ac_ct_OBJDUMP"; then
30436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
30437 $as_echo "$ac_ct_OBJDUMP" >&6; }
30439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30440 $as_echo "no" >&6; }
30443 if test "x$ac_ct_OBJDUMP" = x; then
30446 case $cross_compiling:$ac_tool_warned in
30448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30450 ac_tool_warned=yes ;;
30452 OBJDUMP=$ac_ct_OBJDUMP
30455 OBJDUMP="$ac_cv_prog_OBJDUMP"
30458 test -z "$OBJDUMP" && OBJDUMP=objdump
30468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
30469 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
30470 if ${lt_cv_deplibs_check_method+:} false; then :
30471 $as_echo_n "(cached) " >&6
30473 lt_cv_file_magic_cmd='$MAGIC_CMD'
30474 lt_cv_file_magic_test_file=
30475 lt_cv_deplibs_check_method='unknown'
30476 # Need to set the preceding variable on all platforms that support
30477 # interlibrary dependencies.
30478 # 'none' -- dependencies not supported.
30479 # `unknown' -- same as none, but documents that we really don't know.
30480 # 'pass_all' -- all dependencies passed with no checks.
30481 # 'test_compile' -- check by making test program.
30482 # 'file_magic [[regex]]' -- check by looking for files in library path
30483 # which responds to the $file_magic_cmd with a given extended regex.
30484 # If you have `file' or equivalent on your system and you're not sure
30485 # whether `pass_all' will *always* work, you probably want this one.
30489 lt_cv_deplibs_check_method=pass_all
30493 lt_cv_deplibs_check_method=pass_all
30497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
30498 lt_cv_file_magic_cmd='/usr/bin/file -L'
30499 lt_cv_file_magic_test_file=/shlib/libc.so
30503 # func_win32_libid is a shell function defined in ltmain.sh
30504 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
30505 lt_cv_file_magic_cmd='func_win32_libid'
30509 # Base MSYS/MinGW do not provide the 'file' command needed by
30510 # func_win32_libid shell function, so use a weaker test based on 'objdump',
30511 # unless we find 'file', for example because we are cross-compiling.
30512 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
30513 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
30514 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
30515 lt_cv_file_magic_cmd='func_win32_libid'
30517 # Keep this pattern in sync with the one in func_win32_libid.
30518 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
30519 lt_cv_file_magic_cmd='$OBJDUMP -f'
30524 # use the weaker test based on 'objdump'. See mingw*.
30525 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
30526 lt_cv_file_magic_cmd='$OBJDUMP -f'
30529 darwin* | rhapsody*)
30530 lt_cv_deplibs_check_method=pass_all
30533 freebsd* | dragonfly*)
30534 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
30537 # Not sure whether the presence of OpenBSD here was a mistake.
30538 # Let's accept both of them until this is cleared up.
30539 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
30540 lt_cv_file_magic_cmd=/usr/bin/file
30541 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
30545 lt_cv_deplibs_check_method=pass_all
30550 lt_cv_deplibs_check_method=pass_all
30554 lt_cv_deplibs_check_method=pass_all
30557 hpux10.20* | hpux11*)
30558 lt_cv_file_magic_cmd=/usr/bin/file
30561 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
30562 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
30565 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
30566 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
30569 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
30570 lt_cv_file_magic_test_file=/usr/lib/libc.sl
30576 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
30577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
30580 irix5* | irix6* | nonstopux*)
30582 *-32|*"-32 ") libmagic=32-bit;;
30583 *-n32|*"-n32 ") libmagic=N32;;
30584 *-64|*"-64 ") libmagic=64-bit;;
30585 *) libmagic=never-match;;
30587 lt_cv_deplibs_check_method=pass_all
30590 # This must be Linux ELF.
30591 linux* | k*bsd*-gnu | kopensolaris*-gnu)
30592 lt_cv_deplibs_check_method=pass_all
30596 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
30597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
30599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
30604 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
30605 lt_cv_file_magic_cmd=/usr/bin/file
30606 lt_cv_file_magic_test_file=/usr/lib/libnls.so
30610 lt_cv_deplibs_check_method=pass_all
30614 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
30615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
30617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
30621 osf3* | osf4* | osf5*)
30622 lt_cv_deplibs_check_method=pass_all
30626 lt_cv_deplibs_check_method=pass_all
30630 lt_cv_deplibs_check_method=pass_all
30633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
30634 lt_cv_deplibs_check_method=pass_all
30638 case $host_vendor in
30640 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]'
30641 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
30644 lt_cv_deplibs_check_method=pass_all
30647 lt_cv_file_magic_cmd='/bin/file'
30648 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
30651 lt_cv_file_magic_cmd='/bin/file'
30652 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
30653 lt_cv_file_magic_test_file=/lib/libc.so
30656 lt_cv_deplibs_check_method=pass_all
30659 lt_cv_deplibs_check_method=pass_all
30665 lt_cv_deplibs_check_method=pass_all
30670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
30671 $as_echo "$lt_cv_deplibs_check_method" >&6; }
30675 if test "$build" = "$host"; then
30678 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
30679 want_nocaseglob=yes
30681 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
30687 file_magic_cmd=$lt_cv_file_magic_cmd
30688 deplibs_check_method=$lt_cv_deplibs_check_method
30689 test -z "$deplibs_check_method" && deplibs_check_method=unknown
30712 if test -n "$ac_tool_prefix"; then
30713 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
30714 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
30715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30716 $as_echo_n "checking for $ac_word... " >&6; }
30717 if ${ac_cv_prog_DLLTOOL+:} false; then :
30718 $as_echo_n "(cached) " >&6
30720 if test -n "$DLLTOOL"; then
30721 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
30723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30724 for as_dir in $PATH
30727 test -z "$as_dir" && as_dir=.
30728 for ac_exec_ext in '' $ac_executable_extensions; do
30729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30730 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
30731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30740 DLLTOOL=$ac_cv_prog_DLLTOOL
30741 if test -n "$DLLTOOL"; then
30742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
30743 $as_echo "$DLLTOOL" >&6; }
30745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30746 $as_echo "no" >&6; }
30751 if test -z "$ac_cv_prog_DLLTOOL"; then
30752 ac_ct_DLLTOOL=$DLLTOOL
30753 # Extract the first word of "dlltool", so it can be a program name with args.
30754 set dummy dlltool; ac_word=$2
30755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30756 $as_echo_n "checking for $ac_word... " >&6; }
30757 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
30758 $as_echo_n "(cached) " >&6
30760 if test -n "$ac_ct_DLLTOOL"; then
30761 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
30763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30764 for as_dir in $PATH
30767 test -z "$as_dir" && as_dir=.
30768 for ac_exec_ext in '' $ac_executable_extensions; do
30769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30770 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
30771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30780 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
30781 if test -n "$ac_ct_DLLTOOL"; then
30782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
30783 $as_echo "$ac_ct_DLLTOOL" >&6; }
30785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30786 $as_echo "no" >&6; }
30789 if test "x$ac_ct_DLLTOOL" = x; then
30792 case $cross_compiling:$ac_tool_warned in
30794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30796 ac_tool_warned=yes ;;
30798 DLLTOOL=$ac_ct_DLLTOOL
30801 DLLTOOL="$ac_cv_prog_DLLTOOL"
30804 test -z "$DLLTOOL" && DLLTOOL=dlltool
30815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
30816 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
30817 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
30818 $as_echo_n "(cached) " >&6
30820 lt_cv_sharedlib_from_linklib_cmd='unknown'
30823 cygwin* | mingw* | pw32* | cegcc*)
30824 # two different shell functions defined in ltmain.sh
30825 # decide which to use based on capabilities of $DLLTOOL
30826 case `$DLLTOOL --help 2>&1` in
30827 *--identify-strict*)
30828 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
30831 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
30836 # fallback: assume linklib IS sharedlib
30837 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
30842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
30843 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
30844 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
30845 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
30853 if test -n "$ac_tool_prefix"; then
30856 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30857 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30859 $as_echo_n "checking for $ac_word... " >&6; }
30860 if ${ac_cv_prog_AR+:} false; then :
30861 $as_echo_n "(cached) " >&6
30863 if test -n "$AR"; then
30864 ac_cv_prog_AR="$AR" # Let the user override the test.
30866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30867 for as_dir in $PATH
30870 test -z "$as_dir" && as_dir=.
30871 for ac_exec_ext in '' $ac_executable_extensions; do
30872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30873 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
30874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30884 if test -n "$AR"; then
30885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
30886 $as_echo "$AR" >&6; }
30888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30889 $as_echo "no" >&6; }
30893 test -n "$AR" && break
30896 if test -z "$AR"; then
30900 # Extract the first word of "$ac_prog", so it can be a program name with args.
30901 set dummy $ac_prog; ac_word=$2
30902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30903 $as_echo_n "checking for $ac_word... " >&6; }
30904 if ${ac_cv_prog_ac_ct_AR+:} false; then :
30905 $as_echo_n "(cached) " >&6
30907 if test -n "$ac_ct_AR"; then
30908 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
30910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30911 for as_dir in $PATH
30914 test -z "$as_dir" && as_dir=.
30915 for ac_exec_ext in '' $ac_executable_extensions; do
30916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30917 ac_cv_prog_ac_ct_AR="$ac_prog"
30918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30927 ac_ct_AR=$ac_cv_prog_ac_ct_AR
30928 if test -n "$ac_ct_AR"; then
30929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
30930 $as_echo "$ac_ct_AR" >&6; }
30932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30933 $as_echo "no" >&6; }
30937 test -n "$ac_ct_AR" && break
30940 if test "x$ac_ct_AR" = x; then
30943 case $cross_compiling:$ac_tool_warned in
30945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30947 ac_tool_warned=yes ;;
30966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
30967 $as_echo_n "checking for archiver @FILE support... " >&6; }
30968 if ${lt_cv_ar_at_file+:} false; then :
30969 $as_echo_n "(cached) " >&6
30971 lt_cv_ar_at_file=no
30972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30973 /* end confdefs.h. */
30983 if ac_fn_c_try_compile "$LINENO"; then :
30984 echo conftest.$ac_objext > conftest.lst
30985 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
30986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
30987 (eval $lt_ar_try) 2>&5
30989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30990 test $ac_status = 0; }
30991 if test "$ac_status" -eq 0; then
30992 # Ensure the archiver fails upon bogus file names.
30993 rm -f conftest.$ac_objext libconftest.a
30994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
30995 (eval $lt_ar_try) 2>&5
30997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30998 test $ac_status = 0; }
30999 if test "$ac_status" -ne 0; then
31003 rm -f conftest.* libconftest.a
31006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
31010 $as_echo "$lt_cv_ar_at_file" >&6; }
31012 if test "x$lt_cv_ar_at_file" = xno; then
31013 archiver_list_spec=
31015 archiver_list_spec=$lt_cv_ar_at_file
31024 if test -n "$ac_tool_prefix"; then
31025 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
31026 set dummy ${ac_tool_prefix}strip; ac_word=$2
31027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31028 $as_echo_n "checking for $ac_word... " >&6; }
31029 if ${ac_cv_prog_STRIP+:} false; then :
31030 $as_echo_n "(cached) " >&6
31032 if test -n "$STRIP"; then
31033 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
31035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31036 for as_dir in $PATH
31039 test -z "$as_dir" && as_dir=.
31040 for ac_exec_ext in '' $ac_executable_extensions; do
31041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31042 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
31043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31052 STRIP=$ac_cv_prog_STRIP
31053 if test -n "$STRIP"; then
31054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
31055 $as_echo "$STRIP" >&6; }
31057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31058 $as_echo "no" >&6; }
31063 if test -z "$ac_cv_prog_STRIP"; then
31065 # Extract the first word of "strip", so it can be a program name with args.
31066 set dummy strip; ac_word=$2
31067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31068 $as_echo_n "checking for $ac_word... " >&6; }
31069 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
31070 $as_echo_n "(cached) " >&6
31072 if test -n "$ac_ct_STRIP"; then
31073 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
31075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31076 for as_dir in $PATH
31079 test -z "$as_dir" && as_dir=.
31080 for ac_exec_ext in '' $ac_executable_extensions; do
31081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31082 ac_cv_prog_ac_ct_STRIP="strip"
31083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31092 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
31093 if test -n "$ac_ct_STRIP"; then
31094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
31095 $as_echo "$ac_ct_STRIP" >&6; }
31097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31098 $as_echo "no" >&6; }
31101 if test "x$ac_ct_STRIP" = x; then
31104 case $cross_compiling:$ac_tool_warned in
31106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31108 ac_tool_warned=yes ;;
31113 STRIP="$ac_cv_prog_STRIP"
31116 test -z "$STRIP" && STRIP=:
31123 if test -n "$ac_tool_prefix"; then
31124 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
31125 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
31126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31127 $as_echo_n "checking for $ac_word... " >&6; }
31128 if ${ac_cv_prog_RANLIB+:} false; then :
31129 $as_echo_n "(cached) " >&6
31131 if test -n "$RANLIB"; then
31132 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
31134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31135 for as_dir in $PATH
31138 test -z "$as_dir" && as_dir=.
31139 for ac_exec_ext in '' $ac_executable_extensions; do
31140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31141 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
31142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31151 RANLIB=$ac_cv_prog_RANLIB
31152 if test -n "$RANLIB"; then
31153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
31154 $as_echo "$RANLIB" >&6; }
31156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31157 $as_echo "no" >&6; }
31162 if test -z "$ac_cv_prog_RANLIB"; then
31163 ac_ct_RANLIB=$RANLIB
31164 # Extract the first word of "ranlib", so it can be a program name with args.
31165 set dummy ranlib; ac_word=$2
31166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31167 $as_echo_n "checking for $ac_word... " >&6; }
31168 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
31169 $as_echo_n "(cached) " >&6
31171 if test -n "$ac_ct_RANLIB"; then
31172 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
31174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31175 for as_dir in $PATH
31178 test -z "$as_dir" && as_dir=.
31179 for ac_exec_ext in '' $ac_executable_extensions; do
31180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31181 ac_cv_prog_ac_ct_RANLIB="ranlib"
31182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31191 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
31192 if test -n "$ac_ct_RANLIB"; then
31193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
31194 $as_echo "$ac_ct_RANLIB" >&6; }
31196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31197 $as_echo "no" >&6; }
31200 if test "x$ac_ct_RANLIB" = x; then
31203 case $cross_compiling:$ac_tool_warned in
31205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31207 ac_tool_warned=yes ;;
31209 RANLIB=$ac_ct_RANLIB
31212 RANLIB="$ac_cv_prog_RANLIB"
31215 test -z "$RANLIB" && RANLIB=:
31222 # Determine commands to create old-style static archives.
31223 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
31224 old_postinstall_cmds='chmod 644 $oldlib'
31225 old_postuninstall_cmds=
31227 if test -n "$RANLIB"; then
31230 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
31233 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
31236 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
31241 lock_old_archive_extraction=yes ;;
31243 lock_old_archive_extraction=no ;;
31284 # If no C compiler was specified, use CC.
31287 # If no C compiler flags were specified, use CFLAGS.
31288 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
31290 # Allow CC to be a program name with arguments.
31294 # Check for command to grab the raw symbol name followed by C symbol from nm.
31295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
31296 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
31297 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
31298 $as_echo_n "(cached) " >&6
31301 # These are sane defaults that work on at least a few old systems.
31302 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
31304 # Character class describing NM global symbol codes.
31305 symcode='[BCDEGRST]'
31307 # Regexp to match symbols that can be accessed directly from C.
31308 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
31310 # Define system-specific variables.
31315 cygwin* | mingw* | pw32* | cegcc*)
31316 symcode='[ABCDGISTW]'
31319 if test "$host_cpu" = ia64; then
31320 symcode='[ABCDEGRST]'
31323 irix* | nonstopux*)
31324 symcode='[BCDEGRST]'
31327 symcode='[BCDEGQRST]'
31338 sysv5* | sco5v6* | unixware* | OpenUNIX*)
31346 # If we're using GNU nm, then use its standard symbol codes.
31347 case `$NM -V 2>&1` in
31348 *GNU* | *'with BFD'*)
31349 symcode='[ABCDGIRSTW]' ;;
31352 # Transform an extracted symbol line into a proper C declaration.
31353 # Some systems (esp. on ia64) link data and code symbols differently,
31354 # so use this general approach.
31355 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
31357 # Transform an extracted symbol line into symbol name and symbol address
31358 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
31359 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'"
31361 # Handle CRLF in mingw tool chain
31365 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
31369 # Try without a prefix underscore, then with it.
31370 for ac_symprfx in "" "_"; do
31372 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
31373 symxfrm="\\1 $ac_symprfx\\2 \\2"
31375 # Write the raw and C identifiers.
31376 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
31377 # Fake it for dumpbin and say T for any non-static function
31378 # and D for any global variable.
31379 # Also find C++ and __fastcall symbols from MSVC++,
31380 # which start with @ or ?.
31381 lt_cv_sys_global_symbol_pipe="$AWK '"\
31382 " {last_section=section; section=\$ 3};"\
31383 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
31384 " \$ 0!~/External *\|/{next};"\
31385 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
31386 " {if(hide[section]) next};"\
31387 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
31388 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
31389 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
31390 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
31391 " ' prfx=^$ac_symprfx"
31393 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
31395 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
31397 # Check to see that the pipe works correctly.
31401 cat > conftest.$ac_ext <<_LT_EOF
31406 void nm_test_func(void);
31407 void nm_test_func(void){}
31411 int main(){nm_test_var='a';nm_test_func();return(0);}
31414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31415 (eval $ac_compile) 2>&5
31417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31418 test $ac_status = 0; }; then
31419 # Now try to grab the symbols.
31421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
31422 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
31424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31425 test $ac_status = 0; } && test -s "$nlist"; then
31426 # Try sorting and uniquifying the output.
31427 if sort "$nlist" | uniq > "$nlist"T; then
31428 mv -f "$nlist"T "$nlist"
31433 # Make sure that we snagged all the symbols we need.
31434 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
31435 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
31436 cat <<_LT_EOF > conftest.$ac_ext
31437 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
31438 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
31439 /* DATA imports from DLLs on WIN32 con't be const, because runtime
31440 relocations are performed -- see ld's documentation on pseudo-relocs. */
31441 # define LT_DLSYM_CONST
31442 #elif defined(__osf__)
31443 /* This system does not cope well with relocations in const data. */
31444 # define LT_DLSYM_CONST
31446 # define LT_DLSYM_CONST const
31454 # Now generate the symbol file.
31455 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
31457 cat <<_LT_EOF >> conftest.$ac_ext
31459 /* The mapping between symbol names and symbols. */
31460 LT_DLSYM_CONST struct {
31464 lt__PROGRAM__LTX_preloaded_symbols[] =
31466 { "@PROGRAM@", (void *) 0 },
31468 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
31469 cat <<\_LT_EOF >> conftest.$ac_ext
31473 /* This works around a problem in FreeBSD linker */
31474 #ifdef FREEBSD_WORKAROUND
31475 static const void *lt_preloaded_setup() {
31476 return lt__PROGRAM__LTX_preloaded_symbols;
31484 # Now try linking the two files.
31485 mv conftest.$ac_objext conftstm.$ac_objext
31486 lt_globsym_save_LIBS=$LIBS
31487 lt_globsym_save_CFLAGS=$CFLAGS
31488 LIBS="conftstm.$ac_objext"
31489 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
31490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
31491 (eval $ac_link) 2>&5
31493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31494 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
31497 LIBS=$lt_globsym_save_LIBS
31498 CFLAGS=$lt_globsym_save_CFLAGS
31500 echo "cannot find nm_test_func in $nlist" >&5
31503 echo "cannot find nm_test_var in $nlist" >&5
31506 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
31509 echo "$progname: failed program was:" >&5
31510 cat conftest.$ac_ext >&5
31512 rm -rf conftest* conftst*
31514 # Do not use the global_symbol_pipe unless it works.
31515 if test "$pipe_works" = yes; then
31518 lt_cv_sys_global_symbol_pipe=
31524 if test -z "$lt_cv_sys_global_symbol_pipe"; then
31525 lt_cv_sys_global_symbol_to_cdecl=
31527 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
31528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
31529 $as_echo "failed" >&6; }
31531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
31532 $as_echo "ok" >&6; }
31535 # Response file support.
31536 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
31537 nm_file_list_spec='@'
31538 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
31539 nm_file_list_spec='@'
31568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
31569 $as_echo_n "checking for sysroot... " >&6; }
31571 # Check whether --with-sysroot was given.
31572 if test "${with_sysroot+set}" = set; then :
31573 withval=$with_sysroot;
31580 case ${with_sysroot} in #(
31582 if test "$GCC" = yes; then
31583 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
31587 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
31592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
31593 $as_echo "${with_sysroot}" >&6; }
31594 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
31598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
31599 $as_echo "${lt_sysroot:-no}" >&6; }
31605 # Check whether --enable-libtool-lock was given.
31606 if test "${enable_libtool_lock+set}" = set; then :
31607 enableval=$enable_libtool_lock;
31610 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
31612 # Some flags need to be propagated to the compiler or linker for good
31616 # Find out which ABI we are using.
31617 echo 'int i;' > conftest.$ac_ext
31618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31619 (eval $ac_compile) 2>&5
31621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31622 test $ac_status = 0; }; then
31623 case `/usr/bin/file conftest.$ac_objext` in
31625 HPUX_IA64_MODE="32"
31628 HPUX_IA64_MODE="64"
31635 # Find out which ABI we are using.
31636 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
31637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31638 (eval $ac_compile) 2>&5
31640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31641 test $ac_status = 0; }; then
31642 if test "$lt_cv_prog_gnu_ld" = yes; then
31643 case `/usr/bin/file conftest.$ac_objext` in
31645 LD="${LD-ld} -melf32bsmip"
31648 LD="${LD-ld} -melf32bmipn32"
31651 LD="${LD-ld} -melf64bmip"
31655 case `/usr/bin/file conftest.$ac_objext` in
31671 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
31672 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
31673 # Find out which ABI we are using.
31674 echo 'int i;' > conftest.$ac_ext
31675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31676 (eval $ac_compile) 2>&5
31678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31679 test $ac_status = 0; }; then
31680 case `/usr/bin/file conftest.o` in
31683 x86_64-*kfreebsd*-gnu)
31684 LD="${LD-ld} -m elf_i386_fbsd"
31687 LD="${LD-ld} -m elf_i386"
31689 ppc64-*linux*|powerpc64-*linux*)
31690 LD="${LD-ld} -m elf32ppclinux"
31693 LD="${LD-ld} -m elf_s390"
31696 LD="${LD-ld} -m elf32_sparc"
31702 x86_64-*kfreebsd*-gnu)
31703 LD="${LD-ld} -m elf_x86_64_fbsd"
31706 LD="${LD-ld} -m elf_x86_64"
31708 ppc*-*linux*|powerpc*-*linux*)
31709 LD="${LD-ld} -m elf64ppc"
31711 s390*-*linux*|s390*-*tpf*)
31712 LD="${LD-ld} -m elf64_s390"
31715 LD="${LD-ld} -m elf64_sparc"
31725 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
31726 SAVE_CFLAGS="$CFLAGS"
31727 CFLAGS="$CFLAGS -belf"
31728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
31729 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
31730 if ${lt_cv_cc_needs_belf+:} false; then :
31731 $as_echo_n "(cached) " >&6
31734 ac_cpp='$CPP $CPPFLAGS'
31735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31740 /* end confdefs.h. */
31750 if ac_fn_c_try_link "$LINENO"; then :
31751 lt_cv_cc_needs_belf=yes
31753 lt_cv_cc_needs_belf=no
31755 rm -f core conftest.err conftest.$ac_objext \
31756 conftest$ac_exeext conftest.$ac_ext
31758 ac_cpp='$CPP $CPPFLAGS'
31759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
31765 $as_echo "$lt_cv_cc_needs_belf" >&6; }
31766 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
31767 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
31768 CFLAGS="$SAVE_CFLAGS"
31772 # Find out which ABI we are using.
31773 echo 'int i;' > conftest.$ac_ext
31774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31775 (eval $ac_compile) 2>&5
31777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31778 test $ac_status = 0; }; then
31779 case `/usr/bin/file conftest.o` in
31781 case $lt_cv_prog_gnu_ld in
31782 yes*) LD="${LD-ld} -m elf64_sparc" ;;
31784 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
31796 need_locks="$enable_libtool_lock"
31798 if test -n "$ac_tool_prefix"; then
31799 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
31800 set dummy ${ac_tool_prefix}mt; ac_word=$2
31801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31802 $as_echo_n "checking for $ac_word... " >&6; }
31803 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
31804 $as_echo_n "(cached) " >&6
31806 if test -n "$MANIFEST_TOOL"; then
31807 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
31809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31810 for as_dir in $PATH
31813 test -z "$as_dir" && as_dir=.
31814 for ac_exec_ext in '' $ac_executable_extensions; do
31815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31816 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
31817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31826 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
31827 if test -n "$MANIFEST_TOOL"; then
31828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
31829 $as_echo "$MANIFEST_TOOL" >&6; }
31831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31832 $as_echo "no" >&6; }
31837 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
31838 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
31839 # Extract the first word of "mt", so it can be a program name with args.
31840 set dummy mt; ac_word=$2
31841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31842 $as_echo_n "checking for $ac_word... " >&6; }
31843 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
31844 $as_echo_n "(cached) " >&6
31846 if test -n "$ac_ct_MANIFEST_TOOL"; then
31847 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
31849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31850 for as_dir in $PATH
31853 test -z "$as_dir" && as_dir=.
31854 for ac_exec_ext in '' $ac_executable_extensions; do
31855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31856 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
31857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31866 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
31867 if test -n "$ac_ct_MANIFEST_TOOL"; then
31868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
31869 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
31871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31872 $as_echo "no" >&6; }
31875 if test "x$ac_ct_MANIFEST_TOOL" = x; then
31878 case $cross_compiling:$ac_tool_warned in
31880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31882 ac_tool_warned=yes ;;
31884 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
31887 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
31890 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
31891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
31892 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
31893 if ${lt_cv_path_mainfest_tool+:} false; then :
31894 $as_echo_n "(cached) " >&6
31896 lt_cv_path_mainfest_tool=no
31897 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
31898 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
31899 cat conftest.err >&5
31900 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
31901 lt_cv_path_mainfest_tool=yes
31905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
31906 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
31907 if test "x$lt_cv_path_mainfest_tool" != xyes; then
31917 rhapsody* | darwin*)
31918 if test -n "$ac_tool_prefix"; then
31919 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
31920 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
31921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31922 $as_echo_n "checking for $ac_word... " >&6; }
31923 if ${ac_cv_prog_DSYMUTIL+:} false; then :
31924 $as_echo_n "(cached) " >&6
31926 if test -n "$DSYMUTIL"; then
31927 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
31929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31930 for as_dir in $PATH
31933 test -z "$as_dir" && as_dir=.
31934 for ac_exec_ext in '' $ac_executable_extensions; do
31935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31936 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
31937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31946 DSYMUTIL=$ac_cv_prog_DSYMUTIL
31947 if test -n "$DSYMUTIL"; then
31948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
31949 $as_echo "$DSYMUTIL" >&6; }
31951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31952 $as_echo "no" >&6; }
31957 if test -z "$ac_cv_prog_DSYMUTIL"; then
31958 ac_ct_DSYMUTIL=$DSYMUTIL
31959 # Extract the first word of "dsymutil", so it can be a program name with args.
31960 set dummy dsymutil; ac_word=$2
31961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31962 $as_echo_n "checking for $ac_word... " >&6; }
31963 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
31964 $as_echo_n "(cached) " >&6
31966 if test -n "$ac_ct_DSYMUTIL"; then
31967 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
31969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31970 for as_dir in $PATH
31973 test -z "$as_dir" && as_dir=.
31974 for ac_exec_ext in '' $ac_executable_extensions; do
31975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31976 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
31977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31986 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
31987 if test -n "$ac_ct_DSYMUTIL"; then
31988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
31989 $as_echo "$ac_ct_DSYMUTIL" >&6; }
31991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31992 $as_echo "no" >&6; }
31995 if test "x$ac_ct_DSYMUTIL" = x; then
31998 case $cross_compiling:$ac_tool_warned in
32000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32002 ac_tool_warned=yes ;;
32004 DSYMUTIL=$ac_ct_DSYMUTIL
32007 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
32010 if test -n "$ac_tool_prefix"; then
32011 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
32012 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
32013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32014 $as_echo_n "checking for $ac_word... " >&6; }
32015 if ${ac_cv_prog_NMEDIT+:} false; then :
32016 $as_echo_n "(cached) " >&6
32018 if test -n "$NMEDIT"; then
32019 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
32021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32022 for as_dir in $PATH
32025 test -z "$as_dir" && as_dir=.
32026 for ac_exec_ext in '' $ac_executable_extensions; do
32027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32028 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
32029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32038 NMEDIT=$ac_cv_prog_NMEDIT
32039 if test -n "$NMEDIT"; then
32040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
32041 $as_echo "$NMEDIT" >&6; }
32043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32044 $as_echo "no" >&6; }
32049 if test -z "$ac_cv_prog_NMEDIT"; then
32050 ac_ct_NMEDIT=$NMEDIT
32051 # Extract the first word of "nmedit", so it can be a program name with args.
32052 set dummy nmedit; ac_word=$2
32053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32054 $as_echo_n "checking for $ac_word... " >&6; }
32055 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
32056 $as_echo_n "(cached) " >&6
32058 if test -n "$ac_ct_NMEDIT"; then
32059 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
32061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32062 for as_dir in $PATH
32065 test -z "$as_dir" && as_dir=.
32066 for ac_exec_ext in '' $ac_executable_extensions; do
32067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32068 ac_cv_prog_ac_ct_NMEDIT="nmedit"
32069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32078 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
32079 if test -n "$ac_ct_NMEDIT"; then
32080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
32081 $as_echo "$ac_ct_NMEDIT" >&6; }
32083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32084 $as_echo "no" >&6; }
32087 if test "x$ac_ct_NMEDIT" = x; then
32090 case $cross_compiling:$ac_tool_warned in
32092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32094 ac_tool_warned=yes ;;
32096 NMEDIT=$ac_ct_NMEDIT
32099 NMEDIT="$ac_cv_prog_NMEDIT"
32102 if test -n "$ac_tool_prefix"; then
32103 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
32104 set dummy ${ac_tool_prefix}lipo; ac_word=$2
32105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32106 $as_echo_n "checking for $ac_word... " >&6; }
32107 if ${ac_cv_prog_LIPO+:} false; then :
32108 $as_echo_n "(cached) " >&6
32110 if test -n "$LIPO"; then
32111 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
32113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32114 for as_dir in $PATH
32117 test -z "$as_dir" && as_dir=.
32118 for ac_exec_ext in '' $ac_executable_extensions; do
32119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32120 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
32121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32130 LIPO=$ac_cv_prog_LIPO
32131 if test -n "$LIPO"; then
32132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
32133 $as_echo "$LIPO" >&6; }
32135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32136 $as_echo "no" >&6; }
32141 if test -z "$ac_cv_prog_LIPO"; then
32143 # Extract the first word of "lipo", so it can be a program name with args.
32144 set dummy lipo; ac_word=$2
32145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32146 $as_echo_n "checking for $ac_word... " >&6; }
32147 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
32148 $as_echo_n "(cached) " >&6
32150 if test -n "$ac_ct_LIPO"; then
32151 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
32153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32154 for as_dir in $PATH
32157 test -z "$as_dir" && as_dir=.
32158 for ac_exec_ext in '' $ac_executable_extensions; do
32159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32160 ac_cv_prog_ac_ct_LIPO="lipo"
32161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32170 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
32171 if test -n "$ac_ct_LIPO"; then
32172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
32173 $as_echo "$ac_ct_LIPO" >&6; }
32175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32176 $as_echo "no" >&6; }
32179 if test "x$ac_ct_LIPO" = x; then
32182 case $cross_compiling:$ac_tool_warned in
32184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32186 ac_tool_warned=yes ;;
32191 LIPO="$ac_cv_prog_LIPO"
32194 if test -n "$ac_tool_prefix"; then
32195 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
32196 set dummy ${ac_tool_prefix}otool; ac_word=$2
32197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32198 $as_echo_n "checking for $ac_word... " >&6; }
32199 if ${ac_cv_prog_OTOOL+:} false; then :
32200 $as_echo_n "(cached) " >&6
32202 if test -n "$OTOOL"; then
32203 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
32205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32206 for as_dir in $PATH
32209 test -z "$as_dir" && as_dir=.
32210 for ac_exec_ext in '' $ac_executable_extensions; do
32211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32212 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
32213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32222 OTOOL=$ac_cv_prog_OTOOL
32223 if test -n "$OTOOL"; then
32224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
32225 $as_echo "$OTOOL" >&6; }
32227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32228 $as_echo "no" >&6; }
32233 if test -z "$ac_cv_prog_OTOOL"; then
32235 # Extract the first word of "otool", so it can be a program name with args.
32236 set dummy otool; ac_word=$2
32237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32238 $as_echo_n "checking for $ac_word... " >&6; }
32239 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
32240 $as_echo_n "(cached) " >&6
32242 if test -n "$ac_ct_OTOOL"; then
32243 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
32245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32246 for as_dir in $PATH
32249 test -z "$as_dir" && as_dir=.
32250 for ac_exec_ext in '' $ac_executable_extensions; do
32251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32252 ac_cv_prog_ac_ct_OTOOL="otool"
32253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32262 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
32263 if test -n "$ac_ct_OTOOL"; then
32264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
32265 $as_echo "$ac_ct_OTOOL" >&6; }
32267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32268 $as_echo "no" >&6; }
32271 if test "x$ac_ct_OTOOL" = x; then
32274 case $cross_compiling:$ac_tool_warned in
32276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32278 ac_tool_warned=yes ;;
32283 OTOOL="$ac_cv_prog_OTOOL"
32286 if test -n "$ac_tool_prefix"; then
32287 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
32288 set dummy ${ac_tool_prefix}otool64; ac_word=$2
32289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32290 $as_echo_n "checking for $ac_word... " >&6; }
32291 if ${ac_cv_prog_OTOOL64+:} false; then :
32292 $as_echo_n "(cached) " >&6
32294 if test -n "$OTOOL64"; then
32295 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
32297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32298 for as_dir in $PATH
32301 test -z "$as_dir" && as_dir=.
32302 for ac_exec_ext in '' $ac_executable_extensions; do
32303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32304 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
32305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32314 OTOOL64=$ac_cv_prog_OTOOL64
32315 if test -n "$OTOOL64"; then
32316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
32317 $as_echo "$OTOOL64" >&6; }
32319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32320 $as_echo "no" >&6; }
32325 if test -z "$ac_cv_prog_OTOOL64"; then
32326 ac_ct_OTOOL64=$OTOOL64
32327 # Extract the first word of "otool64", so it can be a program name with args.
32328 set dummy otool64; ac_word=$2
32329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32330 $as_echo_n "checking for $ac_word... " >&6; }
32331 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
32332 $as_echo_n "(cached) " >&6
32334 if test -n "$ac_ct_OTOOL64"; then
32335 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
32337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32338 for as_dir in $PATH
32341 test -z "$as_dir" && as_dir=.
32342 for ac_exec_ext in '' $ac_executable_extensions; do
32343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32344 ac_cv_prog_ac_ct_OTOOL64="otool64"
32345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32354 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
32355 if test -n "$ac_ct_OTOOL64"; then
32356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
32357 $as_echo "$ac_ct_OTOOL64" >&6; }
32359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32360 $as_echo "no" >&6; }
32363 if test "x$ac_ct_OTOOL64" = x; then
32366 case $cross_compiling:$ac_tool_warned in
32368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32370 ac_tool_warned=yes ;;
32372 OTOOL64=$ac_ct_OTOOL64
32375 OTOOL64="$ac_cv_prog_OTOOL64"
32404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
32405 $as_echo_n "checking for -single_module linker flag... " >&6; }
32406 if ${lt_cv_apple_cc_single_mod+:} false; then :
32407 $as_echo_n "(cached) " >&6
32409 lt_cv_apple_cc_single_mod=no
32410 if test -z "${LT_MULTI_MODULE}"; then
32411 # By default we will add the -single_module flag. You can override
32412 # by either setting the environment variable LT_MULTI_MODULE
32413 # non-empty at configure time, or by adding -multi_module to the
32415 rm -rf libconftest.dylib*
32416 echo "int foo(void){return 1;}" > conftest.c
32417 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
32418 -dynamiclib -Wl,-single_module conftest.c" >&5
32419 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
32420 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
32422 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
32423 lt_cv_apple_cc_single_mod=yes
32425 cat conftest.err >&5
32427 rm -rf libconftest.dylib*
32431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
32432 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
32433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
32434 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
32435 if ${lt_cv_ld_exported_symbols_list+:} false; then :
32436 $as_echo_n "(cached) " >&6
32438 lt_cv_ld_exported_symbols_list=no
32439 save_LDFLAGS=$LDFLAGS
32440 echo "_main" > conftest.sym
32441 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
32442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32443 /* end confdefs.h. */
32453 if ac_fn_c_try_link "$LINENO"; then :
32454 lt_cv_ld_exported_symbols_list=yes
32456 lt_cv_ld_exported_symbols_list=no
32458 rm -f core conftest.err conftest.$ac_objext \
32459 conftest$ac_exeext conftest.$ac_ext
32460 LDFLAGS="$save_LDFLAGS"
32463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
32464 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
32465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
32466 $as_echo_n "checking for -force_load linker flag... " >&6; }
32467 if ${lt_cv_ld_force_load+:} false; then :
32468 $as_echo_n "(cached) " >&6
32470 lt_cv_ld_force_load=no
32471 cat > conftest.c << _LT_EOF
32472 int forced_loaded() { return 2;}
32474 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
32475 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
32476 echo "$AR cru libconftest.a conftest.o" >&5
32477 $AR cru libconftest.a conftest.o 2>&5
32478 echo "$RANLIB libconftest.a" >&5
32479 $RANLIB libconftest.a 2>&5
32480 cat > conftest.c << _LT_EOF
32481 int main() { return 0;}
32483 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
32484 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
32486 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
32487 lt_cv_ld_force_load=yes
32489 cat conftest.err >&5
32491 rm -f conftest.err libconftest.a conftest conftest.c
32492 rm -rf conftest.dSYM
32495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
32496 $as_echo "$lt_cv_ld_force_load" >&6; }
32498 rhapsody* | darwin1.[012])
32499 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
32501 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
32502 darwin*) # darwin 5.x on
32503 # if running on 10.5 or later, the deployment target defaults
32504 # to the OS version, if on x86, and 10.4, the deployment
32505 # target defaults to 10.4. Don't you love it?
32506 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
32507 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
32508 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
32510 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
32512 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
32516 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
32517 _lt_dar_single_mod='$single_module'
32519 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
32520 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
32522 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
32524 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
32525 _lt_dsymutil='~$DSYMUTIL $lib || :'
32532 for ac_header in dlfcn.h
32534 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
32536 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
32537 cat >>confdefs.h <<_ACEOF
32538 #define HAVE_DLFCN_H 1
32556 enable_win32_dll=no
32559 # Check whether --enable-shared was given.
32560 if test "${enable_shared+set}" = set; then :
32561 enableval=$enable_shared; p=${PACKAGE-default}
32563 yes) enable_shared=yes ;;
32564 no) enable_shared=no ;;
32567 # Look at the argument we got. We use all the common list separators.
32568 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32569 for pkg in $enableval; do
32571 if test "X$pkg" = "X$p"; then
32590 # Check whether --enable-static was given.
32591 if test "${enable_static+set}" = set; then :
32592 enableval=$enable_static; p=${PACKAGE-default}
32594 yes) enable_static=yes ;;
32595 no) enable_static=no ;;
32598 # Look at the argument we got. We use all the common list separators.
32599 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32600 for pkg in $enableval; do
32602 if test "X$pkg" = "X$p"; then
32622 # Check whether --with-pic was given.
32623 if test "${with_pic+set}" = set; then :
32624 withval=$with_pic; pic_mode="$withval"
32630 test -z "$pic_mode" && pic_mode=default
32638 # Check whether --enable-fast-install was given.
32639 if test "${enable_fast_install+set}" = set; then :
32640 enableval=$enable_fast_install; p=${PACKAGE-default}
32642 yes) enable_fast_install=yes ;;
32643 no) enable_fast_install=no ;;
32645 enable_fast_install=no
32646 # Look at the argument we got. We use all the common list separators.
32647 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32648 for pkg in $enableval; do
32650 if test "X$pkg" = "X$p"; then
32651 enable_fast_install=yes
32658 enable_fast_install=yes
32671 # This can be used to rebuild libtool when needed
32672 LIBTOOL_DEPS="$ltmain"
32674 # Always use our own libtool.
32675 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
32702 test -z "$LN_S" && LN_S="ln -s"
32717 if test -n "${ZSH_VERSION+set}" ; then
32718 setopt NO_GLOB_SUBST
32721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
32722 $as_echo_n "checking for objdir... " >&6; }
32723 if ${lt_cv_objdir+:} false; then :
32724 $as_echo_n "(cached) " >&6
32726 rm -f .libs 2>/dev/null
32727 mkdir .libs 2>/dev/null
32728 if test -d .libs; then
32731 # MS-DOS does not allow filenames that begin with a dot.
32734 rmdir .libs 2>/dev/null
32736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
32737 $as_echo "$lt_cv_objdir" >&6; }
32738 objdir=$lt_cv_objdir
32744 cat >>confdefs.h <<_ACEOF
32745 #define LT_OBJDIR "$lt_cv_objdir/"
32753 # AIX sometimes has problems with the GCC collect2 program. For some
32754 # reason, if we set the COLLECT_NAMES environment variable, the problems
32755 # vanish in a puff of smoke.
32756 if test "X${COLLECT_NAMES+set}" != Xset; then
32758 export COLLECT_NAMES
32763 # Global variables:
32765 can_build_shared=yes
32767 # All known linkers require a `.a' archive for static linking (except MSVC,
32768 # which needs '.lib').
32771 with_gnu_ld="$lt_cv_prog_gnu_ld"
32774 old_CFLAGS="$CFLAGS"
32776 # Set sane defaults for various variables
32777 test -z "$CC" && CC=cc
32778 test -z "$LTCC" && LTCC=$CC
32779 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
32780 test -z "$LD" && LD=ld
32781 test -z "$ac_objext" && ac_objext=o
32783 for cc_temp in $compiler""; do
32785 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
32786 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
32791 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
32794 # Only perform the check for file, if the check method requires it
32795 test -z "$MAGIC_CMD" && MAGIC_CMD=file
32796 case $deplibs_check_method in
32798 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
32799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
32800 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
32801 if ${lt_cv_path_MAGIC_CMD+:} false; then :
32802 $as_echo_n "(cached) " >&6
32806 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
32809 lt_save_MAGIC_CMD="$MAGIC_CMD"
32810 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
32811 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
32812 for ac_dir in $ac_dummy; do
32814 test -z "$ac_dir" && ac_dir=.
32815 if test -f $ac_dir/${ac_tool_prefix}file; then
32816 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
32817 if test -n "$file_magic_test_file"; then
32818 case $deplibs_check_method in
32820 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
32821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
32822 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
32823 $EGREP "$file_magic_regex" > /dev/null; then
32828 *** Warning: the command libtool uses to detect shared libraries,
32829 *** $file_magic_cmd, produces output that libtool cannot recognize.
32830 *** The result is that libtool may fail to recognize shared libraries
32831 *** as such. This will affect the creation of libtool libraries that
32832 *** depend on shared libraries, but programs linked with such libtool
32833 *** libraries will work regardless of this problem. Nevertheless, you
32834 *** may want to report the problem to your system manager and/or to
32835 *** bug-libtool@gnu.org
32845 MAGIC_CMD="$lt_save_MAGIC_CMD"
32850 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
32851 if test -n "$MAGIC_CMD"; then
32852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
32853 $as_echo "$MAGIC_CMD" >&6; }
32855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32856 $as_echo "no" >&6; }
32863 if test -z "$lt_cv_path_MAGIC_CMD"; then
32864 if test -n "$ac_tool_prefix"; then
32865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
32866 $as_echo_n "checking for file... " >&6; }
32867 if ${lt_cv_path_MAGIC_CMD+:} false; then :
32868 $as_echo_n "(cached) " >&6
32872 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
32875 lt_save_MAGIC_CMD="$MAGIC_CMD"
32876 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
32877 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
32878 for ac_dir in $ac_dummy; do
32880 test -z "$ac_dir" && ac_dir=.
32881 if test -f $ac_dir/file; then
32882 lt_cv_path_MAGIC_CMD="$ac_dir/file"
32883 if test -n "$file_magic_test_file"; then
32884 case $deplibs_check_method in
32886 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
32887 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
32888 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
32889 $EGREP "$file_magic_regex" > /dev/null; then
32894 *** Warning: the command libtool uses to detect shared libraries,
32895 *** $file_magic_cmd, produces output that libtool cannot recognize.
32896 *** The result is that libtool may fail to recognize shared libraries
32897 *** as such. This will affect the creation of libtool libraries that
32898 *** depend on shared libraries, but programs linked with such libtool
32899 *** libraries will work regardless of this problem. Nevertheless, you
32900 *** may want to report the problem to your system manager and/or to
32901 *** bug-libtool@gnu.org
32911 MAGIC_CMD="$lt_save_MAGIC_CMD"
32916 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
32917 if test -n "$MAGIC_CMD"; then
32918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
32919 $as_echo "$MAGIC_CMD" >&6; }
32921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32922 $as_echo "no" >&6; }
32935 # Use C for the default configuration in the libtool script
32939 ac_cpp='$CPP $CPPFLAGS'
32940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32945 # Source file extension for C test sources.
32948 # Object file extension for compiled C test sources.
32952 # Code to be used in simple compile tests
32953 lt_simple_compile_test_code="int some_variable = 0;"
32955 # Code to be used in simple link tests
32956 lt_simple_link_test_code='int main(){return(0);}'
32964 # If no C compiler was specified, use CC.
32967 # If no C compiler flags were specified, use CFLAGS.
32968 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
32970 # Allow CC to be a program name with arguments.
32973 # Save the default compiler, since it gets overwritten when the other
32974 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
32975 compiler_DEFAULT=$CC
32977 # save warnings/boilerplate of simple test code
32978 ac_outfile=conftest.$ac_objext
32979 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
32980 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
32981 _lt_compiler_boilerplate=`cat conftest.err`
32984 ac_outfile=conftest.$ac_objext
32985 echo "$lt_simple_link_test_code" >conftest.$ac_ext
32986 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
32987 _lt_linker_boilerplate=`cat conftest.err`
32992 ## There is no encapsulation within the following macros, do not change
32993 ## the running order or otherwise move them around unless you know exactly
32994 ## what you are doing...
32995 if test -n "$compiler"; then
32997 lt_prog_compiler_no_builtin_flag=
32999 if test "$GCC" = yes; then
33000 case $cc_basename in
33002 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
33004 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
33007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
33008 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
33009 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
33010 $as_echo_n "(cached) " >&6
33012 lt_cv_prog_compiler_rtti_exceptions=no
33013 ac_outfile=conftest.$ac_objext
33014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33015 lt_compiler_flag="-fno-rtti -fno-exceptions"
33016 # Insert the option either (1) after the last *FLAGS variable, or
33017 # (2) before a word containing "conftest.", or (3) at the end.
33018 # Note that $ac_compile itself does not contain backslashes and begins
33019 # with a dollar sign (not a hyphen), so the echo should work correctly.
33020 # The option is referenced via a variable to avoid confusing sed.
33021 lt_compile=`echo "$ac_compile" | $SED \
33022 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33024 -e 's:$: $lt_compiler_flag:'`
33025 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33026 (eval "$lt_compile" 2>conftest.err)
33028 cat conftest.err >&5
33029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33030 if (exit $ac_status) && test -s "$ac_outfile"; then
33031 # The compiler can only warn and ignore the option if not recognized
33032 # So say no if there are warnings other than the usual output.
33033 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
33034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
33035 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
33036 lt_cv_prog_compiler_rtti_exceptions=yes
33042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
33043 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
33045 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
33046 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
33058 lt_prog_compiler_wl=
33059 lt_prog_compiler_pic=
33060 lt_prog_compiler_static=
33063 if test "$GCC" = yes; then
33064 lt_prog_compiler_wl='-Wl,'
33065 lt_prog_compiler_static='-static'
33069 # All AIX code is PIC.
33070 if test "$host_cpu" = ia64; then
33071 # AIX 5 now supports IA64 processor
33072 lt_prog_compiler_static='-Bstatic'
33079 # see comment about AmigaOS4 .so support
33080 lt_prog_compiler_pic='-fPIC'
33083 # FIXME: we need at least 68020 code to build shared libraries, but
33084 # adding the `-m68020' flag to GCC prevents building anything better,
33086 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
33091 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
33092 # PIC is the default for these OSes.
33095 mingw* | cygwin* | pw32* | os2* | cegcc*)
33096 # This hack is so that the source file can tell whether it is being
33097 # built for inclusion in a dll (and should export symbols for example).
33098 # Although the cygwin gcc ignores -fPIC, still need this for old-style
33099 # (--disable-auto-import) libraries
33100 lt_prog_compiler_pic='-DDLL_EXPORT'
33103 darwin* | rhapsody*)
33104 # PIC is the default on this platform
33105 # Common symbols not allowed in MH_DYLIB files
33106 lt_prog_compiler_pic='-fno-common'
33110 # PIC is the default for Haiku.
33111 # The "-static" flag exists, but is broken.
33112 lt_prog_compiler_static=
33116 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
33117 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
33118 # sets the default TLS model and affects inlining.
33124 lt_prog_compiler_pic='-fPIC'
33130 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
33131 # Instead, we relocate shared libraries at runtime.
33135 # Just because we use GCC doesn't mean we suddenly get shared libraries
33136 # on systems that don't support them.
33137 lt_prog_compiler_can_build_shared=no
33142 # QNX uses GNU C++, but need to define -shared option too, otherwise
33143 # it will coredump.
33144 lt_prog_compiler_pic='-fPIC -shared'
33148 if test -d /usr/nec; then
33149 lt_prog_compiler_pic=-Kconform_pic
33154 lt_prog_compiler_pic='-fPIC'
33158 case $cc_basename in
33159 nvcc*) # Cuda Compiler Driver 2.2
33160 lt_prog_compiler_wl='-Xlinker '
33161 lt_prog_compiler_pic='-Xcompiler -fPIC'
33165 # PORTME Check for flag to pass linker flags through the system compiler.
33168 lt_prog_compiler_wl='-Wl,'
33169 if test "$host_cpu" = ia64; then
33170 # AIX 5 now supports IA64 processor
33171 lt_prog_compiler_static='-Bstatic'
33173 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
33177 mingw* | cygwin* | pw32* | os2* | cegcc*)
33178 # This hack is so that the source file can tell whether it is being
33179 # built for inclusion in a dll (and should export symbols for example).
33180 lt_prog_compiler_pic='-DDLL_EXPORT'
33183 hpux9* | hpux10* | hpux11*)
33184 lt_prog_compiler_wl='-Wl,'
33185 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
33186 # not for PA HP-UX.
33192 lt_prog_compiler_pic='+Z'
33195 # Is there a better lt_prog_compiler_static that works with the bundled CC?
33196 lt_prog_compiler_static='${wl}-a ${wl}archive'
33199 irix5* | irix6* | nonstopux*)
33200 lt_prog_compiler_wl='-Wl,'
33201 # PIC (with -KPIC) is the default.
33202 lt_prog_compiler_static='-non_shared'
33205 linux* | k*bsd*-gnu | kopensolaris*-gnu)
33206 case $cc_basename in
33207 # old Intel for x86_64 which still supported -KPIC.
33209 lt_prog_compiler_wl='-Wl,'
33210 lt_prog_compiler_pic='-KPIC'
33211 lt_prog_compiler_static='-static'
33213 # icc used to be incompatible with GCC.
33214 # ICC 10 doesn't accept -KPIC any more.
33216 lt_prog_compiler_wl='-Wl,'
33217 lt_prog_compiler_pic='-fPIC'
33218 lt_prog_compiler_static='-static'
33220 # Lahey Fortran 8.1.
33222 lt_prog_compiler_wl='-Wl,'
33223 lt_prog_compiler_pic='--shared'
33224 lt_prog_compiler_static='--static'
33227 # NAG Fortran compiler
33228 lt_prog_compiler_wl='-Wl,-Wl,,'
33229 lt_prog_compiler_pic='-PIC'
33230 lt_prog_compiler_static='-Bstatic'
33232 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
33233 # Portland Group compilers (*not* the Pentium gcc compiler,
33234 # which looks to be a dead project)
33235 lt_prog_compiler_wl='-Wl,'
33236 lt_prog_compiler_pic='-fpic'
33237 lt_prog_compiler_static='-Bstatic'
33240 lt_prog_compiler_wl='-Wl,'
33241 # All Alpha code is PIC.
33242 lt_prog_compiler_static='-non_shared'
33244 xl* | bgxl* | bgf* | mpixl*)
33245 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
33246 lt_prog_compiler_wl='-Wl,'
33247 lt_prog_compiler_pic='-qpic'
33248 lt_prog_compiler_static='-qstaticlink'
33251 case `$CC -V 2>&1 | sed 5q` in
33252 *Sun\ F* | *Sun*Fortran*)
33253 # Sun Fortran 8.3 passes all unrecognized flags to the linker
33254 lt_prog_compiler_pic='-KPIC'
33255 lt_prog_compiler_static='-Bstatic'
33256 lt_prog_compiler_wl=''
33260 lt_prog_compiler_pic='-KPIC'
33261 lt_prog_compiler_static='-Bstatic'
33262 lt_prog_compiler_wl='-Wl,'
33270 lt_prog_compiler_pic='-KPIC'
33271 lt_prog_compiler_static='-Bstatic'
33275 # QNX uses GNU C++, but need to define -shared option too, otherwise
33276 # it will coredump.
33277 lt_prog_compiler_pic='-fPIC -shared'
33280 osf3* | osf4* | osf5*)
33281 lt_prog_compiler_wl='-Wl,'
33282 # All OSF/1 code is PIC.
33283 lt_prog_compiler_static='-non_shared'
33287 lt_prog_compiler_static='-non_shared'
33291 lt_prog_compiler_pic='-KPIC'
33292 lt_prog_compiler_static='-Bstatic'
33293 case $cc_basename in
33294 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
33295 lt_prog_compiler_wl='-Qoption ld ';;
33297 lt_prog_compiler_wl='-Wl,';;
33302 lt_prog_compiler_wl='-Qoption ld '
33303 lt_prog_compiler_pic='-PIC'
33304 lt_prog_compiler_static='-Bstatic'
33307 sysv4 | sysv4.2uw2* | sysv4.3*)
33308 lt_prog_compiler_wl='-Wl,'
33309 lt_prog_compiler_pic='-KPIC'
33310 lt_prog_compiler_static='-Bstatic'
33314 if test -d /usr/nec ;then
33315 lt_prog_compiler_pic='-Kconform_pic'
33316 lt_prog_compiler_static='-Bstatic'
33320 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
33321 lt_prog_compiler_wl='-Wl,'
33322 lt_prog_compiler_pic='-KPIC'
33323 lt_prog_compiler_static='-Bstatic'
33327 lt_prog_compiler_wl='-Wl,'
33328 lt_prog_compiler_can_build_shared=no
33332 lt_prog_compiler_pic='-pic'
33333 lt_prog_compiler_static='-Bstatic'
33337 lt_prog_compiler_can_build_shared=no
33343 # For platforms which do not support PIC, -DPIC is meaningless:
33345 lt_prog_compiler_pic=
33348 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
33352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
33353 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
33354 if ${lt_cv_prog_compiler_pic+:} false; then :
33355 $as_echo_n "(cached) " >&6
33357 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
33359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
33360 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
33361 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
33364 # Check to make sure the PIC flag actually works.
33366 if test -n "$lt_prog_compiler_pic"; then
33367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
33368 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
33369 if ${lt_cv_prog_compiler_pic_works+:} false; then :
33370 $as_echo_n "(cached) " >&6
33372 lt_cv_prog_compiler_pic_works=no
33373 ac_outfile=conftest.$ac_objext
33374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33375 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
33376 # Insert the option either (1) after the last *FLAGS variable, or
33377 # (2) before a word containing "conftest.", or (3) at the end.
33378 # Note that $ac_compile itself does not contain backslashes and begins
33379 # with a dollar sign (not a hyphen), so the echo should work correctly.
33380 # The option is referenced via a variable to avoid confusing sed.
33381 lt_compile=`echo "$ac_compile" | $SED \
33382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33384 -e 's:$: $lt_compiler_flag:'`
33385 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33386 (eval "$lt_compile" 2>conftest.err)
33388 cat conftest.err >&5
33389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33390 if (exit $ac_status) && test -s "$ac_outfile"; then
33391 # The compiler can only warn and ignore the option if not recognized
33392 # So say no if there are warnings other than the usual output.
33393 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
33394 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
33395 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
33396 lt_cv_prog_compiler_pic_works=yes
33402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
33403 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
33405 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
33406 case $lt_prog_compiler_pic in
33408 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
33411 lt_prog_compiler_pic=
33412 lt_prog_compiler_can_build_shared=no
33428 # Check to make sure the static flag actually works.
33430 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
33431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
33432 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
33433 if ${lt_cv_prog_compiler_static_works+:} false; then :
33434 $as_echo_n "(cached) " >&6
33436 lt_cv_prog_compiler_static_works=no
33437 save_LDFLAGS="$LDFLAGS"
33438 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
33439 echo "$lt_simple_link_test_code" > conftest.$ac_ext
33440 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
33441 # The linker can only warn and ignore the option if not recognized
33442 # So say no if there are warnings
33443 if test -s conftest.err; then
33444 # Append any errors to the config.log.
33445 cat conftest.err 1>&5
33446 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
33447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
33448 if diff conftest.exp conftest.er2 >/dev/null; then
33449 lt_cv_prog_compiler_static_works=yes
33452 lt_cv_prog_compiler_static_works=yes
33456 LDFLAGS="$save_LDFLAGS"
33459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
33460 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
33462 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
33465 lt_prog_compiler_static=
33474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
33475 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
33476 if ${lt_cv_prog_compiler_c_o+:} false; then :
33477 $as_echo_n "(cached) " >&6
33479 lt_cv_prog_compiler_c_o=no
33480 $RM -r conftest 2>/dev/null
33484 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33486 lt_compiler_flag="-o out/conftest2.$ac_objext"
33487 # Insert the option either (1) after the last *FLAGS variable, or
33488 # (2) before a word containing "conftest.", or (3) at the end.
33489 # Note that $ac_compile itself does not contain backslashes and begins
33490 # with a dollar sign (not a hyphen), so the echo should work correctly.
33491 lt_compile=`echo "$ac_compile" | $SED \
33492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33494 -e 's:$: $lt_compiler_flag:'`
33495 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33496 (eval "$lt_compile" 2>out/conftest.err)
33498 cat out/conftest.err >&5
33499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33500 if (exit $ac_status) && test -s out/conftest2.$ac_objext
33502 # The compiler can only warn and ignore the option if not recognized
33503 # So say no if there are warnings
33504 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
33505 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
33506 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
33507 lt_cv_prog_compiler_c_o=yes
33512 # SGI C++ compiler will create directory out/ii_files/ for
33513 # template instantiation
33514 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
33515 $RM out/* && rmdir out
33521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
33522 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
33529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
33530 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
33531 if ${lt_cv_prog_compiler_c_o+:} false; then :
33532 $as_echo_n "(cached) " >&6
33534 lt_cv_prog_compiler_c_o=no
33535 $RM -r conftest 2>/dev/null
33539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33541 lt_compiler_flag="-o out/conftest2.$ac_objext"
33542 # Insert the option either (1) after the last *FLAGS variable, or
33543 # (2) before a word containing "conftest.", or (3) at the end.
33544 # Note that $ac_compile itself does not contain backslashes and begins
33545 # with a dollar sign (not a hyphen), so the echo should work correctly.
33546 lt_compile=`echo "$ac_compile" | $SED \
33547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33549 -e 's:$: $lt_compiler_flag:'`
33550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33551 (eval "$lt_compile" 2>out/conftest.err)
33553 cat out/conftest.err >&5
33554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555 if (exit $ac_status) && test -s out/conftest2.$ac_objext
33557 # The compiler can only warn and ignore the option if not recognized
33558 # So say no if there are warnings
33559 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
33560 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
33561 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
33562 lt_cv_prog_compiler_c_o=yes
33567 # SGI C++ compiler will create directory out/ii_files/ for
33568 # template instantiation
33569 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
33570 $RM out/* && rmdir out
33576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
33577 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
33582 hard_links="nottested"
33583 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
33584 # do not overwrite the value of need_locks provided by the user
33585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
33586 $as_echo_n "checking if we can lock with hard links... " >&6; }
33589 ln conftest.a conftest.b 2>/dev/null && hard_links=no
33591 ln conftest.a conftest.b 2>&5 || hard_links=no
33592 ln conftest.a conftest.b 2>/dev/null && hard_links=no
33593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
33594 $as_echo "$hard_links" >&6; }
33595 if test "$hard_links" = no; then
33596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
33597 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
33609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
33610 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
33613 allow_undefined_flag=
33614 always_export_symbols=no
33616 archive_expsym_cmds=
33617 compiler_needs_object=no
33618 enable_shared_with_static_runtimes=no
33619 export_dynamic_flag_spec=
33620 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
33621 hardcode_automatic=no
33623 hardcode_direct_absolute=no
33624 hardcode_libdir_flag_spec=
33625 hardcode_libdir_flag_spec_ld=
33626 hardcode_libdir_separator=
33627 hardcode_minus_L=no
33628 hardcode_shlibpath_var=unsupported
33630 link_all_deplibs=unknown
33632 module_expsym_cmds=
33633 old_archive_from_new_cmds=
33634 old_archive_from_expsyms_cmds=
33635 thread_safe_flag_spec=
33636 whole_archive_flag_spec=
33637 # include_expsyms should be a list of space-separated symbols to be *always*
33638 # included in the symbol list
33640 # exclude_expsyms can be an extended regexp of symbols to exclude
33641 # it will be wrapped by ` (' and `)$', so one must not match beginning or
33642 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
33643 # as well as any symbol that contains `d'.
33644 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
33645 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
33646 # platforms (ab)use it in PIC code, but their linkers get confused if
33647 # the symbol is explicitly referenced. Since portable code cannot
33648 # rely on this symbol name, it's probably fine to never include it in
33649 # preloaded symbol tables.
33650 # Exclude shared library initialization/finalization symbols.
33651 extract_expsyms_cmds=
33654 cygwin* | mingw* | pw32* | cegcc*)
33655 # FIXME: the MSVC++ port hasn't been tested in a loooong time
33656 # When not using gcc, we currently assume that we are using
33657 # Microsoft Visual C++.
33658 if test "$GCC" != yes; then
33663 # we just hope/assume this is gcc and not c89 (= MSVC++)
33673 # On some targets, GNU ld is compatible enough with the native linker
33674 # that we're better off using the native interface for both.
33675 lt_use_gnu_ld_interface=no
33676 if test "$with_gnu_ld" = yes; then
33679 # The AIX port of GNU ld has always aspired to compatibility
33680 # with the native linker. However, as the warning in the GNU ld
33681 # block says, versions before 2.19.5* couldn't really create working
33682 # shared libraries, regardless of the interface used.
33683 case `$LD -v 2>&1` in
33684 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
33685 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
33686 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
33688 lt_use_gnu_ld_interface=yes
33693 lt_use_gnu_ld_interface=yes
33698 if test "$lt_use_gnu_ld_interface" = yes; then
33699 # If archive_cmds runs LD, not CC, wlarc should be empty
33702 # Set some defaults for GNU ld with shared library support. These
33703 # are reset later if shared libraries are not supported. Putting them
33704 # here allows them to be overridden if necessary.
33705 runpath_var=LD_RUN_PATH
33706 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
33707 export_dynamic_flag_spec='${wl}--export-dynamic'
33708 # ancient GNU ld didn't support --whole-archive et. al.
33709 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
33710 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
33712 whole_archive_flag_spec=
33714 supports_anon_versioning=no
33715 case `$LD -v 2>&1` in
33716 *GNU\ gold*) supports_anon_versioning=yes ;;
33717 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
33718 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
33719 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
33720 *\ 2.11.*) ;; # other 2.11 versions
33721 *) supports_anon_versioning=yes ;;
33724 # See if GNU ld supports shared libraries.
33727 # On AIX/PPC, the GNU linker is very broken
33728 if test "$host_cpu" != ia64; then
33732 *** Warning: the GNU linker, at least up to release 2.19, is reported
33733 *** to be unable to reliably create shared libraries on AIX.
33734 *** Therefore, libtool is disabling shared libraries support. If you
33735 *** really care for shared libraries, you may want to install binutils
33736 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
33737 *** You will then need to restart the configuration process.
33746 # see comment about AmigaOS4 .so support
33747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33748 archive_expsym_cmds=''
33751 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)'
33752 hardcode_libdir_flag_spec='-L$libdir'
33753 hardcode_minus_L=yes
33759 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33760 allow_undefined_flag=unsupported
33761 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
33762 # support --undefined. This deserves some investigation. FIXME
33763 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33769 cygwin* | mingw* | pw32* | cegcc*)
33770 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
33771 # as there is no search path for DLLs.
33772 hardcode_libdir_flag_spec='-L$libdir'
33773 export_dynamic_flag_spec='${wl}--export-all-symbols'
33774 allow_undefined_flag=unsupported
33775 always_export_symbols=no
33776 enable_shared_with_static_runtimes=yes
33777 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
33778 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
33780 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
33781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
33782 # If the export-symbols file already is a .def file (1st line
33783 # is EXPORTS), use it as is; otherwise, prepend...
33784 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
33785 cp $export_symbols $output_objdir/$soname.def;
33787 echo EXPORTS > $output_objdir/$soname.def;
33788 cat $export_symbols >> $output_objdir/$soname.def;
33790 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
33797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33798 link_all_deplibs=yes
33803 hardcode_shlibpath_var=no
33804 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
33805 export_dynamic_flag_spec='${wl}-E'
33806 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
33807 # Instead, shared libraries are loaded at an image base (0x10000000 by
33808 # default) and relocated if they conflict, which is a slow very memory
33809 # consuming and fragmenting process. To avoid this, we pick a random,
33810 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
33811 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
33812 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
33813 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'
33816 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
33818 if test "$host_os" = linux-dietlibc; then
33819 case $cc_basename in
33820 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
33823 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
33824 && test "$tmp_diet" = no
33826 tmp_addflag=' $pic_flag'
33827 tmp_sharedflag='-shared'
33828 case $cc_basename,$host_cpu in
33829 pgcc*) # Portland Group C compiler
33830 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
33831 tmp_addflag=' $pic_flag'
33833 pgf77* | pgf90* | pgf95* | pgfortran*)
33834 # Portland Group f77 and f90 compilers
33835 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
33836 tmp_addflag=' $pic_flag -Mnomain' ;;
33837 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
33838 tmp_addflag=' -i_dynamic' ;;
33839 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
33840 tmp_addflag=' -i_dynamic -nofor_main' ;;
33841 ifc* | ifort*) # Intel Fortran compiler
33842 tmp_addflag=' -nofor_main' ;;
33843 lf95*) # Lahey Fortran 8.1
33844 whole_archive_flag_spec=
33845 tmp_sharedflag='--shared' ;;
33846 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
33847 tmp_sharedflag='-qmkshrobj'
33849 nvcc*) # Cuda Compiler Driver 2.2
33850 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
33851 compiler_needs_object=yes
33854 case `$CC -V 2>&1 | sed 5q` in
33855 *Sun\ C*) # Sun C 5.9
33856 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
33857 compiler_needs_object=yes
33858 tmp_sharedflag='-G' ;;
33859 *Sun\ F*) # Sun Fortran 8.3
33860 tmp_sharedflag='-G' ;;
33862 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33864 if test "x$supports_anon_versioning" = xyes; then
33865 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
33866 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
33867 echo "local: *; };" >> $output_objdir/$libname.ver~
33868 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
33871 case $cc_basename in
33872 xlf* | bgf* | bgxlf* | mpixlf*)
33873 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
33874 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
33875 hardcode_libdir_flag_spec=
33876 hardcode_libdir_flag_spec_ld='-rpath $libdir'
33877 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
33878 if test "x$supports_anon_versioning" = xyes; then
33879 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
33880 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
33881 echo "local: *; };" >> $output_objdir/$libname.ver~
33882 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
33892 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
33893 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
33896 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33897 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33902 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
33906 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
33907 *** create shared libraries on Solaris systems. Therefore, libtool
33908 *** is disabling shared libraries support. We urge you to upgrade GNU
33909 *** binutils to release 2.9.1 or newer. Another option is to modify
33910 *** your PATH or compiler configuration so that the native linker is
33911 *** used, and then restart.
33914 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33915 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33916 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33922 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
33923 case `$LD -v 2>&1` in
33924 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
33928 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
33929 *** reliably create shared libraries on SCO systems. Therefore, libtool
33930 *** is disabling shared libraries support. We urge you to upgrade GNU
33931 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
33932 *** your PATH or compiler configuration so that the native linker is
33933 *** used, and then restart.
33938 # For security reasons, it is highly recommended that you always
33939 # use absolute paths for naming shared libraries, and exclude the
33940 # DT_RUNPATH tag from executables and libraries. But doing so
33941 # requires that you compile everything twice, which is a pain.
33942 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33943 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
33944 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33945 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33954 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
33956 hardcode_direct=yes
33957 hardcode_shlibpath_var=no
33961 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33962 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33963 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33970 if test "$ld_shlibs" = no; then
33972 hardcode_libdir_flag_spec=
33973 export_dynamic_flag_spec=
33974 whole_archive_flag_spec=
33977 # PORTME fill in a description of your system's linker (not GNU ld)
33980 allow_undefined_flag=unsupported
33981 always_export_symbols=yes
33982 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'
33983 # Note: this linker hardcodes the directories in LIBPATH if there
33984 # are no directories specified by -L.
33985 hardcode_minus_L=yes
33986 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
33987 # Neither direct hardcoding nor static linking is supported with a
33989 hardcode_direct=unsupported
33994 if test "$host_cpu" = ia64; then
33995 # On IA64, the linker does run time linking by default, so we don't
33996 # have to do anything special.
33997 aix_use_runtimelinking=no
33998 exp_sym_flag='-Bexport'
34001 # If we're using GNU nm, then we don't want the "-C" option.
34002 # -C means demangle to AIX nm, but means don't demangle with GNU nm
34003 # Also, AIX nm treats weak defined symbols like other global
34004 # defined symbols, whereas GNU nm marks them as "W".
34005 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
34006 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
34008 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'
34010 aix_use_runtimelinking=no
34012 # Test if we are trying to use run time linking or normal
34013 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
34014 # need to do runtime linking.
34015 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
34016 for ld_flag in $LDFLAGS; do
34017 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
34018 aix_use_runtimelinking=yes
34025 exp_sym_flag='-bexport'
34026 no_entry_flag='-bnoentry'
34029 # When large executables or shared objects are built, AIX ld can
34030 # have problems creating the table of contents. If linking a library
34031 # or program results in "error TOC overflow" add -mminimal-toc to
34032 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
34033 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
34036 hardcode_direct=yes
34037 hardcode_direct_absolute=yes
34038 hardcode_libdir_separator=':'
34039 link_all_deplibs=yes
34040 file_list_spec='${wl}-f,'
34042 if test "$GCC" = yes; then
34043 case $host_os in aix4.[012]|aix4.[012].*)
34044 # We only want to do this on AIX 4.2 and lower, the check
34045 # below for broken collect2 doesn't work under 4.3+
34046 collect2name=`${CC} -print-prog-name=collect2`
34047 if test -f "$collect2name" &&
34048 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
34050 # We have reworked collect2
34053 # We have old collect2
34054 hardcode_direct=unsupported
34055 # It fails to find uninstalled libraries when the uninstalled
34056 # path is not listed in the libpath. Setting hardcode_minus_L
34057 # to unsupported forces relinking
34058 hardcode_minus_L=yes
34059 hardcode_libdir_flag_spec='-L$libdir'
34060 hardcode_libdir_separator=
34064 shared_flag='-shared'
34065 if test "$aix_use_runtimelinking" = yes; then
34066 shared_flag="$shared_flag "'${wl}-G'
34070 if test "$host_cpu" = ia64; then
34071 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
34072 # chokes on -Wl,-G. The following line is correct:
34075 if test "$aix_use_runtimelinking" = yes; then
34076 shared_flag='${wl}-G'
34078 shared_flag='${wl}-bM:SRE'
34083 export_dynamic_flag_spec='${wl}-bexpall'
34084 # It seems that -bexpall does not export symbols beginning with
34085 # underscore (_), so it is better to generate a list of symbols to export.
34086 always_export_symbols=yes
34087 if test "$aix_use_runtimelinking" = yes; then
34088 # Warning - without using the other runtime loading flags (-brtl),
34089 # -berok will link without error, but may produce a broken library.
34090 allow_undefined_flag='-berok'
34091 # Determine the default libpath from the value encoded in an
34092 # empty executable.
34093 if test "${lt_cv_aix_libpath+set}" = set; then
34094 aix_libpath=$lt_cv_aix_libpath
34096 if ${lt_cv_aix_libpath_+:} false; then :
34097 $as_echo_n "(cached) " >&6
34099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34100 /* end confdefs.h. */
34110 if ac_fn_c_try_link "$LINENO"; then :
34112 lt_aix_libpath_sed='
34113 /Import File Strings/,/^$/ {
34115 s/^0 *\([^ ]*\) *$/\1/
34119 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
34120 # Check for a 64-bit object if we didn't find anything.
34121 if test -z "$lt_cv_aix_libpath_"; then
34122 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
34125 rm -f core conftest.err conftest.$ac_objext \
34126 conftest$ac_exeext conftest.$ac_ext
34127 if test -z "$lt_cv_aix_libpath_"; then
34128 lt_cv_aix_libpath_="/usr/lib:/lib"
34133 aix_libpath=$lt_cv_aix_libpath_
34136 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
34137 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
34139 if test "$host_cpu" = ia64; then
34140 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
34141 allow_undefined_flag="-z nodefs"
34142 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"
34144 # Determine the default libpath from the value encoded in an
34145 # empty executable.
34146 if test "${lt_cv_aix_libpath+set}" = set; then
34147 aix_libpath=$lt_cv_aix_libpath
34149 if ${lt_cv_aix_libpath_+:} false; then :
34150 $as_echo_n "(cached) " >&6
34152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34153 /* end confdefs.h. */
34163 if ac_fn_c_try_link "$LINENO"; then :
34165 lt_aix_libpath_sed='
34166 /Import File Strings/,/^$/ {
34168 s/^0 *\([^ ]*\) *$/\1/
34172 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
34173 # Check for a 64-bit object if we didn't find anything.
34174 if test -z "$lt_cv_aix_libpath_"; then
34175 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
34178 rm -f core conftest.err conftest.$ac_objext \
34179 conftest$ac_exeext conftest.$ac_ext
34180 if test -z "$lt_cv_aix_libpath_"; then
34181 lt_cv_aix_libpath_="/usr/lib:/lib"
34186 aix_libpath=$lt_cv_aix_libpath_
34189 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
34190 # Warning - without using the other run time loading flags,
34191 # -berok will link without error, but may produce a broken library.
34192 no_undefined_flag=' ${wl}-bernotok'
34193 allow_undefined_flag=' ${wl}-berok'
34194 if test "$with_gnu_ld" = yes; then
34195 # We only use this code for GNU lds that support --whole-archive.
34196 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
34198 # Exported symbols can be pulled into shared objects from archives
34199 whole_archive_flag_spec='$convenience'
34201 archive_cmds_need_lc=yes
34202 # This is similar to how AIX traditionally builds its shared libraries.
34203 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'
34211 # see comment about AmigaOS4 .so support
34212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
34213 archive_expsym_cmds=''
34216 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)'
34217 hardcode_libdir_flag_spec='-L$libdir'
34218 hardcode_minus_L=yes
34224 export_dynamic_flag_spec=-rdynamic
34227 cygwin* | mingw* | pw32* | cegcc*)
34228 # When not using gcc, we currently assume that we are using
34229 # Microsoft Visual C++.
34230 # hardcode_libdir_flag_spec is actually meaningless, as there is
34231 # no search path for DLLs.
34232 case $cc_basename in
34235 hardcode_libdir_flag_spec=' '
34236 allow_undefined_flag=unsupported
34237 always_export_symbols=yes
34239 # Tell ltmain to make .lib files, not .a files.
34241 # Tell ltmain to make .dll files, not .so files.
34243 # FIXME: Setting linknames here is a bad hack.
34244 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
34245 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
34246 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
34248 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
34250 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
34252 # The linker will not automatically build a static lib if we build a DLL.
34253 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
34254 enable_shared_with_static_runtimes=yes
34255 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
34257 old_postinstall_cmds='chmod 644 $oldlib'
34258 postlink_cmds='lt_outputfile="@OUTPUT@"~
34259 lt_tool_outputfile="@TOOL_OUTPUT@"~
34260 case $lt_outputfile in
34263 lt_outputfile="$lt_outputfile.exe"
34264 lt_tool_outputfile="$lt_tool_outputfile.exe"
34267 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
34268 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
34269 $RM "$lt_outputfile.manifest";
34273 # Assume MSVC wrapper
34274 hardcode_libdir_flag_spec=' '
34275 allow_undefined_flag=unsupported
34276 # Tell ltmain to make .lib files, not .a files.
34278 # Tell ltmain to make .dll files, not .so files.
34280 # FIXME: Setting linknames here is a bad hack.
34281 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
34282 # The linker will automatically build a .lib file if we build a DLL.
34283 old_archive_from_new_cmds='true'
34284 # FIXME: Should let the user specify the lib program.
34285 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
34286 enable_shared_with_static_runtimes=yes
34291 darwin* | rhapsody*)
34294 archive_cmds_need_lc=no
34296 hardcode_automatic=yes
34297 hardcode_shlibpath_var=unsupported
34298 if test "$lt_cv_ld_force_load" = "yes"; then
34299 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
34301 whole_archive_flag_spec=''
34303 link_all_deplibs=yes
34304 allow_undefined_flag="$_lt_dar_allow_undefined"
34305 case $cc_basename in
34306 ifort*) _lt_dar_can_shared=yes ;;
34307 *) _lt_dar_can_shared=$GCC ;;
34309 if test "$_lt_dar_can_shared" = "yes"; then
34310 output_verbose_link_cmd=func_echo_all
34311 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
34312 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
34313 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}"
34314 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}"
34323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34324 hardcode_libdir_flag_spec='-L$libdir'
34325 hardcode_shlibpath_var=no
34332 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
34333 # support. Future versions do this automatically, but an explicit c++rt0.o
34334 # does not break anything, and helps significantly (at the cost of a little
34337 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
34338 hardcode_libdir_flag_spec='-R$libdir'
34339 hardcode_direct=yes
34340 hardcode_shlibpath_var=no
34343 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
34345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
34346 hardcode_direct=yes
34347 hardcode_minus_L=yes
34348 hardcode_shlibpath_var=no
34351 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
34352 freebsd* | dragonfly*)
34353 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
34354 hardcode_libdir_flag_spec='-R$libdir'
34355 hardcode_direct=yes
34356 hardcode_shlibpath_var=no
34360 if test "$GCC" = yes; then
34361 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
34363 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'
34365 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
34366 hardcode_libdir_separator=:
34367 hardcode_direct=yes
34369 # hardcode_minus_L: Not really in the search PATH,
34370 # but as the default location of the library.
34371 hardcode_minus_L=yes
34372 export_dynamic_flag_spec='${wl}-E'
34376 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
34377 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
34379 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
34381 if test "$with_gnu_ld" = no; then
34382 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
34383 hardcode_libdir_flag_spec_ld='+b $libdir'
34384 hardcode_libdir_separator=:
34385 hardcode_direct=yes
34386 hardcode_direct_absolute=yes
34387 export_dynamic_flag_spec='${wl}-E'
34388 # hardcode_minus_L: Not really in the search PATH,
34389 # but as the default location of the library.
34390 hardcode_minus_L=yes
34395 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
34398 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
34401 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
34404 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
34410 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
34413 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
34417 # Older versions of the 11.00 compiler do not understand -b yet
34418 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
34419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
34420 $as_echo_n "checking if $CC understands -b... " >&6; }
34421 if ${lt_cv_prog_compiler__b+:} false; then :
34422 $as_echo_n "(cached) " >&6
34424 lt_cv_prog_compiler__b=no
34425 save_LDFLAGS="$LDFLAGS"
34426 LDFLAGS="$LDFLAGS -b"
34427 echo "$lt_simple_link_test_code" > conftest.$ac_ext
34428 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
34429 # The linker can only warn and ignore the option if not recognized
34430 # So say no if there are warnings
34431 if test -s conftest.err; then
34432 # Append any errors to the config.log.
34433 cat conftest.err 1>&5
34434 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
34435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
34436 if diff conftest.exp conftest.er2 >/dev/null; then
34437 lt_cv_prog_compiler__b=yes
34440 lt_cv_prog_compiler__b=yes
34444 LDFLAGS="$save_LDFLAGS"
34447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
34448 $as_echo "$lt_cv_prog_compiler__b" >&6; }
34450 if test x"$lt_cv_prog_compiler__b" = xyes; then
34451 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
34453 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
34459 if test "$with_gnu_ld" = no; then
34460 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
34461 hardcode_libdir_separator=:
34466 hardcode_shlibpath_var=no
34469 hardcode_direct=yes
34470 hardcode_direct_absolute=yes
34471 export_dynamic_flag_spec='${wl}-E'
34473 # hardcode_minus_L: Not really in the search PATH,
34474 # but as the default location of the library.
34475 hardcode_minus_L=yes
34481 irix5* | irix6* | nonstopux*)
34482 if test "$GCC" = yes; then
34483 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
34484 # Try to use the -exported_symbol ld option, if it does not
34485 # work, assume that -exports_file does not work either and
34486 # implicitly export all symbols.
34487 # This should be the same for all languages, so no per-tag cache variable.
34488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
34489 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
34490 if ${lt_cv_irix_exported_symbol+:} false; then :
34491 $as_echo_n "(cached) " >&6
34493 save_LDFLAGS="$LDFLAGS"
34494 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
34495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34496 /* end confdefs.h. */
34497 int foo (void) { return 0; }
34499 if ac_fn_c_try_link "$LINENO"; then :
34500 lt_cv_irix_exported_symbol=yes
34502 lt_cv_irix_exported_symbol=no
34504 rm -f core conftest.err conftest.$ac_objext \
34505 conftest$ac_exeext conftest.$ac_ext
34506 LDFLAGS="$save_LDFLAGS"
34508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
34509 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
34510 if test "$lt_cv_irix_exported_symbol" = yes; then
34511 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
34514 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
34515 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
34517 archive_cmds_need_lc='no'
34518 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
34519 hardcode_libdir_separator=:
34521 link_all_deplibs=yes
34525 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
34526 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
34528 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
34530 hardcode_libdir_flag_spec='-R$libdir'
34531 hardcode_direct=yes
34532 hardcode_shlibpath_var=no
34536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34537 hardcode_direct=yes
34538 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
34539 hardcode_libdir_separator=:
34540 hardcode_shlibpath_var=no
34547 if test -f /usr/libexec/ld.so; then
34548 hardcode_direct=yes
34549 hardcode_shlibpath_var=no
34550 hardcode_direct_absolute=yes
34551 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
34552 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
34553 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
34554 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
34555 export_dynamic_flag_spec='${wl}-E'
34558 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
34559 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
34560 hardcode_libdir_flag_spec='-R$libdir'
34563 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
34564 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
34574 hardcode_libdir_flag_spec='-L$libdir'
34575 hardcode_minus_L=yes
34576 allow_undefined_flag=unsupported
34577 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'
34578 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
34582 if test "$GCC" = yes; then
34583 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
34584 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
34586 allow_undefined_flag=' -expect_unresolved \*'
34587 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
34589 archive_cmds_need_lc='no'
34590 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
34591 hardcode_libdir_separator=:
34594 osf4* | osf5*) # as osf3* with the addition of -msym flag
34595 if test "$GCC" = yes; then
34596 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
34597 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
34598 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
34600 allow_undefined_flag=' -expect_unresolved \*'
34601 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
34602 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~
34603 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
34605 # Both c and cxx compiler support -rpath directly
34606 hardcode_libdir_flag_spec='-rpath $libdir'
34608 archive_cmds_need_lc='no'
34609 hardcode_libdir_separator=:
34613 no_undefined_flag=' -z defs'
34614 if test "$GCC" = yes; then
34616 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
34617 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
34618 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
34620 case `$CC -V 2>&1` in
34623 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
34624 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
34625 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
34629 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
34630 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
34631 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
34635 hardcode_libdir_flag_spec='-R$libdir'
34636 hardcode_shlibpath_var=no
34638 solaris2.[0-5] | solaris2.[0-5].*) ;;
34640 # The compiler driver will combine and reorder linker options,
34641 # but understands `-z linker_flag'. GCC discards it without `$wl',
34642 # but is careful enough not to reorder.
34643 # Supported since Solaris 2.6 (maybe 2.5.1?)
34644 if test "$GCC" = yes; then
34645 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
34647 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
34651 link_all_deplibs=yes
34655 if test "x$host_vendor" = xsequent; then
34656 # Use $CC to link under sequent, because it throws in some extra .o
34657 # files that make .init and .fini sections work.
34658 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
34660 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
34662 hardcode_libdir_flag_spec='-L$libdir'
34663 hardcode_direct=yes
34664 hardcode_minus_L=yes
34665 hardcode_shlibpath_var=no
34669 case $host_vendor in
34671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34672 hardcode_direct=yes # is this really true???
34675 ## LD is ld it makes a PLAMLIB
34676 ## CC just makes a GrossModule.
34677 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
34678 reload_cmds='$CC -r -o $output$reload_objs'
34682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34683 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
34686 runpath_var='LD_RUN_PATH'
34687 hardcode_shlibpath_var=no
34691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34692 hardcode_shlibpath_var=no
34693 export_dynamic_flag_spec='-Bexport'
34697 if test -d /usr/nec; then
34698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34699 hardcode_shlibpath_var=no
34700 runpath_var=LD_RUN_PATH
34701 hardcode_runpath_var=yes
34706 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
34707 no_undefined_flag='${wl}-z,text'
34708 archive_cmds_need_lc=no
34709 hardcode_shlibpath_var=no
34710 runpath_var='LD_RUN_PATH'
34712 if test "$GCC" = yes; then
34713 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34714 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34716 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34717 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34721 sysv5* | sco3.2v5* | sco5v6*)
34722 # Note: We can NOT use -z defs as we might desire, because we do not
34723 # link with -lc, and that would cause any symbols used from libc to
34724 # always be unresolved, which means just about no library would
34725 # ever link correctly. If we're not using GNU ld we use -z text
34726 # though, which does catch some bad symbols but isn't as heavy-handed
34728 no_undefined_flag='${wl}-z,text'
34729 allow_undefined_flag='${wl}-z,nodefs'
34730 archive_cmds_need_lc=no
34731 hardcode_shlibpath_var=no
34732 hardcode_libdir_flag_spec='${wl}-R,$libdir'
34733 hardcode_libdir_separator=':'
34734 link_all_deplibs=yes
34735 export_dynamic_flag_spec='${wl}-Bexport'
34736 runpath_var='LD_RUN_PATH'
34738 if test "$GCC" = yes; then
34739 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34740 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34742 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34743 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34749 hardcode_libdir_flag_spec='-L$libdir'
34750 hardcode_shlibpath_var=no
34758 if test x$host_vendor = xsni; then
34760 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
34761 export_dynamic_flag_spec='${wl}-Blargedynsym'
34767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
34768 $as_echo "$ld_shlibs" >&6; }
34769 test "$ld_shlibs" = no && can_build_shared=no
34771 with_gnu_ld=$with_gnu_ld
34788 # Do we need to explicitly link libc?
34790 case "x$archive_cmds_need_lc" in
34792 # Assume -lc should be added
34793 archive_cmds_need_lc=yes
34795 if test "$enable_shared" = yes && test "$GCC" = yes; then
34796 case $archive_cmds in
34798 # FIXME: we may have to deal with multi-command sequences.
34801 # Test whether the compiler implicitly links with -lc since on some
34802 # systems, -lgcc has to come before -lc. If gcc already passes -lc
34803 # to ld, don't add -lc before -lgcc.
34804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
34805 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
34806 if ${lt_cv_archive_cmds_need_lc+:} false; then :
34807 $as_echo_n "(cached) " >&6
34810 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
34812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
34813 (eval $ac_compile) 2>&5
34815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34816 test $ac_status = 0; } 2>conftest.err; then
34819 libobjs=conftest.$ac_objext
34821 wl=$lt_prog_compiler_wl
34822 pic_flag=$lt_prog_compiler_pic
34828 lt_save_allow_undefined_flag=$allow_undefined_flag
34829 allow_undefined_flag=
34830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
34831 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
34833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34834 test $ac_status = 0; }
34836 lt_cv_archive_cmds_need_lc=no
34838 lt_cv_archive_cmds_need_lc=yes
34840 allow_undefined_flag=$lt_save_allow_undefined_flag
34842 cat conftest.err 1>&5
34847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
34848 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
34849 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
35012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
35013 $as_echo_n "checking dynamic linker characteristics... " >&6; }
35015 if test "$GCC" = yes; then
35017 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
35018 *) lt_awk_arg="/^libraries:/" ;;
35021 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
35022 *) lt_sed_strip_eq="s,=/,/,g" ;;
35024 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
35025 case $lt_search_path_spec in
35027 # if the path contains ";" then we assume it to be the separator
35028 # otherwise default to the standard path separator (i.e. ":") - it is
35029 # assumed that no part of a normal pathname contains ";" but that should
35030 # okay in the real world where ";" in dirpaths is itself problematic.
35031 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
35034 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
35037 # Ok, now we have the path, separated by spaces, we can step through it
35038 # and add multilib dir if necessary.
35039 lt_tmp_lt_search_path_spec=
35040 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
35041 for lt_sys_path in $lt_search_path_spec; do
35042 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
35043 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
35045 test -d "$lt_sys_path" && \
35046 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
35049 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
35050 BEGIN {RS=" "; FS="/|\n";} {
35053 for (lt_i = NF; lt_i > 0; lt_i--) {
35054 if ($lt_i != "" && $lt_i != ".") {
35055 if ($lt_i == "..") {
35058 if (lt_count == 0) {
35059 lt_foo="/" $lt_i lt_foo;
35066 if (lt_foo != "") { lt_freq[lt_foo]++; }
35067 if (lt_freq[lt_foo] == 1) { print lt_foo; }
35069 # AWK program above erroneously prepends '/' to C:/dos/paths
35072 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
35073 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
35075 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
35077 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
35079 library_names_spec=
35080 libname_spec='lib$name'
35084 postuninstall_cmds=
35088 shlibpath_overrides_runpath=unknown
35090 dynamic_linker="$host_os ld.so"
35091 sys_lib_dlsearch_path_spec="/lib /usr/lib"
35092 need_lib_prefix=unknown
35093 hardcode_into_libs=no
35095 # when you set need_version to no, make sure it does not cause -set_version
35096 # flags to be left without arguments
35097 need_version=unknown
35102 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
35103 shlibpath_var=LIBPATH
35105 # AIX 3 has no versioning support, so we append a major version to the name.
35106 soname_spec='${libname}${release}${shared_ext}$major'
35113 hardcode_into_libs=yes
35114 if test "$host_cpu" = ia64; then
35115 # AIX 5 supports IA64
35116 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
35117 shlibpath_var=LD_LIBRARY_PATH
35119 # With GCC up to 2.95.x, collect2 would create an import file
35120 # for dependence libraries. The import file would start with
35121 # the line `#! .'. This would cause the generated library to
35122 # depend on `.', always an invalid library. This was fixed in
35123 # development snapshots of GCC prior to 3.0.
35125 aix4 | aix4.[01] | aix4.[01].*)
35126 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
35128 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
35131 can_build_shared=no
35135 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
35136 # soname into executable. Probably we can add versioning support to
35137 # collect2, so additional links can be useful in future.
35138 if test "$aix_use_runtimelinking" = yes; then
35139 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
35140 # instead of lib<name>.a to let people know that these are not
35141 # typical AIX shared libraries.
35142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35144 # We preserve .a as extension for shared libraries through AIX4.2
35145 # and later when we are not doing run time linking.
35146 library_names_spec='${libname}${release}.a $libname.a'
35147 soname_spec='${libname}${release}${shared_ext}$major'
35149 shlibpath_var=LIBPATH
35156 # Since July 2007 AmigaOS4 officially supports .so libraries.
35157 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
35158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35161 library_names_spec='$libname.ixlibrary $libname.a'
35162 # Create ${libname}_ixlibrary.a entries in /sys/libs.
35163 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
35169 library_names_spec='${libname}${shared_ext}'
35170 dynamic_linker="$host_os ld.so"
35171 shlibpath_var=LIBRARY_PATH
35177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35178 soname_spec='${libname}${release}${shared_ext}$major'
35179 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
35180 shlibpath_var=LD_LIBRARY_PATH
35181 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
35182 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
35183 # the default ld.so.conf also contains /usr/contrib/lib and
35184 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
35185 # libtool to hard-code these into programs
35188 cygwin* | mingw* | pw32* | cegcc*)
35189 version_type=windows
35194 case $GCC,$cc_basename in
35197 library_names_spec='$libname.dll.a'
35198 # DLL is installed to $(libdir)/../bin by postinstall_cmds
35199 postinstall_cmds='base_file=`basename \${file}`~
35200 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
35201 dldir=$destdir/`dirname \$dlpath`~
35202 test -d \$dldir || mkdir -p \$dldir~
35203 $install_prog $dir/$dlname \$dldir/$dlname~
35204 chmod a+x \$dldir/$dlname~
35205 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
35206 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
35208 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
35209 dlpath=$dir/\$dldll~
35211 shlibpath_overrides_runpath=yes
35215 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
35216 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
35218 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
35221 # MinGW DLLs use traditional 'lib' prefix
35222 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
35225 # pw32 DLLs use 'pw' prefix rather than 'lib'
35226 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
35229 dynamic_linker='Win32 ld.exe'
35234 libname_spec='$name'
35235 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
35236 library_names_spec='${libname}.dll.lib'
35240 sys_lib_search_path_spec=
35243 for lt_path in $LIB
35246 # Let DOS variable expansion print the short 8.3 style file name.
35247 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
35248 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
35251 # Convert to MSYS style.
35252 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
35255 # Convert to unix form, then to dos form, then back to unix form
35256 # but this time dos style (no spaces!) so that the unix form looks
35257 # like /cygdrive/c/PROGRA~1:/cygdr...
35258 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
35259 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
35260 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
35263 sys_lib_search_path_spec="$LIB"
35264 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
35265 # It is most probably a Windows format PATH.
35266 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
35268 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
35270 # FIXME: find the short name or the path components, as spaces are
35271 # common. (e.g. "Program Files" -> "PROGRA~1")
35275 # DLL is installed to $(libdir)/../bin by postinstall_cmds
35276 postinstall_cmds='base_file=`basename \${file}`~
35277 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
35278 dldir=$destdir/`dirname \$dlpath`~
35279 test -d \$dldir || mkdir -p \$dldir~
35280 $install_prog $dir/$dlname \$dldir/$dlname'
35281 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
35282 dlpath=$dir/\$dldll~
35284 shlibpath_overrides_runpath=yes
35285 dynamic_linker='Win32 link.exe'
35289 # Assume MSVC wrapper
35290 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
35291 dynamic_linker='Win32 ld.exe'
35294 # FIXME: first we should search . and the directory the executable is in
35298 darwin* | rhapsody*)
35299 dynamic_linker="$host_os dyld"
35300 version_type=darwin
35303 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
35304 soname_spec='${libname}${release}${major}$shared_ext'
35305 shlibpath_overrides_runpath=yes
35306 shlibpath_var=DYLD_LIBRARY_PATH
35307 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
35309 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
35310 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
35317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
35318 soname_spec='${libname}${release}${shared_ext}$major'
35319 shlibpath_var=LD_LIBRARY_PATH
35326 freebsd* | dragonfly*)
35327 # DragonFly does not have aout. When/if they implement a new
35328 # versioning mechanism, adjust this.
35329 if test -x /usr/bin/objformat; then
35330 objformat=`/usr/bin/objformat`
35333 freebsd[123]*) objformat=aout ;;
35334 *) objformat=elf ;;
35337 version_type=freebsd-$objformat
35338 case $version_type in
35340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
35345 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
35349 shlibpath_var=LD_LIBRARY_PATH
35352 shlibpath_overrides_runpath=yes
35354 freebsd3.[01]* | freebsdelf3.[01]*)
35355 shlibpath_overrides_runpath=yes
35356 hardcode_into_libs=yes
35358 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
35359 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
35360 shlibpath_overrides_runpath=no
35361 hardcode_into_libs=yes
35363 *) # from 4.6 on, and DragonFly
35364 shlibpath_overrides_runpath=yes
35365 hardcode_into_libs=yes
35374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
35375 soname_spec='${libname}${release}${shared_ext}$major'
35376 shlibpath_var=LD_LIBRARY_PATH
35377 hardcode_into_libs=yes
35384 dynamic_linker="$host_os runtime_loader"
35385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
35386 soname_spec='${libname}${release}${shared_ext}$major'
35387 shlibpath_var=LIBRARY_PATH
35388 shlibpath_overrides_runpath=yes
35389 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
35390 hardcode_into_libs=yes
35393 hpux9* | hpux10* | hpux11*)
35394 # Give a soname corresponding to the major version so that dld.sl refuses to
35395 # link against other versions.
35402 hardcode_into_libs=yes
35403 dynamic_linker="$host_os dld.so"
35404 shlibpath_var=LD_LIBRARY_PATH
35405 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
35406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35407 soname_spec='${libname}${release}${shared_ext}$major'
35408 if test "X$HPUX_IA64_MODE" = X32; then
35409 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
35411 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
35413 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
35417 hardcode_into_libs=yes
35418 dynamic_linker="$host_os dld.sl"
35419 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
35420 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
35421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35422 soname_spec='${libname}${release}${shared_ext}$major'
35423 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
35424 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
35428 dynamic_linker="$host_os dld.sl"
35429 shlibpath_var=SHLIB_PATH
35430 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
35431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35432 soname_spec='${libname}${release}${shared_ext}$major'
35435 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
35436 postinstall_cmds='chmod 555 $lib'
35437 # or fails outright, so override atomically:
35438 install_override_mode=555
35445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
35446 soname_spec='${libname}${release}${shared_ext}$major'
35447 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
35448 shlibpath_var=LD_LIBRARY_PATH
35449 shlibpath_overrides_runpath=no
35450 hardcode_into_libs=yes
35453 irix5* | irix6* | nonstopux*)
35455 nonstopux*) version_type=nonstopux ;;
35457 if test "$lt_cv_prog_gnu_ld" = yes; then
35465 soname_spec='${libname}${release}${shared_ext}$major'
35466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
35468 irix5* | nonstopux*)
35469 libsuff= shlibsuff=
35472 case $LD in # libtool.m4 will add one of these switches to LD
35473 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
35474 libsuff= shlibsuff= libmagic=32-bit;;
35475 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
35476 libsuff=32 shlibsuff=N32 libmagic=N32;;
35477 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
35478 libsuff=64 shlibsuff=64 libmagic=64-bit;;
35479 *) libsuff= shlibsuff= libmagic=never-match;;
35483 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
35484 shlibpath_overrides_runpath=no
35485 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
35486 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
35487 hardcode_into_libs=yes
35490 # No shared lib support for Linux oldld, aout, or coff.
35491 linux*oldld* | linux*aout* | linux*coff*)
35495 # This must be Linux ELF.
35496 linux* | k*bsd*-gnu | kopensolaris*-gnu)
35500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35501 soname_spec='${libname}${release}${shared_ext}$major'
35502 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
35503 shlibpath_var=LD_LIBRARY_PATH
35504 shlibpath_overrides_runpath=no
35506 # Some binutils ld are patched to set DT_RUNPATH
35507 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
35508 $as_echo_n "(cached) " >&6
35510 lt_cv_shlibpath_overrides_runpath=no
35511 save_LDFLAGS=$LDFLAGS
35512 save_libdir=$libdir
35513 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
35514 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
35515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35516 /* end confdefs.h. */
35526 if ac_fn_c_try_link "$LINENO"; then :
35527 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
35528 lt_cv_shlibpath_overrides_runpath=yes
35531 rm -f core conftest.err conftest.$ac_objext \
35532 conftest$ac_exeext conftest.$ac_ext
35533 LDFLAGS=$save_LDFLAGS
35534 libdir=$save_libdir
35538 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
35540 # This implies no fast_install, which is unacceptable.
35541 # Some rework will be needed to allow for fast_install
35542 # before this can be enabled.
35543 hardcode_into_libs=yes
35545 # Add ABI-specific directories to the system library path.
35546 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
35548 # Append ld.so.conf contents to the search path
35549 if test -f /etc/ld.so.conf; then
35550 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;s/"//g;/^$/d' | tr '\n' ' '`
35551 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
35555 # We used to test for /lib/ld.so.1 and disable shared libraries on
35556 # powerpc, because MkLinux only supported shared libraries with the
35557 # GNU dynamic linker. Since this was broken with cross compilers,
35558 # most powerpc-linux boxes support dynamic linking these days and
35559 # people can always --disable-shared, the test was removed, and we
35560 # assume the GNU/Linux dynamic linker is in use.
35561 dynamic_linker='GNU/Linux ld.so'
35568 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
35569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
35570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
35571 dynamic_linker='NetBSD (a.out) ld.so'
35573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
35574 soname_spec='${libname}${release}${shared_ext}$major'
35575 dynamic_linker='NetBSD ld.elf_so'
35577 shlibpath_var=LD_LIBRARY_PATH
35578 shlibpath_overrides_runpath=yes
35579 hardcode_into_libs=yes
35584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35585 shlibpath_var=LD_LIBRARY_PATH
35586 shlibpath_overrides_runpath=yes
35593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35594 soname_spec='${libname}${release}${shared_ext}$major'
35595 shlibpath_var=LD_LIBRARY_PATH
35596 shlibpath_overrides_runpath=no
35597 hardcode_into_libs=yes
35598 dynamic_linker='ldqnx.so'
35603 sys_lib_dlsearch_path_spec="/usr/lib"
35605 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
35607 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
35608 *) need_version=no ;;
35610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
35611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
35612 shlibpath_var=LD_LIBRARY_PATH
35613 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
35615 openbsd2.[89] | openbsd2.[89].*)
35616 shlibpath_overrides_runpath=no
35619 shlibpath_overrides_runpath=yes
35623 shlibpath_overrides_runpath=yes
35628 libname_spec='$name'
35631 library_names_spec='$libname${shared_ext} $libname.a'
35632 dynamic_linker='OS/2 ld.exe'
35633 shlibpath_var=LIBPATH
35636 osf3* | osf4* | osf5*)
35640 soname_spec='${libname}${release}${shared_ext}$major'
35641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35642 shlibpath_var=LD_LIBRARY_PATH
35643 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
35644 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
35655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35656 soname_spec='${libname}${release}${shared_ext}$major'
35657 shlibpath_var=LD_LIBRARY_PATH
35658 shlibpath_overrides_runpath=yes
35659 hardcode_into_libs=yes
35660 # ldd complains unless libraries are executable
35661 postinstall_cmds='chmod +x $lib'
35666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
35667 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
35668 shlibpath_var=LD_LIBRARY_PATH
35669 shlibpath_overrides_runpath=yes
35670 if test "$with_gnu_ld" = yes; then
35678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35679 soname_spec='${libname}${release}${shared_ext}$major'
35680 shlibpath_var=LD_LIBRARY_PATH
35681 case $host_vendor in
35683 shlibpath_overrides_runpath=no
35685 runpath_var=LD_RUN_PATH
35693 shlibpath_overrides_runpath=no
35694 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
35700 if test -d /usr/nec ;then
35702 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
35703 soname_spec='$libname${shared_ext}.$major'
35704 shlibpath_var=LD_LIBRARY_PATH
35708 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
35709 version_type=freebsd-elf
35712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
35713 soname_spec='${libname}${release}${shared_ext}$major'
35714 shlibpath_var=LD_LIBRARY_PATH
35715 shlibpath_overrides_runpath=yes
35716 hardcode_into_libs=yes
35717 if test "$with_gnu_ld" = yes; then
35718 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
35720 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
35723 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
35727 sys_lib_dlsearch_path_spec='/usr/lib'
35731 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
35735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35736 shlibpath_var=LD_LIBRARY_PATH
35737 shlibpath_overrides_runpath=no
35738 hardcode_into_libs=yes
35743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35744 soname_spec='${libname}${release}${shared_ext}$major'
35745 shlibpath_var=LD_LIBRARY_PATH
35752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
35753 $as_echo "$dynamic_linker" >&6; }
35754 test "$dynamic_linker" = no && can_build_shared=no
35756 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
35757 if test "$GCC" = yes; then
35758 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
35761 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
35762 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
35764 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
35765 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
35859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
35860 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
35862 if test -n "$hardcode_libdir_flag_spec" ||
35863 test -n "$runpath_var" ||
35864 test "X$hardcode_automatic" = "Xyes" ; then
35866 # We can hardcode non-existent directories.
35867 if test "$hardcode_direct" != no &&
35868 # If the only mechanism to avoid hardcoding is shlibpath_var, we
35869 # have to relink, otherwise we might link with an installed library
35870 # when we should be linking with a yet-to-be-installed one
35871 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
35872 test "$hardcode_minus_L" != no; then
35873 # Linking always hardcodes the temporary library directory.
35874 hardcode_action=relink
35876 # We can link without hardcoding, and we can hardcode nonexisting dirs.
35877 hardcode_action=immediate
35880 # We cannot hardcode anything, or else we can only hardcode existing
35882 hardcode_action=unsupported
35884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
35885 $as_echo "$hardcode_action" >&6; }
35887 if test "$hardcode_action" = relink ||
35888 test "$inherit_rpath" = yes; then
35889 # Fast installation is not supported
35890 enable_fast_install=no
35891 elif test "$shlibpath_overrides_runpath" = yes ||
35892 test "$enable_shared" = no; then
35893 # Fast installation is not necessary
35894 enable_fast_install=needless
35902 if test "x$enable_dlopen" != xyes; then
35903 enable_dlopen=unknown
35904 enable_dlopen_self=unknown
35905 enable_dlopen_self_static=unknown
35912 lt_cv_dlopen="load_add_on"
35914 lt_cv_dlopen_self=yes
35917 mingw* | pw32* | cegcc*)
35918 lt_cv_dlopen="LoadLibrary"
35923 lt_cv_dlopen="dlopen"
35928 # if libdl is installed we need to link against it
35929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
35930 $as_echo_n "checking for dlopen in -ldl... " >&6; }
35931 if ${ac_cv_lib_dl_dlopen+:} false; then :
35932 $as_echo_n "(cached) " >&6
35934 ac_check_lib_save_LIBS=$LIBS
35936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35937 /* end confdefs.h. */
35939 /* Override any GCC internal prototype to avoid an error.
35940 Use char because int might match the return type of a GCC
35941 builtin and then its argument prototype would still apply. */
35954 if ac_fn_c_try_link "$LINENO"; then :
35955 ac_cv_lib_dl_dlopen=yes
35957 ac_cv_lib_dl_dlopen=no
35959 rm -f core conftest.err conftest.$ac_objext \
35960 conftest$ac_exeext conftest.$ac_ext
35961 LIBS=$ac_check_lib_save_LIBS
35963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
35964 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
35965 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
35966 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
35969 lt_cv_dlopen="dyld"
35971 lt_cv_dlopen_self=yes
35978 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
35979 if test "x$ac_cv_func_shl_load" = xyes; then :
35980 lt_cv_dlopen="shl_load"
35982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
35983 $as_echo_n "checking for shl_load in -ldld... " >&6; }
35984 if ${ac_cv_lib_dld_shl_load+:} false; then :
35985 $as_echo_n "(cached) " >&6
35987 ac_check_lib_save_LIBS=$LIBS
35989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35990 /* end confdefs.h. */
35992 /* Override any GCC internal prototype to avoid an error.
35993 Use char because int might match the return type of a GCC
35994 builtin and then its argument prototype would still apply. */
36002 return shl_load ();
36007 if ac_fn_c_try_link "$LINENO"; then :
36008 ac_cv_lib_dld_shl_load=yes
36010 ac_cv_lib_dld_shl_load=no
36012 rm -f core conftest.err conftest.$ac_objext \
36013 conftest$ac_exeext conftest.$ac_ext
36014 LIBS=$ac_check_lib_save_LIBS
36016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
36017 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
36018 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
36019 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
36021 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
36022 if test "x$ac_cv_func_dlopen" = xyes; then :
36023 lt_cv_dlopen="dlopen"
36025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
36026 $as_echo_n "checking for dlopen in -ldl... " >&6; }
36027 if ${ac_cv_lib_dl_dlopen+:} false; then :
36028 $as_echo_n "(cached) " >&6
36030 ac_check_lib_save_LIBS=$LIBS
36032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36033 /* end confdefs.h. */
36035 /* Override any GCC internal prototype to avoid an error.
36036 Use char because int might match the return type of a GCC
36037 builtin and then its argument prototype would still apply. */
36050 if ac_fn_c_try_link "$LINENO"; then :
36051 ac_cv_lib_dl_dlopen=yes
36053 ac_cv_lib_dl_dlopen=no
36055 rm -f core conftest.err conftest.$ac_objext \
36056 conftest$ac_exeext conftest.$ac_ext
36057 LIBS=$ac_check_lib_save_LIBS
36059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
36060 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
36061 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
36062 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
36064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
36065 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
36066 if ${ac_cv_lib_svld_dlopen+:} false; then :
36067 $as_echo_n "(cached) " >&6
36069 ac_check_lib_save_LIBS=$LIBS
36070 LIBS="-lsvld $LIBS"
36071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36072 /* end confdefs.h. */
36074 /* Override any GCC internal prototype to avoid an error.
36075 Use char because int might match the return type of a GCC
36076 builtin and then its argument prototype would still apply. */
36089 if ac_fn_c_try_link "$LINENO"; then :
36090 ac_cv_lib_svld_dlopen=yes
36092 ac_cv_lib_svld_dlopen=no
36094 rm -f core conftest.err conftest.$ac_objext \
36095 conftest$ac_exeext conftest.$ac_ext
36096 LIBS=$ac_check_lib_save_LIBS
36098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
36099 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
36100 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
36101 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
36103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
36104 $as_echo_n "checking for dld_link in -ldld... " >&6; }
36105 if ${ac_cv_lib_dld_dld_link+:} false; then :
36106 $as_echo_n "(cached) " >&6
36108 ac_check_lib_save_LIBS=$LIBS
36110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36111 /* end confdefs.h. */
36113 /* Override any GCC internal prototype to avoid an error.
36114 Use char because int might match the return type of a GCC
36115 builtin and then its argument prototype would still apply. */
36123 return dld_link ();
36128 if ac_fn_c_try_link "$LINENO"; then :
36129 ac_cv_lib_dld_dld_link=yes
36131 ac_cv_lib_dld_dld_link=no
36133 rm -f core conftest.err conftest.$ac_objext \
36134 conftest$ac_exeext conftest.$ac_ext
36135 LIBS=$ac_check_lib_save_LIBS
36137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
36138 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
36139 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
36140 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
36161 if test "x$lt_cv_dlopen" != xno; then
36167 case $lt_cv_dlopen in
36169 save_CPPFLAGS="$CPPFLAGS"
36170 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
36172 save_LDFLAGS="$LDFLAGS"
36173 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
36176 LIBS="$lt_cv_dlopen_libs $LIBS"
36178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
36179 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
36180 if ${lt_cv_dlopen_self+:} false; then :
36181 $as_echo_n "(cached) " >&6
36183 if test "$cross_compiling" = yes; then :
36184 lt_cv_dlopen_self=cross
36186 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
36187 lt_status=$lt_dlunknown
36188 cat > conftest.$ac_ext <<_LT_EOF
36189 #line $LINENO "configure"
36190 #include "confdefs.h"
36199 # define LT_DLGLOBAL RTLD_GLOBAL
36202 # define LT_DLGLOBAL DL_GLOBAL
36204 # define LT_DLGLOBAL 0
36208 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
36209 find out it does not work in some platform. */
36210 #ifndef LT_DLLAZY_OR_NOW
36212 # define LT_DLLAZY_OR_NOW RTLD_LAZY
36215 # define LT_DLLAZY_OR_NOW DL_LAZY
36218 # define LT_DLLAZY_OR_NOW RTLD_NOW
36221 # define LT_DLLAZY_OR_NOW DL_NOW
36223 # define LT_DLLAZY_OR_NOW 0
36230 /* When -fvisbility=hidden is used, assume the code has been annotated
36231 correspondingly for the symbols needed. */
36232 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
36233 int fnord () __attribute__((visibility("default")));
36236 int fnord () { return 42; }
36239 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
36240 int status = $lt_dlunknown;
36244 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
36247 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
36248 else puts (dlerror ());
36250 /* dlclose (self); */
36258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
36259 (eval $ac_link) 2>&5
36261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36262 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
36263 (./conftest; exit; ) >&5 2>/dev/null
36265 case x$lt_status in
36266 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
36267 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
36268 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
36271 # compilation failed
36272 lt_cv_dlopen_self=no
36279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
36280 $as_echo "$lt_cv_dlopen_self" >&6; }
36282 if test "x$lt_cv_dlopen_self" = xyes; then
36283 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
36284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
36285 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
36286 if ${lt_cv_dlopen_self_static+:} false; then :
36287 $as_echo_n "(cached) " >&6
36289 if test "$cross_compiling" = yes; then :
36290 lt_cv_dlopen_self_static=cross
36292 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
36293 lt_status=$lt_dlunknown
36294 cat > conftest.$ac_ext <<_LT_EOF
36295 #line $LINENO "configure"
36296 #include "confdefs.h"
36305 # define LT_DLGLOBAL RTLD_GLOBAL
36308 # define LT_DLGLOBAL DL_GLOBAL
36310 # define LT_DLGLOBAL 0
36314 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
36315 find out it does not work in some platform. */
36316 #ifndef LT_DLLAZY_OR_NOW
36318 # define LT_DLLAZY_OR_NOW RTLD_LAZY
36321 # define LT_DLLAZY_OR_NOW DL_LAZY
36324 # define LT_DLLAZY_OR_NOW RTLD_NOW
36327 # define LT_DLLAZY_OR_NOW DL_NOW
36329 # define LT_DLLAZY_OR_NOW 0
36336 /* When -fvisbility=hidden is used, assume the code has been annotated
36337 correspondingly for the symbols needed. */
36338 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
36339 int fnord () __attribute__((visibility("default")));
36342 int fnord () { return 42; }
36345 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
36346 int status = $lt_dlunknown;
36350 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
36353 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
36354 else puts (dlerror ());
36356 /* dlclose (self); */
36364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
36365 (eval $ac_link) 2>&5
36367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36368 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
36369 (./conftest; exit; ) >&5 2>/dev/null
36371 case x$lt_status in
36372 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
36373 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
36374 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
36377 # compilation failed
36378 lt_cv_dlopen_self_static=no
36385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
36386 $as_echo "$lt_cv_dlopen_self_static" >&6; }
36389 CPPFLAGS="$save_CPPFLAGS"
36390 LDFLAGS="$save_LDFLAGS"
36395 case $lt_cv_dlopen_self in
36396 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
36397 *) enable_dlopen_self=unknown ;;
36400 case $lt_cv_dlopen_self_static in
36401 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
36402 *) enable_dlopen_self_static=unknown ;;
36424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
36425 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
36426 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
36427 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
36428 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
36429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36430 $as_echo "yes" >&6; }
36432 # FIXME - insert some real tests, host_os isn't really good enough
36435 if test -n "$STRIP" ; then
36436 striplib="$STRIP -x"
36437 old_striplib="$STRIP -S"
36438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36439 $as_echo "yes" >&6; }
36441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36442 $as_echo "no" >&6; }
36446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36447 $as_echo "no" >&6; }
36463 # Report which library types will actually be built
36464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
36465 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
36466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
36467 $as_echo "$can_build_shared" >&6; }
36469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
36470 $as_echo_n "checking whether to build shared libraries... " >&6; }
36471 test "$can_build_shared" = "no" && enable_shared=no
36473 # On AIX, shared libraries and static libraries use the same namespace, and
36474 # are all built from PIC.
36477 test "$enable_shared" = yes && enable_static=no
36478 if test -n "$RANLIB"; then
36479 archive_cmds="$archive_cmds~\$RANLIB \$lib"
36480 postinstall_cmds='$RANLIB $lib'
36485 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
36486 test "$enable_shared" = yes && enable_static=no
36490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
36491 $as_echo "$enable_shared" >&6; }
36493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
36494 $as_echo_n "checking whether to build static libraries... " >&6; }
36495 # Make sure either enable_shared or enable_static is yes.
36496 test "$enable_shared" = yes || enable_static=yes
36497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
36498 $as_echo "$enable_static" >&6; }
36505 ac_cpp='$CPP $CPPFLAGS'
36506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36524 ac_config_commands="$ac_config_commands libtool"
36529 # Only expand once:
36534 # Check whether --enable-static-binary was given.
36535 if test "${enable_static_binary+set}" = set; then :
36536 enableval=$enable_static_binary;
36537 case "$enableval" in
36539 AMANDA_STATIC_LDFLAGS=-static
36540 if test x"$enable_static" = x"no"; then
36541 as_fn_error $? "*** --enable-static-binary is incompatible with --disable-static" "$LINENO" 5
36545 AMANDA_STATIC_LDFLAGS=
36557 ac_header_dirent=no
36558 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
36559 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
36560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
36561 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
36562 if eval \${$as_ac_Header+:} false; then :
36563 $as_echo_n "(cached) " >&6
36565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36566 /* end confdefs.h. */
36567 #include <sys/types.h>
36579 if ac_fn_c_try_compile "$LINENO"; then :
36580 eval "$as_ac_Header=yes"
36582 eval "$as_ac_Header=no"
36584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36586 eval ac_res=\$$as_ac_Header
36587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36588 $as_echo "$ac_res" >&6; }
36589 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36590 cat >>confdefs.h <<_ACEOF
36591 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
36594 ac_header_dirent=$ac_hdr; break
36598 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
36599 if test $ac_header_dirent = dirent.h; then
36600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
36601 $as_echo_n "checking for library containing opendir... " >&6; }
36602 if ${ac_cv_search_opendir+:} false; then :
36603 $as_echo_n "(cached) " >&6
36605 ac_func_search_save_LIBS=$LIBS
36606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36607 /* end confdefs.h. */
36609 /* Override any GCC internal prototype to avoid an error.
36610 Use char because int might match the return type of a GCC
36611 builtin and then its argument prototype would still apply. */
36624 for ac_lib in '' dir; do
36625 if test -z "$ac_lib"; then
36626 ac_res="none required"
36629 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
36631 if ac_fn_c_try_link "$LINENO"; then :
36632 ac_cv_search_opendir=$ac_res
36634 rm -f core conftest.err conftest.$ac_objext \
36636 if ${ac_cv_search_opendir+:} false; then :
36640 if ${ac_cv_search_opendir+:} false; then :
36643 ac_cv_search_opendir=no
36645 rm conftest.$ac_ext
36646 LIBS=$ac_func_search_save_LIBS
36648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
36649 $as_echo "$ac_cv_search_opendir" >&6; }
36650 ac_res=$ac_cv_search_opendir
36651 if test "$ac_res" != no; then :
36652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
36658 $as_echo_n "checking for library containing opendir... " >&6; }
36659 if ${ac_cv_search_opendir+:} false; then :
36660 $as_echo_n "(cached) " >&6
36662 ac_func_search_save_LIBS=$LIBS
36663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36664 /* end confdefs.h. */
36666 /* Override any GCC internal prototype to avoid an error.
36667 Use char because int might match the return type of a GCC
36668 builtin and then its argument prototype would still apply. */
36681 for ac_lib in '' x; do
36682 if test -z "$ac_lib"; then
36683 ac_res="none required"
36686 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
36688 if ac_fn_c_try_link "$LINENO"; then :
36689 ac_cv_search_opendir=$ac_res
36691 rm -f core conftest.err conftest.$ac_objext \
36693 if ${ac_cv_search_opendir+:} false; then :
36697 if ${ac_cv_search_opendir+:} false; then :
36700 ac_cv_search_opendir=no
36702 rm conftest.$ac_ext
36703 LIBS=$ac_func_search_save_LIBS
36705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
36706 $as_echo "$ac_cv_search_opendir" >&6; }
36707 ac_res=$ac_cv_search_opendir
36708 if test "$ac_res" != no; then :
36709 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
36716 $as_echo_n "checking for ANSI C header files... " >&6; }
36717 if ${ac_cv_header_stdc+:} false; then :
36718 $as_echo_n "(cached) " >&6
36720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36721 /* end confdefs.h. */
36722 #include <stdlib.h>
36723 #include <stdarg.h>
36724 #include <string.h>
36735 if ac_fn_c_try_compile "$LINENO"; then :
36736 ac_cv_header_stdc=yes
36738 ac_cv_header_stdc=no
36740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36742 if test $ac_cv_header_stdc = yes; then
36743 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
36744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36745 /* end confdefs.h. */
36746 #include <string.h>
36749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36750 $EGREP "memchr" >/dev/null 2>&1; then :
36753 ac_cv_header_stdc=no
36759 if test $ac_cv_header_stdc = yes; then
36760 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
36761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36762 /* end confdefs.h. */
36763 #include <stdlib.h>
36766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36767 $EGREP "free" >/dev/null 2>&1; then :
36770 ac_cv_header_stdc=no
36776 if test $ac_cv_header_stdc = yes; then
36777 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
36778 if test "$cross_compiling" = yes; then :
36781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36782 /* end confdefs.h. */
36784 #include <stdlib.h>
36785 #if ((' ' & 0x0FF) == 0x020)
36786 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
36787 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
36789 # define ISLOWER(c) \
36790 (('a' <= (c) && (c) <= 'i') \
36791 || ('j' <= (c) && (c) <= 'r') \
36792 || ('s' <= (c) && (c) <= 'z'))
36793 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
36796 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
36801 for (i = 0; i < 256; i++)
36802 if (XOR (islower (i), ISLOWER (i))
36803 || toupper (i) != TOUPPER (i))
36808 if ac_fn_c_try_run "$LINENO"; then :
36811 ac_cv_header_stdc=no
36813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36814 conftest.$ac_objext conftest.beam conftest.$ac_ext
36819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
36820 $as_echo "$ac_cv_header_stdc" >&6; }
36821 if test $ac_cv_header_stdc = yes; then
36823 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
36827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
36828 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
36829 if ${ac_cv_header_time+:} false; then :
36830 $as_echo_n "(cached) " >&6
36832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36833 /* end confdefs.h. */
36834 #include <sys/types.h>
36835 #include <sys/time.h>
36841 if ((struct tm *) 0)
36847 if ac_fn_c_try_compile "$LINENO"; then :
36848 ac_cv_header_time=yes
36850 ac_cv_header_time=no
36852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
36855 $as_echo "$ac_cv_header_time" >&6; }
36856 if test $ac_cv_header_time = yes; then
36858 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
36862 for ac_header in grp.h \
36889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36890 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
36891 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36892 cat >>confdefs.h <<_ACEOF
36893 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36901 $as_echo "#define HAVE_AMANDA_H 1" >>confdefs.h
36904 $as_echo "#define HAVE_UTIL_H 1" >>confdefs.h
36908 $as_echo "#define USE_GETTEXT 1" >>confdefs.h
36914 # The cast to long int works around a bug in the HP C Compiler
36915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36917 # This bug is HP SR number 8606223364.
36918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
36919 $as_echo_n "checking size of int... " >&6; }
36920 if ${ac_cv_sizeof_int+:} false; then :
36921 $as_echo_n "(cached) " >&6
36923 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
36926 if test "$ac_cv_type_int" = yes; then
36927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36929 as_fn_error 77 "cannot compute sizeof (int)
36930 See \`config.log' for more details" "$LINENO" 5; }
36937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
36938 $as_echo "$ac_cv_sizeof_int" >&6; }
36942 cat >>confdefs.h <<_ACEOF
36943 #define SIZEOF_INT $ac_cv_sizeof_int
36947 # The cast to long int works around a bug in the HP C Compiler
36948 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36949 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36950 # This bug is HP SR number 8606223364.
36951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
36952 $as_echo_n "checking size of long... " >&6; }
36953 if ${ac_cv_sizeof_long+:} false; then :
36954 $as_echo_n "(cached) " >&6
36956 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
36959 if test "$ac_cv_type_long" = yes; then
36960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36962 as_fn_error 77 "cannot compute sizeof (long)
36963 See \`config.log' for more details" "$LINENO" 5; }
36965 ac_cv_sizeof_long=0
36970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
36971 $as_echo "$ac_cv_sizeof_long" >&6; }
36975 cat >>confdefs.h <<_ACEOF
36976 #define SIZEOF_LONG $ac_cv_sizeof_long
36980 # The cast to long int works around a bug in the HP C Compiler
36981 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36982 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36983 # This bug is HP SR number 8606223364.
36984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
36985 $as_echo_n "checking size of long long... " >&6; }
36986 if ${ac_cv_sizeof_long_long+:} false; then :
36987 $as_echo_n "(cached) " >&6
36989 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
36992 if test "$ac_cv_type_long_long" = yes; then
36993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36995 as_fn_error 77 "cannot compute sizeof (long long)
36996 See \`config.log' for more details" "$LINENO" 5; }
36998 ac_cv_sizeof_long_long=0
37003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
37004 $as_echo "$ac_cv_sizeof_long_long" >&6; }
37008 cat >>confdefs.h <<_ACEOF
37009 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
37013 # The cast to long int works around a bug in the HP C Compiler
37014 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37015 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37016 # This bug is HP SR number 8606223364.
37017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
37018 $as_echo_n "checking size of intmax_t... " >&6; }
37019 if ${ac_cv_sizeof_intmax_t+:} false; then :
37020 $as_echo_n "(cached) " >&6
37022 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then :
37025 if test "$ac_cv_type_intmax_t" = yes; then
37026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37028 as_fn_error 77 "cannot compute sizeof (intmax_t)
37029 See \`config.log' for more details" "$LINENO" 5; }
37031 ac_cv_sizeof_intmax_t=0
37036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
37037 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
37041 cat >>confdefs.h <<_ACEOF
37042 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
37046 # The cast to long int works around a bug in the HP C Compiler
37047 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37048 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37049 # This bug is HP SR number 8606223364.
37050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
37051 $as_echo_n "checking size of off_t... " >&6; }
37052 if ${ac_cv_sizeof_off_t+:} false; then :
37053 $as_echo_n "(cached) " >&6
37055 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
37058 if test "$ac_cv_type_off_t" = yes; then
37059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37061 as_fn_error 77 "cannot compute sizeof (off_t)
37062 See \`config.log' for more details" "$LINENO" 5; }
37064 ac_cv_sizeof_off_t=0
37069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
37070 $as_echo "$ac_cv_sizeof_off_t" >&6; }
37074 cat >>confdefs.h <<_ACEOF
37075 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
37079 # The cast to long int works around a bug in the HP C Compiler
37080 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37081 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37082 # This bug is HP SR number 8606223364.
37083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
37084 $as_echo_n "checking size of size_t... " >&6; }
37085 if ${ac_cv_sizeof_size_t+:} false; then :
37086 $as_echo_n "(cached) " >&6
37088 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
37091 if test "$ac_cv_type_size_t" = yes; then
37092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37094 as_fn_error 77 "cannot compute sizeof (size_t)
37095 See \`config.log' for more details" "$LINENO" 5; }
37097 ac_cv_sizeof_size_t=0
37102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
37103 $as_echo "$ac_cv_sizeof_size_t" >&6; }
37107 cat >>confdefs.h <<_ACEOF
37108 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
37112 # The cast to long int works around a bug in the HP C Compiler
37113 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37114 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37115 # This bug is HP SR number 8606223364.
37116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
37117 $as_echo_n "checking size of ssize_t... " >&6; }
37118 if ${ac_cv_sizeof_ssize_t+:} false; then :
37119 $as_echo_n "(cached) " >&6
37121 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
37124 if test "$ac_cv_type_ssize_t" = yes; then
37125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37127 as_fn_error 77 "cannot compute sizeof (ssize_t)
37128 See \`config.log' for more details" "$LINENO" 5; }
37130 ac_cv_sizeof_ssize_t=0
37135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
37136 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
37140 cat >>confdefs.h <<_ACEOF
37141 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
37145 # The cast to long int works around a bug in the HP C Compiler
37146 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37147 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37148 # This bug is HP SR number 8606223364.
37149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
37150 $as_echo_n "checking size of time_t... " >&6; }
37151 if ${ac_cv_sizeof_time_t+:} false; then :
37152 $as_echo_n "(cached) " >&6
37154 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
37157 if test "$ac_cv_type_time_t" = yes; then
37158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37160 as_fn_error 77 "cannot compute sizeof (time_t)
37161 See \`config.log' for more details" "$LINENO" 5; }
37163 ac_cv_sizeof_time_t=0
37168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
37169 $as_echo "$ac_cv_sizeof_time_t" >&6; }
37173 cat >>confdefs.h <<_ACEOF
37174 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
37178 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
37179 if test "x$ac_cv_type_off_t" = xyes; then :
37183 cat >>confdefs.h <<_ACEOF
37184 #define off_t long int
37189 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
37190 if test "x$ac_cv_type_pid_t" = xyes; then :
37194 cat >>confdefs.h <<_ACEOF
37200 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
37201 if test "x$ac_cv_type_size_t" = xyes; then :
37205 cat >>confdefs.h <<_ACEOF
37206 #define size_t unsigned int
37211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
37212 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
37213 if ${ac_cv_type_uid_t+:} false; then :
37214 $as_echo_n "(cached) " >&6
37216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37217 /* end confdefs.h. */
37218 #include <sys/types.h>
37221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37222 $EGREP "uid_t" >/dev/null 2>&1; then :
37223 ac_cv_type_uid_t=yes
37225 ac_cv_type_uid_t=no
37230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
37231 $as_echo "$ac_cv_type_uid_t" >&6; }
37232 if test $ac_cv_type_uid_t = no; then
37234 $as_echo "#define uid_t int" >>confdefs.h
37237 $as_echo "#define gid_t int" >>confdefs.h
37241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
37242 $as_echo_n "checking return type of signal handlers... " >&6; }
37243 if ${ac_cv_type_signal+:} false; then :
37244 $as_echo_n "(cached) " >&6
37246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37247 /* end confdefs.h. */
37248 #include <sys/types.h>
37249 #include <signal.h>
37254 return *(signal (0, 0)) (0) == 1;
37259 if ac_fn_c_try_compile "$LINENO"; then :
37260 ac_cv_type_signal=int
37262 ac_cv_type_signal=void
37264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
37267 $as_echo "$ac_cv_type_signal" >&6; }
37269 cat >>confdefs.h <<_ACEOF
37270 #define RETSIGTYPE $ac_cv_type_signal
37274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
37275 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
37276 if ${ac_cv_struct_tm+:} false; then :
37277 $as_echo_n "(cached) " >&6
37279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37280 /* end confdefs.h. */
37281 #include <sys/types.h>
37288 int *p = &tm.tm_sec;
37294 if ac_fn_c_try_compile "$LINENO"; then :
37295 ac_cv_struct_tm=time.h
37297 ac_cv_struct_tm=sys/time.h
37299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
37302 $as_echo "$ac_cv_struct_tm" >&6; }
37303 if test $ac_cv_struct_tm = sys/time.h; then
37305 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
37310 ## lifted from config/gnulib/socklen.m4
37311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
37312 $as_echo_n "checking for socklen_t equivalent... " >&6; }
37313 if ${gl_cv_socklen_t_equiv+:} false; then :
37314 $as_echo_n "(cached) " >&6
37316 # Systems have either "struct sockaddr *" or
37317 # "void *" as the second argument to getpeername
37318 gl_cv_socklen_t_equiv=
37319 for arg2 in "struct sockaddr" void; do
37320 for t in socklen_t int size_t "unsigned int" "long int" "unsigned long int"; do
37321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37322 /* end confdefs.h. */
37323 #include <sys/types.h>
37324 #include <sys/socket.h>
37326 int getpeername (int, $arg2 *, $t *);
37331 getpeername (0, 0, &len);
37336 if ac_fn_c_try_compile "$LINENO"; then :
37337 gl_cv_socklen_t_equiv="$t"
37339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37340 test "$gl_cv_socklen_t_equiv" != "" && break
37342 test "$gl_cv_socklen_t_equiv" != "" && break
37347 ## end lifting from config/gnulib/socklen.m4
37348 # fallback if the check fails
37349 if test "$gl_cv_socklen_t_equiv" = ""; then
37350 gl_cv_socklen_t_equiv=socklen_t
37352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
37353 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
37356 cat >>confdefs.h <<_ACEOF
37357 #define socklen_t_equiv $gl_cv_socklen_t_equiv
37363 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
37364 #ifdef HAVE_SYS_TYPES_H
37365 #include <sys/types.h>
37367 #ifdef STDC_HEADERS
37368 #include <stdlib.h>
37369 #include <stddef.h>
37371 #include <sys/socket.h>
37375 if test "x$ac_cv_type_sa_family_t" = xyes; then :
37380 $as_echo "#define sa_family_t unsigned short" >>confdefs.h
37388 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
37389 #ifdef HAVE_SYS_TYPES_H
37390 #include <sys/types.h>
37392 #ifdef STDC_HEADERS
37393 #include <stdlib.h>
37394 #include <stddef.h>
37396 #include <netinet/in.h>
37400 if test "x$ac_cv_type_in_port_t" = xyes; then :
37405 $as_echo "#define in_port_t unsigned short" >>confdefs.h
37413 for ac_header in sys/wait.h wait.h
37415 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37416 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
37417 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37418 cat >>confdefs.h <<_ACEOF
37419 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait uses union wait" >&5
37427 $as_echo_n "checking whether wait uses union wait... " >&6; }
37428 if ${cf_cv_arg_union_wait+:} false; then :
37429 $as_echo_n "(cached) " >&6
37432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37433 /* end confdefs.h. */
37435 #include <sys/types.h>
37437 #if HAVE_SYS_WAIT_H
37438 # include <sys/wait.h>
37446 pid_t wait(union wait *);
37453 union wait x; int i;
37454 wait(&x); i = WIFEXITED(x)
37460 if ac_fn_c_try_compile "$LINENO"; then :
37461 cf_cv_arg_union_wait=yes
37463 cf_cv_arg_union_wait=no
37465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_arg_union_wait" >&5
37468 $as_echo "$cf_cv_arg_union_wait" >&6; }
37469 if test $cf_cv_arg_union_wait = yes; then
37471 $as_echo "#define WAIT_USES_UNION 1" >>confdefs.h
37477 for ac_header in sys/wait.h wait.h
37479 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37480 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
37481 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37482 cat >>confdefs.h <<_ACEOF
37483 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait uses int" >&5
37491 $as_echo_n "checking whether wait uses int... " >&6; }
37492 if ${cf_cv_arg_int+:} false; then :
37493 $as_echo_n "(cached) " >&6
37496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37497 /* end confdefs.h. */
37499 #include <sys/types.h>
37501 #if HAVE_SYS_WAIT_H
37502 # include <sys/wait.h>
37518 wait(&x); i = WIFEXITED(x)
37524 if ac_fn_c_try_compile "$LINENO"; then :
37529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_arg_int" >&5
37532 $as_echo "$cf_cv_arg_int" >&6; }
37533 if test $cf_cv_arg_int = yes; then
37535 $as_echo "#define WAIT_USES_INT 1" >>confdefs.h
37543 # cur_colr is on some HP's
37544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcur_colr" >&5
37545 $as_echo_n "checking for main in -lcur_colr... " >&6; }
37546 if ${ac_cv_lib_cur_colr_main+:} false; then :
37547 $as_echo_n "(cached) " >&6
37549 ac_check_lib_save_LIBS=$LIBS
37550 LIBS="-lcur_colr $LIBS"
37551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37552 /* end confdefs.h. */
37563 if ac_fn_c_try_link "$LINENO"; then :
37564 ac_cv_lib_cur_colr_main=yes
37566 ac_cv_lib_cur_colr_main=no
37568 rm -f core conftest.err conftest.$ac_objext \
37569 conftest$ac_exeext conftest.$ac_ext
37570 LIBS=$ac_check_lib_save_LIBS
37572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_main" >&5
37573 $as_echo "$ac_cv_lib_cur_colr_main" >&6; }
37574 if test "x$ac_cv_lib_cur_colr_main" = xyes; then :
37575 cat >>confdefs.h <<_ACEOF
37576 #define HAVE_LIBCUR_COLR 1
37579 LIBS="-lcur_colr $LIBS"
37583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lintl" >&5
37584 $as_echo_n "checking for main in -lintl... " >&6; }
37585 if ${ac_cv_lib_intl_main+:} false; then :
37586 $as_echo_n "(cached) " >&6
37588 ac_check_lib_save_LIBS=$LIBS
37589 LIBS="-lintl $LIBS"
37590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37591 /* end confdefs.h. */
37602 if ac_fn_c_try_link "$LINENO"; then :
37603 ac_cv_lib_intl_main=yes
37605 ac_cv_lib_intl_main=no
37607 rm -f core conftest.err conftest.$ac_objext \
37608 conftest$ac_exeext conftest.$ac_ext
37609 LIBS=$ac_check_lib_save_LIBS
37611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_main" >&5
37612 $as_echo "$ac_cv_lib_intl_main" >&6; }
37613 if test "x$ac_cv_lib_intl_main" = xyes; then :
37614 cat >>confdefs.h <<_ACEOF
37615 #define HAVE_LIBINTL 1
37618 LIBS="-lintl $LIBS"
37623 # Make sure we don't use -lnsl and -lsun on Irix systems.
37626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
37627 $as_echo_n "checking for main in -lsocket... " >&6; }
37628 if ${ac_cv_lib_socket_main+:} false; then :
37629 $as_echo_n "(cached) " >&6
37631 ac_check_lib_save_LIBS=$LIBS
37632 LIBS="-lsocket $LIBS"
37633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37634 /* end confdefs.h. */
37645 if ac_fn_c_try_link "$LINENO"; then :
37646 ac_cv_lib_socket_main=yes
37648 ac_cv_lib_socket_main=no
37650 rm -f core conftest.err conftest.$ac_objext \
37651 conftest$ac_exeext conftest.$ac_ext
37652 LIBS=$ac_check_lib_save_LIBS
37654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
37655 $as_echo "$ac_cv_lib_socket_main" >&6; }
37656 if test "x$ac_cv_lib_socket_main" = xyes; then :
37657 cat >>confdefs.h <<_ACEOF
37658 #define HAVE_LIBSOCKET 1
37661 LIBS="-lsocket $LIBS"
37667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5
37668 $as_echo_n "checking for main in -lresolv... " >&6; }
37669 if ${ac_cv_lib_resolv_main+:} false; then :
37670 $as_echo_n "(cached) " >&6
37672 ac_check_lib_save_LIBS=$LIBS
37673 LIBS="-lresolv $LIBS"
37674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37675 /* end confdefs.h. */
37686 if ac_fn_c_try_link "$LINENO"; then :
37687 ac_cv_lib_resolv_main=yes
37689 ac_cv_lib_resolv_main=no
37691 rm -f core conftest.err conftest.$ac_objext \
37692 conftest$ac_exeext conftest.$ac_ext
37693 LIBS=$ac_check_lib_save_LIBS
37695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5
37696 $as_echo "$ac_cv_lib_resolv_main" >&6; }
37697 if test "x$ac_cv_lib_resolv_main" = xyes; then :
37698 cat >>confdefs.h <<_ACEOF
37699 #define HAVE_LIBRESOLV 1
37702 LIBS="-lresolv $LIBS"
37706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
37707 $as_echo_n "checking for main in -lnsl... " >&6; }
37708 if ${ac_cv_lib_nsl_main+:} false; then :
37709 $as_echo_n "(cached) " >&6
37711 ac_check_lib_save_LIBS=$LIBS
37713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37714 /* end confdefs.h. */
37725 if ac_fn_c_try_link "$LINENO"; then :
37726 ac_cv_lib_nsl_main=yes
37728 ac_cv_lib_nsl_main=no
37730 rm -f core conftest.err conftest.$ac_objext \
37731 conftest$ac_exeext conftest.$ac_ext
37732 LIBS=$ac_check_lib_save_LIBS
37734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
37735 $as_echo "$ac_cv_lib_nsl_main" >&6; }
37736 if test "x$ac_cv_lib_nsl_main" = xyes; then :
37737 cat >>confdefs.h <<_ACEOF
37738 #define HAVE_LIBNSL 1
37745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
37746 $as_echo_n "checking for main in -lsocket... " >&6; }
37747 if ${ac_cv_lib_socket_main+:} false; then :
37748 $as_echo_n "(cached) " >&6
37750 ac_check_lib_save_LIBS=$LIBS
37751 LIBS="-lsocket $LIBS"
37752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37753 /* end confdefs.h. */
37764 if ac_fn_c_try_link "$LINENO"; then :
37765 ac_cv_lib_socket_main=yes
37767 ac_cv_lib_socket_main=no
37769 rm -f core conftest.err conftest.$ac_objext \
37770 conftest$ac_exeext conftest.$ac_ext
37771 LIBS=$ac_check_lib_save_LIBS
37773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
37774 $as_echo "$ac_cv_lib_socket_main" >&6; }
37775 if test "x$ac_cv_lib_socket_main" = xyes; then :
37776 cat >>confdefs.h <<_ACEOF
37777 #define HAVE_LIBSOCKET 1
37780 LIBS="-lsocket $LIBS"
37784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsun" >&5
37785 $as_echo_n "checking for main in -lsun... " >&6; }
37786 if ${ac_cv_lib_sun_main+:} false; then :
37787 $as_echo_n "(cached) " >&6
37789 ac_check_lib_save_LIBS=$LIBS
37791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37792 /* end confdefs.h. */
37803 if ac_fn_c_try_link "$LINENO"; then :
37804 ac_cv_lib_sun_main=yes
37806 ac_cv_lib_sun_main=no
37808 rm -f core conftest.err conftest.$ac_objext \
37809 conftest$ac_exeext conftest.$ac_ext
37810 LIBS=$ac_check_lib_save_LIBS
37812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_main" >&5
37813 $as_echo "$ac_cv_lib_sun_main" >&6; }
37814 if test "x$ac_cv_lib_sun_main" = xyes; then :
37815 cat >>confdefs.h <<_ACEOF
37816 #define HAVE_LIBSUN 1
37833 # if any of the precious variables are set, disable the pkg-config run.
37834 # Further, if any is specified, all must be specified.
37836 test x"$GLIB_CFLAGS" = x"" || explicit_glib=yes
37837 test x"$GLIB_LIBS" = x"" || explicit_glib=yes
37838 test x"$GLIB_GENMARSHAL" = x"" || explicit_glib=yes
37839 test x"$GOBJECT_QUERY" = x"" || explicit_glib=yes
37840 test x"$GLIB_MKENUMS" = x"" || explicit_glib=yes
37842 if test x"$explicit_glib" = x"no"; then
37843 # search for pkg-config, which the glib configuration uses, adding a few
37844 # system-specific search paths.
37845 # Extract the first word of "pkg-config", so it can be a program name with args.
37846 set dummy pkg-config; ac_word=$2
37847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37848 $as_echo_n "checking for $ac_word... " >&6; }
37849 if ${ac_cv_path_PKG_CONFIG+:} false; then :
37850 $as_echo_n "(cached) " >&6
37852 case $PKG_CONFIG in
37854 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37858 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
37859 for as_dir in $as_dummy
37862 test -z "$as_dir" && as_dir=.
37863 for ac_exec_ext in '' $ac_executable_extensions; do
37864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37865 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37876 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37877 if test -n "$PKG_CONFIG"; then
37878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
37879 $as_echo "$PKG_CONFIG" >&6; }
37881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37882 $as_echo "no" >&6; }
37888 sparc-sun-solaris2.8) # Solaris 8
37889 # give the linker a runtime search path; pkg-config doesn't supply this.
37890 # Users could also specify this with LD_LIBRARY_PATH to both ./configure
37891 # and make. Adding this support here makes straight './configure; make'
37892 # "just work" on Solaris 8
37893 if test -n "$PKG_CONFIG"; then
37894 glib_R_flag=`$PKG_CONFIG glib-2.0 --libs-only-L 2>/dev/null | sed -e 's/-L/-R/g'`
37895 LDFLAGS="$LDFLAGS $glib_R_flag"
37900 # Check whether --enable-glibtest was given.
37901 if test "${enable_glibtest+set}" = set; then :
37902 enableval=$enable_glibtest;
37904 enable_glibtest=yes
37908 pkg_config_args=glib-2.0
37909 for module in . gmodule gobject gthread
37913 pkg_config_args="$pkg_config_args gmodule-2.0"
37916 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
37919 pkg_config_args="$pkg_config_args gobject-2.0"
37922 pkg_config_args="$pkg_config_args gthread-2.0"
37925 pkg_config_args="$pkg_config_args $module-2.0"
37936 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
37937 if test -n "$ac_tool_prefix"; then
37938 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
37939 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
37940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37941 $as_echo_n "checking for $ac_word... " >&6; }
37942 if ${ac_cv_path_PKG_CONFIG+:} false; then :
37943 $as_echo_n "(cached) " >&6
37945 case $PKG_CONFIG in
37947 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37951 for as_dir in $PATH
37954 test -z "$as_dir" && as_dir=.
37955 for ac_exec_ext in '' $ac_executable_extensions; do
37956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37957 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37968 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37969 if test -n "$PKG_CONFIG"; then
37970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
37971 $as_echo "$PKG_CONFIG" >&6; }
37973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37974 $as_echo "no" >&6; }
37979 if test -z "$ac_cv_path_PKG_CONFIG"; then
37980 ac_pt_PKG_CONFIG=$PKG_CONFIG
37981 # Extract the first word of "pkg-config", so it can be a program name with args.
37982 set dummy pkg-config; ac_word=$2
37983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37984 $as_echo_n "checking for $ac_word... " >&6; }
37985 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
37986 $as_echo_n "(cached) " >&6
37988 case $ac_pt_PKG_CONFIG in
37990 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
37993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37994 for as_dir in $PATH
37997 test -z "$as_dir" && as_dir=.
37998 for ac_exec_ext in '' $ac_executable_extensions; do
37999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38000 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38011 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
38012 if test -n "$ac_pt_PKG_CONFIG"; then
38013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
38014 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
38016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38017 $as_echo "no" >&6; }
38020 if test "x$ac_pt_PKG_CONFIG" = x; then
38023 case $cross_compiling:$ac_tool_warned in
38025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38027 ac_tool_warned=yes ;;
38029 PKG_CONFIG=$ac_pt_PKG_CONFIG
38032 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
38036 if test -n "$PKG_CONFIG"; then
38037 _pkg_min_version=0.7
38038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
38039 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
38040 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
38041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38042 $as_echo "yes" >&6; }
38044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38045 $as_echo "no" >&6; }
38052 if test "x$PKG_CONFIG" = x ; then
38057 min_glib_version=2.2.0
38058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
38059 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
38061 if test x$PKG_CONFIG != xno ; then
38062 ## don't try to run the test against uninstalled libtool libs
38063 if $PKG_CONFIG --uninstalled $pkg_config_args; then
38064 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
38068 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
38075 if test x"$no_glib" = x ; then
38076 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
38077 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
38078 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
38080 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
38081 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
38082 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
38083 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
38084 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
38085 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
38086 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
38087 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
38088 if test "x$enable_glibtest" = "xyes" ; then
38089 ac_save_CFLAGS="$CFLAGS"
38090 ac_save_LIBS="$LIBS"
38091 CFLAGS="$CFLAGS $GLIB_CFLAGS"
38092 LIBS="$GLIB_LIBS $LIBS"
38093 rm -f conf.glibtest
38094 if test "$cross_compiling" = yes; then :
38095 echo $ac_n "cross compiling; assumed OK... $ac_c"
38097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38098 /* end confdefs.h. */
38102 #include <stdlib.h>
38107 unsigned int major, minor, micro;
38110 fclose (fopen ("conf.glibtest", "w"));
38112 /* HP/UX 9 (%@#!) writes to sscanf strings */
38113 tmp_version = g_strdup("$min_glib_version");
38114 if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) {
38115 printf("%s, bad version string\n", "$min_glib_version");
38119 if ((glib_major_version != $glib_config_major_version) ||
38120 (glib_minor_version != $glib_config_minor_version) ||
38121 (glib_micro_version != $glib_config_micro_version))
38123 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
38124 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
38125 glib_major_version, glib_minor_version, glib_micro_version);
38126 printf ("*** was found! If pkg-config was correct, then it is best\n");
38127 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
38128 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
38129 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
38130 printf("*** required on your system.\n");
38131 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
38132 printf("*** to point to the correct configuration files\n");
38134 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
38135 (glib_minor_version != GLIB_MINOR_VERSION) ||
38136 (glib_micro_version != GLIB_MICRO_VERSION))
38138 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
38139 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
38140 printf("*** library (version %d.%d.%d)\n",
38141 glib_major_version, glib_minor_version, glib_micro_version);
38145 if ((glib_major_version > major) ||
38146 ((glib_major_version == major) && (glib_minor_version > minor)) ||
38147 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
38153 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
38154 glib_major_version, glib_minor_version, glib_micro_version);
38155 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
38156 major, minor, micro);
38157 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
38159 printf("*** If you have already installed a sufficiently new version, this error\n");
38160 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
38161 printf("*** being found. The easiest way to fix this is to remove the old version\n");
38162 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
38163 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
38164 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
38165 printf("*** so that the correct libraries are found at run-time))\n");
38172 if ac_fn_c_try_run "$LINENO"; then :
38177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38178 conftest.$ac_objext conftest.beam conftest.$ac_ext
38181 CFLAGS="$ac_save_CFLAGS"
38182 LIBS="$ac_save_LIBS"
38185 if test "x$no_glib" = x ; then
38186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
38187 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
38190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38191 $as_echo "no" >&6; }
38192 if test "$PKG_CONFIG" = "no" ; then
38193 echo "*** A new enough version of pkg-config was not found."
38194 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
38196 if test -f conf.glibtest ; then
38199 echo "*** Could not run GLIB test program, checking why..."
38200 ac_save_CFLAGS="$CFLAGS"
38201 ac_save_LIBS="$LIBS"
38202 CFLAGS="$CFLAGS $GLIB_CFLAGS"
38203 LIBS="$LIBS $GLIB_LIBS"
38204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38205 /* end confdefs.h. */
38213 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
38218 if ac_fn_c_try_link "$LINENO"; then :
38219 echo "*** The test program compiled, but did not run. This usually means"
38220 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
38221 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
38222 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
38223 echo "*** to the installed location Also, make sure you have run ldconfig if that"
38224 echo "*** is required on your system"
38226 echo "*** If you have an old version installed, it is best to remove it, although"
38227 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
38229 echo "*** The test program failed to compile or link. See the file config.log for the"
38230 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
38232 rm -f core conftest.err conftest.$ac_objext \
38233 conftest$ac_exeext conftest.$ac_ext
38234 CFLAGS="$ac_save_CFLAGS"
38235 LIBS="$ac_save_LIBS"
38244 as_fn_error $? "glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" "$LINENO" 5
38252 rm -f conf.glibtest
38255 # Confirm that all GLIB_ variables are set
38256 if test ! x"$GLIB_CFLAGS" = x"" && \
38257 test ! x"$GLIB_LIBS" = x"" && \
38258 test ! x"$GLIB_GENMARSHAL" = x"" && \
38259 test ! x"$GOBJECT_QUERY" = x"" && \
38260 test ! x"$GLIB_MKENUMS" = x""; then
38263 as_fn_error $? "Not all precious glib variables were set." "$LINENO" 5
38267 # remove deprecated warning for newer version
38268 if $PKG_CONFIG --atleast-version 2.30.0 glib-2.0; then
38270 # test for -W'warning', then add the 'no-' version.
38274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wdeprecated-declarations" >&5
38275 $as_echo_n "checking for gcc flag -Wdeprecated-declarations... " >&6; }
38276 if test "x$GCC" = "xyes"; then
38277 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
38278 $CC -v --help 2>&1) |
38279 $EGREP -- '[^[:alnum:]]-Wdeprecated-declarations[^[:alnum:]-]' 2>&1 > /dev/null
38280 if test $? -eq 0; then
38282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38283 $as_echo "yes" >&6; }
38286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38287 $as_echo "no" >&6; }
38291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
38292 $as_echo "no (not using gcc)" >&6; }
38295 if test x"$found_warning" = x"yes"; then
38296 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-deprecated-declarations"
38306 # GLIB_CPPFLAGS is not set by autoconf, yet GLIB_CFLAGS contains what GLIB_CPPFLAGS should contain.
38307 CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS"
38309 LIBS="$GLIB_LIBS $LIBS"
38314 # Check whether --with-readline was given.
38315 if test "${with_readline+set}" = set; then :
38316 withval=$with_readline;
38318 y | ye | yes | n | no) : ;;
38319 *) as_fn_error $? "*** --with-readline does not take a value" "$LINENO" 5
38321 want_readline="$withval"
38325 want_readline="maybe" # meaning "only if we can find it"
38331 # unless the user said "no", look for readline.
38332 if test x"$want_readline" != x"no"; then
38333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
38334 $as_echo_n "checking for a readline compatible library... " >&6; }
38335 if ${ax_cv_lib_readline+:} false; then :
38336 $as_echo_n "(cached) " >&6
38340 for readline_lib in readline edit editline; do
38341 for termcap_lib in "" termcap curses ncurses; do
38342 if test -z "$termcap_lib"; then
38343 TRY_LIB="-l$readline_lib"
38345 TRY_LIB="-l$readline_lib -l$termcap_lib"
38347 LIBS="$ORIG_LIBS $TRY_LIB"
38348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38349 /* end confdefs.h. */
38351 /* Override any GCC internal prototype to avoid an error.
38352 Use char because int might match the return type of a GCC
38353 builtin and then its argument prototype would still apply. */
38361 return readline ();
38366 if ac_fn_c_try_link "$LINENO"; then :
38367 ax_cv_lib_readline="$TRY_LIB"
38369 rm -f core conftest.err conftest.$ac_objext \
38370 conftest$ac_exeext conftest.$ac_ext
38371 if test -n "$ax_cv_lib_readline"; then
38375 if test -n "$ax_cv_lib_readline"; then
38379 if test -z "$ax_cv_lib_readline"; then
38380 ax_cv_lib_readline="no"
38385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
38386 $as_echo "$ax_cv_lib_readline" >&6; }
38388 if test "$ax_cv_lib_readline" != "no"; then
38390 LIBS="$LIBS $ax_cv_lib_readline"
38391 READLINE_LIBS="$ax_cv_lib_readline"
38393 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
38395 for ac_header in readline.h readline/readline.h
38397 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38398 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
38399 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38400 cat >>confdefs.h <<_ACEOF
38401 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
38409 $as_echo_n "checking whether readline supports history... " >&6; }
38410 if ${ax_cv_lib_readline_history+:} false; then :
38411 $as_echo_n "(cached) " >&6
38414 ax_cv_lib_readline_history="no"
38415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38416 /* end confdefs.h. */
38418 /* Override any GCC internal prototype to avoid an error.
38419 Use char because int might match the return type of a GCC
38420 builtin and then its argument prototype would still apply. */
38424 char add_history ();
38428 return add_history ();
38433 if ac_fn_c_try_link "$LINENO"; then :
38434 ax_cv_lib_readline_history="yes"
38436 rm -f core conftest.err conftest.$ac_objext \
38437 conftest$ac_exeext conftest.$ac_ext
38440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
38441 $as_echo "$ax_cv_lib_readline_history" >&6; }
38442 if test "$ax_cv_lib_readline_history" = "yes"; then
38444 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
38446 for ac_header in history.h readline/history.h
38448 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38449 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
38450 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38451 cat >>confdefs.h <<_ACEOF
38452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38463 # no readline. if the user *really* wanted it, bail out.
38464 if test x"$want_readline" = x"yes"; then
38465 as_fn_error $? "*** No readline implementation found. Try using --with-libraries and --with-includes" "$LINENO" 5
38472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf in -lm" >&5
38473 $as_echo_n "checking for modf in -lm... " >&6; }
38474 if ${ac_cv_lib_m_modf+:} false; then :
38475 $as_echo_n "(cached) " >&6
38477 ac_check_lib_save_LIBS=$LIBS
38479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38480 /* end confdefs.h. */
38482 /* Override any GCC internal prototype to avoid an error.
38483 Use char because int might match the return type of a GCC
38484 builtin and then its argument prototype would still apply. */
38497 if ac_fn_c_try_link "$LINENO"; then :
38498 ac_cv_lib_m_modf=yes
38500 ac_cv_lib_m_modf=no
38502 rm -f core conftest.err conftest.$ac_objext \
38503 conftest$ac_exeext conftest.$ac_ext
38504 LIBS=$ac_check_lib_save_LIBS
38506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_modf" >&5
38507 $as_echo "$ac_cv_lib_m_modf" >&6; }
38508 if test "x$ac_cv_lib_m_modf" = xyes; then :
38509 cat >>confdefs.h <<_ACEOF
38510 #define HAVE_LIBM 1
38518 ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
38519 if test "x$ac_cv_header_execinfo_h" = xyes; then :
38521 ac_fn_c_check_func "$LINENO" "backtrace_symbols_fd" "ac_cv_func_backtrace_symbols_fd"
38522 if test "x$ac_cv_func_backtrace_symbols_fd" = xyes; then :
38525 $as_echo "#define HAVE_GLIBC_BACKTRACE 1" >>confdefs.h
38539 # Checks for library functions and if the function is declared in
38540 # an appropriate header file. Functions which exist, but for which
38541 # no declaration is available, are declared in common-src/amanda.h.
38542 # It's not clear that any existing system implements but does not
38543 # declare common functions such as these.
38547 for ac_func in accept
38549 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
38550 if test "x$ac_cv_func_accept" = xyes; then :
38551 cat >>confdefs.h <<_ACEOF
38552 #define HAVE_ACCEPT 1
38554 ice_have_accept=yes
38558 if test "${ice_have_accept}" = yes; then
38559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept declaration in sys/types.h sys/socket.h" >&5
38560 $as_echo_n "checking for accept declaration in sys/types.h sys/socket.h... " >&6; }
38561 if ${ice_cv_have_accept_decl+:} false; then :
38562 $as_echo_n "(cached) " >&6
38565 ice_cv_have_accept_decl=no
38566 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38567 ice_re_word='(^|[^a-zA-Z0-9_])'
38568 for header in sys/types.h sys/socket.h; do
38569 # Check for ordinary declaration
38570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38571 /* end confdefs.h. */
38575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38576 $EGREP "${ice_re_word}accept[ ]*\(" >/dev/null 2>&1; then :
38577 ice_cv_have_accept_decl=yes
38581 if test "$ice_cv_have_accept_decl" = yes; then
38584 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38586 /* end confdefs.h. */
38590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38591 $EGREP "${ice_re_word}accept[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38592 ice_cv_have_accept_decl=yes
38596 if test "$ice_cv_have_accept_decl" = yes; then
38603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_accept_decl" >&5
38604 $as_echo "$ice_cv_have_accept_decl" >&6; }
38605 if test "$ice_cv_have_accept_decl" = yes; then
38607 cat >>confdefs.h <<_ACEOF
38608 #define HAVE_ACCEPT_DECL 1
38614 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
38615 # for constant arguments. Useless!
38616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
38617 $as_echo_n "checking for working alloca.h... " >&6; }
38618 if ${ac_cv_working_alloca_h+:} false; then :
38619 $as_echo_n "(cached) " >&6
38621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38622 /* end confdefs.h. */
38623 #include <alloca.h>
38627 char *p = (char *) alloca (2 * sizeof (int));
38633 if ac_fn_c_try_link "$LINENO"; then :
38634 ac_cv_working_alloca_h=yes
38636 ac_cv_working_alloca_h=no
38638 rm -f core conftest.err conftest.$ac_objext \
38639 conftest$ac_exeext conftest.$ac_ext
38641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
38642 $as_echo "$ac_cv_working_alloca_h" >&6; }
38643 if test $ac_cv_working_alloca_h = yes; then
38645 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
38649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
38650 $as_echo_n "checking for alloca... " >&6; }
38651 if ${ac_cv_func_alloca_works+:} false; then :
38652 $as_echo_n "(cached) " >&6
38654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38655 /* end confdefs.h. */
38657 # define alloca __builtin_alloca
38660 # include <malloc.h>
38661 # define alloca _alloca
38663 # ifdef HAVE_ALLOCA_H
38664 # include <alloca.h>
38669 # ifndef alloca /* predefined by HP cc +Olibcalls */
38670 void *alloca (size_t);
38680 char *p = (char *) alloca (1);
38686 if ac_fn_c_try_link "$LINENO"; then :
38687 ac_cv_func_alloca_works=yes
38689 ac_cv_func_alloca_works=no
38691 rm -f core conftest.err conftest.$ac_objext \
38692 conftest$ac_exeext conftest.$ac_ext
38694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
38695 $as_echo "$ac_cv_func_alloca_works" >&6; }
38697 if test $ac_cv_func_alloca_works = yes; then
38699 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
38702 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
38703 # that cause trouble. Some versions do not even contain alloca or
38704 # contain a buggy version. If you still want to use their alloca,
38705 # use ar to extract alloca.o from them instead of compiling alloca.c.
38707 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
38709 $as_echo "#define C_ALLOCA 1" >>confdefs.h
38712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
38713 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
38714 if ${ac_cv_os_cray+:} false; then :
38715 $as_echo_n "(cached) " >&6
38717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38718 /* end confdefs.h. */
38719 #if defined CRAY && ! defined CRAY2
38726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38727 $EGREP "webecray" >/dev/null 2>&1; then :
38735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
38736 $as_echo "$ac_cv_os_cray" >&6; }
38737 if test $ac_cv_os_cray = yes; then
38738 for ac_func in _getb67 GETB67 getb67; do
38739 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38740 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
38741 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
38743 cat >>confdefs.h <<_ACEOF
38744 #define CRAY_STACKSEG_END $ac_func
38753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
38754 $as_echo_n "checking stack direction for C alloca... " >&6; }
38755 if ${ac_cv_c_stack_direction+:} false; then :
38756 $as_echo_n "(cached) " >&6
38758 if test "$cross_compiling" = yes; then :
38759 ac_cv_c_stack_direction=0
38761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38762 /* end confdefs.h. */
38763 $ac_includes_default
38765 find_stack_direction ()
38767 static char *addr = 0;
38772 return find_stack_direction ();
38775 return (&dummy > addr) ? 1 : -1;
38781 return find_stack_direction () < 0;
38784 if ac_fn_c_try_run "$LINENO"; then :
38785 ac_cv_c_stack_direction=1
38787 ac_cv_c_stack_direction=-1
38789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38790 conftest.$ac_objext conftest.beam conftest.$ac_ext
38794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
38795 $as_echo "$ac_cv_c_stack_direction" >&6; }
38796 cat >>confdefs.h <<_ACEOF
38797 #define STACK_DIRECTION $ac_cv_c_stack_direction
38803 for ac_func in atexit
38805 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
38806 if test "x$ac_cv_func_atexit" = xyes; then :
38807 cat >>confdefs.h <<_ACEOF
38808 #define HAVE_ATEXIT 1
38816 for ac_func in atof
38818 ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
38819 if test "x$ac_cv_func_atof" = xyes; then :
38820 cat >>confdefs.h <<_ACEOF
38821 #define HAVE_ATOF 1
38827 if test "${ice_have_atof}" = yes; then
38828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atof declaration in stdlib.h" >&5
38829 $as_echo_n "checking for atof declaration in stdlib.h... " >&6; }
38830 if ${ice_cv_have_atof_decl+:} false; then :
38831 $as_echo_n "(cached) " >&6
38834 ice_cv_have_atof_decl=no
38835 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38836 ice_re_word='(^|[^a-zA-Z0-9_])'
38837 for header in stdlib.h; do
38838 # Check for ordinary declaration
38839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38840 /* end confdefs.h. */
38844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38845 $EGREP "${ice_re_word}atof[ ]*\(" >/dev/null 2>&1; then :
38846 ice_cv_have_atof_decl=yes
38850 if test "$ice_cv_have_atof_decl" = yes; then
38853 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38855 /* end confdefs.h. */
38859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38860 $EGREP "${ice_re_word}atof[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38861 ice_cv_have_atof_decl=yes
38865 if test "$ice_cv_have_atof_decl" = yes; then
38872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_atof_decl" >&5
38873 $as_echo "$ice_cv_have_atof_decl" >&6; }
38874 if test "$ice_cv_have_atof_decl" = yes; then
38876 cat >>confdefs.h <<_ACEOF
38877 #define HAVE_ATOF_DECL 1
38885 for ac_func in atol
38887 ac_fn_c_check_func "$LINENO" "atol" "ac_cv_func_atol"
38888 if test "x$ac_cv_func_atol" = xyes; then :
38889 cat >>confdefs.h <<_ACEOF
38890 #define HAVE_ATOL 1
38896 if test "${ice_have_atol}" = yes; then
38897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atol declaration in stdlib.h" >&5
38898 $as_echo_n "checking for atol declaration in stdlib.h... " >&6; }
38899 if ${ice_cv_have_atol_decl+:} false; then :
38900 $as_echo_n "(cached) " >&6
38903 ice_cv_have_atol_decl=no
38904 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38905 ice_re_word='(^|[^a-zA-Z0-9_])'
38906 for header in stdlib.h; do
38907 # Check for ordinary declaration
38908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38909 /* end confdefs.h. */
38913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38914 $EGREP "${ice_re_word}atol[ ]*\(" >/dev/null 2>&1; then :
38915 ice_cv_have_atol_decl=yes
38919 if test "$ice_cv_have_atol_decl" = yes; then
38922 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38924 /* end confdefs.h. */
38928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38929 $EGREP "${ice_re_word}atol[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38930 ice_cv_have_atol_decl=yes
38934 if test "$ice_cv_have_atol_decl" = yes; then
38941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_atol_decl" >&5
38942 $as_echo "$ice_cv_have_atol_decl" >&6; }
38943 if test "$ice_cv_have_atol_decl" = yes; then
38945 cat >>confdefs.h <<_ACEOF
38946 #define HAVE_ATOL_DECL 1
38954 for ac_func in atoll
38956 ac_fn_c_check_func "$LINENO" "atoll" "ac_cv_func_atoll"
38957 if test "x$ac_cv_func_atoll" = xyes; then :
38958 cat >>confdefs.h <<_ACEOF
38959 #define HAVE_ATOLL 1
38965 if test "${ice_have_atoll}" = yes; then
38966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atoll declaration in stdlib.h" >&5
38967 $as_echo_n "checking for atoll declaration in stdlib.h... " >&6; }
38968 if ${ice_cv_have_atoll_decl+:} false; then :
38969 $as_echo_n "(cached) " >&6
38972 ice_cv_have_atoll_decl=no
38973 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38974 ice_re_word='(^|[^a-zA-Z0-9_])'
38975 for header in stdlib.h; do
38976 # Check for ordinary declaration
38977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38978 /* end confdefs.h. */
38982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38983 $EGREP "${ice_re_word}atoll[ ]*\(" >/dev/null 2>&1; then :
38984 ice_cv_have_atoll_decl=yes
38988 if test "$ice_cv_have_atoll_decl" = yes; then
38991 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38993 /* end confdefs.h. */
38997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38998 $EGREP "${ice_re_word}atoll[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38999 ice_cv_have_atoll_decl=yes
39003 if test "$ice_cv_have_atoll_decl" = yes; then
39010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_atoll_decl" >&5
39011 $as_echo "$ice_cv_have_atoll_decl" >&6; }
39012 if test "$ice_cv_have_atoll_decl" = yes; then
39014 cat >>confdefs.h <<_ACEOF
39015 #define HAVE_ATOLL_DECL 1
39023 for ac_func in strtol
39025 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
39026 if test "x$ac_cv_func_strtol" = xyes; then :
39027 cat >>confdefs.h <<_ACEOF
39028 #define HAVE_STRTOL 1
39030 ice_have_strtol=yes
39034 if test "${ice_have_strtol}" = yes; then
39035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtol declaration in stdlib.h" >&5
39036 $as_echo_n "checking for strtol declaration in stdlib.h... " >&6; }
39037 if ${ice_cv_have_strtol_decl+:} false; then :
39038 $as_echo_n "(cached) " >&6
39041 ice_cv_have_strtol_decl=no
39042 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39043 ice_re_word='(^|[^a-zA-Z0-9_])'
39044 for header in stdlib.h; do
39045 # Check for ordinary declaration
39046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39047 /* end confdefs.h. */
39051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39052 $EGREP "${ice_re_word}strtol[ ]*\(" >/dev/null 2>&1; then :
39053 ice_cv_have_strtol_decl=yes
39057 if test "$ice_cv_have_strtol_decl" = yes; then
39060 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39062 /* end confdefs.h. */
39066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39067 $EGREP "${ice_re_word}strtol[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39068 ice_cv_have_strtol_decl=yes
39072 if test "$ice_cv_have_strtol_decl" = yes; then
39079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strtol_decl" >&5
39080 $as_echo "$ice_cv_have_strtol_decl" >&6; }
39081 if test "$ice_cv_have_strtol_decl" = yes; then
39083 cat >>confdefs.h <<_ACEOF
39084 #define HAVE_STRTOL_DECL 1
39091 ice_have_strtoll=no
39092 for ac_func in strtoll
39094 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
39095 if test "x$ac_cv_func_strtoll" = xyes; then :
39096 cat >>confdefs.h <<_ACEOF
39097 #define HAVE_STRTOLL 1
39099 ice_have_strtoll=yes
39103 if test "${ice_have_strtoll}" = yes; then
39104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtoll declaration in stdlib.h" >&5
39105 $as_echo_n "checking for strtoll declaration in stdlib.h... " >&6; }
39106 if ${ice_cv_have_strtoll_decl+:} false; then :
39107 $as_echo_n "(cached) " >&6
39110 ice_cv_have_strtoll_decl=no
39111 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39112 ice_re_word='(^|[^a-zA-Z0-9_])'
39113 for header in stdlib.h; do
39114 # Check for ordinary declaration
39115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39116 /* end confdefs.h. */
39120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39121 $EGREP "${ice_re_word}strtoll[ ]*\(" >/dev/null 2>&1; then :
39122 ice_cv_have_strtoll_decl=yes
39126 if test "$ice_cv_have_strtoll_decl" = yes; then
39129 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39131 /* end confdefs.h. */
39135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39136 $EGREP "${ice_re_word}strtoll[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39137 ice_cv_have_strtoll_decl=yes
39141 if test "$ice_cv_have_strtoll_decl" = yes; then
39148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strtoll_decl" >&5
39149 $as_echo "$ice_cv_have_strtoll_decl" >&6; }
39150 if test "$ice_cv_have_strtoll_decl" = yes; then
39152 cat >>confdefs.h <<_ACEOF
39153 #define HAVE_STRTOLL_DECL 1
39159 for ac_func in basename
39161 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
39162 if test "x$ac_cv_func_basename" = xyes; then :
39163 cat >>confdefs.h <<_ACEOF
39164 #define HAVE_BASENAME 1
39172 for ac_func in bind
39174 ac_fn_c_check_func "$LINENO" "bind" "ac_cv_func_bind"
39175 if test "x$ac_cv_func_bind" = xyes; then :
39176 cat >>confdefs.h <<_ACEOF
39177 #define HAVE_BIND 1
39183 if test "${ice_have_bind}" = yes; then
39184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind declaration in sys/types.h sys/socket.h" >&5
39185 $as_echo_n "checking for bind declaration in sys/types.h sys/socket.h... " >&6; }
39186 if ${ice_cv_have_bind_decl+:} false; then :
39187 $as_echo_n "(cached) " >&6
39190 ice_cv_have_bind_decl=no
39191 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39192 ice_re_word='(^|[^a-zA-Z0-9_])'
39193 for header in sys/types.h sys/socket.h; do
39194 # Check for ordinary declaration
39195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39196 /* end confdefs.h. */
39200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39201 $EGREP "${ice_re_word}bind[ ]*\(" >/dev/null 2>&1; then :
39202 ice_cv_have_bind_decl=yes
39206 if test "$ice_cv_have_bind_decl" = yes; then
39209 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39211 /* end confdefs.h. */
39215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39216 $EGREP "${ice_re_word}bind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39217 ice_cv_have_bind_decl=yes
39221 if test "$ice_cv_have_bind_decl" = yes; then
39228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_bind_decl" >&5
39229 $as_echo "$ice_cv_have_bind_decl" >&6; }
39230 if test "$ice_cv_have_bind_decl" = yes; then
39232 cat >>confdefs.h <<_ACEOF
39233 #define HAVE_BIND_DECL 1
39241 for ac_func in bcopy
39243 ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
39244 if test "x$ac_cv_func_bcopy" = xyes; then :
39245 cat >>confdefs.h <<_ACEOF
39246 #define HAVE_BCOPY 1
39252 if test "${ice_have_bcopy}" = yes; then
39253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
39254 $as_echo_n "checking for bcopy declaration in string.h strings.h stdlib.h... " >&6; }
39255 if ${ice_cv_have_bcopy_decl+:} false; then :
39256 $as_echo_n "(cached) " >&6
39259 ice_cv_have_bcopy_decl=no
39260 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39261 ice_re_word='(^|[^a-zA-Z0-9_])'
39262 for header in string.h strings.h stdlib.h; do
39263 # Check for ordinary declaration
39264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39265 /* end confdefs.h. */
39269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39270 $EGREP "${ice_re_word}bcopy[ ]*\(" >/dev/null 2>&1; then :
39271 ice_cv_have_bcopy_decl=yes
39275 if test "$ice_cv_have_bcopy_decl" = yes; then
39278 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39280 /* end confdefs.h. */
39284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39285 $EGREP "${ice_re_word}bcopy[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39286 ice_cv_have_bcopy_decl=yes
39290 if test "$ice_cv_have_bcopy_decl" = yes; then
39297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_bcopy_decl" >&5
39298 $as_echo "$ice_cv_have_bcopy_decl" >&6; }
39299 if test "$ice_cv_have_bcopy_decl" = yes; then
39301 cat >>confdefs.h <<_ACEOF
39302 #define HAVE_BCOPY_DECL 1
39310 for ac_func in bzero
39312 ac_fn_c_check_func "$LINENO" "bzero" "ac_cv_func_bzero"
39313 if test "x$ac_cv_func_bzero" = xyes; then :
39314 cat >>confdefs.h <<_ACEOF
39315 #define HAVE_BZERO 1
39321 if test "${ice_have_bzero}" = yes; then
39322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzero declaration in string.h strings.h stdlib.h" >&5
39323 $as_echo_n "checking for bzero declaration in string.h strings.h stdlib.h... " >&6; }
39324 if ${ice_cv_have_bzero_decl+:} false; then :
39325 $as_echo_n "(cached) " >&6
39328 ice_cv_have_bzero_decl=no
39329 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39330 ice_re_word='(^|[^a-zA-Z0-9_])'
39331 for header in string.h strings.h stdlib.h; do
39332 # Check for ordinary declaration
39333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39334 /* end confdefs.h. */
39338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39339 $EGREP "${ice_re_word}bzero[ ]*\(" >/dev/null 2>&1; then :
39340 ice_cv_have_bzero_decl=yes
39344 if test "$ice_cv_have_bzero_decl" = yes; then
39347 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39349 /* end confdefs.h. */
39353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39354 $EGREP "${ice_re_word}bzero[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39355 ice_cv_have_bzero_decl=yes
39359 if test "$ice_cv_have_bzero_decl" = yes; then
39366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_bzero_decl" >&5
39367 $as_echo "$ice_cv_have_bzero_decl" >&6; }
39368 if test "$ice_cv_have_bzero_decl" = yes; then
39370 cat >>confdefs.h <<_ACEOF
39371 #define HAVE_BZERO_DECL 1
39377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
39378 $as_echo_n "checking whether closedir returns void... " >&6; }
39379 if ${ac_cv_func_closedir_void+:} false; then :
39380 $as_echo_n "(cached) " >&6
39382 if test "$cross_compiling" = yes; then :
39383 ac_cv_func_closedir_void=yes
39385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39386 /* end confdefs.h. */
39387 $ac_includes_default
39388 #include <$ac_header_dirent>
39389 #ifndef __cplusplus
39396 return closedir (opendir (".")) != 0;
39401 if ac_fn_c_try_run "$LINENO"; then :
39402 ac_cv_func_closedir_void=no
39404 ac_cv_func_closedir_void=yes
39406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39407 conftest.$ac_objext conftest.beam conftest.$ac_ext
39411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
39412 $as_echo "$ac_cv_func_closedir_void" >&6; }
39413 if test $ac_cv_func_closedir_void = yes; then
39415 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
39420 ice_have_closelog=no
39421 for ac_func in closelog
39423 ac_fn_c_check_func "$LINENO" "closelog" "ac_cv_func_closelog"
39424 if test "x$ac_cv_func_closelog" = xyes; then :
39425 cat >>confdefs.h <<_ACEOF
39426 #define HAVE_CLOSELOG 1
39428 ice_have_closelog=yes
39432 if test "${ice_have_closelog}" = yes; then
39433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for closelog declaration in syslog.h" >&5
39434 $as_echo_n "checking for closelog declaration in syslog.h... " >&6; }
39435 if ${ice_cv_have_closelog_decl+:} false; then :
39436 $as_echo_n "(cached) " >&6
39439 ice_cv_have_closelog_decl=no
39440 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39441 ice_re_word='(^|[^a-zA-Z0-9_])'
39442 for header in syslog.h; do
39443 # Check for ordinary declaration
39444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39445 /* end confdefs.h. */
39449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39450 $EGREP "${ice_re_word}closelog[ ]*\(" >/dev/null 2>&1; then :
39451 ice_cv_have_closelog_decl=yes
39455 if test "$ice_cv_have_closelog_decl" = yes; then
39458 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39460 /* end confdefs.h. */
39464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39465 $EGREP "${ice_re_word}closelog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39466 ice_cv_have_closelog_decl=yes
39470 if test "$ice_cv_have_closelog_decl" = yes; then
39477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_closelog_decl" >&5
39478 $as_echo "$ice_cv_have_closelog_decl" >&6; }
39479 if test "$ice_cv_have_closelog_decl" = yes; then
39481 cat >>confdefs.h <<_ACEOF
39482 #define HAVE_CLOSELOG_DECL 1
39489 ice_have_connect=no
39490 for ac_func in connect
39492 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
39493 if test "x$ac_cv_func_connect" = xyes; then :
39494 cat >>confdefs.h <<_ACEOF
39495 #define HAVE_CONNECT 1
39497 ice_have_connect=yes
39501 if test "${ice_have_connect}" = yes; then
39502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect declaration in sys/types.h sys/socket.h" >&5
39503 $as_echo_n "checking for connect declaration in sys/types.h sys/socket.h... " >&6; }
39504 if ${ice_cv_have_connect_decl+:} false; then :
39505 $as_echo_n "(cached) " >&6
39508 ice_cv_have_connect_decl=no
39509 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39510 ice_re_word='(^|[^a-zA-Z0-9_])'
39511 for header in sys/types.h sys/socket.h; do
39512 # Check for ordinary declaration
39513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39514 /* end confdefs.h. */
39518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39519 $EGREP "${ice_re_word}connect[ ]*\(" >/dev/null 2>&1; then :
39520 ice_cv_have_connect_decl=yes
39524 if test "$ice_cv_have_connect_decl" = yes; then
39527 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39529 /* end confdefs.h. */
39533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39534 $EGREP "${ice_re_word}connect[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39535 ice_cv_have_connect_decl=yes
39539 if test "$ice_cv_have_connect_decl" = yes; then
39546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_connect_decl" >&5
39547 $as_echo "$ice_cv_have_connect_decl" >&6; }
39548 if test "$ice_cv_have_connect_decl" = yes; then
39550 cat >>confdefs.h <<_ACEOF
39551 #define HAVE_CONNECT_DECL 1
39559 for ac_func in fclose
39561 ac_fn_c_check_func "$LINENO" "fclose" "ac_cv_func_fclose"
39562 if test "x$ac_cv_func_fclose" = xyes; then :
39563 cat >>confdefs.h <<_ACEOF
39564 #define HAVE_FCLOSE 1
39566 ice_have_fclose=yes
39570 if test "${ice_have_fclose}" = yes; then
39571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fclose declaration in stdio.h" >&5
39572 $as_echo_n "checking for fclose declaration in stdio.h... " >&6; }
39573 if ${ice_cv_have_fclose_decl+:} false; then :
39574 $as_echo_n "(cached) " >&6
39577 ice_cv_have_fclose_decl=no
39578 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39579 ice_re_word='(^|[^a-zA-Z0-9_])'
39580 for header in stdio.h; do
39581 # Check for ordinary declaration
39582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39583 /* end confdefs.h. */
39587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39588 $EGREP "${ice_re_word}fclose[ ]*\(" >/dev/null 2>&1; then :
39589 ice_cv_have_fclose_decl=yes
39593 if test "$ice_cv_have_fclose_decl" = yes; then
39596 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39598 /* end confdefs.h. */
39602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39603 $EGREP "${ice_re_word}fclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39604 ice_cv_have_fclose_decl=yes
39608 if test "$ice_cv_have_fclose_decl" = yes; then
39615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fclose_decl" >&5
39616 $as_echo "$ice_cv_have_fclose_decl" >&6; }
39617 if test "$ice_cv_have_fclose_decl" = yes; then
39619 cat >>confdefs.h <<_ACEOF
39620 #define HAVE_FCLOSE_DECL 1
39628 for ac_func in fflush
39630 ac_fn_c_check_func "$LINENO" "fflush" "ac_cv_func_fflush"
39631 if test "x$ac_cv_func_fflush" = xyes; then :
39632 cat >>confdefs.h <<_ACEOF
39633 #define HAVE_FFLUSH 1
39635 ice_have_fflush=yes
39639 if test "${ice_have_fflush}" = yes; then
39640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fflush declaration in stdio.h" >&5
39641 $as_echo_n "checking for fflush declaration in stdio.h... " >&6; }
39642 if ${ice_cv_have_fflush_decl+:} false; then :
39643 $as_echo_n "(cached) " >&6
39646 ice_cv_have_fflush_decl=no
39647 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39648 ice_re_word='(^|[^a-zA-Z0-9_])'
39649 for header in stdio.h; do
39650 # Check for ordinary declaration
39651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39652 /* end confdefs.h. */
39656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39657 $EGREP "${ice_re_word}fflush[ ]*\(" >/dev/null 2>&1; then :
39658 ice_cv_have_fflush_decl=yes
39662 if test "$ice_cv_have_fflush_decl" = yes; then
39665 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39667 /* end confdefs.h. */
39671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39672 $EGREP "${ice_re_word}fflush[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39673 ice_cv_have_fflush_decl=yes
39677 if test "$ice_cv_have_fflush_decl" = yes; then
39684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fflush_decl" >&5
39685 $as_echo "$ice_cv_have_fflush_decl" >&6; }
39686 if test "$ice_cv_have_fflush_decl" = yes; then
39688 cat >>confdefs.h <<_ACEOF
39689 #define HAVE_FFLUSH_DECL 1
39696 ice_have_fprintf=no
39697 for ac_func in fprintf
39699 ac_fn_c_check_func "$LINENO" "fprintf" "ac_cv_func_fprintf"
39700 if test "x$ac_cv_func_fprintf" = xyes; then :
39701 cat >>confdefs.h <<_ACEOF
39702 #define HAVE_FPRINTF 1
39704 ice_have_fprintf=yes
39708 if test "${ice_have_fprintf}" = yes; then
39709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fprintf declaration in stdio.h" >&5
39710 $as_echo_n "checking for fprintf declaration in stdio.h... " >&6; }
39711 if ${ice_cv_have_fprintf_decl+:} false; then :
39712 $as_echo_n "(cached) " >&6
39715 ice_cv_have_fprintf_decl=no
39716 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39717 ice_re_word='(^|[^a-zA-Z0-9_])'
39718 for header in stdio.h; do
39719 # Check for ordinary declaration
39720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39721 /* end confdefs.h. */
39725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39726 $EGREP "${ice_re_word}fprintf[ ]*\(" >/dev/null 2>&1; then :
39727 ice_cv_have_fprintf_decl=yes
39731 if test "$ice_cv_have_fprintf_decl" = yes; then
39734 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39736 /* end confdefs.h. */
39740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39741 $EGREP "${ice_re_word}fprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39742 ice_cv_have_fprintf_decl=yes
39746 if test "$ice_cv_have_fprintf_decl" = yes; then
39753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fprintf_decl" >&5
39754 $as_echo "$ice_cv_have_fprintf_decl" >&6; }
39755 if test "$ice_cv_have_fprintf_decl" = yes; then
39757 cat >>confdefs.h <<_ACEOF
39758 #define HAVE_FPRINTF_DECL 1
39766 for ac_func in fputc
39768 ac_fn_c_check_func "$LINENO" "fputc" "ac_cv_func_fputc"
39769 if test "x$ac_cv_func_fputc" = xyes; then :
39770 cat >>confdefs.h <<_ACEOF
39771 #define HAVE_FPUTC 1
39777 if test "${ice_have_fputc}" = yes; then
39778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fputc declaration in stdio.h" >&5
39779 $as_echo_n "checking for fputc declaration in stdio.h... " >&6; }
39780 if ${ice_cv_have_fputc_decl+:} false; then :
39781 $as_echo_n "(cached) " >&6
39784 ice_cv_have_fputc_decl=no
39785 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39786 ice_re_word='(^|[^a-zA-Z0-9_])'
39787 for header in stdio.h; do
39788 # Check for ordinary declaration
39789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39790 /* end confdefs.h. */
39794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39795 $EGREP "${ice_re_word}fputc[ ]*\(" >/dev/null 2>&1; then :
39796 ice_cv_have_fputc_decl=yes
39800 if test "$ice_cv_have_fputc_decl" = yes; then
39803 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39805 /* end confdefs.h. */
39809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39810 $EGREP "${ice_re_word}fputc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39811 ice_cv_have_fputc_decl=yes
39815 if test "$ice_cv_have_fputc_decl" = yes; then
39822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fputc_decl" >&5
39823 $as_echo "$ice_cv_have_fputc_decl" >&6; }
39824 if test "$ice_cv_have_fputc_decl" = yes; then
39826 cat >>confdefs.h <<_ACEOF
39827 #define HAVE_FPUTC_DECL 1
39835 for ac_func in fputs
39837 ac_fn_c_check_func "$LINENO" "fputs" "ac_cv_func_fputs"
39838 if test "x$ac_cv_func_fputs" = xyes; then :
39839 cat >>confdefs.h <<_ACEOF
39840 #define HAVE_FPUTS 1
39846 if test "${ice_have_fputs}" = yes; then
39847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fputs declaration in stdio.h" >&5
39848 $as_echo_n "checking for fputs declaration in stdio.h... " >&6; }
39849 if ${ice_cv_have_fputs_decl+:} false; then :
39850 $as_echo_n "(cached) " >&6
39853 ice_cv_have_fputs_decl=no
39854 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39855 ice_re_word='(^|[^a-zA-Z0-9_])'
39856 for header in stdio.h; do
39857 # Check for ordinary declaration
39858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39859 /* end confdefs.h. */
39863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39864 $EGREP "${ice_re_word}fputs[ ]*\(" >/dev/null 2>&1; then :
39865 ice_cv_have_fputs_decl=yes
39869 if test "$ice_cv_have_fputs_decl" = yes; then
39872 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39874 /* end confdefs.h. */
39878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39879 $EGREP "${ice_re_word}fputs[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39880 ice_cv_have_fputs_decl=yes
39884 if test "$ice_cv_have_fputs_decl" = yes; then
39891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fputs_decl" >&5
39892 $as_echo "$ice_cv_have_fputs_decl" >&6; }
39893 if test "$ice_cv_have_fputs_decl" = yes; then
39895 cat >>confdefs.h <<_ACEOF
39896 #define HAVE_FPUTS_DECL 1
39904 for ac_func in fread
39906 ac_fn_c_check_func "$LINENO" "fread" "ac_cv_func_fread"
39907 if test "x$ac_cv_func_fread" = xyes; then :
39908 cat >>confdefs.h <<_ACEOF
39909 #define HAVE_FREAD 1
39915 if test "${ice_have_fread}" = yes; then
39916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fread declaration in stdio.h stdlib.h" >&5
39917 $as_echo_n "checking for fread declaration in stdio.h stdlib.h... " >&6; }
39918 if ${ice_cv_have_fread_decl+:} false; then :
39919 $as_echo_n "(cached) " >&6
39922 ice_cv_have_fread_decl=no
39923 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39924 ice_re_word='(^|[^a-zA-Z0-9_])'
39925 for header in stdio.h stdlib.h; do
39926 # Check for ordinary declaration
39927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39928 /* end confdefs.h. */
39932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39933 $EGREP "${ice_re_word}fread[ ]*\(" >/dev/null 2>&1; then :
39934 ice_cv_have_fread_decl=yes
39938 if test "$ice_cv_have_fread_decl" = yes; then
39941 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39943 /* end confdefs.h. */
39947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39948 $EGREP "${ice_re_word}fread[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39949 ice_cv_have_fread_decl=yes
39953 if test "$ice_cv_have_fread_decl" = yes; then
39960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fread_decl" >&5
39961 $as_echo "$ice_cv_have_fread_decl" >&6; }
39962 if test "$ice_cv_have_fread_decl" = yes; then
39964 cat >>confdefs.h <<_ACEOF
39965 #define HAVE_FREAD_DECL 1
39973 for ac_func in fseek
39975 ac_fn_c_check_func "$LINENO" "fseek" "ac_cv_func_fseek"
39976 if test "x$ac_cv_func_fseek" = xyes; then :
39977 cat >>confdefs.h <<_ACEOF
39978 #define HAVE_FSEEK 1
39984 if test "${ice_have_fseek}" = yes; then
39985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseek declaration in stdio.h" >&5
39986 $as_echo_n "checking for fseek declaration in stdio.h... " >&6; }
39987 if ${ice_cv_have_fseek_decl+:} false; then :
39988 $as_echo_n "(cached) " >&6
39991 ice_cv_have_fseek_decl=no
39992 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39993 ice_re_word='(^|[^a-zA-Z0-9_])'
39994 for header in stdio.h; do
39995 # Check for ordinary declaration
39996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39997 /* end confdefs.h. */
40001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40002 $EGREP "${ice_re_word}fseek[ ]*\(" >/dev/null 2>&1; then :
40003 ice_cv_have_fseek_decl=yes
40007 if test "$ice_cv_have_fseek_decl" = yes; then
40010 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40012 /* end confdefs.h. */
40016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40017 $EGREP "${ice_re_word}fseek[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40018 ice_cv_have_fseek_decl=yes
40022 if test "$ice_cv_have_fseek_decl" = yes; then
40029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fseek_decl" >&5
40030 $as_echo "$ice_cv_have_fseek_decl" >&6; }
40031 if test "$ice_cv_have_fseek_decl" = yes; then
40033 cat >>confdefs.h <<_ACEOF
40034 #define HAVE_FSEEK_DECL 1
40042 for ac_func in fwrite
40044 ac_fn_c_check_func "$LINENO" "fwrite" "ac_cv_func_fwrite"
40045 if test "x$ac_cv_func_fwrite" = xyes; then :
40046 cat >>confdefs.h <<_ACEOF
40047 #define HAVE_FWRITE 1
40049 ice_have_fwrite=yes
40053 if test "${ice_have_fwrite}" = yes; then
40054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fwrite declaration in stdio.h stdlib.h" >&5
40055 $as_echo_n "checking for fwrite declaration in stdio.h stdlib.h... " >&6; }
40056 if ${ice_cv_have_fwrite_decl+:} false; then :
40057 $as_echo_n "(cached) " >&6
40060 ice_cv_have_fwrite_decl=no
40061 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40062 ice_re_word='(^|[^a-zA-Z0-9_])'
40063 for header in stdio.h stdlib.h; do
40064 # Check for ordinary declaration
40065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40066 /* end confdefs.h. */
40070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40071 $EGREP "${ice_re_word}fwrite[ ]*\(" >/dev/null 2>&1; then :
40072 ice_cv_have_fwrite_decl=yes
40076 if test "$ice_cv_have_fwrite_decl" = yes; then
40079 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40081 /* end confdefs.h. */
40085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40086 $EGREP "${ice_re_word}fwrite[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40087 ice_cv_have_fwrite_decl=yes
40091 if test "$ice_cv_have_fwrite_decl" = yes; then
40098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fwrite_decl" >&5
40099 $as_echo "$ice_cv_have_fwrite_decl" >&6; }
40100 if test "$ice_cv_have_fwrite_decl" = yes; then
40102 cat >>confdefs.h <<_ACEOF
40103 #define HAVE_FWRITE_DECL 1
40109 for ac_func in getgrgid_r
40111 ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r"
40112 if test "x$ac_cv_func_getgrgid_r" = xyes; then :
40113 cat >>confdefs.h <<_ACEOF
40114 #define HAVE_GETGRGID_R 1
40120 for ac_func in getpwuid_r
40122 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
40123 if test "x$ac_cv_func_getpwuid_r" = xyes; then :
40124 cat >>confdefs.h <<_ACEOF
40125 #define HAVE_GETPWUID_R 1
40132 ice_have_gethostname=no
40133 for ac_func in gethostname
40135 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
40136 if test "x$ac_cv_func_gethostname" = xyes; then :
40137 cat >>confdefs.h <<_ACEOF
40138 #define HAVE_GETHOSTNAME 1
40140 ice_have_gethostname=yes
40144 if test "${ice_have_gethostname}" = yes; then
40145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname declaration in unistd.h" >&5
40146 $as_echo_n "checking for gethostname declaration in unistd.h... " >&6; }
40147 if ${ice_cv_have_gethostname_decl+:} false; then :
40148 $as_echo_n "(cached) " >&6
40151 ice_cv_have_gethostname_decl=no
40152 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40153 ice_re_word='(^|[^a-zA-Z0-9_])'
40154 for header in unistd.h; do
40155 # Check for ordinary declaration
40156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40157 /* end confdefs.h. */
40161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40162 $EGREP "${ice_re_word}gethostname[ ]*\(" >/dev/null 2>&1; then :
40163 ice_cv_have_gethostname_decl=yes
40167 if test "$ice_cv_have_gethostname_decl" = yes; then
40170 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40172 /* end confdefs.h. */
40176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40177 $EGREP "${ice_re_word}gethostname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40178 ice_cv_have_gethostname_decl=yes
40182 if test "$ice_cv_have_gethostname_decl" = yes; then
40189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_gethostname_decl" >&5
40190 $as_echo "$ice_cv_have_gethostname_decl" >&6; }
40191 if test "$ice_cv_have_gethostname_decl" = yes; then
40193 cat >>confdefs.h <<_ACEOF
40194 #define HAVE_GETHOSTNAME_DECL 1
40202 for ac_func in getopt
40204 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
40205 if test "x$ac_cv_func_getopt" = xyes; then :
40206 cat >>confdefs.h <<_ACEOF
40207 #define HAVE_GETOPT 1
40209 ice_have_getopt=yes
40213 if test "${ice_have_getopt}" = yes; then
40214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
40215 $as_echo_n "checking for getopt declaration in stdlib.h unistd.h libc.h... " >&6; }
40216 if ${ice_cv_have_getopt_decl+:} false; then :
40217 $as_echo_n "(cached) " >&6
40220 ice_cv_have_getopt_decl=no
40221 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40222 ice_re_word='(^|[^a-zA-Z0-9_])'
40223 for header in stdlib.h unistd.h libc.h; do
40224 # Check for ordinary declaration
40225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40226 /* end confdefs.h. */
40230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40231 $EGREP "${ice_re_word}getopt[ ]*\(" >/dev/null 2>&1; then :
40232 ice_cv_have_getopt_decl=yes
40236 if test "$ice_cv_have_getopt_decl" = yes; then
40239 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40241 /* end confdefs.h. */
40245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40246 $EGREP "${ice_re_word}getopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40247 ice_cv_have_getopt_decl=yes
40251 if test "$ice_cv_have_getopt_decl" = yes; then
40258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getopt_decl" >&5
40259 $as_echo "$ice_cv_have_getopt_decl" >&6; }
40260 if test "$ice_cv_have_getopt_decl" = yes; then
40262 cat >>confdefs.h <<_ACEOF
40263 #define HAVE_GETOPT_DECL 1
40270 ice_have_getpeername=no
40271 for ac_func in getpeername
40273 ac_fn_c_check_func "$LINENO" "getpeername" "ac_cv_func_getpeername"
40274 if test "x$ac_cv_func_getpeername" = xyes; then :
40275 cat >>confdefs.h <<_ACEOF
40276 #define HAVE_GETPEERNAME 1
40278 ice_have_getpeername=yes
40282 if test "${ice_have_getpeername}" = yes; then
40283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
40284 $as_echo_n "checking for getpeername declaration in sys/types.h sys/socket.h... " >&6; }
40285 if ${ice_cv_have_getpeername_decl+:} false; then :
40286 $as_echo_n "(cached) " >&6
40289 ice_cv_have_getpeername_decl=no
40290 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40291 ice_re_word='(^|[^a-zA-Z0-9_])'
40292 for header in sys/types.h sys/socket.h; do
40293 # Check for ordinary declaration
40294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40295 /* end confdefs.h. */
40299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40300 $EGREP "${ice_re_word}getpeername[ ]*\(" >/dev/null 2>&1; then :
40301 ice_cv_have_getpeername_decl=yes
40305 if test "$ice_cv_have_getpeername_decl" = yes; then
40308 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40310 /* end confdefs.h. */
40314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40315 $EGREP "${ice_re_word}getpeername[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40316 ice_cv_have_getpeername_decl=yes
40320 if test "$ice_cv_have_getpeername_decl" = yes; then
40327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getpeername_decl" >&5
40328 $as_echo "$ice_cv_have_getpeername_decl" >&6; }
40329 if test "$ice_cv_have_getpeername_decl" = yes; then
40331 cat >>confdefs.h <<_ACEOF
40332 #define HAVE_GETPEERNAME_DECL 1
40338 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
40339 if test "x$ac_cv_func_getpgrp" = xyes; then :
40343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
40344 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
40345 if ${ac_cv_func_getpgrp_void+:} false; then :
40346 $as_echo_n "(cached) " >&6
40348 # Use it with a single arg.
40349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40350 /* end confdefs.h. */
40351 $ac_includes_default
40360 if ac_fn_c_try_compile "$LINENO"; then :
40361 ac_cv_func_getpgrp_void=no
40363 ac_cv_func_getpgrp_void=yes
40365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
40369 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
40370 if test $ac_cv_func_getpgrp_void = yes; then
40372 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
40377 ice_have_getsockname=no
40378 for ac_func in getsockname
40380 ac_fn_c_check_func "$LINENO" "getsockname" "ac_cv_func_getsockname"
40381 if test "x$ac_cv_func_getsockname" = xyes; then :
40382 cat >>confdefs.h <<_ACEOF
40383 #define HAVE_GETSOCKNAME 1
40385 ice_have_getsockname=yes
40389 if test "${ice_have_getsockname}" = yes; then
40390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
40391 $as_echo_n "checking for getsockname declaration in sys/types.h sys/socket.h... " >&6; }
40392 if ${ice_cv_have_getsockname_decl+:} false; then :
40393 $as_echo_n "(cached) " >&6
40396 ice_cv_have_getsockname_decl=no
40397 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40398 ice_re_word='(^|[^a-zA-Z0-9_])'
40399 for header in sys/types.h sys/socket.h; do
40400 # Check for ordinary declaration
40401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40402 /* end confdefs.h. */
40406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40407 $EGREP "${ice_re_word}getsockname[ ]*\(" >/dev/null 2>&1; then :
40408 ice_cv_have_getsockname_decl=yes
40412 if test "$ice_cv_have_getsockname_decl" = yes; then
40415 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40417 /* end confdefs.h. */
40421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40422 $EGREP "${ice_re_word}getsockname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40423 ice_cv_have_getsockname_decl=yes
40427 if test "$ice_cv_have_getsockname_decl" = yes; then
40434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getsockname_decl" >&5
40435 $as_echo "$ice_cv_have_getsockname_decl" >&6; }
40436 if test "$ice_cv_have_getsockname_decl" = yes; then
40438 cat >>confdefs.h <<_ACEOF
40439 #define HAVE_GETSOCKNAME_DECL 1
40446 ice_have_getsockopt=no
40447 for ac_func in getsockopt
40449 ac_fn_c_check_func "$LINENO" "getsockopt" "ac_cv_func_getsockopt"
40450 if test "x$ac_cv_func_getsockopt" = xyes; then :
40451 cat >>confdefs.h <<_ACEOF
40452 #define HAVE_GETSOCKOPT 1
40454 ice_have_getsockopt=yes
40458 if test "${ice_have_getsockopt}" = yes; then
40459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
40460 $as_echo_n "checking for getsockopt declaration in sys/types.h sys/socket.h... " >&6; }
40461 if ${ice_cv_have_getsockopt_decl+:} false; then :
40462 $as_echo_n "(cached) " >&6
40465 ice_cv_have_getsockopt_decl=no
40466 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40467 ice_re_word='(^|[^a-zA-Z0-9_])'
40468 for header in sys/types.h sys/socket.h; do
40469 # Check for ordinary declaration
40470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40471 /* end confdefs.h. */
40475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40476 $EGREP "${ice_re_word}getsockopt[ ]*\(" >/dev/null 2>&1; then :
40477 ice_cv_have_getsockopt_decl=yes
40481 if test "$ice_cv_have_getsockopt_decl" = yes; then
40484 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40486 /* end confdefs.h. */
40490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40491 $EGREP "${ice_re_word}getsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40492 ice_cv_have_getsockopt_decl=yes
40496 if test "$ice_cv_have_getsockopt_decl" = yes; then
40503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getsockopt_decl" >&5
40504 $as_echo "$ice_cv_have_getsockopt_decl" >&6; }
40505 if test "$ice_cv_have_getsockopt_decl" = yes; then
40507 cat >>confdefs.h <<_ACEOF
40508 #define HAVE_GETSOCKOPT_DECL 1
40515 ice_have_initgroups=no
40516 for ac_func in initgroups
40518 ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
40519 if test "x$ac_cv_func_initgroups" = xyes; then :
40520 cat >>confdefs.h <<_ACEOF
40521 #define HAVE_INITGROUPS 1
40523 ice_have_initgroups=yes
40527 if test "${ice_have_initgroups}" = yes; then
40528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
40529 $as_echo_n "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... " >&6; }
40530 if ${ice_cv_have_initgroups_decl+:} false; then :
40531 $as_echo_n "(cached) " >&6
40534 ice_cv_have_initgroups_decl=no
40535 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40536 ice_re_word='(^|[^a-zA-Z0-9_])'
40537 for header in grp.h sys/types.h unistd.h libc.h; do
40538 # Check for ordinary declaration
40539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40540 /* end confdefs.h. */
40544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40545 $EGREP "${ice_re_word}initgroups[ ]*\(" >/dev/null 2>&1; then :
40546 ice_cv_have_initgroups_decl=yes
40550 if test "$ice_cv_have_initgroups_decl" = yes; then
40553 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40555 /* end confdefs.h. */
40559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40560 $EGREP "${ice_re_word}initgroups[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40561 ice_cv_have_initgroups_decl=yes
40565 if test "$ice_cv_have_initgroups_decl" = yes; then
40572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_initgroups_decl" >&5
40573 $as_echo "$ice_cv_have_initgroups_decl" >&6; }
40574 if test "$ice_cv_have_initgroups_decl" = yes; then
40576 cat >>confdefs.h <<_ACEOF
40577 #define HAVE_INITGROUPS_DECL 1
40585 for ac_func in ioctl
40587 ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl"
40588 if test "x$ac_cv_func_ioctl" = xyes; then :
40589 cat >>confdefs.h <<_ACEOF
40590 #define HAVE_IOCTL 1
40596 if test "${ice_have_ioctl}" = yes; then
40597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
40598 $as_echo_n "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... " >&6; }
40599 if ${ice_cv_have_ioctl_decl+:} false; then :
40600 $as_echo_n "(cached) " >&6
40603 ice_cv_have_ioctl_decl=no
40604 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40605 ice_re_word='(^|[^a-zA-Z0-9_])'
40606 for header in sys/ioctl.h unistd.h libc.h; do
40607 # Check for ordinary declaration
40608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40609 /* end confdefs.h. */
40613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40614 $EGREP "${ice_re_word}ioctl[ ]*\(" >/dev/null 2>&1; then :
40615 ice_cv_have_ioctl_decl=yes
40619 if test "$ice_cv_have_ioctl_decl" = yes; then
40622 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40624 /* end confdefs.h. */
40628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40629 $EGREP "${ice_re_word}ioctl[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40630 ice_cv_have_ioctl_decl=yes
40634 if test "$ice_cv_have_ioctl_decl" = yes; then
40641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_ioctl_decl" >&5
40642 $as_echo "$ice_cv_have_ioctl_decl" >&6; }
40643 if test "$ice_cv_have_ioctl_decl" = yes; then
40645 cat >>confdefs.h <<_ACEOF
40646 #define HAVE_IOCTL_DECL 1
40653 ice_have_isnormal=no
40654 for ac_func in isnormal
40656 ac_fn_c_check_func "$LINENO" "isnormal" "ac_cv_func_isnormal"
40657 if test "x$ac_cv_func_isnormal" = xyes; then :
40658 cat >>confdefs.h <<_ACEOF
40659 #define HAVE_ISNORMAL 1
40661 ice_have_isnormal=yes
40665 if test "${ice_have_isnormal}" = yes; then
40666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnormal declaration in math.h" >&5
40667 $as_echo_n "checking for isnormal declaration in math.h... " >&6; }
40668 if ${ice_cv_have_isnormal_decl+:} false; then :
40669 $as_echo_n "(cached) " >&6
40672 ice_cv_have_isnormal_decl=no
40673 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40674 ice_re_word='(^|[^a-zA-Z0-9_])'
40675 for header in math.h; do
40676 # Check for ordinary declaration
40677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40678 /* end confdefs.h. */
40682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40683 $EGREP "${ice_re_word}isnormal[ ]*\(" >/dev/null 2>&1; then :
40684 ice_cv_have_isnormal_decl=yes
40688 if test "$ice_cv_have_isnormal_decl" = yes; then
40691 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40693 /* end confdefs.h. */
40697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40698 $EGREP "${ice_re_word}isnormal[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40699 ice_cv_have_isnormal_decl=yes
40703 if test "$ice_cv_have_isnormal_decl" = yes; then
40710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_isnormal_decl" >&5
40711 $as_echo "$ice_cv_have_isnormal_decl" >&6; }
40712 if test "$ice_cv_have_isnormal_decl" = yes; then
40714 cat >>confdefs.h <<_ACEOF
40715 #define HAVE_ISNORMAL_DECL 1
40723 for ac_func in listen
40725 ac_fn_c_check_func "$LINENO" "listen" "ac_cv_func_listen"
40726 if test "x$ac_cv_func_listen" = xyes; then :
40727 cat >>confdefs.h <<_ACEOF
40728 #define HAVE_LISTEN 1
40730 ice_have_listen=yes
40734 if test "${ice_have_listen}" = yes; then
40735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for listen declaration in sys/types.h sys/socket.h" >&5
40736 $as_echo_n "checking for listen declaration in sys/types.h sys/socket.h... " >&6; }
40737 if ${ice_cv_have_listen_decl+:} false; then :
40738 $as_echo_n "(cached) " >&6
40741 ice_cv_have_listen_decl=no
40742 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40743 ice_re_word='(^|[^a-zA-Z0-9_])'
40744 for header in sys/types.h sys/socket.h; do
40745 # Check for ordinary declaration
40746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40747 /* end confdefs.h. */
40751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40752 $EGREP "${ice_re_word}listen[ ]*\(" >/dev/null 2>&1; then :
40753 ice_cv_have_listen_decl=yes
40757 if test "$ice_cv_have_listen_decl" = yes; then
40760 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40762 /* end confdefs.h. */
40766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40767 $EGREP "${ice_re_word}listen[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40768 ice_cv_have_listen_decl=yes
40772 if test "$ice_cv_have_listen_decl" = yes; then
40779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_listen_decl" >&5
40780 $as_echo "$ice_cv_have_listen_decl" >&6; }
40781 if test "$ice_cv_have_listen_decl" = yes; then
40783 cat >>confdefs.h <<_ACEOF
40784 #define HAVE_LISTEN_DECL 1
40792 for ac_func in lstat
40794 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
40795 if test "x$ac_cv_func_lstat" = xyes; then :
40796 cat >>confdefs.h <<_ACEOF
40797 #define HAVE_LSTAT 1
40803 if test "${ice_have_lstat}" = yes; then
40804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat declaration in sys/types.h sys/stat.h" >&5
40805 $as_echo_n "checking for lstat declaration in sys/types.h sys/stat.h... " >&6; }
40806 if ${ice_cv_have_lstat_decl+:} false; then :
40807 $as_echo_n "(cached) " >&6
40810 ice_cv_have_lstat_decl=no
40811 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40812 ice_re_word='(^|[^a-zA-Z0-9_])'
40813 for header in sys/types.h sys/stat.h; do
40814 # Check for ordinary declaration
40815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40816 /* end confdefs.h. */
40820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40821 $EGREP "${ice_re_word}lstat[ ]*\(" >/dev/null 2>&1; then :
40822 ice_cv_have_lstat_decl=yes
40826 if test "$ice_cv_have_lstat_decl" = yes; then
40829 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40831 /* end confdefs.h. */
40835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40836 $EGREP "${ice_re_word}lstat[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40837 ice_cv_have_lstat_decl=yes
40841 if test "$ice_cv_have_lstat_decl" = yes; then
40848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_lstat_decl" >&5
40849 $as_echo "$ice_cv_have_lstat_decl" >&6; }
40850 if test "$ice_cv_have_lstat_decl" = yes; then
40852 cat >>confdefs.h <<_ACEOF
40853 #define HAVE_LSTAT_DECL 1
40861 for ac_func in malloc
40863 ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
40864 if test "x$ac_cv_func_malloc" = xyes; then :
40865 cat >>confdefs.h <<_ACEOF
40866 #define HAVE_MALLOC 1
40868 ice_have_malloc=yes
40872 if test "${ice_have_malloc}" = yes; then
40873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc declaration in stdlib.h" >&5
40874 $as_echo_n "checking for malloc declaration in stdlib.h... " >&6; }
40875 if ${ice_cv_have_malloc_decl+:} false; then :
40876 $as_echo_n "(cached) " >&6
40879 ice_cv_have_malloc_decl=no
40880 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40881 ice_re_word='(^|[^a-zA-Z0-9_])'
40882 for header in stdlib.h; do
40883 # Check for ordinary declaration
40884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40885 /* end confdefs.h. */
40889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40890 $EGREP "${ice_re_word}malloc[ ]*\(" >/dev/null 2>&1; then :
40891 ice_cv_have_malloc_decl=yes
40895 if test "$ice_cv_have_malloc_decl" = yes; then
40898 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40900 /* end confdefs.h. */
40904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40905 $EGREP "${ice_re_word}malloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40906 ice_cv_have_malloc_decl=yes
40910 if test "$ice_cv_have_malloc_decl" = yes; then
40917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_malloc_decl" >&5
40918 $as_echo "$ice_cv_have_malloc_decl" >&6; }
40919 if test "$ice_cv_have_malloc_decl" = yes; then
40921 cat >>confdefs.h <<_ACEOF
40922 #define HAVE_MALLOC_DECL 1
40929 ice_have_memmove=no
40930 for ac_func in memmove
40932 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
40933 if test "x$ac_cv_func_memmove" = xyes; then :
40934 cat >>confdefs.h <<_ACEOF
40935 #define HAVE_MEMMOVE 1
40937 ice_have_memmove=yes
40941 if test "${ice_have_memmove}" = yes; then
40942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memmove declaration in string.h strings.h" >&5
40943 $as_echo_n "checking for memmove declaration in string.h strings.h... " >&6; }
40944 if ${ice_cv_have_memmove_decl+:} false; then :
40945 $as_echo_n "(cached) " >&6
40948 ice_cv_have_memmove_decl=no
40949 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40950 ice_re_word='(^|[^a-zA-Z0-9_])'
40951 for header in string.h strings.h; do
40952 # Check for ordinary declaration
40953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40954 /* end confdefs.h. */
40958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40959 $EGREP "${ice_re_word}memmove[ ]*\(" >/dev/null 2>&1; then :
40960 ice_cv_have_memmove_decl=yes
40964 if test "$ice_cv_have_memmove_decl" = yes; then
40967 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40969 /* end confdefs.h. */
40973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40974 $EGREP "${ice_re_word}memmove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40975 ice_cv_have_memmove_decl=yes
40979 if test "$ice_cv_have_memmove_decl" = yes; then
40986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_memmove_decl" >&5
40987 $as_echo "$ice_cv_have_memmove_decl" >&6; }
40988 if test "$ice_cv_have_memmove_decl" = yes; then
40990 cat >>confdefs.h <<_ACEOF
40991 #define HAVE_MEMMOVE_DECL 1
40999 for ac_func in memset
41001 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
41002 if test "x$ac_cv_func_memset" = xyes; then :
41003 cat >>confdefs.h <<_ACEOF
41004 #define HAVE_MEMSET 1
41006 ice_have_memset=yes
41010 if test "${ice_have_memset}" = yes; then
41011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memset declaration in string.h strings.h" >&5
41012 $as_echo_n "checking for memset declaration in string.h strings.h... " >&6; }
41013 if ${ice_cv_have_memset_decl+:} false; then :
41014 $as_echo_n "(cached) " >&6
41017 ice_cv_have_memset_decl=no
41018 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41019 ice_re_word='(^|[^a-zA-Z0-9_])'
41020 for header in string.h strings.h; do
41021 # Check for ordinary declaration
41022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41023 /* end confdefs.h. */
41027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41028 $EGREP "${ice_re_word}memset[ ]*\(" >/dev/null 2>&1; then :
41029 ice_cv_have_memset_decl=yes
41033 if test "$ice_cv_have_memset_decl" = yes; then
41036 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41038 /* end confdefs.h. */
41042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41043 $EGREP "${ice_re_word}memset[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41044 ice_cv_have_memset_decl=yes
41048 if test "$ice_cv_have_memset_decl" = yes; then
41055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_memset_decl" >&5
41056 $as_echo "$ice_cv_have_memset_decl" >&6; }
41057 if test "$ice_cv_have_memset_decl" = yes; then
41059 cat >>confdefs.h <<_ACEOF
41060 #define HAVE_MEMSET_DECL 1
41067 ice_have_mkstemp=no
41068 for ac_func in mkstemp
41070 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
41071 if test "x$ac_cv_func_mkstemp" = xyes; then :
41072 cat >>confdefs.h <<_ACEOF
41073 #define HAVE_MKSTEMP 1
41075 ice_have_mkstemp=yes
41079 if test "${ice_have_mkstemp}" = yes; then
41080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkstemp declaration in stdlib.h" >&5
41081 $as_echo_n "checking for mkstemp declaration in stdlib.h... " >&6; }
41082 if ${ice_cv_have_mkstemp_decl+:} false; then :
41083 $as_echo_n "(cached) " >&6
41086 ice_cv_have_mkstemp_decl=no
41087 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41088 ice_re_word='(^|[^a-zA-Z0-9_])'
41089 for header in stdlib.h; do
41090 # Check for ordinary declaration
41091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41092 /* end confdefs.h. */
41096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41097 $EGREP "${ice_re_word}mkstemp[ ]*\(" >/dev/null 2>&1; then :
41098 ice_cv_have_mkstemp_decl=yes
41102 if test "$ice_cv_have_mkstemp_decl" = yes; then
41105 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41107 /* end confdefs.h. */
41111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41112 $EGREP "${ice_re_word}mkstemp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41113 ice_cv_have_mkstemp_decl=yes
41117 if test "$ice_cv_have_mkstemp_decl" = yes; then
41124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_mkstemp_decl" >&5
41125 $as_echo "$ice_cv_have_mkstemp_decl" >&6; }
41126 if test "$ice_cv_have_mkstemp_decl" = yes; then
41128 cat >>confdefs.h <<_ACEOF
41129 #define HAVE_MKSTEMP_DECL 1
41137 for ac_func in mktemp
41139 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
41140 if test "x$ac_cv_func_mktemp" = xyes; then :
41141 cat >>confdefs.h <<_ACEOF
41142 #define HAVE_MKTEMP 1
41144 ice_have_mktemp=yes
41148 if test "${ice_have_mktemp}" = yes; then
41149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mktemp declaration in stdlib.h" >&5
41150 $as_echo_n "checking for mktemp declaration in stdlib.h... " >&6; }
41151 if ${ice_cv_have_mktemp_decl+:} false; then :
41152 $as_echo_n "(cached) " >&6
41155 ice_cv_have_mktemp_decl=no
41156 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41157 ice_re_word='(^|[^a-zA-Z0-9_])'
41158 for header in stdlib.h; do
41159 # Check for ordinary declaration
41160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41161 /* end confdefs.h. */
41165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41166 $EGREP "${ice_re_word}mktemp[ ]*\(" >/dev/null 2>&1; then :
41167 ice_cv_have_mktemp_decl=yes
41171 if test "$ice_cv_have_mktemp_decl" = yes; then
41174 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41176 /* end confdefs.h. */
41180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41181 $EGREP "${ice_re_word}mktemp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41182 ice_cv_have_mktemp_decl=yes
41186 if test "$ice_cv_have_mktemp_decl" = yes; then
41193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_mktemp_decl" >&5
41194 $as_echo "$ice_cv_have_mktemp_decl" >&6; }
41195 if test "$ice_cv_have_mktemp_decl" = yes; then
41197 cat >>confdefs.h <<_ACEOF
41198 #define HAVE_MKTEMP_DECL 1
41206 for ac_func in mktime
41208 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
41209 if test "x$ac_cv_func_mktime" = xyes; then :
41210 cat >>confdefs.h <<_ACEOF
41211 #define HAVE_MKTIME 1
41213 ice_have_mktime=yes
41217 if test "${ice_have_mktime}" = yes; then
41218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mktime declaration in time.h sys/time.h" >&5
41219 $as_echo_n "checking for mktime declaration in time.h sys/time.h... " >&6; }
41220 if ${ice_cv_have_mktime_decl+:} false; then :
41221 $as_echo_n "(cached) " >&6
41224 ice_cv_have_mktime_decl=no
41225 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41226 ice_re_word='(^|[^a-zA-Z0-9_])'
41227 for header in time.h sys/time.h; do
41228 # Check for ordinary declaration
41229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41230 /* end confdefs.h. */
41234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41235 $EGREP "${ice_re_word}mktime[ ]*\(" >/dev/null 2>&1; then :
41236 ice_cv_have_mktime_decl=yes
41240 if test "$ice_cv_have_mktime_decl" = yes; then
41243 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41245 /* end confdefs.h. */
41249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41250 $EGREP "${ice_re_word}mktime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41251 ice_cv_have_mktime_decl=yes
41255 if test "$ice_cv_have_mktime_decl" = yes; then
41262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_mktime_decl" >&5
41263 $as_echo "$ice_cv_have_mktime_decl" >&6; }
41264 if test "$ice_cv_have_mktime_decl" = yes; then
41266 cat >>confdefs.h <<_ACEOF
41267 #define HAVE_MKTIME_DECL 1
41273 for ac_func in on_exit
41275 ac_fn_c_check_func "$LINENO" "on_exit" "ac_cv_func_on_exit"
41276 if test "x$ac_cv_func_on_exit" = xyes; then :
41277 cat >>confdefs.h <<_ACEOF
41278 #define HAVE_ON_EXIT 1
41285 ice_have_openlog=no
41286 for ac_func in openlog
41288 ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
41289 if test "x$ac_cv_func_openlog" = xyes; then :
41290 cat >>confdefs.h <<_ACEOF
41291 #define HAVE_OPENLOG 1
41293 ice_have_openlog=yes
41297 if test "${ice_have_openlog}" = yes; then
41298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openlog declaration in syslog.h" >&5
41299 $as_echo_n "checking for openlog declaration in syslog.h... " >&6; }
41300 if ${ice_cv_have_openlog_decl+:} false; then :
41301 $as_echo_n "(cached) " >&6
41304 ice_cv_have_openlog_decl=no
41305 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41306 ice_re_word='(^|[^a-zA-Z0-9_])'
41307 for header in syslog.h; do
41308 # Check for ordinary declaration
41309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41310 /* end confdefs.h. */
41314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41315 $EGREP "${ice_re_word}openlog[ ]*\(" >/dev/null 2>&1; then :
41316 ice_cv_have_openlog_decl=yes
41320 if test "$ice_cv_have_openlog_decl" = yes; then
41323 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41325 /* end confdefs.h. */
41329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41330 $EGREP "${ice_re_word}openlog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41331 ice_cv_have_openlog_decl=yes
41335 if test "$ice_cv_have_openlog_decl" = yes; then
41342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_openlog_decl" >&5
41343 $as_echo "$ice_cv_have_openlog_decl" >&6; }
41344 if test "$ice_cv_have_openlog_decl" = yes; then
41346 cat >>confdefs.h <<_ACEOF
41347 #define HAVE_OPENLOG_DECL 1
41355 for ac_func in pclose
41357 ac_fn_c_check_func "$LINENO" "pclose" "ac_cv_func_pclose"
41358 if test "x$ac_cv_func_pclose" = xyes; then :
41359 cat >>confdefs.h <<_ACEOF
41360 #define HAVE_PCLOSE 1
41362 ice_have_pclose=yes
41366 if test "${ice_have_pclose}" = yes; then
41367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pclose declaration in stdio.h" >&5
41368 $as_echo_n "checking for pclose declaration in stdio.h... " >&6; }
41369 if ${ice_cv_have_pclose_decl+:} false; then :
41370 $as_echo_n "(cached) " >&6
41373 ice_cv_have_pclose_decl=no
41374 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41375 ice_re_word='(^|[^a-zA-Z0-9_])'
41376 for header in stdio.h; do
41377 # Check for ordinary declaration
41378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41379 /* end confdefs.h. */
41383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41384 $EGREP "${ice_re_word}pclose[ ]*\(" >/dev/null 2>&1; then :
41385 ice_cv_have_pclose_decl=yes
41389 if test "$ice_cv_have_pclose_decl" = yes; then
41392 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41394 /* end confdefs.h. */
41398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41399 $EGREP "${ice_re_word}pclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41400 ice_cv_have_pclose_decl=yes
41404 if test "$ice_cv_have_pclose_decl" = yes; then
41411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_pclose_decl" >&5
41412 $as_echo "$ice_cv_have_pclose_decl" >&6; }
41413 if test "$ice_cv_have_pclose_decl" = yes; then
41415 cat >>confdefs.h <<_ACEOF
41416 #define HAVE_PCLOSE_DECL 1
41424 for ac_func in perror
41426 ac_fn_c_check_func "$LINENO" "perror" "ac_cv_func_perror"
41427 if test "x$ac_cv_func_perror" = xyes; then :
41428 cat >>confdefs.h <<_ACEOF
41429 #define HAVE_PERROR 1
41431 ice_have_perror=yes
41435 if test "${ice_have_perror}" = yes; then
41436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perror declaration in stdio.h" >&5
41437 $as_echo_n "checking for perror declaration in stdio.h... " >&6; }
41438 if ${ice_cv_have_perror_decl+:} false; then :
41439 $as_echo_n "(cached) " >&6
41442 ice_cv_have_perror_decl=no
41443 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41444 ice_re_word='(^|[^a-zA-Z0-9_])'
41445 for header in stdio.h; do
41446 # Check for ordinary declaration
41447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41448 /* end confdefs.h. */
41452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41453 $EGREP "${ice_re_word}perror[ ]*\(" >/dev/null 2>&1; then :
41454 ice_cv_have_perror_decl=yes
41458 if test "$ice_cv_have_perror_decl" = yes; then
41461 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41463 /* end confdefs.h. */
41467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41468 $EGREP "${ice_re_word}perror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41469 ice_cv_have_perror_decl=yes
41473 if test "$ice_cv_have_perror_decl" = yes; then
41480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_perror_decl" >&5
41481 $as_echo "$ice_cv_have_perror_decl" >&6; }
41482 if test "$ice_cv_have_perror_decl" = yes; then
41484 cat >>confdefs.h <<_ACEOF
41485 #define HAVE_PERROR_DECL 1
41493 for ac_func in printf
41495 ac_fn_c_check_func "$LINENO" "printf" "ac_cv_func_printf"
41496 if test "x$ac_cv_func_printf" = xyes; then :
41497 cat >>confdefs.h <<_ACEOF
41498 #define HAVE_PRINTF 1
41500 ice_have_printf=yes
41504 if test "${ice_have_printf}" = yes; then
41505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf declaration in stdio.h" >&5
41506 $as_echo_n "checking for printf declaration in stdio.h... " >&6; }
41507 if ${ice_cv_have_printf_decl+:} false; then :
41508 $as_echo_n "(cached) " >&6
41511 ice_cv_have_printf_decl=no
41512 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41513 ice_re_word='(^|[^a-zA-Z0-9_])'
41514 for header in stdio.h; do
41515 # Check for ordinary declaration
41516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41517 /* end confdefs.h. */
41521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41522 $EGREP "${ice_re_word}printf[ ]*\(" >/dev/null 2>&1; then :
41523 ice_cv_have_printf_decl=yes
41527 if test "$ice_cv_have_printf_decl" = yes; then
41530 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41532 /* end confdefs.h. */
41536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41537 $EGREP "${ice_re_word}printf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41538 ice_cv_have_printf_decl=yes
41542 if test "$ice_cv_have_printf_decl" = yes; then
41549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_printf_decl" >&5
41550 $as_echo "$ice_cv_have_printf_decl" >&6; }
41551 if test "$ice_cv_have_printf_decl" = yes; then
41553 cat >>confdefs.h <<_ACEOF
41554 #define HAVE_PRINTF_DECL 1
41560 for ac_func in putenv
41562 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
41563 if test "x$ac_cv_func_putenv" = xyes; then :
41564 cat >>confdefs.h <<_ACEOF
41565 #define HAVE_PUTENV 1
41573 for ac_func in puts
41575 ac_fn_c_check_func "$LINENO" "puts" "ac_cv_func_puts"
41576 if test "x$ac_cv_func_puts" = xyes; then :
41577 cat >>confdefs.h <<_ACEOF
41578 #define HAVE_PUTS 1
41584 if test "${ice_have_puts}" = yes; then
41585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts declaration in stdio.h" >&5
41586 $as_echo_n "checking for puts declaration in stdio.h... " >&6; }
41587 if ${ice_cv_have_puts_decl+:} false; then :
41588 $as_echo_n "(cached) " >&6
41591 ice_cv_have_puts_decl=no
41592 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41593 ice_re_word='(^|[^a-zA-Z0-9_])'
41594 for header in stdio.h; do
41595 # Check for ordinary declaration
41596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41597 /* end confdefs.h. */
41601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41602 $EGREP "${ice_re_word}puts[ ]*\(" >/dev/null 2>&1; then :
41603 ice_cv_have_puts_decl=yes
41607 if test "$ice_cv_have_puts_decl" = yes; then
41610 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41612 /* end confdefs.h. */
41616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41617 $EGREP "${ice_re_word}puts[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41618 ice_cv_have_puts_decl=yes
41622 if test "$ice_cv_have_puts_decl" = yes; then
41629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_puts_decl" >&5
41630 $as_echo "$ice_cv_have_puts_decl" >&6; }
41631 if test "$ice_cv_have_puts_decl" = yes; then
41633 cat >>confdefs.h <<_ACEOF
41634 #define HAVE_PUTS_DECL 1
41641 ice_have_realloc=no
41642 for ac_func in realloc
41644 ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
41645 if test "x$ac_cv_func_realloc" = xyes; then :
41646 cat >>confdefs.h <<_ACEOF
41647 #define HAVE_REALLOC 1
41649 ice_have_realloc=yes
41653 if test "${ice_have_realloc}" = yes; then
41654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for realloc declaration in stdlib.h" >&5
41655 $as_echo_n "checking for realloc declaration in stdlib.h... " >&6; }
41656 if ${ice_cv_have_realloc_decl+:} false; then :
41657 $as_echo_n "(cached) " >&6
41660 ice_cv_have_realloc_decl=no
41661 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41662 ice_re_word='(^|[^a-zA-Z0-9_])'
41663 for header in stdlib.h; do
41664 # Check for ordinary declaration
41665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41666 /* end confdefs.h. */
41670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41671 $EGREP "${ice_re_word}realloc[ ]*\(" >/dev/null 2>&1; then :
41672 ice_cv_have_realloc_decl=yes
41676 if test "$ice_cv_have_realloc_decl" = yes; then
41679 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41681 /* end confdefs.h. */
41685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41686 $EGREP "${ice_re_word}realloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41687 ice_cv_have_realloc_decl=yes
41691 if test "$ice_cv_have_realloc_decl" = yes; then
41698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_realloc_decl" >&5
41699 $as_echo "$ice_cv_have_realloc_decl" >&6; }
41700 if test "$ice_cv_have_realloc_decl" = yes; then
41702 cat >>confdefs.h <<_ACEOF
41703 #define HAVE_REALLOC_DECL 1
41710 ice_have_recvfrom=no
41711 for ac_func in recvfrom
41713 ac_fn_c_check_func "$LINENO" "recvfrom" "ac_cv_func_recvfrom"
41714 if test "x$ac_cv_func_recvfrom" = xyes; then :
41715 cat >>confdefs.h <<_ACEOF
41716 #define HAVE_RECVFROM 1
41718 ice_have_recvfrom=yes
41722 if test "${ice_have_recvfrom}" = yes; then
41723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
41724 $as_echo_n "checking for recvfrom declaration in sys/types.h sys/socket.h... " >&6; }
41725 if ${ice_cv_have_recvfrom_decl+:} false; then :
41726 $as_echo_n "(cached) " >&6
41729 ice_cv_have_recvfrom_decl=no
41730 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41731 ice_re_word='(^|[^a-zA-Z0-9_])'
41732 for header in sys/types.h sys/socket.h; do
41733 # Check for ordinary declaration
41734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41735 /* end confdefs.h. */
41739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41740 $EGREP "${ice_re_word}recvfrom[ ]*\(" >/dev/null 2>&1; then :
41741 ice_cv_have_recvfrom_decl=yes
41745 if test "$ice_cv_have_recvfrom_decl" = yes; then
41748 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41750 /* end confdefs.h. */
41754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41755 $EGREP "${ice_re_word}recvfrom[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41756 ice_cv_have_recvfrom_decl=yes
41760 if test "$ice_cv_have_recvfrom_decl" = yes; then
41767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_recvfrom_decl" >&5
41768 $as_echo "$ice_cv_have_recvfrom_decl" >&6; }
41769 if test "$ice_cv_have_recvfrom_decl" = yes; then
41771 cat >>confdefs.h <<_ACEOF
41772 #define HAVE_RECVFROM_DECL 1
41780 for ac_func in remove
41782 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
41783 if test "x$ac_cv_func_remove" = xyes; then :
41784 cat >>confdefs.h <<_ACEOF
41785 #define HAVE_REMOVE 1
41787 ice_have_remove=yes
41791 if test "${ice_have_remove}" = yes; then
41792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove declaration in stdio.h" >&5
41793 $as_echo_n "checking for remove declaration in stdio.h... " >&6; }
41794 if ${ice_cv_have_remove_decl+:} false; then :
41795 $as_echo_n "(cached) " >&6
41798 ice_cv_have_remove_decl=no
41799 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41800 ice_re_word='(^|[^a-zA-Z0-9_])'
41801 for header in stdio.h; do
41802 # Check for ordinary declaration
41803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41804 /* end confdefs.h. */
41808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41809 $EGREP "${ice_re_word}remove[ ]*\(" >/dev/null 2>&1; then :
41810 ice_cv_have_remove_decl=yes
41814 if test "$ice_cv_have_remove_decl" = yes; then
41817 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41819 /* end confdefs.h. */
41823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41824 $EGREP "${ice_re_word}remove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41825 ice_cv_have_remove_decl=yes
41829 if test "$ice_cv_have_remove_decl" = yes; then
41836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_remove_decl" >&5
41837 $as_echo "$ice_cv_have_remove_decl" >&6; }
41838 if test "$ice_cv_have_remove_decl" = yes; then
41840 cat >>confdefs.h <<_ACEOF
41841 #define HAVE_REMOVE_DECL 1
41849 for ac_func in rename
41851 ac_fn_c_check_func "$LINENO" "rename" "ac_cv_func_rename"
41852 if test "x$ac_cv_func_rename" = xyes; then :
41853 cat >>confdefs.h <<_ACEOF
41854 #define HAVE_RENAME 1
41856 ice_have_rename=yes
41860 if test "${ice_have_rename}" = yes; then
41861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename declaration in stdio.h" >&5
41862 $as_echo_n "checking for rename declaration in stdio.h... " >&6; }
41863 if ${ice_cv_have_rename_decl+:} false; then :
41864 $as_echo_n "(cached) " >&6
41867 ice_cv_have_rename_decl=no
41868 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41869 ice_re_word='(^|[^a-zA-Z0-9_])'
41870 for header in stdio.h; do
41871 # Check for ordinary declaration
41872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41873 /* end confdefs.h. */
41877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41878 $EGREP "${ice_re_word}rename[ ]*\(" >/dev/null 2>&1; then :
41879 ice_cv_have_rename_decl=yes
41883 if test "$ice_cv_have_rename_decl" = yes; then
41886 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41888 /* end confdefs.h. */
41892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41893 $EGREP "${ice_re_word}rename[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41894 ice_cv_have_rename_decl=yes
41898 if test "$ice_cv_have_rename_decl" = yes; then
41905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_rename_decl" >&5
41906 $as_echo "$ice_cv_have_rename_decl" >&6; }
41907 if test "$ice_cv_have_rename_decl" = yes; then
41909 cat >>confdefs.h <<_ACEOF
41910 #define HAVE_RENAME_DECL 1
41918 for ac_func in rewind
41920 ac_fn_c_check_func "$LINENO" "rewind" "ac_cv_func_rewind"
41921 if test "x$ac_cv_func_rewind" = xyes; then :
41922 cat >>confdefs.h <<_ACEOF
41923 #define HAVE_REWIND 1
41925 ice_have_rewind=yes
41929 if test "${ice_have_rewind}" = yes; then
41930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rewind declaration in stdio.h" >&5
41931 $as_echo_n "checking for rewind declaration in stdio.h... " >&6; }
41932 if ${ice_cv_have_rewind_decl+:} false; then :
41933 $as_echo_n "(cached) " >&6
41936 ice_cv_have_rewind_decl=no
41937 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41938 ice_re_word='(^|[^a-zA-Z0-9_])'
41939 for header in stdio.h; do
41940 # Check for ordinary declaration
41941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41942 /* end confdefs.h. */
41946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41947 $EGREP "${ice_re_word}rewind[ ]*\(" >/dev/null 2>&1; then :
41948 ice_cv_have_rewind_decl=yes
41952 if test "$ice_cv_have_rewind_decl" = yes; then
41955 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41957 /* end confdefs.h. */
41961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41962 $EGREP "${ice_re_word}rewind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41963 ice_cv_have_rewind_decl=yes
41967 if test "$ice_cv_have_rewind_decl" = yes; then
41974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_rewind_decl" >&5
41975 $as_echo "$ice_cv_have_rewind_decl" >&6; }
41976 if test "$ice_cv_have_rewind_decl" = yes; then
41978 cat >>confdefs.h <<_ACEOF
41979 #define HAVE_REWIND_DECL 1
41986 ice_have_ruserok=no
41987 for ac_func in ruserok
41989 ac_fn_c_check_func "$LINENO" "ruserok" "ac_cv_func_ruserok"
41990 if test "x$ac_cv_func_ruserok" = xyes; then :
41991 cat >>confdefs.h <<_ACEOF
41992 #define HAVE_RUSEROK 1
41994 ice_have_ruserok=yes
41998 if test "${ice_have_ruserok}" = yes; then
41999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
42000 $as_echo_n "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... " >&6; }
42001 if ${ice_cv_have_ruserok_decl+:} false; then :
42002 $as_echo_n "(cached) " >&6
42005 ice_cv_have_ruserok_decl=no
42006 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42007 ice_re_word='(^|[^a-zA-Z0-9_])'
42008 for header in netdb.h sys/socket.h libc.h unistd.h; do
42009 # Check for ordinary declaration
42010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42011 /* end confdefs.h. */
42015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42016 $EGREP "${ice_re_word}ruserok[ ]*\(" >/dev/null 2>&1; then :
42017 ice_cv_have_ruserok_decl=yes
42021 if test "$ice_cv_have_ruserok_decl" = yes; then
42024 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42026 /* end confdefs.h. */
42030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42031 $EGREP "${ice_re_word}ruserok[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42032 ice_cv_have_ruserok_decl=yes
42036 if test "$ice_cv_have_ruserok_decl" = yes; then
42043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_ruserok_decl" >&5
42044 $as_echo "$ice_cv_have_ruserok_decl" >&6; }
42045 if test "$ice_cv_have_ruserok_decl" = yes; then
42047 cat >>confdefs.h <<_ACEOF
42048 #define HAVE_RUSEROK_DECL 1
42056 for ac_func in select
42058 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
42059 if test "x$ac_cv_func_select" = xyes; then :
42060 cat >>confdefs.h <<_ACEOF
42061 #define HAVE_SELECT 1
42063 ice_have_select=yes
42067 if test "${ice_have_select}" = yes; then
42068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
42069 $as_echo_n "checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h... " >&6; }
42070 if ${ice_cv_have_select_decl+:} false; then :
42071 $as_echo_n "(cached) " >&6
42074 ice_cv_have_select_decl=no
42075 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42076 ice_re_word='(^|[^a-zA-Z0-9_])'
42077 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
42078 # Check for ordinary declaration
42079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42080 /* end confdefs.h. */
42084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42085 $EGREP "${ice_re_word}select[ ]*\(" >/dev/null 2>&1; then :
42086 ice_cv_have_select_decl=yes
42090 if test "$ice_cv_have_select_decl" = yes; then
42093 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42095 /* end confdefs.h. */
42099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42100 $EGREP "${ice_re_word}select[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42101 ice_cv_have_select_decl=yes
42105 if test "$ice_cv_have_select_decl" = yes; then
42112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_select_decl" >&5
42113 $as_echo "$ice_cv_have_select_decl" >&6; }
42114 if test "$ice_cv_have_select_decl" = yes; then
42116 cat >>confdefs.h <<_ACEOF
42117 #define HAVE_SELECT_DECL 1
42125 for ac_header in sys/time.h \
42132 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42133 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
42134 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
42135 cat >>confdefs.h <<_ACEOF
42136 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select() argument type" >&5
42145 $as_echo_n "checking for select() argument type... " >&6; }
42146 if ${amanda_cv_select_arg_type+:} false; then :
42147 $as_echo_n "(cached) " >&6
42151 cat <<EOF >conftest.$ac_ext
42152 #include "confdefs.h"
42153 #ifdef TIME_WITH_SYS_TIME
42154 # include <sys/time.h>
42157 # ifdef HAVE_SYS_TIME_H
42158 # include <sys/time.h>
42163 #ifdef HAVE_SYS_TYPES_H
42164 # include <sys/types.h>
42166 #ifdef HAVE_SYS_SELECT_H
42167 # include <sys/select.h>
42169 #ifdef HAVE_SYS_SOCKET_H
42170 # include <sys/socket.h>
42172 #ifdef HAVE_UNISTD_H
42173 # include <unistd.h>
42178 #ifdef FD_SET_POINTER
42179 (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
42181 (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
42187 # Figure out the select argument type by first trying to
42188 # compile with the fd_set argument. If the compile fails,
42189 # then we know to use the int. If it suceeds, then try to
42190 # use the int. If the int fails, then use fd_set. If
42191 # both suceeed, then do a line count on the number of
42192 # lines that the compiler spit out, assuming that the
42193 # compile outputing more lines had more errors.
42194 amanda_cv_select_arg_type=no
42195 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
42196 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
42197 if test $? -ne 0; then
42198 amanda_cv_select_arg_type=int
42200 if test "$amanda_cv_select_arg_type" = no; then
42201 $select_compile conftest.$ac_ext 1>conftest.int 2>&1
42202 if test $? -ne 0; then
42203 amanda_cv_select_arg_type=fd_set
42206 if test "$amanda_cv_select_arg_type" = no; then
42207 wc_fdset=`wc -l <conftest.fd_set`
42208 wc_int=`wc -l <conftest.int`
42209 if test "$wc_fdset" -le "$wc_int"; then
42210 amanda_cv_select_arg_type=fd_set
42212 amanda_cv_select_arg_type=int
42219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_select_arg_type" >&5
42220 $as_echo "$amanda_cv_select_arg_type" >&6; }
42222 cat >>confdefs.h <<_ACEOF
42223 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
42230 for ac_func in sendto
42232 ac_fn_c_check_func "$LINENO" "sendto" "ac_cv_func_sendto"
42233 if test "x$ac_cv_func_sendto" = xyes; then :
42234 cat >>confdefs.h <<_ACEOF
42235 #define HAVE_SENDTO 1
42237 ice_have_sendto=yes
42241 if test "${ice_have_sendto}" = yes; then
42242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendto declaration in sys/types.h sys/socket.h" >&5
42243 $as_echo_n "checking for sendto declaration in sys/types.h sys/socket.h... " >&6; }
42244 if ${ice_cv_have_sendto_decl+:} false; then :
42245 $as_echo_n "(cached) " >&6
42248 ice_cv_have_sendto_decl=no
42249 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42250 ice_re_word='(^|[^a-zA-Z0-9_])'
42251 for header in sys/types.h sys/socket.h; do
42252 # Check for ordinary declaration
42253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42254 /* end confdefs.h. */
42258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42259 $EGREP "${ice_re_word}sendto[ ]*\(" >/dev/null 2>&1; then :
42260 ice_cv_have_sendto_decl=yes
42264 if test "$ice_cv_have_sendto_decl" = yes; then
42267 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42269 /* end confdefs.h. */
42273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42274 $EGREP "${ice_re_word}sendto[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42275 ice_cv_have_sendto_decl=yes
42279 if test "$ice_cv_have_sendto_decl" = yes; then
42286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_sendto_decl" >&5
42287 $as_echo "$ice_cv_have_sendto_decl" >&6; }
42288 if test "$ice_cv_have_sendto_decl" = yes; then
42290 cat >>confdefs.h <<_ACEOF
42291 #define HAVE_SENDTO_DECL 1
42298 ice_have_setegid=no
42299 for ac_func in setegid
42301 ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
42302 if test "x$ac_cv_func_setegid" = xyes; then :
42303 cat >>confdefs.h <<_ACEOF
42304 #define HAVE_SETEGID 1
42306 ice_have_setegid=yes
42310 if test "${ice_have_setegid}" = yes; then
42311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setegid declaration in unistd.h" >&5
42312 $as_echo_n "checking for setegid declaration in unistd.h... " >&6; }
42313 if ${ice_cv_have_setegid_decl+:} false; then :
42314 $as_echo_n "(cached) " >&6
42317 ice_cv_have_setegid_decl=no
42318 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42319 ice_re_word='(^|[^a-zA-Z0-9_])'
42320 for header in unistd.h; do
42321 # Check for ordinary declaration
42322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42323 /* end confdefs.h. */
42327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42328 $EGREP "${ice_re_word}setegid[ ]*\(" >/dev/null 2>&1; then :
42329 ice_cv_have_setegid_decl=yes
42333 if test "$ice_cv_have_setegid_decl" = yes; then
42336 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42338 /* end confdefs.h. */
42342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42343 $EGREP "${ice_re_word}setegid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42344 ice_cv_have_setegid_decl=yes
42348 if test "$ice_cv_have_setegid_decl" = yes; then
42355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setegid_decl" >&5
42356 $as_echo "$ice_cv_have_setegid_decl" >&6; }
42357 if test "$ice_cv_have_setegid_decl" = yes; then
42359 cat >>confdefs.h <<_ACEOF
42360 #define HAVE_SETEGID_DECL 1
42367 ice_have_seteuid=no
42368 for ac_func in seteuid
42370 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
42371 if test "x$ac_cv_func_seteuid" = xyes; then :
42372 cat >>confdefs.h <<_ACEOF
42373 #define HAVE_SETEUID 1
42375 ice_have_seteuid=yes
42379 if test "${ice_have_seteuid}" = yes; then
42380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seteuid declaration in unistd.h" >&5
42381 $as_echo_n "checking for seteuid declaration in unistd.h... " >&6; }
42382 if ${ice_cv_have_seteuid_decl+:} false; then :
42383 $as_echo_n "(cached) " >&6
42386 ice_cv_have_seteuid_decl=no
42387 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42388 ice_re_word='(^|[^a-zA-Z0-9_])'
42389 for header in unistd.h; do
42390 # Check for ordinary declaration
42391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42392 /* end confdefs.h. */
42396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42397 $EGREP "${ice_re_word}seteuid[ ]*\(" >/dev/null 2>&1; then :
42398 ice_cv_have_seteuid_decl=yes
42402 if test "$ice_cv_have_seteuid_decl" = yes; then
42405 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42407 /* end confdefs.h. */
42411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42412 $EGREP "${ice_re_word}seteuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42413 ice_cv_have_seteuid_decl=yes
42417 if test "$ice_cv_have_seteuid_decl" = yes; then
42424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_seteuid_decl" >&5
42425 $as_echo "$ice_cv_have_seteuid_decl" >&6; }
42426 if test "$ice_cv_have_seteuid_decl" = yes; then
42428 cat >>confdefs.h <<_ACEOF
42429 #define HAVE_SETEUID_DECL 1
42436 ice_have_setresgid=no
42437 for ac_func in setresgid
42439 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
42440 if test "x$ac_cv_func_setresgid" = xyes; then :
42441 cat >>confdefs.h <<_ACEOF
42442 #define HAVE_SETRESGID 1
42444 ice_have_setresgid=yes
42448 if test "${ice_have_setresgid}" = yes; then
42449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setresgid declaration in unistd.h" >&5
42450 $as_echo_n "checking for setresgid declaration in unistd.h... " >&6; }
42451 if ${ice_cv_have_setresgid_decl+:} false; then :
42452 $as_echo_n "(cached) " >&6
42455 ice_cv_have_setresgid_decl=no
42456 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42457 ice_re_word='(^|[^a-zA-Z0-9_])'
42458 for header in unistd.h; do
42459 # Check for ordinary declaration
42460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42461 /* end confdefs.h. */
42465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42466 $EGREP "${ice_re_word}setresgid[ ]*\(" >/dev/null 2>&1; then :
42467 ice_cv_have_setresgid_decl=yes
42471 if test "$ice_cv_have_setresgid_decl" = yes; then
42474 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42476 /* end confdefs.h. */
42480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42481 $EGREP "${ice_re_word}setresgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42482 ice_cv_have_setresgid_decl=yes
42486 if test "$ice_cv_have_setresgid_decl" = yes; then
42493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setresgid_decl" >&5
42494 $as_echo "$ice_cv_have_setresgid_decl" >&6; }
42495 if test "$ice_cv_have_setresgid_decl" = yes; then
42497 cat >>confdefs.h <<_ACEOF
42498 #define HAVE_SETRESGID_DECL 1
42505 ice_have_setresuid=no
42506 for ac_func in setresuid
42508 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
42509 if test "x$ac_cv_func_setresuid" = xyes; then :
42510 cat >>confdefs.h <<_ACEOF
42511 #define HAVE_SETRESUID 1
42513 ice_have_setresuid=yes
42517 if test "${ice_have_setresuid}" = yes; then
42518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setresuid declaration in unistd.h" >&5
42519 $as_echo_n "checking for setresuid declaration in unistd.h... " >&6; }
42520 if ${ice_cv_have_setresuid_decl+:} false; then :
42521 $as_echo_n "(cached) " >&6
42524 ice_cv_have_setresuid_decl=no
42525 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42526 ice_re_word='(^|[^a-zA-Z0-9_])'
42527 for header in unistd.h; do
42528 # Check for ordinary declaration
42529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42530 /* end confdefs.h. */
42534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42535 $EGREP "${ice_re_word}setresuid[ ]*\(" >/dev/null 2>&1; then :
42536 ice_cv_have_setresuid_decl=yes
42540 if test "$ice_cv_have_setresuid_decl" = yes; then
42543 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42545 /* end confdefs.h. */
42549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42550 $EGREP "${ice_re_word}setresuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42551 ice_cv_have_setresuid_decl=yes
42555 if test "$ice_cv_have_setresuid_decl" = yes; then
42562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setresuid_decl" >&5
42563 $as_echo "$ice_cv_have_setresuid_decl" >&6; }
42564 if test "$ice_cv_have_setresuid_decl" = yes; then
42566 cat >>confdefs.h <<_ACEOF
42567 #define HAVE_SETRESUID_DECL 1
42574 ice_have_snprintf=no
42575 for ac_func in snprintf
42577 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
42578 if test "x$ac_cv_func_snprintf" = xyes; then :
42579 cat >>confdefs.h <<_ACEOF
42580 #define HAVE_SNPRINTF 1
42582 ice_have_snprintf=yes
42586 if test "${ice_have_snprintf}" = yes; then
42587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snprintf declaration in stdio.h" >&5
42588 $as_echo_n "checking for snprintf declaration in stdio.h... " >&6; }
42589 if ${ice_cv_have_snprintf_decl+:} false; then :
42590 $as_echo_n "(cached) " >&6
42593 ice_cv_have_snprintf_decl=no
42594 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42595 ice_re_word='(^|[^a-zA-Z0-9_])'
42596 for header in stdio.h; do
42597 # Check for ordinary declaration
42598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42599 /* end confdefs.h. */
42603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42604 $EGREP "${ice_re_word}snprintf[ ]*\(" >/dev/null 2>&1; then :
42605 ice_cv_have_snprintf_decl=yes
42609 if test "$ice_cv_have_snprintf_decl" = yes; then
42612 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42614 /* end confdefs.h. */
42618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42619 $EGREP "${ice_re_word}snprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42620 ice_cv_have_snprintf_decl=yes
42624 if test "$ice_cv_have_snprintf_decl" = yes; then
42631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_snprintf_decl" >&5
42632 $as_echo "$ice_cv_have_snprintf_decl" >&6; }
42633 if test "$ice_cv_have_snprintf_decl" = yes; then
42635 cat >>confdefs.h <<_ACEOF
42636 #define HAVE_SNPRINTF_DECL 1
42643 ice_have_vsnprintf=no
42644 for ac_func in vsnprintf
42646 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
42647 if test "x$ac_cv_func_vsnprintf" = xyes; then :
42648 cat >>confdefs.h <<_ACEOF
42649 #define HAVE_VSNPRINTF 1
42651 ice_have_vsnprintf=yes
42655 if test "${ice_have_vsnprintf}" = yes; then
42656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vsnprintf declaration in stdio.h" >&5
42657 $as_echo_n "checking for vsnprintf declaration in stdio.h... " >&6; }
42658 if ${ice_cv_have_vsnprintf_decl+:} false; then :
42659 $as_echo_n "(cached) " >&6
42662 ice_cv_have_vsnprintf_decl=no
42663 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42664 ice_re_word='(^|[^a-zA-Z0-9_])'
42665 for header in stdio.h; do
42666 # Check for ordinary declaration
42667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42668 /* end confdefs.h. */
42672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42673 $EGREP "${ice_re_word}vsnprintf[ ]*\(" >/dev/null 2>&1; then :
42674 ice_cv_have_vsnprintf_decl=yes
42678 if test "$ice_cv_have_vsnprintf_decl" = yes; then
42681 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42683 /* end confdefs.h. */
42687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42688 $EGREP "${ice_re_word}vsnprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42689 ice_cv_have_vsnprintf_decl=yes
42693 if test "$ice_cv_have_vsnprintf_decl" = yes; then
42700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_vsnprintf_decl" >&5
42701 $as_echo "$ice_cv_have_vsnprintf_decl" >&6; }
42702 if test "$ice_cv_have_vsnprintf_decl" = yes; then
42704 cat >>confdefs.h <<_ACEOF
42705 #define HAVE_VSNPRINTF_DECL 1
42712 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
42713 if test "x$ac_cv_func_setpgid" = xyes; then :
42716 $as_echo "#define HAVE_SETPGID 1" >>confdefs.h
42719 ice_have_setpgid=no
42720 for ac_func in setpgid
42722 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
42723 if test "x$ac_cv_func_setpgid" = xyes; then :
42724 cat >>confdefs.h <<_ACEOF
42725 #define HAVE_SETPGID 1
42727 ice_have_setpgid=yes
42731 if test "${ice_have_setpgid}" = yes; then
42732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setpgid declaration in sys/types.h unistd.h" >&5
42733 $as_echo_n "checking for setpgid declaration in sys/types.h unistd.h... " >&6; }
42734 if ${ice_cv_have_setpgid_decl+:} false; then :
42735 $as_echo_n "(cached) " >&6
42738 ice_cv_have_setpgid_decl=no
42739 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42740 ice_re_word='(^|[^a-zA-Z0-9_])'
42741 for header in sys/types.h unistd.h; do
42742 # Check for ordinary declaration
42743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42744 /* end confdefs.h. */
42748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42749 $EGREP "${ice_re_word}setpgid[ ]*\(" >/dev/null 2>&1; then :
42750 ice_cv_have_setpgid_decl=yes
42754 if test "$ice_cv_have_setpgid_decl" = yes; then
42757 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42759 /* end confdefs.h. */
42763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42764 $EGREP "${ice_re_word}setpgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42765 ice_cv_have_setpgid_decl=yes
42769 if test "$ice_cv_have_setpgid_decl" = yes; then
42776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setpgid_decl" >&5
42777 $as_echo "$ice_cv_have_setpgid_decl" >&6; }
42778 if test "$ice_cv_have_setpgid_decl" = yes; then
42780 cat >>confdefs.h <<_ACEOF
42781 #define HAVE_SETPGID_DECL 1
42791 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
42792 if test "x$ac_cv_func_setpgrp" = xyes; then :
42793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
42794 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
42795 if ${ac_cv_func_setpgrp_void+:} false; then :
42796 $as_echo_n "(cached) " >&6
42798 if test "$cross_compiling" = yes; then :
42799 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
42801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42802 /* end confdefs.h. */
42803 $ac_includes_default
42807 /* If this system has a BSD-style setpgrp which takes arguments,
42808 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
42809 exit successfully. */
42810 return setpgrp (1,1) != -1;
42815 if ac_fn_c_try_run "$LINENO"; then :
42816 ac_cv_func_setpgrp_void=no
42818 ac_cv_func_setpgrp_void=yes
42820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42821 conftest.$ac_objext conftest.beam conftest.$ac_ext
42825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
42826 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
42827 if test $ac_cv_func_setpgrp_void = yes; then
42829 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
42836 ice_have_setpgrp=no
42837 for ac_func in setpgrp
42839 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
42840 if test "x$ac_cv_func_setpgrp" = xyes; then :
42841 cat >>confdefs.h <<_ACEOF
42842 #define HAVE_SETPGRP 1
42844 ice_have_setpgrp=yes
42848 if test "${ice_have_setpgrp}" = yes; then
42849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
42850 $as_echo_n "checking for setpgrp declaration in sys/types.h unistd.h libc.h... " >&6; }
42851 if ${ice_cv_have_setpgrp_decl+:} false; then :
42852 $as_echo_n "(cached) " >&6
42855 ice_cv_have_setpgrp_decl=no
42856 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42857 ice_re_word='(^|[^a-zA-Z0-9_])'
42858 for header in sys/types.h unistd.h libc.h; do
42859 # Check for ordinary declaration
42860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42861 /* end confdefs.h. */
42865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42866 $EGREP "${ice_re_word}setpgrp[ ]*\(" >/dev/null 2>&1; then :
42867 ice_cv_have_setpgrp_decl=yes
42871 if test "$ice_cv_have_setpgrp_decl" = yes; then
42874 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42876 /* end confdefs.h. */
42880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42881 $EGREP "${ice_re_word}setpgrp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42882 ice_cv_have_setpgrp_decl=yes
42886 if test "$ice_cv_have_setpgrp_decl" = yes; then
42893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setpgrp_decl" >&5
42894 $as_echo "$ice_cv_have_setpgrp_decl" >&6; }
42895 if test "$ice_cv_have_setpgrp_decl" = yes; then
42897 cat >>confdefs.h <<_ACEOF
42898 #define HAVE_SETPGRP_DECL 1
42905 ice_have_setsockopt=no
42906 for ac_func in setsockopt
42908 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
42909 if test "x$ac_cv_func_setsockopt" = xyes; then :
42910 cat >>confdefs.h <<_ACEOF
42911 #define HAVE_SETSOCKOPT 1
42913 ice_have_setsockopt=yes
42917 if test "${ice_have_setsockopt}" = yes; then
42918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
42919 $as_echo_n "checking for setsockopt declaration in sys/types.h sys/socket.h... " >&6; }
42920 if ${ice_cv_have_setsockopt_decl+:} false; then :
42921 $as_echo_n "(cached) " >&6
42924 ice_cv_have_setsockopt_decl=no
42925 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42926 ice_re_word='(^|[^a-zA-Z0-9_])'
42927 for header in sys/types.h sys/socket.h; do
42928 # Check for ordinary declaration
42929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42930 /* end confdefs.h. */
42934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42935 $EGREP "${ice_re_word}setsockopt[ ]*\(" >/dev/null 2>&1; then :
42936 ice_cv_have_setsockopt_decl=yes
42940 if test "$ice_cv_have_setsockopt_decl" = yes; then
42943 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42945 /* end confdefs.h. */
42949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42950 $EGREP "${ice_re_word}setsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42951 ice_cv_have_setsockopt_decl=yes
42955 if test "$ice_cv_have_setsockopt_decl" = yes; then
42962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setsockopt_decl" >&5
42963 $as_echo "$ice_cv_have_setsockopt_decl" >&6; }
42964 if test "$ice_cv_have_setsockopt_decl" = yes; then
42966 cat >>confdefs.h <<_ACEOF
42967 #define HAVE_SETSOCKOPT_DECL 1
42973 for ac_func in sigaction sigemptyset sigvec
42975 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42976 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
42977 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
42978 cat >>confdefs.h <<_ACEOF
42979 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42987 for ac_func in socket
42989 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
42990 if test "x$ac_cv_func_socket" = xyes; then :
42991 cat >>confdefs.h <<_ACEOF
42992 #define HAVE_SOCKET 1
42994 ice_have_socket=yes
42998 if test "${ice_have_socket}" = yes; then
42999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket declaration in sys/types.h sys/socket.h" >&5
43000 $as_echo_n "checking for socket declaration in sys/types.h sys/socket.h... " >&6; }
43001 if ${ice_cv_have_socket_decl+:} false; then :
43002 $as_echo_n "(cached) " >&6
43005 ice_cv_have_socket_decl=no
43006 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43007 ice_re_word='(^|[^a-zA-Z0-9_])'
43008 for header in sys/types.h sys/socket.h; do
43009 # Check for ordinary declaration
43010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43011 /* end confdefs.h. */
43015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43016 $EGREP "${ice_re_word}socket[ ]*\(" >/dev/null 2>&1; then :
43017 ice_cv_have_socket_decl=yes
43021 if test "$ice_cv_have_socket_decl" = yes; then
43024 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43026 /* end confdefs.h. */
43030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43031 $EGREP "${ice_re_word}socket[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43032 ice_cv_have_socket_decl=yes
43036 if test "$ice_cv_have_socket_decl" = yes; then
43043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_socket_decl" >&5
43044 $as_echo "$ice_cv_have_socket_decl" >&6; }
43045 if test "$ice_cv_have_socket_decl" = yes; then
43047 cat >>confdefs.h <<_ACEOF
43048 #define HAVE_SOCKET_DECL 1
43055 ice_have_socketpair=no
43056 for ac_func in socketpair
43058 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
43059 if test "x$ac_cv_func_socketpair" = xyes; then :
43060 cat >>confdefs.h <<_ACEOF
43061 #define HAVE_SOCKETPAIR 1
43063 ice_have_socketpair=yes
43067 if test "${ice_have_socketpair}" = yes; then
43068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
43069 $as_echo_n "checking for socketpair declaration in sys/types.h sys/socket.h... " >&6; }
43070 if ${ice_cv_have_socketpair_decl+:} false; then :
43071 $as_echo_n "(cached) " >&6
43074 ice_cv_have_socketpair_decl=no
43075 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43076 ice_re_word='(^|[^a-zA-Z0-9_])'
43077 for header in sys/types.h sys/socket.h; do
43078 # Check for ordinary declaration
43079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43080 /* end confdefs.h. */
43084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43085 $EGREP "${ice_re_word}socketpair[ ]*\(" >/dev/null 2>&1; then :
43086 ice_cv_have_socketpair_decl=yes
43090 if test "$ice_cv_have_socketpair_decl" = yes; then
43093 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43095 /* end confdefs.h. */
43099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43100 $EGREP "${ice_re_word}socketpair[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43101 ice_cv_have_socketpair_decl=yes
43105 if test "$ice_cv_have_socketpair_decl" = yes; then
43112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_socketpair_decl" >&5
43113 $as_echo "$ice_cv_have_socketpair_decl" >&6; }
43114 if test "$ice_cv_have_socketpair_decl" = yes; then
43116 cat >>confdefs.h <<_ACEOF
43117 #define HAVE_SOCKETPAIR_DECL 1
43125 for ac_func in sscanf
43127 ac_fn_c_check_func "$LINENO" "sscanf" "ac_cv_func_sscanf"
43128 if test "x$ac_cv_func_sscanf" = xyes; then :
43129 cat >>confdefs.h <<_ACEOF
43130 #define HAVE_SSCANF 1
43132 ice_have_sscanf=yes
43136 if test "${ice_have_sscanf}" = yes; then
43137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sscanf declaration in stdio.h" >&5
43138 $as_echo_n "checking for sscanf declaration in stdio.h... " >&6; }
43139 if ${ice_cv_have_sscanf_decl+:} false; then :
43140 $as_echo_n "(cached) " >&6
43143 ice_cv_have_sscanf_decl=no
43144 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43145 ice_re_word='(^|[^a-zA-Z0-9_])'
43146 for header in stdio.h; do
43147 # Check for ordinary declaration
43148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43149 /* end confdefs.h. */
43153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43154 $EGREP "${ice_re_word}sscanf[ ]*\(" >/dev/null 2>&1; then :
43155 ice_cv_have_sscanf_decl=yes
43159 if test "$ice_cv_have_sscanf_decl" = yes; then
43162 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43164 /* end confdefs.h. */
43168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43169 $EGREP "${ice_re_word}sscanf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43170 ice_cv_have_sscanf_decl=yes
43174 if test "$ice_cv_have_sscanf_decl" = yes; then
43181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_sscanf_decl" >&5
43182 $as_echo "$ice_cv_have_sscanf_decl" >&6; }
43183 if test "$ice_cv_have_sscanf_decl" = yes; then
43185 cat >>confdefs.h <<_ACEOF
43186 #define HAVE_SSCANF_DECL 1
43193 ice_have_strerror=no
43194 for ac_func in strerror
43196 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
43197 if test "x$ac_cv_func_strerror" = xyes; then :
43198 cat >>confdefs.h <<_ACEOF
43199 #define HAVE_STRERROR 1
43201 ice_have_strerror=yes
43205 if test "${ice_have_strerror}" = yes; then
43206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror declaration in string.h strings.h" >&5
43207 $as_echo_n "checking for strerror declaration in string.h strings.h... " >&6; }
43208 if ${ice_cv_have_strerror_decl+:} false; then :
43209 $as_echo_n "(cached) " >&6
43212 ice_cv_have_strerror_decl=no
43213 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43214 ice_re_word='(^|[^a-zA-Z0-9_])'
43215 for header in string.h strings.h; do
43216 # Check for ordinary declaration
43217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43218 /* end confdefs.h. */
43222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43223 $EGREP "${ice_re_word}strerror[ ]*\(" >/dev/null 2>&1; then :
43224 ice_cv_have_strerror_decl=yes
43228 if test "$ice_cv_have_strerror_decl" = yes; then
43231 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43233 /* end confdefs.h. */
43237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43238 $EGREP "${ice_re_word}strerror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43239 ice_cv_have_strerror_decl=yes
43243 if test "$ice_cv_have_strerror_decl" = yes; then
43250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strerror_decl" >&5
43251 $as_echo "$ice_cv_have_strerror_decl" >&6; }
43252 if test "$ice_cv_have_strerror_decl" = yes; then
43254 cat >>confdefs.h <<_ACEOF
43255 #define HAVE_STRERROR_DECL 1
43261 for ac_func in strftime
43263 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
43264 if test "x$ac_cv_func_strftime" = xyes; then :
43265 cat >>confdefs.h <<_ACEOF
43266 #define HAVE_STRFTIME 1
43270 # strftime is in -lintl on SCO UNIX.
43271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
43272 $as_echo_n "checking for strftime in -lintl... " >&6; }
43273 if ${ac_cv_lib_intl_strftime+:} false; then :
43274 $as_echo_n "(cached) " >&6
43276 ac_check_lib_save_LIBS=$LIBS
43277 LIBS="-lintl $LIBS"
43278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43279 /* end confdefs.h. */
43281 /* Override any GCC internal prototype to avoid an error.
43282 Use char because int might match the return type of a GCC
43283 builtin and then its argument prototype would still apply. */
43291 return strftime ();
43296 if ac_fn_c_try_link "$LINENO"; then :
43297 ac_cv_lib_intl_strftime=yes
43299 ac_cv_lib_intl_strftime=no
43301 rm -f core conftest.err conftest.$ac_objext \
43302 conftest$ac_exeext conftest.$ac_ext
43303 LIBS=$ac_check_lib_save_LIBS
43305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
43306 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
43307 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
43308 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
43310 LIBS="-lintl $LIBS"
43317 ice_have_strftime=no
43318 for ac_func in strftime
43320 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
43321 if test "x$ac_cv_func_strftime" = xyes; then :
43322 cat >>confdefs.h <<_ACEOF
43323 #define HAVE_STRFTIME 1
43325 ice_have_strftime=yes
43329 if test "${ice_have_strftime}" = yes; then
43330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime declaration in time.h sys/time.h" >&5
43331 $as_echo_n "checking for strftime declaration in time.h sys/time.h... " >&6; }
43332 if ${ice_cv_have_strftime_decl+:} false; then :
43333 $as_echo_n "(cached) " >&6
43336 ice_cv_have_strftime_decl=no
43337 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43338 ice_re_word='(^|[^a-zA-Z0-9_])'
43339 for header in time.h sys/time.h; do
43340 # Check for ordinary declaration
43341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43342 /* end confdefs.h. */
43346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43347 $EGREP "${ice_re_word}strftime[ ]*\(" >/dev/null 2>&1; then :
43348 ice_cv_have_strftime_decl=yes
43352 if test "$ice_cv_have_strftime_decl" = yes; then
43355 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43357 /* end confdefs.h. */
43361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43362 $EGREP "${ice_re_word}strftime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43363 ice_cv_have_strftime_decl=yes
43367 if test "$ice_cv_have_strftime_decl" = yes; then
43374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strftime_decl" >&5
43375 $as_echo "$ice_cv_have_strftime_decl" >&6; }
43376 if test "$ice_cv_have_strftime_decl" = yes; then
43378 cat >>confdefs.h <<_ACEOF
43379 #define HAVE_STRFTIME_DECL 1
43386 ice_have_strncasecmp=no
43387 for ac_func in strncasecmp
43389 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
43390 if test "x$ac_cv_func_strncasecmp" = xyes; then :
43391 cat >>confdefs.h <<_ACEOF
43392 #define HAVE_STRNCASECMP 1
43394 ice_have_strncasecmp=yes
43398 if test "${ice_have_strncasecmp}" = yes; then
43399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strncasecmp declaration in string.h strings.h" >&5
43400 $as_echo_n "checking for strncasecmp declaration in string.h strings.h... " >&6; }
43401 if ${ice_cv_have_strncasecmp_decl+:} false; then :
43402 $as_echo_n "(cached) " >&6
43405 ice_cv_have_strncasecmp_decl=no
43406 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43407 ice_re_word='(^|[^a-zA-Z0-9_])'
43408 for header in string.h strings.h; do
43409 # Check for ordinary declaration
43410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43411 /* end confdefs.h. */
43415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43416 $EGREP "${ice_re_word}strncasecmp[ ]*\(" >/dev/null 2>&1; then :
43417 ice_cv_have_strncasecmp_decl=yes
43421 if test "$ice_cv_have_strncasecmp_decl" = yes; then
43424 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43426 /* end confdefs.h. */
43430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43431 $EGREP "${ice_re_word}strncasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43432 ice_cv_have_strncasecmp_decl=yes
43436 if test "$ice_cv_have_strncasecmp_decl" = yes; then
43443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strncasecmp_decl" >&5
43444 $as_echo "$ice_cv_have_strncasecmp_decl" >&6; }
43445 if test "$ice_cv_have_strncasecmp_decl" = yes; then
43447 cat >>confdefs.h <<_ACEOF
43448 #define HAVE_STRNCASECMP_DECL 1
43456 for ac_func in syslog
43458 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
43459 if test "x$ac_cv_func_syslog" = xyes; then :
43460 cat >>confdefs.h <<_ACEOF
43461 #define HAVE_SYSLOG 1
43463 ice_have_syslog=yes
43467 if test "${ice_have_syslog}" = yes; then
43468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog declaration in syslog.h" >&5
43469 $as_echo_n "checking for syslog declaration in syslog.h... " >&6; }
43470 if ${ice_cv_have_syslog_decl+:} false; then :
43471 $as_echo_n "(cached) " >&6
43474 ice_cv_have_syslog_decl=no
43475 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43476 ice_re_word='(^|[^a-zA-Z0-9_])'
43477 for header in syslog.h; do
43478 # Check for ordinary declaration
43479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43480 /* end confdefs.h. */
43484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43485 $EGREP "${ice_re_word}syslog[ ]*\(" >/dev/null 2>&1; then :
43486 ice_cv_have_syslog_decl=yes
43490 if test "$ice_cv_have_syslog_decl" = yes; then
43493 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43495 /* end confdefs.h. */
43499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43500 $EGREP "${ice_re_word}syslog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43501 ice_cv_have_syslog_decl=yes
43505 if test "$ice_cv_have_syslog_decl" = yes; then
43512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_syslog_decl" >&5
43513 $as_echo "$ice_cv_have_syslog_decl" >&6; }
43514 if test "$ice_cv_have_syslog_decl" = yes; then
43516 cat >>confdefs.h <<_ACEOF
43517 #define HAVE_SYSLOG_DECL 1
43525 for ac_func in system
43527 ac_fn_c_check_func "$LINENO" "system" "ac_cv_func_system"
43528 if test "x$ac_cv_func_system" = xyes; then :
43529 cat >>confdefs.h <<_ACEOF
43530 #define HAVE_SYSTEM 1
43532 ice_have_system=yes
43536 if test "${ice_have_system}" = yes; then
43537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system declaration in stdlib.h" >&5
43538 $as_echo_n "checking for system declaration in stdlib.h... " >&6; }
43539 if ${ice_cv_have_system_decl+:} false; then :
43540 $as_echo_n "(cached) " >&6
43543 ice_cv_have_system_decl=no
43544 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43545 ice_re_word='(^|[^a-zA-Z0-9_])'
43546 for header in stdlib.h; do
43547 # Check for ordinary declaration
43548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43549 /* end confdefs.h. */
43553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43554 $EGREP "${ice_re_word}system[ ]*\(" >/dev/null 2>&1; then :
43555 ice_cv_have_system_decl=yes
43559 if test "$ice_cv_have_system_decl" = yes; then
43562 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43564 /* end confdefs.h. */
43568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43569 $EGREP "${ice_re_word}system[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43570 ice_cv_have_system_decl=yes
43574 if test "$ice_cv_have_system_decl" = yes; then
43581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_system_decl" >&5
43582 $as_echo "$ice_cv_have_system_decl" >&6; }
43583 if test "$ice_cv_have_system_decl" = yes; then
43585 cat >>confdefs.h <<_ACEOF
43586 #define HAVE_SYSTEM_DECL 1
43594 for ac_func in time
43596 ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time"
43597 if test "x$ac_cv_func_time" = xyes; then :
43598 cat >>confdefs.h <<_ACEOF
43599 #define HAVE_TIME 1
43605 if test "${ice_have_time}" = yes; then
43606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time declaration in time.h sys/time.h" >&5
43607 $as_echo_n "checking for time declaration in time.h sys/time.h... " >&6; }
43608 if ${ice_cv_have_time_decl+:} false; then :
43609 $as_echo_n "(cached) " >&6
43612 ice_cv_have_time_decl=no
43613 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43614 ice_re_word='(^|[^a-zA-Z0-9_])'
43615 for header in time.h sys/time.h; do
43616 # Check for ordinary declaration
43617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43618 /* end confdefs.h. */
43622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43623 $EGREP "${ice_re_word}time[ ]*\(" >/dev/null 2>&1; then :
43624 ice_cv_have_time_decl=yes
43628 if test "$ice_cv_have_time_decl" = yes; then
43631 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43633 /* end confdefs.h. */
43637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43638 $EGREP "${ice_re_word}time[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43639 ice_cv_have_time_decl=yes
43643 if test "$ice_cv_have_time_decl" = yes; then
43650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_time_decl" >&5
43651 $as_echo "$ice_cv_have_time_decl" >&6; }
43652 if test "$ice_cv_have_time_decl" = yes; then
43654 cat >>confdefs.h <<_ACEOF
43655 #define HAVE_TIME_DECL 1
43662 ice_have_tolower=no
43663 for ac_func in tolower
43665 ac_fn_c_check_func "$LINENO" "tolower" "ac_cv_func_tolower"
43666 if test "x$ac_cv_func_tolower" = xyes; then :
43667 cat >>confdefs.h <<_ACEOF
43668 #define HAVE_TOLOWER 1
43670 ice_have_tolower=yes
43674 if test "${ice_have_tolower}" = yes; then
43675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tolower declaration in ctype.h" >&5
43676 $as_echo_n "checking for tolower declaration in ctype.h... " >&6; }
43677 if ${ice_cv_have_tolower_decl+:} false; then :
43678 $as_echo_n "(cached) " >&6
43681 ice_cv_have_tolower_decl=no
43682 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43683 ice_re_word='(^|[^a-zA-Z0-9_])'
43684 for header in ctype.h; do
43685 # Check for ordinary declaration
43686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43687 /* end confdefs.h. */
43691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43692 $EGREP "${ice_re_word}tolower[ ]*\(" >/dev/null 2>&1; then :
43693 ice_cv_have_tolower_decl=yes
43697 if test "$ice_cv_have_tolower_decl" = yes; then
43700 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43702 /* end confdefs.h. */
43706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43707 $EGREP "${ice_re_word}tolower[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43708 ice_cv_have_tolower_decl=yes
43712 if test "$ice_cv_have_tolower_decl" = yes; then
43719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_tolower_decl" >&5
43720 $as_echo "$ice_cv_have_tolower_decl" >&6; }
43721 if test "$ice_cv_have_tolower_decl" = yes; then
43723 cat >>confdefs.h <<_ACEOF
43724 #define HAVE_TOLOWER_DECL 1
43731 ice_have_toupper=no
43732 for ac_func in toupper
43734 ac_fn_c_check_func "$LINENO" "toupper" "ac_cv_func_toupper"
43735 if test "x$ac_cv_func_toupper" = xyes; then :
43736 cat >>confdefs.h <<_ACEOF
43737 #define HAVE_TOUPPER 1
43739 ice_have_toupper=yes
43743 if test "${ice_have_toupper}" = yes; then
43744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toupper declaration in ctype.h" >&5
43745 $as_echo_n "checking for toupper declaration in ctype.h... " >&6; }
43746 if ${ice_cv_have_toupper_decl+:} false; then :
43747 $as_echo_n "(cached) " >&6
43750 ice_cv_have_toupper_decl=no
43751 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43752 ice_re_word='(^|[^a-zA-Z0-9_])'
43753 for header in ctype.h; do
43754 # Check for ordinary declaration
43755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43756 /* end confdefs.h. */
43760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43761 $EGREP "${ice_re_word}toupper[ ]*\(" >/dev/null 2>&1; then :
43762 ice_cv_have_toupper_decl=yes
43766 if test "$ice_cv_have_toupper_decl" = yes; then
43769 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43771 /* end confdefs.h. */
43775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43776 $EGREP "${ice_re_word}toupper[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43777 ice_cv_have_toupper_decl=yes
43781 if test "$ice_cv_have_toupper_decl" = yes; then
43788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_toupper_decl" >&5
43789 $as_echo "$ice_cv_have_toupper_decl" >&6; }
43790 if test "$ice_cv_have_toupper_decl" = yes; then
43792 cat >>confdefs.h <<_ACEOF
43793 #define HAVE_TOUPPER_DECL 1
43801 for ac_func in ungetc
43803 ac_fn_c_check_func "$LINENO" "ungetc" "ac_cv_func_ungetc"
43804 if test "x$ac_cv_func_ungetc" = xyes; then :
43805 cat >>confdefs.h <<_ACEOF
43806 #define HAVE_UNGETC 1
43808 ice_have_ungetc=yes
43812 if test "${ice_have_ungetc}" = yes; then
43813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ungetc declaration in stdio.h" >&5
43814 $as_echo_n "checking for ungetc declaration in stdio.h... " >&6; }
43815 if ${ice_cv_have_ungetc_decl+:} false; then :
43816 $as_echo_n "(cached) " >&6
43819 ice_cv_have_ungetc_decl=no
43820 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43821 ice_re_word='(^|[^a-zA-Z0-9_])'
43822 for header in stdio.h; do
43823 # Check for ordinary declaration
43824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43825 /* end confdefs.h. */
43829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43830 $EGREP "${ice_re_word}ungetc[ ]*\(" >/dev/null 2>&1; then :
43831 ice_cv_have_ungetc_decl=yes
43835 if test "$ice_cv_have_ungetc_decl" = yes; then
43838 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43840 /* end confdefs.h. */
43844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43845 $EGREP "${ice_re_word}ungetc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43846 ice_cv_have_ungetc_decl=yes
43850 if test "$ice_cv_have_ungetc_decl" = yes; then
43857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_ungetc_decl" >&5
43858 $as_echo "$ice_cv_have_ungetc_decl" >&6; }
43859 if test "$ice_cv_have_ungetc_decl" = yes; then
43861 cat >>confdefs.h <<_ACEOF
43862 #define HAVE_UNGETC_DECL 1
43868 for ac_func in unsetenv
43870 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
43871 if test "x$ac_cv_func_unsetenv" = xyes; then :
43872 cat >>confdefs.h <<_ACEOF
43873 #define HAVE_UNSETENV 1
43880 ice_have_vfprintf=no
43881 for ac_func in vfprintf
43883 ac_fn_c_check_func "$LINENO" "vfprintf" "ac_cv_func_vfprintf"
43884 if test "x$ac_cv_func_vfprintf" = xyes; then :
43885 cat >>confdefs.h <<_ACEOF
43886 #define HAVE_VFPRINTF 1
43888 ice_have_vfprintf=yes
43892 if test "${ice_have_vfprintf}" = yes; then
43893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vfprintf declaration in stdio.h stdlib.h" >&5
43894 $as_echo_n "checking for vfprintf declaration in stdio.h stdlib.h... " >&6; }
43895 if ${ice_cv_have_vfprintf_decl+:} false; then :
43896 $as_echo_n "(cached) " >&6
43899 ice_cv_have_vfprintf_decl=no
43900 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43901 ice_re_word='(^|[^a-zA-Z0-9_])'
43902 for header in stdio.h stdlib.h; do
43903 # Check for ordinary declaration
43904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43905 /* end confdefs.h. */
43909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43910 $EGREP "${ice_re_word}vfprintf[ ]*\(" >/dev/null 2>&1; then :
43911 ice_cv_have_vfprintf_decl=yes
43915 if test "$ice_cv_have_vfprintf_decl" = yes; then
43918 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43920 /* end confdefs.h. */
43924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43925 $EGREP "${ice_re_word}vfprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43926 ice_cv_have_vfprintf_decl=yes
43930 if test "$ice_cv_have_vfprintf_decl" = yes; then
43937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_vfprintf_decl" >&5
43938 $as_echo "$ice_cv_have_vfprintf_decl" >&6; }
43939 if test "$ice_cv_have_vfprintf_decl" = yes; then
43941 cat >>confdefs.h <<_ACEOF
43942 #define HAVE_VFPRINTF_DECL 1
43949 ice_have_vprintf=no
43950 for ac_func in vprintf
43952 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
43953 if test "x$ac_cv_func_vprintf" = xyes; then :
43954 cat >>confdefs.h <<_ACEOF
43955 #define HAVE_VPRINTF 1
43957 ice_have_vprintf=yes
43961 if test "${ice_have_vprintf}" = yes; then
43962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vprintf declaration in stdio.h stdlib.h" >&5
43963 $as_echo_n "checking for vprintf declaration in stdio.h stdlib.h... " >&6; }
43964 if ${ice_cv_have_vprintf_decl+:} false; then :
43965 $as_echo_n "(cached) " >&6
43968 ice_cv_have_vprintf_decl=no
43969 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43970 ice_re_word='(^|[^a-zA-Z0-9_])'
43971 for header in stdio.h stdlib.h; do
43972 # Check for ordinary declaration
43973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43974 /* end confdefs.h. */
43978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43979 $EGREP "${ice_re_word}vprintf[ ]*\(" >/dev/null 2>&1; then :
43980 ice_cv_have_vprintf_decl=yes
43984 if test "$ice_cv_have_vprintf_decl" = yes; then
43987 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43989 /* end confdefs.h. */
43993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43994 $EGREP "${ice_re_word}vprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43995 ice_cv_have_vprintf_decl=yes
43999 if test "$ice_cv_have_vprintf_decl" = yes; then
44006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_vprintf_decl" >&5
44007 $as_echo "$ice_cv_have_vprintf_decl" >&6; }
44008 if test "$ice_cv_have_vprintf_decl" = yes; then
44010 cat >>confdefs.h <<_ACEOF
44011 #define HAVE_VPRINTF_DECL 1
44017 ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4"
44018 if test "x$ac_cv_func_wait4" = xyes; then :
44024 for ac_func in writev
44026 ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev"
44027 if test "x$ac_cv_func_writev" = xyes; then :
44028 cat >>confdefs.h <<_ACEOF
44029 #define HAVE_WRITEV 1
44031 ice_have_writev=yes
44035 if test "${ice_have_writev}" = yes; then
44036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for writev declaration in unistd.h sys/uio.h" >&5
44037 $as_echo_n "checking for writev declaration in unistd.h sys/uio.h... " >&6; }
44038 if ${ice_cv_have_writev_decl+:} false; then :
44039 $as_echo_n "(cached) " >&6
44042 ice_cv_have_writev_decl=no
44043 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44044 ice_re_word='(^|[^a-zA-Z0-9_])'
44045 for header in unistd.h sys/uio.h; do
44046 # Check for ordinary declaration
44047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44048 /* end confdefs.h. */
44052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44053 $EGREP "${ice_re_word}writev[ ]*\(" >/dev/null 2>&1; then :
44054 ice_cv_have_writev_decl=yes
44058 if test "$ice_cv_have_writev_decl" = yes; then
44061 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44063 /* end confdefs.h. */
44067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44068 $EGREP "${ice_re_word}writev[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
44069 ice_cv_have_writev_decl=yes
44073 if test "$ice_cv_have_writev_decl" = yes; then
44080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_writev_decl" >&5
44081 $as_echo "$ice_cv_have_writev_decl" >&6; }
44082 if test "$ice_cv_have_writev_decl" = yes; then
44084 cat >>confdefs.h <<_ACEOF
44085 #define HAVE_WRITEV_DECL 1
44092 ice_have_strcasecmp=no
44093 for ac_func in strcasecmp
44095 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
44096 if test "x$ac_cv_func_strcasecmp" = xyes; then :
44097 cat >>confdefs.h <<_ACEOF
44098 #define HAVE_STRCASECMP 1
44100 ice_have_strcasecmp=yes
44104 if test "${ice_have_strcasecmp}" = yes; then
44105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp declaration in string.h strings.h" >&5
44106 $as_echo_n "checking for strcasecmp declaration in string.h strings.h... " >&6; }
44107 if ${ice_cv_have_strcasecmp_decl+:} false; then :
44108 $as_echo_n "(cached) " >&6
44111 ice_cv_have_strcasecmp_decl=no
44112 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44113 ice_re_word='(^|[^a-zA-Z0-9_])'
44114 for header in string.h strings.h; do
44115 # Check for ordinary declaration
44116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44117 /* end confdefs.h. */
44121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44122 $EGREP "${ice_re_word}strcasecmp[ ]*\(" >/dev/null 2>&1; then :
44123 ice_cv_have_strcasecmp_decl=yes
44127 if test "$ice_cv_have_strcasecmp_decl" = yes; then
44130 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44132 /* end confdefs.h. */
44136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44137 $EGREP "${ice_re_word}strcasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
44138 ice_cv_have_strcasecmp_decl=yes
44142 if test "$ice_cv_have_strcasecmp_decl" = yes; then
44149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strcasecmp_decl" >&5
44150 $as_echo "$ice_cv_have_strcasecmp_decl" >&6; }
44151 if test "$ice_cv_have_strcasecmp_decl" = yes; then
44153 cat >>confdefs.h <<_ACEOF
44154 #define HAVE_STRCASECMP_DECL 1
44186 # Check whether --with-libcurl was given.
44187 if test "${with_libcurl+set}" = set; then :
44188 withval=$with_libcurl; _libcurl_with=$withval
44194 if test "$_libcurl_with" != "no" ; then
44196 for ac_prog in gawk mawk nawk awk
44198 # Extract the first word of "$ac_prog", so it can be a program name with args.
44199 set dummy $ac_prog; ac_word=$2
44200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44201 $as_echo_n "checking for $ac_word... " >&6; }
44202 if ${ac_cv_prog_AWK+:} false; then :
44203 $as_echo_n "(cached) " >&6
44205 if test -n "$AWK"; then
44206 ac_cv_prog_AWK="$AWK" # Let the user override the test.
44208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44209 for as_dir in $PATH
44212 test -z "$as_dir" && as_dir=.
44213 for ac_exec_ext in '' $ac_executable_extensions; do
44214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44215 ac_cv_prog_AWK="$ac_prog"
44216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44225 AWK=$ac_cv_prog_AWK
44226 if test -n "$AWK"; then
44227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
44228 $as_echo "$AWK" >&6; }
44230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44231 $as_echo "no" >&6; }
44235 test -n "$AWK" && break
44239 _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
44241 _libcurl_try_link=yes
44243 if test -d "$_libcurl_with" ; then
44244 LIBCURL_CPPFLAGS="-I$withval/include"
44245 _libcurl_ldflags="-L$withval/lib"
44246 # Extract the first word of "curl-config", so it can be a program name with args.
44247 set dummy curl-config; ac_word=$2
44248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44249 $as_echo_n "checking for $ac_word... " >&6; }
44250 if ${ac_cv_path__libcurl_config+:} false; then :
44251 $as_echo_n "(cached) " >&6
44253 case $_libcurl_config in
44255 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
44258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44259 for as_dir in "$withval/bin"
44262 test -z "$as_dir" && as_dir=.
44263 for ac_exec_ext in '' $ac_executable_extensions; do
44264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44265 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
44266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44276 _libcurl_config=$ac_cv_path__libcurl_config
44277 if test -n "$_libcurl_config"; then
44278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
44279 $as_echo "$_libcurl_config" >&6; }
44281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44282 $as_echo "no" >&6; }
44287 # Extract the first word of "curl-config", so it can be a program name with args.
44288 set dummy curl-config; ac_word=$2
44289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44290 $as_echo_n "checking for $ac_word... " >&6; }
44291 if ${ac_cv_path__libcurl_config+:} false; then :
44292 $as_echo_n "(cached) " >&6
44294 case $_libcurl_config in
44296 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
44299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44300 for as_dir in $PATH
44303 test -z "$as_dir" && as_dir=.
44304 for ac_exec_ext in '' $ac_executable_extensions; do
44305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44306 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
44307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44317 _libcurl_config=$ac_cv_path__libcurl_config
44318 if test -n "$_libcurl_config"; then
44319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
44320 $as_echo "$_libcurl_config" >&6; }
44322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44323 $as_echo "no" >&6; }
44329 if test x$_libcurl_config != "x" ; then
44330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
44331 $as_echo_n "checking for the version of libcurl... " >&6; }
44332 if ${libcurl_cv_lib_curl_version+:} false; then :
44333 $as_echo_n "(cached) " >&6
44335 libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
44337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
44338 $as_echo "$libcurl_cv_lib_curl_version" >&6; }
44340 _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
44341 _libcurl_wanted=`echo 7.10.0 | $_libcurl_version_parse`
44343 if test $_libcurl_wanted -gt 0 ; then
44344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.10.0" >&5
44345 $as_echo_n "checking for libcurl >= version 7.10.0... " >&6; }
44346 if ${libcurl_cv_lib_version_ok+:} false; then :
44347 $as_echo_n "(cached) " >&6
44350 if test $_libcurl_version -ge $_libcurl_wanted ; then
44351 libcurl_cv_lib_version_ok=yes
44353 libcurl_cv_lib_version_ok=no
44357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
44358 $as_echo "$libcurl_cv_lib_version_ok" >&6; }
44361 if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
44362 if test x"$LIBCURL_CPPFLAGS" = "x" ; then
44363 LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
44365 if test x"$LIBCURL" = "x" ; then
44366 LIBCURL=`$_libcurl_config --libs`
44368 # This is so silly, but Apple actually has a bug in their
44369 # curl-config script. Fixed in Tiger, but there are still
44370 # lots of Panther installs around.
44372 powerpc-apple-darwin7*)
44373 LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
44378 # All curl-config scripts support --feature
44379 _libcurl_features=`$_libcurl_config --feature`
44381 # Is it modern enough to have --protocols? (7.12.4)
44382 if test $_libcurl_version -ge 461828 ; then
44383 _libcurl_protocols=`$_libcurl_config --protocols`
44386 _libcurl_try_link=no
44389 unset _libcurl_wanted
44392 if test $_libcurl_try_link = yes ; then
44394 # we didn't find curl-config, so let's see if the user-supplied
44395 # link line (or failing that, "-lcurl") is enough.
44396 LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
44398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
44399 $as_echo_n "checking whether libcurl is usable... " >&6; }
44400 if ${libcurl_cv_lib_curl_usable+:} false; then :
44401 $as_echo_n "(cached) " >&6
44404 _libcurl_save_cppflags=$CPPFLAGS
44405 CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
44406 _libcurl_save_libs=$LIBS
44407 LIBS="$LIBCURL $LIBS"
44409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44410 /* end confdefs.h. */
44411 #include <curl/curl.h>
44416 /* Try and use a few common options to force a failure if we are
44417 missing symbols or can't link. */
44419 curl_easy_setopt(NULL,CURLOPT_URL,NULL);
44421 x=CURLOPT_WRITEFUNCTION;
44423 x=CURLOPT_ERRORBUFFER;
44431 if ac_fn_c_try_link "$LINENO"; then :
44432 libcurl_cv_lib_curl_usable=yes
44434 libcurl_cv_lib_curl_usable=no
44436 rm -f core conftest.err conftest.$ac_objext \
44437 conftest$ac_exeext conftest.$ac_ext
44439 CPPFLAGS=$_libcurl_save_cppflags
44440 LIBS=$_libcurl_save_libs
44441 unset _libcurl_save_cppflags
44442 unset _libcurl_save_libs
44445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
44446 $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
44448 if test $libcurl_cv_lib_curl_usable = yes ; then
44450 # Does curl_free() exist in this version of libcurl?
44451 # If not, fake it with free()
44453 _libcurl_save_cppflags=$CPPFLAGS
44454 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
44455 _libcurl_save_libs=$LIBS
44456 LIBS="$LIBS $LIBCURL"
44458 ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
44459 if test "x$ac_cv_func_curl_free" = xyes; then :
44463 $as_echo "#define curl_free free" >>confdefs.h
44468 CPPFLAGS=$_libcurl_save_cppflags
44469 LIBS=$_libcurl_save_libs
44470 unset _libcurl_save_cppflags
44471 unset _libcurl_save_libs
44474 $as_echo "#define HAVE_LIBCURL 1" >>confdefs.h
44479 for _libcurl_feature in $_libcurl_features ; do
44480 cat >>confdefs.h <<_ACEOF
44481 #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
44484 eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
44487 if test "x$_libcurl_protocols" = "x" ; then
44489 # We don't have --protocols, so just assume that all
44490 # protocols are available
44491 _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
44493 if test x$libcurl_feature_SSL = xyes ; then
44494 _libcurl_protocols="$_libcurl_protocols HTTPS"
44496 # FTPS wasn't standards-compliant until version
44498 if test $_libcurl_version -ge 461568; then
44499 _libcurl_protocols="$_libcurl_protocols FTPS"
44504 for _libcurl_protocol in $_libcurl_protocols ; do
44505 cat >>confdefs.h <<_ACEOF
44506 #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
44509 eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
44513 unset LIBCURL_CPPFLAGS
44518 LIBCURL_USE_GNUTLS=no
44519 LIBCURL_USE_OPENSSL=yes
44520 _libcurl_configures=`$_libcurl_config --configure`
44521 for _libcurl_configure in $_libcurl_configures ; do
44522 if [[ $_libcurl_configure = \'--with-nss* ]]; then
44523 LIBCURL_USE_NSS=yes
44525 if [[ $_libcurl_configure = \'--without-nss* ]]; then
44528 if [[ $_libcurl_configure = \'--with-gnutls* ]]; then
44529 LIBCURL_USE_GNUTLS=yes
44531 if [[ $_libcurl_configure = \'--without-gnutls* ]]; then
44532 LIBCURL_USE_GNUTLS=no
44534 if [[ $_libcurl_configure = \'--with-ssl* ]]; then
44535 LIBCURL_USE_OPENSSL=yes
44537 if [[ $_libcurl_configure = \'--without-ssl* ]]; then
44538 LIBCURL_USE_OPENSSL=no
44542 if test "x$LIBCURL_USE_NSS" = "xyes"; then
44544 $as_echo "#define LIBCURL_USE_NSS 1" >>confdefs.h
44547 if test "x$LIBCURL_USE_GNUTLS" = "xyes"; then
44549 $as_echo "#define LIBCURL_USE_GNUTLS /**/" >>confdefs.h
44552 if test "x$LIBCURL_USE_OPENSSL" = "xyes"; then
44554 $as_echo "#define LIBCURL_USE_OPENSSL 1" >>confdefs.h
44558 unset _libcurl_try_link
44559 unset _libcurl_version_parse
44560 unset _libcurl_config
44561 unset _libcurl_feature
44562 unset _libcurl_features
44563 unset _libcurl_protocol
44564 unset _libcurl_protocols
44565 unset _libcurl_version
44566 unset _libcurl_ldflags
44567 unset _libcurl_configure
44568 unset _libcurl_configures
44571 if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
44572 # This is the IF-NO path
44575 # This is the IF-YES path
44579 unset _libcurl_with
44581 if test x"$HAVE_CURL" = x"yes"; then
44582 LIBS="$LIBCURL $LIBS"
44584 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
44589 ac_fn_c_check_type "$LINENO" "curl_off_t" "ac_cv_type_curl_off_t" "
44590 #ifdef HAVE_SYS_TYPES_H
44591 #include <sys/types.h>
44593 #ifdef STDC_HEADERS
44594 #include <stdlib.h>
44595 #include <stddef.h>
44597 #include <curl/curl.h>
44601 if test "x$ac_cv_type_curl_off_t" = xyes; then :
44606 $as_echo "#define curl_off_t off_t" >>confdefs.h
44613 *sun-solaris2*) # Solaris, all versions.
44614 # we extract the -L flags and translate them to -R flags, as required
44615 # by the runtime linker.
44616 if test -n "$_libcurl_config"; then
44617 curlflags=`$_libcurl_config --libs 2>/dev/null`
44618 for flag in curlflags; do
44620 -L*) LDFLAGS="$LDFLAGS "`echo "x$flag" | sed -e 's/^x-L/-R/'`;;
44631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
44632 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
44633 if ${ac_cv_lib_crypto_HMAC_CTX_init+:} false; then :
44634 $as_echo_n "(cached) " >&6
44636 ac_check_lib_save_LIBS=$LIBS
44637 LIBS="-lcrypto $LIBS"
44638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44639 /* end confdefs.h. */
44641 /* Override any GCC internal prototype to avoid an error.
44642 Use char because int might match the return type of a GCC
44643 builtin and then its argument prototype would still apply. */
44647 char HMAC_CTX_init ();
44651 return HMAC_CTX_init ();
44656 if ac_fn_c_try_link "$LINENO"; then :
44657 ac_cv_lib_crypto_HMAC_CTX_init=yes
44659 ac_cv_lib_crypto_HMAC_CTX_init=no
44661 rm -f core conftest.err conftest.$ac_objext \
44662 conftest$ac_exeext conftest.$ac_ext
44663 LIBS=$ac_check_lib_save_LIBS
44665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5
44666 $as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; }
44667 if test "x$ac_cv_lib_crypto_HMAC_CTX_init" = xyes; then :
44668 cat >>confdefs.h <<_ACEOF
44669 #define HAVE_LIBCRYPTO 1
44672 LIBS="-lcrypto $LIBS"
44680 for ac_header in openssl/hmac.h crypto/hmac.h hmac.h
44682 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44683 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
44684 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
44685 cat >>confdefs.h <<_ACEOF
44686 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44688 found_hmac_h=yes; break
44693 if test x"$found_hmac_h" != x"yes"; then
44701 # Check whether --enable-s3-device was given.
44702 if test "${enable_s3_device+set}" = set; then :
44703 enableval=$enable_s3_device; WANT_S3_DEVICE=$enableval
44705 WANT_S3_DEVICE=maybe
44709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include the Amazon S3 device" >&5
44710 $as_echo_n "checking whether to include the Amazon S3 device... " >&6; }
44711 # if the user didn't specify 'no', then check for support
44712 if test x"$WANT_S3_DEVICE" != x"no"; then
44713 if test x"$HAVE_CURL" = x"yes" -a x"$HAVE_HMAC" = x"yes"; then
44716 # no support -- if the user explicitly enabled the device,
44717 # then this is an error
44718 if test x"$WANT_S3_DEVICE" = x"yes"; then
44719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44720 $as_echo "no" >&6; }
44721 as_fn_error $? "Cannot build the Amazon S3 device: one or more prerequisites are missing." "$LINENO" 5
44727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_S3_DEVICE" >&5
44728 $as_echo "$WANT_S3_DEVICE" >&6; }
44730 if test x"$WANT_S3_DEVICE" = x"yes"; then
44731 WANT_S3_DEVICE_TRUE=
44732 WANT_S3_DEVICE_FALSE='#'
44734 WANT_S3_DEVICE_TRUE='#'
44735 WANT_S3_DEVICE_FALSE=
44739 # Now handle any setup for S3, if we want it.
44740 if test x"$WANT_S3_DEVICE" = x"yes"; then
44742 $as_echo "#define WANT_S3_DEVICE /**/" >>confdefs.h
44753 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44754 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
44755 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
44756 cat >>confdefs.h <<_ACEOF
44757 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44765 # check for MTIOCTOP, an indicator of POSIX tape support
44766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MTIOCTOP" >&5
44767 $as_echo_n "checking for MTIOCTOP... " >&6; }
44768 if ${amanda_cv_HAVE_MTIOCTOP+:} false; then :
44769 $as_echo_n "(cached) " >&6
44772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44773 /* end confdefs.h. */
44775 #ifdef HAVE_SYS_TAPE_H
44776 # include <sys/tape.h>
44778 #ifdef HAVE_SYS_MTIO_H
44779 # include <sys/mtio.h>
44782 #error MTIOCTOP not defined
44793 if ac_fn_c_try_compile "$LINENO"; then :
44794 amanda_cv_HAVE_MTIOCTOP=yes
44796 amanda_cv_HAVE_MTIOCTOP=no
44798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44800 HAVE_MTIOCTOP=$amanda_cv_HAVE_MTIOCTOP
44803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_HAVE_MTIOCTOP" >&5
44804 $as_echo "$amanda_cv_HAVE_MTIOCTOP" >&6; }
44806 # maybe we have no tape device at all (e.g., Mac OS X)?
44807 if test x"$HAVE_MTIOCTOP" = x"yes"; then
44808 want_tape_device=yes
44810 $as_echo "#define WANT_TAPE_DEVICE 1" >>confdefs.h
44813 if test -n "$want_tape_device"; then
44814 WANT_TAPE_DEVICE_TRUE=
44815 WANT_TAPE_DEVICE_FALSE='#'
44817 WANT_TAPE_DEVICE_TRUE='#'
44818 WANT_TAPE_DEVICE_FALSE=
44823 # Check for various "mt status" related structure elements.
44825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_flags mtget structure element" >&5
44826 $as_echo_n "checking for mt_flags mtget structure element... " >&6; }
44827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44828 /* end confdefs.h. */
44831 #include <sys/types.h>
44832 #include <sys/mtio.h>
44847 if ac_fn_c_try_compile "$LINENO"; then :
44849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44850 $as_echo "yes" >&6; }
44852 $as_echo "#define HAVE_MT_FLAGS 1" >>confdefs.h
44857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44858 $as_echo "no" >&6; }
44861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_fileno mtget structure element" >&5
44864 $as_echo_n "checking for mt_fileno mtget structure element... " >&6; }
44865 mt_fileno_result="found"
44866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44867 /* end confdefs.h. */
44870 #include <sys/types.h>
44871 #include <sys/mtio.h>
44880 ds = buf.mt_fileno;
44886 if ac_fn_c_try_compile "$LINENO"; then :
44888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44889 $as_echo "yes" >&6; }
44891 $as_echo "#define HAVE_MT_FILENO 1" >>confdefs.h
44896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44897 $as_echo "no" >&6; }
44900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_blkno mtget structure element" >&5
44903 $as_echo_n "checking for mt_blkno mtget structure element... " >&6; }
44904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44905 /* end confdefs.h. */
44908 #include <sys/types.h>
44909 #include <sys/mtio.h>
44924 if ac_fn_c_try_compile "$LINENO"; then :
44926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44927 $as_echo "yes" >&6; }
44929 $as_echo "#define HAVE_MT_BLKNO 1" >>confdefs.h
44934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44935 $as_echo "no" >&6; }
44938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_dsreg mtget structure element" >&5
44941 $as_echo_n "checking for mt_dsreg mtget structure element... " >&6; }
44942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44943 /* end confdefs.h. */
44946 #include <sys/types.h>
44947 #include <sys/mtio.h>
44962 if ac_fn_c_try_compile "$LINENO"; then :
44964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44965 $as_echo "yes" >&6; }
44967 $as_echo "#define HAVE_MT_DSREG 1" >>confdefs.h
44972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44973 $as_echo "no" >&6; }
44976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_erreg mtget structure element" >&5
44979 $as_echo_n "checking for mt_erreg mtget structure element... " >&6; }
44980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44981 /* end confdefs.h. */
44984 #include <sys/types.h>
44985 #include <sys/mtio.h>
45000 if ac_fn_c_try_compile "$LINENO"; then :
45002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45003 $as_echo "yes" >&6; }
45005 $as_echo "#define HAVE_MT_ERREG 1" >>confdefs.h
45010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45011 $as_echo "no" >&6; }
45014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45018 $as_echo "#define DEFAULT_TAPE_NON_BLOCKING_OPEN 1" >>confdefs.h
45023 # Check whether --enable-dvdrw-device was given.
45024 if test "${enable_dvdrw_device+set}" = set; then :
45025 enableval=$enable_dvdrw_device; WANT_DVDRW_DEVICE=$enableval
45027 WANT_DVDRW_DEVICE=yes
45031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include the DVD-RW device" >&5
45032 $as_echo_n "checking whether to include the DVD-RW device... " >&6; }
45033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_DVDRW_DEVICE" >&5
45034 $as_echo "$WANT_DVDRW_DEVICE" >&6; }
45036 if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
45037 WANT_DVDRW_DEVICE_TRUE=
45038 WANT_DVDRW_DEVICE_FALSE='#'
45040 WANT_DVDRW_DEVICE_TRUE='#'
45041 WANT_DVDRW_DEVICE_FALSE=
45045 # Now handle any setup for DVDRW, if we want it.
45046 if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
45048 $as_echo "#define WANT_DVDRW_DEVICE /**/" >>confdefs.h
45055 # Check whether --enable-ndmp-device was given.
45056 if test "${enable_ndmp_device+set}" = set; then :
45057 enableval=$enable_ndmp_device; WANT_NDMP_DEVICE=$enableval
45059 WANT_NDMP_DEVICE=$WANT_NDMP
45063 if test x"$WANT_NDMP" != x"true" -a x"$WANT_NDMP_DEVICE" = x"true"; then
45064 as_fn_error $? "NDMP support is required to build the ndmp device (--with-ndmp)" "$LINENO" 5
45067 if test x"$WANT_NDMP_DEVICE" = x"true"; then
45069 $as_echo "#define WANT_NDMP_DEVICE 1" >>confdefs.h
45073 if test x"$WANT_NDMP_DEVICE" = x"true"; then
45074 WANT_NDMP_DEVICE_TRUE=
45075 WANT_NDMP_DEVICE_FALSE='#'
45077 WANT_NDMP_DEVICE_TRUE='#'
45078 WANT_NDMP_DEVICE_FALSE=
45084 ac_config_files="$ac_config_files Makefile amandad-src/Makefile amar-src/Makefile amplot/Makefile changer-src/Makefile client-src/Makefile common-src/Makefile config/Makefile device-src/Makefile application-src/Makefile example/Makefile gnulib/Makefile installcheck/Makefile man/Makefile ndmp-src/Makefile oldrecover-src/Makefile packaging/Makefile perl/amglue/Makefile perl/Makefile po/Makefile recover-src/Makefile server-src/Makefile xfer-src/Makefile"
45087 cat >confcache <<\_ACEOF
45088 # This file is a shell script that caches the results of configure
45089 # tests run on this system so they can be shared between configure
45090 # scripts and configure runs, see configure's option --config-cache.
45091 # It is not useful on other systems. If it contains results you don't
45092 # want to keep, you may remove or edit it.
45094 # config.status only pays attention to the cache file if you give it
45095 # the --recheck option to rerun configure.
45097 # `ac_cv_env_foo' variables (set or unset) will be overridden when
45098 # loading this file, other *unset* `ac_cv_foo' will be assigned the
45099 # following values.
45103 # The following way of writing the cache mishandles newlines in values,
45104 # but we know of no workaround that is simple, portable, and efficient.
45105 # So, we kill variables containing newlines.
45106 # Ultrix sh set writes to stderr and can't be redirected directly,
45107 # and sets the high bit in the cache file unless we assign to the vars.
45109 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
45110 eval ac_val=\$$ac_var
45114 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
45115 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
45118 _ | IFS | as_nl) ;; #(
45119 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
45120 *) { eval $ac_var=; unset $ac_var;} ;;
45126 case $as_nl`(ac_space=' '; set) 2>&1` in #(
45127 *${as_nl}ac_space=\ *)
45128 # `set' does not quote correctly, so add quotes: double-quote
45129 # substitution turns \\\\ into \\, and sed turns \\ into \.
45132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
45135 # `set' quotes correctly as required by POSIX, so do not add quotes.
45136 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
45145 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45147 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45149 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
45150 if test -w "$cache_file"; then
45151 if test "x$cache_file" != "x/dev/null"; then
45152 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
45153 $as_echo "$as_me: updating cache $cache_file" >&6;}
45154 if test ! -f "$cache_file" || test -h "$cache_file"; then
45155 cat confcache >"$cache_file"
45157 case $cache_file in #(
45159 mv -f confcache "$cache_file"$$ &&
45160 mv -f "$cache_file"$$ "$cache_file" ;; #(
45162 mv -f confcache "$cache_file" ;;
45167 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
45168 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
45173 test "x$prefix" = xNONE && prefix=$ac_default_prefix
45174 # Let make expand exec_prefix.
45175 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45177 DEFS=-DHAVE_CONFIG_H
45182 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45183 # 1. Remove the extension, and $U if already installed.
45184 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
45185 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
45186 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
45187 # will be set to the directory where LIBOBJS objects are built.
45188 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
45189 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
45191 LIBOBJS=$ac_libobjs
45193 LTLIBOBJS=$ac_ltlibobjs
45196 if test -n "$EXEEXT"; then
45198 am__EXEEXT_FALSE='#'
45200 am__EXEEXT_TRUE='#'
45204 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
45205 as_fn_error $? "conditional \"AMDEP\" was never defined.
45206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45208 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45209 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
45210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45212 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
45213 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
45214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45219 if test -n "$gl_LIBOBJS"; then
45220 # Remove the extension.
45221 sed_drop_objext='s/\.o$//;s/\.obj$//'
45222 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
45223 gl_libobjs="$gl_libobjs $i.$ac_objext"
45224 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
45227 gl_LIBOBJS=$gl_libobjs
45229 gl_LTLIBOBJS=$gl_ltlibobjs
45235 if test -n "$gltests_LIBOBJS"; then
45236 # Remove the extension.
45237 sed_drop_objext='s/\.o$//;s/\.obj$//'
45238 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
45239 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
45240 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
45243 gltests_LIBOBJS=$gltests_libobjs
45245 gltests_LTLIBOBJS=$gltests_ltlibobjs
45248 if test -z "${WANT_AS_NEEDED_TRUE}" && test -z "${WANT_AS_NEEDED_FALSE}"; then
45249 as_fn_error $? "conditional \"WANT_AS_NEEDED\" was never defined.
45250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45252 if test -z "${CHECK_USERID_TRUE}" && test -z "${CHECK_USERID_FALSE}"; then
45253 as_fn_error $? "conditional \"CHECK_USERID\" was never defined.
45254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45256 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
45257 as_fn_error $? "conditional \"WANT_SETUID_CLIENT\" was never defined.
45258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45260 if test -z "${WANT_INSTALLPERMS_TRUE}" && test -z "${WANT_INSTALLPERMS_FALSE}"; then
45261 as_fn_error $? "conditional \"WANT_INSTALLPERMS\" was never defined.
45262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45264 if test -z "${SYNTAX_CHECKS_TRUE}" && test -z "${SYNTAX_CHECKS_FALSE}"; then
45265 as_fn_error $? "conditional \"SYNTAX_CHECKS\" was never defined.
45266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45268 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
45269 as_fn_error $? "conditional \"WANT_CLIENT\" was never defined.
45270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45272 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
45273 as_fn_error $? "conditional \"WANT_RESTORE\" was never defined.
45274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45276 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
45277 as_fn_error $? "conditional \"WANT_SERVER\" was never defined.
45278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45280 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
45281 as_fn_error $? "conditional \"WANT_RECOVER\" was never defined.
45282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45284 if test -z "${WANT_NDMP_TRUE}" && test -z "${WANT_NDMP_FALSE}"; then
45285 as_fn_error $? "conditional \"WANT_NDMP\" was never defined.
45286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45288 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
45289 as_fn_error $? "conditional \"WANT_TAPE\" was never defined.
45290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45292 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
45293 as_fn_error $? "conditional \"WANT_AMPLOT\" was never defined.
45294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45296 if test -z "${ENABLE_MANPAGE_BUILD_TRUE}" && test -z "${ENABLE_MANPAGE_BUILD_FALSE}"; then
45297 as_fn_error $? "conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
45298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45300 if test -z "${WANT_AMFLOCK_POSIX_TRUE}" && test -z "${WANT_AMFLOCK_POSIX_FALSE}"; then
45301 as_fn_error $? "conditional \"WANT_AMFLOCK_POSIX\" was never defined.
45302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45304 if test -z "${WANT_AMFLOCK_FLOCK_TRUE}" && test -z "${WANT_AMFLOCK_FLOCK_FALSE}"; then
45305 as_fn_error $? "conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
45306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45308 if test -z "${WANT_AMFLOCK_LOCKF_TRUE}" && test -z "${WANT_AMFLOCK_LOCKF_FALSE}"; then
45309 as_fn_error $? "conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
45310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45312 if test -z "${WANT_AMFLOCK_LNLOCK_TRUE}" && test -z "${WANT_AMFLOCK_LNLOCK_FALSE}"; then
45313 as_fn_error $? "conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
45314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45316 if test -z "${WANT_CYGWIN_COPY_PERL_DLL_TRUE}" && test -z "${WANT_CYGWIN_COPY_PERL_DLL_FALSE}"; then
45317 as_fn_error $? "conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
45318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45320 if test -z "${WANT_MANDATORY_THREAD_CHECK_TRUE}" && test -z "${WANT_MANDATORY_THREAD_CHECK_FALSE}"; then
45321 as_fn_error $? "conditional \"WANT_MANDATORY_THREAD_CHECK\" was never defined.
45322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45324 if test -z "${WANT_BSD_SECURITY_TRUE}" && test -z "${WANT_BSD_SECURITY_FALSE}"; then
45325 as_fn_error $? "conditional \"WANT_BSD_SECURITY\" was never defined.
45326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45328 if test -z "${WANT_BSDTCP_SECURITY_TRUE}" && test -z "${WANT_BSDTCP_SECURITY_FALSE}"; then
45329 as_fn_error $? "conditional \"WANT_BSDTCP_SECURITY\" was never defined.
45330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45332 if test -z "${WANT_BSDUDP_SECURITY_TRUE}" && test -z "${WANT_BSDUDP_SECURITY_FALSE}"; then
45333 as_fn_error $? "conditional \"WANT_BSDUDP_SECURITY\" was never defined.
45334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45336 if test -z "${WANT_RSH_SECURITY_TRUE}" && test -z "${WANT_RSH_SECURITY_FALSE}"; then
45337 as_fn_error $? "conditional \"WANT_RSH_SECURITY\" was never defined.
45338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45340 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
45341 as_fn_error $? "conditional \"WANT_SSH_SECURITY\" was never defined.
45342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45344 if test -z "${WANT_KRB5_SECURITY_TRUE}" && test -z "${WANT_KRB5_SECURITY_FALSE}"; then
45345 as_fn_error $? "conditional \"WANT_KRB5_SECURITY\" was never defined.
45346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45348 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
45349 as_fn_error $? "conditional \"WANT_SAMBA\" was never defined.
45350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45353 if test -z "${GCC_COMPILER_TRUE}" && test -z "${GCC_COMPILER_FALSE}"; then
45354 as_fn_error $? "conditional \"GCC_COMPILER\" was never defined.
45355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45357 if test -z "${WANT_S3_DEVICE_TRUE}" && test -z "${WANT_S3_DEVICE_FALSE}"; then
45358 as_fn_error $? "conditional \"WANT_S3_DEVICE\" was never defined.
45359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45361 if test -z "${WANT_TAPE_DEVICE_TRUE}" && test -z "${WANT_TAPE_DEVICE_FALSE}"; then
45362 as_fn_error $? "conditional \"WANT_TAPE_DEVICE\" was never defined.
45363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45365 if test -z "${WANT_DVDRW_DEVICE_TRUE}" && test -z "${WANT_DVDRW_DEVICE_FALSE}"; then
45366 as_fn_error $? "conditional \"WANT_DVDRW_DEVICE\" was never defined.
45367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45369 if test -z "${WANT_NDMP_DEVICE_TRUE}" && test -z "${WANT_NDMP_DEVICE_FALSE}"; then
45370 as_fn_error $? "conditional \"WANT_NDMP_DEVICE\" was never defined.
45371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45374 : "${CONFIG_STATUS=./config.status}"
45376 ac_clean_files_save=$ac_clean_files
45377 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45378 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
45379 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
45381 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
45383 # Generated by $as_me.
45384 # Run this file to recreate the current configuration.
45385 # Compiler output produced by configure, useful for debugging
45386 # configure, is in config.log if it exists.
45389 ac_cs_recheck=false
45392 SHELL=\${CONFIG_SHELL-$SHELL}
45395 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
45396 ## -------------------- ##
45397 ## M4sh Initialization. ##
45398 ## -------------------- ##
45400 # Be more Bourne compatible
45401 DUALCASE=1; export DUALCASE # for MKS sh
45402 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
45405 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
45406 # is contrary to our usage. Disable this feature.
45407 alias -g '${1+"$@"}'='"$@"'
45408 setopt NO_GLOB_SUBST
45410 case `(set -o) 2>/dev/null` in #(
45422 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45423 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45424 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45425 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45426 # Prefer a ksh shell builtin over an external printf program on Solaris,
45427 # but without wasting forks for bash or zsh.
45428 if test -z "$BASH_VERSION$ZSH_VERSION" \
45429 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45430 as_echo='print -r --'
45431 as_echo_n='print -rn --'
45432 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
45433 as_echo='printf %s\n'
45434 as_echo_n='printf %s'
45436 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
45437 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
45438 as_echo_n='/usr/ucb/echo -n'
45440 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
45441 as_echo_n_body='eval
45445 expr "X$arg" : "X\\(.*\\)$as_nl";
45446 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
45448 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
45450 export as_echo_n_body
45451 as_echo_n='sh -c $as_echo_n_body as_echo'
45453 export as_echo_body
45454 as_echo='sh -c $as_echo_body as_echo'
45457 # The user is always right.
45458 if test "${PATH_SEPARATOR+set}" != set; then
45460 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
45461 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
45468 # We need space, tab and new line, in precisely that order. Quoting is
45469 # there to prevent editors from complaining about space-tab.
45470 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
45471 # splitting by setting IFS to empty value.)
45474 # Find who we are. Look in the path if we contain no directory separator.
45477 *[\\/]* ) as_myself=$0 ;;
45478 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45479 for as_dir in $PATH
45482 test -z "$as_dir" && as_dir=.
45483 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45489 # We did not find ourselves, most probably we were run as `sh COMMAND'
45490 # in which case we are not to be found in the path.
45491 if test "x$as_myself" = x; then
45494 if test ! -f "$as_myself"; then
45495 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
45499 # Unset variables that we do not need and which cause bugs (e.g. in
45500 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
45501 # suppresses any "Segmentation fault" message there. '((' could
45502 # trigger a bug in pdksh 5.2.14.
45503 for as_var in BASH_ENV ENV MAIL MAILPATH
45504 do eval test x\${$as_var+set} = xset \
45505 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
45518 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
45521 # as_fn_error STATUS ERROR [LINENO LOG_FD]
45522 # ----------------------------------------
45523 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
45524 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
45525 # script with STATUS, using 1 if that was 0.
45528 as_status=$1; test $as_status -eq 0 && as_status=1
45530 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
45531 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
45533 $as_echo "$as_me: error: $2" >&2
45534 as_fn_exit $as_status
45538 # as_fn_set_status STATUS
45539 # -----------------------
45540 # Set $? to STATUS, without forking.
45541 as_fn_set_status ()
45544 } # as_fn_set_status
45546 # as_fn_exit STATUS
45547 # -----------------
45548 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
45552 as_fn_set_status $1
45558 # Portably unset VAR.
45561 { eval $1=; unset $1;}
45563 as_unset=as_fn_unset
45564 # as_fn_append VAR VALUE
45565 # ----------------------
45566 # Append the text in VALUE to the end of the definition contained in VAR. Take
45567 # advantage of any shell optimizations that allow amortized linear growth over
45568 # repeated appends, instead of the typical quadratic growth present in naive
45570 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
45571 eval 'as_fn_append ()
45582 # as_fn_arith ARG...
45583 # ------------------
45584 # Perform arithmetic evaluation on the ARGs, and store the result in the
45585 # global $as_val. Take advantage of shells that can avoid forks. The arguments
45586 # must be portable across $(()) and expr.
45587 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
45588 eval 'as_fn_arith ()
45595 as_val=`expr "$@" || test $? -eq 1`
45600 if expr a : '\(a\)' >/dev/null 2>&1 &&
45601 test "X`expr 00001 : '.*\(...\)'`" = X001; then
45607 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
45608 as_basename=basename
45613 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
45619 as_me=`$as_basename -- "$0" ||
45620 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45621 X"$0" : 'X\(//\)$' \| \
45622 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
45624 sed '/^.*\/\([^/][^/]*\)\/*$/{
45638 # Avoid depending upon Character Ranges.
45639 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45640 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45641 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45642 as_cr_digits='0123456789'
45643 as_cr_alnum=$as_cr_Letters$as_cr_digits
45645 ECHO_C= ECHO_N= ECHO_T=
45646 case `echo -n x` in #(((((
45648 case `echo 'xy\c'` in
45649 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
45651 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
45658 rm -f conf$$ conf$$.exe conf$$.file
45659 if test -d conf$$.dir; then
45660 rm -f conf$$.dir/conf$$.file
45663 mkdir conf$$.dir 2>/dev/null
45665 if (echo >conf$$.file) 2>/dev/null; then
45666 if ln -s conf$$.file conf$$ 2>/dev/null; then
45668 # ... but there are two gotchas:
45669 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
45670 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
45671 # In both cases, we have to default to `cp -p'.
45672 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
45674 elif ln conf$$.file conf$$ 2>/dev/null; then
45682 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
45683 rmdir conf$$.dir 2>/dev/null
45688 # Create "$as_dir" as a directory, including parents if necessary.
45693 -*) as_dir=./$as_dir;;
45695 test -d "$as_dir" || eval $as_mkdir_p || {
45699 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
45700 *) as_qdir=$as_dir;;
45702 as_dirs="'$as_qdir' $as_dirs"
45703 as_dir=`$as_dirname -- "$as_dir" ||
45704 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45705 X"$as_dir" : 'X\(//\)[^/]' \| \
45706 X"$as_dir" : 'X\(//\)$' \| \
45707 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45708 $as_echo X"$as_dir" |
45709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45713 /^X\(\/\/\)[^/].*/{
45726 test -d "$as_dir" && break
45728 test -z "$as_dirs" || eval "mkdir $as_dirs"
45729 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
45733 if mkdir -p . 2>/dev/null; then
45734 as_mkdir_p='mkdir -p "$as_dir"'
45736 test -d ./-p && rmdir ./-p
45740 if test -x / >/dev/null 2>&1; then
45741 as_test_x='test -x'
45743 if ls -dL / >/dev/null 2>&1; then
45750 if test -d "$1"; then
45756 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
45757 ???[sx]*):;;*)false;;esac;fi
45761 as_executable_p=$as_test_x
45763 # Sed expression to map a string onto a valid CPP name.
45764 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45766 # Sed expression to map a string onto a valid variable name.
45767 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45771 ## ----------------------------------- ##
45772 ## Main body of $CONFIG_STATUS script. ##
45773 ## ----------------------------------- ##
45775 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
45777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45778 # Save the log message, to keep $0 and so on meaningful, and to
45779 # report actual input values of CONFIG_FILES etc. instead of their
45780 # values after options handling.
45782 This file was extended by amanda $as_me 3.3.3, which was
45783 generated by GNU Autoconf 2.68. Invocation command line was
45785 CONFIG_FILES = $CONFIG_FILES
45786 CONFIG_HEADERS = $CONFIG_HEADERS
45787 CONFIG_LINKS = $CONFIG_LINKS
45788 CONFIG_COMMANDS = $CONFIG_COMMANDS
45791 on `(hostname || uname -n) 2>/dev/null | sed 1q`
45796 case $ac_config_files in *"
45797 "*) set x $ac_config_files; shift; ac_config_files=$*;;
45800 case $ac_config_headers in *"
45801 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
45805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45806 # Files that config.status was made for.
45807 config_files="$ac_config_files"
45808 config_headers="$ac_config_headers"
45809 config_commands="$ac_config_commands"
45813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45815 \`$as_me' instantiates files and other configuration actions
45816 from templates according to the current configuration. Unless the files
45817 and actions are specified as TAGs, all are instantiated by default.
45819 Usage: $0 [OPTION]... [TAG]...
45821 -h, --help print this help, then exit
45822 -V, --version print version number and configuration settings, then exit
45823 --config print configuration, then exit
45824 -q, --quiet, --silent
45825 do not print progress messages
45826 -d, --debug don't remove temporary files
45827 --recheck update $as_me by reconfiguring in the same conditions
45828 --file=FILE[:TEMPLATE]
45829 instantiate the configuration file FILE
45830 --header=FILE[:TEMPLATE]
45831 instantiate the configuration header FILE
45833 Configuration files:
45836 Configuration headers:
45839 Configuration commands:
45842 Report bugs to the package provider."
45845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45846 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
45848 amanda config.status 3.3.3
45849 configured by $0, generated by GNU Autoconf 2.68,
45850 with options \\"\$ac_cs_config\\"
45852 Copyright (C) 2010 Free Software Foundation, Inc.
45853 This config.status script is free software; the Free Software Foundation
45854 gives unlimited permission to copy, distribute and modify it."
45861 test -n "\$AWK" || AWK=awk
45864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45865 # The default lists apply if the user does not specify any file.
45871 ac_option=`expr "X$1" : 'X\([^=]*\)='`
45872 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
45876 ac_option=`expr "X$1" : 'X\([^=]*\)='`
45888 # Handling of the options.
45889 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45891 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
45892 $as_echo "$ac_cs_version"; exit ;;
45893 --config | --confi | --conf | --con | --co | --c )
45894 $as_echo "$ac_cs_config"; exit ;;
45895 --debug | --debu | --deb | --de | --d | -d )
45897 --file | --fil | --fi | --f )
45900 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
45901 '') as_fn_error $? "missing file argument" ;;
45903 as_fn_append CONFIG_FILES " '$ac_optarg'"
45904 ac_need_defaults=false;;
45905 --header | --heade | --head | --hea )
45908 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
45910 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
45911 ac_need_defaults=false;;
45913 # Conflict between --help and --header
45914 as_fn_error $? "ambiguous option: \`$1'
45915 Try \`$0 --help' for more information.";;
45916 --help | --hel | -h )
45917 $as_echo "$ac_cs_usage"; exit ;;
45918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45919 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45922 # This is an error.
45923 -*) as_fn_error $? "unrecognized option: \`$1'
45924 Try \`$0 --help' for more information." ;;
45926 *) as_fn_append ac_config_targets " $1"
45927 ac_need_defaults=false ;;
45933 ac_configure_extra_args=
45935 if $ac_cs_silent; then
45937 ac_configure_extra_args="$ac_configure_extra_args --silent"
45941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45942 if \$ac_cs_recheck; then
45943 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45945 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
45946 CONFIG_SHELL='$SHELL'
45947 export CONFIG_SHELL
45952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45956 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45957 ## Running $as_me. ##
45963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45967 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45968 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
45969 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
45970 # from automake < 1.5.
45971 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
45972 # Capture the value of LINGUAS because we need it to compute CATALOGS.
45973 LINGUAS="${LINGUAS-%UNSET%}"
45977 # The HP-UX ksh and POSIX shell print the target directory to stdout
45978 # if CDPATH is set.
45979 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
45981 sed_quote_subst='$sed_quote_subst'
45982 double_quote_subst='$double_quote_subst'
45983 delay_variable_subst='$delay_variable_subst'
45984 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
45985 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
45986 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
45987 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
45988 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
45989 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
45990 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
45991 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
45992 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
45993 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
45994 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
45995 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
45996 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
45997 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
45998 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
45999 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
46000 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
46001 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
46002 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
46003 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
46004 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
46005 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
46006 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
46007 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
46008 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
46009 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
46010 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
46011 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
46012 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
46013 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
46014 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
46015 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
46016 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
46017 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
46018 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
46019 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
46020 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
46021 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
46022 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
46023 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
46024 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
46025 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
46026 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
46027 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
46028 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
46029 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
46030 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
46031 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
46032 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
46033 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
46034 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
46035 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
46036 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
46037 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
46038 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
46039 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
46040 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
46041 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
46042 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
46043 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
46044 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
46045 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
46046 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
46047 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
46048 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
46049 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
46050 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
46051 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
46052 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
46053 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
46054 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
46055 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
46056 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
46057 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
46058 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
46059 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
46060 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
46061 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
46062 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
46063 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
46064 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
46065 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
46066 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
46067 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
46068 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
46069 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
46070 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
46071 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
46072 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
46073 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
46074 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
46075 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
46076 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
46077 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
46078 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
46079 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
46080 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
46081 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
46082 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
46083 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
46084 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
46085 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
46086 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
46087 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
46088 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
46089 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
46090 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
46091 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
46092 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
46093 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
46094 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
46095 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
46096 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
46097 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
46098 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
46099 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
46100 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
46101 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
46102 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
46103 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
46104 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
46105 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
46106 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
46107 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
46108 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
46109 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
46110 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
46111 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
46112 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
46113 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
46116 LTCFLAGS='$LTCFLAGS'
46117 compiler='$compiler_DEFAULT'
46119 # A function that is used when there is no print builtin or printf.
46120 func_fallback_echo ()
46122 eval 'cat <<_LTECHO_EOF
46127 # Quote evaled strings.
46141 deplibs_check_method \
46146 sharedlib_from_linklib_cmd \
46149 archiver_list_spec \
46155 lt_cv_sys_global_symbol_pipe \
46156 lt_cv_sys_global_symbol_to_cdecl \
46157 lt_cv_sys_global_symbol_to_c_name_address \
46158 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
46159 nm_file_list_spec \
46160 lt_prog_compiler_no_builtin_flag \
46161 lt_prog_compiler_pic \
46162 lt_prog_compiler_wl \
46163 lt_prog_compiler_static \
46164 lt_cv_prog_compiler_c_o \
46173 export_dynamic_flag_spec \
46174 whole_archive_flag_spec \
46175 compiler_needs_object \
46177 allow_undefined_flag \
46178 no_undefined_flag \
46179 hardcode_libdir_flag_spec \
46180 hardcode_libdir_flag_spec_ld \
46181 hardcode_libdir_separator \
46185 variables_saved_for_relink \
46187 library_names_spec \
46189 install_override_mode \
46193 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
46194 *[\\\\\\\`\\"\\\$]*)
46195 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
46198 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46203 # Double-quote double-evaled strings.
46204 for var in reload_cmds \
46205 old_postinstall_cmds \
46206 old_postuninstall_cmds \
46208 extract_expsyms_cmds \
46209 old_archive_from_new_cmds \
46210 old_archive_from_expsyms_cmds \
46212 archive_expsym_cmds \
46214 module_expsym_cmds \
46215 export_symbols_cmds \
46219 postuninstall_cmds \
46221 sys_lib_search_path_spec \
46222 sys_lib_dlsearch_path_spec; do
46223 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
46224 *[\\\\\\\`\\"\\\$]*)
46225 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
46228 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46233 ac_aux_dir='$ac_aux_dir'
46234 xsi_shell='$xsi_shell'
46235 lt_shell_append='$lt_shell_append'
46237 # See if we are running on zsh, and set the options which allow our
46238 # commands through without removal of \ escapes INIT.
46239 if test -n "\${ZSH_VERSION+set}" ; then
46240 setopt NO_GLOB_SUBST
46246 TIMESTAMP='$TIMESTAMP'
46255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46257 # Handling of arguments.
46258 for ac_config_target in $ac_config_targets
46260 case $ac_config_target in
46261 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
46262 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
46263 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
46264 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
46265 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46266 "amandad-src/Makefile") CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
46267 "amar-src/Makefile") CONFIG_FILES="$CONFIG_FILES amar-src/Makefile" ;;
46268 "amplot/Makefile") CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
46269 "changer-src/Makefile") CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
46270 "client-src/Makefile") CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
46271 "common-src/Makefile") CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
46272 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
46273 "device-src/Makefile") CONFIG_FILES="$CONFIG_FILES device-src/Makefile" ;;
46274 "application-src/Makefile") CONFIG_FILES="$CONFIG_FILES application-src/Makefile" ;;
46275 "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
46276 "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
46277 "installcheck/Makefile") CONFIG_FILES="$CONFIG_FILES installcheck/Makefile" ;;
46278 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
46279 "ndmp-src/Makefile") CONFIG_FILES="$CONFIG_FILES ndmp-src/Makefile" ;;
46280 "oldrecover-src/Makefile") CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
46281 "packaging/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;;
46282 "perl/amglue/Makefile") CONFIG_FILES="$CONFIG_FILES perl/amglue/Makefile" ;;
46283 "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;;
46284 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
46285 "recover-src/Makefile") CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
46286 "server-src/Makefile") CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
46287 "xfer-src/Makefile") CONFIG_FILES="$CONFIG_FILES xfer-src/Makefile" ;;
46289 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
46294 # If the user did not use the arguments to specify the items to instantiate,
46295 # then the envvar interface is used. Set only those that are not.
46296 # We use the long form for the default assignment because of an extremely
46297 # bizarre bug on SunOS 4.1.3.
46298 if $ac_need_defaults; then
46299 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46300 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46301 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46304 # Have a temporary directory for convenience. Make it in the build tree
46305 # simply because there is no reason against having it here, and in addition,
46306 # creating and moving files from /tmp can sometimes cause problems.
46307 # Hook for its removal unless debugging.
46308 # Note that there is a small window in which the directory will not be cleaned:
46309 # after its creation but before its name has been assigned to `$tmp'.
46313 trap 'exit_status=$?
46314 : "${ac_tmp:=$tmp}"
46315 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
46317 trap 'as_fn_exit 1' 1 2 13 15
46319 # Create a (secure) tmp directory for tmp files.
46322 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
46326 tmp=./conf$$-$RANDOM
46327 (umask 077 && mkdir "$tmp")
46328 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
46331 # Set up the scripts for CONFIG_FILES section.
46332 # No need to generate them if there are no CONFIG_FILES.
46333 # This happens for instance with `./config.status config.h'.
46334 if test -n "$CONFIG_FILES"; then
46337 ac_cr=`echo X | tr X '\015'`
46338 # On cygwin, bash can eat \r inside `` if the user requested igncr.
46339 # But we know of no other shell where ac_cr would be empty at this
46340 # point, so we can use a bashism as a fallback.
46341 if test "x$ac_cr" = x; then
46342 eval ac_cr=\$\'\\r\'
46344 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
46345 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
46348 ac_cs_awk_cr=$ac_cr
46351 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
46356 echo "cat >conf$$subs.awk <<_ACEOF" &&
46357 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
46359 } >conf$$subs.sh ||
46360 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46361 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
46363 for ac_last_try in false false false false false :; do
46364 . ./conf$$subs.sh ||
46365 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46367 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
46368 if test $ac_delim_n = $ac_delim_num; then
46370 elif $ac_last_try; then
46371 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46373 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46376 rm -f conf$$subs.sh
46378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46379 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
46383 s/^/S["/; s/!.*/"]=/
46393 s/\(.\{148\}\)..*/\1/
46395 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
46400 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46407 s/\(.\{148\}\)..*/\1/
46409 s/["\\]/\\&/g; s/^/"/; s/$/"/
46413 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46418 ' <conf$$subs.awk | sed '
46423 ' >>$CONFIG_STATUS || ac_write_fail=1
46424 rm -f conf$$subs.awk
46425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46427 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
46428 for (key in S) S_is_set[key] = 1
46434 nfields = split(line, field, "@")
46436 len = length(field[1])
46437 for (i = 2; i < nfields; i++) {
46439 keylen = length(key)
46440 if (S_is_set[key]) {
46442 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
46443 len += length(value) + length(field[++i])
46454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46455 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
46456 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
46459 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
46460 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
46463 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
46464 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
46465 # trailing colons and then remove the whole line if VPATH becomes empty
46466 # (actually we leave an empty line to preserve line numbers).
46467 if test "x$srcdir" = x.; then
46468 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
46486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46487 fi # test -n "$CONFIG_FILES"
46489 # Set up the scripts for CONFIG_HEADERS section.
46490 # No need to generate them if there are no CONFIG_HEADERS.
46491 # This happens for instance with `./config.status Makefile'.
46492 if test -n "$CONFIG_HEADERS"; then
46493 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
46497 # Transform confdefs.h into an awk script `defines.awk', embedded as
46498 # here-document in config.status, that substitutes the proper values into
46499 # config.h.in to produce config.h.
46501 # Create a delimiter string that does not exist in confdefs.h, to ease
46502 # handling of long lines.
46504 for ac_last_try in false false :; do
46505 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
46506 if test -z "$ac_tt"; then
46508 elif $ac_last_try; then
46509 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
46511 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46515 # For the awk script, D is an array of macro values keyed by name,
46516 # likewise P contains macro parameters if any. Preserve backslash
46517 # newline sequences.
46519 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46521 s/.\{148\}/&'"$ac_delim"'/g
46524 s/^[ ]*#[ ]*define[ ][ ]*/ /
46531 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
46533 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
46537 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
46538 D["\1"]=" \3\\\\\\n"\\/p
46540 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
46545 s/.\{148\}/&'"$ac_delim"'/g
46550 s/["\\]/\\&/g; s/^/"/; s/$/"/p
46553 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
46555 ' <confdefs.h | sed '
46556 s/'"$ac_delim"'/"\\\
46557 "/g' >>$CONFIG_STATUS || ac_write_fail=1
46559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46560 for (key in D) D_is_set[key] = 1
46563 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
46565 split(line, arg, " ")
46566 if (arg[1] == "#") {
46570 defundef = substr(arg[1], 2)
46573 split(mac1, mac2, "(") #)
46575 prefix = substr(line, 1, index(line, defundef) - 1)
46576 if (D_is_set[macro]) {
46577 # Preserve the white space surrounding the "#".
46578 print prefix "define", macro P[macro] D[macro]
46581 # Replace #undef with comments. This is necessary, for example,
46582 # in the case of _POSIX_SOURCE, which is predefined and required
46583 # on some systems where configure will not decide to define it.
46584 if (defundef == "undef") {
46585 print "/*", prefix defundef, macro, "*/"
46593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46594 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
46595 fi # test -n "$CONFIG_HEADERS"
46598 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
46603 :[FHLC]) ac_mode=$ac_tag; continue;;
46605 case $ac_mode$ac_tag in
46607 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
46608 :[FH]-) ac_tag=-:-;;
46609 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
46626 -) ac_f="$ac_tmp/stdin";;
46627 *) # Look for the file first in the build tree, then in the source tree
46628 # (if the path is not absolute). The absolute path cannot be DOS-style,
46629 # because $ac_f cannot contain `:'.
46633 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
46635 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
46637 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
46638 as_fn_append ac_file_inputs " '$ac_f'"
46641 # Let's still pretend it is `configure' which instantiates (i.e., don't
46642 # use $as_me), people would be surprised to read:
46643 # /* config.h. Generated by config.status. */
46644 configure_input='Generated from '`
46645 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
46647 if test x"$ac_file" != x-; then
46648 configure_input="$ac_file. $configure_input"
46649 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
46650 $as_echo "$as_me: creating $ac_file" >&6;}
46652 # Neutralize special characters interpreted by sed in replacement strings.
46653 case $configure_input in #(
46654 *\&* | *\|* | *\\* )
46655 ac_sed_conf_input=`$as_echo "$configure_input" |
46656 sed 's/[\\\\&|]/\\\\&/g'`;; #(
46657 *) ac_sed_conf_input=$configure_input;;
46661 *:-:* | *:-) cat >"$ac_tmp/stdin" \
46662 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
46667 ac_dir=`$as_dirname -- "$ac_file" ||
46668 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46669 X"$ac_file" : 'X\(//\)[^/]' \| \
46670 X"$ac_file" : 'X\(//\)$' \| \
46671 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
46672 $as_echo X"$ac_file" |
46673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46677 /^X\(\/\/\)[^/].*/{
46690 as_dir="$ac_dir"; as_fn_mkdir_p
46694 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
46696 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
46697 # A ".." for each directory in $ac_dir_suffix.
46698 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
46699 case $ac_top_builddir_sub in
46700 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
46701 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
46704 ac_abs_top_builddir=$ac_pwd
46705 ac_abs_builddir=$ac_pwd$ac_dir_suffix
46706 # for backward compatibility:
46707 ac_top_builddir=$ac_top_build_prefix
46710 .) # We are building in place.
46712 ac_top_srcdir=$ac_top_builddir_sub
46713 ac_abs_top_srcdir=$ac_pwd ;;
46714 [\\/]* | ?:[\\/]* ) # Absolute name.
46715 ac_srcdir=$srcdir$ac_dir_suffix;
46716 ac_top_srcdir=$srcdir
46717 ac_abs_top_srcdir=$srcdir ;;
46718 *) # Relative name.
46719 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
46720 ac_top_srcdir=$ac_top_build_prefix$srcdir
46721 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
46723 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
46733 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46734 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
46736 ac_MKDIR_P=$MKDIR_P
46738 [\\/$]* | ?:[\\/]* ) ;;
46739 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
46743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46744 # If the template does not know about datarootdir, expand it.
46745 # FIXME: This hack should be removed a few years after 2.60.
46746 ac_datarootdir_hack=; ac_datarootdir_seen=
46757 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
46758 *datarootdir*) ac_datarootdir_seen=yes;;
46759 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
46760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
46761 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
46763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46764 ac_datarootdir_hack='
46765 s&@datadir@&$datadir&g
46766 s&@docdir@&$docdir&g
46767 s&@infodir@&$infodir&g
46768 s&@localedir@&$localedir&g
46769 s&@mandir@&$mandir&g
46770 s&\\\${datarootdir}&$datarootdir&g' ;;
46774 # Neutralize VPATH when `$srcdir' = `.'.
46775 # Shell code in configure.ac might set extrasub.
46776 # FIXME: do we really want to maintain this feature?
46777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46778 ac_sed_extra="$ac_vpsub
46781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46783 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46784 s|@configure_input@|$ac_sed_conf_input|;t t
46785 s&@top_builddir@&$ac_top_builddir_sub&;t t
46786 s&@top_build_prefix@&$ac_top_build_prefix&;t t
46787 s&@srcdir@&$ac_srcdir&;t t
46788 s&@abs_srcdir@&$ac_abs_srcdir&;t t
46789 s&@top_srcdir@&$ac_top_srcdir&;t t
46790 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
46791 s&@builddir@&$ac_builddir&;t t
46792 s&@abs_builddir@&$ac_abs_builddir&;t t
46793 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
46794 s&@INSTALL@&$ac_INSTALL&;t t
46795 s&@MKDIR_P@&$ac_MKDIR_P&;t t
46796 $ac_datarootdir_hack
46798 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
46799 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46801 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
46802 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
46803 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
46804 "$ac_tmp/out"`; test -z "$ac_out"; } &&
46805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46806 which seems to be undefined. Please make sure it is defined" >&5
46807 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46808 which seems to be undefined. Please make sure it is defined" >&2;}
46810 rm -f "$ac_tmp/stdin"
46812 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
46813 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
46815 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46821 if test x"$ac_file" != x-; then
46823 $as_echo "/* $configure_input */" \
46824 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
46825 } >"$ac_tmp/config.h" \
46826 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46827 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
46828 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
46829 $as_echo "$as_me: $ac_file is unchanged" >&6;}
46832 mv "$ac_tmp/config.h" "$ac_file" \
46833 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46836 $as_echo "/* $configure_input */" \
46837 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
46838 || as_fn_error $? "could not create -" "$LINENO" 5
46840 # Compute "$ac_file"'s index in $config_headers.
46843 for _am_header in $config_headers :; do
46844 case $_am_header in
46845 $_am_arg | $_am_arg:* )
46848 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46851 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
46852 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46853 X"$_am_arg" : 'X\(//\)[^/]' \| \
46854 X"$_am_arg" : 'X\(//\)$' \| \
46855 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
46856 $as_echo X"$_am_arg" |
46857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46861 /^X\(\/\/\)[^/].*/{
46873 s/.*/./; q'`/stamp-h$_am_stamp_count
46876 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
46877 $as_echo "$as_me: executing $ac_file commands" >&6;}
46882 case $ac_file$ac_mode in
46883 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
46884 # Autoconf 2.62 quotes --file arguments for eval, but not when files
46885 # are listed without --file. Let's play safe and only enable the eval
46886 # if we detect the quoting.
46887 case $CONFIG_FILES in
46888 *\'*) eval set x "$CONFIG_FILES" ;;
46889 *) set x $CONFIG_FILES ;;
46894 # Strip MF so we end up with the name of the file.
46895 mf=`echo "$mf" | sed -e 's/:.*$//'`
46896 # Check whether this is an Automake generated Makefile or not.
46897 # We used to match only the files named `Makefile.in', but
46898 # some people rename them; so instead we look at the file content.
46899 # Grep'ing the first line is not enough: some people post-process
46900 # each Makefile.in and add a new line on top of each file to say so.
46901 # Grep'ing the whole file is not good either: AIX grep has a line
46902 # limit of 2048, but all sed's we know have understand at least 4000.
46903 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
46904 dirpart=`$as_dirname -- "$mf" ||
46905 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46906 X"$mf" : 'X\(//\)[^/]' \| \
46907 X"$mf" : 'X\(//\)$' \| \
46908 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
46910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46914 /^X\(\/\/\)[^/].*/{
46930 # Extract the definition of DEPDIR, am__include, and am__quote
46931 # from the Makefile without running `make'.
46932 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46933 test -z "$DEPDIR" && continue
46934 am__include=`sed -n 's/^am__include = //p' < "$mf"`
46935 test -z "am__include" && continue
46936 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46937 # When using ansi2knr, U may be empty or an underscore; expand it
46938 U=`sed -n 's/^U = //p' < "$mf"`
46939 # Find all dependency output files, they are included files with
46940 # $(DEPDIR) in their names. We invoke sed twice because it is the
46941 # simplest approach to changing $(DEPDIR) to its actual value in the
46943 for file in `sed -n "
46944 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46945 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46946 # Make sure the directory exists.
46947 test -f "$dirpart/$file" && continue
46948 fdir=`$as_dirname -- "$file" ||
46949 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46950 X"$file" : 'X\(//\)[^/]' \| \
46951 X"$file" : 'X\(//\)$' \| \
46952 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
46953 $as_echo X"$file" |
46954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46958 /^X\(\/\/\)[^/].*/{
46971 as_dir=$dirpart/$fdir; as_fn_mkdir_p
46972 # echo "creating $dirpart/$file"
46973 echo '# dummy' > "$dirpart/$file"
46978 "po-directories":C)
46979 for ac_file in $CONFIG_FILES; do
46980 # Support "outfile[:infile[:infile...]]"
46982 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
46984 # PO directories have a Makefile.in generated from Makefile.in.in.
46985 case "$ac_file" in */Makefile.in)
46986 # Adjust a relative srcdir.
46987 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46988 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
46989 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
46990 # In autoconf-2.13 it is called $ac_given_srcdir.
46991 # In autoconf-2.50 it is called $srcdir.
46992 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
46993 case "$ac_given_srcdir" in
46994 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
46995 /*) top_srcdir="$ac_given_srcdir" ;;
46996 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
46998 # Treat a directory as a PO directory if and only if it has a
46999 # POTFILES.in file. This allows packages to have multiple PO
47000 # directories under different names or in different locations.
47001 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
47002 rm -f "$ac_dir/POTFILES"
47003 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
47004 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
47005 POMAKEFILEDEPS="POTFILES.in"
47006 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
47007 # on $ac_dir but don't depend on user-specified configuration
47009 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
47010 # The LINGUAS file contains the set of available languages.
47011 if test -n "$OBSOLETE_ALL_LINGUAS"; then
47012 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
47014 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
47015 # Hide the ALL_LINGUAS assigment from automake < 1.5.
47016 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
47017 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
47019 # The set of available languages was given in configure.in.
47020 # Hide the ALL_LINGUAS assigment from automake < 1.5.
47021 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
47024 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
47025 # Compute UPDATEPOFILES
47026 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
47027 # Compute DUMMYPOFILES
47028 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
47030 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
47031 case "$ac_given_srcdir" in
47033 *) srcdirpre='$(srcdir)/' ;;
47039 for lang in $ALL_LINGUAS; do
47040 POFILES="$POFILES $srcdirpre$lang.po"
47041 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
47042 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
47043 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
47045 # CATALOGS depends on both $ac_dir and the user's LINGUAS
47046 # environment variable.
47048 if test -n "$ALL_LINGUAS"; then
47049 for presentlang in $ALL_LINGUAS; do
47051 if test "%UNSET%" != "$LINGUAS"; then
47052 desiredlanguages="$LINGUAS"
47054 desiredlanguages="$ALL_LINGUAS"
47056 for desiredlang in $desiredlanguages; do
47057 # Use the presentlang catalog if desiredlang is
47058 # a. equal to presentlang, or
47059 # b. a variant of presentlang (because in this case,
47060 # presentlang can be used as a fallback for messages
47061 # which are not translated in the desiredlang catalog).
47062 case "$desiredlang" in
47063 "$presentlang"*) useit=yes;;
47066 if test $useit = yes; then
47067 INST_LINGUAS="$INST_LINGUAS $presentlang"
47072 if test -n "$INST_LINGUAS"; then
47073 for lang in $INST_LINGUAS; do
47074 CATALOGS="$CATALOGS $lang.gmo"
47077 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
47078 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"
47079 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
47080 if test -f "$f"; then
47082 *.orig | *.bak | *~) ;;
47083 *) cat "$f" >> "$ac_dir/Makefile" ;;
47093 # See if we are running on zsh, and set the options which allow our
47094 # commands through without removal of \ escapes.
47095 if test -n "${ZSH_VERSION+set}" ; then
47096 setopt NO_GLOB_SUBST
47099 cfgfile="${ofile}T"
47100 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
47103 cat <<_LT_EOF >> "$cfgfile"
47106 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
47107 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
47108 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
47109 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
47111 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
47112 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
47114 # Written by Gordon Matzigkeit, 1996
47116 # This file is part of GNU Libtool.
47118 # GNU Libtool is free software; you can redistribute it and/or
47119 # modify it under the terms of the GNU General Public License as
47120 # published by the Free Software Foundation; either version 2 of
47121 # the License, or (at your option) any later version.
47123 # As a special exception to the GNU General Public License,
47124 # if you distribute this file as part of a program or library that
47125 # is built using GNU Libtool, you may include this file under the
47126 # same distribution terms that you use for the rest of that program.
47128 # GNU Libtool is distributed in the hope that it will be useful,
47129 # but WITHOUT ANY WARRANTY; without even the implied warranty of
47130 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47131 # GNU General Public License for more details.
47133 # You should have received a copy of the GNU General Public License
47134 # along with GNU Libtool; see the file COPYING. If not, a copy
47135 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
47136 # obtained by writing to the Free Software Foundation, Inc.,
47137 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
47140 # The names of the tagged configurations supported by this script.
47143 # ### BEGIN LIBTOOL CONFIG
47145 # Which release of libtool.m4 was used?
47146 macro_version=$macro_version
47147 macro_revision=$macro_revision
47149 # Whether or not to build shared libraries.
47150 build_libtool_libs=$enable_shared
47152 # Whether or not to build static libraries.
47153 build_old_libs=$enable_static
47155 # What type of objects to build.
47158 # Whether or not to optimize for fast installation.
47159 fast_install=$enable_fast_install
47161 # Shell to use when invoking shell scripts.
47164 # An echo program that protects backslashes.
47168 host_alias=$host_alias
47172 # The build system.
47173 build_alias=$build_alias
47177 # A sed program that does not truncate output.
47180 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
47181 Xsed="\$SED -e 1s/^X//"
47183 # A grep program that handles long lines.
47189 # A literal string matcher.
47192 # A BSD- or MS-compatible name lister.
47195 # Whether we need soft or hard links.
47198 # What is the maximum length of a command?
47199 max_cmd_len=$max_cmd_len
47201 # Object file suffix (normally "o").
47204 # Executable file suffix (normally "").
47207 # whether the shell understands "unset".
47210 # turn spaces into newlines.
47213 # turn newlines into spaces.
47216 # convert \$build file names to \$host format.
47217 to_host_file_cmd=$lt_cv_to_host_file_cmd
47219 # convert \$build files to toolchain format.
47220 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
47222 # An object symbol dumper.
47223 OBJDUMP=$lt_OBJDUMP
47225 # Method to check whether dependent libraries are shared objects.
47226 deplibs_check_method=$lt_deplibs_check_method
47228 # Command to use when deplibs_check_method = "file_magic".
47229 file_magic_cmd=$lt_file_magic_cmd
47231 # How to find potential files when deplibs_check_method = "file_magic".
47232 file_magic_glob=$lt_file_magic_glob
47234 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
47235 want_nocaseglob=$lt_want_nocaseglob
47237 # DLL creation program.
47238 DLLTOOL=$lt_DLLTOOL
47240 # Command to associate shared and link libraries.
47241 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
47246 # Flags to create an archive.
47247 AR_FLAGS=$lt_AR_FLAGS
47249 # How to feed a file listing to the archiver.
47250 archiver_list_spec=$lt_archiver_list_spec
47252 # A symbol stripping program.
47255 # Commands used to install an old-style archive.
47257 old_postinstall_cmds=$lt_old_postinstall_cmds
47258 old_postuninstall_cmds=$lt_old_postuninstall_cmds
47260 # Whether to use a lock for old archive extraction.
47261 lock_old_archive_extraction=$lock_old_archive_extraction
47266 # LTCC compiler flags.
47267 LTCFLAGS=$lt_CFLAGS
47269 # Take the output of nm and produce a listing of raw symbols and C names.
47270 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
47272 # Transform the output of nm in a proper C declaration.
47273 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
47275 # Transform the output of nm in a C name address pair.
47276 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
47278 # Transform the output of nm in a C name address pair when lib prefix is needed.
47279 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
47281 # Specify filename containing input files for \$NM.
47282 nm_file_list_spec=$lt_nm_file_list_spec
47284 # The root where to search for dependent libraries,and in which our libraries should be installed.
47285 lt_sysroot=$lt_sysroot
47287 # The name of the directory that contains temporary libtool files.
47290 # Used to examine libraries when file_magic_cmd begins with "file".
47291 MAGIC_CMD=$MAGIC_CMD
47293 # Must we lock files when doing compilation?
47294 need_locks=$lt_need_locks
47297 MANIFEST_TOOL=$lt_MANIFEST_TOOL
47299 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
47300 DSYMUTIL=$lt_DSYMUTIL
47302 # Tool to change global to local symbols on Mac OS X.
47305 # Tool to manipulate fat objects and archives on Mac OS X.
47308 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
47311 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
47312 OTOOL64=$lt_OTOOL64
47314 # Old archive suffix (normally "a").
47317 # Shared library suffix (normally ".so").
47318 shrext_cmds=$lt_shrext_cmds
47320 # The commands to extract the exported symbol list from a shared archive.
47321 extract_expsyms_cmds=$lt_extract_expsyms_cmds
47323 # Variables whose values should be saved in libtool wrapper scripts and
47324 # restored at link time.
47325 variables_saved_for_relink=$lt_variables_saved_for_relink
47327 # Do we need the "lib" prefix for modules?
47328 need_lib_prefix=$need_lib_prefix
47330 # Do we need a version for libraries?
47331 need_version=$need_version
47333 # Library versioning type.
47334 version_type=$version_type
47336 # Shared library runtime path variable.
47337 runpath_var=$runpath_var
47339 # Shared library path variable.
47340 shlibpath_var=$shlibpath_var
47342 # Is shlibpath searched before the hard-coded library search path?
47343 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47345 # Format of library name prefix.
47346 libname_spec=$lt_libname_spec
47348 # List of archive names. First name is the real one, the rest are links.
47349 # The last name is the one that the linker finds with -lNAME
47350 library_names_spec=$lt_library_names_spec
47352 # The coded name of the library, if different from the real name.
47353 soname_spec=$lt_soname_spec
47355 # Permission mode override for installation of shared libraries.
47356 install_override_mode=$lt_install_override_mode
47358 # Command to use after installation of a shared archive.
47359 postinstall_cmds=$lt_postinstall_cmds
47361 # Command to use after uninstallation of a shared archive.
47362 postuninstall_cmds=$lt_postuninstall_cmds
47364 # Commands used to finish a libtool library installation in a directory.
47365 finish_cmds=$lt_finish_cmds
47367 # As "finish_cmds", except a single script fragment to be evaled but
47369 finish_eval=$lt_finish_eval
47371 # Whether we should hardcode library paths into libraries.
47372 hardcode_into_libs=$hardcode_into_libs
47374 # Compile-time system search path for libraries.
47375 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47377 # Run-time system search path for libraries.
47378 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
47380 # Whether dlopen is supported.
47381 dlopen_support=$enable_dlopen
47383 # Whether dlopen of programs is supported.
47384 dlopen_self=$enable_dlopen_self
47386 # Whether dlopen of statically linked programs is supported.
47387 dlopen_self_static=$enable_dlopen_self_static
47389 # Commands to strip libraries.
47390 old_striplib=$lt_old_striplib
47391 striplib=$lt_striplib
47394 # The linker used to build libraries.
47397 # How to create reloadable object files.
47398 reload_flag=$lt_reload_flag
47399 reload_cmds=$lt_reload_cmds
47401 # Commands used to build an old-style archive.
47402 old_archive_cmds=$lt_old_archive_cmds
47404 # A language specific compiler.
47407 # Is the compiler the GNU compiler?
47410 # Compiler flag to turn off builtin functions.
47411 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
47413 # Additional compiler flags for building library objects.
47414 pic_flag=$lt_lt_prog_compiler_pic
47416 # How to pass a linker flag through the compiler.
47417 wl=$lt_lt_prog_compiler_wl
47419 # Compiler flag to prevent dynamic linking.
47420 link_static_flag=$lt_lt_prog_compiler_static
47422 # Does compiler simultaneously support -c and -o options?
47423 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
47425 # Whether or not to add -lc for building shared libraries.
47426 build_libtool_need_lc=$archive_cmds_need_lc
47428 # Whether or not to disallow shared libs when runtime libs are static.
47429 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
47431 # Compiler flag to allow reflexive dlopens.
47432 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
47434 # Compiler flag to generate shared objects directly from archives.
47435 whole_archive_flag_spec=$lt_whole_archive_flag_spec
47437 # Whether the compiler copes with passing no objects directly.
47438 compiler_needs_object=$lt_compiler_needs_object
47440 # Create an old-style archive from a shared archive.
47441 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
47443 # Create a temporary old-style archive to link instead of a shared archive.
47444 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
47446 # Commands used to build a shared archive.
47447 archive_cmds=$lt_archive_cmds
47448 archive_expsym_cmds=$lt_archive_expsym_cmds
47450 # Commands used to build a loadable module if different from building
47451 # a shared archive.
47452 module_cmds=$lt_module_cmds
47453 module_expsym_cmds=$lt_module_expsym_cmds
47455 # Whether we are building with GNU ld or not.
47456 with_gnu_ld=$lt_with_gnu_ld
47458 # Flag that allows shared libraries with undefined symbols to be built.
47459 allow_undefined_flag=$lt_allow_undefined_flag
47461 # Flag that enforces no undefined symbols.
47462 no_undefined_flag=$lt_no_undefined_flag
47464 # Flag to hardcode \$libdir into a binary during linking.
47465 # This must work even if \$libdir does not exist
47466 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
47468 # If ld is used when linking, flag to hardcode \$libdir into a binary
47469 # during linking. This must work even if \$libdir does not exist.
47470 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
47472 # Whether we need a single "-rpath" flag with a separated argument.
47473 hardcode_libdir_separator=$lt_hardcode_libdir_separator
47475 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47476 # DIR into the resulting binary.
47477 hardcode_direct=$hardcode_direct
47479 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47480 # DIR into the resulting binary and the resulting library dependency is
47481 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
47482 # library is relocated.
47483 hardcode_direct_absolute=$hardcode_direct_absolute
47485 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47486 # into the resulting binary.
47487 hardcode_minus_L=$hardcode_minus_L
47489 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47490 # into the resulting binary.
47491 hardcode_shlibpath_var=$hardcode_shlibpath_var
47493 # Set to "yes" if building a shared library automatically hardcodes DIR
47494 # into the library and all subsequent libraries and executables linked
47496 hardcode_automatic=$hardcode_automatic
47498 # Set to yes if linker adds runtime paths of dependent libraries
47499 # to runtime path list.
47500 inherit_rpath=$inherit_rpath
47502 # Whether libtool must link a program against all its dependency libraries.
47503 link_all_deplibs=$link_all_deplibs
47505 # Set to "yes" if exported symbols are required.
47506 always_export_symbols=$always_export_symbols
47508 # The commands to list exported symbols.
47509 export_symbols_cmds=$lt_export_symbols_cmds
47511 # Symbols that should not be listed in the preloaded symbols.
47512 exclude_expsyms=$lt_exclude_expsyms
47514 # Symbols that must always be exported.
47515 include_expsyms=$lt_include_expsyms
47517 # Commands necessary for linking programs (against libraries) with templates.
47518 prelink_cmds=$lt_prelink_cmds
47520 # Commands necessary for finishing linking programs.
47521 postlink_cmds=$lt_postlink_cmds
47523 # Specify filename containing input files.
47524 file_list_spec=$lt_file_list_spec
47526 # How to hardcode a shared library path into an executable.
47527 hardcode_action=$hardcode_action
47529 # ### END LIBTOOL CONFIG
47535 cat <<\_LT_EOF >> "$cfgfile"
47536 # AIX sometimes has problems with the GCC collect2 program. For some
47537 # reason, if we set the COLLECT_NAMES environment variable, the problems
47538 # vanish in a puff of smoke.
47539 if test "X${COLLECT_NAMES+set}" != Xset; then
47541 export COLLECT_NAMES
47548 ltmain="$ac_aux_dir/ltmain.sh"
47551 # We use sed instead of cat because bash on DJGPP gets confused if
47552 # if finds mixed CR/LF and LF-only lines. Since sed operates in
47553 # text mode, it properly converts lines to CR/LF. This bash problem
47554 # is reportedly fixed, but why not run on old versions too?
47555 sed '$q' "$ltmain" >> "$cfgfile" \
47556 || (rm -f "$cfgfile"; exit 1)
47558 if test x"$xsi_shell" = xyes; then
47559 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
47563 \ */*) func_dirname_result="${1%/*}${2}" ;;\
47564 \ * ) func_dirname_result="${3}" ;;\
47566 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
47567 && mv -f "$cfgfile.tmp" "$cfgfile" \
47568 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47569 test 0 -eq $? || _lt_function_replace_fail=:
47572 sed -e '/^func_basename ()$/,/^} # func_basename /c\
47575 \ func_basename_result="${1##*/}"\
47576 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
47577 && mv -f "$cfgfile.tmp" "$cfgfile" \
47578 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47579 test 0 -eq $? || _lt_function_replace_fail=:
47582 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
47583 func_dirname_and_basename ()\
47586 \ */*) func_dirname_result="${1%/*}${2}" ;;\
47587 \ * ) func_dirname_result="${3}" ;;\
47589 \ func_basename_result="${1##*/}"\
47590 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
47591 && mv -f "$cfgfile.tmp" "$cfgfile" \
47592 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47593 test 0 -eq $? || _lt_function_replace_fail=:
47596 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
47599 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
47600 \ # positional parameters, so assign one to ordinary parameter first.\
47601 \ func_stripname_result=${3}\
47602 \ func_stripname_result=${func_stripname_result#"${1}"}\
47603 \ func_stripname_result=${func_stripname_result%"${2}"}\
47604 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
47605 && mv -f "$cfgfile.tmp" "$cfgfile" \
47606 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47607 test 0 -eq $? || _lt_function_replace_fail=:
47610 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
47611 func_split_long_opt ()\
47613 \ func_split_long_opt_name=${1%%=*}\
47614 \ func_split_long_opt_arg=${1#*=}\
47615 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
47616 && mv -f "$cfgfile.tmp" "$cfgfile" \
47617 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47618 test 0 -eq $? || _lt_function_replace_fail=:
47621 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
47622 func_split_short_opt ()\
47624 \ func_split_short_opt_arg=${1#??}\
47625 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
47626 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
47627 && mv -f "$cfgfile.tmp" "$cfgfile" \
47628 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47629 test 0 -eq $? || _lt_function_replace_fail=:
47632 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
47636 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
47637 \ *) func_lo2o_result=${1} ;;\
47639 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
47640 && mv -f "$cfgfile.tmp" "$cfgfile" \
47641 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47642 test 0 -eq $? || _lt_function_replace_fail=:
47645 sed -e '/^func_xform ()$/,/^} # func_xform /c\
47648 func_xform_result=${1%.*}.lo\
47649 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
47650 && mv -f "$cfgfile.tmp" "$cfgfile" \
47651 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47652 test 0 -eq $? || _lt_function_replace_fail=:
47655 sed -e '/^func_arith ()$/,/^} # func_arith /c\
47658 func_arith_result=$(( $* ))\
47659 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
47660 && mv -f "$cfgfile.tmp" "$cfgfile" \
47661 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47662 test 0 -eq $? || _lt_function_replace_fail=:
47665 sed -e '/^func_len ()$/,/^} # func_len /c\
47668 func_len_result=${#1}\
47669 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
47670 && mv -f "$cfgfile.tmp" "$cfgfile" \
47671 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47672 test 0 -eq $? || _lt_function_replace_fail=:
47676 if test x"$lt_shell_append" = xyes; then
47677 sed -e '/^func_append ()$/,/^} # func_append /c\
47680 eval "${1}+=\\${2}"\
47681 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
47682 && mv -f "$cfgfile.tmp" "$cfgfile" \
47683 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47684 test 0 -eq $? || _lt_function_replace_fail=:
47687 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
47688 func_append_quoted ()\
47690 \ func_quote_for_eval "${2}"\
47691 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
47692 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
47693 && mv -f "$cfgfile.tmp" "$cfgfile" \
47694 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47695 test 0 -eq $? || _lt_function_replace_fail=:
47698 # Save a `func_append' function call where possible by direct use of '+='
47699 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
47700 && mv -f "$cfgfile.tmp" "$cfgfile" \
47701 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47702 test 0 -eq $? || _lt_function_replace_fail=:
47704 # Save a `func_append' function call even when '+=' is not available
47705 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
47706 && mv -f "$cfgfile.tmp" "$cfgfile" \
47707 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47708 test 0 -eq $? || _lt_function_replace_fail=:
47711 if test x"$_lt_function_replace_fail" = x":"; then
47712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
47713 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
47717 mv -f "$cfgfile" "$ofile" ||
47718 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
47729 ac_clean_files=$ac_clean_files_save
47731 test $ac_write_fail = 0 ||
47732 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
47735 # configure is writing to config.log, and then calls config.status.
47736 # config.status does its own redirection, appending to config.log.
47737 # Unfortunately, on DOS this fails, as config.log is still kept open
47738 # by configure, so config.status won't be able to write to it; its
47739 # output is simply discarded. So we exec the FD to /dev/null,
47740 # effectively closing config.log, so it can be properly (re)opened and
47741 # appended to by config.status. When coming back to configure, we
47742 # need to make the FD available again.
47743 if test "$no_create" != yes; then
47745 ac_config_status_args=
47746 test "$silent" = yes &&
47747 ac_config_status_args="$ac_config_status_args --quiet"
47749 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47751 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47752 # would make configure fail if this is the last instruction.
47753 $ac_cs_success || as_fn_exit 1
47755 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
47756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
47757 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
47762 echo "Compiler Flags:"
47763 echo " CFLAGS: ${CFLAGS-(none)}"
47764 echo " CPPFLAGS: ${CPPFLAGS-(none)}"
47765 echo " LDFLAGS: ${LDFLAGS-(none)}"
47766 echo " LIBS: ${LIBS-(none)}"
47769 echo "Amanda Components:$AMANDA_COMPONENTS$missing_components"
47772 echo "Working IPv6:" $WORKING_IPV6
47775 echo "Build documentation:" $ENABLE_MANPAGE_BUILD
47778 echo "Directories:"
47779 echo " Application: $APPLICATION_DIR"
47780 echo " Configuration: $CONFIG_DIR"
47781 echo " GNU Tar lists: $GNUTAR_LISTED_INCREMENTAL_DIR"
47782 echo " Perl modules (amperldir): $amperldir"
47783 echo " Template and example data files (amdatadir): $amdatadir"
47784 echo " Temporary: $AMANDA_TMPDIR"
47786 if test -f config.warnings; then
47788 cat config.warnings | sed -e 's/^/ /g'