2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for amanda 3.3.2.
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.2'
571 PACKAGE_STRING='amanda 3.3.2'
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
1420 INSTALL_STRIP_PROGRAM
1473 program_transform_name
1486 enable_option_checking
1487 enable_dependency_tracking
1507 with_gnutar_listed_incremental
1513 with_low_tcpportrange
1517 with_maxtapeblocksize
1524 enable_syntax_checks
1533 enable_manpage_build
1549 with_libiconv_prefix
1553 with_bsdtcp_security
1554 with_bsdudp_security
1559 with_dump_honor_nodump
1574 enable_static_binary
1582 ac_precious_vars='build_alias
1612 # Initialize some variables set by options.
1614 ac_init_version=false
1615 ac_unrecognized_opts=
1616 ac_unrecognized_sep=
1617 # The variables have the same names as the options, with
1618 # dashes changed to underlines.
1619 cache_file=/dev/null
1626 program_transform_name=s,x,x,
1634 # Installation directory options.
1635 # These are left unexpanded so users can "make install exec_prefix=/foo"
1636 # and all the variables that are supposed to be based on exec_prefix
1637 # by default will actually change.
1638 # Use braces instead of parens because sh, perl, etc. also accept them.
1639 # (The list follows the same order as the GNU Coding Standards.)
1640 bindir='${exec_prefix}/bin'
1641 sbindir='${exec_prefix}/sbin'
1642 libexecdir='${exec_prefix}/libexec'
1643 datarootdir='${prefix}/share'
1644 datadir='${datarootdir}'
1645 sysconfdir='${prefix}/etc'
1646 sharedstatedir='${prefix}/com'
1647 localstatedir='${prefix}/var'
1648 includedir='${prefix}/include'
1649 oldincludedir='/usr/include'
1650 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1651 infodir='${datarootdir}/info'
1656 libdir='${exec_prefix}/lib'
1657 localedir='${datarootdir}/locale'
1658 mandir='${datarootdir}/man'
1664 # If the previous option needs an argument, assign it.
1665 if test -n "$ac_prev"; then
1666 eval $ac_prev=\$ac_option
1672 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1677 # Accept the important Cygnus configure options, so we can diagnose typos.
1679 case $ac_dashdash$ac_option in
1683 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1685 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1686 bindir=$ac_optarg ;;
1688 -build | --build | --buil | --bui | --bu)
1689 ac_prev=build_alias ;;
1690 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1691 build_alias=$ac_optarg ;;
1693 -cache-file | --cache-file | --cache-fil | --cache-fi \
1694 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1695 ac_prev=cache_file ;;
1696 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1697 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1698 cache_file=$ac_optarg ;;
1700 --config-cache | -C)
1701 cache_file=config.cache ;;
1703 -datadir | --datadir | --datadi | --datad)
1705 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1706 datadir=$ac_optarg ;;
1708 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1709 | --dataroo | --dataro | --datar)
1710 ac_prev=datarootdir ;;
1711 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1712 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1713 datarootdir=$ac_optarg ;;
1715 -disable-* | --disable-*)
1716 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1717 # Reject names that are not valid shell variable names.
1718 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1719 as_fn_error $? "invalid feature name: $ac_useropt"
1720 ac_useropt_orig=$ac_useropt
1721 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1722 case $ac_user_opts in
1724 "enable_$ac_useropt"
1726 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1727 ac_unrecognized_sep=', ';;
1729 eval enable_$ac_useropt=no ;;
1731 -docdir | --docdir | --docdi | --doc | --do)
1733 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1734 docdir=$ac_optarg ;;
1736 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1738 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1739 dvidir=$ac_optarg ;;
1741 -enable-* | --enable-*)
1742 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1743 # Reject names that are not valid shell variable names.
1744 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1745 as_fn_error $? "invalid feature name: $ac_useropt"
1746 ac_useropt_orig=$ac_useropt
1747 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1748 case $ac_user_opts in
1750 "enable_$ac_useropt"
1752 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1753 ac_unrecognized_sep=', ';;
1755 eval enable_$ac_useropt=\$ac_optarg ;;
1757 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1758 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1759 | --exec | --exe | --ex)
1760 ac_prev=exec_prefix ;;
1761 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1762 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1763 | --exec=* | --exe=* | --ex=*)
1764 exec_prefix=$ac_optarg ;;
1766 -gas | --gas | --ga | --g)
1767 # Obsolete; use --with-gas.
1770 -help | --help | --hel | --he | -h)
1771 ac_init_help=long ;;
1772 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1773 ac_init_help=recursive ;;
1774 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1775 ac_init_help=short ;;
1777 -host | --host | --hos | --ho)
1778 ac_prev=host_alias ;;
1779 -host=* | --host=* | --hos=* | --ho=*)
1780 host_alias=$ac_optarg ;;
1782 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1784 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1786 htmldir=$ac_optarg ;;
1788 -includedir | --includedir | --includedi | --included | --include \
1789 | --includ | --inclu | --incl | --inc)
1790 ac_prev=includedir ;;
1791 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1792 | --includ=* | --inclu=* | --incl=* | --inc=*)
1793 includedir=$ac_optarg ;;
1795 -infodir | --infodir | --infodi | --infod | --info | --inf)
1797 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1798 infodir=$ac_optarg ;;
1800 -libdir | --libdir | --libdi | --libd)
1802 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1803 libdir=$ac_optarg ;;
1805 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1806 | --libexe | --libex | --libe)
1807 ac_prev=libexecdir ;;
1808 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1809 | --libexe=* | --libex=* | --libe=*)
1810 libexecdir=$ac_optarg ;;
1812 -localedir | --localedir | --localedi | --localed | --locale)
1813 ac_prev=localedir ;;
1814 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1815 localedir=$ac_optarg ;;
1817 -localstatedir | --localstatedir | --localstatedi | --localstated \
1818 | --localstate | --localstat | --localsta | --localst | --locals)
1819 ac_prev=localstatedir ;;
1820 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1821 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1822 localstatedir=$ac_optarg ;;
1824 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1826 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1827 mandir=$ac_optarg ;;
1829 -nfp | --nfp | --nf)
1830 # Obsolete; use --without-fp.
1833 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1834 | --no-cr | --no-c | -n)
1837 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1838 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1841 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1842 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1843 | --oldin | --oldi | --old | --ol | --o)
1844 ac_prev=oldincludedir ;;
1845 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1846 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1847 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1848 oldincludedir=$ac_optarg ;;
1850 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1852 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1853 prefix=$ac_optarg ;;
1855 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1856 | --program-pre | --program-pr | --program-p)
1857 ac_prev=program_prefix ;;
1858 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1859 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1860 program_prefix=$ac_optarg ;;
1862 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1863 | --program-suf | --program-su | --program-s)
1864 ac_prev=program_suffix ;;
1865 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1866 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1867 program_suffix=$ac_optarg ;;
1869 -program-transform-name | --program-transform-name \
1870 | --program-transform-nam | --program-transform-na \
1871 | --program-transform-n | --program-transform- \
1872 | --program-transform | --program-transfor \
1873 | --program-transfo | --program-transf \
1874 | --program-trans | --program-tran \
1875 | --progr-tra | --program-tr | --program-t)
1876 ac_prev=program_transform_name ;;
1877 -program-transform-name=* | --program-transform-name=* \
1878 | --program-transform-nam=* | --program-transform-na=* \
1879 | --program-transform-n=* | --program-transform-=* \
1880 | --program-transform=* | --program-transfor=* \
1881 | --program-transfo=* | --program-transf=* \
1882 | --program-trans=* | --program-tran=* \
1883 | --progr-tra=* | --program-tr=* | --program-t=*)
1884 program_transform_name=$ac_optarg ;;
1886 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1888 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1889 pdfdir=$ac_optarg ;;
1891 -psdir | --psdir | --psdi | --psd | --ps)
1893 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1896 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1897 | -silent | --silent | --silen | --sile | --sil)
1900 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1902 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1904 sbindir=$ac_optarg ;;
1906 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1907 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1908 | --sharedst | --shareds | --shared | --share | --shar \
1910 ac_prev=sharedstatedir ;;
1911 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1912 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1913 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1915 sharedstatedir=$ac_optarg ;;
1917 -site | --site | --sit)
1919 -site=* | --site=* | --sit=*)
1922 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1924 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1925 srcdir=$ac_optarg ;;
1927 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1928 | --syscon | --sysco | --sysc | --sys | --sy)
1929 ac_prev=sysconfdir ;;
1930 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1931 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1932 sysconfdir=$ac_optarg ;;
1934 -target | --target | --targe | --targ | --tar | --ta | --t)
1935 ac_prev=target_alias ;;
1936 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1937 target_alias=$ac_optarg ;;
1939 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1942 -version | --version | --versio | --versi | --vers | -V)
1943 ac_init_version=: ;;
1946 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1947 # Reject names that are not valid shell variable names.
1948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1949 as_fn_error $? "invalid package name: $ac_useropt"
1950 ac_useropt_orig=$ac_useropt
1951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1952 case $ac_user_opts in
1956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1957 ac_unrecognized_sep=', ';;
1959 eval with_$ac_useropt=\$ac_optarg ;;
1961 -without-* | --without-*)
1962 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1963 # Reject names that are not valid shell variable names.
1964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1965 as_fn_error $? "invalid package name: $ac_useropt"
1966 ac_useropt_orig=$ac_useropt
1967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1968 case $ac_user_opts in
1972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1973 ac_unrecognized_sep=', ';;
1975 eval with_$ac_useropt=no ;;
1978 # Obsolete; use --with-x.
1981 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1982 | --x-incl | --x-inc | --x-in | --x-i)
1983 ac_prev=x_includes ;;
1984 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1985 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1986 x_includes=$ac_optarg ;;
1988 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1989 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1990 ac_prev=x_libraries ;;
1991 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1992 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1993 x_libraries=$ac_optarg ;;
1995 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1996 Try \`$0 --help' for more information"
2000 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2001 # Reject names that are not valid shell variable names.
2002 case $ac_envvar in #(
2003 '' | [0-9]* | *[!_$as_cr_alnum]* )
2004 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2006 eval $ac_envvar=\$ac_optarg
2007 export $ac_envvar ;;
2010 # FIXME: should be removed in autoconf 3.0.
2011 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2012 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2013 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2014 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2020 if test -n "$ac_prev"; then
2021 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2022 as_fn_error $? "missing argument to $ac_option"
2025 if test -n "$ac_unrecognized_opts"; then
2026 case $enable_option_checking in
2028 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2029 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2033 # Check all directory arguments for consistency.
2034 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2035 datadir sysconfdir sharedstatedir localstatedir includedir \
2036 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2037 libdir localedir mandir
2039 eval ac_val=\$$ac_var
2040 # Remove trailing slashes.
2043 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2044 eval $ac_var=\$ac_val;;
2046 # Be sure to have absolute directory names.
2048 [\\/$]* | ?:[\\/]* ) continue;;
2049 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2051 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2054 # There might be people who depend on the old broken behavior: `$host'
2055 # used to hold the argument of --host etc.
2056 # FIXME: To remove some day.
2059 target=$target_alias
2061 # FIXME: To remove some day.
2062 if test "x$host_alias" != x; then
2063 if test "x$build_alias" = x; then
2064 cross_compiling=maybe
2065 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
2066 If a cross compiler is detected then cross compile mode will be used" >&2
2067 elif test "x$build_alias" != "x$host_alias"; then
2073 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2075 test "$silent" = yes && exec 6>/dev/null
2078 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2079 ac_ls_di=`ls -di .` &&
2080 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2081 as_fn_error $? "working directory cannot be determined"
2082 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2083 as_fn_error $? "pwd does not report name of working directory"
2086 # Find the source files, if location was not specified.
2087 if test -z "$srcdir"; then
2088 ac_srcdir_defaulted=yes
2089 # Try the directory containing this script, then the parent directory.
2090 ac_confdir=`$as_dirname -- "$as_myself" ||
2091 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2092 X"$as_myself" : 'X\(//\)[^/]' \| \
2093 X"$as_myself" : 'X\(//\)$' \| \
2094 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2095 $as_echo X"$as_myself" |
2096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2114 if test ! -r "$srcdir/$ac_unique_file"; then
2118 ac_srcdir_defaulted=no
2120 if test ! -r "$srcdir/$ac_unique_file"; then
2121 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2122 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2124 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2126 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2128 # When building in place, set srcdir=.
2129 if test "$ac_abs_confdir" = "$ac_pwd"; then
2132 # Remove unnecessary trailing slashes from srcdir.
2133 # Double slashes in file names in object file debugging info
2134 # mess up M-x gdb in Emacs.
2136 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2138 for ac_var in $ac_precious_vars; do
2139 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2140 eval ac_env_${ac_var}_value=\$${ac_var}
2141 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2142 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2146 # Report the --help message.
2148 if test "$ac_init_help" = "long"; then
2149 # Omit some internal or obsolete options to make the list less imposing.
2150 # This message is too long to be a string in the A/UX 3.1 sh.
2152 \`configure' configures amanda 3.3.2 to adapt to many kinds of systems.
2154 Usage: $0 [OPTION]... [VAR=VALUE]...
2156 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2157 VAR=VALUE. See below for descriptions of some of the useful variables.
2159 Defaults for the options are specified in brackets.
2162 -h, --help display this help and exit
2163 --help=short display options specific to this package
2164 --help=recursive display the short help of all the included packages
2165 -V, --version display version information and exit
2166 -q, --quiet, --silent do not print \`checking ...' messages
2167 --cache-file=FILE cache test results in FILE [disabled]
2168 -C, --config-cache alias for \`--cache-file=config.cache'
2169 -n, --no-create do not create output files
2170 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2172 Installation directories:
2173 --prefix=PREFIX install architecture-independent files in PREFIX
2174 [$ac_default_prefix]
2175 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2178 By default, \`make install' will install all the files in
2179 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2180 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2181 for instance \`--prefix=\$HOME'.
2183 For better control, use the options below.
2185 Fine tuning of the installation directories:
2186 --bindir=DIR user executables [EPREFIX/bin]
2187 --sbindir=DIR system admin executables [EPREFIX/sbin]
2188 --libexecdir=DIR program executables [EPREFIX/libexec]
2189 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2190 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2191 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2192 --libdir=DIR object code libraries [EPREFIX/lib]
2193 --includedir=DIR C header files [PREFIX/include]
2194 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2195 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2196 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2197 --infodir=DIR info documentation [DATAROOTDIR/info]
2198 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2199 --mandir=DIR man documentation [DATAROOTDIR/man]
2200 --docdir=DIR documentation root [DATAROOTDIR/doc/amanda]
2201 --htmldir=DIR html documentation [DOCDIR]
2202 --dvidir=DIR dvi documentation [DOCDIR]
2203 --pdfdir=DIR pdf documentation [DOCDIR]
2204 --psdir=DIR ps documentation [DOCDIR]
2210 --program-prefix=PREFIX prepend PREFIX to installed program names
2211 --program-suffix=SUFFIX append SUFFIX to installed program names
2212 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2215 --build=BUILD configure for building on BUILD [guessed]
2216 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2220 if test -n "$ac_init_help"; then
2221 case $ac_init_help in
2222 short | recursive ) echo "Configuration of amanda 3.3.2:";;
2227 --disable-option-checking ignore unrecognized --enable/--with options
2228 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2229 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2230 --disable-dependency-tracking speeds up one-time build
2231 --enable-dependency-tracking do not reject slow dependency extractors
2232 --enable-threads={posix|solaris|pth|win32}
2233 specify multithreading API
2234 --disable-threads build without multithread safety
2235 --disable-rpath do not hardcode runtime library paths
2236 --disable-largefile omit support for large files
2237 --enable-as-needed enable use od --as-needed linker flag
2238 --disable-installperms do not modify ownership and permissions on installed
2240 --enable-syntax-checks Perform syntax checks when installing - developers
2242 --enable-manpage-build Build the manpages from their XML source (shipped
2243 manpages are usually sufficient)
2244 --disable-nls do not use Native Language Support
2245 --enable-werror To compile with -Werror compiler flag
2246 --enable-swig-error To compile swiged C file with -Werror compiler flag
2247 --enable-shared[=PKGS] build shared libraries [default=yes]
2248 --enable-static[=PKGS] build static libraries [default=yes]
2249 --enable-fast-install[=PKGS]
2250 optimize for fast installation [default=yes]
2251 --disable-libtool-lock avoid locking (might break parallel builds)
2252 --enable-static-binary To build statically linked binaries
2253 --disable-glibtest do not try to compile and run a test GLIB program
2254 --disable-s3-device disable the S3 device
2255 --disable-dvdrw-device disable the DVD-RW device
2256 --disable-ndmp-device disable the NDMP device
2259 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2260 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2261 --with-gnu-ld assume the C compiler uses GNU ld default=no
2262 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
2263 --without-libpth-prefix don't search for libpth in includedir and libdir
2264 --without-included-regex
2265 don't compile regex; this is the default on systems
2266 with recent-enough versions of the GNU C Library
2267 (use with caution on other systems).
2268 --with-cflags=FLAGS deprecated; use ./configure CFLAGS=...
2269 --with-includes=INCLUDE-DIRS
2270 deprecated; use ./configure CPPFLAGS='-I.. -I..'
2271 --with-libraries=LIBRARY-DIRS
2272 deprecated; use ./configure LDFLAGS='-L.. -L..' (add
2273 -R on Solaris, NetBSD)
2274 --with-user=USER force execution to USER on client systems (REQUIRED)
2275 --with-group=GROUP group allowed to execute setuid-root programs
2277 --with-dumperdir=DIR where we install the dumpers (deprecated)
2278 --with-configdir=DIR runtime config files in DIR [sysconfdir/amanda]
2279 --with-indexdir deprecated: use indexdir in amanda.conf
2280 --with-dbdir deprecated: use infofile in amanda.conf
2281 --with-logdir deprecated: use logfile in amanda.conf
2283 --with-gnutar-listdir=DIR
2284 put gnutar directory lists in DIR (default:
2285 localstatedir/amanda/gnutar-lists)
2286 --with-gnutar-listed-incremental
2287 deprecated; use --with-gnutar-listdir
2288 --with-tmpdir directory for temporary and debugging files
2289 (default: /tmp/amanda)
2290 --without-force-uid do not check userids when running programs
2292 force ownership of installed files to USER (default same as --with-user)
2294 --with-fqdn use FQDN's to backup multiple networks
2295 --without-reuseaddr Don't reuse network connections until full timeout
2297 --with-low-tcpportrange=low,high
2298 bind reserved TCP server sockets to ports within
2299 --with-tcpportrange=low,high
2300 bind unreserved TCP server sockets to ports within
2301 --with-udpportrange=low,high
2302 bind reserved UDP server sockets to ports within
2303 --with-buffered-dump buffer the dumping sockets on the server for speed
2305 --with-assertions compile assertions into code
2306 --with-debugging=DIR
2307 put debug logs in DIR (default same as --with-tmpdir)
2309 --with-debug-days=NN number of days to keep debugging files (default: 4)
2310 --with-testing[=SUFFIX] use alternate service names with suffix (default
2312 --with-single-userid
2313 force amanda to run as a single userid (for testing)
2315 --without-server do not build server stuff (set --without-restore)
2316 --without-client do not build client stuff
2317 --without-restore do not build amrestore nor amidxtaped
2318 --without-amrecover do not build amrecover
2319 --with-client-only deprecated: use --without-server
2320 --with-server-only deprecated: use --without-client
2321 --without-ndmp do not build ndmp
2322 --with-gnuplot=PATH use gnuplot executable at PATH in amplot
2323 --with-xsltproc[[[=PATH]]]
2324 Use the xsltproc binary in in PATH.
2325 --with-xsltproc-flags=FLAGS
2326 Flags to pass to xsltproc (default --nonet)
2327 --with-index-server=HOST
2328 default amanda index server (default: `uname -n`)
2329 --with-config=CONFIG default amanda configuration (default: DailySet1)
2330 --with-tape-server=HOST default tape server for restore (default: same as
2332 --with-tape-device=DEVICE
2333 default device on restore tape server
2334 --with-changer-device=DEV
2336 --with-amandates default location for 'amandates' (default:
2337 $localstatedir/amanda/amandates)
2338 --with-perlextlibs=libs extra LIBS for Perl extensions
2339 --with-ipv6 enable IPv6 support (default if IPv6 is found)
2340 --without-ipv6 disable IPv6
2341 --with-amlibdir[[[=PATH]]]
2342 Where library are installed, default: $libdir/amanda
2343 --without-amlibdir Library are installed in $libdir
2344 --with-amlibexecdir[[[=PATH]]]
2345 Where amanda own programs are installed, default:
2347 --without-amlibexecdir Amanda own programs are installed in $libexecdir
2348 --with-amperldir[[[=PATH]]]
2349 Where amanda's perl modules are installed; default:
2351 --without-amperldir Install amanda's perl modules in $amlibdir/perl
2352 --with-amdatadir[[[=PATH]]]
2353 Where amanda's templates and examples are installed;
2354 default: $datadir/amanda
2355 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2356 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2357 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2358 --without-libintl-prefix don't search for libintl in includedir and libdir
2359 --without-bsd-security do not include BSD authentication
2360 --without-amandahosts use ".rhosts" instead of ".amandahosts"
2361 --with-bsdtcp-security include BSDTCP authentication
2362 --with-bsdudp-security include BSDUDP authentication
2363 --with-rsh-security include RSH authentication
2364 --with-ssh-security include SSH authentication
2365 --with-ssh-options=[OPTIONS]
2366 Use these ssh options for ssh security; the default
2368 --with-krb5-security=DIR
2369 Location of Kerberos V software [/usr/kerberos
2370 /usr/cygnus /usr /opt/kerberos]
2371 --with-dump-honor-nodump
2372 if dump supports -h, use it for level0s too
2373 --with-gnutar=PROG use PROG as GNU 'tar'
2374 --with-star=PROG use PROG as 'star'
2375 --with-suntar=PROG use PROG as 'suntar'
2376 --with-smbclient=PROG use PROG as 'smbclient'
2377 --with-samba-user deprecated; place username in 'amandapass'
2378 --with-rundump use rundump, a setuid-root wrapper, to invoke dump
2379 --with-pic try to use only PIC/non-PIC objects [default=use
2381 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2382 --with-sysroot=DIR Search for dependent libraries within DIR
2383 (or the compiler's sysroot if not specified).
2384 --with-readline require readline support (for amrecover)
2385 --without-readline don't search for readline
2386 --with-libcurl=PREFIX look for the curl library in PREFIX/lib and headers
2389 Some influential environment variables:
2390 CC C compiler command
2391 CFLAGS C compiler flags
2392 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2393 nonstandard directory <lib dir>
2394 LIBS libraries to pass to the linker, e.g. -l<library>
2395 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2396 you have headers in a nonstandard directory <include dir>
2398 GNUPLOT Location of the 'gnuplot' binary
2399 SWIG Path to the 'swig' binary (developers only)
2400 PERL Path to the 'perl' binary
2401 GNUTAR Location of the GNU 'tar' binary
2402 STAR Location of the 'star' binary
2403 SUNTAR Location of the 'suntar' binary
2404 YACC The `Yet Another Compiler Compiler' implementation to use.
2405 Defaults to the first program found out of: `bison -y', `byacc',
2407 YFLAGS The list of arguments that will be passed by default to $YACC.
2408 This script will default YFLAGS to the empty string to avoid a
2409 default value of `-d' given by some make applications.
2410 MTX Path to the 'mtx' binary
2411 MOUNT Path to the 'mount' binary
2412 UMOUNT Path to the 'umount' binary
2413 GLIB_CFLAGS CFLAGS to build with glib; disables use of pkg-config; must
2414 specify all GLIB_ vars
2415 GLIB_LIBS libraries to build with glib; disables use of pkg-config; must
2416 specify all GLIB_vars
2418 genmarshal binary to use with glib; disables use of pkg-config;
2419 must specify all GLIB_ vars
2421 gobject_query binary to use with glib; disables use of
2422 pkg-config; must specify all GLIB_ vars
2424 mkenums binary to use with glib; disables use of pkg-config;
2425 must specify all GLIB_ vars
2426 PKG_CONFIG path to pkg-config utility
2428 directories to add to pkg-config's search path
2430 path overriding pkg-config's built-in search path
2432 Use these variables to override the choices made by `configure' or to help
2433 it to find libraries and programs with nonstandard names/locations.
2435 Report bugs to the package provider.
2440 if test "$ac_init_help" = "recursive"; then
2441 # If there are subdirs, report their specific --help.
2442 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2443 test -d "$ac_dir" ||
2444 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2451 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2452 # A ".." for each directory in $ac_dir_suffix.
2453 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2454 case $ac_top_builddir_sub in
2455 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2456 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2459 ac_abs_top_builddir=$ac_pwd
2460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2461 # for backward compatibility:
2462 ac_top_builddir=$ac_top_build_prefix
2465 .) # We are building in place.
2467 ac_top_srcdir=$ac_top_builddir_sub
2468 ac_abs_top_srcdir=$ac_pwd ;;
2469 [\\/]* | ?:[\\/]* ) # Absolute name.
2470 ac_srcdir=$srcdir$ac_dir_suffix;
2471 ac_top_srcdir=$srcdir
2472 ac_abs_top_srcdir=$srcdir ;;
2474 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2475 ac_top_srcdir=$ac_top_build_prefix$srcdir
2476 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2480 cd "$ac_dir" || { ac_status=$?; continue; }
2481 # Check for guested configure.
2482 if test -f "$ac_srcdir/configure.gnu"; then
2484 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2485 elif test -f "$ac_srcdir/configure"; then
2487 $SHELL "$ac_srcdir/configure" --help=recursive
2489 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2491 cd "$ac_pwd" || { ac_status=$?; break; }
2495 test -n "$ac_init_help" && exit $ac_status
2496 if $ac_init_version; then
2498 amanda configure 3.3.2
2499 generated by GNU Autoconf 2.68
2501 Copyright (C) 2010 Free Software Foundation, Inc.
2502 This configure script is free software; the Free Software Foundation
2503 gives unlimited permission to copy, distribute and modify it.
2508 ## ------------------------ ##
2509 ## Autoconf initialization. ##
2510 ## ------------------------ ##
2512 # ac_fn_c_try_compile LINENO
2513 # --------------------------
2514 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2515 ac_fn_c_try_compile ()
2517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2518 rm -f conftest.$ac_objext
2519 if { { ac_try="$ac_compile"
2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522 *) ac_try_echo=$ac_try;;
2524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2525 $as_echo "$ac_try_echo"; } >&5
2526 (eval "$ac_compile") 2>conftest.err
2528 if test -s conftest.err; then
2529 grep -v '^ *+' conftest.err >conftest.er1
2530 cat conftest.er1 >&5
2531 mv -f conftest.er1 conftest.err
2533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2534 test $ac_status = 0; } && {
2535 test -z "$ac_c_werror_flag" ||
2536 test ! -s conftest.err
2537 } && test -s conftest.$ac_objext; then :
2540 $as_echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2545 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2546 as_fn_set_status $ac_retval
2548 } # ac_fn_c_try_compile
2550 # ac_fn_c_try_cpp LINENO
2551 # ----------------------
2552 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2556 if { { ac_try="$ac_cpp conftest.$ac_ext"
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2562 $as_echo "$ac_try_echo"; } >&5
2563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2565 if test -s conftest.err; then
2566 grep -v '^ *+' conftest.err >conftest.er1
2567 cat conftest.er1 >&5
2568 mv -f conftest.er1 conftest.err
2570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2571 test $ac_status = 0; } > conftest.i && {
2572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2573 test ! -s conftest.err
2577 $as_echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2582 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2583 as_fn_set_status $ac_retval
2587 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2588 # -------------------------------------------------------
2589 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2590 # the include files in INCLUDES and setting the cache variable VAR
2592 ac_fn_c_check_header_mongrel ()
2594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2595 if eval \${$3+:} false; then :
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2597 $as_echo_n "checking for $2... " >&6; }
2598 if eval \${$3+:} false; then :
2599 $as_echo_n "(cached) " >&6
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603 $as_echo "$ac_res" >&6; }
2605 # Is the header compilable?
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2607 $as_echo_n "checking $2 usability... " >&6; }
2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609 /* end confdefs.h. */
2613 if ac_fn_c_try_compile "$LINENO"; then :
2614 ac_header_compiler=yes
2616 ac_header_compiler=no
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2620 $as_echo "$ac_header_compiler" >&6; }
2622 # Is the header present?
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2624 $as_echo_n "checking $2 presence... " >&6; }
2625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2626 /* end confdefs.h. */
2629 if ac_fn_c_try_cpp "$LINENO"; then :
2630 ac_header_preproc=yes
2632 ac_header_preproc=no
2634 rm -f conftest.err conftest.i conftest.$ac_ext
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2636 $as_echo "$ac_header_preproc" >&6; }
2638 # So? What about this header?
2639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2642 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2644 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2648 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2650 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2652 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2654 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2656 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2660 $as_echo_n "checking for $2... " >&6; }
2661 if eval \${$3+:} false; then :
2662 $as_echo_n "(cached) " >&6
2664 eval "$3=\$ac_header_compiler"
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2668 $as_echo "$ac_res" >&6; }
2670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2672 } # ac_fn_c_check_header_mongrel
2674 # ac_fn_c_try_run LINENO
2675 # ----------------------
2676 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2677 # that executables *can* be run.
2680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2681 if { { ac_try="$ac_link"
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2687 $as_echo "$ac_try_echo"; } >&5
2688 (eval "$ac_link") 2>&5
2690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2691 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2692 { { case "(($ac_try" in
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2697 $as_echo "$ac_try_echo"; } >&5
2698 (eval "$ac_try") 2>&5
2700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2701 test $ac_status = 0; }; }; then :
2704 $as_echo "$as_me: program exited with status $ac_status" >&5
2705 $as_echo "$as_me: failed program was:" >&5
2706 sed 's/^/| /' conftest.$ac_ext >&5
2708 ac_retval=$ac_status
2710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2712 as_fn_set_status $ac_retval
2716 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2717 # -------------------------------------------------------
2718 # Tests whether HEADER exists and can be compiled using the include files in
2719 # INCLUDES, setting the cache variable VAR accordingly.
2720 ac_fn_c_check_header_compile ()
2722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2724 $as_echo_n "checking for $2... " >&6; }
2725 if eval \${$3+:} false; then :
2726 $as_echo_n "(cached) " >&6
2728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2729 /* end confdefs.h. */
2733 if ac_fn_c_try_compile "$LINENO"; then :
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2742 $as_echo "$ac_res" >&6; }
2743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2745 } # ac_fn_c_check_header_compile
2747 # ac_fn_c_try_link LINENO
2748 # -----------------------
2749 # Try to link conftest.$ac_ext, and return whether this succeeded.
2752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2753 rm -f conftest.$ac_objext conftest$ac_exeext
2754 if { { ac_try="$ac_link"
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2760 $as_echo "$ac_try_echo"; } >&5
2761 (eval "$ac_link") 2>conftest.err
2763 if test -s conftest.err; then
2764 grep -v '^ *+' conftest.err >conftest.er1
2765 cat conftest.er1 >&5
2766 mv -f conftest.er1 conftest.err
2768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2769 test $ac_status = 0; } && {
2770 test -z "$ac_c_werror_flag" ||
2771 test ! -s conftest.err
2772 } && test -s conftest$ac_exeext && {
2773 test "$cross_compiling" = yes ||
2774 $as_test_x conftest$ac_exeext
2778 $as_echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2783 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2784 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2785 # interfere with the next link command; also delete a directory that is
2786 # left behind by Apple's compiler. We do this before executing the actions.
2787 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2789 as_fn_set_status $ac_retval
2791 } # ac_fn_c_try_link
2793 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2794 # -------------------------------------------
2795 # Tests whether TYPE exists after having included INCLUDES, setting cache
2796 # variable VAR accordingly.
2797 ac_fn_c_check_type ()
2799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2801 $as_echo_n "checking for $2... " >&6; }
2802 if eval \${$3+:} false; then :
2803 $as_echo_n "(cached) " >&6
2806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807 /* end confdefs.h. */
2818 if ac_fn_c_try_compile "$LINENO"; then :
2819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2820 /* end confdefs.h. */
2831 if ac_fn_c_try_compile "$LINENO"; then :
2836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2842 $as_echo "$ac_res" >&6; }
2843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2845 } # ac_fn_c_check_type
2847 # ac_fn_c_check_func LINENO FUNC VAR
2848 # ----------------------------------
2849 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2850 ac_fn_c_check_func ()
2852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2854 $as_echo_n "checking for $2... " >&6; }
2855 if eval \${$3+:} false; then :
2856 $as_echo_n "(cached) " >&6
2858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2859 /* end confdefs.h. */
2860 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2862 #define $2 innocuous_$2
2864 /* System header to define __stub macros and hopefully few prototypes,
2865 which can conflict with char $2 (); below.
2866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2867 <limits.h> exists even on freestanding compilers. */
2870 # include <limits.h>
2872 # include <assert.h>
2877 /* Override any GCC internal prototype to avoid an error.
2878 Use char because int might match the return type of a GCC
2879 builtin and then its argument prototype would still apply. */
2884 /* The GNU C library defines this for functions which it implements
2885 to always fail with ENOSYS. Some functions are actually named
2886 something starting with __ and the normal name is an alias. */
2887 #if defined __stub_$2 || defined __stub___$2
2899 if ac_fn_c_try_link "$LINENO"; then :
2904 rm -f core conftest.err conftest.$ac_objext \
2905 conftest$ac_exeext conftest.$ac_ext
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2909 $as_echo "$ac_res" >&6; }
2910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2912 } # ac_fn_c_check_func
2914 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2915 # --------------------------------------------
2916 # Tries to find the compile-time value of EXPR in a program that includes
2917 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2919 ac_fn_c_compute_int ()
2921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2922 if test "$cross_compiling" = yes; then
2923 # Depending upon the size, compute the lo and hi bounds.
2924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2925 /* end confdefs.h. */
2930 static int test_array [1 - 2 * !(($2) >= 0)];
2937 if ac_fn_c_try_compile "$LINENO"; then :
2940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2941 /* end confdefs.h. */
2946 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2953 if ac_fn_c_try_compile "$LINENO"; then :
2954 ac_hi=$ac_mid; break
2956 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2957 if test $ac_lo -le $ac_mid; then
2961 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967 /* end confdefs.h. */
2972 static int test_array [1 - 2 * !(($2) < 0)];
2979 if ac_fn_c_try_compile "$LINENO"; then :
2982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983 /* end confdefs.h. */
2988 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2995 if ac_fn_c_try_compile "$LINENO"; then :
2996 ac_lo=$ac_mid; break
2998 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2999 if test $ac_mid -le $ac_hi; then
3003 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3013 # Binary search between lo and hi bounds.
3014 while test "x$ac_lo" != "x$ac_hi"; do
3015 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3017 /* end confdefs.h. */
3022 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3029 if ac_fn_c_try_compile "$LINENO"; then :
3032 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042 /* end confdefs.h. */
3044 static long int longval () { return $2; }
3045 static unsigned long int ulongval () { return $2; }
3052 FILE *f = fopen ("conftest.val", "w");
3057 long int i = longval ();
3060 fprintf (f, "%ld", i);
3064 unsigned long int i = ulongval ();
3067 fprintf (f, "%lu", i);
3069 /* Do not output a trailing newline, as this causes \r\n confusion
3070 on some platforms. */
3071 return ferror (f) || fclose (f) != 0;
3077 if ac_fn_c_try_run "$LINENO"; then :
3078 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3083 conftest.$ac_objext conftest.beam conftest.$ac_ext
3087 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3088 as_fn_set_status $ac_retval
3090 } # ac_fn_c_compute_int
3092 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3093 # ---------------------------------------------
3094 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3096 ac_fn_c_check_decl ()
3098 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3099 as_decl_name=`echo $2|sed 's/ *(.*//'`
3100 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3102 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3103 if eval \${$3+:} false; then :
3104 $as_echo_n "(cached) " >&6
3106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3107 /* end confdefs.h. */
3112 #ifndef $as_decl_name
3114 (void) $as_decl_use;
3116 (void) $as_decl_name;
3124 if ac_fn_c_try_compile "$LINENO"; then :
3129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3133 $as_echo "$ac_res" >&6; }
3134 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3136 } # ac_fn_c_check_decl
3138 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3139 # ----------------------------------------------------
3140 # Tries to find if the field MEMBER exists in type AGGR, after including
3141 # INCLUDES, setting cache variable VAR accordingly.
3142 ac_fn_c_check_member ()
3144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3146 $as_echo_n "checking for $2.$3... " >&6; }
3147 if eval \${$4+:} false; then :
3148 $as_echo_n "(cached) " >&6
3150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3151 /* end confdefs.h. */
3163 if ac_fn_c_try_compile "$LINENO"; then :
3166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3167 /* end confdefs.h. */
3173 if (sizeof ac_aggr.$3)
3179 if ac_fn_c_try_compile "$LINENO"; then :
3184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3190 $as_echo "$ac_res" >&6; }
3191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3193 } # ac_fn_c_check_member
3194 cat >config.log <<_ACEOF
3195 This file contains any messages produced by compilers while
3196 running configure, to aid debugging if configure makes a mistake.
3198 It was created by amanda $as_me 3.3.2, which was
3199 generated by GNU Autoconf 2.68. Invocation command line was
3211 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3212 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3213 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3214 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3215 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3217 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3218 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3220 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3221 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3222 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3223 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3224 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3225 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3226 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 test -z "$as_dir" && as_dir=.
3235 $as_echo "PATH: $as_dir"
3251 # Keep a trace of the command line.
3252 # Strip out --no-create and --no-recursion so they do not pile up.
3253 # Strip out --silent because we don't want to record it for future runs.
3254 # Also quote any args containing shell meta-characters.
3255 # Make two passes to allow for proper duplicate-argument suppression.
3259 ac_must_keep_next=false
3265 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3266 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3267 | -silent | --silent | --silen | --sile | --sil)
3270 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3273 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3275 as_fn_append ac_configure_args1 " '$ac_arg'"
3276 if test $ac_must_keep_next = true; then
3277 ac_must_keep_next=false # Got value, back to normal.
3280 *=* | --config-cache | -C | -disable-* | --disable-* \
3281 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3282 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3283 | -with-* | --with-* | -without-* | --without-* | --x)
3284 case "$ac_configure_args0 " in
3285 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3288 -* ) ac_must_keep_next=true ;;
3291 as_fn_append ac_configure_args " '$ac_arg'"
3296 { ac_configure_args0=; unset ac_configure_args0;}
3297 { ac_configure_args1=; unset ac_configure_args1;}
3299 # When interrupted or exit'd, cleanup temporary files, and complete
3300 # config.log. We remove comments because anyway the quotes in there
3301 # would cause problems or look ugly.
3302 # WARNING: Use '\'' to represent an apostrophe within the trap.
3303 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3304 trap 'exit_status=$?
3305 # Save into config.log some information that might help in debugging.
3309 $as_echo "## ---------------- ##
3310 ## Cache variables. ##
3311 ## ---------------- ##"
3313 # The following way of writing the cache mishandles newlines in values,
3315 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3316 eval ac_val=\$$ac_var
3320 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3321 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3324 _ | IFS | as_nl) ;; #(
3325 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3326 *) { eval $ac_var=; unset $ac_var;} ;;
3331 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3332 *${as_nl}ac_space=\ *)
3334 "s/'\''/'\''\\\\'\'''\''/g;
3335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3338 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3345 $as_echo "## ----------------- ##
3346 ## Output variables. ##
3347 ## ----------------- ##"
3349 for ac_var in $ac_subst_vars
3351 eval ac_val=\$$ac_var
3353 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3355 $as_echo "$ac_var='\''$ac_val'\''"
3359 if test -n "$ac_subst_files"; then
3360 $as_echo "## ------------------- ##
3361 ## File substitutions. ##
3362 ## ------------------- ##"
3364 for ac_var in $ac_subst_files
3366 eval ac_val=\$$ac_var
3368 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3370 $as_echo "$ac_var='\''$ac_val'\''"
3375 if test -s confdefs.h; then
3376 $as_echo "## ----------- ##
3383 test "$ac_signal" != 0 &&
3384 $as_echo "$as_me: caught signal $ac_signal"
3385 $as_echo "$as_me: exit $exit_status"
3387 rm -f core *.core core.conftest.* &&
3388 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3391 for ac_signal in 1 2 13 15; do
3392 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3396 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3397 rm -f -r conftest* confdefs.h
3399 $as_echo "/* confdefs.h */" > confdefs.h
3401 # Predefined preprocessor variables.
3403 cat >>confdefs.h <<_ACEOF
3404 #define PACKAGE_NAME "$PACKAGE_NAME"
3407 cat >>confdefs.h <<_ACEOF
3408 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3411 cat >>confdefs.h <<_ACEOF
3412 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3415 cat >>confdefs.h <<_ACEOF
3416 #define PACKAGE_STRING "$PACKAGE_STRING"
3419 cat >>confdefs.h <<_ACEOF
3420 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3423 cat >>confdefs.h <<_ACEOF
3424 #define PACKAGE_URL "$PACKAGE_URL"
3428 # Let the site file select an alternate cache file if it wants to.
3429 # Prefer an explicitly selected file to automatically selected ones.
3432 if test -n "$CONFIG_SITE"; then
3433 # We do not want a PATH search for config.site.
3434 case $CONFIG_SITE in #((
3435 -*) ac_site_file1=./$CONFIG_SITE;;
3436 */*) ac_site_file1=$CONFIG_SITE;;
3437 *) ac_site_file1=./$CONFIG_SITE;;
3439 elif test "x$prefix" != xNONE; then
3440 ac_site_file1=$prefix/share/config.site
3441 ac_site_file2=$prefix/etc/config.site
3443 ac_site_file1=$ac_default_prefix/share/config.site
3444 ac_site_file2=$ac_default_prefix/etc/config.site
3446 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3448 test "x$ac_site_file" = xNONE && continue
3449 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3451 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3452 sed 's/^/| /' "$ac_site_file" >&5
3454 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456 as_fn_error $? "failed to load site script $ac_site_file
3457 See \`config.log' for more details" "$LINENO" 5; }
3461 if test -r "$cache_file"; then
3462 # Some versions of bash will fail to source /dev/null (special files
3463 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3464 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3466 $as_echo "$as_me: loading cache $cache_file" >&6;}
3468 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3469 *) . "./$cache_file";;
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3474 $as_echo "$as_me: creating cache $cache_file" >&6;}
3478 gl_header_list="$gl_header_list arpa/inet.h"
3479 gl_func_list="$gl_func_list btowc"
3480 gl_header_list="$gl_header_list errno.h"
3481 gl_header_list="$gl_header_list float.h"
3482 gl_header_list="$gl_header_list sys/param.h"
3483 gl_header_list="$gl_header_list sys/vfs.h"
3484 gl_header_list="$gl_header_list sys/fs_types.h"
3485 gl_func_list="$gl_func_list ftruncate"
3486 gl_header_list="$gl_header_list sys/socket.h"
3487 gl_header_list="$gl_header_list netdb.h"
3488 gl_header_list="$gl_header_list netinet/in.h"
3489 gl_getopt_required=GNU
3490 gl_header_list="$gl_header_list getopt.h"
3491 gl_header_list="$gl_header_list sys/time.h"
3492 gl_func_list="$gl_func_list gettimeofday"
3493 gl_header_list="$gl_header_list langinfo.h"
3494 gl_func_list="$gl_func_list lstat"
3495 gl_func_list="$gl_func_list mbsinit"
3496 gl_func_list="$gl_func_list mbrtowc"
3497 gl_header_list="$gl_header_list sys/mman.h"
3498 gl_func_list="$gl_func_list mprotect"
3499 gl_func_list="$gl_func_list memchr"
3500 gl_func_list="$gl_func_list nl_langinfo"
3501 gl_header_list="$gl_header_list locale.h"
3502 gl_func_list="$gl_func_list isblank"
3503 gl_func_list="$gl_func_list iswctype"
3504 gl_func_list="$gl_func_list wcscoll"
3505 gl_header_list="$gl_header_list stddef.h"
3506 gl_header_list="$gl_header_list stdint.h"
3507 gl_header_list="$gl_header_list wchar.h"
3508 gl_header_list="$gl_header_list stdio.h"
3509 gl_header_list="$gl_header_list stdlib.h"
3510 gl_header_list="$gl_header_list string.h"
3511 gl_header_list="$gl_header_list sys/stat.h"
3512 gl_header_list="$gl_header_list time.h"
3513 gl_header_list="$gl_header_list unistd.h"
3514 gl_func_list="$gl_func_list vasnprintf"
3515 gl_func_list="$gl_func_list wcrtomb"
3516 gl_func_list="$gl_func_list iswcntrl"
3517 gl_func_list="$gl_func_list iswblank"
3518 gl_header_list="$gl_header_list wctype.h"
3519 # Check that the precious variables saved in the cache have kept the same
3521 ac_cache_corrupted=false
3522 for ac_var in $ac_precious_vars; do
3523 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3524 eval ac_new_set=\$ac_env_${ac_var}_set
3525 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3526 eval ac_new_val=\$ac_env_${ac_var}_value
3527 case $ac_old_set,$ac_new_set in
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3530 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3531 ac_cache_corrupted=: ;;
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3534 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3535 ac_cache_corrupted=: ;;
3538 if test "x$ac_old_val" != "x$ac_new_val"; then
3539 # differences in whitespace do not lead to failure.
3540 ac_old_val_w=`echo x $ac_old_val`
3541 ac_new_val_w=`echo x $ac_new_val`
3542 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3544 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3545 ac_cache_corrupted=:
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3548 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3549 eval $ac_var=\$ac_old_val
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3552 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3554 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3557 # Pass precious variables to config.status.
3558 if test "$ac_new_set" = set; then
3560 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3561 *) ac_arg=$ac_var=$ac_new_val ;;
3563 case " $ac_configure_args " in
3564 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3565 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3569 if $ac_cache_corrupted; then
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3573 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3574 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3576 ## -------------------- ##
3577 ## Main body of script. ##
3578 ## -------------------- ##
3581 ac_cpp='$CPP $CPPFLAGS'
3582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3589 for ac_dir in config "$srcdir"/config; do
3590 if test -f "$ac_dir/install-sh"; then
3592 ac_install_sh="$ac_aux_dir/install-sh -c"
3594 elif test -f "$ac_dir/install.sh"; then
3596 ac_install_sh="$ac_aux_dir/install.sh -c"
3598 elif test -f "$ac_dir/shtool"; then
3600 ac_install_sh="$ac_aux_dir/shtool install -c"
3604 if test -z "$ac_aux_dir"; then
3605 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3608 # These three variables are undocumented and unsupported,
3609 # and are intended to be withdrawn in a future Autoconf release.
3610 # They can cause serious problems if a builder's source tree is in a directory
3611 # whose full name contains unusual characters.
3612 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3613 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3614 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3618 # Make sure we can run config.sub.
3619 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3620 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3623 $as_echo_n "checking build system type... " >&6; }
3624 if ${ac_cv_build+:} false; then :
3625 $as_echo_n "(cached) " >&6
3627 ac_build_alias=$build_alias
3628 test "x$ac_build_alias" = x &&
3629 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3630 test "x$ac_build_alias" = x &&
3631 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3632 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3633 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3637 $as_echo "$ac_cv_build" >&6; }
3638 case $ac_cv_build in
3640 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3643 ac_save_IFS=$IFS; IFS='-'
3649 # Remember, the first character of IFS is used to create $*,
3650 # except with old shells:
3653 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3657 $as_echo_n "checking host system type... " >&6; }
3658 if ${ac_cv_host+:} false; then :
3659 $as_echo_n "(cached) " >&6
3661 if test "x$host_alias" = x; then
3662 ac_cv_host=$ac_cv_build
3664 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3665 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3670 $as_echo "$ac_cv_host" >&6; }
3673 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3676 ac_save_IFS=$IFS; IFS='-'
3682 # Remember, the first character of IFS is used to create $*,
3683 # except with old shells:
3686 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3694 SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/sfw/bin:/usr/bsd:/etc:/usr/etc"
3695 # expand prefix or exec_prefix in LOCPATH
3697 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3698 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3699 eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
3701 SYSLOCPATH="$SYSPATH:$LOCPATH"
3702 LOCSYSPATH="$LOCPATH:$SYSPATH"
3706 # Extract the first word of "grep", so it can be a program name with args.
3707 set dummy grep; ac_word=$2
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3709 $as_echo_n "checking for $ac_word... " >&6; }
3710 if ${ac_cv_path_GREP+:} false; then :
3711 $as_echo_n "(cached) " >&6
3715 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 for as_dir in $LOCSYSPATH
3722 test -z "$as_dir" && as_dir=.
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3725 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3733 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
3737 GREP=$ac_cv_path_GREP
3738 if test -n "$GREP"; then
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3740 $as_echo "$GREP" >&6; }
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743 $as_echo "no" >&6; }
3748 cat >>confdefs.h <<_ACEOF
3749 #define GREP "$GREP"
3758 # Extract the first word of "svn", so it can be a program name with args.
3759 set dummy svn; ac_word=$2
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3761 $as_echo_n "checking for $ac_word... " >&6; }
3762 if ${ac_cv_path_SVN+:} false; then :
3763 $as_echo_n "(cached) " >&6
3767 ac_cv_path_SVN="$SVN" # Let the user override the test with a path.
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 for as_dir in $LOCSYSPATH
3774 test -z "$as_dir" && as_dir=.
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3777 ac_cv_path_SVN="$as_dir/$ac_word$ac_exec_ext"
3778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3789 if test -n "$SVN"; then
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVN" >&5
3791 $as_echo "$SVN" >&6; }
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Subversion revision information" >&5
3799 $as_echo_n "checking Subversion revision information... " >&6; }
3800 if test -d $srcdir/.svn -a -n "$SVN" && (cd $srcdir > /dev/null ; $SVN info . ) > conftemp.svn; then
3801 SVN_REV=`$GREP Revision: conftemp.svn|cut -d: -f 2|cut -c2-`
3802 SVN_URL=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
3803 SVN_PATH=`$GREP URL: conftemp.svn|cut -d "/" -f 7-`
3804 SVN_TYPE=`echo ${SVN_PATH} |cut -d "/" -f 1`
3805 SVN_BRANCH=`echo "${SVN_PATH}"| cut -d "/" -f 2`
3806 url=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
3807 ( echo '#define BUILT_REV "'$SVN_REV'"'
3808 echo '#define BUILT_BRANCH "'$SVN_BRANCH'"'
3809 ) > common-src/svn-info.h
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: updated" >&5
3812 $as_echo "updated" >&6; }
3814 # Makefiles will be upset if the file doesn't exist, so double-check
3815 if test -f common-src/svn-info.h; then
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not changed" >&5
3818 $as_echo "not changed" >&6; }
3820 echo '/* no information available */' > common-src/svn-info.h
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
3822 $as_echo "not available" >&6; }
3832 # Extract the first word of "git", so it can be a program name with args.
3833 set dummy git; ac_word=$2
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3835 $as_echo_n "checking for $ac_word... " >&6; }
3836 if ${ac_cv_path_GIT+:} false; then :
3837 $as_echo_n "(cached) " >&6
3841 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 for as_dir in $LOCSYSPATH
3848 test -z "$as_dir" && as_dir=.
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3851 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
3852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3863 if test -n "$GIT"; then
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
3865 $as_echo "$GIT" >&6; }
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868 $as_echo "no" >&6; }
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking git revision information" >&5
3873 $as_echo_n "checking git revision information... " >&6; }
3874 if test -d $srcdir/.git -a -n "$GIT"; then
3875 GIT_SHA1=`(cd $srcdir > /dev/null ; $GIT rev-parse HEAD | cut -c -8 )`
3876 if test -n "$GIT_SHA1"; then
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT_SHA1" >&5
3878 $as_echo "$GIT_SHA1" >&6; }
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 'git rev-parse HEAD' failed" >&5
3881 $as_echo "'git rev-parse HEAD' failed" >&6; }
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
3885 $as_echo "not available" >&6; }
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: \"version: $VERSION\"" >&5
3892 $as_echo "$as_me: \"version: $VERSION\"" >&6;}
3894 am__api_version='1.11'
3896 # Find a good install program. We prefer a C program (faster),
3897 # so one script is as good as another. But avoid the broken or
3898 # incompatible versions:
3899 # SysV /etc/install, /usr/sbin/install
3900 # SunOS /usr/etc/install
3901 # IRIX /sbin/install
3903 # AmigaOS /C/install, which installs bootblocks on floppy discs
3904 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3905 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3906 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3907 # OS/2's system install, which has a completely different semantic
3908 # ./install, which can be erroneously created by make from ./install.sh.
3909 # Reject install programs that cannot install multiple files.
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3911 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3912 if test -z "$INSTALL"; then
3913 if ${ac_cv_path_install+:} false; then :
3914 $as_echo_n "(cached) " >&6
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 test -z "$as_dir" && as_dir=.
3921 # Account for people who put trailing slashes in PATH elements.
3922 case $as_dir/ in #((
3923 ./ | .// | /[cC]/* | \
3924 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3925 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3928 # OSF1 and SCO ODT 3.0 have their own names for install.
3929 # Don't use installbsd from OSF since it installs stuff as root
3931 for ac_prog in ginstall scoinst install; do
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3934 if test $ac_prog = install &&
3935 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3936 # AIX install. It has an incompatible calling convention.
3938 elif test $ac_prog = install &&
3939 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3940 # program-specific install script used by HP pwplus--don't use.
3943 rm -rf conftest.one conftest.two conftest.dir
3944 echo one > conftest.one
3945 echo two > conftest.two
3947 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3948 test -s conftest.one && test -s conftest.two &&
3949 test -s conftest.dir/conftest.one &&
3950 test -s conftest.dir/conftest.two
3952 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3965 rm -rf conftest.one conftest.two conftest.dir
3968 if test "${ac_cv_path_install+set}" = set; then
3969 INSTALL=$ac_cv_path_install
3971 # As a last resort, use the slow shell script. Don't cache a
3972 # value for INSTALL within a source directory, because that will
3973 # break other packages using the cache if that directory is
3974 # removed, or if the value is a relative name.
3975 INSTALL=$ac_install_sh
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3979 $as_echo "$INSTALL" >&6; }
3981 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3982 # It thinks the first close brace ends the variable substitution.
3983 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3985 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3987 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3990 $as_echo_n "checking whether build environment is sane... " >&6; }
3993 echo timestamp > conftest.file
3994 # Reject unsafe characters in $srcdir or the absolute working directory
3995 # name. Accept space and tab only in the latter.
3999 *[\\\"\#\$\&\'\`$am_lf]*)
4000 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4003 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4004 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4007 # Do `set' in a subshell so we don't clobber the current shell's
4008 # arguments. Must try -L first in case configure is actually a
4009 # symlink; some systems play weird games with the mod time of symlinks
4010 # (eg FreeBSD returns the mod time of the symlink's containing
4013 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4014 if test "$*" = "X"; then
4016 set X `ls -t "$srcdir/configure" conftest.file`
4019 if test "$*" != "X $srcdir/configure conftest.file" \
4020 && test "$*" != "X conftest.file $srcdir/configure"; then
4022 # If neither matched, then we have a broken ls. This can happen
4023 # if, for instance, CONFIG_SHELL is bash and it inherits a
4024 # broken ls alias from the environment. This has actually
4025 # happened. Such a system could not be considered "sane".
4026 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4027 alias in your environment" "$LINENO" 5
4030 test "$2" = conftest.file
4036 as_fn_error $? "newly created file is older than distributed files!
4037 Check your system clock" "$LINENO" 5
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4040 $as_echo "yes" >&6; }
4041 test "$program_prefix" != NONE &&
4042 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4043 # Use a double $ so make ignores it.
4044 test "$program_suffix" != NONE &&
4045 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4046 # Double any \ or $.
4047 # By default was `s,x,x', remove it if useless.
4048 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4049 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4051 # expand $ac_aux_dir to an absolute path
4052 am_aux_dir=`cd $ac_aux_dir && pwd`
4054 if test x"${MISSING+set}" != xset; then
4057 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4059 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4062 # Use eval to expand $SHELL
4063 if eval "$MISSING --run true"; then
4064 am_missing_run="$MISSING --run "
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4068 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4071 if test x"${install_sh}" != xset; then
4074 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4076 install_sh="\${SHELL} $am_aux_dir/install-sh"
4080 # Installed binaries are usually stripped using `strip' when the user
4081 # run `make install-strip'. However `strip' might not be the right
4082 # tool to use in cross-compilation environments, therefore Automake
4083 # will honor the `STRIP' environment variable to overrule this program.
4084 if test "$cross_compiling" != no; then
4085 if test -n "$ac_tool_prefix"; then
4086 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4087 set dummy ${ac_tool_prefix}strip; ac_word=$2
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4089 $as_echo_n "checking for $ac_word... " >&6; }
4090 if ${ac_cv_prog_STRIP+:} false; then :
4091 $as_echo_n "(cached) " >&6
4093 if test -n "$STRIP"; then
4094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 test -z "$as_dir" && as_dir=.
4101 for ac_exec_ext in '' $ac_executable_extensions; do
4102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4103 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 STRIP=$ac_cv_prog_STRIP
4114 if test -n "$STRIP"; then
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4116 $as_echo "$STRIP" >&6; }
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119 $as_echo "no" >&6; }
4124 if test -z "$ac_cv_prog_STRIP"; then
4126 # Extract the first word of "strip", so it can be a program name with args.
4127 set dummy strip; ac_word=$2
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129 $as_echo_n "checking for $ac_word... " >&6; }
4130 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4131 $as_echo_n "(cached) " >&6
4133 if test -n "$ac_ct_STRIP"; then
4134 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 test -z "$as_dir" && as_dir=.
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4143 ac_cv_prog_ac_ct_STRIP="strip"
4144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4153 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4154 if test -n "$ac_ct_STRIP"; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4156 $as_echo "$ac_ct_STRIP" >&6; }
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159 $as_echo "no" >&6; }
4162 if test "x$ac_ct_STRIP" = x; then
4165 case $cross_compiling:$ac_tool_warned in
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4169 ac_tool_warned=yes ;;
4174 STRIP="$ac_cv_prog_STRIP"
4178 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4181 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4182 if test -z "$MKDIR_P"; then
4183 if ${ac_cv_path_mkdir+:} false; then :
4184 $as_echo_n "(cached) " >&6
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4190 test -z "$as_dir" && as_dir=.
4191 for ac_prog in mkdir gmkdir; do
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4194 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4195 'mkdir (GNU coreutils) '* | \
4196 'mkdir (coreutils) '* | \
4197 'mkdir (fileutils) '4.1*)
4198 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4208 test -d ./--version && rmdir ./--version
4209 if test "${ac_cv_path_mkdir+set}" = set; then
4210 MKDIR_P="$ac_cv_path_mkdir -p"
4212 # As a last resort, use the slow shell script. Don't cache a
4213 # value for MKDIR_P within a source directory, because that will
4214 # break other packages using the cache if that directory is
4215 # removed, or if the value is a relative name.
4216 MKDIR_P="$ac_install_sh -d"
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4220 $as_echo "$MKDIR_P" >&6; }
4225 [\\/$]* | ?:[\\/]*) ;;
4226 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4229 for ac_prog in gawk mawk nawk awk
4231 # Extract the first word of "$ac_prog", so it can be a program name with args.
4232 set dummy $ac_prog; ac_word=$2
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4234 $as_echo_n "checking for $ac_word... " >&6; }
4235 if ${ac_cv_prog_AWK+:} false; then :
4236 $as_echo_n "(cached) " >&6
4238 if test -n "$AWK"; then
4239 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4248 ac_cv_prog_AWK="$ac_prog"
4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 if test -n "$AWK"; then
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4261 $as_echo "$AWK" >&6; }
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264 $as_echo "no" >&6; }
4268 test -n "$AWK" && break
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4272 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4274 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4275 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4276 $as_echo_n "(cached) " >&6
4278 cat >conftest.make <<\_ACEOF
4281 @echo '@@@%%%=$(MAKE)=@@@%%%'
4283 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4284 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4286 eval ac_cv_prog_make_${ac_make}_set=yes;;
4288 eval ac_cv_prog_make_${ac_make}_set=no;;
4292 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4294 $as_echo "yes" >&6; }
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4299 SET_MAKE="MAKE=${MAKE-make}"
4302 rm -rf .tst 2>/dev/null
4303 mkdir .tst 2>/dev/null
4304 if test -d .tst; then
4309 rmdir .tst 2>/dev/null
4311 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4312 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4313 # is not polluted with repeated "-I."
4314 am__isrc=' -I$(srcdir)'
4315 # test to see if srcdir already configured
4316 if test -f $srcdir/config.status; then
4317 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4321 # test whether we have cygpath
4322 if test -z "$CYGPATH_W"; then
4323 if (cygpath --version) >/dev/null 2>/dev/null; then
4324 CYGPATH_W='cygpath -w'
4331 # Define the identity of the package.
4336 cat >>confdefs.h <<_ACEOF
4337 #define PACKAGE "$PACKAGE"
4341 cat >>confdefs.h <<_ACEOF
4342 #define VERSION "$VERSION"
4345 # Some tools Automake needs.
4347 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4350 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4353 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4356 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4359 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4361 # We need awk for the "check" target. The system "awk" is bad on
4363 # Always define AMTAR for backward compatibility.
4365 AMTAR=${AMTAR-"${am_missing_run}tar"}
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4369 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
4370 # Loop over all known methods to create a tar archive until one works.
4371 _am_tools='gnutar plaintar pax cpio none'
4372 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4373 # Do not fold the above two line into one, because Tru64 sh and
4374 # Solaris sh will not grok spaces in the rhs of `-'.
4375 for _am_tool in $_am_tools
4379 for _am_tar in tar gnutar gtar;
4381 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4382 ($_am_tar --version) >&5 2>&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } && break
4387 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4388 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4389 am__untar="$_am_tar -xf -"
4392 # Must skip GNU tar: if it does not support --format= it doesn't create
4393 # ustar tarball either.
4394 (tar --version) >/dev/null 2>&1 && continue
4395 am__tar='tar chf - "$$tardir"'
4396 am__tar_='tar chf - "$tardir"'
4397 am__untar='tar xf -'
4400 am__tar='pax -L -x ustar -w "$$tardir"'
4401 am__tar_='pax -L -x ustar -w "$tardir"'
4405 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4406 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4407 am__untar='cpio -i -H ustar -d'
4416 # If the value was cached, stop now. We just wanted to have am__tar
4417 # and am__untar set.
4418 test -n "${am_cv_prog_tar_ustar}" && break
4420 # tar/untar a dummy directory, and stop if the command works
4423 echo GrepMe > conftest.dir/file
4424 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4425 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }
4430 if test -s conftest.tar; then
4431 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4432 ($am__untar <conftest.tar) >&5 2>&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }
4436 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4441 if ${am_cv_prog_tar_ustar+:} false; then :
4442 $as_echo_n "(cached) " >&6
4444 am_cv_prog_tar_ustar=$_am_tool
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4448 $as_echo "$am_cv_prog_tar_ustar" >&6; }
4454 ac_config_headers="$ac_config_headers config/config.h"
4460 # Take care of some early Amanda-specific setup
4463 # initialize warnings file
4464 rm -f config.warnings
4467 if test -f "$srcdir/SNAPSHOT"; then
4468 cat < "$srcdir/SNAPSHOT"
4470 snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
4472 test -z "$snapdate" || VERSION="$VERSION-$snapdate"
4473 SNAPSHOT_STAMP=SNAPSHOT
4481 VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
4482 VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
4483 if test -z "$VERSION_MINOR"; then
4486 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\(.*\)'`\"
4488 VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
4489 if test -z "$VERSION_PATCH"; then
4491 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\(.*\)'`\"
4493 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
4504 cat >>confdefs.h <<_ACEOF
4505 #define VERSION_MAJOR $VERSION_MAJOR
4509 cat >>confdefs.h <<_ACEOF
4510 #define VERSION_MINOR $VERSION_MINOR
4514 cat >>confdefs.h <<_ACEOF
4515 #define VERSION_PATCH $VERSION_PATCH
4519 cat >>confdefs.h <<_ACEOF
4520 #define VERSION_COMMENT $VERSION_COMMENT
4525 if test -f config.local; then
4526 echo "running local script ./config.local"
4532 # Set up compiler location, basic flags, and include locations
4533 # and library locations before we start checking the system
4534 # configuration in more detail...
4537 ac_cpp='$CPP $CPPFLAGS'
4538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4541 if test -n "$ac_tool_prefix"; then
4542 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4543 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4545 $as_echo_n "checking for $ac_word... " >&6; }
4546 if ${ac_cv_prog_CC+:} false; then :
4547 $as_echo_n "(cached) " >&6
4549 if test -n "$CC"; then
4550 ac_cv_prog_CC="$CC" # Let the user override the test.
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4559 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 if test -n "$CC"; then
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4572 $as_echo "$CC" >&6; }
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575 $as_echo "no" >&6; }
4580 if test -z "$ac_cv_prog_CC"; then
4582 # Extract the first word of "gcc", so it can be a program name with args.
4583 set dummy gcc; ac_word=$2
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4585 $as_echo_n "checking for $ac_word... " >&6; }
4586 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4587 $as_echo_n "(cached) " >&6
4589 if test -n "$ac_ct_CC"; then
4590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4599 ac_cv_prog_ac_ct_CC="gcc"
4600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4610 if test -n "$ac_ct_CC"; then
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4612 $as_echo "$ac_ct_CC" >&6; }
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615 $as_echo "no" >&6; }
4618 if test "x$ac_ct_CC" = x; then
4621 case $cross_compiling:$ac_tool_warned in
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4625 ac_tool_warned=yes ;;
4633 if test -z "$CC"; then
4634 if test -n "$ac_tool_prefix"; then
4635 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4636 set dummy ${ac_tool_prefix}cc; ac_word=$2
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638 $as_echo_n "checking for $ac_word... " >&6; }
4639 if ${ac_cv_prog_CC+:} false; then :
4640 $as_echo_n "(cached) " >&6
4642 if test -n "$CC"; then
4643 ac_cv_prog_CC="$CC" # Let the user override the test.
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652 ac_cv_prog_CC="${ac_tool_prefix}cc"
4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 if test -n "$CC"; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4665 $as_echo "$CC" >&6; }
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668 $as_echo "no" >&6; }
4674 if test -z "$CC"; then
4675 # Extract the first word of "cc", so it can be a program name with args.
4676 set dummy cc; ac_word=$2
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if ${ac_cv_prog_CC+:} false; then :
4680 $as_echo_n "(cached) " >&6
4682 if test -n "$CC"; then
4683 ac_cv_prog_CC="$CC" # Let the user override the test.
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4694 ac_prog_rejected=yes
4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 if test $ac_prog_rejected = yes; then
4706 # We found a bogon in the path, so make sure we never use it.
4707 set dummy $ac_cv_prog_CC
4709 if test $# != 0; then
4710 # We chose a different compiler from the bogus one.
4711 # However, it has the same basename, so the bogon will be chosen
4712 # first if we set CC to just the basename; use the full file name.
4714 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4720 if test -n "$CC"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4722 $as_echo "$CC" >&6; }
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4730 if test -z "$CC"; then
4731 if test -n "$ac_tool_prefix"; then
4732 for ac_prog in cl.exe
4734 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if ${ac_cv_prog_CC+:} false; then :
4739 $as_echo_n "(cached) " >&6
4741 if test -n "$CC"; then
4742 ac_cv_prog_CC="$CC" # Let the user override the test.
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 if test -n "$CC"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4764 $as_echo "$CC" >&6; }
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4771 test -n "$CC" && break
4774 if test -z "$CC"; then
4776 for ac_prog in cl.exe
4778 # Extract the first word of "$ac_prog", so it can be a program name with args.
4779 set dummy $ac_prog; ac_word=$2
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4781 $as_echo_n "checking for $ac_word... " >&6; }
4782 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4783 $as_echo_n "(cached) " >&6
4785 if test -n "$ac_ct_CC"; then
4786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4795 ac_cv_prog_ac_ct_CC="$ac_prog"
4796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4806 if test -n "$ac_ct_CC"; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4808 $as_echo "$ac_ct_CC" >&6; }
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4815 test -n "$ac_ct_CC" && break
4818 if test "x$ac_ct_CC" = x; then
4821 case $cross_compiling:$ac_tool_warned in
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4825 ac_tool_warned=yes ;;
4834 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4836 as_fn_error $? "no acceptable C compiler found in \$PATH
4837 See \`config.log' for more details" "$LINENO" 5; }
4839 # Provide some information about the compiler.
4840 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4843 for ac_option in --version -v -V -qversion; do
4844 { { ac_try="$ac_compiler $ac_option >&5"
4846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847 *) ac_try_echo=$ac_try;;
4849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4850 $as_echo "$ac_try_echo"; } >&5
4851 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4853 if test -s conftest.err; then
4855 ... rest of stderr output deleted ...
4856 10q' conftest.err >conftest.er1
4857 cat conftest.er1 >&5
4859 rm -f conftest.er1 conftest.err
4860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4861 test $ac_status = 0; }
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4875 ac_clean_files_save=$ac_clean_files
4876 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4877 # Try to create an executable without -o first, disregard a.out.
4878 # It will help us diagnose broken compilers, and finding out an intuition
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4881 $as_echo_n "checking whether the C compiler works... " >&6; }
4882 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4884 # The possible output files:
4885 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4888 for ac_file in $ac_files
4891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4892 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4897 if { { ac_try="$ac_link_default"
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4903 $as_echo "$ac_try_echo"; } >&5
4904 (eval "$ac_link_default") 2>&5
4906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4907 test $ac_status = 0; }; then :
4908 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4909 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4910 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4911 # so that the user can short-circuit this test for compilers unknown to
4913 for ac_file in $ac_files ''
4915 test -f "$ac_file" || continue
4917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4920 # We found the default executable, but exeext='' is most
4924 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4926 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4928 # We set ac_cv_exeext here because the later test for it is not
4929 # safe: cross compilers may not add the suffix if given an `-o'
4930 # argument, so we may need to know it at that point already.
4931 # Even if this section looks crufty: it has the advantage of
4938 test "$ac_cv_exeext" = no && ac_cv_exeext=
4943 if test -z "$ac_file"; then :
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4946 $as_echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4951 as_fn_error 77 "C compiler cannot create executables
4952 See \`config.log' for more details" "$LINENO" 5; }
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4955 $as_echo "yes" >&6; }
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4958 $as_echo_n "checking for C compiler default output file name... " >&6; }
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4960 $as_echo "$ac_file" >&6; }
4961 ac_exeext=$ac_cv_exeext
4963 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4964 ac_clean_files=$ac_clean_files_save
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4966 $as_echo_n "checking for suffix of executables... " >&6; }
4967 if { { ac_try="$ac_link"
4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4973 $as_echo "$ac_try_echo"; } >&5
4974 (eval "$ac_link") 2>&5
4976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4977 test $ac_status = 0; }; then :
4978 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4979 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4980 # work properly (i.e., refer to `conftest.exe'), while it won't with
4982 for ac_file in conftest.exe conftest conftest.*; do
4983 test -f "$ac_file" || continue
4985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4986 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4994 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4995 See \`config.log' for more details" "$LINENO" 5; }
4997 rm -f conftest conftest$ac_cv_exeext
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4999 $as_echo "$ac_cv_exeext" >&6; }
5001 rm -f conftest.$ac_ext
5002 EXEEXT=$ac_cv_exeext
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5010 FILE *f = fopen ("conftest.out", "w");
5011 return ferror (f) || fclose (f) != 0;
5017 ac_clean_files="$ac_clean_files conftest.out"
5018 # Check that the compiler produces executables we can run. If not, either
5019 # the compiler is broken, or we cross compile.
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5021 $as_echo_n "checking whether we are cross compiling... " >&6; }
5022 if test "$cross_compiling" != yes; then
5023 { { ac_try="$ac_link"
5025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026 *) ac_try_echo=$ac_try;;
5028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5029 $as_echo "$ac_try_echo"; } >&5
5030 (eval "$ac_link") 2>&5
5032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5033 test $ac_status = 0; }
5034 if { ac_try='./conftest$ac_cv_exeext'
5035 { { case "(($ac_try" in
5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5040 $as_echo "$ac_try_echo"; } >&5
5041 (eval "$ac_try") 2>&5
5043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5044 test $ac_status = 0; }; }; then
5047 if test "$cross_compiling" = maybe; then
5050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5052 as_fn_error $? "cannot run C compiled programs.
5053 If you meant to cross compile, use \`--host'.
5054 See \`config.log' for more details" "$LINENO" 5; }
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5059 $as_echo "$cross_compiling" >&6; }
5061 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5062 ac_clean_files=$ac_clean_files_save
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5064 $as_echo_n "checking for suffix of object files... " >&6; }
5065 if ${ac_cv_objext+:} false; then :
5066 $as_echo_n "(cached) " >&6
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5079 rm -f conftest.o conftest.obj
5080 if { { ac_try="$ac_compile"
5082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5083 *) ac_try_echo=$ac_try;;
5085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5086 $as_echo "$ac_try_echo"; } >&5
5087 (eval "$ac_compile") 2>&5
5089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5090 test $ac_status = 0; }; then :
5091 for ac_file in conftest.o conftest.obj conftest.*; do
5092 test -f "$ac_file" || continue;
5094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5095 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5100 $as_echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5105 as_fn_error $? "cannot compute suffix of object files: cannot compile
5106 See \`config.log' for more details" "$LINENO" 5; }
5108 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5111 $as_echo "$ac_cv_objext" >&6; }
5112 OBJEXT=$ac_cv_objext
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5115 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5116 if ${ac_cv_c_compiler_gnu+:} false; then :
5117 $as_echo_n "(cached) " >&6
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5133 if ac_fn_c_try_compile "$LINENO"; then :
5138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5139 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5143 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5144 if test $ac_compiler_gnu = yes; then
5149 ac_test_CFLAGS=${CFLAGS+set}
5150 ac_save_CFLAGS=$CFLAGS
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5152 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5153 if ${ac_cv_prog_cc_g+:} false; then :
5154 $as_echo_n "(cached) " >&6
5156 ac_save_c_werror_flag=$ac_c_werror_flag
5157 ac_c_werror_flag=yes
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5171 if ac_fn_c_try_compile "$LINENO"; then :
5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5186 if ac_fn_c_try_compile "$LINENO"; then :
5189 ac_c_werror_flag=$ac_save_c_werror_flag
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5202 if ac_fn_c_try_compile "$LINENO"; then :
5205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210 ac_c_werror_flag=$ac_save_c_werror_flag
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5213 $as_echo "$ac_cv_prog_cc_g" >&6; }
5214 if test "$ac_test_CFLAGS" = set; then
5215 CFLAGS=$ac_save_CFLAGS
5216 elif test $ac_cv_prog_cc_g = yes; then
5217 if test "$GCC" = yes; then
5223 if test "$GCC" = yes; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5230 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5231 if ${ac_cv_prog_cc_c89+:} false; then :
5232 $as_echo_n "(cached) " >&6
5234 ac_cv_prog_cc_c89=no
5236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5240 #include <sys/types.h>
5241 #include <sys/stat.h>
5242 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5243 struct buf { int x; };
5244 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5245 static char *e (p, i)
5251 static char *f (char * (*g) (char **, int), char **p, ...)
5256 s = g (p, va_arg (v,int));
5261 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5262 function prototypes and stuff, but not '\xHH' hex character constants.
5263 These don't provoke an error unfortunately, instead are silently treated
5264 as 'x'. The following induces an error, until -std is added to get
5265 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5266 array size at least. It's necessary to write '\x00'==0 to get something
5267 that's true only with -std. */
5268 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5270 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5271 inside strings and character constants. */
5273 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5275 int test (int i, double x);
5276 struct s1 {int (*f) (int a);};
5277 struct s2 {int (*f) (double a);};
5278 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5284 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5289 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5290 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5292 CC="$ac_save_CC $ac_arg"
5293 if ac_fn_c_try_compile "$LINENO"; then :
5294 ac_cv_prog_cc_c89=$ac_arg
5296 rm -f core conftest.err conftest.$ac_objext
5297 test "x$ac_cv_prog_cc_c89" != "xno" && break
5299 rm -f conftest.$ac_ext
5304 case "x$ac_cv_prog_cc_c89" in
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5307 $as_echo "none needed" >&6; } ;;
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5310 $as_echo "unsupported" >&6; } ;;
5312 CC="$CC $ac_cv_prog_cc_c89"
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5314 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5316 if test "x$ac_cv_prog_cc_c89" != xno; then :
5321 ac_cpp='$CPP $CPPFLAGS'
5322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5325 DEPDIR="${am__leading_dot}deps"
5327 ac_config_commands="$ac_config_commands depfiles"
5330 am_make=${MAKE-make}
5331 cat > confinc << 'END'
5333 @echo this is the am__doit target
5336 # If we don't find an include directive, just comment out the code.
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5338 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5342 # First try GNU make style include.
5343 echo "include confinc" > confmf
5344 # Ignore all kinds of additional output from `make'.
5345 case `$am_make -s -f confmf 2> /dev/null` in #(
5346 *the\ am__doit\ target*)
5352 # Now try BSD make style include.
5353 if test "$am__include" = "#"; then
5354 echo '.include "confinc"' > confmf
5355 case `$am_make -s -f confmf 2> /dev/null` in #(
5356 *the\ am__doit\ target*)
5357 am__include=.include
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5366 $as_echo "$_am_result" >&6; }
5367 rm -f confinc confmf
5369 # Check whether --enable-dependency-tracking was given.
5370 if test "${enable_dependency_tracking+set}" = set; then :
5371 enableval=$enable_dependency_tracking;
5374 if test "x$enable_dependency_tracking" != xno; then
5375 am_depcomp="$ac_aux_dir/depcomp"
5378 if test "x$enable_dependency_tracking" != xno; then
5388 depcc="$CC" am_compiler_list=
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5391 $as_echo_n "checking dependency style of $depcc... " >&6; }
5392 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5393 $as_echo_n "(cached) " >&6
5395 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5396 # We make a subdir and do the tests there. Otherwise we can end up
5397 # making bogus files that we don't know about and never remove. For
5398 # instance it was reported that on HP-UX the gcc test will end up
5399 # making a dummy file named `D' -- because `-MD' means `put the output
5402 # Copy depcomp to subdir because otherwise we won't find it if we're
5403 # using a relative directory.
5404 cp "$am_depcomp" conftest.dir
5406 # We will build objects and dependencies in a subdirectory because
5407 # it helps to detect inapplicable dependency modes. For instance
5408 # both Tru64's cc and ICC support -MD to output dependencies as a
5409 # side effect of compilation, but ICC will put the dependencies in
5410 # the current directory while Tru64 will put them in the object
5414 am_cv_CC_dependencies_compiler_type=none
5415 if test "$am_compiler_list" = ""; then
5416 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5419 case " $depcc " in #(
5420 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5423 for depmode in $am_compiler_list; do
5424 # Setup a source with many dependencies, because some compilers
5425 # like to wrap large dependency lists on column 80 (with \), and
5426 # we should not choose a depcomp mode which is confused by this.
5428 # We need to recreate these files for each test, as the compiler may
5429 # overwrite some of them when testing with obscure command lines.
5430 # This happens at least with the AIX C compiler.
5432 for i in 1 2 3 4 5 6; do
5433 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5434 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5435 # Solaris 8's {/usr,}/bin/sh.
5436 touch sub/conftst$i.h
5438 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5440 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5441 # mode. It turns out that the SunPro C++ compiler does not properly
5442 # handle `-M -o', and we need to detect this. Also, some Intel
5443 # versions had trouble with output in subdirs
5444 am__obj=sub/conftest.${OBJEXT-o}
5445 am__minus_obj="-o $am__obj"
5448 # This depmode causes a compiler race in universal mode.
5449 test "$am__universal" = false || continue
5452 # after this tag, mechanisms are not by side-effect, so they'll
5453 # only be used when explicitly requested
5454 if test "x$enable_dependency_tracking" = xyes; then
5460 msvisualcpp | msvcmsys)
5461 # This compiler won't grok `-c -o', but also, the minuso test has
5462 # not run yet. These depmodes are late enough in the game, and
5463 # so weak that their functioning should not be impacted.
5464 am__obj=conftest.${OBJEXT-o}
5469 if depmode=$depmode \
5470 source=sub/conftest.c object=$am__obj \
5471 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5472 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5473 >/dev/null 2>conftest.err &&
5474 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5475 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5476 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5477 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5478 # icc doesn't choke on unknown options, it will just issue warnings
5479 # or remarks (even with -Werror). So we grep stderr for any message
5480 # that says an option was ignored or not supported.
5481 # When given -MP, icc 7.0 and 7.1 complain thusly:
5482 # icc: Command line warning: ignoring option '-M'; no argument required
5483 # The diagnosis changed in icc 8.0:
5484 # icc: Command line remark: option '-MP' not supported
5485 if (grep 'ignoring option' conftest.err ||
5486 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5487 am_cv_CC_dependencies_compiler_type=$depmode
5496 am_cv_CC_dependencies_compiler_type=none
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5501 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5502 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5505 test "x$enable_dependency_tracking" != xno \
5506 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5508 am__fastdepCC_FALSE='#'
5510 am__fastdepCC_TRUE='#'
5511 am__fastdepCC_FALSE=
5515 if test -n "$ac_tool_prefix"; then
5516 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5517 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5519 $as_echo_n "checking for $ac_word... " >&6; }
5520 if ${ac_cv_prog_RANLIB+:} false; then :
5521 $as_echo_n "(cached) " >&6
5523 if test -n "$RANLIB"; then
5524 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5533 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 RANLIB=$ac_cv_prog_RANLIB
5544 if test -n "$RANLIB"; then
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5546 $as_echo "$RANLIB" >&6; }
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5554 if test -z "$ac_cv_prog_RANLIB"; then
5555 ac_ct_RANLIB=$RANLIB
5556 # Extract the first word of "ranlib", so it can be a program name with args.
5557 set dummy ranlib; ac_word=$2
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559 $as_echo_n "checking for $ac_word... " >&6; }
5560 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5561 $as_echo_n "(cached) " >&6
5563 if test -n "$ac_ct_RANLIB"; then
5564 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5573 ac_cv_prog_ac_ct_RANLIB="ranlib"
5574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5584 if test -n "$ac_ct_RANLIB"; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5586 $as_echo "$ac_ct_RANLIB" >&6; }
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5592 if test "x$ac_ct_RANLIB" = x; then
5595 case $cross_compiling:$ac_tool_warned in
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5599 ac_tool_warned=yes ;;
5601 RANLIB=$ac_ct_RANLIB
5604 RANLIB="$ac_cv_prog_RANLIB"
5607 if test "x$CC" != xcc; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5609 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5612 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5614 set dummy $CC; ac_cc=`$as_echo "$2" |
5615 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5616 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5617 $as_echo_n "(cached) " >&6
5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5630 # Make sure it works both with $CC and with simple cc.
5631 # We do the test twice because some compilers refuse to overwrite an
5632 # existing .o file with -o, though they will create one.
5633 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5635 if { { case "(($ac_try" in
5636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5637 *) ac_try_echo=$ac_try;;
5639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5640 $as_echo "$ac_try_echo"; } >&5
5641 (eval "$ac_try") 2>&5
5643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5644 test $ac_status = 0; } &&
5645 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5650 $as_echo "$ac_try_echo"; } >&5
5651 (eval "$ac_try") 2>&5
5653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5654 test $ac_status = 0; };
5656 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5657 if test "x$CC" != xcc; then
5658 # Test first that cc exists at all.
5659 if { ac_try='cc -c conftest.$ac_ext >&5'
5660 { { case "(($ac_try" in
5661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662 *) ac_try_echo=$ac_try;;
5664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5665 $as_echo "$ac_try_echo"; } >&5
5666 (eval "$ac_try") 2>&5
5668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5669 test $ac_status = 0; }; }; then
5670 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5672 if { { case "(($ac_try" in
5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5677 $as_echo "$ac_try_echo"; } >&5
5678 (eval "$ac_try") 2>&5
5680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5681 test $ac_status = 0; } &&
5682 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5687 $as_echo "$ac_try_echo"; } >&5
5688 (eval "$ac_try") 2>&5
5690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5691 test $ac_status = 0; };
5696 # cc exists but doesn't like -o.
5697 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5702 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5704 rm -f core conftest*
5707 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5709 $as_echo "yes" >&6; }
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5714 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5718 # FIXME: we rely on the cache variable name because
5719 # there is no other way.
5721 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5722 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5723 if test "$am_t" != yes; then
5724 # Losing compiler, so override with the script.
5725 # FIXME: It is wrong to rewrite CC.
5726 # But if we don't then we get into trouble of one sort or another.
5727 # A longer-term fix would be to have automake use am__CC in this case,
5728 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5729 CC="$am_aux_dir/compile $CC"
5735 ac_cpp='$CPP $CPPFLAGS'
5736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5740 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5741 # On Suns, sometimes $CPP names a directory.
5742 if test -n "$CPP" && test -d "$CPP"; then
5745 if test -z "$CPP"; then
5746 if ${ac_cv_prog_CPP+:} false; then :
5747 $as_echo_n "(cached) " >&6
5749 # Double quotes because CPP needs to be expanded
5750 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5753 for ac_c_preproc_warn_flag in '' yes
5755 # Use a header file that comes with gcc, so configuring glibc
5756 # with a fresh cross-compiler works.
5757 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5758 # <limits.h> exists even on freestanding compilers.
5759 # On the NeXT, cc -E runs the code through the compiler's parser,
5760 # not just through cpp. "Syntax error" is here to catch this case.
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5764 # include <limits.h>
5766 # include <assert.h>
5770 if ac_fn_c_try_cpp "$LINENO"; then :
5773 # Broken: fails on valid input.
5776 rm -f conftest.err conftest.i conftest.$ac_ext
5778 # OK, works on sane cases. Now check whether nonexistent headers
5779 # can be detected and how.
5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5782 #include <ac_nonexistent.h>
5784 if ac_fn_c_try_cpp "$LINENO"; then :
5785 # Broken: success on invalid input.
5788 # Passes both tests.
5792 rm -f conftest.err conftest.i conftest.$ac_ext
5795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5796 rm -f conftest.i conftest.err conftest.$ac_ext
5797 if $ac_preproc_ok; then :
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5810 $as_echo "$CPP" >&6; }
5812 for ac_c_preproc_warn_flag in '' yes
5814 # Use a header file that comes with gcc, so configuring glibc
5815 # with a fresh cross-compiler works.
5816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5817 # <limits.h> exists even on freestanding compilers.
5818 # On the NeXT, cc -E runs the code through the compiler's parser,
5819 # not just through cpp. "Syntax error" is here to catch this case.
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5823 # include <limits.h>
5825 # include <assert.h>
5829 if ac_fn_c_try_cpp "$LINENO"; then :
5832 # Broken: fails on valid input.
5835 rm -f conftest.err conftest.i conftest.$ac_ext
5837 # OK, works on sane cases. Now check whether nonexistent headers
5838 # can be detected and how.
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5841 #include <ac_nonexistent.h>
5843 if ac_fn_c_try_cpp "$LINENO"; then :
5844 # Broken: success on invalid input.
5847 # Passes both tests.
5851 rm -f conftest.err conftest.i conftest.$ac_ext
5854 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5855 rm -f conftest.i conftest.err conftest.$ac_ext
5856 if $ac_preproc_ok; then :
5859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5861 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5862 See \`config.log' for more details" "$LINENO" 5; }
5866 ac_cpp='$CPP $CPPFLAGS'
5867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5873 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5874 if ${ac_cv_path_GREP+:} false; then :
5875 $as_echo_n "(cached) " >&6
5877 if test -z "$GREP"; then
5878 ac_path_GREP_found=false
5879 # Loop through the user's path and test for each of PROGNAME-LIST
5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5884 test -z "$as_dir" && as_dir=.
5885 for ac_prog in grep ggrep; do
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5888 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5889 # Check for GNU ac_path_GREP and select it if it is found.
5890 # Check for GNU $ac_path_GREP
5891 case `"$ac_path_GREP" --version 2>&1` in
5893 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5896 $as_echo_n 0123456789 >"conftest.in"
5899 cat "conftest.in" "conftest.in" >"conftest.tmp"
5900 mv "conftest.tmp" "conftest.in"
5901 cp "conftest.in" "conftest.nl"
5902 $as_echo 'GREP' >> "conftest.nl"
5903 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5905 as_fn_arith $ac_count + 1 && ac_count=$as_val
5906 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5907 # Best one so far, save it but keep looking for a better one
5908 ac_cv_path_GREP="$ac_path_GREP"
5909 ac_path_GREP_max=$ac_count
5911 # 10*(2^10) chars as input seems more than enough
5912 test $ac_count -gt 10 && break
5914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5917 $ac_path_GREP_found && break 3
5922 if test -z "$ac_cv_path_GREP"; then
5923 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5926 ac_cv_path_GREP=$GREP
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5931 $as_echo "$ac_cv_path_GREP" >&6; }
5932 GREP="$ac_cv_path_GREP"
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5936 $as_echo_n "checking for egrep... " >&6; }
5937 if ${ac_cv_path_EGREP+:} false; then :
5938 $as_echo_n "(cached) " >&6
5940 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5941 then ac_cv_path_EGREP="$GREP -E"
5943 if test -z "$EGREP"; then
5944 ac_path_EGREP_found=false
5945 # Loop through the user's path and test for each of PROGNAME-LIST
5946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5950 test -z "$as_dir" && as_dir=.
5951 for ac_prog in egrep; do
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5954 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5955 # Check for GNU ac_path_EGREP and select it if it is found.
5956 # Check for GNU $ac_path_EGREP
5957 case `"$ac_path_EGREP" --version 2>&1` in
5959 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5962 $as_echo_n 0123456789 >"conftest.in"
5965 cat "conftest.in" "conftest.in" >"conftest.tmp"
5966 mv "conftest.tmp" "conftest.in"
5967 cp "conftest.in" "conftest.nl"
5968 $as_echo 'EGREP' >> "conftest.nl"
5969 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5971 as_fn_arith $ac_count + 1 && ac_count=$as_val
5972 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5973 # Best one so far, save it but keep looking for a better one
5974 ac_cv_path_EGREP="$ac_path_EGREP"
5975 ac_path_EGREP_max=$ac_count
5977 # 10*(2^10) chars as input seems more than enough
5978 test $ac_count -gt 10 && break
5980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5983 $ac_path_EGREP_found && break 3
5988 if test -z "$ac_cv_path_EGREP"; then
5989 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5992 ac_cv_path_EGREP=$EGREP
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5998 $as_echo "$ac_cv_path_EGREP" >&6; }
5999 EGREP="$ac_cv_path_EGREP"
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6003 $as_echo_n "checking for ANSI C header files... " >&6; }
6004 if ${ac_cv_header_stdc+:} false; then :
6005 $as_echo_n "(cached) " >&6
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6022 if ac_fn_c_try_compile "$LINENO"; then :
6023 ac_cv_header_stdc=yes
6025 ac_cv_header_stdc=no
6027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029 if test $ac_cv_header_stdc = yes; then
6030 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6037 $EGREP "memchr" >/dev/null 2>&1; then :
6040 ac_cv_header_stdc=no
6046 if test $ac_cv_header_stdc = yes; then
6047 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6054 $EGREP "free" >/dev/null 2>&1; then :
6057 ac_cv_header_stdc=no
6063 if test $ac_cv_header_stdc = yes; then
6064 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6065 if test "$cross_compiling" = yes; then :
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6072 #if ((' ' & 0x0FF) == 0x020)
6073 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6074 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6076 # define ISLOWER(c) \
6077 (('a' <= (c) && (c) <= 'i') \
6078 || ('j' <= (c) && (c) <= 'r') \
6079 || ('s' <= (c) && (c) <= 'z'))
6080 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6083 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6088 for (i = 0; i < 256; i++)
6089 if (XOR (islower (i), ISLOWER (i))
6090 || toupper (i) != TOUPPER (i))
6095 if ac_fn_c_try_run "$LINENO"; then :
6098 ac_cv_header_stdc=no
6100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6101 conftest.$ac_objext conftest.beam conftest.$ac_ext
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6107 $as_echo "$ac_cv_header_stdc" >&6; }
6108 if test $ac_cv_header_stdc = yes; then
6110 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6114 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6115 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6116 inttypes.h stdint.h unistd.h
6118 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6119 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6121 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6122 cat >>confdefs.h <<_ACEOF
6123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6134 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6135 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6142 if test "$MINIX" = yes; then
6144 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6147 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6150 $as_echo "#define _MINIX 1" >>confdefs.h
6157 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6164 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6165 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6166 $as_echo_n "(cached) " >&6
6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h. */
6171 # define __EXTENSIONS__ 1
6172 $ac_includes_default
6181 if ac_fn_c_try_compile "$LINENO"; then :
6182 ac_cv_safe_to_define___extensions__=yes
6184 ac_cv_safe_to_define___extensions__=no
6186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6189 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6190 test $ac_cv_safe_to_define___extensions__ = yes &&
6191 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6193 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6195 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6197 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6199 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6209 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
6210 if ${ac_cv_sys_largefile_source+:} false; then :
6211 $as_echo_n "(cached) " >&6
6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h. */
6216 #include <sys/types.h> /* for off_t */
6221 int (*fp) (FILE *, off_t, int) = fseeko;
6222 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6227 if ac_fn_c_try_link "$LINENO"; then :
6228 ac_cv_sys_largefile_source=no; break
6230 rm -f core conftest.err conftest.$ac_objext \
6231 conftest$ac_exeext conftest.$ac_ext
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234 #define _LARGEFILE_SOURCE 1
6235 #include <sys/types.h> /* for off_t */
6240 int (*fp) (FILE *, off_t, int) = fseeko;
6241 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6246 if ac_fn_c_try_link "$LINENO"; then :
6247 ac_cv_sys_largefile_source=1; break
6249 rm -f core conftest.err conftest.$ac_objext \
6250 conftest$ac_exeext conftest.$ac_ext
6251 ac_cv_sys_largefile_source=unknown
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
6256 $as_echo "$ac_cv_sys_largefile_source" >&6; }
6257 case $ac_cv_sys_largefile_source in #(
6260 cat >>confdefs.h <<_ACEOF
6261 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6267 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6268 # in glibc 2.1.3, but that breaks too many other things.
6269 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6270 if test $ac_cv_sys_largefile_source != unknown; then
6272 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
6281 # Check whether --enable-threads was given.
6282 if test "${enable_threads+set}" = set; then :
6283 enableval=$enable_threads; gl_use_threads=$enableval
6285 if test -n "$gl_use_threads_default"; then
6286 gl_use_threads="$gl_use_threads_default"
6289 osf*) gl_use_threads=no ;;
6292 1.[0-5].*) gl_use_threads=no ;;
6293 *) gl_use_threads=yes ;;
6296 *) gl_use_threads=yes ;;
6302 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6303 # For using <pthread.h>:
6306 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6307 # groks <pthread.h>. cc also understands the flag -pthread, but
6308 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6309 # 2. putting a flag into CPPFLAGS that has an effect on the linker
6310 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
6311 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6312 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
6315 # Some systems optimize for single-threaded programs by default, and
6316 # need special flags to disable these optimizations. For example, the
6317 # definition of 'errno' in <errno.h>.
6319 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
6320 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
6327 # Code from module alignof:
6328 # Code from module alloca-opt:
6329 # Code from module arg-nonnull:
6330 # Code from module arpa_inet:
6331 # Code from module base64:
6332 # Code from module btowc:
6333 # Code from module c++defs:
6334 # Code from module c-ctype:
6335 # Code from module configmake:
6336 # Code from module environ:
6337 # Code from module errno:
6338 # Code from module extensions:
6340 # Code from module float:
6341 # Code from module fseeko:
6343 # Code from module fsusage:
6344 # Code from module ftello:
6346 # Code from module ftruncate:
6347 # Code from module full-read:
6348 # Code from module full-write:
6349 # Code from module getaddrinfo:
6350 # Code from module getopt-gnu:
6351 # Code from module getopt-posix:
6352 # Code from module gettext-h:
6353 # Code from module gettimeofday:
6354 # Code from module havelib:
6355 # Code from module hostent:
6356 # Code from module include_next:
6357 # Code from module inet_ntop:
6358 # Code from module inet_pton:
6359 # Code from module langinfo:
6360 # Code from module localcharset:
6361 # Code from module lock:
6362 # Code from module lseek:
6363 # Code from module lstat:
6364 # Code from module malloc-gnu:
6365 # Code from module malloc-posix:
6366 # Code from module mbrtowc:
6367 # Code from module mbsinit:
6368 # Code from module memchr:
6369 # Code from module mkdtemp:
6370 # Code from module multiarch:
6371 # Code from module netdb:
6372 # Code from module netinet_in:
6373 # Code from module nl_langinfo:
6374 # Code from module physmem:
6375 # Code from module regex:
6376 # Code from module safe-read:
6377 # Code from module safe-write:
6378 # Code from module servent:
6379 # Code from module size_max:
6380 # Code from module snprintf:
6381 # Code from module socklen:
6382 # Code from module ssize_t:
6383 # Code from module stat:
6384 # Code from module stdbool:
6385 # Code from module stddef:
6386 # Code from module stdint:
6387 # Code from module stdio:
6388 # Code from module stdlib:
6389 # Code from module streq:
6390 # Code from module string:
6391 # Code from module sys_socket:
6392 # Code from module sys_stat:
6393 # Code from module sys_time:
6394 # Code from module tempname:
6395 # Code from module threadlib:
6399 # Code from module time:
6400 # Code from module unistd:
6401 # Code from module vasnprintf:
6402 # Code from module verify:
6403 # Code from module warn-on-use:
6404 # Code from module wchar:
6405 # Code from module wcrtomb:
6406 # Code from module wctype:
6407 # Code from module write:
6408 # Code from module xsize:
6414 LIBC_FATAL_STDERR_=1
6415 export LIBC_FATAL_STDERR_
6417 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6418 if test "x$ac_cv_type_size_t" = xyes; then :
6422 cat >>confdefs.h <<_ACEOF
6423 #define size_t unsigned int
6428 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6429 # for constant arguments. Useless!
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6431 $as_echo_n "checking for working alloca.h... " >&6; }
6432 if ${ac_cv_working_alloca_h+:} false; then :
6433 $as_echo_n "(cached) " >&6
6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h. */
6441 char *p = (char *) alloca (2 * sizeof (int));
6447 if ac_fn_c_try_link "$LINENO"; then :
6448 ac_cv_working_alloca_h=yes
6450 ac_cv_working_alloca_h=no
6452 rm -f core conftest.err conftest.$ac_objext \
6453 conftest$ac_exeext conftest.$ac_ext
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6456 $as_echo "$ac_cv_working_alloca_h" >&6; }
6457 if test $ac_cv_working_alloca_h = yes; then
6459 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6464 $as_echo_n "checking for alloca... " >&6; }
6465 if ${ac_cv_func_alloca_works+:} false; then :
6466 $as_echo_n "(cached) " >&6
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6471 # define alloca __builtin_alloca
6474 # include <malloc.h>
6475 # define alloca _alloca
6477 # ifdef HAVE_ALLOCA_H
6478 # include <alloca.h>
6483 # ifndef alloca /* predefined by HP cc +Olibcalls */
6484 void *alloca (size_t);
6494 char *p = (char *) alloca (1);
6500 if ac_fn_c_try_link "$LINENO"; then :
6501 ac_cv_func_alloca_works=yes
6503 ac_cv_func_alloca_works=no
6505 rm -f core conftest.err conftest.$ac_objext \
6506 conftest$ac_exeext conftest.$ac_ext
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6509 $as_echo "$ac_cv_func_alloca_works" >&6; }
6511 if test $ac_cv_func_alloca_works = yes; then
6513 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6516 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6517 # that cause trouble. Some versions do not even contain alloca or
6518 # contain a buggy version. If you still want to use their alloca,
6519 # use ar to extract alloca.o from them instead of compiling alloca.c.
6525 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6527 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6531 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6532 if ${ac_cv_os_cray+:} false; then :
6533 $as_echo_n "(cached) " >&6
6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6537 #if defined CRAY && ! defined CRAY2
6544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6545 $EGREP "webecray" >/dev/null 2>&1; then :
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6554 $as_echo "$ac_cv_os_cray" >&6; }
6555 if test $ac_cv_os_cray = yes; then
6556 for ac_func in _getb67 GETB67 getb67; do
6557 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6558 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6559 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6561 cat >>confdefs.h <<_ACEOF
6562 #define CRAY_STACKSEG_END $ac_func
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6572 $as_echo_n "checking stack direction for C alloca... " >&6; }
6573 if ${ac_cv_c_stack_direction+:} false; then :
6574 $as_echo_n "(cached) " >&6
6576 if test "$cross_compiling" = yes; then :
6577 ac_cv_c_stack_direction=0
6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6581 $ac_includes_default
6583 find_stack_direction ()
6585 static char *addr = 0;
6590 return find_stack_direction ();
6593 return (&dummy > addr) ? 1 : -1;
6599 return find_stack_direction () < 0;
6602 if ac_fn_c_try_run "$LINENO"; then :
6603 ac_cv_c_stack_direction=1
6605 ac_cv_c_stack_direction=-1
6607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6608 conftest.$ac_objext conftest.beam conftest.$ac_ext
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6613 $as_echo "$ac_cv_c_stack_direction" >&6; }
6614 cat >>confdefs.h <<_ACEOF
6615 #define STACK_DIRECTION $ac_cv_c_stack_direction
6624 HAVE_DECL_INET_NTOP=1;
6625 HAVE_DECL_INET_PTON=1;
6631 for ac_header in $gl_header_list
6633 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6634 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6635 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6636 cat >>confdefs.h <<_ACEOF
6637 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6651 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6652 if ${gl_cv_have_include_next+:} false; then :
6653 $as_echo_n "(cached) " >&6
6655 rm -rf conftestd1a conftestd1b conftestd2
6656 mkdir conftestd1a conftestd1b conftestd2
6657 cat <<EOF > conftestd1a/conftest.h
6658 #define DEFINED_IN_CONFTESTD1
6659 #include_next <conftest.h>
6660 #ifdef DEFINED_IN_CONFTESTD2
6663 #error "include_next doesn't work"
6666 cat <<EOF > conftestd1b/conftest.h
6667 #define DEFINED_IN_CONFTESTD1
6669 #include_next <conftest.h>
6670 #ifdef DEFINED_IN_CONFTESTD2
6673 #error "include_next doesn't work"
6676 cat <<EOF > conftestd2/conftest.h
6677 #ifndef DEFINED_IN_CONFTESTD1
6678 #error "include_next test doesn't work"
6680 #define DEFINED_IN_CONFTESTD2
6682 gl_save_CPPFLAGS="$CPPFLAGS"
6683 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6686 #include <conftest.h>
6688 if ac_fn_c_try_compile "$LINENO"; then :
6689 gl_cv_have_include_next=yes
6691 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6694 #include <conftest.h>
6696 if ac_fn_c_try_compile "$LINENO"; then :
6697 gl_cv_have_include_next=buggy
6699 gl_cv_have_include_next=no
6701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705 CPPFLAGS="$gl_save_CPPFLAGS"
6706 rm -rf conftestd1a conftestd1b conftestd2
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6710 $as_echo "$gl_cv_have_include_next" >&6; }
6711 PRAGMA_SYSTEM_HEADER=
6712 if test $gl_cv_have_include_next = yes; then
6713 INCLUDE_NEXT=include_next
6714 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6715 if test -n "$GCC"; then
6716 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6719 if test $gl_cv_have_include_next = buggy; then
6720 INCLUDE_NEXT=include
6721 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6723 INCLUDE_NEXT=include
6724 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6732 $as_echo_n "checking for inline... " >&6; }
6733 if ${ac_cv_c_inline+:} false; then :
6734 $as_echo_n "(cached) " >&6
6737 for ac_kw in inline __inline__ __inline; do
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6742 static $ac_kw foo_t static_foo () {return 0; }
6743 $ac_kw foo_t foo () {return 0; }
6747 if ac_fn_c_try_compile "$LINENO"; then :
6748 ac_cv_c_inline=$ac_kw
6750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 test "$ac_cv_c_inline" != no && break
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6756 $as_echo "$ac_cv_c_inline" >&6; }
6758 case $ac_cv_c_inline in
6761 case $ac_cv_c_inline in
6763 *) ac_val=$ac_cv_c_inline;;
6765 cat >>confdefs.h <<_ACEOF
6767 #define inline $ac_val
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6774 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6775 if ${ac_cv_c_restrict+:} false; then :
6776 $as_echo_n "(cached) " >&6
6779 # The order here caters to the fact that C++ does not require restrict.
6780 for ac_kw in __restrict __restrict__ _Restrict restrict; do
6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782 /* end confdefs.h. */
6783 typedef int * int_ptr;
6784 int foo (int_ptr $ac_kw ip) {
6798 if ac_fn_c_try_compile "$LINENO"; then :
6799 ac_cv_c_restrict=$ac_kw
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802 test "$ac_cv_c_restrict" != no && break
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6807 $as_echo "$ac_cv_c_restrict" >&6; }
6809 case $ac_cv_c_restrict in
6811 no) $as_echo "#define restrict /**/" >>confdefs.h
6813 *) cat >>confdefs.h <<_ACEOF
6814 #define restrict $ac_cv_c_restrict
6826 GNULIB_MBSNRTOWCS=0;
6829 GNULIB_WCSNRTOMBS=0;
6841 HAVE_DECL_WCWIDTH=1;
6842 REPLACE_MBSTATE_T=0;
6848 REPLACE_MBSRTOWCS=0;
6849 REPLACE_MBSNRTOWCS=0;
6851 REPLACE_WCSRTOMBS=0;
6852 REPLACE_WCSNRTOMBS=0;
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
6857 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
6858 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
6859 $as_echo_n "(cached) " >&6
6861 gl_cv_header_wchar_h_correct_inline=yes
6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h. */
6865 #define wcstod renamed_wcstod
6867 extern int zero (void);
6868 int main () { return zero(); }
6871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6872 (eval $ac_compile) 2>&5
6874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6875 test $ac_status = 0; }; then
6876 mv conftest.$ac_objext conftest1.$ac_objext
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6880 #define wcstod renamed_wcstod
6882 int zero (void) { return 0; }
6885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6886 (eval $ac_compile) 2>&5
6888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6889 test $ac_status = 0; }; then
6890 mv conftest.$ac_objext conftest2.$ac_objext
6891 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
6894 gl_cv_header_wchar_h_correct_inline=no
6898 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
6902 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
6903 if test $gl_cv_header_wchar_h_correct_inline = no; then
6904 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
6905 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
6906 C99 mode. You have four options:
6907 - Add the flag -fgnu89-inline to CC and reconfigure, or
6908 - Fix your include files, using parts of
6909 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
6910 - Use a gcc version older than 4.3, or
6911 - Don't use the flags -std=c99 or -std=gnu99.
6912 Configuration aborted." "$LINENO" 5
6919 for ac_func in $gl_func_list
6921 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6922 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6923 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6924 cat >>confdefs.h <<_ACEOF
6925 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6937 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6938 if ${am_cv_langinfo_codeset+:} false; then :
6939 $as_echo_n "(cached) " >&6
6941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6942 /* end confdefs.h. */
6943 #include <langinfo.h>
6947 char* cs = nl_langinfo(CODESET);
6952 if ac_fn_c_try_link "$LINENO"; then :
6953 am_cv_langinfo_codeset=yes
6955 am_cv_langinfo_codeset=no
6957 rm -f core conftest.err conftest.$ac_objext \
6958 conftest$ac_exeext conftest.$ac_ext
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6962 $as_echo "$am_cv_langinfo_codeset" >&6; }
6963 if test $am_cv_langinfo_codeset = yes; then
6965 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
6973 $as_echo_n "checking for a traditional french locale... " >&6; }
6974 if ${gt_cv_locale_fr+:} false; then :
6975 $as_echo_n "(cached) " >&6
6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h. */
6983 #if HAVE_LANGINFO_CODESET
6984 # include <langinfo.h>
6991 /* Check whether the given locale name is recognized by the system. */
6992 if (setlocale (LC_ALL, "") == NULL) return 1;
6993 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
6994 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
6995 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
6996 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
6997 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
6998 some unit tests fail. */
6999 #if HAVE_LANGINFO_CODESET
7001 const char *cs = nl_langinfo (CODESET);
7002 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
7007 /* On Cygwin, avoid locale names without encoding suffix, because the
7008 locale_charset() function relies on the encoding suffix. Note that
7009 LC_ALL is set on the command line. */
7010 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7012 /* Check whether in the abbreviation of the second month, the second
7013 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
7014 one byte long. This excludes the UTF-8 encoding. */
7015 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7016 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
7017 /* Check whether the decimal separator is a comma.
7018 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7019 are nl_langinfo(RADIXCHAR) are both ".". */
7020 if (localeconv () ->decimal_point[0] != ',') return 1;
7025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7026 (eval $ac_link) 2>&5
7028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7029 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7030 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7031 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
7032 # configure script would override the LC_ALL setting. Likewise for
7033 # LC_CTYPE, which is also set at the beginning of the configure script.
7034 # Test for the usual locale name.
7035 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7036 gt_cv_locale_fr=fr_FR
7038 # Test for the locale name with explicit encoding suffix.
7039 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7040 gt_cv_locale_fr=fr_FR.ISO-8859-1
7042 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
7043 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7044 gt_cv_locale_fr=fr_FR.ISO8859-1
7046 # Test for the HP-UX locale name.
7047 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7048 gt_cv_locale_fr=fr_FR.iso88591
7050 # Test for the Solaris 7 locale name.
7051 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7055 gt_cv_locale_fr=none
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
7066 $as_echo "$gt_cv_locale_fr" >&6; }
7067 LOCALE_FR=$gt_cv_locale_fr
7076 GNULIB_EUIDACCESS=0;
7083 GNULIB_GETDOMAINNAME=0;
7084 GNULIB_GETDTABLESIZE=0;
7086 GNULIB_GETHOSTNAME=0;
7088 GNULIB_GETLOGIN_R=0;
7089 GNULIB_GETPAGESIZE=0;
7090 GNULIB_GETUSERSHELL=0;
7099 GNULIB_READLINKAT=0;
7105 GNULIB_UNISTD_H_GETOPT=0;
7106 GNULIB_UNISTD_H_SIGPIPE=0;
7120 HAVE_GETDOMAINNAME=1;
7121 HAVE_GETDTABLESIZE=1;
7140 HAVE_DECL_ENVIRON=1;
7141 HAVE_DECL_GETLOGIN_R=1;
7142 HAVE_DECL_GETPAGESIZE=1;
7143 HAVE_DECL_GETUSERSHELL=1;
7152 REPLACE_GETGROUPS=0;
7153 REPLACE_GETPAGESIZE=0;
7164 REPLACE_TTYNAME_R=0;
7169 UNISTD_H_HAVE_WINSOCK2_H=0;
7170 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
7179 $as_echo_n "checking if environ is properly declared... " >&6; }
7180 if ${gt_cv_var_environ_declaration+:} false; then :
7181 $as_echo_n "(cached) " >&6
7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185 /* end confdefs.h. */
7187 extern struct { int foo; } environ;
7196 if ac_fn_c_try_compile "$LINENO"; then :
7197 gt_cv_var_environ_declaration=no
7199 gt_cv_var_environ_declaration=yes
7201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
7205 $as_echo "$gt_cv_var_environ_declaration" >&6; }
7206 if test $gt_cv_var_environ_declaration = yes; then
7208 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
7213 if test $gt_cv_var_environ_declaration != yes; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
7225 $as_echo_n "checking for complete errno.h... " >&6; }
7226 if ${gl_cv_header_errno_h_complete+:} false; then :
7227 $as_echo_n "(cached) " >&6
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7240 #if !defined ENOLINK
7246 #if !defined EMULTIHOP
7249 #if !defined EBADMSG
7252 #if !defined EOVERFLOW
7255 #if !defined ENOTSUP
7261 #if !defined ECANCELED
7266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7267 $EGREP "booboo" >/dev/null 2>&1; then :
7268 gl_cv_header_errno_h_complete=no
7270 gl_cv_header_errno_h_complete=yes
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
7277 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7278 if test $gl_cv_header_errno_h_complete = yes; then
7293 if test $gl_cv_have_include_next = yes; then
7294 gl_cv_next_errno_h='<'errno.h'>'
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
7297 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7298 if ${gl_cv_next_errno_h+:} false; then :
7299 $as_echo_n "(cached) " >&6
7302 if test $ac_cv_header_errno_h = yes; then
7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h. */
7309 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7310 *) gl_absname_cpp="$ac_cpp" ;;
7312 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7313 sed -n '\#/errno.h#{
7314 s#.*"\(.*/errno.h\)".*#\1#
7320 gl_cv_next_errno_h='<'errno.h'>'
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7325 $as_echo "$gl_cv_next_errno_h" >&6; }
7327 NEXT_ERRNO_H=$gl_cv_next_errno_h
7329 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7330 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7331 gl_next_as_first_directive='<'errno.h'>'
7333 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7334 gl_next_as_first_directive=$gl_cv_next_errno_h
7336 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
7344 if test -n "$ERRNO_H"; then
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7346 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7347 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
7348 $as_echo_n "(cached) " >&6
7351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7352 /* end confdefs.h. */
7360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7361 $EGREP "yes" >/dev/null 2>&1; then :
7362 gl_cv_header_errno_h_EMULTIHOP=yes
7364 gl_cv_header_errno_h_EMULTIHOP=no
7368 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h. */
7372 #define _XOPEN_SOURCE_EXTENDED 1
7379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7380 $EGREP "yes" >/dev/null 2>&1; then :
7381 gl_cv_header_errno_h_EMULTIHOP=hidden
7385 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7386 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
7387 #define _XOPEN_SOURCE_EXTENDED 1
7389 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7401 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7402 case $gl_cv_header_errno_h_EMULTIHOP in
7404 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7407 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7415 if test -n "$ERRNO_H"; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7417 $as_echo_n "checking for ENOLINK value... " >&6; }
7418 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
7419 $as_echo_n "(cached) " >&6
7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h. */
7431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7432 $EGREP "yes" >/dev/null 2>&1; then :
7433 gl_cv_header_errno_h_ENOLINK=yes
7435 gl_cv_header_errno_h_ENOLINK=no
7439 if test $gl_cv_header_errno_h_ENOLINK = no; then
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h. */
7443 #define _XOPEN_SOURCE_EXTENDED 1
7450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7451 $EGREP "yes" >/dev/null 2>&1; then :
7452 gl_cv_header_errno_h_ENOLINK=hidden
7456 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7457 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7458 #define _XOPEN_SOURCE_EXTENDED 1
7460 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7472 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7473 case $gl_cv_header_errno_h_ENOLINK in
7475 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7478 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7486 if test -n "$ERRNO_H"; then
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7488 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7489 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
7490 $as_echo_n "(cached) " >&6
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7503 $EGREP "yes" >/dev/null 2>&1; then :
7504 gl_cv_header_errno_h_EOVERFLOW=yes
7506 gl_cv_header_errno_h_EOVERFLOW=no
7510 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7514 #define _XOPEN_SOURCE_EXTENDED 1
7521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7522 $EGREP "yes" >/dev/null 2>&1; then :
7523 gl_cv_header_errno_h_EOVERFLOW=hidden
7527 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7528 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7529 #define _XOPEN_SOURCE_EXTENDED 1
7531 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7543 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7544 case $gl_cv_header_errno_h_EOVERFLOW in
7546 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7549 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7568 GNULIB_FPRINTF_POSIX=0;
7580 GNULIB_OBSTACK_PRINTF=0;
7581 GNULIB_OBSTACK_PRINTF_POSIX=0;
7585 GNULIB_PRINTF_POSIX=0;
7593 GNULIB_SPRINTF_POSIX=0;
7594 GNULIB_STDIO_H_SIGPIPE=0;
7599 GNULIB_VFPRINTF_POSIX=0;
7601 GNULIB_VPRINTF_POSIX=0;
7603 GNULIB_VSPRINTF_POSIX=0;
7605 HAVE_DECL_GETDELIM=1;
7606 HAVE_DECL_GETLINE=1;
7607 HAVE_DECL_OBSTACK_PRINTF=1;
7608 HAVE_DECL_SNPRINTF=1;
7609 HAVE_DECL_VSNPRINTF=1;
7629 REPLACE_OBSTACK_PRINTF=0;
7638 REPLACE_STDIO_WRITE_FUNCS=0;
7640 REPLACE_VASPRINTF=0;
7644 REPLACE_VSNPRINTF=0;
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
7653 $as_echo_n "checking for fseeko... " >&6; }
7654 if ${gl_cv_func_fseeko+:} false; then :
7655 $as_echo_n "(cached) " >&6
7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h. */
7665 fseeko (stdin, 0, 0);
7670 if ac_fn_c_try_link "$LINENO"; then :
7671 gl_cv_func_fseeko=yes
7673 gl_cv_func_fseeko=no
7675 rm -f core conftest.err conftest.$ac_objext \
7676 conftest$ac_exeext conftest.$ac_ext
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
7680 $as_echo "$gl_cv_func_fseeko" >&6; }
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
7684 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
7685 if ${gl_cv_var_stdin_large_offset+:} false; then :
7686 $as_echo_n "(cached) " >&6
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7694 #if defined __SL64 && defined __SCLE /* cygwin */
7695 /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
7696 fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and
7697 it is easier to do a version check than building a runtime test. */
7698 # include <cygwin/version.h>
7699 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
7707 if ac_fn_c_try_link "$LINENO"; then :
7708 gl_cv_var_stdin_large_offset=yes
7710 gl_cv_var_stdin_large_offset=no
7712 rm -f core conftest.err conftest.$ac_objext \
7713 conftest$ac_exeext conftest.$ac_ext
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
7716 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
7743 GNULIB_GETPEERNAME=0;
7744 GNULIB_GETSOCKNAME=0;
7745 GNULIB_GETSOCKOPT=0;
7751 GNULIB_SETSOCKOPT=0;
7754 HAVE_STRUCT_SOCKADDR_STORAGE=1;
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
7768 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
7769 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
7770 $as_echo_n "(cached) " >&6
7773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h. */
7775 #include <sys/socket.h>
7784 if ac_fn_c_try_compile "$LINENO"; then :
7785 gl_cv_header_sys_socket_h_selfcontained=yes
7787 gl_cv_header_sys_socket_h_selfcontained=no
7789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
7793 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
7794 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
7795 for ac_func in shutdown
7797 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
7798 if test "x$ac_cv_func_shutdown" = xyes; then :
7799 cat >>confdefs.h <<_ACEOF
7800 #define HAVE_SHUTDOWN 1
7806 if test $ac_cv_func_shutdown = yes; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
7808 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
7809 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
7810 $as_echo_n "(cached) " >&6
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7815 #include <sys/socket.h>
7819 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
7824 if ac_fn_c_try_compile "$LINENO"; then :
7825 gl_cv_header_sys_socket_h_shut=yes
7827 gl_cv_header_sys_socket_h_shut=no
7829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
7833 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
7834 if test $gl_cv_header_sys_socket_h_shut = no; then
7835 SYS_SOCKET_H='sys/socket.h'
7839 # We need to check for ws2tcpip.h now.
7853 if test $gl_cv_have_include_next = yes; then
7854 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
7857 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
7858 if ${gl_cv_next_sys_socket_h+:} false; then :
7859 $as_echo_n "(cached) " >&6
7862 if test $ac_cv_header_sys_socket_h = yes; then
7863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864 /* end confdefs.h. */
7865 #include <sys/socket.h>
7869 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7870 *) gl_absname_cpp="$ac_cpp" ;;
7872 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7873 sed -n '\#/sys/socket.h#{
7874 s#.*"\(.*/sys/socket.h\)".*#\1#
7880 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
7885 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
7887 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
7889 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7890 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7891 gl_next_as_first_directive='<'sys/socket.h'>'
7893 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7894 gl_next_as_first_directive=$gl_cv_next_sys_socket_h
7896 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
7900 if test $ac_cv_header_sys_socket_h = yes; then
7905 for ac_header in ws2tcpip.h
7907 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
7908 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
7909 cat >>confdefs.h <<_ACEOF
7910 #define HAVE_WS2TCPIP_H 1
7917 if test $ac_cv_header_ws2tcpip_h = yes; then
7926 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
7927 /* sys/types.h is not needed according to POSIX, but the
7928 sys/socket.h in i386-unknown-freebsd4.10 and
7929 powerpc-apple-darwin5.5 required it. */
7930 #include <sys/types.h>
7931 #ifdef HAVE_SYS_SOCKET_H
7932 #include <sys/socket.h>
7934 #ifdef HAVE_WS2TCPIP_H
7935 #include <ws2tcpip.h>
7939 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
7941 cat >>confdefs.h <<_ACEOF
7942 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
7947 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
7948 /* sys/types.h is not needed according to POSIX, but the
7949 sys/socket.h in i386-unknown-freebsd4.10 and
7950 powerpc-apple-darwin5.5 required it. */
7951 #include <sys/types.h>
7952 #ifdef HAVE_SYS_SOCKET_H
7953 #include <sys/socket.h>
7955 #ifdef HAVE_WS2TCPIP_H
7956 #include <ws2tcpip.h>
7960 if test "x$ac_cv_type_sa_family_t" = xyes; then :
7962 cat >>confdefs.h <<_ACEOF
7963 #define HAVE_SA_FAMILY_T 1
7969 if test $ac_cv_type_struct_sockaddr_storage = no; then
7970 HAVE_STRUCT_SOCKADDR_STORAGE=0
7972 if test $ac_cv_type_sa_family_t = no; then
7985 if test $ac_cv_header_sys_socket_h != yes; then
7986 for ac_header in winsock2.h
7988 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
7989 if test "x$ac_cv_header_winsock2_h" = xyes; then :
7990 cat >>confdefs.h <<_ACEOF
7991 #define HAVE_WINSOCK2_H 1
7999 if test "$ac_cv_header_winsock2_h" = yes; then
8001 UNISTD_H_HAVE_WINSOCK2_H=1
8002 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
8010 for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do
8011 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8013 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8014 if eval \${$as_gl_Symbol+:} false; then :
8015 $as_echo_n "(cached) " >&6
8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h. */
8020 /* Some systems require prerequisite headers. */
8021 #include <sys/types.h>
8022 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
8023 # include <sys/time.h>
8025 #include <sys/select.h>
8036 if ac_fn_c_try_compile "$LINENO"; then :
8037 eval "$as_gl_Symbol=yes"
8039 eval "$as_gl_Symbol=no"
8041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8043 eval ac_res=\$$as_gl_Symbol
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8045 $as_echo "$ac_res" >&6; }
8046 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
8047 cat >>confdefs.h <<_ACEOF
8048 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8051 eval ac_cv_have_decl_$gl_func=yes
8057 GNULIB_GETADDRINFO=0;
8058 HAVE_STRUCT_ADDRINFO=1;
8059 HAVE_DECL_FREEADDRINFO=1;
8060 HAVE_DECL_GAI_STRERROR=1;
8061 HAVE_DECL_GETADDRINFO=1;
8062 HAVE_DECL_GETNAMEINFO=1;
8090 if test $gl_cv_have_include_next = yes; then
8091 gl_cv_next_netdb_h='<'netdb.h'>'
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
8094 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
8095 if ${gl_cv_next_netdb_h+:} false; then :
8096 $as_echo_n "(cached) " >&6
8099 if test $ac_cv_header_netdb_h = yes; then
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8106 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8107 *) gl_absname_cpp="$ac_cpp" ;;
8109 gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8110 sed -n '\#/netdb.h#{
8111 s#.*"\(.*/netdb.h\)".*#\1#
8117 gl_cv_next_netdb_h='<'netdb.h'>'
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
8122 $as_echo "$gl_cv_next_netdb_h" >&6; }
8124 NEXT_NETDB_H=$gl_cv_next_netdb_h
8126 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8127 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8128 gl_next_as_first_directive='<'netdb.h'>'
8130 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8131 gl_next_as_first_directive=$gl_cv_next_netdb_h
8133 NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
8137 if test $ac_cv_header_netdb_h = yes; then
8145 for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
8146 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8148 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8149 if eval \${$as_gl_Symbol+:} false; then :
8150 $as_echo_n "(cached) " >&6
8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8164 if ac_fn_c_try_compile "$LINENO"; then :
8165 eval "$as_gl_Symbol=yes"
8167 eval "$as_gl_Symbol=no"
8169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171 eval ac_res=\$$as_gl_Symbol
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8173 $as_echo "$ac_res" >&6; }
8174 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
8175 cat >>confdefs.h <<_ACEOF
8176 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8179 eval ac_cv_have_decl_$gl_func=yes
8186 gl_saved_libs="$LIBS"
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8188 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8189 if ${ac_cv_search_gethostbyname+:} false; then :
8190 $as_echo_n "(cached) " >&6
8192 ac_func_search_save_LIBS=$LIBS
8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h. */
8196 /* Override any GCC internal prototype to avoid an error.
8197 Use char because int might match the return type of a GCC
8198 builtin and then its argument prototype would still apply. */
8202 char gethostbyname ();
8206 return gethostbyname ();
8211 for ac_lib in '' nsl network net; do
8212 if test -z "$ac_lib"; then
8213 ac_res="none required"
8216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8218 if ac_fn_c_try_link "$LINENO"; then :
8219 ac_cv_search_gethostbyname=$ac_res
8221 rm -f core conftest.err conftest.$ac_objext \
8223 if ${ac_cv_search_gethostbyname+:} false; then :
8227 if ${ac_cv_search_gethostbyname+:} false; then :
8230 ac_cv_search_gethostbyname=no
8233 LIBS=$ac_func_search_save_LIBS
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8236 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8237 ac_res=$ac_cv_search_gethostbyname
8238 if test "$ac_res" != no; then :
8239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8240 if test "$ac_cv_search_gethostbyname" != "none required"; then
8241 HOSTENT_LIB="$ac_cv_search_gethostbyname"
8245 LIBS="$gl_saved_libs"
8246 if test -z "$HOSTENT_LIB"; then
8247 for ac_func in gethostbyname
8249 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8250 if test "x$ac_cv_func_gethostbyname" = xyes; then :
8251 cat >>confdefs.h <<_ACEOF
8252 #define HAVE_GETHOSTBYNAME 1
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
8258 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
8259 if ${gl_cv_w32_gethostbyname+:} false; then :
8260 $as_echo_n "(cached) " >&6
8262 gl_cv_w32_gethostbyname=no
8263 gl_save_LIBS="$LIBS"
8264 LIBS="$LIBS -lws2_32"
8265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h. */
8268 #ifdef HAVE_WINSOCK2_H
8269 #include <winsock2.h>
8276 gethostbyname(NULL);
8281 if ac_fn_c_try_link "$LINENO"; then :
8282 gl_cv_w32_gethostbyname=yes
8284 rm -f core conftest.err conftest.$ac_objext \
8285 conftest$ac_exeext conftest.$ac_ext
8286 LIBS="$gl_save_LIBS"
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
8290 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
8291 if test "$gl_cv_w32_gethostbyname" = "yes"; then
8292 HOSTENT_LIB="-lws2_32"
8303 gl_saved_libs="$LIBS"
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
8305 $as_echo_n "checking for library containing getservbyname... " >&6; }
8306 if ${ac_cv_search_getservbyname+:} false; then :
8307 $as_echo_n "(cached) " >&6
8309 ac_func_search_save_LIBS=$LIBS
8310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8311 /* end confdefs.h. */
8313 /* Override any GCC internal prototype to avoid an error.
8314 Use char because int might match the return type of a GCC
8315 builtin and then its argument prototype would still apply. */
8319 char getservbyname ();
8323 return getservbyname ();
8328 for ac_lib in '' socket network net; do
8329 if test -z "$ac_lib"; then
8330 ac_res="none required"
8333 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8335 if ac_fn_c_try_link "$LINENO"; then :
8336 ac_cv_search_getservbyname=$ac_res
8338 rm -f core conftest.err conftest.$ac_objext \
8340 if ${ac_cv_search_getservbyname+:} false; then :
8344 if ${ac_cv_search_getservbyname+:} false; then :
8347 ac_cv_search_getservbyname=no
8350 LIBS=$ac_func_search_save_LIBS
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
8353 $as_echo "$ac_cv_search_getservbyname" >&6; }
8354 ac_res=$ac_cv_search_getservbyname
8355 if test "$ac_res" != no; then :
8356 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8357 if test "$ac_cv_search_getservbyname" != "none required"; then
8358 SERVENT_LIB="$ac_cv_search_getservbyname"
8362 LIBS="$gl_saved_libs"
8363 if test -z "$SERVENT_LIB"; then
8364 for ac_func in getservbyname
8366 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
8367 if test "x$ac_cv_func_getservbyname" = xyes; then :
8368 cat >>confdefs.h <<_ACEOF
8369 #define HAVE_GETSERVBYNAME 1
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
8375 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
8376 if ${gl_cv_w32_getservbyname+:} false; then :
8377 $as_echo_n "(cached) " >&6
8379 gl_cv_w32_getservbyname=no
8380 gl_save_LIBS="$LIBS"
8381 LIBS="$LIBS -lws2_32"
8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8385 #ifdef HAVE_WINSOCK2_H
8386 #include <winsock2.h>
8393 getservbyname(NULL,NULL);
8398 if ac_fn_c_try_link "$LINENO"; then :
8399 gl_cv_w32_getservbyname=yes
8401 rm -f core conftest.err conftest.$ac_objext \
8402 conftest$ac_exeext conftest.$ac_ext
8403 LIBS="$gl_save_LIBS"
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
8407 $as_echo "$gl_cv_w32_getservbyname" >&6; }
8408 if test "$gl_cv_w32_getservbyname" = "yes"; then
8409 SERVENT_LIB="-lws2_32"
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
8434 $as_echo_n "checking for IPv4 sockets... " >&6; }
8435 if ${gl_cv_socket_ipv4+:} false; then :
8436 $as_echo_n "(cached) " >&6
8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8440 #include <sys/types.h>
8441 #ifdef HAVE_SYS_SOCKET_H
8442 #include <sys/socket.h>
8444 #ifdef HAVE_NETINET_IN_H
8445 #include <netinet/in.h>
8447 #ifdef HAVE_WINSOCK2_H
8448 #include <winsock2.h>
8453 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
8454 if (&x && &y && &z) return 0;
8459 if ac_fn_c_try_compile "$LINENO"; then :
8460 gl_cv_socket_ipv4=yes
8462 gl_cv_socket_ipv4=no
8464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
8468 $as_echo "$gl_cv_socket_ipv4" >&6; }
8469 if test $gl_cv_socket_ipv4 = yes; then
8471 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
8476 $as_echo_n "checking for IPv6 sockets... " >&6; }
8477 if ${gl_cv_socket_ipv6+:} false; then :
8478 $as_echo_n "(cached) " >&6
8480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8482 #include <sys/types.h>
8483 #ifdef HAVE_SYS_SOCKET_H
8484 #include <sys/socket.h>
8486 #ifdef HAVE_NETINET_IN_H
8487 #include <netinet/in.h>
8489 #ifdef HAVE_WINSOCK2_H
8490 #include <winsock2.h>
8492 #ifdef HAVE_WS2TCPIP_H
8493 #include <ws2tcpip.h>
8498 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
8499 if (&x && &y && &z) return 0;
8504 if ac_fn_c_try_compile "$LINENO"; then :
8505 gl_cv_socket_ipv6=yes
8507 gl_cv_socket_ipv6=no
8509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
8513 $as_echo "$gl_cv_socket_ipv6" >&6; }
8514 if test $gl_cv_socket_ipv6 = yes; then
8516 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
8529 $as_echo_n "checking for library containing inet_ntop... " >&6; }
8530 if ${ac_cv_search_inet_ntop+:} false; then :
8531 $as_echo_n "(cached) " >&6
8533 ac_func_search_save_LIBS=$LIBS
8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h. */
8537 /* Override any GCC internal prototype to avoid an error.
8538 Use char because int might match the return type of a GCC
8539 builtin and then its argument prototype would still apply. */
8547 return inet_ntop ();
8552 for ac_lib in '' nsl; do
8553 if test -z "$ac_lib"; then
8554 ac_res="none required"
8557 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8559 if ac_fn_c_try_link "$LINENO"; then :
8560 ac_cv_search_inet_ntop=$ac_res
8562 rm -f core conftest.err conftest.$ac_objext \
8564 if ${ac_cv_search_inet_ntop+:} false; then :
8568 if ${ac_cv_search_inet_ntop+:} false; then :
8571 ac_cv_search_inet_ntop=no
8574 LIBS=$ac_func_search_save_LIBS
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
8577 $as_echo "$ac_cv_search_inet_ntop" >&6; }
8578 ac_res=$ac_cv_search_inet_ntop
8579 if test "$ac_res" != no; then :
8580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8591 for ac_func in inet_ntop
8593 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
8594 if test "x$ac_cv_func_inet_ntop" = xyes; then :
8595 cat >>confdefs.h <<_ACEOF
8596 #define HAVE_INET_NTOP 1
8601 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
8611 if test "$ac_cv_search_inet_ntop" != "no" &&
8612 test "$ac_cv_search_inet_ntop" != "none required"; then
8613 INET_NTOP_LIB="$ac_cv_search_inet_ntop"
8618 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
8620 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
8626 cat >>confdefs.h <<_ACEOF
8627 #define HAVE_DECL_INET_NTOP $ac_have_decl
8630 if test $ac_cv_have_decl_inet_ntop = no; then
8631 HAVE_DECL_INET_NTOP=0
8658 if test $gl_cv_have_include_next = yes; then
8659 gl_cv_next_getopt_h='<'getopt.h'>'
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
8662 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
8663 if ${gl_cv_next_getopt_h+:} false; then :
8664 $as_echo_n "(cached) " >&6
8667 if test $ac_cv_header_getopt_h = yes; then
8668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669 /* end confdefs.h. */
8674 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8675 *) gl_absname_cpp="$ac_cpp" ;;
8677 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8678 sed -n '\#/getopt.h#{
8679 s#.*"\(.*/getopt.h\)".*#\1#
8685 gl_cv_next_getopt_h='<'getopt.h'>'
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
8690 $as_echo "$gl_cv_next_getopt_h" >&6; }
8692 NEXT_GETOPT_H=$gl_cv_next_getopt_h
8694 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8695 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8696 gl_next_as_first_directive='<'getopt.h'>'
8698 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8699 gl_next_as_first_directive=$gl_cv_next_getopt_h
8701 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
8712 if test $ac_cv_header_getopt_h = yes; then
8721 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
8722 for ac_header in getopt.h
8724 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
8725 if test "x$ac_cv_header_getopt_h" = xyes; then :
8726 cat >>confdefs.h <<_ACEOF
8727 #define HAVE_GETOPT_H 1
8731 gl_replace_getopt=yes
8738 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
8739 for ac_func in getopt_long_only
8741 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
8742 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
8743 cat >>confdefs.h <<_ACEOF
8744 #define HAVE_GETOPT_LONG_ONLY 1
8748 gl_replace_getopt=yes
8754 if test -z "$gl_replace_getopt"; then
8755 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
8757 if test "x$ac_cv_have_decl_optreset" = xyes; then :
8763 cat >>confdefs.h <<_ACEOF
8764 #define HAVE_DECL_OPTRESET $ac_have_decl
8766 if test $ac_have_decl = 1; then :
8769 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
8771 if test "x$ac_cv_have_decl_getopt_clip" = xyes; then :
8777 cat >>confdefs.h <<_ACEOF
8778 #define HAVE_DECL_GETOPT_CLIP $ac_have_decl
8786 if test -z "$gl_replace_getopt"; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
8788 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
8789 if ${gl_cv_func_getopt_posix+:} false; then :
8790 $as_echo_n "(cached) " >&6
8793 if test "$cross_compiling" = yes; then :
8795 mingw*) gl_cv_func_getopt_posix="guessing no";;
8796 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
8797 *) gl_cv_func_getopt_posix="guessing yes";;
8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8808 #if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
8809 # define OPTIND_MIN 0
8811 # define OPTIND_MIN 1
8822 argv[argc++] = "program";
8823 argv[argc++] = "-a";
8824 argv[argc++] = "foo";
8825 argv[argc++] = "bar";
8827 optind = OPTIND_MIN;
8830 c = getopt (argc, argv, "ab");
8833 c = getopt (argc, argv, "ab");
8839 /* Some internal state exists at this point. */
8845 argv[argc++] = "program";
8846 argv[argc++] = "donald";
8847 argv[argc++] = "-p";
8848 argv[argc++] = "billy";
8849 argv[argc++] = "duck";
8850 argv[argc++] = "-a";
8851 argv[argc++] = "bar";
8853 optind = OPTIND_MIN;
8856 c = getopt (argc, argv, "+abp:q:");
8859 if (!(strcmp (argv[0], "program") == 0))
8861 if (!(strcmp (argv[1], "donald") == 0))
8863 if (!(strcmp (argv[2], "-p") == 0))
8865 if (!(strcmp (argv[3], "billy") == 0))
8867 if (!(strcmp (argv[4], "duck") == 0))
8869 if (!(strcmp (argv[5], "-a") == 0))
8871 if (!(strcmp (argv[6], "bar") == 0))
8876 /* Detect MacOS 10.5, AIX 7.1 bug. */
8878 char *argv[3] = { "program", "-ab", NULL };
8879 optind = OPTIND_MIN;
8881 if (getopt (2, argv, "ab:") != 'a')
8883 if (getopt (2, argv, "ab:") != '?')
8895 if ac_fn_c_try_run "$LINENO"; then :
8896 gl_cv_func_getopt_posix=yes
8898 gl_cv_func_getopt_posix=no
8900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8901 conftest.$ac_objext conftest.beam conftest.$ac_ext
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
8907 $as_echo "$gl_cv_func_getopt_posix" >&6; }
8908 case "$gl_cv_func_getopt_posix" in
8909 *no) gl_replace_getopt=yes ;;
8913 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
8915 $as_echo_n "checking for working GNU getopt function... " >&6; }
8916 if ${gl_cv_func_getopt_gnu+:} false; then :
8917 $as_echo_n "(cached) " >&6
8919 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
8920 # optstring is necessary for programs like m4 that have POSIX-mandated
8921 # semantics for supporting options interspersed with files.
8922 # Also, since getopt_long is a GNU extension, we require optind=0.
8923 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
8924 # so take care to revert to the correct (non-)export state.
8925 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
8926 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
8927 xx) gl_had_POSIXLY_CORRECT=exported ;;
8928 x) gl_had_POSIXLY_CORRECT=yes ;;
8929 *) gl_had_POSIXLY_CORRECT= ;;
8932 export POSIXLY_CORRECT
8933 if test "$cross_compiling" = yes; then :
8934 case $host_os:$ac_cv_have_decl_optreset in
8935 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
8936 *:yes) gl_cv_func_getopt_gnu=no;;
8937 *) gl_cv_func_getopt_gnu=yes;;
8941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h. */
8951 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
8952 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
8953 OSF/1 5.1, Solaris 10. */
8956 myargv[0] = "conftest";
8960 if (getopt (2, myargv, "+a") != '?')
8963 /* This code succeeds on glibc 2.8, mingw,
8964 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
8965 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
8967 char *argv[] = { "program", "-p", "foo", "bar", NULL };
8970 if (getopt (4, argv, "p::") != 'p')
8974 if (getopt (4, argv, "p::") != -1)
8979 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
8981 char *argv[] = { "program", "foo", "-p", NULL };
8983 if (getopt (3, argv, "-p") != 1)
8985 if (getopt (3, argv, "-p") != 'p')
8988 /* This code fails on glibc 2.11. */
8990 char *argv[] = { "program", "-b", "-a", NULL };
8991 optind = opterr = 0;
8992 if (getopt (3, argv, "+:a:b") != 'b')
8994 if (getopt (3, argv, "+:a:b") != ':')
9003 if ac_fn_c_try_run "$LINENO"; then :
9004 gl_cv_func_getopt_gnu=yes
9006 gl_cv_func_getopt_gnu=no
9008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9009 conftest.$ac_objext conftest.beam conftest.$ac_ext
9012 case $gl_had_POSIXLY_CORRECT in
9014 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
9015 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
9020 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
9021 if test "$gl_cv_func_getopt_gnu" = "no"; then
9022 gl_replace_getopt=yes
9027 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
9028 if test "x$ac_cv_have_decl_getenv" = xyes; then :
9034 cat >>confdefs.h <<_ACEOF
9035 #define HAVE_DECL_GETENV $ac_have_decl
9044 if test -n "$gl_replace_getopt"; then :
9050 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
9054 GNULIB_UNISTD_H_GETOPT=1
9063 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
9073 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
9090 GNULIB_GETTIMEOFDAY=0;
9091 HAVE_GETTIMEOFDAY=1;
9092 HAVE_STRUCT_TIMEVAL=1;
9094 REPLACE_GETTIMEOFDAY=0;
9123 if test $gl_cv_have_include_next = yes; then
9124 gl_cv_next_sys_time_h='<'sys/time.h'>'
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9127 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9128 if ${gl_cv_next_sys_time_h+:} false; then :
9129 $as_echo_n "(cached) " >&6
9132 if test $ac_cv_header_sys_time_h = yes; then
9133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9134 /* end confdefs.h. */
9135 #include <sys/time.h>
9139 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9140 *) gl_absname_cpp="$ac_cpp" ;;
9142 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9143 sed -n '\#/sys/time.h#{
9144 s#.*"\(.*/sys/time.h\)".*#\1#
9150 gl_cv_next_sys_time_h='<'sys/time.h'>'
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9155 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9157 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
9159 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9160 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9161 gl_next_as_first_directive='<'sys/time.h'>'
9163 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9164 gl_next_as_first_directive=$gl_cv_next_sys_time_h
9166 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
9171 if test $ac_cv_header_sys_time_h != yes; then
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9176 $as_echo_n "checking for struct timeval... " >&6; }
9177 if ${gl_cv_sys_struct_timeval+:} false; then :
9178 $as_echo_n "(cached) " >&6
9180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9181 /* end confdefs.h. */
9183 #include <sys/time.h>
9190 static struct timeval x; x.tv_sec = x.tv_usec;
9195 if ac_fn_c_try_compile "$LINENO"; then :
9196 gl_cv_sys_struct_timeval=yes
9198 gl_cv_sys_struct_timeval=no
9200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
9203 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
9204 if test $gl_cv_sys_struct_timeval != yes; then
9205 HAVE_STRUCT_TIMEVAL=0
9209 for gl_func in gettimeofday; do
9210 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9212 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9213 if eval \${$as_gl_Symbol+:} false; then :
9214 $as_echo_n "(cached) " >&6
9216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217 /* end confdefs.h. */
9220 # include <sys/time.h>
9233 if ac_fn_c_try_compile "$LINENO"; then :
9234 eval "$as_gl_Symbol=yes"
9236 eval "$as_gl_Symbol=no"
9238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9240 eval ac_res=\$$as_gl_Symbol
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9242 $as_echo "$ac_res" >&6; }
9243 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
9244 cat >>confdefs.h <<_ACEOF
9245 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9248 eval ac_cv_have_decl_$gl_func=yes
9262 GNULIB_NL_LANGINFO=0;
9264 REPLACE_NL_LANGINFO=0;
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9274 $as_echo_n "checking for working fcntl.h... " >&6; }
9275 if ${gl_cv_header_working_fcntl_h+:} false; then :
9276 $as_echo_n "(cached) " >&6
9278 if test "$cross_compiling" = yes; then :
9279 gl_cv_header_working_fcntl_h=cross-compiling
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9283 #include <sys/types.h>
9284 #include <sys/stat.h>
9291 #define O_NOFOLLOW 0
9293 static int const constants[] =
9295 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9296 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9303 int status = !constants;
9305 static char const sym[] = "conftest.sym";
9306 if (symlink (".", sym) != 0
9307 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
9312 static char const file[] = "confdefs.h";
9313 int fd = open (file, O_RDONLY | O_NOATIME);
9315 struct stat st0, st1;
9317 || fstat (fd, &st0) != 0
9319 || read (fd, &c, 1) != 1
9321 || stat (file, &st1) != 0
9322 || st0.st_atime != st1.st_atime)
9330 if ac_fn_c_try_run "$LINENO"; then :
9331 gl_cv_header_working_fcntl_h=yes
9334 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
9335 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
9336 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9337 *) gl_cv_header_working_fcntl_h='no';;
9340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9341 conftest.$ac_objext conftest.beam conftest.$ac_ext
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9346 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9348 case $gl_cv_header_working_fcntl_h in #(
9349 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
9353 cat >>confdefs.h <<_ACEOF
9354 #define HAVE_WORKING_O_NOATIME $ac_val
9358 case $gl_cv_header_working_fcntl_h in #(
9359 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
9363 cat >>confdefs.h <<_ACEOF
9364 #define HAVE_WORKING_O_NOFOLLOW $ac_val
9369 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
9370 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
9376 cat >>confdefs.h <<_ACEOF
9377 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
9383 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
9384 if ${ac_cv_gnu_library_2_1+:} false; then :
9385 $as_echo_n "(cached) " >&6
9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9390 #include <features.h>
9391 #ifdef __GNU_LIBRARY__
9392 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9399 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
9400 ac_cv_gnu_library_2_1=yes
9402 ac_cv_gnu_library_2_1=no
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9410 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9412 GLIBC21="$ac_cv_gnu_library_2_1"
9416 if test "X$prefix" = "XNONE"; then
9417 acl_final_prefix="$ac_default_prefix"
9419 acl_final_prefix="$prefix"
9421 if test "X$exec_prefix" = "XNONE"; then
9422 acl_final_exec_prefix='${prefix}'
9424 acl_final_exec_prefix="$exec_prefix"
9426 acl_save_prefix="$prefix"
9427 prefix="$acl_final_prefix"
9428 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9429 prefix="$acl_save_prefix"
9432 # Check whether --with-gnu-ld was given.
9433 if test "${with_gnu_ld+set}" = set; then :
9434 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9439 # Prepare PATH_SEPARATOR.
9440 # The user is always right.
9441 if test "${PATH_SEPARATOR+set}" != set; then
9442 echo "#! /bin/sh" >conf$$.sh
9443 echo "exit 0" >>conf$$.sh
9445 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9453 if test "$GCC" = yes; then
9454 # Check if gcc -print-prog-name=ld gives a path.
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9456 $as_echo_n "checking for ld used by GCC... " >&6; }
9459 # gcc leaves a trailing carriage return which upsets mingw
9460 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9462 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9465 # Accept absolute paths.
9466 [\\/]* | [A-Za-z]:[\\/]*)
9467 re_direlt='/[^/][^/]*/\.\./'
9468 # Canonicalize the path of ld
9469 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9470 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9471 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9473 test -z "$LD" && LD="$ac_prog"
9476 # If it fails, then pretend we aren't using GCC.
9480 # If it is relative, then search for the first ld in PATH.
9484 elif test "$with_gnu_ld" = yes; then
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9486 $as_echo_n "checking for GNU ld... " >&6; }
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9489 $as_echo_n "checking for non-GNU ld... " >&6; }
9491 if ${acl_cv_path_LD+:} false; then :
9492 $as_echo_n "(cached) " >&6
9494 if test -z "$LD"; then
9495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9496 for ac_dir in $PATH; do
9497 test -z "$ac_dir" && ac_dir=.
9498 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9499 acl_cv_path_LD="$ac_dir/$ac_prog"
9500 # Check to see if the program is GNU ld. I'd rather use --version,
9501 # but apparently some GNU ld's only accept -v.
9502 # Break only if it was the GNU/non-GNU ld that we prefer.
9503 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9504 *GNU* | *'with BFD'*)
9505 test "$with_gnu_ld" != no && break ;;
9507 test "$with_gnu_ld" != yes && break ;;
9513 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9517 LD="$acl_cv_path_LD"
9518 if test -n "$LD"; then
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9520 $as_echo "$LD" >&6; }
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523 $as_echo "no" >&6; }
9525 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9527 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9528 if ${acl_cv_prog_gnu_ld+:} false; then :
9529 $as_echo_n "(cached) " >&6
9531 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9532 case `$LD -v 2>&1 </dev/null` in
9533 *GNU* | *'with BFD'*)
9534 acl_cv_prog_gnu_ld=yes ;;
9536 acl_cv_prog_gnu_ld=no ;;
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9540 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9541 with_gnu_ld=$acl_cv_prog_gnu_ld
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9547 $as_echo_n "checking for shared library run path origin... " >&6; }
9548 if ${acl_cv_rpath+:} false; then :
9549 $as_echo_n "(cached) " >&6
9552 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9553 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9560 $as_echo "$acl_cv_rpath" >&6; }
9562 libext="$acl_cv_libext"
9563 shlibext="$acl_cv_shlibext"
9564 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9565 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9566 hardcode_direct="$acl_cv_hardcode_direct"
9567 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9568 # Check whether --enable-rpath was given.
9569 if test "${enable_rpath+set}" = set; then :
9570 enableval=$enable_rpath; :
9578 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9579 if test -n "$searchpath"; then
9580 acl_save_IFS="${IFS= }"; IFS=":"
9581 for searchdir in $searchpath; do
9582 if test -d "$searchdir"; then
9583 case "$searchdir" in
9584 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
9585 *) searchdir=`cd "$searchdir" && pwd`
9586 case "$searchdir" in
9587 */lib64 ) acl_libdirstem=lib64 ;;
9602 if test "$gl_use_threads" != no; then
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
9604 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
9605 if ${gl_cv_have_weak+:} false; then :
9606 $as_echo_n "(cached) " >&6
9609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9610 /* end confdefs.h. */
9611 extern void xyzzy ();
9621 if ac_fn_c_try_link "$LINENO"; then :
9622 gl_cv_have_weak=maybe
9624 rm -f core conftest.err conftest.$ac_objext \
9625 conftest$ac_exeext conftest.$ac_ext
9626 if test $gl_cv_have_weak = maybe; then
9627 if test "$cross_compiling" = yes; then :
9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h. */
9631 Extensible Linking Format
9635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9636 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
9637 gl_cv_have_weak="guessing yes"
9639 gl_cv_have_weak="guessing no"
9645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646 /* end confdefs.h. */
9652 return (fputs == NULL);
9655 if ac_fn_c_try_run "$LINENO"; then :
9660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9661 conftest.$ac_objext conftest.beam conftest.$ac_ext
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
9668 $as_echo "$gl_cv_have_weak" >&6; }
9669 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
9670 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
9671 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
9672 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9673 if test "x$ac_cv_header_pthread_h" = xyes; then :
9674 gl_have_pthread_h=yes
9676 gl_have_pthread_h=no
9680 if test "$gl_have_pthread_h" = yes; then
9681 # Other possible tests:
9682 # -lpthreads (FSU threads, PCthreads)
9685 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
9686 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
9687 # the second one only in libpthread, and lock.c needs it.
9688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9689 /* end confdefs.h. */
9690 #include <pthread.h>
9694 pthread_mutex_lock((pthread_mutex_t*)0);
9695 pthread_mutexattr_init((pthread_mutexattr_t*)0);
9700 if ac_fn_c_try_link "$LINENO"; then :
9703 rm -f core conftest.err conftest.$ac_objext \
9704 conftest$ac_exeext conftest.$ac_ext
9705 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
9706 # since it is defined as a macro on OSF/1.)
9707 if test -n "$gl_have_pthread"; then
9708 # The program links fine without libpthread. But it may actually
9709 # need to link with libpthread in order to create multiple threads.
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
9711 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
9712 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
9713 $as_echo_n "(cached) " >&6
9715 ac_check_lib_save_LIBS=$LIBS
9716 LIBS="-lpthread $LIBS"
9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718 /* end confdefs.h. */
9720 /* Override any GCC internal prototype to avoid an error.
9721 Use char because int might match the return type of a GCC
9722 builtin and then its argument prototype would still apply. */
9726 char pthread_kill ();
9730 return pthread_kill ();
9735 if ac_fn_c_try_link "$LINENO"; then :
9736 ac_cv_lib_pthread_pthread_kill=yes
9738 ac_cv_lib_pthread_pthread_kill=no
9740 rm -f core conftest.err conftest.$ac_objext \
9741 conftest$ac_exeext conftest.$ac_ext
9742 LIBS=$ac_check_lib_save_LIBS
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
9745 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
9746 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
9747 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
9748 # On Solaris and HP-UX, most pthread functions exist also in libc.
9749 # Therefore pthread_in_use() needs to actually try to create a
9750 # thread: pthread_create from libc will fail, whereas
9751 # pthread_create will actually create a thread.
9755 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
9762 # Some library is needed. Try libpthread and libc_r.
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
9764 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
9765 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
9766 $as_echo_n "(cached) " >&6
9768 ac_check_lib_save_LIBS=$LIBS
9769 LIBS="-lpthread $LIBS"
9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9771 /* end confdefs.h. */
9773 /* Override any GCC internal prototype to avoid an error.
9774 Use char because int might match the return type of a GCC
9775 builtin and then its argument prototype would still apply. */
9779 char pthread_kill ();
9783 return pthread_kill ();
9788 if ac_fn_c_try_link "$LINENO"; then :
9789 ac_cv_lib_pthread_pthread_kill=yes
9791 ac_cv_lib_pthread_pthread_kill=no
9793 rm -f core conftest.err conftest.$ac_objext \
9794 conftest$ac_exeext conftest.$ac_ext
9795 LIBS=$ac_check_lib_save_LIBS
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
9798 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
9799 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
9801 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
9802 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
9805 if test -z "$gl_have_pthread"; then
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
9808 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
9809 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
9810 $as_echo_n "(cached) " >&6
9812 ac_check_lib_save_LIBS=$LIBS
9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h. */
9817 /* Override any GCC internal prototype to avoid an error.
9818 Use char because int might match the return type of a GCC
9819 builtin and then its argument prototype would still apply. */
9823 char pthread_kill ();
9827 return pthread_kill ();
9832 if ac_fn_c_try_link "$LINENO"; then :
9833 ac_cv_lib_c_r_pthread_kill=yes
9835 ac_cv_lib_c_r_pthread_kill=no
9837 rm -f core conftest.err conftest.$ac_objext \
9838 conftest$ac_exeext conftest.$ac_ext
9839 LIBS=$ac_check_lib_save_LIBS
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
9842 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
9843 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
9845 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
9846 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
9851 if test -n "$gl_have_pthread"; then
9852 gl_threads_api=posix
9854 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
9856 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
9857 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
9859 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
9868 if test -z "$gl_have_pthread"; then
9869 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
9870 gl_have_solaristhread=
9871 gl_save_LIBS="$LIBS"
9872 LIBS="$LIBS -lthread"
9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874 /* end confdefs.h. */
9887 if ac_fn_c_try_link "$LINENO"; then :
9888 gl_have_solaristhread=yes
9890 rm -f core conftest.err conftest.$ac_objext \
9891 conftest$ac_exeext conftest.$ac_ext
9892 LIBS="$gl_save_LIBS"
9893 if test -n "$gl_have_solaristhread"; then
9894 gl_threads_api=solaris
9896 LTLIBTHREAD=-lthread
9897 LIBMULTITHREAD="$LIBTHREAD"
9898 LTLIBMULTITHREAD="$LTLIBTHREAD"
9900 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
9902 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
9904 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
9912 if test "$gl_use_threads" = pth; then
9913 gl_save_CPPFLAGS="$CPPFLAGS"
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
9920 $as_echo_n "checking how to link with libpth... " >&6; }
9921 if ${ac_cv_libpth_libs+:} false; then :
9922 $as_echo_n "(cached) " >&6
9930 acl_save_prefix="$prefix"
9931 prefix="$acl_final_prefix"
9932 acl_save_exec_prefix="$exec_prefix"
9933 exec_prefix="$acl_final_exec_prefix"
9935 eval additional_includedir=\"$includedir\"
9936 eval additional_libdir=\"$libdir\"
9938 exec_prefix="$acl_save_exec_prefix"
9939 prefix="$acl_save_prefix"
9942 # Check whether --with-libpth-prefix was given.
9943 if test "${with_libpth_prefix+set}" = set; then :
9944 withval=$with_libpth_prefix;
9945 if test "X$withval" = "Xno"; then
9948 if test "X$withval" = "X"; then
9950 acl_save_prefix="$prefix"
9951 prefix="$acl_final_prefix"
9952 acl_save_exec_prefix="$exec_prefix"
9953 exec_prefix="$acl_final_exec_prefix"
9955 eval additional_includedir=\"$includedir\"
9956 eval additional_libdir=\"$libdir\"
9958 exec_prefix="$acl_save_exec_prefix"
9959 prefix="$acl_save_prefix"
9962 additional_includedir="$withval/include"
9963 additional_libdir="$withval/$acl_libdirstem"
9974 names_already_handled=
9975 names_next_round='pth '
9976 while test -n "$names_next_round"; do
9977 names_this_round="$names_next_round"
9979 for name in $names_this_round; do
9981 for n in $names_already_handled; do
9982 if test "$n" = "$name"; then
9987 if test -z "$already_handled"; then
9988 names_already_handled="$names_already_handled $name"
9989 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9990 eval value=\"\$HAVE_LIB$uppername\"
9991 if test -n "$value"; then
9992 if test "$value" = yes; then
9993 eval value=\"\$LIB$uppername\"
9994 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
9995 eval value=\"\$LTLIB$uppername\"
9996 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
10005 if test $use_additional = yes; then
10006 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10007 found_dir="$additional_libdir"
10008 found_so="$additional_libdir/lib$name.$shlibext"
10009 if test -f "$additional_libdir/lib$name.la"; then
10010 found_la="$additional_libdir/lib$name.la"
10013 if test -f "$additional_libdir/lib$name.$libext"; then
10014 found_dir="$additional_libdir"
10015 found_a="$additional_libdir/lib$name.$libext"
10016 if test -f "$additional_libdir/lib$name.la"; then
10017 found_la="$additional_libdir/lib$name.la"
10022 if test "X$found_dir" = "X"; then
10023 for x in $LDFLAGS $LTLIBPTH; do
10025 acl_save_prefix="$prefix"
10026 prefix="$acl_final_prefix"
10027 acl_save_exec_prefix="$exec_prefix"
10028 exec_prefix="$acl_final_exec_prefix"
10030 exec_prefix="$acl_save_exec_prefix"
10031 prefix="$acl_save_prefix"
10035 dir=`echo "X$x" | sed -e 's/^X-L//'`
10036 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10038 found_so="$dir/lib$name.$shlibext"
10039 if test -f "$dir/lib$name.la"; then
10040 found_la="$dir/lib$name.la"
10043 if test -f "$dir/lib$name.$libext"; then
10045 found_a="$dir/lib$name.$libext"
10046 if test -f "$dir/lib$name.la"; then
10047 found_la="$dir/lib$name.la"
10053 if test "X$found_dir" != "X"; then
10058 if test "X$found_dir" != "X"; then
10059 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
10060 if test "X$found_so" != "X"; then
10061 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
10062 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10065 for x in $ltrpathdirs; do
10066 if test "X$x" = "X$found_dir"; then
10071 if test -z "$haveit"; then
10072 ltrpathdirs="$ltrpathdirs $found_dir"
10074 if test "$hardcode_direct" = yes; then
10075 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10077 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10078 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10080 for x in $rpathdirs; do
10081 if test "X$x" = "X$found_dir"; then
10086 if test -z "$haveit"; then
10087 rpathdirs="$rpathdirs $found_dir"
10091 for x in $LDFLAGS $LIBPTH; do
10093 acl_save_prefix="$prefix"
10094 prefix="$acl_final_prefix"
10095 acl_save_exec_prefix="$exec_prefix"
10096 exec_prefix="$acl_final_exec_prefix"
10098 exec_prefix="$acl_save_exec_prefix"
10099 prefix="$acl_save_prefix"
10101 if test "X$x" = "X-L$found_dir"; then
10106 if test -z "$haveit"; then
10107 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
10109 if test "$hardcode_minus_L" != no; then
10110 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10112 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
10118 if test "X$found_a" != "X"; then
10119 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
10121 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
10124 additional_includedir=
10125 case "$found_dir" in
10126 */$acl_libdirstem | */$acl_libdirstem/)
10127 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10128 additional_includedir="$basedir/include"
10131 if test "X$additional_includedir" != "X"; then
10132 if test "X$additional_includedir" != "X/usr/include"; then
10134 if test "X$additional_includedir" = "X/usr/local/include"; then
10135 if test -n "$GCC"; then
10137 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10141 if test -z "$haveit"; then
10142 for x in $CPPFLAGS $INCPTH; do
10144 acl_save_prefix="$prefix"
10145 prefix="$acl_final_prefix"
10146 acl_save_exec_prefix="$exec_prefix"
10147 exec_prefix="$acl_final_exec_prefix"
10149 exec_prefix="$acl_save_exec_prefix"
10150 prefix="$acl_save_prefix"
10152 if test "X$x" = "X-I$additional_includedir"; then
10157 if test -z "$haveit"; then
10158 if test -d "$additional_includedir"; then
10159 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
10165 if test -n "$found_la"; then
10166 save_libdir="$libdir"
10167 case "$found_la" in
10168 */* | *\\*) . "$found_la" ;;
10169 *) . "./$found_la" ;;
10171 libdir="$save_libdir"
10172 for dep in $dependency_libs; do
10175 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10176 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
10178 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
10179 if test -n "$GCC"; then
10181 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10185 if test -z "$haveit"; then
10187 for x in $LDFLAGS $LIBPTH; do
10189 acl_save_prefix="$prefix"
10190 prefix="$acl_final_prefix"
10191 acl_save_exec_prefix="$exec_prefix"
10192 exec_prefix="$acl_final_exec_prefix"
10194 exec_prefix="$acl_save_exec_prefix"
10195 prefix="$acl_save_prefix"
10197 if test "X$x" = "X-L$additional_libdir"; then
10202 if test -z "$haveit"; then
10203 if test -d "$additional_libdir"; then
10204 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
10208 for x in $LDFLAGS $LTLIBPTH; do
10210 acl_save_prefix="$prefix"
10211 prefix="$acl_final_prefix"
10212 acl_save_exec_prefix="$exec_prefix"
10213 exec_prefix="$acl_final_exec_prefix"
10215 exec_prefix="$acl_save_exec_prefix"
10216 prefix="$acl_save_prefix"
10218 if test "X$x" = "X-L$additional_libdir"; then
10223 if test -z "$haveit"; then
10224 if test -d "$additional_libdir"; then
10225 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
10232 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10233 if test "$enable_rpath" != no; then
10235 for x in $rpathdirs; do
10236 if test "X$x" = "X$dir"; then
10241 if test -z "$haveit"; then
10242 rpathdirs="$rpathdirs $dir"
10245 for x in $ltrpathdirs; do
10246 if test "X$x" = "X$dir"; then
10251 if test -z "$haveit"; then
10252 ltrpathdirs="$ltrpathdirs $dir"
10257 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10260 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10263 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
10264 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
10270 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
10271 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
10277 if test "X$rpathdirs" != "X"; then
10278 if test -n "$hardcode_libdir_separator"; then
10280 for found_dir in $rpathdirs; do
10281 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10283 acl_save_libdir="$libdir"
10285 eval flag=\"$hardcode_libdir_flag_spec\"
10286 libdir="$acl_save_libdir"
10287 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
10289 for found_dir in $rpathdirs; do
10290 acl_save_libdir="$libdir"
10291 libdir="$found_dir"
10292 eval flag=\"$hardcode_libdir_flag_spec\"
10293 libdir="$acl_save_libdir"
10294 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
10298 if test "X$ltrpathdirs" != "X"; then
10299 for found_dir in $ltrpathdirs; do
10300 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
10304 ac_cv_libpth_libs="$LIBPTH"
10305 ac_cv_libpth_ltlibs="$LTLIBPTH"
10306 ac_cv_libpth_cppflags="$INCPTH"
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
10310 $as_echo "$ac_cv_libpth_libs" >&6; }
10311 LIBPTH="$ac_cv_libpth_libs"
10312 LTLIBPTH="$ac_cv_libpth_ltlibs"
10313 INCPTH="$ac_cv_libpth_cppflags"
10315 for element in $INCPTH; do
10317 for x in $CPPFLAGS; do
10319 acl_save_prefix="$prefix"
10320 prefix="$acl_final_prefix"
10321 acl_save_exec_prefix="$exec_prefix"
10322 exec_prefix="$acl_final_exec_prefix"
10324 exec_prefix="$acl_save_exec_prefix"
10325 prefix="$acl_save_prefix"
10327 if test "X$x" = "X$element"; then
10332 if test -z "$haveit"; then
10333 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10344 gl_save_LIBS="$LIBS"
10346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h. */
10357 if ac_fn_c_try_link "$LINENO"; then :
10360 rm -f core conftest.err conftest.$ac_objext \
10361 conftest$ac_exeext conftest.$ac_ext
10362 LIBS="$gl_save_LIBS"
10363 if test -n "$gl_have_pth"; then
10365 LIBTHREAD="$LIBPTH"
10366 LTLIBTHREAD="$LTLIBPTH"
10367 LIBMULTITHREAD="$LIBTHREAD"
10368 LTLIBMULTITHREAD="$LTLIBTHREAD"
10370 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
10372 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
10373 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
10375 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
10382 CPPFLAGS="$gl_save_CPPFLAGS"
10385 if test -z "$gl_have_pthread"; then
10386 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
10387 if { case "$host_os" in
10392 gl_threads_api=win32
10394 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
10401 $as_echo_n "checking for multithread API to use... " >&6; }
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
10403 $as_echo "$gl_threads_api" >&6; }
10425 GNULIB_UTIMENSAT=0;
10439 REPLACE_FUTIMENS=0;
10445 REPLACE_UTIMENSAT=0;
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10453 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10454 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
10455 $as_echo_n "(cached) " >&6
10457 rm -f conftest.sym conftest.file
10458 echo >conftest.file
10459 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10460 if test "$cross_compiling" = yes; then :
10461 ac_cv_func_lstat_dereferences_slashed_symlink=no
10463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10464 /* end confdefs.h. */
10465 $ac_includes_default
10470 /* Linux will dereference the symlink and fail, as required by POSIX.
10471 That is better in the sense that it means we will not
10472 have to compile and use the lstat wrapper. */
10473 return lstat ("conftest.sym/", &sbuf) == 0;
10478 if ac_fn_c_try_run "$LINENO"; then :
10479 ac_cv_func_lstat_dereferences_slashed_symlink=yes
10481 ac_cv_func_lstat_dereferences_slashed_symlink=no
10483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10484 conftest.$ac_objext conftest.beam conftest.$ac_ext
10488 # If the `ln -s' command failed, then we probably don't even
10489 # have an lstat function.
10490 ac_cv_func_lstat_dereferences_slashed_symlink=no
10492 rm -f conftest.sym conftest.file
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10496 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10498 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10500 cat >>confdefs.h <<_ACEOF
10501 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10505 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
10514 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
10521 GNULIB_CALLOC_POSIX=0;
10522 GNULIB_CANONICALIZE_FILE_NAME=0;
10523 GNULIB_GETLOADAVG=0;
10524 GNULIB_GETSUBOPT=0;
10526 GNULIB_MALLOC_POSIX=0;
10529 GNULIB_MKOSTEMPS=0;
10535 GNULIB_REALLOC_POSIX=0;
10546 HAVE_CANONICALIZE_FILE_NAME=1;
10547 HAVE_DECL_GETLOADAVG=1;
10563 HAVE_STRUCT_RANDOM_DATA=1;
10564 HAVE_SYS_LOADAVG_H=0;
10568 REPLACE_CANONICALIZE_FILE_NAME=0;
10573 REPLACE_REALPATH=0;
10576 REPLACE_UNSETENV=0;
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
10580 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
10581 if ${gl_cv_func_malloc_posix+:} false; then :
10582 $as_echo_n "(cached) " >&6
10585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10586 /* end confdefs.h. */
10591 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
10599 if ac_fn_c_try_compile "$LINENO"; then :
10600 gl_cv_func_malloc_posix=yes
10602 gl_cv_func_malloc_posix=no
10604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
10608 $as_echo "$gl_cv_func_malloc_posix" >&6; }
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
10613 $as_echo_n "checking for mbstate_t... " >&6; }
10614 if ${ac_cv_type_mbstate_t+:} false; then :
10615 $as_echo_n "(cached) " >&6
10617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10618 /* end confdefs.h. */
10619 $ac_includes_default
10620 # include <wchar.h>
10624 mbstate_t x; return sizeof x;
10629 if ac_fn_c_try_compile "$LINENO"; then :
10630 ac_cv_type_mbstate_t=yes
10632 ac_cv_type_mbstate_t=no
10634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
10637 $as_echo "$ac_cv_type_mbstate_t" >&6; }
10638 if test $ac_cv_type_mbstate_t = yes; then
10640 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
10644 $as_echo "#define mbstate_t int" >>confdefs.h
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
10662 $as_echo_n "checking for a traditional japanese locale... " >&6; }
10663 if ${gt_cv_locale_ja+:} false; then :
10664 $as_echo_n "(cached) " >&6
10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10670 #include <locale.h>
10672 #if HAVE_LANGINFO_CODESET
10673 # include <langinfo.h>
10675 #include <stdlib.h>
10676 #include <string.h>
10682 /* Check whether the given locale name is recognized by the system. */
10683 if (setlocale (LC_ALL, "") == NULL) return 1;
10684 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10685 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10686 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10687 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10688 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10689 some unit tests fail. */
10690 #if HAVE_LANGINFO_CODESET
10692 const char *cs = nl_langinfo (CODESET);
10693 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10698 /* On Cygwin, avoid locale names without encoding suffix, because the
10699 locale_charset() function relies on the encoding suffix. Note that
10700 LC_ALL is set on the command line. */
10701 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10703 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
10704 on Cygwin 1.5.x. */
10705 if (MB_CUR_MAX == 1)
10707 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10708 This excludes the UTF-8 encoding. */
10709 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10710 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10711 for (p = buf; *p != '\0'; p++)
10712 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10719 (eval $ac_link) 2>&5
10721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10722 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10723 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10724 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10725 # configure script would override the LC_ALL setting. Likewise for
10726 # LC_CTYPE, which is also set at the beginning of the configure script.
10727 # Test for the AIX locale name.
10728 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10729 gt_cv_locale_ja=ja_JP
10731 # Test for the locale name with explicit encoding suffix.
10732 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10733 gt_cv_locale_ja=ja_JP.EUC-JP
10735 # Test for the HP-UX, OSF/1, NetBSD locale name.
10736 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10737 gt_cv_locale_ja=ja_JP.eucJP
10739 # Test for the IRIX, FreeBSD locale name.
10740 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10741 gt_cv_locale_ja=ja_JP.EUC
10743 # Test for the Solaris 7 locale name.
10744 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10747 # Special test for NetBSD 1.6.
10748 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
10749 gt_cv_locale_ja=ja_JP.eucJP
10752 gt_cv_locale_ja=none
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
10764 $as_echo "$gt_cv_locale_ja" >&6; }
10765 LOCALE_JA=$gt_cv_locale_ja
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
10772 $as_echo_n "checking for a transitional chinese locale... " >&6; }
10773 if ${gt_cv_locale_zh_CN+:} false; then :
10774 $as_echo_n "(cached) " >&6
10777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h. */
10780 #include <locale.h>
10781 #include <stdlib.h>
10783 #if HAVE_LANGINFO_CODESET
10784 # include <langinfo.h>
10786 #include <stdlib.h>
10787 #include <string.h>
10793 /* Check whether the given locale name is recognized by the system. */
10794 if (setlocale (LC_ALL, "") == NULL) return 1;
10795 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10796 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10797 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10798 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10799 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10800 some unit tests fail. */
10801 #if HAVE_LANGINFO_CODESET
10803 const char *cs = nl_langinfo (CODESET);
10804 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10809 /* On Cygwin, avoid locale names without encoding suffix, because the
10810 locale_charset() function relies on the encoding suffix. Note that
10811 LC_ALL is set on the command line. */
10812 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10814 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10815 This excludes the UTF-8 encoding. */
10816 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10817 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10818 for (p = buf; *p != '\0'; p++)
10819 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10821 /* Check whether a typical GB18030 multibyte sequence is recognized as a
10822 single wide character. This excludes the GB2312 and GBK encodings. */
10823 if (mblen ("\203\062\332\066", 5) != 4)
10829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10830 (eval $ac_link) 2>&5
10832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10833 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10834 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10835 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10836 # configure script would override the LC_ALL setting. Likewise for
10837 # LC_CTYPE, which is also set at the beginning of the configure script.
10838 # Test for the locale name without encoding suffix.
10839 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10840 gt_cv_locale_zh_CN=zh_CN
10842 # Test for the locale name with explicit encoding suffix.
10843 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10844 gt_cv_locale_zh_CN=zh_CN.GB18030
10847 gt_cv_locale_zh_CN=none
10851 # If there was a link error, due to mblen(), the system is so old that
10852 # it certainly doesn't have a chinese locale.
10853 gt_cv_locale_zh_CN=none
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
10859 $as_echo "$gt_cv_locale_zh_CN" >&6; }
10860 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
10866 $as_echo_n "checking for a french Unicode locale... " >&6; }
10867 if ${gt_cv_locale_fr_utf8+:} false; then :
10868 $as_echo_n "(cached) " >&6
10871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10872 /* end confdefs.h. */
10874 #include <locale.h>
10876 #if HAVE_LANGINFO_CODESET
10877 # include <langinfo.h>
10879 #include <stdlib.h>
10880 #include <string.h>
10884 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
10885 imitates locale dependent behaviour by looking at the environment
10886 variables, and all locales use the UTF-8 encoding. */
10887 #if !(defined __BEOS__ || defined __HAIKU__)
10888 /* Check whether the given locale name is recognized by the system. */
10889 if (setlocale (LC_ALL, "") == NULL) return 1;
10890 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10891 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10892 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10893 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10894 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10895 some unit tests fail. */
10896 # if HAVE_LANGINFO_CODESET
10898 const char *cs = nl_langinfo (CODESET);
10899 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10904 /* On Cygwin, avoid locale names without encoding suffix, because the
10905 locale_charset() function relies on the encoding suffix. Note that
10906 LC_ALL is set on the command line. */
10907 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10909 /* Check whether in the abbreviation of the second month, the second
10910 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
10911 two bytes long, with UTF-8 encoding. */
10912 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10913 if (strftime (buf, sizeof (buf), "%b", &t) < 4
10914 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
10917 /* Check whether the decimal separator is a comma.
10918 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10919 are nl_langinfo(RADIXCHAR) are both ".". */
10920 if (localeconv () ->decimal_point[0] != ',') return 1;
10925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10926 (eval $ac_link) 2>&5
10928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10929 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10930 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10931 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10932 # configure script would override the LC_ALL setting. Likewise for
10933 # LC_CTYPE, which is also set at the beginning of the configure script.
10934 # Test for the usual locale name.
10935 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10936 gt_cv_locale_fr_utf8=fr_FR
10938 # Test for the locale name with explicit encoding suffix.
10939 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10940 gt_cv_locale_fr_utf8=fr_FR.UTF-8
10942 # Test for the Solaris 7 locale name.
10943 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10944 gt_cv_locale_fr_utf8=fr.UTF-8
10947 gt_cv_locale_fr_utf8=none
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
10956 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
10957 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
10975 GNULIB_RAWMEMCHR=0;
10978 GNULIB_STRCHRNUL=0;
10986 GNULIB_STRCASESTR=0;
10993 GNULIB_MBSCASECMP=0;
10994 GNULIB_MBSNCASECMP=0;
10995 GNULIB_MBSPCASECMP=0;
10996 GNULIB_MBSCASESTR=0;
11003 GNULIB_STRSIGNAL=0;
11004 GNULIB_STRVERSCMP=0;
11007 HAVE_DECL_MEMMEM=1;
11009 HAVE_DECL_MEMRCHR=1;
11014 HAVE_DECL_STRDUP=1;
11015 HAVE_DECL_STRNDUP=1;
11016 HAVE_DECL_STRNLEN=1;
11020 HAVE_DECL_STRTOK_R=1;
11021 HAVE_DECL_STRSIGNAL=1;
11028 REPLACE_STRCASESTR=0;
11029 REPLACE_STRERROR=0;
11033 REPLACE_STRSIGNAL=0;
11034 REPLACE_STRTOK_R=0;
11035 UNDEFINE_STRTOK_R=0;
11049 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
11050 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
11051 # irrelevant for anonymous mappings.
11052 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11053 if test "x$ac_cv_func_mmap" = xyes; then :
11060 # Try to allow MAP_ANONYMOUS.
11061 gl_have_mmap_anonymous=no
11062 if test $gl_have_mmap = yes; then
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
11064 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h. */
11068 #include <sys/mman.h>
11069 #ifdef MAP_ANONYMOUS
11070 I cant identify this map.
11074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11075 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
11076 gl_have_mmap_anonymous=yes
11080 if test $gl_have_mmap_anonymous != yes; then
11081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082 /* end confdefs.h. */
11084 #include <sys/mman.h>
11086 I cant identify this map.
11090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11091 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
11093 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
11095 gl_have_mmap_anonymous=yes
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
11101 $as_echo "$gl_have_mmap_anonymous" >&6; }
11102 if test $gl_have_mmap_anonymous = yes; then
11104 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
11132 if test $ac_cv_func_memchr = yes; then
11133 # Detect platform-specific bugs in some versions of glibc:
11134 # memchr should not dereference anything with length 0
11135 # http://bugzilla.redhat.com/499689
11136 # memchr should not dereference overestimated length after a match
11137 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
11138 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
11139 # Assume that memchr works on platforms that lack mprotect.
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
11141 $as_echo_n "checking whether memchr works... " >&6; }
11142 if ${gl_cv_func_memchr_works+:} false; then :
11143 $as_echo_n "(cached) " >&6
11145 if test "$cross_compiling" = yes; then :
11146 gl_cv_func_memchr_works="guessing no"
11148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h. */
11151 #include <string.h>
11152 #if HAVE_SYS_MMAN_H
11153 # include <fcntl.h>
11154 # include <unistd.h>
11155 # include <sys/types.h>
11156 # include <sys/mman.h>
11158 # define MAP_FILE 0
11166 char *fence = NULL;
11167 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
11168 # if HAVE_MAP_ANONYMOUS
11169 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
11171 # else /* !HAVE_MAP_ANONYMOUS */
11172 const int flags = MAP_FILE | MAP_PRIVATE;
11173 int fd = open ("/dev/zero", O_RDONLY, 0666);
11177 int pagesize = getpagesize ();
11179 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
11181 if (two_pages != (char *)(-1)
11182 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
11183 fence = two_pages + pagesize;
11188 if (memchr (fence, 0, 0))
11190 strcpy (fence - 9, "12345678");
11191 if (memchr (fence - 9, 0, 79) != fence - 1)
11200 if ac_fn_c_try_run "$LINENO"; then :
11201 gl_cv_func_memchr_works=yes
11203 gl_cv_func_memchr_works=no
11205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11206 conftest.$ac_objext conftest.beam conftest.$ac_ext
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
11211 $as_echo "$gl_cv_func_memchr_works" >&6; }
11212 if test "$gl_cv_func_memchr_works" != yes; then
11218 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
11227 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
11230 for ac_header in bp-sym.h
11232 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
11233 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
11234 cat >>confdefs.h <<_ACEOF
11235 #define HAVE_BP_SYM_H 1
11246 gl_cv_c_multiarch=no
11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11249 #ifndef __APPLE_CC__
11250 not a universal capable compiler
11255 if ac_fn_c_try_compile "$LINENO"; then :
11259 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
11260 if test -n "$prev"; then
11262 i?86 | x86_64 | ppc | ppc64)
11263 if test -z "$arch" || test "$arch" = "$word"; then
11266 gl_cv_c_multiarch=yes
11272 if test "x$word" = "x-arch"; then
11279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11280 if test $gl_cv_c_multiarch = yes; then
11282 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11284 APPLE_UNIVERSAL_BUILD=1
11286 APPLE_UNIVERSAL_BUILD=0
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external symbol _system_configuration" >&5
11296 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
11297 if ${gl_cv_var__system_configuration+:} false; then :
11298 $as_echo_n "(cached) " >&6
11300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301 /* end confdefs.h. */
11302 #include <sys/systemcfg.h>
11307 double x = _system_configuration.physmem;
11308 if (x > 0.0) return 0;
11313 if ac_fn_c_try_link "$LINENO"; then :
11314 gl_cv_var__system_configuration=yes
11316 gl_cv_var__system_configuration=no
11318 rm -f core conftest.err conftest.$ac_objext \
11319 conftest$ac_exeext conftest.$ac_ext
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var__system_configuration" >&5
11322 $as_echo "$gl_cv_var__system_configuration" >&6; }
11324 if test $gl_cv_var__system_configuration = yes; then
11326 $as_echo "#define HAVE__SYSTEM_CONFIGURATION 1" >>confdefs.h
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
11353 $as_echo_n "checking for ssize_t... " >&6; }
11354 if ${gt_cv_ssize_t+:} false; then :
11355 $as_echo_n "(cached) " >&6
11357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11358 /* end confdefs.h. */
11359 #include <sys/types.h>
11363 int x = sizeof (ssize_t *) + sizeof (ssize_t);
11369 if ac_fn_c_try_compile "$LINENO"; then :
11374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
11377 $as_echo "$gt_cv_ssize_t" >&6; }
11378 if test $gt_cv_ssize_t = no; then
11380 $as_echo "#define ssize_t int" >>confdefs.h
11385 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11386 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
11392 cat >>confdefs.h <<_ACEOF
11393 #define HAVE_DECL_SNPRINTF $ac_have_decl
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system is Windows or MSDOS" >&5
11399 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
11400 if ${ac_cv_win_or_dos+:} false; then :
11401 $as_echo_n "(cached) " >&6
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11411 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
11412 neither MSDOS nor Windows
11418 if ac_fn_c_try_compile "$LINENO"; then :
11419 ac_cv_win_or_dos=yes
11421 ac_cv_win_or_dos=no
11423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_win_or_dos" >&5
11427 $as_echo "$ac_cv_win_or_dos" >&6; }
11429 if test x"$ac_cv_win_or_dos" = xyes; then
11430 ac_fs_accepts_drive_letter_prefix=1
11431 ac_fs_backslash_is_file_name_separator=1
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether drive letter can start relative path" >&5
11433 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
11434 if ${ac_cv_drive_letter_can_be_relative+:} false; then :
11435 $as_echo_n "(cached) " >&6
11438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439 /* end confdefs.h. */
11445 #if defined __CYGWIN__
11446 drive letters are always absolute
11452 if ac_fn_c_try_compile "$LINENO"; then :
11453 ac_cv_drive_letter_can_be_relative=yes
11455 ac_cv_drive_letter_can_be_relative=no
11457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_drive_letter_can_be_relative" >&5
11461 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
11462 if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
11463 ac_fs_drive_letter_can_be_relative=1
11465 ac_fs_drive_letter_can_be_relative=0
11468 ac_fs_accepts_drive_letter_prefix=0
11469 ac_fs_backslash_is_file_name_separator=0
11470 ac_fs_drive_letter_can_be_relative=0
11474 cat >>confdefs.h <<_ACEOF
11475 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
11482 cat >>confdefs.h <<_ACEOF
11483 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
11488 cat >>confdefs.h <<_ACEOF
11489 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11494 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11495 if ${ac_cv_header_stdbool_h+:} false; then :
11496 $as_echo_n "(cached) " >&6
11498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11499 /* end confdefs.h. */
11501 #include <stdbool.h>
11503 "error: bool is not defined"
11506 "error: false is not defined"
11509 "error: false is not 0"
11512 "error: true is not defined"
11515 "error: true is not 1"
11517 #ifndef __bool_true_false_are_defined
11518 "error: __bool_true_false_are_defined is not defined"
11521 struct s { _Bool s: 1; _Bool t; } s;
11523 char a[true == 1 ? 1 : -1];
11524 char b[false == 0 ? 1 : -1];
11525 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11526 char d[(bool) 0.5 == true ? 1 : -1];
11527 /* See body of main program for 'e'. */
11528 char f[(_Bool) 0.0 == false ? 1 : -1];
11530 char h[sizeof (_Bool)];
11531 char i[sizeof s.t];
11532 enum { j = false, k = true, l = false * true, m = true * 256 };
11533 /* The following fails for
11534 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11536 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11537 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11538 /* Catch a bug in an HP-UX C compiler. See
11539 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11540 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11552 /* Refer to every declared value, to avoid compiler optimizations. */
11553 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11554 + !m + !n + !o + !p + !q + !pq);
11560 if ac_fn_c_try_compile "$LINENO"; then :
11561 ac_cv_header_stdbool_h=yes
11563 ac_cv_header_stdbool_h=no
11565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11568 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11569 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11570 if test "x$ac_cv_type__Bool" = xyes; then :
11572 cat >>confdefs.h <<_ACEOF
11573 #define HAVE__BOOL 1
11579 if test $ac_cv_header_stdbool_h = yes; then
11581 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11591 $as_echo_n "checking for wchar_t... " >&6; }
11592 if ${gt_cv_c_wchar_t+:} false; then :
11593 $as_echo_n "(cached) " >&6
11595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11596 /* end confdefs.h. */
11597 #include <stddef.h>
11598 wchar_t foo = (wchar_t)'\0';
11607 if ac_fn_c_try_compile "$LINENO"; then :
11608 gt_cv_c_wchar_t=yes
11612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11615 $as_echo "$gt_cv_c_wchar_t" >&6; }
11616 if test $gt_cv_c_wchar_t = yes; then
11618 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
11629 $as_echo_n "checking for long long int... " >&6; }
11630 if ${ac_cv_type_long_long_int+:} false; then :
11631 $as_echo_n "(cached) " >&6
11633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11634 /* end confdefs.h. */
11636 /* For now, do not test the preprocessor; as of 2007 there are too many
11637 implementations with broken preprocessors. Perhaps this can
11638 be revisited in 2012. In the meantime, code should not expect
11639 #if to work with literals wider than 32 bits. */
11640 /* Test literals. */
11641 long long int ll = 9223372036854775807ll;
11642 long long int nll = -9223372036854775807LL;
11643 unsigned long long int ull = 18446744073709551615ULL;
11644 /* Test constant expressions. */
11645 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11647 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11653 /* Test availability of runtime routines for shift and division. */
11654 long long int llmax = 9223372036854775807ll;
11655 unsigned long long int ullmax = 18446744073709551615ull;
11656 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11657 | (llmax / ll) | (llmax % ll)
11658 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11659 | (ullmax / ull) | (ullmax % ull));
11665 if ac_fn_c_try_link "$LINENO"; then :
11666 if test "$cross_compiling" = yes; then :
11667 ac_cv_type_long_long_int=yes
11669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h. */
11671 #include <limits.h>
11674 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
11675 # define LLONG_MAX (HALF - 1 + HALF)
11680 long long int n = 1;
11684 long long int m = n << i;
11687 if (LLONG_MAX / 2 < m)
11695 if ac_fn_c_try_run "$LINENO"; then :
11696 ac_cv_type_long_long_int=yes
11698 ac_cv_type_long_long_int=no
11700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11701 conftest.$ac_objext conftest.beam conftest.$ac_ext
11705 ac_cv_type_long_long_int=no
11707 rm -f core conftest.err conftest.$ac_objext \
11708 conftest$ac_exeext conftest.$ac_ext
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
11711 $as_echo "$ac_cv_type_long_long_int" >&6; }
11712 if test $ac_cv_type_long_long_int = yes; then
11714 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
11720 $as_echo_n "checking for unsigned long long int... " >&6; }
11721 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
11722 $as_echo_n "(cached) " >&6
11724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725 /* end confdefs.h. */
11727 /* For now, do not test the preprocessor; as of 2007 there are too many
11728 implementations with broken preprocessors. Perhaps this can
11729 be revisited in 2012. In the meantime, code should not expect
11730 #if to work with literals wider than 32 bits. */
11731 /* Test literals. */
11732 long long int ll = 9223372036854775807ll;
11733 long long int nll = -9223372036854775807LL;
11734 unsigned long long int ull = 18446744073709551615ULL;
11735 /* Test constant expressions. */
11736 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11738 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11744 /* Test availability of runtime routines for shift and division. */
11745 long long int llmax = 9223372036854775807ll;
11746 unsigned long long int ullmax = 18446744073709551615ull;
11747 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11748 | (llmax / ll) | (llmax % ll)
11749 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11750 | (ullmax / ull) | (ullmax % ull));
11756 if ac_fn_c_try_link "$LINENO"; then :
11757 ac_cv_type_unsigned_long_long_int=yes
11759 ac_cv_type_unsigned_long_long_int=no
11761 rm -f core conftest.err conftest.$ac_objext \
11762 conftest$ac_exeext conftest.$ac_ext
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
11765 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
11766 if test $ac_cv_type_unsigned_long_long_int = yes; then
11768 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
11784 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
11785 if ${gl_cv_prog_as_underscore+:} false; then :
11786 $as_echo_n "(cached) " >&6
11788 cat > conftest.c <<EOF
11790 extern "C" int foo (void);
11792 int foo(void) { return 0; }
11794 # Look for the assembly language name in the .s file.
11795 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
11796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11797 (eval $ac_try) 2>&5
11799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11800 test $ac_status = 0; }; } >/dev/null 2>&1
11801 if grep _foo conftest.s >/dev/null ; then
11802 gl_cv_prog_as_underscore=yes
11804 gl_cv_prog_as_underscore=no
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
11810 $as_echo "$gl_cv_prog_as_underscore" >&6; }
11811 if test $gl_cv_prog_as_underscore = yes; then
11812 USER_LABEL_PREFIX=_
11817 cat >>confdefs.h <<_ACEOF
11818 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
11821 ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
11854 if test $gl_cv_have_include_next = yes; then
11855 gl_cv_next_string_h='<'string.h'>'
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
11858 $as_echo_n "checking absolute name of <string.h>... " >&6; }
11859 if ${gl_cv_next_string_h+:} false; then :
11860 $as_echo_n "(cached) " >&6
11863 if test $ac_cv_header_string_h = yes; then
11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11866 #include <string.h>
11870 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11871 *) gl_absname_cpp="$ac_cpp" ;;
11873 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11874 sed -n '\#/string.h#{
11875 s#.*"\(.*/string.h\)".*#\1#
11881 gl_cv_next_string_h='<'string.h'>'
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
11886 $as_echo "$gl_cv_next_string_h" >&6; }
11888 NEXT_STRING_H=$gl_cv_next_string_h
11890 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11891 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11892 gl_next_as_first_directive='<'string.h'>'
11894 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11895 gl_next_as_first_directive=$gl_cv_next_string_h
11897 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
11903 for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
11904 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11906 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11907 if eval \${$as_gl_Symbol+:} false; then :
11908 $as_echo_n "(cached) " >&6
11910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911 /* end confdefs.h. */
11912 #include <string.h>
11923 if ac_fn_c_try_compile "$LINENO"; then :
11924 eval "$as_gl_Symbol=yes"
11926 eval "$as_gl_Symbol=no"
11928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11930 eval ac_res=\$$as_gl_Symbol
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11932 $as_echo "$ac_res" >&6; }
11933 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
11934 cat >>confdefs.h <<_ACEOF
11935 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11938 eval ac_cv_have_decl_$gl_func=yes
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11944 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11945 if ${ac_cv_header_stat_broken+:} false; then :
11946 $as_echo_n "(cached) " >&6
11948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11949 /* end confdefs.h. */
11950 #include <sys/types.h>
11951 #include <sys/stat.h>
11953 #if defined S_ISBLK && defined S_IFDIR
11954 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11957 #if defined S_ISBLK && defined S_IFCHR
11958 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11961 #if defined S_ISLNK && defined S_IFREG
11962 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11965 #if defined S_ISSOCK && defined S_IFREG
11966 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11970 if ac_fn_c_try_compile "$LINENO"; then :
11971 ac_cv_header_stat_broken=no
11973 ac_cv_header_stat_broken=yes
11975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11978 $as_echo "$ac_cv_header_stat_broken" >&6; }
11979 if test $ac_cv_header_stat_broken = yes; then
11981 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11990 # Check whether --enable-largefile was given.
11991 if test "${enable_largefile+set}" = set; then :
11992 enableval=$enable_largefile;
11995 if test "$enable_largefile" != no; then
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11998 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11999 if ${ac_cv_sys_largefile_CC+:} false; then :
12000 $as_echo_n "(cached) " >&6
12002 ac_cv_sys_largefile_CC=no
12003 if test "$GCC" != yes; then
12006 # IRIX 6.2 and later do not support large files by default,
12007 # so use the C compiler's -n32 option if that helps.
12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12010 #include <sys/types.h>
12011 /* Check that off_t can represent 2**63 - 1 correctly.
12012 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12013 since some C++ compilers masquerading as C compilers
12014 incorrectly reject 9223372036854775807. */
12015 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12016 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12017 && LARGE_OFF_T % 2147483647 == 1)
12027 if ac_fn_c_try_compile "$LINENO"; then :
12030 rm -f core conftest.err conftest.$ac_objext
12032 if ac_fn_c_try_compile "$LINENO"; then :
12033 ac_cv_sys_largefile_CC=' -n32'; break
12035 rm -f core conftest.err conftest.$ac_objext
12039 rm -f conftest.$ac_ext
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12043 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12044 if test "$ac_cv_sys_largefile_CC" != no; then
12045 CC=$CC$ac_cv_sys_largefile_CC
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12049 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12050 if ${ac_cv_sys_file_offset_bits+:} false; then :
12051 $as_echo_n "(cached) " >&6
12054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055 /* end confdefs.h. */
12056 #include <sys/types.h>
12057 /* Check that off_t can represent 2**63 - 1 correctly.
12058 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12059 since some C++ compilers masquerading as C compilers
12060 incorrectly reject 9223372036854775807. */
12061 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12062 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12063 && LARGE_OFF_T % 2147483647 == 1)
12073 if ac_fn_c_try_compile "$LINENO"; then :
12074 ac_cv_sys_file_offset_bits=no; break
12076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h. */
12079 #define _FILE_OFFSET_BITS 64
12080 #include <sys/types.h>
12081 /* Check that off_t can represent 2**63 - 1 correctly.
12082 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12083 since some C++ compilers masquerading as C compilers
12084 incorrectly reject 9223372036854775807. */
12085 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12086 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12087 && LARGE_OFF_T % 2147483647 == 1)
12097 if ac_fn_c_try_compile "$LINENO"; then :
12098 ac_cv_sys_file_offset_bits=64; break
12100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12101 ac_cv_sys_file_offset_bits=unknown
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12106 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12107 case $ac_cv_sys_file_offset_bits in #(
12110 cat >>confdefs.h <<_ACEOF
12111 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12116 if test $ac_cv_sys_file_offset_bits = unknown; then
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12118 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12119 if ${ac_cv_sys_large_files+:} false; then :
12120 $as_echo_n "(cached) " >&6
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12125 #include <sys/types.h>
12126 /* Check that off_t can represent 2**63 - 1 correctly.
12127 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12128 since some C++ compilers masquerading as C compilers
12129 incorrectly reject 9223372036854775807. */
12130 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12131 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12132 && LARGE_OFF_T % 2147483647 == 1)
12142 if ac_fn_c_try_compile "$LINENO"; then :
12143 ac_cv_sys_large_files=no; break
12145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h. */
12148 #define _LARGE_FILES 1
12149 #include <sys/types.h>
12150 /* Check that off_t can represent 2**63 - 1 correctly.
12151 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12152 since some C++ compilers masquerading as C compilers
12153 incorrectly reject 9223372036854775807. */
12154 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12155 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12156 && LARGE_OFF_T % 2147483647 == 1)
12166 if ac_fn_c_try_compile "$LINENO"; then :
12167 ac_cv_sys_large_files=1; break
12169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12170 ac_cv_sys_large_files=unknown
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12175 $as_echo "$ac_cv_sys_large_files" >&6; }
12176 case $ac_cv_sys_large_files in #(
12179 cat >>confdefs.h <<_ACEOF
12180 #define _LARGE_FILES $ac_cv_sys_large_files
12190 GNULIB_NANOSLEEP=0;
12194 HAVE_LOCALTIME_R=1;
12198 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
12199 REPLACE_MKTIME=GNULIB_PORTCHECK;
12200 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
12201 REPLACE_TIMEGM=GNULIB_PORTCHECK;
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
12217 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
12218 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
12219 $as_echo_n "(cached) " >&6
12221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12222 /* end confdefs.h. */
12228 static struct timespec x; x.tv_sec = x.tv_nsec;
12233 if ac_fn_c_try_compile "$LINENO"; then :
12234 gl_cv_sys_struct_timespec_in_time_h=yes
12236 gl_cv_sys_struct_timespec_in_time_h=no
12238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
12241 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
12243 TIME_H_DEFINES_STRUCT_TIMESPEC=0
12244 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
12245 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
12246 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
12247 TIME_H_DEFINES_STRUCT_TIMESPEC=1
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
12250 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
12251 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
12252 $as_echo_n "(cached) " >&6
12254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h. */
12256 #include <sys/time.h>
12261 static struct timespec x; x.tv_sec = x.tv_nsec;
12266 if ac_fn_c_try_compile "$LINENO"; then :
12267 gl_cv_sys_struct_timespec_in_sys_time_h=yes
12269 gl_cv_sys_struct_timespec_in_sys_time_h=no
12271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
12274 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
12275 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
12276 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
12279 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
12280 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
12281 $as_echo_n "(cached) " >&6
12283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12284 /* end confdefs.h. */
12285 #include <pthread.h>
12290 static struct timespec x; x.tv_sec = x.tv_nsec;
12295 if ac_fn_c_try_compile "$LINENO"; then :
12296 gl_cv_sys_struct_timespec_in_pthread_h=yes
12298 gl_cv_sys_struct_timespec_in_pthread_h=no
12300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
12303 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
12304 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
12305 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
12328 if test $gl_cv_have_include_next = yes; then
12329 gl_cv_next_time_h='<'time.h'>'
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
12332 $as_echo_n "checking absolute name of <time.h>... " >&6; }
12333 if ${gl_cv_next_time_h+:} false; then :
12334 $as_echo_n "(cached) " >&6
12337 if test $ac_cv_header_time_h = yes; then
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12344 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12345 *) gl_absname_cpp="$ac_cpp" ;;
12347 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12348 sed -n '\#/time.h#{
12349 s#.*"\(.*/time.h\)".*#\1#
12355 gl_cv_next_time_h='<'time.h'>'
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
12360 $as_echo "$gl_cv_next_time_h" >&6; }
12362 NEXT_TIME_H=$gl_cv_next_time_h
12364 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12365 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12366 gl_next_as_first_directive='<'time.h'>'
12368 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12369 gl_next_as_first_directive=$gl_cv_next_time_h
12371 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
12389 $as_echo_n "checking for wint_t... " >&6; }
12390 if ${gt_cv_c_wint_t+:} false; then :
12391 $as_echo_n "(cached) " >&6
12393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12394 /* end confdefs.h. */
12396 wint_t foo = (wchar_t)'\0';
12405 if ac_fn_c_try_compile "$LINENO"; then :
12410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
12413 $as_echo "$gt_cv_c_wint_t" >&6; }
12414 if test $gt_cv_c_wint_t = yes; then
12416 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12422 $as_echo_n "checking for inttypes.h... " >&6; }
12423 if ${gl_cv_header_inttypes_h+:} false; then :
12424 $as_echo_n "(cached) " >&6
12426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12427 /* end confdefs.h. */
12428 #include <sys/types.h>
12429 #include <inttypes.h>
12433 uintmax_t i = (uintmax_t) -1;
12438 if ac_fn_c_try_compile "$LINENO"; then :
12439 gl_cv_header_inttypes_h=yes
12441 gl_cv_header_inttypes_h=no
12443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
12446 $as_echo "$gl_cv_header_inttypes_h" >&6; }
12447 if test $gl_cv_header_inttypes_h = yes; then
12449 cat >>confdefs.h <<_ACEOF
12450 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
12457 $as_echo_n "checking for stdint.h... " >&6; }
12458 if ${gl_cv_header_stdint_h+:} false; then :
12459 $as_echo_n "(cached) " >&6
12461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462 /* end confdefs.h. */
12463 #include <sys/types.h>
12464 #include <stdint.h>
12468 uintmax_t i = (uintmax_t) -1;
12473 if ac_fn_c_try_compile "$LINENO"; then :
12474 gl_cv_header_stdint_h=yes
12476 gl_cv_header_stdint_h=no
12478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
12481 $as_echo "$gl_cv_header_stdint_h" >&6; }
12482 if test $gl_cv_header_stdint_h = yes; then
12484 cat >>confdefs.h <<_ACEOF
12485 #define HAVE_STDINT_H_WITH_UINTMAX 1
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
12494 $as_echo_n "checking for intmax_t... " >&6; }
12495 if ${gt_cv_c_intmax_t+:} false; then :
12496 $as_echo_n "(cached) " >&6
12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h. */
12501 #include <stddef.h>
12502 #include <stdlib.h>
12503 #if HAVE_STDINT_H_WITH_UINTMAX
12504 #include <stdint.h>
12506 #if HAVE_INTTYPES_H_WITH_UINTMAX
12507 #include <inttypes.h>
12513 intmax_t x = -1; return !x;
12518 if ac_fn_c_try_compile "$LINENO"; then :
12519 gt_cv_c_intmax_t=yes
12521 gt_cv_c_intmax_t=no
12523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
12526 $as_echo "$gt_cv_c_intmax_t" >&6; }
12527 if test $gt_cv_c_intmax_t = yes; then
12529 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
12533 test $ac_cv_type_long_long_int = yes \
12534 && ac_type='long long' \
12537 cat >>confdefs.h <<_ACEOF
12538 #define intmax_t $ac_type
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
12546 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
12547 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
12548 $as_echo_n "(cached) " >&6
12551 if test "$cross_compiling" = yes; then :
12554 # Guess yes on glibc systems.
12555 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12556 # Guess yes on FreeBSD >= 5.
12557 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
12558 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12559 # Guess yes on MacOS X >= 10.3.
12560 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
12561 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12562 # Guess yes on OpenBSD >= 3.9.
12563 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
12564 gl_cv_func_snprintf_retval_c99="guessing no";;
12565 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12566 # Guess yes on Solaris >= 2.6.
12567 solaris2.[0-5]*) gl_cv_func_snprintf_retval_c99="guessing no";;
12568 solaris*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12569 # Guess yes on AIX >= 4.
12570 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
12571 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12572 # Guess yes on NetBSD >= 3.
12573 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
12574 gl_cv_func_snprintf_retval_c99="guessing no";;
12575 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12576 # Guess yes on BeOS.
12577 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12578 # If we don't know, assume the worst.
12579 *) gl_cv_func_snprintf_retval_c99="guessing no";;
12583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12584 /* end confdefs.h. */
12587 #include <string.h>
12588 static char buf[100];
12591 strcpy (buf, "ABCDEF");
12592 if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
12597 if ac_fn_c_try_run "$LINENO"; then :
12598 gl_cv_func_snprintf_retval_c99=yes
12600 gl_cv_func_snprintf_retval_c99=no
12602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12603 conftest.$ac_objext conftest.beam conftest.$ac_ext
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
12609 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
12617 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
12619 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12620 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12621 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12622 cat >>confdefs.h <<_ACEOF
12623 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12629 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
12631 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
12637 cat >>confdefs.h <<_ACEOF
12638 #define HAVE_DECL__SNPRINTF $ac_have_decl
12642 case "$gl_cv_func_snprintf_retval_c99" in
12645 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
12666 ac_fn_c_check_decl "$LINENO" "iswblank" "ac_cv_have_decl_iswblank" "$ac_includes_default"
12667 if test "x$ac_cv_have_decl_iswblank" = xyes; then :
12673 cat >>confdefs.h <<_ACEOF
12674 #define HAVE_DECL_ISWBLANK $ac_have_decl
12685 GL_COND_LIBTOOL_TRUE=
12686 GL_COND_LIBTOOL_FALSE='#'
12688 GL_COND_LIBTOOL_TRUE='#'
12689 GL_COND_LIBTOOL_FALSE=
12692 gl_cond_libtool=true
12693 gl_m4_base='config/gnulib'
12703 gl_source_base='gnulib'
12704 # Code from module alignof:
12705 # Code from module alloca-opt:
12711 if test $ac_cv_func_alloca_works = no; then
12715 # Define an additional variable used in the Makefile substitution.
12716 if test $ac_cv_working_alloca_h = yes; then
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12718 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12719 if ${gl_cv_rpl_alloca+:} false; then :
12720 $as_echo_n "(cached) " >&6
12723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724 /* end confdefs.h. */
12726 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12732 $EGREP "Need own alloca" >/dev/null 2>&1; then :
12733 gl_cv_rpl_alloca=yes
12735 gl_cv_rpl_alloca=no
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12742 $as_echo "$gl_cv_rpl_alloca" >&6; }
12743 if test $gl_cv_rpl_alloca = yes; then
12745 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12756 # Code from module arg-nonnull:
12757 # Code from module arpa_inet:
12768 if test $ac_cv_header_arpa_inet_h = yes; then
12786 if test $gl_cv_have_include_next = yes; then
12787 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
12790 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
12791 if ${gl_cv_next_arpa_inet_h+:} false; then :
12792 $as_echo_n "(cached) " >&6
12795 if test $ac_cv_header_arpa_inet_h = yes; then
12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797 /* end confdefs.h. */
12798 #include <arpa/inet.h>
12802 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12803 *) gl_absname_cpp="$ac_cpp" ;;
12805 gl_cv_next_arpa_inet_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12806 sed -n '\#/arpa/inet.h#{
12807 s#.*"\(.*/arpa/inet.h\)".*#\1#
12813 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
12818 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
12820 NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
12822 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12823 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12824 gl_next_as_first_directive='<'arpa/inet.h'>'
12826 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12827 gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
12829 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
12835 for gl_func in inet_ntop inet_pton; do
12836 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12838 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12839 if eval \${$as_gl_Symbol+:} false; then :
12840 $as_echo_n "(cached) " >&6
12842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12843 /* end confdefs.h. */
12845 /* On some systems, this header is not self-consistent. */
12847 # include <sys/socket.h>
12849 #include <arpa/inet.h>
12860 if ac_fn_c_try_compile "$LINENO"; then :
12861 eval "$as_gl_Symbol=yes"
12863 eval "$as_gl_Symbol=no"
12865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12867 eval ac_res=\$$as_gl_Symbol
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12869 $as_echo "$ac_res" >&6; }
12870 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
12871 cat >>confdefs.h <<_ACEOF
12872 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12875 eval ac_cv_have_decl_$gl_func=yes
12881 # Code from module base64:
12888 # Code from module btowc:
12901 if test $ac_cv_func_btowc = no; then
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
12909 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
12910 if ${gl_cv_func_btowc_nul+:} false; then :
12911 $as_echo_n "(cached) " >&6
12914 if test "$cross_compiling" = yes; then :
12917 # Guess no on Cygwin.
12918 cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
12919 # Guess yes otherwise.
12920 *) gl_cv_func_btowc_nul="guessing yes" ;;
12924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12925 /* end confdefs.h. */
12928 #include <string.h>
12932 if (btowc ('\0') != 0)
12937 if ac_fn_c_try_run "$LINENO"; then :
12938 gl_cv_func_btowc_nul=yes
12940 gl_cv_func_btowc_nul=no
12942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12943 conftest.$ac_objext conftest.beam conftest.$ac_ext
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
12949 $as_echo "$gl_cv_func_btowc_nul" >&6; }
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
12952 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
12953 if ${gl_cv_func_btowc_eof+:} false; then :
12954 $as_echo_n "(cached) " >&6
12958 # Guess no on IRIX.
12959 irix*) gl_cv_func_btowc_eof="guessing no" ;;
12960 # Guess yes otherwise.
12961 *) gl_cv_func_btowc_eof="guessing yes" ;;
12963 if test $LOCALE_FR != none; then
12964 if test "$cross_compiling" = yes; then :
12967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968 /* end confdefs.h. */
12970 #include <locale.h>
12972 #include <string.h>
12976 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
12978 if (btowc (EOF) != WEOF)
12984 if ac_fn_c_try_run "$LINENO"; then :
12985 gl_cv_func_btowc_eof=yes
12987 gl_cv_func_btowc_eof=no
12989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12990 conftest.$ac_objext conftest.beam conftest.$ac_ext
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
12997 $as_echo "$gl_cv_func_btowc_eof" >&6; }
12999 case "$gl_cv_func_btowc_nul" in
13001 *) REPLACE_BTOWC=1 ;;
13003 case "$gl_cv_func_btowc_eof" in
13005 *) REPLACE_BTOWC=1 ;;
13008 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
13020 gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
13034 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
13038 # Code from module c++defs:
13039 # Code from module c-ctype:
13040 # Code from module configmake:
13041 # Code from module environ:
13050 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
13054 # Code from module errno:
13056 # Code from module extensions:
13057 # Code from module float:
13077 if test $gl_cv_have_include_next = yes; then
13078 gl_cv_next_float_h='<'float.h'>'
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
13081 $as_echo_n "checking absolute name of <float.h>... " >&6; }
13082 if ${gl_cv_next_float_h+:} false; then :
13083 $as_echo_n "(cached) " >&6
13086 if test $ac_cv_header_float_h = yes; then
13087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13093 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13094 *) gl_absname_cpp="$ac_cpp" ;;
13096 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13097 sed -n '\#/float.h#{
13098 s#.*"\(.*/float.h\)".*#\1#
13104 gl_cv_next_float_h='<'float.h'>'
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
13109 $as_echo "$gl_cv_next_float_h" >&6; }
13111 NEXT_FLOAT_H=$gl_cv_next_float_h
13113 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13114 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13115 gl_next_as_first_directive='<'float.h'>'
13117 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13118 gl_next_as_first_directive=$gl_cv_next_float_h
13120 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
13128 # Code from module fseeko:
13134 if test $gl_cv_func_fseeko = no; then
13139 if test $gl_cv_func_fseeko = yes; then
13150 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
13155 if test $gl_cv_var_stdin_large_offset = no; then
13159 if test $gl_cv_func_fseeko = yes; then
13170 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
13184 $as_echo "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h
13188 # Code from module fsusage:
13207 for ac_header in sys/mount.h
13209 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default
13210 #if HAVE_SYS_PARAM_H
13211 #include <sys/param.h>
13214 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
13215 cat >>confdefs.h <<_ACEOF
13216 #define HAVE_SYS_MOUNT_H 1
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get file system space usage" >&5
13226 $as_echo "$as_me: checking how to get file system space usage" >&6;}
13227 ac_fsusage_space=no
13229 # Perform only the link test since it seems there are no variants of the
13230 # statvfs function. This check is more than just AC_CHECK_FUNCS([statvfs])
13231 # because that got a false positive on SCO OSR5. Adding the declaration
13232 # of a `struct statvfs' causes this test to fail (as it should) on such
13233 # systems. That system is reported to work fine with STAT_STATFS4 which
13234 # is what it gets when this test fails.
13235 if test $ac_fsusage_space = no; then
13236 # glibc/{Hurd,kFreeBSD}, MacOS X >= 10.4, FreeBSD >= 5.0, NetBSD >= 3.0,
13237 # OpenBSD >= 4.4, AIX, HP-UX, IRIX, Solaris, Cygwin, Interix, BeOS.
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statvfs function (SVR4)" >&5
13239 $as_echo_n "checking for statvfs function (SVR4)... " >&6; }
13240 if ${fu_cv_sys_stat_statvfs+:} false; then :
13241 $as_echo_n "(cached) " >&6
13243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h. */
13245 #include <sys/types.h>
13246 #if defined __GLIBC__ && defined __linux__
13247 Do not use statvfs on systems with GNU libc on Linux, because that function
13248 stats all preceding entries in /proc/mounts, and that makes df hang if even
13249 one of the corresponding file systems is hard-mounted, but not available.
13250 statvfs in GNU libc on Hurd, BeOS, Haiku operates differently: it only makes
13255 "Do not use Tru64's statvfs implementation"
13258 #include <sys/statvfs.h>
13262 struct statvfs fsd; statvfs (0, &fsd);
13267 if ac_fn_c_try_link "$LINENO"; then :
13268 fu_cv_sys_stat_statvfs=yes
13270 fu_cv_sys_stat_statvfs=no
13272 rm -f core conftest.err conftest.$ac_objext \
13273 conftest$ac_exeext conftest.$ac_ext
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs" >&5
13276 $as_echo "$fu_cv_sys_stat_statvfs" >&6; }
13277 if test $fu_cv_sys_stat_statvfs = yes; then
13278 ac_fsusage_space=yes
13280 $as_echo "#define STAT_STATVFS 1" >>confdefs.h
13285 if test $ac_fsusage_space = no; then
13286 # DEC Alpha running OSF/1
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3-argument statfs function (DEC OSF/1)" >&5
13288 $as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
13289 if ${fu_cv_sys_stat_statfs3_osf1+:} false; then :
13290 $as_echo_n "(cached) " >&6
13292 if test "$cross_compiling" = yes; then :
13293 fu_cv_sys_stat_statfs3_osf1=no
13295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13296 /* end confdefs.h. */
13298 #include <sys/param.h>
13299 #include <sys/types.h>
13300 #include <sys/mount.h>
13306 return statfs (".", &fsd, sizeof (struct statfs)) != 0;
13309 if ac_fn_c_try_run "$LINENO"; then :
13310 fu_cv_sys_stat_statfs3_osf1=yes
13312 fu_cv_sys_stat_statfs3_osf1=no
13314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13315 conftest.$ac_objext conftest.beam conftest.$ac_ext
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs3_osf1" >&5
13321 $as_echo "$fu_cv_sys_stat_statfs3_osf1" >&6; }
13322 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
13323 ac_fsusage_space=yes
13325 $as_echo "#define STAT_STATFS3_OSF1 1" >>confdefs.h
13330 if test $ac_fsusage_space = no; then
13331 # glibc/Linux, MacOS X < 10.4, FreeBSD < 5.0, NetBSD < 3.0, OpenBSD < 4.4.
13332 # (glibc/{Hurd,kFreeBSD}, MacOS X >= 10.4, FreeBSD >= 5.0, NetBSD >= 3.0,
13333 # OpenBSD >= 4.4, AIX, HP-UX, OSF/1, Cygwin already handled above.)
13334 # (On IRIX you need to include <sys/statfs.h>, not only <sys/mount.h> and
13336 # (On Solaris, statfs has 4 arguments.)
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)" >&5
13338 $as_echo_n "checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)... " >&6; }
13339 if ${fu_cv_sys_stat_statfs2_bsize+:} false; then :
13340 $as_echo_n "(cached) " >&6
13342 if test "$cross_compiling" = yes; then :
13343 fu_cv_sys_stat_statfs2_bsize=no
13345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13346 /* end confdefs.h. */
13348 #ifdef HAVE_SYS_PARAM_H
13349 #include <sys/param.h>
13351 #ifdef HAVE_SYS_MOUNT_H
13352 #include <sys/mount.h>
13354 #ifdef HAVE_SYS_VFS_H
13355 #include <sys/vfs.h>
13362 return statfs (".", &fsd) != 0;
13365 if ac_fn_c_try_run "$LINENO"; then :
13366 fu_cv_sys_stat_statfs2_bsize=yes
13368 fu_cv_sys_stat_statfs2_bsize=no
13370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13371 conftest.$ac_objext conftest.beam conftest.$ac_ext
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_bsize" >&5
13377 $as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
13378 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
13379 ac_fsusage_space=yes
13381 $as_echo "#define STAT_STATFS2_BSIZE 1" >>confdefs.h
13386 if test $ac_fsusage_space = no; then
13388 # (Solaris already handled above.)
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13390 $as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
13391 if ${fu_cv_sys_stat_statfs4+:} false; then :
13392 $as_echo_n "(cached) " >&6
13394 if test "$cross_compiling" = yes; then :
13395 fu_cv_sys_stat_statfs4=no
13397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398 /* end confdefs.h. */
13400 #include <sys/types.h>
13401 #include <sys/statfs.h>
13406 return statfs (".", &fsd, sizeof fsd, 0) != 0;
13409 if ac_fn_c_try_run "$LINENO"; then :
13410 fu_cv_sys_stat_statfs4=yes
13412 fu_cv_sys_stat_statfs4=no
13414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13415 conftest.$ac_objext conftest.beam conftest.$ac_ext
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs4" >&5
13421 $as_echo "$fu_cv_sys_stat_statfs4" >&6; }
13422 if test $fu_cv_sys_stat_statfs4 = yes; then
13423 ac_fsusage_space=yes
13425 $as_echo "#define STAT_STATFS4 1" >>confdefs.h
13430 if test $ac_fsusage_space = no; then
13431 # 4.4BSD and older NetBSD
13432 # (OSF/1 already handled above.)
13433 # (On AIX, you need to include <sys/statfs.h>, not only <sys/mount.h>.)
13434 # (On Solaris, statfs has 4 arguments and 'struct statfs' is not declared in
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)" >&5
13437 $as_echo_n "checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)... " >&6; }
13438 if ${fu_cv_sys_stat_statfs2_fsize+:} false; then :
13439 $as_echo_n "(cached) " >&6
13441 if test "$cross_compiling" = yes; then :
13442 fu_cv_sys_stat_statfs2_fsize=no
13444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13445 /* end confdefs.h. */
13447 #include <sys/types.h>
13448 #ifdef HAVE_SYS_PARAM_H
13449 #include <sys/param.h>
13451 #ifdef HAVE_SYS_MOUNT_H
13452 #include <sys/mount.h>
13459 return statfs (".", &fsd) != 0;
13462 if ac_fn_c_try_run "$LINENO"; then :
13463 fu_cv_sys_stat_statfs2_fsize=yes
13465 fu_cv_sys_stat_statfs2_fsize=no
13467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13468 conftest.$ac_objext conftest.beam conftest.$ac_ext
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_fsize" >&5
13474 $as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
13475 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13476 ac_fsusage_space=yes
13478 $as_echo "#define STAT_STATFS2_FSIZE 1" >>confdefs.h
13483 if test $ac_fsusage_space = no; then
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13486 $as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
13487 if ${fu_cv_sys_stat_fs_data+:} false; then :
13488 $as_echo_n "(cached) " >&6
13490 if test "$cross_compiling" = yes; then :
13491 fu_cv_sys_stat_fs_data=no
13493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h. */
13496 #include <sys/types.h>
13497 #ifdef HAVE_SYS_PARAM_H
13498 #include <sys/param.h>
13500 #ifdef HAVE_SYS_MOUNT_H
13501 #include <sys/mount.h>
13503 #ifdef HAVE_SYS_FS_TYPES_H
13504 #include <sys/fs_types.h>
13509 struct fs_data fsd;
13510 /* Ultrix's statfs returns 1 for success,
13511 0 for not mounted, -1 for failure. */
13512 return statfs (".", &fsd) != 1;
13515 if ac_fn_c_try_run "$LINENO"; then :
13516 fu_cv_sys_stat_fs_data=yes
13518 fu_cv_sys_stat_fs_data=no
13520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13521 conftest.$ac_objext conftest.beam conftest.$ac_ext
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_fs_data" >&5
13527 $as_echo "$fu_cv_sys_stat_fs_data" >&6; }
13528 if test $fu_cv_sys_stat_fs_data = yes; then
13529 ac_fsusage_space=yes
13531 $as_echo "#define STAT_STATFS2_FS_DATA 1" >>confdefs.h
13536 if test $ac_fsusage_space = no; then
13538 # (AIX, HP-UX, OSF/1 already handled above.)
13539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540 /* end confdefs.h. */
13541 #include <sys/filsys.h>
13544 if ac_fn_c_try_cpp "$LINENO"; then :
13546 $as_echo "#define STAT_READ_FILSYS 1" >>confdefs.h
13548 ac_fsusage_space=yes
13550 rm -f conftest.err conftest.i conftest.$ac_ext
13553 if test $ac_fsusage_space = yes; then :
13560 if test $gl_cv_fs_space = yes; then
13569 gl_LIBOBJS="$gl_LIBOBJS fsusage.$ac_objext"
13572 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h
13574 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13575 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13576 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13577 cat >>confdefs.h <<_ACEOF
13578 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statfs that truncates block counts" >&5
13587 $as_echo_n "checking for statfs that truncates block counts... " >&6; }
13588 if ${fu_cv_sys_truncating_statfs+:} false; then :
13589 $as_echo_n "(cached) " >&6
13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h. */
13594 #if !defined(sun) && !defined(__sun)
13595 choke -- this is a workaround for a Sun-specific problem
13597 #include <sys/types.h>
13598 #include <sys/vfs.h>
13602 struct statfs t; long c = *(t.f_spare);
13608 if ac_fn_c_try_compile "$LINENO"; then :
13609 fu_cv_sys_truncating_statfs=yes
13611 fu_cv_sys_truncating_statfs=no
13613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13616 if test $fu_cv_sys_truncating_statfs = yes; then
13618 $as_echo "#define STATFS_TRUNCATES_BLOCK_COUNTS 1" >>confdefs.h
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_truncating_statfs" >&5
13622 $as_echo "$fu_cv_sys_truncating_statfs" >&6; }
13627 # Code from module ftello:
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
13636 $as_echo_n "checking for ftello... " >&6; }
13637 if ${gl_cv_func_ftello+:} false; then :
13638 $as_echo_n "(cached) " >&6
13641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13642 /* end confdefs.h. */
13652 if ac_fn_c_try_link "$LINENO"; then :
13653 gl_cv_func_ftello=yes
13655 gl_cv_func_ftello=no
13657 rm -f core conftest.err conftest.$ac_objext \
13658 conftest$ac_exeext conftest.$ac_ext
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
13662 $as_echo "$gl_cv_func_ftello" >&6; }
13663 if test $gl_cv_func_ftello = no; then
13666 if test $gl_cv_var_stdin_large_offset = no; then
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
13671 $as_echo_n "checking whether ftello works... " >&6; }
13672 if ${gl_cv_func_ftello_works+:} false; then :
13673 $as_echo_n "(cached) " >&6
13677 # Guess no on Solaris.
13678 solaris*) gl_cv_func_ftello_works="guessing no" ;;
13679 # Guess yes otherwise.
13680 *) gl_cv_func_ftello_works="guessing yes" ;;
13682 if test "$cross_compiling" = yes; then :
13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13689 #include <stdlib.h>
13690 #include <string.h>
13691 #define TESTFILE "conftest.tmp"
13697 /* Create a file with some contents. */
13698 fp = fopen (TESTFILE, "w");
13701 if (fwrite ("foogarsh", 1, 8, fp) < 8)
13706 /* The file's contents is now "foogarsh". */
13708 /* Try writing after reading to EOF. */
13709 fp = fopen (TESTFILE, "r+");
13712 if (fseek (fp, -1, SEEK_END))
13714 if (!(getc (fp) == 'h'))
13716 if (!(getc (fp) == EOF))
13718 if (!(ftell (fp) == 8))
13720 if (!(ftell (fp) == 8))
13722 if (!(putc ('!', fp) == '!'))
13724 if (!(ftell (fp) == 9))
13726 if (!(fclose (fp) == 0))
13728 fp = fopen (TESTFILE, "r");
13733 if (!(fread (buf, 1, 10, fp) == 9))
13735 if (!(memcmp (buf, "foogarsh!", 9) == 0))
13738 if (!(fclose (fp) == 0))
13741 /* The file's contents is now "foogarsh!". */
13746 if ac_fn_c_try_run "$LINENO"; then :
13747 gl_cv_func_ftello_works=yes
13749 gl_cv_func_ftello_works=no
13751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13752 conftest.$ac_objext conftest.beam conftest.$ac_ext
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
13758 $as_echo "$gl_cv_func_ftello_works" >&6; }
13759 case "$gl_cv_func_ftello_works" in
13764 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
13770 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
13780 gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
13792 $as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
13796 # Code from module ftruncate:
13807 if test $ac_cv_func_ftruncate = no; then
13817 gl_LIBOBJS="$gl_LIBOBJS ftruncate.$ac_objext"
13820 for ac_func in chsize
13822 ac_fn_c_check_func "$LINENO" "chsize" "ac_cv_func_chsize"
13823 if test "x$ac_cv_func_chsize" = xyes; then :
13824 cat >>confdefs.h <<_ACEOF
13825 #define HAVE_CHSIZE 1
13834 # Yes, we know mingw lacks ftruncate.
13837 # If someone lacks ftruncate, make configure fail, and request
13838 # a bug report to inform us about it.
13839 if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
13840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13842 as_fn_error $? "Your system lacks the ftruncate function.
13843 Please report this, along with the output of \"uname -a\", to the
13844 bug-coreutils@gnu.org mailing list. To continue past this point,
13845 rerun configure with SKIP_FTRUNCATE_CHECK=yes.
13846 E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
13847 See \`config.log' for more details" "$LINENO" 5; }
13859 $as_echo "#define GNULIB_TEST_FTRUNCATE 1" >>confdefs.h
13863 # Code from module full-read:
13864 # Code from module full-write:
13865 # Code from module getaddrinfo:
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
13868 $as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
13870 gai_saved_LIBS="$LIBS"
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13873 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
13874 if ${ac_cv_search_getaddrinfo+:} false; then :
13875 $as_echo_n "(cached) " >&6
13877 ac_func_search_save_LIBS=$LIBS
13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h. */
13881 /* Override any GCC internal prototype to avoid an error.
13882 Use char because int might match the return type of a GCC
13883 builtin and then its argument prototype would still apply. */
13887 char getaddrinfo ();
13891 return getaddrinfo ();
13896 for ac_lib in '' socket network net; do
13897 if test -z "$ac_lib"; then
13898 ac_res="none required"
13901 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13903 if ac_fn_c_try_link "$LINENO"; then :
13904 ac_cv_search_getaddrinfo=$ac_res
13906 rm -f core conftest.err conftest.$ac_objext \
13908 if ${ac_cv_search_getaddrinfo+:} false; then :
13912 if ${ac_cv_search_getaddrinfo+:} false; then :
13915 ac_cv_search_getaddrinfo=no
13917 rm conftest.$ac_ext
13918 LIBS=$ac_func_search_save_LIBS
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13921 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
13922 ac_res=$ac_cv_search_getaddrinfo
13923 if test "$ac_res" != no; then :
13924 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13925 if test "$ac_cv_search_getaddrinfo" != "none required"; then
13926 GETADDRINFO_LIB="$ac_cv_search_getaddrinfo"
13930 LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13933 $as_echo_n "checking for getaddrinfo... " >&6; }
13934 if ${gl_cv_func_getaddrinfo+:} false; then :
13935 $as_echo_n "(cached) " >&6
13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h. */
13941 #include <sys/types.h>
13942 #ifdef HAVE_SYS_SOCKET_H
13943 #include <sys/socket.h>
13945 #ifdef HAVE_NETDB_H
13948 #include <stddef.h>
13953 getaddrinfo("", "", NULL, NULL);
13958 if ac_fn_c_try_link "$LINENO"; then :
13959 gl_cv_func_getaddrinfo=yes
13961 gl_cv_func_getaddrinfo=no
13963 rm -f core conftest.err conftest.$ac_objext \
13964 conftest$ac_exeext conftest.$ac_ext
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getaddrinfo" >&5
13967 $as_echo "$gl_cv_func_getaddrinfo" >&6; }
13968 if test $gl_cv_func_getaddrinfo = no; then
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
13970 $as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
13971 if ${gl_cv_w32_getaddrinfo+:} false; then :
13972 $as_echo_n "(cached) " >&6
13975 gl_cv_w32_getaddrinfo=no
13976 am_save_LIBS="$LIBS"
13977 LIBS="$LIBS -lws2_32"
13978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13979 /* end confdefs.h. */
13981 #ifdef HAVE_WS2TCPIP_H
13982 #include <ws2tcpip.h>
13984 #include <stddef.h>
13989 getaddrinfo(NULL, NULL, NULL, NULL);
13994 if ac_fn_c_try_link "$LINENO"; then :
13995 gl_cv_w32_getaddrinfo=yes
13997 rm -f core conftest.err conftest.$ac_objext \
13998 conftest$ac_exeext conftest.$ac_ext
13999 LIBS="$am_save_LIBS"
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getaddrinfo" >&5
14003 $as_echo "$gl_cv_w32_getaddrinfo" >&6; }
14004 if test "$gl_cv_w32_getaddrinfo" = "yes"; then
14005 GETADDRINFO_LIB="-lws2_32"
14006 LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
14016 gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
14021 # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
14022 # inline function declared in ws2tcpip.h, so we need to get that
14023 # header included somehow.
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror (possibly via ws2tcpip.h)" >&5
14025 $as_echo_n "checking for gai_strerror (possibly via ws2tcpip.h)... " >&6; }
14026 if ${gl_cv_func_gai_strerror+:} false; then :
14027 $as_echo_n "(cached) " >&6
14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h. */
14033 #include <sys/types.h>
14034 #ifdef HAVE_SYS_SOCKET_H
14035 #include <sys/socket.h>
14037 #ifdef HAVE_NETDB_H
14040 #ifdef HAVE_WS2TCPIP_H
14041 #include <ws2tcpip.h>
14043 #include <stddef.h>
14048 gai_strerror (NULL);
14053 if ac_fn_c_try_link "$LINENO"; then :
14054 gl_cv_func_gai_strerror=yes
14056 gl_cv_func_gai_strerror=no
14058 rm -f core conftest.err conftest.$ac_objext \
14059 conftest$ac_exeext conftest.$ac_ext
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gai_strerror" >&5
14062 $as_echo "$gl_cv_func_gai_strerror" >&6; }
14063 if test $gl_cv_func_gai_strerror = no; then
14072 gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext"
14076 LIBS="$gai_saved_LIBS"
14086 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
14088 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14090 cat >>confdefs.h <<_ACEOF
14091 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14106 ac_fn_c_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_getaddrinfo" "
14107 /* sys/types.h is not needed according to POSIX, but the
14108 sys/socket.h in i386-unknown-freebsd4.10 and
14109 powerpc-apple-darwin5.5 required it. */
14110 #include <sys/types.h>
14111 #ifdef HAVE_SYS_SOCKET_H
14112 #include <sys/socket.h>
14114 #ifdef HAVE_NETDB_H
14117 #ifdef HAVE_WS2TCPIP_H
14118 #include <ws2tcpip.h>
14122 if test "x$ac_cv_have_decl_getaddrinfo" = xyes; then :
14128 cat >>confdefs.h <<_ACEOF
14129 #define HAVE_DECL_GETADDRINFO $ac_have_decl
14131 ac_fn_c_check_decl "$LINENO" "freeaddrinfo" "ac_cv_have_decl_freeaddrinfo" "
14132 /* sys/types.h is not needed according to POSIX, but the
14133 sys/socket.h in i386-unknown-freebsd4.10 and
14134 powerpc-apple-darwin5.5 required it. */
14135 #include <sys/types.h>
14136 #ifdef HAVE_SYS_SOCKET_H
14137 #include <sys/socket.h>
14139 #ifdef HAVE_NETDB_H
14142 #ifdef HAVE_WS2TCPIP_H
14143 #include <ws2tcpip.h>
14147 if test "x$ac_cv_have_decl_freeaddrinfo" = xyes; then :
14153 cat >>confdefs.h <<_ACEOF
14154 #define HAVE_DECL_FREEADDRINFO $ac_have_decl
14156 ac_fn_c_check_decl "$LINENO" "gai_strerror" "ac_cv_have_decl_gai_strerror" "
14157 /* sys/types.h is not needed according to POSIX, but the
14158 sys/socket.h in i386-unknown-freebsd4.10 and
14159 powerpc-apple-darwin5.5 required it. */
14160 #include <sys/types.h>
14161 #ifdef HAVE_SYS_SOCKET_H
14162 #include <sys/socket.h>
14164 #ifdef HAVE_NETDB_H
14167 #ifdef HAVE_WS2TCPIP_H
14168 #include <ws2tcpip.h>
14172 if test "x$ac_cv_have_decl_gai_strerror" = xyes; then :
14178 cat >>confdefs.h <<_ACEOF
14179 #define HAVE_DECL_GAI_STRERROR $ac_have_decl
14181 ac_fn_c_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_getnameinfo" "
14182 /* sys/types.h is not needed according to POSIX, but the
14183 sys/socket.h in i386-unknown-freebsd4.10 and
14184 powerpc-apple-darwin5.5 required it. */
14185 #include <sys/types.h>
14186 #ifdef HAVE_SYS_SOCKET_H
14187 #include <sys/socket.h>
14189 #ifdef HAVE_NETDB_H
14192 #ifdef HAVE_WS2TCPIP_H
14193 #include <ws2tcpip.h>
14197 if test "x$ac_cv_have_decl_getnameinfo" = xyes; then :
14203 cat >>confdefs.h <<_ACEOF
14204 #define HAVE_DECL_GETNAMEINFO $ac_have_decl
14207 if test $ac_cv_have_decl_getaddrinfo = no; then
14208 HAVE_DECL_GETADDRINFO=0
14210 if test $ac_cv_have_decl_freeaddrinfo = no; then
14211 HAVE_DECL_FREEADDRINFO=0
14213 if test $ac_cv_have_decl_gai_strerror = no; then
14214 HAVE_DECL_GAI_STRERROR=0
14216 if test $ac_cv_have_decl_getnameinfo = no; then
14217 HAVE_DECL_GETNAMEINFO=0
14220 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
14221 #include <sys/types.h>
14222 #ifdef HAVE_SYS_SOCKET_H
14223 #include <sys/socket.h>
14225 #ifdef HAVE_NETDB_H
14228 #ifdef HAVE_WS2TCPIP_H
14229 #include <ws2tcpip.h>
14233 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
14235 cat >>confdefs.h <<_ACEOF
14236 #define HAVE_STRUCT_ADDRINFO 1
14242 if test $ac_cv_type_struct_addrinfo = no; then
14243 HAVE_STRUCT_ADDRINFO=0
14246 case " $GETADDRINFO_LIB " in
14247 *" $HOSTENT_LIB "*) ;;
14248 *) GETADDRINFO_LIB="$GETADDRINFO_LIB $HOSTENT_LIB" ;;
14251 case " $GETADDRINFO_LIB " in
14252 *" $SERVENT_LIB "*) ;;
14253 *) GETADDRINFO_LIB="$GETADDRINFO_LIB $SERVENT_LIB" ;;
14256 case " $GETADDRINFO_LIB " in
14257 *" $INET_NTOP_LIB "*) ;;
14258 *) GETADDRINFO_LIB="$GETADDRINFO_LIB $INET_NTOP_LIB" ;;
14267 GNULIB_GETADDRINFO=1
14270 # Code from module getopt-gnu:
14278 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
14281 # Code from module getopt-posix:
14287 if test -n "$gl_replace_getopt"; then :
14293 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14297 GNULIB_UNISTD_H_GETOPT=1
14306 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14316 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14332 # Code from module gettext-h:
14335 # Code from module gettimeofday:
14348 gl_gettimeofday_timezone=void
14349 if test $ac_cv_func_gettimeofday != yes; then
14350 HAVE_GETTIMEOFDAY=0
14359 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14362 for ac_header in sys/timeb.h
14364 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14365 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
14366 cat >>confdefs.h <<_ACEOF
14367 #define HAVE_SYS_TIMEB_H 1
14374 for ac_func in _ftime
14376 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
14377 if test "x$ac_cv_func__ftime" = xyes; then :
14378 cat >>confdefs.h <<_ACEOF
14379 #define HAVE__FTIME 1
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
14391 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
14392 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
14393 $as_echo_n "(cached) " >&6
14395 if test "$cross_compiling" = yes; then :
14396 gl_cv_func_gettimeofday_clobber=yes
14398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14399 /* end confdefs.h. */
14400 #include <string.h>
14401 #include <sys/time.h>
14403 #include <stdlib.h>
14411 struct tm saved_lt;
14413 lt = localtime (&t);
14415 gettimeofday (&tv, NULL);
14416 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
14422 if ac_fn_c_try_run "$LINENO"; then :
14423 gl_cv_func_gettimeofday_clobber=no
14425 gl_cv_func_gettimeofday_clobber=yes
14427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14428 conftest.$ac_objext conftest.beam conftest.$ac_ext
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
14433 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
14435 if test $gl_cv_func_gettimeofday_clobber = yes; then
14436 REPLACE_GETTIMEOFDAY=1
14446 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14449 for ac_header in sys/timeb.h
14451 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14452 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
14453 cat >>confdefs.h <<_ACEOF
14454 #define HAVE_SYS_TIMEB_H 1
14461 for ac_func in _ftime
14463 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
14464 if test "x$ac_cv_func__ftime" = xyes; then :
14465 cat >>confdefs.h <<_ACEOF
14466 #define HAVE__FTIME 1
14474 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
14477 $as_echo "#define localtime rpl_localtime" >>confdefs.h
14481 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
14486 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
14487 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
14488 $as_echo_n "(cached) " >&6
14490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491 /* end confdefs.h. */
14492 #include <sys/time.h>
14494 int gettimeofday (struct timeval *restrict, void *restrict);
14499 /* glibc uses struct timezone * rather than the POSIX void *
14500 if _GNU_SOURCE is defined. However, since the only portable
14501 use of gettimeofday uses NULL as the second parameter, and
14502 since the glibc definition is actually more typesafe, it is
14503 not worth wrapping this to get a compliant signature. */
14504 int (*f) (struct timeval *restrict, void *restrict)
14507 return !(x | c.tv_sec | c.tv_usec);
14513 if ac_fn_c_try_compile "$LINENO"; then :
14514 gl_cv_func_gettimeofday_posix_signature=yes
14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h. */
14518 #include <sys/time.h>
14519 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
14529 if ac_fn_c_try_compile "$LINENO"; then :
14530 gl_cv_func_gettimeofday_posix_signature=almost
14532 gl_cv_func_gettimeofday_posix_signature=no
14534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
14539 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
14540 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
14541 gl_gettimeofday_timezone='struct timezone'
14542 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
14543 REPLACE_GETTIMEOFDAY=1
14552 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14555 for ac_header in sys/timeb.h
14557 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14558 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
14559 cat >>confdefs.h <<_ACEOF
14560 #define HAVE_SYS_TIMEB_H 1
14567 for ac_func in _ftime
14569 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
14570 if test "x$ac_cv_func__ftime" = xyes; then :
14571 cat >>confdefs.h <<_ACEOF
14572 #define HAVE__FTIME 1
14582 cat >>confdefs.h <<_ACEOF
14583 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
14590 GNULIB_GETTIMEOFDAY=1
14594 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
14598 # Code from module havelib:
14599 # Code from module hostent:
14602 gl_saved_libs="$LIBS"
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14604 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14605 if ${ac_cv_search_gethostbyname+:} false; then :
14606 $as_echo_n "(cached) " >&6
14608 ac_func_search_save_LIBS=$LIBS
14609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h. */
14612 /* Override any GCC internal prototype to avoid an error.
14613 Use char because int might match the return type of a GCC
14614 builtin and then its argument prototype would still apply. */
14618 char gethostbyname ();
14622 return gethostbyname ();
14627 for ac_lib in '' nsl network net; do
14628 if test -z "$ac_lib"; then
14629 ac_res="none required"
14632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14634 if ac_fn_c_try_link "$LINENO"; then :
14635 ac_cv_search_gethostbyname=$ac_res
14637 rm -f core conftest.err conftest.$ac_objext \
14639 if ${ac_cv_search_gethostbyname+:} false; then :
14643 if ${ac_cv_search_gethostbyname+:} false; then :
14646 ac_cv_search_gethostbyname=no
14648 rm conftest.$ac_ext
14649 LIBS=$ac_func_search_save_LIBS
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14652 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14653 ac_res=$ac_cv_search_gethostbyname
14654 if test "$ac_res" != no; then :
14655 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14656 if test "$ac_cv_search_gethostbyname" != "none required"; then
14657 HOSTENT_LIB="$ac_cv_search_gethostbyname"
14661 LIBS="$gl_saved_libs"
14662 if test -z "$HOSTENT_LIB"; then
14663 for ac_func in gethostbyname
14665 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14666 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14667 cat >>confdefs.h <<_ACEOF
14668 #define HAVE_GETHOSTBYNAME 1
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
14674 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
14675 if ${gl_cv_w32_gethostbyname+:} false; then :
14676 $as_echo_n "(cached) " >&6
14678 gl_cv_w32_gethostbyname=no
14679 gl_save_LIBS="$LIBS"
14680 LIBS="$LIBS -lws2_32"
14681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14682 /* end confdefs.h. */
14684 #ifdef HAVE_WINSOCK2_H
14685 #include <winsock2.h>
14687 #include <stddef.h>
14692 gethostbyname(NULL);
14697 if ac_fn_c_try_link "$LINENO"; then :
14698 gl_cv_w32_gethostbyname=yes
14700 rm -f core conftest.err conftest.$ac_objext \
14701 conftest$ac_exeext conftest.$ac_ext
14702 LIBS="$gl_save_LIBS"
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
14706 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
14707 if test "$gl_cv_w32_gethostbyname" = "yes"; then
14708 HOSTENT_LIB="-lws2_32"
14717 # Code from module include_next:
14718 # Code from module inet_ntop:
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
14728 $as_echo_n "checking for library containing inet_ntop... " >&6; }
14729 if ${ac_cv_search_inet_ntop+:} false; then :
14730 $as_echo_n "(cached) " >&6
14732 ac_func_search_save_LIBS=$LIBS
14733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14734 /* end confdefs.h. */
14736 /* Override any GCC internal prototype to avoid an error.
14737 Use char because int might match the return type of a GCC
14738 builtin and then its argument prototype would still apply. */
14746 return inet_ntop ();
14751 for ac_lib in '' nsl; do
14752 if test -z "$ac_lib"; then
14753 ac_res="none required"
14756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14758 if ac_fn_c_try_link "$LINENO"; then :
14759 ac_cv_search_inet_ntop=$ac_res
14761 rm -f core conftest.err conftest.$ac_objext \
14763 if ${ac_cv_search_inet_ntop+:} false; then :
14767 if ${ac_cv_search_inet_ntop+:} false; then :
14770 ac_cv_search_inet_ntop=no
14772 rm conftest.$ac_ext
14773 LIBS=$ac_func_search_save_LIBS
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
14776 $as_echo "$ac_cv_search_inet_ntop" >&6; }
14777 ac_res=$ac_cv_search_inet_ntop
14778 if test "$ac_res" != no; then :
14779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14790 for ac_func in inet_ntop
14792 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
14793 if test "x$ac_cv_func_inet_ntop" = xyes; then :
14794 cat >>confdefs.h <<_ACEOF
14795 #define HAVE_INET_NTOP 1
14800 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
14810 if test "$ac_cv_search_inet_ntop" != "no" &&
14811 test "$ac_cv_search_inet_ntop" != "none required"; then
14812 INET_NTOP_LIB="$ac_cv_search_inet_ntop"
14817 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
14819 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
14825 cat >>confdefs.h <<_ACEOF
14826 #define HAVE_DECL_INET_NTOP $ac_have_decl
14829 if test $ac_cv_have_decl_inet_ntop = no; then
14830 HAVE_DECL_INET_NTOP=0
14842 # Code from module inet_pton:
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
14852 $as_echo_n "checking for library containing inet_pton... " >&6; }
14853 if ${ac_cv_search_inet_pton+:} false; then :
14854 $as_echo_n "(cached) " >&6
14856 ac_func_search_save_LIBS=$LIBS
14857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858 /* end confdefs.h. */
14860 /* Override any GCC internal prototype to avoid an error.
14861 Use char because int might match the return type of a GCC
14862 builtin and then its argument prototype would still apply. */
14870 return inet_pton ();
14875 for ac_lib in '' nsl; do
14876 if test -z "$ac_lib"; then
14877 ac_res="none required"
14880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14882 if ac_fn_c_try_link "$LINENO"; then :
14883 ac_cv_search_inet_pton=$ac_res
14885 rm -f core conftest.err conftest.$ac_objext \
14887 if ${ac_cv_search_inet_pton+:} false; then :
14891 if ${ac_cv_search_inet_pton+:} false; then :
14894 ac_cv_search_inet_pton=no
14896 rm conftest.$ac_ext
14897 LIBS=$ac_func_search_save_LIBS
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
14900 $as_echo "$ac_cv_search_inet_pton" >&6; }
14901 ac_res=$ac_cv_search_inet_pton
14902 if test "$ac_res" != no; then :
14903 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14914 for ac_func in inet_pton
14916 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
14917 if test "x$ac_cv_func_inet_pton" = xyes; then :
14918 cat >>confdefs.h <<_ACEOF
14919 #define HAVE_INET_PTON 1
14924 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
14934 if test "$ac_cv_search_inet_pton" != "no" &&
14935 test "$ac_cv_search_inet_pton" != "none required"; then
14936 INET_PTON_LIB="$ac_cv_search_inet_pton"
14941 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h>
14943 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
14949 cat >>confdefs.h <<_ACEOF
14950 #define HAVE_DECL_INET_PTON $ac_have_decl
14953 if test $ac_cv_have_decl_inet_pton = no; then
14954 HAVE_DECL_INET_PTON=0
14966 # Code from module langinfo:
14984 if test $gl_cv_have_include_next = yes; then
14985 gl_cv_next_langinfo_h='<'langinfo.h'>'
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
14988 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
14989 if ${gl_cv_next_langinfo_h+:} false; then :
14990 $as_echo_n "(cached) " >&6
14993 if test $ac_cv_header_langinfo_h = yes; then
14994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14995 /* end confdefs.h. */
14996 #include <langinfo.h>
15000 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15001 *) gl_absname_cpp="$ac_cpp" ;;
15003 gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15004 sed -n '\#/langinfo.h#{
15005 s#.*"\(.*/langinfo.h\)".*#\1#
15011 gl_cv_next_langinfo_h='<'langinfo.h'>'
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
15016 $as_echo "$gl_cv_next_langinfo_h" >&6; }
15018 NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
15020 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15021 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15022 gl_next_as_first_directive='<'langinfo.h'>'
15024 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15025 gl_next_as_first_directive=$gl_cv_next_langinfo_h
15027 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
15032 HAVE_LANGINFO_CODESET=0
15033 HAVE_LANGINFO_ERA=0
15041 if test $ac_cv_header_langinfo_h = yes; then
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
15044 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
15045 if ${gl_cv_header_langinfo_codeset+:} false; then :
15046 $as_echo_n "(cached) " >&6
15048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15049 /* end confdefs.h. */
15050 #include <langinfo.h>
15061 if ac_fn_c_try_compile "$LINENO"; then :
15062 gl_cv_header_langinfo_codeset=yes
15064 gl_cv_header_langinfo_codeset=no
15066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
15070 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
15071 if test $gl_cv_header_langinfo_codeset = yes; then
15072 HAVE_LANGINFO_CODESET=1
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
15075 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
15076 if ${gl_cv_header_langinfo_era+:} false; then :
15077 $as_echo_n "(cached) " >&6
15079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15080 /* end confdefs.h. */
15081 #include <langinfo.h>
15092 if ac_fn_c_try_compile "$LINENO"; then :
15093 gl_cv_header_langinfo_era=yes
15095 gl_cv_header_langinfo_era=no
15097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
15101 $as_echo "$gl_cv_header_langinfo_era" >&6; }
15102 if test $gl_cv_header_langinfo_era = yes; then
15103 HAVE_LANGINFO_ERA=1
15113 for gl_func in nl_langinfo; do
15114 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15116 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15117 if eval \${$as_gl_Symbol+:} false; then :
15118 $as_echo_n "(cached) " >&6
15120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15121 /* end confdefs.h. */
15122 #include <langinfo.h>
15133 if ac_fn_c_try_compile "$LINENO"; then :
15134 eval "$as_gl_Symbol=yes"
15136 eval "$as_gl_Symbol=no"
15138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15140 eval ac_res=\$$as_gl_Symbol
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15142 $as_echo "$ac_res" >&6; }
15143 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
15144 cat >>confdefs.h <<_ACEOF
15145 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15148 eval ac_cv_have_decl_$gl_func=yes
15153 # Code from module localcharset:
15168 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
15170 # Code from module lock:
15173 if test "$gl_threads_api" = posix; then
15174 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
15175 # pthread_rwlock_* functions.
15176 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
15178 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
15180 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
15184 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
15185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15186 /* end confdefs.h. */
15188 #include <pthread.h>
15193 #if __FreeBSD__ == 4
15194 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
15196 int x = (int)PTHREAD_MUTEX_RECURSIVE;
15204 if ac_fn_c_try_compile "$LINENO"; then :
15206 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
15209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15215 # Code from module lseek:
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
15220 $as_echo_n "checking whether lseek detects pipes... " >&6; }
15221 if ${gl_cv_func_lseek_pipe+:} false; then :
15222 $as_echo_n "(cached) " >&6
15224 if test $cross_compiling = no; then
15225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h. */
15228 #include <sys/types.h> /* for off_t */
15229 #include <stdio.h> /* for SEEK_CUR */
15230 #include <unistd.h>
15235 /* Exit with success only if stdin is seekable. */
15236 return lseek (0, (off_t)0, SEEK_CUR) < 0;
15242 if ac_fn_c_try_link "$LINENO"; then :
15243 if test -s conftest$ac_exeext \
15244 && ./conftest$ac_exeext < conftest.$ac_ext \
15245 && test 1 = "`echo hi \
15246 | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
15247 gl_cv_func_lseek_pipe=yes
15249 gl_cv_func_lseek_pipe=no
15252 gl_cv_func_lseek_pipe=no
15254 rm -f core conftest.err conftest.$ac_objext \
15255 conftest$ac_exeext conftest.$ac_ext
15257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15258 /* end confdefs.h. */
15260 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
15261 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes. */
15265 if ac_fn_c_try_compile "$LINENO"; then :
15266 gl_cv_func_lseek_pipe=yes
15268 gl_cv_func_lseek_pipe=no
15270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
15274 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
15275 if test $gl_cv_func_lseek_pipe = no; then
15285 gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
15290 $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
15302 $as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
15306 # Code from module lstat:
15316 if test $ac_cv_func_lstat = yes; then
15318 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
15321 # Prerequisites of lib/lstat.c.
15334 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
15338 # Code from module malloc-gnu:
15341 for ac_header in stdlib.h
15343 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15344 if test "x$ac_cv_header_stdlib_h" = xyes; then :
15345 cat >>confdefs.h <<_ACEOF
15346 #define HAVE_STDLIB_H 1
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15354 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15355 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
15356 $as_echo_n "(cached) " >&6
15358 if test "$cross_compiling" = yes; then :
15359 ac_cv_func_malloc_0_nonnull=no
15361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h. */
15363 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15364 # include <stdlib.h>
15372 return ! malloc (0);
15377 if ac_fn_c_try_run "$LINENO"; then :
15378 ac_cv_func_malloc_0_nonnull=yes
15380 ac_cv_func_malloc_0_nonnull=no
15382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15383 conftest.$ac_objext conftest.beam conftest.$ac_ext
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15388 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15389 if test $ac_cv_func_malloc_0_nonnull = yes; then :
15391 $as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h
15394 $as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h
15405 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
15415 cat >>confdefs.h <<_ACEOF
15416 #define GNULIB_MALLOC_GNU 1
15420 # Code from module malloc-posix:
15424 if test $gl_cv_func_malloc_posix = yes; then
15426 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
15438 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
15447 GNULIB_MALLOC_POSIX=1
15451 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
15455 # Code from module mbrtowc:
15478 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15483 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15484 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
15485 $as_echo_n "(cached) " >&6
15489 # Guess no on AIX and OSF/1.
15490 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15491 # Guess yes otherwise.
15492 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15494 if test $LOCALE_JA != none; then
15495 if test "$cross_compiling" = yes; then :
15498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15499 /* end confdefs.h. */
15501 #include <locale.h>
15502 #include <string.h>
15506 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15508 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15512 memset (&state, '\0', sizeof (mbstate_t));
15513 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15514 if (mbsinit (&state))
15520 if ac_fn_c_try_run "$LINENO"; then :
15521 gl_cv_func_mbrtowc_incomplete_state=yes
15523 gl_cv_func_mbrtowc_incomplete_state=no
15525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15526 conftest.$ac_objext conftest.beam conftest.$ac_ext
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15533 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15539 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15540 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
15541 $as_echo_n "(cached) " >&6
15545 # Guess no on Solaris 8.
15546 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15547 # Guess yes otherwise.
15548 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15550 if test $LOCALE_ZH_CN != none; then
15551 if test "$cross_compiling" = yes; then :
15554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15555 /* end confdefs.h. */
15557 #include <locale.h>
15558 #include <stdlib.h>
15559 #include <string.h>
15563 /* This fails on Solaris 8:
15564 mbrtowc returns 2, and sets wc to 0x00F0.
15565 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15566 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15568 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15572 memset (&state, '\0', sizeof (mbstate_t));
15573 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15574 && mbtowc (&wc, input + 3, 6) == 4)
15580 if ac_fn_c_try_run "$LINENO"; then :
15581 gl_cv_func_mbrtowc_sanitycheck=yes
15583 gl_cv_func_mbrtowc_sanitycheck=no
15585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15586 conftest.$ac_objext conftest.beam conftest.$ac_ext
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15593 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15595 REPLACE_MBSTATE_T=0
15596 case "$gl_cv_func_mbrtowc_incomplete_state" in
15598 *) REPLACE_MBSTATE_T=1 ;;
15600 case "$gl_cv_func_mbrtowc_sanitycheck" in
15602 *) REPLACE_MBSTATE_T=1 ;;
15605 REPLACE_MBSTATE_T=1
15607 if test $REPLACE_MBSTATE_T = 1; then
15621 if test $ac_cv_func_mbrtowc = no; then
15624 if test $REPLACE_MBSTATE_T = 1; then
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
15631 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
15632 if ${gl_cv_func_mbrtowc_null_arg+:} false; then :
15633 $as_echo_n "(cached) " >&6
15637 # Guess no on OSF/1.
15638 osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
15639 # Guess yes otherwise.
15640 *) gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
15642 if test $LOCALE_FR_UTF8 != none; then
15643 if test "$cross_compiling" = yes; then :
15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647 /* end confdefs.h. */
15649 #include <locale.h>
15650 #include <string.h>
15654 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15660 memset (&state, '\0', sizeof (mbstate_t));
15661 wc = (wchar_t) 0xBADFACE;
15662 mbrtowc (&wc, NULL, 5, &state);
15663 /* Check that wc was not modified. */
15664 if (wc != (wchar_t) 0xBADFACE)
15670 if ac_fn_c_try_run "$LINENO"; then :
15671 gl_cv_func_mbrtowc_null_arg=yes
15673 gl_cv_func_mbrtowc_null_arg=no
15675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15676 conftest.$ac_objext conftest.beam conftest.$ac_ext
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg" >&5
15683 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
15690 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
15691 if ${gl_cv_func_mbrtowc_retval+:} false; then :
15692 $as_echo_n "(cached) " >&6
15696 # Guess no on HP-UX and Solaris.
15697 hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
15698 # Guess yes otherwise.
15699 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
15701 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
15702 if test "$cross_compiling" = yes; then :
15705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15706 /* end confdefs.h. */
15708 #include <locale.h>
15709 #include <string.h>
15713 /* This fails on Solaris. */
15714 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15716 char input[] = "B\303\274\303\237er"; /* "Büßer" */
15720 memset (&state, '\0', sizeof (mbstate_t));
15721 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15724 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
15728 /* This fails on HP-UX 11.11. */
15729 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15731 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15735 memset (&state, '\0', sizeof (mbstate_t));
15736 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15739 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
15746 if ac_fn_c_try_run "$LINENO"; then :
15747 gl_cv_func_mbrtowc_retval=yes
15749 gl_cv_func_mbrtowc_retval=no
15751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15752 conftest.$ac_objext conftest.beam conftest.$ac_ext
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
15759 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
15765 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
15766 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
15767 $as_echo_n "(cached) " >&6
15771 # Guess no on Solaris 8 and 9.
15772 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
15773 # Guess yes otherwise.
15774 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
15776 if test $LOCALE_ZH_CN != none; then
15777 if test "$cross_compiling" = yes; then :
15780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15781 /* end confdefs.h. */
15783 #include <locale.h>
15784 #include <string.h>
15788 /* This fails on Solaris 8 and 9. */
15789 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15794 memset (&state, '\0', sizeof (mbstate_t));
15795 if (mbrtowc (&wc, "", 1, &state) != 0)
15801 if ac_fn_c_try_run "$LINENO"; then :
15802 gl_cv_func_mbrtowc_nul_retval=yes
15804 gl_cv_func_mbrtowc_nul_retval=no
15806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15807 conftest.$ac_objext conftest.beam conftest.$ac_ext
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
15814 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
15816 case "$gl_cv_func_mbrtowc_null_arg" in
15819 $as_echo "#define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h
15824 case "$gl_cv_func_mbrtowc_retval" in
15827 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
15832 case "$gl_cv_func_mbrtowc_nul_retval" in
15835 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
15842 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
15854 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
15868 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
15872 # Code from module mbsinit:
15895 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15900 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15901 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
15902 $as_echo_n "(cached) " >&6
15906 # Guess no on AIX and OSF/1.
15907 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15908 # Guess yes otherwise.
15909 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15911 if test $LOCALE_JA != none; then
15912 if test "$cross_compiling" = yes; then :
15915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15916 /* end confdefs.h. */
15918 #include <locale.h>
15919 #include <string.h>
15923 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15925 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15929 memset (&state, '\0', sizeof (mbstate_t));
15930 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15931 if (mbsinit (&state))
15937 if ac_fn_c_try_run "$LINENO"; then :
15938 gl_cv_func_mbrtowc_incomplete_state=yes
15940 gl_cv_func_mbrtowc_incomplete_state=no
15942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15943 conftest.$ac_objext conftest.beam conftest.$ac_ext
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15950 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15956 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15957 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
15958 $as_echo_n "(cached) " >&6
15962 # Guess no on Solaris 8.
15963 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15964 # Guess yes otherwise.
15965 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15967 if test $LOCALE_ZH_CN != none; then
15968 if test "$cross_compiling" = yes; then :
15971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15972 /* end confdefs.h. */
15974 #include <locale.h>
15975 #include <stdlib.h>
15976 #include <string.h>
15980 /* This fails on Solaris 8:
15981 mbrtowc returns 2, and sets wc to 0x00F0.
15982 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15983 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15985 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15989 memset (&state, '\0', sizeof (mbstate_t));
15990 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15991 && mbtowc (&wc, input + 3, 6) == 4)
15997 if ac_fn_c_try_run "$LINENO"; then :
15998 gl_cv_func_mbrtowc_sanitycheck=yes
16000 gl_cv_func_mbrtowc_sanitycheck=no
16002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16003 conftest.$ac_objext conftest.beam conftest.$ac_ext
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
16010 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
16012 REPLACE_MBSTATE_T=0
16013 case "$gl_cv_func_mbrtowc_incomplete_state" in
16015 *) REPLACE_MBSTATE_T=1 ;;
16017 case "$gl_cv_func_mbrtowc_sanitycheck" in
16019 *) REPLACE_MBSTATE_T=1 ;;
16022 REPLACE_MBSTATE_T=1
16024 if test $REPLACE_MBSTATE_T = 1; then
16038 if test $ac_cv_func_mbsinit = no; then
16041 if test $REPLACE_MBSTATE_T = 1; then
16045 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
16057 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
16071 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
16075 # Code from module memchr:
16084 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
16088 # Code from module mkdtemp:
16099 for ac_func in mkdtemp
16101 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
16102 if test "x$ac_cv_func_mkdtemp" = xyes; then :
16103 cat >>confdefs.h <<_ACEOF
16104 #define HAVE_MKDTEMP 1
16109 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
16115 if test $ac_cv_func_mkdtemp = no; then
16128 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
16132 # Code from module multiarch:
16134 # Code from module netdb:
16156 if test $gl_cv_have_include_next = yes; then
16157 gl_cv_next_netdb_h='<'netdb.h'>'
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
16160 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
16161 if ${gl_cv_next_netdb_h+:} false; then :
16162 $as_echo_n "(cached) " >&6
16165 if test $ac_cv_header_netdb_h = yes; then
16166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16167 /* end confdefs.h. */
16172 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16173 *) gl_absname_cpp="$ac_cpp" ;;
16175 gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16176 sed -n '\#/netdb.h#{
16177 s#.*"\(.*/netdb.h\)".*#\1#
16183 gl_cv_next_netdb_h='<'netdb.h'>'
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
16188 $as_echo "$gl_cv_next_netdb_h" >&6; }
16190 NEXT_NETDB_H=$gl_cv_next_netdb_h
16192 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16193 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16194 gl_next_as_first_directive='<'netdb.h'>'
16196 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16197 gl_next_as_first_directive=$gl_cv_next_netdb_h
16199 NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
16203 if test $ac_cv_header_netdb_h = yes; then
16211 for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
16212 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16214 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16215 if eval \${$as_gl_Symbol+:} false; then :
16216 $as_echo_n "(cached) " >&6
16218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219 /* end confdefs.h. */
16230 if ac_fn_c_try_compile "$LINENO"; then :
16231 eval "$as_gl_Symbol=yes"
16233 eval "$as_gl_Symbol=no"
16235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16237 eval ac_res=\$$as_gl_Symbol
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16239 $as_echo "$ac_res" >&6; }
16240 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
16241 cat >>confdefs.h <<_ACEOF
16242 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16245 eval ac_cv_have_decl_$gl_func=yes
16250 # Code from module netinet_in:
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
16253 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
16254 if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
16255 $as_echo_n "(cached) " >&6
16258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16259 /* end confdefs.h. */
16260 #include <netinet/in.h>
16269 if ac_fn_c_try_compile "$LINENO"; then :
16270 gl_cv_header_netinet_in_h_selfcontained=yes
16272 gl_cv_header_netinet_in_h_selfcontained=no
16274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
16278 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
16279 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
16282 NETINET_IN_H='netinet/in.h'
16283 for ac_header in netinet/in.h
16285 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16286 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
16287 cat >>confdefs.h <<_ACEOF
16288 #define HAVE_NETINET_IN_H 1
16307 if test $gl_cv_have_include_next = yes; then
16308 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
16311 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
16312 if ${gl_cv_next_netinet_in_h+:} false; then :
16313 $as_echo_n "(cached) " >&6
16316 if test $ac_cv_header_netinet_in_h = yes; then
16317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318 /* end confdefs.h. */
16319 #include <netinet/in.h>
16323 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16324 *) gl_absname_cpp="$ac_cpp" ;;
16326 gl_cv_next_netinet_in_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16327 sed -n '\#/netinet/in.h#{
16328 s#.*"\(.*/netinet/in.h\)".*#\1#
16334 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
16339 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
16341 NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
16343 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16344 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16345 gl_next_as_first_directive='<'netinet/in.h'>'
16347 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16348 gl_next_as_first_directive=$gl_cv_next_netinet_in_h
16350 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
16354 if test $ac_cv_header_netinet_in_h = yes; then
16355 HAVE_NETINET_IN_H=1
16357 HAVE_NETINET_IN_H=0
16364 # Code from module nl_langinfo:
16375 if test $ac_cv_func_nl_langinfo = yes; then
16376 if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
16379 REPLACE_NL_LANGINFO=1
16381 $as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
16391 gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
16404 gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
16411 GNULIB_NL_LANGINFO=1
16415 $as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
16419 # Code from module physmem:
16429 gl_LIBOBJS="$gl_LIBOBJS physmem.$ac_objext"
16432 # Prerequisites of lib/physmem.c.
16433 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
16434 machine/hal_sysinfo.h sys/table.h sys/param.h sys/systemcfg.h
16436 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16437 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16439 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16440 cat >>confdefs.h <<_ACEOF
16441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16448 for ac_header in sys/sysctl.h
16450 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
16451 #if HAVE_SYS_PARAM_H
16452 # include <sys/param.h>
16456 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
16457 cat >>confdefs.h <<_ACEOF
16458 #define HAVE_SYS_SYSCTL_H 1
16466 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
16468 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16469 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16470 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16471 cat >>confdefs.h <<_ACEOF
16472 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16480 # Code from module regex:
16491 # Check whether --with-included-regex was given.
16492 if test "${with_included_regex+set}" = set; then :
16493 withval=$with_included_regex;
16497 case $with_included_regex in #(
16498 yes|no) ac_use_included_regex=$with_included_regex
16501 # If the system regex support is good enough that it passes the
16502 # following run test, then default to *not* using the included regex.c.
16503 # If cross compiling, assume the test would fail and use the included
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
16506 $as_echo_n "checking for working re_compile_pattern... " >&6; }
16507 if ${gl_cv_func_re_compile_pattern_working+:} false; then :
16508 $as_echo_n "(cached) " >&6
16510 if test "$cross_compiling" = yes; then :
16511 gl_cv_func_re_compile_pattern_working=no
16513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16514 /* end confdefs.h. */
16515 $ac_includes_default
16517 #include <locale.h>
16519 #include <limits.h>
16525 static struct re_pattern_buffer regex;
16526 unsigned char folded_chars[UCHAR_MAX + 1];
16529 struct re_registers regs;
16532 /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
16533 This test needs valgrind to catch the bug on Debian
16534 GNU/Linux 3.1 x86, but it might catch the bug better
16535 on other platforms and it shouldn't hurt to try the
16537 if (setlocale (LC_ALL, "en_US.UTF-8"))
16539 static char const pat[] = "insert into";
16540 static char const data[] =
16541 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
16542 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
16544 memset (®ex, 0, sizeof regex);
16545 s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
16548 if (re_search (®ex, data, sizeof data - 1,
16549 0, sizeof data - 1, ®s)
16552 if (! setlocale (LC_ALL, "C"))
16557 /* This test is from glibc bug 3957, reported by Andrew Mackey. */
16558 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
16559 memset (®ex, 0, sizeof regex);
16560 s = re_compile_pattern ("a[^x]b", 6, ®ex);
16564 /* This should fail, but succeeds for glibc-2.5. */
16565 if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1)
16568 /* This regular expression is from Spencer ere test number 75
16570 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
16571 memset (®ex, 0, sizeof regex);
16572 for (i = 0; i <= UCHAR_MAX; i++)
16573 folded_chars[i] = i;
16574 regex.translate = folded_chars;
16575 s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex);
16576 /* This should fail with _Invalid character class name_ error. */
16580 /* Ensure that [b-a] is diagnosed as invalid, when
16581 using RE_NO_EMPTY_RANGES. */
16582 re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
16583 memset (®ex, 0, sizeof regex);
16584 s = re_compile_pattern ("a[b-a]", 6, ®ex);
16588 /* This should succeed, but does not for glibc-2.1.3. */
16589 memset (®ex, 0, sizeof regex);
16590 s = re_compile_pattern ("{1", 2, ®ex);
16595 /* The following example is derived from a problem report
16596 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
16597 memset (®ex, 0, sizeof regex);
16598 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
16602 /* This should match, but does not for glibc-2.2.1. */
16603 if (re_match (®ex, "an", 2, 0, ®s) != 2)
16606 memset (®ex, 0, sizeof regex);
16607 s = re_compile_pattern ("x", 1, ®ex);
16611 /* glibc-2.2.93 does not work with a negative RANGE argument. */
16612 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
16615 /* The version of regex.c in older versions of gnulib
16616 ignored RE_ICASE. Detect that problem too. */
16617 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
16618 memset (®ex, 0, sizeof regex);
16619 s = re_compile_pattern ("x", 1, ®ex);
16623 if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
16626 /* Catch a bug reported by Vin Shelton in
16627 http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
16629 re_set_syntax (RE_SYNTAX_POSIX_BASIC
16630 & ~RE_CONTEXT_INVALID_DUP
16631 & ~RE_NO_EMPTY_RANGES);
16632 memset (®ex, 0, sizeof regex);
16633 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex);
16637 /* REG_STARTEND was added to glibc on 2004-01-15.
16638 Reject older versions. */
16639 if (! REG_STARTEND)
16642 /* Reject hosts whose regoff_t values are too narrow.
16643 These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
16645 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
16646 || sizeof (regoff_t) < sizeof (ssize_t))
16654 if ac_fn_c_try_run "$LINENO"; then :
16655 gl_cv_func_re_compile_pattern_working=yes
16657 gl_cv_func_re_compile_pattern_working=no
16659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16660 conftest.$ac_objext conftest.beam conftest.$ac_ext
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
16665 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
16666 case $gl_cv_func_re_compile_pattern_working in #(
16667 yes) ac_use_included_regex=no;; #(
16668 no) ac_use_included_regex=yes;;
16671 *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
16675 if test $ac_use_included_regex = yes; then
16677 $as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
16680 $as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
16683 $as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
16686 $as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
16689 $as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
16692 $as_echo "#define re_search rpl_re_search" >>confdefs.h
16695 $as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
16698 $as_echo "#define re_match rpl_re_match" >>confdefs.h
16701 $as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
16704 $as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
16707 $as_echo "#define re_comp rpl_re_comp" >>confdefs.h
16710 $as_echo "#define re_exec rpl_re_exec" >>confdefs.h
16713 $as_echo "#define regcomp rpl_regcomp" >>confdefs.h
16716 $as_echo "#define regexec rpl_regexec" >>confdefs.h
16719 $as_echo "#define regerror rpl_regerror" >>confdefs.h
16722 $as_echo "#define regfree rpl_regfree" >>confdefs.h
16732 gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
16739 for ac_header in libintl.h
16741 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
16742 if test "x$ac_cv_header_libintl_h" = xyes; then :
16743 cat >>confdefs.h <<_ACEOF
16744 #define HAVE_LIBINTL_H 1
16764 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16766 if test "x$ac_cv_have_decl_isblank" = xyes; then :
16772 cat >>confdefs.h <<_ACEOF
16773 #define HAVE_DECL_ISBLANK $ac_have_decl
16779 # Code from module safe-read:
16789 gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
16796 # Code from module safe-write:
16806 gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
16815 # Code from module servent:
16818 gl_saved_libs="$LIBS"
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
16820 $as_echo_n "checking for library containing getservbyname... " >&6; }
16821 if ${ac_cv_search_getservbyname+:} false; then :
16822 $as_echo_n "(cached) " >&6
16824 ac_func_search_save_LIBS=$LIBS
16825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16826 /* end confdefs.h. */
16828 /* Override any GCC internal prototype to avoid an error.
16829 Use char because int might match the return type of a GCC
16830 builtin and then its argument prototype would still apply. */
16834 char getservbyname ();
16838 return getservbyname ();
16843 for ac_lib in '' socket network net; do
16844 if test -z "$ac_lib"; then
16845 ac_res="none required"
16848 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16850 if ac_fn_c_try_link "$LINENO"; then :
16851 ac_cv_search_getservbyname=$ac_res
16853 rm -f core conftest.err conftest.$ac_objext \
16855 if ${ac_cv_search_getservbyname+:} false; then :
16859 if ${ac_cv_search_getservbyname+:} false; then :
16862 ac_cv_search_getservbyname=no
16864 rm conftest.$ac_ext
16865 LIBS=$ac_func_search_save_LIBS
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
16868 $as_echo "$ac_cv_search_getservbyname" >&6; }
16869 ac_res=$ac_cv_search_getservbyname
16870 if test "$ac_res" != no; then :
16871 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16872 if test "$ac_cv_search_getservbyname" != "none required"; then
16873 SERVENT_LIB="$ac_cv_search_getservbyname"
16877 LIBS="$gl_saved_libs"
16878 if test -z "$SERVENT_LIB"; then
16879 for ac_func in getservbyname
16881 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
16882 if test "x$ac_cv_func_getservbyname" = xyes; then :
16883 cat >>confdefs.h <<_ACEOF
16884 #define HAVE_GETSERVBYNAME 1
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
16890 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
16891 if ${gl_cv_w32_getservbyname+:} false; then :
16892 $as_echo_n "(cached) " >&6
16894 gl_cv_w32_getservbyname=no
16895 gl_save_LIBS="$LIBS"
16896 LIBS="$LIBS -lws2_32"
16897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16898 /* end confdefs.h. */
16900 #ifdef HAVE_WINSOCK2_H
16901 #include <winsock2.h>
16903 #include <stddef.h>
16908 getservbyname(NULL,NULL);
16913 if ac_fn_c_try_link "$LINENO"; then :
16914 gl_cv_w32_getservbyname=yes
16916 rm -f core conftest.err conftest.$ac_objext \
16917 conftest$ac_exeext conftest.$ac_ext
16918 LIBS="$gl_save_LIBS"
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
16922 $as_echo "$gl_cv_w32_getservbyname" >&6; }
16923 if test "$gl_cv_w32_getservbyname" = "yes"; then
16924 SERVENT_LIB="-lws2_32"
16933 # Code from module size_max:
16935 for ac_header in stdint.h
16937 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
16938 if test "x$ac_cv_header_stdint_h" = xyes; then :
16939 cat >>confdefs.h <<_ACEOF
16940 #define HAVE_STDINT_H 1
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
16948 $as_echo_n "checking for SIZE_MAX... " >&6; }
16950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16951 /* end confdefs.h. */
16953 #include <limits.h>
16955 #include <stdint.h>
16962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16963 $EGREP "Found it" >/dev/null 2>&1; then :
16968 if test -z "$result"; then
16969 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
16970 #include <limits.h>"; then :
16973 size_t_bits_minus_1=
16977 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
16984 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
16985 if test $fits_in_uint = 1; then
16986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16987 /* end confdefs.h. */
16988 #include <stddef.h>
16990 extern unsigned long foo;
17000 if ac_fn_c_try_compile "$LINENO"; then :
17003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17005 if test $fits_in_uint = 1; then
17006 result="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
17008 result="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
17011 result='((size_t)~(size_t)0)'
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
17015 $as_echo "$result" >&6; }
17016 if test "$result" != yes; then
17018 cat >>confdefs.h <<_ACEOF
17019 #define SIZE_MAX $result
17024 # Code from module snprintf:
17027 gl_cv_func_snprintf_usable=no
17028 for ac_func in snprintf
17030 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
17031 if test "x$ac_cv_func_snprintf" = xyes; then :
17032 cat >>confdefs.h <<_ACEOF
17033 #define HAVE_SNPRINTF 1
17039 if test $ac_cv_func_snprintf = yes; then
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
17043 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
17044 if ${gl_cv_func_snprintf_size1+:} false; then :
17045 $as_echo_n "(cached) " >&6
17048 if test "$cross_compiling" = yes; then :
17049 gl_cv_func_snprintf_size1="guessing yes"
17051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17052 /* end confdefs.h. */
17057 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
17058 snprintf (buf, 1, "%d", 12345);
17059 return buf[1] != 'E';
17062 if ac_fn_c_try_run "$LINENO"; then :
17063 gl_cv_func_snprintf_size1=yes
17065 gl_cv_func_snprintf_size1=no
17067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17068 conftest.$ac_objext conftest.beam conftest.$ac_ext
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
17074 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
17076 case "$gl_cv_func_snprintf_size1" in
17078 gl_cv_func_snprintf_usable=yes
17082 if test $gl_cv_func_snprintf_usable = no; then
17093 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
17095 if test $ac_cv_func_snprintf = yes; then
17108 if test $ac_cv_have_decl_snprintf = no; then
17109 HAVE_DECL_SNPRINTF=0
17119 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
17123 # Code from module socklen:
17124 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
17125 #if HAVE_SYS_SOCKET_H
17126 # include <sys/socket.h>
17127 #elif HAVE_WS2TCPIP_H
17128 # include <ws2tcpip.h>
17131 if test "x$ac_cv_type_socklen_t" = xyes; then :
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
17135 $as_echo_n "checking for socklen_t equivalent... " >&6; }
17136 if ${gl_cv_socklen_t_equiv+:} false; then :
17137 $as_echo_n "(cached) " >&6
17139 # Systems have either "struct sockaddr *" or
17140 # "void *" as the second argument to getpeername
17141 gl_cv_socklen_t_equiv=
17142 for arg2 in "struct sockaddr" void; do
17143 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
17144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17145 /* end confdefs.h. */
17146 #include <sys/types.h>
17147 #include <sys/socket.h>
17149 int getpeername (int, $arg2 *, $t *);
17154 getpeername (0, 0, &len);
17159 if ac_fn_c_try_compile "$LINENO"; then :
17160 gl_cv_socklen_t_equiv="$t"
17162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17163 test "$gl_cv_socklen_t_equiv" != "" && break
17165 test "$gl_cv_socklen_t_equiv" != "" && break
17170 if test "$gl_cv_socklen_t_equiv" = ""; then
17171 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
17174 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
17176 cat >>confdefs.h <<_ACEOF
17177 #define socklen_t $gl_cv_socklen_t_equiv
17182 # Code from module ssize_t:
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17185 $as_echo_n "checking for ssize_t... " >&6; }
17186 if ${gt_cv_ssize_t+:} false; then :
17187 $as_echo_n "(cached) " >&6
17189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17190 /* end confdefs.h. */
17191 #include <sys/types.h>
17195 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17201 if ac_fn_c_try_compile "$LINENO"; then :
17206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
17209 $as_echo "$gt_cv_ssize_t" >&6; }
17210 if test $gt_cv_ssize_t = no; then
17212 $as_echo "#define ssize_t int" >>confdefs.h
17216 # Code from module stat:
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
17228 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
17229 if ${gl_cv_func_stat_dir_slash+:} false; then :
17230 $as_echo_n "(cached) " >&6
17232 if test "$cross_compiling" = yes; then :
17234 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
17235 *) gl_cv_func_stat_dir_slash="guessing yes";;
17238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17239 /* end confdefs.h. */
17240 #include <sys/stat.h>
17245 struct stat st; return stat (".", &st) != stat ("./", &st);
17250 if ac_fn_c_try_run "$LINENO"; then :
17251 gl_cv_func_stat_dir_slash=yes
17253 gl_cv_func_stat_dir_slash=no
17255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17256 conftest.$ac_objext conftest.beam conftest.$ac_ext
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
17261 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
17263 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
17264 if ${gl_cv_func_stat_file_slash+:} false; then :
17265 $as_echo_n "(cached) " >&6
17268 # Assume that if we have lstat, we can also check symlinks.
17269 if test $ac_cv_func_lstat = yes; then
17270 ln -s conftest.tmp conftest.lnk
17272 if test "$cross_compiling" = yes; then :
17273 gl_cv_func_stat_file_slash="guessing no"
17275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17276 /* end confdefs.h. */
17277 #include <sys/stat.h>
17283 if (!stat ("conftest.tmp/", &st)) return 1;
17285 if (!stat ("conftest.lnk/", &st)) return 2;
17292 if ac_fn_c_try_run "$LINENO"; then :
17293 gl_cv_func_stat_file_slash=yes
17295 gl_cv_func_stat_file_slash=no
17297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17298 conftest.$ac_objext conftest.beam conftest.$ac_ext
17301 rm -f conftest.tmp conftest.lnk
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
17304 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
17305 case $gl_cv_func_stat_dir_slash in
17306 *no) REPLACE_STAT=1
17308 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
17311 case $gl_cv_func_stat_file_slash in
17312 *no) REPLACE_STAT=1
17314 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
17317 if test $REPLACE_STAT = 1; then
17326 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
17338 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
17342 # Code from module stdbool:
17346 # Define two additional variables used in the Makefile substitution.
17348 if test "$ac_cv_header_stdbool_h" = yes; then
17351 STDBOOL_H='stdbool.h'
17355 if test "$ac_cv_type__Bool" = yes; then
17362 # Code from module stddef:
17366 if test $gt_cv_c_wchar_t = no; then
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
17371 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
17372 if ${gl_cv_decl_null_works+:} false; then :
17373 $as_echo_n "(cached) " >&6
17375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17376 /* end confdefs.h. */
17377 #include <stddef.h>
17378 int test[2 * (sizeof NULL == sizeof (void *)) -1];
17388 if ac_fn_c_try_compile "$LINENO"; then :
17389 gl_cv_decl_null_works=yes
17391 gl_cv_decl_null_works=no
17393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
17396 $as_echo "$gl_cv_decl_null_works" >&6; }
17397 if test $gl_cv_decl_null_works = no; then
17401 if test -n "$STDDEF_H"; then
17414 if test $gl_cv_have_include_next = yes; then
17415 gl_cv_next_stddef_h='<'stddef.h'>'
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
17418 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
17419 if ${gl_cv_next_stddef_h+:} false; then :
17420 $as_echo_n "(cached) " >&6
17423 if test $ac_cv_header_stddef_h = yes; then
17424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17425 /* end confdefs.h. */
17426 #include <stddef.h>
17430 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17431 *) gl_absname_cpp="$ac_cpp" ;;
17433 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17434 sed -n '\#/stddef.h#{
17435 s#.*"\(.*/stddef.h\)".*#\1#
17441 gl_cv_next_stddef_h='<'stddef.h'>'
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
17446 $as_echo "$gl_cv_next_stddef_h" >&6; }
17448 NEXT_STDDEF_H=$gl_cv_next_stddef_h
17450 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17451 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17452 gl_next_as_first_directive='<'stddef.h'>'
17454 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17455 gl_next_as_first_directive=$gl_cv_next_stddef_h
17457 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
17463 # Code from module stdint:
17467 if test $ac_cv_type_long_long_int = yes; then
17468 HAVE_LONG_LONG_INT=1
17470 HAVE_LONG_LONG_INT=0
17474 if test $ac_cv_type_unsigned_long_long_int = yes; then
17475 HAVE_UNSIGNED_LONG_LONG_INT=1
17477 HAVE_UNSIGNED_LONG_LONG_INT=0
17481 if test $ac_cv_header_inttypes_h = yes; then
17488 if test $ac_cv_header_sys_types_h = yes; then
17507 if test $gl_cv_have_include_next = yes; then
17508 gl_cv_next_stdint_h='<'stdint.h'>'
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17511 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17512 if ${gl_cv_next_stdint_h+:} false; then :
17513 $as_echo_n "(cached) " >&6
17516 if test $ac_cv_header_stdint_h = yes; then
17517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17518 /* end confdefs.h. */
17519 #include <stdint.h>
17523 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17524 *) gl_absname_cpp="$ac_cpp" ;;
17526 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17527 sed -n '\#/stdint.h#{
17528 s#.*"\(.*/stdint.h\)".*#\1#
17534 gl_cv_next_stdint_h='<'stdint.h'>'
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17539 $as_echo "$gl_cv_next_stdint_h" >&6; }
17541 NEXT_STDINT_H=$gl_cv_next_stdint_h
17543 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17544 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17545 gl_next_as_first_directive='<'stdint.h'>'
17547 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17548 gl_next_as_first_directive=$gl_cv_next_stdint_h
17550 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17554 if test $ac_cv_header_stdint_h = yes; then
17561 if test $ac_cv_header_stdint_h = yes; then
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17563 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17564 if ${gl_cv_header_working_stdint_h+:} false; then :
17565 $as_echo_n "(cached) " >&6
17567 gl_cv_header_working_stdint_h=no
17568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17569 /* end confdefs.h. */
17572 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17573 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17574 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17575 #include <stdint.h>
17576 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17577 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17578 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17582 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17583 included before <wchar.h>. */
17584 #include <stddef.h>
17585 #include <signal.h>
17587 # include <stdio.h>
17589 # include <wchar.h>
17594 int8_t a1 = INT8_MAX;
17595 int8_t a1min = INT8_MIN;
17598 int16_t a2 = INT16_MAX;
17599 int16_t a2min = INT16_MIN;
17602 int32_t a3 = INT32_MAX;
17603 int32_t a3min = INT32_MIN;
17606 int64_t a4 = INT64_MAX;
17607 int64_t a4min = INT64_MIN;
17610 uint8_t b1 = UINT8_MAX;
17612 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17615 uint16_t b2 = UINT16_MAX;
17618 uint32_t b3 = UINT32_MAX;
17621 uint64_t b4 = UINT64_MAX;
17623 int_least8_t c1 = INT8_C (0x7f);
17624 int_least8_t c1max = INT_LEAST8_MAX;
17625 int_least8_t c1min = INT_LEAST8_MIN;
17626 int_least16_t c2 = INT16_C (0x7fff);
17627 int_least16_t c2max = INT_LEAST16_MAX;
17628 int_least16_t c2min = INT_LEAST16_MIN;
17629 int_least32_t c3 = INT32_C (0x7fffffff);
17630 int_least32_t c3max = INT_LEAST32_MAX;
17631 int_least32_t c3min = INT_LEAST32_MIN;
17632 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17633 int_least64_t c4max = INT_LEAST64_MAX;
17634 int_least64_t c4min = INT_LEAST64_MIN;
17635 uint_least8_t d1 = UINT8_C (0xff);
17636 uint_least8_t d1max = UINT_LEAST8_MAX;
17637 uint_least16_t d2 = UINT16_C (0xffff);
17638 uint_least16_t d2max = UINT_LEAST16_MAX;
17639 uint_least32_t d3 = UINT32_C (0xffffffff);
17640 uint_least32_t d3max = UINT_LEAST32_MAX;
17641 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17642 uint_least64_t d4max = UINT_LEAST64_MAX;
17643 int_fast8_t e1 = INT_FAST8_MAX;
17644 int_fast8_t e1min = INT_FAST8_MIN;
17645 int_fast16_t e2 = INT_FAST16_MAX;
17646 int_fast16_t e2min = INT_FAST16_MIN;
17647 int_fast32_t e3 = INT_FAST32_MAX;
17648 int_fast32_t e3min = INT_FAST32_MIN;
17649 int_fast64_t e4 = INT_FAST64_MAX;
17650 int_fast64_t e4min = INT_FAST64_MIN;
17651 uint_fast8_t f1 = UINT_FAST8_MAX;
17652 uint_fast16_t f2 = UINT_FAST16_MAX;
17653 uint_fast32_t f3 = UINT_FAST32_MAX;
17654 uint_fast64_t f4 = UINT_FAST64_MAX;
17656 intptr_t g = INTPTR_MAX;
17657 intptr_t gmin = INTPTR_MIN;
17660 uintptr_t h = UINTPTR_MAX;
17662 intmax_t i = INTMAX_MAX;
17663 uintmax_t j = UINTMAX_MAX;
17665 #include <limits.h> /* for CHAR_BIT */
17666 #define TYPE_MINIMUM(t) \
17667 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
17668 #define TYPE_MAXIMUM(t) \
17669 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
17672 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17673 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17675 /* Detect bug in FreeBSD 6.0 / ia64. */
17676 int check_SIG_ATOMIC:
17677 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17678 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17680 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17682 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17683 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17685 /* Detect bug in mingw. */
17687 WINT_MIN == TYPE_MINIMUM (wint_t)
17688 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17691 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17693 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17694 int check_UINT16_C:
17695 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17697 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17699 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17702 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17705 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17708 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17710 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17711 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17712 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17713 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17714 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17715 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17716 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17717 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17718 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17719 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17720 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17731 if ac_fn_c_try_compile "$LINENO"; then :
17732 if test "$cross_compiling" = yes; then :
17733 gl_cv_header_working_stdint_h=yes
17736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17737 /* end confdefs.h. */
17740 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17741 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17742 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17743 #include <stdint.h>
17746 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17747 included before <wchar.h>. */
17748 #include <stddef.h>
17749 #include <signal.h>
17751 # include <stdio.h>
17753 # include <wchar.h>
17758 #include <string.h>
17759 #define MVAL(macro) MVAL1(macro)
17760 #define MVAL1(expression) #expression
17761 static const char *macro_values[] =
17795 for (mv = macro_values; *mv != NULL; mv++)
17797 const char *value = *mv;
17798 /* Test whether it looks like a cast expression. */
17799 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17800 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17801 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17802 || strncmp (value, "((int)"/*)*/, 6) == 0
17803 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17804 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17813 if ac_fn_c_try_run "$LINENO"; then :
17814 gl_cv_header_working_stdint_h=yes
17816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17817 conftest.$ac_objext conftest.beam conftest.$ac_ext
17822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17826 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17828 if test "$gl_cv_header_working_stdint_h" = yes; then
17831 for ac_header in sys/inttypes.h sys/bitypes.h
17833 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17834 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17835 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17836 cat >>confdefs.h <<_ACEOF
17837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17844 if test $ac_cv_header_sys_inttypes_h = yes; then
17845 HAVE_SYS_INTTYPES_H=1
17847 HAVE_SYS_INTTYPES_H=0
17850 if test $ac_cv_header_sys_bitypes_h = yes; then
17851 HAVE_SYS_BITYPES_H=1
17853 HAVE_SYS_BITYPES_H=0
17867 if test $APPLE_UNIVERSAL_BUILD = 0; then
17870 for gltype in ptrdiff_t size_t ; do
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17872 $as_echo_n "checking for bit size of $gltype... " >&6; }
17873 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
17874 $as_echo_n "(cached) " >&6
17876 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17877 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17878 included before <wchar.h>. */
17879 #include <stddef.h>
17880 #include <signal.h>
17882 # include <stdio.h>
17884 # include <wchar.h>
17887 #include <limits.h>"; then :
17893 eval gl_cv_bitsizeof_${gltype}=\$result
17896 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17898 $as_echo "$ac_res" >&6; }
17899 eval result=\$gl_cv_bitsizeof_${gltype}
17900 if test $result = unknown; then
17903 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17904 cat >>confdefs.h <<_ACEOF
17905 #define BITSIZEOF_${GLTYPE} $result
17908 eval BITSIZEOF_${GLTYPE}=\$result
17915 for gltype in sig_atomic_t wchar_t wint_t ; do
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17917 $as_echo_n "checking for bit size of $gltype... " >&6; }
17918 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
17919 $as_echo_n "(cached) " >&6
17921 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17922 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17923 included before <wchar.h>. */
17924 #include <stddef.h>
17925 #include <signal.h>
17927 # include <stdio.h>
17929 # include <wchar.h>
17932 #include <limits.h>"; then :
17938 eval gl_cv_bitsizeof_${gltype}=\$result
17941 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17943 $as_echo "$ac_res" >&6; }
17944 eval result=\$gl_cv_bitsizeof_${gltype}
17945 if test $result = unknown; then
17948 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17949 cat >>confdefs.h <<_ACEOF
17950 #define BITSIZEOF_${GLTYPE} $result
17953 eval BITSIZEOF_${GLTYPE}=\$result
17959 for gltype in sig_atomic_t wchar_t wint_t ; do
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17961 $as_echo_n "checking whether $gltype is signed... " >&6; }
17962 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
17963 $as_echo_n "(cached) " >&6
17965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17966 /* end confdefs.h. */
17968 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17969 included before <wchar.h>. */
17970 #include <stddef.h>
17971 #include <signal.h>
17973 # include <stdio.h>
17975 # include <wchar.h>
17978 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17987 if ac_fn_c_try_compile "$LINENO"; then :
17992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17993 eval gl_cv_type_${gltype}_signed=\$result
17996 eval ac_res=\$gl_cv_type_${gltype}_signed
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17998 $as_echo "$ac_res" >&6; }
17999 eval result=\$gl_cv_type_${gltype}_signed
18000 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18001 if test "$result" = yes; then
18002 cat >>confdefs.h <<_ACEOF
18003 #define HAVE_SIGNED_${GLTYPE} 1
18006 eval HAVE_SIGNED_${GLTYPE}=1
18008 eval HAVE_SIGNED_${GLTYPE}=0
18013 gl_cv_type_ptrdiff_t_signed=yes
18014 gl_cv_type_size_t_signed=no
18015 if test $APPLE_UNIVERSAL_BUILD = 0; then
18018 for gltype in ptrdiff_t size_t ; do
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18020 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18021 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18022 $as_echo_n "(cached) " >&6
18024 eval gl_cv_type_${gltype}_suffix=no
18025 eval result=\$gl_cv_type_${gltype}_signed
18026 if test "$result" = yes; then
18031 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18033 '') gltype1='int';;
18034 l) gltype1='long int';;
18035 ll) gltype1='long long int';;
18036 i64) gltype1='__int64';;
18037 u) gltype1='unsigned int';;
18038 ul) gltype1='unsigned long int';;
18039 ull) gltype1='unsigned long long int';;
18040 ui64)gltype1='unsigned __int64';;
18042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18043 /* end confdefs.h. */
18045 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18046 included before <wchar.h>. */
18047 #include <stddef.h>
18048 #include <signal.h>
18050 # include <stdio.h>
18052 # include <wchar.h>
18055 extern $gltype foo;
18056 extern $gltype1 foo;
18065 if ac_fn_c_try_compile "$LINENO"; then :
18066 eval gl_cv_type_${gltype}_suffix=\$glsuf
18068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18069 eval result=\$gl_cv_type_${gltype}_suffix
18070 test "$result" != no && break
18073 eval ac_res=\$gl_cv_type_${gltype}_suffix
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18075 $as_echo "$ac_res" >&6; }
18076 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18077 eval result=\$gl_cv_type_${gltype}_suffix
18078 test "$result" = no && result=
18079 eval ${GLTYPE}_SUFFIX=\$result
18080 cat >>confdefs.h <<_ACEOF
18081 #define ${GLTYPE}_SUFFIX $result
18090 for gltype in sig_atomic_t wchar_t wint_t ; do
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18092 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18093 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18094 $as_echo_n "(cached) " >&6
18096 eval gl_cv_type_${gltype}_suffix=no
18097 eval result=\$gl_cv_type_${gltype}_signed
18098 if test "$result" = yes; then
18103 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18105 '') gltype1='int';;
18106 l) gltype1='long int';;
18107 ll) gltype1='long long int';;
18108 i64) gltype1='__int64';;
18109 u) gltype1='unsigned int';;
18110 ul) gltype1='unsigned long int';;
18111 ull) gltype1='unsigned long long int';;
18112 ui64)gltype1='unsigned __int64';;
18114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18115 /* end confdefs.h. */
18117 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18118 included before <wchar.h>. */
18119 #include <stddef.h>
18120 #include <signal.h>
18122 # include <stdio.h>
18124 # include <wchar.h>
18127 extern $gltype foo;
18128 extern $gltype1 foo;
18137 if ac_fn_c_try_compile "$LINENO"; then :
18138 eval gl_cv_type_${gltype}_suffix=\$glsuf
18140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18141 eval result=\$gl_cv_type_${gltype}_suffix
18142 test "$result" != no && break
18145 eval ac_res=\$gl_cv_type_${gltype}_suffix
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18147 $as_echo "$ac_res" >&6; }
18148 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18149 eval result=\$gl_cv_type_${gltype}_suffix
18150 test "$result" = no && result=
18151 eval ${GLTYPE}_SUFFIX=\$result
18152 cat >>confdefs.h <<_ACEOF
18153 #define ${GLTYPE}_SUFFIX $result
18164 # Code from module stdio:
18181 if test $gl_cv_have_include_next = yes; then
18182 gl_cv_next_stdio_h='<'stdio.h'>'
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
18185 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
18186 if ${gl_cv_next_stdio_h+:} false; then :
18187 $as_echo_n "(cached) " >&6
18190 if test $ac_cv_header_stdio_h = yes; then
18191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18192 /* end confdefs.h. */
18197 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18198 *) gl_absname_cpp="$ac_cpp" ;;
18200 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18201 sed -n '\#/stdio.h#{
18202 s#.*"\(.*/stdio.h\)".*#\1#
18208 gl_cv_next_stdio_h='<'stdio.h'>'
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
18213 $as_echo "$gl_cv_next_stdio_h" >&6; }
18215 NEXT_STDIO_H=$gl_cv_next_stdio_h
18217 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18218 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18219 gl_next_as_first_directive='<'stdio.h'>'
18221 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18222 gl_next_as_first_directive=$gl_cv_next_stdio_h
18224 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
18241 for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat snprintf tmpfile vdprintf vsnprintf; do
18242 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18244 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18245 if eval \${$as_gl_Symbol+:} false; then :
18246 $as_echo_n "(cached) " >&6
18248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18249 /* end confdefs.h. */
18261 if ac_fn_c_try_compile "$LINENO"; then :
18262 eval "$as_gl_Symbol=yes"
18264 eval "$as_gl_Symbol=no"
18266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18268 eval ac_res=\$$as_gl_Symbol
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18270 $as_echo "$ac_res" >&6; }
18271 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18272 cat >>confdefs.h <<_ACEOF
18273 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18276 eval ac_cv_have_decl_$gl_func=yes
18281 # Code from module stdlib:
18296 if test $gl_cv_have_include_next = yes; then
18297 gl_cv_next_stdlib_h='<'stdlib.h'>'
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
18300 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
18301 if ${gl_cv_next_stdlib_h+:} false; then :
18302 $as_echo_n "(cached) " >&6
18305 if test $ac_cv_header_stdlib_h = yes; then
18306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18307 /* end confdefs.h. */
18308 #include <stdlib.h>
18312 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18313 *) gl_absname_cpp="$ac_cpp" ;;
18315 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18316 sed -n '\#/stdlib.h#{
18317 s#.*"\(.*/stdlib.h\)".*#\1#
18323 gl_cv_next_stdlib_h='<'stdlib.h'>'
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
18328 $as_echo "$gl_cv_next_stdlib_h" >&6; }
18330 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
18332 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18333 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18334 gl_next_as_first_directive='<'stdlib.h'>'
18336 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18337 gl_next_as_first_directive=$gl_cv_next_stdlib_h
18339 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
18343 for ac_header in random.h
18345 ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
18347 if test "x$ac_cv_header_random_h" = xyes; then :
18348 cat >>confdefs.h <<_ACEOF
18349 #define HAVE_RANDOM_H 1
18356 if test $ac_cv_header_random_h = yes; then
18362 ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
18364 # include <random.h>
18368 if test "x$ac_cv_type_struct_random_data" = xyes; then :
18370 cat >>confdefs.h <<_ACEOF
18371 #define HAVE_STRUCT_RANDOM_DATA 1
18376 HAVE_STRUCT_RANDOM_DATA=0
18381 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
18382 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18384 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18385 if eval \${$as_gl_Symbol+:} false; then :
18386 $as_echo_n "(cached) " >&6
18388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18389 /* end confdefs.h. */
18390 #include <stdlib.h>
18391 #if HAVE_SYS_LOADAVG_H
18392 # include <sys/loadavg.h>
18395 # include <random.h>
18407 if ac_fn_c_try_compile "$LINENO"; then :
18408 eval "$as_gl_Symbol=yes"
18410 eval "$as_gl_Symbol=no"
18412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18414 eval ac_res=\$$as_gl_Symbol
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18416 $as_echo "$ac_res" >&6; }
18417 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18418 cat >>confdefs.h <<_ACEOF
18419 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18422 eval ac_cv_have_decl_$gl_func=yes
18427 # Code from module streq:
18428 # Code from module string:
18432 # Code from module sys_socket:
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
18438 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
18439 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
18440 $as_echo_n "(cached) " >&6
18443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18444 /* end confdefs.h. */
18445 #include <sys/socket.h>
18454 if ac_fn_c_try_compile "$LINENO"; then :
18455 gl_cv_header_sys_socket_h_selfcontained=yes
18457 gl_cv_header_sys_socket_h_selfcontained=no
18459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
18463 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
18464 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
18465 for ac_func in shutdown
18467 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
18468 if test "x$ac_cv_func_shutdown" = xyes; then :
18469 cat >>confdefs.h <<_ACEOF
18470 #define HAVE_SHUTDOWN 1
18476 if test $ac_cv_func_shutdown = yes; then
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
18478 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
18479 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
18480 $as_echo_n "(cached) " >&6
18483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18484 /* end confdefs.h. */
18485 #include <sys/socket.h>
18489 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
18494 if ac_fn_c_try_compile "$LINENO"; then :
18495 gl_cv_header_sys_socket_h_shut=yes
18497 gl_cv_header_sys_socket_h_shut=no
18499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
18503 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
18504 if test $gl_cv_header_sys_socket_h_shut = no; then
18505 SYS_SOCKET_H='sys/socket.h'
18509 # We need to check for ws2tcpip.h now.
18523 if test $gl_cv_have_include_next = yes; then
18524 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
18527 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
18528 if ${gl_cv_next_sys_socket_h+:} false; then :
18529 $as_echo_n "(cached) " >&6
18532 if test $ac_cv_header_sys_socket_h = yes; then
18533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18534 /* end confdefs.h. */
18535 #include <sys/socket.h>
18539 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18540 *) gl_absname_cpp="$ac_cpp" ;;
18542 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18543 sed -n '\#/sys/socket.h#{
18544 s#.*"\(.*/sys/socket.h\)".*#\1#
18550 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
18555 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
18557 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
18559 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18560 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18561 gl_next_as_first_directive='<'sys/socket.h'>'
18563 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18564 gl_next_as_first_directive=$gl_cv_next_sys_socket_h
18566 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
18570 if test $ac_cv_header_sys_socket_h = yes; then
18571 HAVE_SYS_SOCKET_H=1
18574 HAVE_SYS_SOCKET_H=0
18575 for ac_header in ws2tcpip.h
18577 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18578 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
18579 cat >>confdefs.h <<_ACEOF
18580 #define HAVE_WS2TCPIP_H 1
18587 if test $ac_cv_header_ws2tcpip_h = yes; then
18596 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
18597 /* sys/types.h is not needed according to POSIX, but the
18598 sys/socket.h in i386-unknown-freebsd4.10 and
18599 powerpc-apple-darwin5.5 required it. */
18600 #include <sys/types.h>
18601 #ifdef HAVE_SYS_SOCKET_H
18602 #include <sys/socket.h>
18604 #ifdef HAVE_WS2TCPIP_H
18605 #include <ws2tcpip.h>
18609 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
18611 cat >>confdefs.h <<_ACEOF
18612 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
18617 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
18618 /* sys/types.h is not needed according to POSIX, but the
18619 sys/socket.h in i386-unknown-freebsd4.10 and
18620 powerpc-apple-darwin5.5 required it. */
18621 #include <sys/types.h>
18622 #ifdef HAVE_SYS_SOCKET_H
18623 #include <sys/socket.h>
18625 #ifdef HAVE_WS2TCPIP_H
18626 #include <ws2tcpip.h>
18630 if test "x$ac_cv_type_sa_family_t" = xyes; then :
18632 cat >>confdefs.h <<_ACEOF
18633 #define HAVE_SA_FAMILY_T 1
18639 if test $ac_cv_type_struct_sockaddr_storage = no; then
18640 HAVE_STRUCT_SOCKADDR_STORAGE=0
18642 if test $ac_cv_type_sa_family_t = no; then
18655 if test $ac_cv_header_sys_socket_h != yes; then
18656 for ac_header in winsock2.h
18658 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18659 if test "x$ac_cv_header_winsock2_h" = xyes; then :
18660 cat >>confdefs.h <<_ACEOF
18661 #define HAVE_WINSOCK2_H 1
18669 if test "$ac_cv_header_winsock2_h" = yes; then
18671 UNISTD_H_HAVE_WINSOCK2_H=1
18672 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18680 for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do
18681 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18683 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18684 if eval \${$as_gl_Symbol+:} false; then :
18685 $as_echo_n "(cached) " >&6
18687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18688 /* end confdefs.h. */
18690 /* Some systems require prerequisite headers. */
18691 #include <sys/types.h>
18692 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
18693 # include <sys/time.h>
18695 #include <sys/select.h>
18706 if ac_fn_c_try_compile "$LINENO"; then :
18707 eval "$as_gl_Symbol=yes"
18709 eval "$as_gl_Symbol=no"
18711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18713 eval ac_res=\$$as_gl_Symbol
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18715 $as_echo "$ac_res" >&6; }
18716 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18717 cat >>confdefs.h <<_ACEOF
18718 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18721 eval ac_cv_have_decl_$gl_func=yes
18727 # Code from module sys_stat:
18747 if test $gl_cv_have_include_next = yes; then
18748 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
18751 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
18752 if ${gl_cv_next_sys_stat_h+:} false; then :
18753 $as_echo_n "(cached) " >&6
18756 if test $ac_cv_header_sys_stat_h = yes; then
18757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18758 /* end confdefs.h. */
18759 #include <sys/stat.h>
18763 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18764 *) gl_absname_cpp="$ac_cpp" ;;
18766 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18767 sed -n '\#/sys/stat.h#{
18768 s#.*"\(.*/sys/stat.h\)".*#\1#
18774 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
18779 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
18781 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
18783 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18784 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18785 gl_next_as_first_directive='<'sys/stat.h'>'
18787 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18788 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
18790 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
18795 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
18796 #include <sys/stat.h>
18798 if test "x$ac_cv_type_nlink_t" = xyes; then :
18802 $as_echo "#define nlink_t int" >>confdefs.h
18808 for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
18809 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18811 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18812 if eval \${$as_gl_Symbol+:} false; then :
18813 $as_echo_n "(cached) " >&6
18815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18816 /* end confdefs.h. */
18817 #include <sys/stat.h>
18828 if ac_fn_c_try_compile "$LINENO"; then :
18829 eval "$as_gl_Symbol=yes"
18831 eval "$as_gl_Symbol=no"
18833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18835 eval ac_res=\$$as_gl_Symbol
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18837 $as_echo "$ac_res" >&6; }
18838 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18839 cat >>confdefs.h <<_ACEOF
18840 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18843 eval ac_cv_have_decl_$gl_func=yes
18849 # Code from module sys_time:
18854 # Code from module tempname:
18866 gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
18872 # Code from module threadlib:
18877 # Code from module time:
18881 # Code from module unistd:
18898 if test $gl_cv_have_include_next = yes; then
18899 gl_cv_next_unistd_h='<'unistd.h'>'
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18902 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18903 if ${gl_cv_next_unistd_h+:} false; then :
18904 $as_echo_n "(cached) " >&6
18907 if test $ac_cv_header_unistd_h = yes; then
18908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18909 /* end confdefs.h. */
18910 #include <unistd.h>
18914 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18915 *) gl_absname_cpp="$ac_cpp" ;;
18917 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18918 sed -n '\#/unistd.h#{
18919 s#.*"\(.*/unistd.h\)".*#\1#
18925 gl_cv_next_unistd_h='<'unistd.h'>'
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18930 $as_echo "$gl_cv_next_unistd_h" >&6; }
18932 NEXT_UNISTD_H=$gl_cv_next_unistd_h
18934 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18935 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18936 gl_next_as_first_directive='<'unistd.h'>'
18938 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18939 gl_next_as_first_directive=$gl_cv_next_unistd_h
18941 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18953 if test $ac_cv_header_unistd_h = yes; then
18961 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
18962 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18964 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18965 if eval \${$as_gl_Symbol+:} false; then :
18966 $as_echo_n "(cached) " >&6
18968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18969 /* end confdefs.h. */
18970 #include <unistd.h>
18971 /* Some systems declare various items in the wrong headers. */
18973 # include <fcntl.h>
18974 # include <stdio.h>
18975 # include <stdlib.h>
18976 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18990 if ac_fn_c_try_compile "$LINENO"; then :
18991 eval "$as_gl_Symbol=yes"
18993 eval "$as_gl_Symbol=no"
18995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18997 eval ac_res=\$$as_gl_Symbol
18998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18999 $as_echo "$ac_res" >&6; }
19000 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19001 cat >>confdefs.h <<_ACEOF
19002 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19005 eval ac_cv_have_decl_$gl_func=yes
19010 # Code from module vasnprintf:
19019 if test $ac_cv_func_vasnprintf = no; then
19036 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
19046 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
19056 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
19066 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
19068 if test $ac_cv_func_vasnprintf = yes; then
19070 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
19083 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19084 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19088 $as_echo "#define ptrdiff_t long" >>confdefs.h
19101 # Code from module verify:
19102 # Code from module warn-on-use:
19103 # Code from module wchar:
19126 if test $gl_cv_have_include_next = yes; then
19127 gl_cv_next_wchar_h='<'wchar.h'>'
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
19130 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
19131 if ${gl_cv_next_wchar_h+:} false; then :
19132 $as_echo_n "(cached) " >&6
19135 if test $ac_cv_header_wchar_h = yes; then
19136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19137 /* end confdefs.h. */
19142 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19143 *) gl_absname_cpp="$ac_cpp" ;;
19145 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19146 sed -n '\#/wchar.h#{
19147 s#.*"\(.*/wchar.h\)".*#\1#
19153 gl_cv_next_wchar_h='<'wchar.h'>'
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
19158 $as_echo "$gl_cv_next_wchar_h" >&6; }
19160 NEXT_WCHAR_H=$gl_cv_next_wchar_h
19162 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19163 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19164 gl_next_as_first_directive='<'wchar.h'>'
19166 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19167 gl_next_as_first_directive=$gl_cv_next_wchar_h
19169 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
19173 if test $ac_cv_header_wchar_h = yes; then
19181 if test $gt_cv_c_wint_t = yes; then
19189 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
19190 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19192 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19193 if eval \${$as_gl_Symbol+:} false; then :
19194 $as_echo_n "(cached) " >&6
19196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19197 /* end confdefs.h. */
19199 /* Some systems require additional headers. */
19201 # include <stddef.h>
19202 # include <stdio.h>
19216 if ac_fn_c_try_compile "$LINENO"; then :
19217 eval "$as_gl_Symbol=yes"
19219 eval "$as_gl_Symbol=no"
19221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19223 eval ac_res=\$$as_gl_Symbol
19224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19225 $as_echo "$ac_res" >&6; }
19226 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19227 cat >>confdefs.h <<_ACEOF
19228 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19231 eval ac_cv_have_decl_$gl_func=yes
19236 # Code from module wcrtomb:
19259 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
19264 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
19265 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
19266 $as_echo_n "(cached) " >&6
19270 # Guess no on AIX and OSF/1.
19271 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
19272 # Guess yes otherwise.
19273 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
19275 if test $LOCALE_JA != none; then
19276 if test "$cross_compiling" = yes; then :
19279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19280 /* end confdefs.h. */
19282 #include <locale.h>
19283 #include <string.h>
19287 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19289 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19293 memset (&state, '\0', sizeof (mbstate_t));
19294 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19295 if (mbsinit (&state))
19301 if ac_fn_c_try_run "$LINENO"; then :
19302 gl_cv_func_mbrtowc_incomplete_state=yes
19304 gl_cv_func_mbrtowc_incomplete_state=no
19306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19307 conftest.$ac_objext conftest.beam conftest.$ac_ext
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19314 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19320 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19321 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
19322 $as_echo_n "(cached) " >&6
19326 # Guess no on Solaris 8.
19327 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
19328 # Guess yes otherwise.
19329 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
19331 if test $LOCALE_ZH_CN != none; then
19332 if test "$cross_compiling" = yes; then :
19335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19336 /* end confdefs.h. */
19338 #include <locale.h>
19339 #include <stdlib.h>
19340 #include <string.h>
19344 /* This fails on Solaris 8:
19345 mbrtowc returns 2, and sets wc to 0x00F0.
19346 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
19347 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19349 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19353 memset (&state, '\0', sizeof (mbstate_t));
19354 if (mbrtowc (&wc, input + 3, 6, &state) != 4
19355 && mbtowc (&wc, input + 3, 6) == 4)
19361 if ac_fn_c_try_run "$LINENO"; then :
19362 gl_cv_func_mbrtowc_sanitycheck=yes
19364 gl_cv_func_mbrtowc_sanitycheck=no
19366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19367 conftest.$ac_objext conftest.beam conftest.$ac_ext
19373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19374 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19376 REPLACE_MBSTATE_T=0
19377 case "$gl_cv_func_mbrtowc_incomplete_state" in
19379 *) REPLACE_MBSTATE_T=1 ;;
19381 case "$gl_cv_func_mbrtowc_sanitycheck" in
19383 *) REPLACE_MBSTATE_T=1 ;;
19386 REPLACE_MBSTATE_T=1
19388 if test $REPLACE_MBSTATE_T = 1; then
19402 if test $ac_cv_func_wcrtomb = no; then
19405 if test $REPLACE_MBSTATE_T = 1; then
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
19414 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
19415 if ${gl_cv_func_wcrtomb_retval+:} false; then :
19416 $as_echo_n "(cached) " >&6
19420 # Guess no on AIX 4, OSF/1 and Solaris.
19421 aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
19422 # Guess yes otherwise.
19423 *) gl_cv_func_wcrtomb_retval="guessing yes" ;;
19425 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
19426 if test "$cross_compiling" = yes; then :
19429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19430 /* end confdefs.h. */
19432 #include <locale.h>
19434 #include <string.h>
19438 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
19440 if (wcrtomb (NULL, 0, NULL) != 1)
19443 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19445 if (wcrtomb (NULL, 0, NULL) != 1)
19448 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19450 if (wcrtomb (NULL, 0, NULL) != 1)
19453 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19455 if (wcrtomb (NULL, 0, NULL) != 1)
19461 if ac_fn_c_try_run "$LINENO"; then :
19462 gl_cv_func_wcrtomb_retval=yes
19464 gl_cv_func_wcrtomb_retval=no
19466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19467 conftest.$ac_objext conftest.beam conftest.$ac_ext
19473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
19474 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
19475 case "$gl_cv_func_wcrtomb_retval" in
19477 *) REPLACE_WCRTOMB=1 ;;
19481 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
19493 gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
19507 $as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
19511 # Code from module wctype:
19522 if test $ac_cv_func_iswcntrl = yes; then
19542 if test $ac_cv_func_iswblank = yes; then
19547 if test $ac_cv_have_decl_iswblank = yes; then
19566 if test $gt_cv_c_wint_t = yes; then
19573 if test $ac_cv_header_wctype_h = yes; then
19574 if test $ac_cv_func_iswcntrl = yes; then
19575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
19576 $as_echo_n "checking whether iswcntrl works... " >&6; }
19577 if ${gl_cv_func_iswcntrl_works+:} false; then :
19578 $as_echo_n "(cached) " >&6
19581 if test "$cross_compiling" = yes; then :
19582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19583 /* end confdefs.h. */
19584 #include <stdlib.h>
19585 #if __GNU_LIBRARY__ == 1
19586 Linux libc5 i18n is broken.
19596 if ac_fn_c_try_compile "$LINENO"; then :
19597 gl_cv_func_iswcntrl_works=yes
19599 gl_cv_func_iswcntrl_works=no
19601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19605 /* end confdefs.h. */
19607 #include <stddef.h>
19611 #include <wctype.h>
19612 int main () { return iswprint ('x') == 0; }
19614 if ac_fn_c_try_run "$LINENO"; then :
19615 gl_cv_func_iswcntrl_works=yes
19617 gl_cv_func_iswcntrl_works=no
19619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19620 conftest.$ac_objext conftest.beam conftest.$ac_ext
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
19626 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
19640 if test $gl_cv_have_include_next = yes; then
19641 gl_cv_next_wctype_h='<'wctype.h'>'
19643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
19644 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
19645 if ${gl_cv_next_wctype_h+:} false; then :
19646 $as_echo_n "(cached) " >&6
19649 if test $ac_cv_header_wctype_h = yes; then
19650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19651 /* end confdefs.h. */
19652 #include <wctype.h>
19656 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19657 *) gl_absname_cpp="$ac_cpp" ;;
19659 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19660 sed -n '\#/wctype.h#{
19661 s#.*"\(.*/wctype.h\)".*#\1#
19667 gl_cv_next_wctype_h='<'wctype.h'>'
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
19672 $as_echo "$gl_cv_next_wctype_h" >&6; }
19674 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
19676 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19677 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19678 gl_next_as_first_directive='<'wctype.h'>'
19680 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19681 gl_next_as_first_directive=$gl_cv_next_wctype_h
19683 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
19693 if test "$gl_cv_func_iswcntrl_works" = no; then
19700 # Code from module write:
19712 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
19716 # Code from module xsize:
19720 for ac_header in stdint.h
19722 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19723 if test "x$ac_cv_header_stdint_h" = xyes; then :
19724 cat >>confdefs.h <<_ACEOF
19725 #define HAVE_STDINT_H 1
19733 # End of code from modules
19754 gl_source_base='tests'
19755 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
19757 gl_module_indicator_condition=$gltests_WITNESS
19771 # support deprecated ./configure flags to set various compiler flags
19774 # Check whether --with-cflags was given.
19775 if test "${with_cflags+set}" = set; then :
19776 withval=$with_cflags;
19778 "" | y | ye | yes | n | no)
19779 as_fn_error $? "*** You must supply an argument to the --with-cflags option." "$LINENO" 5
19789 # Check whether --with-includes was given.
19790 if test "${with_includes+set}" = set; then :
19791 withval=$with_includes;
19793 "" | y | ye | yes | n | no)
19794 as_fn_error $? "*** You must supply an argument to the --with-includes option." "$LINENO" 5
19798 for dir in $withval; do
19799 if test -d "$dir"; then
19800 CPPFLAGS="$CPPFLAGS -I$dir"
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Include directory $dir does not exist." >&5
19804 $as_echo "$as_me: WARNING: Include directory $dir does not exist." >&2;}
19807 cat <<AAW_EOF >>config.warnings
19808 Include directory $dir does not exist.
19819 # Check whether --with-libraries was given.
19820 if test "${with_libraries+set}" = set; then :
19821 withval=$with_libraries;
19823 "" | y | ye | yes | n | no)
19824 as_fn_error $? "*** You must supply an argument to the --with-libraries option." "$LINENO" 5
19828 for dir in $withval; do
19829 if test -d "$dir"; then
19831 *-solaris2*,*-netbsd*)
19832 LDFLAGS="$LDFLAGS -R$dir"
19835 LDFLAGS="$LDFLAGS -L$dir"
19838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Library directory $dir does not exist." >&5
19839 $as_echo "$as_me: WARNING: Library directory $dir does not exist." >&2;}
19842 cat <<AAW_EOF >>config.warnings
19843 Library directory $dir does not exist.
19853 # Disable strict-aliasing optimizations
19855 # test for -W'feature', then add the 'no-' version.
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -fstrict-aliasing" >&5
19860 $as_echo_n "checking for gcc flag -fstrict-aliasing... " >&6; }
19861 if test "x$GCC" = "xyes"; then
19862 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19863 $CC -v --help 2>&1) |
19864 $EGREP -- '[^[:alnum:]]-fstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
19865 if test $? -eq 0; then
19867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19868 $as_echo "yes" >&6; }
19871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19872 $as_echo "no" >&6; }
19876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
19877 $as_echo "no (not using gcc)" >&6; }
19880 if test x"$found_warning" = x"yes"; then
19881 CFLAGS="$CFLAGS -fno-strict-aliasing"
19883 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing"
19892 # Warn for just about everything
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wall" >&5
19898 $as_echo_n "checking for gcc flag -Wall... " >&6; }
19899 if test "x$GCC" = "xyes"; then
19900 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19901 $CC -v --help 2>&1) |
19902 $EGREP -- '[^[:alnum:]]-Wall[^[:alnum:]-]' 2>&1 > /dev/null
19903 if test $? -eq 0; then
19905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19906 $as_echo "yes" >&6; }
19909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19910 $as_echo "no" >&6; }
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
19915 $as_echo "no (not using gcc)" >&6; }
19918 if test x"$found_warning" = x"yes"; then
19919 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wall"
19928 # And add any extra warnings too
19932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wextra" >&5
19933 $as_echo_n "checking for gcc flag -Wextra... " >&6; }
19934 if test "x$GCC" = "xyes"; then
19935 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19936 $CC -v --help 2>&1) |
19937 $EGREP -- '[^[:alnum:]]-Wextra[^[:alnum:]-]' 2>&1 > /dev/null
19938 if test $? -eq 0; then
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19941 $as_echo "yes" >&6; }
19944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19945 $as_echo "no" >&6; }
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
19950 $as_echo "no (not using gcc)" >&6; }
19953 if test x"$found_warning" = x"yes"; then
19954 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wextra"
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -W" >&5
19962 $as_echo_n "checking for gcc flag -W... " >&6; }
19963 if test "x$GCC" = "xyes"; then
19964 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19965 $CC -v --help 2>&1) |
19966 $EGREP -- '^[:alnum:]-W^[:alnum:]-' 2>&1 > /dev/null
19967 if test $? -eq 0; then
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19970 $as_echo "yes" >&6; }
19973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19974 $as_echo "no" >&6; }
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
19979 $as_echo "no (not using gcc)" >&6; }
19982 if test x"$found_warning" = x"yes"; then
19983 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -W"
19995 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
19998 # Check whether --enable-as-needed was given.
19999 if test "${enable_as_needed+set}" = set; then :
20000 enableval=$enable_as_needed; WANT_AS_NEEDED=$enableval
20006 if test x"$WANT_AS_NEEDED" = x"yes"; then
20007 WANT_AS_NEEDED_TRUE=
20008 WANT_AS_NEEDED_FALSE='#'
20010 WANT_AS_NEEDED_TRUE='#'
20011 WANT_AS_NEEDED_FALSE=
20015 if test x"$WANT_AS_NEEDED" = x"yes"; then
20016 AS_NEEDED_FLAGS="-Wl,--as-needed"
20025 # Configuration flags (--with-xxx and --enable-xxx)
20030 # Check whether --with-user was given.
20031 if test "${with_user+set}" = set; then :
20032 withval=$with_user;
20034 "" | y | ye | yes | n | no)
20035 as_fn_error $? "*** You must supply an argument to the --with-user option." "$LINENO" 5
20038 CLIENT_LOGIN="$withval"
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no user specified (--with-user) -- using 'amanda'" >&5
20046 $as_echo "$as_me: WARNING: no user specified (--with-user) -- using 'amanda'" >&2;}
20049 cat <<AAW_EOF >>config.warnings
20050 no user specified (--with-user) -- using 'amanda'
20054 CLIENT_LOGIN=amanda
20061 cat >>confdefs.h <<_ACEOF
20062 #define CLIENT_LOGIN "$CLIENT_LOGIN"
20069 # Check whether --with-group was given.
20070 if test "${with_group+set}" = set; then :
20071 withval=$with_group;
20073 "" | y | ye | yes | n | no)
20074 as_fn_error $? "*** You must supply an argument to the --with-group option." "$LINENO" 5
20076 *) SETUID_GROUP="$withval"
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no group specified (--with-group) -- using 'backup'" >&5
20084 $as_echo "$as_me: WARNING: no group specified (--with-group) -- using 'backup'" >&2;}
20087 cat <<AAW_EOF >>config.warnings
20088 no group specified (--with-group) -- using 'backup'
20092 SETUID_GROUP=backup
20101 # Check whether --with-dumperdir was given.
20102 if test "${with_dumperdir+set}" = set; then :
20103 withval=$with_dumperdir;
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-dumperdir is no longer used." >&5
20106 $as_echo "$as_me: WARNING: --with-dumperdir is no longer used." >&2;}
20109 cat <<AAW_EOF >>config.warnings
20110 --with-dumperdir is no longer used.
20121 # Check whether --with-configdir was given.
20122 if test "${with_configdir+set}" = set; then :
20123 withval=$with_configdir;
20125 "" | y | ye | yes | n | no)
20126 as_fn_error $? "*** You must supply an argument to the --with-configdir option." "$LINENO" 5
20128 *) CONFIG_DIR="$withval"
20134 : ${CONFIG_DIR='${sysconfdir}/amanda'} # (variable will be evaluated below)
20142 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20143 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20144 eval ac_define_dir="\"$CONFIG_DIR\""
20145 eval ac_define_dir="\"$ac_define_dir\""
20146 CONFIG_DIR="$ac_define_dir"
20149 cat >>confdefs.h <<_ACEOF
20150 #define CONFIG_DIR "$ac_define_dir"
20153 test "$prefix_NONE" && prefix=NONE
20154 test "$exec_prefix_NONE" && exec_prefix=NONE
20159 # Check whether --with-indexdir was given.
20160 if test "${with_indexdir+set}" = set; then :
20161 withval=$with_indexdir; as_fn_error $? "*** --with-indexdir is deprecated; use indexdir in amanda.conf instead." "$LINENO" 5
20168 # Check whether --with-dbdir was given.
20169 if test "${with_dbdir+set}" = set; then :
20170 withval=$with_dbdir; as_fn_error $? "*** --with-dbdir is deprecated; use infofile in amanda.conf instead." "$LINENO" 5
20177 # Check whether --with-logdir was given.
20178 if test "${with_logdir+set}" = set; then :
20179 withval=$with_logdir; as_fn_error $? "*** --with-logdir is deprecated; use logfile in amanda.conf instead." "$LINENO" 5
20186 # Check whether --with-suffixes was given.
20187 if test "${with_suffixes+set}" = set; then :
20188 withval=$with_suffixes;
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** --with-suffixes is deprecated" >&5
20191 $as_echo "$as_me: WARNING: ** --with-suffixes is deprecated" >&2;}
20194 cat <<AAW_EOF >>config.warnings
20195 ** --with-suffixes is deprecated
20205 # Check whether --with-gnutar-listdir was given.
20206 if test "${with_gnutar_listdir+set}" = set; then :
20207 withval=$with_gnutar_listdir;
20209 n | no) GNUTAR_LISTDIR= ;;
20210 y | ye | yes) GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists' ;;
20211 *) GNUTAR_LISTDIR="$withval" ;;
20216 GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists'
20222 # substitute $prefix, etc. if necessary
20226 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20227 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20228 eval ac_define_dir="\"$GNUTAR_LISTDIR\""
20229 eval ac_define_dir="\"$ac_define_dir\""
20230 GNUTAR_LISTED_INCREMENTAL_DIR="$ac_define_dir"
20233 cat >>confdefs.h <<_ACEOF
20234 #define GNUTAR_LISTED_INCREMENTAL_DIR "$ac_define_dir"
20237 test "$prefix_NONE" && prefix=NONE
20238 test "$exec_prefix_NONE" && exec_prefix=NONE
20241 # handle deprecated option
20243 # Check whether --with-gnutar-listed-incremental was given.
20244 if test "${with_gnutar_listed_incremental+set}" = set; then :
20245 withval=$with_gnutar_listed_incremental;
20246 as_fn_error $? "*** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" "$LINENO" 5
20254 # Check whether --with-tmpdir was given.
20255 if test "${with_tmpdir+set}" = set; then :
20256 withval=$with_tmpdir;
20268 n | no) as_fn_error $? "*** --without-tmpdir is not allowed." "$LINENO" 5;;
20269 y | ye | yes) AMANDA_TMPDIR="/tmp/amanda";;
20270 *) AMANDA_TMPDIR="$tmpdir";;
20276 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20277 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20278 eval ac_define_dir="\"$AMANDA_TMPDIR\""
20279 eval ac_define_dir="\"$ac_define_dir\""
20280 AMANDA_TMPDIR="$ac_define_dir"
20283 cat >>confdefs.h <<_ACEOF
20284 #define AMANDA_TMPDIR "$ac_define_dir"
20287 test "$prefix_NONE" && prefix=NONE
20288 test "$exec_prefix_NONE" && exec_prefix=NONE
20293 # Check whether --with-force-uid was given.
20294 if test "${with_force_uid+set}" = set; then :
20295 withval=$with_force_uid; CHECK_USERID="$withval"
20297 : ${CHECK_USERID=yes}
20301 case "$CHECK_USERID" in
20305 $as_echo "#define CHECK_USERID 1" >>confdefs.h
20312 as_fn_error $? "*** You must not supply an argument to --with-force-uid option." "$LINENO" 5
20315 if test x"$CHECK_USERID" = x"1"; then
20317 CHECK_USERID_FALSE='#'
20319 CHECK_USERID_TRUE='#'
20320 CHECK_USERID_FALSE=
20327 # Check whether --with-owner was given.
20328 if test "${with_owner+set}" = set; then :
20329 withval=$with_owner;
20331 "" | y | ye | yes | n | no)
20332 as_fn_error $? "*** You must supply an argument to the --with-owner option." "$LINENO" 5
20334 *) BINARY_OWNER="$withval"
20340 BINARY_OWNER="$CLIENT_LOGIN"
20346 cat >>confdefs.h <<_ACEOF
20347 #define BINARY_OWNER "$BINARY_OWNER"
20354 # Check whether --with-fqdn was given.
20355 if test "${with_fqdn+set}" = set; then :
20356 withval=$with_fqdn; USE_FQDN=$withval
20362 case "$USE_FQDN" in
20366 $as_echo "#define USE_FQDN 1" >>confdefs.h
20369 *) as_fn_error $? "You must not supply an argument to --with-fqdn option." "$LINENO" 5
20375 # Check whether --with-reuseports was given.
20376 if test "${with_reuseports+set}" = set; then :
20377 withval=$with_reuseports; case "$withval" in
20378 y | ye | yes) USE_REUSEADDR=no;;
20379 n | no) USE_REUSEADDR=yes;;
20380 *) as_fn_error $? "You must not supply an argument to --without-reuseports" "$LINENO" 5;;
20387 if test x"$USE_REUSEADDR" = x"yes"; then
20389 $as_echo "#define USE_REUSEADDR 1" >>confdefs.h
20395 # Check whether --with-low-tcpportrange was given.
20396 if test "${with_low_tcpportrange+set}" = set; then :
20397 withval=$with_low_tcpportrange; LOW_TCPPORTRANGE="$withval"
20399 LOW_TCPPORTRANGE=unlimited
20403 if test x"$LOW_TCPPORTRANGE" != x"unlimited"; then
20404 if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
20405 as_fn_error $? "--with-low-tcpportrange requires two comma-separated positive numbers" "$LINENO" 5
20407 min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
20408 max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
20409 if test $min_low_tcp_port -gt $max_low_tcp_port; then
20410 as_fn_error $? "the second TCP port number must be greater than the first in --with-low-tcpportrange" "$LINENO" 5
20412 if test $min_low_tcp_port -lt 512; then
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&5
20415 $as_echo "$as_me: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&2;}
20418 cat <<AAW_EOF >>config.warnings
20419 the low TCP port range should be 512 or greater in --with-low-tcpportrange
20424 if test $max_low_tcp_port -ge 1024; then
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&5
20427 $as_echo "$as_me: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&2;}
20430 cat <<AAW_EOF >>config.warnings
20431 the low TCP port range should be less than 1024 in --with-low-tcpportrange
20437 cat >>confdefs.h <<_ACEOF
20438 #define LOW_TCPPORTRANGE $LOW_TCPPORTRANGE
20444 # Check whether --with-tcpportrange was given.
20445 if test "${with_tcpportrange+set}" = set; then :
20446 withval=$with_tcpportrange; TCPPORTRANGE="$withval"
20448 TCPPORTRANGE="unlimited"
20452 if test x"$TCPPORTRANGE" != x"unlimited"; then
20453 if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
20454 as_fn_error $? "--with-tcpportrange requires two comma-separated positive numbers" "$LINENO" 5
20456 min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
20457 max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
20458 if test $min_tcp_port -gt $max_tcp_port; then
20459 as_fn_error $? "the second TCP port number must be greater than the first in --with-tcpportrange" "$LINENO" 5
20461 if test $min_tcp_port -lt 1024; then
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
20464 $as_echo "$as_me: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
20467 cat <<AAW_EOF >>config.warnings
20468 the TCP port range should be 1024 or greater in --with-tcpportrange
20473 if test $max_tcp_port -ge 65536; then
20475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&5
20476 $as_echo "$as_me: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
20479 cat <<AAW_EOF >>config.warnings
20480 the TCP port range should be less than 65536 in --with-tcpportrange
20486 cat >>confdefs.h <<_ACEOF
20487 #define TCPPORTRANGE $TCPPORTRANGE
20493 # Check whether --with-udpportrange was given.
20494 if test "${with_udpportrange+set}" = set; then :
20495 withval=$with_udpportrange; UDPPORTRANGE="$withval"
20497 UDPPORTRANGE="unlimited"
20500 if test x"$UDPPORTRANGE" != x"unlimited"; then
20501 if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
20502 as_fn_error $? "--with-udpportrange requires two comma-separated positive numbers" "$LINENO" 5
20504 min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
20505 max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
20506 if test $min_udp_port -gt $max_udp_port; then
20507 as_fn_error $? "the second UDP port number must be greater than the first in --with-udpportrange" "$LINENO" 5
20509 if test $max_udp_port -ge 1024; then
20511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&5
20512 $as_echo "$as_me: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&2;}
20515 cat <<AAW_EOF >>config.warnings
20516 the UDP port range should be less than 1025 in --with-udpportrange
20521 if test $min_udp_port -le 0; then
20523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&5
20524 $as_echo "$as_me: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
20527 cat <<AAW_EOF >>config.warnings
20528 the UDP port range should be greater than 0 in --with-udpportrange
20534 cat >>confdefs.h <<_ACEOF
20535 #define UDPPORTRANGE $UDPPORTRANGE
20545 # Check whether --with-buffered-dump was given.
20546 if test "${with_buffered_dump+set}" = set; then :
20547 withval=$with_buffered_dump; DUMPER_SOCKET_BUFFERING=$withval
20549 DUMPER_SOCKET_BUFFERING=no
20552 case "$DUMPER_SOCKET_BUFFERING" in
20556 $as_echo "#define DUMPER_SOCKET_BUFFERING 1" >>confdefs.h
20559 *) as_fn_error $? "You must not supply an argument to --with-buffered-dump." "$LINENO" 5 ;;
20564 # Check whether --with-maxtapeblocksize was given.
20565 if test "${with_maxtapeblocksize+set}" = set; then :
20566 withval=$with_maxtapeblocksize;
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-maxtapeblocksize is no longer needed" >&5
20568 $as_echo "$as_me: WARNING: --with-maxtapeblocksize is no longer needed" >&2;}
20571 cat <<AAW_EOF >>config.warnings
20572 --with-maxtapeblocksize is no longer needed
20583 # Check whether --with-assertions was given.
20584 if test "${with_assertions+set}" = set; then :
20585 withval=$with_assertions;
20591 $as_echo "#define ASSERTIONS 1" >>confdefs.h
20594 *) as_fn_error $? "*** You must not supply an argument to --with-assertions option." "$LINENO" 5
20606 # Check whether --with-debugging was given.
20607 if test "${with_debugging+set}" = set; then :
20608 withval=$with_debugging; debugging="$withval"
20615 case "$debugging" in
20616 n | no) as_fn_error $? "Amanda no longer supports building with debugging disabled" "$LINENO" 5;;
20617 y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
20618 *) AMANDA_DBGDIR="$debugging";;
20621 # evaluate any extra variables in the directory
20625 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20626 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20627 eval ac_define_dir="\"$AMANDA_DBGDIR\""
20628 eval ac_define_dir="\"$ac_define_dir\""
20629 AMANDA_DBGDIR="$ac_define_dir"
20632 cat >>confdefs.h <<_ACEOF
20633 #define AMANDA_DBGDIR "$ac_define_dir"
20636 test "$prefix_NONE" && prefix=NONE
20637 test "$exec_prefix_NONE" && exec_prefix=NONE
20642 # Check whether --with-debug_days was given.
20643 if test "${with_debug_days+set}" = set; then :
20644 withval=$with_debug_days;
20645 debug_days="$withval"
20654 case "$debug_days" in
20656 AMANDA_DEBUG_DAYS=0 ;;
20658 AMANDA_DEBUG_DAYS=4 ;;
20659 [0-9] | [0-9][0-9] | [0-9][0-9][0-9])
20660 AMANDA_DEBUG_DAYS="$debug_days" ;;
20661 *) as_fn_error $? "*** --with-debug-days value not numeric or out of range." "$LINENO" 5
20665 cat >>confdefs.h <<_ACEOF
20666 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
20673 # Check whether --with-testing was given.
20674 if test "${with_testing+set}" = set; then :
20675 withval=$with_testing;
20686 n | no) SERVICE_SUFFIX="";;
20687 y | ye | yes) SERVICE_SUFFIX="-test";;
20688 *) SERVICE_SUFFIX="-$TESTING";;
20691 AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
20692 KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
20696 cat >>confdefs.h <<_ACEOF
20697 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
20701 cat >>confdefs.h <<_ACEOF
20702 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
20706 cat >>confdefs.h <<_ACEOF
20707 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
20712 SINGLE_USERID=${SINGLE_USERID:-no}
20713 WANT_SETUID_CLIENT=${WANT_SETUID_CLIENT:-true}
20716 # Check whether --with-single-userid was given.
20717 if test "${with_single_userid+set}" = set; then :
20718 withval=$with_single_userid; SINGLE_USERID=$withval
20724 WANT_SETUID_CLIENT=false
20729 if test x"$WANT_SETUID_CLIENT" = x"true"; then
20731 $as_echo "#define WANT_SETUID_CLIENT 1" >>confdefs.h
20734 if test x"$WANT_SETUID_CLIENT" = x"true"; then
20735 WANT_SETUID_CLIENT_TRUE=
20736 WANT_SETUID_CLIENT_FALSE='#'
20738 WANT_SETUID_CLIENT_TRUE='#'
20739 WANT_SETUID_CLIENT_FALSE=
20743 if test x"$SINGLE_USERID" = x"yes"; then
20745 $as_echo "#define SINGLE_USERID 1" >>confdefs.h
20750 WANT_INSTALLPERMS=yes
20751 # Check whether --enable-installperms was given.
20752 if test "${enable_installperms+set}" = set; then :
20753 enableval=$enable_installperms; WANT_INSTALLPERMS="$enableval"
20755 WANT_INSTALLPERMS="yes"
20759 if test x"$WANT_INSTALLPERMS" = x"yes"; then
20760 WANT_INSTALLPERMS_TRUE=
20761 WANT_INSTALLPERMS_FALSE='#'
20763 WANT_INSTALLPERMS_TRUE='#'
20764 WANT_INSTALLPERMS_FALSE=
20769 # Check whether --enable-syntax-checks was given.
20770 if test "${enable_syntax_checks+set}" = set; then :
20771 enableval=$enable_syntax_checks;
20772 case "$enableval" in
20773 no) SYNTAX_CHECKS=false;;
20777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-syntax-checks can cause build failures and should only be used by developers" >&5
20778 $as_echo "$as_me: WARNING: --enable-syntax-checks can cause build failures and should only be used by developers" >&2;}
20781 cat <<AAW_EOF >>config.warnings
20782 --enable-syntax-checks can cause build failures and should only be used by developers
20791 SYNTAX_CHECKS=false
20796 if $SYNTAX_CHECKS; then
20797 SYNTAX_CHECKS_TRUE=
20798 SYNTAX_CHECKS_FALSE='#'
20800 SYNTAX_CHECKS_TRUE='#'
20801 SYNTAX_CHECKS_FALSE=
20808 # Set up for Amanda components and modules
20813 # Check whether --with-server was given.
20814 if test "${with_server+set}" = set; then :
20815 withval=$with_server;
20817 y | ye | yes) WANT_SERVER=true;;
20818 n | no) WANT_SERVER=false;;
20819 *) as_fn_error $? "You must not supply an argument to the --without-server option." "$LINENO" 5 ;;
20828 # Check whether --with-client was given.
20829 if test "${with_client+set}" = set; then :
20830 withval=$with_client;
20832 y | ye | yes) WANT_CLIENT=true;;
20833 n | no) WANT_CLIENT=false;;
20834 *) as_fn_error $? "You must not supply an argument to the --without-client option." "$LINENO" 5 ;;
20842 WANT_RESTORE=${WANT_SERVER-true}
20844 # Check whether --with-restore was given.
20845 if test "${with_restore+set}" = set; then :
20846 withval=$with_restore;
20848 y | ye | yes) WANT_RESTORE=true;;
20849 n | no) WANT_RESTORE=false;;
20850 *) as_fn_error $? "You must not supply an argument to --with-restore option." "$LINENO" 5 ;;
20858 WANT_RECOVER=${WANT_CLIENT-true}
20860 # Check whether --with-amrecover was given.
20861 if test "${with_amrecover+set}" = set; then :
20862 withval=$with_amrecover;
20864 y | ye | yes) WANT_RECOVER=true;;
20865 n | no) WANT_RECOVER=false;;
20866 *) as_fn_error $? "You must not supply an argument to --with-amrecover option." "$LINENO" 5 ;;
20874 # Check whether --with-client-only was given.
20875 if test "${with_client_only+set}" = set; then :
20876 withval=$with_client_only; as_fn_error $? "--with-client-only is deprecated, use --without-server instead." "$LINENO" 5
20883 # Check whether --with-server-only was given.
20884 if test "${with_server_only+set}" = set; then :
20885 withval=$with_server_only; as_fn_error $? "--with-server-only is deprecated, use --without-client instead." "$LINENO" 5
20891 WANT_NDMP=${WANT_NDMP-true}
20893 # Check whether --with-ndmp was given.
20894 if test "${with_ndmp+set}" = set; then :
20895 withval=$with_ndmp;
20897 y | ye | yes) WANT_NDMP=true;;
20898 n | no) WANT_NDMP=false;;
20899 *) as_fn_error $? "You must not supply an argument to --with-ndmp option." "$LINENO" 5 ;;
20912 # detect invalid combinations of components
20913 if ! ${WANT_SERVER-true} && ${WANT_RESTORE-true}; then
20914 as_fn_error $? "--without-server requires --without-restore" "$LINENO" 5
20916 if ! ${WANT_CLIENT-true} && ${WANT_RECOVER-true}; then
20917 as_fn_error $? "--without-client requires --without-amrecover" "$LINENO" 5
20920 if $WANT_CLIENT; then
20922 WANT_CLIENT_FALSE='#'
20924 WANT_CLIENT_TRUE='#'
20928 if $WANT_RESTORE; then
20930 WANT_RESTORE_FALSE='#'
20932 WANT_RESTORE_TRUE='#'
20933 WANT_RESTORE_FALSE=
20936 if $WANT_SERVER; then
20938 WANT_SERVER_FALSE='#'
20940 WANT_SERVER_TRUE='#'
20944 if $WANT_RECOVER; then
20946 WANT_RECOVER_FALSE='#'
20948 WANT_RECOVER_TRUE='#'
20949 WANT_RECOVER_FALSE=
20952 if $WANT_NDMP; then
20954 WANT_NDMP_FALSE='#'
20961 if $WANT_SERVER || $WANT_RESTORE; then
20963 WANT_TAPE_FALSE='#'
20970 # AMANDA_COMPONENTS goes to Amanda::Constants; missing_components is just for the
20972 AMANDA_COMPONENTS=''
20973 missing_components=''
20975 if $WANT_SERVER; then
20976 AMANDA_COMPONENTS="$AMANDA_COMPONENTS server";
20978 missing_components="$missing_components (no server)";
20980 if $WANT_RESTORE; then
20981 AMANDA_COMPONENTS="$AMANDA_COMPONENTS restore";
20983 missing_components="$missing_components (no restore)";
20985 if $WANT_CLIENT; then
20986 AMANDA_COMPONENTS="$AMANDA_COMPONENTS client";
20988 missing_components="$missing_components (no client)";
20990 if $WANT_RECOVER; then
20991 AMANDA_COMPONENTS="$AMANDA_COMPONENTS amrecover";
20993 missing_components="$missing_components (no amrecover)";
20995 if $WANT_NDMP; then
20996 AMANDA_COMPONENTS="$AMANDA_COMPONENTS ndmp";
20998 missing_components="$missing_components (no ndmp)";
21007 # Check whether --with-gnuplot was given.
21008 if test "${with_gnuplot+set}" = set; then :
21009 withval=$with_gnuplot;
21012 n | no) GNUPLOT=no ;;
21013 *) GNUPLOT="$withval" ;;
21018 if test "x$GNUPLOT" = "xno"; then
21021 # Extract the first word of "gnuplot", so it can be a program name with args.
21022 set dummy gnuplot; ac_word=$2
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21024 $as_echo_n "checking for $ac_word... " >&6; }
21025 if ${ac_cv_path_GNUPLOT+:} false; then :
21026 $as_echo_n "(cached) " >&6
21030 ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
21033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21034 for as_dir in $LOCSYSPATH
21037 test -z "$as_dir" && as_dir=.
21038 for ac_exec_ext in '' $ac_executable_extensions; do
21039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21040 ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
21041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21051 GNUPLOT=$ac_cv_path_GNUPLOT
21052 if test -n "$GNUPLOT"; then
21053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT" >&5
21054 $as_echo "$GNUPLOT" >&6; }
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21057 $as_echo "no" >&6; }
21068 # Extract the first word of "pcat", so it can be a program name with args.
21069 set dummy pcat; ac_word=$2
21070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21071 $as_echo_n "checking for $ac_word... " >&6; }
21072 if ${ac_cv_path_PCAT+:} false; then :
21073 $as_echo_n "(cached) " >&6
21077 ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
21080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21081 for as_dir in $LOCSYSPATH
21084 test -z "$as_dir" && as_dir=.
21085 for ac_exec_ext in '' $ac_executable_extensions; do
21086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21087 ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
21088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21098 PCAT=$ac_cv_path_PCAT
21099 if test -n "$PCAT"; then
21100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAT" >&5
21101 $as_echo "$PCAT" >&6; }
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21104 $as_echo "no" >&6; }
21111 # Extract the first word of "compress", so it can be a program name with args.
21112 set dummy compress; ac_word=$2
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21114 $as_echo_n "checking for $ac_word... " >&6; }
21115 if ${ac_cv_path_COMPRESS+:} false; then :
21116 $as_echo_n "(cached) " >&6
21120 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
21123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21124 for as_dir in $LOCSYSPATH
21127 test -z "$as_dir" && as_dir=.
21128 for ac_exec_ext in '' $ac_executable_extensions; do
21129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21130 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
21131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21141 COMPRESS=$ac_cv_path_COMPRESS
21142 if test -n "$COMPRESS"; then
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPRESS" >&5
21144 $as_echo "$COMPRESS" >&6; }
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21147 $as_echo "no" >&6; }
21154 # Extract the first word of "gzip", so it can be a program name with args.
21155 set dummy gzip; ac_word=$2
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21157 $as_echo_n "checking for $ac_word... " >&6; }
21158 if ${ac_cv_path_GZIP+:} false; then :
21159 $as_echo_n "(cached) " >&6
21163 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
21166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21167 for as_dir in $LOCSYSPATH
21170 test -z "$as_dir" && as_dir=.
21171 for ac_exec_ext in '' $ac_executable_extensions; do
21172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21173 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
21174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21184 GZIP=$ac_cv_path_GZIP
21185 if test -n "$GZIP"; then
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
21187 $as_echo "$GZIP" >&6; }
21189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21190 $as_echo "no" >&6; }
21202 if test "x$GNUPLOT" != "x"; then
21205 # variable substitutions for amcat.awk
21206 if test "$PCAT"; then
21207 AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
21211 if test "$COMPRESS"; then
21212 AMPLOT_COMPRESS=$COMPRESS
21213 AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
21215 AMPLOT_CAT_COMPRESS=
21217 if test "$GZIP"; then
21218 AMPLOT_COMPRESS=$GZIP
21219 AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
21231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building 'amplot', because gnuplot was not found" >&5
21232 $as_echo "$as_me: WARNING: Not building 'amplot', because gnuplot was not found" >&2;}
21235 cat <<AAW_EOF >>config.warnings
21236 Not building 'amplot', because gnuplot was not found
21242 if test x"$WANT_AMPLOT" = x"true"; then
21244 WANT_AMPLOT_FALSE='#'
21246 WANT_AMPLOT_TRUE='#'
21252 # Check whether --enable-manpage-build was given.
21253 if test "${enable_manpage_build+set}" = set; then :
21254 enableval=$enable_manpage_build; ENABLE_MANPAGE_BUILD=$enableval
21256 ENABLE_MANPAGE_BUILD=no
21260 # and ensure that everything docbook-related is OK if we'll be using it
21261 if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
21262 DOC_BUILD_DATE=`date '+%d-%m-%Y'`
21265 XSLTPROC_FLAGS="--nonet"
21268 # The (lack of) whitespace and overquoting here are all necessary for
21269 # proper formatting.
21271 # Check whether --with-xsltproc was given.
21272 if test "${with_xsltproc+set}" = set; then :
21273 withval=$with_xsltproc; ac_with_xsltproc=$withval;
21275 ac_with_xsltproc=maybe;
21280 # Check whether --with-xsltproc-flags was given.
21281 if test "${with_xsltproc_flags+set}" = set; then :
21282 withval=$with_xsltproc_flags; if test "x$withval" == "xno"; then
21285 if test "x$withval" != "xyes"; then
21286 XSLTPROC_FLAGS="$withval"
21293 # search for xsltproc if it wasn't specified
21294 if test "$ac_with_xsltproc" = "yes" -o "$ac_with_xsltproc" = "maybe"; then
21295 for ac_prog in xsltproc
21297 # Extract the first word of "$ac_prog", so it can be a program name with args.
21298 set dummy $ac_prog; ac_word=$2
21299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21300 $as_echo_n "checking for $ac_word... " >&6; }
21301 if ${ac_cv_path_XSLTPROC+:} false; then :
21302 $as_echo_n "(cached) " >&6
21306 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
21309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21310 for as_dir in $LOCSYSPATH
21313 test -z "$as_dir" && as_dir=.
21314 for ac_exec_ext in '' $ac_executable_extensions; do
21315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21316 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
21317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21327 XSLTPROC=$ac_cv_path_XSLTPROC
21328 if test -n "$XSLTPROC"; then
21329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
21330 $as_echo "$XSLTPROC" >&6; }
21332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21333 $as_echo "no" >&6; }
21337 test -n "$XSLTPROC" && break
21341 if test "$ac_with_xsltproc" != "no"; then
21342 if test -x "$ac_with_xsltproc"; then
21343 XSLTPROC="$ac_with_xsltproc";
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&5
21347 $as_echo "$as_me: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&2;}
21350 cat <<AAW_EOF >>config.warnings
21351 Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative.
21355 for ac_prog in xsltproc
21357 # Extract the first word of "$ac_prog", so it can be a program name with args.
21358 set dummy $ac_prog; ac_word=$2
21359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21360 $as_echo_n "checking for $ac_word... " >&6; }
21361 if ${ac_cv_path_XSLTPROC+:} false; then :
21362 $as_echo_n "(cached) " >&6
21366 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
21369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21370 for as_dir in $LOCSYSPATH
21373 test -z "$as_dir" && as_dir=.
21374 for ac_exec_ext in '' $ac_executable_extensions; do
21375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21376 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
21377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21387 XSLTPROC=$ac_cv_path_XSLTPROC
21388 if test -n "$XSLTPROC"; then
21389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
21390 $as_echo "$XSLTPROC" >&6; }
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21393 $as_echo "no" >&6; }
21397 test -n "$XSLTPROC" && break
21413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook XSLT version 1.72.0" >&5
21414 $as_echo_n "checking for Docbook XSLT version 1.72.0... " >&6; }
21415 if ${ac_cv_docbook_xslt_1_72_0+:} false; then :
21416 $as_echo_n "(cached) " >&6
21419 ac_cv_docbook_xslt_1_72_0=no
21420 if test -n "$XSLTPROC"; then
21421 echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl'" >&5
21422 $XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl >&5 2>&5
21424 if test "$?" = 0; then
21425 ac_cv_docbook_xslt_1_72_0=yes
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_xslt_1_72_0" >&5
21431 $as_echo "$ac_cv_docbook_xslt_1_72_0" >&6; }
21433 HAVE_DOCBOOK_XSLT_1_72_0="$ac_cv_docbook_xslt_1_72_0"
21434 HAVE_DOCBOOK_XSLT="$HAVE_DOCBOOK_XSLT_1_72_0"
21443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current Docbook XSLT version" >&5
21444 $as_echo_n "checking for current Docbook XSLT version... " >&6; }
21445 if ${ac_cv_docbook_xslt_current_version+:} false; then :
21446 $as_echo_n "(cached) " >&6
21449 ac_cv_docbook_xslt_current_version=no
21451 if test -n "$XSLTPROC"; then
21452 cat >conftest.xsl <<EOF
21454 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
21455 xmlns:fm="http://freshmeat.net/projects/freshmeat-submit/"
21457 <xsl:output method="text"/>
21458 <xsl:template match="fm:project/fm:Version">
21459 <xsl:value-of select="." />
21461 <!-- do nothing with any other text -->
21462 <xsl:template match="text()"/>
21465 echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/current/VERSION' with input:" >&5
21467 cat conftest.xsl >&5
21470 ac_cv_docbook_xslt_current_version=`$XSLTPROC $XSLTPROC_FLAGS conftest.xsl http://docbook.sourceforge.net/release/xsl/current/VERSION 2>&5`
21472 if test "$?" != 0; then
21473 ac_cv_docbook_xslt_current_version='no'
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_xslt_current_version" >&5
21481 $as_echo "$ac_cv_docbook_xslt_current_version" >&6; }
21483 DOCBOOK_XSLT_CURRENT_VERSION="$ac_cv_docbook_xslt_current_version"
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Docbook XSLT version is 1.72.0 or newer" >&5
21485 $as_echo_n "checking whether Docbook XSLT version is 1.72.0 or newer... " >&6; }
21487 if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
21488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21489 $as_echo "no" >&6; }
21492 # Used to indicate true or false condition
21493 ax_compare_version=false
21495 # Convert the two version strings to be compared into a format that
21496 # allows a simple string comparison. The end result is that a version
21497 # string of the form 1.12.5-r617 will be converted to the form
21498 # 0001001200050617. In other words, each number is zero padded to four
21499 # digits, and non digits are removed.
21501 ax_compare_version_A=`echo "$DOCBOOK_XSLT_CURRENT_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21502 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21503 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21504 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21508 ax_compare_version_B=`echo "1.72.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21509 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21510 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21511 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21515 ax_compare_version=`echo "x$ax_compare_version_A
21516 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"`
21520 if test "$ax_compare_version" = "true" ; then
21522 # version is less than required, so mark it as "no"
21523 DOCBOOK_XSLT_CURRENT_VERSION=no
21528 if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
21529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21530 $as_echo "no" >&6; }
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&5
21533 $as_echo "yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&6; }
21546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook DTD version 4.1.2" >&5
21547 $as_echo_n "checking for Docbook DTD version 4.1.2... " >&6; }
21548 if ${ac_cv_docbook_dtd_4_1_2+:} false; then :
21549 $as_echo_n "(cached) " >&6
21552 ac_cv_docbook_dtd_4_1_2=no
21553 if test -n "$XSLTPROC"; then
21554 MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
21555 cat <<EOF >conftest.xml
21556 <?xml version="1.0" encoding='ISO-8859-1'?>
21557 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
21561 echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
21562 echo "conftest.xml:" >&5
21564 cat conftest.xml >&5
21567 $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
21568 if test "$?" = 0 -o "$?" = 5; then
21569 # failing to load the DTD is just a warning, so check for it in the output.
21570 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
21573 ac_cv_docbook_dtd_4_1_2=yes
21576 cat conftest.out >&5
21578 rm -f conftest.xml conftest.out
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_dtd_4_1_2" >&5
21583 $as_echo "$ac_cv_docbook_dtd_4_1_2" >&6; }
21585 HAVE_DOCBOOK_DTD_4_1_2="$ac_cv_docbook_dtd_4_1_2"
21586 HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_1_2"
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook DTD version 4.2" >&5
21602 $as_echo_n "checking for Docbook DTD version 4.2... " >&6; }
21603 if ${ac_cv_docbook_dtd_4_2+:} false; then :
21604 $as_echo_n "(cached) " >&6
21607 ac_cv_docbook_dtd_4_2=no
21608 if test -n "$XSLTPROC"; then
21609 MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
21610 cat <<EOF >conftest.xml
21611 <?xml version="1.0" encoding='ISO-8859-1'?>
21612 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
21616 echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
21617 echo "conftest.xml:" >&5
21619 cat conftest.xml >&5
21622 $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
21623 if test "$?" = 0 -o "$?" = 5; then
21624 # failing to load the DTD is just a warning, so check for it in the output.
21625 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
21628 ac_cv_docbook_dtd_4_2=yes
21631 cat conftest.out >&5
21633 rm -f conftest.xml conftest.out
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_dtd_4_2" >&5
21638 $as_echo "$ac_cv_docbook_dtd_4_2" >&6; }
21640 HAVE_DOCBOOK_DTD_4_2="$ac_cv_docbook_dtd_4_2"
21641 HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_2"
21648 if test -z "$XSLTPROC"; then
21649 as_fn_error $? "Cannot build manpages: 'xsltproc' was not found." "$LINENO" 5
21652 # if the 'current' Docbook revision is good enough, use that; otherwise,
21653 # if 1.72.0 is available, use that.
21655 if test "x$DOCBOOK_XSLT_CURRENT_VERSION" = "xno"; then
21656 if test "x$HAVE_DOCBOOK_XSLT_1_72_0" = "xno"; then
21657 as_fn_error $? "Cannot build manpages: docbook version 1.72.0 or higher required." "$LINENO" 5
21663 # disable validation if the correct DTDs are not available
21664 if test "x$HAVE_DOCBOOK_DTD_4_1_2" = "xno" || test "x$HAVE_DOCBOOK_DTD_4_2" = "xno"; then
21666 { $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
21667 $as_echo "$as_me: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&2;}
21670 cat <<AAW_EOF >>config.warnings
21671 Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation
21675 XSLTPROC_FLAGS="$XSLTPROC_FLAGS --novalid"
21679 if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
21680 ENABLE_MANPAGE_BUILD_TRUE=
21681 ENABLE_MANPAGE_BUILD_FALSE='#'
21683 ENABLE_MANPAGE_BUILD_TRUE='#'
21684 ENABLE_MANPAGE_BUILD_FALSE=
21691 #allow configure CONFIG_CLOBBER_MY_CONFIG= to be used by make.
21692 CONFIG_CLOBBER_MY_CONFIG=$CLOBBER_MY_CONFIG
21696 # Check whether --with-index-server was given.
21697 if test "${with_index_server+set}" = set; then :
21698 withval=$with_index_server;
21700 "" | y | ye | yes | n | no)
21701 as_fn_error $? "*** You must supply an argument to the --with-index-server option." "$LINENO" 5
21703 *) DEFAULT_SERVER="$withval"
21708 : ${DEFAULT_SERVER=`uname -n`}
21713 cat >>confdefs.h <<_ACEOF
21714 #define DEFAULT_SERVER "$DEFAULT_SERVER"
21720 # Check whether --with-config was given.
21721 if test "${with_config+set}" = set; then :
21722 withval=$with_config;
21724 "" | y | ye | yes | n | no)
21725 as_fn_error $? "*** You must supply an argument to the --with-config option." "$LINENO" 5
21727 *) DEFAULT_CONFIG="$withval"
21732 : ${DEFAULT_CONFIG=DailySet1}
21737 cat >>confdefs.h <<_ACEOF
21738 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
21744 # Check whether --with-tape-server was given.
21745 if test "${with_tape_server+set}" = set; then :
21746 withval=$with_tape_server;
21748 "" | y | ye | yes | n | no)
21749 as_fn_error $? "*** You must supply an argument to the --with-tape-server option." "$LINENO" 5
21751 *) DEFAULT_TAPE_SERVER="$withval"
21756 : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
21761 cat >>confdefs.h <<_ACEOF
21762 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
21768 # Check whether --with-tape-device was given.
21769 if test "${with_tape_device+set}" = set; then :
21770 withval=$with_tape_device;
21772 "" | y | ye | yes | n | no)
21773 as_fn_error $? "*** You must supply an argument to the --with-tape-device option." "$LINENO" 5
21775 *) DEFAULT_TAPE_DEVICE="$withval"
21784 cat >>confdefs.h <<_ACEOF
21785 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
21790 if test "${DEFAULT_TAPE_DEVICE+set}" = "set"; then
21791 EXAMPLE_TAPEDEV="$DEFAULT_TAPE_DEVICE"
21793 EXAMPLE_TAPEDEV="tape:/dev/YOUR-TAPE-DEVICE-HERE"
21798 # Check whether --with-changer-device was given.
21799 if test "${with_changer_device+set}" = set; then :
21800 withval=$with_changer_device;
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-changer-device is no longer used." >&5
21803 $as_echo "$as_me: WARNING: --with-changer-device is no longer used." >&2;}
21806 cat <<AAW_EOF >>config.warnings
21807 --with-changer-device is no longer used.
21817 # Check whether --with-amandates was given.
21818 if test "${with_amandates+set}" = set; then :
21819 withval=$with_amandates;
21821 n | no) as_fn_error $? "*** --without-amandates is not allowed." "$LINENO" 5;;
21822 y | ye | yes) amandates='$localstatedir/amanda/amandates' ;;
21823 *) amandates="$withval";;
21827 amandates='$localstatedir/amanda/amandates'
21835 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21836 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21837 eval ac_define_dir="\"$amandates\""
21838 eval ac_define_dir="\"$ac_define_dir\""
21839 DEFAULT_AMANDATES_FILE="$ac_define_dir"
21842 cat >>confdefs.h <<_ACEOF
21843 #define DEFAULT_AMANDATES_FILE "$ac_define_dir"
21846 test "$prefix_NONE" && prefix=NONE
21847 test "$exec_prefix_NONE" && exec_prefix=NONE
21850 DEFAULT_FSF_AFTER_FILEMARK="FALSE"
21852 *-solaris*) DEFAULT_FSF_AFTER_FILEMARK="TRUE"
21856 cat >>confdefs.h <<_ACEOF
21857 #define DEFAULT_FSF_AFTER_FILEMARK $DEFAULT_FSF_AFTER_FILEMARK
21863 # Extract the first word of "getconf", so it can be a program name with args.
21864 set dummy getconf; ac_word=$2
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21866 $as_echo_n "checking for $ac_word... " >&6; }
21867 if ${ac_cv_path_GETCONF+:} false; then :
21868 $as_echo_n "(cached) " >&6
21872 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
21875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21876 for as_dir in $SYSPATH
21879 test -z "$as_dir" && as_dir=.
21880 for ac_exec_ext in '' $ac_executable_extensions; do
21881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21882 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
21883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21893 GETCONF=$ac_cv_path_GETCONF
21894 if test -n "$GETCONF"; then
21895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
21896 $as_echo "$GETCONF" >&6; }
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21899 $as_echo "no" >&6; }
21908 # we use 'getconf', if it exists, to get the relevant
21912 *-hp-*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
21913 *-ibm-aix*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
21916 # Checks for compilers, typedefs, structures, and compiler characteristics.
21917 # Check for large file compilation environment.
21919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file compilation CFLAGS" >&5
21920 $as_echo_n "checking for large file compilation CFLAGS... " >&6; }
21921 if ${amanda_cv_LFS_CFLAGS+:} false; then :
21922 $as_echo_n "(cached) " >&6
21925 amanda_cv_LFS_CFLAGS=
21926 if test "$GETCONF"; then
21927 if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
21928 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_LFS_CFLAGS" >&5
21936 $as_echo "$amanda_cv_LFS_CFLAGS" >&6; }
21937 CFLAGS="$CFLAGS $amanda_cv_LFS_CFLAGS"
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file compilation LDFLAGS" >&5
21941 $as_echo_n "checking for large file compilation LDFLAGS... " >&6; }
21942 if ${amanda_cv_LFS_LDFLAGS+:} false; then :
21943 $as_echo_n "(cached) " >&6
21946 amanda_cv_LFS_LDFLAGS=
21947 if test "$GETCONF"; then
21948 if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
21949 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_LFS_LDFLAGS" >&5
21957 $as_echo "$amanda_cv_LFS_LDFLAGS" >&6; }
21958 LDFLAGS="$LDFLAGS $amanda_cv_LFS_LDFLAGS"
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file compilation LIBS" >&5
21962 $as_echo_n "checking for large file compilation LIBS... " >&6; }
21963 if ${amanda_cv_LFS_LIBS+:} false; then :
21964 $as_echo_n "(cached) " >&6
21967 amanda_cv_LFS_LIBS=
21968 if test "$GETCONF"; then
21969 if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
21970 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_LFS_LIBS" >&5
21978 $as_echo "$amanda_cv_LFS_LIBS" >&6; }
21979 LIBS="$amanda_cv_LFS_LIBS $LIBS"
21982 if test x"$NEED_RESETOFS" = x"yes"; then
21984 $as_echo "#define NEED_RESETOFS 1" >>confdefs.h
21989 for ac_header in fstab.h \
21995 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21996 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21997 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21998 cat >>confdefs.h <<_ACEOF
21999 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22007 for ac_func in endmntent
22009 ac_fn_c_check_func "$LINENO" "endmntent" "ac_cv_func_endmntent"
22010 if test "x$ac_cv_func_endmntent" = xyes; then :
22011 cat >>confdefs.h <<_ACEOF
22012 #define HAVE_ENDMNTENT 1
22018 for ac_func in setmntent
22020 ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
22021 if test "x$ac_cv_func_setmntent" = xyes; then :
22022 cat >>confdefs.h <<_ACEOF
22023 #define HAVE_SETMNTENT 1
22031 for ac_header in fcntl.h \
22038 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22039 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22040 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22041 cat >>confdefs.h <<_ACEOF
22042 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22050 # find a working file-locking mechanism.
22051 # Note: these all use AC_TRY_LINK to make sure that we can compile
22052 # and link each variant. They do not try to test the variants --
22053 # that is left to runtime.
22056 # check POSIX locking
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX locking (with fcntl(2)) is available" >&5
22058 $as_echo_n "checking whether POSIX locking (with fcntl(2)) is available... " >&6; }
22059 if ${amanda_cv_posix_filelocking+:} false; then :
22060 $as_echo_n "(cached) " >&6
22063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22064 /* end confdefs.h. */
22066 #if HAVE_SYS_TYPES_H
22067 # include <sys/types.h>
22070 # include <unistd.h>
22073 # include <fcntl.h>
22082 lock.l_type = F_RDLCK;
22084 lock.l_whence = SEEK_CUR;
22086 return fcntl(1, F_SETLK, &lock);
22092 if ac_fn_c_try_link "$LINENO"; then :
22094 amanda_cv_posix_filelocking="yes"
22098 amanda_cv_posix_filelocking="no"
22101 rm -f core conftest.err conftest.$ac_objext \
22102 conftest$ac_exeext conftest.$ac_ext
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_posix_filelocking" >&5
22106 $as_echo "$amanda_cv_posix_filelocking" >&6; }
22107 if test "x$amanda_cv_posix_filelocking" = xyes; then
22109 $as_echo "#define WANT_AMFLOCK_POSIX 1" >>confdefs.h
22111 WANT_AMFLOCK_POSIX="yes"
22112 LOCKING="POSIX_FCNTL"
22114 if test x"$WANT_AMFLOCK_POSIX" = x"yes"; then
22115 WANT_AMFLOCK_POSIX_TRUE=
22116 WANT_AMFLOCK_POSIX_FALSE='#'
22118 WANT_AMFLOCK_POSIX_TRUE='#'
22119 WANT_AMFLOCK_POSIX_FALSE=
22123 # check flock-based (BSD) locking
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flock locking is available" >&5
22125 $as_echo_n "checking whether flock locking is available... " >&6; }
22126 if ${amanda_cv_flock_filelocking+:} false; then :
22127 $as_echo_n "(cached) " >&6
22130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22131 /* end confdefs.h. */
22133 #if HAVE_SYS_FILE_H
22134 # include <sys/file.h>
22141 return flock(1, LOCK_SH);
22147 if ac_fn_c_try_link "$LINENO"; then :
22149 amanda_cv_flock_filelocking="yes"
22153 amanda_cv_flock_filelocking="no"
22156 rm -f core conftest.err conftest.$ac_objext \
22157 conftest$ac_exeext conftest.$ac_ext
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_flock_filelocking" >&5
22161 $as_echo "$amanda_cv_flock_filelocking" >&6; }
22162 if test "x$amanda_cv_flock_filelocking" = xyes; then
22164 $as_echo "#define WANT_AMFLOCK_FLOCK 1" >>confdefs.h
22166 WANT_AMFLOCK_FLOCK="yes"
22169 if test x"$WANT_AMFLOCK_FLOCK" = x"yes"; then
22170 WANT_AMFLOCK_FLOCK_TRUE=
22171 WANT_AMFLOCK_FLOCK_FALSE='#'
22173 WANT_AMFLOCK_FLOCK_TRUE='#'
22174 WANT_AMFLOCK_FLOCK_FALSE=
22178 # check lockf-based (SVR2, SVR3, SVR4) locking
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lockf(3) locking is available" >&5
22180 $as_echo_n "checking whether lockf(3) locking is available... " >&6; }
22181 if ${amanda_cv_lockf_filelocking+:} false; then :
22182 $as_echo_n "(cached) " >&6
22185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22186 /* end confdefs.h. */
22189 # include <unistd.h>
22196 return lockf(1, F_LOCK, 0);
22202 if ac_fn_c_try_link "$LINENO"; then :
22204 amanda_cv_lockf_filelocking="yes"
22208 amanda_cv_lockf_filelocking="no"
22211 rm -f core conftest.err conftest.$ac_objext \
22212 conftest$ac_exeext conftest.$ac_ext
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_lockf_filelocking" >&5
22216 $as_echo "$amanda_cv_lockf_filelocking" >&6; }
22217 if test "x$amanda_cv_lockf_filelocking" = xyes; then
22219 $as_echo "#define WANT_AMFLOCK_LOCKF 1" >>confdefs.h
22221 WANT_AMFLOCK_LOCKF="yes"
22224 if test x"$WANT_AMFLOCK_LOCKF" = x"yes"; then
22225 WANT_AMFLOCK_LOCKF_TRUE=
22226 WANT_AMFLOCK_LOCKF_FALSE='#'
22228 WANT_AMFLOCK_LOCKF_TRUE='#'
22229 WANT_AMFLOCK_LOCKF_FALSE=
22233 # check our homebrew hardlink-based locking (requires hardlinks)
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link(2) is available for locking" >&5
22235 $as_echo_n "checking whether link(2) is available for locking... " >&6; }
22236 if ${amanda_cv_lnlock_filelocking+:} false; then :
22237 $as_echo_n "(cached) " >&6
22240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22241 /* end confdefs.h. */
22244 # include <unistd.h>
22251 return link("/tmp/foo", "/tmp/bar");
22257 if ac_fn_c_try_link "$LINENO"; then :
22259 amanda_cv_lnlock_filelocking="yes"
22263 amanda_cv_lnlock_filelocking="no"
22266 rm -f core conftest.err conftest.$ac_objext \
22267 conftest$ac_exeext conftest.$ac_ext
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_lnlock_filelocking" >&5
22271 $as_echo "$amanda_cv_lnlock_filelocking" >&6; }
22272 if test "x$amanda_cv_lnlock_filelocking" = xyes; then
22274 $as_echo "#define WANT_AMFLOCK_LNLOCK 1" >>confdefs.h
22276 WANT_AMFLOCK_LNLOCK="yes"
22279 if test x"$WANT_AMFLOCK_LNLOCK" = x"yes"; then
22280 WANT_AMFLOCK_LNLOCK_TRUE=
22281 WANT_AMFLOCK_LNLOCK_FALSE='#'
22283 WANT_AMFLOCK_LNLOCK_TRUE='#'
22284 WANT_AMFLOCK_LNLOCK_FALSE=
22288 if test x"$LOCKING" = "no"; then
22289 # this shouldn't happen, and is *bad* if it does
22290 as_fn_error $? "*** No working file locking capability found!" "$LINENO" 5
22297 for ac_prog in swig
22299 # Extract the first word of "$ac_prog", so it can be a program name with args.
22300 set dummy $ac_prog; ac_word=$2
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22302 $as_echo_n "checking for $ac_word... " >&6; }
22303 if ${ac_cv_path_SWIG+:} false; then :
22304 $as_echo_n "(cached) " >&6
22308 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
22311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22312 for as_dir in $LOCSYSPATH
22315 test -z "$as_dir" && as_dir=.
22316 for ac_exec_ext in '' $ac_executable_extensions; do
22317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22318 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
22319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22329 SWIG=$ac_cv_path_SWIG
22330 if test -n "$SWIG"; then
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
22332 $as_echo "$SWIG" >&6; }
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22335 $as_echo "no" >&6; }
22339 test -n "$SWIG" && break
22343 # 1.3.32 introduces a change in the way empty strings are handled (old versions
22344 # returned undef in Perl, while new versions return an empty Perl string)
22345 # 1.3.39 is required for the %begin block
22347 # Extract the first word of "swig", so it can be a program name with args.
22348 set dummy swig; ac_word=$2
22349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22350 $as_echo_n "checking for $ac_word... " >&6; }
22351 if ${ac_cv_path_SWIG+:} false; then :
22352 $as_echo_n "(cached) " >&6
22356 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
22359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22360 for as_dir in $PATH
22363 test -z "$as_dir" && as_dir=.
22364 for ac_exec_ext in '' $ac_executable_extensions; do
22365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22366 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
22367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22377 SWIG=$ac_cv_path_SWIG
22378 if test -n "$SWIG"; then
22379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
22380 $as_echo "$SWIG" >&6; }
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22383 $as_echo "no" >&6; }
22387 if test -z "$SWIG" ; then
22388 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
22389 elif test -n "1.3.39" ; then
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
22391 $as_echo_n "checking for SWIG version... " >&6; }
22392 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'`
22393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
22394 $as_echo "$swig_version" >&6; }
22395 if test -n "$swig_version" ; then
22397 # Used to indicate true or false condition
22398 ax_compare_version=false
22400 # Convert the two version strings to be compared into a format that
22401 # allows a simple string comparison. The end result is that a version
22402 # string of the form 1.12.5-r617 will be converted to the form
22403 # 0001001200050617. In other words, each number is zero padded to four
22404 # digits, and non digits are removed.
22406 ax_compare_version_A=`echo "$swig_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22407 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22408 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22409 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22413 ax_compare_version_B=`echo "1.3.39" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22414 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22415 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22416 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22420 ax_compare_version=`echo "x$ax_compare_version_A
22421 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"`
22425 if test "$ax_compare_version" = "true" ; then
22427 SWIG_LIB=`$SWIG -swiglib`
22430 SWIG='echo "Error: SWIG version >= 1.3.39 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
22435 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
22443 for ac_prog in perl5 perl
22445 # Extract the first word of "$ac_prog", so it can be a program name with args.
22446 set dummy $ac_prog; ac_word=$2
22447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22448 $as_echo_n "checking for $ac_word... " >&6; }
22449 if ${ac_cv_path_PERL+:} false; then :
22450 $as_echo_n "(cached) " >&6
22454 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
22457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22458 for as_dir in $LOCSYSPATH
22461 test -z "$as_dir" && as_dir=.
22462 for ac_exec_ext in '' $ac_executable_extensions; do
22463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22464 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
22465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22475 PERL=$ac_cv_path_PERL
22476 if test -n "$PERL"; then
22477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22478 $as_echo "$PERL" >&6; }
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22481 $as_echo "no" >&6; }
22485 test -n "$PERL" && break
22489 # Make sure we have perl
22490 if test -z "$PERL"; then
22491 # Extract the first word of "perl", so it can be a program name with args.
22492 set dummy perl; ac_word=$2
22493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22494 $as_echo_n "checking for $ac_word... " >&6; }
22495 if ${ac_cv_prog_PERL+:} false; then :
22496 $as_echo_n "(cached) " >&6
22498 if test -n "$PERL"; then
22499 ac_cv_prog_PERL="$PERL" # Let the user override the test.
22501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22502 for as_dir in $PATH
22505 test -z "$as_dir" && as_dir=.
22506 for ac_exec_ext in '' $ac_executable_extensions; do
22507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22508 ac_cv_prog_PERL="perl"
22509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22518 PERL=$ac_cv_prog_PERL
22519 if test -n "$PERL"; then
22520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22521 $as_echo "$PERL" >&6; }
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22524 $as_echo "no" >&6; }
22530 # Check if version of Perl is sufficient
22531 ac_perl_version="5.6.0"
22533 if test "x$PERL" != "x"; then
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
22535 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
22536 # NB: It would be nice to log the error if there is one, but we cannot rely
22537 # on autoconf internals
22538 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
22539 if test $? -ne 0; then
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22541 $as_echo "no" >&6; };
22543 as_fn_error $? "Amanda requires at least perl 5.6.0" "$LINENO" 5
22546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
22547 $as_echo "ok" >&6; };
22551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
22552 $as_echo "$as_me: WARNING: could not find perl" >&2;}
22560 WANT_CYGWIN_COPY_PERL_DLL=false
22561 WANT_MANDATORY_THREAD_CHECK=false
22563 # test for ExtUtils::Embed
22564 ac_perl_list_modules="ExtUtils::Embed 0.0"
22565 # Make sure we have perl
22566 if test -z "$PERL"; then
22567 # Extract the first word of "perl", so it can be a program name with args.
22568 set dummy perl; ac_word=$2
22569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22570 $as_echo_n "checking for $ac_word... " >&6; }
22571 if ${ac_cv_prog_PERL+:} false; then :
22572 $as_echo_n "(cached) " >&6
22574 if test -n "$PERL"; then
22575 ac_cv_prog_PERL="$PERL" # Let the user override the test.
22577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22578 for as_dir in $PATH
22581 test -z "$as_dir" && as_dir=.
22582 for ac_exec_ext in '' $ac_executable_extensions; do
22583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22584 ac_cv_prog_PERL="perl"
22585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22594 PERL=$ac_cv_prog_PERL
22595 if test -n "$PERL"; then
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22597 $as_echo "$PERL" >&6; }
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22600 $as_echo "no" >&6; }
22606 # Check the number of arguments
22607 args_num=`echo $ac_perl_list_modules | wc -w`
22608 let "ckeck_args = $args_num % 2"
22609 if test "$check_args" = "1" ; then
22610 as_fn_error $? "syntax error" "$LINENO" 5
22615 if test "x$PERL" != x; then
22617 while test ${#ac_perl_list_modules} -gt 2 ; do
22618 module_name=`echo $ac_perl_list_modules | cut -d " " -f 1`
22619 module_version=`echo $ac_perl_list_modules | cut -d " " -f 2`
22620 ac_perl_list_modules=`echo $ac_perl_list_modules | cut -d " " -f 3-`
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $module_name version $module_version" >&5
22622 $as_echo_n "checking for perl module $module_name version $module_version... " >&6; }
22624 $PERL "-M$module_name" -e exit > /dev/null 2>&1
22625 if test $? -ne 0; then
22626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22627 $as_echo "no" >&6; };
22629 ac_perl_list_modules=""
22631 version=`$PERL "-M$module_name" -e 'print $'"$module_name::VERSION" 2>&1`
22632 $PERL -e 'exit(shift cmp shift)' "$version" "$module_version"
22633 if test $? -eq 0 -o $? -eq 1 ; then
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
22635 $as_echo "ok" >&6; };
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22638 $as_echo "no" >&6; }
22640 ac_perl_list_modules=""
22645 if test "$ac_failed" = 0; then
22651 as_fn_error $? "*** Amanda requires the perl package ExtUtils::Embed to build its perl modules" "$LINENO" 5
22655 as_fn_error $? "could not find perl" "$LINENO" 5
22658 # get the include path for building perl extensions
22659 PERL_INC=`$PERL -MExtUtils::Embed -e perl_inc`
22662 if test x"$enable_shared" = x"no"; then
22663 as_fn_error $? "*** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" "$LINENO" 5
22667 *freebsd[123456].*) # up to and including FreeBSD 6.*
22668 # Before 7.0, FreeBSD systems don't include a DT_NEEDS segment in
22669 # libgthread to automatically pull in the desired threading library.
22670 # Instead, they assume that any application linking against
22671 # libgthread will pull in the threading library. This is fine for
22672 # Amanda C applications, but for Perl applications this assumption
22673 # means that the perl binary would pull in the threading library.
22674 # But perl is compiled without threading by default.
22676 # Specifically, this occurs on any FreeBSD using gcc-3.*: the linking
22677 # decision is made in gcc's spec files, which were changed in
22678 # gcc-4.0. For a more in-depth discussion, see
22679 # http://wiki.zmanda.com/index.php/Installation/OS_Specific_Notes/Installing_Amanda_on_FreeBSD
22681 # The easiest solution for the "default" case is to link all perl
22682 # extension libraries against the threading library, so it is loaded
22683 # when perl loads the extension library. The default threading
22684 # library in FreeBSD is libpthread. The below default will work on
22685 # such a FreeBSD system, but ports maintainers and those with
22686 # different configurations may need to override this value with
22687 # --with-perlextlibs.
22689 # We can't use -pthread because gcc on FreeBSD ignores -pthread in
22690 # combination with -shared. See
22691 # http://lists.freebsd.org/pipermail/freebsd-stable/2006-June/026229.html
22693 PERLEXTLIBS="-lpthread"
22694 WANT_MANDATORY_THREAD_CHECK=true
22697 *freebsd*) # all FreeBSD not matched above
22698 # for all FreeBSD (including 1.0-6.0, above), we want to run the
22699 # thread-check rule in perl/Makefile.am to double-check that a Perl
22700 # script can call a C extension that uses threads.
22701 WANT_MANDATORY_THREAD_CHECK=true
22705 # When need -lperl and the '-L' where it is located,
22706 # we don't want the DynaLoader.a
22707 PERLEXTLIBS=`perl -MExtUtils::Embed -e ldopts | sed -e 's/^.*-L/-L/'`
22708 # we want cygwin to copy ddl to modules directory.
22709 WANT_CYGWIN_COPY_PERL_DLL="true";
22712 if $WANT_CYGWIN_COPY_PERL_DLL; then
22713 WANT_CYGWIN_COPY_PERL_DLL_TRUE=
22714 WANT_CYGWIN_COPY_PERL_DLL_FALSE='#'
22716 WANT_CYGWIN_COPY_PERL_DLL_TRUE='#'
22717 WANT_CYGWIN_COPY_PERL_DLL_FALSE=
22720 if $WANT_MANDATORY_THREAD_CHECK; then
22721 WANT_MANDATORY_THREAD_CHECK_TRUE=
22722 WANT_MANDATORY_THREAD_CHECK_FALSE='#'
22724 WANT_MANDATORY_THREAD_CHECK_TRUE='#'
22725 WANT_MANDATORY_THREAD_CHECK_FALSE=
22730 # Check whether --with-perlextlibs was given.
22731 if test "${with_perlextlibs+set}" = set; then :
22732 withval=$with_perlextlibs;
22734 y|ye|yes) as_fn_error $? "*** You must specify a value for --with-perlextlibs" "$LINENO" 5;;
22735 n|no) PERLEXTLIBS='';;
22736 *) PERLEXTLIBS="$withval" ;;
22745 # Extract the first word of "cat", so it can be a program name with args.
22746 set dummy cat; ac_word=$2
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22748 $as_echo_n "checking for $ac_word... " >&6; }
22749 if ${ac_cv_path_CAT+:} false; then :
22750 $as_echo_n "(cached) " >&6
22754 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
22757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22758 for as_dir in $LOCSYSPATH
22761 test -z "$as_dir" && as_dir=.
22762 for ac_exec_ext in '' $ac_executable_extensions; do
22763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22764 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
22765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22772 test -z "$ac_cv_path_CAT" && ac_cv_path_CAT="cat"
22776 CAT=$ac_cv_path_CAT
22777 if test -n "$CAT"; then
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
22779 $as_echo "$CAT" >&6; }
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22782 $as_echo "no" >&6; }
22793 if test "$GZIP"; then
22795 $as_echo "#define HAVE_GZIP 1" >>confdefs.h
22798 COMPRESS_PATH="$GZIP"
22799 COMPRESS_SUFFIX=".gz"
22800 COMPRESS_FAST_OPT="--fast"
22801 COMPRESS_BEST_OPT="--best"
22802 UNCOMPRESS_PATH="$GZIP"
22803 UNCOMPRESS_OPT="-dc"
22805 if test "$COMPRESS"; then
22806 COMPRESS_PATH="$COMPRESS"
22807 COMPRESS_SUFFIX=".Z"
22808 COMPRESS_FAST_OPT="-f"
22809 COMPRESS_BEST_OPT="-f"
22810 UNCOMPRESS_PATH="$COMPRESS"
22811 UNCOMPRESS_OPT="-dc"
22813 # If we have to use cat, we don't define COMPRESS_FAST_OPT,
22814 # COMPRESS_BEST_OPT, or UNCOMPRESS_OPT as "" since cat will look
22815 # look for a file by the name of "".
22816 # XXX is the above true? --dustin
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find either gzip or compress. Using cat." >&5
22820 $as_echo "$as_me: WARNING: Cannot find either gzip or compress. Using cat." >&2;}
22823 cat <<AAW_EOF >>config.warnings
22824 Cannot find either gzip or compress. Using cat.
22828 COMPRESS_PATH="$CAT"
22830 COMPRESS_FAST_OPT=""
22831 COMPRESS_BEST_OPT=""
22832 UNCOMPRESS_PATH="$CAT"
22838 cat >>confdefs.h <<_ACEOF
22839 #define COMPRESS_PATH "$COMPRESS_PATH"
22843 cat >>confdefs.h <<_ACEOF
22844 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
22848 cat >>confdefs.h <<_ACEOF
22849 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
22853 cat >>confdefs.h <<_ACEOF
22854 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
22858 cat >>confdefs.h <<_ACEOF
22859 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
22863 cat >>confdefs.h <<_ACEOF
22864 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
22876 # Empty GZIP so that make dist works.
22880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_storage struct exists" >&5
22881 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
22882 if ${ac_cv_has_sockaddr_storage+:} false; then :
22883 $as_echo_n "(cached) " >&6
22886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22887 /* end confdefs.h. */
22889 # include <sys/types.h>
22890 # include <sys/socket.h>
22894 u_int i = sizeof (struct sockaddr_storage)
22899 if ac_fn_c_try_compile "$LINENO"; then :
22900 ac_cv_has_sockaddr_storage=yes
22902 ac_cv_has_sockaddr_storage=no
22904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_sockaddr_storage" >&5
22908 $as_echo "$ac_cv_has_sockaddr_storage" >&6; }
22910 if test $ac_cv_has_sockaddr_storage = yes ; then
22912 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
22921 # Check whether --with-ipv6 was given.
22922 if test "${with_ipv6+set}" = set; then :
22923 withval=$with_ipv6;
22925 y | ye | yes) amanda_with_ipv6=yes;;
22926 n | no) amanda_with_ipv6=no;;
22928 as_fn_error $? "*** You must not supply an argument to --with-ipv6 option." "$LINENO" 5
22934 amanda_with_ipv6=maybe
22940 if test x"$amanda_with_ipv6" = x"yes" ||
22941 test x"$amanda_with_ipv6" = x"maybe" ; then
22942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working IPv6" >&5
22943 $as_echo_n "checking for working IPv6... " >&6; }
22944 if ${amanda_cv_working_ipv6+:} false; then :
22945 $as_echo_n "(cached) " >&6
22949 *-pc-cygwin) amanda_cv_working_ipv6=no;;
22951 if test "$cross_compiling" = yes; then :
22952 amanda_cv_working_ipv6=yes
22955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22956 /* end confdefs.h. */
22958 #include <sys/types.h>
22959 #ifdef HAVE_SYS_SOCKET_H
22960 #include <sys/socket.h>
22962 #ifdef HAVE_NETINET_IN_H
22963 #include <netinet/in.h>
22965 #ifdef HAVE_WINSOCK2_H
22966 #include <winsock2.h>
22968 #include <sys/socket.h>
22974 aa = socket(AF_INET6, SOCK_STREAM, 0);
22975 if (aa > 0) return 0;
22979 if ac_fn_c_try_run "$LINENO"; then :
22980 amanda_cv_working_ipv6=yes
22982 amanda_cv_working_ipv6=no
22984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22985 conftest.$ac_objext conftest.beam conftest.$ac_ext
22991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_working_ipv6" >&5
22992 $as_echo "$amanda_cv_working_ipv6" >&6; }
22994 if test "$amanda_cv_working_ipv6" = yes; then
22997 $as_echo "#define WORKING_IPV6 1" >>confdefs.h
23000 # error out only if the user specifically requested support
23001 if test x"$amanda_with_ipv6" = x"yes"; then
23002 as_fn_error $? "IPv6 support was requested, but opening an IPv6 socket failed" "$LINENO" 5
23008 ac_header_dirent=no
23009 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23010 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
23012 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
23013 if eval \${$as_ac_Header+:} false; then :
23014 $as_echo_n "(cached) " >&6
23016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23017 /* end confdefs.h. */
23018 #include <sys/types.h>
23030 if ac_fn_c_try_compile "$LINENO"; then :
23031 eval "$as_ac_Header=yes"
23033 eval "$as_ac_Header=no"
23035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23037 eval ac_res=\$$as_ac_Header
23038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23039 $as_echo "$ac_res" >&6; }
23040 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23041 cat >>confdefs.h <<_ACEOF
23042 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23045 ac_header_dirent=$ac_hdr; break
23049 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23050 if test $ac_header_dirent = dirent.h; then
23051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23052 $as_echo_n "checking for library containing opendir... " >&6; }
23053 if ${ac_cv_search_opendir+:} false; then :
23054 $as_echo_n "(cached) " >&6
23056 ac_func_search_save_LIBS=$LIBS
23057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23058 /* end confdefs.h. */
23060 /* Override any GCC internal prototype to avoid an error.
23061 Use char because int might match the return type of a GCC
23062 builtin and then its argument prototype would still apply. */
23075 for ac_lib in '' dir; do
23076 if test -z "$ac_lib"; then
23077 ac_res="none required"
23080 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23082 if ac_fn_c_try_link "$LINENO"; then :
23083 ac_cv_search_opendir=$ac_res
23085 rm -f core conftest.err conftest.$ac_objext \
23087 if ${ac_cv_search_opendir+:} false; then :
23091 if ${ac_cv_search_opendir+:} false; then :
23094 ac_cv_search_opendir=no
23096 rm conftest.$ac_ext
23097 LIBS=$ac_func_search_save_LIBS
23099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23100 $as_echo "$ac_cv_search_opendir" >&6; }
23101 ac_res=$ac_cv_search_opendir
23102 if test "$ac_res" != no; then :
23103 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23109 $as_echo_n "checking for library containing opendir... " >&6; }
23110 if ${ac_cv_search_opendir+:} false; then :
23111 $as_echo_n "(cached) " >&6
23113 ac_func_search_save_LIBS=$LIBS
23114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23115 /* end confdefs.h. */
23117 /* Override any GCC internal prototype to avoid an error.
23118 Use char because int might match the return type of a GCC
23119 builtin and then its argument prototype would still apply. */
23132 for ac_lib in '' x; do
23133 if test -z "$ac_lib"; then
23134 ac_res="none required"
23137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23139 if ac_fn_c_try_link "$LINENO"; then :
23140 ac_cv_search_opendir=$ac_res
23142 rm -f core conftest.err conftest.$ac_objext \
23144 if ${ac_cv_search_opendir+:} false; then :
23148 if ${ac_cv_search_opendir+:} false; then :
23151 ac_cv_search_opendir=no
23153 rm conftest.$ac_ext
23154 LIBS=$ac_func_search_save_LIBS
23156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23157 $as_echo "$ac_cv_search_opendir" >&6; }
23158 ac_res=$ac_cv_search_opendir
23159 if test "$ac_res" != no; then :
23160 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23167 # include the dirent headers as described in the autoconf documentation.
23168 ac_fn_c_check_decl "$LINENO" "readdir" "ac_cv_have_decl_readdir" "
23170 # include <dirent.h>
23171 # define NAMLEN(dirent) strlen((dirent)->d_name)
23173 # define dirent direct
23174 # define NAMLEN(dirent) (dirent)->d_namlen
23175 # if HAVE_SYS_NDIR_H
23176 # include <sys/ndir.h>
23178 # if HAVE_SYS_DIR_H
23179 # include <sys/dir.h>
23187 if test "x$ac_cv_have_decl_readdir" = xyes; then :
23193 cat >>confdefs.h <<_ACEOF
23194 #define HAVE_DECL_READDIR $ac_have_decl
23196 ac_fn_c_check_decl "$LINENO" "readdir_r" "ac_cv_have_decl_readdir_r" "
23198 # include <dirent.h>
23199 # define NAMLEN(dirent) strlen((dirent)->d_name)
23201 # define dirent direct
23202 # define NAMLEN(dirent) (dirent)->d_namlen
23203 # if HAVE_SYS_NDIR_H
23204 # include <sys/ndir.h>
23206 # if HAVE_SYS_DIR_H
23207 # include <sys/dir.h>
23215 if test "x$ac_cv_have_decl_readdir_r" = xyes; then :
23221 cat >>confdefs.h <<_ACEOF
23222 #define HAVE_DECL_READDIR_R $ac_have_decl
23224 ac_fn_c_check_decl "$LINENO" "readdir64" "ac_cv_have_decl_readdir64" "
23226 # include <dirent.h>
23227 # define NAMLEN(dirent) strlen((dirent)->d_name)
23229 # define dirent direct
23230 # define NAMLEN(dirent) (dirent)->d_namlen
23231 # if HAVE_SYS_NDIR_H
23232 # include <sys/ndir.h>
23234 # if HAVE_SYS_DIR_H
23235 # include <sys/dir.h>
23243 if test "x$ac_cv_have_decl_readdir64" = xyes; then :
23249 cat >>confdefs.h <<_ACEOF
23250 #define HAVE_DECL_READDIR64 $ac_have_decl
23252 ac_fn_c_check_decl "$LINENO" "readdir64_r" "ac_cv_have_decl_readdir64_r" "
23254 # include <dirent.h>
23255 # define NAMLEN(dirent) strlen((dirent)->d_name)
23257 # define dirent direct
23258 # define NAMLEN(dirent) (dirent)->d_namlen
23259 # if HAVE_SYS_NDIR_H
23260 # include <sys/ndir.h>
23262 # if HAVE_SYS_DIR_H
23263 # include <sys/dir.h>
23271 if test "x$ac_cv_have_decl_readdir64_r" = xyes; then :
23277 cat >>confdefs.h <<_ACEOF
23278 #define HAVE_DECL_READDIR64_R $ac_have_decl
23283 # disk device prefixes
23284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking disk device prefixes" >&5
23285 $as_echo_n "checking disk device prefixes... " >&6; }
23287 # Use df to find the mount point for the root filesystem. Use
23288 # the positional parameters to find the particular line from df
23289 # that contains the root paritition. We put it in a subshell so
23290 # that the original positional parameters are not messed with.
23292 df / | while read line; do
23294 while test $# -gt 0; do
23295 if test "x$1" = "x/"; then
23302 ) | sed 's/(//' | sed 's/)//' `
23304 # Search for the mount point by using expr to find the parameter
23308 while test $# -gt 0; do
23309 if expr "$1" : '.*dev' >/dev/null 2>&1; then
23317 # get any system-specific configuration information
23320 CLIENT_SCRIPTS_OPT=amhpfixdevs
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&5
23325 $as_echo "$as_me: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&2;}
23328 cat <<AAW_EOF >>config.warnings
23329 Run amhpfixdevs on HP-UX systems using /dev/vg??.
23337 DEV_PREFIX=/dev/dsk/
23338 RDEV_PREFIX=/dev/rdsk/
23339 CLIENT_SCRIPTS_OPT=amsinixfixdevs
23340 if ! test -d /dev/dsk; then
23342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&5
23343 $as_echo "$as_me: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&2;}
23346 cat <<AAW_EOF >>config.warnings
23347 Run amsinixfixdevs on Sinix systems using VxFS.
23358 CLIENT_SCRIPTS_OPT=
23362 if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
23364 $as_echo "(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6; }
23366 if test -d /dev/dsk; then
23367 DEV_PREFIX=/dev/dsk/
23368 if test -d /dev/rdsk; then
23369 RDEV_PREFIX=/dev/rdsk/
23371 RDEV_PREFIX=/dev/dsk/
23373 elif test -d /dev; then
23376 # Some systems, notably Linux, do not have raw disk devices
23377 # names. Check this by trying to see if a raw disk device name
23378 # exists using the normal raw device path prepended to the
23379 # mount point of the root filesystem.
23380 if test "$mount"; then
23381 dev_name="/dev/r`basename $mount`"
23382 if test -b $dev_name -o -c $dev_name; then
23395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
23396 $as_echo "$DEV_PREFIX - $RDEV_PREFIX" >&6; }
23400 cat >>confdefs.h <<_ACEOF
23401 #define DEV_PREFIX "${DEV_PREFIX}"
23405 cat >>confdefs.h <<_ACEOF
23406 #define RDEV_PREFIX "${RDEV_PREFIX}"
23426 CPPFLAGS="$CPPFLAGS -D__STDC_EXT__"
23430 CFLAGS="$CFLAGS -Ae"
23437 m88k-motorola-sysv4)
23458 # The old cc won't work!
23459 if test "x$GCC" != "xyes"; then
23460 as_fn_error $? "The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" "$LINENO" 5
23485 $as_echo "#define IGNORE_TAR_ERRORS 1" >>confdefs.h
23487 # Cygwin needs PATH to find cygwin1.dll
23489 $as_echo "#define NEED_PATH_ENV 1" >>confdefs.h
23492 $as_echo "#define IGNORE_FSTAB 1" >>confdefs.h
23494 LDFLAGS="$LDFLAGS -Wl,-enable-runtime-pseudo-reloc -no-undefined"
23497 *-apple-darwin7*) # MacOS X 10.3.* (Panther)
23499 *-apple-darwin8*) # MacOS X 10.4.* (Tiger)
23501 *-apple-darwin9*) # MacOS X 10.5.* (Leopard)
23503 *-apple-darwin10*) # MacOS X 10.6.* (Snow Leopard)
23508 cat <<AAW_EOF >>config.warnings
23510 This machine, target type $host, is not known to be fully supported
23511 by this configure script. If the installation of Amanda on this system
23512 succeeds or needed any patches, please email amanda-hackers@amanda.org
23513 with the patches or an indication of the sucess or failure of the
23514 Amanda installation on your system.
23527 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23528 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23529 eval ac_define_dir="\"$bindir\""
23530 eval ac_define_dir="\"$ac_define_dir\""
23531 bindir="$ac_define_dir"
23534 cat >>confdefs.h <<_ACEOF
23535 #define bindir "$ac_define_dir"
23538 test "$prefix_NONE" && prefix=NONE
23539 test "$exec_prefix_NONE" && exec_prefix=NONE
23545 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23546 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23547 eval ac_define_dir="\"$sbindir\""
23548 eval ac_define_dir="\"$ac_define_dir\""
23549 sbindir="$ac_define_dir"
23552 cat >>confdefs.h <<_ACEOF
23553 #define sbindir "$ac_define_dir"
23556 test "$prefix_NONE" && prefix=NONE
23557 test "$exec_prefix_NONE" && exec_prefix=NONE
23563 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23564 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23565 eval ac_define_dir="\"$libexecdir\""
23566 eval ac_define_dir="\"$ac_define_dir\""
23567 libexecdir="$ac_define_dir"
23570 cat >>confdefs.h <<_ACEOF
23571 #define libexecdir "$ac_define_dir"
23574 test "$prefix_NONE" && prefix=NONE
23575 test "$exec_prefix_NONE" && exec_prefix=NONE
23581 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23582 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23583 eval ac_define_dir="\"$mandir\""
23584 eval ac_define_dir="\"$ac_define_dir\""
23585 mandir="$ac_define_dir"
23588 cat >>confdefs.h <<_ACEOF
23589 #define mandir "$ac_define_dir"
23592 test "$prefix_NONE" && prefix=NONE
23593 test "$exec_prefix_NONE" && exec_prefix=NONE
23597 # amanda-specific directories
23598 AMLIBDIR=$libdir/amanda
23600 # Check whether --with-amlibdir was given.
23601 if test "${with_amlibdir+set}" = set; then :
23602 withval=$with_amlibdir;
23604 n | no) AMLIBDIR=$libdir ;;
23605 y | ye | yes) AMLIBDIR=$libdir/amanda ;;
23606 *) AMLIBDIR=$withval ;;
23615 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23616 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23617 eval ac_define_dir="\"$AMLIBDIR\""
23618 eval ac_define_dir="\"$ac_define_dir\""
23619 amlibdir="$ac_define_dir"
23622 cat >>confdefs.h <<_ACEOF
23623 #define amlibdir "$ac_define_dir"
23626 test "$prefix_NONE" && prefix=NONE
23627 test "$exec_prefix_NONE" && exec_prefix=NONE
23630 AMLIBEXECDIR=$libexecdir/amanda
23632 # Check whether --with-amlibexecdir was given.
23633 if test "${with_amlibexecdir+set}" = set; then :
23634 withval=$with_amlibexecdir;
23636 n | no) AMLIBEXECDIR=$libexecdir ;;
23637 y | ye | yes) AMLIBEXECDIR=$libexecdir/amanda ;;
23638 *) AMLIBEXECDIR=$withval ;;
23647 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23648 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23649 eval ac_define_dir="\"$AMLIBEXECDIR\""
23650 eval ac_define_dir="\"$ac_define_dir\""
23651 amlibexecdir="$ac_define_dir"
23654 cat >>confdefs.h <<_ACEOF
23655 #define amlibexecdir "$ac_define_dir"
23658 test "$prefix_NONE" && prefix=NONE
23659 test "$exec_prefix_NONE" && exec_prefix=NONE
23662 amincludedir="${includedir}/amanda"
23666 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23667 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23668 eval ac_define_dir="\"$amincludedir\""
23669 eval ac_define_dir="\"$ac_define_dir\""
23670 amincludedir="$ac_define_dir"
23673 cat >>confdefs.h <<_ACEOF
23674 #define amincludedir "$ac_define_dir"
23677 test "$prefix_NONE" && prefix=NONE
23678 test "$exec_prefix_NONE" && exec_prefix=NONE
23682 # Check whether --with-amperldir was given.
23683 if test "${with_amperldir+set}" = set; then :
23684 withval=$with_amperldir;
23686 y | ye | yes) AMPERLLIB=DEFAULT ;;
23687 n | no) AMPERLLIB=$amlibdir/perl ;;
23688 *) AMPERLLIB=$withval ;;
23698 # apply the default if no value was given.
23699 if test x"$AMPERLLIB" = x"DEFAULT"; then
23700 eval `$PERL -V:installsitelib`
23701 AMPERLLIB=$installsitelib
23706 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23707 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23708 eval ac_define_dir="\"$AMPERLLIB\""
23709 eval ac_define_dir="\"$ac_define_dir\""
23710 amperldir="$ac_define_dir"
23713 cat >>confdefs.h <<_ACEOF
23714 #define amperldir "$ac_define_dir"
23717 test "$prefix_NONE" && prefix=NONE
23718 test "$exec_prefix_NONE" && exec_prefix=NONE
23721 APPLICATION_DIR='${amlibexecdir}/application'
23725 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23726 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23727 eval ac_define_dir="\"$APPLICATION_DIR\""
23728 eval ac_define_dir="\"$ac_define_dir\""
23729 APPLICATION_DIR="$ac_define_dir"
23732 cat >>confdefs.h <<_ACEOF
23733 #define APPLICATION_DIR "$ac_define_dir"
23736 test "$prefix_NONE" && prefix=NONE
23737 test "$exec_prefix_NONE" && exec_prefix=NONE
23741 # Check whether --with-amdatadir was given.
23742 if test "${with_amdatadir+set}" = set; then :
23743 withval=$with_amdatadir;
23748 AMDATADIR=$datadir/amanda
23756 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23757 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23758 eval ac_define_dir="\"$AMDATADIR\""
23759 eval ac_define_dir="\"$ac_define_dir\""
23760 amdatadir="$ac_define_dir"
23763 cat >>confdefs.h <<_ACEOF
23764 #define amdatadir "$ac_define_dir"
23767 test "$prefix_NONE" && prefix=NONE
23768 test "$exec_prefix_NONE" && exec_prefix=NONE
23773 # Internationalization
23776 # FreeBSD needs to link libxpg4
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setlocale in -lxpg4" >&5
23778 $as_echo_n "checking for setlocale in -lxpg4... " >&6; }
23779 if ${ac_cv_lib_xpg4_setlocale+:} false; then :
23780 $as_echo_n "(cached) " >&6
23782 ac_check_lib_save_LIBS=$LIBS
23783 LIBS="-lxpg4 $LIBS"
23784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23785 /* end confdefs.h. */
23787 /* Override any GCC internal prototype to avoid an error.
23788 Use char because int might match the return type of a GCC
23789 builtin and then its argument prototype would still apply. */
23797 return setlocale ();
23802 if ac_fn_c_try_link "$LINENO"; then :
23803 ac_cv_lib_xpg4_setlocale=yes
23805 ac_cv_lib_xpg4_setlocale=no
23807 rm -f core conftest.err conftest.$ac_objext \
23808 conftest$ac_exeext conftest.$ac_ext
23809 LIBS=$ac_check_lib_save_LIBS
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4_setlocale" >&5
23812 $as_echo "$ac_cv_lib_xpg4_setlocale" >&6; }
23813 if test "x$ac_cv_lib_xpg4_setlocale" = xyes; then :
23814 cat >>confdefs.h <<_ACEOF
23815 #define HAVE_LIBXPG4 1
23818 LIBS="-lxpg4 $LIBS"
23823 # ------------------------------------------------------------------
23824 # All list of languages for which a translation exist. Each
23825 # language is separated by a space.
23826 # ------------------------------------------------------------------
23830 # Extract the first word of "msgfmt", so it can be a program name with args.
23831 set dummy msgfmt; ac_word=$2
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23833 $as_echo_n "checking for $ac_word... " >&6; }
23834 if ${ac_cv_path_MSGFMT+:} false; then :
23835 $as_echo_n "(cached) " >&6
23839 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
23842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23843 for as_dir in $LOCSYSPATH
23846 test -z "$as_dir" && as_dir=.
23847 for ac_exec_ext in '' $ac_executable_extensions; do
23848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23849 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
23850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23860 MSGFMT=$ac_cv_path_MSGFMT
23861 if test -n "$MSGFMT"; then
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
23863 $as_echo "$MSGFMT" >&6; }
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23866 $as_echo "no" >&6; }
23870 # Extract the first word of "gettext", so it can be a program name with args.
23871 set dummy gettext; ac_word=$2
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23873 $as_echo_n "checking for $ac_word... " >&6; }
23874 if ${ac_cv_path_GETTEXT+:} false; then :
23875 $as_echo_n "(cached) " >&6
23879 ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
23882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23883 for as_dir in $LOCSYSPATH
23886 test -z "$as_dir" && as_dir=.
23887 for ac_exec_ext in '' $ac_executable_extensions; do
23888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23889 ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
23890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23900 GETTEXT=$ac_cv_path_GETTEXT
23901 if test -n "$GETTEXT"; then
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETTEXT" >&5
23903 $as_echo "$GETTEXT" >&6; }
23905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23906 $as_echo "no" >&6; }
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
23914 $as_echo_n "checking whether NLS is requested... " >&6; }
23915 # Check whether --enable-nls was given.
23916 if test "${enable_nls+set}" = set; then :
23917 enableval=$enable_nls; USE_NLS=$enableval
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
23923 $as_echo "$USE_NLS" >&6; }
23930 # Prepare PATH_SEPARATOR.
23931 # The user is always right.
23932 if test "${PATH_SEPARATOR+set}" != set; then
23933 echo "#! /bin/sh" >conf$$.sh
23934 echo "exit 0" >>conf$$.sh
23936 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23944 # Find out how to test for executable files. Don't use a zero-byte file,
23945 # as systems may use methods other than mode bits to determine executability.
23946 cat >conf$$.file <<_ASEOF
23950 chmod +x conf$$.file
23951 if test -x conf$$.file >/dev/null 2>&1; then
23952 ac_executable_p="test -x"
23954 ac_executable_p="test -f"
23958 # Extract the first word of "msgfmt", so it can be a program name with args.
23959 set dummy msgfmt; ac_word=$2
23960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23961 $as_echo_n "checking for $ac_word... " >&6; }
23962 if ${ac_cv_path_MSGFMT+:} false; then :
23963 $as_echo_n "(cached) " >&6
23967 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
23970 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
23971 for ac_dir in $PATH; do
23973 test -z "$ac_dir" && ac_dir=.
23974 for ac_exec_ext in '' $ac_executable_extensions; do
23975 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
23976 echo "$as_me: trying $ac_dir/$ac_word..." >&5
23977 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
23978 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
23979 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
23986 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
23990 MSGFMT="$ac_cv_path_MSGFMT"
23991 if test "$MSGFMT" != ":"; then
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
23993 $as_echo "$MSGFMT" >&6; }
23995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23996 $as_echo "no" >&6; }
23999 # Extract the first word of "gmsgfmt", so it can be a program name with args.
24000 set dummy gmsgfmt; ac_word=$2
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24002 $as_echo_n "checking for $ac_word... " >&6; }
24003 if ${ac_cv_path_GMSGFMT+:} false; then :
24004 $as_echo_n "(cached) " >&6
24008 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
24011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24012 for as_dir in $PATH
24015 test -z "$as_dir" && as_dir=.
24016 for ac_exec_ext in '' $ac_executable_extensions; do
24017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24018 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
24019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24026 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
24030 GMSGFMT=$ac_cv_path_GMSGFMT
24031 if test -n "$GMSGFMT"; then
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
24033 $as_echo "$GMSGFMT" >&6; }
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24036 $as_echo "no" >&6; }
24041 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
24042 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
24043 *) MSGFMT_015=$MSGFMT ;;
24046 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
24047 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
24048 *) GMSGFMT_015=$GMSGFMT ;;
24053 # Prepare PATH_SEPARATOR.
24054 # The user is always right.
24055 if test "${PATH_SEPARATOR+set}" != set; then
24056 echo "#! /bin/sh" >conf$$.sh
24057 echo "exit 0" >>conf$$.sh
24059 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24067 # Find out how to test for executable files. Don't use a zero-byte file,
24068 # as systems may use methods other than mode bits to determine executability.
24069 cat >conf$$.file <<_ASEOF
24073 chmod +x conf$$.file
24074 if test -x conf$$.file >/dev/null 2>&1; then
24075 ac_executable_p="test -x"
24077 ac_executable_p="test -f"
24081 # Extract the first word of "xgettext", so it can be a program name with args.
24082 set dummy xgettext; ac_word=$2
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24084 $as_echo_n "checking for $ac_word... " >&6; }
24085 if ${ac_cv_path_XGETTEXT+:} false; then :
24086 $as_echo_n "(cached) " >&6
24088 case "$XGETTEXT" in
24090 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
24093 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
24094 for ac_dir in $PATH; do
24096 test -z "$ac_dir" && ac_dir=.
24097 for ac_exec_ext in '' $ac_executable_extensions; do
24098 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
24099 echo "$as_me: trying $ac_dir/$ac_word..." >&5
24100 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
24101 (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
24102 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
24109 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
24113 XGETTEXT="$ac_cv_path_XGETTEXT"
24114 if test "$XGETTEXT" != ":"; then
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
24116 $as_echo "$XGETTEXT" >&6; }
24118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24119 $as_echo "no" >&6; }
24124 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
24125 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
24126 *) XGETTEXT_015=$XGETTEXT ;;
24131 # Prepare PATH_SEPARATOR.
24132 # The user is always right.
24133 if test "${PATH_SEPARATOR+set}" != set; then
24134 echo "#! /bin/sh" >conf$$.sh
24135 echo "exit 0" >>conf$$.sh
24137 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24145 # Find out how to test for executable files. Don't use a zero-byte file,
24146 # as systems may use methods other than mode bits to determine executability.
24147 cat >conf$$.file <<_ASEOF
24151 chmod +x conf$$.file
24152 if test -x conf$$.file >/dev/null 2>&1; then
24153 ac_executable_p="test -x"
24155 ac_executable_p="test -f"
24159 # Extract the first word of "msgmerge", so it can be a program name with args.
24160 set dummy msgmerge; ac_word=$2
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24162 $as_echo_n "checking for $ac_word... " >&6; }
24163 if ${ac_cv_path_MSGMERGE+:} false; then :
24164 $as_echo_n "(cached) " >&6
24166 case "$MSGMERGE" in
24168 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
24171 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
24172 for ac_dir in $PATH; do
24174 test -z "$ac_dir" && ac_dir=.
24175 for ac_exec_ext in '' $ac_executable_extensions; do
24176 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
24177 echo "$as_me: trying $ac_dir/$ac_word..." >&5
24178 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
24179 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
24186 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
24190 MSGMERGE="$ac_cv_path_MSGMERGE"
24191 if test "$MSGMERGE" != ":"; then
24192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
24193 $as_echo "$MSGMERGE" >&6; }
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24196 $as_echo "no" >&6; }
24200 test -n "$localedir" || localedir='${datadir}/locale'
24203 ac_config_commands="$ac_config_commands po-directories"
24215 acl_save_prefix="$prefix"
24216 prefix="$acl_final_prefix"
24217 acl_save_exec_prefix="$exec_prefix"
24218 exec_prefix="$acl_final_exec_prefix"
24220 eval additional_includedir=\"$includedir\"
24221 eval additional_libdir=\"$libdir\"
24223 exec_prefix="$acl_save_exec_prefix"
24224 prefix="$acl_save_prefix"
24227 # Check whether --with-libiconv-prefix was given.
24228 if test "${with_libiconv_prefix+set}" = set; then :
24229 withval=$with_libiconv_prefix;
24230 if test "X$withval" = "Xno"; then
24233 if test "X$withval" = "X"; then
24235 acl_save_prefix="$prefix"
24236 prefix="$acl_final_prefix"
24237 acl_save_exec_prefix="$exec_prefix"
24238 exec_prefix="$acl_final_exec_prefix"
24240 eval additional_includedir=\"$includedir\"
24241 eval additional_libdir=\"$libdir\"
24243 exec_prefix="$acl_save_exec_prefix"
24244 prefix="$acl_save_prefix"
24247 additional_includedir="$withval/include"
24248 additional_libdir="$withval/$acl_libdirstem"
24259 names_already_handled=
24260 names_next_round='iconv '
24261 while test -n "$names_next_round"; do
24262 names_this_round="$names_next_round"
24264 for name in $names_this_round; do
24266 for n in $names_already_handled; do
24267 if test "$n" = "$name"; then
24268 already_handled=yes
24272 if test -z "$already_handled"; then
24273 names_already_handled="$names_already_handled $name"
24274 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24275 eval value=\"\$HAVE_LIB$uppername\"
24276 if test -n "$value"; then
24277 if test "$value" = yes; then
24278 eval value=\"\$LIB$uppername\"
24279 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
24280 eval value=\"\$LTLIB$uppername\"
24281 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
24290 if test $use_additional = yes; then
24291 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
24292 found_dir="$additional_libdir"
24293 found_so="$additional_libdir/lib$name.$shlibext"
24294 if test -f "$additional_libdir/lib$name.la"; then
24295 found_la="$additional_libdir/lib$name.la"
24298 if test -f "$additional_libdir/lib$name.$libext"; then
24299 found_dir="$additional_libdir"
24300 found_a="$additional_libdir/lib$name.$libext"
24301 if test -f "$additional_libdir/lib$name.la"; then
24302 found_la="$additional_libdir/lib$name.la"
24307 if test "X$found_dir" = "X"; then
24308 for x in $LDFLAGS $LTLIBICONV; do
24310 acl_save_prefix="$prefix"
24311 prefix="$acl_final_prefix"
24312 acl_save_exec_prefix="$exec_prefix"
24313 exec_prefix="$acl_final_exec_prefix"
24315 exec_prefix="$acl_save_exec_prefix"
24316 prefix="$acl_save_prefix"
24320 dir=`echo "X$x" | sed -e 's/^X-L//'`
24321 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
24323 found_so="$dir/lib$name.$shlibext"
24324 if test -f "$dir/lib$name.la"; then
24325 found_la="$dir/lib$name.la"
24328 if test -f "$dir/lib$name.$libext"; then
24330 found_a="$dir/lib$name.$libext"
24331 if test -f "$dir/lib$name.la"; then
24332 found_la="$dir/lib$name.la"
24338 if test "X$found_dir" != "X"; then
24343 if test "X$found_dir" != "X"; then
24344 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
24345 if test "X$found_so" != "X"; then
24346 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
24347 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24350 for x in $ltrpathdirs; do
24351 if test "X$x" = "X$found_dir"; then
24356 if test -z "$haveit"; then
24357 ltrpathdirs="$ltrpathdirs $found_dir"
24359 if test "$hardcode_direct" = yes; then
24360 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24362 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24363 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24365 for x in $rpathdirs; do
24366 if test "X$x" = "X$found_dir"; then
24371 if test -z "$haveit"; then
24372 rpathdirs="$rpathdirs $found_dir"
24376 for x in $LDFLAGS $LIBICONV; do
24378 acl_save_prefix="$prefix"
24379 prefix="$acl_final_prefix"
24380 acl_save_exec_prefix="$exec_prefix"
24381 exec_prefix="$acl_final_exec_prefix"
24383 exec_prefix="$acl_save_exec_prefix"
24384 prefix="$acl_save_prefix"
24386 if test "X$x" = "X-L$found_dir"; then
24391 if test -z "$haveit"; then
24392 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
24394 if test "$hardcode_minus_L" != no; then
24395 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24397 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24403 if test "X$found_a" != "X"; then
24404 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
24406 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
24409 additional_includedir=
24410 case "$found_dir" in
24411 */$acl_libdirstem | */$acl_libdirstem/)
24412 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
24413 additional_includedir="$basedir/include"
24416 if test "X$additional_includedir" != "X"; then
24417 if test "X$additional_includedir" != "X/usr/include"; then
24419 if test "X$additional_includedir" = "X/usr/local/include"; then
24420 if test -n "$GCC"; then
24422 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24426 if test -z "$haveit"; then
24427 for x in $CPPFLAGS $INCICONV; do
24429 acl_save_prefix="$prefix"
24430 prefix="$acl_final_prefix"
24431 acl_save_exec_prefix="$exec_prefix"
24432 exec_prefix="$acl_final_exec_prefix"
24434 exec_prefix="$acl_save_exec_prefix"
24435 prefix="$acl_save_prefix"
24437 if test "X$x" = "X-I$additional_includedir"; then
24442 if test -z "$haveit"; then
24443 if test -d "$additional_includedir"; then
24444 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
24450 if test -n "$found_la"; then
24451 save_libdir="$libdir"
24452 case "$found_la" in
24453 */* | *\\*) . "$found_la" ;;
24454 *) . "./$found_la" ;;
24456 libdir="$save_libdir"
24457 for dep in $dependency_libs; do
24460 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24461 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
24463 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
24464 if test -n "$GCC"; then
24466 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24470 if test -z "$haveit"; then
24472 for x in $LDFLAGS $LIBICONV; do
24474 acl_save_prefix="$prefix"
24475 prefix="$acl_final_prefix"
24476 acl_save_exec_prefix="$exec_prefix"
24477 exec_prefix="$acl_final_exec_prefix"
24479 exec_prefix="$acl_save_exec_prefix"
24480 prefix="$acl_save_prefix"
24482 if test "X$x" = "X-L$additional_libdir"; then
24487 if test -z "$haveit"; then
24488 if test -d "$additional_libdir"; then
24489 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
24493 for x in $LDFLAGS $LTLIBICONV; do
24495 acl_save_prefix="$prefix"
24496 prefix="$acl_final_prefix"
24497 acl_save_exec_prefix="$exec_prefix"
24498 exec_prefix="$acl_final_exec_prefix"
24500 exec_prefix="$acl_save_exec_prefix"
24501 prefix="$acl_save_prefix"
24503 if test "X$x" = "X-L$additional_libdir"; then
24508 if test -z "$haveit"; then
24509 if test -d "$additional_libdir"; then
24510 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
24517 dir=`echo "X$dep" | sed -e 's/^X-R//'`
24518 if test "$enable_rpath" != no; then
24520 for x in $rpathdirs; do
24521 if test "X$x" = "X$dir"; then
24526 if test -z "$haveit"; then
24527 rpathdirs="$rpathdirs $dir"
24530 for x in $ltrpathdirs; do
24531 if test "X$x" = "X$dir"; then
24536 if test -z "$haveit"; then
24537 ltrpathdirs="$ltrpathdirs $dir"
24542 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24545 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24548 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
24549 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
24555 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24556 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
24562 if test "X$rpathdirs" != "X"; then
24563 if test -n "$hardcode_libdir_separator"; then
24565 for found_dir in $rpathdirs; do
24566 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
24568 acl_save_libdir="$libdir"
24570 eval flag=\"$hardcode_libdir_flag_spec\"
24571 libdir="$acl_save_libdir"
24572 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
24574 for found_dir in $rpathdirs; do
24575 acl_save_libdir="$libdir"
24576 libdir="$found_dir"
24577 eval flag=\"$hardcode_libdir_flag_spec\"
24578 libdir="$acl_save_libdir"
24579 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
24583 if test "X$ltrpathdirs" != "X"; then
24584 for found_dir in $ltrpathdirs; do
24585 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
24606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
24607 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
24608 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
24609 $as_echo_n "(cached) " >&6
24611 gt_save_LIBS="$LIBS"
24612 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
24613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24614 /* end confdefs.h. */
24615 #include <CoreFoundation/CFPreferences.h>
24619 CFPreferencesCopyAppValue(NULL, NULL)
24624 if ac_fn_c_try_link "$LINENO"; then :
24625 gt_cv_func_CFPreferencesCopyAppValue=yes
24627 gt_cv_func_CFPreferencesCopyAppValue=no
24629 rm -f core conftest.err conftest.$ac_objext \
24630 conftest$ac_exeext conftest.$ac_ext
24631 LIBS="$gt_save_LIBS"
24633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
24634 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
24635 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
24637 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
24641 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
24642 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
24643 $as_echo_n "(cached) " >&6
24645 gt_save_LIBS="$LIBS"
24646 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
24647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24648 /* end confdefs.h. */
24649 #include <CoreFoundation/CFLocale.h>
24653 CFLocaleCopyCurrent();
24658 if ac_fn_c_try_link "$LINENO"; then :
24659 gt_cv_func_CFLocaleCopyCurrent=yes
24661 gt_cv_func_CFLocaleCopyCurrent=no
24663 rm -f core conftest.err conftest.$ac_objext \
24664 conftest$ac_exeext conftest.$ac_ext
24665 LIBS="$gt_save_LIBS"
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
24668 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
24669 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24671 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
24675 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24676 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
24688 if test "$USE_NLS" = "yes"; then
24689 gt_use_preinstalled_gnugettext=no
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
24697 $as_echo_n "checking for GNU gettext in libc... " >&6; }
24698 if ${gt_cv_func_gnugettext1_libc+:} false; then :
24699 $as_echo_n "(cached) " >&6
24701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24702 /* end confdefs.h. */
24703 #include <libintl.h>
24704 extern int _nl_msg_cat_cntr;
24705 extern int *_nl_domain_bindings;
24709 bindtextdomain ("", "");
24710 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
24715 if ac_fn_c_try_link "$LINENO"; then :
24716 gt_cv_func_gnugettext1_libc=yes
24718 gt_cv_func_gnugettext1_libc=no
24720 rm -f core conftest.err conftest.$ac_objext \
24721 conftest$ac_exeext conftest.$ac_ext
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
24724 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
24726 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
24732 am_save_CPPFLAGS="$CPPFLAGS"
24734 for element in $INCICONV; do
24736 for x in $CPPFLAGS; do
24738 acl_save_prefix="$prefix"
24739 prefix="$acl_final_prefix"
24740 acl_save_exec_prefix="$exec_prefix"
24741 exec_prefix="$acl_final_exec_prefix"
24743 exec_prefix="$acl_save_exec_prefix"
24744 prefix="$acl_save_prefix"
24746 if test "X$x" = "X$element"; then
24751 if test -z "$haveit"; then
24752 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
24758 $as_echo_n "checking for iconv... " >&6; }
24759 if ${am_cv_func_iconv+:} false; then :
24760 $as_echo_n "(cached) " >&6
24763 am_cv_func_iconv="no, consider installing GNU libiconv"
24765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24766 /* end confdefs.h. */
24767 #include <stdlib.h>
24772 iconv_t cd = iconv_open("","");
24773 iconv(cd,NULL,NULL,NULL,NULL);
24779 if ac_fn_c_try_link "$LINENO"; then :
24780 am_cv_func_iconv=yes
24782 rm -f core conftest.err conftest.$ac_objext \
24783 conftest$ac_exeext conftest.$ac_ext
24784 if test "$am_cv_func_iconv" != yes; then
24785 am_save_LIBS="$LIBS"
24786 LIBS="$LIBS $LIBICONV"
24787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24788 /* end confdefs.h. */
24789 #include <stdlib.h>
24794 iconv_t cd = iconv_open("","");
24795 iconv(cd,NULL,NULL,NULL,NULL);
24801 if ac_fn_c_try_link "$LINENO"; then :
24802 am_cv_lib_iconv=yes
24803 am_cv_func_iconv=yes
24805 rm -f core conftest.err conftest.$ac_objext \
24806 conftest$ac_exeext conftest.$ac_ext
24807 LIBS="$am_save_LIBS"
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
24812 $as_echo "$am_cv_func_iconv" >&6; }
24813 if test "$am_cv_func_iconv" = yes; then
24815 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
24818 if test "$am_cv_lib_iconv" = yes; then
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
24820 $as_echo_n "checking how to link with libiconv... " >&6; }
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
24822 $as_echo "$LIBICONV" >&6; }
24824 CPPFLAGS="$am_save_CPPFLAGS"
24837 acl_save_prefix="$prefix"
24838 prefix="$acl_final_prefix"
24839 acl_save_exec_prefix="$exec_prefix"
24840 exec_prefix="$acl_final_exec_prefix"
24842 eval additional_includedir=\"$includedir\"
24843 eval additional_libdir=\"$libdir\"
24845 exec_prefix="$acl_save_exec_prefix"
24846 prefix="$acl_save_prefix"
24849 # Check whether --with-libintl-prefix was given.
24850 if test "${with_libintl_prefix+set}" = set; then :
24851 withval=$with_libintl_prefix;
24852 if test "X$withval" = "Xno"; then
24855 if test "X$withval" = "X"; then
24857 acl_save_prefix="$prefix"
24858 prefix="$acl_final_prefix"
24859 acl_save_exec_prefix="$exec_prefix"
24860 exec_prefix="$acl_final_exec_prefix"
24862 eval additional_includedir=\"$includedir\"
24863 eval additional_libdir=\"$libdir\"
24865 exec_prefix="$acl_save_exec_prefix"
24866 prefix="$acl_save_prefix"
24869 additional_includedir="$withval/include"
24870 additional_libdir="$withval/$acl_libdirstem"
24881 names_already_handled=
24882 names_next_round='intl '
24883 while test -n "$names_next_round"; do
24884 names_this_round="$names_next_round"
24886 for name in $names_this_round; do
24888 for n in $names_already_handled; do
24889 if test "$n" = "$name"; then
24890 already_handled=yes
24894 if test -z "$already_handled"; then
24895 names_already_handled="$names_already_handled $name"
24896 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24897 eval value=\"\$HAVE_LIB$uppername\"
24898 if test -n "$value"; then
24899 if test "$value" = yes; then
24900 eval value=\"\$LIB$uppername\"
24901 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
24902 eval value=\"\$LTLIB$uppername\"
24903 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
24912 if test $use_additional = yes; then
24913 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
24914 found_dir="$additional_libdir"
24915 found_so="$additional_libdir/lib$name.$shlibext"
24916 if test -f "$additional_libdir/lib$name.la"; then
24917 found_la="$additional_libdir/lib$name.la"
24920 if test -f "$additional_libdir/lib$name.$libext"; then
24921 found_dir="$additional_libdir"
24922 found_a="$additional_libdir/lib$name.$libext"
24923 if test -f "$additional_libdir/lib$name.la"; then
24924 found_la="$additional_libdir/lib$name.la"
24929 if test "X$found_dir" = "X"; then
24930 for x in $LDFLAGS $LTLIBINTL; do
24932 acl_save_prefix="$prefix"
24933 prefix="$acl_final_prefix"
24934 acl_save_exec_prefix="$exec_prefix"
24935 exec_prefix="$acl_final_exec_prefix"
24937 exec_prefix="$acl_save_exec_prefix"
24938 prefix="$acl_save_prefix"
24942 dir=`echo "X$x" | sed -e 's/^X-L//'`
24943 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
24945 found_so="$dir/lib$name.$shlibext"
24946 if test -f "$dir/lib$name.la"; then
24947 found_la="$dir/lib$name.la"
24950 if test -f "$dir/lib$name.$libext"; then
24952 found_a="$dir/lib$name.$libext"
24953 if test -f "$dir/lib$name.la"; then
24954 found_la="$dir/lib$name.la"
24960 if test "X$found_dir" != "X"; then
24965 if test "X$found_dir" != "X"; then
24966 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
24967 if test "X$found_so" != "X"; then
24968 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
24969 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24972 for x in $ltrpathdirs; do
24973 if test "X$x" = "X$found_dir"; then
24978 if test -z "$haveit"; then
24979 ltrpathdirs="$ltrpathdirs $found_dir"
24981 if test "$hardcode_direct" = yes; then
24982 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24984 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24985 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24987 for x in $rpathdirs; do
24988 if test "X$x" = "X$found_dir"; then
24993 if test -z "$haveit"; then
24994 rpathdirs="$rpathdirs $found_dir"
24998 for x in $LDFLAGS $LIBINTL; do
25000 acl_save_prefix="$prefix"
25001 prefix="$acl_final_prefix"
25002 acl_save_exec_prefix="$exec_prefix"
25003 exec_prefix="$acl_final_exec_prefix"
25005 exec_prefix="$acl_save_exec_prefix"
25006 prefix="$acl_save_prefix"
25008 if test "X$x" = "X-L$found_dir"; then
25013 if test -z "$haveit"; then
25014 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
25016 if test "$hardcode_minus_L" != no; then
25017 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
25019 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
25025 if test "X$found_a" != "X"; then
25026 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
25028 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
25031 additional_includedir=
25032 case "$found_dir" in
25033 */$acl_libdirstem | */$acl_libdirstem/)
25034 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
25035 additional_includedir="$basedir/include"
25038 if test "X$additional_includedir" != "X"; then
25039 if test "X$additional_includedir" != "X/usr/include"; then
25041 if test "X$additional_includedir" = "X/usr/local/include"; then
25042 if test -n "$GCC"; then
25044 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25048 if test -z "$haveit"; then
25049 for x in $CPPFLAGS $INCINTL; do
25051 acl_save_prefix="$prefix"
25052 prefix="$acl_final_prefix"
25053 acl_save_exec_prefix="$exec_prefix"
25054 exec_prefix="$acl_final_exec_prefix"
25056 exec_prefix="$acl_save_exec_prefix"
25057 prefix="$acl_save_prefix"
25059 if test "X$x" = "X-I$additional_includedir"; then
25064 if test -z "$haveit"; then
25065 if test -d "$additional_includedir"; then
25066 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
25072 if test -n "$found_la"; then
25073 save_libdir="$libdir"
25074 case "$found_la" in
25075 */* | *\\*) . "$found_la" ;;
25076 *) . "./$found_la" ;;
25078 libdir="$save_libdir"
25079 for dep in $dependency_libs; do
25082 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
25083 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
25085 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
25086 if test -n "$GCC"; then
25088 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25092 if test -z "$haveit"; then
25094 for x in $LDFLAGS $LIBINTL; do
25096 acl_save_prefix="$prefix"
25097 prefix="$acl_final_prefix"
25098 acl_save_exec_prefix="$exec_prefix"
25099 exec_prefix="$acl_final_exec_prefix"
25101 exec_prefix="$acl_save_exec_prefix"
25102 prefix="$acl_save_prefix"
25104 if test "X$x" = "X-L$additional_libdir"; then
25109 if test -z "$haveit"; then
25110 if test -d "$additional_libdir"; then
25111 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
25115 for x in $LDFLAGS $LTLIBINTL; do
25117 acl_save_prefix="$prefix"
25118 prefix="$acl_final_prefix"
25119 acl_save_exec_prefix="$exec_prefix"
25120 exec_prefix="$acl_final_exec_prefix"
25122 exec_prefix="$acl_save_exec_prefix"
25123 prefix="$acl_save_prefix"
25125 if test "X$x" = "X-L$additional_libdir"; then
25130 if test -z "$haveit"; then
25131 if test -d "$additional_libdir"; then
25132 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
25139 dir=`echo "X$dep" | sed -e 's/^X-R//'`
25140 if test "$enable_rpath" != no; then
25142 for x in $rpathdirs; do
25143 if test "X$x" = "X$dir"; then
25148 if test -z "$haveit"; then
25149 rpathdirs="$rpathdirs $dir"
25152 for x in $ltrpathdirs; do
25153 if test "X$x" = "X$dir"; then
25158 if test -z "$haveit"; then
25159 ltrpathdirs="$ltrpathdirs $dir"
25164 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
25167 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
25170 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
25171 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
25177 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
25178 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
25184 if test "X$rpathdirs" != "X"; then
25185 if test -n "$hardcode_libdir_separator"; then
25187 for found_dir in $rpathdirs; do
25188 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
25190 acl_save_libdir="$libdir"
25192 eval flag=\"$hardcode_libdir_flag_spec\"
25193 libdir="$acl_save_libdir"
25194 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
25196 for found_dir in $rpathdirs; do
25197 acl_save_libdir="$libdir"
25198 libdir="$found_dir"
25199 eval flag=\"$hardcode_libdir_flag_spec\"
25200 libdir="$acl_save_libdir"
25201 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
25205 if test "X$ltrpathdirs" != "X"; then
25206 for found_dir in $ltrpathdirs; do
25207 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
25211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
25212 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
25213 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
25214 $as_echo_n "(cached) " >&6
25216 gt_save_CPPFLAGS="$CPPFLAGS"
25217 CPPFLAGS="$CPPFLAGS $INCINTL"
25218 gt_save_LIBS="$LIBS"
25219 LIBS="$LIBS $LIBINTL"
25220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25221 /* end confdefs.h. */
25222 #include <libintl.h>
25223 extern int _nl_msg_cat_cntr;
25228 const char *_nl_expand_alias (const char *);
25232 bindtextdomain ("", "");
25233 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
25238 if ac_fn_c_try_link "$LINENO"; then :
25239 gt_cv_func_gnugettext1_libintl=yes
25241 gt_cv_func_gnugettext1_libintl=no
25243 rm -f core conftest.err conftest.$ac_objext \
25244 conftest$ac_exeext conftest.$ac_ext
25245 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
25246 LIBS="$LIBS $LIBICONV"
25247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25248 /* end confdefs.h. */
25249 #include <libintl.h>
25250 extern int _nl_msg_cat_cntr;
25255 const char *_nl_expand_alias (const char *);
25259 bindtextdomain ("", "");
25260 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
25265 if ac_fn_c_try_link "$LINENO"; then :
25266 LIBINTL="$LIBINTL $LIBICONV"
25267 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
25268 gt_cv_func_gnugettext1_libintl=yes
25271 rm -f core conftest.err conftest.$ac_objext \
25272 conftest$ac_exeext conftest.$ac_ext
25274 CPPFLAGS="$gt_save_CPPFLAGS"
25275 LIBS="$gt_save_LIBS"
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
25278 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
25281 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
25282 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
25283 && test "$PACKAGE" != gettext-runtime \
25284 && test "$PACKAGE" != gettext-tools; }; then
25285 gt_use_preinstalled_gnugettext=yes
25294 if test -n "$INTL_MACOSX_LIBS"; then
25295 if test "$gt_use_preinstalled_gnugettext" = "yes" \
25296 || test "$nls_cv_use_gnu_gettext" = "yes"; then
25297 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
25298 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
25302 if test "$gt_use_preinstalled_gnugettext" = "yes" \
25303 || test "$nls_cv_use_gnu_gettext" = "yes"; then
25305 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
25312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
25313 $as_echo_n "checking whether to use NLS... " >&6; }
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
25315 $as_echo "$USE_NLS" >&6; }
25316 if test "$USE_NLS" = "yes"; then
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
25318 $as_echo_n "checking where the gettext function comes from... " >&6; }
25319 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
25320 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
25321 gt_source="external libintl"
25326 gt_source="included intl directory"
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
25329 $as_echo "$gt_source" >&6; }
25332 if test "$USE_NLS" = "yes"; then
25334 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
25335 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
25336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
25337 $as_echo_n "checking how to link with libintl... " >&6; }
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
25339 $as_echo "$LIBINTL" >&6; }
25341 for element in $INCINTL; do
25343 for x in $CPPFLAGS; do
25345 acl_save_prefix="$prefix"
25346 prefix="$acl_final_prefix"
25347 acl_save_exec_prefix="$exec_prefix"
25348 exec_prefix="$acl_final_exec_prefix"
25350 exec_prefix="$acl_save_exec_prefix"
25351 prefix="$acl_save_prefix"
25353 if test "X$x" = "X$element"; then
25358 if test -z "$haveit"; then
25359 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
25366 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
25369 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
25378 INTLLIBS="$LIBINTL"
25387 # Security (authentication) mechansims
25392 # Check whether --with-bsd-security was given.
25393 if test "${with_bsd_security+set}" = set; then :
25394 withval=$with_bsd_security;
25396 n | no) BSD_SECURITY=no ;;
25397 y | ye | yes) BSD_SECURITY=yes ;;
25398 *) as_fn_error $? "*** You must not supply an argument to --without-bsd-security." "$LINENO" 5
25405 USE_AMANDAHOSTS=yes
25407 # Check whether --with-amandahosts was given.
25408 if test "${with_amandahosts+set}" = set; then :
25409 withval=$with_amandahosts;
25411 n | no ) USE_AMANDAHOSTS=no ;;
25412 y | ye | yes) USE_AMANDAHOSTS=yes ;;
25413 *) as_fn_error $? "*** You must not supply an argument to --without-amandahosts option." "$LINENO" 5
25421 if test "x$BSD_SECURITY" = "xyes"; then
25423 $as_echo "#define BSD_SECURITY 1" >>confdefs.h
25425 if test "x$USE_AMANDAHOSTS" = "xyes"; then
25427 $as_echo "#define USE_AMANDAHOSTS 1" >>confdefs.h
25432 if test x"$BSD_SECURITY" = x"yes"; then
25433 WANT_BSD_SECURITY_TRUE=
25434 WANT_BSD_SECURITY_FALSE='#'
25436 WANT_BSD_SECURITY_TRUE='#'
25437 WANT_BSD_SECURITY_FALSE=
25444 BSDTCP_SECURITY="yes"
25446 # Check whether --with-bsdtcp-security was given.
25447 if test "${with_bsdtcp_security+set}" = set; then :
25448 withval=$with_bsdtcp_security;
25450 n | no) BSDTCP_SECURITY=no ;;
25451 y | ye | yes) BSDTCP_SECURITY=yes ;;
25452 *) as_fn_error $? "*** You must not supply an argument to --with-bsdtcp-security." "$LINENO" 5
25459 if test "x$BSDTCP_SECURITY" = "xyes"; then
25461 $as_echo "#define BSDTCP_SECURITY 1" >>confdefs.h
25465 if test x"$BSDTCP_SECURITY" = x"yes"; then
25466 WANT_BSDTCP_SECURITY_TRUE=
25467 WANT_BSDTCP_SECURITY_FALSE='#'
25469 WANT_BSDTCP_SECURITY_TRUE='#'
25470 WANT_BSDTCP_SECURITY_FALSE=
25476 BSDUDP_SECURITY="no"
25478 # Check whether --with-bsdudp-security was given.
25479 if test "${with_bsdudp_security+set}" = set; then :
25480 withval=$with_bsdudp_security;
25483 y | ye | yes) BSDUDP_SECURITY=yes ;;
25484 *) as_fn_error $? "*** You must not supply an argument to --with-bsdudp-security." "$LINENO" 5
25491 if test "x$BSDUDP_SECURITY" = "xyes"; then
25493 $as_echo "#define BSDUDP_SECURITY 1" >>confdefs.h
25497 if test x"$BSDUDP_SECURITY" = x"yes"; then
25498 WANT_BSDUDP_SECURITY_TRUE=
25499 WANT_BSDUDP_SECURITY_FALSE='#'
25501 WANT_BSDUDP_SECURITY_TRUE='#'
25502 WANT_BSDUDP_SECURITY_FALSE=
25510 # Check whether --with-rsh-security was given.
25511 if test "${with_rsh_security+set}" = set; then :
25512 withval=$with_rsh_security;
25515 y | ye | yes) RSH_SECURITY=yes ;;
25516 *) as_fn_error $? "*** You must not supply an argument to --with-rsh-security." "$LINENO" 5
25523 if test "x$RSH_SECURITY" = "xyes"; then
25525 $as_echo "#define RSH_SECURITY 1" >>confdefs.h
25528 if test x"$RSH_SECURITY" = x"yes"; then
25529 WANT_RSH_SECURITY_TRUE=
25530 WANT_RSH_SECURITY_FALSE='#'
25532 WANT_RSH_SECURITY_TRUE='#'
25533 WANT_RSH_SECURITY_FALSE=
25541 # Check whether --with-ssh-security was given.
25542 if test "${with_ssh_security+set}" = set; then :
25543 withval=$with_ssh_security;
25545 n | no) SSH_SECURITY=no ;;
25546 y | ye | yes) SSH_SECURITY=yes ;;
25547 *) as_fn_error $? "*** You must not supply an argument to --with-ssh-security." "$LINENO" 5
25554 if test "x$SSH_SECURITY" = "xyes"; then
25555 # find the SSH binary
25558 # Extract the first word of "$ac_prog", so it can be a program name with args.
25559 set dummy $ac_prog; ac_word=$2
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25561 $as_echo_n "checking for $ac_word... " >&6; }
25562 if ${ac_cv_path_SSH+:} false; then :
25563 $as_echo_n "(cached) " >&6
25567 ac_cv_path_SSH="$SSH" # Let the user override the test with a path.
25570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25571 for as_dir in $LOCSYSPATH
25574 test -z "$as_dir" && as_dir=.
25575 for ac_exec_ext in '' $ac_executable_extensions; do
25576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25577 ac_cv_path_SSH="$as_dir/$ac_word$ac_exec_ext"
25578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25588 SSH=$ac_cv_path_SSH
25589 if test -n "$SSH"; then
25590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSH" >&5
25591 $as_echo "$SSH" >&6; }
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25594 $as_echo "no" >&6; }
25598 test -n "$SSH" && break
25602 # see what options we should use
25604 # Check whether --with-ssh-options was given.
25605 if test "${with_ssh_options+set}" = set; then :
25606 withval=$with_ssh_options; SSH_OPTIONS="$withval"
25613 case "$SSH_OPTIONS" in
25614 y | ye | yes | n | no)
25615 as_fn_error $? "*** You must supply an argument to --with-ssh-options." "$LINENO" 5;;
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SSH options" >&5
25620 $as_echo_n "checking SSH options... " >&6; }
25621 # if we didn't get SSH options from the user, figure them out for ourselves
25622 if test -z "$SSH_OPTIONS"; then
25623 case `$SSH -V 2>&1` in
25624 OpenSSH*) SSH_OPTIONS='-x -o BatchMode=yes -o PreferredAuthentications=publickey';;
25625 *) SSH_OPTIONS='-x -o BatchMode=yes' ;;
25629 # now convert that to a comma-separated list of C strings
25630 eval "set dummy ${SSH_OPTIONS}"; shift
25632 for i in "${@}"; do
25633 quoted="\"`echo "$i" | sed -e 's/\"/\\\"/'`\""
25634 SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }$quoted";
25636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSH_OPTIONS" >&5
25637 $as_echo "$SSH_OPTIONS" >&6; }
25639 # finally, make the various outputs for all of this
25641 $as_echo "#define SSH_SECURITY 1" >>confdefs.h
25644 cat >>confdefs.h <<_ACEOF
25649 cat >>confdefs.h <<_ACEOF
25650 #define SSH_OPTIONS $SSH_OPTIONS
25654 if test x"$SSH_SECURITY" = x"yes"; then
25655 WANT_SSH_SECURITY_TRUE=
25656 WANT_SSH_SECURITY_FALSE='#'
25658 WANT_SSH_SECURITY_TRUE='#'
25659 WANT_SSH_SECURITY_FALSE=
25664 # (note -- don't just substitute SSH_OPTIONS -- shell quoting will break)
25667 # Specify --with-krb5-security if Kerberos software is in somewhere
25668 # other than the listed KRB5_SPOTS. We only compile kerberos support in
25669 # if the right files are there.
25672 : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
25675 # Check whether --with-krb5-security was given.
25676 if test "${with_krb5_security+set}" = set; then :
25677 withval=$with_krb5_security;
25679 n | no) KRB5_SECURITY=no ;;
25680 y | ye | yes) KRB5_SECURITY=yes ;;
25681 *) KRB5_SPOTS="$KRB5_SECURITY"
25690 if test "x$KRB5_SECURITY" = "xyes"; then
25691 # if found, force the static versions of these libs (.a) by linking directly
25692 # with the .a files. I don't know how to get -R dependancies checked
25693 # in autoconf at this time. -kashmir
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos V libraries" >&5
25695 $as_echo_n "checking for Kerberos V libraries... " >&6; }
25697 for dir in $KRB5_SPOTS; do
25698 for lib in lib lib64; do
25699 k5libdir=${dir}/${lib}
25700 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
25701 if test -f ${k5libdir}/libk5crypto.a -o -f ${k5libdir}/libk5crypto.so; then
25702 K5CRYPTO=-lk5crypto
25703 elif test -f ${k5libdir}/libcrypto.a -o -f ${k5libdir}/libcrypto.so; then
25708 if test -f ${k5libdir}/libkrb5support.a -o -f ${k5libdir}/libkrb5support.so; then
25709 K5SUPPORT=-lkrb5support
25713 KRB5_DIR_FOUND=$dir
25714 KRB5_LIBDIR_FOUND=$k5libdir
25715 LIBS="-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err $LIBS"
25718 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
25719 LIBS="-lgssapi -lkrb5 -lasn1 $LIBS"
25721 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL_INCLUDES"
25728 if test "$KRB5_DIR_FOUND"; then
25729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $KRB5_DIR_FOUND" >&5
25730 $as_echo "found in $KRB5_DIR_FOUND" >&6; }
25732 # some OS's, such as NetBSD, stick krb5 includes out of the way...
25733 # should probably just use autoconf to look for various include
25734 # options and set them, but don't quite want to do that until I've
25735 # dug into it a bit more.
25737 if test -d "$KRB5_DIR_FOUND/krb5" ; then
25738 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include/krb5"
25741 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include"
25744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
25745 $as_echo_n "checking for main in -lkrb5support... " >&6; }
25746 if ${ac_cv_lib_krb5support_main+:} false; then :
25747 $as_echo_n "(cached) " >&6
25749 ac_check_lib_save_LIBS=$LIBS
25750 LIBS="-lkrb5support $LIBS"
25751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25752 /* end confdefs.h. */
25763 if ac_fn_c_try_link "$LINENO"; then :
25764 ac_cv_lib_krb5support_main=yes
25766 ac_cv_lib_krb5support_main=no
25768 rm -f core conftest.err conftest.$ac_objext \
25769 conftest$ac_exeext conftest.$ac_ext
25770 LIBS=$ac_check_lib_save_LIBS
25772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
25773 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
25774 if test "x$ac_cv_lib_krb5support_main" = xyes; then :
25775 cat >>confdefs.h <<_ACEOF
25776 #define HAVE_LIBKRB5SUPPORT 1
25779 LIBS="-lkrb5support $LIBS"
25784 if test "$KRB5_LIBDIR_FOUND" != "$libdir" ; then
25785 LDFLAGS="$LDFLAGS -L$KRB5_LIBDIR_FOUND"
25790 $as_echo "#define KRB5_SECURITY 1" >>confdefs.h
25793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no krb5 system libraries found" >&5
25794 $as_echo "no krb5 system libraries found" >&6; }
25795 as_fn_error $? "No Kerberos V libraries were found on your system; krb5-security cannot be enabled" "$LINENO" 5
25800 if test x"$KRB5_SECURITY" = x"yes"; then
25801 WANT_KRB5_SECURITY_TRUE=
25802 WANT_KRB5_SECURITY_FALSE='#'
25804 WANT_KRB5_SECURITY_TRUE='#'
25805 WANT_KRB5_SECURITY_FALSE=
25817 for ac_prog in xfsdump
25819 # Extract the first word of "$ac_prog", so it can be a program name with args.
25820 set dummy $ac_prog; ac_word=$2
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25822 $as_echo_n "checking for $ac_word... " >&6; }
25823 if ${ac_cv_path_XFSDUMP+:} false; then :
25824 $as_echo_n "(cached) " >&6
25828 ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
25831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25832 for as_dir in $SYSLOCPATH
25835 test -z "$as_dir" && as_dir=.
25836 for ac_exec_ext in '' $ac_executable_extensions; do
25837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25838 ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
25839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25849 XFSDUMP=$ac_cv_path_XFSDUMP
25850 if test -n "$XFSDUMP"; then
25851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFSDUMP" >&5
25852 $as_echo "$XFSDUMP" >&6; }
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25855 $as_echo "no" >&6; }
25859 test -n "$XFSDUMP" && break
25862 for ac_prog in xfsrestore
25864 # Extract the first word of "$ac_prog", so it can be a program name with args.
25865 set dummy $ac_prog; ac_word=$2
25866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25867 $as_echo_n "checking for $ac_word... " >&6; }
25868 if ${ac_cv_path_XFSRESTORE+:} false; then :
25869 $as_echo_n "(cached) " >&6
25871 case $XFSRESTORE in
25873 ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
25876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25877 for as_dir in $SYSLOCPATH
25880 test -z "$as_dir" && as_dir=.
25881 for ac_exec_ext in '' $ac_executable_extensions; do
25882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25883 ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
25884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25894 XFSRESTORE=$ac_cv_path_XFSRESTORE
25895 if test -n "$XFSRESTORE"; then
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFSRESTORE" >&5
25897 $as_echo "$XFSRESTORE" >&6; }
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25900 $as_echo "no" >&6; }
25904 test -n "$XFSRESTORE" && break
25907 if test "$XFSDUMP" -a "$XFSRESTORE"; then
25909 cat >>confdefs.h <<_ACEOF
25910 #define XFSDUMP "$XFSDUMP"
25914 cat >>confdefs.h <<_ACEOF
25915 #define XFSRESTORE "$XFSRESTORE"
25919 { $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
25920 $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;}
25923 cat <<AAW_EOF >>config.warnings
25924 xfsdump causes the setuid-root rundump program to be enabled. To disable it, just #undef XFSDUMP in config/config.h
25933 # Extract the first word of "vxdump", so it can be a program name with args.
25934 set dummy vxdump; ac_word=$2
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25936 $as_echo_n "checking for $ac_word... " >&6; }
25937 if ${ac_cv_path_VXDUMP+:} false; then :
25938 $as_echo_n "(cached) " >&6
25942 ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
25945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25946 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
25947 for as_dir in $as_dummy
25950 test -z "$as_dir" && as_dir=.
25951 for ac_exec_ext in '' $ac_executable_extensions; do
25952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25953 ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
25954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25964 VXDUMP=$ac_cv_path_VXDUMP
25965 if test -n "$VXDUMP"; then
25966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VXDUMP" >&5
25967 $as_echo "$VXDUMP" >&6; }
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25970 $as_echo "no" >&6; }
25974 # Extract the first word of "vxrestore", so it can be a program name with args.
25975 set dummy vxrestore; ac_word=$2
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25977 $as_echo_n "checking for $ac_word... " >&6; }
25978 if ${ac_cv_path_VXRESTORE+:} false; then :
25979 $as_echo_n "(cached) " >&6
25983 ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
25986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25987 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
25988 for as_dir in $as_dummy
25991 test -z "$as_dir" && as_dir=.
25992 for ac_exec_ext in '' $ac_executable_extensions; do
25993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25994 ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
25995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26005 VXRESTORE=$ac_cv_path_VXRESTORE
26006 if test -n "$VXRESTORE"; then
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VXRESTORE" >&5
26008 $as_echo "$VXRESTORE" >&6; }
26010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26011 $as_echo "no" >&6; }
26015 if test "$VXDUMP" -a "$VXRESTORE"; then
26017 cat >>confdefs.h <<_ACEOF
26018 #define VXDUMP "$VXDUMP"
26022 cat >>confdefs.h <<_ACEOF
26023 #define VXRESTORE "$VXRESTORE"
26031 # Extract the first word of "vdump", so it can be a program name with args.
26032 set dummy vdump; ac_word=$2
26033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26034 $as_echo_n "checking for $ac_word... " >&6; }
26035 if ${ac_cv_path_VDUMP+:} false; then :
26036 $as_echo_n "(cached) " >&6
26040 ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
26043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26044 for as_dir in $SYSLOCPATH
26047 test -z "$as_dir" && as_dir=.
26048 for ac_exec_ext in '' $ac_executable_extensions; do
26049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26050 ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
26051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26061 VDUMP=$ac_cv_path_VDUMP
26062 if test -n "$VDUMP"; then
26063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VDUMP" >&5
26064 $as_echo "$VDUMP" >&6; }
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26067 $as_echo "no" >&6; }
26071 # Extract the first word of "vrestore", so it can be a program name with args.
26072 set dummy vrestore; ac_word=$2
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26074 $as_echo_n "checking for $ac_word... " >&6; }
26075 if ${ac_cv_path_VRESTORE+:} false; then :
26076 $as_echo_n "(cached) " >&6
26080 ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
26083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26084 for as_dir in $SYSLOCPATH
26087 test -z "$as_dir" && as_dir=.
26088 for ac_exec_ext in '' $ac_executable_extensions; do
26089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26090 ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
26091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26101 VRESTORE=$ac_cv_path_VRESTORE
26102 if test -n "$VRESTORE"; then
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VRESTORE" >&5
26104 $as_echo "$VRESTORE" >&6; }
26106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26107 $as_echo "no" >&6; }
26111 if test "$VDUMP" -a "$VRESTORE"; then
26113 cat >>confdefs.h <<_ACEOF
26114 #define VDUMP "$VDUMP"
26118 cat >>confdefs.h <<_ACEOF
26119 #define VRESTORE "$VRESTORE"
26128 # Set the order of dump programs to look for. Finding the proper file
26129 # system dumping program is problematic. Some systems, notably HP-UX
26130 # and AIX, have both the backup and dump programs. HP-UX can't use the
26131 # the backup program while AIX systems can't use the dump program. So
26132 # a variable is set up here to specify the order of dump programs to
26133 # search for on the system.
26134 DUMP_PROGRAMS="ufsdump dump backup"
26139 DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
26143 DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
26146 $as_echo "#define AIX_BACKUP 1" >>confdefs.h
26154 if test -n "$DUMP_RETURNS_1"; then
26156 $as_echo "#define DUMP_RETURNS_1 1" >>confdefs.h
26160 for ac_prog in $DUMP_PROGRAMS
26162 # Extract the first word of "$ac_prog", so it can be a program name with args.
26163 set dummy $ac_prog; ac_word=$2
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26165 $as_echo_n "checking for $ac_word... " >&6; }
26166 if ${ac_cv_path_DUMP+:} false; then :
26167 $as_echo_n "(cached) " >&6
26171 ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
26174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26175 for as_dir in $SYSLOCPATH
26178 test -z "$as_dir" && as_dir=.
26179 for ac_exec_ext in '' $ac_executable_extensions; do
26180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26181 ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
26182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26192 DUMP=$ac_cv_path_DUMP
26193 if test -n "$DUMP"; then
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMP" >&5
26195 $as_echo "$DUMP" >&6; }
26197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26198 $as_echo "no" >&6; }
26202 test -n "$DUMP" && break
26205 for ac_prog in ufsrestore restore
26207 # Extract the first word of "$ac_prog", so it can be a program name with args.
26208 set dummy $ac_prog; ac_word=$2
26209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26210 $as_echo_n "checking for $ac_word... " >&6; }
26211 if ${ac_cv_path_RESTORE+:} false; then :
26212 $as_echo_n "(cached) " >&6
26216 ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
26219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26220 for as_dir in $SYSLOCPATH
26223 test -z "$as_dir" && as_dir=.
26224 for ac_exec_ext in '' $ac_executable_extensions; do
26225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26226 ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
26227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26237 RESTORE=$ac_cv_path_RESTORE
26238 if test -n "$RESTORE"; then
26239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RESTORE" >&5
26240 $as_echo "$RESTORE" >&6; }
26242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26243 $as_echo "no" >&6; }
26247 test -n "$RESTORE" && break
26251 # newer versions of GNU tar include a program named 'backup' which
26252 # does *not* implement the expected 'dump' interface. Detect that here
26253 # and pretend we never saw it.
26254 if test -n "$DUMP"; then
26255 if test "`basename $DUMP`" = "backup"; then
26256 backup_gnutar=`$DUMP --version | $GREP "GNU tar"`
26257 if test $? -eq 0; then
26263 if test "$DUMP" -a "$RESTORE"; then
26265 cat >>confdefs.h <<_ACEOF
26266 #define DUMP "$DUMP"
26270 cat >>confdefs.h <<_ACEOF
26271 #define RESTORE "$RESTORE"
26275 # check for an estimate flag
26276 if test -x $DUMP; then
26277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DUMP supports -E or -S for estimates" >&5
26278 $as_echo_n "checking whether $DUMP supports -E or -S for estimates... " >&6; }
26279 if ${amanda_cv_dump_estimate+:} false; then :
26280 $as_echo_n "(cached) " >&6
26285 { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
26288 | $GREP -v Label >conftest.d-E 2>&1'
26289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26290 (eval $ac_try) 2>&5
26292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26293 test $ac_status = 0; }; }
26294 cat conftest.d-E >&5
26295 { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
26298 | $GREP -v Label >conftest.d-S 2>&1'
26299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26300 (eval $ac_try) 2>&5
26302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26303 test $ac_status = 0; }; }
26304 cat conftest.d-S >&5
26305 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
26308 | $GREP -v Label >conftest.d 2>&1'
26309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26310 (eval $ac_try) 2>&5
26312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26313 test $ac_status = 0; }; }
26315 if { ac_try='cmp conftest.d-E conftest.d 1>&2'
26316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26317 (eval $ac_try) 2>&5
26319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26320 test $ac_status = 0; }; }; then
26321 amanda_cv_dump_estimate=E
26322 elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
26323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26324 (eval $ac_try) 2>&5
26326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26327 test $ac_status = 0; }; }; then
26328 amanda_cv_dump_estimate=S
26330 amanda_cv_dump_estimate=no
26332 rm -f conftest.d conftest.d-E conftest.d-S
26334 *) amanda_cv_dump_estimate=no
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_dump_estimate" >&5
26340 $as_echo "$amanda_cv_dump_estimate" >&6; }
26343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $DUMP is not executable, cannot run -E/-S test" >&5
26344 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -E/-S test" >&2;}
26347 cat <<AAW_EOF >>config.warnings
26348 $DUMP is not executable, cannot run -E/-S test
26352 amanda_cv_dump_estimate=no
26354 if test "x$amanda_cv_dump_estimate" != xno; then
26356 cat >>confdefs.h <<_ACEOF
26357 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
26363 # Check whether --with-dump-honor-nodump was given.
26364 if test "${with_dump_honor_nodump+set}" = set; then :
26365 withval=$with_dump_honor_nodump;
26366 if test -x $DUMP; then
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DUMP supports -h (honor nodump flag)" >&5
26368 $as_echo_n "checking whether $DUMP supports -h (honor nodump flag)... " >&6; }
26369 if ${amanda_cv_honor_nodump+:} false; then :
26370 $as_echo_n "(cached) " >&6
26375 { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
26378 | $GREP -v Label >conftest.d-h 2>&1'
26379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26380 (eval $ac_try) 2>&5
26382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26383 test $ac_status = 0; }; }
26384 cat conftest.d-h >&5
26385 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
26388 | $GREP -v Label >conftest.d 2>&1'
26389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26390 (eval $ac_try) 2>&5
26392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26393 test $ac_status = 0; }; }
26395 if { ac_try='diff conftest.d-h conftest.d 1>&2'
26396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26397 (eval $ac_try) 2>&5
26399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26400 test $ac_status = 0; }; }; then
26401 amanda_cv_honor_nodump=yes
26403 amanda_cv_honor_nodump=no
26405 rm -f conftest.d conftest.d-h
26407 *) amanda_cv_honor_nodump=no
26412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_honor_nodump" >&5
26413 $as_echo "$amanda_cv_honor_nodump" >&6; }
26416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $DUMP is not executable, cannot run -h test" >&5
26417 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -h test" >&2;}
26420 cat <<AAW_EOF >>config.warnings
26421 $DUMP is not executable, cannot run -h test
26425 amanda_cv_honor_nodump=no
26427 if test "x$amanda_cv_honor_nodump" = xyes; then
26429 $as_echo "#define HAVE_HONOR_NODUMP 1" >>confdefs.h
26445 # Check whether --with-gnutar was given.
26446 if test "${with_gnutar+set}" = set; then :
26447 withval=$with_gnutar;
26450 /*) GNUTAR="$withval";;
26453 *) as_fn_error $? "*** You must supply a full pathname to --with-gnutar" "$LINENO" 5;;
26461 if test "x$GNUTAR" = "xno"; then
26465 for gnutar_name in gtar gnutar tar; do
26466 for ac_prog in $gnutar_name
26468 # Extract the first word of "$ac_prog", so it can be a program name with args.
26469 set dummy $ac_prog; ac_word=$2
26470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26471 $as_echo_n "checking for $ac_word... " >&6; }
26472 if ${ac_cv_path_GNUTAR+:} false; then :
26473 $as_echo_n "(cached) " >&6
26477 ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
26480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26481 for as_dir in $LOCSYSPATH
26484 test -z "$as_dir" && as_dir=.
26485 for ac_exec_ext in '' $ac_executable_extensions; do
26486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26487 ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
26488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26498 GNUTAR=$ac_cv_path_GNUTAR
26499 if test -n "$GNUTAR"; then
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
26501 $as_echo "$GNUTAR" >&6; }
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26504 $as_echo "no" >&6; }
26508 test -n "$GNUTAR" && break
26511 if test -n "$GNUTAR"; then
26512 case `"$GNUTAR" --version 2>&1` in
26513 *GNU*tar* | *Free*paxutils* )
26514 # OK, it is GNU tar
26518 if test -n "$OLD_GNUTAR"; then
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $GNUTAR is not GNU tar, it will be used." >&5
26521 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, it will be used." >&2;}
26524 cat <<AAW_EOF >>config.warnings
26525 $GNUTAR is not GNU tar, it will be used.
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&5
26533 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&2;}
26536 cat <<AAW_EOF >>config.warnings
26537 $GNUTAR is not GNU tar, so it will not be used.
26541 # reset the cache for GNUTAR so AC_PATH_PROGS will search again
26543 unset ac_cv_path_GNUTAR
26551 if test "x$GNUTAR" != "x"; then
26554 cat >>confdefs.h <<_ACEOF
26555 #define GNUTAR "$GNUTAR"
26567 # Check whether --with-star was given.
26568 if test "${with_star+set}" = set; then :
26569 withval=$with_star;
26572 /*) STAR="$withval";;
26575 *) as_fn_error $? "*** You must supply a full pathname to --with-star" "$LINENO" 5;;
26583 if test "x$STAR" = "xno"; then
26587 for ac_prog in star
26589 # Extract the first word of "$ac_prog", so it can be a program name with args.
26590 set dummy $ac_prog; ac_word=$2
26591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26592 $as_echo_n "checking for $ac_word... " >&6; }
26593 if ${ac_cv_path_STAR+:} false; then :
26594 $as_echo_n "(cached) " >&6
26598 ac_cv_path_STAR="$STAR" # Let the user override the test with a path.
26601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26602 for as_dir in $LOCSYSPATH
26605 test -z "$as_dir" && as_dir=.
26606 for ac_exec_ext in '' $ac_executable_extensions; do
26607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26608 ac_cv_path_STAR="$as_dir/$ac_word$ac_exec_ext"
26609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26619 STAR=$ac_cv_path_STAR
26620 if test -n "$STAR"; then
26621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAR" >&5
26622 $as_echo "$STAR" >&6; }
26624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26625 $as_echo "no" >&6; }
26629 test -n "$STAR" && break
26632 if test -n "$STAR"; then
26633 case `"$STAR" --version 2>/dev/null` in
26639 if test -n "$OLD_STAR"; then
26641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $STAR is not star, it will be used." >&5
26642 $as_echo "$as_me: WARNING: $STAR is not star, it will be used." >&2;}
26645 cat <<AAW_EOF >>config.warnings
26646 $STAR is not star, it will be used.
26653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $STAR is not star, so it will not be used." >&5
26654 $as_echo "$as_me: WARNING: $STAR is not star, so it will not be used." >&2;}
26657 cat <<AAW_EOF >>config.warnings
26658 $STAR is not star, so it will not be used.
26662 # reset the cache for STAR so AC_PATH_PROGS will search again
26664 unset ac_cv_path_STAR
26671 if test "x$STAR" != "x"; then
26674 cat >>confdefs.h <<_ACEOF
26675 #define STAR "$STAR"
26687 # Check whether --with-suntar was given.
26688 if test "${with_suntar+set}" = set; then :
26689 withval=$with_suntar;
26692 /*) SUNTAR="$withval";;
26695 *) as_fn_error $? "*** You must supply a full pathname to --with-suntar" "$LINENO" 5;;
26701 if test "x$SUNTAR" == "x"; then
26702 SUNTAR="/usr/sbin/tar"
26709 if test "x$SUNTAR" = "xno"; then
26713 if test "x$SUNTAR" != "x"; then
26716 cat >>confdefs.h <<_ACEOF
26717 #define SUNTAR "$SUNTAR"
26728 # Check whether --with-smbclient was given.
26729 if test "${with_smbclient+set}" = set; then :
26730 withval=$with_smbclient;
26732 /*) SAMBA_CLIENT="$withval";;
26734 n|no) SAMBA_CLIENT=no ;;
26735 *) as_fn_error $? "*** You must supply a full pathname to --with-smbclient" "$LINENO" 5;;
26743 # Check whether --with-samba-user was given.
26744 if test "${with_samba_user+set}" = set; then :
26745 withval=$with_samba_user; as_fn_error $? "--with-samba-user is no longer supported; place username in 'amandapass'" "$LINENO" 5
26750 if test "x$SAMBA_CLIENT" != "xno"; then
26751 # Extract the first word of "smbclient", so it can be a program name with args.
26752 set dummy smbclient; ac_word=$2
26753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26754 $as_echo_n "checking for $ac_word... " >&6; }
26755 if ${ac_cv_path_SAMBA_CLIENT+:} false; then :
26756 $as_echo_n "(cached) " >&6
26758 case $SAMBA_CLIENT in
26760 ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
26763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26764 for as_dir in $LOCSYSPATH
26767 test -z "$as_dir" && as_dir=.
26768 for ac_exec_ext in '' $ac_executable_extensions; do
26769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26770 ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
26771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26781 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
26782 if test -n "$SAMBA_CLIENT"; then
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAMBA_CLIENT" >&5
26784 $as_echo "$SAMBA_CLIENT" >&6; }
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26787 $as_echo "no" >&6; }
26792 if test ! -z "$SAMBA_CLIENT"; then
26793 case `"$SAMBA_CLIENT" '\\\\nosuchhost.amanda.org\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1` in
26797 *"Connection to nosuchhost.amanda.org failed"*)
26802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
26803 $as_echo "$as_me: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
26806 cat <<AAW_EOF >>config.warnings
26807 $SAMBA_CLIENT does not seem to be smbclient, so it will not be used.
26814 if test -n "$SAMBA_CLIENT"; then
26816 cat >>confdefs.h <<_ACEOF
26817 #define SAMBA_CLIENT "$SAMBA_CLIENT"
26821 cat >>confdefs.h <<_ACEOF
26822 #define SAMBA_VERSION $smbversion
26829 if test -n "$SAMBA_CLIENT"; then
26831 WANT_SAMBA_FALSE='#'
26833 WANT_SAMBA_TRUE='#'
26841 # some systems require rundump unconditionally
26843 *-ultrix*) USE_RUNDUMP=yes ;;
26844 *-dg-*) USE_RUNDUMP=yes ;;
26848 # Check whether --with-rundump was given.
26849 if test "${with_rundump+set}" = set; then :
26850 withval=$with_rundump;
26852 n | no) USE_RUNDUMP=no ;;
26853 y | ye | yes) USE_RUNDUMP=yes ;;
26854 *) as_fn_error $? "You must not supply an argument to --with-rundump option." "$LINENO" 5;;
26860 if test x"$USE_RUNDUMP" = x"yes"; then
26863 $as_echo "#define USE_RUNDUMP 1" >>confdefs.h
26873 # Look for other programs Amanda will use
26877 # Extract the first word of "grep", so it can be a program name with args.
26878 set dummy grep; ac_word=$2
26879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26880 $as_echo_n "checking for $ac_word... " >&6; }
26881 if ${ac_cv_path_GREP+:} false; then :
26882 $as_echo_n "(cached) " >&6
26886 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
26889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26890 for as_dir in $LOCSYSPATH
26893 test -z "$as_dir" && as_dir=.
26894 for ac_exec_ext in '' $ac_executable_extensions; do
26895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26896 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
26897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26904 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
26908 GREP=$ac_cv_path_GREP
26909 if test -n "$GREP"; then
26910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
26911 $as_echo "$GREP" >&6; }
26913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26914 $as_echo "no" >&6; }
26919 cat >>confdefs.h <<_ACEOF
26920 #define GREP "$GREP"
26924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
26925 $as_echo_n "checking for egrep... " >&6; }
26926 if ${ac_cv_path_EGREP+:} false; then :
26927 $as_echo_n "(cached) " >&6
26929 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
26930 then ac_cv_path_EGREP="$GREP -E"
26932 if test -z "$EGREP"; then
26933 ac_path_EGREP_found=false
26934 # Loop through the user's path and test for each of PROGNAME-LIST
26935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26936 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
26939 test -z "$as_dir" && as_dir=.
26940 for ac_prog in egrep; do
26941 for ac_exec_ext in '' $ac_executable_extensions; do
26942 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
26943 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
26944 # Check for GNU ac_path_EGREP and select it if it is found.
26945 # Check for GNU $ac_path_EGREP
26946 case `"$ac_path_EGREP" --version 2>&1` in
26948 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
26951 $as_echo_n 0123456789 >"conftest.in"
26954 cat "conftest.in" "conftest.in" >"conftest.tmp"
26955 mv "conftest.tmp" "conftest.in"
26956 cp "conftest.in" "conftest.nl"
26957 $as_echo 'EGREP' >> "conftest.nl"
26958 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
26959 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
26960 as_fn_arith $ac_count + 1 && ac_count=$as_val
26961 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
26962 # Best one so far, save it but keep looking for a better one
26963 ac_cv_path_EGREP="$ac_path_EGREP"
26964 ac_path_EGREP_max=$ac_count
26966 # 10*(2^10) chars as input seems more than enough
26967 test $ac_count -gt 10 && break
26969 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
26972 $ac_path_EGREP_found && break 3
26977 if test -z "$ac_cv_path_EGREP"; then
26978 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
26981 ac_cv_path_EGREP=$EGREP
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
26987 $as_echo "$ac_cv_path_EGREP" >&6; }
26988 EGREP="$ac_cv_path_EGREP"
26995 # Extract the first word of "lint", so it can be a program name with args.
26996 set dummy lint; ac_word=$2
26997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26998 $as_echo_n "checking for $ac_word... " >&6; }
26999 if ${ac_cv_path_AMLINT+:} false; then :
27000 $as_echo_n "(cached) " >&6
27004 ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
27007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27008 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
27009 for as_dir in $as_dummy
27012 test -z "$as_dir" && as_dir=.
27013 for ac_exec_ext in '' $ac_executable_extensions; do
27014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27015 ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
27016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27026 AMLINT=$ac_cv_path_AMLINT
27027 if test -n "$AMLINT"; then
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AMLINT" >&5
27029 $as_echo "$AMLINT" >&6; }
27031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27032 $as_echo "no" >&6; }
27036 if test ! -z "$AMLINT"; then
27037 $AMLINT -flags 2>&1 | $GREP -- '-errfmt=' > /dev/null
27038 if test $? -eq 0; then
27039 AMLINTFLAGS="-n -s -u -m -x"
27040 AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
27041 AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
27042 AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
27043 AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
27044 AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
27045 AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
27046 AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
27047 AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
27048 AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
27049 AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
27050 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
27051 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
27052 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
27053 AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
27054 AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
27055 AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
27056 AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
27057 AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
27058 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
27059 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
27060 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
27061 AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
27062 AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
27063 AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
27064 AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
27065 AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
27066 AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
27067 AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
27068 AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
27069 AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
27070 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
27071 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
27072 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
27073 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
27074 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
27075 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
27076 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
27077 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
27078 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
27079 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
27080 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
27081 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
27082 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
27083 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
27084 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
27085 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
27086 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
27087 AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
27088 AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
27089 AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
27094 # Extract the first word of "splint", so it can be a program name with args.
27095 set dummy splint; ac_word=$2
27096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27097 $as_echo_n "checking for $ac_word... " >&6; }
27098 if ${ac_cv_path_AMLINT+:} false; then :
27099 $as_echo_n "(cached) " >&6
27103 ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
27106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27107 for as_dir in $SYSLOCPATH
27110 test -z "$as_dir" && as_dir=.
27111 for ac_exec_ext in '' $ac_executable_extensions; do
27112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27113 ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
27114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27124 AMLINT=$ac_cv_path_AMLINT
27125 if test -n "$AMLINT"; then
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AMLINT" >&5
27127 $as_echo "$AMLINT" >&6; }
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27130 $as_echo "no" >&6; }
27134 if test ! -z "$AMLINT"; then
27136 AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
27138 AMLINT='echo "Error: LINT is not installed" ; false'
27144 for ac_prog in flex lex
27146 # Extract the first word of "$ac_prog", so it can be a program name with args.
27147 set dummy $ac_prog; ac_word=$2
27148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27149 $as_echo_n "checking for $ac_word... " >&6; }
27150 if ${ac_cv_prog_LEX+:} false; then :
27151 $as_echo_n "(cached) " >&6
27153 if test -n "$LEX"; then
27154 ac_cv_prog_LEX="$LEX" # Let the user override the test.
27156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27157 for as_dir in $PATH
27160 test -z "$as_dir" && as_dir=.
27161 for ac_exec_ext in '' $ac_executable_extensions; do
27162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27163 ac_cv_prog_LEX="$ac_prog"
27164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27173 LEX=$ac_cv_prog_LEX
27174 if test -n "$LEX"; then
27175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
27176 $as_echo "$LEX" >&6; }
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27179 $as_echo "no" >&6; }
27183 test -n "$LEX" && break
27185 test -n "$LEX" || LEX=":"
27187 if test "x$LEX" != "x:"; then
27188 cat >conftest.l <<_ACEOF
27194 e { yyless (input () != 0); }
27195 f { unput (yytext[0]); }
27196 . { BEGIN INITIAL; }
27198 #ifdef YYTEXT_POINTER
27199 extern char *yytext;
27204 return ! yylex () + ! yywrap ();
27207 { { ac_try="$LEX conftest.l"
27208 case "(($ac_try" in
27209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27210 *) ac_try_echo=$ac_try;;
27212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
27213 $as_echo "$ac_try_echo"; } >&5
27214 (eval "$LEX conftest.l") 2>&5
27216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27217 test $ac_status = 0; }
27218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
27219 $as_echo_n "checking lex output file root... " >&6; }
27220 if ${ac_cv_prog_lex_root+:} false; then :
27221 $as_echo_n "(cached) " >&6
27224 if test -f lex.yy.c; then
27225 ac_cv_prog_lex_root=lex.yy
27226 elif test -f lexyy.c; then
27227 ac_cv_prog_lex_root=lexyy
27229 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
27232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
27233 $as_echo "$ac_cv_prog_lex_root" >&6; }
27234 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
27236 if test -z "${LEXLIB+set}"; then
27237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
27238 $as_echo_n "checking lex library... " >&6; }
27239 if ${ac_cv_lib_lex+:} false; then :
27240 $as_echo_n "(cached) " >&6
27244 ac_cv_lib_lex='none needed'
27245 for ac_lib in '' -lfl -ll; do
27246 LIBS="$ac_lib $ac_save_LIBS"
27247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27248 /* end confdefs.h. */
27249 `cat $LEX_OUTPUT_ROOT.c`
27251 if ac_fn_c_try_link "$LINENO"; then :
27252 ac_cv_lib_lex=$ac_lib
27254 rm -f core conftest.err conftest.$ac_objext \
27255 conftest$ac_exeext conftest.$ac_ext
27256 test "$ac_cv_lib_lex" != 'none needed' && break
27261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
27262 $as_echo "$ac_cv_lib_lex" >&6; }
27263 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
27267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
27268 $as_echo_n "checking whether yytext is a pointer... " >&6; }
27269 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
27270 $as_echo_n "(cached) " >&6
27272 # POSIX says lex can declare yytext either as a pointer or an array; the
27273 # default is implementation-dependent. Figure out which it is, since
27274 # not all implementations provide the %pointer and %array declarations.
27275 ac_cv_prog_lex_yytext_pointer=no
27277 LIBS="$LEXLIB $ac_save_LIBS"
27278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27279 /* end confdefs.h. */
27281 #define YYTEXT_POINTER 1
27282 `cat $LEX_OUTPUT_ROOT.c`
27284 if ac_fn_c_try_link "$LINENO"; then :
27285 ac_cv_prog_lex_yytext_pointer=yes
27287 rm -f core conftest.err conftest.$ac_objext \
27288 conftest$ac_exeext conftest.$ac_ext
27292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
27293 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
27294 if test $ac_cv_prog_lex_yytext_pointer = yes; then
27296 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
27299 rm -f conftest.l $LEX_OUTPUT_ROOT.c
27302 if test "$LEX" = :; then
27303 LEX=${am_missing_run}flex
27308 if test x"$LEX" != x""; then
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lex is broken Solaris (SGU) lex" >&5
27310 $as_echo_n "checking whether lex is broken Solaris (SGU) lex... " >&6; }
27311 $LEX -V < /dev/null >/dev/null 2>conftest.out
27312 if grep SGU conftest.out >/dev/null; then
27313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - disabled (set LEX=/path/to/lex to use a specific binary)" >&5
27314 $as_echo "yes - disabled (set LEX=/path/to/lex to use a specific binary)" >&6; }
27315 LEX='echo no lex equivalent available; false'
27317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27318 $as_echo "no" >&6; }
27325 # Extract the first word of "ar", so it can be a program name with args.
27326 set dummy ar; ac_word=$2
27327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27328 $as_echo_n "checking for $ac_word... " >&6; }
27329 if ${ac_cv_path_AR+:} false; then :
27330 $as_echo_n "(cached) " >&6
27334 ac_cv_path_AR="$AR" # Let the user override the test with a path.
27337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27338 for as_dir in $LOCSYSPATH
27341 test -z "$as_dir" && as_dir=.
27342 for ac_exec_ext in '' $ac_executable_extensions; do
27343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27344 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
27345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27356 if test -n "$AR"; then
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
27358 $as_echo "$AR" >&6; }
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27361 $as_echo "no" >&6; }
27368 # Extract the first word of "gettext", so it can be a program name with args.
27369 set dummy gettext; ac_word=$2
27370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27371 $as_echo_n "checking for $ac_word... " >&6; }
27372 if ${ac_cv_path_GETTEXT+:} false; then :
27373 $as_echo_n "(cached) " >&6
27377 ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
27380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27381 for as_dir in $LOCSYSPATH
27384 test -z "$as_dir" && as_dir=.
27385 for ac_exec_ext in '' $ac_executable_extensions; do
27386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27387 ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
27388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27398 GETTEXT=$ac_cv_path_GETTEXT
27399 if test -n "$GETTEXT"; then
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETTEXT" >&5
27401 $as_echo "$GETTEXT" >&6; }
27403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27404 $as_echo "no" >&6; }
27409 for ac_prog in gawk mawk nawk awk
27411 # Extract the first word of "$ac_prog", so it can be a program name with args.
27412 set dummy $ac_prog; ac_word=$2
27413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27414 $as_echo_n "checking for $ac_word... " >&6; }
27415 if ${ac_cv_prog_AWK+:} false; then :
27416 $as_echo_n "(cached) " >&6
27418 if test -n "$AWK"; then
27419 ac_cv_prog_AWK="$AWK" # Let the user override the test.
27421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27422 for as_dir in $PATH
27425 test -z "$as_dir" && as_dir=.
27426 for ac_exec_ext in '' $ac_executable_extensions; do
27427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27428 ac_cv_prog_AWK="$ac_prog"
27429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27438 AWK=$ac_cv_prog_AWK
27439 if test -n "$AWK"; then
27440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
27441 $as_echo "$AWK" >&6; }
27443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27444 $as_echo "no" >&6; }
27448 test -n "$AWK" && break
27451 for ac_prog in 'bison -y' byacc
27453 # Extract the first word of "$ac_prog", so it can be a program name with args.
27454 set dummy $ac_prog; ac_word=$2
27455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27456 $as_echo_n "checking for $ac_word... " >&6; }
27457 if ${ac_cv_prog_YACC+:} false; then :
27458 $as_echo_n "(cached) " >&6
27460 if test -n "$YACC"; then
27461 ac_cv_prog_YACC="$YACC" # Let the user override the test.
27463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27464 for as_dir in $PATH
27467 test -z "$as_dir" && as_dir=.
27468 for ac_exec_ext in '' $ac_executable_extensions; do
27469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27470 ac_cv_prog_YACC="$ac_prog"
27471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27480 YACC=$ac_cv_prog_YACC
27481 if test -n "$YACC"; then
27482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
27483 $as_echo "$YACC" >&6; }
27485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27486 $as_echo "no" >&6; }
27490 test -n "$YACC" && break
27492 test -n "$YACC" || YACC="yacc"
27497 # Extract the first word of "dd", so it can be a program name with args.
27498 set dummy dd; ac_word=$2
27499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27500 $as_echo_n "checking for $ac_word... " >&6; }
27501 if ${ac_cv_path_DD+:} false; then :
27502 $as_echo_n "(cached) " >&6
27506 ac_cv_path_DD="$DD" # Let the user override the test with a path.
27509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27510 for as_dir in $LOCSYSPATH
27513 test -z "$as_dir" && as_dir=.
27514 for ac_exec_ext in '' $ac_executable_extensions; do
27515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27516 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
27517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27528 if test -n "$DD"; then
27529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
27530 $as_echo "$DD" >&6; }
27532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27533 $as_echo "no" >&6; }
27540 # Extract the first word of "bash", so it can be a program name with args.
27541 set dummy bash; ac_word=$2
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27543 $as_echo_n "checking for $ac_word... " >&6; }
27544 if ${ac_cv_path_BASH+:} false; then :
27545 $as_echo_n "(cached) " >&6
27549 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
27552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27553 for as_dir in $SYSPATH
27556 test -z "$as_dir" && as_dir=.
27557 for ac_exec_ext in '' $ac_executable_extensions; do
27558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27559 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
27560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27570 BASH=$ac_cv_path_BASH
27571 if test -n "$BASH"; then
27572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
27573 $as_echo "$BASH" >&6; }
27575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27576 $as_echo "no" >&6; }
27585 # Extract the first word of "sort", so it can be a program name with args.
27586 set dummy sort; ac_word=$2
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27588 $as_echo_n "checking for $ac_word... " >&6; }
27589 if ${ac_cv_path_SORT+:} false; then :
27590 $as_echo_n "(cached) " >&6
27594 ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
27597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27598 for as_dir in $LOCSYSPATH
27601 test -z "$as_dir" && as_dir=.
27602 for ac_exec_ext in '' $ac_executable_extensions; do
27603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27604 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
27605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27612 test -z "$ac_cv_path_SORT" && ac_cv_path_SORT="NONE"
27616 SORT=$ac_cv_path_SORT
27617 if test -n "$SORT"; then
27618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
27619 $as_echo "$SORT" >&6; }
27621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27622 $as_echo "no" >&6; }
27627 # sort is only needed in the server build
27628 if test x"$SORT" = x"NONE" && $WANT_SERVER; then
27629 as_fn_error $? "Set SORT to the path of the sort program." "$LINENO" 5
27633 cat >>confdefs.h <<_ACEOF
27634 #define SORT_PATH "$SORT"
27640 for ac_prog in Mail mailx mail
27642 # Extract the first word of "$ac_prog", so it can be a program name with args.
27643 set dummy $ac_prog; ac_word=$2
27644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27645 $as_echo_n "checking for $ac_word... " >&6; }
27646 if ${ac_cv_path_MAILER+:} false; then :
27647 $as_echo_n "(cached) " >&6
27651 ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
27654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27655 for as_dir in $PATH
27658 test -z "$as_dir" && as_dir=.
27659 for ac_exec_ext in '' $ac_executable_extensions; do
27660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27661 ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
27662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27672 MAILER=$ac_cv_path_MAILER
27673 if test -n "$MAILER"; then
27674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAILER" >&5
27675 $as_echo "$MAILER" >&6; }
27677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27678 $as_echo "no" >&6; }
27682 test -n "$MAILER" && break
27684 test -n "$MAILER" || MAILER="NONE"
27686 if test x"$MAILER" = x"NONE"; then
27688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&5
27689 $as_echo "$as_me: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&2;}
27692 cat <<AAW_EOF >>config.warnings
27693 WARNING: Amanda cannot send mail reports without a mailer.
27699 DEFAULT_MAILER="$MAILER"
27702 cat >>confdefs.h <<_ACEOF
27703 #define DEFAULT_MAILER "$DEFAULT_MAILER"
27710 # Extract the first word of "mt", so it can be a program name with args.
27711 set dummy mt; ac_word=$2
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27713 $as_echo_n "checking for $ac_word... " >&6; }
27714 if ${ac_cv_path_MT+:} false; then :
27715 $as_echo_n "(cached) " >&6
27719 ac_cv_path_MT="$MT" # Let the user override the test with a path.
27722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27723 for as_dir in $SYSLOCPATH
27726 test -z "$as_dir" && as_dir=.
27727 for ac_exec_ext in '' $ac_executable_extensions; do
27728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27729 ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
27730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27737 test -z "$ac_cv_path_MT" && ac_cv_path_MT="mt"
27742 if test -n "$MT"; then
27743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5
27744 $as_echo "$MT" >&6; }
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27747 $as_echo "no" >&6; }
27753 *-hp-*) MT_FILE_FLAG="-t" ;;
27754 *) MT_FILE_FLAG="-f" ;;
27759 cat >>confdefs.h <<_ACEOF
27760 #define MT_FILE_FLAG "$MT_FILE_FLAG"
27766 # Extract the first word of "mtx", so it can be a program name with args.
27767 set dummy mtx; ac_word=$2
27768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27769 $as_echo_n "checking for $ac_word... " >&6; }
27770 if ${ac_cv_path_MTX+:} false; then :
27771 $as_echo_n "(cached) " >&6
27775 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
27778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27779 for as_dir in $LOCSYSPATH
27782 test -z "$as_dir" && as_dir=.
27783 for ac_exec_ext in '' $ac_executable_extensions; do
27784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27785 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
27786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27793 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
27797 MTX=$ac_cv_path_MTX
27798 if test -n "$MTX"; then
27799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
27800 $as_echo "$MTX" >&6; }
27802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27803 $as_echo "no" >&6; }
27811 # Extract the first word of "mount", so it can be a program name with args.
27812 set dummy mount; ac_word=$2
27813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27814 $as_echo_n "checking for $ac_word... " >&6; }
27815 if ${ac_cv_path_MOUNT+:} false; then :
27816 $as_echo_n "(cached) " >&6
27820 ac_cv_path_MOUNT="$MOUNT" # Let the user override the test with a path.
27823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27824 for as_dir in $LOCSYSPATH
27827 test -z "$as_dir" && as_dir=.
27828 for ac_exec_ext in '' $ac_executable_extensions; do
27829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27830 ac_cv_path_MOUNT="$as_dir/$ac_word$ac_exec_ext"
27831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27838 test -z "$ac_cv_path_MOUNT" && ac_cv_path_MOUNT="mount"
27842 MOUNT=$ac_cv_path_MOUNT
27843 if test -n "$MOUNT"; then
27844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOUNT" >&5
27845 $as_echo "$MOUNT" >&6; }
27847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27848 $as_echo "no" >&6; }
27856 # Extract the first word of "umount", so it can be a program name with args.
27857 set dummy umount; ac_word=$2
27858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27859 $as_echo_n "checking for $ac_word... " >&6; }
27860 if ${ac_cv_path_UMOUNT+:} false; then :
27861 $as_echo_n "(cached) " >&6
27865 ac_cv_path_UMOUNT="$UMOUNT" # Let the user override the test with a path.
27868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27869 for as_dir in $LOCSYSPATH
27872 test -z "$as_dir" && as_dir=.
27873 for ac_exec_ext in '' $ac_executable_extensions; do
27874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27875 ac_cv_path_UMOUNT="$as_dir/$ac_word$ac_exec_ext"
27876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27883 test -z "$ac_cv_path_UMOUNT" && ac_cv_path_UMOUNT="umount"
27887 UMOUNT=$ac_cv_path_UMOUNT
27888 if test -n "$UMOUNT"; then
27889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UMOUNT" >&5
27890 $as_echo "$UMOUNT" >&6; }
27892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27893 $as_echo "no" >&6; }
27901 # Extract the first word of "uname", so it can be a program name with args.
27902 set dummy uname; ac_word=$2
27903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27904 $as_echo_n "checking for $ac_word... " >&6; }
27905 if ${ac_cv_path_UNAME+:} false; then :
27906 $as_echo_n "(cached) " >&6
27910 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
27913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27914 for as_dir in $LOCSYSPATH
27917 test -z "$as_dir" && as_dir=.
27918 for ac_exec_ext in '' $ac_executable_extensions; do
27919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27920 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
27921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27931 UNAME=$ac_cv_path_UNAME
27932 if test -n "$UNAME"; then
27933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
27934 $as_echo "$UNAME" >&6; }
27936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27937 $as_echo "no" >&6; }
27942 cat >>confdefs.h <<_ACEOF
27943 #define UNAME_PATH "$UNAME"
27950 for ac_prog in lpr lp
27952 # Extract the first word of "$ac_prog", so it can be a program name with args.
27953 set dummy $ac_prog; ac_word=$2
27954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27955 $as_echo_n "checking for $ac_word... " >&6; }
27956 if ${ac_cv_path_LPR+:} false; then :
27957 $as_echo_n "(cached) " >&6
27961 ac_cv_path_LPR="$LPR" # Let the user override the test with a path.
27964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27965 for as_dir in $PATH
27968 test -z "$as_dir" && as_dir=.
27969 for ac_exec_ext in '' $ac_executable_extensions; do
27970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27971 ac_cv_path_LPR="$as_dir/$ac_word$ac_exec_ext"
27972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27982 LPR=$ac_cv_path_LPR
27983 if test -n "$LPR"; then
27984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPR" >&5
27985 $as_echo "$LPR" >&6; }
27987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27988 $as_echo "no" >&6; }
27992 test -n "$LPR" && break
27995 if test ! -z "$LPR"; then
27997 $as_echo "#define HAVE_LPR_CMD 1" >>confdefs.h
28000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flag to use to select a printer" >&5
28001 $as_echo_n "checking which flag to use to select a printer... " >&6; }
28002 if ${amanda_cv_printer_flag+:} false; then :
28003 $as_echo_n "(cached) " >&6
28006 amanda_cv_printer_flag=$LPRFLAG
28008 lpr|*/lpr) amanda_cv_printer_flag="-P";;
28009 lp|*/lp) amanda_cv_printer_flag="-d";;
28013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_printer_flag" >&5
28014 $as_echo "$amanda_cv_printer_flag" >&6; }
28015 if test -z "$amanda_cv_printer_flag"; then
28017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: amanda will always print to the default printer" >&5
28018 $as_echo "$as_me: WARNING: WARNING: amanda will always print to the default printer" >&2;}
28021 cat <<AAW_EOF >>config.warnings
28022 WARNING: amanda will always print to the default printer
28034 # Extract the first word of "pcat", so it can be a program name with args.
28035 set dummy pcat; ac_word=$2
28036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28037 $as_echo_n "checking for $ac_word... " >&6; }
28038 if ${ac_cv_path_PCAT+:} false; then :
28039 $as_echo_n "(cached) " >&6
28043 ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
28046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28047 for as_dir in $LOCSYSPATH
28050 test -z "$as_dir" && as_dir=.
28051 for ac_exec_ext in '' $ac_executable_extensions; do
28052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28053 ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
28054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28064 PCAT=$ac_cv_path_PCAT
28065 if test -n "$PCAT"; then
28066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAT" >&5
28067 $as_echo "$PCAT" >&6; }
28069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28070 $as_echo "no" >&6; }
28077 for ac_prog in perl5 perl
28079 # Extract the first word of "$ac_prog", so it can be a program name with args.
28080 set dummy $ac_prog; ac_word=$2
28081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28082 $as_echo_n "checking for $ac_word... " >&6; }
28083 if ${ac_cv_path_PERL+:} false; then :
28084 $as_echo_n "(cached) " >&6
28088 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
28091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28092 for as_dir in $LOCSYSPATH
28095 test -z "$as_dir" && as_dir=.
28096 for ac_exec_ext in '' $ac_executable_extensions; do
28097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28098 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
28099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28109 PERL=$ac_cv_path_PERL
28110 if test -n "$PERL"; then
28111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
28112 $as_echo "$PERL" >&6; }
28114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28115 $as_echo "no" >&6; }
28119 test -n "$PERL" && break
28123 # Make sure we have perl
28124 if test -z "$PERL"; then
28125 # Extract the first word of "perl", so it can be a program name with args.
28126 set dummy perl; ac_word=$2
28127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28128 $as_echo_n "checking for $ac_word... " >&6; }
28129 if ${ac_cv_prog_PERL+:} false; then :
28130 $as_echo_n "(cached) " >&6
28132 if test -n "$PERL"; then
28133 ac_cv_prog_PERL="$PERL" # Let the user override the test.
28135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28136 for as_dir in $PATH
28139 test -z "$as_dir" && as_dir=.
28140 for ac_exec_ext in '' $ac_executable_extensions; do
28141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28142 ac_cv_prog_PERL="perl"
28143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28152 PERL=$ac_cv_prog_PERL
28153 if test -n "$PERL"; then
28154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
28155 $as_echo "$PERL" >&6; }
28157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28158 $as_echo "no" >&6; }
28164 # Check if version of Perl is sufficient
28165 ac_perl_version="5.6.0"
28167 if test "x$PERL" != "x"; then
28168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
28169 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
28170 # NB: It would be nice to log the error if there is one, but we cannot rely
28171 # on autoconf internals
28172 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
28173 if test $? -ne 0; then
28174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28175 $as_echo "no" >&6; };
28177 as_fn_error $? "Amanda requires at least perl 5.6.0" "$LINENO" 5
28180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
28181 $as_echo "ok" >&6; };
28185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
28186 $as_echo "$as_me: WARNING: could not find perl" >&2;}
28192 for ac_prog in swig
28194 # Extract the first word of "$ac_prog", so it can be a program name with args.
28195 set dummy $ac_prog; ac_word=$2
28196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28197 $as_echo_n "checking for $ac_word... " >&6; }
28198 if ${ac_cv_path_SWIG+:} false; then :
28199 $as_echo_n "(cached) " >&6
28203 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
28206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28207 for as_dir in $LOCSYSPATH
28210 test -z "$as_dir" && as_dir=.
28211 for ac_exec_ext in '' $ac_executable_extensions; do
28212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28213 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
28214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28224 SWIG=$ac_cv_path_SWIG
28225 if test -n "$SWIG"; then
28226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
28227 $as_echo "$SWIG" >&6; }
28229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28230 $as_echo "no" >&6; }
28234 test -n "$SWIG" && break
28238 # 1.3.32 introduces a change in the way empty strings are handled (old versions
28239 # returned undef in Perl, while new versions return an empty Perl string)
28240 # 1.3.39 is required for the %begin block
28242 # Extract the first word of "swig", so it can be a program name with args.
28243 set dummy swig; ac_word=$2
28244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28245 $as_echo_n "checking for $ac_word... " >&6; }
28246 if ${ac_cv_path_SWIG+:} false; then :
28247 $as_echo_n "(cached) " >&6
28251 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
28254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28255 for as_dir in $PATH
28258 test -z "$as_dir" && as_dir=.
28259 for ac_exec_ext in '' $ac_executable_extensions; do
28260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28261 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
28262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28272 SWIG=$ac_cv_path_SWIG
28273 if test -n "$SWIG"; then
28274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
28275 $as_echo "$SWIG" >&6; }
28277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28278 $as_echo "no" >&6; }
28282 if test -z "$SWIG" ; then
28283 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
28284 elif test -n "1.3.39" ; then
28285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
28286 $as_echo_n "checking for SWIG version... " >&6; }
28287 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'`
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
28289 $as_echo "$swig_version" >&6; }
28290 if test -n "$swig_version" ; then
28292 # Used to indicate true or false condition
28293 ax_compare_version=false
28295 # Convert the two version strings to be compared into a format that
28296 # allows a simple string comparison. The end result is that a version
28297 # string of the form 1.12.5-r617 will be converted to the form
28298 # 0001001200050617. In other words, each number is zero padded to four
28299 # digits, and non digits are removed.
28301 ax_compare_version_A=`echo "$swig_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
28302 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
28303 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
28304 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
28308 ax_compare_version_B=`echo "1.3.39" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
28309 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
28310 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
28311 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
28315 ax_compare_version=`echo "x$ax_compare_version_A
28316 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"`
28320 if test "$ax_compare_version" = "true" ; then
28322 SWIG_LIB=`$SWIG -swiglib`
28325 SWIG='echo "Error: SWIG version >= 1.3.39 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
28330 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
28337 # Extract the first word of "ps", so it can be a program name with args.
28338 set dummy ps; ac_word=$2
28339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28340 $as_echo_n "checking for $ac_word... " >&6; }
28341 if ${ac_cv_path_PS+:} false; then :
28342 $as_echo_n "(cached) " >&6
28346 ac_cv_path_PS="$PS" # Let the user override the test with a path.
28349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28350 for as_dir in $PATH
28353 test -z "$as_dir" && as_dir=.
28354 for ac_exec_ext in '' $ac_executable_extensions; do
28355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28356 ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
28357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28368 if test -n "$PS"; then
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5
28370 $as_echo "$PS" >&6; }
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28373 $as_echo "no" >&6; }
28377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ps argument to use" >&5
28378 $as_echo_n "checking ps argument to use... " >&6; }
28381 # ps is *very* non-portable, and across many systems, the same option
28382 # (e.g., -e) can mean different things. So this macro tries to
28383 # special-case most known systems, and makes an effort to detect unknown
28387 PS_ARGUMENT="-eo pid,ppid,comm"
28388 PS_ARGUMENT_ARGS="-eo pid,ppid,comm"
28392 PS_ARGUMENT="-eo pid,ppid,command"
28393 PS_ARGUMENT_ARGS="-eo pid,ppid,command"
28397 PS_ARGUMENT="-axo pid,ppid,command"
28398 PS_ARGUMENT_ARGS="-axo pid,ppid,command"
28402 PS_ARGUMENT="-aAco pid,ppid,command"
28403 PS_ARGUMENT_ARGS="-aAo pid,ppid,command"
28407 # Cygwin is special-cased in Amanda::Process
28409 PS_ARGUMENT_ARGS="-ef"
28413 # HPUX's 'PS' needs the env var UNIX95 to run in "xpg4" mode
28415 PS_ARGUMENT="-eo pid,ppid,comm"
28416 PS_ARGUMENT_ARGS="-eo pid,ppid,comm"
28421 "-axo pid,ppid,command" \
28422 "-aAco pid,ppid,command" \
28423 "-eo pid,ppid,comm"
28425 ps $try >/dev/null 2>/dev/null
28426 if test $? -eq 0; then
28432 "-axo pid,ppid,command" \
28433 "-aAo pid,ppid,command" \
28434 "-eo pid,ppid,comm"
28436 ps $try >/dev/null 2>/dev/null
28437 if test $? -eq 0; then
28438 PS_ARGUMENT_ARGS="$try"
28442 if test -z "$PS_ARGUMENT" -o -z "$PS_ARGUMENT_ARGS"; then
28443 as_fn_error $? "Can't find ps argument to use." "$LINENO" 5
28448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS_ARGUMENT" >&5
28449 $as_echo "$PS_ARGUMENT" >&6; }
28451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS_ARGUMENT_ARGS" >&5
28452 $as_echo "$PS_ARGUMENT_ARGS" >&6; }
28457 # Extract the first word of "rpcgen", so it can be a program name with args.
28458 set dummy rpcgen; ac_word=$2
28459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28460 $as_echo_n "checking for $ac_word... " >&6; }
28461 if ${ac_cv_path_RPCGEN+:} false; then :
28462 $as_echo_n "(cached) " >&6
28466 ac_cv_path_RPCGEN="$RPCGEN" # Let the user override the test with a path.
28469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28470 for as_dir in $LOCSYSPATH
28473 test -z "$as_dir" && as_dir=.
28474 for ac_exec_ext in '' $ac_executable_extensions; do
28475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28476 ac_cv_path_RPCGEN="$as_dir/$ac_word$ac_exec_ext"
28477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28487 RPCGEN=$ac_cv_path_RPCGEN
28488 if test -n "$RPCGEN"; then
28489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPCGEN" >&5
28490 $as_echo "$RPCGEN" >&6; }
28492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28493 $as_echo "no" >&6; }
28499 # Extract the first word of "nc", so it can be a program name with args.
28500 set dummy nc; ac_word=$2
28501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28502 $as_echo_n "checking for $ac_word... " >&6; }
28503 if ${ac_cv_path_NC+:} false; then :
28504 $as_echo_n "(cached) " >&6
28508 ac_cv_path_NC="$NC" # Let the user override the test with a path.
28511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28512 for as_dir in $LOCSYSPATH
28515 test -z "$as_dir" && as_dir=.
28516 for ac_exec_ext in '' $ac_executable_extensions; do
28517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28518 ac_cv_path_NC="$as_dir/$ac_word$ac_exec_ext"
28519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28530 if test -n "$NC"; then
28531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NC" >&5
28532 $as_echo "$NC" >&6; }
28534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28535 $as_echo "no" >&6; }
28539 # Extract the first word of "nc6", so it can be a program name with args.
28540 set dummy nc6; ac_word=$2
28541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28542 $as_echo_n "checking for $ac_word... " >&6; }
28543 if ${ac_cv_path_NC6+:} false; then :
28544 $as_echo_n "(cached) " >&6
28548 ac_cv_path_NC6="$NC6" # Let the user override the test with a path.
28551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28552 for as_dir in $LOCSYSPATH
28555 test -z "$as_dir" && as_dir=.
28556 for ac_exec_ext in '' $ac_executable_extensions; do
28557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28558 ac_cv_path_NC6="$as_dir/$ac_word$ac_exec_ext"
28559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28569 NC6=$ac_cv_path_NC6
28570 if test -n "$NC6"; then
28571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NC6" >&5
28572 $as_echo "$NC6" >&6; }
28574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28575 $as_echo "no" >&6; }
28579 # Extract the first word of "netcat", so it can be a program name with args.
28580 set dummy netcat; ac_word=$2
28581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28582 $as_echo_n "checking for $ac_word... " >&6; }
28583 if ${ac_cv_path_NETCAT+:} false; then :
28584 $as_echo_n "(cached) " >&6
28588 ac_cv_path_NETCAT="$NETCAT" # Let the user override the test with a path.
28591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28592 for as_dir in $LOCSYSPATH
28595 test -z "$as_dir" && as_dir=.
28596 for ac_exec_ext in '' $ac_executable_extensions; do
28597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28598 ac_cv_path_NETCAT="$as_dir/$ac_word$ac_exec_ext"
28599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28609 NETCAT=$ac_cv_path_NETCAT
28610 if test -n "$NETCAT"; then
28611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETCAT" >&5
28612 $as_echo "$NETCAT" >&6; }
28614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28615 $as_echo "no" >&6; }
28623 # Compiler / system characteristics
28629 if test $ac_cv_c_compiler_gnu = yes; then
28630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
28631 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
28632 if ${ac_cv_prog_gcc_traditional+:} false; then :
28633 $as_echo_n "(cached) " >&6
28635 ac_pattern="Autoconf.*'x'"
28636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28637 /* end confdefs.h. */
28641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28642 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
28643 ac_cv_prog_gcc_traditional=yes
28645 ac_cv_prog_gcc_traditional=no
28650 if test $ac_cv_prog_gcc_traditional = no; then
28651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28652 /* end confdefs.h. */
28653 #include <termio.h>
28656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28657 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
28658 ac_cv_prog_gcc_traditional=yes
28664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
28665 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
28666 if test $ac_cv_prog_gcc_traditional = yes; then
28667 CC="$CC -traditional"
28671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
28672 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
28673 if ${ac_cv_c_const+:} false; then :
28674 $as_echo_n "(cached) " >&6
28676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28677 /* end confdefs.h. */
28682 /* FIXME: Include the comments suggested by Paul. */
28683 #ifndef __cplusplus
28684 /* Ultrix mips cc rejects this. */
28685 typedef int charset[2];
28687 /* SunOS 4.1.1 cc rejects this. */
28688 char const *const *pcpcc;
28690 /* NEC SVR4.0.2 mips cc rejects this. */
28691 struct point {int x, y;};
28692 static struct point const zero = {0,0};
28693 /* AIX XL C 1.02.0.0 rejects this.
28694 It does not let you subtract one const X* pointer from another in
28695 an arm of an if-expression whose if-part is not a constant
28697 const char *g = "string";
28698 pcpcc = &g + (g ? g-g : 0);
28699 /* HPUX 7.0 cc rejects these. */
28701 ppc = (char**) pcpcc;
28702 pcpcc = (char const *const *) ppc;
28703 { /* SCO 3.2v4 cc rejects this. */
28705 char const *s = 0 ? (char *) 0 : (char const *) 0;
28710 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
28711 int x[] = {25, 17};
28712 const int *foo = &x[0];
28715 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28716 typedef const int *iptr;
28720 { /* AIX XL C 1.02.0.0 rejects this saying
28721 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28722 struct s { int j; const int *ap[3]; };
28723 struct s *b; b->j = 5;
28725 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28726 const int foo = 10;
28727 if (!foo) return 0;
28729 return !cs[0] && !zero.x;
28736 if ac_fn_c_try_compile "$LINENO"; then :
28741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
28744 $as_echo "$ac_cv_c_const" >&6; }
28745 if test $ac_cv_c_const = no; then
28747 $as_echo "#define const /**/" >>confdefs.h
28751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
28752 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
28753 if ${ac_cv_c_bigendian+:} false; then :
28754 $as_echo_n "(cached) " >&6
28756 ac_cv_c_bigendian=unknown
28757 # See if we're dealing with a universal compiler.
28758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28759 /* end confdefs.h. */
28760 #ifndef __APPLE_CC__
28761 not a universal capable compiler
28766 if ac_fn_c_try_compile "$LINENO"; then :
28768 # Check for potential -arch flags. It is not universal unless
28769 # there are at least two -arch flags with different values.
28772 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
28773 if test -n "$ac_prev"; then
28775 i?86 | x86_64 | ppc | ppc64)
28776 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
28779 ac_cv_c_bigendian=universal
28785 elif test "x$ac_word" = "x-arch"; then
28790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28791 if test $ac_cv_c_bigendian = unknown; then
28792 # See if sys/param.h defines the BYTE_ORDER macro.
28793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28794 /* end confdefs.h. */
28795 #include <sys/types.h>
28796 #include <sys/param.h>
28801 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
28802 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
28804 bogus endian macros
28811 if ac_fn_c_try_compile "$LINENO"; then :
28812 # It does; now see whether it defined to BIG_ENDIAN or not.
28813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28814 /* end confdefs.h. */
28815 #include <sys/types.h>
28816 #include <sys/param.h>
28821 #if BYTE_ORDER != BIG_ENDIAN
28829 if ac_fn_c_try_compile "$LINENO"; then :
28830 ac_cv_c_bigendian=yes
28832 ac_cv_c_bigendian=no
28834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28838 if test $ac_cv_c_bigendian = unknown; then
28839 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
28840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28841 /* end confdefs.h. */
28842 #include <limits.h>
28847 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
28848 bogus endian macros
28855 if ac_fn_c_try_compile "$LINENO"; then :
28856 # It does; now see whether it defined to _BIG_ENDIAN or not.
28857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28858 /* end confdefs.h. */
28859 #include <limits.h>
28864 #ifndef _BIG_ENDIAN
28872 if ac_fn_c_try_compile "$LINENO"; then :
28873 ac_cv_c_bigendian=yes
28875 ac_cv_c_bigendian=no
28877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28881 if test $ac_cv_c_bigendian = unknown; then
28882 # Compile a test program.
28883 if test "$cross_compiling" = yes; then :
28884 # Try to guess by grepping values from an object file.
28885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28886 /* end confdefs.h. */
28887 short int ascii_mm[] =
28888 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28889 short int ascii_ii[] =
28890 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28891 int use_ascii (int i) {
28892 return ascii_mm[i] + ascii_ii[i];
28894 short int ebcdic_ii[] =
28895 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28896 short int ebcdic_mm[] =
28897 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28898 int use_ebcdic (int i) {
28899 return ebcdic_mm[i] + ebcdic_ii[i];
28906 return use_ascii (foo) == use_ebcdic (foo);
28911 if ac_fn_c_try_compile "$LINENO"; then :
28912 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
28913 ac_cv_c_bigendian=yes
28915 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28916 if test "$ac_cv_c_bigendian" = unknown; then
28917 ac_cv_c_bigendian=no
28919 # finding both strings is unlikely to happen, but who knows?
28920 ac_cv_c_bigendian=unknown
28924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28927 /* end confdefs.h. */
28928 $ac_includes_default
28933 /* Are we little or big endian? From Harbison&Steele. */
28937 char c[sizeof (long int)];
28940 return u.c[sizeof (long int) - 1] == 1;
28946 if ac_fn_c_try_run "$LINENO"; then :
28947 ac_cv_c_bigendian=no
28949 ac_cv_c_bigendian=yes
28951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28952 conftest.$ac_objext conftest.beam conftest.$ac_ext
28957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
28958 $as_echo "$ac_cv_c_bigendian" >&6; }
28959 case $ac_cv_c_bigendian in #(
28961 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
28967 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
28971 as_fn_error $? "unknown endianness
28972 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
28976 # GCC_COMPILER is needed in the gnulib Makefile to silence errors
28977 if test "x$GCC" = "xyes"; then
28979 GCC_COMPILER_FALSE='#'
28981 GCC_COMPILER_TRUE='#'
28982 GCC_COMPILER_FALSE=
28993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wparentheses" >&5
28994 $as_echo_n "checking for gcc flag -Wparentheses... " >&6; }
28995 if test "x$GCC" = "xyes"; then
28996 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
28997 $CC -v --help 2>&1) |
28998 $EGREP -- '[^[:alnum:]]-Wparentheses[^[:alnum:]-]' 2>&1 > /dev/null
28999 if test $? -eq 0; then
29001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29002 $as_echo "yes" >&6; }
29005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29006 $as_echo "no" >&6; }
29010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29011 $as_echo "no (not using gcc)" >&6; }
29014 if test x"$found_warning" = x"yes"; then
29015 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wparentheses"
29027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wdeclaration-after-statement" >&5
29028 $as_echo_n "checking for gcc flag -Wdeclaration-after-statement... " >&6; }
29029 if test "x$GCC" = "xyes"; then
29030 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29031 $CC -v --help 2>&1) |
29032 $EGREP -- '[^[:alnum:]]-Wdeclaration-after-statement[^[:alnum:]-]' 2>&1 > /dev/null
29033 if test $? -eq 0; then
29035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29036 $as_echo "yes" >&6; }
29039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29040 $as_echo "no" >&6; }
29044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29045 $as_echo "no (not using gcc)" >&6; }
29048 if test x"$found_warning" = x"yes"; then
29049 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wdeclaration-after-statement"
29061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wmissing-prototypes" >&5
29062 $as_echo_n "checking for gcc flag -Wmissing-prototypes... " >&6; }
29063 if test "x$GCC" = "xyes"; then
29064 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29065 $CC -v --help 2>&1) |
29066 $EGREP -- '[^[:alnum:]]-Wmissing-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
29067 if test $? -eq 0; then
29069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29070 $as_echo "yes" >&6; }
29073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29074 $as_echo "no" >&6; }
29078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29079 $as_echo "no (not using gcc)" >&6; }
29082 if test x"$found_warning" = x"yes"; then
29083 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-prototypes"
29095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wstrict-prototypes" >&5
29096 $as_echo_n "checking for gcc flag -Wstrict-prototypes... " >&6; }
29097 if test "x$GCC" = "xyes"; then
29098 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29099 $CC -v --help 2>&1) |
29100 $EGREP -- '[^[:alnum:]]-Wstrict-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
29101 if test $? -eq 0; then
29103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29104 $as_echo "yes" >&6; }
29107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29108 $as_echo "no" >&6; }
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29113 $as_echo "no (not using gcc)" >&6; }
29116 if test x"$found_warning" = x"yes"; then
29117 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wstrict-prototypes"
29129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wmissing-declarations" >&5
29130 $as_echo_n "checking for gcc flag -Wmissing-declarations... " >&6; }
29131 if test "x$GCC" = "xyes"; then
29132 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29133 $CC -v --help 2>&1) |
29134 $EGREP -- '[^[:alnum:]]-Wmissing-declarations[^[:alnum:]-]' 2>&1 > /dev/null
29135 if test $? -eq 0; then
29137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29138 $as_echo "yes" >&6; }
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29142 $as_echo "no" >&6; }
29146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29147 $as_echo "no (not using gcc)" >&6; }
29150 if test x"$found_warning" = x"yes"; then
29151 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-declarations"
29163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wformat" >&5
29164 $as_echo_n "checking for gcc flag -Wformat... " >&6; }
29165 if test "x$GCC" = "xyes"; then
29166 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29167 $CC -v --help 2>&1) |
29168 $EGREP -- '[^[:alnum:]]-Wformat[^[:alnum:]-]' 2>&1 > /dev/null
29169 if test $? -eq 0; then
29171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29172 $as_echo "yes" >&6; }
29175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29176 $as_echo "no" >&6; }
29180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29181 $as_echo "no (not using gcc)" >&6; }
29184 if test x"$found_warning" = x"yes"; then
29185 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat"
29197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wformat-security" >&5
29198 $as_echo_n "checking for gcc flag -Wformat-security... " >&6; }
29199 if test "x$GCC" = "xyes"; then
29200 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29201 $CC -v --help 2>&1) |
29202 $EGREP -- '[^[:alnum:]]-Wformat-security[^[:alnum:]-]' 2>&1 > /dev/null
29203 if test $? -eq 0; then
29205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29206 $as_echo "yes" >&6; }
29209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29210 $as_echo "no" >&6; }
29214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29215 $as_echo "no (not using gcc)" >&6; }
29218 if test x"$found_warning" = x"yes"; then
29219 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat-security"
29231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wsign-compare" >&5
29232 $as_echo_n "checking for gcc flag -Wsign-compare... " >&6; }
29233 if test "x$GCC" = "xyes"; then
29234 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29235 $CC -v --help 2>&1) |
29236 $EGREP -- '[^[:alnum:]]-Wsign-compare[^[:alnum:]-]' 2>&1 > /dev/null
29237 if test $? -eq 0; then
29239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29240 $as_echo "yes" >&6; }
29243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29244 $as_echo "no" >&6; }
29248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29249 $as_echo "no (not using gcc)" >&6; }
29252 if test x"$found_warning" = x"yes"; then
29253 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wsign-compare"
29265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wfloat-equal" >&5
29266 $as_echo_n "checking for gcc flag -Wfloat-equal... " >&6; }
29267 if test "x$GCC" = "xyes"; then
29268 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29269 $CC -v --help 2>&1) |
29270 $EGREP -- '[^[:alnum:]]-Wfloat-equal[^[:alnum:]-]' 2>&1 > /dev/null
29271 if test $? -eq 0; then
29273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29274 $as_echo "yes" >&6; }
29277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29278 $as_echo "no" >&6; }
29282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29283 $as_echo "no (not using gcc)" >&6; }
29286 if test x"$found_warning" = x"yes"; then
29287 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wfloat-equal"
29299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wold-style-definition" >&5
29300 $as_echo_n "checking for gcc flag -Wold-style-definition... " >&6; }
29301 if test "x$GCC" = "xyes"; then
29302 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29303 $CC -v --help 2>&1) |
29304 $EGREP -- '[^[:alnum:]]-Wold-style-definition[^[:alnum:]-]' 2>&1 > /dev/null
29305 if test $? -eq 0; then
29307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29308 $as_echo "yes" >&6; }
29311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29312 $as_echo "no" >&6; }
29316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29317 $as_echo "no (not using gcc)" >&6; }
29320 if test x"$found_warning" = x"yes"; then
29321 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wold-style-definition"
29330 # test for -W'warning', then add the 'no-' version.
29334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wstrict-aliasing" >&5
29335 $as_echo_n "checking for gcc flag -Wstrict-aliasing... " >&6; }
29336 if test "x$GCC" = "xyes"; then
29337 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29338 $CC -v --help 2>&1) |
29339 $EGREP -- '[^[:alnum:]]-Wstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
29340 if test $? -eq 0; then
29342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29343 $as_echo "yes" >&6; }
29346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29347 $as_echo "no" >&6; }
29351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29352 $as_echo "no (not using gcc)" >&6; }
29355 if test x"$found_warning" = x"yes"; then
29356 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-strict-aliasing"
29365 # test for -W'warning', then add the 'no-' version.
29369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wunknown-pragmas" >&5
29370 $as_echo_n "checking for gcc flag -Wunknown-pragmas... " >&6; }
29371 if test "x$GCC" = "xyes"; then
29372 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29373 $CC -v --help 2>&1) |
29374 $EGREP -- '[^[:alnum:]]-Wunknown-pragmas[^[:alnum:]-]' 2>&1 > /dev/null
29375 if test $? -eq 0; then
29377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29378 $as_echo "yes" >&6; }
29381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29382 $as_echo "no" >&6; }
29386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29387 $as_echo "no (not using gcc)" >&6; }
29390 if test x"$found_warning" = x"yes"; then
29391 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-unknown-pragmas"
29400 # Check whether --enable-werror was given.
29401 if test "${enable_werror+set}" = set; then :
29402 enableval=$enable_werror;
29403 case "$enableval" in
29409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Werror" >&5
29410 $as_echo_n "checking for gcc flag -Werror... " >&6; }
29411 if test "x$GCC" = "xyes"; then
29412 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29413 $CC -v --help 2>&1) |
29414 $EGREP -- '[^[:alnum:]]-Werror[^[:alnum:]-]' 2>&1 > /dev/null
29415 if test $? -eq 0; then
29417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29418 $as_echo "yes" >&6; }
29421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29422 $as_echo "no" >&6; }
29426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29427 $as_echo "no (not using gcc)" >&6; }
29430 if test x"$found_warning" = x"yes"; then
29431 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Werror"
29446 # Check whether --enable-swig-error was given.
29447 if test "${enable_swig_error+set}" = set; then :
29448 enableval=$enable_swig_error;
29449 case "$enableval" in
29451 AMANDA_SWIG_PERL_CFLAGS=-Werror
29454 AMANDA_SWIG_PERL_CFLAGS=
29468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
29469 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
29474 macro_version='2.4'
29475 macro_revision='1.3293'
29489 ltmain="$ac_aux_dir/ltmain.sh"
29491 # Backslashify metacharacters that are still active within
29492 # double-quoted strings.
29493 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
29495 # Same as above, but do not quote variable references.
29496 double_quote_subst='s/\(["`\\]\)/\\\1/g'
29498 # Sed substitution to delay expansion of an escaped shell variable in a
29499 # double_quote_subst'ed string.
29500 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
29502 # Sed substitution to delay expansion of an escaped single quote.
29503 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
29505 # Sed substitution to avoid accidental globbing in evaled expressions
29506 no_glob_subst='s/\*/\\\*/g'
29508 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29509 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
29510 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
29512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
29513 $as_echo_n "checking how to print strings... " >&6; }
29514 # Test print first, because it will be a builtin if present.
29515 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
29516 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
29518 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
29521 # Use this function as a fallback that always works.
29522 func_fallback_echo ()
29524 eval 'cat <<_LTECHO_EOF
29528 ECHO='func_fallback_echo'
29531 # func_echo_all arg...
29532 # Invoke $ECHO with all args, space-separated.
29539 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
29540 $as_echo "printf" >&6; } ;;
29541 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
29542 $as_echo "print -r" >&6; } ;;
29543 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
29544 $as_echo "cat" >&6; } ;;
29560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
29561 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
29562 if ${ac_cv_path_SED+:} false; then :
29563 $as_echo_n "(cached) " >&6
29565 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
29566 for ac_i in 1 2 3 4 5 6 7; do
29567 ac_script="$ac_script$as_nl$ac_script"
29569 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
29570 { ac_script=; unset ac_script;}
29571 if test -z "$SED"; then
29572 ac_path_SED_found=false
29573 # Loop through the user's path and test for each of PROGNAME-LIST
29574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29575 for as_dir in $PATH
29578 test -z "$as_dir" && as_dir=.
29579 for ac_prog in sed gsed; do
29580 for ac_exec_ext in '' $ac_executable_extensions; do
29581 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
29582 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
29583 # Check for GNU ac_path_SED and select it if it is found.
29584 # Check for GNU $ac_path_SED
29585 case `"$ac_path_SED" --version 2>&1` in
29587 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
29590 $as_echo_n 0123456789 >"conftest.in"
29593 cat "conftest.in" "conftest.in" >"conftest.tmp"
29594 mv "conftest.tmp" "conftest.in"
29595 cp "conftest.in" "conftest.nl"
29596 $as_echo '' >> "conftest.nl"
29597 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
29598 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
29599 as_fn_arith $ac_count + 1 && ac_count=$as_val
29600 if test $ac_count -gt ${ac_path_SED_max-0}; then
29601 # Best one so far, save it but keep looking for a better one
29602 ac_cv_path_SED="$ac_path_SED"
29603 ac_path_SED_max=$ac_count
29605 # 10*(2^10) chars as input seems more than enough
29606 test $ac_count -gt 10 && break
29608 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
29611 $ac_path_SED_found && break 3
29616 if test -z "$ac_cv_path_SED"; then
29617 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
29620 ac_cv_path_SED=$SED
29624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
29625 $as_echo "$ac_cv_path_SED" >&6; }
29626 SED="$ac_cv_path_SED"
29629 test -z "$SED" && SED=sed
29630 Xsed="$SED -e 1s/^X//"
29642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
29643 $as_echo_n "checking for fgrep... " >&6; }
29644 if ${ac_cv_path_FGREP+:} false; then :
29645 $as_echo_n "(cached) " >&6
29647 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
29648 then ac_cv_path_FGREP="$GREP -F"
29650 if test -z "$FGREP"; then
29651 ac_path_FGREP_found=false
29652 # Loop through the user's path and test for each of PROGNAME-LIST
29653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29654 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
29657 test -z "$as_dir" && as_dir=.
29658 for ac_prog in fgrep; do
29659 for ac_exec_ext in '' $ac_executable_extensions; do
29660 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
29661 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
29662 # Check for GNU ac_path_FGREP and select it if it is found.
29663 # Check for GNU $ac_path_FGREP
29664 case `"$ac_path_FGREP" --version 2>&1` in
29666 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
29669 $as_echo_n 0123456789 >"conftest.in"
29672 cat "conftest.in" "conftest.in" >"conftest.tmp"
29673 mv "conftest.tmp" "conftest.in"
29674 cp "conftest.in" "conftest.nl"
29675 $as_echo 'FGREP' >> "conftest.nl"
29676 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
29677 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
29678 as_fn_arith $ac_count + 1 && ac_count=$as_val
29679 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
29680 # Best one so far, save it but keep looking for a better one
29681 ac_cv_path_FGREP="$ac_path_FGREP"
29682 ac_path_FGREP_max=$ac_count
29684 # 10*(2^10) chars as input seems more than enough
29685 test $ac_count -gt 10 && break
29687 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
29690 $ac_path_FGREP_found && break 3
29695 if test -z "$ac_cv_path_FGREP"; then
29696 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
29699 ac_cv_path_FGREP=$FGREP
29704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
29705 $as_echo "$ac_cv_path_FGREP" >&6; }
29706 FGREP="$ac_cv_path_FGREP"
29709 test -z "$GREP" && GREP=grep
29729 # Check whether --with-gnu-ld was given.
29730 if test "${with_gnu_ld+set}" = set; then :
29731 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
29737 if test "$GCC" = yes; then
29738 # Check if gcc -print-prog-name=ld gives a path.
29739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
29740 $as_echo_n "checking for ld used by $CC... " >&6; }
29743 # gcc leaves a trailing carriage return which upsets mingw
29744 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
29746 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
29749 # Accept absolute paths.
29751 re_direlt='/[^/][^/]*/\.\./'
29752 # Canonicalize the pathname of ld
29753 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
29754 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
29755 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
29757 test -z "$LD" && LD="$ac_prog"
29760 # If it fails, then pretend we aren't using GCC.
29764 # If it is relative, then search for the first ld in PATH.
29765 with_gnu_ld=unknown
29768 elif test "$with_gnu_ld" = yes; then
29769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
29770 $as_echo_n "checking for GNU ld... " >&6; }
29772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
29773 $as_echo_n "checking for non-GNU ld... " >&6; }
29775 if ${lt_cv_path_LD+:} false; then :
29776 $as_echo_n "(cached) " >&6
29778 if test -z "$LD"; then
29779 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
29780 for ac_dir in $PATH; do
29782 test -z "$ac_dir" && ac_dir=.
29783 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
29784 lt_cv_path_LD="$ac_dir/$ac_prog"
29785 # Check to see if the program is GNU ld. I'd rather use --version,
29786 # but apparently some variants of GNU ld only accept -v.
29787 # Break only if it was the GNU/non-GNU ld that we prefer.
29788 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
29789 *GNU* | *'with BFD'*)
29790 test "$with_gnu_ld" != no && break
29793 test "$with_gnu_ld" != yes && break
29800 lt_cv_path_LD="$LD" # Let the user override the test with a path.
29804 LD="$lt_cv_path_LD"
29805 if test -n "$LD"; then
29806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
29807 $as_echo "$LD" >&6; }
29809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29810 $as_echo "no" >&6; }
29812 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
29813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
29814 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
29815 if ${lt_cv_prog_gnu_ld+:} false; then :
29816 $as_echo_n "(cached) " >&6
29818 # I'd rather use --version here, but apparently some GNU lds only accept -v.
29819 case `$LD -v 2>&1 </dev/null` in
29820 *GNU* | *'with BFD'*)
29821 lt_cv_prog_gnu_ld=yes
29824 lt_cv_prog_gnu_ld=no
29828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
29829 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
29830 with_gnu_ld=$lt_cv_prog_gnu_ld
29840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
29841 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
29842 if ${lt_cv_path_NM+:} false; then :
29843 $as_echo_n "(cached) " >&6
29845 if test -n "$NM"; then
29846 # Let the user override the test.
29847 lt_cv_path_NM="$NM"
29849 lt_nm_to_check="${ac_tool_prefix}nm"
29850 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
29851 lt_nm_to_check="$lt_nm_to_check nm"
29853 for lt_tmp_nm in $lt_nm_to_check; do
29854 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
29855 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
29857 test -z "$ac_dir" && ac_dir=.
29858 tmp_nm="$ac_dir/$lt_tmp_nm"
29859 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
29860 # Check to see if the nm accepts a BSD-compat flag.
29861 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
29862 # nm: unknown option "B" ignored
29863 # Tru64's nm complains that /dev/null is an invalid object file
29864 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
29865 */dev/null* | *'Invalid file or object type'*)
29866 lt_cv_path_NM="$tmp_nm -B"
29870 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
29872 lt_cv_path_NM="$tmp_nm -p"
29876 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
29877 continue # so that we can try to find one that supports BSD flags
29886 : ${lt_cv_path_NM=no}
29889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
29890 $as_echo "$lt_cv_path_NM" >&6; }
29891 if test "$lt_cv_path_NM" != "no"; then
29892 NM="$lt_cv_path_NM"
29894 # Didn't find any BSD compatible name lister, look for dumpbin.
29895 if test -n "$DUMPBIN"; then :
29896 # Let the user override the test.
29898 if test -n "$ac_tool_prefix"; then
29899 for ac_prog in dumpbin "link -dump"
29901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
29902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
29903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29904 $as_echo_n "checking for $ac_word... " >&6; }
29905 if ${ac_cv_prog_DUMPBIN+:} false; then :
29906 $as_echo_n "(cached) " >&6
29908 if test -n "$DUMPBIN"; then
29909 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
29911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29912 for as_dir in $PATH
29915 test -z "$as_dir" && as_dir=.
29916 for ac_exec_ext in '' $ac_executable_extensions; do
29917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29918 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
29919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29928 DUMPBIN=$ac_cv_prog_DUMPBIN
29929 if test -n "$DUMPBIN"; then
29930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
29931 $as_echo "$DUMPBIN" >&6; }
29933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29934 $as_echo "no" >&6; }
29938 test -n "$DUMPBIN" && break
29941 if test -z "$DUMPBIN"; then
29942 ac_ct_DUMPBIN=$DUMPBIN
29943 for ac_prog in dumpbin "link -dump"
29945 # Extract the first word of "$ac_prog", so it can be a program name with args.
29946 set dummy $ac_prog; ac_word=$2
29947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29948 $as_echo_n "checking for $ac_word... " >&6; }
29949 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
29950 $as_echo_n "(cached) " >&6
29952 if test -n "$ac_ct_DUMPBIN"; then
29953 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
29955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29956 for as_dir in $PATH
29959 test -z "$as_dir" && as_dir=.
29960 for ac_exec_ext in '' $ac_executable_extensions; do
29961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29962 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
29963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29972 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
29973 if test -n "$ac_ct_DUMPBIN"; then
29974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
29975 $as_echo "$ac_ct_DUMPBIN" >&6; }
29977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29978 $as_echo "no" >&6; }
29982 test -n "$ac_ct_DUMPBIN" && break
29985 if test "x$ac_ct_DUMPBIN" = x; then
29988 case $cross_compiling:$ac_tool_warned in
29990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29992 ac_tool_warned=yes ;;
29994 DUMPBIN=$ac_ct_DUMPBIN
29998 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
30000 DUMPBIN="$DUMPBIN -symbols"
30008 if test "$DUMPBIN" != ":"; then
30012 test -z "$NM" && NM=nm
30019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
30020 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
30021 if ${lt_cv_nm_interface+:} false; then :
30022 $as_echo_n "(cached) " >&6
30024 lt_cv_nm_interface="BSD nm"
30025 echo "int some_variable = 0;" > conftest.$ac_ext
30026 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
30027 (eval "$ac_compile" 2>conftest.err)
30028 cat conftest.err >&5
30029 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
30030 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
30031 cat conftest.err >&5
30032 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
30033 cat conftest.out >&5
30034 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
30035 lt_cv_nm_interface="MS dumpbin"
30039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
30040 $as_echo "$lt_cv_nm_interface" >&6; }
30042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
30043 $as_echo_n "checking whether ln -s works... " >&6; }
30045 if test "$LN_S" = "ln -s"; then
30046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30047 $as_echo "yes" >&6; }
30049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
30050 $as_echo "no, using $LN_S" >&6; }
30053 # find the maximum length of command line arguments
30054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
30055 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
30056 if ${lt_cv_sys_max_cmd_len+:} false; then :
30057 $as_echo_n "(cached) " >&6
30064 # On DJGPP, this test can blow up pretty badly due to problems in libc
30065 # (any single argument exceeding 2000 bytes causes a buffer overrun
30066 # during glob expansion). Even if it were fixed, the result of this
30067 # check would be larger than it should be.
30068 lt_cv_sys_max_cmd_len=12288; # 12K is about right
30072 # Under GNU Hurd, this test is not required because there is
30073 # no limit to the length of command line arguments.
30074 # Libtool will interpret -1 as no limit whatsoever
30075 lt_cv_sys_max_cmd_len=-1;
30078 cygwin* | mingw* | cegcc*)
30079 # On Win9x/ME, this test blows up -- it succeeds, but takes
30080 # about 5 minutes as the teststring grows exponentially.
30081 # Worse, since 9x/ME are not pre-emptively multitasking,
30082 # you end up with a "frozen" computer, even though with patience
30083 # the test eventually succeeds (with a max line length of 256k).
30084 # Instead, let's just punt: use the minimum linelength reported by
30085 # all of the supported platforms: 8192 (on NT/2K/XP).
30086 lt_cv_sys_max_cmd_len=8192;
30090 # On MiNT this can take a long time and run out of memory.
30091 lt_cv_sys_max_cmd_len=8192;
30095 # On AmigaOS with pdksh, this test takes hours, literally.
30096 # So we just punt and use a minimum line length of 8192.
30097 lt_cv_sys_max_cmd_len=8192;
30100 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
30101 # This has been around since 386BSD, at least. Likely further.
30102 if test -x /sbin/sysctl; then
30103 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
30104 elif test -x /usr/sbin/sysctl; then
30105 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
30107 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
30109 # And add a safety zone
30110 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
30111 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
30115 # We know the value 262144 and hardcode it with a safety zone (like BSD)
30116 lt_cv_sys_max_cmd_len=196608
30120 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
30121 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
30122 # nice to cause kernel panics so lets avoid the loop below.
30123 # First set a reasonable default.
30124 lt_cv_sys_max_cmd_len=16384
30126 if test -x /sbin/sysconfig; then
30127 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
30128 *1*) lt_cv_sys_max_cmd_len=-1 ;;
30133 lt_cv_sys_max_cmd_len=102400
30135 sysv5* | sco5v6* | sysv4.2uw2*)
30136 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
30137 if test -n "$kargmax"; then
30138 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
30140 lt_cv_sys_max_cmd_len=32768
30144 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
30145 if test -n "$lt_cv_sys_max_cmd_len"; then
30146 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
30147 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
30149 # Make teststring a little bigger before we do anything with it.
30150 # a 1K string should be a reasonable start.
30151 for i in 1 2 3 4 5 6 7 8 ; do
30152 teststring=$teststring$teststring
30154 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
30155 # If test is not a shell built-in, we'll probably end up computing a
30156 # maximum length that is only half of the actual maximum length, but
30158 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
30159 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
30160 test $i != 17 # 1/2 MB should be enough
30163 teststring=$teststring$teststring
30165 # Only check the string length outside the loop.
30166 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
30168 # Add a significant safety factor because C++ compilers can tack on
30169 # massive amounts of additional arguments before passing them to the
30170 # linker. It appears as though 1/2 is a usable value.
30171 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
30178 if test -n $lt_cv_sys_max_cmd_len ; then
30179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
30180 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
30182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
30183 $as_echo "none" >&6; }
30185 max_cmd_len=$lt_cv_sys_max_cmd_len
30196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
30197 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
30198 # Try some XSI features
30200 ( _lt_dummy="a/b/c"
30201 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
30203 && eval 'test $(( 1 + 1 )) -eq 2 \
30204 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
30206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
30207 $as_echo "$xsi_shell" >&6; }
30210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
30211 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
30213 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
30215 && lt_shell_append=yes
30216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
30217 $as_echo "$lt_shell_append" >&6; }
30220 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30230 # test EBCDIC or ASCII
30231 case `echo X|tr X '\101'` in
30232 A) # ASCII based system
30233 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
30234 lt_SP2NL='tr \040 \012'
30235 lt_NL2SP='tr \015\012 \040\040'
30237 *) # EBCDIC based system
30238 lt_SP2NL='tr \100 \n'
30239 lt_NL2SP='tr \r\n \100\100'
30251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
30252 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
30253 if ${lt_cv_to_host_file_cmd+:} false; then :
30254 $as_echo_n "(cached) " >&6
30259 *-*-mingw* ) # actually msys
30260 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
30263 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
30265 * ) # otherwise, assume *nix
30266 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
30272 *-*-mingw* ) # actually msys
30273 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
30276 lt_cv_to_host_file_cmd=func_convert_file_noop
30278 * ) # otherwise, assume *nix
30279 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
30283 * ) # unhandled hosts (and "normal" native builds)
30284 lt_cv_to_host_file_cmd=func_convert_file_noop
30290 to_host_file_cmd=$lt_cv_to_host_file_cmd
30291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
30292 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
30298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
30299 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
30300 if ${lt_cv_to_tool_file_cmd+:} false; then :
30301 $as_echo_n "(cached) " >&6
30303 #assume ordinary cross tools, or native build.
30304 lt_cv_to_tool_file_cmd=func_convert_file_noop
30308 *-*-mingw* ) # actually msys
30309 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
30317 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
30319 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
30325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
30326 $as_echo_n "checking for $LD option to reload object files... " >&6; }
30327 if ${lt_cv_ld_reload_flag+:} false; then :
30328 $as_echo_n "(cached) " >&6
30330 lt_cv_ld_reload_flag='-r'
30332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
30333 $as_echo "$lt_cv_ld_reload_flag" >&6; }
30334 reload_flag=$lt_cv_ld_reload_flag
30335 case $reload_flag in
30337 *) reload_flag=" $reload_flag" ;;
30339 reload_cmds='$LD$reload_flag -o $output$reload_objs'
30341 cygwin* | mingw* | pw32* | cegcc*)
30342 if test "$GCC" != yes; then
30347 if test "$GCC" = yes; then
30348 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
30350 reload_cmds='$LD$reload_flag -o $output$reload_objs'
30363 if test -n "$ac_tool_prefix"; then
30364 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
30365 set dummy ${ac_tool_prefix}objdump; ac_word=$2
30366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30367 $as_echo_n "checking for $ac_word... " >&6; }
30368 if ${ac_cv_prog_OBJDUMP+:} false; then :
30369 $as_echo_n "(cached) " >&6
30371 if test -n "$OBJDUMP"; then
30372 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
30374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30375 for as_dir in $PATH
30378 test -z "$as_dir" && as_dir=.
30379 for ac_exec_ext in '' $ac_executable_extensions; do
30380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30381 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
30382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30391 OBJDUMP=$ac_cv_prog_OBJDUMP
30392 if test -n "$OBJDUMP"; then
30393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
30394 $as_echo "$OBJDUMP" >&6; }
30396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30397 $as_echo "no" >&6; }
30402 if test -z "$ac_cv_prog_OBJDUMP"; then
30403 ac_ct_OBJDUMP=$OBJDUMP
30404 # Extract the first word of "objdump", so it can be a program name with args.
30405 set dummy objdump; ac_word=$2
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30407 $as_echo_n "checking for $ac_word... " >&6; }
30408 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
30409 $as_echo_n "(cached) " >&6
30411 if test -n "$ac_ct_OBJDUMP"; then
30412 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
30414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30415 for as_dir in $PATH
30418 test -z "$as_dir" && as_dir=.
30419 for ac_exec_ext in '' $ac_executable_extensions; do
30420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30421 ac_cv_prog_ac_ct_OBJDUMP="objdump"
30422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30431 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
30432 if test -n "$ac_ct_OBJDUMP"; then
30433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
30434 $as_echo "$ac_ct_OBJDUMP" >&6; }
30436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30437 $as_echo "no" >&6; }
30440 if test "x$ac_ct_OBJDUMP" = x; then
30443 case $cross_compiling:$ac_tool_warned in
30445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30447 ac_tool_warned=yes ;;
30449 OBJDUMP=$ac_ct_OBJDUMP
30452 OBJDUMP="$ac_cv_prog_OBJDUMP"
30455 test -z "$OBJDUMP" && OBJDUMP=objdump
30465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
30466 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
30467 if ${lt_cv_deplibs_check_method+:} false; then :
30468 $as_echo_n "(cached) " >&6
30470 lt_cv_file_magic_cmd='$MAGIC_CMD'
30471 lt_cv_file_magic_test_file=
30472 lt_cv_deplibs_check_method='unknown'
30473 # Need to set the preceding variable on all platforms that support
30474 # interlibrary dependencies.
30475 # 'none' -- dependencies not supported.
30476 # `unknown' -- same as none, but documents that we really don't know.
30477 # 'pass_all' -- all dependencies passed with no checks.
30478 # 'test_compile' -- check by making test program.
30479 # 'file_magic [[regex]]' -- check by looking for files in library path
30480 # which responds to the $file_magic_cmd with a given extended regex.
30481 # If you have `file' or equivalent on your system and you're not sure
30482 # whether `pass_all' will *always* work, you probably want this one.
30486 lt_cv_deplibs_check_method=pass_all
30490 lt_cv_deplibs_check_method=pass_all
30494 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
30495 lt_cv_file_magic_cmd='/usr/bin/file -L'
30496 lt_cv_file_magic_test_file=/shlib/libc.so
30500 # func_win32_libid is a shell function defined in ltmain.sh
30501 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
30502 lt_cv_file_magic_cmd='func_win32_libid'
30506 # Base MSYS/MinGW do not provide the 'file' command needed by
30507 # func_win32_libid shell function, so use a weaker test based on 'objdump',
30508 # unless we find 'file', for example because we are cross-compiling.
30509 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
30510 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
30511 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
30512 lt_cv_file_magic_cmd='func_win32_libid'
30514 # Keep this pattern in sync with the one in func_win32_libid.
30515 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
30516 lt_cv_file_magic_cmd='$OBJDUMP -f'
30521 # use the weaker test based on 'objdump'. See mingw*.
30522 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
30523 lt_cv_file_magic_cmd='$OBJDUMP -f'
30526 darwin* | rhapsody*)
30527 lt_cv_deplibs_check_method=pass_all
30530 freebsd* | dragonfly*)
30531 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
30534 # Not sure whether the presence of OpenBSD here was a mistake.
30535 # Let's accept both of them until this is cleared up.
30536 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
30537 lt_cv_file_magic_cmd=/usr/bin/file
30538 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
30542 lt_cv_deplibs_check_method=pass_all
30547 lt_cv_deplibs_check_method=pass_all
30551 lt_cv_deplibs_check_method=pass_all
30554 hpux10.20* | hpux11*)
30555 lt_cv_file_magic_cmd=/usr/bin/file
30558 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
30559 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
30562 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]'
30563 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
30566 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
30567 lt_cv_file_magic_test_file=/usr/lib/libc.sl
30573 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
30574 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
30577 irix5* | irix6* | nonstopux*)
30579 *-32|*"-32 ") libmagic=32-bit;;
30580 *-n32|*"-n32 ") libmagic=N32;;
30581 *-64|*"-64 ") libmagic=64-bit;;
30582 *) libmagic=never-match;;
30584 lt_cv_deplibs_check_method=pass_all
30587 # This must be Linux ELF.
30588 linux* | k*bsd*-gnu | kopensolaris*-gnu)
30589 lt_cv_deplibs_check_method=pass_all
30593 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
30594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
30596 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
30601 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
30602 lt_cv_file_magic_cmd=/usr/bin/file
30603 lt_cv_file_magic_test_file=/usr/lib/libnls.so
30607 lt_cv_deplibs_check_method=pass_all
30611 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
30612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
30614 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
30618 osf3* | osf4* | osf5*)
30619 lt_cv_deplibs_check_method=pass_all
30623 lt_cv_deplibs_check_method=pass_all
30627 lt_cv_deplibs_check_method=pass_all
30630 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
30631 lt_cv_deplibs_check_method=pass_all
30635 case $host_vendor in
30637 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]'
30638 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
30641 lt_cv_deplibs_check_method=pass_all
30644 lt_cv_file_magic_cmd='/bin/file'
30645 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
30648 lt_cv_file_magic_cmd='/bin/file'
30649 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
30650 lt_cv_file_magic_test_file=/lib/libc.so
30653 lt_cv_deplibs_check_method=pass_all
30656 lt_cv_deplibs_check_method=pass_all
30662 lt_cv_deplibs_check_method=pass_all
30667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
30668 $as_echo "$lt_cv_deplibs_check_method" >&6; }
30672 if test "$build" = "$host"; then
30675 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
30676 want_nocaseglob=yes
30678 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
30684 file_magic_cmd=$lt_cv_file_magic_cmd
30685 deplibs_check_method=$lt_cv_deplibs_check_method
30686 test -z "$deplibs_check_method" && deplibs_check_method=unknown
30709 if test -n "$ac_tool_prefix"; then
30710 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
30711 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
30712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30713 $as_echo_n "checking for $ac_word... " >&6; }
30714 if ${ac_cv_prog_DLLTOOL+:} false; then :
30715 $as_echo_n "(cached) " >&6
30717 if test -n "$DLLTOOL"; then
30718 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
30720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30721 for as_dir in $PATH
30724 test -z "$as_dir" && as_dir=.
30725 for ac_exec_ext in '' $ac_executable_extensions; do
30726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30727 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
30728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30737 DLLTOOL=$ac_cv_prog_DLLTOOL
30738 if test -n "$DLLTOOL"; then
30739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
30740 $as_echo "$DLLTOOL" >&6; }
30742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30743 $as_echo "no" >&6; }
30748 if test -z "$ac_cv_prog_DLLTOOL"; then
30749 ac_ct_DLLTOOL=$DLLTOOL
30750 # Extract the first word of "dlltool", so it can be a program name with args.
30751 set dummy dlltool; ac_word=$2
30752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30753 $as_echo_n "checking for $ac_word... " >&6; }
30754 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
30755 $as_echo_n "(cached) " >&6
30757 if test -n "$ac_ct_DLLTOOL"; then
30758 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
30760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30761 for as_dir in $PATH
30764 test -z "$as_dir" && as_dir=.
30765 for ac_exec_ext in '' $ac_executable_extensions; do
30766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30767 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
30768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30777 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
30778 if test -n "$ac_ct_DLLTOOL"; then
30779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
30780 $as_echo "$ac_ct_DLLTOOL" >&6; }
30782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30783 $as_echo "no" >&6; }
30786 if test "x$ac_ct_DLLTOOL" = x; then
30789 case $cross_compiling:$ac_tool_warned in
30791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30793 ac_tool_warned=yes ;;
30795 DLLTOOL=$ac_ct_DLLTOOL
30798 DLLTOOL="$ac_cv_prog_DLLTOOL"
30801 test -z "$DLLTOOL" && DLLTOOL=dlltool
30812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
30813 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
30814 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
30815 $as_echo_n "(cached) " >&6
30817 lt_cv_sharedlib_from_linklib_cmd='unknown'
30820 cygwin* | mingw* | pw32* | cegcc*)
30821 # two different shell functions defined in ltmain.sh
30822 # decide which to use based on capabilities of $DLLTOOL
30823 case `$DLLTOOL --help 2>&1` in
30824 *--identify-strict*)
30825 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
30828 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
30833 # fallback: assume linklib IS sharedlib
30834 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
30839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
30840 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
30841 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
30842 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
30850 if test -n "$ac_tool_prefix"; then
30853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30856 $as_echo_n "checking for $ac_word... " >&6; }
30857 if ${ac_cv_prog_AR+:} false; then :
30858 $as_echo_n "(cached) " >&6
30860 if test -n "$AR"; then
30861 ac_cv_prog_AR="$AR" # Let the user override the test.
30863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30864 for as_dir in $PATH
30867 test -z "$as_dir" && as_dir=.
30868 for ac_exec_ext in '' $ac_executable_extensions; do
30869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30870 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
30871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30881 if test -n "$AR"; then
30882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
30883 $as_echo "$AR" >&6; }
30885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30886 $as_echo "no" >&6; }
30890 test -n "$AR" && break
30893 if test -z "$AR"; then
30897 # Extract the first word of "$ac_prog", so it can be a program name with args.
30898 set dummy $ac_prog; ac_word=$2
30899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30900 $as_echo_n "checking for $ac_word... " >&6; }
30901 if ${ac_cv_prog_ac_ct_AR+:} false; then :
30902 $as_echo_n "(cached) " >&6
30904 if test -n "$ac_ct_AR"; then
30905 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
30907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30908 for as_dir in $PATH
30911 test -z "$as_dir" && as_dir=.
30912 for ac_exec_ext in '' $ac_executable_extensions; do
30913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30914 ac_cv_prog_ac_ct_AR="$ac_prog"
30915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30924 ac_ct_AR=$ac_cv_prog_ac_ct_AR
30925 if test -n "$ac_ct_AR"; then
30926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
30927 $as_echo "$ac_ct_AR" >&6; }
30929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30930 $as_echo "no" >&6; }
30934 test -n "$ac_ct_AR" && break
30937 if test "x$ac_ct_AR" = x; then
30940 case $cross_compiling:$ac_tool_warned in
30942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30944 ac_tool_warned=yes ;;
30963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
30964 $as_echo_n "checking for archiver @FILE support... " >&6; }
30965 if ${lt_cv_ar_at_file+:} false; then :
30966 $as_echo_n "(cached) " >&6
30968 lt_cv_ar_at_file=no
30969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30970 /* end confdefs.h. */
30980 if ac_fn_c_try_compile "$LINENO"; then :
30981 echo conftest.$ac_objext > conftest.lst
30982 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
30983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
30984 (eval $lt_ar_try) 2>&5
30986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30987 test $ac_status = 0; }
30988 if test "$ac_status" -eq 0; then
30989 # Ensure the archiver fails upon bogus file names.
30990 rm -f conftest.$ac_objext libconftest.a
30991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
30992 (eval $lt_ar_try) 2>&5
30994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30995 test $ac_status = 0; }
30996 if test "$ac_status" -ne 0; then
31000 rm -f conftest.* libconftest.a
31003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
31007 $as_echo "$lt_cv_ar_at_file" >&6; }
31009 if test "x$lt_cv_ar_at_file" = xno; then
31010 archiver_list_spec=
31012 archiver_list_spec=$lt_cv_ar_at_file
31021 if test -n "$ac_tool_prefix"; then
31022 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
31023 set dummy ${ac_tool_prefix}strip; ac_word=$2
31024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31025 $as_echo_n "checking for $ac_word... " >&6; }
31026 if ${ac_cv_prog_STRIP+:} false; then :
31027 $as_echo_n "(cached) " >&6
31029 if test -n "$STRIP"; then
31030 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
31032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31033 for as_dir in $PATH
31036 test -z "$as_dir" && as_dir=.
31037 for ac_exec_ext in '' $ac_executable_extensions; do
31038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31039 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
31040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31049 STRIP=$ac_cv_prog_STRIP
31050 if test -n "$STRIP"; then
31051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
31052 $as_echo "$STRIP" >&6; }
31054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31055 $as_echo "no" >&6; }
31060 if test -z "$ac_cv_prog_STRIP"; then
31062 # Extract the first word of "strip", so it can be a program name with args.
31063 set dummy strip; ac_word=$2
31064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31065 $as_echo_n "checking for $ac_word... " >&6; }
31066 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
31067 $as_echo_n "(cached) " >&6
31069 if test -n "$ac_ct_STRIP"; then
31070 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
31072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31073 for as_dir in $PATH
31076 test -z "$as_dir" && as_dir=.
31077 for ac_exec_ext in '' $ac_executable_extensions; do
31078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31079 ac_cv_prog_ac_ct_STRIP="strip"
31080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31089 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
31090 if test -n "$ac_ct_STRIP"; then
31091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
31092 $as_echo "$ac_ct_STRIP" >&6; }
31094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31095 $as_echo "no" >&6; }
31098 if test "x$ac_ct_STRIP" = x; then
31101 case $cross_compiling:$ac_tool_warned in
31103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31105 ac_tool_warned=yes ;;
31110 STRIP="$ac_cv_prog_STRIP"
31113 test -z "$STRIP" && STRIP=:
31120 if test -n "$ac_tool_prefix"; then
31121 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
31122 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
31123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31124 $as_echo_n "checking for $ac_word... " >&6; }
31125 if ${ac_cv_prog_RANLIB+:} false; then :
31126 $as_echo_n "(cached) " >&6
31128 if test -n "$RANLIB"; then
31129 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
31131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31132 for as_dir in $PATH
31135 test -z "$as_dir" && as_dir=.
31136 for ac_exec_ext in '' $ac_executable_extensions; do
31137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31138 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
31139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31148 RANLIB=$ac_cv_prog_RANLIB
31149 if test -n "$RANLIB"; then
31150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
31151 $as_echo "$RANLIB" >&6; }
31153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31154 $as_echo "no" >&6; }
31159 if test -z "$ac_cv_prog_RANLIB"; then
31160 ac_ct_RANLIB=$RANLIB
31161 # Extract the first word of "ranlib", so it can be a program name with args.
31162 set dummy ranlib; ac_word=$2
31163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31164 $as_echo_n "checking for $ac_word... " >&6; }
31165 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
31166 $as_echo_n "(cached) " >&6
31168 if test -n "$ac_ct_RANLIB"; then
31169 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
31171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31172 for as_dir in $PATH
31175 test -z "$as_dir" && as_dir=.
31176 for ac_exec_ext in '' $ac_executable_extensions; do
31177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31178 ac_cv_prog_ac_ct_RANLIB="ranlib"
31179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
31189 if test -n "$ac_ct_RANLIB"; then
31190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
31191 $as_echo "$ac_ct_RANLIB" >&6; }
31193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31194 $as_echo "no" >&6; }
31197 if test "x$ac_ct_RANLIB" = x; then
31200 case $cross_compiling:$ac_tool_warned in
31202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31204 ac_tool_warned=yes ;;
31206 RANLIB=$ac_ct_RANLIB
31209 RANLIB="$ac_cv_prog_RANLIB"
31212 test -z "$RANLIB" && RANLIB=:
31219 # Determine commands to create old-style static archives.
31220 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
31221 old_postinstall_cmds='chmod 644 $oldlib'
31222 old_postuninstall_cmds=
31224 if test -n "$RANLIB"; then
31227 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
31230 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
31233 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
31238 lock_old_archive_extraction=yes ;;
31240 lock_old_archive_extraction=no ;;
31281 # If no C compiler was specified, use CC.
31284 # If no C compiler flags were specified, use CFLAGS.
31285 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
31287 # Allow CC to be a program name with arguments.
31291 # Check for command to grab the raw symbol name followed by C symbol from nm.
31292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
31293 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
31294 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
31295 $as_echo_n "(cached) " >&6
31298 # These are sane defaults that work on at least a few old systems.
31299 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
31301 # Character class describing NM global symbol codes.
31302 symcode='[BCDEGRST]'
31304 # Regexp to match symbols that can be accessed directly from C.
31305 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
31307 # Define system-specific variables.
31312 cygwin* | mingw* | pw32* | cegcc*)
31313 symcode='[ABCDGISTW]'
31316 if test "$host_cpu" = ia64; then
31317 symcode='[ABCDEGRST]'
31320 irix* | nonstopux*)
31321 symcode='[BCDEGRST]'
31324 symcode='[BCDEGQRST]'
31335 sysv5* | sco5v6* | unixware* | OpenUNIX*)
31343 # If we're using GNU nm, then use its standard symbol codes.
31344 case `$NM -V 2>&1` in
31345 *GNU* | *'with BFD'*)
31346 symcode='[ABCDGIRSTW]' ;;
31349 # Transform an extracted symbol line into a proper C declaration.
31350 # Some systems (esp. on ia64) link data and code symbols differently,
31351 # so use this general approach.
31352 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
31354 # Transform an extracted symbol line into symbol name and symbol address
31355 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
31356 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'"
31358 # Handle CRLF in mingw tool chain
31362 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
31366 # Try without a prefix underscore, then with it.
31367 for ac_symprfx in "" "_"; do
31369 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
31370 symxfrm="\\1 $ac_symprfx\\2 \\2"
31372 # Write the raw and C identifiers.
31373 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
31374 # Fake it for dumpbin and say T for any non-static function
31375 # and D for any global variable.
31376 # Also find C++ and __fastcall symbols from MSVC++,
31377 # which start with @ or ?.
31378 lt_cv_sys_global_symbol_pipe="$AWK '"\
31379 " {last_section=section; section=\$ 3};"\
31380 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
31381 " \$ 0!~/External *\|/{next};"\
31382 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
31383 " {if(hide[section]) next};"\
31384 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
31385 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
31386 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
31387 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
31388 " ' prfx=^$ac_symprfx"
31390 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
31392 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
31394 # Check to see that the pipe works correctly.
31398 cat > conftest.$ac_ext <<_LT_EOF
31403 void nm_test_func(void);
31404 void nm_test_func(void){}
31408 int main(){nm_test_var='a';nm_test_func();return(0);}
31411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31412 (eval $ac_compile) 2>&5
31414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31415 test $ac_status = 0; }; then
31416 # Now try to grab the symbols.
31418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
31419 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
31421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31422 test $ac_status = 0; } && test -s "$nlist"; then
31423 # Try sorting and uniquifying the output.
31424 if sort "$nlist" | uniq > "$nlist"T; then
31425 mv -f "$nlist"T "$nlist"
31430 # Make sure that we snagged all the symbols we need.
31431 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
31432 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
31433 cat <<_LT_EOF > conftest.$ac_ext
31434 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
31435 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
31436 /* DATA imports from DLLs on WIN32 con't be const, because runtime
31437 relocations are performed -- see ld's documentation on pseudo-relocs. */
31438 # define LT_DLSYM_CONST
31439 #elif defined(__osf__)
31440 /* This system does not cope well with relocations in const data. */
31441 # define LT_DLSYM_CONST
31443 # define LT_DLSYM_CONST const
31451 # Now generate the symbol file.
31452 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
31454 cat <<_LT_EOF >> conftest.$ac_ext
31456 /* The mapping between symbol names and symbols. */
31457 LT_DLSYM_CONST struct {
31461 lt__PROGRAM__LTX_preloaded_symbols[] =
31463 { "@PROGRAM@", (void *) 0 },
31465 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
31466 cat <<\_LT_EOF >> conftest.$ac_ext
31470 /* This works around a problem in FreeBSD linker */
31471 #ifdef FREEBSD_WORKAROUND
31472 static const void *lt_preloaded_setup() {
31473 return lt__PROGRAM__LTX_preloaded_symbols;
31481 # Now try linking the two files.
31482 mv conftest.$ac_objext conftstm.$ac_objext
31483 lt_globsym_save_LIBS=$LIBS
31484 lt_globsym_save_CFLAGS=$CFLAGS
31485 LIBS="conftstm.$ac_objext"
31486 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
31487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
31488 (eval $ac_link) 2>&5
31490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31491 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
31494 LIBS=$lt_globsym_save_LIBS
31495 CFLAGS=$lt_globsym_save_CFLAGS
31497 echo "cannot find nm_test_func in $nlist" >&5
31500 echo "cannot find nm_test_var in $nlist" >&5
31503 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
31506 echo "$progname: failed program was:" >&5
31507 cat conftest.$ac_ext >&5
31509 rm -rf conftest* conftst*
31511 # Do not use the global_symbol_pipe unless it works.
31512 if test "$pipe_works" = yes; then
31515 lt_cv_sys_global_symbol_pipe=
31521 if test -z "$lt_cv_sys_global_symbol_pipe"; then
31522 lt_cv_sys_global_symbol_to_cdecl=
31524 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
31525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
31526 $as_echo "failed" >&6; }
31528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
31529 $as_echo "ok" >&6; }
31532 # Response file support.
31533 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
31534 nm_file_list_spec='@'
31535 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
31536 nm_file_list_spec='@'
31565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
31566 $as_echo_n "checking for sysroot... " >&6; }
31568 # Check whether --with-sysroot was given.
31569 if test "${with_sysroot+set}" = set; then :
31570 withval=$with_sysroot;
31577 case ${with_sysroot} in #(
31579 if test "$GCC" = yes; then
31580 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
31584 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
31589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
31590 $as_echo "${with_sysroot}" >&6; }
31591 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
31595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
31596 $as_echo "${lt_sysroot:-no}" >&6; }
31602 # Check whether --enable-libtool-lock was given.
31603 if test "${enable_libtool_lock+set}" = set; then :
31604 enableval=$enable_libtool_lock;
31607 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
31609 # Some flags need to be propagated to the compiler or linker for good
31613 # Find out which ABI we are using.
31614 echo 'int i;' > conftest.$ac_ext
31615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31616 (eval $ac_compile) 2>&5
31618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31619 test $ac_status = 0; }; then
31620 case `/usr/bin/file conftest.$ac_objext` in
31622 HPUX_IA64_MODE="32"
31625 HPUX_IA64_MODE="64"
31632 # Find out which ABI we are using.
31633 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
31634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31635 (eval $ac_compile) 2>&5
31637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31638 test $ac_status = 0; }; then
31639 if test "$lt_cv_prog_gnu_ld" = yes; then
31640 case `/usr/bin/file conftest.$ac_objext` in
31642 LD="${LD-ld} -melf32bsmip"
31645 LD="${LD-ld} -melf32bmipn32"
31648 LD="${LD-ld} -melf64bmip"
31652 case `/usr/bin/file conftest.$ac_objext` in
31668 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
31669 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
31670 # Find out which ABI we are using.
31671 echo 'int i;' > conftest.$ac_ext
31672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31673 (eval $ac_compile) 2>&5
31675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31676 test $ac_status = 0; }; then
31677 case `/usr/bin/file conftest.o` in
31680 x86_64-*kfreebsd*-gnu)
31681 LD="${LD-ld} -m elf_i386_fbsd"
31684 LD="${LD-ld} -m elf_i386"
31686 ppc64-*linux*|powerpc64-*linux*)
31687 LD="${LD-ld} -m elf32ppclinux"
31690 LD="${LD-ld} -m elf_s390"
31693 LD="${LD-ld} -m elf32_sparc"
31699 x86_64-*kfreebsd*-gnu)
31700 LD="${LD-ld} -m elf_x86_64_fbsd"
31703 LD="${LD-ld} -m elf_x86_64"
31705 ppc*-*linux*|powerpc*-*linux*)
31706 LD="${LD-ld} -m elf64ppc"
31708 s390*-*linux*|s390*-*tpf*)
31709 LD="${LD-ld} -m elf64_s390"
31712 LD="${LD-ld} -m elf64_sparc"
31722 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
31723 SAVE_CFLAGS="$CFLAGS"
31724 CFLAGS="$CFLAGS -belf"
31725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
31726 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
31727 if ${lt_cv_cc_needs_belf+:} false; then :
31728 $as_echo_n "(cached) " >&6
31731 ac_cpp='$CPP $CPPFLAGS'
31732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31737 /* end confdefs.h. */
31747 if ac_fn_c_try_link "$LINENO"; then :
31748 lt_cv_cc_needs_belf=yes
31750 lt_cv_cc_needs_belf=no
31752 rm -f core conftest.err conftest.$ac_objext \
31753 conftest$ac_exeext conftest.$ac_ext
31755 ac_cpp='$CPP $CPPFLAGS'
31756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
31762 $as_echo "$lt_cv_cc_needs_belf" >&6; }
31763 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
31764 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
31765 CFLAGS="$SAVE_CFLAGS"
31769 # Find out which ABI we are using.
31770 echo 'int i;' > conftest.$ac_ext
31771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31772 (eval $ac_compile) 2>&5
31774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31775 test $ac_status = 0; }; then
31776 case `/usr/bin/file conftest.o` in
31778 case $lt_cv_prog_gnu_ld in
31779 yes*) LD="${LD-ld} -m elf64_sparc" ;;
31781 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
31793 need_locks="$enable_libtool_lock"
31795 if test -n "$ac_tool_prefix"; then
31796 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
31797 set dummy ${ac_tool_prefix}mt; ac_word=$2
31798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31799 $as_echo_n "checking for $ac_word... " >&6; }
31800 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
31801 $as_echo_n "(cached) " >&6
31803 if test -n "$MANIFEST_TOOL"; then
31804 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
31806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31807 for as_dir in $PATH
31810 test -z "$as_dir" && as_dir=.
31811 for ac_exec_ext in '' $ac_executable_extensions; do
31812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31813 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
31814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31823 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
31824 if test -n "$MANIFEST_TOOL"; then
31825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
31826 $as_echo "$MANIFEST_TOOL" >&6; }
31828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31829 $as_echo "no" >&6; }
31834 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
31835 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
31836 # Extract the first word of "mt", so it can be a program name with args.
31837 set dummy mt; ac_word=$2
31838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31839 $as_echo_n "checking for $ac_word... " >&6; }
31840 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
31841 $as_echo_n "(cached) " >&6
31843 if test -n "$ac_ct_MANIFEST_TOOL"; then
31844 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
31846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31847 for as_dir in $PATH
31850 test -z "$as_dir" && as_dir=.
31851 for ac_exec_ext in '' $ac_executable_extensions; do
31852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31853 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
31854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31863 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
31864 if test -n "$ac_ct_MANIFEST_TOOL"; then
31865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
31866 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
31868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31869 $as_echo "no" >&6; }
31872 if test "x$ac_ct_MANIFEST_TOOL" = x; then
31875 case $cross_compiling:$ac_tool_warned in
31877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31879 ac_tool_warned=yes ;;
31881 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
31884 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
31887 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
31888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
31889 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
31890 if ${lt_cv_path_mainfest_tool+:} false; then :
31891 $as_echo_n "(cached) " >&6
31893 lt_cv_path_mainfest_tool=no
31894 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
31895 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
31896 cat conftest.err >&5
31897 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
31898 lt_cv_path_mainfest_tool=yes
31902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
31903 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
31904 if test "x$lt_cv_path_mainfest_tool" != xyes; then
31914 rhapsody* | darwin*)
31915 if test -n "$ac_tool_prefix"; then
31916 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
31917 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
31918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31919 $as_echo_n "checking for $ac_word... " >&6; }
31920 if ${ac_cv_prog_DSYMUTIL+:} false; then :
31921 $as_echo_n "(cached) " >&6
31923 if test -n "$DSYMUTIL"; then
31924 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
31926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31927 for as_dir in $PATH
31930 test -z "$as_dir" && as_dir=.
31931 for ac_exec_ext in '' $ac_executable_extensions; do
31932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31933 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
31934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31943 DSYMUTIL=$ac_cv_prog_DSYMUTIL
31944 if test -n "$DSYMUTIL"; then
31945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
31946 $as_echo "$DSYMUTIL" >&6; }
31948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31949 $as_echo "no" >&6; }
31954 if test -z "$ac_cv_prog_DSYMUTIL"; then
31955 ac_ct_DSYMUTIL=$DSYMUTIL
31956 # Extract the first word of "dsymutil", so it can be a program name with args.
31957 set dummy dsymutil; ac_word=$2
31958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31959 $as_echo_n "checking for $ac_word... " >&6; }
31960 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
31961 $as_echo_n "(cached) " >&6
31963 if test -n "$ac_ct_DSYMUTIL"; then
31964 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
31966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31967 for as_dir in $PATH
31970 test -z "$as_dir" && as_dir=.
31971 for ac_exec_ext in '' $ac_executable_extensions; do
31972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31973 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
31974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31983 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
31984 if test -n "$ac_ct_DSYMUTIL"; then
31985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
31986 $as_echo "$ac_ct_DSYMUTIL" >&6; }
31988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31989 $as_echo "no" >&6; }
31992 if test "x$ac_ct_DSYMUTIL" = x; then
31995 case $cross_compiling:$ac_tool_warned in
31997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31999 ac_tool_warned=yes ;;
32001 DSYMUTIL=$ac_ct_DSYMUTIL
32004 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
32007 if test -n "$ac_tool_prefix"; then
32008 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
32009 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
32010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32011 $as_echo_n "checking for $ac_word... " >&6; }
32012 if ${ac_cv_prog_NMEDIT+:} false; then :
32013 $as_echo_n "(cached) " >&6
32015 if test -n "$NMEDIT"; then
32016 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
32018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32019 for as_dir in $PATH
32022 test -z "$as_dir" && as_dir=.
32023 for ac_exec_ext in '' $ac_executable_extensions; do
32024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32025 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
32026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32035 NMEDIT=$ac_cv_prog_NMEDIT
32036 if test -n "$NMEDIT"; then
32037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
32038 $as_echo "$NMEDIT" >&6; }
32040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32041 $as_echo "no" >&6; }
32046 if test -z "$ac_cv_prog_NMEDIT"; then
32047 ac_ct_NMEDIT=$NMEDIT
32048 # Extract the first word of "nmedit", so it can be a program name with args.
32049 set dummy nmedit; ac_word=$2
32050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32051 $as_echo_n "checking for $ac_word... " >&6; }
32052 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
32053 $as_echo_n "(cached) " >&6
32055 if test -n "$ac_ct_NMEDIT"; then
32056 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
32058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32059 for as_dir in $PATH
32062 test -z "$as_dir" && as_dir=.
32063 for ac_exec_ext in '' $ac_executable_extensions; do
32064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32065 ac_cv_prog_ac_ct_NMEDIT="nmedit"
32066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32075 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
32076 if test -n "$ac_ct_NMEDIT"; then
32077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
32078 $as_echo "$ac_ct_NMEDIT" >&6; }
32080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32081 $as_echo "no" >&6; }
32084 if test "x$ac_ct_NMEDIT" = x; then
32087 case $cross_compiling:$ac_tool_warned in
32089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32091 ac_tool_warned=yes ;;
32093 NMEDIT=$ac_ct_NMEDIT
32096 NMEDIT="$ac_cv_prog_NMEDIT"
32099 if test -n "$ac_tool_prefix"; then
32100 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
32101 set dummy ${ac_tool_prefix}lipo; ac_word=$2
32102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32103 $as_echo_n "checking for $ac_word... " >&6; }
32104 if ${ac_cv_prog_LIPO+:} false; then :
32105 $as_echo_n "(cached) " >&6
32107 if test -n "$LIPO"; then
32108 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
32110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32111 for as_dir in $PATH
32114 test -z "$as_dir" && as_dir=.
32115 for ac_exec_ext in '' $ac_executable_extensions; do
32116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32117 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
32118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32127 LIPO=$ac_cv_prog_LIPO
32128 if test -n "$LIPO"; then
32129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
32130 $as_echo "$LIPO" >&6; }
32132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32133 $as_echo "no" >&6; }
32138 if test -z "$ac_cv_prog_LIPO"; then
32140 # Extract the first word of "lipo", so it can be a program name with args.
32141 set dummy lipo; ac_word=$2
32142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32143 $as_echo_n "checking for $ac_word... " >&6; }
32144 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
32145 $as_echo_n "(cached) " >&6
32147 if test -n "$ac_ct_LIPO"; then
32148 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
32150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32151 for as_dir in $PATH
32154 test -z "$as_dir" && as_dir=.
32155 for ac_exec_ext in '' $ac_executable_extensions; do
32156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32157 ac_cv_prog_ac_ct_LIPO="lipo"
32158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32167 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
32168 if test -n "$ac_ct_LIPO"; then
32169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
32170 $as_echo "$ac_ct_LIPO" >&6; }
32172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32173 $as_echo "no" >&6; }
32176 if test "x$ac_ct_LIPO" = x; then
32179 case $cross_compiling:$ac_tool_warned in
32181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32183 ac_tool_warned=yes ;;
32188 LIPO="$ac_cv_prog_LIPO"
32191 if test -n "$ac_tool_prefix"; then
32192 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
32193 set dummy ${ac_tool_prefix}otool; ac_word=$2
32194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32195 $as_echo_n "checking for $ac_word... " >&6; }
32196 if ${ac_cv_prog_OTOOL+:} false; then :
32197 $as_echo_n "(cached) " >&6
32199 if test -n "$OTOOL"; then
32200 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
32202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32203 for as_dir in $PATH
32206 test -z "$as_dir" && as_dir=.
32207 for ac_exec_ext in '' $ac_executable_extensions; do
32208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32209 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
32210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32219 OTOOL=$ac_cv_prog_OTOOL
32220 if test -n "$OTOOL"; then
32221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
32222 $as_echo "$OTOOL" >&6; }
32224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32225 $as_echo "no" >&6; }
32230 if test -z "$ac_cv_prog_OTOOL"; then
32232 # Extract the first word of "otool", so it can be a program name with args.
32233 set dummy otool; ac_word=$2
32234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32235 $as_echo_n "checking for $ac_word... " >&6; }
32236 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
32237 $as_echo_n "(cached) " >&6
32239 if test -n "$ac_ct_OTOOL"; then
32240 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
32242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32243 for as_dir in $PATH
32246 test -z "$as_dir" && as_dir=.
32247 for ac_exec_ext in '' $ac_executable_extensions; do
32248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32249 ac_cv_prog_ac_ct_OTOOL="otool"
32250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32259 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
32260 if test -n "$ac_ct_OTOOL"; then
32261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
32262 $as_echo "$ac_ct_OTOOL" >&6; }
32264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32265 $as_echo "no" >&6; }
32268 if test "x$ac_ct_OTOOL" = x; then
32271 case $cross_compiling:$ac_tool_warned in
32273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32275 ac_tool_warned=yes ;;
32280 OTOOL="$ac_cv_prog_OTOOL"
32283 if test -n "$ac_tool_prefix"; then
32284 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
32285 set dummy ${ac_tool_prefix}otool64; ac_word=$2
32286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32287 $as_echo_n "checking for $ac_word... " >&6; }
32288 if ${ac_cv_prog_OTOOL64+:} false; then :
32289 $as_echo_n "(cached) " >&6
32291 if test -n "$OTOOL64"; then
32292 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
32294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32295 for as_dir in $PATH
32298 test -z "$as_dir" && as_dir=.
32299 for ac_exec_ext in '' $ac_executable_extensions; do
32300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32301 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
32302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32311 OTOOL64=$ac_cv_prog_OTOOL64
32312 if test -n "$OTOOL64"; then
32313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
32314 $as_echo "$OTOOL64" >&6; }
32316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32317 $as_echo "no" >&6; }
32322 if test -z "$ac_cv_prog_OTOOL64"; then
32323 ac_ct_OTOOL64=$OTOOL64
32324 # Extract the first word of "otool64", so it can be a program name with args.
32325 set dummy otool64; ac_word=$2
32326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32327 $as_echo_n "checking for $ac_word... " >&6; }
32328 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
32329 $as_echo_n "(cached) " >&6
32331 if test -n "$ac_ct_OTOOL64"; then
32332 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
32334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32335 for as_dir in $PATH
32338 test -z "$as_dir" && as_dir=.
32339 for ac_exec_ext in '' $ac_executable_extensions; do
32340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32341 ac_cv_prog_ac_ct_OTOOL64="otool64"
32342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32351 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
32352 if test -n "$ac_ct_OTOOL64"; then
32353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
32354 $as_echo "$ac_ct_OTOOL64" >&6; }
32356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32357 $as_echo "no" >&6; }
32360 if test "x$ac_ct_OTOOL64" = x; then
32363 case $cross_compiling:$ac_tool_warned in
32365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32367 ac_tool_warned=yes ;;
32369 OTOOL64=$ac_ct_OTOOL64
32372 OTOOL64="$ac_cv_prog_OTOOL64"
32401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
32402 $as_echo_n "checking for -single_module linker flag... " >&6; }
32403 if ${lt_cv_apple_cc_single_mod+:} false; then :
32404 $as_echo_n "(cached) " >&6
32406 lt_cv_apple_cc_single_mod=no
32407 if test -z "${LT_MULTI_MODULE}"; then
32408 # By default we will add the -single_module flag. You can override
32409 # by either setting the environment variable LT_MULTI_MODULE
32410 # non-empty at configure time, or by adding -multi_module to the
32412 rm -rf libconftest.dylib*
32413 echo "int foo(void){return 1;}" > conftest.c
32414 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
32415 -dynamiclib -Wl,-single_module conftest.c" >&5
32416 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
32417 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
32419 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
32420 lt_cv_apple_cc_single_mod=yes
32422 cat conftest.err >&5
32424 rm -rf libconftest.dylib*
32428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
32429 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
32430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
32431 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
32432 if ${lt_cv_ld_exported_symbols_list+:} false; then :
32433 $as_echo_n "(cached) " >&6
32435 lt_cv_ld_exported_symbols_list=no
32436 save_LDFLAGS=$LDFLAGS
32437 echo "_main" > conftest.sym
32438 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
32439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32440 /* end confdefs.h. */
32450 if ac_fn_c_try_link "$LINENO"; then :
32451 lt_cv_ld_exported_symbols_list=yes
32453 lt_cv_ld_exported_symbols_list=no
32455 rm -f core conftest.err conftest.$ac_objext \
32456 conftest$ac_exeext conftest.$ac_ext
32457 LDFLAGS="$save_LDFLAGS"
32460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
32461 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
32462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
32463 $as_echo_n "checking for -force_load linker flag... " >&6; }
32464 if ${lt_cv_ld_force_load+:} false; then :
32465 $as_echo_n "(cached) " >&6
32467 lt_cv_ld_force_load=no
32468 cat > conftest.c << _LT_EOF
32469 int forced_loaded() { return 2;}
32471 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
32472 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
32473 echo "$AR cru libconftest.a conftest.o" >&5
32474 $AR cru libconftest.a conftest.o 2>&5
32475 echo "$RANLIB libconftest.a" >&5
32476 $RANLIB libconftest.a 2>&5
32477 cat > conftest.c << _LT_EOF
32478 int main() { return 0;}
32480 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
32481 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
32483 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
32484 lt_cv_ld_force_load=yes
32486 cat conftest.err >&5
32488 rm -f conftest.err libconftest.a conftest conftest.c
32489 rm -rf conftest.dSYM
32492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
32493 $as_echo "$lt_cv_ld_force_load" >&6; }
32495 rhapsody* | darwin1.[012])
32496 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
32498 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
32499 darwin*) # darwin 5.x on
32500 # if running on 10.5 or later, the deployment target defaults
32501 # to the OS version, if on x86, and 10.4, the deployment
32502 # target defaults to 10.4. Don't you love it?
32503 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
32504 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
32505 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
32507 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
32509 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
32513 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
32514 _lt_dar_single_mod='$single_module'
32516 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
32517 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
32519 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
32521 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
32522 _lt_dsymutil='~$DSYMUTIL $lib || :'
32529 for ac_header in dlfcn.h
32531 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
32533 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
32534 cat >>confdefs.h <<_ACEOF
32535 #define HAVE_DLFCN_H 1
32553 enable_win32_dll=no
32556 # Check whether --enable-shared was given.
32557 if test "${enable_shared+set}" = set; then :
32558 enableval=$enable_shared; p=${PACKAGE-default}
32560 yes) enable_shared=yes ;;
32561 no) enable_shared=no ;;
32564 # Look at the argument we got. We use all the common list separators.
32565 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32566 for pkg in $enableval; do
32568 if test "X$pkg" = "X$p"; then
32587 # Check whether --enable-static was given.
32588 if test "${enable_static+set}" = set; then :
32589 enableval=$enable_static; p=${PACKAGE-default}
32591 yes) enable_static=yes ;;
32592 no) enable_static=no ;;
32595 # Look at the argument we got. We use all the common list separators.
32596 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32597 for pkg in $enableval; do
32599 if test "X$pkg" = "X$p"; then
32619 # Check whether --with-pic was given.
32620 if test "${with_pic+set}" = set; then :
32621 withval=$with_pic; pic_mode="$withval"
32627 test -z "$pic_mode" && pic_mode=default
32635 # Check whether --enable-fast-install was given.
32636 if test "${enable_fast_install+set}" = set; then :
32637 enableval=$enable_fast_install; p=${PACKAGE-default}
32639 yes) enable_fast_install=yes ;;
32640 no) enable_fast_install=no ;;
32642 enable_fast_install=no
32643 # Look at the argument we got. We use all the common list separators.
32644 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32645 for pkg in $enableval; do
32647 if test "X$pkg" = "X$p"; then
32648 enable_fast_install=yes
32655 enable_fast_install=yes
32668 # This can be used to rebuild libtool when needed
32669 LIBTOOL_DEPS="$ltmain"
32671 # Always use our own libtool.
32672 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
32699 test -z "$LN_S" && LN_S="ln -s"
32714 if test -n "${ZSH_VERSION+set}" ; then
32715 setopt NO_GLOB_SUBST
32718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
32719 $as_echo_n "checking for objdir... " >&6; }
32720 if ${lt_cv_objdir+:} false; then :
32721 $as_echo_n "(cached) " >&6
32723 rm -f .libs 2>/dev/null
32724 mkdir .libs 2>/dev/null
32725 if test -d .libs; then
32728 # MS-DOS does not allow filenames that begin with a dot.
32731 rmdir .libs 2>/dev/null
32733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
32734 $as_echo "$lt_cv_objdir" >&6; }
32735 objdir=$lt_cv_objdir
32741 cat >>confdefs.h <<_ACEOF
32742 #define LT_OBJDIR "$lt_cv_objdir/"
32750 # AIX sometimes has problems with the GCC collect2 program. For some
32751 # reason, if we set the COLLECT_NAMES environment variable, the problems
32752 # vanish in a puff of smoke.
32753 if test "X${COLLECT_NAMES+set}" != Xset; then
32755 export COLLECT_NAMES
32760 # Global variables:
32762 can_build_shared=yes
32764 # All known linkers require a `.a' archive for static linking (except MSVC,
32765 # which needs '.lib').
32768 with_gnu_ld="$lt_cv_prog_gnu_ld"
32771 old_CFLAGS="$CFLAGS"
32773 # Set sane defaults for various variables
32774 test -z "$CC" && CC=cc
32775 test -z "$LTCC" && LTCC=$CC
32776 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
32777 test -z "$LD" && LD=ld
32778 test -z "$ac_objext" && ac_objext=o
32780 for cc_temp in $compiler""; do
32782 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
32783 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
32788 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
32791 # Only perform the check for file, if the check method requires it
32792 test -z "$MAGIC_CMD" && MAGIC_CMD=file
32793 case $deplibs_check_method in
32795 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
32796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
32797 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
32798 if ${lt_cv_path_MAGIC_CMD+:} false; then :
32799 $as_echo_n "(cached) " >&6
32803 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
32806 lt_save_MAGIC_CMD="$MAGIC_CMD"
32807 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
32808 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
32809 for ac_dir in $ac_dummy; do
32811 test -z "$ac_dir" && ac_dir=.
32812 if test -f $ac_dir/${ac_tool_prefix}file; then
32813 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
32814 if test -n "$file_magic_test_file"; then
32815 case $deplibs_check_method in
32817 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
32818 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
32819 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
32820 $EGREP "$file_magic_regex" > /dev/null; then
32825 *** Warning: the command libtool uses to detect shared libraries,
32826 *** $file_magic_cmd, produces output that libtool cannot recognize.
32827 *** The result is that libtool may fail to recognize shared libraries
32828 *** as such. This will affect the creation of libtool libraries that
32829 *** depend on shared libraries, but programs linked with such libtool
32830 *** libraries will work regardless of this problem. Nevertheless, you
32831 *** may want to report the problem to your system manager and/or to
32832 *** bug-libtool@gnu.org
32842 MAGIC_CMD="$lt_save_MAGIC_CMD"
32847 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
32848 if test -n "$MAGIC_CMD"; then
32849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
32850 $as_echo "$MAGIC_CMD" >&6; }
32852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32853 $as_echo "no" >&6; }
32860 if test -z "$lt_cv_path_MAGIC_CMD"; then
32861 if test -n "$ac_tool_prefix"; then
32862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
32863 $as_echo_n "checking for file... " >&6; }
32864 if ${lt_cv_path_MAGIC_CMD+:} false; then :
32865 $as_echo_n "(cached) " >&6
32869 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
32872 lt_save_MAGIC_CMD="$MAGIC_CMD"
32873 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
32874 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
32875 for ac_dir in $ac_dummy; do
32877 test -z "$ac_dir" && ac_dir=.
32878 if test -f $ac_dir/file; then
32879 lt_cv_path_MAGIC_CMD="$ac_dir/file"
32880 if test -n "$file_magic_test_file"; then
32881 case $deplibs_check_method in
32883 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
32884 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
32885 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
32886 $EGREP "$file_magic_regex" > /dev/null; then
32891 *** Warning: the command libtool uses to detect shared libraries,
32892 *** $file_magic_cmd, produces output that libtool cannot recognize.
32893 *** The result is that libtool may fail to recognize shared libraries
32894 *** as such. This will affect the creation of libtool libraries that
32895 *** depend on shared libraries, but programs linked with such libtool
32896 *** libraries will work regardless of this problem. Nevertheless, you
32897 *** may want to report the problem to your system manager and/or to
32898 *** bug-libtool@gnu.org
32908 MAGIC_CMD="$lt_save_MAGIC_CMD"
32913 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
32914 if test -n "$MAGIC_CMD"; then
32915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
32916 $as_echo "$MAGIC_CMD" >&6; }
32918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32919 $as_echo "no" >&6; }
32932 # Use C for the default configuration in the libtool script
32936 ac_cpp='$CPP $CPPFLAGS'
32937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32942 # Source file extension for C test sources.
32945 # Object file extension for compiled C test sources.
32949 # Code to be used in simple compile tests
32950 lt_simple_compile_test_code="int some_variable = 0;"
32952 # Code to be used in simple link tests
32953 lt_simple_link_test_code='int main(){return(0);}'
32961 # If no C compiler was specified, use CC.
32964 # If no C compiler flags were specified, use CFLAGS.
32965 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
32967 # Allow CC to be a program name with arguments.
32970 # Save the default compiler, since it gets overwritten when the other
32971 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
32972 compiler_DEFAULT=$CC
32974 # save warnings/boilerplate of simple test code
32975 ac_outfile=conftest.$ac_objext
32976 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
32977 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
32978 _lt_compiler_boilerplate=`cat conftest.err`
32981 ac_outfile=conftest.$ac_objext
32982 echo "$lt_simple_link_test_code" >conftest.$ac_ext
32983 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
32984 _lt_linker_boilerplate=`cat conftest.err`
32989 ## There is no encapsulation within the following macros, do not change
32990 ## the running order or otherwise move them around unless you know exactly
32991 ## what you are doing...
32992 if test -n "$compiler"; then
32994 lt_prog_compiler_no_builtin_flag=
32996 if test "$GCC" = yes; then
32997 case $cc_basename in
32999 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
33001 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
33004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
33005 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
33006 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
33007 $as_echo_n "(cached) " >&6
33009 lt_cv_prog_compiler_rtti_exceptions=no
33010 ac_outfile=conftest.$ac_objext
33011 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33012 lt_compiler_flag="-fno-rtti -fno-exceptions"
33013 # Insert the option either (1) after the last *FLAGS variable, or
33014 # (2) before a word containing "conftest.", or (3) at the end.
33015 # Note that $ac_compile itself does not contain backslashes and begins
33016 # with a dollar sign (not a hyphen), so the echo should work correctly.
33017 # The option is referenced via a variable to avoid confusing sed.
33018 lt_compile=`echo "$ac_compile" | $SED \
33019 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33021 -e 's:$: $lt_compiler_flag:'`
33022 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33023 (eval "$lt_compile" 2>conftest.err)
33025 cat conftest.err >&5
33026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33027 if (exit $ac_status) && test -s "$ac_outfile"; then
33028 # The compiler can only warn and ignore the option if not recognized
33029 # So say no if there are warnings other than the usual output.
33030 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
33031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
33032 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
33033 lt_cv_prog_compiler_rtti_exceptions=yes
33039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
33040 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
33042 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
33043 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
33055 lt_prog_compiler_wl=
33056 lt_prog_compiler_pic=
33057 lt_prog_compiler_static=
33060 if test "$GCC" = yes; then
33061 lt_prog_compiler_wl='-Wl,'
33062 lt_prog_compiler_static='-static'
33066 # All AIX code is PIC.
33067 if test "$host_cpu" = ia64; then
33068 # AIX 5 now supports IA64 processor
33069 lt_prog_compiler_static='-Bstatic'
33076 # see comment about AmigaOS4 .so support
33077 lt_prog_compiler_pic='-fPIC'
33080 # FIXME: we need at least 68020 code to build shared libraries, but
33081 # adding the `-m68020' flag to GCC prevents building anything better,
33083 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
33088 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
33089 # PIC is the default for these OSes.
33092 mingw* | cygwin* | pw32* | os2* | cegcc*)
33093 # This hack is so that the source file can tell whether it is being
33094 # built for inclusion in a dll (and should export symbols for example).
33095 # Although the cygwin gcc ignores -fPIC, still need this for old-style
33096 # (--disable-auto-import) libraries
33097 lt_prog_compiler_pic='-DDLL_EXPORT'
33100 darwin* | rhapsody*)
33101 # PIC is the default on this platform
33102 # Common symbols not allowed in MH_DYLIB files
33103 lt_prog_compiler_pic='-fno-common'
33107 # PIC is the default for Haiku.
33108 # The "-static" flag exists, but is broken.
33109 lt_prog_compiler_static=
33113 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
33114 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
33115 # sets the default TLS model and affects inlining.
33121 lt_prog_compiler_pic='-fPIC'
33127 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
33128 # Instead, we relocate shared libraries at runtime.
33132 # Just because we use GCC doesn't mean we suddenly get shared libraries
33133 # on systems that don't support them.
33134 lt_prog_compiler_can_build_shared=no
33139 # QNX uses GNU C++, but need to define -shared option too, otherwise
33140 # it will coredump.
33141 lt_prog_compiler_pic='-fPIC -shared'
33145 if test -d /usr/nec; then
33146 lt_prog_compiler_pic=-Kconform_pic
33151 lt_prog_compiler_pic='-fPIC'
33155 case $cc_basename in
33156 nvcc*) # Cuda Compiler Driver 2.2
33157 lt_prog_compiler_wl='-Xlinker '
33158 lt_prog_compiler_pic='-Xcompiler -fPIC'
33162 # PORTME Check for flag to pass linker flags through the system compiler.
33165 lt_prog_compiler_wl='-Wl,'
33166 if test "$host_cpu" = ia64; then
33167 # AIX 5 now supports IA64 processor
33168 lt_prog_compiler_static='-Bstatic'
33170 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
33174 mingw* | cygwin* | pw32* | os2* | cegcc*)
33175 # This hack is so that the source file can tell whether it is being
33176 # built for inclusion in a dll (and should export symbols for example).
33177 lt_prog_compiler_pic='-DDLL_EXPORT'
33180 hpux9* | hpux10* | hpux11*)
33181 lt_prog_compiler_wl='-Wl,'
33182 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
33183 # not for PA HP-UX.
33189 lt_prog_compiler_pic='+Z'
33192 # Is there a better lt_prog_compiler_static that works with the bundled CC?
33193 lt_prog_compiler_static='${wl}-a ${wl}archive'
33196 irix5* | irix6* | nonstopux*)
33197 lt_prog_compiler_wl='-Wl,'
33198 # PIC (with -KPIC) is the default.
33199 lt_prog_compiler_static='-non_shared'
33202 linux* | k*bsd*-gnu | kopensolaris*-gnu)
33203 case $cc_basename in
33204 # old Intel for x86_64 which still supported -KPIC.
33206 lt_prog_compiler_wl='-Wl,'
33207 lt_prog_compiler_pic='-KPIC'
33208 lt_prog_compiler_static='-static'
33210 # icc used to be incompatible with GCC.
33211 # ICC 10 doesn't accept -KPIC any more.
33213 lt_prog_compiler_wl='-Wl,'
33214 lt_prog_compiler_pic='-fPIC'
33215 lt_prog_compiler_static='-static'
33217 # Lahey Fortran 8.1.
33219 lt_prog_compiler_wl='-Wl,'
33220 lt_prog_compiler_pic='--shared'
33221 lt_prog_compiler_static='--static'
33224 # NAG Fortran compiler
33225 lt_prog_compiler_wl='-Wl,-Wl,,'
33226 lt_prog_compiler_pic='-PIC'
33227 lt_prog_compiler_static='-Bstatic'
33229 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
33230 # Portland Group compilers (*not* the Pentium gcc compiler,
33231 # which looks to be a dead project)
33232 lt_prog_compiler_wl='-Wl,'
33233 lt_prog_compiler_pic='-fpic'
33234 lt_prog_compiler_static='-Bstatic'
33237 lt_prog_compiler_wl='-Wl,'
33238 # All Alpha code is PIC.
33239 lt_prog_compiler_static='-non_shared'
33241 xl* | bgxl* | bgf* | mpixl*)
33242 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
33243 lt_prog_compiler_wl='-Wl,'
33244 lt_prog_compiler_pic='-qpic'
33245 lt_prog_compiler_static='-qstaticlink'
33248 case `$CC -V 2>&1 | sed 5q` in
33249 *Sun\ F* | *Sun*Fortran*)
33250 # Sun Fortran 8.3 passes all unrecognized flags to the linker
33251 lt_prog_compiler_pic='-KPIC'
33252 lt_prog_compiler_static='-Bstatic'
33253 lt_prog_compiler_wl=''
33257 lt_prog_compiler_pic='-KPIC'
33258 lt_prog_compiler_static='-Bstatic'
33259 lt_prog_compiler_wl='-Wl,'
33267 lt_prog_compiler_pic='-KPIC'
33268 lt_prog_compiler_static='-Bstatic'
33272 # QNX uses GNU C++, but need to define -shared option too, otherwise
33273 # it will coredump.
33274 lt_prog_compiler_pic='-fPIC -shared'
33277 osf3* | osf4* | osf5*)
33278 lt_prog_compiler_wl='-Wl,'
33279 # All OSF/1 code is PIC.
33280 lt_prog_compiler_static='-non_shared'
33284 lt_prog_compiler_static='-non_shared'
33288 lt_prog_compiler_pic='-KPIC'
33289 lt_prog_compiler_static='-Bstatic'
33290 case $cc_basename in
33291 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
33292 lt_prog_compiler_wl='-Qoption ld ';;
33294 lt_prog_compiler_wl='-Wl,';;
33299 lt_prog_compiler_wl='-Qoption ld '
33300 lt_prog_compiler_pic='-PIC'
33301 lt_prog_compiler_static='-Bstatic'
33304 sysv4 | sysv4.2uw2* | sysv4.3*)
33305 lt_prog_compiler_wl='-Wl,'
33306 lt_prog_compiler_pic='-KPIC'
33307 lt_prog_compiler_static='-Bstatic'
33311 if test -d /usr/nec ;then
33312 lt_prog_compiler_pic='-Kconform_pic'
33313 lt_prog_compiler_static='-Bstatic'
33317 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
33318 lt_prog_compiler_wl='-Wl,'
33319 lt_prog_compiler_pic='-KPIC'
33320 lt_prog_compiler_static='-Bstatic'
33324 lt_prog_compiler_wl='-Wl,'
33325 lt_prog_compiler_can_build_shared=no
33329 lt_prog_compiler_pic='-pic'
33330 lt_prog_compiler_static='-Bstatic'
33334 lt_prog_compiler_can_build_shared=no
33340 # For platforms which do not support PIC, -DPIC is meaningless:
33342 lt_prog_compiler_pic=
33345 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
33349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
33350 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
33351 if ${lt_cv_prog_compiler_pic+:} false; then :
33352 $as_echo_n "(cached) " >&6
33354 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
33356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
33357 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
33358 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
33361 # Check to make sure the PIC flag actually works.
33363 if test -n "$lt_prog_compiler_pic"; then
33364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
33365 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
33366 if ${lt_cv_prog_compiler_pic_works+:} false; then :
33367 $as_echo_n "(cached) " >&6
33369 lt_cv_prog_compiler_pic_works=no
33370 ac_outfile=conftest.$ac_objext
33371 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33372 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
33373 # Insert the option either (1) after the last *FLAGS variable, or
33374 # (2) before a word containing "conftest.", or (3) at the end.
33375 # Note that $ac_compile itself does not contain backslashes and begins
33376 # with a dollar sign (not a hyphen), so the echo should work correctly.
33377 # The option is referenced via a variable to avoid confusing sed.
33378 lt_compile=`echo "$ac_compile" | $SED \
33379 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33381 -e 's:$: $lt_compiler_flag:'`
33382 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33383 (eval "$lt_compile" 2>conftest.err)
33385 cat conftest.err >&5
33386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33387 if (exit $ac_status) && test -s "$ac_outfile"; then
33388 # The compiler can only warn and ignore the option if not recognized
33389 # So say no if there are warnings other than the usual output.
33390 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
33391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
33392 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
33393 lt_cv_prog_compiler_pic_works=yes
33399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
33400 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
33402 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
33403 case $lt_prog_compiler_pic in
33405 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
33408 lt_prog_compiler_pic=
33409 lt_prog_compiler_can_build_shared=no
33425 # Check to make sure the static flag actually works.
33427 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
33428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
33429 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
33430 if ${lt_cv_prog_compiler_static_works+:} false; then :
33431 $as_echo_n "(cached) " >&6
33433 lt_cv_prog_compiler_static_works=no
33434 save_LDFLAGS="$LDFLAGS"
33435 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
33436 echo "$lt_simple_link_test_code" > conftest.$ac_ext
33437 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
33438 # The linker can only warn and ignore the option if not recognized
33439 # So say no if there are warnings
33440 if test -s conftest.err; then
33441 # Append any errors to the config.log.
33442 cat conftest.err 1>&5
33443 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
33444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
33445 if diff conftest.exp conftest.er2 >/dev/null; then
33446 lt_cv_prog_compiler_static_works=yes
33449 lt_cv_prog_compiler_static_works=yes
33453 LDFLAGS="$save_LDFLAGS"
33456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
33457 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
33459 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
33462 lt_prog_compiler_static=
33471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
33472 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
33473 if ${lt_cv_prog_compiler_c_o+:} false; then :
33474 $as_echo_n "(cached) " >&6
33476 lt_cv_prog_compiler_c_o=no
33477 $RM -r conftest 2>/dev/null
33481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33483 lt_compiler_flag="-o out/conftest2.$ac_objext"
33484 # Insert the option either (1) after the last *FLAGS variable, or
33485 # (2) before a word containing "conftest.", or (3) at the end.
33486 # Note that $ac_compile itself does not contain backslashes and begins
33487 # with a dollar sign (not a hyphen), so the echo should work correctly.
33488 lt_compile=`echo "$ac_compile" | $SED \
33489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33491 -e 's:$: $lt_compiler_flag:'`
33492 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33493 (eval "$lt_compile" 2>out/conftest.err)
33495 cat out/conftest.err >&5
33496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497 if (exit $ac_status) && test -s out/conftest2.$ac_objext
33499 # The compiler can only warn and ignore the option if not recognized
33500 # So say no if there are warnings
33501 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
33502 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
33503 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
33504 lt_cv_prog_compiler_c_o=yes
33509 # SGI C++ compiler will create directory out/ii_files/ for
33510 # template instantiation
33511 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
33512 $RM out/* && rmdir out
33518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
33519 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
33526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
33527 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
33528 if ${lt_cv_prog_compiler_c_o+:} false; then :
33529 $as_echo_n "(cached) " >&6
33531 lt_cv_prog_compiler_c_o=no
33532 $RM -r conftest 2>/dev/null
33536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33538 lt_compiler_flag="-o out/conftest2.$ac_objext"
33539 # Insert the option either (1) after the last *FLAGS variable, or
33540 # (2) before a word containing "conftest.", or (3) at the end.
33541 # Note that $ac_compile itself does not contain backslashes and begins
33542 # with a dollar sign (not a hyphen), so the echo should work correctly.
33543 lt_compile=`echo "$ac_compile" | $SED \
33544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33546 -e 's:$: $lt_compiler_flag:'`
33547 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33548 (eval "$lt_compile" 2>out/conftest.err)
33550 cat out/conftest.err >&5
33551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33552 if (exit $ac_status) && test -s out/conftest2.$ac_objext
33554 # The compiler can only warn and ignore the option if not recognized
33555 # So say no if there are warnings
33556 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
33557 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
33558 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
33559 lt_cv_prog_compiler_c_o=yes
33564 # SGI C++ compiler will create directory out/ii_files/ for
33565 # template instantiation
33566 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
33567 $RM out/* && rmdir out
33573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
33574 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
33579 hard_links="nottested"
33580 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
33581 # do not overwrite the value of need_locks provided by the user
33582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
33583 $as_echo_n "checking if we can lock with hard links... " >&6; }
33586 ln conftest.a conftest.b 2>/dev/null && hard_links=no
33588 ln conftest.a conftest.b 2>&5 || hard_links=no
33589 ln conftest.a conftest.b 2>/dev/null && hard_links=no
33590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
33591 $as_echo "$hard_links" >&6; }
33592 if test "$hard_links" = no; then
33593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
33594 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
33606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
33607 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
33610 allow_undefined_flag=
33611 always_export_symbols=no
33613 archive_expsym_cmds=
33614 compiler_needs_object=no
33615 enable_shared_with_static_runtimes=no
33616 export_dynamic_flag_spec=
33617 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
33618 hardcode_automatic=no
33620 hardcode_direct_absolute=no
33621 hardcode_libdir_flag_spec=
33622 hardcode_libdir_flag_spec_ld=
33623 hardcode_libdir_separator=
33624 hardcode_minus_L=no
33625 hardcode_shlibpath_var=unsupported
33627 link_all_deplibs=unknown
33629 module_expsym_cmds=
33630 old_archive_from_new_cmds=
33631 old_archive_from_expsyms_cmds=
33632 thread_safe_flag_spec=
33633 whole_archive_flag_spec=
33634 # include_expsyms should be a list of space-separated symbols to be *always*
33635 # included in the symbol list
33637 # exclude_expsyms can be an extended regexp of symbols to exclude
33638 # it will be wrapped by ` (' and `)$', so one must not match beginning or
33639 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
33640 # as well as any symbol that contains `d'.
33641 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
33642 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
33643 # platforms (ab)use it in PIC code, but their linkers get confused if
33644 # the symbol is explicitly referenced. Since portable code cannot
33645 # rely on this symbol name, it's probably fine to never include it in
33646 # preloaded symbol tables.
33647 # Exclude shared library initialization/finalization symbols.
33648 extract_expsyms_cmds=
33651 cygwin* | mingw* | pw32* | cegcc*)
33652 # FIXME: the MSVC++ port hasn't been tested in a loooong time
33653 # When not using gcc, we currently assume that we are using
33654 # Microsoft Visual C++.
33655 if test "$GCC" != yes; then
33660 # we just hope/assume this is gcc and not c89 (= MSVC++)
33670 # On some targets, GNU ld is compatible enough with the native linker
33671 # that we're better off using the native interface for both.
33672 lt_use_gnu_ld_interface=no
33673 if test "$with_gnu_ld" = yes; then
33676 # The AIX port of GNU ld has always aspired to compatibility
33677 # with the native linker. However, as the warning in the GNU ld
33678 # block says, versions before 2.19.5* couldn't really create working
33679 # shared libraries, regardless of the interface used.
33680 case `$LD -v 2>&1` in
33681 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
33682 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
33683 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
33685 lt_use_gnu_ld_interface=yes
33690 lt_use_gnu_ld_interface=yes
33695 if test "$lt_use_gnu_ld_interface" = yes; then
33696 # If archive_cmds runs LD, not CC, wlarc should be empty
33699 # Set some defaults for GNU ld with shared library support. These
33700 # are reset later if shared libraries are not supported. Putting them
33701 # here allows them to be overridden if necessary.
33702 runpath_var=LD_RUN_PATH
33703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
33704 export_dynamic_flag_spec='${wl}--export-dynamic'
33705 # ancient GNU ld didn't support --whole-archive et. al.
33706 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
33707 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
33709 whole_archive_flag_spec=
33711 supports_anon_versioning=no
33712 case `$LD -v 2>&1` in
33713 *GNU\ gold*) supports_anon_versioning=yes ;;
33714 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
33715 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
33716 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
33717 *\ 2.11.*) ;; # other 2.11 versions
33718 *) supports_anon_versioning=yes ;;
33721 # See if GNU ld supports shared libraries.
33724 # On AIX/PPC, the GNU linker is very broken
33725 if test "$host_cpu" != ia64; then
33729 *** Warning: the GNU linker, at least up to release 2.19, is reported
33730 *** to be unable to reliably create shared libraries on AIX.
33731 *** Therefore, libtool is disabling shared libraries support. If you
33732 *** really care for shared libraries, you may want to install binutils
33733 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
33734 *** You will then need to restart the configuration process.
33743 # see comment about AmigaOS4 .so support
33744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33745 archive_expsym_cmds=''
33748 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)'
33749 hardcode_libdir_flag_spec='-L$libdir'
33750 hardcode_minus_L=yes
33756 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33757 allow_undefined_flag=unsupported
33758 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
33759 # support --undefined. This deserves some investigation. FIXME
33760 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33766 cygwin* | mingw* | pw32* | cegcc*)
33767 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
33768 # as there is no search path for DLLs.
33769 hardcode_libdir_flag_spec='-L$libdir'
33770 export_dynamic_flag_spec='${wl}--export-all-symbols'
33771 allow_undefined_flag=unsupported
33772 always_export_symbols=no
33773 enable_shared_with_static_runtimes=yes
33774 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'
33775 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
33777 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
33778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
33779 # If the export-symbols file already is a .def file (1st line
33780 # is EXPORTS), use it as is; otherwise, prepend...
33781 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
33782 cp $export_symbols $output_objdir/$soname.def;
33784 echo EXPORTS > $output_objdir/$soname.def;
33785 cat $export_symbols >> $output_objdir/$soname.def;
33787 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
33794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33795 link_all_deplibs=yes
33800 hardcode_shlibpath_var=no
33801 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
33802 export_dynamic_flag_spec='${wl}-E'
33803 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
33804 # Instead, shared libraries are loaded at an image base (0x10000000 by
33805 # default) and relocated if they conflict, which is a slow very memory
33806 # consuming and fragmenting process. To avoid this, we pick a random,
33807 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
33808 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
33809 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
33810 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'
33813 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
33815 if test "$host_os" = linux-dietlibc; then
33816 case $cc_basename in
33817 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
33820 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
33821 && test "$tmp_diet" = no
33823 tmp_addflag=' $pic_flag'
33824 tmp_sharedflag='-shared'
33825 case $cc_basename,$host_cpu in
33826 pgcc*) # Portland Group C compiler
33827 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'
33828 tmp_addflag=' $pic_flag'
33830 pgf77* | pgf90* | pgf95* | pgfortran*)
33831 # Portland Group f77 and f90 compilers
33832 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'
33833 tmp_addflag=' $pic_flag -Mnomain' ;;
33834 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
33835 tmp_addflag=' -i_dynamic' ;;
33836 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
33837 tmp_addflag=' -i_dynamic -nofor_main' ;;
33838 ifc* | ifort*) # Intel Fortran compiler
33839 tmp_addflag=' -nofor_main' ;;
33840 lf95*) # Lahey Fortran 8.1
33841 whole_archive_flag_spec=
33842 tmp_sharedflag='--shared' ;;
33843 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
33844 tmp_sharedflag='-qmkshrobj'
33846 nvcc*) # Cuda Compiler Driver 2.2
33847 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'
33848 compiler_needs_object=yes
33851 case `$CC -V 2>&1 | sed 5q` in
33852 *Sun\ C*) # Sun C 5.9
33853 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'
33854 compiler_needs_object=yes
33855 tmp_sharedflag='-G' ;;
33856 *Sun\ F*) # Sun Fortran 8.3
33857 tmp_sharedflag='-G' ;;
33859 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33861 if test "x$supports_anon_versioning" = xyes; then
33862 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
33863 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
33864 echo "local: *; };" >> $output_objdir/$libname.ver~
33865 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
33868 case $cc_basename in
33869 xlf* | bgf* | bgxlf* | mpixlf*)
33870 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
33871 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
33872 hardcode_libdir_flag_spec=
33873 hardcode_libdir_flag_spec_ld='-rpath $libdir'
33874 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
33875 if test "x$supports_anon_versioning" = xyes; then
33876 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
33877 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
33878 echo "local: *; };" >> $output_objdir/$libname.ver~
33879 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
33889 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
33890 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
33893 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33894 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33899 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
33903 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
33904 *** create shared libraries on Solaris systems. Therefore, libtool
33905 *** is disabling shared libraries support. We urge you to upgrade GNU
33906 *** binutils to release 2.9.1 or newer. Another option is to modify
33907 *** your PATH or compiler configuration so that the native linker is
33908 *** used, and then restart.
33911 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33912 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33913 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
33920 case `$LD -v 2>&1` in
33921 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
33925 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
33926 *** reliably create shared libraries on SCO systems. Therefore, libtool
33927 *** is disabling shared libraries support. We urge you to upgrade GNU
33928 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
33929 *** your PATH or compiler configuration so that the native linker is
33930 *** used, and then restart.
33935 # For security reasons, it is highly recommended that you always
33936 # use absolute paths for naming shared libraries, and exclude the
33937 # DT_RUNPATH tag from executables and libraries. But doing so
33938 # requires that you compile everything twice, which is a pain.
33939 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33940 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
33941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33942 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33951 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
33953 hardcode_direct=yes
33954 hardcode_shlibpath_var=no
33958 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33959 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33960 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33967 if test "$ld_shlibs" = no; then
33969 hardcode_libdir_flag_spec=
33970 export_dynamic_flag_spec=
33971 whole_archive_flag_spec=
33974 # PORTME fill in a description of your system's linker (not GNU ld)
33977 allow_undefined_flag=unsupported
33978 always_export_symbols=yes
33979 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'
33980 # Note: this linker hardcodes the directories in LIBPATH if there
33981 # are no directories specified by -L.
33982 hardcode_minus_L=yes
33983 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
33984 # Neither direct hardcoding nor static linking is supported with a
33986 hardcode_direct=unsupported
33991 if test "$host_cpu" = ia64; then
33992 # On IA64, the linker does run time linking by default, so we don't
33993 # have to do anything special.
33994 aix_use_runtimelinking=no
33995 exp_sym_flag='-Bexport'
33998 # If we're using GNU nm, then we don't want the "-C" option.
33999 # -C means demangle to AIX nm, but means don't demangle with GNU nm
34000 # Also, AIX nm treats weak defined symbols like other global
34001 # defined symbols, whereas GNU nm marks them as "W".
34002 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
34003 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'
34005 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'
34007 aix_use_runtimelinking=no
34009 # Test if we are trying to use run time linking or normal
34010 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
34011 # need to do runtime linking.
34012 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
34013 for ld_flag in $LDFLAGS; do
34014 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
34015 aix_use_runtimelinking=yes
34022 exp_sym_flag='-bexport'
34023 no_entry_flag='-bnoentry'
34026 # When large executables or shared objects are built, AIX ld can
34027 # have problems creating the table of contents. If linking a library
34028 # or program results in "error TOC overflow" add -mminimal-toc to
34029 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
34030 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
34033 hardcode_direct=yes
34034 hardcode_direct_absolute=yes
34035 hardcode_libdir_separator=':'
34036 link_all_deplibs=yes
34037 file_list_spec='${wl}-f,'
34039 if test "$GCC" = yes; then
34040 case $host_os in aix4.[012]|aix4.[012].*)
34041 # We only want to do this on AIX 4.2 and lower, the check
34042 # below for broken collect2 doesn't work under 4.3+
34043 collect2name=`${CC} -print-prog-name=collect2`
34044 if test -f "$collect2name" &&
34045 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
34047 # We have reworked collect2
34050 # We have old collect2
34051 hardcode_direct=unsupported
34052 # It fails to find uninstalled libraries when the uninstalled
34053 # path is not listed in the libpath. Setting hardcode_minus_L
34054 # to unsupported forces relinking
34055 hardcode_minus_L=yes
34056 hardcode_libdir_flag_spec='-L$libdir'
34057 hardcode_libdir_separator=
34061 shared_flag='-shared'
34062 if test "$aix_use_runtimelinking" = yes; then
34063 shared_flag="$shared_flag "'${wl}-G'
34067 if test "$host_cpu" = ia64; then
34068 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
34069 # chokes on -Wl,-G. The following line is correct:
34072 if test "$aix_use_runtimelinking" = yes; then
34073 shared_flag='${wl}-G'
34075 shared_flag='${wl}-bM:SRE'
34080 export_dynamic_flag_spec='${wl}-bexpall'
34081 # It seems that -bexpall does not export symbols beginning with
34082 # underscore (_), so it is better to generate a list of symbols to export.
34083 always_export_symbols=yes
34084 if test "$aix_use_runtimelinking" = yes; then
34085 # Warning - without using the other runtime loading flags (-brtl),
34086 # -berok will link without error, but may produce a broken library.
34087 allow_undefined_flag='-berok'
34088 # Determine the default libpath from the value encoded in an
34089 # empty executable.
34090 if test "${lt_cv_aix_libpath+set}" = set; then
34091 aix_libpath=$lt_cv_aix_libpath
34093 if ${lt_cv_aix_libpath_+:} false; then :
34094 $as_echo_n "(cached) " >&6
34096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34097 /* end confdefs.h. */
34107 if ac_fn_c_try_link "$LINENO"; then :
34109 lt_aix_libpath_sed='
34110 /Import File Strings/,/^$/ {
34112 s/^0 *\([^ ]*\) *$/\1/
34116 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
34117 # Check for a 64-bit object if we didn't find anything.
34118 if test -z "$lt_cv_aix_libpath_"; then
34119 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
34122 rm -f core conftest.err conftest.$ac_objext \
34123 conftest$ac_exeext conftest.$ac_ext
34124 if test -z "$lt_cv_aix_libpath_"; then
34125 lt_cv_aix_libpath_="/usr/lib:/lib"
34130 aix_libpath=$lt_cv_aix_libpath_
34133 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
34134 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"
34136 if test "$host_cpu" = ia64; then
34137 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
34138 allow_undefined_flag="-z nodefs"
34139 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"
34141 # Determine the default libpath from the value encoded in an
34142 # empty executable.
34143 if test "${lt_cv_aix_libpath+set}" = set; then
34144 aix_libpath=$lt_cv_aix_libpath
34146 if ${lt_cv_aix_libpath_+:} false; then :
34147 $as_echo_n "(cached) " >&6
34149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34150 /* end confdefs.h. */
34160 if ac_fn_c_try_link "$LINENO"; then :
34162 lt_aix_libpath_sed='
34163 /Import File Strings/,/^$/ {
34165 s/^0 *\([^ ]*\) *$/\1/
34169 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
34170 # Check for a 64-bit object if we didn't find anything.
34171 if test -z "$lt_cv_aix_libpath_"; then
34172 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
34175 rm -f core conftest.err conftest.$ac_objext \
34176 conftest$ac_exeext conftest.$ac_ext
34177 if test -z "$lt_cv_aix_libpath_"; then
34178 lt_cv_aix_libpath_="/usr/lib:/lib"
34183 aix_libpath=$lt_cv_aix_libpath_
34186 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
34187 # Warning - without using the other run time loading flags,
34188 # -berok will link without error, but may produce a broken library.
34189 no_undefined_flag=' ${wl}-bernotok'
34190 allow_undefined_flag=' ${wl}-berok'
34191 if test "$with_gnu_ld" = yes; then
34192 # We only use this code for GNU lds that support --whole-archive.
34193 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
34195 # Exported symbols can be pulled into shared objects from archives
34196 whole_archive_flag_spec='$convenience'
34198 archive_cmds_need_lc=yes
34199 # This is similar to how AIX traditionally builds its shared libraries.
34200 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'
34208 # see comment about AmigaOS4 .so support
34209 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
34210 archive_expsym_cmds=''
34213 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)'
34214 hardcode_libdir_flag_spec='-L$libdir'
34215 hardcode_minus_L=yes
34221 export_dynamic_flag_spec=-rdynamic
34224 cygwin* | mingw* | pw32* | cegcc*)
34225 # When not using gcc, we currently assume that we are using
34226 # Microsoft Visual C++.
34227 # hardcode_libdir_flag_spec is actually meaningless, as there is
34228 # no search path for DLLs.
34229 case $cc_basename in
34232 hardcode_libdir_flag_spec=' '
34233 allow_undefined_flag=unsupported
34234 always_export_symbols=yes
34236 # Tell ltmain to make .lib files, not .a files.
34238 # Tell ltmain to make .dll files, not .so files.
34240 # FIXME: Setting linknames here is a bad hack.
34241 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
34242 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
34243 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
34245 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
34247 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
34249 # The linker will not automatically build a static lib if we build a DLL.
34250 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
34251 enable_shared_with_static_runtimes=yes
34252 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
34254 old_postinstall_cmds='chmod 644 $oldlib'
34255 postlink_cmds='lt_outputfile="@OUTPUT@"~
34256 lt_tool_outputfile="@TOOL_OUTPUT@"~
34257 case $lt_outputfile in
34260 lt_outputfile="$lt_outputfile.exe"
34261 lt_tool_outputfile="$lt_tool_outputfile.exe"
34264 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
34265 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
34266 $RM "$lt_outputfile.manifest";
34270 # Assume MSVC wrapper
34271 hardcode_libdir_flag_spec=' '
34272 allow_undefined_flag=unsupported
34273 # Tell ltmain to make .lib files, not .a files.
34275 # Tell ltmain to make .dll files, not .so files.
34277 # FIXME: Setting linknames here is a bad hack.
34278 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
34279 # The linker will automatically build a .lib file if we build a DLL.
34280 old_archive_from_new_cmds='true'
34281 # FIXME: Should let the user specify the lib program.
34282 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
34283 enable_shared_with_static_runtimes=yes
34288 darwin* | rhapsody*)
34291 archive_cmds_need_lc=no
34293 hardcode_automatic=yes
34294 hardcode_shlibpath_var=unsupported
34295 if test "$lt_cv_ld_force_load" = "yes"; then
34296 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\"`'
34298 whole_archive_flag_spec=''
34300 link_all_deplibs=yes
34301 allow_undefined_flag="$_lt_dar_allow_undefined"
34302 case $cc_basename in
34303 ifort*) _lt_dar_can_shared=yes ;;
34304 *) _lt_dar_can_shared=$GCC ;;
34306 if test "$_lt_dar_can_shared" = "yes"; then
34307 output_verbose_link_cmd=func_echo_all
34308 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
34309 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
34310 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}"
34311 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}"
34320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34321 hardcode_libdir_flag_spec='-L$libdir'
34322 hardcode_shlibpath_var=no
34329 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
34330 # support. Future versions do this automatically, but an explicit c++rt0.o
34331 # does not break anything, and helps significantly (at the cost of a little
34334 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
34335 hardcode_libdir_flag_spec='-R$libdir'
34336 hardcode_direct=yes
34337 hardcode_shlibpath_var=no
34340 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
34342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
34343 hardcode_direct=yes
34344 hardcode_minus_L=yes
34345 hardcode_shlibpath_var=no
34348 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
34349 freebsd* | dragonfly*)
34350 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
34351 hardcode_libdir_flag_spec='-R$libdir'
34352 hardcode_direct=yes
34353 hardcode_shlibpath_var=no
34357 if test "$GCC" = yes; then
34358 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'
34360 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'
34362 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
34363 hardcode_libdir_separator=:
34364 hardcode_direct=yes
34366 # hardcode_minus_L: Not really in the search PATH,
34367 # but as the default location of the library.
34368 hardcode_minus_L=yes
34369 export_dynamic_flag_spec='${wl}-E'
34373 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
34374 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
34376 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
34378 if test "$with_gnu_ld" = no; then
34379 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
34380 hardcode_libdir_flag_spec_ld='+b $libdir'
34381 hardcode_libdir_separator=:
34382 hardcode_direct=yes
34383 hardcode_direct_absolute=yes
34384 export_dynamic_flag_spec='${wl}-E'
34385 # hardcode_minus_L: Not really in the search PATH,
34386 # but as the default location of the library.
34387 hardcode_minus_L=yes
34392 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
34395 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
34398 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
34401 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
34407 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
34410 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
34414 # Older versions of the 11.00 compiler do not understand -b yet
34415 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
34416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
34417 $as_echo_n "checking if $CC understands -b... " >&6; }
34418 if ${lt_cv_prog_compiler__b+:} false; then :
34419 $as_echo_n "(cached) " >&6
34421 lt_cv_prog_compiler__b=no
34422 save_LDFLAGS="$LDFLAGS"
34423 LDFLAGS="$LDFLAGS -b"
34424 echo "$lt_simple_link_test_code" > conftest.$ac_ext
34425 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
34426 # The linker can only warn and ignore the option if not recognized
34427 # So say no if there are warnings
34428 if test -s conftest.err; then
34429 # Append any errors to the config.log.
34430 cat conftest.err 1>&5
34431 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
34432 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
34433 if diff conftest.exp conftest.er2 >/dev/null; then
34434 lt_cv_prog_compiler__b=yes
34437 lt_cv_prog_compiler__b=yes
34441 LDFLAGS="$save_LDFLAGS"
34444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
34445 $as_echo "$lt_cv_prog_compiler__b" >&6; }
34447 if test x"$lt_cv_prog_compiler__b" = xyes; then
34448 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
34450 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
34456 if test "$with_gnu_ld" = no; then
34457 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
34458 hardcode_libdir_separator=:
34463 hardcode_shlibpath_var=no
34466 hardcode_direct=yes
34467 hardcode_direct_absolute=yes
34468 export_dynamic_flag_spec='${wl}-E'
34470 # hardcode_minus_L: Not really in the search PATH,
34471 # but as the default location of the library.
34472 hardcode_minus_L=yes
34478 irix5* | irix6* | nonstopux*)
34479 if test "$GCC" = yes; then
34480 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'
34481 # Try to use the -exported_symbol ld option, if it does not
34482 # work, assume that -exports_file does not work either and
34483 # implicitly export all symbols.
34484 # This should be the same for all languages, so no per-tag cache variable.
34485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
34486 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
34487 if ${lt_cv_irix_exported_symbol+:} false; then :
34488 $as_echo_n "(cached) " >&6
34490 save_LDFLAGS="$LDFLAGS"
34491 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
34492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34493 /* end confdefs.h. */
34494 int foo (void) { return 0; }
34496 if ac_fn_c_try_link "$LINENO"; then :
34497 lt_cv_irix_exported_symbol=yes
34499 lt_cv_irix_exported_symbol=no
34501 rm -f core conftest.err conftest.$ac_objext \
34502 conftest$ac_exeext conftest.$ac_ext
34503 LDFLAGS="$save_LDFLAGS"
34505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
34506 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
34507 if test "$lt_cv_irix_exported_symbol" = yes; then
34508 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'
34511 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'
34512 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'
34514 archive_cmds_need_lc='no'
34515 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
34516 hardcode_libdir_separator=:
34518 link_all_deplibs=yes
34522 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
34523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
34525 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
34527 hardcode_libdir_flag_spec='-R$libdir'
34528 hardcode_direct=yes
34529 hardcode_shlibpath_var=no
34533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34534 hardcode_direct=yes
34535 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
34536 hardcode_libdir_separator=:
34537 hardcode_shlibpath_var=no
34544 if test -f /usr/libexec/ld.so; then
34545 hardcode_direct=yes
34546 hardcode_shlibpath_var=no
34547 hardcode_direct_absolute=yes
34548 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
34549 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
34550 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
34551 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
34552 export_dynamic_flag_spec='${wl}-E'
34555 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
34556 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
34557 hardcode_libdir_flag_spec='-R$libdir'
34560 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
34561 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
34571 hardcode_libdir_flag_spec='-L$libdir'
34572 hardcode_minus_L=yes
34573 allow_undefined_flag=unsupported
34574 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'
34575 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
34579 if test "$GCC" = yes; then
34580 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
34581 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'
34583 allow_undefined_flag=' -expect_unresolved \*'
34584 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'
34586 archive_cmds_need_lc='no'
34587 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
34588 hardcode_libdir_separator=:
34591 osf4* | osf5*) # as osf3* with the addition of -msym flag
34592 if test "$GCC" = yes; then
34593 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
34594 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'
34595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
34597 allow_undefined_flag=' -expect_unresolved \*'
34598 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'
34599 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~
34600 $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'
34602 # Both c and cxx compiler support -rpath directly
34603 hardcode_libdir_flag_spec='-rpath $libdir'
34605 archive_cmds_need_lc='no'
34606 hardcode_libdir_separator=:
34610 no_undefined_flag=' -z defs'
34611 if test "$GCC" = yes; then
34613 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
34614 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
34615 $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'
34617 case `$CC -V 2>&1` in
34620 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
34621 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
34622 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
34626 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
34627 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
34628 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
34632 hardcode_libdir_flag_spec='-R$libdir'
34633 hardcode_shlibpath_var=no
34635 solaris2.[0-5] | solaris2.[0-5].*) ;;
34637 # The compiler driver will combine and reorder linker options,
34638 # but understands `-z linker_flag'. GCC discards it without `$wl',
34639 # but is careful enough not to reorder.
34640 # Supported since Solaris 2.6 (maybe 2.5.1?)
34641 if test "$GCC" = yes; then
34642 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
34644 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
34648 link_all_deplibs=yes
34652 if test "x$host_vendor" = xsequent; then
34653 # Use $CC to link under sequent, because it throws in some extra .o
34654 # files that make .init and .fini sections work.
34655 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
34657 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
34659 hardcode_libdir_flag_spec='-L$libdir'
34660 hardcode_direct=yes
34661 hardcode_minus_L=yes
34662 hardcode_shlibpath_var=no
34666 case $host_vendor in
34668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34669 hardcode_direct=yes # is this really true???
34672 ## LD is ld it makes a PLAMLIB
34673 ## CC just makes a GrossModule.
34674 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
34675 reload_cmds='$CC -r -o $output$reload_objs'
34679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34680 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
34683 runpath_var='LD_RUN_PATH'
34684 hardcode_shlibpath_var=no
34688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34689 hardcode_shlibpath_var=no
34690 export_dynamic_flag_spec='-Bexport'
34694 if test -d /usr/nec; then
34695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34696 hardcode_shlibpath_var=no
34697 runpath_var=LD_RUN_PATH
34698 hardcode_runpath_var=yes
34703 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
34704 no_undefined_flag='${wl}-z,text'
34705 archive_cmds_need_lc=no
34706 hardcode_shlibpath_var=no
34707 runpath_var='LD_RUN_PATH'
34709 if test "$GCC" = yes; then
34710 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34711 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34713 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34714 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34718 sysv5* | sco3.2v5* | sco5v6*)
34719 # Note: We can NOT use -z defs as we might desire, because we do not
34720 # link with -lc, and that would cause any symbols used from libc to
34721 # always be unresolved, which means just about no library would
34722 # ever link correctly. If we're not using GNU ld we use -z text
34723 # though, which does catch some bad symbols but isn't as heavy-handed
34725 no_undefined_flag='${wl}-z,text'
34726 allow_undefined_flag='${wl}-z,nodefs'
34727 archive_cmds_need_lc=no
34728 hardcode_shlibpath_var=no
34729 hardcode_libdir_flag_spec='${wl}-R,$libdir'
34730 hardcode_libdir_separator=':'
34731 link_all_deplibs=yes
34732 export_dynamic_flag_spec='${wl}-Bexport'
34733 runpath_var='LD_RUN_PATH'
34735 if test "$GCC" = yes; then
34736 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34737 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34739 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34740 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34746 hardcode_libdir_flag_spec='-L$libdir'
34747 hardcode_shlibpath_var=no
34755 if test x$host_vendor = xsni; then
34757 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
34758 export_dynamic_flag_spec='${wl}-Blargedynsym'
34764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
34765 $as_echo "$ld_shlibs" >&6; }
34766 test "$ld_shlibs" = no && can_build_shared=no
34768 with_gnu_ld=$with_gnu_ld
34785 # Do we need to explicitly link libc?
34787 case "x$archive_cmds_need_lc" in
34789 # Assume -lc should be added
34790 archive_cmds_need_lc=yes
34792 if test "$enable_shared" = yes && test "$GCC" = yes; then
34793 case $archive_cmds in
34795 # FIXME: we may have to deal with multi-command sequences.
34798 # Test whether the compiler implicitly links with -lc since on some
34799 # systems, -lgcc has to come before -lc. If gcc already passes -lc
34800 # to ld, don't add -lc before -lgcc.
34801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
34802 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
34803 if ${lt_cv_archive_cmds_need_lc+:} false; then :
34804 $as_echo_n "(cached) " >&6
34807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
34809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
34810 (eval $ac_compile) 2>&5
34812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34813 test $ac_status = 0; } 2>conftest.err; then
34816 libobjs=conftest.$ac_objext
34818 wl=$lt_prog_compiler_wl
34819 pic_flag=$lt_prog_compiler_pic
34825 lt_save_allow_undefined_flag=$allow_undefined_flag
34826 allow_undefined_flag=
34827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
34828 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
34830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34831 test $ac_status = 0; }
34833 lt_cv_archive_cmds_need_lc=no
34835 lt_cv_archive_cmds_need_lc=yes
34837 allow_undefined_flag=$lt_save_allow_undefined_flag
34839 cat conftest.err 1>&5
34844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
34845 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
34846 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
35009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
35010 $as_echo_n "checking dynamic linker characteristics... " >&6; }
35012 if test "$GCC" = yes; then
35014 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
35015 *) lt_awk_arg="/^libraries:/" ;;
35018 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
35019 *) lt_sed_strip_eq="s,=/,/,g" ;;
35021 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
35022 case $lt_search_path_spec in
35024 # if the path contains ";" then we assume it to be the separator
35025 # otherwise default to the standard path separator (i.e. ":") - it is
35026 # assumed that no part of a normal pathname contains ";" but that should
35027 # okay in the real world where ";" in dirpaths is itself problematic.
35028 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
35031 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
35034 # Ok, now we have the path, separated by spaces, we can step through it
35035 # and add multilib dir if necessary.
35036 lt_tmp_lt_search_path_spec=
35037 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
35038 for lt_sys_path in $lt_search_path_spec; do
35039 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
35040 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
35042 test -d "$lt_sys_path" && \
35043 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
35046 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
35047 BEGIN {RS=" "; FS="/|\n";} {
35050 for (lt_i = NF; lt_i > 0; lt_i--) {
35051 if ($lt_i != "" && $lt_i != ".") {
35052 if ($lt_i == "..") {
35055 if (lt_count == 0) {
35056 lt_foo="/" $lt_i lt_foo;
35063 if (lt_foo != "") { lt_freq[lt_foo]++; }
35064 if (lt_freq[lt_foo] == 1) { print lt_foo; }
35066 # AWK program above erroneously prepends '/' to C:/dos/paths
35069 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
35070 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
35072 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
35074 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
35076 library_names_spec=
35077 libname_spec='lib$name'
35081 postuninstall_cmds=
35085 shlibpath_overrides_runpath=unknown
35087 dynamic_linker="$host_os ld.so"
35088 sys_lib_dlsearch_path_spec="/lib /usr/lib"
35089 need_lib_prefix=unknown
35090 hardcode_into_libs=no
35092 # when you set need_version to no, make sure it does not cause -set_version
35093 # flags to be left without arguments
35094 need_version=unknown
35099 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
35100 shlibpath_var=LIBPATH
35102 # AIX 3 has no versioning support, so we append a major version to the name.
35103 soname_spec='${libname}${release}${shared_ext}$major'
35110 hardcode_into_libs=yes
35111 if test "$host_cpu" = ia64; then
35112 # AIX 5 supports IA64
35113 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
35114 shlibpath_var=LD_LIBRARY_PATH
35116 # With GCC up to 2.95.x, collect2 would create an import file
35117 # for dependence libraries. The import file would start with
35118 # the line `#! .'. This would cause the generated library to
35119 # depend on `.', always an invalid library. This was fixed in
35120 # development snapshots of GCC prior to 3.0.
35122 aix4 | aix4.[01] | aix4.[01].*)
35123 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
35125 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
35128 can_build_shared=no
35132 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
35133 # soname into executable. Probably we can add versioning support to
35134 # collect2, so additional links can be useful in future.
35135 if test "$aix_use_runtimelinking" = yes; then
35136 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
35137 # instead of lib<name>.a to let people know that these are not
35138 # typical AIX shared libraries.
35139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35141 # We preserve .a as extension for shared libraries through AIX4.2
35142 # and later when we are not doing run time linking.
35143 library_names_spec='${libname}${release}.a $libname.a'
35144 soname_spec='${libname}${release}${shared_ext}$major'
35146 shlibpath_var=LIBPATH
35153 # Since July 2007 AmigaOS4 officially supports .so libraries.
35154 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
35155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35158 library_names_spec='$libname.ixlibrary $libname.a'
35159 # Create ${libname}_ixlibrary.a entries in /sys/libs.
35160 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'
35166 library_names_spec='${libname}${shared_ext}'
35167 dynamic_linker="$host_os ld.so"
35168 shlibpath_var=LIBRARY_PATH
35174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35175 soname_spec='${libname}${release}${shared_ext}$major'
35176 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
35177 shlibpath_var=LD_LIBRARY_PATH
35178 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
35179 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
35180 # the default ld.so.conf also contains /usr/contrib/lib and
35181 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
35182 # libtool to hard-code these into programs
35185 cygwin* | mingw* | pw32* | cegcc*)
35186 version_type=windows
35191 case $GCC,$cc_basename in
35194 library_names_spec='$libname.dll.a'
35195 # DLL is installed to $(libdir)/../bin by postinstall_cmds
35196 postinstall_cmds='base_file=`basename \${file}`~
35197 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
35198 dldir=$destdir/`dirname \$dlpath`~
35199 test -d \$dldir || mkdir -p \$dldir~
35200 $install_prog $dir/$dlname \$dldir/$dlname~
35201 chmod a+x \$dldir/$dlname~
35202 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
35203 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
35205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
35206 dlpath=$dir/\$dldll~
35208 shlibpath_overrides_runpath=yes
35212 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
35213 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
35215 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
35218 # MinGW DLLs use traditional 'lib' prefix
35219 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
35222 # pw32 DLLs use 'pw' prefix rather than 'lib'
35223 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
35226 dynamic_linker='Win32 ld.exe'
35231 libname_spec='$name'
35232 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
35233 library_names_spec='${libname}.dll.lib'
35237 sys_lib_search_path_spec=
35240 for lt_path in $LIB
35243 # Let DOS variable expansion print the short 8.3 style file name.
35244 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
35245 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
35248 # Convert to MSYS style.
35249 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
35252 # Convert to unix form, then to dos form, then back to unix form
35253 # but this time dos style (no spaces!) so that the unix form looks
35254 # like /cygdrive/c/PROGRA~1:/cygdr...
35255 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
35256 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
35257 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
35260 sys_lib_search_path_spec="$LIB"
35261 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
35262 # It is most probably a Windows format PATH.
35263 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
35265 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
35267 # FIXME: find the short name or the path components, as spaces are
35268 # common. (e.g. "Program Files" -> "PROGRA~1")
35272 # DLL is installed to $(libdir)/../bin by postinstall_cmds
35273 postinstall_cmds='base_file=`basename \${file}`~
35274 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
35275 dldir=$destdir/`dirname \$dlpath`~
35276 test -d \$dldir || mkdir -p \$dldir~
35277 $install_prog $dir/$dlname \$dldir/$dlname'
35278 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
35279 dlpath=$dir/\$dldll~
35281 shlibpath_overrides_runpath=yes
35282 dynamic_linker='Win32 link.exe'
35286 # Assume MSVC wrapper
35287 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
35288 dynamic_linker='Win32 ld.exe'
35291 # FIXME: first we should search . and the directory the executable is in
35295 darwin* | rhapsody*)
35296 dynamic_linker="$host_os dyld"
35297 version_type=darwin
35300 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
35301 soname_spec='${libname}${release}${major}$shared_ext'
35302 shlibpath_overrides_runpath=yes
35303 shlibpath_var=DYLD_LIBRARY_PATH
35304 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
35306 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
35307 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
35314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
35315 soname_spec='${libname}${release}${shared_ext}$major'
35316 shlibpath_var=LD_LIBRARY_PATH
35323 freebsd* | dragonfly*)
35324 # DragonFly does not have aout. When/if they implement a new
35325 # versioning mechanism, adjust this.
35326 if test -x /usr/bin/objformat; then
35327 objformat=`/usr/bin/objformat`
35330 freebsd[123]*) objformat=aout ;;
35331 *) objformat=elf ;;
35334 version_type=freebsd-$objformat
35335 case $version_type in
35337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
35342 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
35346 shlibpath_var=LD_LIBRARY_PATH
35349 shlibpath_overrides_runpath=yes
35351 freebsd3.[01]* | freebsdelf3.[01]*)
35352 shlibpath_overrides_runpath=yes
35353 hardcode_into_libs=yes
35355 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
35356 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
35357 shlibpath_overrides_runpath=no
35358 hardcode_into_libs=yes
35360 *) # from 4.6 on, and DragonFly
35361 shlibpath_overrides_runpath=yes
35362 hardcode_into_libs=yes
35371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
35372 soname_spec='${libname}${release}${shared_ext}$major'
35373 shlibpath_var=LD_LIBRARY_PATH
35374 hardcode_into_libs=yes
35381 dynamic_linker="$host_os runtime_loader"
35382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
35383 soname_spec='${libname}${release}${shared_ext}$major'
35384 shlibpath_var=LIBRARY_PATH
35385 shlibpath_overrides_runpath=yes
35386 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
35387 hardcode_into_libs=yes
35390 hpux9* | hpux10* | hpux11*)
35391 # Give a soname corresponding to the major version so that dld.sl refuses to
35392 # link against other versions.
35399 hardcode_into_libs=yes
35400 dynamic_linker="$host_os dld.so"
35401 shlibpath_var=LD_LIBRARY_PATH
35402 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
35403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35404 soname_spec='${libname}${release}${shared_ext}$major'
35405 if test "X$HPUX_IA64_MODE" = X32; then
35406 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
35408 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
35410 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
35414 hardcode_into_libs=yes
35415 dynamic_linker="$host_os dld.sl"
35416 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
35417 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
35418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35419 soname_spec='${libname}${release}${shared_ext}$major'
35420 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
35421 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
35425 dynamic_linker="$host_os dld.sl"
35426 shlibpath_var=SHLIB_PATH
35427 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
35428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35429 soname_spec='${libname}${release}${shared_ext}$major'
35432 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
35433 postinstall_cmds='chmod 555 $lib'
35434 # or fails outright, so override atomically:
35435 install_override_mode=555
35442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
35443 soname_spec='${libname}${release}${shared_ext}$major'
35444 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
35445 shlibpath_var=LD_LIBRARY_PATH
35446 shlibpath_overrides_runpath=no
35447 hardcode_into_libs=yes
35450 irix5* | irix6* | nonstopux*)
35452 nonstopux*) version_type=nonstopux ;;
35454 if test "$lt_cv_prog_gnu_ld" = yes; then
35462 soname_spec='${libname}${release}${shared_ext}$major'
35463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
35465 irix5* | nonstopux*)
35466 libsuff= shlibsuff=
35469 case $LD in # libtool.m4 will add one of these switches to LD
35470 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
35471 libsuff= shlibsuff= libmagic=32-bit;;
35472 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
35473 libsuff=32 shlibsuff=N32 libmagic=N32;;
35474 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
35475 libsuff=64 shlibsuff=64 libmagic=64-bit;;
35476 *) libsuff= shlibsuff= libmagic=never-match;;
35480 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
35481 shlibpath_overrides_runpath=no
35482 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
35483 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
35484 hardcode_into_libs=yes
35487 # No shared lib support for Linux oldld, aout, or coff.
35488 linux*oldld* | linux*aout* | linux*coff*)
35492 # This must be Linux ELF.
35493 linux* | k*bsd*-gnu | kopensolaris*-gnu)
35497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35498 soname_spec='${libname}${release}${shared_ext}$major'
35499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
35500 shlibpath_var=LD_LIBRARY_PATH
35501 shlibpath_overrides_runpath=no
35503 # Some binutils ld are patched to set DT_RUNPATH
35504 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
35505 $as_echo_n "(cached) " >&6
35507 lt_cv_shlibpath_overrides_runpath=no
35508 save_LDFLAGS=$LDFLAGS
35509 save_libdir=$libdir
35510 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
35511 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
35512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35513 /* end confdefs.h. */
35523 if ac_fn_c_try_link "$LINENO"; then :
35524 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
35525 lt_cv_shlibpath_overrides_runpath=yes
35528 rm -f core conftest.err conftest.$ac_objext \
35529 conftest$ac_exeext conftest.$ac_ext
35530 LDFLAGS=$save_LDFLAGS
35531 libdir=$save_libdir
35535 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
35537 # This implies no fast_install, which is unacceptable.
35538 # Some rework will be needed to allow for fast_install
35539 # before this can be enabled.
35540 hardcode_into_libs=yes
35542 # Add ABI-specific directories to the system library path.
35543 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
35545 # Append ld.so.conf contents to the search path
35546 if test -f /etc/ld.so.conf; then
35547 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' ' '`
35548 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
35552 # We used to test for /lib/ld.so.1 and disable shared libraries on
35553 # powerpc, because MkLinux only supported shared libraries with the
35554 # GNU dynamic linker. Since this was broken with cross compilers,
35555 # most powerpc-linux boxes support dynamic linking these days and
35556 # people can always --disable-shared, the test was removed, and we
35557 # assume the GNU/Linux dynamic linker is in use.
35558 dynamic_linker='GNU/Linux ld.so'
35565 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
35566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
35567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
35568 dynamic_linker='NetBSD (a.out) ld.so'
35570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
35571 soname_spec='${libname}${release}${shared_ext}$major'
35572 dynamic_linker='NetBSD ld.elf_so'
35574 shlibpath_var=LD_LIBRARY_PATH
35575 shlibpath_overrides_runpath=yes
35576 hardcode_into_libs=yes
35581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35582 shlibpath_var=LD_LIBRARY_PATH
35583 shlibpath_overrides_runpath=yes
35590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35591 soname_spec='${libname}${release}${shared_ext}$major'
35592 shlibpath_var=LD_LIBRARY_PATH
35593 shlibpath_overrides_runpath=no
35594 hardcode_into_libs=yes
35595 dynamic_linker='ldqnx.so'
35600 sys_lib_dlsearch_path_spec="/usr/lib"
35602 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
35604 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
35605 *) need_version=no ;;
35607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
35608 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
35609 shlibpath_var=LD_LIBRARY_PATH
35610 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
35612 openbsd2.[89] | openbsd2.[89].*)
35613 shlibpath_overrides_runpath=no
35616 shlibpath_overrides_runpath=yes
35620 shlibpath_overrides_runpath=yes
35625 libname_spec='$name'
35628 library_names_spec='$libname${shared_ext} $libname.a'
35629 dynamic_linker='OS/2 ld.exe'
35630 shlibpath_var=LIBPATH
35633 osf3* | osf4* | osf5*)
35637 soname_spec='${libname}${release}${shared_ext}$major'
35638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35639 shlibpath_var=LD_LIBRARY_PATH
35640 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
35641 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
35652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35653 soname_spec='${libname}${release}${shared_ext}$major'
35654 shlibpath_var=LD_LIBRARY_PATH
35655 shlibpath_overrides_runpath=yes
35656 hardcode_into_libs=yes
35657 # ldd complains unless libraries are executable
35658 postinstall_cmds='chmod +x $lib'
35663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
35664 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
35665 shlibpath_var=LD_LIBRARY_PATH
35666 shlibpath_overrides_runpath=yes
35667 if test "$with_gnu_ld" = yes; then
35675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35676 soname_spec='${libname}${release}${shared_ext}$major'
35677 shlibpath_var=LD_LIBRARY_PATH
35678 case $host_vendor in
35680 shlibpath_overrides_runpath=no
35682 runpath_var=LD_RUN_PATH
35690 shlibpath_overrides_runpath=no
35691 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
35697 if test -d /usr/nec ;then
35699 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
35700 soname_spec='$libname${shared_ext}.$major'
35701 shlibpath_var=LD_LIBRARY_PATH
35705 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
35706 version_type=freebsd-elf
35709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
35710 soname_spec='${libname}${release}${shared_ext}$major'
35711 shlibpath_var=LD_LIBRARY_PATH
35712 shlibpath_overrides_runpath=yes
35713 hardcode_into_libs=yes
35714 if test "$with_gnu_ld" = yes; then
35715 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
35717 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
35720 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
35724 sys_lib_dlsearch_path_spec='/usr/lib'
35728 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
35732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35733 shlibpath_var=LD_LIBRARY_PATH
35734 shlibpath_overrides_runpath=no
35735 hardcode_into_libs=yes
35740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35741 soname_spec='${libname}${release}${shared_ext}$major'
35742 shlibpath_var=LD_LIBRARY_PATH
35749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
35750 $as_echo "$dynamic_linker" >&6; }
35751 test "$dynamic_linker" = no && can_build_shared=no
35753 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
35754 if test "$GCC" = yes; then
35755 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
35758 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
35759 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
35761 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
35762 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
35856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
35857 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
35859 if test -n "$hardcode_libdir_flag_spec" ||
35860 test -n "$runpath_var" ||
35861 test "X$hardcode_automatic" = "Xyes" ; then
35863 # We can hardcode non-existent directories.
35864 if test "$hardcode_direct" != no &&
35865 # If the only mechanism to avoid hardcoding is shlibpath_var, we
35866 # have to relink, otherwise we might link with an installed library
35867 # when we should be linking with a yet-to-be-installed one
35868 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
35869 test "$hardcode_minus_L" != no; then
35870 # Linking always hardcodes the temporary library directory.
35871 hardcode_action=relink
35873 # We can link without hardcoding, and we can hardcode nonexisting dirs.
35874 hardcode_action=immediate
35877 # We cannot hardcode anything, or else we can only hardcode existing
35879 hardcode_action=unsupported
35881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
35882 $as_echo "$hardcode_action" >&6; }
35884 if test "$hardcode_action" = relink ||
35885 test "$inherit_rpath" = yes; then
35886 # Fast installation is not supported
35887 enable_fast_install=no
35888 elif test "$shlibpath_overrides_runpath" = yes ||
35889 test "$enable_shared" = no; then
35890 # Fast installation is not necessary
35891 enable_fast_install=needless
35899 if test "x$enable_dlopen" != xyes; then
35900 enable_dlopen=unknown
35901 enable_dlopen_self=unknown
35902 enable_dlopen_self_static=unknown
35909 lt_cv_dlopen="load_add_on"
35911 lt_cv_dlopen_self=yes
35914 mingw* | pw32* | cegcc*)
35915 lt_cv_dlopen="LoadLibrary"
35920 lt_cv_dlopen="dlopen"
35925 # if libdl is installed we need to link against it
35926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
35927 $as_echo_n "checking for dlopen in -ldl... " >&6; }
35928 if ${ac_cv_lib_dl_dlopen+:} false; then :
35929 $as_echo_n "(cached) " >&6
35931 ac_check_lib_save_LIBS=$LIBS
35933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35934 /* end confdefs.h. */
35936 /* Override any GCC internal prototype to avoid an error.
35937 Use char because int might match the return type of a GCC
35938 builtin and then its argument prototype would still apply. */
35951 if ac_fn_c_try_link "$LINENO"; then :
35952 ac_cv_lib_dl_dlopen=yes
35954 ac_cv_lib_dl_dlopen=no
35956 rm -f core conftest.err conftest.$ac_objext \
35957 conftest$ac_exeext conftest.$ac_ext
35958 LIBS=$ac_check_lib_save_LIBS
35960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
35961 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
35962 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
35963 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
35966 lt_cv_dlopen="dyld"
35968 lt_cv_dlopen_self=yes
35975 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
35976 if test "x$ac_cv_func_shl_load" = xyes; then :
35977 lt_cv_dlopen="shl_load"
35979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
35980 $as_echo_n "checking for shl_load in -ldld... " >&6; }
35981 if ${ac_cv_lib_dld_shl_load+:} false; then :
35982 $as_echo_n "(cached) " >&6
35984 ac_check_lib_save_LIBS=$LIBS
35986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35987 /* end confdefs.h. */
35989 /* Override any GCC internal prototype to avoid an error.
35990 Use char because int might match the return type of a GCC
35991 builtin and then its argument prototype would still apply. */
35999 return shl_load ();
36004 if ac_fn_c_try_link "$LINENO"; then :
36005 ac_cv_lib_dld_shl_load=yes
36007 ac_cv_lib_dld_shl_load=no
36009 rm -f core conftest.err conftest.$ac_objext \
36010 conftest$ac_exeext conftest.$ac_ext
36011 LIBS=$ac_check_lib_save_LIBS
36013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
36014 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
36015 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
36016 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
36018 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
36019 if test "x$ac_cv_func_dlopen" = xyes; then :
36020 lt_cv_dlopen="dlopen"
36022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
36023 $as_echo_n "checking for dlopen in -ldl... " >&6; }
36024 if ${ac_cv_lib_dl_dlopen+:} false; then :
36025 $as_echo_n "(cached) " >&6
36027 ac_check_lib_save_LIBS=$LIBS
36029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36030 /* end confdefs.h. */
36032 /* Override any GCC internal prototype to avoid an error.
36033 Use char because int might match the return type of a GCC
36034 builtin and then its argument prototype would still apply. */
36047 if ac_fn_c_try_link "$LINENO"; then :
36048 ac_cv_lib_dl_dlopen=yes
36050 ac_cv_lib_dl_dlopen=no
36052 rm -f core conftest.err conftest.$ac_objext \
36053 conftest$ac_exeext conftest.$ac_ext
36054 LIBS=$ac_check_lib_save_LIBS
36056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
36057 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
36058 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
36059 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
36061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
36062 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
36063 if ${ac_cv_lib_svld_dlopen+:} false; then :
36064 $as_echo_n "(cached) " >&6
36066 ac_check_lib_save_LIBS=$LIBS
36067 LIBS="-lsvld $LIBS"
36068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36069 /* end confdefs.h. */
36071 /* Override any GCC internal prototype to avoid an error.
36072 Use char because int might match the return type of a GCC
36073 builtin and then its argument prototype would still apply. */
36086 if ac_fn_c_try_link "$LINENO"; then :
36087 ac_cv_lib_svld_dlopen=yes
36089 ac_cv_lib_svld_dlopen=no
36091 rm -f core conftest.err conftest.$ac_objext \
36092 conftest$ac_exeext conftest.$ac_ext
36093 LIBS=$ac_check_lib_save_LIBS
36095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
36096 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
36097 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
36098 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
36100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
36101 $as_echo_n "checking for dld_link in -ldld... " >&6; }
36102 if ${ac_cv_lib_dld_dld_link+:} false; then :
36103 $as_echo_n "(cached) " >&6
36105 ac_check_lib_save_LIBS=$LIBS
36107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36108 /* end confdefs.h. */
36110 /* Override any GCC internal prototype to avoid an error.
36111 Use char because int might match the return type of a GCC
36112 builtin and then its argument prototype would still apply. */
36120 return dld_link ();
36125 if ac_fn_c_try_link "$LINENO"; then :
36126 ac_cv_lib_dld_dld_link=yes
36128 ac_cv_lib_dld_dld_link=no
36130 rm -f core conftest.err conftest.$ac_objext \
36131 conftest$ac_exeext conftest.$ac_ext
36132 LIBS=$ac_check_lib_save_LIBS
36134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
36135 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
36136 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
36137 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
36158 if test "x$lt_cv_dlopen" != xno; then
36164 case $lt_cv_dlopen in
36166 save_CPPFLAGS="$CPPFLAGS"
36167 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
36169 save_LDFLAGS="$LDFLAGS"
36170 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
36173 LIBS="$lt_cv_dlopen_libs $LIBS"
36175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
36176 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
36177 if ${lt_cv_dlopen_self+:} false; then :
36178 $as_echo_n "(cached) " >&6
36180 if test "$cross_compiling" = yes; then :
36181 lt_cv_dlopen_self=cross
36183 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
36184 lt_status=$lt_dlunknown
36185 cat > conftest.$ac_ext <<_LT_EOF
36186 #line $LINENO "configure"
36187 #include "confdefs.h"
36196 # define LT_DLGLOBAL RTLD_GLOBAL
36199 # define LT_DLGLOBAL DL_GLOBAL
36201 # define LT_DLGLOBAL 0
36205 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
36206 find out it does not work in some platform. */
36207 #ifndef LT_DLLAZY_OR_NOW
36209 # define LT_DLLAZY_OR_NOW RTLD_LAZY
36212 # define LT_DLLAZY_OR_NOW DL_LAZY
36215 # define LT_DLLAZY_OR_NOW RTLD_NOW
36218 # define LT_DLLAZY_OR_NOW DL_NOW
36220 # define LT_DLLAZY_OR_NOW 0
36227 /* When -fvisbility=hidden is used, assume the code has been annotated
36228 correspondingly for the symbols needed. */
36229 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
36230 int fnord () __attribute__((visibility("default")));
36233 int fnord () { return 42; }
36236 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
36237 int status = $lt_dlunknown;
36241 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
36244 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
36245 else puts (dlerror ());
36247 /* dlclose (self); */
36255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
36256 (eval $ac_link) 2>&5
36258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36259 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
36260 (./conftest; exit; ) >&5 2>/dev/null
36262 case x$lt_status in
36263 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
36264 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
36265 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
36268 # compilation failed
36269 lt_cv_dlopen_self=no
36276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
36277 $as_echo "$lt_cv_dlopen_self" >&6; }
36279 if test "x$lt_cv_dlopen_self" = xyes; then
36280 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
36281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
36282 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
36283 if ${lt_cv_dlopen_self_static+:} false; then :
36284 $as_echo_n "(cached) " >&6
36286 if test "$cross_compiling" = yes; then :
36287 lt_cv_dlopen_self_static=cross
36289 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
36290 lt_status=$lt_dlunknown
36291 cat > conftest.$ac_ext <<_LT_EOF
36292 #line $LINENO "configure"
36293 #include "confdefs.h"
36302 # define LT_DLGLOBAL RTLD_GLOBAL
36305 # define LT_DLGLOBAL DL_GLOBAL
36307 # define LT_DLGLOBAL 0
36311 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
36312 find out it does not work in some platform. */
36313 #ifndef LT_DLLAZY_OR_NOW
36315 # define LT_DLLAZY_OR_NOW RTLD_LAZY
36318 # define LT_DLLAZY_OR_NOW DL_LAZY
36321 # define LT_DLLAZY_OR_NOW RTLD_NOW
36324 # define LT_DLLAZY_OR_NOW DL_NOW
36326 # define LT_DLLAZY_OR_NOW 0
36333 /* When -fvisbility=hidden is used, assume the code has been annotated
36334 correspondingly for the symbols needed. */
36335 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
36336 int fnord () __attribute__((visibility("default")));
36339 int fnord () { return 42; }
36342 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
36343 int status = $lt_dlunknown;
36347 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
36350 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
36351 else puts (dlerror ());
36353 /* dlclose (self); */
36361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
36362 (eval $ac_link) 2>&5
36364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36365 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
36366 (./conftest; exit; ) >&5 2>/dev/null
36368 case x$lt_status in
36369 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
36370 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
36371 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
36374 # compilation failed
36375 lt_cv_dlopen_self_static=no
36382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
36383 $as_echo "$lt_cv_dlopen_self_static" >&6; }
36386 CPPFLAGS="$save_CPPFLAGS"
36387 LDFLAGS="$save_LDFLAGS"
36392 case $lt_cv_dlopen_self in
36393 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
36394 *) enable_dlopen_self=unknown ;;
36397 case $lt_cv_dlopen_self_static in
36398 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
36399 *) enable_dlopen_self_static=unknown ;;
36421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
36422 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
36423 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
36424 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
36425 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
36426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36427 $as_echo "yes" >&6; }
36429 # FIXME - insert some real tests, host_os isn't really good enough
36432 if test -n "$STRIP" ; then
36433 striplib="$STRIP -x"
36434 old_striplib="$STRIP -S"
36435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36436 $as_echo "yes" >&6; }
36438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36439 $as_echo "no" >&6; }
36443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36444 $as_echo "no" >&6; }
36460 # Report which library types will actually be built
36461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
36462 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
36463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
36464 $as_echo "$can_build_shared" >&6; }
36466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
36467 $as_echo_n "checking whether to build shared libraries... " >&6; }
36468 test "$can_build_shared" = "no" && enable_shared=no
36470 # On AIX, shared libraries and static libraries use the same namespace, and
36471 # are all built from PIC.
36474 test "$enable_shared" = yes && enable_static=no
36475 if test -n "$RANLIB"; then
36476 archive_cmds="$archive_cmds~\$RANLIB \$lib"
36477 postinstall_cmds='$RANLIB $lib'
36482 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
36483 test "$enable_shared" = yes && enable_static=no
36487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
36488 $as_echo "$enable_shared" >&6; }
36490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
36491 $as_echo_n "checking whether to build static libraries... " >&6; }
36492 # Make sure either enable_shared or enable_static is yes.
36493 test "$enable_shared" = yes || enable_static=yes
36494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
36495 $as_echo "$enable_static" >&6; }
36502 ac_cpp='$CPP $CPPFLAGS'
36503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36521 ac_config_commands="$ac_config_commands libtool"
36526 # Only expand once:
36531 # Check whether --enable-static-binary was given.
36532 if test "${enable_static_binary+set}" = set; then :
36533 enableval=$enable_static_binary;
36534 case "$enableval" in
36536 AMANDA_STATIC_LDFLAGS=-static
36537 if test x"$enable_static" = x"no"; then
36538 as_fn_error $? "*** --enable-static-binary is incompatible with --disable-static" "$LINENO" 5
36542 AMANDA_STATIC_LDFLAGS=
36554 ac_header_dirent=no
36555 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
36556 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
36557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
36558 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
36559 if eval \${$as_ac_Header+:} false; then :
36560 $as_echo_n "(cached) " >&6
36562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36563 /* end confdefs.h. */
36564 #include <sys/types.h>
36576 if ac_fn_c_try_compile "$LINENO"; then :
36577 eval "$as_ac_Header=yes"
36579 eval "$as_ac_Header=no"
36581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36583 eval ac_res=\$$as_ac_Header
36584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36585 $as_echo "$ac_res" >&6; }
36586 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36587 cat >>confdefs.h <<_ACEOF
36588 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
36591 ac_header_dirent=$ac_hdr; break
36595 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
36596 if test $ac_header_dirent = dirent.h; then
36597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
36598 $as_echo_n "checking for library containing opendir... " >&6; }
36599 if ${ac_cv_search_opendir+:} false; then :
36600 $as_echo_n "(cached) " >&6
36602 ac_func_search_save_LIBS=$LIBS
36603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36604 /* end confdefs.h. */
36606 /* Override any GCC internal prototype to avoid an error.
36607 Use char because int might match the return type of a GCC
36608 builtin and then its argument prototype would still apply. */
36621 for ac_lib in '' dir; do
36622 if test -z "$ac_lib"; then
36623 ac_res="none required"
36626 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
36628 if ac_fn_c_try_link "$LINENO"; then :
36629 ac_cv_search_opendir=$ac_res
36631 rm -f core conftest.err conftest.$ac_objext \
36633 if ${ac_cv_search_opendir+:} false; then :
36637 if ${ac_cv_search_opendir+:} false; then :
36640 ac_cv_search_opendir=no
36642 rm conftest.$ac_ext
36643 LIBS=$ac_func_search_save_LIBS
36645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
36646 $as_echo "$ac_cv_search_opendir" >&6; }
36647 ac_res=$ac_cv_search_opendir
36648 if test "$ac_res" != no; then :
36649 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
36655 $as_echo_n "checking for library containing opendir... " >&6; }
36656 if ${ac_cv_search_opendir+:} false; then :
36657 $as_echo_n "(cached) " >&6
36659 ac_func_search_save_LIBS=$LIBS
36660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36661 /* end confdefs.h. */
36663 /* Override any GCC internal prototype to avoid an error.
36664 Use char because int might match the return type of a GCC
36665 builtin and then its argument prototype would still apply. */
36678 for ac_lib in '' x; do
36679 if test -z "$ac_lib"; then
36680 ac_res="none required"
36683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
36685 if ac_fn_c_try_link "$LINENO"; then :
36686 ac_cv_search_opendir=$ac_res
36688 rm -f core conftest.err conftest.$ac_objext \
36690 if ${ac_cv_search_opendir+:} false; then :
36694 if ${ac_cv_search_opendir+:} false; then :
36697 ac_cv_search_opendir=no
36699 rm conftest.$ac_ext
36700 LIBS=$ac_func_search_save_LIBS
36702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
36703 $as_echo "$ac_cv_search_opendir" >&6; }
36704 ac_res=$ac_cv_search_opendir
36705 if test "$ac_res" != no; then :
36706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
36713 $as_echo_n "checking for ANSI C header files... " >&6; }
36714 if ${ac_cv_header_stdc+:} false; then :
36715 $as_echo_n "(cached) " >&6
36717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36718 /* end confdefs.h. */
36719 #include <stdlib.h>
36720 #include <stdarg.h>
36721 #include <string.h>
36732 if ac_fn_c_try_compile "$LINENO"; then :
36733 ac_cv_header_stdc=yes
36735 ac_cv_header_stdc=no
36737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36739 if test $ac_cv_header_stdc = yes; then
36740 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
36741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36742 /* end confdefs.h. */
36743 #include <string.h>
36746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36747 $EGREP "memchr" >/dev/null 2>&1; then :
36750 ac_cv_header_stdc=no
36756 if test $ac_cv_header_stdc = yes; then
36757 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
36758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36759 /* end confdefs.h. */
36760 #include <stdlib.h>
36763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36764 $EGREP "free" >/dev/null 2>&1; then :
36767 ac_cv_header_stdc=no
36773 if test $ac_cv_header_stdc = yes; then
36774 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
36775 if test "$cross_compiling" = yes; then :
36778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36779 /* end confdefs.h. */
36781 #include <stdlib.h>
36782 #if ((' ' & 0x0FF) == 0x020)
36783 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
36784 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
36786 # define ISLOWER(c) \
36787 (('a' <= (c) && (c) <= 'i') \
36788 || ('j' <= (c) && (c) <= 'r') \
36789 || ('s' <= (c) && (c) <= 'z'))
36790 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
36793 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
36798 for (i = 0; i < 256; i++)
36799 if (XOR (islower (i), ISLOWER (i))
36800 || toupper (i) != TOUPPER (i))
36805 if ac_fn_c_try_run "$LINENO"; then :
36808 ac_cv_header_stdc=no
36810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36811 conftest.$ac_objext conftest.beam conftest.$ac_ext
36816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
36817 $as_echo "$ac_cv_header_stdc" >&6; }
36818 if test $ac_cv_header_stdc = yes; then
36820 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
36824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
36825 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
36826 if ${ac_cv_header_time+:} false; then :
36827 $as_echo_n "(cached) " >&6
36829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36830 /* end confdefs.h. */
36831 #include <sys/types.h>
36832 #include <sys/time.h>
36838 if ((struct tm *) 0)
36844 if ac_fn_c_try_compile "$LINENO"; then :
36845 ac_cv_header_time=yes
36847 ac_cv_header_time=no
36849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
36852 $as_echo "$ac_cv_header_time" >&6; }
36853 if test $ac_cv_header_time = yes; then
36855 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
36859 for ac_header in grp.h \
36886 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36887 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
36888 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36889 cat >>confdefs.h <<_ACEOF
36890 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36898 $as_echo "#define HAVE_AMANDA_H 1" >>confdefs.h
36901 $as_echo "#define HAVE_UTIL_H 1" >>confdefs.h
36905 $as_echo "#define USE_GETTEXT 1" >>confdefs.h
36911 # The cast to long int works around a bug in the HP C Compiler
36912 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36913 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36914 # This bug is HP SR number 8606223364.
36915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
36916 $as_echo_n "checking size of int... " >&6; }
36917 if ${ac_cv_sizeof_int+:} false; then :
36918 $as_echo_n "(cached) " >&6
36920 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
36923 if test "$ac_cv_type_int" = yes; then
36924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36926 as_fn_error 77 "cannot compute sizeof (int)
36927 See \`config.log' for more details" "$LINENO" 5; }
36934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
36935 $as_echo "$ac_cv_sizeof_int" >&6; }
36939 cat >>confdefs.h <<_ACEOF
36940 #define SIZEOF_INT $ac_cv_sizeof_int
36944 # The cast to long int works around a bug in the HP C Compiler
36945 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36946 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36947 # This bug is HP SR number 8606223364.
36948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
36949 $as_echo_n "checking size of long... " >&6; }
36950 if ${ac_cv_sizeof_long+:} false; then :
36951 $as_echo_n "(cached) " >&6
36953 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
36956 if test "$ac_cv_type_long" = yes; then
36957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36959 as_fn_error 77 "cannot compute sizeof (long)
36960 See \`config.log' for more details" "$LINENO" 5; }
36962 ac_cv_sizeof_long=0
36967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
36968 $as_echo "$ac_cv_sizeof_long" >&6; }
36972 cat >>confdefs.h <<_ACEOF
36973 #define SIZEOF_LONG $ac_cv_sizeof_long
36977 # The cast to long int works around a bug in the HP C Compiler
36978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36980 # This bug is HP SR number 8606223364.
36981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
36982 $as_echo_n "checking size of long long... " >&6; }
36983 if ${ac_cv_sizeof_long_long+:} false; then :
36984 $as_echo_n "(cached) " >&6
36986 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
36989 if test "$ac_cv_type_long_long" = yes; then
36990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36992 as_fn_error 77 "cannot compute sizeof (long long)
36993 See \`config.log' for more details" "$LINENO" 5; }
36995 ac_cv_sizeof_long_long=0
37000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
37001 $as_echo "$ac_cv_sizeof_long_long" >&6; }
37005 cat >>confdefs.h <<_ACEOF
37006 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
37010 # The cast to long int works around a bug in the HP C Compiler
37011 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37012 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37013 # This bug is HP SR number 8606223364.
37014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
37015 $as_echo_n "checking size of intmax_t... " >&6; }
37016 if ${ac_cv_sizeof_intmax_t+:} false; then :
37017 $as_echo_n "(cached) " >&6
37019 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then :
37022 if test "$ac_cv_type_intmax_t" = yes; then
37023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37025 as_fn_error 77 "cannot compute sizeof (intmax_t)
37026 See \`config.log' for more details" "$LINENO" 5; }
37028 ac_cv_sizeof_intmax_t=0
37033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
37034 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
37038 cat >>confdefs.h <<_ACEOF
37039 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
37043 # The cast to long int works around a bug in the HP C Compiler
37044 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37045 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37046 # This bug is HP SR number 8606223364.
37047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
37048 $as_echo_n "checking size of off_t... " >&6; }
37049 if ${ac_cv_sizeof_off_t+:} false; then :
37050 $as_echo_n "(cached) " >&6
37052 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
37055 if test "$ac_cv_type_off_t" = yes; then
37056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37058 as_fn_error 77 "cannot compute sizeof (off_t)
37059 See \`config.log' for more details" "$LINENO" 5; }
37061 ac_cv_sizeof_off_t=0
37066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
37067 $as_echo "$ac_cv_sizeof_off_t" >&6; }
37071 cat >>confdefs.h <<_ACEOF
37072 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
37076 # The cast to long int works around a bug in the HP C Compiler
37077 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37078 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37079 # This bug is HP SR number 8606223364.
37080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
37081 $as_echo_n "checking size of size_t... " >&6; }
37082 if ${ac_cv_sizeof_size_t+:} false; then :
37083 $as_echo_n "(cached) " >&6
37085 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
37088 if test "$ac_cv_type_size_t" = yes; then
37089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37091 as_fn_error 77 "cannot compute sizeof (size_t)
37092 See \`config.log' for more details" "$LINENO" 5; }
37094 ac_cv_sizeof_size_t=0
37099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
37100 $as_echo "$ac_cv_sizeof_size_t" >&6; }
37104 cat >>confdefs.h <<_ACEOF
37105 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
37109 # The cast to long int works around a bug in the HP C Compiler
37110 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37111 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37112 # This bug is HP SR number 8606223364.
37113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
37114 $as_echo_n "checking size of ssize_t... " >&6; }
37115 if ${ac_cv_sizeof_ssize_t+:} false; then :
37116 $as_echo_n "(cached) " >&6
37118 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
37121 if test "$ac_cv_type_ssize_t" = yes; then
37122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37124 as_fn_error 77 "cannot compute sizeof (ssize_t)
37125 See \`config.log' for more details" "$LINENO" 5; }
37127 ac_cv_sizeof_ssize_t=0
37132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
37133 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
37137 cat >>confdefs.h <<_ACEOF
37138 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
37142 # The cast to long int works around a bug in the HP C Compiler
37143 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37144 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37145 # This bug is HP SR number 8606223364.
37146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
37147 $as_echo_n "checking size of time_t... " >&6; }
37148 if ${ac_cv_sizeof_time_t+:} false; then :
37149 $as_echo_n "(cached) " >&6
37151 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
37154 if test "$ac_cv_type_time_t" = yes; then
37155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37157 as_fn_error 77 "cannot compute sizeof (time_t)
37158 See \`config.log' for more details" "$LINENO" 5; }
37160 ac_cv_sizeof_time_t=0
37165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
37166 $as_echo "$ac_cv_sizeof_time_t" >&6; }
37170 cat >>confdefs.h <<_ACEOF
37171 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
37175 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
37176 if test "x$ac_cv_type_off_t" = xyes; then :
37180 cat >>confdefs.h <<_ACEOF
37181 #define off_t long int
37186 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
37187 if test "x$ac_cv_type_pid_t" = xyes; then :
37191 cat >>confdefs.h <<_ACEOF
37197 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
37198 if test "x$ac_cv_type_size_t" = xyes; then :
37202 cat >>confdefs.h <<_ACEOF
37203 #define size_t unsigned int
37208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
37209 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
37210 if ${ac_cv_type_uid_t+:} false; then :
37211 $as_echo_n "(cached) " >&6
37213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37214 /* end confdefs.h. */
37215 #include <sys/types.h>
37218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37219 $EGREP "uid_t" >/dev/null 2>&1; then :
37220 ac_cv_type_uid_t=yes
37222 ac_cv_type_uid_t=no
37227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
37228 $as_echo "$ac_cv_type_uid_t" >&6; }
37229 if test $ac_cv_type_uid_t = no; then
37231 $as_echo "#define uid_t int" >>confdefs.h
37234 $as_echo "#define gid_t int" >>confdefs.h
37238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
37239 $as_echo_n "checking return type of signal handlers... " >&6; }
37240 if ${ac_cv_type_signal+:} false; then :
37241 $as_echo_n "(cached) " >&6
37243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37244 /* end confdefs.h. */
37245 #include <sys/types.h>
37246 #include <signal.h>
37251 return *(signal (0, 0)) (0) == 1;
37256 if ac_fn_c_try_compile "$LINENO"; then :
37257 ac_cv_type_signal=int
37259 ac_cv_type_signal=void
37261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
37264 $as_echo "$ac_cv_type_signal" >&6; }
37266 cat >>confdefs.h <<_ACEOF
37267 #define RETSIGTYPE $ac_cv_type_signal
37271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
37272 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
37273 if ${ac_cv_struct_tm+:} false; then :
37274 $as_echo_n "(cached) " >&6
37276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37277 /* end confdefs.h. */
37278 #include <sys/types.h>
37285 int *p = &tm.tm_sec;
37291 if ac_fn_c_try_compile "$LINENO"; then :
37292 ac_cv_struct_tm=time.h
37294 ac_cv_struct_tm=sys/time.h
37296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
37299 $as_echo "$ac_cv_struct_tm" >&6; }
37300 if test $ac_cv_struct_tm = sys/time.h; then
37302 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
37307 ## lifted from config/gnulib/socklen.m4
37308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
37309 $as_echo_n "checking for socklen_t equivalent... " >&6; }
37310 if ${gl_cv_socklen_t_equiv+:} false; then :
37311 $as_echo_n "(cached) " >&6
37313 # Systems have either "struct sockaddr *" or
37314 # "void *" as the second argument to getpeername
37315 gl_cv_socklen_t_equiv=
37316 for arg2 in "struct sockaddr" void; do
37317 for t in socklen_t int size_t "unsigned int" "long int" "unsigned long int"; do
37318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37319 /* end confdefs.h. */
37320 #include <sys/types.h>
37321 #include <sys/socket.h>
37323 int getpeername (int, $arg2 *, $t *);
37328 getpeername (0, 0, &len);
37333 if ac_fn_c_try_compile "$LINENO"; then :
37334 gl_cv_socklen_t_equiv="$t"
37336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37337 test "$gl_cv_socklen_t_equiv" != "" && break
37339 test "$gl_cv_socklen_t_equiv" != "" && break
37344 ## end lifting from config/gnulib/socklen.m4
37345 # fallback if the check fails
37346 if test "$gl_cv_socklen_t_equiv" = ""; then
37347 gl_cv_socklen_t_equiv=socklen_t
37349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
37350 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
37353 cat >>confdefs.h <<_ACEOF
37354 #define socklen_t_equiv $gl_cv_socklen_t_equiv
37360 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
37361 #ifdef HAVE_SYS_TYPES_H
37362 #include <sys/types.h>
37364 #ifdef STDC_HEADERS
37365 #include <stdlib.h>
37366 #include <stddef.h>
37368 #include <sys/socket.h>
37372 if test "x$ac_cv_type_sa_family_t" = xyes; then :
37377 $as_echo "#define sa_family_t unsigned short" >>confdefs.h
37385 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
37386 #ifdef HAVE_SYS_TYPES_H
37387 #include <sys/types.h>
37389 #ifdef STDC_HEADERS
37390 #include <stdlib.h>
37391 #include <stddef.h>
37393 #include <netinet/in.h>
37397 if test "x$ac_cv_type_in_port_t" = xyes; then :
37402 $as_echo "#define in_port_t unsigned short" >>confdefs.h
37410 for ac_header in sys/wait.h wait.h
37412 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37413 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
37414 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37415 cat >>confdefs.h <<_ACEOF
37416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait uses union wait" >&5
37424 $as_echo_n "checking whether wait uses union wait... " >&6; }
37425 if ${cf_cv_arg_union_wait+:} false; then :
37426 $as_echo_n "(cached) " >&6
37429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37430 /* end confdefs.h. */
37432 #include <sys/types.h>
37434 #if HAVE_SYS_WAIT_H
37435 # include <sys/wait.h>
37443 pid_t wait(union wait *);
37450 union wait x; int i;
37451 wait(&x); i = WIFEXITED(x)
37457 if ac_fn_c_try_compile "$LINENO"; then :
37458 cf_cv_arg_union_wait=yes
37460 cf_cv_arg_union_wait=no
37462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_arg_union_wait" >&5
37465 $as_echo "$cf_cv_arg_union_wait" >&6; }
37466 if test $cf_cv_arg_union_wait = yes; then
37468 $as_echo "#define WAIT_USES_UNION 1" >>confdefs.h
37474 for ac_header in sys/wait.h wait.h
37476 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37477 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
37478 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37479 cat >>confdefs.h <<_ACEOF
37480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait uses int" >&5
37488 $as_echo_n "checking whether wait uses int... " >&6; }
37489 if ${cf_cv_arg_int+:} false; then :
37490 $as_echo_n "(cached) " >&6
37493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37494 /* end confdefs.h. */
37496 #include <sys/types.h>
37498 #if HAVE_SYS_WAIT_H
37499 # include <sys/wait.h>
37515 wait(&x); i = WIFEXITED(x)
37521 if ac_fn_c_try_compile "$LINENO"; then :
37526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_arg_int" >&5
37529 $as_echo "$cf_cv_arg_int" >&6; }
37530 if test $cf_cv_arg_int = yes; then
37532 $as_echo "#define WAIT_USES_INT 1" >>confdefs.h
37540 # cur_colr is on some HP's
37541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcur_colr" >&5
37542 $as_echo_n "checking for main in -lcur_colr... " >&6; }
37543 if ${ac_cv_lib_cur_colr_main+:} false; then :
37544 $as_echo_n "(cached) " >&6
37546 ac_check_lib_save_LIBS=$LIBS
37547 LIBS="-lcur_colr $LIBS"
37548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37549 /* end confdefs.h. */
37560 if ac_fn_c_try_link "$LINENO"; then :
37561 ac_cv_lib_cur_colr_main=yes
37563 ac_cv_lib_cur_colr_main=no
37565 rm -f core conftest.err conftest.$ac_objext \
37566 conftest$ac_exeext conftest.$ac_ext
37567 LIBS=$ac_check_lib_save_LIBS
37569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_main" >&5
37570 $as_echo "$ac_cv_lib_cur_colr_main" >&6; }
37571 if test "x$ac_cv_lib_cur_colr_main" = xyes; then :
37572 cat >>confdefs.h <<_ACEOF
37573 #define HAVE_LIBCUR_COLR 1
37576 LIBS="-lcur_colr $LIBS"
37580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lintl" >&5
37581 $as_echo_n "checking for main in -lintl... " >&6; }
37582 if ${ac_cv_lib_intl_main+:} false; then :
37583 $as_echo_n "(cached) " >&6
37585 ac_check_lib_save_LIBS=$LIBS
37586 LIBS="-lintl $LIBS"
37587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37588 /* end confdefs.h. */
37599 if ac_fn_c_try_link "$LINENO"; then :
37600 ac_cv_lib_intl_main=yes
37602 ac_cv_lib_intl_main=no
37604 rm -f core conftest.err conftest.$ac_objext \
37605 conftest$ac_exeext conftest.$ac_ext
37606 LIBS=$ac_check_lib_save_LIBS
37608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_main" >&5
37609 $as_echo "$ac_cv_lib_intl_main" >&6; }
37610 if test "x$ac_cv_lib_intl_main" = xyes; then :
37611 cat >>confdefs.h <<_ACEOF
37612 #define HAVE_LIBINTL 1
37615 LIBS="-lintl $LIBS"
37620 # Make sure we don't use -lnsl and -lsun on Irix systems.
37623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
37624 $as_echo_n "checking for main in -lsocket... " >&6; }
37625 if ${ac_cv_lib_socket_main+:} false; then :
37626 $as_echo_n "(cached) " >&6
37628 ac_check_lib_save_LIBS=$LIBS
37629 LIBS="-lsocket $LIBS"
37630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37631 /* end confdefs.h. */
37642 if ac_fn_c_try_link "$LINENO"; then :
37643 ac_cv_lib_socket_main=yes
37645 ac_cv_lib_socket_main=no
37647 rm -f core conftest.err conftest.$ac_objext \
37648 conftest$ac_exeext conftest.$ac_ext
37649 LIBS=$ac_check_lib_save_LIBS
37651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
37652 $as_echo "$ac_cv_lib_socket_main" >&6; }
37653 if test "x$ac_cv_lib_socket_main" = xyes; then :
37654 cat >>confdefs.h <<_ACEOF
37655 #define HAVE_LIBSOCKET 1
37658 LIBS="-lsocket $LIBS"
37664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5
37665 $as_echo_n "checking for main in -lresolv... " >&6; }
37666 if ${ac_cv_lib_resolv_main+:} false; then :
37667 $as_echo_n "(cached) " >&6
37669 ac_check_lib_save_LIBS=$LIBS
37670 LIBS="-lresolv $LIBS"
37671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37672 /* end confdefs.h. */
37683 if ac_fn_c_try_link "$LINENO"; then :
37684 ac_cv_lib_resolv_main=yes
37686 ac_cv_lib_resolv_main=no
37688 rm -f core conftest.err conftest.$ac_objext \
37689 conftest$ac_exeext conftest.$ac_ext
37690 LIBS=$ac_check_lib_save_LIBS
37692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5
37693 $as_echo "$ac_cv_lib_resolv_main" >&6; }
37694 if test "x$ac_cv_lib_resolv_main" = xyes; then :
37695 cat >>confdefs.h <<_ACEOF
37696 #define HAVE_LIBRESOLV 1
37699 LIBS="-lresolv $LIBS"
37703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
37704 $as_echo_n "checking for main in -lnsl... " >&6; }
37705 if ${ac_cv_lib_nsl_main+:} false; then :
37706 $as_echo_n "(cached) " >&6
37708 ac_check_lib_save_LIBS=$LIBS
37710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37711 /* end confdefs.h. */
37722 if ac_fn_c_try_link "$LINENO"; then :
37723 ac_cv_lib_nsl_main=yes
37725 ac_cv_lib_nsl_main=no
37727 rm -f core conftest.err conftest.$ac_objext \
37728 conftest$ac_exeext conftest.$ac_ext
37729 LIBS=$ac_check_lib_save_LIBS
37731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
37732 $as_echo "$ac_cv_lib_nsl_main" >&6; }
37733 if test "x$ac_cv_lib_nsl_main" = xyes; then :
37734 cat >>confdefs.h <<_ACEOF
37735 #define HAVE_LIBNSL 1
37742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
37743 $as_echo_n "checking for main in -lsocket... " >&6; }
37744 if ${ac_cv_lib_socket_main+:} false; then :
37745 $as_echo_n "(cached) " >&6
37747 ac_check_lib_save_LIBS=$LIBS
37748 LIBS="-lsocket $LIBS"
37749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37750 /* end confdefs.h. */
37761 if ac_fn_c_try_link "$LINENO"; then :
37762 ac_cv_lib_socket_main=yes
37764 ac_cv_lib_socket_main=no
37766 rm -f core conftest.err conftest.$ac_objext \
37767 conftest$ac_exeext conftest.$ac_ext
37768 LIBS=$ac_check_lib_save_LIBS
37770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
37771 $as_echo "$ac_cv_lib_socket_main" >&6; }
37772 if test "x$ac_cv_lib_socket_main" = xyes; then :
37773 cat >>confdefs.h <<_ACEOF
37774 #define HAVE_LIBSOCKET 1
37777 LIBS="-lsocket $LIBS"
37781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsun" >&5
37782 $as_echo_n "checking for main in -lsun... " >&6; }
37783 if ${ac_cv_lib_sun_main+:} false; then :
37784 $as_echo_n "(cached) " >&6
37786 ac_check_lib_save_LIBS=$LIBS
37788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37789 /* end confdefs.h. */
37800 if ac_fn_c_try_link "$LINENO"; then :
37801 ac_cv_lib_sun_main=yes
37803 ac_cv_lib_sun_main=no
37805 rm -f core conftest.err conftest.$ac_objext \
37806 conftest$ac_exeext conftest.$ac_ext
37807 LIBS=$ac_check_lib_save_LIBS
37809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_main" >&5
37810 $as_echo "$ac_cv_lib_sun_main" >&6; }
37811 if test "x$ac_cv_lib_sun_main" = xyes; then :
37812 cat >>confdefs.h <<_ACEOF
37813 #define HAVE_LIBSUN 1
37830 # if any of the precious variables are set, disable the pkg-config run.
37831 # Further, if any is specified, all must be specified.
37833 test x"$GLIB_CFLAGS" = x"" || explicit_glib=yes
37834 test x"$GLIB_LIBS" = x"" || explicit_glib=yes
37835 test x"$GLIB_GENMARSHAL" = x"" || explicit_glib=yes
37836 test x"$GOBJECT_QUERY" = x"" || explicit_glib=yes
37837 test x"$GLIB_MKENUMS" = x"" || explicit_glib=yes
37839 if test x"$explicit_glib" = x"no"; then
37840 # search for pkg-config, which the glib configuration uses, adding a few
37841 # system-specific search paths.
37842 # Extract the first word of "pkg-config", so it can be a program name with args.
37843 set dummy pkg-config; ac_word=$2
37844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37845 $as_echo_n "checking for $ac_word... " >&6; }
37846 if ${ac_cv_path_PKG_CONFIG+:} false; then :
37847 $as_echo_n "(cached) " >&6
37849 case $PKG_CONFIG in
37851 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37855 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
37856 for as_dir in $as_dummy
37859 test -z "$as_dir" && as_dir=.
37860 for ac_exec_ext in '' $ac_executable_extensions; do
37861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37862 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37873 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37874 if test -n "$PKG_CONFIG"; then
37875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
37876 $as_echo "$PKG_CONFIG" >&6; }
37878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37879 $as_echo "no" >&6; }
37885 sparc-sun-solaris2.8) # Solaris 8
37886 # give the linker a runtime search path; pkg-config doesn't supply this.
37887 # Users could also specify this with LD_LIBRARY_PATH to both ./configure
37888 # and make. Adding this support here makes straight './configure; make'
37889 # "just work" on Solaris 8
37890 if test -n "$PKG_CONFIG"; then
37891 glib_R_flag=`$PKG_CONFIG glib-2.0 --libs-only-L 2>/dev/null | sed -e 's/-L/-R/g'`
37892 LDFLAGS="$LDFLAGS $glib_R_flag"
37897 # Check whether --enable-glibtest was given.
37898 if test "${enable_glibtest+set}" = set; then :
37899 enableval=$enable_glibtest;
37901 enable_glibtest=yes
37905 pkg_config_args=glib-2.0
37906 for module in . gmodule gobject gthread
37910 pkg_config_args="$pkg_config_args gmodule-2.0"
37913 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
37916 pkg_config_args="$pkg_config_args gobject-2.0"
37919 pkg_config_args="$pkg_config_args gthread-2.0"
37922 pkg_config_args="$pkg_config_args $module-2.0"
37933 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
37934 if test -n "$ac_tool_prefix"; then
37935 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
37936 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
37937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37938 $as_echo_n "checking for $ac_word... " >&6; }
37939 if ${ac_cv_path_PKG_CONFIG+:} false; then :
37940 $as_echo_n "(cached) " >&6
37942 case $PKG_CONFIG in
37944 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37948 for as_dir in $PATH
37951 test -z "$as_dir" && as_dir=.
37952 for ac_exec_ext in '' $ac_executable_extensions; do
37953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37954 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37965 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37966 if test -n "$PKG_CONFIG"; then
37967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
37968 $as_echo "$PKG_CONFIG" >&6; }
37970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37971 $as_echo "no" >&6; }
37976 if test -z "$ac_cv_path_PKG_CONFIG"; then
37977 ac_pt_PKG_CONFIG=$PKG_CONFIG
37978 # Extract the first word of "pkg-config", so it can be a program name with args.
37979 set dummy pkg-config; ac_word=$2
37980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37981 $as_echo_n "checking for $ac_word... " >&6; }
37982 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
37983 $as_echo_n "(cached) " >&6
37985 case $ac_pt_PKG_CONFIG in
37987 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
37990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37991 for as_dir in $PATH
37994 test -z "$as_dir" && as_dir=.
37995 for ac_exec_ext in '' $ac_executable_extensions; do
37996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37997 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38008 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
38009 if test -n "$ac_pt_PKG_CONFIG"; then
38010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
38011 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
38013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38014 $as_echo "no" >&6; }
38017 if test "x$ac_pt_PKG_CONFIG" = x; then
38020 case $cross_compiling:$ac_tool_warned in
38022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38024 ac_tool_warned=yes ;;
38026 PKG_CONFIG=$ac_pt_PKG_CONFIG
38029 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
38033 if test -n "$PKG_CONFIG"; then
38034 _pkg_min_version=0.7
38035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
38036 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
38037 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
38038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38039 $as_echo "yes" >&6; }
38041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38042 $as_echo "no" >&6; }
38049 if test "x$PKG_CONFIG" = x ; then
38054 min_glib_version=2.2.0
38055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
38056 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
38058 if test x$PKG_CONFIG != xno ; then
38059 ## don't try to run the test against uninstalled libtool libs
38060 if $PKG_CONFIG --uninstalled $pkg_config_args; then
38061 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
38065 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
38072 if test x"$no_glib" = x ; then
38073 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
38074 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
38075 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
38077 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
38078 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
38079 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
38080 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
38081 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
38082 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
38083 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
38084 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
38085 if test "x$enable_glibtest" = "xyes" ; then
38086 ac_save_CFLAGS="$CFLAGS"
38087 ac_save_LIBS="$LIBS"
38088 CFLAGS="$CFLAGS $GLIB_CFLAGS"
38089 LIBS="$GLIB_LIBS $LIBS"
38090 rm -f conf.glibtest
38091 if test "$cross_compiling" = yes; then :
38092 echo $ac_n "cross compiling; assumed OK... $ac_c"
38094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38095 /* end confdefs.h. */
38099 #include <stdlib.h>
38104 unsigned int major, minor, micro;
38107 fclose (fopen ("conf.glibtest", "w"));
38109 /* HP/UX 9 (%@#!) writes to sscanf strings */
38110 tmp_version = g_strdup("$min_glib_version");
38111 if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) {
38112 printf("%s, bad version string\n", "$min_glib_version");
38116 if ((glib_major_version != $glib_config_major_version) ||
38117 (glib_minor_version != $glib_config_minor_version) ||
38118 (glib_micro_version != $glib_config_micro_version))
38120 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
38121 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
38122 glib_major_version, glib_minor_version, glib_micro_version);
38123 printf ("*** was found! If pkg-config was correct, then it is best\n");
38124 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
38125 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
38126 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
38127 printf("*** required on your system.\n");
38128 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
38129 printf("*** to point to the correct configuration files\n");
38131 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
38132 (glib_minor_version != GLIB_MINOR_VERSION) ||
38133 (glib_micro_version != GLIB_MICRO_VERSION))
38135 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
38136 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
38137 printf("*** library (version %d.%d.%d)\n",
38138 glib_major_version, glib_minor_version, glib_micro_version);
38142 if ((glib_major_version > major) ||
38143 ((glib_major_version == major) && (glib_minor_version > minor)) ||
38144 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
38150 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
38151 glib_major_version, glib_minor_version, glib_micro_version);
38152 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
38153 major, minor, micro);
38154 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
38156 printf("*** If you have already installed a sufficiently new version, this error\n");
38157 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
38158 printf("*** being found. The easiest way to fix this is to remove the old version\n");
38159 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
38160 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
38161 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
38162 printf("*** so that the correct libraries are found at run-time))\n");
38169 if ac_fn_c_try_run "$LINENO"; then :
38174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38175 conftest.$ac_objext conftest.beam conftest.$ac_ext
38178 CFLAGS="$ac_save_CFLAGS"
38179 LIBS="$ac_save_LIBS"
38182 if test "x$no_glib" = x ; then
38183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
38184 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
38187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38188 $as_echo "no" >&6; }
38189 if test "$PKG_CONFIG" = "no" ; then
38190 echo "*** A new enough version of pkg-config was not found."
38191 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
38193 if test -f conf.glibtest ; then
38196 echo "*** Could not run GLIB test program, checking why..."
38197 ac_save_CFLAGS="$CFLAGS"
38198 ac_save_LIBS="$LIBS"
38199 CFLAGS="$CFLAGS $GLIB_CFLAGS"
38200 LIBS="$LIBS $GLIB_LIBS"
38201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38202 /* end confdefs.h. */
38210 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
38215 if ac_fn_c_try_link "$LINENO"; then :
38216 echo "*** The test program compiled, but did not run. This usually means"
38217 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
38218 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
38219 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
38220 echo "*** to the installed location Also, make sure you have run ldconfig if that"
38221 echo "*** is required on your system"
38223 echo "*** If you have an old version installed, it is best to remove it, although"
38224 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
38226 echo "*** The test program failed to compile or link. See the file config.log for the"
38227 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
38229 rm -f core conftest.err conftest.$ac_objext \
38230 conftest$ac_exeext conftest.$ac_ext
38231 CFLAGS="$ac_save_CFLAGS"
38232 LIBS="$ac_save_LIBS"
38241 as_fn_error $? "glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" "$LINENO" 5
38249 rm -f conf.glibtest
38252 # Confirm that all GLIB_ variables are set
38253 if test ! x"$GLIB_CFLAGS" = x"" && \
38254 test ! x"$GLIB_LIBS" = x"" && \
38255 test ! x"$GLIB_GENMARSHAL" = x"" && \
38256 test ! x"$GOBJECT_QUERY" = x"" && \
38257 test ! x"$GLIB_MKENUMS" = x""; then
38260 as_fn_error $? "Not all precious glib variables were set." "$LINENO" 5
38264 # GLIB_CPPFLAGS is not set by autoconf, yet GLIB_CFLAGS contains what GLIB_CPPFLAGS should contain.
38265 CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS"
38267 LIBS="$GLIB_LIBS $LIBS"
38272 # Check whether --with-readline was given.
38273 if test "${with_readline+set}" = set; then :
38274 withval=$with_readline;
38276 y | ye | yes | n | no) : ;;
38277 *) as_fn_error $? "*** --with-readline does not take a value" "$LINENO" 5
38279 want_readline="$withval"
38283 want_readline="maybe" # meaning "only if we can find it"
38289 # unless the user said "no", look for readline.
38290 if test x"$want_readline" != x"no"; then
38291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
38292 $as_echo_n "checking for a readline compatible library... " >&6; }
38293 if ${ax_cv_lib_readline+:} false; then :
38294 $as_echo_n "(cached) " >&6
38298 for readline_lib in readline edit editline; do
38299 for termcap_lib in "" termcap curses ncurses; do
38300 if test -z "$termcap_lib"; then
38301 TRY_LIB="-l$readline_lib"
38303 TRY_LIB="-l$readline_lib -l$termcap_lib"
38305 LIBS="$ORIG_LIBS $TRY_LIB"
38306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38307 /* end confdefs.h. */
38309 /* Override any GCC internal prototype to avoid an error.
38310 Use char because int might match the return type of a GCC
38311 builtin and then its argument prototype would still apply. */
38319 return readline ();
38324 if ac_fn_c_try_link "$LINENO"; then :
38325 ax_cv_lib_readline="$TRY_LIB"
38327 rm -f core conftest.err conftest.$ac_objext \
38328 conftest$ac_exeext conftest.$ac_ext
38329 if test -n "$ax_cv_lib_readline"; then
38333 if test -n "$ax_cv_lib_readline"; then
38337 if test -z "$ax_cv_lib_readline"; then
38338 ax_cv_lib_readline="no"
38343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
38344 $as_echo "$ax_cv_lib_readline" >&6; }
38346 if test "$ax_cv_lib_readline" != "no"; then
38348 LIBS="$LIBS $ax_cv_lib_readline"
38349 READLINE_LIBS="$ax_cv_lib_readline"
38351 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
38353 for ac_header in readline.h readline/readline.h
38355 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38356 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
38357 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38358 cat >>confdefs.h <<_ACEOF
38359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
38367 $as_echo_n "checking whether readline supports history... " >&6; }
38368 if ${ax_cv_lib_readline_history+:} false; then :
38369 $as_echo_n "(cached) " >&6
38372 ax_cv_lib_readline_history="no"
38373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38374 /* end confdefs.h. */
38376 /* Override any GCC internal prototype to avoid an error.
38377 Use char because int might match the return type of a GCC
38378 builtin and then its argument prototype would still apply. */
38382 char add_history ();
38386 return add_history ();
38391 if ac_fn_c_try_link "$LINENO"; then :
38392 ax_cv_lib_readline_history="yes"
38394 rm -f core conftest.err conftest.$ac_objext \
38395 conftest$ac_exeext conftest.$ac_ext
38398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
38399 $as_echo "$ax_cv_lib_readline_history" >&6; }
38400 if test "$ax_cv_lib_readline_history" = "yes"; then
38402 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
38404 for ac_header in history.h readline/history.h
38406 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38407 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
38408 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38409 cat >>confdefs.h <<_ACEOF
38410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38421 # no readline. if the user *really* wanted it, bail out.
38422 if test x"$want_readline" = x"yes"; then
38423 as_fn_error $? "*** No readline implementation found. Try using --with-libraries and --with-includes" "$LINENO" 5
38430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf in -lm" >&5
38431 $as_echo_n "checking for modf in -lm... " >&6; }
38432 if ${ac_cv_lib_m_modf+:} false; then :
38433 $as_echo_n "(cached) " >&6
38435 ac_check_lib_save_LIBS=$LIBS
38437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38438 /* end confdefs.h. */
38440 /* Override any GCC internal prototype to avoid an error.
38441 Use char because int might match the return type of a GCC
38442 builtin and then its argument prototype would still apply. */
38455 if ac_fn_c_try_link "$LINENO"; then :
38456 ac_cv_lib_m_modf=yes
38458 ac_cv_lib_m_modf=no
38460 rm -f core conftest.err conftest.$ac_objext \
38461 conftest$ac_exeext conftest.$ac_ext
38462 LIBS=$ac_check_lib_save_LIBS
38464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_modf" >&5
38465 $as_echo "$ac_cv_lib_m_modf" >&6; }
38466 if test "x$ac_cv_lib_m_modf" = xyes; then :
38467 cat >>confdefs.h <<_ACEOF
38468 #define HAVE_LIBM 1
38476 ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
38477 if test "x$ac_cv_header_execinfo_h" = xyes; then :
38479 ac_fn_c_check_func "$LINENO" "backtrace_symbols_fd" "ac_cv_func_backtrace_symbols_fd"
38480 if test "x$ac_cv_func_backtrace_symbols_fd" = xyes; then :
38483 $as_echo "#define HAVE_GLIBC_BACKTRACE 1" >>confdefs.h
38497 # Checks for library functions and if the function is declared in
38498 # an appropriate header file. Functions which exist, but for which
38499 # no declaration is available, are declared in common-src/amanda.h.
38500 # It's not clear that any existing system implements but does not
38501 # declare common functions such as these.
38505 for ac_func in accept
38507 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
38508 if test "x$ac_cv_func_accept" = xyes; then :
38509 cat >>confdefs.h <<_ACEOF
38510 #define HAVE_ACCEPT 1
38512 ice_have_accept=yes
38516 if test "${ice_have_accept}" = yes; then
38517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept declaration in sys/types.h sys/socket.h" >&5
38518 $as_echo_n "checking for accept declaration in sys/types.h sys/socket.h... " >&6; }
38519 if ${ice_cv_have_accept_decl+:} false; then :
38520 $as_echo_n "(cached) " >&6
38523 ice_cv_have_accept_decl=no
38524 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38525 ice_re_word='(^|[^a-zA-Z0-9_])'
38526 for header in sys/types.h sys/socket.h; do
38527 # Check for ordinary declaration
38528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38529 /* end confdefs.h. */
38533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38534 $EGREP "${ice_re_word}accept[ ]*\(" >/dev/null 2>&1; then :
38535 ice_cv_have_accept_decl=yes
38539 if test "$ice_cv_have_accept_decl" = yes; then
38542 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38544 /* end confdefs.h. */
38548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38549 $EGREP "${ice_re_word}accept[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38550 ice_cv_have_accept_decl=yes
38554 if test "$ice_cv_have_accept_decl" = yes; then
38561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_accept_decl" >&5
38562 $as_echo "$ice_cv_have_accept_decl" >&6; }
38563 if test "$ice_cv_have_accept_decl" = yes; then
38565 cat >>confdefs.h <<_ACEOF
38566 #define HAVE_ACCEPT_DECL 1
38572 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
38573 # for constant arguments. Useless!
38574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
38575 $as_echo_n "checking for working alloca.h... " >&6; }
38576 if ${ac_cv_working_alloca_h+:} false; then :
38577 $as_echo_n "(cached) " >&6
38579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38580 /* end confdefs.h. */
38581 #include <alloca.h>
38585 char *p = (char *) alloca (2 * sizeof (int));
38591 if ac_fn_c_try_link "$LINENO"; then :
38592 ac_cv_working_alloca_h=yes
38594 ac_cv_working_alloca_h=no
38596 rm -f core conftest.err conftest.$ac_objext \
38597 conftest$ac_exeext conftest.$ac_ext
38599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
38600 $as_echo "$ac_cv_working_alloca_h" >&6; }
38601 if test $ac_cv_working_alloca_h = yes; then
38603 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
38607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
38608 $as_echo_n "checking for alloca... " >&6; }
38609 if ${ac_cv_func_alloca_works+:} false; then :
38610 $as_echo_n "(cached) " >&6
38612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38613 /* end confdefs.h. */
38615 # define alloca __builtin_alloca
38618 # include <malloc.h>
38619 # define alloca _alloca
38621 # ifdef HAVE_ALLOCA_H
38622 # include <alloca.h>
38627 # ifndef alloca /* predefined by HP cc +Olibcalls */
38628 void *alloca (size_t);
38638 char *p = (char *) alloca (1);
38644 if ac_fn_c_try_link "$LINENO"; then :
38645 ac_cv_func_alloca_works=yes
38647 ac_cv_func_alloca_works=no
38649 rm -f core conftest.err conftest.$ac_objext \
38650 conftest$ac_exeext conftest.$ac_ext
38652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
38653 $as_echo "$ac_cv_func_alloca_works" >&6; }
38655 if test $ac_cv_func_alloca_works = yes; then
38657 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
38660 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
38661 # that cause trouble. Some versions do not even contain alloca or
38662 # contain a buggy version. If you still want to use their alloca,
38663 # use ar to extract alloca.o from them instead of compiling alloca.c.
38665 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
38667 $as_echo "#define C_ALLOCA 1" >>confdefs.h
38670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
38671 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
38672 if ${ac_cv_os_cray+:} false; then :
38673 $as_echo_n "(cached) " >&6
38675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38676 /* end confdefs.h. */
38677 #if defined CRAY && ! defined CRAY2
38684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38685 $EGREP "webecray" >/dev/null 2>&1; then :
38693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
38694 $as_echo "$ac_cv_os_cray" >&6; }
38695 if test $ac_cv_os_cray = yes; then
38696 for ac_func in _getb67 GETB67 getb67; do
38697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
38699 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
38701 cat >>confdefs.h <<_ACEOF
38702 #define CRAY_STACKSEG_END $ac_func
38711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
38712 $as_echo_n "checking stack direction for C alloca... " >&6; }
38713 if ${ac_cv_c_stack_direction+:} false; then :
38714 $as_echo_n "(cached) " >&6
38716 if test "$cross_compiling" = yes; then :
38717 ac_cv_c_stack_direction=0
38719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38720 /* end confdefs.h. */
38721 $ac_includes_default
38723 find_stack_direction ()
38725 static char *addr = 0;
38730 return find_stack_direction ();
38733 return (&dummy > addr) ? 1 : -1;
38739 return find_stack_direction () < 0;
38742 if ac_fn_c_try_run "$LINENO"; then :
38743 ac_cv_c_stack_direction=1
38745 ac_cv_c_stack_direction=-1
38747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38748 conftest.$ac_objext conftest.beam conftest.$ac_ext
38752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
38753 $as_echo "$ac_cv_c_stack_direction" >&6; }
38754 cat >>confdefs.h <<_ACEOF
38755 #define STACK_DIRECTION $ac_cv_c_stack_direction
38761 for ac_func in atexit
38763 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
38764 if test "x$ac_cv_func_atexit" = xyes; then :
38765 cat >>confdefs.h <<_ACEOF
38766 #define HAVE_ATEXIT 1
38774 for ac_func in atof
38776 ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
38777 if test "x$ac_cv_func_atof" = xyes; then :
38778 cat >>confdefs.h <<_ACEOF
38779 #define HAVE_ATOF 1
38785 if test "${ice_have_atof}" = yes; then
38786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atof declaration in stdlib.h" >&5
38787 $as_echo_n "checking for atof declaration in stdlib.h... " >&6; }
38788 if ${ice_cv_have_atof_decl+:} false; then :
38789 $as_echo_n "(cached) " >&6
38792 ice_cv_have_atof_decl=no
38793 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38794 ice_re_word='(^|[^a-zA-Z0-9_])'
38795 for header in stdlib.h; do
38796 # Check for ordinary declaration
38797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38798 /* end confdefs.h. */
38802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38803 $EGREP "${ice_re_word}atof[ ]*\(" >/dev/null 2>&1; then :
38804 ice_cv_have_atof_decl=yes
38808 if test "$ice_cv_have_atof_decl" = yes; then
38811 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38813 /* end confdefs.h. */
38817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38818 $EGREP "${ice_re_word}atof[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38819 ice_cv_have_atof_decl=yes
38823 if test "$ice_cv_have_atof_decl" = yes; then
38830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_atof_decl" >&5
38831 $as_echo "$ice_cv_have_atof_decl" >&6; }
38832 if test "$ice_cv_have_atof_decl" = yes; then
38834 cat >>confdefs.h <<_ACEOF
38835 #define HAVE_ATOF_DECL 1
38843 for ac_func in atol
38845 ac_fn_c_check_func "$LINENO" "atol" "ac_cv_func_atol"
38846 if test "x$ac_cv_func_atol" = xyes; then :
38847 cat >>confdefs.h <<_ACEOF
38848 #define HAVE_ATOL 1
38854 if test "${ice_have_atol}" = yes; then
38855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atol declaration in stdlib.h" >&5
38856 $as_echo_n "checking for atol declaration in stdlib.h... " >&6; }
38857 if ${ice_cv_have_atol_decl+:} false; then :
38858 $as_echo_n "(cached) " >&6
38861 ice_cv_have_atol_decl=no
38862 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38863 ice_re_word='(^|[^a-zA-Z0-9_])'
38864 for header in stdlib.h; do
38865 # Check for ordinary declaration
38866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38867 /* end confdefs.h. */
38871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38872 $EGREP "${ice_re_word}atol[ ]*\(" >/dev/null 2>&1; then :
38873 ice_cv_have_atol_decl=yes
38877 if test "$ice_cv_have_atol_decl" = yes; then
38880 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38882 /* end confdefs.h. */
38886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38887 $EGREP "${ice_re_word}atol[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38888 ice_cv_have_atol_decl=yes
38892 if test "$ice_cv_have_atol_decl" = yes; then
38899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_atol_decl" >&5
38900 $as_echo "$ice_cv_have_atol_decl" >&6; }
38901 if test "$ice_cv_have_atol_decl" = yes; then
38903 cat >>confdefs.h <<_ACEOF
38904 #define HAVE_ATOL_DECL 1
38912 for ac_func in atoll
38914 ac_fn_c_check_func "$LINENO" "atoll" "ac_cv_func_atoll"
38915 if test "x$ac_cv_func_atoll" = xyes; then :
38916 cat >>confdefs.h <<_ACEOF
38917 #define HAVE_ATOLL 1
38923 if test "${ice_have_atoll}" = yes; then
38924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atoll declaration in stdlib.h" >&5
38925 $as_echo_n "checking for atoll declaration in stdlib.h... " >&6; }
38926 if ${ice_cv_have_atoll_decl+:} false; then :
38927 $as_echo_n "(cached) " >&6
38930 ice_cv_have_atoll_decl=no
38931 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38932 ice_re_word='(^|[^a-zA-Z0-9_])'
38933 for header in stdlib.h; do
38934 # Check for ordinary declaration
38935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38936 /* end confdefs.h. */
38940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38941 $EGREP "${ice_re_word}atoll[ ]*\(" >/dev/null 2>&1; then :
38942 ice_cv_have_atoll_decl=yes
38946 if test "$ice_cv_have_atoll_decl" = yes; then
38949 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38951 /* end confdefs.h. */
38955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38956 $EGREP "${ice_re_word}atoll[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38957 ice_cv_have_atoll_decl=yes
38961 if test "$ice_cv_have_atoll_decl" = yes; then
38968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_atoll_decl" >&5
38969 $as_echo "$ice_cv_have_atoll_decl" >&6; }
38970 if test "$ice_cv_have_atoll_decl" = yes; then
38972 cat >>confdefs.h <<_ACEOF
38973 #define HAVE_ATOLL_DECL 1
38981 for ac_func in strtol
38983 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
38984 if test "x$ac_cv_func_strtol" = xyes; then :
38985 cat >>confdefs.h <<_ACEOF
38986 #define HAVE_STRTOL 1
38988 ice_have_strtol=yes
38992 if test "${ice_have_strtol}" = yes; then
38993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtol declaration in stdlib.h" >&5
38994 $as_echo_n "checking for strtol declaration in stdlib.h... " >&6; }
38995 if ${ice_cv_have_strtol_decl+:} false; then :
38996 $as_echo_n "(cached) " >&6
38999 ice_cv_have_strtol_decl=no
39000 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39001 ice_re_word='(^|[^a-zA-Z0-9_])'
39002 for header in stdlib.h; do
39003 # Check for ordinary declaration
39004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39005 /* end confdefs.h. */
39009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39010 $EGREP "${ice_re_word}strtol[ ]*\(" >/dev/null 2>&1; then :
39011 ice_cv_have_strtol_decl=yes
39015 if test "$ice_cv_have_strtol_decl" = yes; then
39018 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39020 /* end confdefs.h. */
39024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39025 $EGREP "${ice_re_word}strtol[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39026 ice_cv_have_strtol_decl=yes
39030 if test "$ice_cv_have_strtol_decl" = yes; then
39037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strtol_decl" >&5
39038 $as_echo "$ice_cv_have_strtol_decl" >&6; }
39039 if test "$ice_cv_have_strtol_decl" = yes; then
39041 cat >>confdefs.h <<_ACEOF
39042 #define HAVE_STRTOL_DECL 1
39049 ice_have_strtoll=no
39050 for ac_func in strtoll
39052 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
39053 if test "x$ac_cv_func_strtoll" = xyes; then :
39054 cat >>confdefs.h <<_ACEOF
39055 #define HAVE_STRTOLL 1
39057 ice_have_strtoll=yes
39061 if test "${ice_have_strtoll}" = yes; then
39062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtoll declaration in stdlib.h" >&5
39063 $as_echo_n "checking for strtoll declaration in stdlib.h... " >&6; }
39064 if ${ice_cv_have_strtoll_decl+:} false; then :
39065 $as_echo_n "(cached) " >&6
39068 ice_cv_have_strtoll_decl=no
39069 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39070 ice_re_word='(^|[^a-zA-Z0-9_])'
39071 for header in stdlib.h; do
39072 # Check for ordinary declaration
39073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39074 /* end confdefs.h. */
39078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39079 $EGREP "${ice_re_word}strtoll[ ]*\(" >/dev/null 2>&1; then :
39080 ice_cv_have_strtoll_decl=yes
39084 if test "$ice_cv_have_strtoll_decl" = yes; then
39087 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39089 /* end confdefs.h. */
39093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39094 $EGREP "${ice_re_word}strtoll[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39095 ice_cv_have_strtoll_decl=yes
39099 if test "$ice_cv_have_strtoll_decl" = yes; then
39106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strtoll_decl" >&5
39107 $as_echo "$ice_cv_have_strtoll_decl" >&6; }
39108 if test "$ice_cv_have_strtoll_decl" = yes; then
39110 cat >>confdefs.h <<_ACEOF
39111 #define HAVE_STRTOLL_DECL 1
39117 for ac_func in basename
39119 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
39120 if test "x$ac_cv_func_basename" = xyes; then :
39121 cat >>confdefs.h <<_ACEOF
39122 #define HAVE_BASENAME 1
39130 for ac_func in bind
39132 ac_fn_c_check_func "$LINENO" "bind" "ac_cv_func_bind"
39133 if test "x$ac_cv_func_bind" = xyes; then :
39134 cat >>confdefs.h <<_ACEOF
39135 #define HAVE_BIND 1
39141 if test "${ice_have_bind}" = yes; then
39142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind declaration in sys/types.h sys/socket.h" >&5
39143 $as_echo_n "checking for bind declaration in sys/types.h sys/socket.h... " >&6; }
39144 if ${ice_cv_have_bind_decl+:} false; then :
39145 $as_echo_n "(cached) " >&6
39148 ice_cv_have_bind_decl=no
39149 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39150 ice_re_word='(^|[^a-zA-Z0-9_])'
39151 for header in sys/types.h sys/socket.h; do
39152 # Check for ordinary declaration
39153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39154 /* end confdefs.h. */
39158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39159 $EGREP "${ice_re_word}bind[ ]*\(" >/dev/null 2>&1; then :
39160 ice_cv_have_bind_decl=yes
39164 if test "$ice_cv_have_bind_decl" = yes; then
39167 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39169 /* end confdefs.h. */
39173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39174 $EGREP "${ice_re_word}bind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39175 ice_cv_have_bind_decl=yes
39179 if test "$ice_cv_have_bind_decl" = yes; then
39186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_bind_decl" >&5
39187 $as_echo "$ice_cv_have_bind_decl" >&6; }
39188 if test "$ice_cv_have_bind_decl" = yes; then
39190 cat >>confdefs.h <<_ACEOF
39191 #define HAVE_BIND_DECL 1
39199 for ac_func in bcopy
39201 ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
39202 if test "x$ac_cv_func_bcopy" = xyes; then :
39203 cat >>confdefs.h <<_ACEOF
39204 #define HAVE_BCOPY 1
39210 if test "${ice_have_bcopy}" = yes; then
39211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
39212 $as_echo_n "checking for bcopy declaration in string.h strings.h stdlib.h... " >&6; }
39213 if ${ice_cv_have_bcopy_decl+:} false; then :
39214 $as_echo_n "(cached) " >&6
39217 ice_cv_have_bcopy_decl=no
39218 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39219 ice_re_word='(^|[^a-zA-Z0-9_])'
39220 for header in string.h strings.h stdlib.h; do
39221 # Check for ordinary declaration
39222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39223 /* end confdefs.h. */
39227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39228 $EGREP "${ice_re_word}bcopy[ ]*\(" >/dev/null 2>&1; then :
39229 ice_cv_have_bcopy_decl=yes
39233 if test "$ice_cv_have_bcopy_decl" = yes; then
39236 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39238 /* end confdefs.h. */
39242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39243 $EGREP "${ice_re_word}bcopy[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39244 ice_cv_have_bcopy_decl=yes
39248 if test "$ice_cv_have_bcopy_decl" = yes; then
39255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_bcopy_decl" >&5
39256 $as_echo "$ice_cv_have_bcopy_decl" >&6; }
39257 if test "$ice_cv_have_bcopy_decl" = yes; then
39259 cat >>confdefs.h <<_ACEOF
39260 #define HAVE_BCOPY_DECL 1
39268 for ac_func in bzero
39270 ac_fn_c_check_func "$LINENO" "bzero" "ac_cv_func_bzero"
39271 if test "x$ac_cv_func_bzero" = xyes; then :
39272 cat >>confdefs.h <<_ACEOF
39273 #define HAVE_BZERO 1
39279 if test "${ice_have_bzero}" = yes; then
39280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzero declaration in string.h strings.h stdlib.h" >&5
39281 $as_echo_n "checking for bzero declaration in string.h strings.h stdlib.h... " >&6; }
39282 if ${ice_cv_have_bzero_decl+:} false; then :
39283 $as_echo_n "(cached) " >&6
39286 ice_cv_have_bzero_decl=no
39287 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39288 ice_re_word='(^|[^a-zA-Z0-9_])'
39289 for header in string.h strings.h stdlib.h; do
39290 # Check for ordinary declaration
39291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39292 /* end confdefs.h. */
39296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39297 $EGREP "${ice_re_word}bzero[ ]*\(" >/dev/null 2>&1; then :
39298 ice_cv_have_bzero_decl=yes
39302 if test "$ice_cv_have_bzero_decl" = yes; then
39305 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39307 /* end confdefs.h. */
39311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39312 $EGREP "${ice_re_word}bzero[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39313 ice_cv_have_bzero_decl=yes
39317 if test "$ice_cv_have_bzero_decl" = yes; then
39324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_bzero_decl" >&5
39325 $as_echo "$ice_cv_have_bzero_decl" >&6; }
39326 if test "$ice_cv_have_bzero_decl" = yes; then
39328 cat >>confdefs.h <<_ACEOF
39329 #define HAVE_BZERO_DECL 1
39335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
39336 $as_echo_n "checking whether closedir returns void... " >&6; }
39337 if ${ac_cv_func_closedir_void+:} false; then :
39338 $as_echo_n "(cached) " >&6
39340 if test "$cross_compiling" = yes; then :
39341 ac_cv_func_closedir_void=yes
39343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39344 /* end confdefs.h. */
39345 $ac_includes_default
39346 #include <$ac_header_dirent>
39347 #ifndef __cplusplus
39354 return closedir (opendir (".")) != 0;
39359 if ac_fn_c_try_run "$LINENO"; then :
39360 ac_cv_func_closedir_void=no
39362 ac_cv_func_closedir_void=yes
39364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39365 conftest.$ac_objext conftest.beam conftest.$ac_ext
39369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
39370 $as_echo "$ac_cv_func_closedir_void" >&6; }
39371 if test $ac_cv_func_closedir_void = yes; then
39373 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
39378 ice_have_closelog=no
39379 for ac_func in closelog
39381 ac_fn_c_check_func "$LINENO" "closelog" "ac_cv_func_closelog"
39382 if test "x$ac_cv_func_closelog" = xyes; then :
39383 cat >>confdefs.h <<_ACEOF
39384 #define HAVE_CLOSELOG 1
39386 ice_have_closelog=yes
39390 if test "${ice_have_closelog}" = yes; then
39391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for closelog declaration in syslog.h" >&5
39392 $as_echo_n "checking for closelog declaration in syslog.h... " >&6; }
39393 if ${ice_cv_have_closelog_decl+:} false; then :
39394 $as_echo_n "(cached) " >&6
39397 ice_cv_have_closelog_decl=no
39398 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39399 ice_re_word='(^|[^a-zA-Z0-9_])'
39400 for header in syslog.h; do
39401 # Check for ordinary declaration
39402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39403 /* end confdefs.h. */
39407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39408 $EGREP "${ice_re_word}closelog[ ]*\(" >/dev/null 2>&1; then :
39409 ice_cv_have_closelog_decl=yes
39413 if test "$ice_cv_have_closelog_decl" = yes; then
39416 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39418 /* end confdefs.h. */
39422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39423 $EGREP "${ice_re_word}closelog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39424 ice_cv_have_closelog_decl=yes
39428 if test "$ice_cv_have_closelog_decl" = yes; then
39435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_closelog_decl" >&5
39436 $as_echo "$ice_cv_have_closelog_decl" >&6; }
39437 if test "$ice_cv_have_closelog_decl" = yes; then
39439 cat >>confdefs.h <<_ACEOF
39440 #define HAVE_CLOSELOG_DECL 1
39447 ice_have_connect=no
39448 for ac_func in connect
39450 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
39451 if test "x$ac_cv_func_connect" = xyes; then :
39452 cat >>confdefs.h <<_ACEOF
39453 #define HAVE_CONNECT 1
39455 ice_have_connect=yes
39459 if test "${ice_have_connect}" = yes; then
39460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect declaration in sys/types.h sys/socket.h" >&5
39461 $as_echo_n "checking for connect declaration in sys/types.h sys/socket.h... " >&6; }
39462 if ${ice_cv_have_connect_decl+:} false; then :
39463 $as_echo_n "(cached) " >&6
39466 ice_cv_have_connect_decl=no
39467 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39468 ice_re_word='(^|[^a-zA-Z0-9_])'
39469 for header in sys/types.h sys/socket.h; do
39470 # Check for ordinary declaration
39471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39472 /* end confdefs.h. */
39476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39477 $EGREP "${ice_re_word}connect[ ]*\(" >/dev/null 2>&1; then :
39478 ice_cv_have_connect_decl=yes
39482 if test "$ice_cv_have_connect_decl" = yes; then
39485 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39487 /* end confdefs.h. */
39491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39492 $EGREP "${ice_re_word}connect[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39493 ice_cv_have_connect_decl=yes
39497 if test "$ice_cv_have_connect_decl" = yes; then
39504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_connect_decl" >&5
39505 $as_echo "$ice_cv_have_connect_decl" >&6; }
39506 if test "$ice_cv_have_connect_decl" = yes; then
39508 cat >>confdefs.h <<_ACEOF
39509 #define HAVE_CONNECT_DECL 1
39517 for ac_func in fclose
39519 ac_fn_c_check_func "$LINENO" "fclose" "ac_cv_func_fclose"
39520 if test "x$ac_cv_func_fclose" = xyes; then :
39521 cat >>confdefs.h <<_ACEOF
39522 #define HAVE_FCLOSE 1
39524 ice_have_fclose=yes
39528 if test "${ice_have_fclose}" = yes; then
39529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fclose declaration in stdio.h" >&5
39530 $as_echo_n "checking for fclose declaration in stdio.h... " >&6; }
39531 if ${ice_cv_have_fclose_decl+:} false; then :
39532 $as_echo_n "(cached) " >&6
39535 ice_cv_have_fclose_decl=no
39536 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39537 ice_re_word='(^|[^a-zA-Z0-9_])'
39538 for header in stdio.h; do
39539 # Check for ordinary declaration
39540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39541 /* end confdefs.h. */
39545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39546 $EGREP "${ice_re_word}fclose[ ]*\(" >/dev/null 2>&1; then :
39547 ice_cv_have_fclose_decl=yes
39551 if test "$ice_cv_have_fclose_decl" = yes; then
39554 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39556 /* end confdefs.h. */
39560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39561 $EGREP "${ice_re_word}fclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39562 ice_cv_have_fclose_decl=yes
39566 if test "$ice_cv_have_fclose_decl" = yes; then
39573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fclose_decl" >&5
39574 $as_echo "$ice_cv_have_fclose_decl" >&6; }
39575 if test "$ice_cv_have_fclose_decl" = yes; then
39577 cat >>confdefs.h <<_ACEOF
39578 #define HAVE_FCLOSE_DECL 1
39586 for ac_func in fflush
39588 ac_fn_c_check_func "$LINENO" "fflush" "ac_cv_func_fflush"
39589 if test "x$ac_cv_func_fflush" = xyes; then :
39590 cat >>confdefs.h <<_ACEOF
39591 #define HAVE_FFLUSH 1
39593 ice_have_fflush=yes
39597 if test "${ice_have_fflush}" = yes; then
39598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fflush declaration in stdio.h" >&5
39599 $as_echo_n "checking for fflush declaration in stdio.h... " >&6; }
39600 if ${ice_cv_have_fflush_decl+:} false; then :
39601 $as_echo_n "(cached) " >&6
39604 ice_cv_have_fflush_decl=no
39605 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39606 ice_re_word='(^|[^a-zA-Z0-9_])'
39607 for header in stdio.h; do
39608 # Check for ordinary declaration
39609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39610 /* end confdefs.h. */
39614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39615 $EGREP "${ice_re_word}fflush[ ]*\(" >/dev/null 2>&1; then :
39616 ice_cv_have_fflush_decl=yes
39620 if test "$ice_cv_have_fflush_decl" = yes; then
39623 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39625 /* end confdefs.h. */
39629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39630 $EGREP "${ice_re_word}fflush[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39631 ice_cv_have_fflush_decl=yes
39635 if test "$ice_cv_have_fflush_decl" = yes; then
39642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fflush_decl" >&5
39643 $as_echo "$ice_cv_have_fflush_decl" >&6; }
39644 if test "$ice_cv_have_fflush_decl" = yes; then
39646 cat >>confdefs.h <<_ACEOF
39647 #define HAVE_FFLUSH_DECL 1
39654 ice_have_fprintf=no
39655 for ac_func in fprintf
39657 ac_fn_c_check_func "$LINENO" "fprintf" "ac_cv_func_fprintf"
39658 if test "x$ac_cv_func_fprintf" = xyes; then :
39659 cat >>confdefs.h <<_ACEOF
39660 #define HAVE_FPRINTF 1
39662 ice_have_fprintf=yes
39666 if test "${ice_have_fprintf}" = yes; then
39667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fprintf declaration in stdio.h" >&5
39668 $as_echo_n "checking for fprintf declaration in stdio.h... " >&6; }
39669 if ${ice_cv_have_fprintf_decl+:} false; then :
39670 $as_echo_n "(cached) " >&6
39673 ice_cv_have_fprintf_decl=no
39674 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39675 ice_re_word='(^|[^a-zA-Z0-9_])'
39676 for header in stdio.h; do
39677 # Check for ordinary declaration
39678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39679 /* end confdefs.h. */
39683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39684 $EGREP "${ice_re_word}fprintf[ ]*\(" >/dev/null 2>&1; then :
39685 ice_cv_have_fprintf_decl=yes
39689 if test "$ice_cv_have_fprintf_decl" = yes; then
39692 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39694 /* end confdefs.h. */
39698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39699 $EGREP "${ice_re_word}fprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39700 ice_cv_have_fprintf_decl=yes
39704 if test "$ice_cv_have_fprintf_decl" = yes; then
39711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fprintf_decl" >&5
39712 $as_echo "$ice_cv_have_fprintf_decl" >&6; }
39713 if test "$ice_cv_have_fprintf_decl" = yes; then
39715 cat >>confdefs.h <<_ACEOF
39716 #define HAVE_FPRINTF_DECL 1
39724 for ac_func in fputc
39726 ac_fn_c_check_func "$LINENO" "fputc" "ac_cv_func_fputc"
39727 if test "x$ac_cv_func_fputc" = xyes; then :
39728 cat >>confdefs.h <<_ACEOF
39729 #define HAVE_FPUTC 1
39735 if test "${ice_have_fputc}" = yes; then
39736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fputc declaration in stdio.h" >&5
39737 $as_echo_n "checking for fputc declaration in stdio.h... " >&6; }
39738 if ${ice_cv_have_fputc_decl+:} false; then :
39739 $as_echo_n "(cached) " >&6
39742 ice_cv_have_fputc_decl=no
39743 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39744 ice_re_word='(^|[^a-zA-Z0-9_])'
39745 for header in stdio.h; do
39746 # Check for ordinary declaration
39747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39748 /* end confdefs.h. */
39752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39753 $EGREP "${ice_re_word}fputc[ ]*\(" >/dev/null 2>&1; then :
39754 ice_cv_have_fputc_decl=yes
39758 if test "$ice_cv_have_fputc_decl" = yes; then
39761 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39763 /* end confdefs.h. */
39767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39768 $EGREP "${ice_re_word}fputc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39769 ice_cv_have_fputc_decl=yes
39773 if test "$ice_cv_have_fputc_decl" = yes; then
39780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fputc_decl" >&5
39781 $as_echo "$ice_cv_have_fputc_decl" >&6; }
39782 if test "$ice_cv_have_fputc_decl" = yes; then
39784 cat >>confdefs.h <<_ACEOF
39785 #define HAVE_FPUTC_DECL 1
39793 for ac_func in fputs
39795 ac_fn_c_check_func "$LINENO" "fputs" "ac_cv_func_fputs"
39796 if test "x$ac_cv_func_fputs" = xyes; then :
39797 cat >>confdefs.h <<_ACEOF
39798 #define HAVE_FPUTS 1
39804 if test "${ice_have_fputs}" = yes; then
39805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fputs declaration in stdio.h" >&5
39806 $as_echo_n "checking for fputs declaration in stdio.h... " >&6; }
39807 if ${ice_cv_have_fputs_decl+:} false; then :
39808 $as_echo_n "(cached) " >&6
39811 ice_cv_have_fputs_decl=no
39812 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39813 ice_re_word='(^|[^a-zA-Z0-9_])'
39814 for header in stdio.h; do
39815 # Check for ordinary declaration
39816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39817 /* end confdefs.h. */
39821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39822 $EGREP "${ice_re_word}fputs[ ]*\(" >/dev/null 2>&1; then :
39823 ice_cv_have_fputs_decl=yes
39827 if test "$ice_cv_have_fputs_decl" = yes; then
39830 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39832 /* end confdefs.h. */
39836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39837 $EGREP "${ice_re_word}fputs[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39838 ice_cv_have_fputs_decl=yes
39842 if test "$ice_cv_have_fputs_decl" = yes; then
39849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fputs_decl" >&5
39850 $as_echo "$ice_cv_have_fputs_decl" >&6; }
39851 if test "$ice_cv_have_fputs_decl" = yes; then
39853 cat >>confdefs.h <<_ACEOF
39854 #define HAVE_FPUTS_DECL 1
39862 for ac_func in fread
39864 ac_fn_c_check_func "$LINENO" "fread" "ac_cv_func_fread"
39865 if test "x$ac_cv_func_fread" = xyes; then :
39866 cat >>confdefs.h <<_ACEOF
39867 #define HAVE_FREAD 1
39873 if test "${ice_have_fread}" = yes; then
39874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fread declaration in stdio.h stdlib.h" >&5
39875 $as_echo_n "checking for fread declaration in stdio.h stdlib.h... " >&6; }
39876 if ${ice_cv_have_fread_decl+:} false; then :
39877 $as_echo_n "(cached) " >&6
39880 ice_cv_have_fread_decl=no
39881 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39882 ice_re_word='(^|[^a-zA-Z0-9_])'
39883 for header in stdio.h stdlib.h; do
39884 # Check for ordinary declaration
39885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39886 /* end confdefs.h. */
39890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39891 $EGREP "${ice_re_word}fread[ ]*\(" >/dev/null 2>&1; then :
39892 ice_cv_have_fread_decl=yes
39896 if test "$ice_cv_have_fread_decl" = yes; then
39899 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39901 /* end confdefs.h. */
39905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39906 $EGREP "${ice_re_word}fread[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39907 ice_cv_have_fread_decl=yes
39911 if test "$ice_cv_have_fread_decl" = yes; then
39918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fread_decl" >&5
39919 $as_echo "$ice_cv_have_fread_decl" >&6; }
39920 if test "$ice_cv_have_fread_decl" = yes; then
39922 cat >>confdefs.h <<_ACEOF
39923 #define HAVE_FREAD_DECL 1
39931 for ac_func in fseek
39933 ac_fn_c_check_func "$LINENO" "fseek" "ac_cv_func_fseek"
39934 if test "x$ac_cv_func_fseek" = xyes; then :
39935 cat >>confdefs.h <<_ACEOF
39936 #define HAVE_FSEEK 1
39942 if test "${ice_have_fseek}" = yes; then
39943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseek declaration in stdio.h" >&5
39944 $as_echo_n "checking for fseek declaration in stdio.h... " >&6; }
39945 if ${ice_cv_have_fseek_decl+:} false; then :
39946 $as_echo_n "(cached) " >&6
39949 ice_cv_have_fseek_decl=no
39950 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39951 ice_re_word='(^|[^a-zA-Z0-9_])'
39952 for header in stdio.h; do
39953 # Check for ordinary declaration
39954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39955 /* end confdefs.h. */
39959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39960 $EGREP "${ice_re_word}fseek[ ]*\(" >/dev/null 2>&1; then :
39961 ice_cv_have_fseek_decl=yes
39965 if test "$ice_cv_have_fseek_decl" = yes; then
39968 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39970 /* end confdefs.h. */
39974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39975 $EGREP "${ice_re_word}fseek[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39976 ice_cv_have_fseek_decl=yes
39980 if test "$ice_cv_have_fseek_decl" = yes; then
39987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fseek_decl" >&5
39988 $as_echo "$ice_cv_have_fseek_decl" >&6; }
39989 if test "$ice_cv_have_fseek_decl" = yes; then
39991 cat >>confdefs.h <<_ACEOF
39992 #define HAVE_FSEEK_DECL 1
40000 for ac_func in fwrite
40002 ac_fn_c_check_func "$LINENO" "fwrite" "ac_cv_func_fwrite"
40003 if test "x$ac_cv_func_fwrite" = xyes; then :
40004 cat >>confdefs.h <<_ACEOF
40005 #define HAVE_FWRITE 1
40007 ice_have_fwrite=yes
40011 if test "${ice_have_fwrite}" = yes; then
40012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fwrite declaration in stdio.h stdlib.h" >&5
40013 $as_echo_n "checking for fwrite declaration in stdio.h stdlib.h... " >&6; }
40014 if ${ice_cv_have_fwrite_decl+:} false; then :
40015 $as_echo_n "(cached) " >&6
40018 ice_cv_have_fwrite_decl=no
40019 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40020 ice_re_word='(^|[^a-zA-Z0-9_])'
40021 for header in stdio.h stdlib.h; do
40022 # Check for ordinary declaration
40023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40024 /* end confdefs.h. */
40028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40029 $EGREP "${ice_re_word}fwrite[ ]*\(" >/dev/null 2>&1; then :
40030 ice_cv_have_fwrite_decl=yes
40034 if test "$ice_cv_have_fwrite_decl" = yes; then
40037 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40039 /* end confdefs.h. */
40043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40044 $EGREP "${ice_re_word}fwrite[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40045 ice_cv_have_fwrite_decl=yes
40049 if test "$ice_cv_have_fwrite_decl" = yes; then
40056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fwrite_decl" >&5
40057 $as_echo "$ice_cv_have_fwrite_decl" >&6; }
40058 if test "$ice_cv_have_fwrite_decl" = yes; then
40060 cat >>confdefs.h <<_ACEOF
40061 #define HAVE_FWRITE_DECL 1
40067 for ac_func in getgrgid_r
40069 ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r"
40070 if test "x$ac_cv_func_getgrgid_r" = xyes; then :
40071 cat >>confdefs.h <<_ACEOF
40072 #define HAVE_GETGRGID_R 1
40078 for ac_func in getpwuid_r
40080 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
40081 if test "x$ac_cv_func_getpwuid_r" = xyes; then :
40082 cat >>confdefs.h <<_ACEOF
40083 #define HAVE_GETPWUID_R 1
40090 ice_have_gethostname=no
40091 for ac_func in gethostname
40093 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
40094 if test "x$ac_cv_func_gethostname" = xyes; then :
40095 cat >>confdefs.h <<_ACEOF
40096 #define HAVE_GETHOSTNAME 1
40098 ice_have_gethostname=yes
40102 if test "${ice_have_gethostname}" = yes; then
40103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname declaration in unistd.h" >&5
40104 $as_echo_n "checking for gethostname declaration in unistd.h... " >&6; }
40105 if ${ice_cv_have_gethostname_decl+:} false; then :
40106 $as_echo_n "(cached) " >&6
40109 ice_cv_have_gethostname_decl=no
40110 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40111 ice_re_word='(^|[^a-zA-Z0-9_])'
40112 for header in unistd.h; do
40113 # Check for ordinary declaration
40114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40115 /* end confdefs.h. */
40119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40120 $EGREP "${ice_re_word}gethostname[ ]*\(" >/dev/null 2>&1; then :
40121 ice_cv_have_gethostname_decl=yes
40125 if test "$ice_cv_have_gethostname_decl" = yes; then
40128 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40130 /* end confdefs.h. */
40134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40135 $EGREP "${ice_re_word}gethostname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40136 ice_cv_have_gethostname_decl=yes
40140 if test "$ice_cv_have_gethostname_decl" = yes; then
40147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_gethostname_decl" >&5
40148 $as_echo "$ice_cv_have_gethostname_decl" >&6; }
40149 if test "$ice_cv_have_gethostname_decl" = yes; then
40151 cat >>confdefs.h <<_ACEOF
40152 #define HAVE_GETHOSTNAME_DECL 1
40160 for ac_func in getopt
40162 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
40163 if test "x$ac_cv_func_getopt" = xyes; then :
40164 cat >>confdefs.h <<_ACEOF
40165 #define HAVE_GETOPT 1
40167 ice_have_getopt=yes
40171 if test "${ice_have_getopt}" = yes; then
40172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
40173 $as_echo_n "checking for getopt declaration in stdlib.h unistd.h libc.h... " >&6; }
40174 if ${ice_cv_have_getopt_decl+:} false; then :
40175 $as_echo_n "(cached) " >&6
40178 ice_cv_have_getopt_decl=no
40179 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40180 ice_re_word='(^|[^a-zA-Z0-9_])'
40181 for header in stdlib.h unistd.h libc.h; do
40182 # Check for ordinary declaration
40183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40184 /* end confdefs.h. */
40188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40189 $EGREP "${ice_re_word}getopt[ ]*\(" >/dev/null 2>&1; then :
40190 ice_cv_have_getopt_decl=yes
40194 if test "$ice_cv_have_getopt_decl" = yes; then
40197 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40199 /* end confdefs.h. */
40203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40204 $EGREP "${ice_re_word}getopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40205 ice_cv_have_getopt_decl=yes
40209 if test "$ice_cv_have_getopt_decl" = yes; then
40216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getopt_decl" >&5
40217 $as_echo "$ice_cv_have_getopt_decl" >&6; }
40218 if test "$ice_cv_have_getopt_decl" = yes; then
40220 cat >>confdefs.h <<_ACEOF
40221 #define HAVE_GETOPT_DECL 1
40228 ice_have_getpeername=no
40229 for ac_func in getpeername
40231 ac_fn_c_check_func "$LINENO" "getpeername" "ac_cv_func_getpeername"
40232 if test "x$ac_cv_func_getpeername" = xyes; then :
40233 cat >>confdefs.h <<_ACEOF
40234 #define HAVE_GETPEERNAME 1
40236 ice_have_getpeername=yes
40240 if test "${ice_have_getpeername}" = yes; then
40241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
40242 $as_echo_n "checking for getpeername declaration in sys/types.h sys/socket.h... " >&6; }
40243 if ${ice_cv_have_getpeername_decl+:} false; then :
40244 $as_echo_n "(cached) " >&6
40247 ice_cv_have_getpeername_decl=no
40248 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40249 ice_re_word='(^|[^a-zA-Z0-9_])'
40250 for header in sys/types.h sys/socket.h; do
40251 # Check for ordinary declaration
40252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40253 /* end confdefs.h. */
40257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40258 $EGREP "${ice_re_word}getpeername[ ]*\(" >/dev/null 2>&1; then :
40259 ice_cv_have_getpeername_decl=yes
40263 if test "$ice_cv_have_getpeername_decl" = yes; then
40266 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40268 /* end confdefs.h. */
40272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40273 $EGREP "${ice_re_word}getpeername[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40274 ice_cv_have_getpeername_decl=yes
40278 if test "$ice_cv_have_getpeername_decl" = yes; then
40285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getpeername_decl" >&5
40286 $as_echo "$ice_cv_have_getpeername_decl" >&6; }
40287 if test "$ice_cv_have_getpeername_decl" = yes; then
40289 cat >>confdefs.h <<_ACEOF
40290 #define HAVE_GETPEERNAME_DECL 1
40296 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
40297 if test "x$ac_cv_func_getpgrp" = xyes; then :
40301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
40302 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
40303 if ${ac_cv_func_getpgrp_void+:} false; then :
40304 $as_echo_n "(cached) " >&6
40306 # Use it with a single arg.
40307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40308 /* end confdefs.h. */
40309 $ac_includes_default
40318 if ac_fn_c_try_compile "$LINENO"; then :
40319 ac_cv_func_getpgrp_void=no
40321 ac_cv_func_getpgrp_void=yes
40323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
40327 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
40328 if test $ac_cv_func_getpgrp_void = yes; then
40330 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
40335 ice_have_getsockname=no
40336 for ac_func in getsockname
40338 ac_fn_c_check_func "$LINENO" "getsockname" "ac_cv_func_getsockname"
40339 if test "x$ac_cv_func_getsockname" = xyes; then :
40340 cat >>confdefs.h <<_ACEOF
40341 #define HAVE_GETSOCKNAME 1
40343 ice_have_getsockname=yes
40347 if test "${ice_have_getsockname}" = yes; then
40348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
40349 $as_echo_n "checking for getsockname declaration in sys/types.h sys/socket.h... " >&6; }
40350 if ${ice_cv_have_getsockname_decl+:} false; then :
40351 $as_echo_n "(cached) " >&6
40354 ice_cv_have_getsockname_decl=no
40355 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40356 ice_re_word='(^|[^a-zA-Z0-9_])'
40357 for header in sys/types.h sys/socket.h; do
40358 # Check for ordinary declaration
40359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40360 /* end confdefs.h. */
40364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40365 $EGREP "${ice_re_word}getsockname[ ]*\(" >/dev/null 2>&1; then :
40366 ice_cv_have_getsockname_decl=yes
40370 if test "$ice_cv_have_getsockname_decl" = yes; then
40373 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40375 /* end confdefs.h. */
40379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40380 $EGREP "${ice_re_word}getsockname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40381 ice_cv_have_getsockname_decl=yes
40385 if test "$ice_cv_have_getsockname_decl" = yes; then
40392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getsockname_decl" >&5
40393 $as_echo "$ice_cv_have_getsockname_decl" >&6; }
40394 if test "$ice_cv_have_getsockname_decl" = yes; then
40396 cat >>confdefs.h <<_ACEOF
40397 #define HAVE_GETSOCKNAME_DECL 1
40404 ice_have_getsockopt=no
40405 for ac_func in getsockopt
40407 ac_fn_c_check_func "$LINENO" "getsockopt" "ac_cv_func_getsockopt"
40408 if test "x$ac_cv_func_getsockopt" = xyes; then :
40409 cat >>confdefs.h <<_ACEOF
40410 #define HAVE_GETSOCKOPT 1
40412 ice_have_getsockopt=yes
40416 if test "${ice_have_getsockopt}" = yes; then
40417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
40418 $as_echo_n "checking for getsockopt declaration in sys/types.h sys/socket.h... " >&6; }
40419 if ${ice_cv_have_getsockopt_decl+:} false; then :
40420 $as_echo_n "(cached) " >&6
40423 ice_cv_have_getsockopt_decl=no
40424 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40425 ice_re_word='(^|[^a-zA-Z0-9_])'
40426 for header in sys/types.h sys/socket.h; do
40427 # Check for ordinary declaration
40428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40429 /* end confdefs.h. */
40433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40434 $EGREP "${ice_re_word}getsockopt[ ]*\(" >/dev/null 2>&1; then :
40435 ice_cv_have_getsockopt_decl=yes
40439 if test "$ice_cv_have_getsockopt_decl" = yes; then
40442 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40444 /* end confdefs.h. */
40448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40449 $EGREP "${ice_re_word}getsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40450 ice_cv_have_getsockopt_decl=yes
40454 if test "$ice_cv_have_getsockopt_decl" = yes; then
40461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getsockopt_decl" >&5
40462 $as_echo "$ice_cv_have_getsockopt_decl" >&6; }
40463 if test "$ice_cv_have_getsockopt_decl" = yes; then
40465 cat >>confdefs.h <<_ACEOF
40466 #define HAVE_GETSOCKOPT_DECL 1
40473 ice_have_initgroups=no
40474 for ac_func in initgroups
40476 ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
40477 if test "x$ac_cv_func_initgroups" = xyes; then :
40478 cat >>confdefs.h <<_ACEOF
40479 #define HAVE_INITGROUPS 1
40481 ice_have_initgroups=yes
40485 if test "${ice_have_initgroups}" = yes; then
40486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
40487 $as_echo_n "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... " >&6; }
40488 if ${ice_cv_have_initgroups_decl+:} false; then :
40489 $as_echo_n "(cached) " >&6
40492 ice_cv_have_initgroups_decl=no
40493 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40494 ice_re_word='(^|[^a-zA-Z0-9_])'
40495 for header in grp.h sys/types.h unistd.h libc.h; do
40496 # Check for ordinary declaration
40497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40498 /* end confdefs.h. */
40502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40503 $EGREP "${ice_re_word}initgroups[ ]*\(" >/dev/null 2>&1; then :
40504 ice_cv_have_initgroups_decl=yes
40508 if test "$ice_cv_have_initgroups_decl" = yes; then
40511 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40513 /* end confdefs.h. */
40517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40518 $EGREP "${ice_re_word}initgroups[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40519 ice_cv_have_initgroups_decl=yes
40523 if test "$ice_cv_have_initgroups_decl" = yes; then
40530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_initgroups_decl" >&5
40531 $as_echo "$ice_cv_have_initgroups_decl" >&6; }
40532 if test "$ice_cv_have_initgroups_decl" = yes; then
40534 cat >>confdefs.h <<_ACEOF
40535 #define HAVE_INITGROUPS_DECL 1
40543 for ac_func in ioctl
40545 ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl"
40546 if test "x$ac_cv_func_ioctl" = xyes; then :
40547 cat >>confdefs.h <<_ACEOF
40548 #define HAVE_IOCTL 1
40554 if test "${ice_have_ioctl}" = yes; then
40555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
40556 $as_echo_n "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... " >&6; }
40557 if ${ice_cv_have_ioctl_decl+:} false; then :
40558 $as_echo_n "(cached) " >&6
40561 ice_cv_have_ioctl_decl=no
40562 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40563 ice_re_word='(^|[^a-zA-Z0-9_])'
40564 for header in sys/ioctl.h unistd.h libc.h; do
40565 # Check for ordinary declaration
40566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40567 /* end confdefs.h. */
40571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40572 $EGREP "${ice_re_word}ioctl[ ]*\(" >/dev/null 2>&1; then :
40573 ice_cv_have_ioctl_decl=yes
40577 if test "$ice_cv_have_ioctl_decl" = yes; then
40580 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40582 /* end confdefs.h. */
40586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40587 $EGREP "${ice_re_word}ioctl[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40588 ice_cv_have_ioctl_decl=yes
40592 if test "$ice_cv_have_ioctl_decl" = yes; then
40599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_ioctl_decl" >&5
40600 $as_echo "$ice_cv_have_ioctl_decl" >&6; }
40601 if test "$ice_cv_have_ioctl_decl" = yes; then
40603 cat >>confdefs.h <<_ACEOF
40604 #define HAVE_IOCTL_DECL 1
40611 ice_have_isnormal=no
40612 for ac_func in isnormal
40614 ac_fn_c_check_func "$LINENO" "isnormal" "ac_cv_func_isnormal"
40615 if test "x$ac_cv_func_isnormal" = xyes; then :
40616 cat >>confdefs.h <<_ACEOF
40617 #define HAVE_ISNORMAL 1
40619 ice_have_isnormal=yes
40623 if test "${ice_have_isnormal}" = yes; then
40624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnormal declaration in math.h" >&5
40625 $as_echo_n "checking for isnormal declaration in math.h... " >&6; }
40626 if ${ice_cv_have_isnormal_decl+:} false; then :
40627 $as_echo_n "(cached) " >&6
40630 ice_cv_have_isnormal_decl=no
40631 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40632 ice_re_word='(^|[^a-zA-Z0-9_])'
40633 for header in math.h; do
40634 # Check for ordinary declaration
40635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40636 /* end confdefs.h. */
40640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40641 $EGREP "${ice_re_word}isnormal[ ]*\(" >/dev/null 2>&1; then :
40642 ice_cv_have_isnormal_decl=yes
40646 if test "$ice_cv_have_isnormal_decl" = yes; then
40649 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40651 /* end confdefs.h. */
40655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40656 $EGREP "${ice_re_word}isnormal[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40657 ice_cv_have_isnormal_decl=yes
40661 if test "$ice_cv_have_isnormal_decl" = yes; then
40668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_isnormal_decl" >&5
40669 $as_echo "$ice_cv_have_isnormal_decl" >&6; }
40670 if test "$ice_cv_have_isnormal_decl" = yes; then
40672 cat >>confdefs.h <<_ACEOF
40673 #define HAVE_ISNORMAL_DECL 1
40681 for ac_func in listen
40683 ac_fn_c_check_func "$LINENO" "listen" "ac_cv_func_listen"
40684 if test "x$ac_cv_func_listen" = xyes; then :
40685 cat >>confdefs.h <<_ACEOF
40686 #define HAVE_LISTEN 1
40688 ice_have_listen=yes
40692 if test "${ice_have_listen}" = yes; then
40693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for listen declaration in sys/types.h sys/socket.h" >&5
40694 $as_echo_n "checking for listen declaration in sys/types.h sys/socket.h... " >&6; }
40695 if ${ice_cv_have_listen_decl+:} false; then :
40696 $as_echo_n "(cached) " >&6
40699 ice_cv_have_listen_decl=no
40700 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40701 ice_re_word='(^|[^a-zA-Z0-9_])'
40702 for header in sys/types.h sys/socket.h; do
40703 # Check for ordinary declaration
40704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40705 /* end confdefs.h. */
40709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40710 $EGREP "${ice_re_word}listen[ ]*\(" >/dev/null 2>&1; then :
40711 ice_cv_have_listen_decl=yes
40715 if test "$ice_cv_have_listen_decl" = yes; then
40718 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40720 /* end confdefs.h. */
40724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40725 $EGREP "${ice_re_word}listen[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40726 ice_cv_have_listen_decl=yes
40730 if test "$ice_cv_have_listen_decl" = yes; then
40737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_listen_decl" >&5
40738 $as_echo "$ice_cv_have_listen_decl" >&6; }
40739 if test "$ice_cv_have_listen_decl" = yes; then
40741 cat >>confdefs.h <<_ACEOF
40742 #define HAVE_LISTEN_DECL 1
40750 for ac_func in lstat
40752 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
40753 if test "x$ac_cv_func_lstat" = xyes; then :
40754 cat >>confdefs.h <<_ACEOF
40755 #define HAVE_LSTAT 1
40761 if test "${ice_have_lstat}" = yes; then
40762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat declaration in sys/types.h sys/stat.h" >&5
40763 $as_echo_n "checking for lstat declaration in sys/types.h sys/stat.h... " >&6; }
40764 if ${ice_cv_have_lstat_decl+:} false; then :
40765 $as_echo_n "(cached) " >&6
40768 ice_cv_have_lstat_decl=no
40769 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40770 ice_re_word='(^|[^a-zA-Z0-9_])'
40771 for header in sys/types.h sys/stat.h; do
40772 # Check for ordinary declaration
40773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40774 /* end confdefs.h. */
40778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40779 $EGREP "${ice_re_word}lstat[ ]*\(" >/dev/null 2>&1; then :
40780 ice_cv_have_lstat_decl=yes
40784 if test "$ice_cv_have_lstat_decl" = yes; then
40787 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40789 /* end confdefs.h. */
40793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40794 $EGREP "${ice_re_word}lstat[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40795 ice_cv_have_lstat_decl=yes
40799 if test "$ice_cv_have_lstat_decl" = yes; then
40806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_lstat_decl" >&5
40807 $as_echo "$ice_cv_have_lstat_decl" >&6; }
40808 if test "$ice_cv_have_lstat_decl" = yes; then
40810 cat >>confdefs.h <<_ACEOF
40811 #define HAVE_LSTAT_DECL 1
40819 for ac_func in malloc
40821 ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
40822 if test "x$ac_cv_func_malloc" = xyes; then :
40823 cat >>confdefs.h <<_ACEOF
40824 #define HAVE_MALLOC 1
40826 ice_have_malloc=yes
40830 if test "${ice_have_malloc}" = yes; then
40831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc declaration in stdlib.h" >&5
40832 $as_echo_n "checking for malloc declaration in stdlib.h... " >&6; }
40833 if ${ice_cv_have_malloc_decl+:} false; then :
40834 $as_echo_n "(cached) " >&6
40837 ice_cv_have_malloc_decl=no
40838 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40839 ice_re_word='(^|[^a-zA-Z0-9_])'
40840 for header in stdlib.h; do
40841 # Check for ordinary declaration
40842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40843 /* end confdefs.h. */
40847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40848 $EGREP "${ice_re_word}malloc[ ]*\(" >/dev/null 2>&1; then :
40849 ice_cv_have_malloc_decl=yes
40853 if test "$ice_cv_have_malloc_decl" = yes; then
40856 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40858 /* end confdefs.h. */
40862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40863 $EGREP "${ice_re_word}malloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40864 ice_cv_have_malloc_decl=yes
40868 if test "$ice_cv_have_malloc_decl" = yes; then
40875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_malloc_decl" >&5
40876 $as_echo "$ice_cv_have_malloc_decl" >&6; }
40877 if test "$ice_cv_have_malloc_decl" = yes; then
40879 cat >>confdefs.h <<_ACEOF
40880 #define HAVE_MALLOC_DECL 1
40887 ice_have_memmove=no
40888 for ac_func in memmove
40890 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
40891 if test "x$ac_cv_func_memmove" = xyes; then :
40892 cat >>confdefs.h <<_ACEOF
40893 #define HAVE_MEMMOVE 1
40895 ice_have_memmove=yes
40899 if test "${ice_have_memmove}" = yes; then
40900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memmove declaration in string.h strings.h" >&5
40901 $as_echo_n "checking for memmove declaration in string.h strings.h... " >&6; }
40902 if ${ice_cv_have_memmove_decl+:} false; then :
40903 $as_echo_n "(cached) " >&6
40906 ice_cv_have_memmove_decl=no
40907 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40908 ice_re_word='(^|[^a-zA-Z0-9_])'
40909 for header in string.h strings.h; do
40910 # Check for ordinary declaration
40911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40912 /* end confdefs.h. */
40916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40917 $EGREP "${ice_re_word}memmove[ ]*\(" >/dev/null 2>&1; then :
40918 ice_cv_have_memmove_decl=yes
40922 if test "$ice_cv_have_memmove_decl" = yes; then
40925 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40927 /* end confdefs.h. */
40931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40932 $EGREP "${ice_re_word}memmove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40933 ice_cv_have_memmove_decl=yes
40937 if test "$ice_cv_have_memmove_decl" = yes; then
40944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_memmove_decl" >&5
40945 $as_echo "$ice_cv_have_memmove_decl" >&6; }
40946 if test "$ice_cv_have_memmove_decl" = yes; then
40948 cat >>confdefs.h <<_ACEOF
40949 #define HAVE_MEMMOVE_DECL 1
40957 for ac_func in memset
40959 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
40960 if test "x$ac_cv_func_memset" = xyes; then :
40961 cat >>confdefs.h <<_ACEOF
40962 #define HAVE_MEMSET 1
40964 ice_have_memset=yes
40968 if test "${ice_have_memset}" = yes; then
40969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memset declaration in string.h strings.h" >&5
40970 $as_echo_n "checking for memset declaration in string.h strings.h... " >&6; }
40971 if ${ice_cv_have_memset_decl+:} false; then :
40972 $as_echo_n "(cached) " >&6
40975 ice_cv_have_memset_decl=no
40976 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40977 ice_re_word='(^|[^a-zA-Z0-9_])'
40978 for header in string.h strings.h; do
40979 # Check for ordinary declaration
40980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40981 /* end confdefs.h. */
40985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40986 $EGREP "${ice_re_word}memset[ ]*\(" >/dev/null 2>&1; then :
40987 ice_cv_have_memset_decl=yes
40991 if test "$ice_cv_have_memset_decl" = yes; then
40994 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40996 /* end confdefs.h. */
41000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41001 $EGREP "${ice_re_word}memset[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41002 ice_cv_have_memset_decl=yes
41006 if test "$ice_cv_have_memset_decl" = yes; then
41013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_memset_decl" >&5
41014 $as_echo "$ice_cv_have_memset_decl" >&6; }
41015 if test "$ice_cv_have_memset_decl" = yes; then
41017 cat >>confdefs.h <<_ACEOF
41018 #define HAVE_MEMSET_DECL 1
41025 ice_have_mkstemp=no
41026 for ac_func in mkstemp
41028 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
41029 if test "x$ac_cv_func_mkstemp" = xyes; then :
41030 cat >>confdefs.h <<_ACEOF
41031 #define HAVE_MKSTEMP 1
41033 ice_have_mkstemp=yes
41037 if test "${ice_have_mkstemp}" = yes; then
41038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkstemp declaration in stdlib.h" >&5
41039 $as_echo_n "checking for mkstemp declaration in stdlib.h... " >&6; }
41040 if ${ice_cv_have_mkstemp_decl+:} false; then :
41041 $as_echo_n "(cached) " >&6
41044 ice_cv_have_mkstemp_decl=no
41045 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41046 ice_re_word='(^|[^a-zA-Z0-9_])'
41047 for header in stdlib.h; do
41048 # Check for ordinary declaration
41049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41050 /* end confdefs.h. */
41054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41055 $EGREP "${ice_re_word}mkstemp[ ]*\(" >/dev/null 2>&1; then :
41056 ice_cv_have_mkstemp_decl=yes
41060 if test "$ice_cv_have_mkstemp_decl" = yes; then
41063 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41065 /* end confdefs.h. */
41069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41070 $EGREP "${ice_re_word}mkstemp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41071 ice_cv_have_mkstemp_decl=yes
41075 if test "$ice_cv_have_mkstemp_decl" = yes; then
41082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_mkstemp_decl" >&5
41083 $as_echo "$ice_cv_have_mkstemp_decl" >&6; }
41084 if test "$ice_cv_have_mkstemp_decl" = yes; then
41086 cat >>confdefs.h <<_ACEOF
41087 #define HAVE_MKSTEMP_DECL 1
41095 for ac_func in mktemp
41097 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
41098 if test "x$ac_cv_func_mktemp" = xyes; then :
41099 cat >>confdefs.h <<_ACEOF
41100 #define HAVE_MKTEMP 1
41102 ice_have_mktemp=yes
41106 if test "${ice_have_mktemp}" = yes; then
41107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mktemp declaration in stdlib.h" >&5
41108 $as_echo_n "checking for mktemp declaration in stdlib.h... " >&6; }
41109 if ${ice_cv_have_mktemp_decl+:} false; then :
41110 $as_echo_n "(cached) " >&6
41113 ice_cv_have_mktemp_decl=no
41114 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41115 ice_re_word='(^|[^a-zA-Z0-9_])'
41116 for header in stdlib.h; do
41117 # Check for ordinary declaration
41118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41119 /* end confdefs.h. */
41123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41124 $EGREP "${ice_re_word}mktemp[ ]*\(" >/dev/null 2>&1; then :
41125 ice_cv_have_mktemp_decl=yes
41129 if test "$ice_cv_have_mktemp_decl" = yes; then
41132 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41134 /* end confdefs.h. */
41138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41139 $EGREP "${ice_re_word}mktemp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41140 ice_cv_have_mktemp_decl=yes
41144 if test "$ice_cv_have_mktemp_decl" = yes; then
41151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_mktemp_decl" >&5
41152 $as_echo "$ice_cv_have_mktemp_decl" >&6; }
41153 if test "$ice_cv_have_mktemp_decl" = yes; then
41155 cat >>confdefs.h <<_ACEOF
41156 #define HAVE_MKTEMP_DECL 1
41164 for ac_func in mktime
41166 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
41167 if test "x$ac_cv_func_mktime" = xyes; then :
41168 cat >>confdefs.h <<_ACEOF
41169 #define HAVE_MKTIME 1
41171 ice_have_mktime=yes
41175 if test "${ice_have_mktime}" = yes; then
41176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mktime declaration in time.h sys/time.h" >&5
41177 $as_echo_n "checking for mktime declaration in time.h sys/time.h... " >&6; }
41178 if ${ice_cv_have_mktime_decl+:} false; then :
41179 $as_echo_n "(cached) " >&6
41182 ice_cv_have_mktime_decl=no
41183 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41184 ice_re_word='(^|[^a-zA-Z0-9_])'
41185 for header in time.h sys/time.h; do
41186 # Check for ordinary declaration
41187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41188 /* end confdefs.h. */
41192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41193 $EGREP "${ice_re_word}mktime[ ]*\(" >/dev/null 2>&1; then :
41194 ice_cv_have_mktime_decl=yes
41198 if test "$ice_cv_have_mktime_decl" = yes; then
41201 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41203 /* end confdefs.h. */
41207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41208 $EGREP "${ice_re_word}mktime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41209 ice_cv_have_mktime_decl=yes
41213 if test "$ice_cv_have_mktime_decl" = yes; then
41220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_mktime_decl" >&5
41221 $as_echo "$ice_cv_have_mktime_decl" >&6; }
41222 if test "$ice_cv_have_mktime_decl" = yes; then
41224 cat >>confdefs.h <<_ACEOF
41225 #define HAVE_MKTIME_DECL 1
41231 for ac_func in on_exit
41233 ac_fn_c_check_func "$LINENO" "on_exit" "ac_cv_func_on_exit"
41234 if test "x$ac_cv_func_on_exit" = xyes; then :
41235 cat >>confdefs.h <<_ACEOF
41236 #define HAVE_ON_EXIT 1
41243 ice_have_openlog=no
41244 for ac_func in openlog
41246 ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
41247 if test "x$ac_cv_func_openlog" = xyes; then :
41248 cat >>confdefs.h <<_ACEOF
41249 #define HAVE_OPENLOG 1
41251 ice_have_openlog=yes
41255 if test "${ice_have_openlog}" = yes; then
41256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openlog declaration in syslog.h" >&5
41257 $as_echo_n "checking for openlog declaration in syslog.h... " >&6; }
41258 if ${ice_cv_have_openlog_decl+:} false; then :
41259 $as_echo_n "(cached) " >&6
41262 ice_cv_have_openlog_decl=no
41263 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41264 ice_re_word='(^|[^a-zA-Z0-9_])'
41265 for header in syslog.h; do
41266 # Check for ordinary declaration
41267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41268 /* end confdefs.h. */
41272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41273 $EGREP "${ice_re_word}openlog[ ]*\(" >/dev/null 2>&1; then :
41274 ice_cv_have_openlog_decl=yes
41278 if test "$ice_cv_have_openlog_decl" = yes; then
41281 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41283 /* end confdefs.h. */
41287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41288 $EGREP "${ice_re_word}openlog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41289 ice_cv_have_openlog_decl=yes
41293 if test "$ice_cv_have_openlog_decl" = yes; then
41300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_openlog_decl" >&5
41301 $as_echo "$ice_cv_have_openlog_decl" >&6; }
41302 if test "$ice_cv_have_openlog_decl" = yes; then
41304 cat >>confdefs.h <<_ACEOF
41305 #define HAVE_OPENLOG_DECL 1
41313 for ac_func in pclose
41315 ac_fn_c_check_func "$LINENO" "pclose" "ac_cv_func_pclose"
41316 if test "x$ac_cv_func_pclose" = xyes; then :
41317 cat >>confdefs.h <<_ACEOF
41318 #define HAVE_PCLOSE 1
41320 ice_have_pclose=yes
41324 if test "${ice_have_pclose}" = yes; then
41325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pclose declaration in stdio.h" >&5
41326 $as_echo_n "checking for pclose declaration in stdio.h... " >&6; }
41327 if ${ice_cv_have_pclose_decl+:} false; then :
41328 $as_echo_n "(cached) " >&6
41331 ice_cv_have_pclose_decl=no
41332 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41333 ice_re_word='(^|[^a-zA-Z0-9_])'
41334 for header in stdio.h; do
41335 # Check for ordinary declaration
41336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41337 /* end confdefs.h. */
41341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41342 $EGREP "${ice_re_word}pclose[ ]*\(" >/dev/null 2>&1; then :
41343 ice_cv_have_pclose_decl=yes
41347 if test "$ice_cv_have_pclose_decl" = yes; then
41350 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41352 /* end confdefs.h. */
41356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41357 $EGREP "${ice_re_word}pclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41358 ice_cv_have_pclose_decl=yes
41362 if test "$ice_cv_have_pclose_decl" = yes; then
41369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_pclose_decl" >&5
41370 $as_echo "$ice_cv_have_pclose_decl" >&6; }
41371 if test "$ice_cv_have_pclose_decl" = yes; then
41373 cat >>confdefs.h <<_ACEOF
41374 #define HAVE_PCLOSE_DECL 1
41382 for ac_func in perror
41384 ac_fn_c_check_func "$LINENO" "perror" "ac_cv_func_perror"
41385 if test "x$ac_cv_func_perror" = xyes; then :
41386 cat >>confdefs.h <<_ACEOF
41387 #define HAVE_PERROR 1
41389 ice_have_perror=yes
41393 if test "${ice_have_perror}" = yes; then
41394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perror declaration in stdio.h" >&5
41395 $as_echo_n "checking for perror declaration in stdio.h... " >&6; }
41396 if ${ice_cv_have_perror_decl+:} false; then :
41397 $as_echo_n "(cached) " >&6
41400 ice_cv_have_perror_decl=no
41401 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41402 ice_re_word='(^|[^a-zA-Z0-9_])'
41403 for header in stdio.h; do
41404 # Check for ordinary declaration
41405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41406 /* end confdefs.h. */
41410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41411 $EGREP "${ice_re_word}perror[ ]*\(" >/dev/null 2>&1; then :
41412 ice_cv_have_perror_decl=yes
41416 if test "$ice_cv_have_perror_decl" = yes; then
41419 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41421 /* end confdefs.h. */
41425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41426 $EGREP "${ice_re_word}perror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41427 ice_cv_have_perror_decl=yes
41431 if test "$ice_cv_have_perror_decl" = yes; then
41438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_perror_decl" >&5
41439 $as_echo "$ice_cv_have_perror_decl" >&6; }
41440 if test "$ice_cv_have_perror_decl" = yes; then
41442 cat >>confdefs.h <<_ACEOF
41443 #define HAVE_PERROR_DECL 1
41451 for ac_func in printf
41453 ac_fn_c_check_func "$LINENO" "printf" "ac_cv_func_printf"
41454 if test "x$ac_cv_func_printf" = xyes; then :
41455 cat >>confdefs.h <<_ACEOF
41456 #define HAVE_PRINTF 1
41458 ice_have_printf=yes
41462 if test "${ice_have_printf}" = yes; then
41463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf declaration in stdio.h" >&5
41464 $as_echo_n "checking for printf declaration in stdio.h... " >&6; }
41465 if ${ice_cv_have_printf_decl+:} false; then :
41466 $as_echo_n "(cached) " >&6
41469 ice_cv_have_printf_decl=no
41470 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41471 ice_re_word='(^|[^a-zA-Z0-9_])'
41472 for header in stdio.h; do
41473 # Check for ordinary declaration
41474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41475 /* end confdefs.h. */
41479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41480 $EGREP "${ice_re_word}printf[ ]*\(" >/dev/null 2>&1; then :
41481 ice_cv_have_printf_decl=yes
41485 if test "$ice_cv_have_printf_decl" = yes; then
41488 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41490 /* end confdefs.h. */
41494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41495 $EGREP "${ice_re_word}printf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41496 ice_cv_have_printf_decl=yes
41500 if test "$ice_cv_have_printf_decl" = yes; then
41507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_printf_decl" >&5
41508 $as_echo "$ice_cv_have_printf_decl" >&6; }
41509 if test "$ice_cv_have_printf_decl" = yes; then
41511 cat >>confdefs.h <<_ACEOF
41512 #define HAVE_PRINTF_DECL 1
41518 for ac_func in putenv
41520 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
41521 if test "x$ac_cv_func_putenv" = xyes; then :
41522 cat >>confdefs.h <<_ACEOF
41523 #define HAVE_PUTENV 1
41531 for ac_func in puts
41533 ac_fn_c_check_func "$LINENO" "puts" "ac_cv_func_puts"
41534 if test "x$ac_cv_func_puts" = xyes; then :
41535 cat >>confdefs.h <<_ACEOF
41536 #define HAVE_PUTS 1
41542 if test "${ice_have_puts}" = yes; then
41543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts declaration in stdio.h" >&5
41544 $as_echo_n "checking for puts declaration in stdio.h... " >&6; }
41545 if ${ice_cv_have_puts_decl+:} false; then :
41546 $as_echo_n "(cached) " >&6
41549 ice_cv_have_puts_decl=no
41550 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41551 ice_re_word='(^|[^a-zA-Z0-9_])'
41552 for header in stdio.h; do
41553 # Check for ordinary declaration
41554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41555 /* end confdefs.h. */
41559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41560 $EGREP "${ice_re_word}puts[ ]*\(" >/dev/null 2>&1; then :
41561 ice_cv_have_puts_decl=yes
41565 if test "$ice_cv_have_puts_decl" = yes; then
41568 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41570 /* end confdefs.h. */
41574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41575 $EGREP "${ice_re_word}puts[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41576 ice_cv_have_puts_decl=yes
41580 if test "$ice_cv_have_puts_decl" = yes; then
41587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_puts_decl" >&5
41588 $as_echo "$ice_cv_have_puts_decl" >&6; }
41589 if test "$ice_cv_have_puts_decl" = yes; then
41591 cat >>confdefs.h <<_ACEOF
41592 #define HAVE_PUTS_DECL 1
41599 ice_have_realloc=no
41600 for ac_func in realloc
41602 ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
41603 if test "x$ac_cv_func_realloc" = xyes; then :
41604 cat >>confdefs.h <<_ACEOF
41605 #define HAVE_REALLOC 1
41607 ice_have_realloc=yes
41611 if test "${ice_have_realloc}" = yes; then
41612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for realloc declaration in stdlib.h" >&5
41613 $as_echo_n "checking for realloc declaration in stdlib.h... " >&6; }
41614 if ${ice_cv_have_realloc_decl+:} false; then :
41615 $as_echo_n "(cached) " >&6
41618 ice_cv_have_realloc_decl=no
41619 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41620 ice_re_word='(^|[^a-zA-Z0-9_])'
41621 for header in stdlib.h; do
41622 # Check for ordinary declaration
41623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41624 /* end confdefs.h. */
41628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41629 $EGREP "${ice_re_word}realloc[ ]*\(" >/dev/null 2>&1; then :
41630 ice_cv_have_realloc_decl=yes
41634 if test "$ice_cv_have_realloc_decl" = yes; then
41637 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41639 /* end confdefs.h. */
41643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41644 $EGREP "${ice_re_word}realloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41645 ice_cv_have_realloc_decl=yes
41649 if test "$ice_cv_have_realloc_decl" = yes; then
41656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_realloc_decl" >&5
41657 $as_echo "$ice_cv_have_realloc_decl" >&6; }
41658 if test "$ice_cv_have_realloc_decl" = yes; then
41660 cat >>confdefs.h <<_ACEOF
41661 #define HAVE_REALLOC_DECL 1
41668 ice_have_recvfrom=no
41669 for ac_func in recvfrom
41671 ac_fn_c_check_func "$LINENO" "recvfrom" "ac_cv_func_recvfrom"
41672 if test "x$ac_cv_func_recvfrom" = xyes; then :
41673 cat >>confdefs.h <<_ACEOF
41674 #define HAVE_RECVFROM 1
41676 ice_have_recvfrom=yes
41680 if test "${ice_have_recvfrom}" = yes; then
41681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
41682 $as_echo_n "checking for recvfrom declaration in sys/types.h sys/socket.h... " >&6; }
41683 if ${ice_cv_have_recvfrom_decl+:} false; then :
41684 $as_echo_n "(cached) " >&6
41687 ice_cv_have_recvfrom_decl=no
41688 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41689 ice_re_word='(^|[^a-zA-Z0-9_])'
41690 for header in sys/types.h sys/socket.h; do
41691 # Check for ordinary declaration
41692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41693 /* end confdefs.h. */
41697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41698 $EGREP "${ice_re_word}recvfrom[ ]*\(" >/dev/null 2>&1; then :
41699 ice_cv_have_recvfrom_decl=yes
41703 if test "$ice_cv_have_recvfrom_decl" = yes; then
41706 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41708 /* end confdefs.h. */
41712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41713 $EGREP "${ice_re_word}recvfrom[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41714 ice_cv_have_recvfrom_decl=yes
41718 if test "$ice_cv_have_recvfrom_decl" = yes; then
41725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_recvfrom_decl" >&5
41726 $as_echo "$ice_cv_have_recvfrom_decl" >&6; }
41727 if test "$ice_cv_have_recvfrom_decl" = yes; then
41729 cat >>confdefs.h <<_ACEOF
41730 #define HAVE_RECVFROM_DECL 1
41738 for ac_func in remove
41740 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
41741 if test "x$ac_cv_func_remove" = xyes; then :
41742 cat >>confdefs.h <<_ACEOF
41743 #define HAVE_REMOVE 1
41745 ice_have_remove=yes
41749 if test "${ice_have_remove}" = yes; then
41750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove declaration in stdio.h" >&5
41751 $as_echo_n "checking for remove declaration in stdio.h... " >&6; }
41752 if ${ice_cv_have_remove_decl+:} false; then :
41753 $as_echo_n "(cached) " >&6
41756 ice_cv_have_remove_decl=no
41757 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41758 ice_re_word='(^|[^a-zA-Z0-9_])'
41759 for header in stdio.h; do
41760 # Check for ordinary declaration
41761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41762 /* end confdefs.h. */
41766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41767 $EGREP "${ice_re_word}remove[ ]*\(" >/dev/null 2>&1; then :
41768 ice_cv_have_remove_decl=yes
41772 if test "$ice_cv_have_remove_decl" = yes; then
41775 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41777 /* end confdefs.h. */
41781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41782 $EGREP "${ice_re_word}remove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41783 ice_cv_have_remove_decl=yes
41787 if test "$ice_cv_have_remove_decl" = yes; then
41794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_remove_decl" >&5
41795 $as_echo "$ice_cv_have_remove_decl" >&6; }
41796 if test "$ice_cv_have_remove_decl" = yes; then
41798 cat >>confdefs.h <<_ACEOF
41799 #define HAVE_REMOVE_DECL 1
41807 for ac_func in rename
41809 ac_fn_c_check_func "$LINENO" "rename" "ac_cv_func_rename"
41810 if test "x$ac_cv_func_rename" = xyes; then :
41811 cat >>confdefs.h <<_ACEOF
41812 #define HAVE_RENAME 1
41814 ice_have_rename=yes
41818 if test "${ice_have_rename}" = yes; then
41819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename declaration in stdio.h" >&5
41820 $as_echo_n "checking for rename declaration in stdio.h... " >&6; }
41821 if ${ice_cv_have_rename_decl+:} false; then :
41822 $as_echo_n "(cached) " >&6
41825 ice_cv_have_rename_decl=no
41826 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41827 ice_re_word='(^|[^a-zA-Z0-9_])'
41828 for header in stdio.h; do
41829 # Check for ordinary declaration
41830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41831 /* end confdefs.h. */
41835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41836 $EGREP "${ice_re_word}rename[ ]*\(" >/dev/null 2>&1; then :
41837 ice_cv_have_rename_decl=yes
41841 if test "$ice_cv_have_rename_decl" = yes; then
41844 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41846 /* end confdefs.h. */
41850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41851 $EGREP "${ice_re_word}rename[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41852 ice_cv_have_rename_decl=yes
41856 if test "$ice_cv_have_rename_decl" = yes; then
41863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_rename_decl" >&5
41864 $as_echo "$ice_cv_have_rename_decl" >&6; }
41865 if test "$ice_cv_have_rename_decl" = yes; then
41867 cat >>confdefs.h <<_ACEOF
41868 #define HAVE_RENAME_DECL 1
41876 for ac_func in rewind
41878 ac_fn_c_check_func "$LINENO" "rewind" "ac_cv_func_rewind"
41879 if test "x$ac_cv_func_rewind" = xyes; then :
41880 cat >>confdefs.h <<_ACEOF
41881 #define HAVE_REWIND 1
41883 ice_have_rewind=yes
41887 if test "${ice_have_rewind}" = yes; then
41888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rewind declaration in stdio.h" >&5
41889 $as_echo_n "checking for rewind declaration in stdio.h... " >&6; }
41890 if ${ice_cv_have_rewind_decl+:} false; then :
41891 $as_echo_n "(cached) " >&6
41894 ice_cv_have_rewind_decl=no
41895 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41896 ice_re_word='(^|[^a-zA-Z0-9_])'
41897 for header in stdio.h; do
41898 # Check for ordinary declaration
41899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41900 /* end confdefs.h. */
41904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41905 $EGREP "${ice_re_word}rewind[ ]*\(" >/dev/null 2>&1; then :
41906 ice_cv_have_rewind_decl=yes
41910 if test "$ice_cv_have_rewind_decl" = yes; then
41913 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41915 /* end confdefs.h. */
41919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41920 $EGREP "${ice_re_word}rewind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41921 ice_cv_have_rewind_decl=yes
41925 if test "$ice_cv_have_rewind_decl" = yes; then
41932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_rewind_decl" >&5
41933 $as_echo "$ice_cv_have_rewind_decl" >&6; }
41934 if test "$ice_cv_have_rewind_decl" = yes; then
41936 cat >>confdefs.h <<_ACEOF
41937 #define HAVE_REWIND_DECL 1
41944 ice_have_ruserok=no
41945 for ac_func in ruserok
41947 ac_fn_c_check_func "$LINENO" "ruserok" "ac_cv_func_ruserok"
41948 if test "x$ac_cv_func_ruserok" = xyes; then :
41949 cat >>confdefs.h <<_ACEOF
41950 #define HAVE_RUSEROK 1
41952 ice_have_ruserok=yes
41956 if test "${ice_have_ruserok}" = yes; then
41957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
41958 $as_echo_n "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... " >&6; }
41959 if ${ice_cv_have_ruserok_decl+:} false; then :
41960 $as_echo_n "(cached) " >&6
41963 ice_cv_have_ruserok_decl=no
41964 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41965 ice_re_word='(^|[^a-zA-Z0-9_])'
41966 for header in netdb.h sys/socket.h libc.h unistd.h; do
41967 # Check for ordinary declaration
41968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41969 /* end confdefs.h. */
41973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41974 $EGREP "${ice_re_word}ruserok[ ]*\(" >/dev/null 2>&1; then :
41975 ice_cv_have_ruserok_decl=yes
41979 if test "$ice_cv_have_ruserok_decl" = yes; then
41982 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41984 /* end confdefs.h. */
41988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41989 $EGREP "${ice_re_word}ruserok[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41990 ice_cv_have_ruserok_decl=yes
41994 if test "$ice_cv_have_ruserok_decl" = yes; then
42001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_ruserok_decl" >&5
42002 $as_echo "$ice_cv_have_ruserok_decl" >&6; }
42003 if test "$ice_cv_have_ruserok_decl" = yes; then
42005 cat >>confdefs.h <<_ACEOF
42006 #define HAVE_RUSEROK_DECL 1
42014 for ac_func in select
42016 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
42017 if test "x$ac_cv_func_select" = xyes; then :
42018 cat >>confdefs.h <<_ACEOF
42019 #define HAVE_SELECT 1
42021 ice_have_select=yes
42025 if test "${ice_have_select}" = yes; then
42026 { $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
42027 $as_echo_n "checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h... " >&6; }
42028 if ${ice_cv_have_select_decl+:} false; then :
42029 $as_echo_n "(cached) " >&6
42032 ice_cv_have_select_decl=no
42033 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42034 ice_re_word='(^|[^a-zA-Z0-9_])'
42035 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
42036 # Check for ordinary declaration
42037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42038 /* end confdefs.h. */
42042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42043 $EGREP "${ice_re_word}select[ ]*\(" >/dev/null 2>&1; then :
42044 ice_cv_have_select_decl=yes
42048 if test "$ice_cv_have_select_decl" = yes; then
42051 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42053 /* end confdefs.h. */
42057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42058 $EGREP "${ice_re_word}select[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42059 ice_cv_have_select_decl=yes
42063 if test "$ice_cv_have_select_decl" = yes; then
42070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_select_decl" >&5
42071 $as_echo "$ice_cv_have_select_decl" >&6; }
42072 if test "$ice_cv_have_select_decl" = yes; then
42074 cat >>confdefs.h <<_ACEOF
42075 #define HAVE_SELECT_DECL 1
42083 for ac_header in sys/time.h \
42090 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42091 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
42092 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
42093 cat >>confdefs.h <<_ACEOF
42094 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select() argument type" >&5
42103 $as_echo_n "checking for select() argument type... " >&6; }
42104 if ${amanda_cv_select_arg_type+:} false; then :
42105 $as_echo_n "(cached) " >&6
42109 cat <<EOF >conftest.$ac_ext
42110 #include "confdefs.h"
42111 #ifdef TIME_WITH_SYS_TIME
42112 # include <sys/time.h>
42115 # ifdef HAVE_SYS_TIME_H
42116 # include <sys/time.h>
42121 #ifdef HAVE_SYS_TYPES_H
42122 # include <sys/types.h>
42124 #ifdef HAVE_SYS_SELECT_H
42125 # include <sys/select.h>
42127 #ifdef HAVE_SYS_SOCKET_H
42128 # include <sys/socket.h>
42130 #ifdef HAVE_UNISTD_H
42131 # include <unistd.h>
42136 #ifdef FD_SET_POINTER
42137 (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
42139 (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
42145 # Figure out the select argument type by first trying to
42146 # compile with the fd_set argument. If the compile fails,
42147 # then we know to use the int. If it suceeds, then try to
42148 # use the int. If the int fails, then use fd_set. If
42149 # both suceeed, then do a line count on the number of
42150 # lines that the compiler spit out, assuming that the
42151 # compile outputing more lines had more errors.
42152 amanda_cv_select_arg_type=no
42153 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
42154 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
42155 if test $? -ne 0; then
42156 amanda_cv_select_arg_type=int
42158 if test "$amanda_cv_select_arg_type" = no; then
42159 $select_compile conftest.$ac_ext 1>conftest.int 2>&1
42160 if test $? -ne 0; then
42161 amanda_cv_select_arg_type=fd_set
42164 if test "$amanda_cv_select_arg_type" = no; then
42165 wc_fdset=`wc -l <conftest.fd_set`
42166 wc_int=`wc -l <conftest.int`
42167 if test "$wc_fdset" -le "$wc_int"; then
42168 amanda_cv_select_arg_type=fd_set
42170 amanda_cv_select_arg_type=int
42177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_select_arg_type" >&5
42178 $as_echo "$amanda_cv_select_arg_type" >&6; }
42180 cat >>confdefs.h <<_ACEOF
42181 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
42188 for ac_func in sendto
42190 ac_fn_c_check_func "$LINENO" "sendto" "ac_cv_func_sendto"
42191 if test "x$ac_cv_func_sendto" = xyes; then :
42192 cat >>confdefs.h <<_ACEOF
42193 #define HAVE_SENDTO 1
42195 ice_have_sendto=yes
42199 if test "${ice_have_sendto}" = yes; then
42200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendto declaration in sys/types.h sys/socket.h" >&5
42201 $as_echo_n "checking for sendto declaration in sys/types.h sys/socket.h... " >&6; }
42202 if ${ice_cv_have_sendto_decl+:} false; then :
42203 $as_echo_n "(cached) " >&6
42206 ice_cv_have_sendto_decl=no
42207 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42208 ice_re_word='(^|[^a-zA-Z0-9_])'
42209 for header in sys/types.h sys/socket.h; do
42210 # Check for ordinary declaration
42211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42212 /* end confdefs.h. */
42216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42217 $EGREP "${ice_re_word}sendto[ ]*\(" >/dev/null 2>&1; then :
42218 ice_cv_have_sendto_decl=yes
42222 if test "$ice_cv_have_sendto_decl" = yes; then
42225 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42227 /* end confdefs.h. */
42231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42232 $EGREP "${ice_re_word}sendto[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42233 ice_cv_have_sendto_decl=yes
42237 if test "$ice_cv_have_sendto_decl" = yes; then
42244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_sendto_decl" >&5
42245 $as_echo "$ice_cv_have_sendto_decl" >&6; }
42246 if test "$ice_cv_have_sendto_decl" = yes; then
42248 cat >>confdefs.h <<_ACEOF
42249 #define HAVE_SENDTO_DECL 1
42256 ice_have_setegid=no
42257 for ac_func in setegid
42259 ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
42260 if test "x$ac_cv_func_setegid" = xyes; then :
42261 cat >>confdefs.h <<_ACEOF
42262 #define HAVE_SETEGID 1
42264 ice_have_setegid=yes
42268 if test "${ice_have_setegid}" = yes; then
42269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setegid declaration in unistd.h" >&5
42270 $as_echo_n "checking for setegid declaration in unistd.h... " >&6; }
42271 if ${ice_cv_have_setegid_decl+:} false; then :
42272 $as_echo_n "(cached) " >&6
42275 ice_cv_have_setegid_decl=no
42276 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42277 ice_re_word='(^|[^a-zA-Z0-9_])'
42278 for header in unistd.h; do
42279 # Check for ordinary declaration
42280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42281 /* end confdefs.h. */
42285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42286 $EGREP "${ice_re_word}setegid[ ]*\(" >/dev/null 2>&1; then :
42287 ice_cv_have_setegid_decl=yes
42291 if test "$ice_cv_have_setegid_decl" = yes; then
42294 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42296 /* end confdefs.h. */
42300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42301 $EGREP "${ice_re_word}setegid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42302 ice_cv_have_setegid_decl=yes
42306 if test "$ice_cv_have_setegid_decl" = yes; then
42313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setegid_decl" >&5
42314 $as_echo "$ice_cv_have_setegid_decl" >&6; }
42315 if test "$ice_cv_have_setegid_decl" = yes; then
42317 cat >>confdefs.h <<_ACEOF
42318 #define HAVE_SETEGID_DECL 1
42325 ice_have_seteuid=no
42326 for ac_func in seteuid
42328 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
42329 if test "x$ac_cv_func_seteuid" = xyes; then :
42330 cat >>confdefs.h <<_ACEOF
42331 #define HAVE_SETEUID 1
42333 ice_have_seteuid=yes
42337 if test "${ice_have_seteuid}" = yes; then
42338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seteuid declaration in unistd.h" >&5
42339 $as_echo_n "checking for seteuid declaration in unistd.h... " >&6; }
42340 if ${ice_cv_have_seteuid_decl+:} false; then :
42341 $as_echo_n "(cached) " >&6
42344 ice_cv_have_seteuid_decl=no
42345 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42346 ice_re_word='(^|[^a-zA-Z0-9_])'
42347 for header in unistd.h; do
42348 # Check for ordinary declaration
42349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42350 /* end confdefs.h. */
42354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42355 $EGREP "${ice_re_word}seteuid[ ]*\(" >/dev/null 2>&1; then :
42356 ice_cv_have_seteuid_decl=yes
42360 if test "$ice_cv_have_seteuid_decl" = yes; then
42363 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42365 /* end confdefs.h. */
42369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42370 $EGREP "${ice_re_word}seteuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42371 ice_cv_have_seteuid_decl=yes
42375 if test "$ice_cv_have_seteuid_decl" = yes; then
42382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_seteuid_decl" >&5
42383 $as_echo "$ice_cv_have_seteuid_decl" >&6; }
42384 if test "$ice_cv_have_seteuid_decl" = yes; then
42386 cat >>confdefs.h <<_ACEOF
42387 #define HAVE_SETEUID_DECL 1
42394 ice_have_setresgid=no
42395 for ac_func in setresgid
42397 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
42398 if test "x$ac_cv_func_setresgid" = xyes; then :
42399 cat >>confdefs.h <<_ACEOF
42400 #define HAVE_SETRESGID 1
42402 ice_have_setresgid=yes
42406 if test "${ice_have_setresgid}" = yes; then
42407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setresgid declaration in unistd.h" >&5
42408 $as_echo_n "checking for setresgid declaration in unistd.h... " >&6; }
42409 if ${ice_cv_have_setresgid_decl+:} false; then :
42410 $as_echo_n "(cached) " >&6
42413 ice_cv_have_setresgid_decl=no
42414 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42415 ice_re_word='(^|[^a-zA-Z0-9_])'
42416 for header in unistd.h; do
42417 # Check for ordinary declaration
42418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42419 /* end confdefs.h. */
42423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42424 $EGREP "${ice_re_word}setresgid[ ]*\(" >/dev/null 2>&1; then :
42425 ice_cv_have_setresgid_decl=yes
42429 if test "$ice_cv_have_setresgid_decl" = yes; then
42432 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42434 /* end confdefs.h. */
42438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42439 $EGREP "${ice_re_word}setresgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42440 ice_cv_have_setresgid_decl=yes
42444 if test "$ice_cv_have_setresgid_decl" = yes; then
42451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setresgid_decl" >&5
42452 $as_echo "$ice_cv_have_setresgid_decl" >&6; }
42453 if test "$ice_cv_have_setresgid_decl" = yes; then
42455 cat >>confdefs.h <<_ACEOF
42456 #define HAVE_SETRESGID_DECL 1
42463 ice_have_setresuid=no
42464 for ac_func in setresuid
42466 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
42467 if test "x$ac_cv_func_setresuid" = xyes; then :
42468 cat >>confdefs.h <<_ACEOF
42469 #define HAVE_SETRESUID 1
42471 ice_have_setresuid=yes
42475 if test "${ice_have_setresuid}" = yes; then
42476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setresuid declaration in unistd.h" >&5
42477 $as_echo_n "checking for setresuid declaration in unistd.h... " >&6; }
42478 if ${ice_cv_have_setresuid_decl+:} false; then :
42479 $as_echo_n "(cached) " >&6
42482 ice_cv_have_setresuid_decl=no
42483 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42484 ice_re_word='(^|[^a-zA-Z0-9_])'
42485 for header in unistd.h; do
42486 # Check for ordinary declaration
42487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42488 /* end confdefs.h. */
42492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42493 $EGREP "${ice_re_word}setresuid[ ]*\(" >/dev/null 2>&1; then :
42494 ice_cv_have_setresuid_decl=yes
42498 if test "$ice_cv_have_setresuid_decl" = yes; then
42501 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42503 /* end confdefs.h. */
42507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42508 $EGREP "${ice_re_word}setresuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42509 ice_cv_have_setresuid_decl=yes
42513 if test "$ice_cv_have_setresuid_decl" = yes; then
42520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setresuid_decl" >&5
42521 $as_echo "$ice_cv_have_setresuid_decl" >&6; }
42522 if test "$ice_cv_have_setresuid_decl" = yes; then
42524 cat >>confdefs.h <<_ACEOF
42525 #define HAVE_SETRESUID_DECL 1
42532 ice_have_snprintf=no
42533 for ac_func in snprintf
42535 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
42536 if test "x$ac_cv_func_snprintf" = xyes; then :
42537 cat >>confdefs.h <<_ACEOF
42538 #define HAVE_SNPRINTF 1
42540 ice_have_snprintf=yes
42544 if test "${ice_have_snprintf}" = yes; then
42545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snprintf declaration in stdio.h" >&5
42546 $as_echo_n "checking for snprintf declaration in stdio.h... " >&6; }
42547 if ${ice_cv_have_snprintf_decl+:} false; then :
42548 $as_echo_n "(cached) " >&6
42551 ice_cv_have_snprintf_decl=no
42552 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42553 ice_re_word='(^|[^a-zA-Z0-9_])'
42554 for header in stdio.h; do
42555 # Check for ordinary declaration
42556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42557 /* end confdefs.h. */
42561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42562 $EGREP "${ice_re_word}snprintf[ ]*\(" >/dev/null 2>&1; then :
42563 ice_cv_have_snprintf_decl=yes
42567 if test "$ice_cv_have_snprintf_decl" = yes; then
42570 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42572 /* end confdefs.h. */
42576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42577 $EGREP "${ice_re_word}snprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42578 ice_cv_have_snprintf_decl=yes
42582 if test "$ice_cv_have_snprintf_decl" = yes; then
42589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_snprintf_decl" >&5
42590 $as_echo "$ice_cv_have_snprintf_decl" >&6; }
42591 if test "$ice_cv_have_snprintf_decl" = yes; then
42593 cat >>confdefs.h <<_ACEOF
42594 #define HAVE_SNPRINTF_DECL 1
42601 ice_have_vsnprintf=no
42602 for ac_func in vsnprintf
42604 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
42605 if test "x$ac_cv_func_vsnprintf" = xyes; then :
42606 cat >>confdefs.h <<_ACEOF
42607 #define HAVE_VSNPRINTF 1
42609 ice_have_vsnprintf=yes
42613 if test "${ice_have_vsnprintf}" = yes; then
42614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vsnprintf declaration in stdio.h" >&5
42615 $as_echo_n "checking for vsnprintf declaration in stdio.h... " >&6; }
42616 if ${ice_cv_have_vsnprintf_decl+:} false; then :
42617 $as_echo_n "(cached) " >&6
42620 ice_cv_have_vsnprintf_decl=no
42621 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42622 ice_re_word='(^|[^a-zA-Z0-9_])'
42623 for header in stdio.h; do
42624 # Check for ordinary declaration
42625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42626 /* end confdefs.h. */
42630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42631 $EGREP "${ice_re_word}vsnprintf[ ]*\(" >/dev/null 2>&1; then :
42632 ice_cv_have_vsnprintf_decl=yes
42636 if test "$ice_cv_have_vsnprintf_decl" = yes; then
42639 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42641 /* end confdefs.h. */
42645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42646 $EGREP "${ice_re_word}vsnprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42647 ice_cv_have_vsnprintf_decl=yes
42651 if test "$ice_cv_have_vsnprintf_decl" = yes; then
42658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_vsnprintf_decl" >&5
42659 $as_echo "$ice_cv_have_vsnprintf_decl" >&6; }
42660 if test "$ice_cv_have_vsnprintf_decl" = yes; then
42662 cat >>confdefs.h <<_ACEOF
42663 #define HAVE_VSNPRINTF_DECL 1
42670 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
42671 if test "x$ac_cv_func_setpgid" = xyes; then :
42674 $as_echo "#define HAVE_SETPGID 1" >>confdefs.h
42677 ice_have_setpgid=no
42678 for ac_func in setpgid
42680 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
42681 if test "x$ac_cv_func_setpgid" = xyes; then :
42682 cat >>confdefs.h <<_ACEOF
42683 #define HAVE_SETPGID 1
42685 ice_have_setpgid=yes
42689 if test "${ice_have_setpgid}" = yes; then
42690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setpgid declaration in sys/types.h unistd.h" >&5
42691 $as_echo_n "checking for setpgid declaration in sys/types.h unistd.h... " >&6; }
42692 if ${ice_cv_have_setpgid_decl+:} false; then :
42693 $as_echo_n "(cached) " >&6
42696 ice_cv_have_setpgid_decl=no
42697 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42698 ice_re_word='(^|[^a-zA-Z0-9_])'
42699 for header in sys/types.h unistd.h; do
42700 # Check for ordinary declaration
42701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42702 /* end confdefs.h. */
42706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42707 $EGREP "${ice_re_word}setpgid[ ]*\(" >/dev/null 2>&1; then :
42708 ice_cv_have_setpgid_decl=yes
42712 if test "$ice_cv_have_setpgid_decl" = yes; then
42715 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42717 /* end confdefs.h. */
42721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42722 $EGREP "${ice_re_word}setpgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42723 ice_cv_have_setpgid_decl=yes
42727 if test "$ice_cv_have_setpgid_decl" = yes; then
42734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setpgid_decl" >&5
42735 $as_echo "$ice_cv_have_setpgid_decl" >&6; }
42736 if test "$ice_cv_have_setpgid_decl" = yes; then
42738 cat >>confdefs.h <<_ACEOF
42739 #define HAVE_SETPGID_DECL 1
42749 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
42750 if test "x$ac_cv_func_setpgrp" = xyes; then :
42751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
42752 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
42753 if ${ac_cv_func_setpgrp_void+:} false; then :
42754 $as_echo_n "(cached) " >&6
42756 if test "$cross_compiling" = yes; then :
42757 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
42759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42760 /* end confdefs.h. */
42761 $ac_includes_default
42765 /* If this system has a BSD-style setpgrp which takes arguments,
42766 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
42767 exit successfully. */
42768 return setpgrp (1,1) != -1;
42773 if ac_fn_c_try_run "$LINENO"; then :
42774 ac_cv_func_setpgrp_void=no
42776 ac_cv_func_setpgrp_void=yes
42778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42779 conftest.$ac_objext conftest.beam conftest.$ac_ext
42783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
42784 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
42785 if test $ac_cv_func_setpgrp_void = yes; then
42787 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
42794 ice_have_setpgrp=no
42795 for ac_func in setpgrp
42797 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
42798 if test "x$ac_cv_func_setpgrp" = xyes; then :
42799 cat >>confdefs.h <<_ACEOF
42800 #define HAVE_SETPGRP 1
42802 ice_have_setpgrp=yes
42806 if test "${ice_have_setpgrp}" = yes; then
42807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
42808 $as_echo_n "checking for setpgrp declaration in sys/types.h unistd.h libc.h... " >&6; }
42809 if ${ice_cv_have_setpgrp_decl+:} false; then :
42810 $as_echo_n "(cached) " >&6
42813 ice_cv_have_setpgrp_decl=no
42814 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42815 ice_re_word='(^|[^a-zA-Z0-9_])'
42816 for header in sys/types.h unistd.h libc.h; do
42817 # Check for ordinary declaration
42818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42819 /* end confdefs.h. */
42823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42824 $EGREP "${ice_re_word}setpgrp[ ]*\(" >/dev/null 2>&1; then :
42825 ice_cv_have_setpgrp_decl=yes
42829 if test "$ice_cv_have_setpgrp_decl" = yes; then
42832 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42834 /* end confdefs.h. */
42838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42839 $EGREP "${ice_re_word}setpgrp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42840 ice_cv_have_setpgrp_decl=yes
42844 if test "$ice_cv_have_setpgrp_decl" = yes; then
42851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setpgrp_decl" >&5
42852 $as_echo "$ice_cv_have_setpgrp_decl" >&6; }
42853 if test "$ice_cv_have_setpgrp_decl" = yes; then
42855 cat >>confdefs.h <<_ACEOF
42856 #define HAVE_SETPGRP_DECL 1
42863 ice_have_setsockopt=no
42864 for ac_func in setsockopt
42866 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
42867 if test "x$ac_cv_func_setsockopt" = xyes; then :
42868 cat >>confdefs.h <<_ACEOF
42869 #define HAVE_SETSOCKOPT 1
42871 ice_have_setsockopt=yes
42875 if test "${ice_have_setsockopt}" = yes; then
42876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
42877 $as_echo_n "checking for setsockopt declaration in sys/types.h sys/socket.h... " >&6; }
42878 if ${ice_cv_have_setsockopt_decl+:} false; then :
42879 $as_echo_n "(cached) " >&6
42882 ice_cv_have_setsockopt_decl=no
42883 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42884 ice_re_word='(^|[^a-zA-Z0-9_])'
42885 for header in sys/types.h sys/socket.h; do
42886 # Check for ordinary declaration
42887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42888 /* end confdefs.h. */
42892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42893 $EGREP "${ice_re_word}setsockopt[ ]*\(" >/dev/null 2>&1; then :
42894 ice_cv_have_setsockopt_decl=yes
42898 if test "$ice_cv_have_setsockopt_decl" = yes; then
42901 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42903 /* end confdefs.h. */
42907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42908 $EGREP "${ice_re_word}setsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42909 ice_cv_have_setsockopt_decl=yes
42913 if test "$ice_cv_have_setsockopt_decl" = yes; then
42920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setsockopt_decl" >&5
42921 $as_echo "$ice_cv_have_setsockopt_decl" >&6; }
42922 if test "$ice_cv_have_setsockopt_decl" = yes; then
42924 cat >>confdefs.h <<_ACEOF
42925 #define HAVE_SETSOCKOPT_DECL 1
42931 for ac_func in sigaction sigemptyset sigvec
42933 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42934 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
42935 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
42936 cat >>confdefs.h <<_ACEOF
42937 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42945 for ac_func in socket
42947 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
42948 if test "x$ac_cv_func_socket" = xyes; then :
42949 cat >>confdefs.h <<_ACEOF
42950 #define HAVE_SOCKET 1
42952 ice_have_socket=yes
42956 if test "${ice_have_socket}" = yes; then
42957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket declaration in sys/types.h sys/socket.h" >&5
42958 $as_echo_n "checking for socket declaration in sys/types.h sys/socket.h... " >&6; }
42959 if ${ice_cv_have_socket_decl+:} false; then :
42960 $as_echo_n "(cached) " >&6
42963 ice_cv_have_socket_decl=no
42964 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42965 ice_re_word='(^|[^a-zA-Z0-9_])'
42966 for header in sys/types.h sys/socket.h; do
42967 # Check for ordinary declaration
42968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42969 /* end confdefs.h. */
42973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42974 $EGREP "${ice_re_word}socket[ ]*\(" >/dev/null 2>&1; then :
42975 ice_cv_have_socket_decl=yes
42979 if test "$ice_cv_have_socket_decl" = yes; then
42982 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42984 /* end confdefs.h. */
42988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42989 $EGREP "${ice_re_word}socket[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42990 ice_cv_have_socket_decl=yes
42994 if test "$ice_cv_have_socket_decl" = yes; then
43001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_socket_decl" >&5
43002 $as_echo "$ice_cv_have_socket_decl" >&6; }
43003 if test "$ice_cv_have_socket_decl" = yes; then
43005 cat >>confdefs.h <<_ACEOF
43006 #define HAVE_SOCKET_DECL 1
43013 ice_have_socketpair=no
43014 for ac_func in socketpair
43016 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
43017 if test "x$ac_cv_func_socketpair" = xyes; then :
43018 cat >>confdefs.h <<_ACEOF
43019 #define HAVE_SOCKETPAIR 1
43021 ice_have_socketpair=yes
43025 if test "${ice_have_socketpair}" = yes; then
43026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
43027 $as_echo_n "checking for socketpair declaration in sys/types.h sys/socket.h... " >&6; }
43028 if ${ice_cv_have_socketpair_decl+:} false; then :
43029 $as_echo_n "(cached) " >&6
43032 ice_cv_have_socketpair_decl=no
43033 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43034 ice_re_word='(^|[^a-zA-Z0-9_])'
43035 for header in sys/types.h sys/socket.h; do
43036 # Check for ordinary declaration
43037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43038 /* end confdefs.h. */
43042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43043 $EGREP "${ice_re_word}socketpair[ ]*\(" >/dev/null 2>&1; then :
43044 ice_cv_have_socketpair_decl=yes
43048 if test "$ice_cv_have_socketpair_decl" = yes; then
43051 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43053 /* end confdefs.h. */
43057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43058 $EGREP "${ice_re_word}socketpair[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43059 ice_cv_have_socketpair_decl=yes
43063 if test "$ice_cv_have_socketpair_decl" = yes; then
43070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_socketpair_decl" >&5
43071 $as_echo "$ice_cv_have_socketpair_decl" >&6; }
43072 if test "$ice_cv_have_socketpair_decl" = yes; then
43074 cat >>confdefs.h <<_ACEOF
43075 #define HAVE_SOCKETPAIR_DECL 1
43083 for ac_func in sscanf
43085 ac_fn_c_check_func "$LINENO" "sscanf" "ac_cv_func_sscanf"
43086 if test "x$ac_cv_func_sscanf" = xyes; then :
43087 cat >>confdefs.h <<_ACEOF
43088 #define HAVE_SSCANF 1
43090 ice_have_sscanf=yes
43094 if test "${ice_have_sscanf}" = yes; then
43095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sscanf declaration in stdio.h" >&5
43096 $as_echo_n "checking for sscanf declaration in stdio.h... " >&6; }
43097 if ${ice_cv_have_sscanf_decl+:} false; then :
43098 $as_echo_n "(cached) " >&6
43101 ice_cv_have_sscanf_decl=no
43102 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43103 ice_re_word='(^|[^a-zA-Z0-9_])'
43104 for header in stdio.h; do
43105 # Check for ordinary declaration
43106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43107 /* end confdefs.h. */
43111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43112 $EGREP "${ice_re_word}sscanf[ ]*\(" >/dev/null 2>&1; then :
43113 ice_cv_have_sscanf_decl=yes
43117 if test "$ice_cv_have_sscanf_decl" = yes; then
43120 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43122 /* end confdefs.h. */
43126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43127 $EGREP "${ice_re_word}sscanf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43128 ice_cv_have_sscanf_decl=yes
43132 if test "$ice_cv_have_sscanf_decl" = yes; then
43139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_sscanf_decl" >&5
43140 $as_echo "$ice_cv_have_sscanf_decl" >&6; }
43141 if test "$ice_cv_have_sscanf_decl" = yes; then
43143 cat >>confdefs.h <<_ACEOF
43144 #define HAVE_SSCANF_DECL 1
43151 ice_have_strerror=no
43152 for ac_func in strerror
43154 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
43155 if test "x$ac_cv_func_strerror" = xyes; then :
43156 cat >>confdefs.h <<_ACEOF
43157 #define HAVE_STRERROR 1
43159 ice_have_strerror=yes
43163 if test "${ice_have_strerror}" = yes; then
43164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror declaration in string.h strings.h" >&5
43165 $as_echo_n "checking for strerror declaration in string.h strings.h... " >&6; }
43166 if ${ice_cv_have_strerror_decl+:} false; then :
43167 $as_echo_n "(cached) " >&6
43170 ice_cv_have_strerror_decl=no
43171 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43172 ice_re_word='(^|[^a-zA-Z0-9_])'
43173 for header in string.h strings.h; do
43174 # Check for ordinary declaration
43175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43176 /* end confdefs.h. */
43180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43181 $EGREP "${ice_re_word}strerror[ ]*\(" >/dev/null 2>&1; then :
43182 ice_cv_have_strerror_decl=yes
43186 if test "$ice_cv_have_strerror_decl" = yes; then
43189 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43191 /* end confdefs.h. */
43195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43196 $EGREP "${ice_re_word}strerror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43197 ice_cv_have_strerror_decl=yes
43201 if test "$ice_cv_have_strerror_decl" = yes; then
43208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strerror_decl" >&5
43209 $as_echo "$ice_cv_have_strerror_decl" >&6; }
43210 if test "$ice_cv_have_strerror_decl" = yes; then
43212 cat >>confdefs.h <<_ACEOF
43213 #define HAVE_STRERROR_DECL 1
43219 for ac_func in strftime
43221 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
43222 if test "x$ac_cv_func_strftime" = xyes; then :
43223 cat >>confdefs.h <<_ACEOF
43224 #define HAVE_STRFTIME 1
43228 # strftime is in -lintl on SCO UNIX.
43229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
43230 $as_echo_n "checking for strftime in -lintl... " >&6; }
43231 if ${ac_cv_lib_intl_strftime+:} false; then :
43232 $as_echo_n "(cached) " >&6
43234 ac_check_lib_save_LIBS=$LIBS
43235 LIBS="-lintl $LIBS"
43236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43237 /* end confdefs.h. */
43239 /* Override any GCC internal prototype to avoid an error.
43240 Use char because int might match the return type of a GCC
43241 builtin and then its argument prototype would still apply. */
43249 return strftime ();
43254 if ac_fn_c_try_link "$LINENO"; then :
43255 ac_cv_lib_intl_strftime=yes
43257 ac_cv_lib_intl_strftime=no
43259 rm -f core conftest.err conftest.$ac_objext \
43260 conftest$ac_exeext conftest.$ac_ext
43261 LIBS=$ac_check_lib_save_LIBS
43263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
43264 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
43265 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
43266 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
43268 LIBS="-lintl $LIBS"
43275 ice_have_strftime=no
43276 for ac_func in strftime
43278 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
43279 if test "x$ac_cv_func_strftime" = xyes; then :
43280 cat >>confdefs.h <<_ACEOF
43281 #define HAVE_STRFTIME 1
43283 ice_have_strftime=yes
43287 if test "${ice_have_strftime}" = yes; then
43288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime declaration in time.h sys/time.h" >&5
43289 $as_echo_n "checking for strftime declaration in time.h sys/time.h... " >&6; }
43290 if ${ice_cv_have_strftime_decl+:} false; then :
43291 $as_echo_n "(cached) " >&6
43294 ice_cv_have_strftime_decl=no
43295 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43296 ice_re_word='(^|[^a-zA-Z0-9_])'
43297 for header in time.h sys/time.h; do
43298 # Check for ordinary declaration
43299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43300 /* end confdefs.h. */
43304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43305 $EGREP "${ice_re_word}strftime[ ]*\(" >/dev/null 2>&1; then :
43306 ice_cv_have_strftime_decl=yes
43310 if test "$ice_cv_have_strftime_decl" = yes; then
43313 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43315 /* end confdefs.h. */
43319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43320 $EGREP "${ice_re_word}strftime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43321 ice_cv_have_strftime_decl=yes
43325 if test "$ice_cv_have_strftime_decl" = yes; then
43332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strftime_decl" >&5
43333 $as_echo "$ice_cv_have_strftime_decl" >&6; }
43334 if test "$ice_cv_have_strftime_decl" = yes; then
43336 cat >>confdefs.h <<_ACEOF
43337 #define HAVE_STRFTIME_DECL 1
43344 ice_have_strncasecmp=no
43345 for ac_func in strncasecmp
43347 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
43348 if test "x$ac_cv_func_strncasecmp" = xyes; then :
43349 cat >>confdefs.h <<_ACEOF
43350 #define HAVE_STRNCASECMP 1
43352 ice_have_strncasecmp=yes
43356 if test "${ice_have_strncasecmp}" = yes; then
43357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strncasecmp declaration in string.h strings.h" >&5
43358 $as_echo_n "checking for strncasecmp declaration in string.h strings.h... " >&6; }
43359 if ${ice_cv_have_strncasecmp_decl+:} false; then :
43360 $as_echo_n "(cached) " >&6
43363 ice_cv_have_strncasecmp_decl=no
43364 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43365 ice_re_word='(^|[^a-zA-Z0-9_])'
43366 for header in string.h strings.h; do
43367 # Check for ordinary declaration
43368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43369 /* end confdefs.h. */
43373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43374 $EGREP "${ice_re_word}strncasecmp[ ]*\(" >/dev/null 2>&1; then :
43375 ice_cv_have_strncasecmp_decl=yes
43379 if test "$ice_cv_have_strncasecmp_decl" = yes; then
43382 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43384 /* end confdefs.h. */
43388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43389 $EGREP "${ice_re_word}strncasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43390 ice_cv_have_strncasecmp_decl=yes
43394 if test "$ice_cv_have_strncasecmp_decl" = yes; then
43401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strncasecmp_decl" >&5
43402 $as_echo "$ice_cv_have_strncasecmp_decl" >&6; }
43403 if test "$ice_cv_have_strncasecmp_decl" = yes; then
43405 cat >>confdefs.h <<_ACEOF
43406 #define HAVE_STRNCASECMP_DECL 1
43414 for ac_func in syslog
43416 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
43417 if test "x$ac_cv_func_syslog" = xyes; then :
43418 cat >>confdefs.h <<_ACEOF
43419 #define HAVE_SYSLOG 1
43421 ice_have_syslog=yes
43425 if test "${ice_have_syslog}" = yes; then
43426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog declaration in syslog.h" >&5
43427 $as_echo_n "checking for syslog declaration in syslog.h... " >&6; }
43428 if ${ice_cv_have_syslog_decl+:} false; then :
43429 $as_echo_n "(cached) " >&6
43432 ice_cv_have_syslog_decl=no
43433 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43434 ice_re_word='(^|[^a-zA-Z0-9_])'
43435 for header in syslog.h; do
43436 # Check for ordinary declaration
43437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43438 /* end confdefs.h. */
43442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43443 $EGREP "${ice_re_word}syslog[ ]*\(" >/dev/null 2>&1; then :
43444 ice_cv_have_syslog_decl=yes
43448 if test "$ice_cv_have_syslog_decl" = yes; then
43451 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43453 /* end confdefs.h. */
43457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43458 $EGREP "${ice_re_word}syslog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43459 ice_cv_have_syslog_decl=yes
43463 if test "$ice_cv_have_syslog_decl" = yes; then
43470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_syslog_decl" >&5
43471 $as_echo "$ice_cv_have_syslog_decl" >&6; }
43472 if test "$ice_cv_have_syslog_decl" = yes; then
43474 cat >>confdefs.h <<_ACEOF
43475 #define HAVE_SYSLOG_DECL 1
43483 for ac_func in system
43485 ac_fn_c_check_func "$LINENO" "system" "ac_cv_func_system"
43486 if test "x$ac_cv_func_system" = xyes; then :
43487 cat >>confdefs.h <<_ACEOF
43488 #define HAVE_SYSTEM 1
43490 ice_have_system=yes
43494 if test "${ice_have_system}" = yes; then
43495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system declaration in stdlib.h" >&5
43496 $as_echo_n "checking for system declaration in stdlib.h... " >&6; }
43497 if ${ice_cv_have_system_decl+:} false; then :
43498 $as_echo_n "(cached) " >&6
43501 ice_cv_have_system_decl=no
43502 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43503 ice_re_word='(^|[^a-zA-Z0-9_])'
43504 for header in stdlib.h; do
43505 # Check for ordinary declaration
43506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43507 /* end confdefs.h. */
43511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43512 $EGREP "${ice_re_word}system[ ]*\(" >/dev/null 2>&1; then :
43513 ice_cv_have_system_decl=yes
43517 if test "$ice_cv_have_system_decl" = yes; then
43520 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43522 /* end confdefs.h. */
43526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43527 $EGREP "${ice_re_word}system[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43528 ice_cv_have_system_decl=yes
43532 if test "$ice_cv_have_system_decl" = yes; then
43539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_system_decl" >&5
43540 $as_echo "$ice_cv_have_system_decl" >&6; }
43541 if test "$ice_cv_have_system_decl" = yes; then
43543 cat >>confdefs.h <<_ACEOF
43544 #define HAVE_SYSTEM_DECL 1
43552 for ac_func in time
43554 ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time"
43555 if test "x$ac_cv_func_time" = xyes; then :
43556 cat >>confdefs.h <<_ACEOF
43557 #define HAVE_TIME 1
43563 if test "${ice_have_time}" = yes; then
43564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time declaration in time.h sys/time.h" >&5
43565 $as_echo_n "checking for time declaration in time.h sys/time.h... " >&6; }
43566 if ${ice_cv_have_time_decl+:} false; then :
43567 $as_echo_n "(cached) " >&6
43570 ice_cv_have_time_decl=no
43571 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43572 ice_re_word='(^|[^a-zA-Z0-9_])'
43573 for header in time.h sys/time.h; do
43574 # Check for ordinary declaration
43575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43576 /* end confdefs.h. */
43580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43581 $EGREP "${ice_re_word}time[ ]*\(" >/dev/null 2>&1; then :
43582 ice_cv_have_time_decl=yes
43586 if test "$ice_cv_have_time_decl" = yes; then
43589 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43591 /* end confdefs.h. */
43595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43596 $EGREP "${ice_re_word}time[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43597 ice_cv_have_time_decl=yes
43601 if test "$ice_cv_have_time_decl" = yes; then
43608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_time_decl" >&5
43609 $as_echo "$ice_cv_have_time_decl" >&6; }
43610 if test "$ice_cv_have_time_decl" = yes; then
43612 cat >>confdefs.h <<_ACEOF
43613 #define HAVE_TIME_DECL 1
43620 ice_have_tolower=no
43621 for ac_func in tolower
43623 ac_fn_c_check_func "$LINENO" "tolower" "ac_cv_func_tolower"
43624 if test "x$ac_cv_func_tolower" = xyes; then :
43625 cat >>confdefs.h <<_ACEOF
43626 #define HAVE_TOLOWER 1
43628 ice_have_tolower=yes
43632 if test "${ice_have_tolower}" = yes; then
43633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tolower declaration in ctype.h" >&5
43634 $as_echo_n "checking for tolower declaration in ctype.h... " >&6; }
43635 if ${ice_cv_have_tolower_decl+:} false; then :
43636 $as_echo_n "(cached) " >&6
43639 ice_cv_have_tolower_decl=no
43640 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43641 ice_re_word='(^|[^a-zA-Z0-9_])'
43642 for header in ctype.h; do
43643 # Check for ordinary declaration
43644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43645 /* end confdefs.h. */
43649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43650 $EGREP "${ice_re_word}tolower[ ]*\(" >/dev/null 2>&1; then :
43651 ice_cv_have_tolower_decl=yes
43655 if test "$ice_cv_have_tolower_decl" = yes; then
43658 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43660 /* end confdefs.h. */
43664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43665 $EGREP "${ice_re_word}tolower[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43666 ice_cv_have_tolower_decl=yes
43670 if test "$ice_cv_have_tolower_decl" = yes; then
43677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_tolower_decl" >&5
43678 $as_echo "$ice_cv_have_tolower_decl" >&6; }
43679 if test "$ice_cv_have_tolower_decl" = yes; then
43681 cat >>confdefs.h <<_ACEOF
43682 #define HAVE_TOLOWER_DECL 1
43689 ice_have_toupper=no
43690 for ac_func in toupper
43692 ac_fn_c_check_func "$LINENO" "toupper" "ac_cv_func_toupper"
43693 if test "x$ac_cv_func_toupper" = xyes; then :
43694 cat >>confdefs.h <<_ACEOF
43695 #define HAVE_TOUPPER 1
43697 ice_have_toupper=yes
43701 if test "${ice_have_toupper}" = yes; then
43702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toupper declaration in ctype.h" >&5
43703 $as_echo_n "checking for toupper declaration in ctype.h... " >&6; }
43704 if ${ice_cv_have_toupper_decl+:} false; then :
43705 $as_echo_n "(cached) " >&6
43708 ice_cv_have_toupper_decl=no
43709 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43710 ice_re_word='(^|[^a-zA-Z0-9_])'
43711 for header in ctype.h; do
43712 # Check for ordinary declaration
43713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43714 /* end confdefs.h. */
43718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43719 $EGREP "${ice_re_word}toupper[ ]*\(" >/dev/null 2>&1; then :
43720 ice_cv_have_toupper_decl=yes
43724 if test "$ice_cv_have_toupper_decl" = yes; then
43727 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43729 /* end confdefs.h. */
43733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43734 $EGREP "${ice_re_word}toupper[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43735 ice_cv_have_toupper_decl=yes
43739 if test "$ice_cv_have_toupper_decl" = yes; then
43746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_toupper_decl" >&5
43747 $as_echo "$ice_cv_have_toupper_decl" >&6; }
43748 if test "$ice_cv_have_toupper_decl" = yes; then
43750 cat >>confdefs.h <<_ACEOF
43751 #define HAVE_TOUPPER_DECL 1
43759 for ac_func in ungetc
43761 ac_fn_c_check_func "$LINENO" "ungetc" "ac_cv_func_ungetc"
43762 if test "x$ac_cv_func_ungetc" = xyes; then :
43763 cat >>confdefs.h <<_ACEOF
43764 #define HAVE_UNGETC 1
43766 ice_have_ungetc=yes
43770 if test "${ice_have_ungetc}" = yes; then
43771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ungetc declaration in stdio.h" >&5
43772 $as_echo_n "checking for ungetc declaration in stdio.h... " >&6; }
43773 if ${ice_cv_have_ungetc_decl+:} false; then :
43774 $as_echo_n "(cached) " >&6
43777 ice_cv_have_ungetc_decl=no
43778 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43779 ice_re_word='(^|[^a-zA-Z0-9_])'
43780 for header in stdio.h; do
43781 # Check for ordinary declaration
43782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43783 /* end confdefs.h. */
43787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43788 $EGREP "${ice_re_word}ungetc[ ]*\(" >/dev/null 2>&1; then :
43789 ice_cv_have_ungetc_decl=yes
43793 if test "$ice_cv_have_ungetc_decl" = yes; then
43796 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43798 /* end confdefs.h. */
43802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43803 $EGREP "${ice_re_word}ungetc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43804 ice_cv_have_ungetc_decl=yes
43808 if test "$ice_cv_have_ungetc_decl" = yes; then
43815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_ungetc_decl" >&5
43816 $as_echo "$ice_cv_have_ungetc_decl" >&6; }
43817 if test "$ice_cv_have_ungetc_decl" = yes; then
43819 cat >>confdefs.h <<_ACEOF
43820 #define HAVE_UNGETC_DECL 1
43826 for ac_func in unsetenv
43828 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
43829 if test "x$ac_cv_func_unsetenv" = xyes; then :
43830 cat >>confdefs.h <<_ACEOF
43831 #define HAVE_UNSETENV 1
43838 ice_have_vfprintf=no
43839 for ac_func in vfprintf
43841 ac_fn_c_check_func "$LINENO" "vfprintf" "ac_cv_func_vfprintf"
43842 if test "x$ac_cv_func_vfprintf" = xyes; then :
43843 cat >>confdefs.h <<_ACEOF
43844 #define HAVE_VFPRINTF 1
43846 ice_have_vfprintf=yes
43850 if test "${ice_have_vfprintf}" = yes; then
43851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vfprintf declaration in stdio.h stdlib.h" >&5
43852 $as_echo_n "checking for vfprintf declaration in stdio.h stdlib.h... " >&6; }
43853 if ${ice_cv_have_vfprintf_decl+:} false; then :
43854 $as_echo_n "(cached) " >&6
43857 ice_cv_have_vfprintf_decl=no
43858 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43859 ice_re_word='(^|[^a-zA-Z0-9_])'
43860 for header in stdio.h stdlib.h; do
43861 # Check for ordinary declaration
43862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43863 /* end confdefs.h. */
43867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43868 $EGREP "${ice_re_word}vfprintf[ ]*\(" >/dev/null 2>&1; then :
43869 ice_cv_have_vfprintf_decl=yes
43873 if test "$ice_cv_have_vfprintf_decl" = yes; then
43876 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43878 /* end confdefs.h. */
43882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43883 $EGREP "${ice_re_word}vfprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43884 ice_cv_have_vfprintf_decl=yes
43888 if test "$ice_cv_have_vfprintf_decl" = yes; then
43895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_vfprintf_decl" >&5
43896 $as_echo "$ice_cv_have_vfprintf_decl" >&6; }
43897 if test "$ice_cv_have_vfprintf_decl" = yes; then
43899 cat >>confdefs.h <<_ACEOF
43900 #define HAVE_VFPRINTF_DECL 1
43907 ice_have_vprintf=no
43908 for ac_func in vprintf
43910 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
43911 if test "x$ac_cv_func_vprintf" = xyes; then :
43912 cat >>confdefs.h <<_ACEOF
43913 #define HAVE_VPRINTF 1
43915 ice_have_vprintf=yes
43919 if test "${ice_have_vprintf}" = yes; then
43920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vprintf declaration in stdio.h stdlib.h" >&5
43921 $as_echo_n "checking for vprintf declaration in stdio.h stdlib.h... " >&6; }
43922 if ${ice_cv_have_vprintf_decl+:} false; then :
43923 $as_echo_n "(cached) " >&6
43926 ice_cv_have_vprintf_decl=no
43927 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43928 ice_re_word='(^|[^a-zA-Z0-9_])'
43929 for header in stdio.h stdlib.h; do
43930 # Check for ordinary declaration
43931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43932 /* end confdefs.h. */
43936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43937 $EGREP "${ice_re_word}vprintf[ ]*\(" >/dev/null 2>&1; then :
43938 ice_cv_have_vprintf_decl=yes
43942 if test "$ice_cv_have_vprintf_decl" = yes; then
43945 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43947 /* end confdefs.h. */
43951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43952 $EGREP "${ice_re_word}vprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43953 ice_cv_have_vprintf_decl=yes
43957 if test "$ice_cv_have_vprintf_decl" = yes; then
43964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_vprintf_decl" >&5
43965 $as_echo "$ice_cv_have_vprintf_decl" >&6; }
43966 if test "$ice_cv_have_vprintf_decl" = yes; then
43968 cat >>confdefs.h <<_ACEOF
43969 #define HAVE_VPRINTF_DECL 1
43975 ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4"
43976 if test "x$ac_cv_func_wait4" = xyes; then :
43982 for ac_func in writev
43984 ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev"
43985 if test "x$ac_cv_func_writev" = xyes; then :
43986 cat >>confdefs.h <<_ACEOF
43987 #define HAVE_WRITEV 1
43989 ice_have_writev=yes
43993 if test "${ice_have_writev}" = yes; then
43994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for writev declaration in unistd.h sys/uio.h" >&5
43995 $as_echo_n "checking for writev declaration in unistd.h sys/uio.h... " >&6; }
43996 if ${ice_cv_have_writev_decl+:} false; then :
43997 $as_echo_n "(cached) " >&6
44000 ice_cv_have_writev_decl=no
44001 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44002 ice_re_word='(^|[^a-zA-Z0-9_])'
44003 for header in unistd.h sys/uio.h; do
44004 # Check for ordinary declaration
44005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44006 /* end confdefs.h. */
44010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44011 $EGREP "${ice_re_word}writev[ ]*\(" >/dev/null 2>&1; then :
44012 ice_cv_have_writev_decl=yes
44016 if test "$ice_cv_have_writev_decl" = yes; then
44019 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44021 /* end confdefs.h. */
44025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44026 $EGREP "${ice_re_word}writev[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
44027 ice_cv_have_writev_decl=yes
44031 if test "$ice_cv_have_writev_decl" = yes; then
44038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_writev_decl" >&5
44039 $as_echo "$ice_cv_have_writev_decl" >&6; }
44040 if test "$ice_cv_have_writev_decl" = yes; then
44042 cat >>confdefs.h <<_ACEOF
44043 #define HAVE_WRITEV_DECL 1
44050 ice_have_strcasecmp=no
44051 for ac_func in strcasecmp
44053 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
44054 if test "x$ac_cv_func_strcasecmp" = xyes; then :
44055 cat >>confdefs.h <<_ACEOF
44056 #define HAVE_STRCASECMP 1
44058 ice_have_strcasecmp=yes
44062 if test "${ice_have_strcasecmp}" = yes; then
44063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp declaration in string.h strings.h" >&5
44064 $as_echo_n "checking for strcasecmp declaration in string.h strings.h... " >&6; }
44065 if ${ice_cv_have_strcasecmp_decl+:} false; then :
44066 $as_echo_n "(cached) " >&6
44069 ice_cv_have_strcasecmp_decl=no
44070 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44071 ice_re_word='(^|[^a-zA-Z0-9_])'
44072 for header in string.h strings.h; do
44073 # Check for ordinary declaration
44074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44075 /* end confdefs.h. */
44079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44080 $EGREP "${ice_re_word}strcasecmp[ ]*\(" >/dev/null 2>&1; then :
44081 ice_cv_have_strcasecmp_decl=yes
44085 if test "$ice_cv_have_strcasecmp_decl" = yes; then
44088 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44090 /* end confdefs.h. */
44094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44095 $EGREP "${ice_re_word}strcasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
44096 ice_cv_have_strcasecmp_decl=yes
44100 if test "$ice_cv_have_strcasecmp_decl" = yes; then
44107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strcasecmp_decl" >&5
44108 $as_echo "$ice_cv_have_strcasecmp_decl" >&6; }
44109 if test "$ice_cv_have_strcasecmp_decl" = yes; then
44111 cat >>confdefs.h <<_ACEOF
44112 #define HAVE_STRCASECMP_DECL 1
44144 # Check whether --with-libcurl was given.
44145 if test "${with_libcurl+set}" = set; then :
44146 withval=$with_libcurl; _libcurl_with=$withval
44152 if test "$_libcurl_with" != "no" ; then
44154 for ac_prog in gawk mawk nawk awk
44156 # Extract the first word of "$ac_prog", so it can be a program name with args.
44157 set dummy $ac_prog; ac_word=$2
44158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44159 $as_echo_n "checking for $ac_word... " >&6; }
44160 if ${ac_cv_prog_AWK+:} false; then :
44161 $as_echo_n "(cached) " >&6
44163 if test -n "$AWK"; then
44164 ac_cv_prog_AWK="$AWK" # Let the user override the test.
44166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44167 for as_dir in $PATH
44170 test -z "$as_dir" && as_dir=.
44171 for ac_exec_ext in '' $ac_executable_extensions; do
44172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44173 ac_cv_prog_AWK="$ac_prog"
44174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44183 AWK=$ac_cv_prog_AWK
44184 if test -n "$AWK"; then
44185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
44186 $as_echo "$AWK" >&6; }
44188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44189 $as_echo "no" >&6; }
44193 test -n "$AWK" && break
44197 _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
44199 _libcurl_try_link=yes
44201 if test -d "$_libcurl_with" ; then
44202 LIBCURL_CPPFLAGS="-I$withval/include"
44203 _libcurl_ldflags="-L$withval/lib"
44204 # Extract the first word of "curl-config", so it can be a program name with args.
44205 set dummy curl-config; ac_word=$2
44206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44207 $as_echo_n "checking for $ac_word... " >&6; }
44208 if ${ac_cv_path__libcurl_config+:} false; then :
44209 $as_echo_n "(cached) " >&6
44211 case $_libcurl_config in
44213 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
44216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44217 for as_dir in "$withval/bin"
44220 test -z "$as_dir" && as_dir=.
44221 for ac_exec_ext in '' $ac_executable_extensions; do
44222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44223 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
44224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44234 _libcurl_config=$ac_cv_path__libcurl_config
44235 if test -n "$_libcurl_config"; then
44236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
44237 $as_echo "$_libcurl_config" >&6; }
44239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44240 $as_echo "no" >&6; }
44245 # Extract the first word of "curl-config", so it can be a program name with args.
44246 set dummy curl-config; ac_word=$2
44247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44248 $as_echo_n "checking for $ac_word... " >&6; }
44249 if ${ac_cv_path__libcurl_config+:} false; then :
44250 $as_echo_n "(cached) " >&6
44252 case $_libcurl_config in
44254 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
44257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44258 for as_dir in $PATH
44261 test -z "$as_dir" && as_dir=.
44262 for ac_exec_ext in '' $ac_executable_extensions; do
44263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44264 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
44265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44275 _libcurl_config=$ac_cv_path__libcurl_config
44276 if test -n "$_libcurl_config"; then
44277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
44278 $as_echo "$_libcurl_config" >&6; }
44280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44281 $as_echo "no" >&6; }
44287 if test x$_libcurl_config != "x" ; then
44288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
44289 $as_echo_n "checking for the version of libcurl... " >&6; }
44290 if ${libcurl_cv_lib_curl_version+:} false; then :
44291 $as_echo_n "(cached) " >&6
44293 libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
44295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
44296 $as_echo "$libcurl_cv_lib_curl_version" >&6; }
44298 _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
44299 _libcurl_wanted=`echo 7.10.0 | $_libcurl_version_parse`
44301 if test $_libcurl_wanted -gt 0 ; then
44302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.10.0" >&5
44303 $as_echo_n "checking for libcurl >= version 7.10.0... " >&6; }
44304 if ${libcurl_cv_lib_version_ok+:} false; then :
44305 $as_echo_n "(cached) " >&6
44308 if test $_libcurl_version -ge $_libcurl_wanted ; then
44309 libcurl_cv_lib_version_ok=yes
44311 libcurl_cv_lib_version_ok=no
44315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
44316 $as_echo "$libcurl_cv_lib_version_ok" >&6; }
44319 if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
44320 if test x"$LIBCURL_CPPFLAGS" = "x" ; then
44321 LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
44323 if test x"$LIBCURL" = "x" ; then
44324 LIBCURL=`$_libcurl_config --libs`
44326 # This is so silly, but Apple actually has a bug in their
44327 # curl-config script. Fixed in Tiger, but there are still
44328 # lots of Panther installs around.
44330 powerpc-apple-darwin7*)
44331 LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
44336 # All curl-config scripts support --feature
44337 _libcurl_features=`$_libcurl_config --feature`
44339 # Is it modern enough to have --protocols? (7.12.4)
44340 if test $_libcurl_version -ge 461828 ; then
44341 _libcurl_protocols=`$_libcurl_config --protocols`
44344 _libcurl_try_link=no
44347 unset _libcurl_wanted
44350 if test $_libcurl_try_link = yes ; then
44352 # we didn't find curl-config, so let's see if the user-supplied
44353 # link line (or failing that, "-lcurl") is enough.
44354 LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
44356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
44357 $as_echo_n "checking whether libcurl is usable... " >&6; }
44358 if ${libcurl_cv_lib_curl_usable+:} false; then :
44359 $as_echo_n "(cached) " >&6
44362 _libcurl_save_cppflags=$CPPFLAGS
44363 CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
44364 _libcurl_save_libs=$LIBS
44365 LIBS="$LIBCURL $LIBS"
44367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44368 /* end confdefs.h. */
44369 #include <curl/curl.h>
44374 /* Try and use a few common options to force a failure if we are
44375 missing symbols or can't link. */
44377 curl_easy_setopt(NULL,CURLOPT_URL,NULL);
44379 x=CURLOPT_WRITEFUNCTION;
44381 x=CURLOPT_ERRORBUFFER;
44389 if ac_fn_c_try_link "$LINENO"; then :
44390 libcurl_cv_lib_curl_usable=yes
44392 libcurl_cv_lib_curl_usable=no
44394 rm -f core conftest.err conftest.$ac_objext \
44395 conftest$ac_exeext conftest.$ac_ext
44397 CPPFLAGS=$_libcurl_save_cppflags
44398 LIBS=$_libcurl_save_libs
44399 unset _libcurl_save_cppflags
44400 unset _libcurl_save_libs
44403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
44404 $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
44406 if test $libcurl_cv_lib_curl_usable = yes ; then
44408 # Does curl_free() exist in this version of libcurl?
44409 # If not, fake it with free()
44411 _libcurl_save_cppflags=$CPPFLAGS
44412 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
44413 _libcurl_save_libs=$LIBS
44414 LIBS="$LIBS $LIBCURL"
44416 ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
44417 if test "x$ac_cv_func_curl_free" = xyes; then :
44421 $as_echo "#define curl_free free" >>confdefs.h
44426 CPPFLAGS=$_libcurl_save_cppflags
44427 LIBS=$_libcurl_save_libs
44428 unset _libcurl_save_cppflags
44429 unset _libcurl_save_libs
44432 $as_echo "#define HAVE_LIBCURL 1" >>confdefs.h
44437 for _libcurl_feature in $_libcurl_features ; do
44438 cat >>confdefs.h <<_ACEOF
44439 #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
44442 eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
44445 if test "x$_libcurl_protocols" = "x" ; then
44447 # We don't have --protocols, so just assume that all
44448 # protocols are available
44449 _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
44451 if test x$libcurl_feature_SSL = xyes ; then
44452 _libcurl_protocols="$_libcurl_protocols HTTPS"
44454 # FTPS wasn't standards-compliant until version
44456 if test $_libcurl_version -ge 461568; then
44457 _libcurl_protocols="$_libcurl_protocols FTPS"
44462 for _libcurl_protocol in $_libcurl_protocols ; do
44463 cat >>confdefs.h <<_ACEOF
44464 #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
44467 eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
44471 unset LIBCURL_CPPFLAGS
44476 LIBCURL_USE_GNUTLS=no
44477 LIBCURL_USE_OPENSSL=yes
44478 _libcurl_configures=`$_libcurl_config --configure`
44479 for _libcurl_configure in $_libcurl_configures ; do
44480 if [[ $_libcurl_configure = \'--with-nss* ]]; then
44481 LIBCURL_USE_NSS=yes
44483 if [[ $_libcurl_configure = \'--without-nss* ]]; then
44486 if [[ $_libcurl_configure = \'--with-gnutls* ]]; then
44487 LIBCURL_USE_GNUTLS=yes
44489 if [[ $_libcurl_configure = \'--without-gnutls* ]]; then
44490 LIBCURL_USE_GNUTLS=no
44492 if [[ $_libcurl_configure = \'--with-ssl* ]]; then
44493 LIBCURL_USE_OPENSSL=yes
44495 if [[ $_libcurl_configure = \'--without-ssl* ]]; then
44496 LIBCURL_USE_OPENSSL=no
44500 if test "x$LIBCURL_USE_NSS" = "xyes"; then
44502 $as_echo "#define LIBCURL_USE_NSS 1" >>confdefs.h
44505 if test "x$LIBCURL_USE_GNUTLS" = "xyes"; then
44507 $as_echo "#define LIBCURL_USE_GNUTLS /**/" >>confdefs.h
44510 if test "x$LIBCURL_USE_OPENSSL" = "xyes"; then
44512 $as_echo "#define LIBCURL_USE_OPENSSL 1" >>confdefs.h
44516 unset _libcurl_try_link
44517 unset _libcurl_version_parse
44518 unset _libcurl_config
44519 unset _libcurl_feature
44520 unset _libcurl_features
44521 unset _libcurl_protocol
44522 unset _libcurl_protocols
44523 unset _libcurl_version
44524 unset _libcurl_ldflags
44525 unset _libcurl_configure
44526 unset _libcurl_configures
44529 if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
44530 # This is the IF-NO path
44533 # This is the IF-YES path
44537 unset _libcurl_with
44539 if test x"$HAVE_CURL" = x"yes"; then
44540 LIBS="$LIBCURL $LIBS"
44542 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
44547 ac_fn_c_check_type "$LINENO" "curl_off_t" "ac_cv_type_curl_off_t" "
44548 #ifdef HAVE_SYS_TYPES_H
44549 #include <sys/types.h>
44551 #ifdef STDC_HEADERS
44552 #include <stdlib.h>
44553 #include <stddef.h>
44555 #include <curl/curl.h>
44559 if test "x$ac_cv_type_curl_off_t" = xyes; then :
44564 $as_echo "#define curl_off_t off_t" >>confdefs.h
44571 *sun-solaris2*) # Solaris, all versions.
44572 # we extract the -L flags and translate them to -R flags, as required
44573 # by the runtime linker.
44574 if test -n "$_libcurl_config"; then
44575 curlflags=`$_libcurl_config --libs 2>/dev/null`
44576 for flag in curlflags; do
44578 -L*) LDFLAGS="$LDFLAGS "`echo "x$flag" | sed -e 's/^x-L/-R/'`;;
44589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
44590 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
44591 if ${ac_cv_lib_crypto_HMAC_CTX_init+:} false; then :
44592 $as_echo_n "(cached) " >&6
44594 ac_check_lib_save_LIBS=$LIBS
44595 LIBS="-lcrypto $LIBS"
44596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44597 /* end confdefs.h. */
44599 /* Override any GCC internal prototype to avoid an error.
44600 Use char because int might match the return type of a GCC
44601 builtin and then its argument prototype would still apply. */
44605 char HMAC_CTX_init ();
44609 return HMAC_CTX_init ();
44614 if ac_fn_c_try_link "$LINENO"; then :
44615 ac_cv_lib_crypto_HMAC_CTX_init=yes
44617 ac_cv_lib_crypto_HMAC_CTX_init=no
44619 rm -f core conftest.err conftest.$ac_objext \
44620 conftest$ac_exeext conftest.$ac_ext
44621 LIBS=$ac_check_lib_save_LIBS
44623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5
44624 $as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; }
44625 if test "x$ac_cv_lib_crypto_HMAC_CTX_init" = xyes; then :
44626 cat >>confdefs.h <<_ACEOF
44627 #define HAVE_LIBCRYPTO 1
44630 LIBS="-lcrypto $LIBS"
44638 for ac_header in openssl/hmac.h crypto/hmac.h hmac.h
44640 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44641 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
44642 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
44643 cat >>confdefs.h <<_ACEOF
44644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44646 found_hmac_h=yes; break
44651 if test x"$found_hmac_h" != x"yes"; then
44659 # Check whether --enable-s3-device was given.
44660 if test "${enable_s3_device+set}" = set; then :
44661 enableval=$enable_s3_device; WANT_S3_DEVICE=$enableval
44663 WANT_S3_DEVICE=maybe
44667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include the Amazon S3 device" >&5
44668 $as_echo_n "checking whether to include the Amazon S3 device... " >&6; }
44669 # if the user didn't specify 'no', then check for support
44670 if test x"$WANT_S3_DEVICE" != x"no"; then
44671 if test x"$HAVE_CURL" = x"yes" -a x"$HAVE_HMAC" = x"yes"; then
44674 # no support -- if the user explicitly enabled the device,
44675 # then this is an error
44676 if test x"$WANT_S3_DEVICE" = x"yes"; then
44677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44678 $as_echo "no" >&6; }
44679 as_fn_error $? "Cannot build the Amazon S3 device: one or more prerequisites are missing." "$LINENO" 5
44685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_S3_DEVICE" >&5
44686 $as_echo "$WANT_S3_DEVICE" >&6; }
44688 if test x"$WANT_S3_DEVICE" = x"yes"; then
44689 WANT_S3_DEVICE_TRUE=
44690 WANT_S3_DEVICE_FALSE='#'
44692 WANT_S3_DEVICE_TRUE='#'
44693 WANT_S3_DEVICE_FALSE=
44697 # Now handle any setup for S3, if we want it.
44698 if test x"$WANT_S3_DEVICE" = x"yes"; then
44700 $as_echo "#define WANT_S3_DEVICE /**/" >>confdefs.h
44711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44712 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
44713 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
44714 cat >>confdefs.h <<_ACEOF
44715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44723 # check for MTIOCTOP, an indicator of POSIX tape support
44724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MTIOCTOP" >&5
44725 $as_echo_n "checking for MTIOCTOP... " >&6; }
44726 if ${amanda_cv_HAVE_MTIOCTOP+:} false; then :
44727 $as_echo_n "(cached) " >&6
44730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44731 /* end confdefs.h. */
44733 #ifdef HAVE_SYS_TAPE_H
44734 # include <sys/tape.h>
44736 #ifdef HAVE_SYS_MTIO_H
44737 # include <sys/mtio.h>
44740 #error MTIOCTOP not defined
44751 if ac_fn_c_try_compile "$LINENO"; then :
44752 amanda_cv_HAVE_MTIOCTOP=yes
44754 amanda_cv_HAVE_MTIOCTOP=no
44756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44758 HAVE_MTIOCTOP=$amanda_cv_HAVE_MTIOCTOP
44761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_HAVE_MTIOCTOP" >&5
44762 $as_echo "$amanda_cv_HAVE_MTIOCTOP" >&6; }
44764 # maybe we have no tape device at all (e.g., Mac OS X)?
44765 if test x"$HAVE_MTIOCTOP" = x"yes"; then
44766 want_tape_device=yes
44768 $as_echo "#define WANT_TAPE_DEVICE 1" >>confdefs.h
44771 if test -n "$want_tape_device"; then
44772 WANT_TAPE_DEVICE_TRUE=
44773 WANT_TAPE_DEVICE_FALSE='#'
44775 WANT_TAPE_DEVICE_TRUE='#'
44776 WANT_TAPE_DEVICE_FALSE=
44781 # Check for various "mt status" related structure elements.
44783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_flags mtget structure element" >&5
44784 $as_echo_n "checking for mt_flags mtget structure element... " >&6; }
44785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44786 /* end confdefs.h. */
44789 #include <sys/types.h>
44790 #include <sys/mtio.h>
44805 if ac_fn_c_try_compile "$LINENO"; then :
44807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44808 $as_echo "yes" >&6; }
44810 $as_echo "#define HAVE_MT_FLAGS 1" >>confdefs.h
44815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44816 $as_echo "no" >&6; }
44819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_fileno mtget structure element" >&5
44822 $as_echo_n "checking for mt_fileno mtget structure element... " >&6; }
44823 mt_fileno_result="found"
44824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44825 /* end confdefs.h. */
44828 #include <sys/types.h>
44829 #include <sys/mtio.h>
44838 ds = buf.mt_fileno;
44844 if ac_fn_c_try_compile "$LINENO"; then :
44846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44847 $as_echo "yes" >&6; }
44849 $as_echo "#define HAVE_MT_FILENO 1" >>confdefs.h
44854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44855 $as_echo "no" >&6; }
44858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_blkno mtget structure element" >&5
44861 $as_echo_n "checking for mt_blkno mtget structure element... " >&6; }
44862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44863 /* end confdefs.h. */
44866 #include <sys/types.h>
44867 #include <sys/mtio.h>
44882 if ac_fn_c_try_compile "$LINENO"; then :
44884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44885 $as_echo "yes" >&6; }
44887 $as_echo "#define HAVE_MT_BLKNO 1" >>confdefs.h
44892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44893 $as_echo "no" >&6; }
44896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_dsreg mtget structure element" >&5
44899 $as_echo_n "checking for mt_dsreg mtget structure element... " >&6; }
44900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44901 /* end confdefs.h. */
44904 #include <sys/types.h>
44905 #include <sys/mtio.h>
44920 if ac_fn_c_try_compile "$LINENO"; then :
44922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44923 $as_echo "yes" >&6; }
44925 $as_echo "#define HAVE_MT_DSREG 1" >>confdefs.h
44930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44931 $as_echo "no" >&6; }
44934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_erreg mtget structure element" >&5
44937 $as_echo_n "checking for mt_erreg mtget structure element... " >&6; }
44938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44939 /* end confdefs.h. */
44942 #include <sys/types.h>
44943 #include <sys/mtio.h>
44958 if ac_fn_c_try_compile "$LINENO"; then :
44960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44961 $as_echo "yes" >&6; }
44963 $as_echo "#define HAVE_MT_ERREG 1" >>confdefs.h
44968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44969 $as_echo "no" >&6; }
44972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44976 $as_echo "#define DEFAULT_TAPE_NON_BLOCKING_OPEN 1" >>confdefs.h
44981 # Check whether --enable-dvdrw-device was given.
44982 if test "${enable_dvdrw_device+set}" = set; then :
44983 enableval=$enable_dvdrw_device; WANT_DVDRW_DEVICE=$enableval
44985 WANT_DVDRW_DEVICE=yes
44989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include the DVD-RW device" >&5
44990 $as_echo_n "checking whether to include the DVD-RW device... " >&6; }
44991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_DVDRW_DEVICE" >&5
44992 $as_echo "$WANT_DVDRW_DEVICE" >&6; }
44994 if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
44995 WANT_DVDRW_DEVICE_TRUE=
44996 WANT_DVDRW_DEVICE_FALSE='#'
44998 WANT_DVDRW_DEVICE_TRUE='#'
44999 WANT_DVDRW_DEVICE_FALSE=
45003 # Now handle any setup for DVDRW, if we want it.
45004 if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
45006 $as_echo "#define WANT_DVDRW_DEVICE /**/" >>confdefs.h
45013 # Check whether --enable-ndmp-device was given.
45014 if test "${enable_ndmp_device+set}" = set; then :
45015 enableval=$enable_ndmp_device; WANT_NDMP_DEVICE=$enableval
45017 WANT_NDMP_DEVICE=$WANT_NDMP
45021 if test x"$WANT_NDMP" != x"true" -a x"$WANT_NDMP_DEVICE" = x"true"; then
45022 as_fn_error $? "NDMP support is required to build the ndmp device (--with-ndmp)" "$LINENO" 5
45025 if test x"$WANT_NDMP_DEVICE" = x"true"; then
45027 $as_echo "#define WANT_NDMP_DEVICE 1" >>confdefs.h
45031 if test x"$WANT_NDMP_DEVICE" = x"true"; then
45032 WANT_NDMP_DEVICE_TRUE=
45033 WANT_NDMP_DEVICE_FALSE='#'
45035 WANT_NDMP_DEVICE_TRUE='#'
45036 WANT_NDMP_DEVICE_FALSE=
45042 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"
45045 cat >confcache <<\_ACEOF
45046 # This file is a shell script that caches the results of configure
45047 # tests run on this system so they can be shared between configure
45048 # scripts and configure runs, see configure's option --config-cache.
45049 # It is not useful on other systems. If it contains results you don't
45050 # want to keep, you may remove or edit it.
45052 # config.status only pays attention to the cache file if you give it
45053 # the --recheck option to rerun configure.
45055 # `ac_cv_env_foo' variables (set or unset) will be overridden when
45056 # loading this file, other *unset* `ac_cv_foo' will be assigned the
45057 # following values.
45061 # The following way of writing the cache mishandles newlines in values,
45062 # but we know of no workaround that is simple, portable, and efficient.
45063 # So, we kill variables containing newlines.
45064 # Ultrix sh set writes to stderr and can't be redirected directly,
45065 # and sets the high bit in the cache file unless we assign to the vars.
45067 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
45068 eval ac_val=\$$ac_var
45072 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
45073 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
45076 _ | IFS | as_nl) ;; #(
45077 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
45078 *) { eval $ac_var=; unset $ac_var;} ;;
45084 case $as_nl`(ac_space=' '; set) 2>&1` in #(
45085 *${as_nl}ac_space=\ *)
45086 # `set' does not quote correctly, so add quotes: double-quote
45087 # substitution turns \\\\ into \\, and sed turns \\ into \.
45090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
45093 # `set' quotes correctly as required by POSIX, so do not add quotes.
45094 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
45103 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45105 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45107 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
45108 if test -w "$cache_file"; then
45109 if test "x$cache_file" != "x/dev/null"; then
45110 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
45111 $as_echo "$as_me: updating cache $cache_file" >&6;}
45112 if test ! -f "$cache_file" || test -h "$cache_file"; then
45113 cat confcache >"$cache_file"
45115 case $cache_file in #(
45117 mv -f confcache "$cache_file"$$ &&
45118 mv -f "$cache_file"$$ "$cache_file" ;; #(
45120 mv -f confcache "$cache_file" ;;
45125 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
45126 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
45131 test "x$prefix" = xNONE && prefix=$ac_default_prefix
45132 # Let make expand exec_prefix.
45133 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45135 DEFS=-DHAVE_CONFIG_H
45140 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45141 # 1. Remove the extension, and $U if already installed.
45142 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
45143 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
45144 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
45145 # will be set to the directory where LIBOBJS objects are built.
45146 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
45147 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
45149 LIBOBJS=$ac_libobjs
45151 LTLIBOBJS=$ac_ltlibobjs
45154 if test -n "$EXEEXT"; then
45156 am__EXEEXT_FALSE='#'
45158 am__EXEEXT_TRUE='#'
45162 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
45163 as_fn_error $? "conditional \"AMDEP\" was never defined.
45164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45166 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45167 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
45168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45170 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
45171 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
45172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45177 if test -n "$gl_LIBOBJS"; then
45178 # Remove the extension.
45179 sed_drop_objext='s/\.o$//;s/\.obj$//'
45180 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
45181 gl_libobjs="$gl_libobjs $i.$ac_objext"
45182 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
45185 gl_LIBOBJS=$gl_libobjs
45187 gl_LTLIBOBJS=$gl_ltlibobjs
45193 if test -n "$gltests_LIBOBJS"; then
45194 # Remove the extension.
45195 sed_drop_objext='s/\.o$//;s/\.obj$//'
45196 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
45197 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
45198 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
45201 gltests_LIBOBJS=$gltests_libobjs
45203 gltests_LTLIBOBJS=$gltests_ltlibobjs
45206 if test -z "${WANT_AS_NEEDED_TRUE}" && test -z "${WANT_AS_NEEDED_FALSE}"; then
45207 as_fn_error $? "conditional \"WANT_AS_NEEDED\" was never defined.
45208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45210 if test -z "${CHECK_USERID_TRUE}" && test -z "${CHECK_USERID_FALSE}"; then
45211 as_fn_error $? "conditional \"CHECK_USERID\" was never defined.
45212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45214 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
45215 as_fn_error $? "conditional \"WANT_SETUID_CLIENT\" was never defined.
45216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45218 if test -z "${WANT_INSTALLPERMS_TRUE}" && test -z "${WANT_INSTALLPERMS_FALSE}"; then
45219 as_fn_error $? "conditional \"WANT_INSTALLPERMS\" was never defined.
45220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45222 if test -z "${SYNTAX_CHECKS_TRUE}" && test -z "${SYNTAX_CHECKS_FALSE}"; then
45223 as_fn_error $? "conditional \"SYNTAX_CHECKS\" was never defined.
45224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45226 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
45227 as_fn_error $? "conditional \"WANT_CLIENT\" was never defined.
45228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45230 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
45231 as_fn_error $? "conditional \"WANT_RESTORE\" was never defined.
45232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45234 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
45235 as_fn_error $? "conditional \"WANT_SERVER\" was never defined.
45236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45238 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
45239 as_fn_error $? "conditional \"WANT_RECOVER\" was never defined.
45240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45242 if test -z "${WANT_NDMP_TRUE}" && test -z "${WANT_NDMP_FALSE}"; then
45243 as_fn_error $? "conditional \"WANT_NDMP\" was never defined.
45244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45246 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
45247 as_fn_error $? "conditional \"WANT_TAPE\" was never defined.
45248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45250 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
45251 as_fn_error $? "conditional \"WANT_AMPLOT\" was never defined.
45252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45254 if test -z "${ENABLE_MANPAGE_BUILD_TRUE}" && test -z "${ENABLE_MANPAGE_BUILD_FALSE}"; then
45255 as_fn_error $? "conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
45256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45258 if test -z "${WANT_AMFLOCK_POSIX_TRUE}" && test -z "${WANT_AMFLOCK_POSIX_FALSE}"; then
45259 as_fn_error $? "conditional \"WANT_AMFLOCK_POSIX\" was never defined.
45260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45262 if test -z "${WANT_AMFLOCK_FLOCK_TRUE}" && test -z "${WANT_AMFLOCK_FLOCK_FALSE}"; then
45263 as_fn_error $? "conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
45264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45266 if test -z "${WANT_AMFLOCK_LOCKF_TRUE}" && test -z "${WANT_AMFLOCK_LOCKF_FALSE}"; then
45267 as_fn_error $? "conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
45268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45270 if test -z "${WANT_AMFLOCK_LNLOCK_TRUE}" && test -z "${WANT_AMFLOCK_LNLOCK_FALSE}"; then
45271 as_fn_error $? "conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
45272 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45274 if test -z "${WANT_CYGWIN_COPY_PERL_DLL_TRUE}" && test -z "${WANT_CYGWIN_COPY_PERL_DLL_FALSE}"; then
45275 as_fn_error $? "conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
45276 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45278 if test -z "${WANT_MANDATORY_THREAD_CHECK_TRUE}" && test -z "${WANT_MANDATORY_THREAD_CHECK_FALSE}"; then
45279 as_fn_error $? "conditional \"WANT_MANDATORY_THREAD_CHECK\" was never defined.
45280 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45282 if test -z "${WANT_BSD_SECURITY_TRUE}" && test -z "${WANT_BSD_SECURITY_FALSE}"; then
45283 as_fn_error $? "conditional \"WANT_BSD_SECURITY\" was never defined.
45284 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45286 if test -z "${WANT_BSDTCP_SECURITY_TRUE}" && test -z "${WANT_BSDTCP_SECURITY_FALSE}"; then
45287 as_fn_error $? "conditional \"WANT_BSDTCP_SECURITY\" was never defined.
45288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45290 if test -z "${WANT_BSDUDP_SECURITY_TRUE}" && test -z "${WANT_BSDUDP_SECURITY_FALSE}"; then
45291 as_fn_error $? "conditional \"WANT_BSDUDP_SECURITY\" was never defined.
45292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45294 if test -z "${WANT_RSH_SECURITY_TRUE}" && test -z "${WANT_RSH_SECURITY_FALSE}"; then
45295 as_fn_error $? "conditional \"WANT_RSH_SECURITY\" was never defined.
45296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45298 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
45299 as_fn_error $? "conditional \"WANT_SSH_SECURITY\" was never defined.
45300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45302 if test -z "${WANT_KRB5_SECURITY_TRUE}" && test -z "${WANT_KRB5_SECURITY_FALSE}"; then
45303 as_fn_error $? "conditional \"WANT_KRB5_SECURITY\" was never defined.
45304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45306 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
45307 as_fn_error $? "conditional \"WANT_SAMBA\" was never defined.
45308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45311 if test -z "${GCC_COMPILER_TRUE}" && test -z "${GCC_COMPILER_FALSE}"; then
45312 as_fn_error $? "conditional \"GCC_COMPILER\" was never defined.
45313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45315 if test -z "${WANT_S3_DEVICE_TRUE}" && test -z "${WANT_S3_DEVICE_FALSE}"; then
45316 as_fn_error $? "conditional \"WANT_S3_DEVICE\" was never defined.
45317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45319 if test -z "${WANT_TAPE_DEVICE_TRUE}" && test -z "${WANT_TAPE_DEVICE_FALSE}"; then
45320 as_fn_error $? "conditional \"WANT_TAPE_DEVICE\" was never defined.
45321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45323 if test -z "${WANT_DVDRW_DEVICE_TRUE}" && test -z "${WANT_DVDRW_DEVICE_FALSE}"; then
45324 as_fn_error $? "conditional \"WANT_DVDRW_DEVICE\" was never defined.
45325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45327 if test -z "${WANT_NDMP_DEVICE_TRUE}" && test -z "${WANT_NDMP_DEVICE_FALSE}"; then
45328 as_fn_error $? "conditional \"WANT_NDMP_DEVICE\" was never defined.
45329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45332 : "${CONFIG_STATUS=./config.status}"
45334 ac_clean_files_save=$ac_clean_files
45335 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45336 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
45337 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
45339 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
45341 # Generated by $as_me.
45342 # Run this file to recreate the current configuration.
45343 # Compiler output produced by configure, useful for debugging
45344 # configure, is in config.log if it exists.
45347 ac_cs_recheck=false
45350 SHELL=\${CONFIG_SHELL-$SHELL}
45353 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
45354 ## -------------------- ##
45355 ## M4sh Initialization. ##
45356 ## -------------------- ##
45358 # Be more Bourne compatible
45359 DUALCASE=1; export DUALCASE # for MKS sh
45360 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
45363 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
45364 # is contrary to our usage. Disable this feature.
45365 alias -g '${1+"$@"}'='"$@"'
45366 setopt NO_GLOB_SUBST
45368 case `(set -o) 2>/dev/null` in #(
45380 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45381 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45382 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45383 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45384 # Prefer a ksh shell builtin over an external printf program on Solaris,
45385 # but without wasting forks for bash or zsh.
45386 if test -z "$BASH_VERSION$ZSH_VERSION" \
45387 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45388 as_echo='print -r --'
45389 as_echo_n='print -rn --'
45390 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
45391 as_echo='printf %s\n'
45392 as_echo_n='printf %s'
45394 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
45395 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
45396 as_echo_n='/usr/ucb/echo -n'
45398 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
45399 as_echo_n_body='eval
45403 expr "X$arg" : "X\\(.*\\)$as_nl";
45404 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
45406 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
45408 export as_echo_n_body
45409 as_echo_n='sh -c $as_echo_n_body as_echo'
45411 export as_echo_body
45412 as_echo='sh -c $as_echo_body as_echo'
45415 # The user is always right.
45416 if test "${PATH_SEPARATOR+set}" != set; then
45418 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
45419 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
45426 # We need space, tab and new line, in precisely that order. Quoting is
45427 # there to prevent editors from complaining about space-tab.
45428 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
45429 # splitting by setting IFS to empty value.)
45432 # Find who we are. Look in the path if we contain no directory separator.
45435 *[\\/]* ) as_myself=$0 ;;
45436 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45437 for as_dir in $PATH
45440 test -z "$as_dir" && as_dir=.
45441 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45447 # We did not find ourselves, most probably we were run as `sh COMMAND'
45448 # in which case we are not to be found in the path.
45449 if test "x$as_myself" = x; then
45452 if test ! -f "$as_myself"; then
45453 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
45457 # Unset variables that we do not need and which cause bugs (e.g. in
45458 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
45459 # suppresses any "Segmentation fault" message there. '((' could
45460 # trigger a bug in pdksh 5.2.14.
45461 for as_var in BASH_ENV ENV MAIL MAILPATH
45462 do eval test x\${$as_var+set} = xset \
45463 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
45476 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
45479 # as_fn_error STATUS ERROR [LINENO LOG_FD]
45480 # ----------------------------------------
45481 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
45482 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
45483 # script with STATUS, using 1 if that was 0.
45486 as_status=$1; test $as_status -eq 0 && as_status=1
45488 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
45489 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
45491 $as_echo "$as_me: error: $2" >&2
45492 as_fn_exit $as_status
45496 # as_fn_set_status STATUS
45497 # -----------------------
45498 # Set $? to STATUS, without forking.
45499 as_fn_set_status ()
45502 } # as_fn_set_status
45504 # as_fn_exit STATUS
45505 # -----------------
45506 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
45510 as_fn_set_status $1
45516 # Portably unset VAR.
45519 { eval $1=; unset $1;}
45521 as_unset=as_fn_unset
45522 # as_fn_append VAR VALUE
45523 # ----------------------
45524 # Append the text in VALUE to the end of the definition contained in VAR. Take
45525 # advantage of any shell optimizations that allow amortized linear growth over
45526 # repeated appends, instead of the typical quadratic growth present in naive
45528 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
45529 eval 'as_fn_append ()
45540 # as_fn_arith ARG...
45541 # ------------------
45542 # Perform arithmetic evaluation on the ARGs, and store the result in the
45543 # global $as_val. Take advantage of shells that can avoid forks. The arguments
45544 # must be portable across $(()) and expr.
45545 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
45546 eval 'as_fn_arith ()
45553 as_val=`expr "$@" || test $? -eq 1`
45558 if expr a : '\(a\)' >/dev/null 2>&1 &&
45559 test "X`expr 00001 : '.*\(...\)'`" = X001; then
45565 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
45566 as_basename=basename
45571 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
45577 as_me=`$as_basename -- "$0" ||
45578 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45579 X"$0" : 'X\(//\)$' \| \
45580 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
45582 sed '/^.*\/\([^/][^/]*\)\/*$/{
45596 # Avoid depending upon Character Ranges.
45597 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45598 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45599 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45600 as_cr_digits='0123456789'
45601 as_cr_alnum=$as_cr_Letters$as_cr_digits
45603 ECHO_C= ECHO_N= ECHO_T=
45604 case `echo -n x` in #(((((
45606 case `echo 'xy\c'` in
45607 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
45609 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
45616 rm -f conf$$ conf$$.exe conf$$.file
45617 if test -d conf$$.dir; then
45618 rm -f conf$$.dir/conf$$.file
45621 mkdir conf$$.dir 2>/dev/null
45623 if (echo >conf$$.file) 2>/dev/null; then
45624 if ln -s conf$$.file conf$$ 2>/dev/null; then
45626 # ... but there are two gotchas:
45627 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
45628 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
45629 # In both cases, we have to default to `cp -p'.
45630 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
45632 elif ln conf$$.file conf$$ 2>/dev/null; then
45640 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
45641 rmdir conf$$.dir 2>/dev/null
45646 # Create "$as_dir" as a directory, including parents if necessary.
45651 -*) as_dir=./$as_dir;;
45653 test -d "$as_dir" || eval $as_mkdir_p || {
45657 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
45658 *) as_qdir=$as_dir;;
45660 as_dirs="'$as_qdir' $as_dirs"
45661 as_dir=`$as_dirname -- "$as_dir" ||
45662 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45663 X"$as_dir" : 'X\(//\)[^/]' \| \
45664 X"$as_dir" : 'X\(//\)$' \| \
45665 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45666 $as_echo X"$as_dir" |
45667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45671 /^X\(\/\/\)[^/].*/{
45684 test -d "$as_dir" && break
45686 test -z "$as_dirs" || eval "mkdir $as_dirs"
45687 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
45691 if mkdir -p . 2>/dev/null; then
45692 as_mkdir_p='mkdir -p "$as_dir"'
45694 test -d ./-p && rmdir ./-p
45698 if test -x / >/dev/null 2>&1; then
45699 as_test_x='test -x'
45701 if ls -dL / >/dev/null 2>&1; then
45708 if test -d "$1"; then
45714 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
45715 ???[sx]*):;;*)false;;esac;fi
45719 as_executable_p=$as_test_x
45721 # Sed expression to map a string onto a valid CPP name.
45722 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45724 # Sed expression to map a string onto a valid variable name.
45725 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45729 ## ----------------------------------- ##
45730 ## Main body of $CONFIG_STATUS script. ##
45731 ## ----------------------------------- ##
45733 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
45735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45736 # Save the log message, to keep $0 and so on meaningful, and to
45737 # report actual input values of CONFIG_FILES etc. instead of their
45738 # values after options handling.
45740 This file was extended by amanda $as_me 3.3.2, which was
45741 generated by GNU Autoconf 2.68. Invocation command line was
45743 CONFIG_FILES = $CONFIG_FILES
45744 CONFIG_HEADERS = $CONFIG_HEADERS
45745 CONFIG_LINKS = $CONFIG_LINKS
45746 CONFIG_COMMANDS = $CONFIG_COMMANDS
45749 on `(hostname || uname -n) 2>/dev/null | sed 1q`
45754 case $ac_config_files in *"
45755 "*) set x $ac_config_files; shift; ac_config_files=$*;;
45758 case $ac_config_headers in *"
45759 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
45763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45764 # Files that config.status was made for.
45765 config_files="$ac_config_files"
45766 config_headers="$ac_config_headers"
45767 config_commands="$ac_config_commands"
45771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45773 \`$as_me' instantiates files and other configuration actions
45774 from templates according to the current configuration. Unless the files
45775 and actions are specified as TAGs, all are instantiated by default.
45777 Usage: $0 [OPTION]... [TAG]...
45779 -h, --help print this help, then exit
45780 -V, --version print version number and configuration settings, then exit
45781 --config print configuration, then exit
45782 -q, --quiet, --silent
45783 do not print progress messages
45784 -d, --debug don't remove temporary files
45785 --recheck update $as_me by reconfiguring in the same conditions
45786 --file=FILE[:TEMPLATE]
45787 instantiate the configuration file FILE
45788 --header=FILE[:TEMPLATE]
45789 instantiate the configuration header FILE
45791 Configuration files:
45794 Configuration headers:
45797 Configuration commands:
45800 Report bugs to the package provider."
45803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45804 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
45806 amanda config.status 3.3.2
45807 configured by $0, generated by GNU Autoconf 2.68,
45808 with options \\"\$ac_cs_config\\"
45810 Copyright (C) 2010 Free Software Foundation, Inc.
45811 This config.status script is free software; the Free Software Foundation
45812 gives unlimited permission to copy, distribute and modify it."
45819 test -n "\$AWK" || AWK=awk
45822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45823 # The default lists apply if the user does not specify any file.
45829 ac_option=`expr "X$1" : 'X\([^=]*\)='`
45830 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
45834 ac_option=`expr "X$1" : 'X\([^=]*\)='`
45846 # Handling of the options.
45847 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45849 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
45850 $as_echo "$ac_cs_version"; exit ;;
45851 --config | --confi | --conf | --con | --co | --c )
45852 $as_echo "$ac_cs_config"; exit ;;
45853 --debug | --debu | --deb | --de | --d | -d )
45855 --file | --fil | --fi | --f )
45858 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
45859 '') as_fn_error $? "missing file argument" ;;
45861 as_fn_append CONFIG_FILES " '$ac_optarg'"
45862 ac_need_defaults=false;;
45863 --header | --heade | --head | --hea )
45866 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
45868 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
45869 ac_need_defaults=false;;
45871 # Conflict between --help and --header
45872 as_fn_error $? "ambiguous option: \`$1'
45873 Try \`$0 --help' for more information.";;
45874 --help | --hel | -h )
45875 $as_echo "$ac_cs_usage"; exit ;;
45876 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45877 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45880 # This is an error.
45881 -*) as_fn_error $? "unrecognized option: \`$1'
45882 Try \`$0 --help' for more information." ;;
45884 *) as_fn_append ac_config_targets " $1"
45885 ac_need_defaults=false ;;
45891 ac_configure_extra_args=
45893 if $ac_cs_silent; then
45895 ac_configure_extra_args="$ac_configure_extra_args --silent"
45899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45900 if \$ac_cs_recheck; then
45901 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45903 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
45904 CONFIG_SHELL='$SHELL'
45905 export CONFIG_SHELL
45910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45914 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45915 ## Running $as_me. ##
45921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45925 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45926 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
45927 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
45928 # from automake < 1.5.
45929 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
45930 # Capture the value of LINGUAS because we need it to compute CATALOGS.
45931 LINGUAS="${LINGUAS-%UNSET%}"
45935 # The HP-UX ksh and POSIX shell print the target directory to stdout
45936 # if CDPATH is set.
45937 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
45939 sed_quote_subst='$sed_quote_subst'
45940 double_quote_subst='$double_quote_subst'
45941 delay_variable_subst='$delay_variable_subst'
45942 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
45943 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
45944 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
45945 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
45946 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
45947 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
45948 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
45949 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
45950 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
45951 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
45952 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
45953 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
45954 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
45955 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
45956 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
45957 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
45958 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
45959 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
45960 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
45961 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
45962 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
45963 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
45964 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
45965 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
45966 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
45967 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
45968 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
45969 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
45970 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
45971 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
45972 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
45973 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
45974 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
45975 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
45976 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
45977 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
45978 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
45979 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
45980 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
45981 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
45982 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
45983 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
45984 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
45985 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
45986 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
45987 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
45988 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
45989 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
45990 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
45991 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
45992 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
45993 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
45994 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
45995 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
45996 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
45997 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"`'
45998 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
45999 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
46000 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
46001 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
46002 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
46003 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
46004 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
46005 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
46006 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
46007 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
46008 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
46009 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
46010 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
46011 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
46012 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
46013 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
46014 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
46015 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
46016 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
46017 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
46018 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
46019 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
46020 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
46021 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
46022 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
46023 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
46024 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
46025 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
46026 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
46027 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
46028 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
46029 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
46030 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
46031 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
46032 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
46033 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
46034 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
46035 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
46036 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
46037 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
46038 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
46039 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
46040 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
46041 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
46042 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
46043 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
46044 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
46045 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
46046 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
46047 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
46048 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
46049 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
46050 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
46051 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
46052 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
46053 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
46054 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
46055 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
46056 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
46057 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
46058 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
46059 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
46060 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
46061 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
46062 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
46063 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
46064 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
46065 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
46066 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
46067 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
46068 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
46069 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
46070 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
46071 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
46074 LTCFLAGS='$LTCFLAGS'
46075 compiler='$compiler_DEFAULT'
46077 # A function that is used when there is no print builtin or printf.
46078 func_fallback_echo ()
46080 eval 'cat <<_LTECHO_EOF
46085 # Quote evaled strings.
46099 deplibs_check_method \
46104 sharedlib_from_linklib_cmd \
46107 archiver_list_spec \
46113 lt_cv_sys_global_symbol_pipe \
46114 lt_cv_sys_global_symbol_to_cdecl \
46115 lt_cv_sys_global_symbol_to_c_name_address \
46116 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
46117 nm_file_list_spec \
46118 lt_prog_compiler_no_builtin_flag \
46119 lt_prog_compiler_pic \
46120 lt_prog_compiler_wl \
46121 lt_prog_compiler_static \
46122 lt_cv_prog_compiler_c_o \
46131 export_dynamic_flag_spec \
46132 whole_archive_flag_spec \
46133 compiler_needs_object \
46135 allow_undefined_flag \
46136 no_undefined_flag \
46137 hardcode_libdir_flag_spec \
46138 hardcode_libdir_flag_spec_ld \
46139 hardcode_libdir_separator \
46143 variables_saved_for_relink \
46145 library_names_spec \
46147 install_override_mode \
46151 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
46152 *[\\\\\\\`\\"\\\$]*)
46153 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
46156 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46161 # Double-quote double-evaled strings.
46162 for var in reload_cmds \
46163 old_postinstall_cmds \
46164 old_postuninstall_cmds \
46166 extract_expsyms_cmds \
46167 old_archive_from_new_cmds \
46168 old_archive_from_expsyms_cmds \
46170 archive_expsym_cmds \
46172 module_expsym_cmds \
46173 export_symbols_cmds \
46177 postuninstall_cmds \
46179 sys_lib_search_path_spec \
46180 sys_lib_dlsearch_path_spec; do
46181 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
46182 *[\\\\\\\`\\"\\\$]*)
46183 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
46186 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46191 ac_aux_dir='$ac_aux_dir'
46192 xsi_shell='$xsi_shell'
46193 lt_shell_append='$lt_shell_append'
46195 # See if we are running on zsh, and set the options which allow our
46196 # commands through without removal of \ escapes INIT.
46197 if test -n "\${ZSH_VERSION+set}" ; then
46198 setopt NO_GLOB_SUBST
46204 TIMESTAMP='$TIMESTAMP'
46213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46215 # Handling of arguments.
46216 for ac_config_target in $ac_config_targets
46218 case $ac_config_target in
46219 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
46220 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
46221 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
46222 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
46223 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46224 "amandad-src/Makefile") CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
46225 "amar-src/Makefile") CONFIG_FILES="$CONFIG_FILES amar-src/Makefile" ;;
46226 "amplot/Makefile") CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
46227 "changer-src/Makefile") CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
46228 "client-src/Makefile") CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
46229 "common-src/Makefile") CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
46230 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
46231 "device-src/Makefile") CONFIG_FILES="$CONFIG_FILES device-src/Makefile" ;;
46232 "application-src/Makefile") CONFIG_FILES="$CONFIG_FILES application-src/Makefile" ;;
46233 "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
46234 "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
46235 "installcheck/Makefile") CONFIG_FILES="$CONFIG_FILES installcheck/Makefile" ;;
46236 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
46237 "ndmp-src/Makefile") CONFIG_FILES="$CONFIG_FILES ndmp-src/Makefile" ;;
46238 "oldrecover-src/Makefile") CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
46239 "packaging/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;;
46240 "perl/amglue/Makefile") CONFIG_FILES="$CONFIG_FILES perl/amglue/Makefile" ;;
46241 "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;;
46242 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
46243 "recover-src/Makefile") CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
46244 "server-src/Makefile") CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
46245 "xfer-src/Makefile") CONFIG_FILES="$CONFIG_FILES xfer-src/Makefile" ;;
46247 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
46252 # If the user did not use the arguments to specify the items to instantiate,
46253 # then the envvar interface is used. Set only those that are not.
46254 # We use the long form for the default assignment because of an extremely
46255 # bizarre bug on SunOS 4.1.3.
46256 if $ac_need_defaults; then
46257 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46258 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46259 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46262 # Have a temporary directory for convenience. Make it in the build tree
46263 # simply because there is no reason against having it here, and in addition,
46264 # creating and moving files from /tmp can sometimes cause problems.
46265 # Hook for its removal unless debugging.
46266 # Note that there is a small window in which the directory will not be cleaned:
46267 # after its creation but before its name has been assigned to `$tmp'.
46271 trap 'exit_status=$?
46272 : "${ac_tmp:=$tmp}"
46273 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
46275 trap 'as_fn_exit 1' 1 2 13 15
46277 # Create a (secure) tmp directory for tmp files.
46280 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
46284 tmp=./conf$$-$RANDOM
46285 (umask 077 && mkdir "$tmp")
46286 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
46289 # Set up the scripts for CONFIG_FILES section.
46290 # No need to generate them if there are no CONFIG_FILES.
46291 # This happens for instance with `./config.status config.h'.
46292 if test -n "$CONFIG_FILES"; then
46295 ac_cr=`echo X | tr X '\015'`
46296 # On cygwin, bash can eat \r inside `` if the user requested igncr.
46297 # But we know of no other shell where ac_cr would be empty at this
46298 # point, so we can use a bashism as a fallback.
46299 if test "x$ac_cr" = x; then
46300 eval ac_cr=\$\'\\r\'
46302 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
46303 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
46306 ac_cs_awk_cr=$ac_cr
46309 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
46314 echo "cat >conf$$subs.awk <<_ACEOF" &&
46315 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
46317 } >conf$$subs.sh ||
46318 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46319 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
46321 for ac_last_try in false false false false false :; do
46322 . ./conf$$subs.sh ||
46323 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46325 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
46326 if test $ac_delim_n = $ac_delim_num; then
46328 elif $ac_last_try; then
46329 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46331 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46334 rm -f conf$$subs.sh
46336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46337 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
46341 s/^/S["/; s/!.*/"]=/
46351 s/\(.\{148\}\)..*/\1/
46353 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
46358 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46365 s/\(.\{148\}\)..*/\1/
46367 s/["\\]/\\&/g; s/^/"/; s/$/"/
46371 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46376 ' <conf$$subs.awk | sed '
46381 ' >>$CONFIG_STATUS || ac_write_fail=1
46382 rm -f conf$$subs.awk
46383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46385 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
46386 for (key in S) S_is_set[key] = 1
46392 nfields = split(line, field, "@")
46394 len = length(field[1])
46395 for (i = 2; i < nfields; i++) {
46397 keylen = length(key)
46398 if (S_is_set[key]) {
46400 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
46401 len += length(value) + length(field[++i])
46412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46413 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
46414 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
46417 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
46418 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
46421 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
46422 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
46423 # trailing colons and then remove the whole line if VPATH becomes empty
46424 # (actually we leave an empty line to preserve line numbers).
46425 if test "x$srcdir" = x.; then
46426 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
46444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46445 fi # test -n "$CONFIG_FILES"
46447 # Set up the scripts for CONFIG_HEADERS section.
46448 # No need to generate them if there are no CONFIG_HEADERS.
46449 # This happens for instance with `./config.status Makefile'.
46450 if test -n "$CONFIG_HEADERS"; then
46451 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
46455 # Transform confdefs.h into an awk script `defines.awk', embedded as
46456 # here-document in config.status, that substitutes the proper values into
46457 # config.h.in to produce config.h.
46459 # Create a delimiter string that does not exist in confdefs.h, to ease
46460 # handling of long lines.
46462 for ac_last_try in false false :; do
46463 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
46464 if test -z "$ac_tt"; then
46466 elif $ac_last_try; then
46467 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
46469 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46473 # For the awk script, D is an array of macro values keyed by name,
46474 # likewise P contains macro parameters if any. Preserve backslash
46475 # newline sequences.
46477 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46479 s/.\{148\}/&'"$ac_delim"'/g
46482 s/^[ ]*#[ ]*define[ ][ ]*/ /
46489 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
46491 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
46495 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
46496 D["\1"]=" \3\\\\\\n"\\/p
46498 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
46503 s/.\{148\}/&'"$ac_delim"'/g
46508 s/["\\]/\\&/g; s/^/"/; s/$/"/p
46511 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
46513 ' <confdefs.h | sed '
46514 s/'"$ac_delim"'/"\\\
46515 "/g' >>$CONFIG_STATUS || ac_write_fail=1
46517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46518 for (key in D) D_is_set[key] = 1
46521 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
46523 split(line, arg, " ")
46524 if (arg[1] == "#") {
46528 defundef = substr(arg[1], 2)
46531 split(mac1, mac2, "(") #)
46533 prefix = substr(line, 1, index(line, defundef) - 1)
46534 if (D_is_set[macro]) {
46535 # Preserve the white space surrounding the "#".
46536 print prefix "define", macro P[macro] D[macro]
46539 # Replace #undef with comments. This is necessary, for example,
46540 # in the case of _POSIX_SOURCE, which is predefined and required
46541 # on some systems where configure will not decide to define it.
46542 if (defundef == "undef") {
46543 print "/*", prefix defundef, macro, "*/"
46551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46552 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
46553 fi # test -n "$CONFIG_HEADERS"
46556 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
46561 :[FHLC]) ac_mode=$ac_tag; continue;;
46563 case $ac_mode$ac_tag in
46565 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
46566 :[FH]-) ac_tag=-:-;;
46567 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
46584 -) ac_f="$ac_tmp/stdin";;
46585 *) # Look for the file first in the build tree, then in the source tree
46586 # (if the path is not absolute). The absolute path cannot be DOS-style,
46587 # because $ac_f cannot contain `:'.
46591 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
46593 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
46595 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
46596 as_fn_append ac_file_inputs " '$ac_f'"
46599 # Let's still pretend it is `configure' which instantiates (i.e., don't
46600 # use $as_me), people would be surprised to read:
46601 # /* config.h. Generated by config.status. */
46602 configure_input='Generated from '`
46603 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
46605 if test x"$ac_file" != x-; then
46606 configure_input="$ac_file. $configure_input"
46607 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
46608 $as_echo "$as_me: creating $ac_file" >&6;}
46610 # Neutralize special characters interpreted by sed in replacement strings.
46611 case $configure_input in #(
46612 *\&* | *\|* | *\\* )
46613 ac_sed_conf_input=`$as_echo "$configure_input" |
46614 sed 's/[\\\\&|]/\\\\&/g'`;; #(
46615 *) ac_sed_conf_input=$configure_input;;
46619 *:-:* | *:-) cat >"$ac_tmp/stdin" \
46620 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
46625 ac_dir=`$as_dirname -- "$ac_file" ||
46626 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46627 X"$ac_file" : 'X\(//\)[^/]' \| \
46628 X"$ac_file" : 'X\(//\)$' \| \
46629 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
46630 $as_echo X"$ac_file" |
46631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46635 /^X\(\/\/\)[^/].*/{
46648 as_dir="$ac_dir"; as_fn_mkdir_p
46652 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
46654 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
46655 # A ".." for each directory in $ac_dir_suffix.
46656 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
46657 case $ac_top_builddir_sub in
46658 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
46659 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
46662 ac_abs_top_builddir=$ac_pwd
46663 ac_abs_builddir=$ac_pwd$ac_dir_suffix
46664 # for backward compatibility:
46665 ac_top_builddir=$ac_top_build_prefix
46668 .) # We are building in place.
46670 ac_top_srcdir=$ac_top_builddir_sub
46671 ac_abs_top_srcdir=$ac_pwd ;;
46672 [\\/]* | ?:[\\/]* ) # Absolute name.
46673 ac_srcdir=$srcdir$ac_dir_suffix;
46674 ac_top_srcdir=$srcdir
46675 ac_abs_top_srcdir=$srcdir ;;
46676 *) # Relative name.
46677 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
46678 ac_top_srcdir=$ac_top_build_prefix$srcdir
46679 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
46681 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
46691 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46692 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
46694 ac_MKDIR_P=$MKDIR_P
46696 [\\/$]* | ?:[\\/]* ) ;;
46697 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
46701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46702 # If the template does not know about datarootdir, expand it.
46703 # FIXME: This hack should be removed a few years after 2.60.
46704 ac_datarootdir_hack=; ac_datarootdir_seen=
46715 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
46716 *datarootdir*) ac_datarootdir_seen=yes;;
46717 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
46718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
46719 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
46721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46722 ac_datarootdir_hack='
46723 s&@datadir@&$datadir&g
46724 s&@docdir@&$docdir&g
46725 s&@infodir@&$infodir&g
46726 s&@localedir@&$localedir&g
46727 s&@mandir@&$mandir&g
46728 s&\\\${datarootdir}&$datarootdir&g' ;;
46732 # Neutralize VPATH when `$srcdir' = `.'.
46733 # Shell code in configure.ac might set extrasub.
46734 # FIXME: do we really want to maintain this feature?
46735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46736 ac_sed_extra="$ac_vpsub
46739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46741 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46742 s|@configure_input@|$ac_sed_conf_input|;t t
46743 s&@top_builddir@&$ac_top_builddir_sub&;t t
46744 s&@top_build_prefix@&$ac_top_build_prefix&;t t
46745 s&@srcdir@&$ac_srcdir&;t t
46746 s&@abs_srcdir@&$ac_abs_srcdir&;t t
46747 s&@top_srcdir@&$ac_top_srcdir&;t t
46748 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
46749 s&@builddir@&$ac_builddir&;t t
46750 s&@abs_builddir@&$ac_abs_builddir&;t t
46751 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
46752 s&@INSTALL@&$ac_INSTALL&;t t
46753 s&@MKDIR_P@&$ac_MKDIR_P&;t t
46754 $ac_datarootdir_hack
46756 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
46757 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46759 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
46760 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
46761 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
46762 "$ac_tmp/out"`; test -z "$ac_out"; } &&
46763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46764 which seems to be undefined. Please make sure it is defined" >&5
46765 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46766 which seems to be undefined. Please make sure it is defined" >&2;}
46768 rm -f "$ac_tmp/stdin"
46770 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
46771 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
46773 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46779 if test x"$ac_file" != x-; then
46781 $as_echo "/* $configure_input */" \
46782 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
46783 } >"$ac_tmp/config.h" \
46784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46785 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
46786 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
46787 $as_echo "$as_me: $ac_file is unchanged" >&6;}
46790 mv "$ac_tmp/config.h" "$ac_file" \
46791 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46794 $as_echo "/* $configure_input */" \
46795 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
46796 || as_fn_error $? "could not create -" "$LINENO" 5
46798 # Compute "$ac_file"'s index in $config_headers.
46801 for _am_header in $config_headers :; do
46802 case $_am_header in
46803 $_am_arg | $_am_arg:* )
46806 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46809 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
46810 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46811 X"$_am_arg" : 'X\(//\)[^/]' \| \
46812 X"$_am_arg" : 'X\(//\)$' \| \
46813 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
46814 $as_echo X"$_am_arg" |
46815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46819 /^X\(\/\/\)[^/].*/{
46831 s/.*/./; q'`/stamp-h$_am_stamp_count
46834 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
46835 $as_echo "$as_me: executing $ac_file commands" >&6;}
46840 case $ac_file$ac_mode in
46841 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
46842 # Autoconf 2.62 quotes --file arguments for eval, but not when files
46843 # are listed without --file. Let's play safe and only enable the eval
46844 # if we detect the quoting.
46845 case $CONFIG_FILES in
46846 *\'*) eval set x "$CONFIG_FILES" ;;
46847 *) set x $CONFIG_FILES ;;
46852 # Strip MF so we end up with the name of the file.
46853 mf=`echo "$mf" | sed -e 's/:.*$//'`
46854 # Check whether this is an Automake generated Makefile or not.
46855 # We used to match only the files named `Makefile.in', but
46856 # some people rename them; so instead we look at the file content.
46857 # Grep'ing the first line is not enough: some people post-process
46858 # each Makefile.in and add a new line on top of each file to say so.
46859 # Grep'ing the whole file is not good either: AIX grep has a line
46860 # limit of 2048, but all sed's we know have understand at least 4000.
46861 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
46862 dirpart=`$as_dirname -- "$mf" ||
46863 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46864 X"$mf" : 'X\(//\)[^/]' \| \
46865 X"$mf" : 'X\(//\)$' \| \
46866 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
46868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46872 /^X\(\/\/\)[^/].*/{
46888 # Extract the definition of DEPDIR, am__include, and am__quote
46889 # from the Makefile without running `make'.
46890 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46891 test -z "$DEPDIR" && continue
46892 am__include=`sed -n 's/^am__include = //p' < "$mf"`
46893 test -z "am__include" && continue
46894 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46895 # When using ansi2knr, U may be empty or an underscore; expand it
46896 U=`sed -n 's/^U = //p' < "$mf"`
46897 # Find all dependency output files, they are included files with
46898 # $(DEPDIR) in their names. We invoke sed twice because it is the
46899 # simplest approach to changing $(DEPDIR) to its actual value in the
46901 for file in `sed -n "
46902 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46903 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46904 # Make sure the directory exists.
46905 test -f "$dirpart/$file" && continue
46906 fdir=`$as_dirname -- "$file" ||
46907 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46908 X"$file" : 'X\(//\)[^/]' \| \
46909 X"$file" : 'X\(//\)$' \| \
46910 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
46911 $as_echo X"$file" |
46912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46916 /^X\(\/\/\)[^/].*/{
46929 as_dir=$dirpart/$fdir; as_fn_mkdir_p
46930 # echo "creating $dirpart/$file"
46931 echo '# dummy' > "$dirpart/$file"
46936 "po-directories":C)
46937 for ac_file in $CONFIG_FILES; do
46938 # Support "outfile[:infile[:infile...]]"
46940 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
46942 # PO directories have a Makefile.in generated from Makefile.in.in.
46943 case "$ac_file" in */Makefile.in)
46944 # Adjust a relative srcdir.
46945 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46946 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
46947 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
46948 # In autoconf-2.13 it is called $ac_given_srcdir.
46949 # In autoconf-2.50 it is called $srcdir.
46950 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
46951 case "$ac_given_srcdir" in
46952 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
46953 /*) top_srcdir="$ac_given_srcdir" ;;
46954 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
46956 # Treat a directory as a PO directory if and only if it has a
46957 # POTFILES.in file. This allows packages to have multiple PO
46958 # directories under different names or in different locations.
46959 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
46960 rm -f "$ac_dir/POTFILES"
46961 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
46962 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
46963 POMAKEFILEDEPS="POTFILES.in"
46964 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
46965 # on $ac_dir but don't depend on user-specified configuration
46967 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
46968 # The LINGUAS file contains the set of available languages.
46969 if test -n "$OBSOLETE_ALL_LINGUAS"; then
46970 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
46972 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
46973 # Hide the ALL_LINGUAS assigment from automake < 1.5.
46974 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
46975 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
46977 # The set of available languages was given in configure.in.
46978 # Hide the ALL_LINGUAS assigment from automake < 1.5.
46979 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
46982 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
46983 # Compute UPDATEPOFILES
46984 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
46985 # Compute DUMMYPOFILES
46986 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
46988 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
46989 case "$ac_given_srcdir" in
46991 *) srcdirpre='$(srcdir)/' ;;
46997 for lang in $ALL_LINGUAS; do
46998 POFILES="$POFILES $srcdirpre$lang.po"
46999 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
47000 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
47001 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
47003 # CATALOGS depends on both $ac_dir and the user's LINGUAS
47004 # environment variable.
47006 if test -n "$ALL_LINGUAS"; then
47007 for presentlang in $ALL_LINGUAS; do
47009 if test "%UNSET%" != "$LINGUAS"; then
47010 desiredlanguages="$LINGUAS"
47012 desiredlanguages="$ALL_LINGUAS"
47014 for desiredlang in $desiredlanguages; do
47015 # Use the presentlang catalog if desiredlang is
47016 # a. equal to presentlang, or
47017 # b. a variant of presentlang (because in this case,
47018 # presentlang can be used as a fallback for messages
47019 # which are not translated in the desiredlang catalog).
47020 case "$desiredlang" in
47021 "$presentlang"*) useit=yes;;
47024 if test $useit = yes; then
47025 INST_LINGUAS="$INST_LINGUAS $presentlang"
47030 if test -n "$INST_LINGUAS"; then
47031 for lang in $INST_LINGUAS; do
47032 CATALOGS="$CATALOGS $lang.gmo"
47035 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
47036 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"
47037 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
47038 if test -f "$f"; then
47040 *.orig | *.bak | *~) ;;
47041 *) cat "$f" >> "$ac_dir/Makefile" ;;
47051 # See if we are running on zsh, and set the options which allow our
47052 # commands through without removal of \ escapes.
47053 if test -n "${ZSH_VERSION+set}" ; then
47054 setopt NO_GLOB_SUBST
47057 cfgfile="${ofile}T"
47058 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
47061 cat <<_LT_EOF >> "$cfgfile"
47064 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
47065 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
47066 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
47067 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
47069 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
47070 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
47072 # Written by Gordon Matzigkeit, 1996
47074 # This file is part of GNU Libtool.
47076 # GNU Libtool is free software; you can redistribute it and/or
47077 # modify it under the terms of the GNU General Public License as
47078 # published by the Free Software Foundation; either version 2 of
47079 # the License, or (at your option) any later version.
47081 # As a special exception to the GNU General Public License,
47082 # if you distribute this file as part of a program or library that
47083 # is built using GNU Libtool, you may include this file under the
47084 # same distribution terms that you use for the rest of that program.
47086 # GNU Libtool is distributed in the hope that it will be useful,
47087 # but WITHOUT ANY WARRANTY; without even the implied warranty of
47088 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47089 # GNU General Public License for more details.
47091 # You should have received a copy of the GNU General Public License
47092 # along with GNU Libtool; see the file COPYING. If not, a copy
47093 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
47094 # obtained by writing to the Free Software Foundation, Inc.,
47095 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
47098 # The names of the tagged configurations supported by this script.
47101 # ### BEGIN LIBTOOL CONFIG
47103 # Which release of libtool.m4 was used?
47104 macro_version=$macro_version
47105 macro_revision=$macro_revision
47107 # Whether or not to build shared libraries.
47108 build_libtool_libs=$enable_shared
47110 # Whether or not to build static libraries.
47111 build_old_libs=$enable_static
47113 # What type of objects to build.
47116 # Whether or not to optimize for fast installation.
47117 fast_install=$enable_fast_install
47119 # Shell to use when invoking shell scripts.
47122 # An echo program that protects backslashes.
47126 host_alias=$host_alias
47130 # The build system.
47131 build_alias=$build_alias
47135 # A sed program that does not truncate output.
47138 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
47139 Xsed="\$SED -e 1s/^X//"
47141 # A grep program that handles long lines.
47147 # A literal string matcher.
47150 # A BSD- or MS-compatible name lister.
47153 # Whether we need soft or hard links.
47156 # What is the maximum length of a command?
47157 max_cmd_len=$max_cmd_len
47159 # Object file suffix (normally "o").
47162 # Executable file suffix (normally "").
47165 # whether the shell understands "unset".
47168 # turn spaces into newlines.
47171 # turn newlines into spaces.
47174 # convert \$build file names to \$host format.
47175 to_host_file_cmd=$lt_cv_to_host_file_cmd
47177 # convert \$build files to toolchain format.
47178 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
47180 # An object symbol dumper.
47181 OBJDUMP=$lt_OBJDUMP
47183 # Method to check whether dependent libraries are shared objects.
47184 deplibs_check_method=$lt_deplibs_check_method
47186 # Command to use when deplibs_check_method = "file_magic".
47187 file_magic_cmd=$lt_file_magic_cmd
47189 # How to find potential files when deplibs_check_method = "file_magic".
47190 file_magic_glob=$lt_file_magic_glob
47192 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
47193 want_nocaseglob=$lt_want_nocaseglob
47195 # DLL creation program.
47196 DLLTOOL=$lt_DLLTOOL
47198 # Command to associate shared and link libraries.
47199 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
47204 # Flags to create an archive.
47205 AR_FLAGS=$lt_AR_FLAGS
47207 # How to feed a file listing to the archiver.
47208 archiver_list_spec=$lt_archiver_list_spec
47210 # A symbol stripping program.
47213 # Commands used to install an old-style archive.
47215 old_postinstall_cmds=$lt_old_postinstall_cmds
47216 old_postuninstall_cmds=$lt_old_postuninstall_cmds
47218 # Whether to use a lock for old archive extraction.
47219 lock_old_archive_extraction=$lock_old_archive_extraction
47224 # LTCC compiler flags.
47225 LTCFLAGS=$lt_CFLAGS
47227 # Take the output of nm and produce a listing of raw symbols and C names.
47228 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
47230 # Transform the output of nm in a proper C declaration.
47231 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
47233 # Transform the output of nm in a C name address pair.
47234 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
47236 # Transform the output of nm in a C name address pair when lib prefix is needed.
47237 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
47239 # Specify filename containing input files for \$NM.
47240 nm_file_list_spec=$lt_nm_file_list_spec
47242 # The root where to search for dependent libraries,and in which our libraries should be installed.
47243 lt_sysroot=$lt_sysroot
47245 # The name of the directory that contains temporary libtool files.
47248 # Used to examine libraries when file_magic_cmd begins with "file".
47249 MAGIC_CMD=$MAGIC_CMD
47251 # Must we lock files when doing compilation?
47252 need_locks=$lt_need_locks
47255 MANIFEST_TOOL=$lt_MANIFEST_TOOL
47257 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
47258 DSYMUTIL=$lt_DSYMUTIL
47260 # Tool to change global to local symbols on Mac OS X.
47263 # Tool to manipulate fat objects and archives on Mac OS X.
47266 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
47269 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
47270 OTOOL64=$lt_OTOOL64
47272 # Old archive suffix (normally "a").
47275 # Shared library suffix (normally ".so").
47276 shrext_cmds=$lt_shrext_cmds
47278 # The commands to extract the exported symbol list from a shared archive.
47279 extract_expsyms_cmds=$lt_extract_expsyms_cmds
47281 # Variables whose values should be saved in libtool wrapper scripts and
47282 # restored at link time.
47283 variables_saved_for_relink=$lt_variables_saved_for_relink
47285 # Do we need the "lib" prefix for modules?
47286 need_lib_prefix=$need_lib_prefix
47288 # Do we need a version for libraries?
47289 need_version=$need_version
47291 # Library versioning type.
47292 version_type=$version_type
47294 # Shared library runtime path variable.
47295 runpath_var=$runpath_var
47297 # Shared library path variable.
47298 shlibpath_var=$shlibpath_var
47300 # Is shlibpath searched before the hard-coded library search path?
47301 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47303 # Format of library name prefix.
47304 libname_spec=$lt_libname_spec
47306 # List of archive names. First name is the real one, the rest are links.
47307 # The last name is the one that the linker finds with -lNAME
47308 library_names_spec=$lt_library_names_spec
47310 # The coded name of the library, if different from the real name.
47311 soname_spec=$lt_soname_spec
47313 # Permission mode override for installation of shared libraries.
47314 install_override_mode=$lt_install_override_mode
47316 # Command to use after installation of a shared archive.
47317 postinstall_cmds=$lt_postinstall_cmds
47319 # Command to use after uninstallation of a shared archive.
47320 postuninstall_cmds=$lt_postuninstall_cmds
47322 # Commands used to finish a libtool library installation in a directory.
47323 finish_cmds=$lt_finish_cmds
47325 # As "finish_cmds", except a single script fragment to be evaled but
47327 finish_eval=$lt_finish_eval
47329 # Whether we should hardcode library paths into libraries.
47330 hardcode_into_libs=$hardcode_into_libs
47332 # Compile-time system search path for libraries.
47333 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47335 # Run-time system search path for libraries.
47336 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
47338 # Whether dlopen is supported.
47339 dlopen_support=$enable_dlopen
47341 # Whether dlopen of programs is supported.
47342 dlopen_self=$enable_dlopen_self
47344 # Whether dlopen of statically linked programs is supported.
47345 dlopen_self_static=$enable_dlopen_self_static
47347 # Commands to strip libraries.
47348 old_striplib=$lt_old_striplib
47349 striplib=$lt_striplib
47352 # The linker used to build libraries.
47355 # How to create reloadable object files.
47356 reload_flag=$lt_reload_flag
47357 reload_cmds=$lt_reload_cmds
47359 # Commands used to build an old-style archive.
47360 old_archive_cmds=$lt_old_archive_cmds
47362 # A language specific compiler.
47365 # Is the compiler the GNU compiler?
47368 # Compiler flag to turn off builtin functions.
47369 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
47371 # Additional compiler flags for building library objects.
47372 pic_flag=$lt_lt_prog_compiler_pic
47374 # How to pass a linker flag through the compiler.
47375 wl=$lt_lt_prog_compiler_wl
47377 # Compiler flag to prevent dynamic linking.
47378 link_static_flag=$lt_lt_prog_compiler_static
47380 # Does compiler simultaneously support -c and -o options?
47381 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
47383 # Whether or not to add -lc for building shared libraries.
47384 build_libtool_need_lc=$archive_cmds_need_lc
47386 # Whether or not to disallow shared libs when runtime libs are static.
47387 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
47389 # Compiler flag to allow reflexive dlopens.
47390 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
47392 # Compiler flag to generate shared objects directly from archives.
47393 whole_archive_flag_spec=$lt_whole_archive_flag_spec
47395 # Whether the compiler copes with passing no objects directly.
47396 compiler_needs_object=$lt_compiler_needs_object
47398 # Create an old-style archive from a shared archive.
47399 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
47401 # Create a temporary old-style archive to link instead of a shared archive.
47402 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
47404 # Commands used to build a shared archive.
47405 archive_cmds=$lt_archive_cmds
47406 archive_expsym_cmds=$lt_archive_expsym_cmds
47408 # Commands used to build a loadable module if different from building
47409 # a shared archive.
47410 module_cmds=$lt_module_cmds
47411 module_expsym_cmds=$lt_module_expsym_cmds
47413 # Whether we are building with GNU ld or not.
47414 with_gnu_ld=$lt_with_gnu_ld
47416 # Flag that allows shared libraries with undefined symbols to be built.
47417 allow_undefined_flag=$lt_allow_undefined_flag
47419 # Flag that enforces no undefined symbols.
47420 no_undefined_flag=$lt_no_undefined_flag
47422 # Flag to hardcode \$libdir into a binary during linking.
47423 # This must work even if \$libdir does not exist
47424 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
47426 # If ld is used when linking, flag to hardcode \$libdir into a binary
47427 # during linking. This must work even if \$libdir does not exist.
47428 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
47430 # Whether we need a single "-rpath" flag with a separated argument.
47431 hardcode_libdir_separator=$lt_hardcode_libdir_separator
47433 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47434 # DIR into the resulting binary.
47435 hardcode_direct=$hardcode_direct
47437 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47438 # DIR into the resulting binary and the resulting library dependency is
47439 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
47440 # library is relocated.
47441 hardcode_direct_absolute=$hardcode_direct_absolute
47443 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47444 # into the resulting binary.
47445 hardcode_minus_L=$hardcode_minus_L
47447 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47448 # into the resulting binary.
47449 hardcode_shlibpath_var=$hardcode_shlibpath_var
47451 # Set to "yes" if building a shared library automatically hardcodes DIR
47452 # into the library and all subsequent libraries and executables linked
47454 hardcode_automatic=$hardcode_automatic
47456 # Set to yes if linker adds runtime paths of dependent libraries
47457 # to runtime path list.
47458 inherit_rpath=$inherit_rpath
47460 # Whether libtool must link a program against all its dependency libraries.
47461 link_all_deplibs=$link_all_deplibs
47463 # Set to "yes" if exported symbols are required.
47464 always_export_symbols=$always_export_symbols
47466 # The commands to list exported symbols.
47467 export_symbols_cmds=$lt_export_symbols_cmds
47469 # Symbols that should not be listed in the preloaded symbols.
47470 exclude_expsyms=$lt_exclude_expsyms
47472 # Symbols that must always be exported.
47473 include_expsyms=$lt_include_expsyms
47475 # Commands necessary for linking programs (against libraries) with templates.
47476 prelink_cmds=$lt_prelink_cmds
47478 # Commands necessary for finishing linking programs.
47479 postlink_cmds=$lt_postlink_cmds
47481 # Specify filename containing input files.
47482 file_list_spec=$lt_file_list_spec
47484 # How to hardcode a shared library path into an executable.
47485 hardcode_action=$hardcode_action
47487 # ### END LIBTOOL CONFIG
47493 cat <<\_LT_EOF >> "$cfgfile"
47494 # AIX sometimes has problems with the GCC collect2 program. For some
47495 # reason, if we set the COLLECT_NAMES environment variable, the problems
47496 # vanish in a puff of smoke.
47497 if test "X${COLLECT_NAMES+set}" != Xset; then
47499 export COLLECT_NAMES
47506 ltmain="$ac_aux_dir/ltmain.sh"
47509 # We use sed instead of cat because bash on DJGPP gets confused if
47510 # if finds mixed CR/LF and LF-only lines. Since sed operates in
47511 # text mode, it properly converts lines to CR/LF. This bash problem
47512 # is reportedly fixed, but why not run on old versions too?
47513 sed '$q' "$ltmain" >> "$cfgfile" \
47514 || (rm -f "$cfgfile"; exit 1)
47516 if test x"$xsi_shell" = xyes; then
47517 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
47521 \ */*) func_dirname_result="${1%/*}${2}" ;;\
47522 \ * ) func_dirname_result="${3}" ;;\
47524 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
47525 && mv -f "$cfgfile.tmp" "$cfgfile" \
47526 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47527 test 0 -eq $? || _lt_function_replace_fail=:
47530 sed -e '/^func_basename ()$/,/^} # func_basename /c\
47533 \ func_basename_result="${1##*/}"\
47534 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
47535 && mv -f "$cfgfile.tmp" "$cfgfile" \
47536 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47537 test 0 -eq $? || _lt_function_replace_fail=:
47540 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
47541 func_dirname_and_basename ()\
47544 \ */*) func_dirname_result="${1%/*}${2}" ;;\
47545 \ * ) func_dirname_result="${3}" ;;\
47547 \ func_basename_result="${1##*/}"\
47548 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
47549 && mv -f "$cfgfile.tmp" "$cfgfile" \
47550 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47551 test 0 -eq $? || _lt_function_replace_fail=:
47554 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
47557 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
47558 \ # positional parameters, so assign one to ordinary parameter first.\
47559 \ func_stripname_result=${3}\
47560 \ func_stripname_result=${func_stripname_result#"${1}"}\
47561 \ func_stripname_result=${func_stripname_result%"${2}"}\
47562 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
47563 && mv -f "$cfgfile.tmp" "$cfgfile" \
47564 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47565 test 0 -eq $? || _lt_function_replace_fail=:
47568 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
47569 func_split_long_opt ()\
47571 \ func_split_long_opt_name=${1%%=*}\
47572 \ func_split_long_opt_arg=${1#*=}\
47573 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
47574 && mv -f "$cfgfile.tmp" "$cfgfile" \
47575 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47576 test 0 -eq $? || _lt_function_replace_fail=:
47579 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
47580 func_split_short_opt ()\
47582 \ func_split_short_opt_arg=${1#??}\
47583 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
47584 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
47585 && mv -f "$cfgfile.tmp" "$cfgfile" \
47586 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47587 test 0 -eq $? || _lt_function_replace_fail=:
47590 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
47594 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
47595 \ *) func_lo2o_result=${1} ;;\
47597 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
47598 && mv -f "$cfgfile.tmp" "$cfgfile" \
47599 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47600 test 0 -eq $? || _lt_function_replace_fail=:
47603 sed -e '/^func_xform ()$/,/^} # func_xform /c\
47606 func_xform_result=${1%.*}.lo\
47607 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
47608 && mv -f "$cfgfile.tmp" "$cfgfile" \
47609 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47610 test 0 -eq $? || _lt_function_replace_fail=:
47613 sed -e '/^func_arith ()$/,/^} # func_arith /c\
47616 func_arith_result=$(( $* ))\
47617 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
47618 && mv -f "$cfgfile.tmp" "$cfgfile" \
47619 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47620 test 0 -eq $? || _lt_function_replace_fail=:
47623 sed -e '/^func_len ()$/,/^} # func_len /c\
47626 func_len_result=${#1}\
47627 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
47628 && mv -f "$cfgfile.tmp" "$cfgfile" \
47629 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47630 test 0 -eq $? || _lt_function_replace_fail=:
47634 if test x"$lt_shell_append" = xyes; then
47635 sed -e '/^func_append ()$/,/^} # func_append /c\
47638 eval "${1}+=\\${2}"\
47639 } # Extended-shell func_append 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_append_quoted ()$/,/^} # func_append_quoted /c\
47646 func_append_quoted ()\
47648 \ func_quote_for_eval "${2}"\
47649 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
47650 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
47651 && mv -f "$cfgfile.tmp" "$cfgfile" \
47652 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47653 test 0 -eq $? || _lt_function_replace_fail=:
47656 # Save a `func_append' function call where possible by direct use of '+='
47657 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
47658 && mv -f "$cfgfile.tmp" "$cfgfile" \
47659 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47660 test 0 -eq $? || _lt_function_replace_fail=:
47662 # Save a `func_append' function call even when '+=' is not available
47663 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
47664 && mv -f "$cfgfile.tmp" "$cfgfile" \
47665 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47666 test 0 -eq $? || _lt_function_replace_fail=:
47669 if test x"$_lt_function_replace_fail" = x":"; then
47670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
47671 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
47675 mv -f "$cfgfile" "$ofile" ||
47676 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
47687 ac_clean_files=$ac_clean_files_save
47689 test $ac_write_fail = 0 ||
47690 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
47693 # configure is writing to config.log, and then calls config.status.
47694 # config.status does its own redirection, appending to config.log.
47695 # Unfortunately, on DOS this fails, as config.log is still kept open
47696 # by configure, so config.status won't be able to write to it; its
47697 # output is simply discarded. So we exec the FD to /dev/null,
47698 # effectively closing config.log, so it can be properly (re)opened and
47699 # appended to by config.status. When coming back to configure, we
47700 # need to make the FD available again.
47701 if test "$no_create" != yes; then
47703 ac_config_status_args=
47704 test "$silent" = yes &&
47705 ac_config_status_args="$ac_config_status_args --quiet"
47707 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47709 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47710 # would make configure fail if this is the last instruction.
47711 $ac_cs_success || as_fn_exit 1
47713 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
47714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
47715 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
47720 echo "Compiler Flags:"
47721 echo " CFLAGS: ${CFLAGS-(none)}"
47722 echo " CPPFLAGS: ${CPPFLAGS-(none)}"
47723 echo " LDFLAGS: ${LDFLAGS-(none)}"
47724 echo " LIBS: ${LIBS-(none)}"
47727 echo "Amanda Components:$AMANDA_COMPONENTS$missing_components"
47730 echo "Working IPv6:" $WORKING_IPV6
47733 echo "Build documentation:" $ENABLE_MANPAGE_BUILD
47736 echo "Directories:"
47737 echo " Application: $APPLICATION_DIR"
47738 echo " Configuration: $CONFIG_DIR"
47739 echo " GNU Tar lists: $GNUTAR_LISTED_INCREMENTAL_DIR"
47740 echo " Perl modules (amperldir): $amperldir"
47741 echo " Template and example data files (amdatadir): $amdatadir"
47742 echo " Temporary: $AMANDA_TMPDIR"
47744 if test -f config.warnings; then
47746 cat config.warnings | sed -e 's/^/ /g'