2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
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.
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
710 WANT_KRB5_SECURITY_FALSE
711 WANT_KRB5_SECURITY_TRUE
713 WANT_SSH_SECURITY_FALSE
714 WANT_SSH_SECURITY_TRUE
717 WANT_RSH_SECURITY_FALSE
718 WANT_RSH_SECURITY_TRUE
720 WANT_BSDUDP_SECURITY_FALSE
721 WANT_BSDUDP_SECURITY_TRUE
723 WANT_BSDTCP_SECURITY_FALSE
724 WANT_BSDTCP_SECURITY_TRUE
727 WANT_BSD_SECURITY_FALSE
728 WANT_BSD_SECURITY_TRUE
759 WANT_MANDATORY_THREAD_CHECK_FALSE
760 WANT_MANDATORY_THREAD_CHECK_TRUE
761 WANT_CYGWIN_COPY_PERL_DLL_FALSE
762 WANT_CYGWIN_COPY_PERL_DLL_TRUE
768 WANT_AMFLOCK_LNLOCK_FALSE
769 WANT_AMFLOCK_LNLOCK_TRUE
770 WANT_AMFLOCK_LOCKF_FALSE
771 WANT_AMFLOCK_LOCKF_TRUE
772 WANT_AMFLOCK_FLOCK_FALSE
773 WANT_AMFLOCK_FLOCK_TRUE
774 WANT_AMFLOCK_POSIX_FALSE
775 WANT_AMFLOCK_POSIX_TRUE
777 DEFAULT_AMANDATES_FILE
783 CONFIG_CLOBBER_MY_CONFIG
786 ENABLE_MANPAGE_BUILD_FALSE
787 ENABLE_MANPAGE_BUILD_TRUE
815 WANT_INSTALLPERMS_FALSE
816 WANT_INSTALLPERMS_TRUE
817 WANT_SETUID_CLIENT_FALSE
818 WANT_SETUID_CLIENT_TRUE
831 GNUTAR_LISTED_INCREMENTAL_DIR
838 AMANDA_WARNING_CFLAGS
842 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
849 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
852 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
854 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
855 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
856 TIME_H_DEFINES_STRUCT_TIMESPEC
857 NEXT_AS_FIRST_DIRECTIVE_TIME_H
872 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
874 NEXT_AS_FIRST_DIRECTIVE_STRING_H
877 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
879 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
890 HAVE_SIGNED_SIG_ATOMIC_T
893 BITSIZEOF_SIG_ATOMIC_T
899 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
903 HAVE_UNSIGNED_LONG_LONG_INT
905 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
914 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
916 APPLE_UNIVERSAL_BUILD
993 REPLACE_CANONICALIZE_FILE_NAME
998 HAVE_STRUCT_RANDOM_DATA
1014 HAVE_DECL_GETLOADAVG
1015 HAVE_CANONICALIZE_FILE_NAME
1026 GNULIB_REALLOC_POSIX
1039 GNULIB_CANONICALIZE_FILE_NAME
1081 LOCALCHARSET_TESTS_ENVIRONMENT
1084 HAVE_LANGINFO_CODESET
1086 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
1092 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1094 REPLACE_GETTIMEOFDAY
1103 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1110 NEXT_AS_FIRST_DIRECTIVE_NETDB_H
1112 HAVE_DECL_GETNAMEINFO
1113 HAVE_DECL_GETADDRINFO
1114 HAVE_DECL_GAI_STRERROR
1115 HAVE_DECL_FREEADDRINFO
1116 HAVE_STRUCT_ADDRINFO
1121 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1125 HAVE_STRUCT_SOCKADDR_STORAGE
1148 REPLACE_STDIO_WRITE_FUNCS
1157 REPLACE_OBSTACK_PRINTF
1179 HAVE_DECL_OBSTACK_PRINTF
1183 GNULIB_VSPRINTF_POSIX
1185 GNULIB_VPRINTF_POSIX
1187 GNULIB_VFPRINTF_POSIX
1192 GNULIB_STDIO_H_SIGPIPE
1193 GNULIB_SPRINTF_POSIX
1205 GNULIB_OBSTACK_PRINTF_POSIX
1206 GNULIB_OBSTACK_PRINTF
1218 GNULIB_FPRINTF_POSIX
1225 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1234 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1236 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1237 UNISTD_H_HAVE_WINSOCK2_H
1263 HAVE_DECL_GETUSERSHELL
1264 HAVE_DECL_GETPAGESIZE
1265 HAVE_DECL_GETLOGIN_R
1300 GNULIB_UNISTD_H_SIGPIPE
1301 GNULIB_UNISTD_H_GETOPT
1322 GNULIB_GETDTABLESIZE
1323 GNULIB_GETDOMAINNAME
1371 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1373 PRAGMA_SYSTEM_HEADER
1374 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1383 GL_COND_LIBTOOL_FALSE
1384 GL_COND_LIBTOOL_TRUE
1417 INSTALL_STRIP_PROGRAM
1470 program_transform_name
1483 enable_option_checking
1484 enable_dependency_tracking
1504 with_gnutar_listed_incremental
1510 with_low_tcpportrange
1514 with_maxtapeblocksize
1521 enable_syntax_checks
1530 enable_manpage_build
1546 with_libiconv_prefix
1550 with_bsdtcp_security
1551 with_bsdudp_security
1556 with_dump_honor_nodump
1571 enable_static_binary
1579 ac_precious_vars='build_alias
1609 # Initialize some variables set by options.
1611 ac_init_version=false
1612 ac_unrecognized_opts=
1613 ac_unrecognized_sep=
1614 # The variables have the same names as the options, with
1615 # dashes changed to underlines.
1616 cache_file=/dev/null
1623 program_transform_name=s,x,x,
1631 # Installation directory options.
1632 # These are left unexpanded so users can "make install exec_prefix=/foo"
1633 # and all the variables that are supposed to be based on exec_prefix
1634 # by default will actually change.
1635 # Use braces instead of parens because sh, perl, etc. also accept them.
1636 # (The list follows the same order as the GNU Coding Standards.)
1637 bindir='${exec_prefix}/bin'
1638 sbindir='${exec_prefix}/sbin'
1639 libexecdir='${exec_prefix}/libexec'
1640 datarootdir='${prefix}/share'
1641 datadir='${datarootdir}'
1642 sysconfdir='${prefix}/etc'
1643 sharedstatedir='${prefix}/com'
1644 localstatedir='${prefix}/var'
1645 includedir='${prefix}/include'
1646 oldincludedir='/usr/include'
1647 docdir='${datarootdir}/doc/${PACKAGE}'
1648 infodir='${datarootdir}/info'
1653 libdir='${exec_prefix}/lib'
1654 localedir='${datarootdir}/locale'
1655 mandir='${datarootdir}/man'
1661 # If the previous option needs an argument, assign it.
1662 if test -n "$ac_prev"; then
1663 eval $ac_prev=\$ac_option
1669 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1674 # Accept the important Cygnus configure options, so we can diagnose typos.
1676 case $ac_dashdash$ac_option in
1680 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1682 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1683 bindir=$ac_optarg ;;
1685 -build | --build | --buil | --bui | --bu)
1686 ac_prev=build_alias ;;
1687 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1688 build_alias=$ac_optarg ;;
1690 -cache-file | --cache-file | --cache-fil | --cache-fi \
1691 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1692 ac_prev=cache_file ;;
1693 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1694 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1695 cache_file=$ac_optarg ;;
1697 --config-cache | -C)
1698 cache_file=config.cache ;;
1700 -datadir | --datadir | --datadi | --datad)
1702 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1703 datadir=$ac_optarg ;;
1705 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1706 | --dataroo | --dataro | --datar)
1707 ac_prev=datarootdir ;;
1708 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1709 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1710 datarootdir=$ac_optarg ;;
1712 -disable-* | --disable-*)
1713 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1714 # Reject names that are not valid shell variable names.
1715 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1716 as_fn_error $? "invalid feature name: $ac_useropt"
1717 ac_useropt_orig=$ac_useropt
1718 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1719 case $ac_user_opts in
1721 "enable_$ac_useropt"
1723 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1724 ac_unrecognized_sep=', ';;
1726 eval enable_$ac_useropt=no ;;
1728 -docdir | --docdir | --docdi | --doc | --do)
1730 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1731 docdir=$ac_optarg ;;
1733 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1735 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1736 dvidir=$ac_optarg ;;
1738 -enable-* | --enable-*)
1739 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1740 # Reject names that are not valid shell variable names.
1741 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1742 as_fn_error $? "invalid feature name: $ac_useropt"
1743 ac_useropt_orig=$ac_useropt
1744 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1745 case $ac_user_opts in
1747 "enable_$ac_useropt"
1749 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1750 ac_unrecognized_sep=', ';;
1752 eval enable_$ac_useropt=\$ac_optarg ;;
1754 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1755 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1756 | --exec | --exe | --ex)
1757 ac_prev=exec_prefix ;;
1758 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1759 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1760 | --exec=* | --exe=* | --ex=*)
1761 exec_prefix=$ac_optarg ;;
1763 -gas | --gas | --ga | --g)
1764 # Obsolete; use --with-gas.
1767 -help | --help | --hel | --he | -h)
1768 ac_init_help=long ;;
1769 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1770 ac_init_help=recursive ;;
1771 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1772 ac_init_help=short ;;
1774 -host | --host | --hos | --ho)
1775 ac_prev=host_alias ;;
1776 -host=* | --host=* | --hos=* | --ho=*)
1777 host_alias=$ac_optarg ;;
1779 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1781 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1783 htmldir=$ac_optarg ;;
1785 -includedir | --includedir | --includedi | --included | --include \
1786 | --includ | --inclu | --incl | --inc)
1787 ac_prev=includedir ;;
1788 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1789 | --includ=* | --inclu=* | --incl=* | --inc=*)
1790 includedir=$ac_optarg ;;
1792 -infodir | --infodir | --infodi | --infod | --info | --inf)
1794 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1795 infodir=$ac_optarg ;;
1797 -libdir | --libdir | --libdi | --libd)
1799 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1800 libdir=$ac_optarg ;;
1802 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1803 | --libexe | --libex | --libe)
1804 ac_prev=libexecdir ;;
1805 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1806 | --libexe=* | --libex=* | --libe=*)
1807 libexecdir=$ac_optarg ;;
1809 -localedir | --localedir | --localedi | --localed | --locale)
1810 ac_prev=localedir ;;
1811 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1812 localedir=$ac_optarg ;;
1814 -localstatedir | --localstatedir | --localstatedi | --localstated \
1815 | --localstate | --localstat | --localsta | --localst | --locals)
1816 ac_prev=localstatedir ;;
1817 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1818 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1819 localstatedir=$ac_optarg ;;
1821 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1823 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1824 mandir=$ac_optarg ;;
1826 -nfp | --nfp | --nf)
1827 # Obsolete; use --without-fp.
1830 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1831 | --no-cr | --no-c | -n)
1834 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1835 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1838 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1839 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1840 | --oldin | --oldi | --old | --ol | --o)
1841 ac_prev=oldincludedir ;;
1842 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1843 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1844 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1845 oldincludedir=$ac_optarg ;;
1847 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1849 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1850 prefix=$ac_optarg ;;
1852 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1853 | --program-pre | --program-pr | --program-p)
1854 ac_prev=program_prefix ;;
1855 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1856 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1857 program_prefix=$ac_optarg ;;
1859 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1860 | --program-suf | --program-su | --program-s)
1861 ac_prev=program_suffix ;;
1862 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1863 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1864 program_suffix=$ac_optarg ;;
1866 -program-transform-name | --program-transform-name \
1867 | --program-transform-nam | --program-transform-na \
1868 | --program-transform-n | --program-transform- \
1869 | --program-transform | --program-transfor \
1870 | --program-transfo | --program-transf \
1871 | --program-trans | --program-tran \
1872 | --progr-tra | --program-tr | --program-t)
1873 ac_prev=program_transform_name ;;
1874 -program-transform-name=* | --program-transform-name=* \
1875 | --program-transform-nam=* | --program-transform-na=* \
1876 | --program-transform-n=* | --program-transform-=* \
1877 | --program-transform=* | --program-transfor=* \
1878 | --program-transfo=* | --program-transf=* \
1879 | --program-trans=* | --program-tran=* \
1880 | --progr-tra=* | --program-tr=* | --program-t=*)
1881 program_transform_name=$ac_optarg ;;
1883 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1885 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1886 pdfdir=$ac_optarg ;;
1888 -psdir | --psdir | --psdi | --psd | --ps)
1890 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1893 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1894 | -silent | --silent | --silen | --sile | --sil)
1897 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1899 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1901 sbindir=$ac_optarg ;;
1903 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1904 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1905 | --sharedst | --shareds | --shared | --share | --shar \
1907 ac_prev=sharedstatedir ;;
1908 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1909 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1910 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1912 sharedstatedir=$ac_optarg ;;
1914 -site | --site | --sit)
1916 -site=* | --site=* | --sit=*)
1919 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1921 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1922 srcdir=$ac_optarg ;;
1924 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1925 | --syscon | --sysco | --sysc | --sys | --sy)
1926 ac_prev=sysconfdir ;;
1927 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1928 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1929 sysconfdir=$ac_optarg ;;
1931 -target | --target | --targe | --targ | --tar | --ta | --t)
1932 ac_prev=target_alias ;;
1933 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1934 target_alias=$ac_optarg ;;
1936 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1939 -version | --version | --versio | --versi | --vers | -V)
1940 ac_init_version=: ;;
1943 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1944 # Reject names that are not valid shell variable names.
1945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1946 as_fn_error $? "invalid package name: $ac_useropt"
1947 ac_useropt_orig=$ac_useropt
1948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1949 case $ac_user_opts in
1953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1954 ac_unrecognized_sep=', ';;
1956 eval with_$ac_useropt=\$ac_optarg ;;
1958 -without-* | --without-*)
1959 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1960 # Reject names that are not valid shell variable names.
1961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1962 as_fn_error $? "invalid package name: $ac_useropt"
1963 ac_useropt_orig=$ac_useropt
1964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1965 case $ac_user_opts in
1969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1970 ac_unrecognized_sep=', ';;
1972 eval with_$ac_useropt=no ;;
1975 # Obsolete; use --with-x.
1978 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1979 | --x-incl | --x-inc | --x-in | --x-i)
1980 ac_prev=x_includes ;;
1981 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1982 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1983 x_includes=$ac_optarg ;;
1985 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1986 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1987 ac_prev=x_libraries ;;
1988 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1989 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1990 x_libraries=$ac_optarg ;;
1992 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1993 Try \`$0 --help' for more information"
1997 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1998 # Reject names that are not valid shell variable names.
1999 case $ac_envvar in #(
2000 '' | [0-9]* | *[!_$as_cr_alnum]* )
2001 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2003 eval $ac_envvar=\$ac_optarg
2004 export $ac_envvar ;;
2007 # FIXME: should be removed in autoconf 3.0.
2008 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2009 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2010 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2011 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2017 if test -n "$ac_prev"; then
2018 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2019 as_fn_error $? "missing argument to $ac_option"
2022 if test -n "$ac_unrecognized_opts"; then
2023 case $enable_option_checking in
2025 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2026 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2030 # Check all directory arguments for consistency.
2031 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2032 datadir sysconfdir sharedstatedir localstatedir includedir \
2033 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2034 libdir localedir mandir
2036 eval ac_val=\$$ac_var
2037 # Remove trailing slashes.
2040 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2041 eval $ac_var=\$ac_val;;
2043 # Be sure to have absolute directory names.
2045 [\\/$]* | ?:[\\/]* ) continue;;
2046 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2048 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2051 # There might be people who depend on the old broken behavior: `$host'
2052 # used to hold the argument of --host etc.
2053 # FIXME: To remove some day.
2056 target=$target_alias
2058 # FIXME: To remove some day.
2059 if test "x$host_alias" != x; then
2060 if test "x$build_alias" = x; then
2061 cross_compiling=maybe
2062 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
2063 If a cross compiler is detected then cross compile mode will be used" >&2
2064 elif test "x$build_alias" != "x$host_alias"; then
2070 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2072 test "$silent" = yes && exec 6>/dev/null
2075 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2076 ac_ls_di=`ls -di .` &&
2077 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2078 as_fn_error $? "working directory cannot be determined"
2079 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2080 as_fn_error $? "pwd does not report name of working directory"
2083 # Find the source files, if location was not specified.
2084 if test -z "$srcdir"; then
2085 ac_srcdir_defaulted=yes
2086 # Try the directory containing this script, then the parent directory.
2087 ac_confdir=`$as_dirname -- "$as_myself" ||
2088 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2089 X"$as_myself" : 'X\(//\)[^/]' \| \
2090 X"$as_myself" : 'X\(//\)$' \| \
2091 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2092 $as_echo X"$as_myself" |
2093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2111 if test ! -r "$srcdir/$ac_unique_file"; then
2115 ac_srcdir_defaulted=no
2117 if test ! -r "$srcdir/$ac_unique_file"; then
2118 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2119 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2121 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2123 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2125 # When building in place, set srcdir=.
2126 if test "$ac_abs_confdir" = "$ac_pwd"; then
2129 # Remove unnecessary trailing slashes from srcdir.
2130 # Double slashes in file names in object file debugging info
2131 # mess up M-x gdb in Emacs.
2133 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2135 for ac_var in $ac_precious_vars; do
2136 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2137 eval ac_env_${ac_var}_value=\$${ac_var}
2138 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2139 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2143 # Report the --help message.
2145 if test "$ac_init_help" = "long"; then
2146 # Omit some internal or obsolete options to make the list less imposing.
2147 # This message is too long to be a string in the A/UX 3.1 sh.
2149 \`configure' configures this package to adapt to many kinds of systems.
2151 Usage: $0 [OPTION]... [VAR=VALUE]...
2153 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2154 VAR=VALUE. See below for descriptions of some of the useful variables.
2156 Defaults for the options are specified in brackets.
2159 -h, --help display this help and exit
2160 --help=short display options specific to this package
2161 --help=recursive display the short help of all the included packages
2162 -V, --version display version information and exit
2163 -q, --quiet, --silent do not print \`checking ...' messages
2164 --cache-file=FILE cache test results in FILE [disabled]
2165 -C, --config-cache alias for \`--cache-file=config.cache'
2166 -n, --no-create do not create output files
2167 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2169 Installation directories:
2170 --prefix=PREFIX install architecture-independent files in PREFIX
2171 [$ac_default_prefix]
2172 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2175 By default, \`make install' will install all the files in
2176 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2177 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2178 for instance \`--prefix=\$HOME'.
2180 For better control, use the options below.
2182 Fine tuning of the installation directories:
2183 --bindir=DIR user executables [EPREFIX/bin]
2184 --sbindir=DIR system admin executables [EPREFIX/sbin]
2185 --libexecdir=DIR program executables [EPREFIX/libexec]
2186 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2187 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2188 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2189 --libdir=DIR object code libraries [EPREFIX/lib]
2190 --includedir=DIR C header files [PREFIX/include]
2191 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2192 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2193 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2194 --infodir=DIR info documentation [DATAROOTDIR/info]
2195 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2196 --mandir=DIR man documentation [DATAROOTDIR/man]
2197 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2198 --htmldir=DIR html documentation [DOCDIR]
2199 --dvidir=DIR dvi documentation [DOCDIR]
2200 --pdfdir=DIR pdf documentation [DOCDIR]
2201 --psdir=DIR ps documentation [DOCDIR]
2207 --program-prefix=PREFIX prepend PREFIX to installed program names
2208 --program-suffix=SUFFIX append SUFFIX to installed program names
2209 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2212 --build=BUILD configure for building on BUILD [guessed]
2213 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2217 if test -n "$ac_init_help"; then
2222 --disable-option-checking ignore unrecognized --enable/--with options
2223 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2224 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2225 --disable-dependency-tracking speeds up one-time build
2226 --enable-dependency-tracking do not reject slow dependency extractors
2227 --enable-threads={posix|solaris|pth|win32}
2228 specify multithreading API
2229 --disable-threads build without multithread safety
2230 --disable-rpath do not hardcode runtime library paths
2231 --disable-largefile omit support for large files
2232 --enable-as-needed enable use od --as-needed linker flag
2233 --disable-installperms do not modify ownership and permissions on installed
2235 --enable-syntax-checks Perform syntax checks when installing - developers
2237 --enable-manpage-build Build the manpages from their XML source (shipped
2238 manpages are usually sufficient)
2239 --disable-nls do not use Native Language Support
2240 --enable-werror To compile with -Werror compiler flag
2241 --enable-swig-error To compile swiged C file with -Werror compiler flag
2242 --enable-shared[=PKGS] build shared libraries [default=yes]
2243 --enable-static[=PKGS] build static libraries [default=yes]
2244 --enable-fast-install[=PKGS]
2245 optimize for fast installation [default=yes]
2246 --disable-libtool-lock avoid locking (might break parallel builds)
2247 --enable-static-binary To build statically linked binaries
2248 --disable-glibtest do not try to compile and run a test GLIB program
2249 --disable-s3-device disable the S3 device
2250 --disable-dvdrw-device disable the DVD-RW device
2251 --disable-ndmp-device disable the NDMP device
2254 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2255 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2256 --with-gnu-ld assume the C compiler uses GNU ld default=no
2257 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
2258 --without-libpth-prefix don't search for libpth in includedir and libdir
2259 --without-included-regex
2260 don't compile regex; this is the default on systems
2261 with recent-enough versions of the GNU C Library
2262 (use with caution on other systems).
2263 --with-cflags=FLAGS deprecated; use ./configure CFLAGS=...
2264 --with-includes=INCLUDE-DIRS
2265 deprecated; use ./configure CPPFLAGS='-I.. -I..'
2266 --with-libraries=LIBRARY-DIRS
2267 deprecated; use ./configure LDFLAGS='-L.. -L..' (add
2268 -R on Solaris, NetBSD)
2269 --with-user=USER force execution to USER on client systems (REQUIRED)
2270 --with-group=GROUP group allowed to execute setuid-root programs
2272 --with-dumperdir=DIR where we install the dumpers (deprecated)
2273 --with-configdir=DIR runtime config files in DIR [sysconfdir/amanda]
2274 --with-indexdir deprecated: use indexdir in amanda.conf
2275 --with-dbdir deprecated: use infofile in amanda.conf
2276 --with-logdir deprecated: use logfile in amanda.conf
2278 --with-gnutar-listdir=DIR
2279 put gnutar directory lists in DIR (default:
2280 localstatedir/amanda/gnutar-lists)
2281 --with-gnutar-listed-incremental
2282 deprecated; use --with-gnutar-listdir
2283 --with-tmpdir directory for temporary and debugging files
2284 (default: /tmp/amanda)
2285 --without-force-uid do not check userids when running programs
2287 force ownership of installed files to USER (default same as --with-user)
2289 --with-fqdn use FQDN's to backup multiple networks
2290 --without-reuseaddr Don't reuse network connections until full timeout
2292 --with-low-tcpportrange=low,high
2293 bind reserved TCP server sockets to ports within
2294 --with-tcpportrange=low,high
2295 bind unreserved TCP server sockets to ports within
2296 --with-udpportrange=low,high
2297 bind reserved UDP server sockets to ports within
2298 --with-buffered-dump buffer the dumping sockets on the server for speed
2300 --with-assertions compile assertions into code
2301 --with-debugging=DIR
2302 put debug logs in DIR (default same as --with-tmpdir)
2304 --with-debug-days=NN number of days to keep debugging files (default: 4)
2305 --with-testing[=SUFFIX] use alternate service names with suffix (default
2307 --with-single-userid
2308 force amanda to run as a single userid (for testing)
2310 --without-server do not build server stuff (set --without-restore)
2311 --without-client do not build client stuff
2312 --without-restore do not build amrestore nor amidxtaped
2313 --without-amrecover do not build amrecover
2314 --with-client-only deprecated: use --without-server
2315 --with-server-only deprecated: use --without-client
2316 --without-ndmp do not build ndmp
2317 --with-gnuplot=PATH use gnuplot executable at PATH in amplot
2318 --with-xsltproc[[[=PATH]]]
2319 Use the xsltproc binary in in PATH.
2320 --with-xsltproc-flags=FLAGS
2321 Flags to pass to xsltproc (default --nonet)
2322 --with-index-server=HOST
2323 default amanda index server (default: `uname -n`)
2324 --with-config=CONFIG default amanda configuration (default: DailySet1)
2325 --with-tape-server=HOST default tape server for restore (default: same as
2327 --with-tape-device=DEVICE
2328 default device on restore tape server
2329 --with-changer-device=DEV
2331 --with-amandates default location for 'amandates' (default:
2332 $localstatedir/amanda/amandates)
2333 --with-perlextlibs=libs extra LIBS for Perl extensions
2334 --with-ipv6 enable IPv6 support (default if IPv6 is found)
2335 --without-ipv6 disable IPv6
2336 --with-amlibdir[[[=PATH]]]
2337 Where library are installed, default: $libdir/amanda
2338 --without-amlibdir Library are installed in $libdir
2339 --with-amlibexecdir[[[=PATH]]]
2340 Where amanda own programs are installed, default:
2342 --without-amlibexecdir Amanda own programs are installed in $libexecdir
2343 --with-amperldir[[[=PATH]]]
2344 Where amanda's perl modules are installed; default:
2346 --without-amperldir Install amanda's perl modules in $amlibdir/perl
2347 --with-amdatadir[[[=PATH]]]
2348 Where amanda's templates and examples are installed;
2349 default: $datadir/amanda
2350 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2351 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2352 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2353 --without-libintl-prefix don't search for libintl in includedir and libdir
2354 --without-bsd-security do not include BSD authentication
2355 --without-amandahosts use ".rhosts" instead of ".amandahosts"
2356 --with-bsdtcp-security include BSDTCP authentication
2357 --with-bsdudp-security include BSDUDP authentication
2358 --with-rsh-security include RSH authentication
2359 --with-ssh-security include SSH authentication
2360 --with-ssh-options=[OPTIONS]
2361 Use these ssh options for ssh security; the default
2363 --with-krb5-security=DIR
2364 Location of Kerberos V software [/usr/kerberos
2365 /usr/cygnus /usr /opt/kerberos]
2366 --with-dump-honor-nodump
2367 if dump supports -h, use it for level0s too
2368 --with-gnutar=PROG use PROG as GNU 'tar'
2369 --with-star=PROG use PROG as 'star'
2370 --with-suntar=PROG use PROG as 'suntar'
2371 --with-smbclient=PROG use PROG as 'smbclient'
2372 --with-samba-user deprecated; place username in 'amandapass'
2373 --with-rundump use rundump, a setuid-root wrapper, to invoke dump
2374 --with-pic try to use only PIC/non-PIC objects [default=use
2376 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2377 --with-sysroot=DIR Search for dependent libraries within DIR
2378 (or the compiler's sysroot if not specified).
2379 --with-readline require readline support (for amrecover)
2380 --without-readline don't search for readline
2381 --with-libcurl=PREFIX look for the curl library in PREFIX/lib and headers
2384 Some influential environment variables:
2385 CC C compiler command
2386 CFLAGS C compiler flags
2387 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2388 nonstandard directory <lib dir>
2389 LIBS libraries to pass to the linker, e.g. -l<library>
2390 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2391 you have headers in a nonstandard directory <include dir>
2393 GNUPLOT Location of the 'gnuplot' binary
2394 SWIG Path to the 'swig' binary (developers only)
2395 PERL Path to the 'perl' binary
2396 GNUTAR Location of the GNU 'tar' binary
2397 STAR Location of the 'star' binary
2398 SUNTAR Location of the 'suntar' binary
2399 YACC The `Yet Another Compiler Compiler' implementation to use.
2400 Defaults to the first program found out of: `bison -y', `byacc',
2402 YFLAGS The list of arguments that will be passed by default to $YACC.
2403 This script will default YFLAGS to the empty string to avoid a
2404 default value of `-d' given by some make applications.
2405 MTX Path to the 'mtx' binary
2406 MOUNT Path to the 'mount' binary
2407 UMOUNT Path to the 'umount' binary
2408 GLIB_CFLAGS CFLAGS to build with glib; disables use of pkg-config; must
2409 specify all GLIB_ vars
2410 GLIB_LIBS libraries to build with glib; disables use of pkg-config; must
2411 specify all GLIB_vars
2413 genmarshal binary to use with glib; disables use of pkg-config;
2414 must specify all GLIB_ vars
2416 gobject_query binary to use with glib; disables use of
2417 pkg-config; must specify all GLIB_ vars
2419 mkenums binary to use with glib; disables use of pkg-config;
2420 must specify all GLIB_ vars
2421 PKG_CONFIG path to pkg-config utility
2423 directories to add to pkg-config's search path
2425 path overriding pkg-config's built-in search path
2427 Use these variables to override the choices made by `configure' or to help
2428 it to find libraries and programs with nonstandard names/locations.
2430 Report bugs to the package provider.
2435 if test "$ac_init_help" = "recursive"; then
2436 # If there are subdirs, report their specific --help.
2437 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2438 test -d "$ac_dir" ||
2439 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2444 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2446 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2447 # A ".." for each directory in $ac_dir_suffix.
2448 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2449 case $ac_top_builddir_sub in
2450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2454 ac_abs_top_builddir=$ac_pwd
2455 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2456 # for backward compatibility:
2457 ac_top_builddir=$ac_top_build_prefix
2460 .) # We are building in place.
2462 ac_top_srcdir=$ac_top_builddir_sub
2463 ac_abs_top_srcdir=$ac_pwd ;;
2464 [\\/]* | ?:[\\/]* ) # Absolute name.
2465 ac_srcdir=$srcdir$ac_dir_suffix;
2466 ac_top_srcdir=$srcdir
2467 ac_abs_top_srcdir=$srcdir ;;
2469 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2470 ac_top_srcdir=$ac_top_build_prefix$srcdir
2471 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2473 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2475 cd "$ac_dir" || { ac_status=$?; continue; }
2476 # Check for guested configure.
2477 if test -f "$ac_srcdir/configure.gnu"; then
2479 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2480 elif test -f "$ac_srcdir/configure"; then
2482 $SHELL "$ac_srcdir/configure" --help=recursive
2484 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2486 cd "$ac_pwd" || { ac_status=$?; break; }
2490 test -n "$ac_init_help" && exit $ac_status
2491 if $ac_init_version; then
2494 generated by GNU Autoconf 2.68
2496 Copyright (C) 2010 Free Software Foundation, Inc.
2497 This configure script is free software; the Free Software Foundation
2498 gives unlimited permission to copy, distribute and modify it.
2503 ## ------------------------ ##
2504 ## Autoconf initialization. ##
2505 ## ------------------------ ##
2507 # ac_fn_c_try_compile LINENO
2508 # --------------------------
2509 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2510 ac_fn_c_try_compile ()
2512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2513 rm -f conftest.$ac_objext
2514 if { { ac_try="$ac_compile"
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2520 $as_echo "$ac_try_echo"; } >&5
2521 (eval "$ac_compile") 2>conftest.err
2523 if test -s conftest.err; then
2524 grep -v '^ *+' conftest.err >conftest.er1
2525 cat conftest.er1 >&5
2526 mv -f conftest.er1 conftest.err
2528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2529 test $ac_status = 0; } && {
2530 test -z "$ac_c_werror_flag" ||
2531 test ! -s conftest.err
2532 } && test -s conftest.$ac_objext; then :
2535 $as_echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2541 as_fn_set_status $ac_retval
2543 } # ac_fn_c_try_compile
2545 # ac_fn_c_try_cpp LINENO
2546 # ----------------------
2547 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2551 if { { ac_try="$ac_cpp conftest.$ac_ext"
2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554 *) ac_try_echo=$ac_try;;
2556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2557 $as_echo "$ac_try_echo"; } >&5
2558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2560 if test -s conftest.err; then
2561 grep -v '^ *+' conftest.err >conftest.er1
2562 cat conftest.er1 >&5
2563 mv -f conftest.er1 conftest.err
2565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2566 test $ac_status = 0; } > conftest.i && {
2567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2568 test ! -s conftest.err
2572 $as_echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2578 as_fn_set_status $ac_retval
2582 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2583 # -------------------------------------------------------
2584 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2585 # the include files in INCLUDES and setting the cache variable VAR
2587 ac_fn_c_check_header_mongrel ()
2589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2590 if eval \${$3+:} false; then :
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2592 $as_echo_n "checking for $2... " >&6; }
2593 if eval \${$3+:} false; then :
2594 $as_echo_n "(cached) " >&6
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2598 $as_echo "$ac_res" >&6; }
2600 # Is the header compilable?
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2602 $as_echo_n "checking $2 usability... " >&6; }
2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h. */
2608 if ac_fn_c_try_compile "$LINENO"; then :
2609 ac_header_compiler=yes
2611 ac_header_compiler=no
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2615 $as_echo "$ac_header_compiler" >&6; }
2617 # Is the header present?
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2619 $as_echo_n "checking $2 presence... " >&6; }
2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621 /* end confdefs.h. */
2624 if ac_fn_c_try_cpp "$LINENO"; then :
2625 ac_header_preproc=yes
2627 ac_header_preproc=no
2629 rm -f conftest.err conftest.i conftest.$ac_ext
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2631 $as_echo "$ac_header_preproc" >&6; }
2633 # So? What about this header?
2634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2637 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2639 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2643 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2645 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2647 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2649 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2651 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2655 $as_echo_n "checking for $2... " >&6; }
2656 if eval \${$3+:} false; then :
2657 $as_echo_n "(cached) " >&6
2659 eval "$3=\$ac_header_compiler"
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2663 $as_echo "$ac_res" >&6; }
2665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2667 } # ac_fn_c_check_header_mongrel
2669 # ac_fn_c_try_run LINENO
2670 # ----------------------
2671 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2672 # that executables *can* be run.
2675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2676 if { { ac_try="$ac_link"
2678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679 *) ac_try_echo=$ac_try;;
2681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2682 $as_echo "$ac_try_echo"; } >&5
2683 (eval "$ac_link") 2>&5
2685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2686 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2687 { { case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2692 $as_echo "$ac_try_echo"; } >&5
2693 (eval "$ac_try") 2>&5
2695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2696 test $ac_status = 0; }; }; then :
2699 $as_echo "$as_me: program exited with status $ac_status" >&5
2700 $as_echo "$as_me: failed program was:" >&5
2701 sed 's/^/| /' conftest.$ac_ext >&5
2703 ac_retval=$ac_status
2705 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2707 as_fn_set_status $ac_retval
2711 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2712 # -------------------------------------------------------
2713 # Tests whether HEADER exists and can be compiled using the include files in
2714 # INCLUDES, setting the cache variable VAR accordingly.
2715 ac_fn_c_check_header_compile ()
2717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2719 $as_echo_n "checking for $2... " >&6; }
2720 if eval \${$3+:} false; then :
2721 $as_echo_n "(cached) " >&6
2723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2724 /* end confdefs.h. */
2728 if ac_fn_c_try_compile "$LINENO"; then :
2733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2737 $as_echo "$ac_res" >&6; }
2738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2740 } # ac_fn_c_check_header_compile
2742 # ac_fn_c_try_link LINENO
2743 # -----------------------
2744 # Try to link conftest.$ac_ext, and return whether this succeeded.
2747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2748 rm -f conftest.$ac_objext conftest$ac_exeext
2749 if { { ac_try="$ac_link"
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2755 $as_echo "$ac_try_echo"; } >&5
2756 (eval "$ac_link") 2>conftest.err
2758 if test -s conftest.err; then
2759 grep -v '^ *+' conftest.err >conftest.er1
2760 cat conftest.er1 >&5
2761 mv -f conftest.er1 conftest.err
2763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2764 test $ac_status = 0; } && {
2765 test -z "$ac_c_werror_flag" ||
2766 test ! -s conftest.err
2767 } && test -s conftest$ac_exeext && {
2768 test "$cross_compiling" = yes ||
2769 $as_test_x conftest$ac_exeext
2773 $as_echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2778 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2779 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2780 # interfere with the next link command; also delete a directory that is
2781 # left behind by Apple's compiler. We do this before executing the actions.
2782 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2784 as_fn_set_status $ac_retval
2786 } # ac_fn_c_try_link
2788 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2789 # -------------------------------------------
2790 # Tests whether TYPE exists after having included INCLUDES, setting cache
2791 # variable VAR accordingly.
2792 ac_fn_c_check_type ()
2794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2796 $as_echo_n "checking for $2... " >&6; }
2797 if eval \${$3+:} false; then :
2798 $as_echo_n "(cached) " >&6
2801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2802 /* end confdefs.h. */
2813 if ac_fn_c_try_compile "$LINENO"; then :
2814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2815 /* end confdefs.h. */
2826 if ac_fn_c_try_compile "$LINENO"; then :
2831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2837 $as_echo "$ac_res" >&6; }
2838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2840 } # ac_fn_c_check_type
2842 # ac_fn_c_check_func LINENO FUNC VAR
2843 # ----------------------------------
2844 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2845 ac_fn_c_check_func ()
2847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2849 $as_echo_n "checking for $2... " >&6; }
2850 if eval \${$3+:} false; then :
2851 $as_echo_n "(cached) " >&6
2853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854 /* end confdefs.h. */
2855 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2857 #define $2 innocuous_$2
2859 /* System header to define __stub macros and hopefully few prototypes,
2860 which can conflict with char $2 (); below.
2861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2862 <limits.h> exists even on freestanding compilers. */
2865 # include <limits.h>
2867 # include <assert.h>
2872 /* Override any GCC internal prototype to avoid an error.
2873 Use char because int might match the return type of a GCC
2874 builtin and then its argument prototype would still apply. */
2879 /* The GNU C library defines this for functions which it implements
2880 to always fail with ENOSYS. Some functions are actually named
2881 something starting with __ and the normal name is an alias. */
2882 #if defined __stub_$2 || defined __stub___$2
2894 if ac_fn_c_try_link "$LINENO"; then :
2899 rm -f core conftest.err conftest.$ac_objext \
2900 conftest$ac_exeext conftest.$ac_ext
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2904 $as_echo "$ac_res" >&6; }
2905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2907 } # ac_fn_c_check_func
2909 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2910 # --------------------------------------------
2911 # Tries to find the compile-time value of EXPR in a program that includes
2912 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2914 ac_fn_c_compute_int ()
2916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2917 if test "$cross_compiling" = yes; then
2918 # Depending upon the size, compute the lo and hi bounds.
2919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2920 /* end confdefs.h. */
2925 static int test_array [1 - 2 * !(($2) >= 0)];
2932 if ac_fn_c_try_compile "$LINENO"; then :
2935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2936 /* end confdefs.h. */
2941 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2948 if ac_fn_c_try_compile "$LINENO"; then :
2949 ac_hi=$ac_mid; break
2951 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2952 if test $ac_lo -le $ac_mid; then
2956 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2962 /* end confdefs.h. */
2967 static int test_array [1 - 2 * !(($2) < 0)];
2974 if ac_fn_c_try_compile "$LINENO"; then :
2977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2978 /* end confdefs.h. */
2983 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2990 if ac_fn_c_try_compile "$LINENO"; then :
2991 ac_lo=$ac_mid; break
2993 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2994 if test $ac_mid -le $ac_hi; then
2998 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3008 # Binary search between lo and hi bounds.
3009 while test "x$ac_lo" != "x$ac_hi"; do
3010 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3012 /* end confdefs.h. */
3017 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3024 if ac_fn_c_try_compile "$LINENO"; then :
3027 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3032 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037 /* end confdefs.h. */
3039 static long int longval () { return $2; }
3040 static unsigned long int ulongval () { return $2; }
3047 FILE *f = fopen ("conftest.val", "w");
3052 long int i = longval ();
3055 fprintf (f, "%ld", i);
3059 unsigned long int i = ulongval ();
3062 fprintf (f, "%lu", i);
3064 /* Do not output a trailing newline, as this causes \r\n confusion
3065 on some platforms. */
3066 return ferror (f) || fclose (f) != 0;
3072 if ac_fn_c_try_run "$LINENO"; then :
3073 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3078 conftest.$ac_objext conftest.beam conftest.$ac_ext
3082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3083 as_fn_set_status $ac_retval
3085 } # ac_fn_c_compute_int
3087 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3088 # ---------------------------------------------
3089 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3091 ac_fn_c_check_decl ()
3093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3094 as_decl_name=`echo $2|sed 's/ *(.*//'`
3095 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3097 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3098 if eval \${$3+:} false; then :
3099 $as_echo_n "(cached) " >&6
3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h. */
3107 #ifndef $as_decl_name
3109 (void) $as_decl_use;
3111 (void) $as_decl_name;
3119 if ac_fn_c_try_compile "$LINENO"; then :
3124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3128 $as_echo "$ac_res" >&6; }
3129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3131 } # ac_fn_c_check_decl
3133 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3134 # ----------------------------------------------------
3135 # Tries to find if the field MEMBER exists in type AGGR, after including
3136 # INCLUDES, setting cache variable VAR accordingly.
3137 ac_fn_c_check_member ()
3139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3141 $as_echo_n "checking for $2.$3... " >&6; }
3142 if eval \${$4+:} false; then :
3143 $as_echo_n "(cached) " >&6
3145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146 /* end confdefs.h. */
3158 if ac_fn_c_try_compile "$LINENO"; then :
3161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h. */
3168 if (sizeof ac_aggr.$3)
3174 if ac_fn_c_try_compile "$LINENO"; then :
3179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3185 $as_echo "$ac_res" >&6; }
3186 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3188 } # ac_fn_c_check_member
3189 cat >config.log <<_ACEOF
3190 This file contains any messages produced by compilers while
3191 running configure, to aid debugging if configure makes a mistake.
3193 It was created by $as_me, which was
3194 generated by GNU Autoconf 2.68. Invocation command line was
3206 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3207 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3208 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3209 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3210 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3212 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3213 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3215 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3216 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3217 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3218 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3219 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3220 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3221 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 test -z "$as_dir" && as_dir=.
3230 $as_echo "PATH: $as_dir"
3246 # Keep a trace of the command line.
3247 # Strip out --no-create and --no-recursion so they do not pile up.
3248 # Strip out --silent because we don't want to record it for future runs.
3249 # Also quote any args containing shell meta-characters.
3250 # Make two passes to allow for proper duplicate-argument suppression.
3254 ac_must_keep_next=false
3260 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3262 | -silent | --silent | --silen | --sile | --sil)
3265 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3268 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3270 as_fn_append ac_configure_args1 " '$ac_arg'"
3271 if test $ac_must_keep_next = true; then
3272 ac_must_keep_next=false # Got value, back to normal.
3275 *=* | --config-cache | -C | -disable-* | --disable-* \
3276 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3277 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3278 | -with-* | --with-* | -without-* | --without-* | --x)
3279 case "$ac_configure_args0 " in
3280 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3283 -* ) ac_must_keep_next=true ;;
3286 as_fn_append ac_configure_args " '$ac_arg'"
3291 { ac_configure_args0=; unset ac_configure_args0;}
3292 { ac_configure_args1=; unset ac_configure_args1;}
3294 # When interrupted or exit'd, cleanup temporary files, and complete
3295 # config.log. We remove comments because anyway the quotes in there
3296 # would cause problems or look ugly.
3297 # WARNING: Use '\'' to represent an apostrophe within the trap.
3298 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3299 trap 'exit_status=$?
3300 # Save into config.log some information that might help in debugging.
3304 $as_echo "## ---------------- ##
3305 ## Cache variables. ##
3306 ## ---------------- ##"
3308 # The following way of writing the cache mishandles newlines in values,
3310 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3311 eval ac_val=\$$ac_var
3315 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3316 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3319 _ | IFS | as_nl) ;; #(
3320 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3321 *) { eval $ac_var=; unset $ac_var;} ;;
3326 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3327 *${as_nl}ac_space=\ *)
3329 "s/'\''/'\''\\\\'\'''\''/g;
3330 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3333 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3340 $as_echo "## ----------------- ##
3341 ## Output variables. ##
3342 ## ----------------- ##"
3344 for ac_var in $ac_subst_vars
3346 eval ac_val=\$$ac_var
3348 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3350 $as_echo "$ac_var='\''$ac_val'\''"
3354 if test -n "$ac_subst_files"; then
3355 $as_echo "## ------------------- ##
3356 ## File substitutions. ##
3357 ## ------------------- ##"
3359 for ac_var in $ac_subst_files
3361 eval ac_val=\$$ac_var
3363 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3365 $as_echo "$ac_var='\''$ac_val'\''"
3370 if test -s confdefs.h; then
3371 $as_echo "## ----------- ##
3378 test "$ac_signal" != 0 &&
3379 $as_echo "$as_me: caught signal $ac_signal"
3380 $as_echo "$as_me: exit $exit_status"
3382 rm -f core *.core core.conftest.* &&
3383 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3386 for ac_signal in 1 2 13 15; do
3387 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3391 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3392 rm -f -r conftest* confdefs.h
3394 $as_echo "/* confdefs.h */" > confdefs.h
3396 # Predefined preprocessor variables.
3398 cat >>confdefs.h <<_ACEOF
3399 #define PACKAGE_NAME "$PACKAGE_NAME"
3402 cat >>confdefs.h <<_ACEOF
3403 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3406 cat >>confdefs.h <<_ACEOF
3407 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3410 cat >>confdefs.h <<_ACEOF
3411 #define PACKAGE_STRING "$PACKAGE_STRING"
3414 cat >>confdefs.h <<_ACEOF
3415 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3418 cat >>confdefs.h <<_ACEOF
3419 #define PACKAGE_URL "$PACKAGE_URL"
3423 # Let the site file select an alternate cache file if it wants to.
3424 # Prefer an explicitly selected file to automatically selected ones.
3427 if test -n "$CONFIG_SITE"; then
3428 # We do not want a PATH search for config.site.
3429 case $CONFIG_SITE in #((
3430 -*) ac_site_file1=./$CONFIG_SITE;;
3431 */*) ac_site_file1=$CONFIG_SITE;;
3432 *) ac_site_file1=./$CONFIG_SITE;;
3434 elif test "x$prefix" != xNONE; then
3435 ac_site_file1=$prefix/share/config.site
3436 ac_site_file2=$prefix/etc/config.site
3438 ac_site_file1=$ac_default_prefix/share/config.site
3439 ac_site_file2=$ac_default_prefix/etc/config.site
3441 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3443 test "x$ac_site_file" = xNONE && continue
3444 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3446 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3447 sed 's/^/| /' "$ac_site_file" >&5
3449 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451 as_fn_error $? "failed to load site script $ac_site_file
3452 See \`config.log' for more details" "$LINENO" 5; }
3456 if test -r "$cache_file"; then
3457 # Some versions of bash will fail to source /dev/null (special files
3458 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3459 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3461 $as_echo "$as_me: loading cache $cache_file" >&6;}
3463 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3464 *) . "./$cache_file";;
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3469 $as_echo "$as_me: creating cache $cache_file" >&6;}
3473 gl_header_list="$gl_header_list arpa/inet.h"
3474 gl_func_list="$gl_func_list btowc"
3475 gl_header_list="$gl_header_list errno.h"
3476 gl_header_list="$gl_header_list float.h"
3477 gl_header_list="$gl_header_list sys/param.h"
3478 gl_header_list="$gl_header_list sys/vfs.h"
3479 gl_header_list="$gl_header_list sys/fs_types.h"
3480 gl_func_list="$gl_func_list ftruncate"
3481 gl_header_list="$gl_header_list sys/socket.h"
3482 gl_header_list="$gl_header_list netdb.h"
3483 gl_header_list="$gl_header_list netinet/in.h"
3484 gl_getopt_required=GNU
3485 gl_header_list="$gl_header_list getopt.h"
3486 gl_header_list="$gl_header_list sys/time.h"
3487 gl_func_list="$gl_func_list gettimeofday"
3488 gl_header_list="$gl_header_list langinfo.h"
3489 gl_func_list="$gl_func_list lstat"
3490 gl_func_list="$gl_func_list mbsinit"
3491 gl_func_list="$gl_func_list mbrtowc"
3492 gl_header_list="$gl_header_list sys/mman.h"
3493 gl_func_list="$gl_func_list mprotect"
3494 gl_func_list="$gl_func_list memchr"
3495 gl_func_list="$gl_func_list nl_langinfo"
3496 gl_header_list="$gl_header_list locale.h"
3497 gl_func_list="$gl_func_list isblank"
3498 gl_func_list="$gl_func_list iswctype"
3499 gl_func_list="$gl_func_list wcscoll"
3500 gl_header_list="$gl_header_list stddef.h"
3501 gl_header_list="$gl_header_list stdint.h"
3502 gl_header_list="$gl_header_list wchar.h"
3503 gl_header_list="$gl_header_list stdio.h"
3504 gl_header_list="$gl_header_list stdlib.h"
3505 gl_header_list="$gl_header_list string.h"
3506 gl_header_list="$gl_header_list sys/stat.h"
3507 gl_header_list="$gl_header_list time.h"
3508 gl_header_list="$gl_header_list unistd.h"
3509 gl_func_list="$gl_func_list vasnprintf"
3510 gl_func_list="$gl_func_list wcrtomb"
3511 gl_func_list="$gl_func_list iswcntrl"
3512 gl_func_list="$gl_func_list iswblank"
3513 gl_header_list="$gl_header_list wctype.h"
3514 # Check that the precious variables saved in the cache have kept the same
3516 ac_cache_corrupted=false
3517 for ac_var in $ac_precious_vars; do
3518 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3519 eval ac_new_set=\$ac_env_${ac_var}_set
3520 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3521 eval ac_new_val=\$ac_env_${ac_var}_value
3522 case $ac_old_set,$ac_new_set in
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3525 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3526 ac_cache_corrupted=: ;;
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3529 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3530 ac_cache_corrupted=: ;;
3533 if test "x$ac_old_val" != "x$ac_new_val"; then
3534 # differences in whitespace do not lead to failure.
3535 ac_old_val_w=`echo x $ac_old_val`
3536 ac_new_val_w=`echo x $ac_new_val`
3537 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3539 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3540 ac_cache_corrupted=:
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3543 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3544 eval $ac_var=\$ac_old_val
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3547 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3549 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3552 # Pass precious variables to config.status.
3553 if test "$ac_new_set" = set; then
3555 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3556 *) ac_arg=$ac_var=$ac_new_val ;;
3558 case " $ac_configure_args " in
3559 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3560 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3564 if $ac_cache_corrupted; then
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3568 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3569 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3571 ## -------------------- ##
3572 ## Main body of script. ##
3573 ## -------------------- ##
3576 ac_cpp='$CPP $CPPFLAGS'
3577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3584 for ac_dir in config "$srcdir"/config; do
3585 if test -f "$ac_dir/install-sh"; then
3587 ac_install_sh="$ac_aux_dir/install-sh -c"
3589 elif test -f "$ac_dir/install.sh"; then
3591 ac_install_sh="$ac_aux_dir/install.sh -c"
3593 elif test -f "$ac_dir/shtool"; then
3595 ac_install_sh="$ac_aux_dir/shtool install -c"
3599 if test -z "$ac_aux_dir"; then
3600 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3603 # These three variables are undocumented and unsupported,
3604 # and are intended to be withdrawn in a future Autoconf release.
3605 # They can cause serious problems if a builder's source tree is in a directory
3606 # whose full name contains unusual characters.
3607 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3608 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3609 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3613 # Make sure we can run config.sub.
3614 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3615 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3618 $as_echo_n "checking build system type... " >&6; }
3619 if ${ac_cv_build+:} false; then :
3620 $as_echo_n "(cached) " >&6
3622 ac_build_alias=$build_alias
3623 test "x$ac_build_alias" = x &&
3624 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3625 test "x$ac_build_alias" = x &&
3626 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3627 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3628 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3632 $as_echo "$ac_cv_build" >&6; }
3633 case $ac_cv_build in
3635 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3638 ac_save_IFS=$IFS; IFS='-'
3644 # Remember, the first character of IFS is used to create $*,
3645 # except with old shells:
3648 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3652 $as_echo_n "checking host system type... " >&6; }
3653 if ${ac_cv_host+:} false; then :
3654 $as_echo_n "(cached) " >&6
3656 if test "x$host_alias" = x; then
3657 ac_cv_host=$ac_cv_build
3659 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3660 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3665 $as_echo "$ac_cv_host" >&6; }
3668 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3671 ac_save_IFS=$IFS; IFS='-'
3677 # Remember, the first character of IFS is used to create $*,
3678 # except with old shells:
3681 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3689 SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/sfw/bin:/usr/bsd:/etc:/usr/etc"
3690 # expand prefix or exec_prefix in LOCPATH
3692 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3693 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3694 eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
3696 SYSLOCPATH="$SYSPATH:$LOCPATH"
3697 LOCSYSPATH="$LOCPATH:$SYSPATH"
3701 # Extract the first word of "grep", so it can be a program name with args.
3702 set dummy grep; ac_word=$2
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 $as_echo_n "checking for $ac_word... " >&6; }
3705 if ${ac_cv_path_GREP+:} false; then :
3706 $as_echo_n "(cached) " >&6
3710 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 for as_dir in $LOCSYSPATH
3717 test -z "$as_dir" && as_dir=.
3718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3720 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3728 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
3732 GREP=$ac_cv_path_GREP
3733 if test -n "$GREP"; then
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3735 $as_echo "$GREP" >&6; }
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3738 $as_echo "no" >&6; }
3743 cat >>confdefs.h <<_ACEOF
3744 #define GREP "$GREP"
3753 # Extract the first word of "svn", so it can be a program name with args.
3754 set dummy svn; ac_word=$2
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3756 $as_echo_n "checking for $ac_word... " >&6; }
3757 if ${ac_cv_path_SVN+:} false; then :
3758 $as_echo_n "(cached) " >&6
3762 ac_cv_path_SVN="$SVN" # Let the user override the test with a path.
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $LOCSYSPATH
3769 test -z "$as_dir" && as_dir=.
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3772 ac_cv_path_SVN="$as_dir/$ac_word$ac_exec_ext"
3773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3784 if test -n "$SVN"; then
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVN" >&5
3786 $as_echo "$SVN" >&6; }
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 $as_echo "no" >&6; }
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Subversion revision information" >&5
3794 $as_echo_n "checking Subversion revision information... " >&6; }
3795 if test -d $srcdir/.svn -a -n "$SVN" && (cd $srcdir > /dev/null ; $SVN info . ) > conftemp.svn; then
3796 SVN_REV=`$GREP Revision: conftemp.svn|cut -d: -f 2|cut -c2-`
3797 SVN_URL=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
3798 SVN_PATH=`$GREP URL: conftemp.svn|cut -d "/" -f 7-`
3799 SVN_TYPE=`echo ${SVN_PATH} |cut -d "/" -f 1`
3800 SVN_BRANCH=`echo "${SVN_PATH}"| cut -d "/" -f 2`
3801 url=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
3802 ( echo '#define BUILT_REV "'$SVN_REV'"'
3803 echo '#define BUILT_BRANCH "'$SVN_BRANCH'"'
3804 ) > common-src/svn-info.h
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: updated" >&5
3807 $as_echo "updated" >&6; }
3809 # Makefiles will be upset if the file doesn't exist, so double-check
3810 if test -f common-src/svn-info.h; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not changed" >&5
3813 $as_echo "not changed" >&6; }
3815 echo '/* no information available */' > common-src/svn-info.h
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
3817 $as_echo "not available" >&6; }
3827 # Extract the first word of "git", so it can be a program name with args.
3828 set dummy git; ac_word=$2
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3830 $as_echo_n "checking for $ac_word... " >&6; }
3831 if ${ac_cv_path_GIT+:} false; then :
3832 $as_echo_n "(cached) " >&6
3836 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $LOCSYSPATH
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3846 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
3847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3858 if test -n "$GIT"; then
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
3860 $as_echo "$GIT" >&6; }
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3863 $as_echo "no" >&6; }
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking git revision information" >&5
3868 $as_echo_n "checking git revision information... " >&6; }
3869 if test -d $srcdir/.git -a -n "$GIT"; then
3870 GIT_SHA1=`(cd $srcdir > /dev/null ; $GIT rev-parse HEAD | cut -c -8 )`
3871 if test -n "$GIT_SHA1"; then
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT_SHA1" >&5
3873 $as_echo "$GIT_SHA1" >&6; }
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 'git rev-parse HEAD' failed" >&5
3876 $as_echo "'git rev-parse HEAD' failed" >&6; }
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
3880 $as_echo "not available" >&6; }
3886 if test -f FULL_VERSION; then
3887 VERSION=`cat FULL_VERSION`
3888 else if test -f $srcdir/FULL_VERSION; then
3889 VERSION=`cat $srcdir/FULL_VERSION`
3891 VERSION=`cat $srcdir/VERSION`
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: \"version: $VERSION\"" >&5
3895 $as_echo "$as_me: \"version: $VERSION\"" >&6;}
3897 am__api_version='1.11'
3899 # Find a good install program. We prefer a C program (faster),
3900 # so one script is as good as another. But avoid the broken or
3901 # incompatible versions:
3902 # SysV /etc/install, /usr/sbin/install
3903 # SunOS /usr/etc/install
3904 # IRIX /sbin/install
3906 # AmigaOS /C/install, which installs bootblocks on floppy discs
3907 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3908 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3909 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3910 # OS/2's system install, which has a completely different semantic
3911 # ./install, which can be erroneously created by make from ./install.sh.
3912 # Reject install programs that cannot install multiple files.
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3914 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3915 if test -z "$INSTALL"; then
3916 if ${ac_cv_path_install+:} false; then :
3917 $as_echo_n "(cached) " >&6
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 test -z "$as_dir" && as_dir=.
3924 # Account for people who put trailing slashes in PATH elements.
3925 case $as_dir/ in #((
3926 ./ | .// | /[cC]/* | \
3927 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3928 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3931 # OSF1 and SCO ODT 3.0 have their own names for install.
3932 # Don't use installbsd from OSF since it installs stuff as root
3934 for ac_prog in ginstall scoinst install; do
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3937 if test $ac_prog = install &&
3938 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3939 # AIX install. It has an incompatible calling convention.
3941 elif test $ac_prog = install &&
3942 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3943 # program-specific install script used by HP pwplus--don't use.
3946 rm -rf conftest.one conftest.two conftest.dir
3947 echo one > conftest.one
3948 echo two > conftest.two
3950 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3951 test -s conftest.one && test -s conftest.two &&
3952 test -s conftest.dir/conftest.one &&
3953 test -s conftest.dir/conftest.two
3955 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3968 rm -rf conftest.one conftest.two conftest.dir
3971 if test "${ac_cv_path_install+set}" = set; then
3972 INSTALL=$ac_cv_path_install
3974 # As a last resort, use the slow shell script. Don't cache a
3975 # value for INSTALL within a source directory, because that will
3976 # break other packages using the cache if that directory is
3977 # removed, or if the value is a relative name.
3978 INSTALL=$ac_install_sh
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3982 $as_echo "$INSTALL" >&6; }
3984 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3985 # It thinks the first close brace ends the variable substitution.
3986 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3988 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3990 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3993 $as_echo_n "checking whether build environment is sane... " >&6; }
3996 echo timestamp > conftest.file
3997 # Reject unsafe characters in $srcdir or the absolute working directory
3998 # name. Accept space and tab only in the latter.
4002 *[\\\"\#\$\&\'\`$am_lf]*)
4003 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4006 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4007 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4010 # Do `set' in a subshell so we don't clobber the current shell's
4011 # arguments. Must try -L first in case configure is actually a
4012 # symlink; some systems play weird games with the mod time of symlinks
4013 # (eg FreeBSD returns the mod time of the symlink's containing
4016 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4017 if test "$*" = "X"; then
4019 set X `ls -t "$srcdir/configure" conftest.file`
4022 if test "$*" != "X $srcdir/configure conftest.file" \
4023 && test "$*" != "X conftest.file $srcdir/configure"; then
4025 # If neither matched, then we have a broken ls. This can happen
4026 # if, for instance, CONFIG_SHELL is bash and it inherits a
4027 # broken ls alias from the environment. This has actually
4028 # happened. Such a system could not be considered "sane".
4029 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4030 alias in your environment" "$LINENO" 5
4033 test "$2" = conftest.file
4039 as_fn_error $? "newly created file is older than distributed files!
4040 Check your system clock" "$LINENO" 5
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4043 $as_echo "yes" >&6; }
4044 test "$program_prefix" != NONE &&
4045 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4046 # Use a double $ so make ignores it.
4047 test "$program_suffix" != NONE &&
4048 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4049 # Double any \ or $.
4050 # By default was `s,x,x', remove it if useless.
4051 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4052 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4054 # expand $ac_aux_dir to an absolute path
4055 am_aux_dir=`cd $ac_aux_dir && pwd`
4057 if test x"${MISSING+set}" != xset; then
4060 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4062 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4065 # Use eval to expand $SHELL
4066 if eval "$MISSING --run true"; then
4067 am_missing_run="$MISSING --run "
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4071 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4074 if test x"${install_sh}" != xset; then
4077 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4079 install_sh="\${SHELL} $am_aux_dir/install-sh"
4083 # Installed binaries are usually stripped using `strip' when the user
4084 # run `make install-strip'. However `strip' might not be the right
4085 # tool to use in cross-compilation environments, therefore Automake
4086 # will honor the `STRIP' environment variable to overrule this program.
4087 if test "$cross_compiling" != no; then
4088 if test -n "$ac_tool_prefix"; then
4089 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4090 set dummy ${ac_tool_prefix}strip; ac_word=$2
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if ${ac_cv_prog_STRIP+:} false; then :
4094 $as_echo_n "(cached) " >&6
4096 if test -n "$STRIP"; then
4097 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 test -z "$as_dir" && as_dir=.
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4106 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 STRIP=$ac_cv_prog_STRIP
4117 if test -n "$STRIP"; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4119 $as_echo "$STRIP" >&6; }
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4127 if test -z "$ac_cv_prog_STRIP"; then
4129 # Extract the first word of "strip", so it can be a program name with args.
4130 set dummy strip; ac_word=$2
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132 $as_echo_n "checking for $ac_word... " >&6; }
4133 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4134 $as_echo_n "(cached) " >&6
4136 if test -n "$ac_ct_STRIP"; then
4137 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 test -z "$as_dir" && as_dir=.
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4146 ac_cv_prog_ac_ct_STRIP="strip"
4147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4156 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4157 if test -n "$ac_ct_STRIP"; then
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4159 $as_echo "$ac_ct_STRIP" >&6; }
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162 $as_echo "no" >&6; }
4165 if test "x$ac_ct_STRIP" = x; then
4168 case $cross_compiling:$ac_tool_warned in
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4172 ac_tool_warned=yes ;;
4177 STRIP="$ac_cv_prog_STRIP"
4181 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4184 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4185 if test -z "$MKDIR_P"; then
4186 if ${ac_cv_path_mkdir+:} false; then :
4187 $as_echo_n "(cached) " >&6
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4193 test -z "$as_dir" && as_dir=.
4194 for ac_prog in mkdir gmkdir; do
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4197 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4198 'mkdir (GNU coreutils) '* | \
4199 'mkdir (coreutils) '* | \
4200 'mkdir (fileutils) '4.1*)
4201 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4211 test -d ./--version && rmdir ./--version
4212 if test "${ac_cv_path_mkdir+set}" = set; then
4213 MKDIR_P="$ac_cv_path_mkdir -p"
4215 # As a last resort, use the slow shell script. Don't cache a
4216 # value for MKDIR_P within a source directory, because that will
4217 # break other packages using the cache if that directory is
4218 # removed, or if the value is a relative name.
4219 MKDIR_P="$ac_install_sh -d"
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4223 $as_echo "$MKDIR_P" >&6; }
4228 [\\/$]* | ?:[\\/]*) ;;
4229 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4232 for ac_prog in gawk mawk nawk awk
4234 # Extract the first word of "$ac_prog", so it can be a program name with args.
4235 set dummy $ac_prog; ac_word=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if ${ac_cv_prog_AWK+:} false; then :
4239 $as_echo_n "(cached) " >&6
4241 if test -n "$AWK"; then
4242 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4251 ac_cv_prog_AWK="$ac_prog"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 if test -n "$AWK"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4264 $as_echo "$AWK" >&6; }
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4271 test -n "$AWK" && break
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4275 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4277 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4278 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4279 $as_echo_n "(cached) " >&6
4281 cat >conftest.make <<\_ACEOF
4284 @echo '@@@%%%=$(MAKE)=@@@%%%'
4286 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4287 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4289 eval ac_cv_prog_make_${ac_make}_set=yes;;
4291 eval ac_cv_prog_make_${ac_make}_set=no;;
4295 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4297 $as_echo "yes" >&6; }
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4302 SET_MAKE="MAKE=${MAKE-make}"
4305 rm -rf .tst 2>/dev/null
4306 mkdir .tst 2>/dev/null
4307 if test -d .tst; then
4312 rmdir .tst 2>/dev/null
4314 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4315 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4316 # is not polluted with repeated "-I."
4317 am__isrc=' -I$(srcdir)'
4318 # test to see if srcdir already configured
4319 if test -f $srcdir/config.status; then
4320 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4324 # test whether we have cygpath
4325 if test -z "$CYGPATH_W"; then
4326 if (cygpath --version) >/dev/null 2>/dev/null; then
4327 CYGPATH_W='cygpath -w'
4334 # Define the identity of the package.
4339 cat >>confdefs.h <<_ACEOF
4340 #define PACKAGE "$PACKAGE"
4344 cat >>confdefs.h <<_ACEOF
4345 #define VERSION "$VERSION"
4348 # Some tools Automake needs.
4350 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4353 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4356 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4359 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4362 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4364 # We need awk for the "check" target. The system "awk" is bad on
4366 # Always define AMTAR for backward compatibility.
4368 AMTAR=${AMTAR-"${am_missing_run}tar"}
4370 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4376 ac_config_headers="$ac_config_headers config/config.h"
4382 # Take care of some early Amanda-specific setup
4385 # initialize warnings file
4386 rm -f config.warnings
4389 if test -f "$srcdir/SNAPSHOT"; then
4390 cat < "$srcdir/SNAPSHOT"
4392 snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
4394 test -z "$snapdate" || VERSION="$VERSION-$snapdate"
4395 SNAPSHOT_STAMP=SNAPSHOT
4403 VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
4404 VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
4405 if test -z "$VERSION_MINOR"; then
4408 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\(.*\)'`\"
4410 VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
4411 if test -z "$VERSION_PATCH"; then
4413 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\(.*\)'`\"
4415 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
4426 cat >>confdefs.h <<_ACEOF
4427 #define VERSION_MAJOR $VERSION_MAJOR
4431 cat >>confdefs.h <<_ACEOF
4432 #define VERSION_MINOR $VERSION_MINOR
4436 cat >>confdefs.h <<_ACEOF
4437 #define VERSION_PATCH $VERSION_PATCH
4441 cat >>confdefs.h <<_ACEOF
4442 #define VERSION_COMMENT $VERSION_COMMENT
4447 if test -f config.local; then
4448 echo "running local script ./config.local"
4454 # Set up compiler location, basic flags, and include locations
4455 # and library locations before we start checking the system
4456 # configuration in more detail...
4459 ac_cpp='$CPP $CPPFLAGS'
4460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4463 if test -n "$ac_tool_prefix"; then
4464 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4465 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4467 $as_echo_n "checking for $ac_word... " >&6; }
4468 if ${ac_cv_prog_CC+:} false; then :
4469 $as_echo_n "(cached) " >&6
4471 if test -n "$CC"; then
4472 ac_cv_prog_CC="$CC" # Let the user override the test.
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 test -z "$as_dir" && as_dir=.
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4481 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 if test -n "$CC"; then
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4494 $as_echo "$CC" >&6; }
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497 $as_echo "no" >&6; }
4502 if test -z "$ac_cv_prog_CC"; then
4504 # Extract the first word of "gcc", so it can be a program name with args.
4505 set dummy gcc; ac_word=$2
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4507 $as_echo_n "checking for $ac_word... " >&6; }
4508 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4509 $as_echo_n "(cached) " >&6
4511 if test -n "$ac_ct_CC"; then
4512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4521 ac_cv_prog_ac_ct_CC="gcc"
4522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4532 if test -n "$ac_ct_CC"; then
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4534 $as_echo "$ac_ct_CC" >&6; }
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537 $as_echo "no" >&6; }
4540 if test "x$ac_ct_CC" = x; then
4543 case $cross_compiling:$ac_tool_warned in
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4547 ac_tool_warned=yes ;;
4555 if test -z "$CC"; then
4556 if test -n "$ac_tool_prefix"; then
4557 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4558 set dummy ${ac_tool_prefix}cc; ac_word=$2
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560 $as_echo_n "checking for $ac_word... " >&6; }
4561 if ${ac_cv_prog_CC+:} false; then :
4562 $as_echo_n "(cached) " >&6
4564 if test -n "$CC"; then
4565 ac_cv_prog_CC="$CC" # Let the user override the test.
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4574 ac_cv_prog_CC="${ac_tool_prefix}cc"
4575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 if test -n "$CC"; then
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4587 $as_echo "$CC" >&6; }
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590 $as_echo "no" >&6; }
4596 if test -z "$CC"; then
4597 # Extract the first word of "cc", so it can be a program name with args.
4598 set dummy cc; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if ${ac_cv_prog_CC+:} false; then :
4602 $as_echo_n "(cached) " >&6
4604 if test -n "$CC"; then
4605 ac_cv_prog_CC="$CC" # Let the user override the test.
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4615 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4616 ac_prog_rejected=yes
4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 if test $ac_prog_rejected = yes; then
4628 # We found a bogon in the path, so make sure we never use it.
4629 set dummy $ac_cv_prog_CC
4631 if test $# != 0; then
4632 # We chose a different compiler from the bogus one.
4633 # However, it has the same basename, so the bogon will be chosen
4634 # first if we set CC to just the basename; use the full file name.
4636 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4642 if test -n "$CC"; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4644 $as_echo "$CC" >&6; }
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647 $as_echo "no" >&6; }
4652 if test -z "$CC"; then
4653 if test -n "$ac_tool_prefix"; then
4654 for ac_prog in cl.exe
4656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4657 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if ${ac_cv_prog_CC+:} false; then :
4661 $as_echo_n "(cached) " >&6
4663 if test -n "$CC"; then
4664 ac_cv_prog_CC="$CC" # Let the user override the test.
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 if test -n "$CC"; then
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4686 $as_echo "$CC" >&6; }
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4693 test -n "$CC" && break
4696 if test -z "$CC"; then
4698 for ac_prog in cl.exe
4700 # Extract the first word of "$ac_prog", so it can be a program name with args.
4701 set dummy $ac_prog; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4705 $as_echo_n "(cached) " >&6
4707 if test -n "$ac_ct_CC"; then
4708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4717 ac_cv_prog_ac_ct_CC="$ac_prog"
4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4728 if test -n "$ac_ct_CC"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4730 $as_echo "$ac_ct_CC" >&6; }
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4737 test -n "$ac_ct_CC" && break
4740 if test "x$ac_ct_CC" = x; then
4743 case $cross_compiling:$ac_tool_warned in
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4747 ac_tool_warned=yes ;;
4756 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4758 as_fn_error $? "no acceptable C compiler found in \$PATH
4759 See \`config.log' for more details" "$LINENO" 5; }
4761 # Provide some information about the compiler.
4762 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4765 for ac_option in --version -v -V -qversion; do
4766 { { ac_try="$ac_compiler $ac_option >&5"
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4772 $as_echo "$ac_try_echo"; } >&5
4773 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4775 if test -s conftest.err; then
4777 ... rest of stderr output deleted ...
4778 10q' conftest.err >conftest.er1
4779 cat conftest.er1 >&5
4781 rm -f conftest.er1 conftest.err
4782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4783 test $ac_status = 0; }
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4797 ac_clean_files_save=$ac_clean_files
4798 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4799 # Try to create an executable without -o first, disregard a.out.
4800 # It will help us diagnose broken compilers, and finding out an intuition
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4803 $as_echo_n "checking whether the C compiler works... " >&6; }
4804 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4806 # The possible output files:
4807 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4810 for ac_file in $ac_files
4813 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4814 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4819 if { { ac_try="$ac_link_default"
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4825 $as_echo "$ac_try_echo"; } >&5
4826 (eval "$ac_link_default") 2>&5
4828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4829 test $ac_status = 0; }; then :
4830 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4831 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4832 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4833 # so that the user can short-circuit this test for compilers unknown to
4835 for ac_file in $ac_files ''
4837 test -f "$ac_file" || continue
4839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4842 # We found the default executable, but exeext='' is most
4846 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4848 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4850 # We set ac_cv_exeext here because the later test for it is not
4851 # safe: cross compilers may not add the suffix if given an `-o'
4852 # argument, so we may need to know it at that point already.
4853 # Even if this section looks crufty: it has the advantage of
4860 test "$ac_cv_exeext" = no && ac_cv_exeext=
4865 if test -z "$ac_file"; then :
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867 $as_echo "no" >&6; }
4868 $as_echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4873 as_fn_error 77 "C compiler cannot create executables
4874 See \`config.log' for more details" "$LINENO" 5; }
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4877 $as_echo "yes" >&6; }
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4880 $as_echo_n "checking for C compiler default output file name... " >&6; }
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4882 $as_echo "$ac_file" >&6; }
4883 ac_exeext=$ac_cv_exeext
4885 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4886 ac_clean_files=$ac_clean_files_save
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4888 $as_echo_n "checking for suffix of executables... " >&6; }
4889 if { { ac_try="$ac_link"
4891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4892 *) ac_try_echo=$ac_try;;
4894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4895 $as_echo "$ac_try_echo"; } >&5
4896 (eval "$ac_link") 2>&5
4898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4899 test $ac_status = 0; }; then :
4900 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4901 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4902 # work properly (i.e., refer to `conftest.exe'), while it won't with
4904 for ac_file in conftest.exe conftest conftest.*; do
4905 test -f "$ac_file" || continue
4907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4908 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4916 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4917 See \`config.log' for more details" "$LINENO" 5; }
4919 rm -f conftest conftest$ac_cv_exeext
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4921 $as_echo "$ac_cv_exeext" >&6; }
4923 rm -f conftest.$ac_ext
4924 EXEEXT=$ac_cv_exeext
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4932 FILE *f = fopen ("conftest.out", "w");
4933 return ferror (f) || fclose (f) != 0;
4939 ac_clean_files="$ac_clean_files conftest.out"
4940 # Check that the compiler produces executables we can run. If not, either
4941 # the compiler is broken, or we cross compile.
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4943 $as_echo_n "checking whether we are cross compiling... " >&6; }
4944 if test "$cross_compiling" != yes; then
4945 { { ac_try="$ac_link"
4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948 *) ac_try_echo=$ac_try;;
4950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4951 $as_echo "$ac_try_echo"; } >&5
4952 (eval "$ac_link") 2>&5
4954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4955 test $ac_status = 0; }
4956 if { ac_try='./conftest$ac_cv_exeext'
4957 { { case "(($ac_try" in
4958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4959 *) ac_try_echo=$ac_try;;
4961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4962 $as_echo "$ac_try_echo"; } >&5
4963 (eval "$ac_try") 2>&5
4965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4966 test $ac_status = 0; }; }; then
4969 if test "$cross_compiling" = maybe; then
4972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4974 as_fn_error $? "cannot run C compiled programs.
4975 If you meant to cross compile, use \`--host'.
4976 See \`config.log' for more details" "$LINENO" 5; }
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4981 $as_echo "$cross_compiling" >&6; }
4983 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4984 ac_clean_files=$ac_clean_files_save
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4986 $as_echo_n "checking for suffix of object files... " >&6; }
4987 if ${ac_cv_objext+:} false; then :
4988 $as_echo_n "(cached) " >&6
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
5001 rm -f conftest.o conftest.obj
5002 if { { ac_try="$ac_compile"
5004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005 *) ac_try_echo=$ac_try;;
5007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5008 $as_echo "$ac_try_echo"; } >&5
5009 (eval "$ac_compile") 2>&5
5011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5012 test $ac_status = 0; }; then :
5013 for ac_file in conftest.o conftest.obj conftest.*; do
5014 test -f "$ac_file" || continue;
5016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5017 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5022 $as_echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5027 as_fn_error $? "cannot compute suffix of object files: cannot compile
5028 See \`config.log' for more details" "$LINENO" 5; }
5030 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5033 $as_echo "$ac_cv_objext" >&6; }
5034 OBJEXT=$ac_cv_objext
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5037 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5038 if ${ac_cv_c_compiler_gnu+:} false; then :
5039 $as_echo_n "(cached) " >&6
5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042 /* end confdefs.h. */
5055 if ac_fn_c_try_compile "$LINENO"; then :
5060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5061 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5065 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5066 if test $ac_compiler_gnu = yes; then
5071 ac_test_CFLAGS=${CFLAGS+set}
5072 ac_save_CFLAGS=$CFLAGS
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5074 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5075 if ${ac_cv_prog_cc_g+:} false; then :
5076 $as_echo_n "(cached) " >&6
5078 ac_save_c_werror_flag=$ac_c_werror_flag
5079 ac_c_werror_flag=yes
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5093 if ac_fn_c_try_compile "$LINENO"; then :
5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098 /* end confdefs.h. */
5108 if ac_fn_c_try_compile "$LINENO"; then :
5111 ac_c_werror_flag=$ac_save_c_werror_flag
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5124 if ac_fn_c_try_compile "$LINENO"; then :
5127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132 ac_c_werror_flag=$ac_save_c_werror_flag
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5135 $as_echo "$ac_cv_prog_cc_g" >&6; }
5136 if test "$ac_test_CFLAGS" = set; then
5137 CFLAGS=$ac_save_CFLAGS
5138 elif test $ac_cv_prog_cc_g = yes; then
5139 if test "$GCC" = yes; then
5145 if test "$GCC" = yes; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5152 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5153 if ${ac_cv_prog_cc_c89+:} false; then :
5154 $as_echo_n "(cached) " >&6
5156 ac_cv_prog_cc_c89=no
5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5162 #include <sys/types.h>
5163 #include <sys/stat.h>
5164 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5165 struct buf { int x; };
5166 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5167 static char *e (p, i)
5173 static char *f (char * (*g) (char **, int), char **p, ...)
5178 s = g (p, va_arg (v,int));
5183 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5184 function prototypes and stuff, but not '\xHH' hex character constants.
5185 These don't provoke an error unfortunately, instead are silently treated
5186 as 'x'. The following induces an error, until -std is added to get
5187 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5188 array size at least. It's necessary to write '\x00'==0 to get something
5189 that's true only with -std. */
5190 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5192 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5193 inside strings and character constants. */
5195 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5197 int test (int i, double x);
5198 struct s1 {int (*f) (int a);};
5199 struct s2 {int (*f) (double a);};
5200 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5206 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5211 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5212 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5214 CC="$ac_save_CC $ac_arg"
5215 if ac_fn_c_try_compile "$LINENO"; then :
5216 ac_cv_prog_cc_c89=$ac_arg
5218 rm -f core conftest.err conftest.$ac_objext
5219 test "x$ac_cv_prog_cc_c89" != "xno" && break
5221 rm -f conftest.$ac_ext
5226 case "x$ac_cv_prog_cc_c89" in
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5229 $as_echo "none needed" >&6; } ;;
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5232 $as_echo "unsupported" >&6; } ;;
5234 CC="$CC $ac_cv_prog_cc_c89"
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5236 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5238 if test "x$ac_cv_prog_cc_c89" != xno; then :
5243 ac_cpp='$CPP $CPPFLAGS'
5244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5247 DEPDIR="${am__leading_dot}deps"
5249 ac_config_commands="$ac_config_commands depfiles"
5252 am_make=${MAKE-make}
5253 cat > confinc << 'END'
5255 @echo this is the am__doit target
5258 # If we don't find an include directive, just comment out the code.
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5260 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5264 # First try GNU make style include.
5265 echo "include confinc" > confmf
5266 # Ignore all kinds of additional output from `make'.
5267 case `$am_make -s -f confmf 2> /dev/null` in #(
5268 *the\ am__doit\ target*)
5274 # Now try BSD make style include.
5275 if test "$am__include" = "#"; then
5276 echo '.include "confinc"' > confmf
5277 case `$am_make -s -f confmf 2> /dev/null` in #(
5278 *the\ am__doit\ target*)
5279 am__include=.include
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5288 $as_echo "$_am_result" >&6; }
5289 rm -f confinc confmf
5291 # Check whether --enable-dependency-tracking was given.
5292 if test "${enable_dependency_tracking+set}" = set; then :
5293 enableval=$enable_dependency_tracking;
5296 if test "x$enable_dependency_tracking" != xno; then
5297 am_depcomp="$ac_aux_dir/depcomp"
5300 if test "x$enable_dependency_tracking" != xno; then
5310 depcc="$CC" am_compiler_list=
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5313 $as_echo_n "checking dependency style of $depcc... " >&6; }
5314 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5315 $as_echo_n "(cached) " >&6
5317 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5318 # We make a subdir and do the tests there. Otherwise we can end up
5319 # making bogus files that we don't know about and never remove. For
5320 # instance it was reported that on HP-UX the gcc test will end up
5321 # making a dummy file named `D' -- because `-MD' means `put the output
5324 # Copy depcomp to subdir because otherwise we won't find it if we're
5325 # using a relative directory.
5326 cp "$am_depcomp" conftest.dir
5328 # We will build objects and dependencies in a subdirectory because
5329 # it helps to detect inapplicable dependency modes. For instance
5330 # both Tru64's cc and ICC support -MD to output dependencies as a
5331 # side effect of compilation, but ICC will put the dependencies in
5332 # the current directory while Tru64 will put them in the object
5336 am_cv_CC_dependencies_compiler_type=none
5337 if test "$am_compiler_list" = ""; then
5338 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5341 case " $depcc " in #(
5342 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5345 for depmode in $am_compiler_list; do
5346 # Setup a source with many dependencies, because some compilers
5347 # like to wrap large dependency lists on column 80 (with \), and
5348 # we should not choose a depcomp mode which is confused by this.
5350 # We need to recreate these files for each test, as the compiler may
5351 # overwrite some of them when testing with obscure command lines.
5352 # This happens at least with the AIX C compiler.
5354 for i in 1 2 3 4 5 6; do
5355 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5356 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5357 # Solaris 8's {/usr,}/bin/sh.
5358 touch sub/conftst$i.h
5360 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5362 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5363 # mode. It turns out that the SunPro C++ compiler does not properly
5364 # handle `-M -o', and we need to detect this. Also, some Intel
5365 # versions had trouble with output in subdirs
5366 am__obj=sub/conftest.${OBJEXT-o}
5367 am__minus_obj="-o $am__obj"
5370 # This depmode causes a compiler race in universal mode.
5371 test "$am__universal" = false || continue
5374 # after this tag, mechanisms are not by side-effect, so they'll
5375 # only be used when explicitly requested
5376 if test "x$enable_dependency_tracking" = xyes; then
5382 msvisualcpp | msvcmsys)
5383 # This compiler won't grok `-c -o', but also, the minuso test has
5384 # not run yet. These depmodes are late enough in the game, and
5385 # so weak that their functioning should not be impacted.
5386 am__obj=conftest.${OBJEXT-o}
5391 if depmode=$depmode \
5392 source=sub/conftest.c object=$am__obj \
5393 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5394 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5395 >/dev/null 2>conftest.err &&
5396 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5397 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5398 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5399 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5400 # icc doesn't choke on unknown options, it will just issue warnings
5401 # or remarks (even with -Werror). So we grep stderr for any message
5402 # that says an option was ignored or not supported.
5403 # When given -MP, icc 7.0 and 7.1 complain thusly:
5404 # icc: Command line warning: ignoring option '-M'; no argument required
5405 # The diagnosis changed in icc 8.0:
5406 # icc: Command line remark: option '-MP' not supported
5407 if (grep 'ignoring option' conftest.err ||
5408 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5409 am_cv_CC_dependencies_compiler_type=$depmode
5418 am_cv_CC_dependencies_compiler_type=none
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5423 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5424 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5427 test "x$enable_dependency_tracking" != xno \
5428 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5430 am__fastdepCC_FALSE='#'
5432 am__fastdepCC_TRUE='#'
5433 am__fastdepCC_FALSE=
5437 if test -n "$ac_tool_prefix"; then
5438 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5439 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if ${ac_cv_prog_RANLIB+:} false; then :
5443 $as_echo_n "(cached) " >&6
5445 if test -n "$RANLIB"; then
5446 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 test -z "$as_dir" && as_dir=.
5453 for ac_exec_ext in '' $ac_executable_extensions; do
5454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5455 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 RANLIB=$ac_cv_prog_RANLIB
5466 if test -n "$RANLIB"; then
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5468 $as_echo "$RANLIB" >&6; }
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471 $as_echo "no" >&6; }
5476 if test -z "$ac_cv_prog_RANLIB"; then
5477 ac_ct_RANLIB=$RANLIB
5478 # Extract the first word of "ranlib", so it can be a program name with args.
5479 set dummy ranlib; ac_word=$2
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481 $as_echo_n "checking for $ac_word... " >&6; }
5482 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5483 $as_echo_n "(cached) " >&6
5485 if test -n "$ac_ct_RANLIB"; then
5486 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5495 ac_cv_prog_ac_ct_RANLIB="ranlib"
5496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5506 if test -n "$ac_ct_RANLIB"; then
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5508 $as_echo "$ac_ct_RANLIB" >&6; }
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511 $as_echo "no" >&6; }
5514 if test "x$ac_ct_RANLIB" = x; then
5517 case $cross_compiling:$ac_tool_warned in
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5521 ac_tool_warned=yes ;;
5523 RANLIB=$ac_ct_RANLIB
5526 RANLIB="$ac_cv_prog_RANLIB"
5529 if test "x$CC" != xcc; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5531 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5534 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5536 set dummy $CC; ac_cc=`$as_echo "$2" |
5537 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5538 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5539 $as_echo_n "(cached) " >&6
5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542 /* end confdefs.h. */
5552 # Make sure it works both with $CC and with simple cc.
5553 # We do the test twice because some compilers refuse to overwrite an
5554 # existing .o file with -o, though they will create one.
5555 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5557 if { { case "(($ac_try" in
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5562 $as_echo "$ac_try_echo"; } >&5
5563 (eval "$ac_try") 2>&5
5565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5566 test $ac_status = 0; } &&
5567 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5572 $as_echo "$ac_try_echo"; } >&5
5573 (eval "$ac_try") 2>&5
5575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5576 test $ac_status = 0; };
5578 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5579 if test "x$CC" != xcc; then
5580 # Test first that cc exists at all.
5581 if { ac_try='cc -c conftest.$ac_ext >&5'
5582 { { case "(($ac_try" in
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5587 $as_echo "$ac_try_echo"; } >&5
5588 (eval "$ac_try") 2>&5
5590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5591 test $ac_status = 0; }; }; then
5592 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5594 if { { case "(($ac_try" in
5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5599 $as_echo "$ac_try_echo"; } >&5
5600 (eval "$ac_try") 2>&5
5602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5603 test $ac_status = 0; } &&
5604 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5609 $as_echo "$ac_try_echo"; } >&5
5610 (eval "$ac_try") 2>&5
5612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5613 test $ac_status = 0; };
5618 # cc exists but doesn't like -o.
5619 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5624 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5626 rm -f core conftest*
5629 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5631 $as_echo "yes" >&6; }
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 $as_echo "no" >&6; }
5636 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5640 # FIXME: we rely on the cache variable name because
5641 # there is no other way.
5643 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5644 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5645 if test "$am_t" != yes; then
5646 # Losing compiler, so override with the script.
5647 # FIXME: It is wrong to rewrite CC.
5648 # But if we don't then we get into trouble of one sort or another.
5649 # A longer-term fix would be to have automake use am__CC in this case,
5650 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5651 CC="$am_aux_dir/compile $CC"
5657 ac_cpp='$CPP $CPPFLAGS'
5658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5662 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5663 # On Suns, sometimes $CPP names a directory.
5664 if test -n "$CPP" && test -d "$CPP"; then
5667 if test -z "$CPP"; then
5668 if ${ac_cv_prog_CPP+:} false; then :
5669 $as_echo_n "(cached) " >&6
5671 # Double quotes because CPP needs to be expanded
5672 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5675 for ac_c_preproc_warn_flag in '' yes
5677 # Use a header file that comes with gcc, so configuring glibc
5678 # with a fresh cross-compiler works.
5679 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5680 # <limits.h> exists even on freestanding compilers.
5681 # On the NeXT, cc -E runs the code through the compiler's parser,
5682 # not just through cpp. "Syntax error" is here to catch this case.
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h. */
5686 # include <limits.h>
5688 # include <assert.h>
5692 if ac_fn_c_try_cpp "$LINENO"; then :
5695 # Broken: fails on valid input.
5698 rm -f conftest.err conftest.i conftest.$ac_ext
5700 # OK, works on sane cases. Now check whether nonexistent headers
5701 # can be detected and how.
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5704 #include <ac_nonexistent.h>
5706 if ac_fn_c_try_cpp "$LINENO"; then :
5707 # Broken: success on invalid input.
5710 # Passes both tests.
5714 rm -f conftest.err conftest.i conftest.$ac_ext
5717 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5718 rm -f conftest.i conftest.err conftest.$ac_ext
5719 if $ac_preproc_ok; then :
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5732 $as_echo "$CPP" >&6; }
5734 for ac_c_preproc_warn_flag in '' yes
5736 # Use a header file that comes with gcc, so configuring glibc
5737 # with a fresh cross-compiler works.
5738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5739 # <limits.h> exists even on freestanding compilers.
5740 # On the NeXT, cc -E runs the code through the compiler's parser,
5741 # not just through cpp. "Syntax error" is here to catch this case.
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5745 # include <limits.h>
5747 # include <assert.h>
5751 if ac_fn_c_try_cpp "$LINENO"; then :
5754 # Broken: fails on valid input.
5757 rm -f conftest.err conftest.i conftest.$ac_ext
5759 # OK, works on sane cases. Now check whether nonexistent headers
5760 # can be detected and how.
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5763 #include <ac_nonexistent.h>
5765 if ac_fn_c_try_cpp "$LINENO"; then :
5766 # Broken: success on invalid input.
5769 # Passes both tests.
5773 rm -f conftest.err conftest.i conftest.$ac_ext
5776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5777 rm -f conftest.i conftest.err conftest.$ac_ext
5778 if $ac_preproc_ok; then :
5781 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5783 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5784 See \`config.log' for more details" "$LINENO" 5; }
5788 ac_cpp='$CPP $CPPFLAGS'
5789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5795 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5796 if ${ac_cv_path_GREP+:} false; then :
5797 $as_echo_n "(cached) " >&6
5799 if test -z "$GREP"; then
5800 ac_path_GREP_found=false
5801 # Loop through the user's path and test for each of PROGNAME-LIST
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5806 test -z "$as_dir" && as_dir=.
5807 for ac_prog in grep ggrep; do
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5810 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5811 # Check for GNU ac_path_GREP and select it if it is found.
5812 # Check for GNU $ac_path_GREP
5813 case `"$ac_path_GREP" --version 2>&1` in
5815 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5818 $as_echo_n 0123456789 >"conftest.in"
5821 cat "conftest.in" "conftest.in" >"conftest.tmp"
5822 mv "conftest.tmp" "conftest.in"
5823 cp "conftest.in" "conftest.nl"
5824 $as_echo 'GREP' >> "conftest.nl"
5825 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5826 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5827 as_fn_arith $ac_count + 1 && ac_count=$as_val
5828 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5829 # Best one so far, save it but keep looking for a better one
5830 ac_cv_path_GREP="$ac_path_GREP"
5831 ac_path_GREP_max=$ac_count
5833 # 10*(2^10) chars as input seems more than enough
5834 test $ac_count -gt 10 && break
5836 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5839 $ac_path_GREP_found && break 3
5844 if test -z "$ac_cv_path_GREP"; then
5845 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5848 ac_cv_path_GREP=$GREP
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5853 $as_echo "$ac_cv_path_GREP" >&6; }
5854 GREP="$ac_cv_path_GREP"
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5858 $as_echo_n "checking for egrep... " >&6; }
5859 if ${ac_cv_path_EGREP+:} false; then :
5860 $as_echo_n "(cached) " >&6
5862 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5863 then ac_cv_path_EGREP="$GREP -E"
5865 if test -z "$EGREP"; then
5866 ac_path_EGREP_found=false
5867 # Loop through the user's path and test for each of PROGNAME-LIST
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5872 test -z "$as_dir" && as_dir=.
5873 for ac_prog in egrep; do
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5876 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5877 # Check for GNU ac_path_EGREP and select it if it is found.
5878 # Check for GNU $ac_path_EGREP
5879 case `"$ac_path_EGREP" --version 2>&1` in
5881 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5884 $as_echo_n 0123456789 >"conftest.in"
5887 cat "conftest.in" "conftest.in" >"conftest.tmp"
5888 mv "conftest.tmp" "conftest.in"
5889 cp "conftest.in" "conftest.nl"
5890 $as_echo 'EGREP' >> "conftest.nl"
5891 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5893 as_fn_arith $ac_count + 1 && ac_count=$as_val
5894 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5895 # Best one so far, save it but keep looking for a better one
5896 ac_cv_path_EGREP="$ac_path_EGREP"
5897 ac_path_EGREP_max=$ac_count
5899 # 10*(2^10) chars as input seems more than enough
5900 test $ac_count -gt 10 && break
5902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5905 $ac_path_EGREP_found && break 3
5910 if test -z "$ac_cv_path_EGREP"; then
5911 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5914 ac_cv_path_EGREP=$EGREP
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5920 $as_echo "$ac_cv_path_EGREP" >&6; }
5921 EGREP="$ac_cv_path_EGREP"
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5925 $as_echo_n "checking for ANSI C header files... " >&6; }
5926 if ${ac_cv_header_stdc+:} false; then :
5927 $as_echo_n "(cached) " >&6
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5944 if ac_fn_c_try_compile "$LINENO"; then :
5945 ac_cv_header_stdc=yes
5947 ac_cv_header_stdc=no
5949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951 if test $ac_cv_header_stdc = yes; then
5952 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954 /* end confdefs.h. */
5958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5959 $EGREP "memchr" >/dev/null 2>&1; then :
5962 ac_cv_header_stdc=no
5968 if test $ac_cv_header_stdc = yes; then
5969 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5976 $EGREP "free" >/dev/null 2>&1; then :
5979 ac_cv_header_stdc=no
5985 if test $ac_cv_header_stdc = yes; then
5986 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5987 if test "$cross_compiling" = yes; then :
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5994 #if ((' ' & 0x0FF) == 0x020)
5995 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5996 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5998 # define ISLOWER(c) \
5999 (('a' <= (c) && (c) <= 'i') \
6000 || ('j' <= (c) && (c) <= 'r') \
6001 || ('s' <= (c) && (c) <= 'z'))
6002 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6005 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6010 for (i = 0; i < 256; i++)
6011 if (XOR (islower (i), ISLOWER (i))
6012 || toupper (i) != TOUPPER (i))
6017 if ac_fn_c_try_run "$LINENO"; then :
6020 ac_cv_header_stdc=no
6022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6023 conftest.$ac_objext conftest.beam conftest.$ac_ext
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6029 $as_echo "$ac_cv_header_stdc" >&6; }
6030 if test $ac_cv_header_stdc = yes; then
6032 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6036 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6037 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6038 inttypes.h stdint.h unistd.h
6040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6041 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6043 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6044 cat >>confdefs.h <<_ACEOF
6045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6056 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6057 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6064 if test "$MINIX" = yes; then
6066 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6069 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6072 $as_echo "#define _MINIX 1" >>confdefs.h
6079 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6086 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6087 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6088 $as_echo_n "(cached) " >&6
6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h. */
6093 # define __EXTENSIONS__ 1
6094 $ac_includes_default
6103 if ac_fn_c_try_compile "$LINENO"; then :
6104 ac_cv_safe_to_define___extensions__=yes
6106 ac_cv_safe_to_define___extensions__=no
6108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6111 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6112 test $ac_cv_safe_to_define___extensions__ = yes &&
6113 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6115 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6117 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6119 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6121 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6131 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
6132 if ${ac_cv_sys_largefile_source+:} false; then :
6133 $as_echo_n "(cached) " >&6
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h. */
6138 #include <sys/types.h> /* for off_t */
6143 int (*fp) (FILE *, off_t, int) = fseeko;
6144 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6149 if ac_fn_c_try_link "$LINENO"; then :
6150 ac_cv_sys_largefile_source=no; break
6152 rm -f core conftest.err conftest.$ac_objext \
6153 conftest$ac_exeext conftest.$ac_ext
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6156 #define _LARGEFILE_SOURCE 1
6157 #include <sys/types.h> /* for off_t */
6162 int (*fp) (FILE *, off_t, int) = fseeko;
6163 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6168 if ac_fn_c_try_link "$LINENO"; then :
6169 ac_cv_sys_largefile_source=1; break
6171 rm -f core conftest.err conftest.$ac_objext \
6172 conftest$ac_exeext conftest.$ac_ext
6173 ac_cv_sys_largefile_source=unknown
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
6178 $as_echo "$ac_cv_sys_largefile_source" >&6; }
6179 case $ac_cv_sys_largefile_source in #(
6182 cat >>confdefs.h <<_ACEOF
6183 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6189 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6190 # in glibc 2.1.3, but that breaks too many other things.
6191 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6192 if test $ac_cv_sys_largefile_source != unknown; then
6194 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
6203 # Check whether --enable-threads was given.
6204 if test "${enable_threads+set}" = set; then :
6205 enableval=$enable_threads; gl_use_threads=$enableval
6207 if test -n "$gl_use_threads_default"; then
6208 gl_use_threads="$gl_use_threads_default"
6211 osf*) gl_use_threads=no ;;
6214 1.[0-5].*) gl_use_threads=no ;;
6215 *) gl_use_threads=yes ;;
6218 *) gl_use_threads=yes ;;
6224 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6225 # For using <pthread.h>:
6228 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6229 # groks <pthread.h>. cc also understands the flag -pthread, but
6230 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6231 # 2. putting a flag into CPPFLAGS that has an effect on the linker
6232 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
6233 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6234 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
6237 # Some systems optimize for single-threaded programs by default, and
6238 # need special flags to disable these optimizations. For example, the
6239 # definition of 'errno' in <errno.h>.
6241 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
6242 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
6249 # Code from module alignof:
6250 # Code from module alloca-opt:
6251 # Code from module arg-nonnull:
6252 # Code from module arpa_inet:
6253 # Code from module base64:
6254 # Code from module btowc:
6255 # Code from module c++defs:
6256 # Code from module c-ctype:
6257 # Code from module configmake:
6258 # Code from module environ:
6259 # Code from module errno:
6260 # Code from module extensions:
6262 # Code from module float:
6263 # Code from module fseeko:
6265 # Code from module fsusage:
6266 # Code from module ftello:
6268 # Code from module ftruncate:
6269 # Code from module full-read:
6270 # Code from module full-write:
6271 # Code from module getaddrinfo:
6272 # Code from module getopt-gnu:
6273 # Code from module getopt-posix:
6274 # Code from module gettext-h:
6275 # Code from module gettimeofday:
6276 # Code from module havelib:
6277 # Code from module hostent:
6278 # Code from module include_next:
6279 # Code from module inet_ntop:
6280 # Code from module inet_pton:
6281 # Code from module langinfo:
6282 # Code from module localcharset:
6283 # Code from module lock:
6284 # Code from module lseek:
6285 # Code from module lstat:
6286 # Code from module malloc-gnu:
6287 # Code from module malloc-posix:
6288 # Code from module mbrtowc:
6289 # Code from module mbsinit:
6290 # Code from module memchr:
6291 # Code from module mkdtemp:
6292 # Code from module multiarch:
6293 # Code from module netdb:
6294 # Code from module netinet_in:
6295 # Code from module nl_langinfo:
6296 # Code from module physmem:
6297 # Code from module regex:
6298 # Code from module safe-read:
6299 # Code from module safe-write:
6300 # Code from module servent:
6301 # Code from module size_max:
6302 # Code from module snprintf:
6303 # Code from module socklen:
6304 # Code from module ssize_t:
6305 # Code from module stat:
6306 # Code from module stdbool:
6307 # Code from module stddef:
6308 # Code from module stdint:
6309 # Code from module stdio:
6310 # Code from module stdlib:
6311 # Code from module streq:
6312 # Code from module string:
6313 # Code from module sys_socket:
6314 # Code from module sys_stat:
6315 # Code from module sys_time:
6316 # Code from module tempname:
6317 # Code from module threadlib:
6321 # Code from module time:
6322 # Code from module unistd:
6323 # Code from module vasnprintf:
6324 # Code from module verify:
6325 # Code from module warn-on-use:
6326 # Code from module wchar:
6327 # Code from module wcrtomb:
6328 # Code from module wctype:
6329 # Code from module write:
6330 # Code from module xsize:
6336 LIBC_FATAL_STDERR_=1
6337 export LIBC_FATAL_STDERR_
6339 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6340 if test "x$ac_cv_type_size_t" = xyes; then :
6344 cat >>confdefs.h <<_ACEOF
6345 #define size_t unsigned int
6350 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6351 # for constant arguments. Useless!
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6353 $as_echo_n "checking for working alloca.h... " >&6; }
6354 if ${ac_cv_working_alloca_h+:} false; then :
6355 $as_echo_n "(cached) " >&6
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6363 char *p = (char *) alloca (2 * sizeof (int));
6369 if ac_fn_c_try_link "$LINENO"; then :
6370 ac_cv_working_alloca_h=yes
6372 ac_cv_working_alloca_h=no
6374 rm -f core conftest.err conftest.$ac_objext \
6375 conftest$ac_exeext conftest.$ac_ext
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6378 $as_echo "$ac_cv_working_alloca_h" >&6; }
6379 if test $ac_cv_working_alloca_h = yes; then
6381 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6386 $as_echo_n "checking for alloca... " >&6; }
6387 if ${ac_cv_func_alloca_works+:} false; then :
6388 $as_echo_n "(cached) " >&6
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6393 # define alloca __builtin_alloca
6396 # include <malloc.h>
6397 # define alloca _alloca
6399 # ifdef HAVE_ALLOCA_H
6400 # include <alloca.h>
6405 # ifndef alloca /* predefined by HP cc +Olibcalls */
6406 void *alloca (size_t);
6416 char *p = (char *) alloca (1);
6422 if ac_fn_c_try_link "$LINENO"; then :
6423 ac_cv_func_alloca_works=yes
6425 ac_cv_func_alloca_works=no
6427 rm -f core conftest.err conftest.$ac_objext \
6428 conftest$ac_exeext conftest.$ac_ext
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6431 $as_echo "$ac_cv_func_alloca_works" >&6; }
6433 if test $ac_cv_func_alloca_works = yes; then
6435 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6438 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6439 # that cause trouble. Some versions do not even contain alloca or
6440 # contain a buggy version. If you still want to use their alloca,
6441 # use ar to extract alloca.o from them instead of compiling alloca.c.
6447 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6449 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6453 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6454 if ${ac_cv_os_cray+:} false; then :
6455 $as_echo_n "(cached) " >&6
6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h. */
6459 #if defined CRAY && ! defined CRAY2
6466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6467 $EGREP "webecray" >/dev/null 2>&1; then :
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6476 $as_echo "$ac_cv_os_cray" >&6; }
6477 if test $ac_cv_os_cray = yes; then
6478 for ac_func in _getb67 GETB67 getb67; do
6479 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6480 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6481 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6483 cat >>confdefs.h <<_ACEOF
6484 #define CRAY_STACKSEG_END $ac_func
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6494 $as_echo_n "checking stack direction for C alloca... " >&6; }
6495 if ${ac_cv_c_stack_direction+:} false; then :
6496 $as_echo_n "(cached) " >&6
6498 if test "$cross_compiling" = yes; then :
6499 ac_cv_c_stack_direction=0
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6503 $ac_includes_default
6505 find_stack_direction ()
6507 static char *addr = 0;
6512 return find_stack_direction ();
6515 return (&dummy > addr) ? 1 : -1;
6521 return find_stack_direction () < 0;
6524 if ac_fn_c_try_run "$LINENO"; then :
6525 ac_cv_c_stack_direction=1
6527 ac_cv_c_stack_direction=-1
6529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6530 conftest.$ac_objext conftest.beam conftest.$ac_ext
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6535 $as_echo "$ac_cv_c_stack_direction" >&6; }
6536 cat >>confdefs.h <<_ACEOF
6537 #define STACK_DIRECTION $ac_cv_c_stack_direction
6546 HAVE_DECL_INET_NTOP=1;
6547 HAVE_DECL_INET_PTON=1;
6553 for ac_header in $gl_header_list
6555 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6556 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6557 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6558 cat >>confdefs.h <<_ACEOF
6559 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6573 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6574 if ${gl_cv_have_include_next+:} false; then :
6575 $as_echo_n "(cached) " >&6
6577 rm -rf conftestd1a conftestd1b conftestd2
6578 mkdir conftestd1a conftestd1b conftestd2
6579 cat <<EOF > conftestd1a/conftest.h
6580 #define DEFINED_IN_CONFTESTD1
6581 #include_next <conftest.h>
6582 #ifdef DEFINED_IN_CONFTESTD2
6585 #error "include_next doesn't work"
6588 cat <<EOF > conftestd1b/conftest.h
6589 #define DEFINED_IN_CONFTESTD1
6591 #include_next <conftest.h>
6592 #ifdef DEFINED_IN_CONFTESTD2
6595 #error "include_next doesn't work"
6598 cat <<EOF > conftestd2/conftest.h
6599 #ifndef DEFINED_IN_CONFTESTD1
6600 #error "include_next test doesn't work"
6602 #define DEFINED_IN_CONFTESTD2
6604 gl_save_CPPFLAGS="$CPPFLAGS"
6605 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6608 #include <conftest.h>
6610 if ac_fn_c_try_compile "$LINENO"; then :
6611 gl_cv_have_include_next=yes
6613 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6615 /* end confdefs.h. */
6616 #include <conftest.h>
6618 if ac_fn_c_try_compile "$LINENO"; then :
6619 gl_cv_have_include_next=buggy
6621 gl_cv_have_include_next=no
6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 CPPFLAGS="$gl_save_CPPFLAGS"
6628 rm -rf conftestd1a conftestd1b conftestd2
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6632 $as_echo "$gl_cv_have_include_next" >&6; }
6633 PRAGMA_SYSTEM_HEADER=
6634 if test $gl_cv_have_include_next = yes; then
6635 INCLUDE_NEXT=include_next
6636 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6637 if test -n "$GCC"; then
6638 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6641 if test $gl_cv_have_include_next = buggy; then
6642 INCLUDE_NEXT=include
6643 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6645 INCLUDE_NEXT=include
6646 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6654 $as_echo_n "checking for inline... " >&6; }
6655 if ${ac_cv_c_inline+:} false; then :
6656 $as_echo_n "(cached) " >&6
6659 for ac_kw in inline __inline__ __inline; do
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6664 static $ac_kw foo_t static_foo () {return 0; }
6665 $ac_kw foo_t foo () {return 0; }
6669 if ac_fn_c_try_compile "$LINENO"; then :
6670 ac_cv_c_inline=$ac_kw
6672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673 test "$ac_cv_c_inline" != no && break
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6678 $as_echo "$ac_cv_c_inline" >&6; }
6680 case $ac_cv_c_inline in
6683 case $ac_cv_c_inline in
6685 *) ac_val=$ac_cv_c_inline;;
6687 cat >>confdefs.h <<_ACEOF
6689 #define inline $ac_val
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6696 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6697 if ${ac_cv_c_restrict+:} false; then :
6698 $as_echo_n "(cached) " >&6
6701 # The order here caters to the fact that C++ does not require restrict.
6702 for ac_kw in __restrict __restrict__ _Restrict restrict; do
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6705 typedef int * int_ptr;
6706 int foo (int_ptr $ac_kw ip) {
6720 if ac_fn_c_try_compile "$LINENO"; then :
6721 ac_cv_c_restrict=$ac_kw
6723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 test "$ac_cv_c_restrict" != no && break
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6729 $as_echo "$ac_cv_c_restrict" >&6; }
6731 case $ac_cv_c_restrict in
6733 no) $as_echo "#define restrict /**/" >>confdefs.h
6735 *) cat >>confdefs.h <<_ACEOF
6736 #define restrict $ac_cv_c_restrict
6748 GNULIB_MBSNRTOWCS=0;
6751 GNULIB_WCSNRTOMBS=0;
6763 HAVE_DECL_WCWIDTH=1;
6764 REPLACE_MBSTATE_T=0;
6770 REPLACE_MBSRTOWCS=0;
6771 REPLACE_MBSNRTOWCS=0;
6773 REPLACE_WCSRTOMBS=0;
6774 REPLACE_WCSNRTOMBS=0;
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
6779 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
6780 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
6781 $as_echo_n "(cached) " >&6
6783 gl_cv_header_wchar_h_correct_inline=yes
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6787 #define wcstod renamed_wcstod
6789 extern int zero (void);
6790 int main () { return zero(); }
6793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6794 (eval $ac_compile) 2>&5
6796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6797 test $ac_status = 0; }; then
6798 mv conftest.$ac_objext conftest1.$ac_objext
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6802 #define wcstod renamed_wcstod
6804 int zero (void) { return 0; }
6807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6808 (eval $ac_compile) 2>&5
6810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6811 test $ac_status = 0; }; then
6812 mv conftest.$ac_objext conftest2.$ac_objext
6813 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
6816 gl_cv_header_wchar_h_correct_inline=no
6820 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
6824 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
6825 if test $gl_cv_header_wchar_h_correct_inline = no; then
6826 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
6827 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
6828 C99 mode. You have four options:
6829 - Add the flag -fgnu89-inline to CC and reconfigure, or
6830 - Fix your include files, using parts of
6831 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
6832 - Use a gcc version older than 4.3, or
6833 - Don't use the flags -std=c99 or -std=gnu99.
6834 Configuration aborted." "$LINENO" 5
6841 for ac_func in $gl_func_list
6843 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6844 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6845 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6846 cat >>confdefs.h <<_ACEOF
6847 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6859 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6860 if ${am_cv_langinfo_codeset+:} false; then :
6861 $as_echo_n "(cached) " >&6
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6865 #include <langinfo.h>
6869 char* cs = nl_langinfo(CODESET);
6874 if ac_fn_c_try_link "$LINENO"; then :
6875 am_cv_langinfo_codeset=yes
6877 am_cv_langinfo_codeset=no
6879 rm -f core conftest.err conftest.$ac_objext \
6880 conftest$ac_exeext conftest.$ac_ext
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6884 $as_echo "$am_cv_langinfo_codeset" >&6; }
6885 if test $am_cv_langinfo_codeset = yes; then
6887 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
6895 $as_echo_n "checking for a traditional french locale... " >&6; }
6896 if ${gt_cv_locale_fr+:} false; then :
6897 $as_echo_n "(cached) " >&6
6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h. */
6905 #if HAVE_LANGINFO_CODESET
6906 # include <langinfo.h>
6913 /* Check whether the given locale name is recognized by the system. */
6914 if (setlocale (LC_ALL, "") == NULL) return 1;
6915 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
6916 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
6917 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
6918 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
6919 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
6920 some unit tests fail. */
6921 #if HAVE_LANGINFO_CODESET
6923 const char *cs = nl_langinfo (CODESET);
6924 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
6929 /* On Cygwin, avoid locale names without encoding suffix, because the
6930 locale_charset() function relies on the encoding suffix. Note that
6931 LC_ALL is set on the command line. */
6932 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
6934 /* Check whether in the abbreviation of the second month, the second
6935 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
6936 one byte long. This excludes the UTF-8 encoding. */
6937 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
6938 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
6939 /* Check whether the decimal separator is a comma.
6940 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
6941 are nl_langinfo(RADIXCHAR) are both ".". */
6942 if (localeconv () ->decimal_point[0] != ',') return 1;
6947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6948 (eval $ac_link) 2>&5
6950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6951 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6952 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
6953 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
6954 # configure script would override the LC_ALL setting. Likewise for
6955 # LC_CTYPE, which is also set at the beginning of the configure script.
6956 # Test for the usual locale name.
6957 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6958 gt_cv_locale_fr=fr_FR
6960 # Test for the locale name with explicit encoding suffix.
6961 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6962 gt_cv_locale_fr=fr_FR.ISO-8859-1
6964 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
6965 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6966 gt_cv_locale_fr=fr_FR.ISO8859-1
6968 # Test for the HP-UX locale name.
6969 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6970 gt_cv_locale_fr=fr_FR.iso88591
6972 # Test for the Solaris 7 locale name.
6973 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6977 gt_cv_locale_fr=none
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
6988 $as_echo "$gt_cv_locale_fr" >&6; }
6989 LOCALE_FR=$gt_cv_locale_fr
6998 GNULIB_EUIDACCESS=0;
7005 GNULIB_GETDOMAINNAME=0;
7006 GNULIB_GETDTABLESIZE=0;
7008 GNULIB_GETHOSTNAME=0;
7010 GNULIB_GETLOGIN_R=0;
7011 GNULIB_GETPAGESIZE=0;
7012 GNULIB_GETUSERSHELL=0;
7021 GNULIB_READLINKAT=0;
7027 GNULIB_UNISTD_H_GETOPT=0;
7028 GNULIB_UNISTD_H_SIGPIPE=0;
7042 HAVE_GETDOMAINNAME=1;
7043 HAVE_GETDTABLESIZE=1;
7062 HAVE_DECL_ENVIRON=1;
7063 HAVE_DECL_GETLOGIN_R=1;
7064 HAVE_DECL_GETPAGESIZE=1;
7065 HAVE_DECL_GETUSERSHELL=1;
7074 REPLACE_GETGROUPS=0;
7075 REPLACE_GETPAGESIZE=0;
7086 REPLACE_TTYNAME_R=0;
7091 UNISTD_H_HAVE_WINSOCK2_H=0;
7092 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
7101 $as_echo_n "checking if environ is properly declared... " >&6; }
7102 if ${gt_cv_var_environ_declaration+:} false; then :
7103 $as_echo_n "(cached) " >&6
7106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h. */
7109 extern struct { int foo; } environ;
7118 if ac_fn_c_try_compile "$LINENO"; then :
7119 gt_cv_var_environ_declaration=no
7121 gt_cv_var_environ_declaration=yes
7123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
7127 $as_echo "$gt_cv_var_environ_declaration" >&6; }
7128 if test $gt_cv_var_environ_declaration = yes; then
7130 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
7135 if test $gt_cv_var_environ_declaration != yes; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
7147 $as_echo_n "checking for complete errno.h... " >&6; }
7148 if ${gl_cv_header_errno_h_complete+:} false; then :
7149 $as_echo_n "(cached) " >&6
7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153 /* end confdefs.h. */
7162 #if !defined ENOLINK
7168 #if !defined EMULTIHOP
7171 #if !defined EBADMSG
7174 #if !defined EOVERFLOW
7177 #if !defined ENOTSUP
7183 #if !defined ECANCELED
7188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7189 $EGREP "booboo" >/dev/null 2>&1; then :
7190 gl_cv_header_errno_h_complete=no
7192 gl_cv_header_errno_h_complete=yes
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
7199 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7200 if test $gl_cv_header_errno_h_complete = yes; then
7215 if test $gl_cv_have_include_next = yes; then
7216 gl_cv_next_errno_h='<'errno.h'>'
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
7219 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7220 if ${gl_cv_next_errno_h+:} false; then :
7221 $as_echo_n "(cached) " >&6
7224 if test $ac_cv_header_errno_h = yes; then
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7231 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7232 *) gl_absname_cpp="$ac_cpp" ;;
7234 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7235 sed -n '\#/errno.h#{
7236 s#.*"\(.*/errno.h\)".*#\1#
7242 gl_cv_next_errno_h='<'errno.h'>'
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7247 $as_echo "$gl_cv_next_errno_h" >&6; }
7249 NEXT_ERRNO_H=$gl_cv_next_errno_h
7251 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7253 gl_next_as_first_directive='<'errno.h'>'
7255 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7256 gl_next_as_first_directive=$gl_cv_next_errno_h
7258 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
7266 if test -n "$ERRNO_H"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7268 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7269 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
7270 $as_echo_n "(cached) " >&6
7273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274 /* end confdefs.h. */
7282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7283 $EGREP "yes" >/dev/null 2>&1; then :
7284 gl_cv_header_errno_h_EMULTIHOP=yes
7286 gl_cv_header_errno_h_EMULTIHOP=no
7290 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292 /* end confdefs.h. */
7294 #define _XOPEN_SOURCE_EXTENDED 1
7301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7302 $EGREP "yes" >/dev/null 2>&1; then :
7303 gl_cv_header_errno_h_EMULTIHOP=hidden
7307 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7308 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
7309 #define _XOPEN_SOURCE_EXTENDED 1
7311 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7323 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7324 case $gl_cv_header_errno_h_EMULTIHOP in
7326 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7329 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7337 if test -n "$ERRNO_H"; then
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7339 $as_echo_n "checking for ENOLINK value... " >&6; }
7340 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
7341 $as_echo_n "(cached) " >&6
7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345 /* end confdefs.h. */
7353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7354 $EGREP "yes" >/dev/null 2>&1; then :
7355 gl_cv_header_errno_h_ENOLINK=yes
7357 gl_cv_header_errno_h_ENOLINK=no
7361 if test $gl_cv_header_errno_h_ENOLINK = no; then
7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h. */
7365 #define _XOPEN_SOURCE_EXTENDED 1
7372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7373 $EGREP "yes" >/dev/null 2>&1; then :
7374 gl_cv_header_errno_h_ENOLINK=hidden
7378 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7379 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7380 #define _XOPEN_SOURCE_EXTENDED 1
7382 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7394 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7395 case $gl_cv_header_errno_h_ENOLINK in
7397 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7400 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7408 if test -n "$ERRNO_H"; then
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7410 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7411 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
7412 $as_echo_n "(cached) " >&6
7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416 /* end confdefs.h. */
7424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7425 $EGREP "yes" >/dev/null 2>&1; then :
7426 gl_cv_header_errno_h_EOVERFLOW=yes
7428 gl_cv_header_errno_h_EOVERFLOW=no
7432 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h. */
7436 #define _XOPEN_SOURCE_EXTENDED 1
7443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7444 $EGREP "yes" >/dev/null 2>&1; then :
7445 gl_cv_header_errno_h_EOVERFLOW=hidden
7449 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7450 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7451 #define _XOPEN_SOURCE_EXTENDED 1
7453 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7465 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7466 case $gl_cv_header_errno_h_EOVERFLOW in
7468 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7471 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7490 GNULIB_FPRINTF_POSIX=0;
7502 GNULIB_OBSTACK_PRINTF=0;
7503 GNULIB_OBSTACK_PRINTF_POSIX=0;
7507 GNULIB_PRINTF_POSIX=0;
7515 GNULIB_SPRINTF_POSIX=0;
7516 GNULIB_STDIO_H_SIGPIPE=0;
7521 GNULIB_VFPRINTF_POSIX=0;
7523 GNULIB_VPRINTF_POSIX=0;
7525 GNULIB_VSPRINTF_POSIX=0;
7527 HAVE_DECL_GETDELIM=1;
7528 HAVE_DECL_GETLINE=1;
7529 HAVE_DECL_OBSTACK_PRINTF=1;
7530 HAVE_DECL_SNPRINTF=1;
7531 HAVE_DECL_VSNPRINTF=1;
7551 REPLACE_OBSTACK_PRINTF=0;
7560 REPLACE_STDIO_WRITE_FUNCS=0;
7562 REPLACE_VASPRINTF=0;
7566 REPLACE_VSNPRINTF=0;
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
7575 $as_echo_n "checking for fseeko... " >&6; }
7576 if ${gl_cv_func_fseeko+:} false; then :
7577 $as_echo_n "(cached) " >&6
7580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581 /* end confdefs.h. */
7587 fseeko (stdin, 0, 0);
7592 if ac_fn_c_try_link "$LINENO"; then :
7593 gl_cv_func_fseeko=yes
7595 gl_cv_func_fseeko=no
7597 rm -f core conftest.err conftest.$ac_objext \
7598 conftest$ac_exeext conftest.$ac_ext
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
7602 $as_echo "$gl_cv_func_fseeko" >&6; }
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
7606 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
7607 if ${gl_cv_var_stdin_large_offset+:} false; then :
7608 $as_echo_n "(cached) " >&6
7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h. */
7616 #if defined __SL64 && defined __SCLE /* cygwin */
7617 /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
7618 fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and
7619 it is easier to do a version check than building a runtime test. */
7620 # include <cygwin/version.h>
7621 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
7629 if ac_fn_c_try_link "$LINENO"; then :
7630 gl_cv_var_stdin_large_offset=yes
7632 gl_cv_var_stdin_large_offset=no
7634 rm -f core conftest.err conftest.$ac_objext \
7635 conftest$ac_exeext conftest.$ac_ext
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
7638 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
7665 GNULIB_GETPEERNAME=0;
7666 GNULIB_GETSOCKNAME=0;
7667 GNULIB_GETSOCKOPT=0;
7673 GNULIB_SETSOCKOPT=0;
7676 HAVE_STRUCT_SOCKADDR_STORAGE=1;
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
7690 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
7691 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
7692 $as_echo_n "(cached) " >&6
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7697 #include <sys/socket.h>
7706 if ac_fn_c_try_compile "$LINENO"; then :
7707 gl_cv_header_sys_socket_h_selfcontained=yes
7709 gl_cv_header_sys_socket_h_selfcontained=no
7711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
7715 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
7716 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
7717 for ac_func in shutdown
7719 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
7720 if test "x$ac_cv_func_shutdown" = xyes; then :
7721 cat >>confdefs.h <<_ACEOF
7722 #define HAVE_SHUTDOWN 1
7728 if test $ac_cv_func_shutdown = yes; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
7730 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
7731 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
7732 $as_echo_n "(cached) " >&6
7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h. */
7737 #include <sys/socket.h>
7741 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
7746 if ac_fn_c_try_compile "$LINENO"; then :
7747 gl_cv_header_sys_socket_h_shut=yes
7749 gl_cv_header_sys_socket_h_shut=no
7751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
7755 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
7756 if test $gl_cv_header_sys_socket_h_shut = no; then
7757 SYS_SOCKET_H='sys/socket.h'
7761 # We need to check for ws2tcpip.h now.
7775 if test $gl_cv_have_include_next = yes; then
7776 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
7779 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
7780 if ${gl_cv_next_sys_socket_h+:} false; then :
7781 $as_echo_n "(cached) " >&6
7784 if test $ac_cv_header_sys_socket_h = yes; then
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7787 #include <sys/socket.h>
7791 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7792 *) gl_absname_cpp="$ac_cpp" ;;
7794 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7795 sed -n '\#/sys/socket.h#{
7796 s#.*"\(.*/sys/socket.h\)".*#\1#
7802 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
7807 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
7809 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
7811 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7812 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7813 gl_next_as_first_directive='<'sys/socket.h'>'
7815 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7816 gl_next_as_first_directive=$gl_cv_next_sys_socket_h
7818 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
7822 if test $ac_cv_header_sys_socket_h = yes; then
7827 for ac_header in ws2tcpip.h
7829 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
7830 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
7831 cat >>confdefs.h <<_ACEOF
7832 #define HAVE_WS2TCPIP_H 1
7839 if test $ac_cv_header_ws2tcpip_h = yes; then
7848 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
7849 /* sys/types.h is not needed according to POSIX, but the
7850 sys/socket.h in i386-unknown-freebsd4.10 and
7851 powerpc-apple-darwin5.5 required it. */
7852 #include <sys/types.h>
7853 #ifdef HAVE_SYS_SOCKET_H
7854 #include <sys/socket.h>
7856 #ifdef HAVE_WS2TCPIP_H
7857 #include <ws2tcpip.h>
7861 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
7863 cat >>confdefs.h <<_ACEOF
7864 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
7869 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
7870 /* sys/types.h is not needed according to POSIX, but the
7871 sys/socket.h in i386-unknown-freebsd4.10 and
7872 powerpc-apple-darwin5.5 required it. */
7873 #include <sys/types.h>
7874 #ifdef HAVE_SYS_SOCKET_H
7875 #include <sys/socket.h>
7877 #ifdef HAVE_WS2TCPIP_H
7878 #include <ws2tcpip.h>
7882 if test "x$ac_cv_type_sa_family_t" = xyes; then :
7884 cat >>confdefs.h <<_ACEOF
7885 #define HAVE_SA_FAMILY_T 1
7891 if test $ac_cv_type_struct_sockaddr_storage = no; then
7892 HAVE_STRUCT_SOCKADDR_STORAGE=0
7894 if test $ac_cv_type_sa_family_t = no; then
7907 if test $ac_cv_header_sys_socket_h != yes; then
7908 for ac_header in winsock2.h
7910 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
7911 if test "x$ac_cv_header_winsock2_h" = xyes; then :
7912 cat >>confdefs.h <<_ACEOF
7913 #define HAVE_WINSOCK2_H 1
7921 if test "$ac_cv_header_winsock2_h" = yes; then
7923 UNISTD_H_HAVE_WINSOCK2_H=1
7924 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
7932 for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do
7933 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7935 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7936 if eval \${$as_gl_Symbol+:} false; then :
7937 $as_echo_n "(cached) " >&6
7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h. */
7942 /* Some systems require prerequisite headers. */
7943 #include <sys/types.h>
7944 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
7945 # include <sys/time.h>
7947 #include <sys/select.h>
7958 if ac_fn_c_try_compile "$LINENO"; then :
7959 eval "$as_gl_Symbol=yes"
7961 eval "$as_gl_Symbol=no"
7963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965 eval ac_res=\$$as_gl_Symbol
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7967 $as_echo "$ac_res" >&6; }
7968 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
7969 cat >>confdefs.h <<_ACEOF
7970 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7973 eval ac_cv_have_decl_$gl_func=yes
7979 GNULIB_GETADDRINFO=0;
7980 HAVE_STRUCT_ADDRINFO=1;
7981 HAVE_DECL_FREEADDRINFO=1;
7982 HAVE_DECL_GAI_STRERROR=1;
7983 HAVE_DECL_GETADDRINFO=1;
7984 HAVE_DECL_GETNAMEINFO=1;
8012 if test $gl_cv_have_include_next = yes; then
8013 gl_cv_next_netdb_h='<'netdb.h'>'
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
8016 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
8017 if ${gl_cv_next_netdb_h+:} false; then :
8018 $as_echo_n "(cached) " >&6
8021 if test $ac_cv_header_netdb_h = yes; then
8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h. */
8028 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8029 *) gl_absname_cpp="$ac_cpp" ;;
8031 gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8032 sed -n '\#/netdb.h#{
8033 s#.*"\(.*/netdb.h\)".*#\1#
8039 gl_cv_next_netdb_h='<'netdb.h'>'
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
8044 $as_echo "$gl_cv_next_netdb_h" >&6; }
8046 NEXT_NETDB_H=$gl_cv_next_netdb_h
8048 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8049 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8050 gl_next_as_first_directive='<'netdb.h'>'
8052 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8053 gl_next_as_first_directive=$gl_cv_next_netdb_h
8055 NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
8059 if test $ac_cv_header_netdb_h = yes; then
8067 for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
8068 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8070 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8071 if eval \${$as_gl_Symbol+:} false; then :
8072 $as_echo_n "(cached) " >&6
8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h. */
8086 if ac_fn_c_try_compile "$LINENO"; then :
8087 eval "$as_gl_Symbol=yes"
8089 eval "$as_gl_Symbol=no"
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8093 eval ac_res=\$$as_gl_Symbol
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8095 $as_echo "$ac_res" >&6; }
8096 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
8097 cat >>confdefs.h <<_ACEOF
8098 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8101 eval ac_cv_have_decl_$gl_func=yes
8108 gl_saved_libs="$LIBS"
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8110 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8111 if ${ac_cv_search_gethostbyname+:} false; then :
8112 $as_echo_n "(cached) " >&6
8114 ac_func_search_save_LIBS=$LIBS
8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8116 /* end confdefs.h. */
8118 /* Override any GCC internal prototype to avoid an error.
8119 Use char because int might match the return type of a GCC
8120 builtin and then its argument prototype would still apply. */
8124 char gethostbyname ();
8128 return gethostbyname ();
8133 for ac_lib in '' nsl network net; do
8134 if test -z "$ac_lib"; then
8135 ac_res="none required"
8138 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8140 if ac_fn_c_try_link "$LINENO"; then :
8141 ac_cv_search_gethostbyname=$ac_res
8143 rm -f core conftest.err conftest.$ac_objext \
8145 if ${ac_cv_search_gethostbyname+:} false; then :
8149 if ${ac_cv_search_gethostbyname+:} false; then :
8152 ac_cv_search_gethostbyname=no
8155 LIBS=$ac_func_search_save_LIBS
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8158 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8159 ac_res=$ac_cv_search_gethostbyname
8160 if test "$ac_res" != no; then :
8161 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8162 if test "$ac_cv_search_gethostbyname" != "none required"; then
8163 HOSTENT_LIB="$ac_cv_search_gethostbyname"
8167 LIBS="$gl_saved_libs"
8168 if test -z "$HOSTENT_LIB"; then
8169 for ac_func in gethostbyname
8171 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8172 if test "x$ac_cv_func_gethostbyname" = xyes; then :
8173 cat >>confdefs.h <<_ACEOF
8174 #define HAVE_GETHOSTBYNAME 1
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
8180 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
8181 if ${gl_cv_w32_gethostbyname+:} false; then :
8182 $as_echo_n "(cached) " >&6
8184 gl_cv_w32_gethostbyname=no
8185 gl_save_LIBS="$LIBS"
8186 LIBS="$LIBS -lws2_32"
8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h. */
8190 #ifdef HAVE_WINSOCK2_H
8191 #include <winsock2.h>
8198 gethostbyname(NULL);
8203 if ac_fn_c_try_link "$LINENO"; then :
8204 gl_cv_w32_gethostbyname=yes
8206 rm -f core conftest.err conftest.$ac_objext \
8207 conftest$ac_exeext conftest.$ac_ext
8208 LIBS="$gl_save_LIBS"
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
8212 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
8213 if test "$gl_cv_w32_gethostbyname" = "yes"; then
8214 HOSTENT_LIB="-lws2_32"
8225 gl_saved_libs="$LIBS"
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
8227 $as_echo_n "checking for library containing getservbyname... " >&6; }
8228 if ${ac_cv_search_getservbyname+:} false; then :
8229 $as_echo_n "(cached) " >&6
8231 ac_func_search_save_LIBS=$LIBS
8232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h. */
8235 /* Override any GCC internal prototype to avoid an error.
8236 Use char because int might match the return type of a GCC
8237 builtin and then its argument prototype would still apply. */
8241 char getservbyname ();
8245 return getservbyname ();
8250 for ac_lib in '' socket network net; do
8251 if test -z "$ac_lib"; then
8252 ac_res="none required"
8255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8257 if ac_fn_c_try_link "$LINENO"; then :
8258 ac_cv_search_getservbyname=$ac_res
8260 rm -f core conftest.err conftest.$ac_objext \
8262 if ${ac_cv_search_getservbyname+:} false; then :
8266 if ${ac_cv_search_getservbyname+:} false; then :
8269 ac_cv_search_getservbyname=no
8272 LIBS=$ac_func_search_save_LIBS
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
8275 $as_echo "$ac_cv_search_getservbyname" >&6; }
8276 ac_res=$ac_cv_search_getservbyname
8277 if test "$ac_res" != no; then :
8278 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8279 if test "$ac_cv_search_getservbyname" != "none required"; then
8280 SERVENT_LIB="$ac_cv_search_getservbyname"
8284 LIBS="$gl_saved_libs"
8285 if test -z "$SERVENT_LIB"; then
8286 for ac_func in getservbyname
8288 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
8289 if test "x$ac_cv_func_getservbyname" = xyes; then :
8290 cat >>confdefs.h <<_ACEOF
8291 #define HAVE_GETSERVBYNAME 1
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
8297 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
8298 if ${gl_cv_w32_getservbyname+:} false; then :
8299 $as_echo_n "(cached) " >&6
8301 gl_cv_w32_getservbyname=no
8302 gl_save_LIBS="$LIBS"
8303 LIBS="$LIBS -lws2_32"
8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h. */
8307 #ifdef HAVE_WINSOCK2_H
8308 #include <winsock2.h>
8315 getservbyname(NULL,NULL);
8320 if ac_fn_c_try_link "$LINENO"; then :
8321 gl_cv_w32_getservbyname=yes
8323 rm -f core conftest.err conftest.$ac_objext \
8324 conftest$ac_exeext conftest.$ac_ext
8325 LIBS="$gl_save_LIBS"
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
8329 $as_echo "$gl_cv_w32_getservbyname" >&6; }
8330 if test "$gl_cv_w32_getservbyname" = "yes"; then
8331 SERVENT_LIB="-lws2_32"
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
8356 $as_echo_n "checking for IPv4 sockets... " >&6; }
8357 if ${gl_cv_socket_ipv4+:} false; then :
8358 $as_echo_n "(cached) " >&6
8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h. */
8362 #include <sys/types.h>
8363 #ifdef HAVE_SYS_SOCKET_H
8364 #include <sys/socket.h>
8366 #ifdef HAVE_NETINET_IN_H
8367 #include <netinet/in.h>
8369 #ifdef HAVE_WINSOCK2_H
8370 #include <winsock2.h>
8375 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
8376 if (&x && &y && &z) return 0;
8381 if ac_fn_c_try_compile "$LINENO"; then :
8382 gl_cv_socket_ipv4=yes
8384 gl_cv_socket_ipv4=no
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
8390 $as_echo "$gl_cv_socket_ipv4" >&6; }
8391 if test $gl_cv_socket_ipv4 = yes; then
8393 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
8398 $as_echo_n "checking for IPv6 sockets... " >&6; }
8399 if ${gl_cv_socket_ipv6+:} false; then :
8400 $as_echo_n "(cached) " >&6
8402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8403 /* end confdefs.h. */
8404 #include <sys/types.h>
8405 #ifdef HAVE_SYS_SOCKET_H
8406 #include <sys/socket.h>
8408 #ifdef HAVE_NETINET_IN_H
8409 #include <netinet/in.h>
8411 #ifdef HAVE_WINSOCK2_H
8412 #include <winsock2.h>
8414 #ifdef HAVE_WS2TCPIP_H
8415 #include <ws2tcpip.h>
8420 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
8421 if (&x && &y && &z) return 0;
8426 if ac_fn_c_try_compile "$LINENO"; then :
8427 gl_cv_socket_ipv6=yes
8429 gl_cv_socket_ipv6=no
8431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
8435 $as_echo "$gl_cv_socket_ipv6" >&6; }
8436 if test $gl_cv_socket_ipv6 = yes; then
8438 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
8451 $as_echo_n "checking for library containing inet_ntop... " >&6; }
8452 if ${ac_cv_search_inet_ntop+:} false; then :
8453 $as_echo_n "(cached) " >&6
8455 ac_func_search_save_LIBS=$LIBS
8456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h. */
8459 /* Override any GCC internal prototype to avoid an error.
8460 Use char because int might match the return type of a GCC
8461 builtin and then its argument prototype would still apply. */
8469 return inet_ntop ();
8474 for ac_lib in '' nsl; do
8475 if test -z "$ac_lib"; then
8476 ac_res="none required"
8479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8481 if ac_fn_c_try_link "$LINENO"; then :
8482 ac_cv_search_inet_ntop=$ac_res
8484 rm -f core conftest.err conftest.$ac_objext \
8486 if ${ac_cv_search_inet_ntop+:} false; then :
8490 if ${ac_cv_search_inet_ntop+:} false; then :
8493 ac_cv_search_inet_ntop=no
8496 LIBS=$ac_func_search_save_LIBS
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
8499 $as_echo "$ac_cv_search_inet_ntop" >&6; }
8500 ac_res=$ac_cv_search_inet_ntop
8501 if test "$ac_res" != no; then :
8502 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8513 for ac_func in inet_ntop
8515 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
8516 if test "x$ac_cv_func_inet_ntop" = xyes; then :
8517 cat >>confdefs.h <<_ACEOF
8518 #define HAVE_INET_NTOP 1
8523 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
8533 if test "$ac_cv_search_inet_ntop" != "no" &&
8534 test "$ac_cv_search_inet_ntop" != "none required"; then
8535 INET_NTOP_LIB="$ac_cv_search_inet_ntop"
8540 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
8542 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
8548 cat >>confdefs.h <<_ACEOF
8549 #define HAVE_DECL_INET_NTOP $ac_have_decl
8552 if test $ac_cv_have_decl_inet_ntop = no; then
8553 HAVE_DECL_INET_NTOP=0
8580 if test $gl_cv_have_include_next = yes; then
8581 gl_cv_next_getopt_h='<'getopt.h'>'
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
8584 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
8585 if ${gl_cv_next_getopt_h+:} false; then :
8586 $as_echo_n "(cached) " >&6
8589 if test $ac_cv_header_getopt_h = yes; then
8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8596 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8597 *) gl_absname_cpp="$ac_cpp" ;;
8599 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8600 sed -n '\#/getopt.h#{
8601 s#.*"\(.*/getopt.h\)".*#\1#
8607 gl_cv_next_getopt_h='<'getopt.h'>'
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
8612 $as_echo "$gl_cv_next_getopt_h" >&6; }
8614 NEXT_GETOPT_H=$gl_cv_next_getopt_h
8616 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8617 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8618 gl_next_as_first_directive='<'getopt.h'>'
8620 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8621 gl_next_as_first_directive=$gl_cv_next_getopt_h
8623 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
8634 if test $ac_cv_header_getopt_h = yes; then
8643 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
8644 for ac_header in getopt.h
8646 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
8647 if test "x$ac_cv_header_getopt_h" = xyes; then :
8648 cat >>confdefs.h <<_ACEOF
8649 #define HAVE_GETOPT_H 1
8653 gl_replace_getopt=yes
8660 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
8661 for ac_func in getopt_long_only
8663 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
8664 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
8665 cat >>confdefs.h <<_ACEOF
8666 #define HAVE_GETOPT_LONG_ONLY 1
8670 gl_replace_getopt=yes
8676 if test -z "$gl_replace_getopt"; then
8677 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
8679 if test "x$ac_cv_have_decl_optreset" = xyes; then :
8685 cat >>confdefs.h <<_ACEOF
8686 #define HAVE_DECL_OPTRESET $ac_have_decl
8688 if test $ac_have_decl = 1; then :
8691 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
8693 if test "x$ac_cv_have_decl_getopt_clip" = xyes; then :
8699 cat >>confdefs.h <<_ACEOF
8700 #define HAVE_DECL_GETOPT_CLIP $ac_have_decl
8708 if test -z "$gl_replace_getopt"; then
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
8710 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
8711 if ${gl_cv_func_getopt_posix+:} false; then :
8712 $as_echo_n "(cached) " >&6
8715 if test "$cross_compiling" = yes; then :
8717 mingw*) gl_cv_func_getopt_posix="guessing no";;
8718 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
8719 *) gl_cv_func_getopt_posix="guessing yes";;
8723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724 /* end confdefs.h. */
8730 #if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
8731 # define OPTIND_MIN 0
8733 # define OPTIND_MIN 1
8744 argv[argc++] = "program";
8745 argv[argc++] = "-a";
8746 argv[argc++] = "foo";
8747 argv[argc++] = "bar";
8749 optind = OPTIND_MIN;
8752 c = getopt (argc, argv, "ab");
8755 c = getopt (argc, argv, "ab");
8761 /* Some internal state exists at this point. */
8767 argv[argc++] = "program";
8768 argv[argc++] = "donald";
8769 argv[argc++] = "-p";
8770 argv[argc++] = "billy";
8771 argv[argc++] = "duck";
8772 argv[argc++] = "-a";
8773 argv[argc++] = "bar";
8775 optind = OPTIND_MIN;
8778 c = getopt (argc, argv, "+abp:q:");
8781 if (!(strcmp (argv[0], "program") == 0))
8783 if (!(strcmp (argv[1], "donald") == 0))
8785 if (!(strcmp (argv[2], "-p") == 0))
8787 if (!(strcmp (argv[3], "billy") == 0))
8789 if (!(strcmp (argv[4], "duck") == 0))
8791 if (!(strcmp (argv[5], "-a") == 0))
8793 if (!(strcmp (argv[6], "bar") == 0))
8798 /* Detect MacOS 10.5, AIX 7.1 bug. */
8800 char *argv[3] = { "program", "-ab", NULL };
8801 optind = OPTIND_MIN;
8803 if (getopt (2, argv, "ab:") != 'a')
8805 if (getopt (2, argv, "ab:") != '?')
8817 if ac_fn_c_try_run "$LINENO"; then :
8818 gl_cv_func_getopt_posix=yes
8820 gl_cv_func_getopt_posix=no
8822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8823 conftest.$ac_objext conftest.beam conftest.$ac_ext
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
8829 $as_echo "$gl_cv_func_getopt_posix" >&6; }
8830 case "$gl_cv_func_getopt_posix" in
8831 *no) gl_replace_getopt=yes ;;
8835 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
8837 $as_echo_n "checking for working GNU getopt function... " >&6; }
8838 if ${gl_cv_func_getopt_gnu+:} false; then :
8839 $as_echo_n "(cached) " >&6
8841 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
8842 # optstring is necessary for programs like m4 that have POSIX-mandated
8843 # semantics for supporting options interspersed with files.
8844 # Also, since getopt_long is a GNU extension, we require optind=0.
8845 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
8846 # so take care to revert to the correct (non-)export state.
8847 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
8848 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
8849 xx) gl_had_POSIXLY_CORRECT=exported ;;
8850 x) gl_had_POSIXLY_CORRECT=yes ;;
8851 *) gl_had_POSIXLY_CORRECT= ;;
8854 export POSIXLY_CORRECT
8855 if test "$cross_compiling" = yes; then :
8856 case $host_os:$ac_cv_have_decl_optreset in
8857 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
8858 *:yes) gl_cv_func_getopt_gnu=no;;
8859 *) gl_cv_func_getopt_gnu=yes;;
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8873 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
8874 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
8875 OSF/1 5.1, Solaris 10. */
8878 myargv[0] = "conftest";
8882 if (getopt (2, myargv, "+a") != '?')
8885 /* This code succeeds on glibc 2.8, mingw,
8886 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
8887 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
8889 char *argv[] = { "program", "-p", "foo", "bar", NULL };
8892 if (getopt (4, argv, "p::") != 'p')
8896 if (getopt (4, argv, "p::") != -1)
8901 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
8903 char *argv[] = { "program", "foo", "-p", NULL };
8905 if (getopt (3, argv, "-p") != 1)
8907 if (getopt (3, argv, "-p") != 'p')
8910 /* This code fails on glibc 2.11. */
8912 char *argv[] = { "program", "-b", "-a", NULL };
8913 optind = opterr = 0;
8914 if (getopt (3, argv, "+:a:b") != 'b')
8916 if (getopt (3, argv, "+:a:b") != ':')
8925 if ac_fn_c_try_run "$LINENO"; then :
8926 gl_cv_func_getopt_gnu=yes
8928 gl_cv_func_getopt_gnu=no
8930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8931 conftest.$ac_objext conftest.beam conftest.$ac_ext
8934 case $gl_had_POSIXLY_CORRECT in
8936 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
8937 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
8942 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
8943 if test "$gl_cv_func_getopt_gnu" = "no"; then
8944 gl_replace_getopt=yes
8949 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
8950 if test "x$ac_cv_have_decl_getenv" = xyes; then :
8956 cat >>confdefs.h <<_ACEOF
8957 #define HAVE_DECL_GETENV $ac_have_decl
8966 if test -n "$gl_replace_getopt"; then :
8972 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
8976 GNULIB_UNISTD_H_GETOPT=1
8985 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
8995 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
9012 GNULIB_GETTIMEOFDAY=0;
9013 HAVE_GETTIMEOFDAY=1;
9014 HAVE_STRUCT_TIMEVAL=1;
9016 REPLACE_GETTIMEOFDAY=0;
9045 if test $gl_cv_have_include_next = yes; then
9046 gl_cv_next_sys_time_h='<'sys/time.h'>'
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9049 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9050 if ${gl_cv_next_sys_time_h+:} false; then :
9051 $as_echo_n "(cached) " >&6
9054 if test $ac_cv_header_sys_time_h = yes; then
9055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h. */
9057 #include <sys/time.h>
9061 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9062 *) gl_absname_cpp="$ac_cpp" ;;
9064 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9065 sed -n '\#/sys/time.h#{
9066 s#.*"\(.*/sys/time.h\)".*#\1#
9072 gl_cv_next_sys_time_h='<'sys/time.h'>'
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9077 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9079 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
9081 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9082 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9083 gl_next_as_first_directive='<'sys/time.h'>'
9085 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9086 gl_next_as_first_directive=$gl_cv_next_sys_time_h
9088 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
9093 if test $ac_cv_header_sys_time_h != yes; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9098 $as_echo_n "checking for struct timeval... " >&6; }
9099 if ${gl_cv_sys_struct_timeval+:} false; then :
9100 $as_echo_n "(cached) " >&6
9102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103 /* end confdefs.h. */
9105 #include <sys/time.h>
9112 static struct timeval x; x.tv_sec = x.tv_usec;
9117 if ac_fn_c_try_compile "$LINENO"; then :
9118 gl_cv_sys_struct_timeval=yes
9120 gl_cv_sys_struct_timeval=no
9122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
9125 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
9126 if test $gl_cv_sys_struct_timeval != yes; then
9127 HAVE_STRUCT_TIMEVAL=0
9131 for gl_func in gettimeofday; do
9132 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9134 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9135 if eval \${$as_gl_Symbol+:} false; then :
9136 $as_echo_n "(cached) " >&6
9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9142 # include <sys/time.h>
9155 if ac_fn_c_try_compile "$LINENO"; then :
9156 eval "$as_gl_Symbol=yes"
9158 eval "$as_gl_Symbol=no"
9160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9162 eval ac_res=\$$as_gl_Symbol
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9164 $as_echo "$ac_res" >&6; }
9165 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
9166 cat >>confdefs.h <<_ACEOF
9167 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9170 eval ac_cv_have_decl_$gl_func=yes
9184 GNULIB_NL_LANGINFO=0;
9186 REPLACE_NL_LANGINFO=0;
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9196 $as_echo_n "checking for working fcntl.h... " >&6; }
9197 if ${gl_cv_header_working_fcntl_h+:} false; then :
9198 $as_echo_n "(cached) " >&6
9200 if test "$cross_compiling" = yes; then :
9201 gl_cv_header_working_fcntl_h=cross-compiling
9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h. */
9205 #include <sys/types.h>
9206 #include <sys/stat.h>
9213 #define O_NOFOLLOW 0
9215 static int const constants[] =
9217 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9218 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9225 int status = !constants;
9227 static char const sym[] = "conftest.sym";
9228 if (symlink (".", sym) != 0
9229 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
9234 static char const file[] = "confdefs.h";
9235 int fd = open (file, O_RDONLY | O_NOATIME);
9237 struct stat st0, st1;
9239 || fstat (fd, &st0) != 0
9241 || read (fd, &c, 1) != 1
9243 || stat (file, &st1) != 0
9244 || st0.st_atime != st1.st_atime)
9252 if ac_fn_c_try_run "$LINENO"; then :
9253 gl_cv_header_working_fcntl_h=yes
9256 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
9257 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
9258 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9259 *) gl_cv_header_working_fcntl_h='no';;
9262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9263 conftest.$ac_objext conftest.beam conftest.$ac_ext
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9268 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9270 case $gl_cv_header_working_fcntl_h in #(
9271 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
9275 cat >>confdefs.h <<_ACEOF
9276 #define HAVE_WORKING_O_NOATIME $ac_val
9280 case $gl_cv_header_working_fcntl_h in #(
9281 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
9285 cat >>confdefs.h <<_ACEOF
9286 #define HAVE_WORKING_O_NOFOLLOW $ac_val
9291 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
9292 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
9298 cat >>confdefs.h <<_ACEOF
9299 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
9305 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
9306 if ${ac_cv_gnu_library_2_1+:} false; then :
9307 $as_echo_n "(cached) " >&6
9309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h. */
9312 #include <features.h>
9313 #ifdef __GNU_LIBRARY__
9314 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9321 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
9322 ac_cv_gnu_library_2_1=yes
9324 ac_cv_gnu_library_2_1=no
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9332 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9334 GLIBC21="$ac_cv_gnu_library_2_1"
9338 if test "X$prefix" = "XNONE"; then
9339 acl_final_prefix="$ac_default_prefix"
9341 acl_final_prefix="$prefix"
9343 if test "X$exec_prefix" = "XNONE"; then
9344 acl_final_exec_prefix='${prefix}'
9346 acl_final_exec_prefix="$exec_prefix"
9348 acl_save_prefix="$prefix"
9349 prefix="$acl_final_prefix"
9350 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9351 prefix="$acl_save_prefix"
9354 # Check whether --with-gnu-ld was given.
9355 if test "${with_gnu_ld+set}" = set; then :
9356 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9361 # Prepare PATH_SEPARATOR.
9362 # The user is always right.
9363 if test "${PATH_SEPARATOR+set}" != set; then
9364 echo "#! /bin/sh" >conf$$.sh
9365 echo "exit 0" >>conf$$.sh
9367 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9375 if test "$GCC" = yes; then
9376 # Check if gcc -print-prog-name=ld gives a path.
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9378 $as_echo_n "checking for ld used by GCC... " >&6; }
9381 # gcc leaves a trailing carriage return which upsets mingw
9382 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9384 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9387 # Accept absolute paths.
9388 [\\/]* | [A-Za-z]:[\\/]*)
9389 re_direlt='/[^/][^/]*/\.\./'
9390 # Canonicalize the path of ld
9391 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9392 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9393 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9395 test -z "$LD" && LD="$ac_prog"
9398 # If it fails, then pretend we aren't using GCC.
9402 # If it is relative, then search for the first ld in PATH.
9406 elif test "$with_gnu_ld" = yes; then
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9408 $as_echo_n "checking for GNU ld... " >&6; }
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9411 $as_echo_n "checking for non-GNU ld... " >&6; }
9413 if ${acl_cv_path_LD+:} false; then :
9414 $as_echo_n "(cached) " >&6
9416 if test -z "$LD"; then
9417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9418 for ac_dir in $PATH; do
9419 test -z "$ac_dir" && ac_dir=.
9420 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9421 acl_cv_path_LD="$ac_dir/$ac_prog"
9422 # Check to see if the program is GNU ld. I'd rather use --version,
9423 # but apparently some GNU ld's only accept -v.
9424 # Break only if it was the GNU/non-GNU ld that we prefer.
9425 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9426 *GNU* | *'with BFD'*)
9427 test "$with_gnu_ld" != no && break ;;
9429 test "$with_gnu_ld" != yes && break ;;
9435 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9439 LD="$acl_cv_path_LD"
9440 if test -n "$LD"; then
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9442 $as_echo "$LD" >&6; }
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9445 $as_echo "no" >&6; }
9447 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9449 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9450 if ${acl_cv_prog_gnu_ld+:} false; then :
9451 $as_echo_n "(cached) " >&6
9453 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9454 case `$LD -v 2>&1 </dev/null` in
9455 *GNU* | *'with BFD'*)
9456 acl_cv_prog_gnu_ld=yes ;;
9458 acl_cv_prog_gnu_ld=no ;;
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9462 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9463 with_gnu_ld=$acl_cv_prog_gnu_ld
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9469 $as_echo_n "checking for shared library run path origin... " >&6; }
9470 if ${acl_cv_rpath+:} false; then :
9471 $as_echo_n "(cached) " >&6
9474 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9475 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9482 $as_echo "$acl_cv_rpath" >&6; }
9484 libext="$acl_cv_libext"
9485 shlibext="$acl_cv_shlibext"
9486 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9487 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9488 hardcode_direct="$acl_cv_hardcode_direct"
9489 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9490 # Check whether --enable-rpath was given.
9491 if test "${enable_rpath+set}" = set; then :
9492 enableval=$enable_rpath; :
9500 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9501 if test -n "$searchpath"; then
9502 acl_save_IFS="${IFS= }"; IFS=":"
9503 for searchdir in $searchpath; do
9504 if test -d "$searchdir"; then
9505 case "$searchdir" in
9506 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
9507 *) searchdir=`cd "$searchdir" && pwd`
9508 case "$searchdir" in
9509 */lib64 ) acl_libdirstem=lib64 ;;
9524 if test "$gl_use_threads" != no; then
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
9526 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
9527 if ${gl_cv_have_weak+:} false; then :
9528 $as_echo_n "(cached) " >&6
9531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h. */
9533 extern void xyzzy ();
9543 if ac_fn_c_try_link "$LINENO"; then :
9544 gl_cv_have_weak=maybe
9546 rm -f core conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext conftest.$ac_ext
9548 if test $gl_cv_have_weak = maybe; then
9549 if test "$cross_compiling" = yes; then :
9550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h. */
9553 Extensible Linking Format
9557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9558 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
9559 gl_cv_have_weak="guessing yes"
9561 gl_cv_have_weak="guessing no"
9567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9568 /* end confdefs.h. */
9574 return (fputs == NULL);
9577 if ac_fn_c_try_run "$LINENO"; then :
9582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9583 conftest.$ac_objext conftest.beam conftest.$ac_ext
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
9590 $as_echo "$gl_cv_have_weak" >&6; }
9591 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
9592 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
9593 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
9594 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9595 if test "x$ac_cv_header_pthread_h" = xyes; then :
9596 gl_have_pthread_h=yes
9598 gl_have_pthread_h=no
9602 if test "$gl_have_pthread_h" = yes; then
9603 # Other possible tests:
9604 # -lpthreads (FSU threads, PCthreads)
9607 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
9608 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
9609 # the second one only in libpthread, and lock.c needs it.
9610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611 /* end confdefs.h. */
9612 #include <pthread.h>
9616 pthread_mutex_lock((pthread_mutex_t*)0);
9617 pthread_mutexattr_init((pthread_mutexattr_t*)0);
9622 if ac_fn_c_try_link "$LINENO"; then :
9625 rm -f core conftest.err conftest.$ac_objext \
9626 conftest$ac_exeext conftest.$ac_ext
9627 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
9628 # since it is defined as a macro on OSF/1.)
9629 if test -n "$gl_have_pthread"; then
9630 # The program links fine without libpthread. But it may actually
9631 # need to link with libpthread in order to create multiple threads.
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
9633 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
9634 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
9635 $as_echo_n "(cached) " >&6
9637 ac_check_lib_save_LIBS=$LIBS
9638 LIBS="-lpthread $LIBS"
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h. */
9642 /* Override any GCC internal prototype to avoid an error.
9643 Use char because int might match the return type of a GCC
9644 builtin and then its argument prototype would still apply. */
9648 char pthread_kill ();
9652 return pthread_kill ();
9657 if ac_fn_c_try_link "$LINENO"; then :
9658 ac_cv_lib_pthread_pthread_kill=yes
9660 ac_cv_lib_pthread_pthread_kill=no
9662 rm -f core conftest.err conftest.$ac_objext \
9663 conftest$ac_exeext conftest.$ac_ext
9664 LIBS=$ac_check_lib_save_LIBS
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
9667 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
9668 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
9669 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
9670 # On Solaris and HP-UX, most pthread functions exist also in libc.
9671 # Therefore pthread_in_use() needs to actually try to create a
9672 # thread: pthread_create from libc will fail, whereas
9673 # pthread_create will actually create a thread.
9677 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
9684 # Some library is needed. Try libpthread and libc_r.
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
9686 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
9687 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
9688 $as_echo_n "(cached) " >&6
9690 ac_check_lib_save_LIBS=$LIBS
9691 LIBS="-lpthread $LIBS"
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9695 /* Override any GCC internal prototype to avoid an error.
9696 Use char because int might match the return type of a GCC
9697 builtin and then its argument prototype would still apply. */
9701 char pthread_kill ();
9705 return pthread_kill ();
9710 if ac_fn_c_try_link "$LINENO"; then :
9711 ac_cv_lib_pthread_pthread_kill=yes
9713 ac_cv_lib_pthread_pthread_kill=no
9715 rm -f core conftest.err conftest.$ac_objext \
9716 conftest$ac_exeext conftest.$ac_ext
9717 LIBS=$ac_check_lib_save_LIBS
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
9720 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
9721 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
9723 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
9724 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
9727 if test -z "$gl_have_pthread"; then
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
9730 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
9731 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
9732 $as_echo_n "(cached) " >&6
9734 ac_check_lib_save_LIBS=$LIBS
9736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737 /* end confdefs.h. */
9739 /* Override any GCC internal prototype to avoid an error.
9740 Use char because int might match the return type of a GCC
9741 builtin and then its argument prototype would still apply. */
9745 char pthread_kill ();
9749 return pthread_kill ();
9754 if ac_fn_c_try_link "$LINENO"; then :
9755 ac_cv_lib_c_r_pthread_kill=yes
9757 ac_cv_lib_c_r_pthread_kill=no
9759 rm -f core conftest.err conftest.$ac_objext \
9760 conftest$ac_exeext conftest.$ac_ext
9761 LIBS=$ac_check_lib_save_LIBS
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
9764 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
9765 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
9767 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
9768 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
9773 if test -n "$gl_have_pthread"; then
9774 gl_threads_api=posix
9776 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
9778 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
9779 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
9781 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
9790 if test -z "$gl_have_pthread"; then
9791 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
9792 gl_have_solaristhread=
9793 gl_save_LIBS="$LIBS"
9794 LIBS="$LIBS -lthread"
9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796 /* end confdefs.h. */
9809 if ac_fn_c_try_link "$LINENO"; then :
9810 gl_have_solaristhread=yes
9812 rm -f core conftest.err conftest.$ac_objext \
9813 conftest$ac_exeext conftest.$ac_ext
9814 LIBS="$gl_save_LIBS"
9815 if test -n "$gl_have_solaristhread"; then
9816 gl_threads_api=solaris
9818 LTLIBTHREAD=-lthread
9819 LIBMULTITHREAD="$LIBTHREAD"
9820 LTLIBMULTITHREAD="$LTLIBTHREAD"
9822 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
9824 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
9826 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
9834 if test "$gl_use_threads" = pth; then
9835 gl_save_CPPFLAGS="$CPPFLAGS"
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
9842 $as_echo_n "checking how to link with libpth... " >&6; }
9843 if ${ac_cv_libpth_libs+:} false; then :
9844 $as_echo_n "(cached) " >&6
9852 acl_save_prefix="$prefix"
9853 prefix="$acl_final_prefix"
9854 acl_save_exec_prefix="$exec_prefix"
9855 exec_prefix="$acl_final_exec_prefix"
9857 eval additional_includedir=\"$includedir\"
9858 eval additional_libdir=\"$libdir\"
9860 exec_prefix="$acl_save_exec_prefix"
9861 prefix="$acl_save_prefix"
9864 # Check whether --with-libpth-prefix was given.
9865 if test "${with_libpth_prefix+set}" = set; then :
9866 withval=$with_libpth_prefix;
9867 if test "X$withval" = "Xno"; then
9870 if test "X$withval" = "X"; then
9872 acl_save_prefix="$prefix"
9873 prefix="$acl_final_prefix"
9874 acl_save_exec_prefix="$exec_prefix"
9875 exec_prefix="$acl_final_exec_prefix"
9877 eval additional_includedir=\"$includedir\"
9878 eval additional_libdir=\"$libdir\"
9880 exec_prefix="$acl_save_exec_prefix"
9881 prefix="$acl_save_prefix"
9884 additional_includedir="$withval/include"
9885 additional_libdir="$withval/$acl_libdirstem"
9896 names_already_handled=
9897 names_next_round='pth '
9898 while test -n "$names_next_round"; do
9899 names_this_round="$names_next_round"
9901 for name in $names_this_round; do
9903 for n in $names_already_handled; do
9904 if test "$n" = "$name"; then
9909 if test -z "$already_handled"; then
9910 names_already_handled="$names_already_handled $name"
9911 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9912 eval value=\"\$HAVE_LIB$uppername\"
9913 if test -n "$value"; then
9914 if test "$value" = yes; then
9915 eval value=\"\$LIB$uppername\"
9916 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
9917 eval value=\"\$LTLIB$uppername\"
9918 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
9927 if test $use_additional = yes; then
9928 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9929 found_dir="$additional_libdir"
9930 found_so="$additional_libdir/lib$name.$shlibext"
9931 if test -f "$additional_libdir/lib$name.la"; then
9932 found_la="$additional_libdir/lib$name.la"
9935 if test -f "$additional_libdir/lib$name.$libext"; then
9936 found_dir="$additional_libdir"
9937 found_a="$additional_libdir/lib$name.$libext"
9938 if test -f "$additional_libdir/lib$name.la"; then
9939 found_la="$additional_libdir/lib$name.la"
9944 if test "X$found_dir" = "X"; then
9945 for x in $LDFLAGS $LTLIBPTH; do
9947 acl_save_prefix="$prefix"
9948 prefix="$acl_final_prefix"
9949 acl_save_exec_prefix="$exec_prefix"
9950 exec_prefix="$acl_final_exec_prefix"
9952 exec_prefix="$acl_save_exec_prefix"
9953 prefix="$acl_save_prefix"
9957 dir=`echo "X$x" | sed -e 's/^X-L//'`
9958 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9960 found_so="$dir/lib$name.$shlibext"
9961 if test -f "$dir/lib$name.la"; then
9962 found_la="$dir/lib$name.la"
9965 if test -f "$dir/lib$name.$libext"; then
9967 found_a="$dir/lib$name.$libext"
9968 if test -f "$dir/lib$name.la"; then
9969 found_la="$dir/lib$name.la"
9975 if test "X$found_dir" != "X"; then
9980 if test "X$found_dir" != "X"; then
9981 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
9982 if test "X$found_so" != "X"; then
9983 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
9984 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9987 for x in $ltrpathdirs; do
9988 if test "X$x" = "X$found_dir"; then
9993 if test -z "$haveit"; then
9994 ltrpathdirs="$ltrpathdirs $found_dir"
9996 if test "$hardcode_direct" = yes; then
9997 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9999 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10000 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10002 for x in $rpathdirs; do
10003 if test "X$x" = "X$found_dir"; then
10008 if test -z "$haveit"; then
10009 rpathdirs="$rpathdirs $found_dir"
10013 for x in $LDFLAGS $LIBPTH; do
10015 acl_save_prefix="$prefix"
10016 prefix="$acl_final_prefix"
10017 acl_save_exec_prefix="$exec_prefix"
10018 exec_prefix="$acl_final_exec_prefix"
10020 exec_prefix="$acl_save_exec_prefix"
10021 prefix="$acl_save_prefix"
10023 if test "X$x" = "X-L$found_dir"; then
10028 if test -z "$haveit"; then
10029 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
10031 if test "$hardcode_minus_L" != no; then
10032 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10034 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
10040 if test "X$found_a" != "X"; then
10041 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
10043 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
10046 additional_includedir=
10047 case "$found_dir" in
10048 */$acl_libdirstem | */$acl_libdirstem/)
10049 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10050 additional_includedir="$basedir/include"
10053 if test "X$additional_includedir" != "X"; then
10054 if test "X$additional_includedir" != "X/usr/include"; then
10056 if test "X$additional_includedir" = "X/usr/local/include"; then
10057 if test -n "$GCC"; then
10059 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10063 if test -z "$haveit"; then
10064 for x in $CPPFLAGS $INCPTH; do
10066 acl_save_prefix="$prefix"
10067 prefix="$acl_final_prefix"
10068 acl_save_exec_prefix="$exec_prefix"
10069 exec_prefix="$acl_final_exec_prefix"
10071 exec_prefix="$acl_save_exec_prefix"
10072 prefix="$acl_save_prefix"
10074 if test "X$x" = "X-I$additional_includedir"; then
10079 if test -z "$haveit"; then
10080 if test -d "$additional_includedir"; then
10081 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
10087 if test -n "$found_la"; then
10088 save_libdir="$libdir"
10089 case "$found_la" in
10090 */* | *\\*) . "$found_la" ;;
10091 *) . "./$found_la" ;;
10093 libdir="$save_libdir"
10094 for dep in $dependency_libs; do
10097 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10098 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
10100 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
10101 if test -n "$GCC"; then
10103 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10107 if test -z "$haveit"; then
10109 for x in $LDFLAGS $LIBPTH; do
10111 acl_save_prefix="$prefix"
10112 prefix="$acl_final_prefix"
10113 acl_save_exec_prefix="$exec_prefix"
10114 exec_prefix="$acl_final_exec_prefix"
10116 exec_prefix="$acl_save_exec_prefix"
10117 prefix="$acl_save_prefix"
10119 if test "X$x" = "X-L$additional_libdir"; then
10124 if test -z "$haveit"; then
10125 if test -d "$additional_libdir"; then
10126 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
10130 for x in $LDFLAGS $LTLIBPTH; do
10132 acl_save_prefix="$prefix"
10133 prefix="$acl_final_prefix"
10134 acl_save_exec_prefix="$exec_prefix"
10135 exec_prefix="$acl_final_exec_prefix"
10137 exec_prefix="$acl_save_exec_prefix"
10138 prefix="$acl_save_prefix"
10140 if test "X$x" = "X-L$additional_libdir"; then
10145 if test -z "$haveit"; then
10146 if test -d "$additional_libdir"; then
10147 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
10154 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10155 if test "$enable_rpath" != no; then
10157 for x in $rpathdirs; do
10158 if test "X$x" = "X$dir"; then
10163 if test -z "$haveit"; then
10164 rpathdirs="$rpathdirs $dir"
10167 for x in $ltrpathdirs; do
10168 if test "X$x" = "X$dir"; then
10173 if test -z "$haveit"; then
10174 ltrpathdirs="$ltrpathdirs $dir"
10179 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10182 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10185 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
10186 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
10192 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
10193 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
10199 if test "X$rpathdirs" != "X"; then
10200 if test -n "$hardcode_libdir_separator"; then
10202 for found_dir in $rpathdirs; do
10203 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10205 acl_save_libdir="$libdir"
10207 eval flag=\"$hardcode_libdir_flag_spec\"
10208 libdir="$acl_save_libdir"
10209 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
10211 for found_dir in $rpathdirs; do
10212 acl_save_libdir="$libdir"
10213 libdir="$found_dir"
10214 eval flag=\"$hardcode_libdir_flag_spec\"
10215 libdir="$acl_save_libdir"
10216 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
10220 if test "X$ltrpathdirs" != "X"; then
10221 for found_dir in $ltrpathdirs; do
10222 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
10226 ac_cv_libpth_libs="$LIBPTH"
10227 ac_cv_libpth_ltlibs="$LTLIBPTH"
10228 ac_cv_libpth_cppflags="$INCPTH"
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
10232 $as_echo "$ac_cv_libpth_libs" >&6; }
10233 LIBPTH="$ac_cv_libpth_libs"
10234 LTLIBPTH="$ac_cv_libpth_ltlibs"
10235 INCPTH="$ac_cv_libpth_cppflags"
10237 for element in $INCPTH; do
10239 for x in $CPPFLAGS; do
10241 acl_save_prefix="$prefix"
10242 prefix="$acl_final_prefix"
10243 acl_save_exec_prefix="$exec_prefix"
10244 exec_prefix="$acl_final_exec_prefix"
10246 exec_prefix="$acl_save_exec_prefix"
10247 prefix="$acl_save_prefix"
10249 if test "X$x" = "X$element"; then
10254 if test -z "$haveit"; then
10255 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10266 gl_save_LIBS="$LIBS"
10268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10269 /* end confdefs.h. */
10279 if ac_fn_c_try_link "$LINENO"; then :
10282 rm -f core conftest.err conftest.$ac_objext \
10283 conftest$ac_exeext conftest.$ac_ext
10284 LIBS="$gl_save_LIBS"
10285 if test -n "$gl_have_pth"; then
10287 LIBTHREAD="$LIBPTH"
10288 LTLIBTHREAD="$LTLIBPTH"
10289 LIBMULTITHREAD="$LIBTHREAD"
10290 LTLIBMULTITHREAD="$LTLIBTHREAD"
10292 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
10294 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
10295 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
10297 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
10304 CPPFLAGS="$gl_save_CPPFLAGS"
10307 if test -z "$gl_have_pthread"; then
10308 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
10309 if { case "$host_os" in
10314 gl_threads_api=win32
10316 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
10323 $as_echo_n "checking for multithread API to use... " >&6; }
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
10325 $as_echo "$gl_threads_api" >&6; }
10347 GNULIB_UTIMENSAT=0;
10361 REPLACE_FUTIMENS=0;
10367 REPLACE_UTIMENSAT=0;
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10375 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10376 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
10377 $as_echo_n "(cached) " >&6
10379 rm -f conftest.sym conftest.file
10380 echo >conftest.file
10381 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10382 if test "$cross_compiling" = yes; then :
10383 ac_cv_func_lstat_dereferences_slashed_symlink=no
10385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h. */
10387 $ac_includes_default
10392 /* Linux will dereference the symlink and fail, as required by POSIX.
10393 That is better in the sense that it means we will not
10394 have to compile and use the lstat wrapper. */
10395 return lstat ("conftest.sym/", &sbuf) == 0;
10400 if ac_fn_c_try_run "$LINENO"; then :
10401 ac_cv_func_lstat_dereferences_slashed_symlink=yes
10403 ac_cv_func_lstat_dereferences_slashed_symlink=no
10405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10406 conftest.$ac_objext conftest.beam conftest.$ac_ext
10410 # If the `ln -s' command failed, then we probably don't even
10411 # have an lstat function.
10412 ac_cv_func_lstat_dereferences_slashed_symlink=no
10414 rm -f conftest.sym conftest.file
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10418 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10420 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10422 cat >>confdefs.h <<_ACEOF
10423 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10427 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
10436 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
10443 GNULIB_CALLOC_POSIX=0;
10444 GNULIB_CANONICALIZE_FILE_NAME=0;
10445 GNULIB_GETLOADAVG=0;
10446 GNULIB_GETSUBOPT=0;
10448 GNULIB_MALLOC_POSIX=0;
10451 GNULIB_MKOSTEMPS=0;
10457 GNULIB_REALLOC_POSIX=0;
10468 HAVE_CANONICALIZE_FILE_NAME=1;
10469 HAVE_DECL_GETLOADAVG=1;
10485 HAVE_STRUCT_RANDOM_DATA=1;
10486 HAVE_SYS_LOADAVG_H=0;
10490 REPLACE_CANONICALIZE_FILE_NAME=0;
10495 REPLACE_REALPATH=0;
10498 REPLACE_UNSETENV=0;
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
10502 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
10503 if ${gl_cv_func_malloc_posix+:} false; then :
10504 $as_echo_n "(cached) " >&6
10507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h. */
10513 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
10521 if ac_fn_c_try_compile "$LINENO"; then :
10522 gl_cv_func_malloc_posix=yes
10524 gl_cv_func_malloc_posix=no
10526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
10530 $as_echo "$gl_cv_func_malloc_posix" >&6; }
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
10535 $as_echo_n "checking for mbstate_t... " >&6; }
10536 if ${ac_cv_type_mbstate_t+:} false; then :
10537 $as_echo_n "(cached) " >&6
10539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540 /* end confdefs.h. */
10541 $ac_includes_default
10542 # include <wchar.h>
10546 mbstate_t x; return sizeof x;
10551 if ac_fn_c_try_compile "$LINENO"; then :
10552 ac_cv_type_mbstate_t=yes
10554 ac_cv_type_mbstate_t=no
10556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
10559 $as_echo "$ac_cv_type_mbstate_t" >&6; }
10560 if test $ac_cv_type_mbstate_t = yes; then
10562 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
10566 $as_echo "#define mbstate_t int" >>confdefs.h
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
10584 $as_echo_n "checking for a traditional japanese locale... " >&6; }
10585 if ${gt_cv_locale_ja+:} false; then :
10586 $as_echo_n "(cached) " >&6
10589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h. */
10592 #include <locale.h>
10594 #if HAVE_LANGINFO_CODESET
10595 # include <langinfo.h>
10597 #include <stdlib.h>
10598 #include <string.h>
10604 /* Check whether the given locale name is recognized by the system. */
10605 if (setlocale (LC_ALL, "") == NULL) return 1;
10606 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10607 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10608 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10609 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10610 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10611 some unit tests fail. */
10612 #if HAVE_LANGINFO_CODESET
10614 const char *cs = nl_langinfo (CODESET);
10615 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10620 /* On Cygwin, avoid locale names without encoding suffix, because the
10621 locale_charset() function relies on the encoding suffix. Note that
10622 LC_ALL is set on the command line. */
10623 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10625 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
10626 on Cygwin 1.5.x. */
10627 if (MB_CUR_MAX == 1)
10629 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10630 This excludes the UTF-8 encoding. */
10631 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10632 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10633 for (p = buf; *p != '\0'; p++)
10634 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10641 (eval $ac_link) 2>&5
10643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10644 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10645 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10646 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10647 # configure script would override the LC_ALL setting. Likewise for
10648 # LC_CTYPE, which is also set at the beginning of the configure script.
10649 # Test for the AIX locale name.
10650 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10651 gt_cv_locale_ja=ja_JP
10653 # Test for the locale name with explicit encoding suffix.
10654 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10655 gt_cv_locale_ja=ja_JP.EUC-JP
10657 # Test for the HP-UX, OSF/1, NetBSD locale name.
10658 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10659 gt_cv_locale_ja=ja_JP.eucJP
10661 # Test for the IRIX, FreeBSD locale name.
10662 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10663 gt_cv_locale_ja=ja_JP.EUC
10665 # Test for the Solaris 7 locale name.
10666 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10669 # Special test for NetBSD 1.6.
10670 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
10671 gt_cv_locale_ja=ja_JP.eucJP
10674 gt_cv_locale_ja=none
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
10686 $as_echo "$gt_cv_locale_ja" >&6; }
10687 LOCALE_JA=$gt_cv_locale_ja
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
10694 $as_echo_n "checking for a transitional chinese locale... " >&6; }
10695 if ${gt_cv_locale_zh_CN+:} false; then :
10696 $as_echo_n "(cached) " >&6
10699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10700 /* end confdefs.h. */
10702 #include <locale.h>
10703 #include <stdlib.h>
10705 #if HAVE_LANGINFO_CODESET
10706 # include <langinfo.h>
10708 #include <stdlib.h>
10709 #include <string.h>
10715 /* Check whether the given locale name is recognized by the system. */
10716 if (setlocale (LC_ALL, "") == NULL) return 1;
10717 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10718 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10719 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10720 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10721 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10722 some unit tests fail. */
10723 #if HAVE_LANGINFO_CODESET
10725 const char *cs = nl_langinfo (CODESET);
10726 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10731 /* On Cygwin, avoid locale names without encoding suffix, because the
10732 locale_charset() function relies on the encoding suffix. Note that
10733 LC_ALL is set on the command line. */
10734 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10736 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10737 This excludes the UTF-8 encoding. */
10738 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10739 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10740 for (p = buf; *p != '\0'; p++)
10741 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10743 /* Check whether a typical GB18030 multibyte sequence is recognized as a
10744 single wide character. This excludes the GB2312 and GBK encodings. */
10745 if (mblen ("\203\062\332\066", 5) != 4)
10751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10752 (eval $ac_link) 2>&5
10754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10755 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10756 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10757 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10758 # configure script would override the LC_ALL setting. Likewise for
10759 # LC_CTYPE, which is also set at the beginning of the configure script.
10760 # Test for the locale name without encoding suffix.
10761 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10762 gt_cv_locale_zh_CN=zh_CN
10764 # Test for the locale name with explicit encoding suffix.
10765 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10766 gt_cv_locale_zh_CN=zh_CN.GB18030
10769 gt_cv_locale_zh_CN=none
10773 # If there was a link error, due to mblen(), the system is so old that
10774 # it certainly doesn't have a chinese locale.
10775 gt_cv_locale_zh_CN=none
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
10781 $as_echo "$gt_cv_locale_zh_CN" >&6; }
10782 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
10788 $as_echo_n "checking for a french Unicode locale... " >&6; }
10789 if ${gt_cv_locale_fr_utf8+:} false; then :
10790 $as_echo_n "(cached) " >&6
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10796 #include <locale.h>
10798 #if HAVE_LANGINFO_CODESET
10799 # include <langinfo.h>
10801 #include <stdlib.h>
10802 #include <string.h>
10806 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
10807 imitates locale dependent behaviour by looking at the environment
10808 variables, and all locales use the UTF-8 encoding. */
10809 #if !(defined __BEOS__ || defined __HAIKU__)
10810 /* Check whether the given locale name is recognized by the system. */
10811 if (setlocale (LC_ALL, "") == NULL) return 1;
10812 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10813 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10814 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10815 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10816 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10817 some unit tests fail. */
10818 # if HAVE_LANGINFO_CODESET
10820 const char *cs = nl_langinfo (CODESET);
10821 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10826 /* On Cygwin, avoid locale names without encoding suffix, because the
10827 locale_charset() function relies on the encoding suffix. Note that
10828 LC_ALL is set on the command line. */
10829 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10831 /* Check whether in the abbreviation of the second month, the second
10832 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
10833 two bytes long, with UTF-8 encoding. */
10834 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10835 if (strftime (buf, sizeof (buf), "%b", &t) < 4
10836 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
10839 /* Check whether the decimal separator is a comma.
10840 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10841 are nl_langinfo(RADIXCHAR) are both ".". */
10842 if (localeconv () ->decimal_point[0] != ',') return 1;
10847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10848 (eval $ac_link) 2>&5
10850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10851 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10852 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10853 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10854 # configure script would override the LC_ALL setting. Likewise for
10855 # LC_CTYPE, which is also set at the beginning of the configure script.
10856 # Test for the usual locale name.
10857 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10858 gt_cv_locale_fr_utf8=fr_FR
10860 # Test for the locale name with explicit encoding suffix.
10861 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10862 gt_cv_locale_fr_utf8=fr_FR.UTF-8
10864 # Test for the Solaris 7 locale name.
10865 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10866 gt_cv_locale_fr_utf8=fr.UTF-8
10869 gt_cv_locale_fr_utf8=none
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
10878 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
10879 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
10897 GNULIB_RAWMEMCHR=0;
10900 GNULIB_STRCHRNUL=0;
10908 GNULIB_STRCASESTR=0;
10915 GNULIB_MBSCASECMP=0;
10916 GNULIB_MBSNCASECMP=0;
10917 GNULIB_MBSPCASECMP=0;
10918 GNULIB_MBSCASESTR=0;
10925 GNULIB_STRSIGNAL=0;
10926 GNULIB_STRVERSCMP=0;
10929 HAVE_DECL_MEMMEM=1;
10931 HAVE_DECL_MEMRCHR=1;
10936 HAVE_DECL_STRDUP=1;
10937 HAVE_DECL_STRNDUP=1;
10938 HAVE_DECL_STRNLEN=1;
10942 HAVE_DECL_STRTOK_R=1;
10943 HAVE_DECL_STRSIGNAL=1;
10950 REPLACE_STRCASESTR=0;
10951 REPLACE_STRERROR=0;
10955 REPLACE_STRSIGNAL=0;
10956 REPLACE_STRTOK_R=0;
10957 UNDEFINE_STRTOK_R=0;
10971 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
10972 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
10973 # irrelevant for anonymous mappings.
10974 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10975 if test "x$ac_cv_func_mmap" = xyes; then :
10982 # Try to allow MAP_ANONYMOUS.
10983 gl_have_mmap_anonymous=no
10984 if test $gl_have_mmap = yes; then
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
10986 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
10987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h. */
10990 #include <sys/mman.h>
10991 #ifdef MAP_ANONYMOUS
10992 I cant identify this map.
10996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10997 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
10998 gl_have_mmap_anonymous=yes
11002 if test $gl_have_mmap_anonymous != yes; then
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11006 #include <sys/mman.h>
11008 I cant identify this map.
11012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11013 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
11015 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
11017 gl_have_mmap_anonymous=yes
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
11023 $as_echo "$gl_have_mmap_anonymous" >&6; }
11024 if test $gl_have_mmap_anonymous = yes; then
11026 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
11054 if test $ac_cv_func_memchr = yes; then
11055 # Detect platform-specific bugs in some versions of glibc:
11056 # memchr should not dereference anything with length 0
11057 # http://bugzilla.redhat.com/499689
11058 # memchr should not dereference overestimated length after a match
11059 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
11060 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
11061 # Assume that memchr works on platforms that lack mprotect.
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
11063 $as_echo_n "checking whether memchr works... " >&6; }
11064 if ${gl_cv_func_memchr_works+:} false; then :
11065 $as_echo_n "(cached) " >&6
11067 if test "$cross_compiling" = yes; then :
11068 gl_cv_func_memchr_works="guessing no"
11070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11073 #include <string.h>
11074 #if HAVE_SYS_MMAN_H
11075 # include <fcntl.h>
11076 # include <unistd.h>
11077 # include <sys/types.h>
11078 # include <sys/mman.h>
11080 # define MAP_FILE 0
11088 char *fence = NULL;
11089 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
11090 # if HAVE_MAP_ANONYMOUS
11091 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
11093 # else /* !HAVE_MAP_ANONYMOUS */
11094 const int flags = MAP_FILE | MAP_PRIVATE;
11095 int fd = open ("/dev/zero", O_RDONLY, 0666);
11099 int pagesize = getpagesize ();
11101 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
11103 if (two_pages != (char *)(-1)
11104 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
11105 fence = two_pages + pagesize;
11110 if (memchr (fence, 0, 0))
11112 strcpy (fence - 9, "12345678");
11113 if (memchr (fence - 9, 0, 79) != fence - 1)
11122 if ac_fn_c_try_run "$LINENO"; then :
11123 gl_cv_func_memchr_works=yes
11125 gl_cv_func_memchr_works=no
11127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11128 conftest.$ac_objext conftest.beam conftest.$ac_ext
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
11133 $as_echo "$gl_cv_func_memchr_works" >&6; }
11134 if test "$gl_cv_func_memchr_works" != yes; then
11140 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
11149 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
11152 for ac_header in bp-sym.h
11154 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
11155 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
11156 cat >>confdefs.h <<_ACEOF
11157 #define HAVE_BP_SYM_H 1
11168 gl_cv_c_multiarch=no
11169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170 /* end confdefs.h. */
11171 #ifndef __APPLE_CC__
11172 not a universal capable compiler
11177 if ac_fn_c_try_compile "$LINENO"; then :
11181 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
11182 if test -n "$prev"; then
11184 i?86 | x86_64 | ppc | ppc64)
11185 if test -z "$arch" || test "$arch" = "$word"; then
11188 gl_cv_c_multiarch=yes
11194 if test "x$word" = "x-arch"; then
11201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11202 if test $gl_cv_c_multiarch = yes; then
11204 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11206 APPLE_UNIVERSAL_BUILD=1
11208 APPLE_UNIVERSAL_BUILD=0
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external symbol _system_configuration" >&5
11218 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
11219 if ${gl_cv_var__system_configuration+:} false; then :
11220 $as_echo_n "(cached) " >&6
11222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11223 /* end confdefs.h. */
11224 #include <sys/systemcfg.h>
11229 double x = _system_configuration.physmem;
11230 if (x > 0.0) return 0;
11235 if ac_fn_c_try_link "$LINENO"; then :
11236 gl_cv_var__system_configuration=yes
11238 gl_cv_var__system_configuration=no
11240 rm -f core conftest.err conftest.$ac_objext \
11241 conftest$ac_exeext conftest.$ac_ext
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var__system_configuration" >&5
11244 $as_echo "$gl_cv_var__system_configuration" >&6; }
11246 if test $gl_cv_var__system_configuration = yes; then
11248 $as_echo "#define HAVE__SYSTEM_CONFIGURATION 1" >>confdefs.h
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
11275 $as_echo_n "checking for ssize_t... " >&6; }
11276 if ${gt_cv_ssize_t+:} false; then :
11277 $as_echo_n "(cached) " >&6
11279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11281 #include <sys/types.h>
11285 int x = sizeof (ssize_t *) + sizeof (ssize_t);
11291 if ac_fn_c_try_compile "$LINENO"; then :
11296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
11299 $as_echo "$gt_cv_ssize_t" >&6; }
11300 if test $gt_cv_ssize_t = no; then
11302 $as_echo "#define ssize_t int" >>confdefs.h
11307 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11308 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
11314 cat >>confdefs.h <<_ACEOF
11315 #define HAVE_DECL_SNPRINTF $ac_have_decl
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system is Windows or MSDOS" >&5
11321 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
11322 if ${ac_cv_win_or_dos+:} false; then :
11323 $as_echo_n "(cached) " >&6
11326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11327 /* end confdefs.h. */
11333 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
11334 neither MSDOS nor Windows
11340 if ac_fn_c_try_compile "$LINENO"; then :
11341 ac_cv_win_or_dos=yes
11343 ac_cv_win_or_dos=no
11345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_win_or_dos" >&5
11349 $as_echo "$ac_cv_win_or_dos" >&6; }
11351 if test x"$ac_cv_win_or_dos" = xyes; then
11352 ac_fs_accepts_drive_letter_prefix=1
11353 ac_fs_backslash_is_file_name_separator=1
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether drive letter can start relative path" >&5
11355 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
11356 if ${ac_cv_drive_letter_can_be_relative+:} false; then :
11357 $as_echo_n "(cached) " >&6
11360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h. */
11367 #if defined __CYGWIN__
11368 drive letters are always absolute
11374 if ac_fn_c_try_compile "$LINENO"; then :
11375 ac_cv_drive_letter_can_be_relative=yes
11377 ac_cv_drive_letter_can_be_relative=no
11379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_drive_letter_can_be_relative" >&5
11383 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
11384 if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
11385 ac_fs_drive_letter_can_be_relative=1
11387 ac_fs_drive_letter_can_be_relative=0
11390 ac_fs_accepts_drive_letter_prefix=0
11391 ac_fs_backslash_is_file_name_separator=0
11392 ac_fs_drive_letter_can_be_relative=0
11396 cat >>confdefs.h <<_ACEOF
11397 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
11404 cat >>confdefs.h <<_ACEOF
11405 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
11410 cat >>confdefs.h <<_ACEOF
11411 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11416 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11417 if ${ac_cv_header_stdbool_h+:} false; then :
11418 $as_echo_n "(cached) " >&6
11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h. */
11423 #include <stdbool.h>
11425 "error: bool is not defined"
11428 "error: false is not defined"
11431 "error: false is not 0"
11434 "error: true is not defined"
11437 "error: true is not 1"
11439 #ifndef __bool_true_false_are_defined
11440 "error: __bool_true_false_are_defined is not defined"
11443 struct s { _Bool s: 1; _Bool t; } s;
11445 char a[true == 1 ? 1 : -1];
11446 char b[false == 0 ? 1 : -1];
11447 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11448 char d[(bool) 0.5 == true ? 1 : -1];
11449 /* See body of main program for 'e'. */
11450 char f[(_Bool) 0.0 == false ? 1 : -1];
11452 char h[sizeof (_Bool)];
11453 char i[sizeof s.t];
11454 enum { j = false, k = true, l = false * true, m = true * 256 };
11455 /* The following fails for
11456 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11458 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11459 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11460 /* Catch a bug in an HP-UX C compiler. See
11461 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11462 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11474 /* Refer to every declared value, to avoid compiler optimizations. */
11475 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11476 + !m + !n + !o + !p + !q + !pq);
11482 if ac_fn_c_try_compile "$LINENO"; then :
11483 ac_cv_header_stdbool_h=yes
11485 ac_cv_header_stdbool_h=no
11487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11490 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11491 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11492 if test "x$ac_cv_type__Bool" = xyes; then :
11494 cat >>confdefs.h <<_ACEOF
11495 #define HAVE__BOOL 1
11501 if test $ac_cv_header_stdbool_h = yes; then
11503 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11513 $as_echo_n "checking for wchar_t... " >&6; }
11514 if ${gt_cv_c_wchar_t+:} false; then :
11515 $as_echo_n "(cached) " >&6
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h. */
11519 #include <stddef.h>
11520 wchar_t foo = (wchar_t)'\0';
11529 if ac_fn_c_try_compile "$LINENO"; then :
11530 gt_cv_c_wchar_t=yes
11534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11537 $as_echo "$gt_cv_c_wchar_t" >&6; }
11538 if test $gt_cv_c_wchar_t = yes; then
11540 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
11551 $as_echo_n "checking for long long int... " >&6; }
11552 if ${ac_cv_type_long_long_int+:} false; then :
11553 $as_echo_n "(cached) " >&6
11555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11556 /* end confdefs.h. */
11558 /* For now, do not test the preprocessor; as of 2007 there are too many
11559 implementations with broken preprocessors. Perhaps this can
11560 be revisited in 2012. In the meantime, code should not expect
11561 #if to work with literals wider than 32 bits. */
11562 /* Test literals. */
11563 long long int ll = 9223372036854775807ll;
11564 long long int nll = -9223372036854775807LL;
11565 unsigned long long int ull = 18446744073709551615ULL;
11566 /* Test constant expressions. */
11567 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11569 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11575 /* Test availability of runtime routines for shift and division. */
11576 long long int llmax = 9223372036854775807ll;
11577 unsigned long long int ullmax = 18446744073709551615ull;
11578 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11579 | (llmax / ll) | (llmax % ll)
11580 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11581 | (ullmax / ull) | (ullmax % ull));
11587 if ac_fn_c_try_link "$LINENO"; then :
11588 if test "$cross_compiling" = yes; then :
11589 ac_cv_type_long_long_int=yes
11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h. */
11593 #include <limits.h>
11596 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
11597 # define LLONG_MAX (HALF - 1 + HALF)
11602 long long int n = 1;
11606 long long int m = n << i;
11609 if (LLONG_MAX / 2 < m)
11617 if ac_fn_c_try_run "$LINENO"; then :
11618 ac_cv_type_long_long_int=yes
11620 ac_cv_type_long_long_int=no
11622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11623 conftest.$ac_objext conftest.beam conftest.$ac_ext
11627 ac_cv_type_long_long_int=no
11629 rm -f core conftest.err conftest.$ac_objext \
11630 conftest$ac_exeext conftest.$ac_ext
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
11633 $as_echo "$ac_cv_type_long_long_int" >&6; }
11634 if test $ac_cv_type_long_long_int = yes; then
11636 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
11642 $as_echo_n "checking for unsigned long long int... " >&6; }
11643 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
11644 $as_echo_n "(cached) " >&6
11646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647 /* end confdefs.h. */
11649 /* For now, do not test the preprocessor; as of 2007 there are too many
11650 implementations with broken preprocessors. Perhaps this can
11651 be revisited in 2012. In the meantime, code should not expect
11652 #if to work with literals wider than 32 bits. */
11653 /* Test literals. */
11654 long long int ll = 9223372036854775807ll;
11655 long long int nll = -9223372036854775807LL;
11656 unsigned long long int ull = 18446744073709551615ULL;
11657 /* Test constant expressions. */
11658 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11660 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11666 /* Test availability of runtime routines for shift and division. */
11667 long long int llmax = 9223372036854775807ll;
11668 unsigned long long int ullmax = 18446744073709551615ull;
11669 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11670 | (llmax / ll) | (llmax % ll)
11671 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11672 | (ullmax / ull) | (ullmax % ull));
11678 if ac_fn_c_try_link "$LINENO"; then :
11679 ac_cv_type_unsigned_long_long_int=yes
11681 ac_cv_type_unsigned_long_long_int=no
11683 rm -f core conftest.err conftest.$ac_objext \
11684 conftest$ac_exeext conftest.$ac_ext
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
11687 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
11688 if test $ac_cv_type_unsigned_long_long_int = yes; then
11690 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
11706 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
11707 if ${gl_cv_prog_as_underscore+:} false; then :
11708 $as_echo_n "(cached) " >&6
11710 cat > conftest.c <<EOF
11712 extern "C" int foo (void);
11714 int foo(void) { return 0; }
11716 # Look for the assembly language name in the .s file.
11717 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
11718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11719 (eval $ac_try) 2>&5
11721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11722 test $ac_status = 0; }; } >/dev/null 2>&1
11723 if grep _foo conftest.s >/dev/null ; then
11724 gl_cv_prog_as_underscore=yes
11726 gl_cv_prog_as_underscore=no
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
11732 $as_echo "$gl_cv_prog_as_underscore" >&6; }
11733 if test $gl_cv_prog_as_underscore = yes; then
11734 USER_LABEL_PREFIX=_
11739 cat >>confdefs.h <<_ACEOF
11740 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
11743 ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
11776 if test $gl_cv_have_include_next = yes; then
11777 gl_cv_next_string_h='<'string.h'>'
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
11780 $as_echo_n "checking absolute name of <string.h>... " >&6; }
11781 if ${gl_cv_next_string_h+:} false; then :
11782 $as_echo_n "(cached) " >&6
11785 if test $ac_cv_header_string_h = yes; then
11786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11787 /* end confdefs.h. */
11788 #include <string.h>
11792 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11793 *) gl_absname_cpp="$ac_cpp" ;;
11795 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11796 sed -n '\#/string.h#{
11797 s#.*"\(.*/string.h\)".*#\1#
11803 gl_cv_next_string_h='<'string.h'>'
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
11808 $as_echo "$gl_cv_next_string_h" >&6; }
11810 NEXT_STRING_H=$gl_cv_next_string_h
11812 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11813 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11814 gl_next_as_first_directive='<'string.h'>'
11816 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11817 gl_next_as_first_directive=$gl_cv_next_string_h
11819 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
11825 for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
11826 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11828 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11829 if eval \${$as_gl_Symbol+:} false; then :
11830 $as_echo_n "(cached) " >&6
11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833 /* end confdefs.h. */
11834 #include <string.h>
11845 if ac_fn_c_try_compile "$LINENO"; then :
11846 eval "$as_gl_Symbol=yes"
11848 eval "$as_gl_Symbol=no"
11850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11852 eval ac_res=\$$as_gl_Symbol
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11854 $as_echo "$ac_res" >&6; }
11855 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
11856 cat >>confdefs.h <<_ACEOF
11857 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11860 eval ac_cv_have_decl_$gl_func=yes
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11866 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11867 if ${ac_cv_header_stat_broken+:} false; then :
11868 $as_echo_n "(cached) " >&6
11870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11871 /* end confdefs.h. */
11872 #include <sys/types.h>
11873 #include <sys/stat.h>
11875 #if defined S_ISBLK && defined S_IFDIR
11876 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11879 #if defined S_ISBLK && defined S_IFCHR
11880 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11883 #if defined S_ISLNK && defined S_IFREG
11884 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11887 #if defined S_ISSOCK && defined S_IFREG
11888 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11892 if ac_fn_c_try_compile "$LINENO"; then :
11893 ac_cv_header_stat_broken=no
11895 ac_cv_header_stat_broken=yes
11897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11900 $as_echo "$ac_cv_header_stat_broken" >&6; }
11901 if test $ac_cv_header_stat_broken = yes; then
11903 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11912 # Check whether --enable-largefile was given.
11913 if test "${enable_largefile+set}" = set; then :
11914 enableval=$enable_largefile;
11917 if test "$enable_largefile" != no; then
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11920 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11921 if ${ac_cv_sys_largefile_CC+:} false; then :
11922 $as_echo_n "(cached) " >&6
11924 ac_cv_sys_largefile_CC=no
11925 if test "$GCC" != yes; then
11928 # IRIX 6.2 and later do not support large files by default,
11929 # so use the C compiler's -n32 option if that helps.
11930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11932 #include <sys/types.h>
11933 /* Check that off_t can represent 2**63 - 1 correctly.
11934 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11935 since some C++ compilers masquerading as C compilers
11936 incorrectly reject 9223372036854775807. */
11937 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11938 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11939 && LARGE_OFF_T % 2147483647 == 1)
11949 if ac_fn_c_try_compile "$LINENO"; then :
11952 rm -f core conftest.err conftest.$ac_objext
11954 if ac_fn_c_try_compile "$LINENO"; then :
11955 ac_cv_sys_largefile_CC=' -n32'; break
11957 rm -f core conftest.err conftest.$ac_objext
11961 rm -f conftest.$ac_ext
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11965 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11966 if test "$ac_cv_sys_largefile_CC" != no; then
11967 CC=$CC$ac_cv_sys_largefile_CC
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11971 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11972 if ${ac_cv_sys_file_offset_bits+:} false; then :
11973 $as_echo_n "(cached) " >&6
11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h. */
11978 #include <sys/types.h>
11979 /* Check that off_t can represent 2**63 - 1 correctly.
11980 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11981 since some C++ compilers masquerading as C compilers
11982 incorrectly reject 9223372036854775807. */
11983 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11984 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11985 && LARGE_OFF_T % 2147483647 == 1)
11995 if ac_fn_c_try_compile "$LINENO"; then :
11996 ac_cv_sys_file_offset_bits=no; break
11998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12000 /* end confdefs.h. */
12001 #define _FILE_OFFSET_BITS 64
12002 #include <sys/types.h>
12003 /* Check that off_t can represent 2**63 - 1 correctly.
12004 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12005 since some C++ compilers masquerading as C compilers
12006 incorrectly reject 9223372036854775807. */
12007 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12008 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12009 && LARGE_OFF_T % 2147483647 == 1)
12019 if ac_fn_c_try_compile "$LINENO"; then :
12020 ac_cv_sys_file_offset_bits=64; break
12022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12023 ac_cv_sys_file_offset_bits=unknown
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12028 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12029 case $ac_cv_sys_file_offset_bits in #(
12032 cat >>confdefs.h <<_ACEOF
12033 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12038 if test $ac_cv_sys_file_offset_bits = unknown; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12040 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12041 if ${ac_cv_sys_large_files+:} false; then :
12042 $as_echo_n "(cached) " >&6
12045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h. */
12047 #include <sys/types.h>
12048 /* Check that off_t can represent 2**63 - 1 correctly.
12049 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12050 since some C++ compilers masquerading as C compilers
12051 incorrectly reject 9223372036854775807. */
12052 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12053 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12054 && LARGE_OFF_T % 2147483647 == 1)
12064 if ac_fn_c_try_compile "$LINENO"; then :
12065 ac_cv_sys_large_files=no; break
12067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069 /* end confdefs.h. */
12070 #define _LARGE_FILES 1
12071 #include <sys/types.h>
12072 /* Check that off_t can represent 2**63 - 1 correctly.
12073 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12074 since some C++ compilers masquerading as C compilers
12075 incorrectly reject 9223372036854775807. */
12076 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12077 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12078 && LARGE_OFF_T % 2147483647 == 1)
12088 if ac_fn_c_try_compile "$LINENO"; then :
12089 ac_cv_sys_large_files=1; break
12091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12092 ac_cv_sys_large_files=unknown
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12097 $as_echo "$ac_cv_sys_large_files" >&6; }
12098 case $ac_cv_sys_large_files in #(
12101 cat >>confdefs.h <<_ACEOF
12102 #define _LARGE_FILES $ac_cv_sys_large_files
12112 GNULIB_NANOSLEEP=0;
12116 HAVE_LOCALTIME_R=1;
12120 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
12121 REPLACE_MKTIME=GNULIB_PORTCHECK;
12122 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
12123 REPLACE_TIMEGM=GNULIB_PORTCHECK;
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
12139 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
12140 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
12141 $as_echo_n "(cached) " >&6
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h. */
12150 static struct timespec x; x.tv_sec = x.tv_nsec;
12155 if ac_fn_c_try_compile "$LINENO"; then :
12156 gl_cv_sys_struct_timespec_in_time_h=yes
12158 gl_cv_sys_struct_timespec_in_time_h=no
12160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
12163 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
12165 TIME_H_DEFINES_STRUCT_TIMESPEC=0
12166 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
12167 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
12168 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
12169 TIME_H_DEFINES_STRUCT_TIMESPEC=1
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
12172 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
12173 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
12174 $as_echo_n "(cached) " >&6
12176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12177 /* end confdefs.h. */
12178 #include <sys/time.h>
12183 static struct timespec x; x.tv_sec = x.tv_nsec;
12188 if ac_fn_c_try_compile "$LINENO"; then :
12189 gl_cv_sys_struct_timespec_in_sys_time_h=yes
12191 gl_cv_sys_struct_timespec_in_sys_time_h=no
12193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
12196 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
12197 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
12198 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
12201 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
12202 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
12203 $as_echo_n "(cached) " >&6
12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h. */
12207 #include <pthread.h>
12212 static struct timespec x; x.tv_sec = x.tv_nsec;
12217 if ac_fn_c_try_compile "$LINENO"; then :
12218 gl_cv_sys_struct_timespec_in_pthread_h=yes
12220 gl_cv_sys_struct_timespec_in_pthread_h=no
12222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
12225 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
12226 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
12227 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
12250 if test $gl_cv_have_include_next = yes; then
12251 gl_cv_next_time_h='<'time.h'>'
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
12254 $as_echo_n "checking absolute name of <time.h>... " >&6; }
12255 if ${gl_cv_next_time_h+:} false; then :
12256 $as_echo_n "(cached) " >&6
12259 if test $ac_cv_header_time_h = yes; then
12260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261 /* end confdefs.h. */
12266 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12267 *) gl_absname_cpp="$ac_cpp" ;;
12269 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12270 sed -n '\#/time.h#{
12271 s#.*"\(.*/time.h\)".*#\1#
12277 gl_cv_next_time_h='<'time.h'>'
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
12282 $as_echo "$gl_cv_next_time_h" >&6; }
12284 NEXT_TIME_H=$gl_cv_next_time_h
12286 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12287 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12288 gl_next_as_first_directive='<'time.h'>'
12290 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12291 gl_next_as_first_directive=$gl_cv_next_time_h
12293 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
12311 $as_echo_n "checking for wint_t... " >&6; }
12312 if ${gt_cv_c_wint_t+:} false; then :
12313 $as_echo_n "(cached) " >&6
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12318 wint_t foo = (wchar_t)'\0';
12327 if ac_fn_c_try_compile "$LINENO"; then :
12332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
12335 $as_echo "$gt_cv_c_wint_t" >&6; }
12336 if test $gt_cv_c_wint_t = yes; then
12338 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12344 $as_echo_n "checking for inttypes.h... " >&6; }
12345 if ${gl_cv_header_inttypes_h+:} false; then :
12346 $as_echo_n "(cached) " >&6
12348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12349 /* end confdefs.h. */
12350 #include <sys/types.h>
12351 #include <inttypes.h>
12355 uintmax_t i = (uintmax_t) -1;
12360 if ac_fn_c_try_compile "$LINENO"; then :
12361 gl_cv_header_inttypes_h=yes
12363 gl_cv_header_inttypes_h=no
12365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
12368 $as_echo "$gl_cv_header_inttypes_h" >&6; }
12369 if test $gl_cv_header_inttypes_h = yes; then
12371 cat >>confdefs.h <<_ACEOF
12372 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
12379 $as_echo_n "checking for stdint.h... " >&6; }
12380 if ${gl_cv_header_stdint_h+:} false; then :
12381 $as_echo_n "(cached) " >&6
12383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384 /* end confdefs.h. */
12385 #include <sys/types.h>
12386 #include <stdint.h>
12390 uintmax_t i = (uintmax_t) -1;
12395 if ac_fn_c_try_compile "$LINENO"; then :
12396 gl_cv_header_stdint_h=yes
12398 gl_cv_header_stdint_h=no
12400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
12403 $as_echo "$gl_cv_header_stdint_h" >&6; }
12404 if test $gl_cv_header_stdint_h = yes; then
12406 cat >>confdefs.h <<_ACEOF
12407 #define HAVE_STDINT_H_WITH_UINTMAX 1
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
12416 $as_echo_n "checking for intmax_t... " >&6; }
12417 if ${gt_cv_c_intmax_t+:} false; then :
12418 $as_echo_n "(cached) " >&6
12420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421 /* end confdefs.h. */
12423 #include <stddef.h>
12424 #include <stdlib.h>
12425 #if HAVE_STDINT_H_WITH_UINTMAX
12426 #include <stdint.h>
12428 #if HAVE_INTTYPES_H_WITH_UINTMAX
12429 #include <inttypes.h>
12435 intmax_t x = -1; return !x;
12440 if ac_fn_c_try_compile "$LINENO"; then :
12441 gt_cv_c_intmax_t=yes
12443 gt_cv_c_intmax_t=no
12445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
12448 $as_echo "$gt_cv_c_intmax_t" >&6; }
12449 if test $gt_cv_c_intmax_t = yes; then
12451 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
12455 test $ac_cv_type_long_long_int = yes \
12456 && ac_type='long long' \
12459 cat >>confdefs.h <<_ACEOF
12460 #define intmax_t $ac_type
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
12468 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
12469 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
12470 $as_echo_n "(cached) " >&6
12473 if test "$cross_compiling" = yes; then :
12476 # Guess yes on glibc systems.
12477 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12478 # Guess yes on FreeBSD >= 5.
12479 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
12480 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12481 # Guess yes on MacOS X >= 10.3.
12482 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
12483 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12484 # Guess yes on OpenBSD >= 3.9.
12485 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
12486 gl_cv_func_snprintf_retval_c99="guessing no";;
12487 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12488 # Guess yes on Solaris >= 2.6.
12489 solaris2.[0-5]*) gl_cv_func_snprintf_retval_c99="guessing no";;
12490 solaris*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12491 # Guess yes on AIX >= 4.
12492 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
12493 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12494 # Guess yes on NetBSD >= 3.
12495 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
12496 gl_cv_func_snprintf_retval_c99="guessing no";;
12497 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12498 # Guess yes on BeOS.
12499 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12500 # If we don't know, assume the worst.
12501 *) gl_cv_func_snprintf_retval_c99="guessing no";;
12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h. */
12509 #include <string.h>
12510 static char buf[100];
12513 strcpy (buf, "ABCDEF");
12514 if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
12519 if ac_fn_c_try_run "$LINENO"; then :
12520 gl_cv_func_snprintf_retval_c99=yes
12522 gl_cv_func_snprintf_retval_c99=no
12524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12525 conftest.$ac_objext conftest.beam conftest.$ac_ext
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
12531 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
12539 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
12541 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12542 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12543 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12544 cat >>confdefs.h <<_ACEOF
12545 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12551 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
12553 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
12559 cat >>confdefs.h <<_ACEOF
12560 #define HAVE_DECL__SNPRINTF $ac_have_decl
12564 case "$gl_cv_func_snprintf_retval_c99" in
12567 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
12588 ac_fn_c_check_decl "$LINENO" "iswblank" "ac_cv_have_decl_iswblank" "$ac_includes_default"
12589 if test "x$ac_cv_have_decl_iswblank" = xyes; then :
12595 cat >>confdefs.h <<_ACEOF
12596 #define HAVE_DECL_ISWBLANK $ac_have_decl
12607 GL_COND_LIBTOOL_TRUE=
12608 GL_COND_LIBTOOL_FALSE='#'
12610 GL_COND_LIBTOOL_TRUE='#'
12611 GL_COND_LIBTOOL_FALSE=
12614 gl_cond_libtool=true
12615 gl_m4_base='config/gnulib'
12625 gl_source_base='gnulib'
12626 # Code from module alignof:
12627 # Code from module alloca-opt:
12633 if test $ac_cv_func_alloca_works = no; then
12637 # Define an additional variable used in the Makefile substitution.
12638 if test $ac_cv_working_alloca_h = yes; then
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12640 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12641 if ${gl_cv_rpl_alloca+:} false; then :
12642 $as_echo_n "(cached) " >&6
12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12648 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12654 $EGREP "Need own alloca" >/dev/null 2>&1; then :
12655 gl_cv_rpl_alloca=yes
12657 gl_cv_rpl_alloca=no
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12664 $as_echo "$gl_cv_rpl_alloca" >&6; }
12665 if test $gl_cv_rpl_alloca = yes; then
12667 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12678 # Code from module arg-nonnull:
12679 # Code from module arpa_inet:
12690 if test $ac_cv_header_arpa_inet_h = yes; then
12708 if test $gl_cv_have_include_next = yes; then
12709 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
12712 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
12713 if ${gl_cv_next_arpa_inet_h+:} false; then :
12714 $as_echo_n "(cached) " >&6
12717 if test $ac_cv_header_arpa_inet_h = yes; then
12718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12719 /* end confdefs.h. */
12720 #include <arpa/inet.h>
12724 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12725 *) gl_absname_cpp="$ac_cpp" ;;
12727 gl_cv_next_arpa_inet_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12728 sed -n '\#/arpa/inet.h#{
12729 s#.*"\(.*/arpa/inet.h\)".*#\1#
12735 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
12740 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
12742 NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
12744 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12745 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12746 gl_next_as_first_directive='<'arpa/inet.h'>'
12748 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12749 gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
12751 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
12757 for gl_func in inet_ntop inet_pton; do
12758 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12760 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12761 if eval \${$as_gl_Symbol+:} false; then :
12762 $as_echo_n "(cached) " >&6
12764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12765 /* end confdefs.h. */
12767 /* On some systems, this header is not self-consistent. */
12769 # include <sys/socket.h>
12771 #include <arpa/inet.h>
12782 if ac_fn_c_try_compile "$LINENO"; then :
12783 eval "$as_gl_Symbol=yes"
12785 eval "$as_gl_Symbol=no"
12787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12789 eval ac_res=\$$as_gl_Symbol
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12791 $as_echo "$ac_res" >&6; }
12792 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
12793 cat >>confdefs.h <<_ACEOF
12794 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12797 eval ac_cv_have_decl_$gl_func=yes
12803 # Code from module base64:
12810 # Code from module btowc:
12823 if test $ac_cv_func_btowc = no; then
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
12831 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
12832 if ${gl_cv_func_btowc_nul+:} false; then :
12833 $as_echo_n "(cached) " >&6
12836 if test "$cross_compiling" = yes; then :
12839 # Guess no on Cygwin.
12840 cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
12841 # Guess yes otherwise.
12842 *) gl_cv_func_btowc_nul="guessing yes" ;;
12846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847 /* end confdefs.h. */
12850 #include <string.h>
12854 if (btowc ('\0') != 0)
12859 if ac_fn_c_try_run "$LINENO"; then :
12860 gl_cv_func_btowc_nul=yes
12862 gl_cv_func_btowc_nul=no
12864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12865 conftest.$ac_objext conftest.beam conftest.$ac_ext
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
12871 $as_echo "$gl_cv_func_btowc_nul" >&6; }
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
12874 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
12875 if ${gl_cv_func_btowc_eof+:} false; then :
12876 $as_echo_n "(cached) " >&6
12880 # Guess no on IRIX.
12881 irix*) gl_cv_func_btowc_eof="guessing no" ;;
12882 # Guess yes otherwise.
12883 *) gl_cv_func_btowc_eof="guessing yes" ;;
12885 if test $LOCALE_FR != none; then
12886 if test "$cross_compiling" = yes; then :
12889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12890 /* end confdefs.h. */
12892 #include <locale.h>
12894 #include <string.h>
12898 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
12900 if (btowc (EOF) != WEOF)
12906 if ac_fn_c_try_run "$LINENO"; then :
12907 gl_cv_func_btowc_eof=yes
12909 gl_cv_func_btowc_eof=no
12911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12912 conftest.$ac_objext conftest.beam conftest.$ac_ext
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
12919 $as_echo "$gl_cv_func_btowc_eof" >&6; }
12921 case "$gl_cv_func_btowc_nul" in
12923 *) REPLACE_BTOWC=1 ;;
12925 case "$gl_cv_func_btowc_eof" in
12927 *) REPLACE_BTOWC=1 ;;
12930 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
12942 gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
12956 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
12960 # Code from module c++defs:
12961 # Code from module c-ctype:
12962 # Code from module configmake:
12963 # Code from module environ:
12972 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
12976 # Code from module errno:
12978 # Code from module extensions:
12979 # Code from module float:
12999 if test $gl_cv_have_include_next = yes; then
13000 gl_cv_next_float_h='<'float.h'>'
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
13003 $as_echo_n "checking absolute name of <float.h>... " >&6; }
13004 if ${gl_cv_next_float_h+:} false; then :
13005 $as_echo_n "(cached) " >&6
13008 if test $ac_cv_header_float_h = yes; then
13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010 /* end confdefs.h. */
13015 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13016 *) gl_absname_cpp="$ac_cpp" ;;
13018 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13019 sed -n '\#/float.h#{
13020 s#.*"\(.*/float.h\)".*#\1#
13026 gl_cv_next_float_h='<'float.h'>'
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
13031 $as_echo "$gl_cv_next_float_h" >&6; }
13033 NEXT_FLOAT_H=$gl_cv_next_float_h
13035 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13036 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13037 gl_next_as_first_directive='<'float.h'>'
13039 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13040 gl_next_as_first_directive=$gl_cv_next_float_h
13042 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
13050 # Code from module fseeko:
13056 if test $gl_cv_func_fseeko = no; then
13061 if test $gl_cv_func_fseeko = yes; then
13072 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
13077 if test $gl_cv_var_stdin_large_offset = no; then
13081 if test $gl_cv_func_fseeko = yes; then
13092 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
13106 $as_echo "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h
13110 # Code from module fsusage:
13129 for ac_header in sys/mount.h
13131 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default
13132 #if HAVE_SYS_PARAM_H
13133 #include <sys/param.h>
13136 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
13137 cat >>confdefs.h <<_ACEOF
13138 #define HAVE_SYS_MOUNT_H 1
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get file system space usage" >&5
13148 $as_echo "$as_me: checking how to get file system space usage" >&6;}
13149 ac_fsusage_space=no
13151 # Perform only the link test since it seems there are no variants of the
13152 # statvfs function. This check is more than just AC_CHECK_FUNCS([statvfs])
13153 # because that got a false positive on SCO OSR5. Adding the declaration
13154 # of a `struct statvfs' causes this test to fail (as it should) on such
13155 # systems. That system is reported to work fine with STAT_STATFS4 which
13156 # is what it gets when this test fails.
13157 if test $ac_fsusage_space = no; then
13158 # glibc/{Hurd,kFreeBSD}, MacOS X >= 10.4, FreeBSD >= 5.0, NetBSD >= 3.0,
13159 # OpenBSD >= 4.4, AIX, HP-UX, IRIX, Solaris, Cygwin, Interix, BeOS.
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statvfs function (SVR4)" >&5
13161 $as_echo_n "checking for statvfs function (SVR4)... " >&6; }
13162 if ${fu_cv_sys_stat_statvfs+:} false; then :
13163 $as_echo_n "(cached) " >&6
13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h. */
13167 #include <sys/types.h>
13168 #if defined __GLIBC__ && defined __linux__
13169 Do not use statvfs on systems with GNU libc on Linux, because that function
13170 stats all preceding entries in /proc/mounts, and that makes df hang if even
13171 one of the corresponding file systems is hard-mounted, but not available.
13172 statvfs in GNU libc on Hurd, BeOS, Haiku operates differently: it only makes
13177 "Do not use Tru64's statvfs implementation"
13180 #include <sys/statvfs.h>
13184 struct statvfs fsd; statvfs (0, &fsd);
13189 if ac_fn_c_try_link "$LINENO"; then :
13190 fu_cv_sys_stat_statvfs=yes
13192 fu_cv_sys_stat_statvfs=no
13194 rm -f core conftest.err conftest.$ac_objext \
13195 conftest$ac_exeext conftest.$ac_ext
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs" >&5
13198 $as_echo "$fu_cv_sys_stat_statvfs" >&6; }
13199 if test $fu_cv_sys_stat_statvfs = yes; then
13200 ac_fsusage_space=yes
13202 $as_echo "#define STAT_STATVFS 1" >>confdefs.h
13207 if test $ac_fsusage_space = no; then
13208 # DEC Alpha running OSF/1
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3-argument statfs function (DEC OSF/1)" >&5
13210 $as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
13211 if ${fu_cv_sys_stat_statfs3_osf1+:} false; then :
13212 $as_echo_n "(cached) " >&6
13214 if test "$cross_compiling" = yes; then :
13215 fu_cv_sys_stat_statfs3_osf1=no
13217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218 /* end confdefs.h. */
13220 #include <sys/param.h>
13221 #include <sys/types.h>
13222 #include <sys/mount.h>
13228 return statfs (".", &fsd, sizeof (struct statfs)) != 0;
13231 if ac_fn_c_try_run "$LINENO"; then :
13232 fu_cv_sys_stat_statfs3_osf1=yes
13234 fu_cv_sys_stat_statfs3_osf1=no
13236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13237 conftest.$ac_objext conftest.beam conftest.$ac_ext
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs3_osf1" >&5
13243 $as_echo "$fu_cv_sys_stat_statfs3_osf1" >&6; }
13244 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
13245 ac_fsusage_space=yes
13247 $as_echo "#define STAT_STATFS3_OSF1 1" >>confdefs.h
13252 if test $ac_fsusage_space = no; then
13253 # glibc/Linux, MacOS X < 10.4, FreeBSD < 5.0, NetBSD < 3.0, OpenBSD < 4.4.
13254 # (glibc/{Hurd,kFreeBSD}, MacOS X >= 10.4, FreeBSD >= 5.0, NetBSD >= 3.0,
13255 # OpenBSD >= 4.4, AIX, HP-UX, OSF/1, Cygwin already handled above.)
13256 # (On IRIX you need to include <sys/statfs.h>, not only <sys/mount.h> and
13258 # (On Solaris, statfs has 4 arguments.)
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)" >&5
13260 $as_echo_n "checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)... " >&6; }
13261 if ${fu_cv_sys_stat_statfs2_bsize+:} false; then :
13262 $as_echo_n "(cached) " >&6
13264 if test "$cross_compiling" = yes; then :
13265 fu_cv_sys_stat_statfs2_bsize=no
13267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268 /* end confdefs.h. */
13270 #ifdef HAVE_SYS_PARAM_H
13271 #include <sys/param.h>
13273 #ifdef HAVE_SYS_MOUNT_H
13274 #include <sys/mount.h>
13276 #ifdef HAVE_SYS_VFS_H
13277 #include <sys/vfs.h>
13284 return statfs (".", &fsd) != 0;
13287 if ac_fn_c_try_run "$LINENO"; then :
13288 fu_cv_sys_stat_statfs2_bsize=yes
13290 fu_cv_sys_stat_statfs2_bsize=no
13292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13293 conftest.$ac_objext conftest.beam conftest.$ac_ext
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_bsize" >&5
13299 $as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
13300 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
13301 ac_fsusage_space=yes
13303 $as_echo "#define STAT_STATFS2_BSIZE 1" >>confdefs.h
13308 if test $ac_fsusage_space = no; then
13310 # (Solaris already handled above.)
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13312 $as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
13313 if ${fu_cv_sys_stat_statfs4+:} false; then :
13314 $as_echo_n "(cached) " >&6
13316 if test "$cross_compiling" = yes; then :
13317 fu_cv_sys_stat_statfs4=no
13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h. */
13322 #include <sys/types.h>
13323 #include <sys/statfs.h>
13328 return statfs (".", &fsd, sizeof fsd, 0) != 0;
13331 if ac_fn_c_try_run "$LINENO"; then :
13332 fu_cv_sys_stat_statfs4=yes
13334 fu_cv_sys_stat_statfs4=no
13336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13337 conftest.$ac_objext conftest.beam conftest.$ac_ext
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs4" >&5
13343 $as_echo "$fu_cv_sys_stat_statfs4" >&6; }
13344 if test $fu_cv_sys_stat_statfs4 = yes; then
13345 ac_fsusage_space=yes
13347 $as_echo "#define STAT_STATFS4 1" >>confdefs.h
13352 if test $ac_fsusage_space = no; then
13353 # 4.4BSD and older NetBSD
13354 # (OSF/1 already handled above.)
13355 # (On AIX, you need to include <sys/statfs.h>, not only <sys/mount.h>.)
13356 # (On Solaris, statfs has 4 arguments and 'struct statfs' is not declared in
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)" >&5
13359 $as_echo_n "checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)... " >&6; }
13360 if ${fu_cv_sys_stat_statfs2_fsize+:} false; then :
13361 $as_echo_n "(cached) " >&6
13363 if test "$cross_compiling" = yes; then :
13364 fu_cv_sys_stat_statfs2_fsize=no
13366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13369 #include <sys/types.h>
13370 #ifdef HAVE_SYS_PARAM_H
13371 #include <sys/param.h>
13373 #ifdef HAVE_SYS_MOUNT_H
13374 #include <sys/mount.h>
13381 return statfs (".", &fsd) != 0;
13384 if ac_fn_c_try_run "$LINENO"; then :
13385 fu_cv_sys_stat_statfs2_fsize=yes
13387 fu_cv_sys_stat_statfs2_fsize=no
13389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13390 conftest.$ac_objext conftest.beam conftest.$ac_ext
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_fsize" >&5
13396 $as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
13397 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13398 ac_fsusage_space=yes
13400 $as_echo "#define STAT_STATFS2_FSIZE 1" >>confdefs.h
13405 if test $ac_fsusage_space = no; then
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13408 $as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
13409 if ${fu_cv_sys_stat_fs_data+:} false; then :
13410 $as_echo_n "(cached) " >&6
13412 if test "$cross_compiling" = yes; then :
13413 fu_cv_sys_stat_fs_data=no
13415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13416 /* end confdefs.h. */
13418 #include <sys/types.h>
13419 #ifdef HAVE_SYS_PARAM_H
13420 #include <sys/param.h>
13422 #ifdef HAVE_SYS_MOUNT_H
13423 #include <sys/mount.h>
13425 #ifdef HAVE_SYS_FS_TYPES_H
13426 #include <sys/fs_types.h>
13431 struct fs_data fsd;
13432 /* Ultrix's statfs returns 1 for success,
13433 0 for not mounted, -1 for failure. */
13434 return statfs (".", &fsd) != 1;
13437 if ac_fn_c_try_run "$LINENO"; then :
13438 fu_cv_sys_stat_fs_data=yes
13440 fu_cv_sys_stat_fs_data=no
13442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13443 conftest.$ac_objext conftest.beam conftest.$ac_ext
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_fs_data" >&5
13449 $as_echo "$fu_cv_sys_stat_fs_data" >&6; }
13450 if test $fu_cv_sys_stat_fs_data = yes; then
13451 ac_fsusage_space=yes
13453 $as_echo "#define STAT_STATFS2_FS_DATA 1" >>confdefs.h
13458 if test $ac_fsusage_space = no; then
13460 # (AIX, HP-UX, OSF/1 already handled above.)
13461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13462 /* end confdefs.h. */
13463 #include <sys/filsys.h>
13466 if ac_fn_c_try_cpp "$LINENO"; then :
13468 $as_echo "#define STAT_READ_FILSYS 1" >>confdefs.h
13470 ac_fsusage_space=yes
13472 rm -f conftest.err conftest.i conftest.$ac_ext
13475 if test $ac_fsusage_space = yes; then :
13482 if test $gl_cv_fs_space = yes; then
13491 gl_LIBOBJS="$gl_LIBOBJS fsusage.$ac_objext"
13494 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h
13496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13497 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13498 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13499 cat >>confdefs.h <<_ACEOF
13500 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statfs that truncates block counts" >&5
13509 $as_echo_n "checking for statfs that truncates block counts... " >&6; }
13510 if ${fu_cv_sys_truncating_statfs+:} false; then :
13511 $as_echo_n "(cached) " >&6
13513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514 /* end confdefs.h. */
13516 #if !defined(sun) && !defined(__sun)
13517 choke -- this is a workaround for a Sun-specific problem
13519 #include <sys/types.h>
13520 #include <sys/vfs.h>
13524 struct statfs t; long c = *(t.f_spare);
13530 if ac_fn_c_try_compile "$LINENO"; then :
13531 fu_cv_sys_truncating_statfs=yes
13533 fu_cv_sys_truncating_statfs=no
13535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13538 if test $fu_cv_sys_truncating_statfs = yes; then
13540 $as_echo "#define STATFS_TRUNCATES_BLOCK_COUNTS 1" >>confdefs.h
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_truncating_statfs" >&5
13544 $as_echo "$fu_cv_sys_truncating_statfs" >&6; }
13549 # Code from module ftello:
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
13558 $as_echo_n "checking for ftello... " >&6; }
13559 if ${gl_cv_func_ftello+:} false; then :
13560 $as_echo_n "(cached) " >&6
13563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564 /* end confdefs.h. */
13574 if ac_fn_c_try_link "$LINENO"; then :
13575 gl_cv_func_ftello=yes
13577 gl_cv_func_ftello=no
13579 rm -f core conftest.err conftest.$ac_objext \
13580 conftest$ac_exeext conftest.$ac_ext
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
13584 $as_echo "$gl_cv_func_ftello" >&6; }
13585 if test $gl_cv_func_ftello = no; then
13588 if test $gl_cv_var_stdin_large_offset = no; then
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
13593 $as_echo_n "checking whether ftello works... " >&6; }
13594 if ${gl_cv_func_ftello_works+:} false; then :
13595 $as_echo_n "(cached) " >&6
13599 # Guess no on Solaris.
13600 solaris*) gl_cv_func_ftello_works="guessing no" ;;
13601 # Guess yes otherwise.
13602 *) gl_cv_func_ftello_works="guessing yes" ;;
13604 if test "$cross_compiling" = yes; then :
13607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608 /* end confdefs.h. */
13611 #include <stdlib.h>
13612 #include <string.h>
13613 #define TESTFILE "conftest.tmp"
13619 /* Create a file with some contents. */
13620 fp = fopen (TESTFILE, "w");
13623 if (fwrite ("foogarsh", 1, 8, fp) < 8)
13628 /* The file's contents is now "foogarsh". */
13630 /* Try writing after reading to EOF. */
13631 fp = fopen (TESTFILE, "r+");
13634 if (fseek (fp, -1, SEEK_END))
13636 if (!(getc (fp) == 'h'))
13638 if (!(getc (fp) == EOF))
13640 if (!(ftell (fp) == 8))
13642 if (!(ftell (fp) == 8))
13644 if (!(putc ('!', fp) == '!'))
13646 if (!(ftell (fp) == 9))
13648 if (!(fclose (fp) == 0))
13650 fp = fopen (TESTFILE, "r");
13655 if (!(fread (buf, 1, 10, fp) == 9))
13657 if (!(memcmp (buf, "foogarsh!", 9) == 0))
13660 if (!(fclose (fp) == 0))
13663 /* The file's contents is now "foogarsh!". */
13668 if ac_fn_c_try_run "$LINENO"; then :
13669 gl_cv_func_ftello_works=yes
13671 gl_cv_func_ftello_works=no
13673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13674 conftest.$ac_objext conftest.beam conftest.$ac_ext
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
13680 $as_echo "$gl_cv_func_ftello_works" >&6; }
13681 case "$gl_cv_func_ftello_works" in
13686 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
13692 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
13702 gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
13714 $as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
13718 # Code from module ftruncate:
13729 if test $ac_cv_func_ftruncate = no; then
13739 gl_LIBOBJS="$gl_LIBOBJS ftruncate.$ac_objext"
13742 for ac_func in chsize
13744 ac_fn_c_check_func "$LINENO" "chsize" "ac_cv_func_chsize"
13745 if test "x$ac_cv_func_chsize" = xyes; then :
13746 cat >>confdefs.h <<_ACEOF
13747 #define HAVE_CHSIZE 1
13756 # Yes, we know mingw lacks ftruncate.
13759 # If someone lacks ftruncate, make configure fail, and request
13760 # a bug report to inform us about it.
13761 if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
13762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13764 as_fn_error $? "Your system lacks the ftruncate function.
13765 Please report this, along with the output of \"uname -a\", to the
13766 bug-coreutils@gnu.org mailing list. To continue past this point,
13767 rerun configure with SKIP_FTRUNCATE_CHECK=yes.
13768 E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
13769 See \`config.log' for more details" "$LINENO" 5; }
13781 $as_echo "#define GNULIB_TEST_FTRUNCATE 1" >>confdefs.h
13785 # Code from module full-read:
13786 # Code from module full-write:
13787 # Code from module getaddrinfo:
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
13790 $as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
13792 gai_saved_LIBS="$LIBS"
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13795 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
13796 if ${ac_cv_search_getaddrinfo+:} false; then :
13797 $as_echo_n "(cached) " >&6
13799 ac_func_search_save_LIBS=$LIBS
13800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13801 /* end confdefs.h. */
13803 /* Override any GCC internal prototype to avoid an error.
13804 Use char because int might match the return type of a GCC
13805 builtin and then its argument prototype would still apply. */
13809 char getaddrinfo ();
13813 return getaddrinfo ();
13818 for ac_lib in '' socket network net; do
13819 if test -z "$ac_lib"; then
13820 ac_res="none required"
13823 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13825 if ac_fn_c_try_link "$LINENO"; then :
13826 ac_cv_search_getaddrinfo=$ac_res
13828 rm -f core conftest.err conftest.$ac_objext \
13830 if ${ac_cv_search_getaddrinfo+:} false; then :
13834 if ${ac_cv_search_getaddrinfo+:} false; then :
13837 ac_cv_search_getaddrinfo=no
13839 rm conftest.$ac_ext
13840 LIBS=$ac_func_search_save_LIBS
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13843 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
13844 ac_res=$ac_cv_search_getaddrinfo
13845 if test "$ac_res" != no; then :
13846 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13847 if test "$ac_cv_search_getaddrinfo" != "none required"; then
13848 GETADDRINFO_LIB="$ac_cv_search_getaddrinfo"
13852 LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13855 $as_echo_n "checking for getaddrinfo... " >&6; }
13856 if ${gl_cv_func_getaddrinfo+:} false; then :
13857 $as_echo_n "(cached) " >&6
13860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h. */
13863 #include <sys/types.h>
13864 #ifdef HAVE_SYS_SOCKET_H
13865 #include <sys/socket.h>
13867 #ifdef HAVE_NETDB_H
13870 #include <stddef.h>
13875 getaddrinfo("", "", NULL, NULL);
13880 if ac_fn_c_try_link "$LINENO"; then :
13881 gl_cv_func_getaddrinfo=yes
13883 gl_cv_func_getaddrinfo=no
13885 rm -f core conftest.err conftest.$ac_objext \
13886 conftest$ac_exeext conftest.$ac_ext
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getaddrinfo" >&5
13889 $as_echo "$gl_cv_func_getaddrinfo" >&6; }
13890 if test $gl_cv_func_getaddrinfo = no; then
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
13892 $as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
13893 if ${gl_cv_w32_getaddrinfo+:} false; then :
13894 $as_echo_n "(cached) " >&6
13897 gl_cv_w32_getaddrinfo=no
13898 am_save_LIBS="$LIBS"
13899 LIBS="$LIBS -lws2_32"
13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13903 #ifdef HAVE_WS2TCPIP_H
13904 #include <ws2tcpip.h>
13906 #include <stddef.h>
13911 getaddrinfo(NULL, NULL, NULL, NULL);
13916 if ac_fn_c_try_link "$LINENO"; then :
13917 gl_cv_w32_getaddrinfo=yes
13919 rm -f core conftest.err conftest.$ac_objext \
13920 conftest$ac_exeext conftest.$ac_ext
13921 LIBS="$am_save_LIBS"
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getaddrinfo" >&5
13925 $as_echo "$gl_cv_w32_getaddrinfo" >&6; }
13926 if test "$gl_cv_w32_getaddrinfo" = "yes"; then
13927 GETADDRINFO_LIB="-lws2_32"
13928 LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
13938 gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
13943 # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
13944 # inline function declared in ws2tcpip.h, so we need to get that
13945 # header included somehow.
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror (possibly via ws2tcpip.h)" >&5
13947 $as_echo_n "checking for gai_strerror (possibly via ws2tcpip.h)... " >&6; }
13948 if ${gl_cv_func_gai_strerror+:} false; then :
13949 $as_echo_n "(cached) " >&6
13952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13953 /* end confdefs.h. */
13955 #include <sys/types.h>
13956 #ifdef HAVE_SYS_SOCKET_H
13957 #include <sys/socket.h>
13959 #ifdef HAVE_NETDB_H
13962 #ifdef HAVE_WS2TCPIP_H
13963 #include <ws2tcpip.h>
13965 #include <stddef.h>
13970 gai_strerror (NULL);
13975 if ac_fn_c_try_link "$LINENO"; then :
13976 gl_cv_func_gai_strerror=yes
13978 gl_cv_func_gai_strerror=no
13980 rm -f core conftest.err conftest.$ac_objext \
13981 conftest$ac_exeext conftest.$ac_ext
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gai_strerror" >&5
13984 $as_echo "$gl_cv_func_gai_strerror" >&6; }
13985 if test $gl_cv_func_gai_strerror = no; then
13994 gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext"
13998 LIBS="$gai_saved_LIBS"
14008 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
14010 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14012 cat >>confdefs.h <<_ACEOF
14013 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14028 ac_fn_c_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_getaddrinfo" "
14029 /* sys/types.h is not needed according to POSIX, but the
14030 sys/socket.h in i386-unknown-freebsd4.10 and
14031 powerpc-apple-darwin5.5 required it. */
14032 #include <sys/types.h>
14033 #ifdef HAVE_SYS_SOCKET_H
14034 #include <sys/socket.h>
14036 #ifdef HAVE_NETDB_H
14039 #ifdef HAVE_WS2TCPIP_H
14040 #include <ws2tcpip.h>
14044 if test "x$ac_cv_have_decl_getaddrinfo" = xyes; then :
14050 cat >>confdefs.h <<_ACEOF
14051 #define HAVE_DECL_GETADDRINFO $ac_have_decl
14053 ac_fn_c_check_decl "$LINENO" "freeaddrinfo" "ac_cv_have_decl_freeaddrinfo" "
14054 /* sys/types.h is not needed according to POSIX, but the
14055 sys/socket.h in i386-unknown-freebsd4.10 and
14056 powerpc-apple-darwin5.5 required it. */
14057 #include <sys/types.h>
14058 #ifdef HAVE_SYS_SOCKET_H
14059 #include <sys/socket.h>
14061 #ifdef HAVE_NETDB_H
14064 #ifdef HAVE_WS2TCPIP_H
14065 #include <ws2tcpip.h>
14069 if test "x$ac_cv_have_decl_freeaddrinfo" = xyes; then :
14075 cat >>confdefs.h <<_ACEOF
14076 #define HAVE_DECL_FREEADDRINFO $ac_have_decl
14078 ac_fn_c_check_decl "$LINENO" "gai_strerror" "ac_cv_have_decl_gai_strerror" "
14079 /* sys/types.h is not needed according to POSIX, but the
14080 sys/socket.h in i386-unknown-freebsd4.10 and
14081 powerpc-apple-darwin5.5 required it. */
14082 #include <sys/types.h>
14083 #ifdef HAVE_SYS_SOCKET_H
14084 #include <sys/socket.h>
14086 #ifdef HAVE_NETDB_H
14089 #ifdef HAVE_WS2TCPIP_H
14090 #include <ws2tcpip.h>
14094 if test "x$ac_cv_have_decl_gai_strerror" = xyes; then :
14100 cat >>confdefs.h <<_ACEOF
14101 #define HAVE_DECL_GAI_STRERROR $ac_have_decl
14103 ac_fn_c_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_getnameinfo" "
14104 /* sys/types.h is not needed according to POSIX, but the
14105 sys/socket.h in i386-unknown-freebsd4.10 and
14106 powerpc-apple-darwin5.5 required it. */
14107 #include <sys/types.h>
14108 #ifdef HAVE_SYS_SOCKET_H
14109 #include <sys/socket.h>
14111 #ifdef HAVE_NETDB_H
14114 #ifdef HAVE_WS2TCPIP_H
14115 #include <ws2tcpip.h>
14119 if test "x$ac_cv_have_decl_getnameinfo" = xyes; then :
14125 cat >>confdefs.h <<_ACEOF
14126 #define HAVE_DECL_GETNAMEINFO $ac_have_decl
14129 if test $ac_cv_have_decl_getaddrinfo = no; then
14130 HAVE_DECL_GETADDRINFO=0
14132 if test $ac_cv_have_decl_freeaddrinfo = no; then
14133 HAVE_DECL_FREEADDRINFO=0
14135 if test $ac_cv_have_decl_gai_strerror = no; then
14136 HAVE_DECL_GAI_STRERROR=0
14138 if test $ac_cv_have_decl_getnameinfo = no; then
14139 HAVE_DECL_GETNAMEINFO=0
14142 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
14143 #include <sys/types.h>
14144 #ifdef HAVE_SYS_SOCKET_H
14145 #include <sys/socket.h>
14147 #ifdef HAVE_NETDB_H
14150 #ifdef HAVE_WS2TCPIP_H
14151 #include <ws2tcpip.h>
14155 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
14157 cat >>confdefs.h <<_ACEOF
14158 #define HAVE_STRUCT_ADDRINFO 1
14164 if test $ac_cv_type_struct_addrinfo = no; then
14165 HAVE_STRUCT_ADDRINFO=0
14168 case " $GETADDRINFO_LIB " in
14169 *" $HOSTENT_LIB "*) ;;
14170 *) GETADDRINFO_LIB="$GETADDRINFO_LIB $HOSTENT_LIB" ;;
14173 case " $GETADDRINFO_LIB " in
14174 *" $SERVENT_LIB "*) ;;
14175 *) GETADDRINFO_LIB="$GETADDRINFO_LIB $SERVENT_LIB" ;;
14178 case " $GETADDRINFO_LIB " in
14179 *" $INET_NTOP_LIB "*) ;;
14180 *) GETADDRINFO_LIB="$GETADDRINFO_LIB $INET_NTOP_LIB" ;;
14189 GNULIB_GETADDRINFO=1
14192 # Code from module getopt-gnu:
14200 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
14203 # Code from module getopt-posix:
14209 if test -n "$gl_replace_getopt"; then :
14215 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14219 GNULIB_UNISTD_H_GETOPT=1
14228 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14238 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14254 # Code from module gettext-h:
14257 # Code from module gettimeofday:
14270 gl_gettimeofday_timezone=void
14271 if test $ac_cv_func_gettimeofday != yes; then
14272 HAVE_GETTIMEOFDAY=0
14281 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14284 for ac_header in sys/timeb.h
14286 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14287 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
14288 cat >>confdefs.h <<_ACEOF
14289 #define HAVE_SYS_TIMEB_H 1
14296 for ac_func in _ftime
14298 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
14299 if test "x$ac_cv_func__ftime" = xyes; then :
14300 cat >>confdefs.h <<_ACEOF
14301 #define HAVE__FTIME 1
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
14313 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
14314 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
14315 $as_echo_n "(cached) " >&6
14317 if test "$cross_compiling" = yes; then :
14318 gl_cv_func_gettimeofday_clobber=yes
14320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14321 /* end confdefs.h. */
14322 #include <string.h>
14323 #include <sys/time.h>
14325 #include <stdlib.h>
14333 struct tm saved_lt;
14335 lt = localtime (&t);
14337 gettimeofday (&tv, NULL);
14338 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
14344 if ac_fn_c_try_run "$LINENO"; then :
14345 gl_cv_func_gettimeofday_clobber=no
14347 gl_cv_func_gettimeofday_clobber=yes
14349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14350 conftest.$ac_objext conftest.beam conftest.$ac_ext
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
14355 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
14357 if test $gl_cv_func_gettimeofday_clobber = yes; then
14358 REPLACE_GETTIMEOFDAY=1
14368 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14371 for ac_header in sys/timeb.h
14373 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14374 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
14375 cat >>confdefs.h <<_ACEOF
14376 #define HAVE_SYS_TIMEB_H 1
14383 for ac_func in _ftime
14385 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
14386 if test "x$ac_cv_func__ftime" = xyes; then :
14387 cat >>confdefs.h <<_ACEOF
14388 #define HAVE__FTIME 1
14396 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
14399 $as_echo "#define localtime rpl_localtime" >>confdefs.h
14403 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
14408 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
14409 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
14410 $as_echo_n "(cached) " >&6
14412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14413 /* end confdefs.h. */
14414 #include <sys/time.h>
14416 int gettimeofday (struct timeval *restrict, void *restrict);
14421 /* glibc uses struct timezone * rather than the POSIX void *
14422 if _GNU_SOURCE is defined. However, since the only portable
14423 use of gettimeofday uses NULL as the second parameter, and
14424 since the glibc definition is actually more typesafe, it is
14425 not worth wrapping this to get a compliant signature. */
14426 int (*f) (struct timeval *restrict, void *restrict)
14429 return !(x | c.tv_sec | c.tv_usec);
14435 if ac_fn_c_try_compile "$LINENO"; then :
14436 gl_cv_func_gettimeofday_posix_signature=yes
14438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14439 /* end confdefs.h. */
14440 #include <sys/time.h>
14441 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
14451 if ac_fn_c_try_compile "$LINENO"; then :
14452 gl_cv_func_gettimeofday_posix_signature=almost
14454 gl_cv_func_gettimeofday_posix_signature=no
14456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
14461 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
14462 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
14463 gl_gettimeofday_timezone='struct timezone'
14464 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
14465 REPLACE_GETTIMEOFDAY=1
14474 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14477 for ac_header in sys/timeb.h
14479 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14480 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
14481 cat >>confdefs.h <<_ACEOF
14482 #define HAVE_SYS_TIMEB_H 1
14489 for ac_func in _ftime
14491 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
14492 if test "x$ac_cv_func__ftime" = xyes; then :
14493 cat >>confdefs.h <<_ACEOF
14494 #define HAVE__FTIME 1
14504 cat >>confdefs.h <<_ACEOF
14505 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
14512 GNULIB_GETTIMEOFDAY=1
14516 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
14520 # Code from module havelib:
14521 # Code from module hostent:
14524 gl_saved_libs="$LIBS"
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14526 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14527 if ${ac_cv_search_gethostbyname+:} false; then :
14528 $as_echo_n "(cached) " >&6
14530 ac_func_search_save_LIBS=$LIBS
14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h. */
14534 /* Override any GCC internal prototype to avoid an error.
14535 Use char because int might match the return type of a GCC
14536 builtin and then its argument prototype would still apply. */
14540 char gethostbyname ();
14544 return gethostbyname ();
14549 for ac_lib in '' nsl network net; do
14550 if test -z "$ac_lib"; then
14551 ac_res="none required"
14554 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14556 if ac_fn_c_try_link "$LINENO"; then :
14557 ac_cv_search_gethostbyname=$ac_res
14559 rm -f core conftest.err conftest.$ac_objext \
14561 if ${ac_cv_search_gethostbyname+:} false; then :
14565 if ${ac_cv_search_gethostbyname+:} false; then :
14568 ac_cv_search_gethostbyname=no
14570 rm conftest.$ac_ext
14571 LIBS=$ac_func_search_save_LIBS
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14574 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14575 ac_res=$ac_cv_search_gethostbyname
14576 if test "$ac_res" != no; then :
14577 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14578 if test "$ac_cv_search_gethostbyname" != "none required"; then
14579 HOSTENT_LIB="$ac_cv_search_gethostbyname"
14583 LIBS="$gl_saved_libs"
14584 if test -z "$HOSTENT_LIB"; then
14585 for ac_func in gethostbyname
14587 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14588 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14589 cat >>confdefs.h <<_ACEOF
14590 #define HAVE_GETHOSTBYNAME 1
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
14596 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
14597 if ${gl_cv_w32_gethostbyname+:} false; then :
14598 $as_echo_n "(cached) " >&6
14600 gl_cv_w32_gethostbyname=no
14601 gl_save_LIBS="$LIBS"
14602 LIBS="$LIBS -lws2_32"
14603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14604 /* end confdefs.h. */
14606 #ifdef HAVE_WINSOCK2_H
14607 #include <winsock2.h>
14609 #include <stddef.h>
14614 gethostbyname(NULL);
14619 if ac_fn_c_try_link "$LINENO"; then :
14620 gl_cv_w32_gethostbyname=yes
14622 rm -f core conftest.err conftest.$ac_objext \
14623 conftest$ac_exeext conftest.$ac_ext
14624 LIBS="$gl_save_LIBS"
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
14628 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
14629 if test "$gl_cv_w32_gethostbyname" = "yes"; then
14630 HOSTENT_LIB="-lws2_32"
14639 # Code from module include_next:
14640 # Code from module inet_ntop:
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
14650 $as_echo_n "checking for library containing inet_ntop... " >&6; }
14651 if ${ac_cv_search_inet_ntop+:} false; then :
14652 $as_echo_n "(cached) " >&6
14654 ac_func_search_save_LIBS=$LIBS
14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656 /* end confdefs.h. */
14658 /* Override any GCC internal prototype to avoid an error.
14659 Use char because int might match the return type of a GCC
14660 builtin and then its argument prototype would still apply. */
14668 return inet_ntop ();
14673 for ac_lib in '' nsl; do
14674 if test -z "$ac_lib"; then
14675 ac_res="none required"
14678 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14680 if ac_fn_c_try_link "$LINENO"; then :
14681 ac_cv_search_inet_ntop=$ac_res
14683 rm -f core conftest.err conftest.$ac_objext \
14685 if ${ac_cv_search_inet_ntop+:} false; then :
14689 if ${ac_cv_search_inet_ntop+:} false; then :
14692 ac_cv_search_inet_ntop=no
14694 rm conftest.$ac_ext
14695 LIBS=$ac_func_search_save_LIBS
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
14698 $as_echo "$ac_cv_search_inet_ntop" >&6; }
14699 ac_res=$ac_cv_search_inet_ntop
14700 if test "$ac_res" != no; then :
14701 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14712 for ac_func in inet_ntop
14714 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
14715 if test "x$ac_cv_func_inet_ntop" = xyes; then :
14716 cat >>confdefs.h <<_ACEOF
14717 #define HAVE_INET_NTOP 1
14722 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
14732 if test "$ac_cv_search_inet_ntop" != "no" &&
14733 test "$ac_cv_search_inet_ntop" != "none required"; then
14734 INET_NTOP_LIB="$ac_cv_search_inet_ntop"
14739 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
14741 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
14747 cat >>confdefs.h <<_ACEOF
14748 #define HAVE_DECL_INET_NTOP $ac_have_decl
14751 if test $ac_cv_have_decl_inet_ntop = no; then
14752 HAVE_DECL_INET_NTOP=0
14764 # Code from module inet_pton:
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
14774 $as_echo_n "checking for library containing inet_pton... " >&6; }
14775 if ${ac_cv_search_inet_pton+:} false; then :
14776 $as_echo_n "(cached) " >&6
14778 ac_func_search_save_LIBS=$LIBS
14779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780 /* end confdefs.h. */
14782 /* Override any GCC internal prototype to avoid an error.
14783 Use char because int might match the return type of a GCC
14784 builtin and then its argument prototype would still apply. */
14792 return inet_pton ();
14797 for ac_lib in '' nsl; do
14798 if test -z "$ac_lib"; then
14799 ac_res="none required"
14802 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14804 if ac_fn_c_try_link "$LINENO"; then :
14805 ac_cv_search_inet_pton=$ac_res
14807 rm -f core conftest.err conftest.$ac_objext \
14809 if ${ac_cv_search_inet_pton+:} false; then :
14813 if ${ac_cv_search_inet_pton+:} false; then :
14816 ac_cv_search_inet_pton=no
14818 rm conftest.$ac_ext
14819 LIBS=$ac_func_search_save_LIBS
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
14822 $as_echo "$ac_cv_search_inet_pton" >&6; }
14823 ac_res=$ac_cv_search_inet_pton
14824 if test "$ac_res" != no; then :
14825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14836 for ac_func in inet_pton
14838 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
14839 if test "x$ac_cv_func_inet_pton" = xyes; then :
14840 cat >>confdefs.h <<_ACEOF
14841 #define HAVE_INET_PTON 1
14846 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
14856 if test "$ac_cv_search_inet_pton" != "no" &&
14857 test "$ac_cv_search_inet_pton" != "none required"; then
14858 INET_PTON_LIB="$ac_cv_search_inet_pton"
14863 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h>
14865 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
14871 cat >>confdefs.h <<_ACEOF
14872 #define HAVE_DECL_INET_PTON $ac_have_decl
14875 if test $ac_cv_have_decl_inet_pton = no; then
14876 HAVE_DECL_INET_PTON=0
14888 # Code from module langinfo:
14906 if test $gl_cv_have_include_next = yes; then
14907 gl_cv_next_langinfo_h='<'langinfo.h'>'
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
14910 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
14911 if ${gl_cv_next_langinfo_h+:} false; then :
14912 $as_echo_n "(cached) " >&6
14915 if test $ac_cv_header_langinfo_h = yes; then
14916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14917 /* end confdefs.h. */
14918 #include <langinfo.h>
14922 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14923 *) gl_absname_cpp="$ac_cpp" ;;
14925 gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14926 sed -n '\#/langinfo.h#{
14927 s#.*"\(.*/langinfo.h\)".*#\1#
14933 gl_cv_next_langinfo_h='<'langinfo.h'>'
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
14938 $as_echo "$gl_cv_next_langinfo_h" >&6; }
14940 NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
14942 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14943 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14944 gl_next_as_first_directive='<'langinfo.h'>'
14946 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14947 gl_next_as_first_directive=$gl_cv_next_langinfo_h
14949 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
14954 HAVE_LANGINFO_CODESET=0
14955 HAVE_LANGINFO_ERA=0
14963 if test $ac_cv_header_langinfo_h = yes; then
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
14966 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
14967 if ${gl_cv_header_langinfo_codeset+:} false; then :
14968 $as_echo_n "(cached) " >&6
14970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14971 /* end confdefs.h. */
14972 #include <langinfo.h>
14983 if ac_fn_c_try_compile "$LINENO"; then :
14984 gl_cv_header_langinfo_codeset=yes
14986 gl_cv_header_langinfo_codeset=no
14988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
14992 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
14993 if test $gl_cv_header_langinfo_codeset = yes; then
14994 HAVE_LANGINFO_CODESET=1
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
14997 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
14998 if ${gl_cv_header_langinfo_era+:} false; then :
14999 $as_echo_n "(cached) " >&6
15001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15002 /* end confdefs.h. */
15003 #include <langinfo.h>
15014 if ac_fn_c_try_compile "$LINENO"; then :
15015 gl_cv_header_langinfo_era=yes
15017 gl_cv_header_langinfo_era=no
15019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
15023 $as_echo "$gl_cv_header_langinfo_era" >&6; }
15024 if test $gl_cv_header_langinfo_era = yes; then
15025 HAVE_LANGINFO_ERA=1
15035 for gl_func in nl_langinfo; do
15036 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15038 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15039 if eval \${$as_gl_Symbol+:} false; then :
15040 $as_echo_n "(cached) " >&6
15042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043 /* end confdefs.h. */
15044 #include <langinfo.h>
15055 if ac_fn_c_try_compile "$LINENO"; then :
15056 eval "$as_gl_Symbol=yes"
15058 eval "$as_gl_Symbol=no"
15060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15062 eval ac_res=\$$as_gl_Symbol
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15064 $as_echo "$ac_res" >&6; }
15065 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
15066 cat >>confdefs.h <<_ACEOF
15067 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15070 eval ac_cv_have_decl_$gl_func=yes
15075 # Code from module localcharset:
15090 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
15092 # Code from module lock:
15095 if test "$gl_threads_api" = posix; then
15096 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
15097 # pthread_rwlock_* functions.
15098 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
15100 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
15102 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
15106 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
15107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15108 /* end confdefs.h. */
15110 #include <pthread.h>
15115 #if __FreeBSD__ == 4
15116 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
15118 int x = (int)PTHREAD_MUTEX_RECURSIVE;
15126 if ac_fn_c_try_compile "$LINENO"; then :
15128 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
15131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15137 # Code from module lseek:
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
15142 $as_echo_n "checking whether lseek detects pipes... " >&6; }
15143 if ${gl_cv_func_lseek_pipe+:} false; then :
15144 $as_echo_n "(cached) " >&6
15146 if test $cross_compiling = no; then
15147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15148 /* end confdefs.h. */
15150 #include <sys/types.h> /* for off_t */
15151 #include <stdio.h> /* for SEEK_CUR */
15152 #include <unistd.h>
15157 /* Exit with success only if stdin is seekable. */
15158 return lseek (0, (off_t)0, SEEK_CUR) < 0;
15164 if ac_fn_c_try_link "$LINENO"; then :
15165 if test -s conftest$ac_exeext \
15166 && ./conftest$ac_exeext < conftest.$ac_ext \
15167 && test 1 = "`echo hi \
15168 | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
15169 gl_cv_func_lseek_pipe=yes
15171 gl_cv_func_lseek_pipe=no
15174 gl_cv_func_lseek_pipe=no
15176 rm -f core conftest.err conftest.$ac_objext \
15177 conftest$ac_exeext conftest.$ac_ext
15179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15180 /* end confdefs.h. */
15182 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
15183 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes. */
15187 if ac_fn_c_try_compile "$LINENO"; then :
15188 gl_cv_func_lseek_pipe=yes
15190 gl_cv_func_lseek_pipe=no
15192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
15196 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
15197 if test $gl_cv_func_lseek_pipe = no; then
15207 gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
15212 $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
15224 $as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
15228 # Code from module lstat:
15238 if test $ac_cv_func_lstat = yes; then
15240 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
15243 # Prerequisites of lib/lstat.c.
15256 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
15260 # Code from module malloc-gnu:
15263 for ac_header in stdlib.h
15265 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15266 if test "x$ac_cv_header_stdlib_h" = xyes; then :
15267 cat >>confdefs.h <<_ACEOF
15268 #define HAVE_STDLIB_H 1
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15276 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15277 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
15278 $as_echo_n "(cached) " >&6
15280 if test "$cross_compiling" = yes; then :
15281 ac_cv_func_malloc_0_nonnull=no
15283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15284 /* end confdefs.h. */
15285 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15286 # include <stdlib.h>
15294 return ! malloc (0);
15299 if ac_fn_c_try_run "$LINENO"; then :
15300 ac_cv_func_malloc_0_nonnull=yes
15302 ac_cv_func_malloc_0_nonnull=no
15304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15305 conftest.$ac_objext conftest.beam conftest.$ac_ext
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15310 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15311 if test $ac_cv_func_malloc_0_nonnull = yes; then :
15313 $as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h
15316 $as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h
15327 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
15337 cat >>confdefs.h <<_ACEOF
15338 #define GNULIB_MALLOC_GNU 1
15342 # Code from module malloc-posix:
15346 if test $gl_cv_func_malloc_posix = yes; then
15348 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
15360 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
15369 GNULIB_MALLOC_POSIX=1
15373 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
15377 # Code from module mbrtowc:
15400 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15405 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15406 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
15407 $as_echo_n "(cached) " >&6
15411 # Guess no on AIX and OSF/1.
15412 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15413 # Guess yes otherwise.
15414 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15416 if test $LOCALE_JA != none; then
15417 if test "$cross_compiling" = yes; then :
15420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15421 /* end confdefs.h. */
15423 #include <locale.h>
15424 #include <string.h>
15428 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15430 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15434 memset (&state, '\0', sizeof (mbstate_t));
15435 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15436 if (mbsinit (&state))
15442 if ac_fn_c_try_run "$LINENO"; then :
15443 gl_cv_func_mbrtowc_incomplete_state=yes
15445 gl_cv_func_mbrtowc_incomplete_state=no
15447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15448 conftest.$ac_objext conftest.beam conftest.$ac_ext
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15455 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15461 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15462 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
15463 $as_echo_n "(cached) " >&6
15467 # Guess no on Solaris 8.
15468 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15469 # Guess yes otherwise.
15470 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15472 if test $LOCALE_ZH_CN != none; then
15473 if test "$cross_compiling" = yes; then :
15476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15477 /* end confdefs.h. */
15479 #include <locale.h>
15480 #include <stdlib.h>
15481 #include <string.h>
15485 /* This fails on Solaris 8:
15486 mbrtowc returns 2, and sets wc to 0x00F0.
15487 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15488 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15490 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15494 memset (&state, '\0', sizeof (mbstate_t));
15495 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15496 && mbtowc (&wc, input + 3, 6) == 4)
15502 if ac_fn_c_try_run "$LINENO"; then :
15503 gl_cv_func_mbrtowc_sanitycheck=yes
15505 gl_cv_func_mbrtowc_sanitycheck=no
15507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15508 conftest.$ac_objext conftest.beam conftest.$ac_ext
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15515 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15517 REPLACE_MBSTATE_T=0
15518 case "$gl_cv_func_mbrtowc_incomplete_state" in
15520 *) REPLACE_MBSTATE_T=1 ;;
15522 case "$gl_cv_func_mbrtowc_sanitycheck" in
15524 *) REPLACE_MBSTATE_T=1 ;;
15527 REPLACE_MBSTATE_T=1
15529 if test $REPLACE_MBSTATE_T = 1; then
15543 if test $ac_cv_func_mbrtowc = no; then
15546 if test $REPLACE_MBSTATE_T = 1; then
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
15553 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
15554 if ${gl_cv_func_mbrtowc_null_arg+:} false; then :
15555 $as_echo_n "(cached) " >&6
15559 # Guess no on OSF/1.
15560 osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
15561 # Guess yes otherwise.
15562 *) gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
15564 if test $LOCALE_FR_UTF8 != none; then
15565 if test "$cross_compiling" = yes; then :
15568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15569 /* end confdefs.h. */
15571 #include <locale.h>
15572 #include <string.h>
15576 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15582 memset (&state, '\0', sizeof (mbstate_t));
15583 wc = (wchar_t) 0xBADFACE;
15584 mbrtowc (&wc, NULL, 5, &state);
15585 /* Check that wc was not modified. */
15586 if (wc != (wchar_t) 0xBADFACE)
15592 if ac_fn_c_try_run "$LINENO"; then :
15593 gl_cv_func_mbrtowc_null_arg=yes
15595 gl_cv_func_mbrtowc_null_arg=no
15597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15598 conftest.$ac_objext conftest.beam conftest.$ac_ext
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg" >&5
15605 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
15612 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
15613 if ${gl_cv_func_mbrtowc_retval+:} false; then :
15614 $as_echo_n "(cached) " >&6
15618 # Guess no on HP-UX and Solaris.
15619 hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
15620 # Guess yes otherwise.
15621 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
15623 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
15624 if test "$cross_compiling" = yes; then :
15627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15628 /* end confdefs.h. */
15630 #include <locale.h>
15631 #include <string.h>
15635 /* This fails on Solaris. */
15636 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15638 char input[] = "B\303\274\303\237er"; /* "Büßer" */
15642 memset (&state, '\0', sizeof (mbstate_t));
15643 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15646 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
15650 /* This fails on HP-UX 11.11. */
15651 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15653 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15657 memset (&state, '\0', sizeof (mbstate_t));
15658 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15661 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
15668 if ac_fn_c_try_run "$LINENO"; then :
15669 gl_cv_func_mbrtowc_retval=yes
15671 gl_cv_func_mbrtowc_retval=no
15673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15674 conftest.$ac_objext conftest.beam conftest.$ac_ext
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
15681 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
15687 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
15688 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
15689 $as_echo_n "(cached) " >&6
15693 # Guess no on Solaris 8 and 9.
15694 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
15695 # Guess yes otherwise.
15696 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
15698 if test $LOCALE_ZH_CN != none; then
15699 if test "$cross_compiling" = yes; then :
15702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15703 /* end confdefs.h. */
15705 #include <locale.h>
15706 #include <string.h>
15710 /* This fails on Solaris 8 and 9. */
15711 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15716 memset (&state, '\0', sizeof (mbstate_t));
15717 if (mbrtowc (&wc, "", 1, &state) != 0)
15723 if ac_fn_c_try_run "$LINENO"; then :
15724 gl_cv_func_mbrtowc_nul_retval=yes
15726 gl_cv_func_mbrtowc_nul_retval=no
15728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15729 conftest.$ac_objext conftest.beam conftest.$ac_ext
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
15736 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
15738 case "$gl_cv_func_mbrtowc_null_arg" in
15741 $as_echo "#define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h
15746 case "$gl_cv_func_mbrtowc_retval" in
15749 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
15754 case "$gl_cv_func_mbrtowc_nul_retval" in
15757 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
15764 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
15776 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
15790 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
15794 # Code from module mbsinit:
15817 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15822 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15823 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
15824 $as_echo_n "(cached) " >&6
15828 # Guess no on AIX and OSF/1.
15829 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15830 # Guess yes otherwise.
15831 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15833 if test $LOCALE_JA != none; then
15834 if test "$cross_compiling" = yes; then :
15837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15838 /* end confdefs.h. */
15840 #include <locale.h>
15841 #include <string.h>
15845 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15847 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15851 memset (&state, '\0', sizeof (mbstate_t));
15852 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15853 if (mbsinit (&state))
15859 if ac_fn_c_try_run "$LINENO"; then :
15860 gl_cv_func_mbrtowc_incomplete_state=yes
15862 gl_cv_func_mbrtowc_incomplete_state=no
15864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15865 conftest.$ac_objext conftest.beam conftest.$ac_ext
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15872 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15878 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15879 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
15880 $as_echo_n "(cached) " >&6
15884 # Guess no on Solaris 8.
15885 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15886 # Guess yes otherwise.
15887 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15889 if test $LOCALE_ZH_CN != none; then
15890 if test "$cross_compiling" = yes; then :
15893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15894 /* end confdefs.h. */
15896 #include <locale.h>
15897 #include <stdlib.h>
15898 #include <string.h>
15902 /* This fails on Solaris 8:
15903 mbrtowc returns 2, and sets wc to 0x00F0.
15904 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15905 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15907 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15911 memset (&state, '\0', sizeof (mbstate_t));
15912 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15913 && mbtowc (&wc, input + 3, 6) == 4)
15919 if ac_fn_c_try_run "$LINENO"; then :
15920 gl_cv_func_mbrtowc_sanitycheck=yes
15922 gl_cv_func_mbrtowc_sanitycheck=no
15924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15925 conftest.$ac_objext conftest.beam conftest.$ac_ext
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15932 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15934 REPLACE_MBSTATE_T=0
15935 case "$gl_cv_func_mbrtowc_incomplete_state" in
15937 *) REPLACE_MBSTATE_T=1 ;;
15939 case "$gl_cv_func_mbrtowc_sanitycheck" in
15941 *) REPLACE_MBSTATE_T=1 ;;
15944 REPLACE_MBSTATE_T=1
15946 if test $REPLACE_MBSTATE_T = 1; then
15960 if test $ac_cv_func_mbsinit = no; then
15963 if test $REPLACE_MBSTATE_T = 1; then
15967 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
15979 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
15993 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
15997 # Code from module memchr:
16006 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
16010 # Code from module mkdtemp:
16021 for ac_func in mkdtemp
16023 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
16024 if test "x$ac_cv_func_mkdtemp" = xyes; then :
16025 cat >>confdefs.h <<_ACEOF
16026 #define HAVE_MKDTEMP 1
16031 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
16037 if test $ac_cv_func_mkdtemp = no; then
16050 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
16054 # Code from module multiarch:
16056 # Code from module netdb:
16078 if test $gl_cv_have_include_next = yes; then
16079 gl_cv_next_netdb_h='<'netdb.h'>'
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
16082 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
16083 if ${gl_cv_next_netdb_h+:} false; then :
16084 $as_echo_n "(cached) " >&6
16087 if test $ac_cv_header_netdb_h = yes; then
16088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16089 /* end confdefs.h. */
16094 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16095 *) gl_absname_cpp="$ac_cpp" ;;
16097 gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16098 sed -n '\#/netdb.h#{
16099 s#.*"\(.*/netdb.h\)".*#\1#
16105 gl_cv_next_netdb_h='<'netdb.h'>'
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
16110 $as_echo "$gl_cv_next_netdb_h" >&6; }
16112 NEXT_NETDB_H=$gl_cv_next_netdb_h
16114 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16115 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16116 gl_next_as_first_directive='<'netdb.h'>'
16118 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16119 gl_next_as_first_directive=$gl_cv_next_netdb_h
16121 NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
16125 if test $ac_cv_header_netdb_h = yes; then
16133 for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
16134 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16136 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16137 if eval \${$as_gl_Symbol+:} false; then :
16138 $as_echo_n "(cached) " >&6
16140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16141 /* end confdefs.h. */
16152 if ac_fn_c_try_compile "$LINENO"; then :
16153 eval "$as_gl_Symbol=yes"
16155 eval "$as_gl_Symbol=no"
16157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16159 eval ac_res=\$$as_gl_Symbol
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16161 $as_echo "$ac_res" >&6; }
16162 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
16163 cat >>confdefs.h <<_ACEOF
16164 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16167 eval ac_cv_have_decl_$gl_func=yes
16172 # Code from module netinet_in:
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
16175 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
16176 if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
16177 $as_echo_n "(cached) " >&6
16180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181 /* end confdefs.h. */
16182 #include <netinet/in.h>
16191 if ac_fn_c_try_compile "$LINENO"; then :
16192 gl_cv_header_netinet_in_h_selfcontained=yes
16194 gl_cv_header_netinet_in_h_selfcontained=no
16196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
16200 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
16201 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
16204 NETINET_IN_H='netinet/in.h'
16205 for ac_header in netinet/in.h
16207 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16208 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
16209 cat >>confdefs.h <<_ACEOF
16210 #define HAVE_NETINET_IN_H 1
16229 if test $gl_cv_have_include_next = yes; then
16230 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
16233 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
16234 if ${gl_cv_next_netinet_in_h+:} false; then :
16235 $as_echo_n "(cached) " >&6
16238 if test $ac_cv_header_netinet_in_h = yes; then
16239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16240 /* end confdefs.h. */
16241 #include <netinet/in.h>
16245 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16246 *) gl_absname_cpp="$ac_cpp" ;;
16248 gl_cv_next_netinet_in_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16249 sed -n '\#/netinet/in.h#{
16250 s#.*"\(.*/netinet/in.h\)".*#\1#
16256 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
16261 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
16263 NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
16265 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16266 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16267 gl_next_as_first_directive='<'netinet/in.h'>'
16269 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16270 gl_next_as_first_directive=$gl_cv_next_netinet_in_h
16272 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
16276 if test $ac_cv_header_netinet_in_h = yes; then
16277 HAVE_NETINET_IN_H=1
16279 HAVE_NETINET_IN_H=0
16286 # Code from module nl_langinfo:
16297 if test $ac_cv_func_nl_langinfo = yes; then
16298 if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
16301 REPLACE_NL_LANGINFO=1
16303 $as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
16313 gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
16326 gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
16333 GNULIB_NL_LANGINFO=1
16337 $as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
16341 # Code from module physmem:
16351 gl_LIBOBJS="$gl_LIBOBJS physmem.$ac_objext"
16354 # Prerequisites of lib/physmem.c.
16355 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
16356 machine/hal_sysinfo.h sys/table.h sys/param.h sys/systemcfg.h
16358 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16359 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16361 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16362 cat >>confdefs.h <<_ACEOF
16363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16370 for ac_header in sys/sysctl.h
16372 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
16373 #if HAVE_SYS_PARAM_H
16374 # include <sys/param.h>
16378 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
16379 cat >>confdefs.h <<_ACEOF
16380 #define HAVE_SYS_SYSCTL_H 1
16388 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
16390 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16391 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16392 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16393 cat >>confdefs.h <<_ACEOF
16394 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16402 # Code from module regex:
16413 # Check whether --with-included-regex was given.
16414 if test "${with_included_regex+set}" = set; then :
16415 withval=$with_included_regex;
16419 case $with_included_regex in #(
16420 yes|no) ac_use_included_regex=$with_included_regex
16423 # If the system regex support is good enough that it passes the
16424 # following run test, then default to *not* using the included regex.c.
16425 # If cross compiling, assume the test would fail and use the included
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
16428 $as_echo_n "checking for working re_compile_pattern... " >&6; }
16429 if ${gl_cv_func_re_compile_pattern_working+:} false; then :
16430 $as_echo_n "(cached) " >&6
16432 if test "$cross_compiling" = yes; then :
16433 gl_cv_func_re_compile_pattern_working=no
16435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16436 /* end confdefs.h. */
16437 $ac_includes_default
16439 #include <locale.h>
16441 #include <limits.h>
16447 static struct re_pattern_buffer regex;
16448 unsigned char folded_chars[UCHAR_MAX + 1];
16451 struct re_registers regs;
16454 /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
16455 This test needs valgrind to catch the bug on Debian
16456 GNU/Linux 3.1 x86, but it might catch the bug better
16457 on other platforms and it shouldn't hurt to try the
16459 if (setlocale (LC_ALL, "en_US.UTF-8"))
16461 static char const pat[] = "insert into";
16462 static char const data[] =
16463 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
16464 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
16466 memset (®ex, 0, sizeof regex);
16467 s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
16470 if (re_search (®ex, data, sizeof data - 1,
16471 0, sizeof data - 1, ®s)
16474 if (! setlocale (LC_ALL, "C"))
16479 /* This test is from glibc bug 3957, reported by Andrew Mackey. */
16480 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
16481 memset (®ex, 0, sizeof regex);
16482 s = re_compile_pattern ("a[^x]b", 6, ®ex);
16486 /* This should fail, but succeeds for glibc-2.5. */
16487 if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1)
16490 /* This regular expression is from Spencer ere test number 75
16492 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
16493 memset (®ex, 0, sizeof regex);
16494 for (i = 0; i <= UCHAR_MAX; i++)
16495 folded_chars[i] = i;
16496 regex.translate = folded_chars;
16497 s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex);
16498 /* This should fail with _Invalid character class name_ error. */
16502 /* Ensure that [b-a] is diagnosed as invalid, when
16503 using RE_NO_EMPTY_RANGES. */
16504 re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
16505 memset (®ex, 0, sizeof regex);
16506 s = re_compile_pattern ("a[b-a]", 6, ®ex);
16510 /* This should succeed, but does not for glibc-2.1.3. */
16511 memset (®ex, 0, sizeof regex);
16512 s = re_compile_pattern ("{1", 2, ®ex);
16517 /* The following example is derived from a problem report
16518 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
16519 memset (®ex, 0, sizeof regex);
16520 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
16524 /* This should match, but does not for glibc-2.2.1. */
16525 if (re_match (®ex, "an", 2, 0, ®s) != 2)
16528 memset (®ex, 0, sizeof regex);
16529 s = re_compile_pattern ("x", 1, ®ex);
16533 /* glibc-2.2.93 does not work with a negative RANGE argument. */
16534 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
16537 /* The version of regex.c in older versions of gnulib
16538 ignored RE_ICASE. Detect that problem too. */
16539 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
16540 memset (®ex, 0, sizeof regex);
16541 s = re_compile_pattern ("x", 1, ®ex);
16545 if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
16548 /* Catch a bug reported by Vin Shelton in
16549 http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
16551 re_set_syntax (RE_SYNTAX_POSIX_BASIC
16552 & ~RE_CONTEXT_INVALID_DUP
16553 & ~RE_NO_EMPTY_RANGES);
16554 memset (®ex, 0, sizeof regex);
16555 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex);
16559 /* REG_STARTEND was added to glibc on 2004-01-15.
16560 Reject older versions. */
16561 if (! REG_STARTEND)
16564 /* Reject hosts whose regoff_t values are too narrow.
16565 These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
16567 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
16568 || sizeof (regoff_t) < sizeof (ssize_t))
16576 if ac_fn_c_try_run "$LINENO"; then :
16577 gl_cv_func_re_compile_pattern_working=yes
16579 gl_cv_func_re_compile_pattern_working=no
16581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16582 conftest.$ac_objext conftest.beam conftest.$ac_ext
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
16587 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
16588 case $gl_cv_func_re_compile_pattern_working in #(
16589 yes) ac_use_included_regex=no;; #(
16590 no) ac_use_included_regex=yes;;
16593 *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
16597 if test $ac_use_included_regex = yes; then
16599 $as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
16602 $as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
16605 $as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
16608 $as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
16611 $as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
16614 $as_echo "#define re_search rpl_re_search" >>confdefs.h
16617 $as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
16620 $as_echo "#define re_match rpl_re_match" >>confdefs.h
16623 $as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
16626 $as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
16629 $as_echo "#define re_comp rpl_re_comp" >>confdefs.h
16632 $as_echo "#define re_exec rpl_re_exec" >>confdefs.h
16635 $as_echo "#define regcomp rpl_regcomp" >>confdefs.h
16638 $as_echo "#define regexec rpl_regexec" >>confdefs.h
16641 $as_echo "#define regerror rpl_regerror" >>confdefs.h
16644 $as_echo "#define regfree rpl_regfree" >>confdefs.h
16654 gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
16661 for ac_header in libintl.h
16663 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
16664 if test "x$ac_cv_header_libintl_h" = xyes; then :
16665 cat >>confdefs.h <<_ACEOF
16666 #define HAVE_LIBINTL_H 1
16686 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16688 if test "x$ac_cv_have_decl_isblank" = xyes; then :
16694 cat >>confdefs.h <<_ACEOF
16695 #define HAVE_DECL_ISBLANK $ac_have_decl
16701 # Code from module safe-read:
16711 gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
16718 # Code from module safe-write:
16728 gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
16737 # Code from module servent:
16740 gl_saved_libs="$LIBS"
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
16742 $as_echo_n "checking for library containing getservbyname... " >&6; }
16743 if ${ac_cv_search_getservbyname+:} false; then :
16744 $as_echo_n "(cached) " >&6
16746 ac_func_search_save_LIBS=$LIBS
16747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16748 /* end confdefs.h. */
16750 /* Override any GCC internal prototype to avoid an error.
16751 Use char because int might match the return type of a GCC
16752 builtin and then its argument prototype would still apply. */
16756 char getservbyname ();
16760 return getservbyname ();
16765 for ac_lib in '' socket network net; do
16766 if test -z "$ac_lib"; then
16767 ac_res="none required"
16770 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16772 if ac_fn_c_try_link "$LINENO"; then :
16773 ac_cv_search_getservbyname=$ac_res
16775 rm -f core conftest.err conftest.$ac_objext \
16777 if ${ac_cv_search_getservbyname+:} false; then :
16781 if ${ac_cv_search_getservbyname+:} false; then :
16784 ac_cv_search_getservbyname=no
16786 rm conftest.$ac_ext
16787 LIBS=$ac_func_search_save_LIBS
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
16790 $as_echo "$ac_cv_search_getservbyname" >&6; }
16791 ac_res=$ac_cv_search_getservbyname
16792 if test "$ac_res" != no; then :
16793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16794 if test "$ac_cv_search_getservbyname" != "none required"; then
16795 SERVENT_LIB="$ac_cv_search_getservbyname"
16799 LIBS="$gl_saved_libs"
16800 if test -z "$SERVENT_LIB"; then
16801 for ac_func in getservbyname
16803 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
16804 if test "x$ac_cv_func_getservbyname" = xyes; then :
16805 cat >>confdefs.h <<_ACEOF
16806 #define HAVE_GETSERVBYNAME 1
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
16812 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
16813 if ${gl_cv_w32_getservbyname+:} false; then :
16814 $as_echo_n "(cached) " >&6
16816 gl_cv_w32_getservbyname=no
16817 gl_save_LIBS="$LIBS"
16818 LIBS="$LIBS -lws2_32"
16819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16820 /* end confdefs.h. */
16822 #ifdef HAVE_WINSOCK2_H
16823 #include <winsock2.h>
16825 #include <stddef.h>
16830 getservbyname(NULL,NULL);
16835 if ac_fn_c_try_link "$LINENO"; then :
16836 gl_cv_w32_getservbyname=yes
16838 rm -f core conftest.err conftest.$ac_objext \
16839 conftest$ac_exeext conftest.$ac_ext
16840 LIBS="$gl_save_LIBS"
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
16844 $as_echo "$gl_cv_w32_getservbyname" >&6; }
16845 if test "$gl_cv_w32_getservbyname" = "yes"; then
16846 SERVENT_LIB="-lws2_32"
16855 # Code from module size_max:
16857 for ac_header in stdint.h
16859 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
16860 if test "x$ac_cv_header_stdint_h" = xyes; then :
16861 cat >>confdefs.h <<_ACEOF
16862 #define HAVE_STDINT_H 1
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
16870 $as_echo_n "checking for SIZE_MAX... " >&6; }
16872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16873 /* end confdefs.h. */
16875 #include <limits.h>
16877 #include <stdint.h>
16884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16885 $EGREP "Found it" >/dev/null 2>&1; then :
16890 if test -z "$result"; then
16891 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
16892 #include <limits.h>"; then :
16895 size_t_bits_minus_1=
16899 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
16906 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
16907 if test $fits_in_uint = 1; then
16908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909 /* end confdefs.h. */
16910 #include <stddef.h>
16912 extern unsigned long foo;
16922 if ac_fn_c_try_compile "$LINENO"; then :
16925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16927 if test $fits_in_uint = 1; then
16928 result="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
16930 result="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
16933 result='((size_t)~(size_t)0)'
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
16937 $as_echo "$result" >&6; }
16938 if test "$result" != yes; then
16940 cat >>confdefs.h <<_ACEOF
16941 #define SIZE_MAX $result
16946 # Code from module snprintf:
16949 gl_cv_func_snprintf_usable=no
16950 for ac_func in snprintf
16952 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16953 if test "x$ac_cv_func_snprintf" = xyes; then :
16954 cat >>confdefs.h <<_ACEOF
16955 #define HAVE_SNPRINTF 1
16961 if test $ac_cv_func_snprintf = yes; then
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
16965 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
16966 if ${gl_cv_func_snprintf_size1+:} false; then :
16967 $as_echo_n "(cached) " >&6
16970 if test "$cross_compiling" = yes; then :
16971 gl_cv_func_snprintf_size1="guessing yes"
16973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974 /* end confdefs.h. */
16979 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
16980 snprintf (buf, 1, "%d", 12345);
16981 return buf[1] != 'E';
16984 if ac_fn_c_try_run "$LINENO"; then :
16985 gl_cv_func_snprintf_size1=yes
16987 gl_cv_func_snprintf_size1=no
16989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16990 conftest.$ac_objext conftest.beam conftest.$ac_ext
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
16996 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
16998 case "$gl_cv_func_snprintf_size1" in
17000 gl_cv_func_snprintf_usable=yes
17004 if test $gl_cv_func_snprintf_usable = no; then
17015 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
17017 if test $ac_cv_func_snprintf = yes; then
17030 if test $ac_cv_have_decl_snprintf = no; then
17031 HAVE_DECL_SNPRINTF=0
17041 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
17045 # Code from module socklen:
17046 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
17047 #if HAVE_SYS_SOCKET_H
17048 # include <sys/socket.h>
17049 #elif HAVE_WS2TCPIP_H
17050 # include <ws2tcpip.h>
17053 if test "x$ac_cv_type_socklen_t" = xyes; then :
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
17057 $as_echo_n "checking for socklen_t equivalent... " >&6; }
17058 if ${gl_cv_socklen_t_equiv+:} false; then :
17059 $as_echo_n "(cached) " >&6
17061 # Systems have either "struct sockaddr *" or
17062 # "void *" as the second argument to getpeername
17063 gl_cv_socklen_t_equiv=
17064 for arg2 in "struct sockaddr" void; do
17065 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
17066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17067 /* end confdefs.h. */
17068 #include <sys/types.h>
17069 #include <sys/socket.h>
17071 int getpeername (int, $arg2 *, $t *);
17076 getpeername (0, 0, &len);
17081 if ac_fn_c_try_compile "$LINENO"; then :
17082 gl_cv_socklen_t_equiv="$t"
17084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17085 test "$gl_cv_socklen_t_equiv" != "" && break
17087 test "$gl_cv_socklen_t_equiv" != "" && break
17092 if test "$gl_cv_socklen_t_equiv" = ""; then
17093 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
17096 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
17098 cat >>confdefs.h <<_ACEOF
17099 #define socklen_t $gl_cv_socklen_t_equiv
17104 # Code from module ssize_t:
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17107 $as_echo_n "checking for ssize_t... " >&6; }
17108 if ${gt_cv_ssize_t+:} false; then :
17109 $as_echo_n "(cached) " >&6
17111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17112 /* end confdefs.h. */
17113 #include <sys/types.h>
17117 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17123 if ac_fn_c_try_compile "$LINENO"; then :
17128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
17131 $as_echo "$gt_cv_ssize_t" >&6; }
17132 if test $gt_cv_ssize_t = no; then
17134 $as_echo "#define ssize_t int" >>confdefs.h
17138 # Code from module stat:
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
17150 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
17151 if ${gl_cv_func_stat_dir_slash+:} false; then :
17152 $as_echo_n "(cached) " >&6
17154 if test "$cross_compiling" = yes; then :
17156 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
17157 *) gl_cv_func_stat_dir_slash="guessing yes";;
17160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17161 /* end confdefs.h. */
17162 #include <sys/stat.h>
17167 struct stat st; return stat (".", &st) != stat ("./", &st);
17172 if ac_fn_c_try_run "$LINENO"; then :
17173 gl_cv_func_stat_dir_slash=yes
17175 gl_cv_func_stat_dir_slash=no
17177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17178 conftest.$ac_objext conftest.beam conftest.$ac_ext
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
17183 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
17185 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
17186 if ${gl_cv_func_stat_file_slash+:} false; then :
17187 $as_echo_n "(cached) " >&6
17190 # Assume that if we have lstat, we can also check symlinks.
17191 if test $ac_cv_func_lstat = yes; then
17192 ln -s conftest.tmp conftest.lnk
17194 if test "$cross_compiling" = yes; then :
17195 gl_cv_func_stat_file_slash="guessing no"
17197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17198 /* end confdefs.h. */
17199 #include <sys/stat.h>
17205 if (!stat ("conftest.tmp/", &st)) return 1;
17207 if (!stat ("conftest.lnk/", &st)) return 2;
17214 if ac_fn_c_try_run "$LINENO"; then :
17215 gl_cv_func_stat_file_slash=yes
17217 gl_cv_func_stat_file_slash=no
17219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17220 conftest.$ac_objext conftest.beam conftest.$ac_ext
17223 rm -f conftest.tmp conftest.lnk
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
17226 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
17227 case $gl_cv_func_stat_dir_slash in
17228 *no) REPLACE_STAT=1
17230 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
17233 case $gl_cv_func_stat_file_slash in
17234 *no) REPLACE_STAT=1
17236 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
17239 if test $REPLACE_STAT = 1; then
17248 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
17260 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
17264 # Code from module stdbool:
17268 # Define two additional variables used in the Makefile substitution.
17270 if test "$ac_cv_header_stdbool_h" = yes; then
17273 STDBOOL_H='stdbool.h'
17277 if test "$ac_cv_type__Bool" = yes; then
17284 # Code from module stddef:
17288 if test $gt_cv_c_wchar_t = no; then
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
17293 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
17294 if ${gl_cv_decl_null_works+:} false; then :
17295 $as_echo_n "(cached) " >&6
17297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17298 /* end confdefs.h. */
17299 #include <stddef.h>
17300 int test[2 * (sizeof NULL == sizeof (void *)) -1];
17310 if ac_fn_c_try_compile "$LINENO"; then :
17311 gl_cv_decl_null_works=yes
17313 gl_cv_decl_null_works=no
17315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
17318 $as_echo "$gl_cv_decl_null_works" >&6; }
17319 if test $gl_cv_decl_null_works = no; then
17323 if test -n "$STDDEF_H"; then
17336 if test $gl_cv_have_include_next = yes; then
17337 gl_cv_next_stddef_h='<'stddef.h'>'
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
17340 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
17341 if ${gl_cv_next_stddef_h+:} false; then :
17342 $as_echo_n "(cached) " >&6
17345 if test $ac_cv_header_stddef_h = yes; then
17346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17347 /* end confdefs.h. */
17348 #include <stddef.h>
17352 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17353 *) gl_absname_cpp="$ac_cpp" ;;
17355 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17356 sed -n '\#/stddef.h#{
17357 s#.*"\(.*/stddef.h\)".*#\1#
17363 gl_cv_next_stddef_h='<'stddef.h'>'
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
17368 $as_echo "$gl_cv_next_stddef_h" >&6; }
17370 NEXT_STDDEF_H=$gl_cv_next_stddef_h
17372 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17373 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17374 gl_next_as_first_directive='<'stddef.h'>'
17376 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17377 gl_next_as_first_directive=$gl_cv_next_stddef_h
17379 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
17385 # Code from module stdint:
17389 if test $ac_cv_type_long_long_int = yes; then
17390 HAVE_LONG_LONG_INT=1
17392 HAVE_LONG_LONG_INT=0
17396 if test $ac_cv_type_unsigned_long_long_int = yes; then
17397 HAVE_UNSIGNED_LONG_LONG_INT=1
17399 HAVE_UNSIGNED_LONG_LONG_INT=0
17403 if test $ac_cv_header_inttypes_h = yes; then
17410 if test $ac_cv_header_sys_types_h = yes; then
17429 if test $gl_cv_have_include_next = yes; then
17430 gl_cv_next_stdint_h='<'stdint.h'>'
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17433 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17434 if ${gl_cv_next_stdint_h+:} false; then :
17435 $as_echo_n "(cached) " >&6
17438 if test $ac_cv_header_stdint_h = yes; then
17439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440 /* end confdefs.h. */
17441 #include <stdint.h>
17445 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17446 *) gl_absname_cpp="$ac_cpp" ;;
17448 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17449 sed -n '\#/stdint.h#{
17450 s#.*"\(.*/stdint.h\)".*#\1#
17456 gl_cv_next_stdint_h='<'stdint.h'>'
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17461 $as_echo "$gl_cv_next_stdint_h" >&6; }
17463 NEXT_STDINT_H=$gl_cv_next_stdint_h
17465 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17466 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17467 gl_next_as_first_directive='<'stdint.h'>'
17469 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17470 gl_next_as_first_directive=$gl_cv_next_stdint_h
17472 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17476 if test $ac_cv_header_stdint_h = yes; then
17483 if test $ac_cv_header_stdint_h = yes; then
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17485 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17486 if ${gl_cv_header_working_stdint_h+:} false; then :
17487 $as_echo_n "(cached) " >&6
17489 gl_cv_header_working_stdint_h=no
17490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17491 /* end confdefs.h. */
17494 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17495 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17496 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17497 #include <stdint.h>
17498 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17499 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17500 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17504 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17505 included before <wchar.h>. */
17506 #include <stddef.h>
17507 #include <signal.h>
17509 # include <stdio.h>
17511 # include <wchar.h>
17516 int8_t a1 = INT8_MAX;
17517 int8_t a1min = INT8_MIN;
17520 int16_t a2 = INT16_MAX;
17521 int16_t a2min = INT16_MIN;
17524 int32_t a3 = INT32_MAX;
17525 int32_t a3min = INT32_MIN;
17528 int64_t a4 = INT64_MAX;
17529 int64_t a4min = INT64_MIN;
17532 uint8_t b1 = UINT8_MAX;
17534 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17537 uint16_t b2 = UINT16_MAX;
17540 uint32_t b3 = UINT32_MAX;
17543 uint64_t b4 = UINT64_MAX;
17545 int_least8_t c1 = INT8_C (0x7f);
17546 int_least8_t c1max = INT_LEAST8_MAX;
17547 int_least8_t c1min = INT_LEAST8_MIN;
17548 int_least16_t c2 = INT16_C (0x7fff);
17549 int_least16_t c2max = INT_LEAST16_MAX;
17550 int_least16_t c2min = INT_LEAST16_MIN;
17551 int_least32_t c3 = INT32_C (0x7fffffff);
17552 int_least32_t c3max = INT_LEAST32_MAX;
17553 int_least32_t c3min = INT_LEAST32_MIN;
17554 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17555 int_least64_t c4max = INT_LEAST64_MAX;
17556 int_least64_t c4min = INT_LEAST64_MIN;
17557 uint_least8_t d1 = UINT8_C (0xff);
17558 uint_least8_t d1max = UINT_LEAST8_MAX;
17559 uint_least16_t d2 = UINT16_C (0xffff);
17560 uint_least16_t d2max = UINT_LEAST16_MAX;
17561 uint_least32_t d3 = UINT32_C (0xffffffff);
17562 uint_least32_t d3max = UINT_LEAST32_MAX;
17563 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17564 uint_least64_t d4max = UINT_LEAST64_MAX;
17565 int_fast8_t e1 = INT_FAST8_MAX;
17566 int_fast8_t e1min = INT_FAST8_MIN;
17567 int_fast16_t e2 = INT_FAST16_MAX;
17568 int_fast16_t e2min = INT_FAST16_MIN;
17569 int_fast32_t e3 = INT_FAST32_MAX;
17570 int_fast32_t e3min = INT_FAST32_MIN;
17571 int_fast64_t e4 = INT_FAST64_MAX;
17572 int_fast64_t e4min = INT_FAST64_MIN;
17573 uint_fast8_t f1 = UINT_FAST8_MAX;
17574 uint_fast16_t f2 = UINT_FAST16_MAX;
17575 uint_fast32_t f3 = UINT_FAST32_MAX;
17576 uint_fast64_t f4 = UINT_FAST64_MAX;
17578 intptr_t g = INTPTR_MAX;
17579 intptr_t gmin = INTPTR_MIN;
17582 uintptr_t h = UINTPTR_MAX;
17584 intmax_t i = INTMAX_MAX;
17585 uintmax_t j = UINTMAX_MAX;
17587 #include <limits.h> /* for CHAR_BIT */
17588 #define TYPE_MINIMUM(t) \
17589 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
17590 #define TYPE_MAXIMUM(t) \
17591 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
17594 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17595 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17597 /* Detect bug in FreeBSD 6.0 / ia64. */
17598 int check_SIG_ATOMIC:
17599 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17600 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17602 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17604 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17605 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17607 /* Detect bug in mingw. */
17609 WINT_MIN == TYPE_MINIMUM (wint_t)
17610 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17613 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17615 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17616 int check_UINT16_C:
17617 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17619 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17621 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17624 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17627 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17630 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17632 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17633 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17634 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17635 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17636 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17637 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17638 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17639 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17640 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17641 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17642 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17653 if ac_fn_c_try_compile "$LINENO"; then :
17654 if test "$cross_compiling" = yes; then :
17655 gl_cv_header_working_stdint_h=yes
17658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17659 /* end confdefs.h. */
17662 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17663 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17664 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17665 #include <stdint.h>
17668 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17669 included before <wchar.h>. */
17670 #include <stddef.h>
17671 #include <signal.h>
17673 # include <stdio.h>
17675 # include <wchar.h>
17680 #include <string.h>
17681 #define MVAL(macro) MVAL1(macro)
17682 #define MVAL1(expression) #expression
17683 static const char *macro_values[] =
17717 for (mv = macro_values; *mv != NULL; mv++)
17719 const char *value = *mv;
17720 /* Test whether it looks like a cast expression. */
17721 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17722 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17723 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17724 || strncmp (value, "((int)"/*)*/, 6) == 0
17725 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17726 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17735 if ac_fn_c_try_run "$LINENO"; then :
17736 gl_cv_header_working_stdint_h=yes
17738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17739 conftest.$ac_objext conftest.beam conftest.$ac_ext
17744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17748 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17750 if test "$gl_cv_header_working_stdint_h" = yes; then
17753 for ac_header in sys/inttypes.h sys/bitypes.h
17755 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17756 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17757 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17758 cat >>confdefs.h <<_ACEOF
17759 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17766 if test $ac_cv_header_sys_inttypes_h = yes; then
17767 HAVE_SYS_INTTYPES_H=1
17769 HAVE_SYS_INTTYPES_H=0
17772 if test $ac_cv_header_sys_bitypes_h = yes; then
17773 HAVE_SYS_BITYPES_H=1
17775 HAVE_SYS_BITYPES_H=0
17789 if test $APPLE_UNIVERSAL_BUILD = 0; then
17792 for gltype in ptrdiff_t size_t ; do
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17794 $as_echo_n "checking for bit size of $gltype... " >&6; }
17795 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
17796 $as_echo_n "(cached) " >&6
17798 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17799 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17800 included before <wchar.h>. */
17801 #include <stddef.h>
17802 #include <signal.h>
17804 # include <stdio.h>
17806 # include <wchar.h>
17809 #include <limits.h>"; then :
17815 eval gl_cv_bitsizeof_${gltype}=\$result
17818 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17820 $as_echo "$ac_res" >&6; }
17821 eval result=\$gl_cv_bitsizeof_${gltype}
17822 if test $result = unknown; then
17825 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17826 cat >>confdefs.h <<_ACEOF
17827 #define BITSIZEOF_${GLTYPE} $result
17830 eval BITSIZEOF_${GLTYPE}=\$result
17837 for gltype in sig_atomic_t wchar_t wint_t ; do
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17839 $as_echo_n "checking for bit size of $gltype... " >&6; }
17840 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
17841 $as_echo_n "(cached) " >&6
17843 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17844 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17845 included before <wchar.h>. */
17846 #include <stddef.h>
17847 #include <signal.h>
17849 # include <stdio.h>
17851 # include <wchar.h>
17854 #include <limits.h>"; then :
17860 eval gl_cv_bitsizeof_${gltype}=\$result
17863 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17865 $as_echo "$ac_res" >&6; }
17866 eval result=\$gl_cv_bitsizeof_${gltype}
17867 if test $result = unknown; then
17870 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17871 cat >>confdefs.h <<_ACEOF
17872 #define BITSIZEOF_${GLTYPE} $result
17875 eval BITSIZEOF_${GLTYPE}=\$result
17881 for gltype in sig_atomic_t wchar_t wint_t ; do
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17883 $as_echo_n "checking whether $gltype is signed... " >&6; }
17884 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
17885 $as_echo_n "(cached) " >&6
17887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17888 /* end confdefs.h. */
17890 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17891 included before <wchar.h>. */
17892 #include <stddef.h>
17893 #include <signal.h>
17895 # include <stdio.h>
17897 # include <wchar.h>
17900 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17909 if ac_fn_c_try_compile "$LINENO"; then :
17914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17915 eval gl_cv_type_${gltype}_signed=\$result
17918 eval ac_res=\$gl_cv_type_${gltype}_signed
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17920 $as_echo "$ac_res" >&6; }
17921 eval result=\$gl_cv_type_${gltype}_signed
17922 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17923 if test "$result" = yes; then
17924 cat >>confdefs.h <<_ACEOF
17925 #define HAVE_SIGNED_${GLTYPE} 1
17928 eval HAVE_SIGNED_${GLTYPE}=1
17930 eval HAVE_SIGNED_${GLTYPE}=0
17935 gl_cv_type_ptrdiff_t_signed=yes
17936 gl_cv_type_size_t_signed=no
17937 if test $APPLE_UNIVERSAL_BUILD = 0; then
17940 for gltype in ptrdiff_t size_t ; do
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17942 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17943 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
17944 $as_echo_n "(cached) " >&6
17946 eval gl_cv_type_${gltype}_suffix=no
17947 eval result=\$gl_cv_type_${gltype}_signed
17948 if test "$result" = yes; then
17953 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17955 '') gltype1='int';;
17956 l) gltype1='long int';;
17957 ll) gltype1='long long int';;
17958 i64) gltype1='__int64';;
17959 u) gltype1='unsigned int';;
17960 ul) gltype1='unsigned long int';;
17961 ull) gltype1='unsigned long long int';;
17962 ui64)gltype1='unsigned __int64';;
17964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17965 /* end confdefs.h. */
17967 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17968 included before <wchar.h>. */
17969 #include <stddef.h>
17970 #include <signal.h>
17972 # include <stdio.h>
17974 # include <wchar.h>
17977 extern $gltype foo;
17978 extern $gltype1 foo;
17987 if ac_fn_c_try_compile "$LINENO"; then :
17988 eval gl_cv_type_${gltype}_suffix=\$glsuf
17990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17991 eval result=\$gl_cv_type_${gltype}_suffix
17992 test "$result" != no && break
17995 eval ac_res=\$gl_cv_type_${gltype}_suffix
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17997 $as_echo "$ac_res" >&6; }
17998 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17999 eval result=\$gl_cv_type_${gltype}_suffix
18000 test "$result" = no && result=
18001 eval ${GLTYPE}_SUFFIX=\$result
18002 cat >>confdefs.h <<_ACEOF
18003 #define ${GLTYPE}_SUFFIX $result
18012 for gltype in sig_atomic_t wchar_t wint_t ; do
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18014 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18015 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18016 $as_echo_n "(cached) " >&6
18018 eval gl_cv_type_${gltype}_suffix=no
18019 eval result=\$gl_cv_type_${gltype}_signed
18020 if test "$result" = yes; then
18025 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18027 '') gltype1='int';;
18028 l) gltype1='long int';;
18029 ll) gltype1='long long int';;
18030 i64) gltype1='__int64';;
18031 u) gltype1='unsigned int';;
18032 ul) gltype1='unsigned long int';;
18033 ull) gltype1='unsigned long long int';;
18034 ui64)gltype1='unsigned __int64';;
18036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18037 /* end confdefs.h. */
18039 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18040 included before <wchar.h>. */
18041 #include <stddef.h>
18042 #include <signal.h>
18044 # include <stdio.h>
18046 # include <wchar.h>
18049 extern $gltype foo;
18050 extern $gltype1 foo;
18059 if ac_fn_c_try_compile "$LINENO"; then :
18060 eval gl_cv_type_${gltype}_suffix=\$glsuf
18062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18063 eval result=\$gl_cv_type_${gltype}_suffix
18064 test "$result" != no && break
18067 eval ac_res=\$gl_cv_type_${gltype}_suffix
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18069 $as_echo "$ac_res" >&6; }
18070 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18071 eval result=\$gl_cv_type_${gltype}_suffix
18072 test "$result" = no && result=
18073 eval ${GLTYPE}_SUFFIX=\$result
18074 cat >>confdefs.h <<_ACEOF
18075 #define ${GLTYPE}_SUFFIX $result
18086 # Code from module stdio:
18103 if test $gl_cv_have_include_next = yes; then
18104 gl_cv_next_stdio_h='<'stdio.h'>'
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
18107 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
18108 if ${gl_cv_next_stdio_h+:} false; then :
18109 $as_echo_n "(cached) " >&6
18112 if test $ac_cv_header_stdio_h = yes; then
18113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18114 /* end confdefs.h. */
18119 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18120 *) gl_absname_cpp="$ac_cpp" ;;
18122 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18123 sed -n '\#/stdio.h#{
18124 s#.*"\(.*/stdio.h\)".*#\1#
18130 gl_cv_next_stdio_h='<'stdio.h'>'
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
18135 $as_echo "$gl_cv_next_stdio_h" >&6; }
18137 NEXT_STDIO_H=$gl_cv_next_stdio_h
18139 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18140 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18141 gl_next_as_first_directive='<'stdio.h'>'
18143 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18144 gl_next_as_first_directive=$gl_cv_next_stdio_h
18146 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
18163 for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat snprintf tmpfile vdprintf vsnprintf; do
18164 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18166 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18167 if eval \${$as_gl_Symbol+:} false; then :
18168 $as_echo_n "(cached) " >&6
18170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18171 /* end confdefs.h. */
18183 if ac_fn_c_try_compile "$LINENO"; then :
18184 eval "$as_gl_Symbol=yes"
18186 eval "$as_gl_Symbol=no"
18188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18190 eval ac_res=\$$as_gl_Symbol
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18192 $as_echo "$ac_res" >&6; }
18193 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18194 cat >>confdefs.h <<_ACEOF
18195 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18198 eval ac_cv_have_decl_$gl_func=yes
18203 # Code from module stdlib:
18218 if test $gl_cv_have_include_next = yes; then
18219 gl_cv_next_stdlib_h='<'stdlib.h'>'
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
18222 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
18223 if ${gl_cv_next_stdlib_h+:} false; then :
18224 $as_echo_n "(cached) " >&6
18227 if test $ac_cv_header_stdlib_h = yes; then
18228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18229 /* end confdefs.h. */
18230 #include <stdlib.h>
18234 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18235 *) gl_absname_cpp="$ac_cpp" ;;
18237 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18238 sed -n '\#/stdlib.h#{
18239 s#.*"\(.*/stdlib.h\)".*#\1#
18245 gl_cv_next_stdlib_h='<'stdlib.h'>'
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
18250 $as_echo "$gl_cv_next_stdlib_h" >&6; }
18252 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
18254 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18255 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18256 gl_next_as_first_directive='<'stdlib.h'>'
18258 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18259 gl_next_as_first_directive=$gl_cv_next_stdlib_h
18261 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
18265 for ac_header in random.h
18267 ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
18269 if test "x$ac_cv_header_random_h" = xyes; then :
18270 cat >>confdefs.h <<_ACEOF
18271 #define HAVE_RANDOM_H 1
18278 if test $ac_cv_header_random_h = yes; then
18284 ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
18286 # include <random.h>
18290 if test "x$ac_cv_type_struct_random_data" = xyes; then :
18292 cat >>confdefs.h <<_ACEOF
18293 #define HAVE_STRUCT_RANDOM_DATA 1
18298 HAVE_STRUCT_RANDOM_DATA=0
18303 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
18304 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18306 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18307 if eval \${$as_gl_Symbol+:} false; then :
18308 $as_echo_n "(cached) " >&6
18310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18311 /* end confdefs.h. */
18312 #include <stdlib.h>
18313 #if HAVE_SYS_LOADAVG_H
18314 # include <sys/loadavg.h>
18317 # include <random.h>
18329 if ac_fn_c_try_compile "$LINENO"; then :
18330 eval "$as_gl_Symbol=yes"
18332 eval "$as_gl_Symbol=no"
18334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18336 eval ac_res=\$$as_gl_Symbol
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18338 $as_echo "$ac_res" >&6; }
18339 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18340 cat >>confdefs.h <<_ACEOF
18341 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18344 eval ac_cv_have_decl_$gl_func=yes
18349 # Code from module streq:
18350 # Code from module string:
18354 # Code from module sys_socket:
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
18360 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
18361 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
18362 $as_echo_n "(cached) " >&6
18365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18366 /* end confdefs.h. */
18367 #include <sys/socket.h>
18376 if ac_fn_c_try_compile "$LINENO"; then :
18377 gl_cv_header_sys_socket_h_selfcontained=yes
18379 gl_cv_header_sys_socket_h_selfcontained=no
18381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
18385 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
18386 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
18387 for ac_func in shutdown
18389 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
18390 if test "x$ac_cv_func_shutdown" = xyes; then :
18391 cat >>confdefs.h <<_ACEOF
18392 #define HAVE_SHUTDOWN 1
18398 if test $ac_cv_func_shutdown = yes; then
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
18400 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
18401 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
18402 $as_echo_n "(cached) " >&6
18405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18406 /* end confdefs.h. */
18407 #include <sys/socket.h>
18411 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
18416 if ac_fn_c_try_compile "$LINENO"; then :
18417 gl_cv_header_sys_socket_h_shut=yes
18419 gl_cv_header_sys_socket_h_shut=no
18421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
18425 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
18426 if test $gl_cv_header_sys_socket_h_shut = no; then
18427 SYS_SOCKET_H='sys/socket.h'
18431 # We need to check for ws2tcpip.h now.
18445 if test $gl_cv_have_include_next = yes; then
18446 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
18449 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
18450 if ${gl_cv_next_sys_socket_h+:} false; then :
18451 $as_echo_n "(cached) " >&6
18454 if test $ac_cv_header_sys_socket_h = yes; then
18455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18456 /* end confdefs.h. */
18457 #include <sys/socket.h>
18461 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18462 *) gl_absname_cpp="$ac_cpp" ;;
18464 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18465 sed -n '\#/sys/socket.h#{
18466 s#.*"\(.*/sys/socket.h\)".*#\1#
18472 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
18477 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
18479 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
18481 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18482 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18483 gl_next_as_first_directive='<'sys/socket.h'>'
18485 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18486 gl_next_as_first_directive=$gl_cv_next_sys_socket_h
18488 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
18492 if test $ac_cv_header_sys_socket_h = yes; then
18493 HAVE_SYS_SOCKET_H=1
18496 HAVE_SYS_SOCKET_H=0
18497 for ac_header in ws2tcpip.h
18499 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18500 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
18501 cat >>confdefs.h <<_ACEOF
18502 #define HAVE_WS2TCPIP_H 1
18509 if test $ac_cv_header_ws2tcpip_h = yes; then
18518 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
18519 /* sys/types.h is not needed according to POSIX, but the
18520 sys/socket.h in i386-unknown-freebsd4.10 and
18521 powerpc-apple-darwin5.5 required it. */
18522 #include <sys/types.h>
18523 #ifdef HAVE_SYS_SOCKET_H
18524 #include <sys/socket.h>
18526 #ifdef HAVE_WS2TCPIP_H
18527 #include <ws2tcpip.h>
18531 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
18533 cat >>confdefs.h <<_ACEOF
18534 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
18539 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
18540 /* sys/types.h is not needed according to POSIX, but the
18541 sys/socket.h in i386-unknown-freebsd4.10 and
18542 powerpc-apple-darwin5.5 required it. */
18543 #include <sys/types.h>
18544 #ifdef HAVE_SYS_SOCKET_H
18545 #include <sys/socket.h>
18547 #ifdef HAVE_WS2TCPIP_H
18548 #include <ws2tcpip.h>
18552 if test "x$ac_cv_type_sa_family_t" = xyes; then :
18554 cat >>confdefs.h <<_ACEOF
18555 #define HAVE_SA_FAMILY_T 1
18561 if test $ac_cv_type_struct_sockaddr_storage = no; then
18562 HAVE_STRUCT_SOCKADDR_STORAGE=0
18564 if test $ac_cv_type_sa_family_t = no; then
18577 if test $ac_cv_header_sys_socket_h != yes; then
18578 for ac_header in winsock2.h
18580 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18581 if test "x$ac_cv_header_winsock2_h" = xyes; then :
18582 cat >>confdefs.h <<_ACEOF
18583 #define HAVE_WINSOCK2_H 1
18591 if test "$ac_cv_header_winsock2_h" = yes; then
18593 UNISTD_H_HAVE_WINSOCK2_H=1
18594 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18602 for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do
18603 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18605 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18606 if eval \${$as_gl_Symbol+:} false; then :
18607 $as_echo_n "(cached) " >&6
18609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18610 /* end confdefs.h. */
18612 /* Some systems require prerequisite headers. */
18613 #include <sys/types.h>
18614 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
18615 # include <sys/time.h>
18617 #include <sys/select.h>
18628 if ac_fn_c_try_compile "$LINENO"; then :
18629 eval "$as_gl_Symbol=yes"
18631 eval "$as_gl_Symbol=no"
18633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18635 eval ac_res=\$$as_gl_Symbol
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18637 $as_echo "$ac_res" >&6; }
18638 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18639 cat >>confdefs.h <<_ACEOF
18640 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18643 eval ac_cv_have_decl_$gl_func=yes
18649 # Code from module sys_stat:
18669 if test $gl_cv_have_include_next = yes; then
18670 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
18673 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
18674 if ${gl_cv_next_sys_stat_h+:} false; then :
18675 $as_echo_n "(cached) " >&6
18678 if test $ac_cv_header_sys_stat_h = yes; then
18679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18680 /* end confdefs.h. */
18681 #include <sys/stat.h>
18685 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18686 *) gl_absname_cpp="$ac_cpp" ;;
18688 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18689 sed -n '\#/sys/stat.h#{
18690 s#.*"\(.*/sys/stat.h\)".*#\1#
18696 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
18701 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
18703 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
18705 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18706 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18707 gl_next_as_first_directive='<'sys/stat.h'>'
18709 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18710 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
18712 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
18717 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
18718 #include <sys/stat.h>
18720 if test "x$ac_cv_type_nlink_t" = xyes; then :
18724 $as_echo "#define nlink_t int" >>confdefs.h
18730 for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
18731 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18733 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18734 if eval \${$as_gl_Symbol+:} false; then :
18735 $as_echo_n "(cached) " >&6
18737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18738 /* end confdefs.h. */
18739 #include <sys/stat.h>
18750 if ac_fn_c_try_compile "$LINENO"; then :
18751 eval "$as_gl_Symbol=yes"
18753 eval "$as_gl_Symbol=no"
18755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18757 eval ac_res=\$$as_gl_Symbol
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18759 $as_echo "$ac_res" >&6; }
18760 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18761 cat >>confdefs.h <<_ACEOF
18762 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18765 eval ac_cv_have_decl_$gl_func=yes
18771 # Code from module sys_time:
18776 # Code from module tempname:
18788 gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
18794 # Code from module threadlib:
18799 # Code from module time:
18803 # Code from module unistd:
18820 if test $gl_cv_have_include_next = yes; then
18821 gl_cv_next_unistd_h='<'unistd.h'>'
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18824 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18825 if ${gl_cv_next_unistd_h+:} false; then :
18826 $as_echo_n "(cached) " >&6
18829 if test $ac_cv_header_unistd_h = yes; then
18830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18831 /* end confdefs.h. */
18832 #include <unistd.h>
18836 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18837 *) gl_absname_cpp="$ac_cpp" ;;
18839 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18840 sed -n '\#/unistd.h#{
18841 s#.*"\(.*/unistd.h\)".*#\1#
18847 gl_cv_next_unistd_h='<'unistd.h'>'
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18852 $as_echo "$gl_cv_next_unistd_h" >&6; }
18854 NEXT_UNISTD_H=$gl_cv_next_unistd_h
18856 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18857 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18858 gl_next_as_first_directive='<'unistd.h'>'
18860 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18861 gl_next_as_first_directive=$gl_cv_next_unistd_h
18863 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18875 if test $ac_cv_header_unistd_h = yes; then
18883 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
18884 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18886 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18887 if eval \${$as_gl_Symbol+:} false; then :
18888 $as_echo_n "(cached) " >&6
18890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18891 /* end confdefs.h. */
18892 #include <unistd.h>
18893 /* Some systems declare various items in the wrong headers. */
18895 # include <fcntl.h>
18896 # include <stdio.h>
18897 # include <stdlib.h>
18898 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18912 if ac_fn_c_try_compile "$LINENO"; then :
18913 eval "$as_gl_Symbol=yes"
18915 eval "$as_gl_Symbol=no"
18917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18919 eval ac_res=\$$as_gl_Symbol
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18921 $as_echo "$ac_res" >&6; }
18922 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18923 cat >>confdefs.h <<_ACEOF
18924 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18927 eval ac_cv_have_decl_$gl_func=yes
18932 # Code from module vasnprintf:
18941 if test $ac_cv_func_vasnprintf = no; then
18958 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
18968 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
18978 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
18988 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
18990 if test $ac_cv_func_vasnprintf = yes; then
18992 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
19005 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19006 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19010 $as_echo "#define ptrdiff_t long" >>confdefs.h
19023 # Code from module verify:
19024 # Code from module warn-on-use:
19025 # Code from module wchar:
19048 if test $gl_cv_have_include_next = yes; then
19049 gl_cv_next_wchar_h='<'wchar.h'>'
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
19052 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
19053 if ${gl_cv_next_wchar_h+:} false; then :
19054 $as_echo_n "(cached) " >&6
19057 if test $ac_cv_header_wchar_h = yes; then
19058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19059 /* end confdefs.h. */
19064 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19065 *) gl_absname_cpp="$ac_cpp" ;;
19067 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19068 sed -n '\#/wchar.h#{
19069 s#.*"\(.*/wchar.h\)".*#\1#
19075 gl_cv_next_wchar_h='<'wchar.h'>'
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
19080 $as_echo "$gl_cv_next_wchar_h" >&6; }
19082 NEXT_WCHAR_H=$gl_cv_next_wchar_h
19084 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19085 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19086 gl_next_as_first_directive='<'wchar.h'>'
19088 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19089 gl_next_as_first_directive=$gl_cv_next_wchar_h
19091 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
19095 if test $ac_cv_header_wchar_h = yes; then
19103 if test $gt_cv_c_wint_t = yes; then
19111 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
19112 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19114 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19115 if eval \${$as_gl_Symbol+:} false; then :
19116 $as_echo_n "(cached) " >&6
19118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19119 /* end confdefs.h. */
19121 /* Some systems require additional headers. */
19123 # include <stddef.h>
19124 # include <stdio.h>
19138 if ac_fn_c_try_compile "$LINENO"; then :
19139 eval "$as_gl_Symbol=yes"
19141 eval "$as_gl_Symbol=no"
19143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19145 eval ac_res=\$$as_gl_Symbol
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19147 $as_echo "$ac_res" >&6; }
19148 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19149 cat >>confdefs.h <<_ACEOF
19150 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19153 eval ac_cv_have_decl_$gl_func=yes
19158 # Code from module wcrtomb:
19181 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
19186 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
19187 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
19188 $as_echo_n "(cached) " >&6
19192 # Guess no on AIX and OSF/1.
19193 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
19194 # Guess yes otherwise.
19195 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
19197 if test $LOCALE_JA != none; then
19198 if test "$cross_compiling" = yes; then :
19201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19202 /* end confdefs.h. */
19204 #include <locale.h>
19205 #include <string.h>
19209 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19211 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19215 memset (&state, '\0', sizeof (mbstate_t));
19216 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19217 if (mbsinit (&state))
19223 if ac_fn_c_try_run "$LINENO"; then :
19224 gl_cv_func_mbrtowc_incomplete_state=yes
19226 gl_cv_func_mbrtowc_incomplete_state=no
19228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19229 conftest.$ac_objext conftest.beam conftest.$ac_ext
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19236 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19242 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19243 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
19244 $as_echo_n "(cached) " >&6
19248 # Guess no on Solaris 8.
19249 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
19250 # Guess yes otherwise.
19251 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
19253 if test $LOCALE_ZH_CN != none; then
19254 if test "$cross_compiling" = yes; then :
19257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19258 /* end confdefs.h. */
19260 #include <locale.h>
19261 #include <stdlib.h>
19262 #include <string.h>
19266 /* This fails on Solaris 8:
19267 mbrtowc returns 2, and sets wc to 0x00F0.
19268 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
19269 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19271 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19275 memset (&state, '\0', sizeof (mbstate_t));
19276 if (mbrtowc (&wc, input + 3, 6, &state) != 4
19277 && mbtowc (&wc, input + 3, 6) == 4)
19283 if ac_fn_c_try_run "$LINENO"; then :
19284 gl_cv_func_mbrtowc_sanitycheck=yes
19286 gl_cv_func_mbrtowc_sanitycheck=no
19288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19289 conftest.$ac_objext conftest.beam conftest.$ac_ext
19295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19296 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19298 REPLACE_MBSTATE_T=0
19299 case "$gl_cv_func_mbrtowc_incomplete_state" in
19301 *) REPLACE_MBSTATE_T=1 ;;
19303 case "$gl_cv_func_mbrtowc_sanitycheck" in
19305 *) REPLACE_MBSTATE_T=1 ;;
19308 REPLACE_MBSTATE_T=1
19310 if test $REPLACE_MBSTATE_T = 1; then
19324 if test $ac_cv_func_wcrtomb = no; then
19327 if test $REPLACE_MBSTATE_T = 1; then
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
19336 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
19337 if ${gl_cv_func_wcrtomb_retval+:} false; then :
19338 $as_echo_n "(cached) " >&6
19342 # Guess no on AIX 4, OSF/1 and Solaris.
19343 aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
19344 # Guess yes otherwise.
19345 *) gl_cv_func_wcrtomb_retval="guessing yes" ;;
19347 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
19348 if test "$cross_compiling" = yes; then :
19351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19352 /* end confdefs.h. */
19354 #include <locale.h>
19356 #include <string.h>
19360 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
19362 if (wcrtomb (NULL, 0, NULL) != 1)
19365 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19367 if (wcrtomb (NULL, 0, NULL) != 1)
19370 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19372 if (wcrtomb (NULL, 0, NULL) != 1)
19375 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19377 if (wcrtomb (NULL, 0, NULL) != 1)
19383 if ac_fn_c_try_run "$LINENO"; then :
19384 gl_cv_func_wcrtomb_retval=yes
19386 gl_cv_func_wcrtomb_retval=no
19388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19389 conftest.$ac_objext conftest.beam conftest.$ac_ext
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
19396 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
19397 case "$gl_cv_func_wcrtomb_retval" in
19399 *) REPLACE_WCRTOMB=1 ;;
19403 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
19415 gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
19429 $as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
19433 # Code from module wctype:
19444 if test $ac_cv_func_iswcntrl = yes; then
19464 if test $ac_cv_func_iswblank = yes; then
19469 if test $ac_cv_have_decl_iswblank = yes; then
19488 if test $gt_cv_c_wint_t = yes; then
19495 if test $ac_cv_header_wctype_h = yes; then
19496 if test $ac_cv_func_iswcntrl = yes; then
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
19498 $as_echo_n "checking whether iswcntrl works... " >&6; }
19499 if ${gl_cv_func_iswcntrl_works+:} false; then :
19500 $as_echo_n "(cached) " >&6
19503 if test "$cross_compiling" = yes; then :
19504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19505 /* end confdefs.h. */
19506 #include <stdlib.h>
19507 #if __GNU_LIBRARY__ == 1
19508 Linux libc5 i18n is broken.
19518 if ac_fn_c_try_compile "$LINENO"; then :
19519 gl_cv_func_iswcntrl_works=yes
19521 gl_cv_func_iswcntrl_works=no
19523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19527 /* end confdefs.h. */
19529 #include <stddef.h>
19533 #include <wctype.h>
19534 int main () { return iswprint ('x') == 0; }
19536 if ac_fn_c_try_run "$LINENO"; then :
19537 gl_cv_func_iswcntrl_works=yes
19539 gl_cv_func_iswcntrl_works=no
19541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19542 conftest.$ac_objext conftest.beam conftest.$ac_ext
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
19548 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
19562 if test $gl_cv_have_include_next = yes; then
19563 gl_cv_next_wctype_h='<'wctype.h'>'
19565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
19566 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
19567 if ${gl_cv_next_wctype_h+:} false; then :
19568 $as_echo_n "(cached) " >&6
19571 if test $ac_cv_header_wctype_h = yes; then
19572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19573 /* end confdefs.h. */
19574 #include <wctype.h>
19578 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19579 *) gl_absname_cpp="$ac_cpp" ;;
19581 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19582 sed -n '\#/wctype.h#{
19583 s#.*"\(.*/wctype.h\)".*#\1#
19589 gl_cv_next_wctype_h='<'wctype.h'>'
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
19594 $as_echo "$gl_cv_next_wctype_h" >&6; }
19596 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
19598 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19599 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19600 gl_next_as_first_directive='<'wctype.h'>'
19602 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19603 gl_next_as_first_directive=$gl_cv_next_wctype_h
19605 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
19615 if test "$gl_cv_func_iswcntrl_works" = no; then
19622 # Code from module write:
19634 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
19638 # Code from module xsize:
19642 for ac_header in stdint.h
19644 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19645 if test "x$ac_cv_header_stdint_h" = xyes; then :
19646 cat >>confdefs.h <<_ACEOF
19647 #define HAVE_STDINT_H 1
19655 # End of code from modules
19676 gl_source_base='tests'
19677 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
19679 gl_module_indicator_condition=$gltests_WITNESS
19693 # support deprecated ./configure flags to set various compiler flags
19696 # Check whether --with-cflags was given.
19697 if test "${with_cflags+set}" = set; then :
19698 withval=$with_cflags;
19700 "" | y | ye | yes | n | no)
19701 as_fn_error $? "*** You must supply an argument to the --with-cflags option." "$LINENO" 5
19711 # Check whether --with-includes was given.
19712 if test "${with_includes+set}" = set; then :
19713 withval=$with_includes;
19715 "" | y | ye | yes | n | no)
19716 as_fn_error $? "*** You must supply an argument to the --with-includes option." "$LINENO" 5
19720 for dir in $withval; do
19721 if test -d "$dir"; then
19722 CPPFLAGS="$CPPFLAGS -I$dir"
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Include directory $dir does not exist." >&5
19726 $as_echo "$as_me: WARNING: Include directory $dir does not exist." >&2;}
19729 cat <<AAW_EOF >>config.warnings
19730 Include directory $dir does not exist.
19741 # Check whether --with-libraries was given.
19742 if test "${with_libraries+set}" = set; then :
19743 withval=$with_libraries;
19745 "" | y | ye | yes | n | no)
19746 as_fn_error $? "*** You must supply an argument to the --with-libraries option." "$LINENO" 5
19750 for dir in $withval; do
19751 if test -d "$dir"; then
19753 *-solaris2*,*-netbsd*)
19754 LDFLAGS="$LDFLAGS -R$dir"
19757 LDFLAGS="$LDFLAGS -L$dir"
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Library directory $dir does not exist." >&5
19761 $as_echo "$as_me: WARNING: Library directory $dir does not exist." >&2;}
19764 cat <<AAW_EOF >>config.warnings
19765 Library directory $dir does not exist.
19775 # Disable strict-aliasing optimizations
19777 # test for -W'feature', then add the 'no-' version.
19781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -fstrict-aliasing" >&5
19782 $as_echo_n "checking for gcc flag -fstrict-aliasing... " >&6; }
19783 if test "x$GCC" = "xyes"; then
19784 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19785 $CC -v --help 2>&1) |
19786 $EGREP -- '[^[:alnum:]]-fstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
19787 if test $? -eq 0; then
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19790 $as_echo "yes" >&6; }
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19794 $as_echo "no" >&6; }
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
19799 $as_echo "no (not using gcc)" >&6; }
19802 if test x"$found_warning" = x"yes"; then
19803 CFLAGS="$CFLAGS -fno-strict-aliasing"
19805 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing"
19814 # Warn for just about everything
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wall" >&5
19820 $as_echo_n "checking for gcc flag -Wall... " >&6; }
19821 if test "x$GCC" = "xyes"; then
19822 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19823 $CC -v --help 2>&1) |
19824 $EGREP -- '[^[:alnum:]]-Wall[^[:alnum:]-]' 2>&1 > /dev/null
19825 if test $? -eq 0; then
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19828 $as_echo "yes" >&6; }
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19832 $as_echo "no" >&6; }
19836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
19837 $as_echo "no (not using gcc)" >&6; }
19840 if test x"$found_warning" = x"yes"; then
19841 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wall"
19850 # And add any extra warnings too
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wextra" >&5
19855 $as_echo_n "checking for gcc flag -Wextra... " >&6; }
19856 if test "x$GCC" = "xyes"; then
19857 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19858 $CC -v --help 2>&1) |
19859 $EGREP -- '[^[:alnum:]]-Wextra[^[:alnum:]-]' 2>&1 > /dev/null
19860 if test $? -eq 0; then
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19863 $as_echo "yes" >&6; }
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19867 $as_echo "no" >&6; }
19871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
19872 $as_echo "no (not using gcc)" >&6; }
19875 if test x"$found_warning" = x"yes"; then
19876 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wextra"
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -W" >&5
19884 $as_echo_n "checking for gcc flag -W... " >&6; }
19885 if test "x$GCC" = "xyes"; then
19886 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19887 $CC -v --help 2>&1) |
19888 $EGREP -- '^[:alnum:]-W^[:alnum:]-' 2>&1 > /dev/null
19889 if test $? -eq 0; then
19891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19892 $as_echo "yes" >&6; }
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19896 $as_echo "no" >&6; }
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
19901 $as_echo "no (not using gcc)" >&6; }
19904 if test x"$found_warning" = x"yes"; then
19905 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -W"
19917 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
19920 # Check whether --enable-as-needed was given.
19921 if test "${enable_as_needed+set}" = set; then :
19922 enableval=$enable_as_needed; WANT_AS_NEEDED=$enableval
19928 if test x"$WANT_AS_NEEDED" = x"yes"; then
19929 WANT_AS_NEEDED_TRUE=
19930 WANT_AS_NEEDED_FALSE='#'
19932 WANT_AS_NEEDED_TRUE='#'
19933 WANT_AS_NEEDED_FALSE=
19937 if test x"$WANT_AS_NEEDED" = x"yes"; then
19938 AS_NEEDED_FLAGS="-Wl,--as-needed"
19947 # Configuration flags (--with-xxx and --enable-xxx)
19952 # Check whether --with-user was given.
19953 if test "${with_user+set}" = set; then :
19954 withval=$with_user;
19956 "" | y | ye | yes | n | no)
19957 as_fn_error $? "*** You must supply an argument to the --with-user option." "$LINENO" 5
19960 CLIENT_LOGIN="$withval"
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no user specified (--with-user) -- using 'amanda'" >&5
19968 $as_echo "$as_me: WARNING: no user specified (--with-user) -- using 'amanda'" >&2;}
19971 cat <<AAW_EOF >>config.warnings
19972 no user specified (--with-user) -- using 'amanda'
19976 CLIENT_LOGIN=amanda
19983 cat >>confdefs.h <<_ACEOF
19984 #define CLIENT_LOGIN "$CLIENT_LOGIN"
19991 # Check whether --with-group was given.
19992 if test "${with_group+set}" = set; then :
19993 withval=$with_group;
19995 "" | y | ye | yes | n | no)
19996 as_fn_error $? "*** You must supply an argument to the --with-group option." "$LINENO" 5
19998 *) SETUID_GROUP="$withval"
20005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no group specified (--with-group) -- using 'backup'" >&5
20006 $as_echo "$as_me: WARNING: no group specified (--with-group) -- using 'backup'" >&2;}
20009 cat <<AAW_EOF >>config.warnings
20010 no group specified (--with-group) -- using 'backup'
20014 SETUID_GROUP=backup
20023 # Check whether --with-dumperdir was given.
20024 if test "${with_dumperdir+set}" = set; then :
20025 withval=$with_dumperdir;
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-dumperdir is no longer used." >&5
20028 $as_echo "$as_me: WARNING: --with-dumperdir is no longer used." >&2;}
20031 cat <<AAW_EOF >>config.warnings
20032 --with-dumperdir is no longer used.
20043 # Check whether --with-configdir was given.
20044 if test "${with_configdir+set}" = set; then :
20045 withval=$with_configdir;
20047 "" | y | ye | yes | n | no)
20048 as_fn_error $? "*** You must supply an argument to the --with-configdir option." "$LINENO" 5
20050 *) CONFIG_DIR="$withval"
20056 : ${CONFIG_DIR='${sysconfdir}/amanda'} # (variable will be evaluated below)
20064 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20065 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20066 eval ac_define_dir="\"$CONFIG_DIR\""
20067 eval ac_define_dir="\"$ac_define_dir\""
20068 CONFIG_DIR="$ac_define_dir"
20071 cat >>confdefs.h <<_ACEOF
20072 #define CONFIG_DIR "$ac_define_dir"
20075 test "$prefix_NONE" && prefix=NONE
20076 test "$exec_prefix_NONE" && exec_prefix=NONE
20081 # Check whether --with-indexdir was given.
20082 if test "${with_indexdir+set}" = set; then :
20083 withval=$with_indexdir; as_fn_error $? "*** --with-indexdir is deprecated; use indexdir in amanda.conf instead." "$LINENO" 5
20090 # Check whether --with-dbdir was given.
20091 if test "${with_dbdir+set}" = set; then :
20092 withval=$with_dbdir; as_fn_error $? "*** --with-dbdir is deprecated; use infofile in amanda.conf instead." "$LINENO" 5
20099 # Check whether --with-logdir was given.
20100 if test "${with_logdir+set}" = set; then :
20101 withval=$with_logdir; as_fn_error $? "*** --with-logdir is deprecated; use logfile in amanda.conf instead." "$LINENO" 5
20108 # Check whether --with-suffixes was given.
20109 if test "${with_suffixes+set}" = set; then :
20110 withval=$with_suffixes;
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** --with-suffixes is deprecated" >&5
20113 $as_echo "$as_me: WARNING: ** --with-suffixes is deprecated" >&2;}
20116 cat <<AAW_EOF >>config.warnings
20117 ** --with-suffixes is deprecated
20127 # Check whether --with-gnutar-listdir was given.
20128 if test "${with_gnutar_listdir+set}" = set; then :
20129 withval=$with_gnutar_listdir;
20131 n | no) GNUTAR_LISTDIR= ;;
20132 y | ye | yes) GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists' ;;
20133 *) GNUTAR_LISTDIR="$withval" ;;
20138 GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists'
20144 # substitute $prefix, etc. if necessary
20148 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20149 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20150 eval ac_define_dir="\"$GNUTAR_LISTDIR\""
20151 eval ac_define_dir="\"$ac_define_dir\""
20152 GNUTAR_LISTED_INCREMENTAL_DIR="$ac_define_dir"
20155 cat >>confdefs.h <<_ACEOF
20156 #define GNUTAR_LISTED_INCREMENTAL_DIR "$ac_define_dir"
20159 test "$prefix_NONE" && prefix=NONE
20160 test "$exec_prefix_NONE" && exec_prefix=NONE
20163 # handle deprecated option
20165 # Check whether --with-gnutar-listed-incremental was given.
20166 if test "${with_gnutar_listed_incremental+set}" = set; then :
20167 withval=$with_gnutar_listed_incremental;
20168 as_fn_error $? "*** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" "$LINENO" 5
20176 # Check whether --with-tmpdir was given.
20177 if test "${with_tmpdir+set}" = set; then :
20178 withval=$with_tmpdir;
20190 n | no) as_fn_error $? "*** --without-tmpdir is not allowed." "$LINENO" 5;;
20191 y | ye | yes) AMANDA_TMPDIR="/tmp/amanda";;
20192 *) AMANDA_TMPDIR="$tmpdir";;
20198 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20199 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20200 eval ac_define_dir="\"$AMANDA_TMPDIR\""
20201 eval ac_define_dir="\"$ac_define_dir\""
20202 AMANDA_TMPDIR="$ac_define_dir"
20205 cat >>confdefs.h <<_ACEOF
20206 #define AMANDA_TMPDIR "$ac_define_dir"
20209 test "$prefix_NONE" && prefix=NONE
20210 test "$exec_prefix_NONE" && exec_prefix=NONE
20215 # Check whether --with-force-uid was given.
20216 if test "${with_force_uid+set}" = set; then :
20217 withval=$with_force_uid; CHECK_USERID="$withval"
20219 : ${CHECK_USERID=yes}
20223 case "$CHECK_USERID" in
20227 $as_echo "#define CHECK_USERID 1" >>confdefs.h
20234 as_fn_error $? "*** You must not supply an argument to --with-force-uid option." "$LINENO" 5
20237 if test x"$CHECK_USERID" = x"1"; then
20239 CHECK_USERID_FALSE='#'
20241 CHECK_USERID_TRUE='#'
20242 CHECK_USERID_FALSE=
20249 # Check whether --with-owner was given.
20250 if test "${with_owner+set}" = set; then :
20251 withval=$with_owner;
20253 "" | y | ye | yes | n | no)
20254 as_fn_error $? "*** You must supply an argument to the --with-owner option." "$LINENO" 5
20256 *) BINARY_OWNER="$withval"
20262 BINARY_OWNER="$CLIENT_LOGIN"
20268 cat >>confdefs.h <<_ACEOF
20269 #define BINARY_OWNER "$BINARY_OWNER"
20276 # Check whether --with-fqdn was given.
20277 if test "${with_fqdn+set}" = set; then :
20278 withval=$with_fqdn; USE_FQDN=$withval
20284 case "$USE_FQDN" in
20288 $as_echo "#define USE_FQDN 1" >>confdefs.h
20291 *) as_fn_error $? "You must not supply an argument to --with-fqdn option." "$LINENO" 5
20297 # Check whether --with-reuseports was given.
20298 if test "${with_reuseports+set}" = set; then :
20299 withval=$with_reuseports; case "$withval" in
20300 y | ye | yes) USE_REUSEADDR=no;;
20301 n | no) USE_REUSEADDR=yes;;
20302 *) as_fn_error $? "You must not supply an argument to --without-reuseports" "$LINENO" 5;;
20309 if test x"$USE_REUSEADDR" = x"yes"; then
20311 $as_echo "#define USE_REUSEADDR 1" >>confdefs.h
20317 # Check whether --with-low-tcpportrange was given.
20318 if test "${with_low_tcpportrange+set}" = set; then :
20319 withval=$with_low_tcpportrange; LOW_TCPPORTRANGE="$withval"
20321 LOW_TCPPORTRANGE=unlimited
20325 if test x"$LOW_TCPPORTRANGE" != x"unlimited"; then
20326 if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
20327 as_fn_error $? "--with-low-tcpportrange requires two comma-separated positive numbers" "$LINENO" 5
20329 min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
20330 max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
20331 if test $min_low_tcp_port -gt $max_low_tcp_port; then
20332 as_fn_error $? "the second TCP port number must be greater than the first in --with-low-tcpportrange" "$LINENO" 5
20334 if test $min_low_tcp_port -lt 512; then
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&5
20337 $as_echo "$as_me: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&2;}
20340 cat <<AAW_EOF >>config.warnings
20341 the low TCP port range should be 512 or greater in --with-low-tcpportrange
20346 if test $max_low_tcp_port -ge 1024; then
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&5
20349 $as_echo "$as_me: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&2;}
20352 cat <<AAW_EOF >>config.warnings
20353 the low TCP port range should be less than 1024 in --with-low-tcpportrange
20359 cat >>confdefs.h <<_ACEOF
20360 #define LOW_TCPPORTRANGE $LOW_TCPPORTRANGE
20366 # Check whether --with-tcpportrange was given.
20367 if test "${with_tcpportrange+set}" = set; then :
20368 withval=$with_tcpportrange; TCPPORTRANGE="$withval"
20370 TCPPORTRANGE="unlimited"
20374 if test x"$TCPPORTRANGE" != x"unlimited"; then
20375 if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
20376 as_fn_error $? "--with-tcpportrange requires two comma-separated positive numbers" "$LINENO" 5
20378 min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
20379 max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
20380 if test $min_tcp_port -gt $max_tcp_port; then
20381 as_fn_error $? "the second TCP port number must be greater than the first in --with-tcpportrange" "$LINENO" 5
20383 if test $min_tcp_port -lt 1024; then
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
20386 $as_echo "$as_me: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
20389 cat <<AAW_EOF >>config.warnings
20390 the TCP port range should be 1024 or greater in --with-tcpportrange
20395 if test $max_tcp_port -ge 65536; then
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&5
20398 $as_echo "$as_me: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
20401 cat <<AAW_EOF >>config.warnings
20402 the TCP port range should be less than 65536 in --with-tcpportrange
20408 cat >>confdefs.h <<_ACEOF
20409 #define TCPPORTRANGE $TCPPORTRANGE
20415 # Check whether --with-udpportrange was given.
20416 if test "${with_udpportrange+set}" = set; then :
20417 withval=$with_udpportrange; UDPPORTRANGE="$withval"
20419 UDPPORTRANGE="unlimited"
20422 if test x"$UDPPORTRANGE" != x"unlimited"; then
20423 if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
20424 as_fn_error $? "--with-udpportrange requires two comma-separated positive numbers" "$LINENO" 5
20426 min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
20427 max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
20428 if test $min_udp_port -gt $max_udp_port; then
20429 as_fn_error $? "the second UDP port number must be greater than the first in --with-udpportrange" "$LINENO" 5
20431 if test $max_udp_port -ge 1024; then
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&5
20434 $as_echo "$as_me: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&2;}
20437 cat <<AAW_EOF >>config.warnings
20438 the UDP port range should be less than 1025 in --with-udpportrange
20443 if test $min_udp_port -le 0; then
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&5
20446 $as_echo "$as_me: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
20449 cat <<AAW_EOF >>config.warnings
20450 the UDP port range should be greater than 0 in --with-udpportrange
20456 cat >>confdefs.h <<_ACEOF
20457 #define UDPPORTRANGE $UDPPORTRANGE
20467 # Check whether --with-buffered-dump was given.
20468 if test "${with_buffered_dump+set}" = set; then :
20469 withval=$with_buffered_dump; DUMPER_SOCKET_BUFFERING=$withval
20471 DUMPER_SOCKET_BUFFERING=no
20474 case "$DUMPER_SOCKET_BUFFERING" in
20478 $as_echo "#define DUMPER_SOCKET_BUFFERING 1" >>confdefs.h
20481 *) as_fn_error $? "You must not supply an argument to --with-buffered-dump." "$LINENO" 5 ;;
20486 # Check whether --with-maxtapeblocksize was given.
20487 if test "${with_maxtapeblocksize+set}" = set; then :
20488 withval=$with_maxtapeblocksize;
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-maxtapeblocksize is no longer needed" >&5
20490 $as_echo "$as_me: WARNING: --with-maxtapeblocksize is no longer needed" >&2;}
20493 cat <<AAW_EOF >>config.warnings
20494 --with-maxtapeblocksize is no longer needed
20505 # Check whether --with-assertions was given.
20506 if test "${with_assertions+set}" = set; then :
20507 withval=$with_assertions;
20513 $as_echo "#define ASSERTIONS 1" >>confdefs.h
20516 *) as_fn_error $? "*** You must not supply an argument to --with-assertions option." "$LINENO" 5
20528 # Check whether --with-debugging was given.
20529 if test "${with_debugging+set}" = set; then :
20530 withval=$with_debugging; debugging="$withval"
20537 case "$debugging" in
20538 n | no) as_fn_error $? "Amanda no longer supports building with debugging disabled" "$LINENO" 5;;
20539 y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
20540 *) AMANDA_DBGDIR="$debugging";;
20543 # evaluate any extra variables in the directory
20547 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20548 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20549 eval ac_define_dir="\"$AMANDA_DBGDIR\""
20550 eval ac_define_dir="\"$ac_define_dir\""
20551 AMANDA_DBGDIR="$ac_define_dir"
20554 cat >>confdefs.h <<_ACEOF
20555 #define AMANDA_DBGDIR "$ac_define_dir"
20558 test "$prefix_NONE" && prefix=NONE
20559 test "$exec_prefix_NONE" && exec_prefix=NONE
20564 # Check whether --with-debug_days was given.
20565 if test "${with_debug_days+set}" = set; then :
20566 withval=$with_debug_days;
20567 debug_days="$withval"
20576 case "$debug_days" in
20578 AMANDA_DEBUG_DAYS=0 ;;
20580 AMANDA_DEBUG_DAYS=4 ;;
20581 [0-9] | [0-9][0-9] | [0-9][0-9][0-9])
20582 AMANDA_DEBUG_DAYS="$debug_days" ;;
20583 *) as_fn_error $? "*** --with-debug-days value not numeric or out of range." "$LINENO" 5
20587 cat >>confdefs.h <<_ACEOF
20588 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
20595 # Check whether --with-testing was given.
20596 if test "${with_testing+set}" = set; then :
20597 withval=$with_testing;
20608 n | no) SERVICE_SUFFIX="";;
20609 y | ye | yes) SERVICE_SUFFIX="-test";;
20610 *) SERVICE_SUFFIX="-$TESTING";;
20613 AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
20614 KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
20618 cat >>confdefs.h <<_ACEOF
20619 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
20623 cat >>confdefs.h <<_ACEOF
20624 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
20628 cat >>confdefs.h <<_ACEOF
20629 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
20634 SINGLE_USERID=${SINGLE_USERID:-no}
20635 WANT_SETUID_CLIENT=${WANT_SETUID_CLIENT:-true}
20638 # Check whether --with-single-userid was given.
20639 if test "${with_single_userid+set}" = set; then :
20640 withval=$with_single_userid; SINGLE_USERID=$withval
20646 WANT_SETUID_CLIENT=false
20651 if test x"$WANT_SETUID_CLIENT" = x"true"; then
20653 $as_echo "#define WANT_SETUID_CLIENT 1" >>confdefs.h
20656 if test x"$WANT_SETUID_CLIENT" = x"true"; then
20657 WANT_SETUID_CLIENT_TRUE=
20658 WANT_SETUID_CLIENT_FALSE='#'
20660 WANT_SETUID_CLIENT_TRUE='#'
20661 WANT_SETUID_CLIENT_FALSE=
20665 if test x"$SINGLE_USERID" = x"yes"; then
20667 $as_echo "#define SINGLE_USERID 1" >>confdefs.h
20672 WANT_INSTALLPERMS=yes
20673 # Check whether --enable-installperms was given.
20674 if test "${enable_installperms+set}" = set; then :
20675 enableval=$enable_installperms; WANT_INSTALLPERMS="$enableval"
20677 WANT_INSTALLPERMS="yes"
20681 if test x"$WANT_INSTALLPERMS" = x"yes"; then
20682 WANT_INSTALLPERMS_TRUE=
20683 WANT_INSTALLPERMS_FALSE='#'
20685 WANT_INSTALLPERMS_TRUE='#'
20686 WANT_INSTALLPERMS_FALSE=
20691 # Check whether --enable-syntax-checks was given.
20692 if test "${enable_syntax_checks+set}" = set; then :
20693 enableval=$enable_syntax_checks;
20694 case "$enableval" in
20695 no) SYNTAX_CHECKS=false;;
20699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-syntax-checks can cause build failures and should only be used by developers" >&5
20700 $as_echo "$as_me: WARNING: --enable-syntax-checks can cause build failures and should only be used by developers" >&2;}
20703 cat <<AAW_EOF >>config.warnings
20704 --enable-syntax-checks can cause build failures and should only be used by developers
20713 SYNTAX_CHECKS=false
20718 if $SYNTAX_CHECKS; then
20719 SYNTAX_CHECKS_TRUE=
20720 SYNTAX_CHECKS_FALSE='#'
20722 SYNTAX_CHECKS_TRUE='#'
20723 SYNTAX_CHECKS_FALSE=
20730 # Set up for Amanda components and modules
20735 # Check whether --with-server was given.
20736 if test "${with_server+set}" = set; then :
20737 withval=$with_server;
20739 y | ye | yes) WANT_SERVER=true;;
20740 n | no) WANT_SERVER=false;;
20741 *) as_fn_error $? "You must not supply an argument to the --without-server option." "$LINENO" 5 ;;
20750 # Check whether --with-client was given.
20751 if test "${with_client+set}" = set; then :
20752 withval=$with_client;
20754 y | ye | yes) WANT_CLIENT=true;;
20755 n | no) WANT_CLIENT=false;;
20756 *) as_fn_error $? "You must not supply an argument to the --without-client option." "$LINENO" 5 ;;
20764 WANT_RESTORE=${WANT_SERVER-true}
20766 # Check whether --with-restore was given.
20767 if test "${with_restore+set}" = set; then :
20768 withval=$with_restore;
20770 y | ye | yes) WANT_RESTORE=true;;
20771 n | no) WANT_RESTORE=false;;
20772 *) as_fn_error $? "You must not supply an argument to --with-restore option." "$LINENO" 5 ;;
20780 WANT_RECOVER=${WANT_CLIENT-true}
20782 # Check whether --with-amrecover was given.
20783 if test "${with_amrecover+set}" = set; then :
20784 withval=$with_amrecover;
20786 y | ye | yes) WANT_RECOVER=true;;
20787 n | no) WANT_RECOVER=false;;
20788 *) as_fn_error $? "You must not supply an argument to --with-amrecover option." "$LINENO" 5 ;;
20796 # Check whether --with-client-only was given.
20797 if test "${with_client_only+set}" = set; then :
20798 withval=$with_client_only; as_fn_error $? "--with-client-only is deprecated, use --without-server instead." "$LINENO" 5
20805 # Check whether --with-server-only was given.
20806 if test "${with_server_only+set}" = set; then :
20807 withval=$with_server_only; as_fn_error $? "--with-server-only is deprecated, use --without-client instead." "$LINENO" 5
20813 WANT_NDMP=${WANT_NDMP-true}
20815 # Check whether --with-ndmp was given.
20816 if test "${with_ndmp+set}" = set; then :
20817 withval=$with_ndmp;
20819 y | ye | yes) WANT_NDMP=true;;
20820 n | no) WANT_NDMP=false;;
20821 *) as_fn_error $? "You must not supply an argument to --with-ndmp option." "$LINENO" 5 ;;
20834 # detect invalid combinations of components
20835 if ! ${WANT_SERVER-true} && ${WANT_RESTORE-true}; then
20836 as_fn_error $? "--without-server requires --without-restore" "$LINENO" 5
20838 if ! ${WANT_CLIENT-true} && ${WANT_RECOVER-true}; then
20839 as_fn_error $? "--without-client requires --without-amrecover" "$LINENO" 5
20842 if $WANT_CLIENT; then
20844 WANT_CLIENT_FALSE='#'
20846 WANT_CLIENT_TRUE='#'
20850 if $WANT_RESTORE; then
20852 WANT_RESTORE_FALSE='#'
20854 WANT_RESTORE_TRUE='#'
20855 WANT_RESTORE_FALSE=
20858 if $WANT_SERVER; then
20860 WANT_SERVER_FALSE='#'
20862 WANT_SERVER_TRUE='#'
20866 if $WANT_RECOVER; then
20868 WANT_RECOVER_FALSE='#'
20870 WANT_RECOVER_TRUE='#'
20871 WANT_RECOVER_FALSE=
20874 if $WANT_NDMP; then
20876 WANT_NDMP_FALSE='#'
20883 if $WANT_SERVER || $WANT_RESTORE; then
20885 WANT_TAPE_FALSE='#'
20892 # AMANDA_COMPONENTS goes to Amanda::Constants; missing_components is just for the
20894 AMANDA_COMPONENTS=''
20895 missing_components=''
20897 if $WANT_SERVER; then
20898 AMANDA_COMPONENTS="$AMANDA_COMPONENTS server";
20900 missing_components="$missing_components (no server)";
20902 if $WANT_RESTORE; then
20903 AMANDA_COMPONENTS="$AMANDA_COMPONENTS restore";
20905 missing_components="$missing_components (no restore)";
20907 if $WANT_CLIENT; then
20908 AMANDA_COMPONENTS="$AMANDA_COMPONENTS client";
20910 missing_components="$missing_components (no client)";
20912 if $WANT_RECOVER; then
20913 AMANDA_COMPONENTS="$AMANDA_COMPONENTS amrecover";
20915 missing_components="$missing_components (no amrecover)";
20917 if $WANT_NDMP; then
20918 AMANDA_COMPONENTS="$AMANDA_COMPONENTS ndmp";
20920 missing_components="$missing_components (no ndmp)";
20929 # Check whether --with-gnuplot was given.
20930 if test "${with_gnuplot+set}" = set; then :
20931 withval=$with_gnuplot;
20934 n | no) GNUPLOT=no ;;
20935 *) GNUPLOT="$withval" ;;
20940 if test "x$GNUPLOT" = "xno"; then
20943 # Extract the first word of "gnuplot", so it can be a program name with args.
20944 set dummy gnuplot; ac_word=$2
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20946 $as_echo_n "checking for $ac_word... " >&6; }
20947 if ${ac_cv_path_GNUPLOT+:} false; then :
20948 $as_echo_n "(cached) " >&6
20952 ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
20955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20956 for as_dir in $LOCSYSPATH
20959 test -z "$as_dir" && as_dir=.
20960 for ac_exec_ext in '' $ac_executable_extensions; do
20961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20962 ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
20963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20973 GNUPLOT=$ac_cv_path_GNUPLOT
20974 if test -n "$GNUPLOT"; then
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT" >&5
20976 $as_echo "$GNUPLOT" >&6; }
20978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20979 $as_echo "no" >&6; }
20990 # Extract the first word of "pcat", so it can be a program name with args.
20991 set dummy pcat; ac_word=$2
20992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20993 $as_echo_n "checking for $ac_word... " >&6; }
20994 if ${ac_cv_path_PCAT+:} false; then :
20995 $as_echo_n "(cached) " >&6
20999 ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
21002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21003 for as_dir in $LOCSYSPATH
21006 test -z "$as_dir" && as_dir=.
21007 for ac_exec_ext in '' $ac_executable_extensions; do
21008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21009 ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
21010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21020 PCAT=$ac_cv_path_PCAT
21021 if test -n "$PCAT"; then
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAT" >&5
21023 $as_echo "$PCAT" >&6; }
21025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21026 $as_echo "no" >&6; }
21033 # Extract the first word of "compress", so it can be a program name with args.
21034 set dummy compress; ac_word=$2
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21036 $as_echo_n "checking for $ac_word... " >&6; }
21037 if ${ac_cv_path_COMPRESS+:} false; then :
21038 $as_echo_n "(cached) " >&6
21042 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
21045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21046 for as_dir in $LOCSYSPATH
21049 test -z "$as_dir" && as_dir=.
21050 for ac_exec_ext in '' $ac_executable_extensions; do
21051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21052 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
21053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21063 COMPRESS=$ac_cv_path_COMPRESS
21064 if test -n "$COMPRESS"; then
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPRESS" >&5
21066 $as_echo "$COMPRESS" >&6; }
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21069 $as_echo "no" >&6; }
21076 # Extract the first word of "gzip", so it can be a program name with args.
21077 set dummy gzip; ac_word=$2
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21079 $as_echo_n "checking for $ac_word... " >&6; }
21080 if ${ac_cv_path_GZIP+:} false; then :
21081 $as_echo_n "(cached) " >&6
21085 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
21088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21089 for as_dir in $LOCSYSPATH
21092 test -z "$as_dir" && as_dir=.
21093 for ac_exec_ext in '' $ac_executable_extensions; do
21094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21095 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
21096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21106 GZIP=$ac_cv_path_GZIP
21107 if test -n "$GZIP"; then
21108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
21109 $as_echo "$GZIP" >&6; }
21111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21112 $as_echo "no" >&6; }
21124 if test "x$GNUPLOT" != "x"; then
21127 # variable substitutions for amcat.awk
21128 if test "$PCAT"; then
21129 AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
21133 if test "$COMPRESS"; then
21134 AMPLOT_COMPRESS=$COMPRESS
21135 AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
21137 AMPLOT_CAT_COMPRESS=
21139 if test "$GZIP"; then
21140 AMPLOT_COMPRESS=$GZIP
21141 AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
21153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building 'amplot', because gnuplot was not found" >&5
21154 $as_echo "$as_me: WARNING: Not building 'amplot', because gnuplot was not found" >&2;}
21157 cat <<AAW_EOF >>config.warnings
21158 Not building 'amplot', because gnuplot was not found
21164 if test x"$WANT_AMPLOT" = x"true"; then
21166 WANT_AMPLOT_FALSE='#'
21168 WANT_AMPLOT_TRUE='#'
21174 # Check whether --enable-manpage-build was given.
21175 if test "${enable_manpage_build+set}" = set; then :
21176 enableval=$enable_manpage_build; ENABLE_MANPAGE_BUILD=$enableval
21178 ENABLE_MANPAGE_BUILD=no
21182 # and ensure that everything docbook-related is OK if we'll be using it
21183 if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
21184 DOC_BUILD_DATE=`date '+%d-%m-%Y'`
21187 XSLTPROC_FLAGS="--nonet"
21190 # The (lack of) whitespace and overquoting here are all necessary for
21191 # proper formatting.
21193 # Check whether --with-xsltproc was given.
21194 if test "${with_xsltproc+set}" = set; then :
21195 withval=$with_xsltproc; ac_with_xsltproc=$withval;
21197 ac_with_xsltproc=maybe;
21202 # Check whether --with-xsltproc-flags was given.
21203 if test "${with_xsltproc_flags+set}" = set; then :
21204 withval=$with_xsltproc_flags; if test "x$withval" == "xno"; then
21207 if test "x$withval" != "xyes"; then
21208 XSLTPROC_FLAGS="$withval"
21215 # search for xsltproc if it wasn't specified
21216 if test "$ac_with_xsltproc" = "yes" -o "$ac_with_xsltproc" = "maybe"; then
21217 for ac_prog in xsltproc
21219 # Extract the first word of "$ac_prog", so it can be a program name with args.
21220 set dummy $ac_prog; ac_word=$2
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21222 $as_echo_n "checking for $ac_word... " >&6; }
21223 if ${ac_cv_path_XSLTPROC+:} false; then :
21224 $as_echo_n "(cached) " >&6
21228 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
21231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21232 for as_dir in $LOCSYSPATH
21235 test -z "$as_dir" && as_dir=.
21236 for ac_exec_ext in '' $ac_executable_extensions; do
21237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21238 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
21239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21249 XSLTPROC=$ac_cv_path_XSLTPROC
21250 if test -n "$XSLTPROC"; then
21251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
21252 $as_echo "$XSLTPROC" >&6; }
21254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21255 $as_echo "no" >&6; }
21259 test -n "$XSLTPROC" && break
21263 if test "$ac_with_xsltproc" != "no"; then
21264 if test -x "$ac_with_xsltproc"; then
21265 XSLTPROC="$ac_with_xsltproc";
21268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&5
21269 $as_echo "$as_me: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&2;}
21272 cat <<AAW_EOF >>config.warnings
21273 Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative.
21277 for ac_prog in xsltproc
21279 # Extract the first word of "$ac_prog", so it can be a program name with args.
21280 set dummy $ac_prog; ac_word=$2
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21282 $as_echo_n "checking for $ac_word... " >&6; }
21283 if ${ac_cv_path_XSLTPROC+:} false; then :
21284 $as_echo_n "(cached) " >&6
21288 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
21291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21292 for as_dir in $LOCSYSPATH
21295 test -z "$as_dir" && as_dir=.
21296 for ac_exec_ext in '' $ac_executable_extensions; do
21297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21298 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
21299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21309 XSLTPROC=$ac_cv_path_XSLTPROC
21310 if test -n "$XSLTPROC"; then
21311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
21312 $as_echo "$XSLTPROC" >&6; }
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21315 $as_echo "no" >&6; }
21319 test -n "$XSLTPROC" && break
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook XSLT version 1.72.0" >&5
21336 $as_echo_n "checking for Docbook XSLT version 1.72.0... " >&6; }
21337 if ${ac_cv_docbook_xslt_1_72_0+:} false; then :
21338 $as_echo_n "(cached) " >&6
21341 ac_cv_docbook_xslt_1_72_0=no
21342 if test -n "$XSLTPROC"; then
21343 echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl'" >&5
21344 $XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl >&5 2>&5
21346 if test "$?" = 0; then
21347 ac_cv_docbook_xslt_1_72_0=yes
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_xslt_1_72_0" >&5
21353 $as_echo "$ac_cv_docbook_xslt_1_72_0" >&6; }
21355 HAVE_DOCBOOK_XSLT_1_72_0="$ac_cv_docbook_xslt_1_72_0"
21356 HAVE_DOCBOOK_XSLT="$HAVE_DOCBOOK_XSLT_1_72_0"
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current Docbook XSLT version" >&5
21366 $as_echo_n "checking for current Docbook XSLT version... " >&6; }
21367 if ${ac_cv_docbook_xslt_current_version+:} false; then :
21368 $as_echo_n "(cached) " >&6
21371 ac_cv_docbook_xslt_current_version=no
21373 if test -n "$XSLTPROC"; then
21374 cat >conftest.xsl <<EOF
21376 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
21377 xmlns:fm="http://freshmeat.net/projects/freshmeat-submit/"
21379 <xsl:output method="text"/>
21380 <xsl:template match="fm:project/fm:Version">
21381 <xsl:value-of select="." />
21383 <!-- do nothing with any other text -->
21384 <xsl:template match="text()"/>
21387 echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/current/VERSION' with input:" >&5
21389 cat conftest.xsl >&5
21392 ac_cv_docbook_xslt_current_version=`$XSLTPROC $XSLTPROC_FLAGS conftest.xsl http://docbook.sourceforge.net/release/xsl/current/VERSION 2>&5`
21394 if test "$?" != 0; then
21395 ac_cv_docbook_xslt_current_version='no'
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_xslt_current_version" >&5
21403 $as_echo "$ac_cv_docbook_xslt_current_version" >&6; }
21405 DOCBOOK_XSLT_CURRENT_VERSION="$ac_cv_docbook_xslt_current_version"
21406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Docbook XSLT version is 1.72.0 or newer" >&5
21407 $as_echo_n "checking whether Docbook XSLT version is 1.72.0 or newer... " >&6; }
21409 if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
21410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21411 $as_echo "no" >&6; }
21414 # Used to indicate true or false condition
21415 ax_compare_version=false
21417 # Convert the two version strings to be compared into a format that
21418 # allows a simple string comparison. The end result is that a version
21419 # string of the form 1.12.5-r617 will be converted to the form
21420 # 0001001200050617. In other words, each number is zero padded to four
21421 # digits, and non digits are removed.
21423 ax_compare_version_A=`echo "$DOCBOOK_XSLT_CURRENT_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21424 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21425 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21426 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21430 ax_compare_version_B=`echo "1.72.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21431 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21432 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21433 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21437 ax_compare_version=`echo "x$ax_compare_version_A
21438 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"`
21442 if test "$ax_compare_version" = "true" ; then
21444 # version is less than required, so mark it as "no"
21445 DOCBOOK_XSLT_CURRENT_VERSION=no
21450 if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
21451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21452 $as_echo "no" >&6; }
21454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&5
21455 $as_echo "yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&6; }
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook DTD version 4.1.2" >&5
21469 $as_echo_n "checking for Docbook DTD version 4.1.2... " >&6; }
21470 if ${ac_cv_docbook_dtd_4_1_2+:} false; then :
21471 $as_echo_n "(cached) " >&6
21474 ac_cv_docbook_dtd_4_1_2=no
21475 if test -n "$XSLTPROC"; then
21476 MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
21477 cat <<EOF >conftest.xml
21478 <?xml version="1.0" encoding='ISO-8859-1'?>
21479 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
21483 echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
21484 echo "conftest.xml:" >&5
21486 cat conftest.xml >&5
21489 $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
21490 if test "$?" = 0 -o "$?" = 5; then
21491 # failing to load the DTD is just a warning, so check for it in the output.
21492 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
21495 ac_cv_docbook_dtd_4_1_2=yes
21498 cat conftest.out >&5
21500 rm -f conftest.xml conftest.out
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_dtd_4_1_2" >&5
21505 $as_echo "$ac_cv_docbook_dtd_4_1_2" >&6; }
21507 HAVE_DOCBOOK_DTD_4_1_2="$ac_cv_docbook_dtd_4_1_2"
21508 HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_1_2"
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook DTD version 4.2" >&5
21524 $as_echo_n "checking for Docbook DTD version 4.2... " >&6; }
21525 if ${ac_cv_docbook_dtd_4_2+:} false; then :
21526 $as_echo_n "(cached) " >&6
21529 ac_cv_docbook_dtd_4_2=no
21530 if test -n "$XSLTPROC"; then
21531 MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
21532 cat <<EOF >conftest.xml
21533 <?xml version="1.0" encoding='ISO-8859-1'?>
21534 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
21538 echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
21539 echo "conftest.xml:" >&5
21541 cat conftest.xml >&5
21544 $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
21545 if test "$?" = 0 -o "$?" = 5; then
21546 # failing to load the DTD is just a warning, so check for it in the output.
21547 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
21550 ac_cv_docbook_dtd_4_2=yes
21553 cat conftest.out >&5
21555 rm -f conftest.xml conftest.out
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_dtd_4_2" >&5
21560 $as_echo "$ac_cv_docbook_dtd_4_2" >&6; }
21562 HAVE_DOCBOOK_DTD_4_2="$ac_cv_docbook_dtd_4_2"
21563 HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_2"
21570 if test -z "$XSLTPROC"; then
21571 as_fn_error $? "Cannot build manpages: 'xsltproc' was not found." "$LINENO" 5
21574 # if the 'current' Docbook revision is good enough, use that; otherwise,
21575 # if 1.72.0 is available, use that.
21577 if test "x$DOCBOOK_XSLT_CURRENT_VERSION" = "xno"; then
21578 if test "x$HAVE_DOCBOOK_XSLT_1_72_0" = "xno"; then
21579 as_fn_error $? "Cannot build manpages: docbook version 1.72.0 or higher required." "$LINENO" 5
21585 # disable validation if the correct DTDs are not available
21586 if test "x$HAVE_DOCBOOK_DTD_4_1_2" = "xno" || test "x$HAVE_DOCBOOK_DTD_4_2" = "xno"; then
21588 { $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
21589 $as_echo "$as_me: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&2;}
21592 cat <<AAW_EOF >>config.warnings
21593 Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation
21597 XSLTPROC_FLAGS="$XSLTPROC_FLAGS --novalid"
21601 if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
21602 ENABLE_MANPAGE_BUILD_TRUE=
21603 ENABLE_MANPAGE_BUILD_FALSE='#'
21605 ENABLE_MANPAGE_BUILD_TRUE='#'
21606 ENABLE_MANPAGE_BUILD_FALSE=
21613 #allow configure CONFIG_CLOBBER_MY_CONFIG= to be used by make.
21614 CONFIG_CLOBBER_MY_CONFIG=$CLOBBER_MY_CONFIG
21618 # Check whether --with-index-server was given.
21619 if test "${with_index_server+set}" = set; then :
21620 withval=$with_index_server;
21622 "" | y | ye | yes | n | no)
21623 as_fn_error $? "*** You must supply an argument to the --with-index-server option." "$LINENO" 5
21625 *) DEFAULT_SERVER="$withval"
21630 : ${DEFAULT_SERVER=`uname -n`}
21635 cat >>confdefs.h <<_ACEOF
21636 #define DEFAULT_SERVER "$DEFAULT_SERVER"
21642 # Check whether --with-config was given.
21643 if test "${with_config+set}" = set; then :
21644 withval=$with_config;
21646 "" | y | ye | yes | n | no)
21647 as_fn_error $? "*** You must supply an argument to the --with-config option." "$LINENO" 5
21649 *) DEFAULT_CONFIG="$withval"
21654 : ${DEFAULT_CONFIG=DailySet1}
21659 cat >>confdefs.h <<_ACEOF
21660 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
21666 # Check whether --with-tape-server was given.
21667 if test "${with_tape_server+set}" = set; then :
21668 withval=$with_tape_server;
21670 "" | y | ye | yes | n | no)
21671 as_fn_error $? "*** You must supply an argument to the --with-tape-server option." "$LINENO" 5
21673 *) DEFAULT_TAPE_SERVER="$withval"
21678 : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
21683 cat >>confdefs.h <<_ACEOF
21684 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
21690 # Check whether --with-tape-device was given.
21691 if test "${with_tape_device+set}" = set; then :
21692 withval=$with_tape_device;
21694 "" | y | ye | yes | n | no)
21695 as_fn_error $? "*** You must supply an argument to the --with-tape-device option." "$LINENO" 5
21697 *) DEFAULT_TAPE_DEVICE="$withval"
21706 cat >>confdefs.h <<_ACEOF
21707 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
21712 if test "${DEFAULT_TAPE_DEVICE+set}" = "set"; then
21713 EXAMPLE_TAPEDEV="$DEFAULT_TAPE_DEVICE"
21715 EXAMPLE_TAPEDEV="tape:/dev/YOUR-TAPE-DEVICE-HERE"
21720 # Check whether --with-changer-device was given.
21721 if test "${with_changer_device+set}" = set; then :
21722 withval=$with_changer_device;
21724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-changer-device is no longer used." >&5
21725 $as_echo "$as_me: WARNING: --with-changer-device is no longer used." >&2;}
21728 cat <<AAW_EOF >>config.warnings
21729 --with-changer-device is no longer used.
21739 # Check whether --with-amandates was given.
21740 if test "${with_amandates+set}" = set; then :
21741 withval=$with_amandates;
21743 n | no) as_fn_error $? "*** --without-amandates is not allowed." "$LINENO" 5;;
21744 y | ye | yes) amandates='$localstatedir/amanda/amandates' ;;
21745 *) amandates="$withval";;
21749 amandates='$localstatedir/amanda/amandates'
21757 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21758 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21759 eval ac_define_dir="\"$amandates\""
21760 eval ac_define_dir="\"$ac_define_dir\""
21761 DEFAULT_AMANDATES_FILE="$ac_define_dir"
21764 cat >>confdefs.h <<_ACEOF
21765 #define DEFAULT_AMANDATES_FILE "$ac_define_dir"
21768 test "$prefix_NONE" && prefix=NONE
21769 test "$exec_prefix_NONE" && exec_prefix=NONE
21772 DEFAULT_FSF_AFTER_FILEMARK="FALSE"
21774 *-solaris*) DEFAULT_FSF_AFTER_FILEMARK="TRUE"
21778 cat >>confdefs.h <<_ACEOF
21779 #define DEFAULT_FSF_AFTER_FILEMARK $DEFAULT_FSF_AFTER_FILEMARK
21785 # Extract the first word of "getconf", so it can be a program name with args.
21786 set dummy getconf; ac_word=$2
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21788 $as_echo_n "checking for $ac_word... " >&6; }
21789 if ${ac_cv_path_GETCONF+:} false; then :
21790 $as_echo_n "(cached) " >&6
21794 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
21797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21798 for as_dir in $SYSPATH
21801 test -z "$as_dir" && as_dir=.
21802 for ac_exec_ext in '' $ac_executable_extensions; do
21803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21804 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
21805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21815 GETCONF=$ac_cv_path_GETCONF
21816 if test -n "$GETCONF"; then
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
21818 $as_echo "$GETCONF" >&6; }
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21821 $as_echo "no" >&6; }
21830 # we use 'getconf', if it exists, to get the relevant
21834 *-hp-*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
21835 *-ibm-aix*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
21838 # Checks for compilers, typedefs, structures, and compiler characteristics.
21839 # Check for large file compilation environment.
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file compilation CFLAGS" >&5
21842 $as_echo_n "checking for large file compilation CFLAGS... " >&6; }
21843 if ${amanda_cv_LFS_CFLAGS+:} false; then :
21844 $as_echo_n "(cached) " >&6
21847 amanda_cv_LFS_CFLAGS=
21848 if test "$GETCONF"; then
21849 if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
21850 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_LFS_CFLAGS" >&5
21858 $as_echo "$amanda_cv_LFS_CFLAGS" >&6; }
21859 CFLAGS="$CFLAGS $amanda_cv_LFS_CFLAGS"
21862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file compilation LDFLAGS" >&5
21863 $as_echo_n "checking for large file compilation LDFLAGS... " >&6; }
21864 if ${amanda_cv_LFS_LDFLAGS+:} false; then :
21865 $as_echo_n "(cached) " >&6
21868 amanda_cv_LFS_LDFLAGS=
21869 if test "$GETCONF"; then
21870 if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
21871 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_LFS_LDFLAGS" >&5
21879 $as_echo "$amanda_cv_LFS_LDFLAGS" >&6; }
21880 LDFLAGS="$LDFLAGS $amanda_cv_LFS_LDFLAGS"
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file compilation LIBS" >&5
21884 $as_echo_n "checking for large file compilation LIBS... " >&6; }
21885 if ${amanda_cv_LFS_LIBS+:} false; then :
21886 $as_echo_n "(cached) " >&6
21889 amanda_cv_LFS_LIBS=
21890 if test "$GETCONF"; then
21891 if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
21892 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_LFS_LIBS" >&5
21900 $as_echo "$amanda_cv_LFS_LIBS" >&6; }
21901 LIBS="$amanda_cv_LFS_LIBS $LIBS"
21904 if test x"$NEED_RESETOFS" = x"yes"; then
21906 $as_echo "#define NEED_RESETOFS 1" >>confdefs.h
21911 for ac_header in fstab.h \
21917 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21918 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21919 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21920 cat >>confdefs.h <<_ACEOF
21921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21929 for ac_func in endmntent
21931 ac_fn_c_check_func "$LINENO" "endmntent" "ac_cv_func_endmntent"
21932 if test "x$ac_cv_func_endmntent" = xyes; then :
21933 cat >>confdefs.h <<_ACEOF
21934 #define HAVE_ENDMNTENT 1
21940 for ac_func in setmntent
21942 ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
21943 if test "x$ac_cv_func_setmntent" = xyes; then :
21944 cat >>confdefs.h <<_ACEOF
21945 #define HAVE_SETMNTENT 1
21953 for ac_header in fcntl.h \
21960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21961 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21962 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21963 cat >>confdefs.h <<_ACEOF
21964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21972 # find a working file-locking mechanism.
21973 # Note: these all use AC_TRY_LINK to make sure that we can compile
21974 # and link each variant. They do not try to test the variants --
21975 # that is left to runtime.
21978 # check POSIX locking
21979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX locking (with fcntl(2)) is available" >&5
21980 $as_echo_n "checking whether POSIX locking (with fcntl(2)) is available... " >&6; }
21981 if ${amanda_cv_posix_filelocking+:} false; then :
21982 $as_echo_n "(cached) " >&6
21985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21986 /* end confdefs.h. */
21988 #if HAVE_SYS_TYPES_H
21989 # include <sys/types.h>
21992 # include <unistd.h>
21995 # include <fcntl.h>
22004 lock.l_type = F_RDLCK;
22006 lock.l_whence = SEEK_CUR;
22008 return fcntl(1, F_SETLK, &lock);
22014 if ac_fn_c_try_link "$LINENO"; then :
22016 amanda_cv_posix_filelocking="yes"
22020 amanda_cv_posix_filelocking="no"
22023 rm -f core conftest.err conftest.$ac_objext \
22024 conftest$ac_exeext conftest.$ac_ext
22027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_posix_filelocking" >&5
22028 $as_echo "$amanda_cv_posix_filelocking" >&6; }
22029 if test "x$amanda_cv_posix_filelocking" = xyes; then
22031 $as_echo "#define WANT_AMFLOCK_POSIX 1" >>confdefs.h
22033 WANT_AMFLOCK_POSIX="yes"
22034 LOCKING="POSIX_FCNTL"
22036 if test x"$WANT_AMFLOCK_POSIX" = x"yes"; then
22037 WANT_AMFLOCK_POSIX_TRUE=
22038 WANT_AMFLOCK_POSIX_FALSE='#'
22040 WANT_AMFLOCK_POSIX_TRUE='#'
22041 WANT_AMFLOCK_POSIX_FALSE=
22045 # check flock-based (BSD) locking
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flock locking is available" >&5
22047 $as_echo_n "checking whether flock locking is available... " >&6; }
22048 if ${amanda_cv_flock_filelocking+:} false; then :
22049 $as_echo_n "(cached) " >&6
22052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22053 /* end confdefs.h. */
22055 #if HAVE_SYS_FILE_H
22056 # include <sys/file.h>
22063 return flock(1, LOCK_SH);
22069 if ac_fn_c_try_link "$LINENO"; then :
22071 amanda_cv_flock_filelocking="yes"
22075 amanda_cv_flock_filelocking="no"
22078 rm -f core conftest.err conftest.$ac_objext \
22079 conftest$ac_exeext conftest.$ac_ext
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_flock_filelocking" >&5
22083 $as_echo "$amanda_cv_flock_filelocking" >&6; }
22084 if test "x$amanda_cv_flock_filelocking" = xyes; then
22086 $as_echo "#define WANT_AMFLOCK_FLOCK 1" >>confdefs.h
22088 WANT_AMFLOCK_FLOCK="yes"
22091 if test x"$WANT_AMFLOCK_FLOCK" = x"yes"; then
22092 WANT_AMFLOCK_FLOCK_TRUE=
22093 WANT_AMFLOCK_FLOCK_FALSE='#'
22095 WANT_AMFLOCK_FLOCK_TRUE='#'
22096 WANT_AMFLOCK_FLOCK_FALSE=
22100 # check lockf-based (SVR2, SVR3, SVR4) locking
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lockf(3) locking is available" >&5
22102 $as_echo_n "checking whether lockf(3) locking is available... " >&6; }
22103 if ${amanda_cv_lockf_filelocking+:} false; then :
22104 $as_echo_n "(cached) " >&6
22107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22108 /* end confdefs.h. */
22111 # include <unistd.h>
22118 return lockf(1, F_LOCK, 0);
22124 if ac_fn_c_try_link "$LINENO"; then :
22126 amanda_cv_lockf_filelocking="yes"
22130 amanda_cv_lockf_filelocking="no"
22133 rm -f core conftest.err conftest.$ac_objext \
22134 conftest$ac_exeext conftest.$ac_ext
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_lockf_filelocking" >&5
22138 $as_echo "$amanda_cv_lockf_filelocking" >&6; }
22139 if test "x$amanda_cv_lockf_filelocking" = xyes; then
22141 $as_echo "#define WANT_AMFLOCK_LOCKF 1" >>confdefs.h
22143 WANT_AMFLOCK_LOCKF="yes"
22146 if test x"$WANT_AMFLOCK_LOCKF" = x"yes"; then
22147 WANT_AMFLOCK_LOCKF_TRUE=
22148 WANT_AMFLOCK_LOCKF_FALSE='#'
22150 WANT_AMFLOCK_LOCKF_TRUE='#'
22151 WANT_AMFLOCK_LOCKF_FALSE=
22155 # check our homebrew hardlink-based locking (requires hardlinks)
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link(2) is available for locking" >&5
22157 $as_echo_n "checking whether link(2) is available for locking... " >&6; }
22158 if ${amanda_cv_lnlock_filelocking+:} false; then :
22159 $as_echo_n "(cached) " >&6
22162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22163 /* end confdefs.h. */
22166 # include <unistd.h>
22173 return link("/tmp/foo", "/tmp/bar");
22179 if ac_fn_c_try_link "$LINENO"; then :
22181 amanda_cv_lnlock_filelocking="yes"
22185 amanda_cv_lnlock_filelocking="no"
22188 rm -f core conftest.err conftest.$ac_objext \
22189 conftest$ac_exeext conftest.$ac_ext
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_lnlock_filelocking" >&5
22193 $as_echo "$amanda_cv_lnlock_filelocking" >&6; }
22194 if test "x$amanda_cv_lnlock_filelocking" = xyes; then
22196 $as_echo "#define WANT_AMFLOCK_LNLOCK 1" >>confdefs.h
22198 WANT_AMFLOCK_LNLOCK="yes"
22201 if test x"$WANT_AMFLOCK_LNLOCK" = x"yes"; then
22202 WANT_AMFLOCK_LNLOCK_TRUE=
22203 WANT_AMFLOCK_LNLOCK_FALSE='#'
22205 WANT_AMFLOCK_LNLOCK_TRUE='#'
22206 WANT_AMFLOCK_LNLOCK_FALSE=
22210 if test x"$LOCKING" = "no"; then
22211 # this shouldn't happen, and is *bad* if it does
22212 as_fn_error $? "*** No working file locking capability found!" "$LINENO" 5
22219 for ac_prog in swig
22221 # Extract the first word of "$ac_prog", so it can be a program name with args.
22222 set dummy $ac_prog; ac_word=$2
22223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22224 $as_echo_n "checking for $ac_word... " >&6; }
22225 if ${ac_cv_path_SWIG+:} false; then :
22226 $as_echo_n "(cached) " >&6
22230 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
22233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22234 for as_dir in $LOCSYSPATH
22237 test -z "$as_dir" && as_dir=.
22238 for ac_exec_ext in '' $ac_executable_extensions; do
22239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22240 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
22241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22251 SWIG=$ac_cv_path_SWIG
22252 if test -n "$SWIG"; then
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
22254 $as_echo "$SWIG" >&6; }
22256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22257 $as_echo "no" >&6; }
22261 test -n "$SWIG" && break
22265 # 1.3.32 introduces a change in the way empty strings are handled (old versions
22266 # returned undef in Perl, while new versions return an empty Perl string)
22267 # 1.3.39 is required for the %begin block
22269 # Extract the first word of "swig", so it can be a program name with args.
22270 set dummy swig; ac_word=$2
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22272 $as_echo_n "checking for $ac_word... " >&6; }
22273 if ${ac_cv_path_SWIG+:} false; then :
22274 $as_echo_n "(cached) " >&6
22278 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
22281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22282 for as_dir in $PATH
22285 test -z "$as_dir" && as_dir=.
22286 for ac_exec_ext in '' $ac_executable_extensions; do
22287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22288 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
22289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22299 SWIG=$ac_cv_path_SWIG
22300 if test -n "$SWIG"; then
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
22302 $as_echo "$SWIG" >&6; }
22304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22305 $as_echo "no" >&6; }
22309 if test -z "$SWIG" ; then
22310 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
22311 elif test -n "1.3.39" ; then
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
22313 $as_echo_n "checking for SWIG version... " >&6; }
22314 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'`
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
22316 $as_echo "$swig_version" >&6; }
22317 if test -n "$swig_version" ; then
22319 # Used to indicate true or false condition
22320 ax_compare_version=false
22322 # Convert the two version strings to be compared into a format that
22323 # allows a simple string comparison. The end result is that a version
22324 # string of the form 1.12.5-r617 will be converted to the form
22325 # 0001001200050617. In other words, each number is zero padded to four
22326 # digits, and non digits are removed.
22328 ax_compare_version_A=`echo "$swig_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22329 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22330 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22331 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22335 ax_compare_version_B=`echo "1.3.39" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22336 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22337 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22338 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22342 ax_compare_version=`echo "x$ax_compare_version_A
22343 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"`
22347 if test "$ax_compare_version" = "true" ; then
22349 SWIG_LIB=`$SWIG -swiglib`
22352 SWIG='echo "Error: SWIG version >= 1.3.39 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
22357 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
22365 for ac_prog in perl5 perl
22367 # Extract the first word of "$ac_prog", so it can be a program name with args.
22368 set dummy $ac_prog; ac_word=$2
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22370 $as_echo_n "checking for $ac_word... " >&6; }
22371 if ${ac_cv_path_PERL+:} false; then :
22372 $as_echo_n "(cached) " >&6
22376 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
22379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22380 for as_dir in $LOCSYSPATH
22383 test -z "$as_dir" && as_dir=.
22384 for ac_exec_ext in '' $ac_executable_extensions; do
22385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22386 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
22387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22397 PERL=$ac_cv_path_PERL
22398 if test -n "$PERL"; then
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22400 $as_echo "$PERL" >&6; }
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22403 $as_echo "no" >&6; }
22407 test -n "$PERL" && break
22411 # Make sure we have perl
22412 if test -z "$PERL"; then
22413 # Extract the first word of "perl", so it can be a program name with args.
22414 set dummy perl; ac_word=$2
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22416 $as_echo_n "checking for $ac_word... " >&6; }
22417 if ${ac_cv_prog_PERL+:} false; then :
22418 $as_echo_n "(cached) " >&6
22420 if test -n "$PERL"; then
22421 ac_cv_prog_PERL="$PERL" # Let the user override the test.
22423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22424 for as_dir in $PATH
22427 test -z "$as_dir" && as_dir=.
22428 for ac_exec_ext in '' $ac_executable_extensions; do
22429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22430 ac_cv_prog_PERL="perl"
22431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22440 PERL=$ac_cv_prog_PERL
22441 if test -n "$PERL"; then
22442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22443 $as_echo "$PERL" >&6; }
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22446 $as_echo "no" >&6; }
22452 # Check if version of Perl is sufficient
22453 ac_perl_version="5.6.0"
22455 if test "x$PERL" != "x"; then
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
22457 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
22458 # NB: It would be nice to log the error if there is one, but we cannot rely
22459 # on autoconf internals
22460 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
22461 if test $? -ne 0; then
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22463 $as_echo "no" >&6; };
22465 as_fn_error $? "Amanda requires at least perl 5.6.0" "$LINENO" 5
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
22469 $as_echo "ok" >&6; };
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
22474 $as_echo "$as_me: WARNING: could not find perl" >&2;}
22482 WANT_CYGWIN_COPY_PERL_DLL=false
22483 WANT_MANDATORY_THREAD_CHECK=false
22485 # test for ExtUtils::Embed
22486 ac_perl_list_modules="ExtUtils::Embed 0.0"
22487 # Make sure we have perl
22488 if test -z "$PERL"; then
22489 # Extract the first word of "perl", so it can be a program name with args.
22490 set dummy perl; ac_word=$2
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22492 $as_echo_n "checking for $ac_word... " >&6; }
22493 if ${ac_cv_prog_PERL+:} false; then :
22494 $as_echo_n "(cached) " >&6
22496 if test -n "$PERL"; then
22497 ac_cv_prog_PERL="$PERL" # Let the user override the test.
22499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22500 for as_dir in $PATH
22503 test -z "$as_dir" && as_dir=.
22504 for ac_exec_ext in '' $ac_executable_extensions; do
22505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22506 ac_cv_prog_PERL="perl"
22507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22516 PERL=$ac_cv_prog_PERL
22517 if test -n "$PERL"; then
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22519 $as_echo "$PERL" >&6; }
22521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22522 $as_echo "no" >&6; }
22528 # Check the number of arguments
22529 args_num=`echo $ac_perl_list_modules | wc -w`
22530 let "ckeck_args = $args_num % 2"
22531 if test "$check_args" = "1" ; then
22532 as_fn_error $? "syntax error" "$LINENO" 5
22537 if test "x$PERL" != x; then
22539 while test ${#ac_perl_list_modules} -gt 2 ; do
22540 module_name=`echo $ac_perl_list_modules | cut -d " " -f 1`
22541 module_version=`echo $ac_perl_list_modules | cut -d " " -f 2`
22542 ac_perl_list_modules=`echo $ac_perl_list_modules | cut -d " " -f 3-`
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $module_name version $module_version" >&5
22544 $as_echo_n "checking for perl module $module_name version $module_version... " >&6; }
22546 $PERL "-M$module_name" -e exit > /dev/null 2>&1
22547 if test $? -ne 0; then
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22549 $as_echo "no" >&6; };
22551 ac_perl_list_modules=""
22553 version=`$PERL "-M$module_name" -e 'print $'"$module_name::VERSION" 2>&1`
22554 $PERL -e 'exit(shift cmp shift)' "$version" "$module_version"
22555 if test $? -eq 0 -o $? -eq 1 ; then
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
22557 $as_echo "ok" >&6; };
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22560 $as_echo "no" >&6; }
22562 ac_perl_list_modules=""
22567 if test "$ac_failed" = 0; then
22573 as_fn_error $? "*** Amanda requires the perl package ExtUtils::Embed to build its perl modules" "$LINENO" 5
22577 as_fn_error $? "could not find perl" "$LINENO" 5
22580 # get the include path for building perl extensions
22581 PERL_INC=`$PERL -MExtUtils::Embed -e perl_inc`
22584 if test x"$enable_shared" = x"no"; then
22585 as_fn_error $? "*** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" "$LINENO" 5
22589 *freebsd[123456].*) # up to and including FreeBSD 6.*
22590 # Before 7.0, FreeBSD systems don't include a DT_NEEDS segment in
22591 # libgthread to automatically pull in the desired threading library.
22592 # Instead, they assume that any application linking against
22593 # libgthread will pull in the threading library. This is fine for
22594 # Amanda C applications, but for Perl applications this assumption
22595 # means that the perl binary would pull in the threading library.
22596 # But perl is compiled without threading by default.
22598 # Specifically, this occurs on any FreeBSD using gcc-3.*: the linking
22599 # decision is made in gcc's spec files, which were changed in
22600 # gcc-4.0. For a more in-depth discussion, see
22601 # http://wiki.zmanda.com/index.php/Installation/OS_Specific_Notes/Installing_Amanda_on_FreeBSD
22603 # The easiest solution for the "default" case is to link all perl
22604 # extension libraries against the threading library, so it is loaded
22605 # when perl loads the extension library. The default threading
22606 # library in FreeBSD is libpthread. The below default will work on
22607 # such a FreeBSD system, but ports maintainers and those with
22608 # different configurations may need to override this value with
22609 # --with-perlextlibs.
22611 # We can't use -pthread because gcc on FreeBSD ignores -pthread in
22612 # combination with -shared. See
22613 # http://lists.freebsd.org/pipermail/freebsd-stable/2006-June/026229.html
22615 PERLEXTLIBS="-lpthread"
22616 WANT_MANDATORY_THREAD_CHECK=true
22619 *freebsd*) # all FreeBSD not matched above
22620 # for all FreeBSD (including 1.0-6.0, above), we want to run the
22621 # thread-check rule in perl/Makefile.am to double-check that a Perl
22622 # script can call a C extension that uses threads.
22623 WANT_MANDATORY_THREAD_CHECK=true
22627 # When need -lperl and the '-L' where it is located,
22628 # we don't want the DynaLoader.a
22629 PERLEXTLIBS=`perl -MExtUtils::Embed -e ldopts | sed -e 's/^.*-L/-L/'`
22630 # we want cygwin to copy ddl to modules directory.
22631 WANT_CYGWIN_COPY_PERL_DLL="true";
22634 if $WANT_CYGWIN_COPY_PERL_DLL; then
22635 WANT_CYGWIN_COPY_PERL_DLL_TRUE=
22636 WANT_CYGWIN_COPY_PERL_DLL_FALSE='#'
22638 WANT_CYGWIN_COPY_PERL_DLL_TRUE='#'
22639 WANT_CYGWIN_COPY_PERL_DLL_FALSE=
22642 if $WANT_MANDATORY_THREAD_CHECK; then
22643 WANT_MANDATORY_THREAD_CHECK_TRUE=
22644 WANT_MANDATORY_THREAD_CHECK_FALSE='#'
22646 WANT_MANDATORY_THREAD_CHECK_TRUE='#'
22647 WANT_MANDATORY_THREAD_CHECK_FALSE=
22652 # Check whether --with-perlextlibs was given.
22653 if test "${with_perlextlibs+set}" = set; then :
22654 withval=$with_perlextlibs;
22656 y|ye|yes) as_fn_error $? "*** You must specify a value for --with-perlextlibs" "$LINENO" 5;;
22657 n|no) PERLEXTLIBS='';;
22658 *) PERLEXTLIBS="$withval" ;;
22667 # Extract the first word of "cat", so it can be a program name with args.
22668 set dummy cat; ac_word=$2
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22670 $as_echo_n "checking for $ac_word... " >&6; }
22671 if ${ac_cv_path_CAT+:} false; then :
22672 $as_echo_n "(cached) " >&6
22676 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
22679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22680 for as_dir in $LOCSYSPATH
22683 test -z "$as_dir" && as_dir=.
22684 for ac_exec_ext in '' $ac_executable_extensions; do
22685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22686 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
22687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22694 test -z "$ac_cv_path_CAT" && ac_cv_path_CAT="cat"
22698 CAT=$ac_cv_path_CAT
22699 if test -n "$CAT"; then
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
22701 $as_echo "$CAT" >&6; }
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22704 $as_echo "no" >&6; }
22715 if test "$GZIP"; then
22717 $as_echo "#define HAVE_GZIP 1" >>confdefs.h
22720 COMPRESS_PATH="$GZIP"
22721 COMPRESS_SUFFIX=".gz"
22722 COMPRESS_FAST_OPT="--fast"
22723 COMPRESS_BEST_OPT="--best"
22724 UNCOMPRESS_PATH="$GZIP"
22725 UNCOMPRESS_OPT="-dc"
22727 if test "$COMPRESS"; then
22728 COMPRESS_PATH="$COMPRESS"
22729 COMPRESS_SUFFIX=".Z"
22730 COMPRESS_FAST_OPT="-f"
22731 COMPRESS_BEST_OPT="-f"
22732 UNCOMPRESS_PATH="$COMPRESS"
22733 UNCOMPRESS_OPT="-dc"
22735 # If we have to use cat, we don't define COMPRESS_FAST_OPT,
22736 # COMPRESS_BEST_OPT, or UNCOMPRESS_OPT as "" since cat will look
22737 # look for a file by the name of "".
22738 # XXX is the above true? --dustin
22741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find either gzip or compress. Using cat." >&5
22742 $as_echo "$as_me: WARNING: Cannot find either gzip or compress. Using cat." >&2;}
22745 cat <<AAW_EOF >>config.warnings
22746 Cannot find either gzip or compress. Using cat.
22750 COMPRESS_PATH="$CAT"
22752 COMPRESS_FAST_OPT=""
22753 COMPRESS_BEST_OPT=""
22754 UNCOMPRESS_PATH="$CAT"
22760 cat >>confdefs.h <<_ACEOF
22761 #define COMPRESS_PATH "$COMPRESS_PATH"
22765 cat >>confdefs.h <<_ACEOF
22766 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
22770 cat >>confdefs.h <<_ACEOF
22771 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
22775 cat >>confdefs.h <<_ACEOF
22776 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
22780 cat >>confdefs.h <<_ACEOF
22781 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
22785 cat >>confdefs.h <<_ACEOF
22786 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
22798 # Empty GZIP so that make dist works.
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_storage struct exists" >&5
22803 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
22804 if ${ac_cv_has_sockaddr_storage+:} false; then :
22805 $as_echo_n "(cached) " >&6
22808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22809 /* end confdefs.h. */
22811 # include <sys/types.h>
22812 # include <sys/socket.h>
22816 u_int i = sizeof (struct sockaddr_storage)
22821 if ac_fn_c_try_compile "$LINENO"; then :
22822 ac_cv_has_sockaddr_storage=yes
22824 ac_cv_has_sockaddr_storage=no
22826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_sockaddr_storage" >&5
22830 $as_echo "$ac_cv_has_sockaddr_storage" >&6; }
22832 if test $ac_cv_has_sockaddr_storage = yes ; then
22834 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
22843 # Check whether --with-ipv6 was given.
22844 if test "${with_ipv6+set}" = set; then :
22845 withval=$with_ipv6;
22847 y | ye | yes) amanda_with_ipv6=yes;;
22848 n | no) amanda_with_ipv6=no;;
22850 as_fn_error $? "*** You must not supply an argument to --with-ipv6 option." "$LINENO" 5
22856 amanda_with_ipv6=maybe
22862 if test x"$amanda_with_ipv6" = x"yes" ||
22863 test x"$amanda_with_ipv6" = x"maybe" ; then
22864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working IPv6" >&5
22865 $as_echo_n "checking for working IPv6... " >&6; }
22866 if ${amanda_cv_working_ipv6+:} false; then :
22867 $as_echo_n "(cached) " >&6
22871 *-pc-cygwin) amanda_cv_working_ipv6=no;;
22873 if test "$cross_compiling" = yes; then :
22874 amanda_cv_working_ipv6=yes
22877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22878 /* end confdefs.h. */
22880 #include <sys/types.h>
22881 #ifdef HAVE_SYS_SOCKET_H
22882 #include <sys/socket.h>
22884 #ifdef HAVE_NETINET_IN_H
22885 #include <netinet/in.h>
22887 #ifdef HAVE_WINSOCK2_H
22888 #include <winsock2.h>
22890 #include <sys/socket.h>
22896 aa = socket(AF_INET6, SOCK_STREAM, 0);
22897 if (aa > 0) return 0;
22901 if ac_fn_c_try_run "$LINENO"; then :
22902 amanda_cv_working_ipv6=yes
22904 amanda_cv_working_ipv6=no
22906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22907 conftest.$ac_objext conftest.beam conftest.$ac_ext
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_working_ipv6" >&5
22914 $as_echo "$amanda_cv_working_ipv6" >&6; }
22916 if test "$amanda_cv_working_ipv6" = yes; then
22919 $as_echo "#define WORKING_IPV6 1" >>confdefs.h
22922 # error out only if the user specifically requested support
22923 if test x"$amanda_with_ipv6" = x"yes"; then
22924 as_fn_error $? "IPv6 support was requested, but opening an IPv6 socket failed" "$LINENO" 5
22930 ac_header_dirent=no
22931 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22932 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22934 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22935 if eval \${$as_ac_Header+:} false; then :
22936 $as_echo_n "(cached) " >&6
22938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22939 /* end confdefs.h. */
22940 #include <sys/types.h>
22952 if ac_fn_c_try_compile "$LINENO"; then :
22953 eval "$as_ac_Header=yes"
22955 eval "$as_ac_Header=no"
22957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22959 eval ac_res=\$$as_ac_Header
22960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22961 $as_echo "$ac_res" >&6; }
22962 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22963 cat >>confdefs.h <<_ACEOF
22964 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22967 ac_header_dirent=$ac_hdr; break
22971 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22972 if test $ac_header_dirent = dirent.h; then
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22974 $as_echo_n "checking for library containing opendir... " >&6; }
22975 if ${ac_cv_search_opendir+:} false; then :
22976 $as_echo_n "(cached) " >&6
22978 ac_func_search_save_LIBS=$LIBS
22979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22980 /* end confdefs.h. */
22982 /* Override any GCC internal prototype to avoid an error.
22983 Use char because int might match the return type of a GCC
22984 builtin and then its argument prototype would still apply. */
22997 for ac_lib in '' dir; do
22998 if test -z "$ac_lib"; then
22999 ac_res="none required"
23002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23004 if ac_fn_c_try_link "$LINENO"; then :
23005 ac_cv_search_opendir=$ac_res
23007 rm -f core conftest.err conftest.$ac_objext \
23009 if ${ac_cv_search_opendir+:} false; then :
23013 if ${ac_cv_search_opendir+:} false; then :
23016 ac_cv_search_opendir=no
23018 rm conftest.$ac_ext
23019 LIBS=$ac_func_search_save_LIBS
23021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23022 $as_echo "$ac_cv_search_opendir" >&6; }
23023 ac_res=$ac_cv_search_opendir
23024 if test "$ac_res" != no; then :
23025 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23031 $as_echo_n "checking for library containing opendir... " >&6; }
23032 if ${ac_cv_search_opendir+:} false; then :
23033 $as_echo_n "(cached) " >&6
23035 ac_func_search_save_LIBS=$LIBS
23036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23037 /* end confdefs.h. */
23039 /* Override any GCC internal prototype to avoid an error.
23040 Use char because int might match the return type of a GCC
23041 builtin and then its argument prototype would still apply. */
23054 for ac_lib in '' x; do
23055 if test -z "$ac_lib"; then
23056 ac_res="none required"
23059 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23061 if ac_fn_c_try_link "$LINENO"; then :
23062 ac_cv_search_opendir=$ac_res
23064 rm -f core conftest.err conftest.$ac_objext \
23066 if ${ac_cv_search_opendir+:} false; then :
23070 if ${ac_cv_search_opendir+:} false; then :
23073 ac_cv_search_opendir=no
23075 rm conftest.$ac_ext
23076 LIBS=$ac_func_search_save_LIBS
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23079 $as_echo "$ac_cv_search_opendir" >&6; }
23080 ac_res=$ac_cv_search_opendir
23081 if test "$ac_res" != no; then :
23082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23089 # include the dirent headers as described in the autoconf documentation.
23090 ac_fn_c_check_decl "$LINENO" "readdir" "ac_cv_have_decl_readdir" "
23092 # include <dirent.h>
23093 # define NAMLEN(dirent) strlen((dirent)->d_name)
23095 # define dirent direct
23096 # define NAMLEN(dirent) (dirent)->d_namlen
23097 # if HAVE_SYS_NDIR_H
23098 # include <sys/ndir.h>
23100 # if HAVE_SYS_DIR_H
23101 # include <sys/dir.h>
23109 if test "x$ac_cv_have_decl_readdir" = xyes; then :
23115 cat >>confdefs.h <<_ACEOF
23116 #define HAVE_DECL_READDIR $ac_have_decl
23118 ac_fn_c_check_decl "$LINENO" "readdir_r" "ac_cv_have_decl_readdir_r" "
23120 # include <dirent.h>
23121 # define NAMLEN(dirent) strlen((dirent)->d_name)
23123 # define dirent direct
23124 # define NAMLEN(dirent) (dirent)->d_namlen
23125 # if HAVE_SYS_NDIR_H
23126 # include <sys/ndir.h>
23128 # if HAVE_SYS_DIR_H
23129 # include <sys/dir.h>
23137 if test "x$ac_cv_have_decl_readdir_r" = xyes; then :
23143 cat >>confdefs.h <<_ACEOF
23144 #define HAVE_DECL_READDIR_R $ac_have_decl
23146 ac_fn_c_check_decl "$LINENO" "readdir64" "ac_cv_have_decl_readdir64" "
23148 # include <dirent.h>
23149 # define NAMLEN(dirent) strlen((dirent)->d_name)
23151 # define dirent direct
23152 # define NAMLEN(dirent) (dirent)->d_namlen
23153 # if HAVE_SYS_NDIR_H
23154 # include <sys/ndir.h>
23156 # if HAVE_SYS_DIR_H
23157 # include <sys/dir.h>
23165 if test "x$ac_cv_have_decl_readdir64" = xyes; then :
23171 cat >>confdefs.h <<_ACEOF
23172 #define HAVE_DECL_READDIR64 $ac_have_decl
23174 ac_fn_c_check_decl "$LINENO" "readdir64_r" "ac_cv_have_decl_readdir64_r" "
23176 # include <dirent.h>
23177 # define NAMLEN(dirent) strlen((dirent)->d_name)
23179 # define dirent direct
23180 # define NAMLEN(dirent) (dirent)->d_namlen
23181 # if HAVE_SYS_NDIR_H
23182 # include <sys/ndir.h>
23184 # if HAVE_SYS_DIR_H
23185 # include <sys/dir.h>
23193 if test "x$ac_cv_have_decl_readdir64_r" = xyes; then :
23199 cat >>confdefs.h <<_ACEOF
23200 #define HAVE_DECL_READDIR64_R $ac_have_decl
23205 # disk device prefixes
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking disk device prefixes" >&5
23207 $as_echo_n "checking disk device prefixes... " >&6; }
23209 # Use df to find the mount point for the root filesystem. Use
23210 # the positional parameters to find the particular line from df
23211 # that contains the root paritition. We put it in a subshell so
23212 # that the original positional parameters are not messed with.
23214 df / | while read line; do
23216 while test $# -gt 0; do
23217 if test "x$1" = "x/"; then
23224 ) | sed 's/(//' | sed 's/)//' `
23226 # Search for the mount point by using expr to find the parameter
23230 while test $# -gt 0; do
23231 if expr "$1" : '.*dev' >/dev/null 2>&1; then
23239 # get any system-specific configuration information
23242 CLIENT_SCRIPTS_OPT=amhpfixdevs
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&5
23247 $as_echo "$as_me: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&2;}
23250 cat <<AAW_EOF >>config.warnings
23251 Run amhpfixdevs on HP-UX systems using /dev/vg??.
23259 DEV_PREFIX=/dev/dsk/
23260 RDEV_PREFIX=/dev/rdsk/
23261 CLIENT_SCRIPTS_OPT=amsinixfixdevs
23262 if ! test -d /dev/dsk; then
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&5
23265 $as_echo "$as_me: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&2;}
23268 cat <<AAW_EOF >>config.warnings
23269 Run amsinixfixdevs on Sinix systems using VxFS.
23280 CLIENT_SCRIPTS_OPT=
23284 if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
23286 $as_echo "(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6; }
23288 if test -d /dev/dsk; then
23289 DEV_PREFIX=/dev/dsk/
23290 if test -d /dev/rdsk; then
23291 RDEV_PREFIX=/dev/rdsk/
23293 RDEV_PREFIX=/dev/dsk/
23295 elif test -d /dev; then
23298 # Some systems, notably Linux, do not have raw disk devices
23299 # names. Check this by trying to see if a raw disk device name
23300 # exists using the normal raw device path prepended to the
23301 # mount point of the root filesystem.
23302 if test "$mount"; then
23303 dev_name="/dev/r`basename $mount`"
23304 if test -b $dev_name -o -c $dev_name; then
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
23318 $as_echo "$DEV_PREFIX - $RDEV_PREFIX" >&6; }
23322 cat >>confdefs.h <<_ACEOF
23323 #define DEV_PREFIX "${DEV_PREFIX}"
23327 cat >>confdefs.h <<_ACEOF
23328 #define RDEV_PREFIX "${RDEV_PREFIX}"
23348 CPPFLAGS="$CPPFLAGS -D__STDC_EXT__"
23352 CFLAGS="$CFLAGS -Ae"
23359 m88k-motorola-sysv4)
23380 # The old cc won't work!
23381 if test "x$GCC" != "xyes"; then
23382 as_fn_error $? "The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" "$LINENO" 5
23407 $as_echo "#define IGNORE_TAR_ERRORS 1" >>confdefs.h
23409 # Cygwin needs PATH to find cygwin1.dll
23411 $as_echo "#define NEED_PATH_ENV 1" >>confdefs.h
23414 $as_echo "#define IGNORE_FSTAB 1" >>confdefs.h
23416 LDFLAGS="$LDFLAGS -Wl,-enable-runtime-pseudo-reloc -no-undefined"
23419 *-apple-darwin7*) # MacOS X 10.3.* (Panther)
23421 *-apple-darwin8*) # MacOS X 10.4.* (Tiger)
23423 *-apple-darwin9*) # MacOS X 10.5.* (Leopard)
23425 *-apple-darwin10*) # MacOS X 10.6.* (Snow Leopard)
23430 cat <<AAW_EOF >>config.warnings
23432 This machine, target type $host, is not known to be fully supported
23433 by this configure script. If the installation of Amanda on this system
23434 succeeds or needed any patches, please email amanda-hackers@amanda.org
23435 with the patches or an indication of the sucess or failure of the
23436 Amanda installation on your system.
23449 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23450 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23451 eval ac_define_dir="\"$bindir\""
23452 eval ac_define_dir="\"$ac_define_dir\""
23453 bindir="$ac_define_dir"
23456 cat >>confdefs.h <<_ACEOF
23457 #define bindir "$ac_define_dir"
23460 test "$prefix_NONE" && prefix=NONE
23461 test "$exec_prefix_NONE" && exec_prefix=NONE
23467 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23468 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23469 eval ac_define_dir="\"$sbindir\""
23470 eval ac_define_dir="\"$ac_define_dir\""
23471 sbindir="$ac_define_dir"
23474 cat >>confdefs.h <<_ACEOF
23475 #define sbindir "$ac_define_dir"
23478 test "$prefix_NONE" && prefix=NONE
23479 test "$exec_prefix_NONE" && exec_prefix=NONE
23485 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23486 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23487 eval ac_define_dir="\"$libexecdir\""
23488 eval ac_define_dir="\"$ac_define_dir\""
23489 libexecdir="$ac_define_dir"
23492 cat >>confdefs.h <<_ACEOF
23493 #define libexecdir "$ac_define_dir"
23496 test "$prefix_NONE" && prefix=NONE
23497 test "$exec_prefix_NONE" && exec_prefix=NONE
23503 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23504 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23505 eval ac_define_dir="\"$mandir\""
23506 eval ac_define_dir="\"$ac_define_dir\""
23507 mandir="$ac_define_dir"
23510 cat >>confdefs.h <<_ACEOF
23511 #define mandir "$ac_define_dir"
23514 test "$prefix_NONE" && prefix=NONE
23515 test "$exec_prefix_NONE" && exec_prefix=NONE
23519 # amanda-specific directories
23520 AMLIBDIR=$libdir/amanda
23522 # Check whether --with-amlibdir was given.
23523 if test "${with_amlibdir+set}" = set; then :
23524 withval=$with_amlibdir;
23526 n | no) AMLIBDIR=$libdir ;;
23527 y | ye | yes) AMLIBDIR=$libdir/amanda ;;
23528 *) AMLIBDIR=$withval ;;
23537 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23538 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23539 eval ac_define_dir="\"$AMLIBDIR\""
23540 eval ac_define_dir="\"$ac_define_dir\""
23541 amlibdir="$ac_define_dir"
23544 cat >>confdefs.h <<_ACEOF
23545 #define amlibdir "$ac_define_dir"
23548 test "$prefix_NONE" && prefix=NONE
23549 test "$exec_prefix_NONE" && exec_prefix=NONE
23552 AMLIBEXECDIR=$libexecdir/amanda
23554 # Check whether --with-amlibexecdir was given.
23555 if test "${with_amlibexecdir+set}" = set; then :
23556 withval=$with_amlibexecdir;
23558 n | no) AMLIBEXECDIR=$libexecdir ;;
23559 y | ye | yes) AMLIBEXECDIR=$libexecdir/amanda ;;
23560 *) AMLIBEXECDIR=$withval ;;
23569 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23570 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23571 eval ac_define_dir="\"$AMLIBEXECDIR\""
23572 eval ac_define_dir="\"$ac_define_dir\""
23573 amlibexecdir="$ac_define_dir"
23576 cat >>confdefs.h <<_ACEOF
23577 #define amlibexecdir "$ac_define_dir"
23580 test "$prefix_NONE" && prefix=NONE
23581 test "$exec_prefix_NONE" && exec_prefix=NONE
23584 amincludedir="${includedir}/amanda"
23588 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23589 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23590 eval ac_define_dir="\"$amincludedir\""
23591 eval ac_define_dir="\"$ac_define_dir\""
23592 amincludedir="$ac_define_dir"
23595 cat >>confdefs.h <<_ACEOF
23596 #define amincludedir "$ac_define_dir"
23599 test "$prefix_NONE" && prefix=NONE
23600 test "$exec_prefix_NONE" && exec_prefix=NONE
23604 # Check whether --with-amperldir was given.
23605 if test "${with_amperldir+set}" = set; then :
23606 withval=$with_amperldir;
23608 y | ye | yes) AMPERLLIB=DEFAULT ;;
23609 n | no) AMPERLLIB=$amlibdir/perl ;;
23610 *) AMPERLLIB=$withval ;;
23620 # apply the default if no value was given.
23621 if test x"$AMPERLLIB" = x"DEFAULT"; then
23622 eval `$PERL -V:installsitelib`
23623 AMPERLLIB=$installsitelib
23628 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23629 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23630 eval ac_define_dir="\"$AMPERLLIB\""
23631 eval ac_define_dir="\"$ac_define_dir\""
23632 amperldir="$ac_define_dir"
23635 cat >>confdefs.h <<_ACEOF
23636 #define amperldir "$ac_define_dir"
23639 test "$prefix_NONE" && prefix=NONE
23640 test "$exec_prefix_NONE" && exec_prefix=NONE
23643 APPLICATION_DIR='${amlibexecdir}/application'
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="\"$APPLICATION_DIR\""
23650 eval ac_define_dir="\"$ac_define_dir\""
23651 APPLICATION_DIR="$ac_define_dir"
23654 cat >>confdefs.h <<_ACEOF
23655 #define APPLICATION_DIR "$ac_define_dir"
23658 test "$prefix_NONE" && prefix=NONE
23659 test "$exec_prefix_NONE" && exec_prefix=NONE
23663 # Check whether --with-amdatadir was given.
23664 if test "${with_amdatadir+set}" = set; then :
23665 withval=$with_amdatadir;
23670 AMDATADIR=$datadir/amanda
23678 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23679 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23680 eval ac_define_dir="\"$AMDATADIR\""
23681 eval ac_define_dir="\"$ac_define_dir\""
23682 amdatadir="$ac_define_dir"
23685 cat >>confdefs.h <<_ACEOF
23686 #define amdatadir "$ac_define_dir"
23689 test "$prefix_NONE" && prefix=NONE
23690 test "$exec_prefix_NONE" && exec_prefix=NONE
23695 # Internationalization
23698 # FreeBSD needs to link libxpg4
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setlocale in -lxpg4" >&5
23700 $as_echo_n "checking for setlocale in -lxpg4... " >&6; }
23701 if ${ac_cv_lib_xpg4_setlocale+:} false; then :
23702 $as_echo_n "(cached) " >&6
23704 ac_check_lib_save_LIBS=$LIBS
23705 LIBS="-lxpg4 $LIBS"
23706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23707 /* end confdefs.h. */
23709 /* Override any GCC internal prototype to avoid an error.
23710 Use char because int might match the return type of a GCC
23711 builtin and then its argument prototype would still apply. */
23719 return setlocale ();
23724 if ac_fn_c_try_link "$LINENO"; then :
23725 ac_cv_lib_xpg4_setlocale=yes
23727 ac_cv_lib_xpg4_setlocale=no
23729 rm -f core conftest.err conftest.$ac_objext \
23730 conftest$ac_exeext conftest.$ac_ext
23731 LIBS=$ac_check_lib_save_LIBS
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4_setlocale" >&5
23734 $as_echo "$ac_cv_lib_xpg4_setlocale" >&6; }
23735 if test "x$ac_cv_lib_xpg4_setlocale" = xyes; then :
23736 cat >>confdefs.h <<_ACEOF
23737 #define HAVE_LIBXPG4 1
23740 LIBS="-lxpg4 $LIBS"
23745 # ------------------------------------------------------------------
23746 # All list of languages for which a translation exist. Each
23747 # language is separated by a space.
23748 # ------------------------------------------------------------------
23752 # Extract the first word of "msgfmt", so it can be a program name with args.
23753 set dummy msgfmt; ac_word=$2
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23755 $as_echo_n "checking for $ac_word... " >&6; }
23756 if ${ac_cv_path_MSGFMT+:} false; then :
23757 $as_echo_n "(cached) " >&6
23761 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
23764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23765 for as_dir in $LOCSYSPATH
23768 test -z "$as_dir" && as_dir=.
23769 for ac_exec_ext in '' $ac_executable_extensions; do
23770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23771 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
23772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23782 MSGFMT=$ac_cv_path_MSGFMT
23783 if test -n "$MSGFMT"; then
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
23785 $as_echo "$MSGFMT" >&6; }
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23788 $as_echo "no" >&6; }
23792 # Extract the first word of "gettext", so it can be a program name with args.
23793 set dummy gettext; ac_word=$2
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23795 $as_echo_n "checking for $ac_word... " >&6; }
23796 if ${ac_cv_path_GETTEXT+:} false; then :
23797 $as_echo_n "(cached) " >&6
23801 ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
23804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23805 for as_dir in $LOCSYSPATH
23808 test -z "$as_dir" && as_dir=.
23809 for ac_exec_ext in '' $ac_executable_extensions; do
23810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23811 ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
23812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23822 GETTEXT=$ac_cv_path_GETTEXT
23823 if test -n "$GETTEXT"; then
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETTEXT" >&5
23825 $as_echo "$GETTEXT" >&6; }
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23828 $as_echo "no" >&6; }
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
23836 $as_echo_n "checking whether NLS is requested... " >&6; }
23837 # Check whether --enable-nls was given.
23838 if test "${enable_nls+set}" = set; then :
23839 enableval=$enable_nls; USE_NLS=$enableval
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
23845 $as_echo "$USE_NLS" >&6; }
23852 # Prepare PATH_SEPARATOR.
23853 # The user is always right.
23854 if test "${PATH_SEPARATOR+set}" != set; then
23855 echo "#! /bin/sh" >conf$$.sh
23856 echo "exit 0" >>conf$$.sh
23858 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23866 # Find out how to test for executable files. Don't use a zero-byte file,
23867 # as systems may use methods other than mode bits to determine executability.
23868 cat >conf$$.file <<_ASEOF
23872 chmod +x conf$$.file
23873 if test -x conf$$.file >/dev/null 2>&1; then
23874 ac_executable_p="test -x"
23876 ac_executable_p="test -f"
23880 # Extract the first word of "msgfmt", so it can be a program name with args.
23881 set dummy msgfmt; ac_word=$2
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23883 $as_echo_n "checking for $ac_word... " >&6; }
23884 if ${ac_cv_path_MSGFMT+:} false; then :
23885 $as_echo_n "(cached) " >&6
23889 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
23892 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
23893 for ac_dir in $PATH; do
23895 test -z "$ac_dir" && ac_dir=.
23896 for ac_exec_ext in '' $ac_executable_extensions; do
23897 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
23898 echo "$as_me: trying $ac_dir/$ac_word..." >&5
23899 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
23900 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
23901 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
23908 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
23912 MSGFMT="$ac_cv_path_MSGFMT"
23913 if test "$MSGFMT" != ":"; then
23914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
23915 $as_echo "$MSGFMT" >&6; }
23917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23918 $as_echo "no" >&6; }
23921 # Extract the first word of "gmsgfmt", so it can be a program name with args.
23922 set dummy gmsgfmt; ac_word=$2
23923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23924 $as_echo_n "checking for $ac_word... " >&6; }
23925 if ${ac_cv_path_GMSGFMT+:} false; then :
23926 $as_echo_n "(cached) " >&6
23930 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
23933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23934 for as_dir in $PATH
23937 test -z "$as_dir" && as_dir=.
23938 for ac_exec_ext in '' $ac_executable_extensions; do
23939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23940 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
23941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23948 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
23952 GMSGFMT=$ac_cv_path_GMSGFMT
23953 if test -n "$GMSGFMT"; then
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
23955 $as_echo "$GMSGFMT" >&6; }
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23958 $as_echo "no" >&6; }
23963 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
23964 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
23965 *) MSGFMT_015=$MSGFMT ;;
23968 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
23969 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
23970 *) GMSGFMT_015=$GMSGFMT ;;
23975 # Prepare PATH_SEPARATOR.
23976 # The user is always right.
23977 if test "${PATH_SEPARATOR+set}" != set; then
23978 echo "#! /bin/sh" >conf$$.sh
23979 echo "exit 0" >>conf$$.sh
23981 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23989 # Find out how to test for executable files. Don't use a zero-byte file,
23990 # as systems may use methods other than mode bits to determine executability.
23991 cat >conf$$.file <<_ASEOF
23995 chmod +x conf$$.file
23996 if test -x conf$$.file >/dev/null 2>&1; then
23997 ac_executable_p="test -x"
23999 ac_executable_p="test -f"
24003 # Extract the first word of "xgettext", so it can be a program name with args.
24004 set dummy xgettext; ac_word=$2
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24006 $as_echo_n "checking for $ac_word... " >&6; }
24007 if ${ac_cv_path_XGETTEXT+:} false; then :
24008 $as_echo_n "(cached) " >&6
24010 case "$XGETTEXT" in
24012 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
24015 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
24016 for ac_dir in $PATH; do
24018 test -z "$ac_dir" && ac_dir=.
24019 for ac_exec_ext in '' $ac_executable_extensions; do
24020 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
24021 echo "$as_me: trying $ac_dir/$ac_word..." >&5
24022 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
24023 (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
24024 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
24031 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
24035 XGETTEXT="$ac_cv_path_XGETTEXT"
24036 if test "$XGETTEXT" != ":"; then
24037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
24038 $as_echo "$XGETTEXT" >&6; }
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24041 $as_echo "no" >&6; }
24046 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
24047 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
24048 *) XGETTEXT_015=$XGETTEXT ;;
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 "msgmerge", so it can be a program name with args.
24082 set dummy msgmerge; 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_MSGMERGE+:} false; then :
24086 $as_echo_n "(cached) " >&6
24088 case "$MSGMERGE" in
24090 ac_cv_path_MSGMERGE="$MSGMERGE" # 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 --update -q /dev/null /dev/null >&5 2>&1; then
24101 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
24108 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
24112 MSGMERGE="$ac_cv_path_MSGMERGE"
24113 if test "$MSGMERGE" != ":"; then
24114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
24115 $as_echo "$MSGMERGE" >&6; }
24117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24118 $as_echo "no" >&6; }
24122 test -n "$localedir" || localedir='${datadir}/locale'
24125 ac_config_commands="$ac_config_commands po-directories"
24137 acl_save_prefix="$prefix"
24138 prefix="$acl_final_prefix"
24139 acl_save_exec_prefix="$exec_prefix"
24140 exec_prefix="$acl_final_exec_prefix"
24142 eval additional_includedir=\"$includedir\"
24143 eval additional_libdir=\"$libdir\"
24145 exec_prefix="$acl_save_exec_prefix"
24146 prefix="$acl_save_prefix"
24149 # Check whether --with-libiconv-prefix was given.
24150 if test "${with_libiconv_prefix+set}" = set; then :
24151 withval=$with_libiconv_prefix;
24152 if test "X$withval" = "Xno"; then
24155 if test "X$withval" = "X"; then
24157 acl_save_prefix="$prefix"
24158 prefix="$acl_final_prefix"
24159 acl_save_exec_prefix="$exec_prefix"
24160 exec_prefix="$acl_final_exec_prefix"
24162 eval additional_includedir=\"$includedir\"
24163 eval additional_libdir=\"$libdir\"
24165 exec_prefix="$acl_save_exec_prefix"
24166 prefix="$acl_save_prefix"
24169 additional_includedir="$withval/include"
24170 additional_libdir="$withval/$acl_libdirstem"
24181 names_already_handled=
24182 names_next_round='iconv '
24183 while test -n "$names_next_round"; do
24184 names_this_round="$names_next_round"
24186 for name in $names_this_round; do
24188 for n in $names_already_handled; do
24189 if test "$n" = "$name"; then
24190 already_handled=yes
24194 if test -z "$already_handled"; then
24195 names_already_handled="$names_already_handled $name"
24196 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24197 eval value=\"\$HAVE_LIB$uppername\"
24198 if test -n "$value"; then
24199 if test "$value" = yes; then
24200 eval value=\"\$LIB$uppername\"
24201 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
24202 eval value=\"\$LTLIB$uppername\"
24203 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
24212 if test $use_additional = yes; then
24213 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
24214 found_dir="$additional_libdir"
24215 found_so="$additional_libdir/lib$name.$shlibext"
24216 if test -f "$additional_libdir/lib$name.la"; then
24217 found_la="$additional_libdir/lib$name.la"
24220 if test -f "$additional_libdir/lib$name.$libext"; then
24221 found_dir="$additional_libdir"
24222 found_a="$additional_libdir/lib$name.$libext"
24223 if test -f "$additional_libdir/lib$name.la"; then
24224 found_la="$additional_libdir/lib$name.la"
24229 if test "X$found_dir" = "X"; then
24230 for x in $LDFLAGS $LTLIBICONV; do
24232 acl_save_prefix="$prefix"
24233 prefix="$acl_final_prefix"
24234 acl_save_exec_prefix="$exec_prefix"
24235 exec_prefix="$acl_final_exec_prefix"
24237 exec_prefix="$acl_save_exec_prefix"
24238 prefix="$acl_save_prefix"
24242 dir=`echo "X$x" | sed -e 's/^X-L//'`
24243 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
24245 found_so="$dir/lib$name.$shlibext"
24246 if test -f "$dir/lib$name.la"; then
24247 found_la="$dir/lib$name.la"
24250 if test -f "$dir/lib$name.$libext"; then
24252 found_a="$dir/lib$name.$libext"
24253 if test -f "$dir/lib$name.la"; then
24254 found_la="$dir/lib$name.la"
24260 if test "X$found_dir" != "X"; then
24265 if test "X$found_dir" != "X"; then
24266 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
24267 if test "X$found_so" != "X"; then
24268 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
24269 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24272 for x in $ltrpathdirs; do
24273 if test "X$x" = "X$found_dir"; then
24278 if test -z "$haveit"; then
24279 ltrpathdirs="$ltrpathdirs $found_dir"
24281 if test "$hardcode_direct" = yes; then
24282 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24284 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24285 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24287 for x in $rpathdirs; do
24288 if test "X$x" = "X$found_dir"; then
24293 if test -z "$haveit"; then
24294 rpathdirs="$rpathdirs $found_dir"
24298 for x in $LDFLAGS $LIBICONV; do
24300 acl_save_prefix="$prefix"
24301 prefix="$acl_final_prefix"
24302 acl_save_exec_prefix="$exec_prefix"
24303 exec_prefix="$acl_final_exec_prefix"
24305 exec_prefix="$acl_save_exec_prefix"
24306 prefix="$acl_save_prefix"
24308 if test "X$x" = "X-L$found_dir"; then
24313 if test -z "$haveit"; then
24314 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
24316 if test "$hardcode_minus_L" != no; then
24317 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24319 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24325 if test "X$found_a" != "X"; then
24326 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
24328 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
24331 additional_includedir=
24332 case "$found_dir" in
24333 */$acl_libdirstem | */$acl_libdirstem/)
24334 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
24335 additional_includedir="$basedir/include"
24338 if test "X$additional_includedir" != "X"; then
24339 if test "X$additional_includedir" != "X/usr/include"; then
24341 if test "X$additional_includedir" = "X/usr/local/include"; then
24342 if test -n "$GCC"; then
24344 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24348 if test -z "$haveit"; then
24349 for x in $CPPFLAGS $INCICONV; do
24351 acl_save_prefix="$prefix"
24352 prefix="$acl_final_prefix"
24353 acl_save_exec_prefix="$exec_prefix"
24354 exec_prefix="$acl_final_exec_prefix"
24356 exec_prefix="$acl_save_exec_prefix"
24357 prefix="$acl_save_prefix"
24359 if test "X$x" = "X-I$additional_includedir"; then
24364 if test -z "$haveit"; then
24365 if test -d "$additional_includedir"; then
24366 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
24372 if test -n "$found_la"; then
24373 save_libdir="$libdir"
24374 case "$found_la" in
24375 */* | *\\*) . "$found_la" ;;
24376 *) . "./$found_la" ;;
24378 libdir="$save_libdir"
24379 for dep in $dependency_libs; do
24382 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24383 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
24385 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
24386 if test -n "$GCC"; then
24388 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24392 if test -z "$haveit"; then
24394 for x in $LDFLAGS $LIBICONV; do
24396 acl_save_prefix="$prefix"
24397 prefix="$acl_final_prefix"
24398 acl_save_exec_prefix="$exec_prefix"
24399 exec_prefix="$acl_final_exec_prefix"
24401 exec_prefix="$acl_save_exec_prefix"
24402 prefix="$acl_save_prefix"
24404 if test "X$x" = "X-L$additional_libdir"; then
24409 if test -z "$haveit"; then
24410 if test -d "$additional_libdir"; then
24411 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
24415 for x in $LDFLAGS $LTLIBICONV; do
24417 acl_save_prefix="$prefix"
24418 prefix="$acl_final_prefix"
24419 acl_save_exec_prefix="$exec_prefix"
24420 exec_prefix="$acl_final_exec_prefix"
24422 exec_prefix="$acl_save_exec_prefix"
24423 prefix="$acl_save_prefix"
24425 if test "X$x" = "X-L$additional_libdir"; then
24430 if test -z "$haveit"; then
24431 if test -d "$additional_libdir"; then
24432 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
24439 dir=`echo "X$dep" | sed -e 's/^X-R//'`
24440 if test "$enable_rpath" != no; then
24442 for x in $rpathdirs; do
24443 if test "X$x" = "X$dir"; then
24448 if test -z "$haveit"; then
24449 rpathdirs="$rpathdirs $dir"
24452 for x in $ltrpathdirs; do
24453 if test "X$x" = "X$dir"; then
24458 if test -z "$haveit"; then
24459 ltrpathdirs="$ltrpathdirs $dir"
24464 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24467 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24470 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
24471 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
24477 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24478 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
24484 if test "X$rpathdirs" != "X"; then
24485 if test -n "$hardcode_libdir_separator"; then
24487 for found_dir in $rpathdirs; do
24488 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
24490 acl_save_libdir="$libdir"
24492 eval flag=\"$hardcode_libdir_flag_spec\"
24493 libdir="$acl_save_libdir"
24494 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
24496 for found_dir in $rpathdirs; do
24497 acl_save_libdir="$libdir"
24498 libdir="$found_dir"
24499 eval flag=\"$hardcode_libdir_flag_spec\"
24500 libdir="$acl_save_libdir"
24501 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
24505 if test "X$ltrpathdirs" != "X"; then
24506 for found_dir in $ltrpathdirs; do
24507 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
24529 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
24530 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
24531 $as_echo_n "(cached) " >&6
24533 gt_save_LIBS="$LIBS"
24534 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
24535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24536 /* end confdefs.h. */
24537 #include <CoreFoundation/CFPreferences.h>
24541 CFPreferencesCopyAppValue(NULL, NULL)
24546 if ac_fn_c_try_link "$LINENO"; then :
24547 gt_cv_func_CFPreferencesCopyAppValue=yes
24549 gt_cv_func_CFPreferencesCopyAppValue=no
24551 rm -f core conftest.err conftest.$ac_objext \
24552 conftest$ac_exeext conftest.$ac_ext
24553 LIBS="$gt_save_LIBS"
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
24556 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
24557 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
24559 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
24562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
24563 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
24564 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
24565 $as_echo_n "(cached) " >&6
24567 gt_save_LIBS="$LIBS"
24568 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
24569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24570 /* end confdefs.h. */
24571 #include <CoreFoundation/CFLocale.h>
24575 CFLocaleCopyCurrent();
24580 if ac_fn_c_try_link "$LINENO"; then :
24581 gt_cv_func_CFLocaleCopyCurrent=yes
24583 gt_cv_func_CFLocaleCopyCurrent=no
24585 rm -f core conftest.err conftest.$ac_objext \
24586 conftest$ac_exeext conftest.$ac_ext
24587 LIBS="$gt_save_LIBS"
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
24590 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
24591 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24593 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
24597 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24598 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
24610 if test "$USE_NLS" = "yes"; then
24611 gt_use_preinstalled_gnugettext=no
24618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
24619 $as_echo_n "checking for GNU gettext in libc... " >&6; }
24620 if ${gt_cv_func_gnugettext1_libc+:} false; then :
24621 $as_echo_n "(cached) " >&6
24623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24624 /* end confdefs.h. */
24625 #include <libintl.h>
24626 extern int _nl_msg_cat_cntr;
24627 extern int *_nl_domain_bindings;
24631 bindtextdomain ("", "");
24632 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
24637 if ac_fn_c_try_link "$LINENO"; then :
24638 gt_cv_func_gnugettext1_libc=yes
24640 gt_cv_func_gnugettext1_libc=no
24642 rm -f core conftest.err conftest.$ac_objext \
24643 conftest$ac_exeext conftest.$ac_ext
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
24646 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
24648 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
24654 am_save_CPPFLAGS="$CPPFLAGS"
24656 for element in $INCICONV; do
24658 for x in $CPPFLAGS; do
24660 acl_save_prefix="$prefix"
24661 prefix="$acl_final_prefix"
24662 acl_save_exec_prefix="$exec_prefix"
24663 exec_prefix="$acl_final_exec_prefix"
24665 exec_prefix="$acl_save_exec_prefix"
24666 prefix="$acl_save_prefix"
24668 if test "X$x" = "X$element"; then
24673 if test -z "$haveit"; then
24674 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
24680 $as_echo_n "checking for iconv... " >&6; }
24681 if ${am_cv_func_iconv+:} false; then :
24682 $as_echo_n "(cached) " >&6
24685 am_cv_func_iconv="no, consider installing GNU libiconv"
24687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24688 /* end confdefs.h. */
24689 #include <stdlib.h>
24694 iconv_t cd = iconv_open("","");
24695 iconv(cd,NULL,NULL,NULL,NULL);
24701 if ac_fn_c_try_link "$LINENO"; then :
24702 am_cv_func_iconv=yes
24704 rm -f core conftest.err conftest.$ac_objext \
24705 conftest$ac_exeext conftest.$ac_ext
24706 if test "$am_cv_func_iconv" != yes; then
24707 am_save_LIBS="$LIBS"
24708 LIBS="$LIBS $LIBICONV"
24709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24710 /* end confdefs.h. */
24711 #include <stdlib.h>
24716 iconv_t cd = iconv_open("","");
24717 iconv(cd,NULL,NULL,NULL,NULL);
24723 if ac_fn_c_try_link "$LINENO"; then :
24724 am_cv_lib_iconv=yes
24725 am_cv_func_iconv=yes
24727 rm -f core conftest.err conftest.$ac_objext \
24728 conftest$ac_exeext conftest.$ac_ext
24729 LIBS="$am_save_LIBS"
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
24734 $as_echo "$am_cv_func_iconv" >&6; }
24735 if test "$am_cv_func_iconv" = yes; then
24737 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
24740 if test "$am_cv_lib_iconv" = yes; then
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
24742 $as_echo_n "checking how to link with libiconv... " >&6; }
24743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
24744 $as_echo "$LIBICONV" >&6; }
24746 CPPFLAGS="$am_save_CPPFLAGS"
24759 acl_save_prefix="$prefix"
24760 prefix="$acl_final_prefix"
24761 acl_save_exec_prefix="$exec_prefix"
24762 exec_prefix="$acl_final_exec_prefix"
24764 eval additional_includedir=\"$includedir\"
24765 eval additional_libdir=\"$libdir\"
24767 exec_prefix="$acl_save_exec_prefix"
24768 prefix="$acl_save_prefix"
24771 # Check whether --with-libintl-prefix was given.
24772 if test "${with_libintl_prefix+set}" = set; then :
24773 withval=$with_libintl_prefix;
24774 if test "X$withval" = "Xno"; then
24777 if test "X$withval" = "X"; then
24779 acl_save_prefix="$prefix"
24780 prefix="$acl_final_prefix"
24781 acl_save_exec_prefix="$exec_prefix"
24782 exec_prefix="$acl_final_exec_prefix"
24784 eval additional_includedir=\"$includedir\"
24785 eval additional_libdir=\"$libdir\"
24787 exec_prefix="$acl_save_exec_prefix"
24788 prefix="$acl_save_prefix"
24791 additional_includedir="$withval/include"
24792 additional_libdir="$withval/$acl_libdirstem"
24803 names_already_handled=
24804 names_next_round='intl '
24805 while test -n "$names_next_round"; do
24806 names_this_round="$names_next_round"
24808 for name in $names_this_round; do
24810 for n in $names_already_handled; do
24811 if test "$n" = "$name"; then
24812 already_handled=yes
24816 if test -z "$already_handled"; then
24817 names_already_handled="$names_already_handled $name"
24818 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24819 eval value=\"\$HAVE_LIB$uppername\"
24820 if test -n "$value"; then
24821 if test "$value" = yes; then
24822 eval value=\"\$LIB$uppername\"
24823 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
24824 eval value=\"\$LTLIB$uppername\"
24825 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
24834 if test $use_additional = yes; then
24835 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
24836 found_dir="$additional_libdir"
24837 found_so="$additional_libdir/lib$name.$shlibext"
24838 if test -f "$additional_libdir/lib$name.la"; then
24839 found_la="$additional_libdir/lib$name.la"
24842 if test -f "$additional_libdir/lib$name.$libext"; then
24843 found_dir="$additional_libdir"
24844 found_a="$additional_libdir/lib$name.$libext"
24845 if test -f "$additional_libdir/lib$name.la"; then
24846 found_la="$additional_libdir/lib$name.la"
24851 if test "X$found_dir" = "X"; then
24852 for x in $LDFLAGS $LTLIBINTL; do
24854 acl_save_prefix="$prefix"
24855 prefix="$acl_final_prefix"
24856 acl_save_exec_prefix="$exec_prefix"
24857 exec_prefix="$acl_final_exec_prefix"
24859 exec_prefix="$acl_save_exec_prefix"
24860 prefix="$acl_save_prefix"
24864 dir=`echo "X$x" | sed -e 's/^X-L//'`
24865 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
24867 found_so="$dir/lib$name.$shlibext"
24868 if test -f "$dir/lib$name.la"; then
24869 found_la="$dir/lib$name.la"
24872 if test -f "$dir/lib$name.$libext"; then
24874 found_a="$dir/lib$name.$libext"
24875 if test -f "$dir/lib$name.la"; then
24876 found_la="$dir/lib$name.la"
24882 if test "X$found_dir" != "X"; then
24887 if test "X$found_dir" != "X"; then
24888 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
24889 if test "X$found_so" != "X"; then
24890 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
24891 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24894 for x in $ltrpathdirs; do
24895 if test "X$x" = "X$found_dir"; then
24900 if test -z "$haveit"; then
24901 ltrpathdirs="$ltrpathdirs $found_dir"
24903 if test "$hardcode_direct" = yes; then
24904 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24906 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24907 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24909 for x in $rpathdirs; do
24910 if test "X$x" = "X$found_dir"; then
24915 if test -z "$haveit"; then
24916 rpathdirs="$rpathdirs $found_dir"
24920 for x in $LDFLAGS $LIBINTL; do
24922 acl_save_prefix="$prefix"
24923 prefix="$acl_final_prefix"
24924 acl_save_exec_prefix="$exec_prefix"
24925 exec_prefix="$acl_final_exec_prefix"
24927 exec_prefix="$acl_save_exec_prefix"
24928 prefix="$acl_save_prefix"
24930 if test "X$x" = "X-L$found_dir"; then
24935 if test -z "$haveit"; then
24936 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
24938 if test "$hardcode_minus_L" != no; then
24939 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24941 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24947 if test "X$found_a" != "X"; then
24948 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
24950 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
24953 additional_includedir=
24954 case "$found_dir" in
24955 */$acl_libdirstem | */$acl_libdirstem/)
24956 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
24957 additional_includedir="$basedir/include"
24960 if test "X$additional_includedir" != "X"; then
24961 if test "X$additional_includedir" != "X/usr/include"; then
24963 if test "X$additional_includedir" = "X/usr/local/include"; then
24964 if test -n "$GCC"; then
24966 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24970 if test -z "$haveit"; then
24971 for x in $CPPFLAGS $INCINTL; do
24973 acl_save_prefix="$prefix"
24974 prefix="$acl_final_prefix"
24975 acl_save_exec_prefix="$exec_prefix"
24976 exec_prefix="$acl_final_exec_prefix"
24978 exec_prefix="$acl_save_exec_prefix"
24979 prefix="$acl_save_prefix"
24981 if test "X$x" = "X-I$additional_includedir"; then
24986 if test -z "$haveit"; then
24987 if test -d "$additional_includedir"; then
24988 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
24994 if test -n "$found_la"; then
24995 save_libdir="$libdir"
24996 case "$found_la" in
24997 */* | *\\*) . "$found_la" ;;
24998 *) . "./$found_la" ;;
25000 libdir="$save_libdir"
25001 for dep in $dependency_libs; do
25004 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
25005 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
25007 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
25008 if test -n "$GCC"; then
25010 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25014 if test -z "$haveit"; then
25016 for x in $LDFLAGS $LIBINTL; do
25018 acl_save_prefix="$prefix"
25019 prefix="$acl_final_prefix"
25020 acl_save_exec_prefix="$exec_prefix"
25021 exec_prefix="$acl_final_exec_prefix"
25023 exec_prefix="$acl_save_exec_prefix"
25024 prefix="$acl_save_prefix"
25026 if test "X$x" = "X-L$additional_libdir"; then
25031 if test -z "$haveit"; then
25032 if test -d "$additional_libdir"; then
25033 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
25037 for x in $LDFLAGS $LTLIBINTL; do
25039 acl_save_prefix="$prefix"
25040 prefix="$acl_final_prefix"
25041 acl_save_exec_prefix="$exec_prefix"
25042 exec_prefix="$acl_final_exec_prefix"
25044 exec_prefix="$acl_save_exec_prefix"
25045 prefix="$acl_save_prefix"
25047 if test "X$x" = "X-L$additional_libdir"; then
25052 if test -z "$haveit"; then
25053 if test -d "$additional_libdir"; then
25054 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
25061 dir=`echo "X$dep" | sed -e 's/^X-R//'`
25062 if test "$enable_rpath" != no; then
25064 for x in $rpathdirs; do
25065 if test "X$x" = "X$dir"; then
25070 if test -z "$haveit"; then
25071 rpathdirs="$rpathdirs $dir"
25074 for x in $ltrpathdirs; do
25075 if test "X$x" = "X$dir"; then
25080 if test -z "$haveit"; then
25081 ltrpathdirs="$ltrpathdirs $dir"
25086 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
25089 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
25092 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
25093 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
25099 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
25100 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
25106 if test "X$rpathdirs" != "X"; then
25107 if test -n "$hardcode_libdir_separator"; then
25109 for found_dir in $rpathdirs; do
25110 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
25112 acl_save_libdir="$libdir"
25114 eval flag=\"$hardcode_libdir_flag_spec\"
25115 libdir="$acl_save_libdir"
25116 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
25118 for found_dir in $rpathdirs; do
25119 acl_save_libdir="$libdir"
25120 libdir="$found_dir"
25121 eval flag=\"$hardcode_libdir_flag_spec\"
25122 libdir="$acl_save_libdir"
25123 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
25127 if test "X$ltrpathdirs" != "X"; then
25128 for found_dir in $ltrpathdirs; do
25129 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
25133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
25134 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
25135 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
25136 $as_echo_n "(cached) " >&6
25138 gt_save_CPPFLAGS="$CPPFLAGS"
25139 CPPFLAGS="$CPPFLAGS $INCINTL"
25140 gt_save_LIBS="$LIBS"
25141 LIBS="$LIBS $LIBINTL"
25142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25143 /* end confdefs.h. */
25144 #include <libintl.h>
25145 extern int _nl_msg_cat_cntr;
25150 const char *_nl_expand_alias (const char *);
25154 bindtextdomain ("", "");
25155 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
25160 if ac_fn_c_try_link "$LINENO"; then :
25161 gt_cv_func_gnugettext1_libintl=yes
25163 gt_cv_func_gnugettext1_libintl=no
25165 rm -f core conftest.err conftest.$ac_objext \
25166 conftest$ac_exeext conftest.$ac_ext
25167 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
25168 LIBS="$LIBS $LIBICONV"
25169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25170 /* end confdefs.h. */
25171 #include <libintl.h>
25172 extern int _nl_msg_cat_cntr;
25177 const char *_nl_expand_alias (const char *);
25181 bindtextdomain ("", "");
25182 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
25187 if ac_fn_c_try_link "$LINENO"; then :
25188 LIBINTL="$LIBINTL $LIBICONV"
25189 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
25190 gt_cv_func_gnugettext1_libintl=yes
25193 rm -f core conftest.err conftest.$ac_objext \
25194 conftest$ac_exeext conftest.$ac_ext
25196 CPPFLAGS="$gt_save_CPPFLAGS"
25197 LIBS="$gt_save_LIBS"
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
25200 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
25203 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
25204 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
25205 && test "$PACKAGE" != gettext-runtime \
25206 && test "$PACKAGE" != gettext-tools; }; then
25207 gt_use_preinstalled_gnugettext=yes
25216 if test -n "$INTL_MACOSX_LIBS"; then
25217 if test "$gt_use_preinstalled_gnugettext" = "yes" \
25218 || test "$nls_cv_use_gnu_gettext" = "yes"; then
25219 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
25220 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
25224 if test "$gt_use_preinstalled_gnugettext" = "yes" \
25225 || test "$nls_cv_use_gnu_gettext" = "yes"; then
25227 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
25235 $as_echo_n "checking whether to use NLS... " >&6; }
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
25237 $as_echo "$USE_NLS" >&6; }
25238 if test "$USE_NLS" = "yes"; then
25239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
25240 $as_echo_n "checking where the gettext function comes from... " >&6; }
25241 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
25242 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
25243 gt_source="external libintl"
25248 gt_source="included intl directory"
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
25251 $as_echo "$gt_source" >&6; }
25254 if test "$USE_NLS" = "yes"; then
25256 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
25257 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
25259 $as_echo_n "checking how to link with libintl... " >&6; }
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
25261 $as_echo "$LIBINTL" >&6; }
25263 for element in $INCINTL; do
25265 for x in $CPPFLAGS; do
25267 acl_save_prefix="$prefix"
25268 prefix="$acl_final_prefix"
25269 acl_save_exec_prefix="$exec_prefix"
25270 exec_prefix="$acl_final_exec_prefix"
25272 exec_prefix="$acl_save_exec_prefix"
25273 prefix="$acl_save_prefix"
25275 if test "X$x" = "X$element"; then
25280 if test -z "$haveit"; then
25281 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
25288 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
25291 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
25300 INTLLIBS="$LIBINTL"
25309 # Security (authentication) mechansims
25314 # Check whether --with-bsd-security was given.
25315 if test "${with_bsd_security+set}" = set; then :
25316 withval=$with_bsd_security;
25318 n | no) BSD_SECURITY=no ;;
25319 y | ye | yes) BSD_SECURITY=yes ;;
25320 *) as_fn_error $? "*** You must not supply an argument to --without-bsd-security." "$LINENO" 5
25327 USE_AMANDAHOSTS=yes
25329 # Check whether --with-amandahosts was given.
25330 if test "${with_amandahosts+set}" = set; then :
25331 withval=$with_amandahosts;
25333 n | no ) USE_AMANDAHOSTS=no ;;
25334 y | ye | yes) USE_AMANDAHOSTS=yes ;;
25335 *) as_fn_error $? "*** You must not supply an argument to --without-amandahosts option." "$LINENO" 5
25343 if test "x$BSD_SECURITY" = "xyes"; then
25345 $as_echo "#define BSD_SECURITY 1" >>confdefs.h
25347 if test "x$USE_AMANDAHOSTS" = "xyes"; then
25349 $as_echo "#define USE_AMANDAHOSTS 1" >>confdefs.h
25354 if test x"$BSD_SECURITY" = x"yes"; then
25355 WANT_BSD_SECURITY_TRUE=
25356 WANT_BSD_SECURITY_FALSE='#'
25358 WANT_BSD_SECURITY_TRUE='#'
25359 WANT_BSD_SECURITY_FALSE=
25366 BSDTCP_SECURITY="yes"
25368 # Check whether --with-bsdtcp-security was given.
25369 if test "${with_bsdtcp_security+set}" = set; then :
25370 withval=$with_bsdtcp_security;
25372 n | no) BSDTCP_SECURITY=no ;;
25373 y | ye | yes) BSDTCP_SECURITY=yes ;;
25374 *) as_fn_error $? "*** You must not supply an argument to --with-bsdtcp-security." "$LINENO" 5
25381 if test "x$BSDTCP_SECURITY" = "xyes"; then
25383 $as_echo "#define BSDTCP_SECURITY 1" >>confdefs.h
25387 if test x"$BSDTCP_SECURITY" = x"yes"; then
25388 WANT_BSDTCP_SECURITY_TRUE=
25389 WANT_BSDTCP_SECURITY_FALSE='#'
25391 WANT_BSDTCP_SECURITY_TRUE='#'
25392 WANT_BSDTCP_SECURITY_FALSE=
25398 BSDUDP_SECURITY="no"
25400 # Check whether --with-bsdudp-security was given.
25401 if test "${with_bsdudp_security+set}" = set; then :
25402 withval=$with_bsdudp_security;
25405 y | ye | yes) BSDUDP_SECURITY=yes ;;
25406 *) as_fn_error $? "*** You must not supply an argument to --with-bsdudp-security." "$LINENO" 5
25413 if test "x$BSDUDP_SECURITY" = "xyes"; then
25415 $as_echo "#define BSDUDP_SECURITY 1" >>confdefs.h
25419 if test x"$BSDUDP_SECURITY" = x"yes"; then
25420 WANT_BSDUDP_SECURITY_TRUE=
25421 WANT_BSDUDP_SECURITY_FALSE='#'
25423 WANT_BSDUDP_SECURITY_TRUE='#'
25424 WANT_BSDUDP_SECURITY_FALSE=
25432 # Check whether --with-rsh-security was given.
25433 if test "${with_rsh_security+set}" = set; then :
25434 withval=$with_rsh_security;
25437 y | ye | yes) RSH_SECURITY=yes ;;
25438 *) as_fn_error $? "*** You must not supply an argument to --with-rsh-security." "$LINENO" 5
25445 if test "x$RSH_SECURITY" = "xyes"; then
25447 $as_echo "#define RSH_SECURITY 1" >>confdefs.h
25450 if test x"$RSH_SECURITY" = x"yes"; then
25451 WANT_RSH_SECURITY_TRUE=
25452 WANT_RSH_SECURITY_FALSE='#'
25454 WANT_RSH_SECURITY_TRUE='#'
25455 WANT_RSH_SECURITY_FALSE=
25463 # Check whether --with-ssh-security was given.
25464 if test "${with_ssh_security+set}" = set; then :
25465 withval=$with_ssh_security;
25467 n | no) SSH_SECURITY=no ;;
25468 y | ye | yes) SSH_SECURITY=yes ;;
25469 *) as_fn_error $? "*** You must not supply an argument to --with-ssh-security." "$LINENO" 5
25476 if test "x$SSH_SECURITY" = "xyes"; then
25477 # find the SSH binary
25480 # Extract the first word of "$ac_prog", so it can be a program name with args.
25481 set dummy $ac_prog; ac_word=$2
25482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25483 $as_echo_n "checking for $ac_word... " >&6; }
25484 if ${ac_cv_path_SSH+:} false; then :
25485 $as_echo_n "(cached) " >&6
25489 ac_cv_path_SSH="$SSH" # Let the user override the test with a path.
25492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25493 for as_dir in $LOCSYSPATH
25496 test -z "$as_dir" && as_dir=.
25497 for ac_exec_ext in '' $ac_executable_extensions; do
25498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25499 ac_cv_path_SSH="$as_dir/$ac_word$ac_exec_ext"
25500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25510 SSH=$ac_cv_path_SSH
25511 if test -n "$SSH"; then
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSH" >&5
25513 $as_echo "$SSH" >&6; }
25515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25516 $as_echo "no" >&6; }
25520 test -n "$SSH" && break
25524 # see what options we should use
25526 # Check whether --with-ssh-options was given.
25527 if test "${with_ssh_options+set}" = set; then :
25528 withval=$with_ssh_options; SSH_OPTIONS="$withval"
25535 case "$SSH_OPTIONS" in
25536 y | ye | yes | n | no)
25537 as_fn_error $? "*** You must supply an argument to --with-ssh-options." "$LINENO" 5;;
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SSH options" >&5
25542 $as_echo_n "checking SSH options... " >&6; }
25543 # if we didn't get SSH options from the user, figure them out for ourselves
25544 if test -z "$SSH_OPTIONS"; then
25545 case `$SSH -V 2>&1` in
25546 OpenSSH*) SSH_OPTIONS='-x -o BatchMode=yes -o PreferredAuthentications=publickey';;
25547 *) SSH_OPTIONS='-x -o BatchMode=yes' ;;
25551 # now convert that to a comma-separated list of C strings
25552 eval "set dummy ${SSH_OPTIONS}"; shift
25554 for i in "${@}"; do
25555 quoted="\"`echo "$i" | sed -e 's/\"/\\\"/'`\""
25556 SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }$quoted";
25558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSH_OPTIONS" >&5
25559 $as_echo "$SSH_OPTIONS" >&6; }
25561 # finally, make the various outputs for all of this
25563 $as_echo "#define SSH_SECURITY 1" >>confdefs.h
25566 cat >>confdefs.h <<_ACEOF
25571 cat >>confdefs.h <<_ACEOF
25572 #define SSH_OPTIONS $SSH_OPTIONS
25576 if test x"$SSH_SECURITY" = x"yes"; then
25577 WANT_SSH_SECURITY_TRUE=
25578 WANT_SSH_SECURITY_FALSE='#'
25580 WANT_SSH_SECURITY_TRUE='#'
25581 WANT_SSH_SECURITY_FALSE=
25586 # (note -- don't just substitute SSH_OPTIONS -- shell quoting will break)
25589 # Specify --with-krb5-security if Kerberos software is in somewhere
25590 # other than the listed KRB5_SPOTS. We only compile kerberos support in
25591 # if the right files are there.
25594 : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
25597 # Check whether --with-krb5-security was given.
25598 if test "${with_krb5_security+set}" = set; then :
25599 withval=$with_krb5_security;
25601 n | no) KRB5_SECURITY=no ;;
25602 y | ye | yes) KRB5_SECURITY=yes ;;
25603 *) KRB5_SPOTS="$KRB5_SECURITY"
25612 if test "x$KRB5_SECURITY" = "xyes"; then
25613 # if found, force the static versions of these libs (.a) by linking directly
25614 # with the .a files. I don't know how to get -R dependancies checked
25615 # in autoconf at this time. -kashmir
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos V libraries" >&5
25617 $as_echo_n "checking for Kerberos V libraries... " >&6; }
25619 for dir in $KRB5_SPOTS; do
25620 for lib in lib lib64; do
25621 k5libdir=${dir}/${lib}
25622 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
25623 if test -f ${k5libdir}/libk5crypto.a -o -f ${k5libdir}/libk5crypto.so; then
25624 K5CRYPTO=-lk5crypto
25625 elif test -f ${k5libdir}/libcrypto.a -o -f ${k5libdir}/libcrypto.so; then
25630 if test -f ${k5libdir}/libkrb5support.a -o -f ${k5libdir}/libkrb5support.so; then
25631 K5SUPPORT=-lkrb5support
25635 KRB5_DIR_FOUND=$dir
25636 KRB5_LIBDIR_FOUND=$k5libdir
25637 LIBS="-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err $LIBS"
25640 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
25641 LIBS="-lgssapi -lkrb5 -lasn1 $LIBS"
25643 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL_INCLUDES"
25650 if test "$KRB5_DIR_FOUND"; then
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $KRB5_DIR_FOUND" >&5
25652 $as_echo "found in $KRB5_DIR_FOUND" >&6; }
25654 # some OS's, such as NetBSD, stick krb5 includes out of the way...
25655 # should probably just use autoconf to look for various include
25656 # options and set them, but don't quite want to do that until I've
25657 # dug into it a bit more.
25659 if test -d "$KRB5_DIR_FOUND/krb5" ; then
25660 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include/krb5"
25663 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include"
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
25667 $as_echo_n "checking for main in -lkrb5support... " >&6; }
25668 if ${ac_cv_lib_krb5support_main+:} false; then :
25669 $as_echo_n "(cached) " >&6
25671 ac_check_lib_save_LIBS=$LIBS
25672 LIBS="-lkrb5support $LIBS"
25673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25674 /* end confdefs.h. */
25685 if ac_fn_c_try_link "$LINENO"; then :
25686 ac_cv_lib_krb5support_main=yes
25688 ac_cv_lib_krb5support_main=no
25690 rm -f core conftest.err conftest.$ac_objext \
25691 conftest$ac_exeext conftest.$ac_ext
25692 LIBS=$ac_check_lib_save_LIBS
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
25695 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
25696 if test "x$ac_cv_lib_krb5support_main" = xyes; then :
25697 cat >>confdefs.h <<_ACEOF
25698 #define HAVE_LIBKRB5SUPPORT 1
25701 LIBS="-lkrb5support $LIBS"
25706 if test "$KRB5_LIBDIR_FOUND" != "$libdir" ; then
25707 LDFLAGS="$LDFLAGS -L$KRB5_LIBDIR_FOUND"
25712 $as_echo "#define KRB5_SECURITY 1" >>confdefs.h
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no krb5 system libraries found" >&5
25716 $as_echo "no krb5 system libraries found" >&6; }
25717 as_fn_error $? "No Kerberos V libraries were found on your system; krb5-security cannot be enabled" "$LINENO" 5
25722 if test x"$KRB5_SECURITY" = x"yes"; then
25723 WANT_KRB5_SECURITY_TRUE=
25724 WANT_KRB5_SECURITY_FALSE='#'
25726 WANT_KRB5_SECURITY_TRUE='#'
25727 WANT_KRB5_SECURITY_FALSE=
25739 for ac_prog in xfsdump
25741 # Extract the first word of "$ac_prog", so it can be a program name with args.
25742 set dummy $ac_prog; ac_word=$2
25743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25744 $as_echo_n "checking for $ac_word... " >&6; }
25745 if ${ac_cv_path_XFSDUMP+:} false; then :
25746 $as_echo_n "(cached) " >&6
25750 ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
25753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25754 for as_dir in $SYSLOCPATH
25757 test -z "$as_dir" && as_dir=.
25758 for ac_exec_ext in '' $ac_executable_extensions; do
25759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25760 ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
25761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25771 XFSDUMP=$ac_cv_path_XFSDUMP
25772 if test -n "$XFSDUMP"; then
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFSDUMP" >&5
25774 $as_echo "$XFSDUMP" >&6; }
25776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25777 $as_echo "no" >&6; }
25781 test -n "$XFSDUMP" && break
25784 for ac_prog in xfsrestore
25786 # Extract the first word of "$ac_prog", so it can be a program name with args.
25787 set dummy $ac_prog; ac_word=$2
25788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25789 $as_echo_n "checking for $ac_word... " >&6; }
25790 if ${ac_cv_path_XFSRESTORE+:} false; then :
25791 $as_echo_n "(cached) " >&6
25793 case $XFSRESTORE in
25795 ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
25798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25799 for as_dir in $SYSLOCPATH
25802 test -z "$as_dir" && as_dir=.
25803 for ac_exec_ext in '' $ac_executable_extensions; do
25804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25805 ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
25806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25816 XFSRESTORE=$ac_cv_path_XFSRESTORE
25817 if test -n "$XFSRESTORE"; then
25818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFSRESTORE" >&5
25819 $as_echo "$XFSRESTORE" >&6; }
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25822 $as_echo "no" >&6; }
25826 test -n "$XFSRESTORE" && break
25829 if test "$XFSDUMP" -a "$XFSRESTORE"; then
25831 cat >>confdefs.h <<_ACEOF
25832 #define XFSDUMP "$XFSDUMP"
25836 cat >>confdefs.h <<_ACEOF
25837 #define XFSRESTORE "$XFSRESTORE"
25841 { $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
25842 $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;}
25845 cat <<AAW_EOF >>config.warnings
25846 xfsdump causes the setuid-root rundump program to be enabled. To disable it, just #undef XFSDUMP in config/config.h
25855 # Extract the first word of "vxdump", so it can be a program name with args.
25856 set dummy vxdump; ac_word=$2
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25858 $as_echo_n "checking for $ac_word... " >&6; }
25859 if ${ac_cv_path_VXDUMP+:} false; then :
25860 $as_echo_n "(cached) " >&6
25864 ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
25867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25868 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
25869 for as_dir in $as_dummy
25872 test -z "$as_dir" && as_dir=.
25873 for ac_exec_ext in '' $ac_executable_extensions; do
25874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25875 ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
25876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25886 VXDUMP=$ac_cv_path_VXDUMP
25887 if test -n "$VXDUMP"; then
25888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VXDUMP" >&5
25889 $as_echo "$VXDUMP" >&6; }
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25892 $as_echo "no" >&6; }
25896 # Extract the first word of "vxrestore", so it can be a program name with args.
25897 set dummy vxrestore; ac_word=$2
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25899 $as_echo_n "checking for $ac_word... " >&6; }
25900 if ${ac_cv_path_VXRESTORE+:} false; then :
25901 $as_echo_n "(cached) " >&6
25905 ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
25908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25909 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
25910 for as_dir in $as_dummy
25913 test -z "$as_dir" && as_dir=.
25914 for ac_exec_ext in '' $ac_executable_extensions; do
25915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25916 ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
25917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25927 VXRESTORE=$ac_cv_path_VXRESTORE
25928 if test -n "$VXRESTORE"; then
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VXRESTORE" >&5
25930 $as_echo "$VXRESTORE" >&6; }
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25933 $as_echo "no" >&6; }
25937 if test "$VXDUMP" -a "$VXRESTORE"; then
25939 cat >>confdefs.h <<_ACEOF
25940 #define VXDUMP "$VXDUMP"
25944 cat >>confdefs.h <<_ACEOF
25945 #define VXRESTORE "$VXRESTORE"
25953 # Extract the first word of "vdump", so it can be a program name with args.
25954 set dummy vdump; ac_word=$2
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25956 $as_echo_n "checking for $ac_word... " >&6; }
25957 if ${ac_cv_path_VDUMP+:} false; then :
25958 $as_echo_n "(cached) " >&6
25962 ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
25965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25966 for as_dir in $SYSLOCPATH
25969 test -z "$as_dir" && as_dir=.
25970 for ac_exec_ext in '' $ac_executable_extensions; do
25971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25972 ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
25973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25983 VDUMP=$ac_cv_path_VDUMP
25984 if test -n "$VDUMP"; then
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VDUMP" >&5
25986 $as_echo "$VDUMP" >&6; }
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25989 $as_echo "no" >&6; }
25993 # Extract the first word of "vrestore", so it can be a program name with args.
25994 set dummy vrestore; ac_word=$2
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25996 $as_echo_n "checking for $ac_word... " >&6; }
25997 if ${ac_cv_path_VRESTORE+:} false; then :
25998 $as_echo_n "(cached) " >&6
26002 ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
26005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26006 for as_dir in $SYSLOCPATH
26009 test -z "$as_dir" && as_dir=.
26010 for ac_exec_ext in '' $ac_executable_extensions; do
26011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26012 ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
26013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26023 VRESTORE=$ac_cv_path_VRESTORE
26024 if test -n "$VRESTORE"; then
26025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VRESTORE" >&5
26026 $as_echo "$VRESTORE" >&6; }
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26029 $as_echo "no" >&6; }
26033 if test "$VDUMP" -a "$VRESTORE"; then
26035 cat >>confdefs.h <<_ACEOF
26036 #define VDUMP "$VDUMP"
26040 cat >>confdefs.h <<_ACEOF
26041 #define VRESTORE "$VRESTORE"
26050 # Set the order of dump programs to look for. Finding the proper file
26051 # system dumping program is problematic. Some systems, notably HP-UX
26052 # and AIX, have both the backup and dump programs. HP-UX can't use the
26053 # the backup program while AIX systems can't use the dump program. So
26054 # a variable is set up here to specify the order of dump programs to
26055 # search for on the system.
26056 DUMP_PROGRAMS="ufsdump dump backup"
26061 DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
26065 DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
26068 $as_echo "#define AIX_BACKUP 1" >>confdefs.h
26076 if test -n "$DUMP_RETURNS_1"; then
26078 $as_echo "#define DUMP_RETURNS_1 1" >>confdefs.h
26082 for ac_prog in $DUMP_PROGRAMS
26084 # Extract the first word of "$ac_prog", so it can be a program name with args.
26085 set dummy $ac_prog; ac_word=$2
26086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26087 $as_echo_n "checking for $ac_word... " >&6; }
26088 if ${ac_cv_path_DUMP+:} false; then :
26089 $as_echo_n "(cached) " >&6
26093 ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
26096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26097 for as_dir in $SYSLOCPATH
26100 test -z "$as_dir" && as_dir=.
26101 for ac_exec_ext in '' $ac_executable_extensions; do
26102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26103 ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
26104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26114 DUMP=$ac_cv_path_DUMP
26115 if test -n "$DUMP"; then
26116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMP" >&5
26117 $as_echo "$DUMP" >&6; }
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26120 $as_echo "no" >&6; }
26124 test -n "$DUMP" && break
26127 for ac_prog in ufsrestore restore
26129 # Extract the first word of "$ac_prog", so it can be a program name with args.
26130 set dummy $ac_prog; ac_word=$2
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26132 $as_echo_n "checking for $ac_word... " >&6; }
26133 if ${ac_cv_path_RESTORE+:} false; then :
26134 $as_echo_n "(cached) " >&6
26138 ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
26141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26142 for as_dir in $SYSLOCPATH
26145 test -z "$as_dir" && as_dir=.
26146 for ac_exec_ext in '' $ac_executable_extensions; do
26147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26148 ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
26149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26159 RESTORE=$ac_cv_path_RESTORE
26160 if test -n "$RESTORE"; then
26161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RESTORE" >&5
26162 $as_echo "$RESTORE" >&6; }
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26165 $as_echo "no" >&6; }
26169 test -n "$RESTORE" && break
26173 # newer versions of GNU tar include a program named 'backup' which
26174 # does *not* implement the expected 'dump' interface. Detect that here
26175 # and pretend we never saw it.
26176 if test -n "$DUMP"; then
26177 if test "`basename $DUMP`" = "backup"; then
26178 backup_gnutar=`$DUMP --version | $GREP "GNU tar"`
26179 if test $? -eq 0; then
26185 if test "$DUMP" -a "$RESTORE"; then
26187 cat >>confdefs.h <<_ACEOF
26188 #define DUMP "$DUMP"
26192 cat >>confdefs.h <<_ACEOF
26193 #define RESTORE "$RESTORE"
26197 # check for an estimate flag
26198 if test -x $DUMP; then
26199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DUMP supports -E or -S for estimates" >&5
26200 $as_echo_n "checking whether $DUMP supports -E or -S for estimates... " >&6; }
26201 if ${amanda_cv_dump_estimate+:} false; then :
26202 $as_echo_n "(cached) " >&6
26207 { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
26210 | $GREP -v Label >conftest.d-E 2>&1'
26211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26212 (eval $ac_try) 2>&5
26214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26215 test $ac_status = 0; }; }
26216 cat conftest.d-E >&5
26217 { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
26220 | $GREP -v Label >conftest.d-S 2>&1'
26221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26222 (eval $ac_try) 2>&5
26224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26225 test $ac_status = 0; }; }
26226 cat conftest.d-S >&5
26227 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
26230 | $GREP -v Label >conftest.d 2>&1'
26231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26232 (eval $ac_try) 2>&5
26234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26235 test $ac_status = 0; }; }
26237 if { ac_try='cmp conftest.d-E conftest.d 1>&2'
26238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26239 (eval $ac_try) 2>&5
26241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26242 test $ac_status = 0; }; }; then
26243 amanda_cv_dump_estimate=E
26244 elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
26245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26246 (eval $ac_try) 2>&5
26248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26249 test $ac_status = 0; }; }; then
26250 amanda_cv_dump_estimate=S
26252 amanda_cv_dump_estimate=no
26254 rm -f conftest.d conftest.d-E conftest.d-S
26256 *) amanda_cv_dump_estimate=no
26261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_dump_estimate" >&5
26262 $as_echo "$amanda_cv_dump_estimate" >&6; }
26265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $DUMP is not executable, cannot run -E/-S test" >&5
26266 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -E/-S test" >&2;}
26269 cat <<AAW_EOF >>config.warnings
26270 $DUMP is not executable, cannot run -E/-S test
26274 amanda_cv_dump_estimate=no
26276 if test "x$amanda_cv_dump_estimate" != xno; then
26278 cat >>confdefs.h <<_ACEOF
26279 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
26285 # Check whether --with-dump-honor-nodump was given.
26286 if test "${with_dump_honor_nodump+set}" = set; then :
26287 withval=$with_dump_honor_nodump;
26288 if test -x $DUMP; then
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DUMP supports -h (honor nodump flag)" >&5
26290 $as_echo_n "checking whether $DUMP supports -h (honor nodump flag)... " >&6; }
26291 if ${amanda_cv_honor_nodump+:} false; then :
26292 $as_echo_n "(cached) " >&6
26297 { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
26300 | $GREP -v Label >conftest.d-h 2>&1'
26301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26302 (eval $ac_try) 2>&5
26304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26305 test $ac_status = 0; }; }
26306 cat conftest.d-h >&5
26307 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
26310 | $GREP -v Label >conftest.d 2>&1'
26311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26312 (eval $ac_try) 2>&5
26314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26315 test $ac_status = 0; }; }
26317 if { ac_try='diff conftest.d-h conftest.d 1>&2'
26318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26319 (eval $ac_try) 2>&5
26321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26322 test $ac_status = 0; }; }; then
26323 amanda_cv_honor_nodump=yes
26325 amanda_cv_honor_nodump=no
26327 rm -f conftest.d conftest.d-h
26329 *) amanda_cv_honor_nodump=no
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_honor_nodump" >&5
26335 $as_echo "$amanda_cv_honor_nodump" >&6; }
26338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $DUMP is not executable, cannot run -h test" >&5
26339 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -h test" >&2;}
26342 cat <<AAW_EOF >>config.warnings
26343 $DUMP is not executable, cannot run -h test
26347 amanda_cv_honor_nodump=no
26349 if test "x$amanda_cv_honor_nodump" = xyes; then
26351 $as_echo "#define HAVE_HONOR_NODUMP 1" >>confdefs.h
26367 # Check whether --with-gnutar was given.
26368 if test "${with_gnutar+set}" = set; then :
26369 withval=$with_gnutar;
26372 /*) GNUTAR="$withval";;
26375 *) as_fn_error $? "*** You must supply a full pathname to --with-gnutar" "$LINENO" 5;;
26383 if test "x$GNUTAR" = "xno"; then
26387 for gnutar_name in gtar gnutar tar; do
26388 for ac_prog in $gnutar_name
26390 # Extract the first word of "$ac_prog", so it can be a program name with args.
26391 set dummy $ac_prog; ac_word=$2
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26393 $as_echo_n "checking for $ac_word... " >&6; }
26394 if ${ac_cv_path_GNUTAR+:} false; then :
26395 $as_echo_n "(cached) " >&6
26399 ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
26402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26403 for as_dir in $LOCSYSPATH
26406 test -z "$as_dir" && as_dir=.
26407 for ac_exec_ext in '' $ac_executable_extensions; do
26408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26409 ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
26410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26420 GNUTAR=$ac_cv_path_GNUTAR
26421 if test -n "$GNUTAR"; then
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
26423 $as_echo "$GNUTAR" >&6; }
26425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26426 $as_echo "no" >&6; }
26430 test -n "$GNUTAR" && break
26433 if test -n "$GNUTAR"; then
26434 case `"$GNUTAR" --version 2>&1` in
26435 *GNU*tar* | *Free*paxutils* )
26436 # OK, it is GNU tar
26440 if test -n "$OLD_GNUTAR"; then
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $GNUTAR is not GNU tar, it will be used." >&5
26443 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, it will be used." >&2;}
26446 cat <<AAW_EOF >>config.warnings
26447 $GNUTAR is not GNU tar, it will be used.
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&5
26455 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&2;}
26458 cat <<AAW_EOF >>config.warnings
26459 $GNUTAR is not GNU tar, so it will not be used.
26463 # reset the cache for GNUTAR so AC_PATH_PROGS will search again
26465 unset ac_cv_path_GNUTAR
26473 if test "x$GNUTAR" != "x"; then
26476 cat >>confdefs.h <<_ACEOF
26477 #define GNUTAR "$GNUTAR"
26489 # Check whether --with-star was given.
26490 if test "${with_star+set}" = set; then :
26491 withval=$with_star;
26494 /*) STAR="$withval";;
26497 *) as_fn_error $? "*** You must supply a full pathname to --with-star" "$LINENO" 5;;
26505 if test "x$STAR" = "xno"; then
26509 for ac_prog in star
26511 # Extract the first word of "$ac_prog", so it can be a program name with args.
26512 set dummy $ac_prog; ac_word=$2
26513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26514 $as_echo_n "checking for $ac_word... " >&6; }
26515 if ${ac_cv_path_STAR+:} false; then :
26516 $as_echo_n "(cached) " >&6
26520 ac_cv_path_STAR="$STAR" # Let the user override the test with a path.
26523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26524 for as_dir in $LOCSYSPATH
26527 test -z "$as_dir" && as_dir=.
26528 for ac_exec_ext in '' $ac_executable_extensions; do
26529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26530 ac_cv_path_STAR="$as_dir/$ac_word$ac_exec_ext"
26531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26541 STAR=$ac_cv_path_STAR
26542 if test -n "$STAR"; then
26543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAR" >&5
26544 $as_echo "$STAR" >&6; }
26546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26547 $as_echo "no" >&6; }
26551 test -n "$STAR" && break
26554 if test -n "$STAR"; then
26555 case `"$STAR" --version 2>/dev/null` in
26561 if test -n "$OLD_STAR"; then
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $STAR is not star, it will be used." >&5
26564 $as_echo "$as_me: WARNING: $STAR is not star, it will be used." >&2;}
26567 cat <<AAW_EOF >>config.warnings
26568 $STAR is not star, it will be used.
26575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $STAR is not star, so it will not be used." >&5
26576 $as_echo "$as_me: WARNING: $STAR is not star, so it will not be used." >&2;}
26579 cat <<AAW_EOF >>config.warnings
26580 $STAR is not star, so it will not be used.
26584 # reset the cache for STAR so AC_PATH_PROGS will search again
26586 unset ac_cv_path_STAR
26593 if test "x$STAR" != "x"; then
26596 cat >>confdefs.h <<_ACEOF
26597 #define STAR "$STAR"
26609 # Check whether --with-suntar was given.
26610 if test "${with_suntar+set}" = set; then :
26611 withval=$with_suntar;
26614 /*) SUNTAR="$withval";;
26617 *) as_fn_error $? "*** You must supply a full pathname to --with-suntar" "$LINENO" 5;;
26623 if test "x$SUNTAR" == "x"; then
26624 SUNTAR="/usr/sbin/tar"
26631 if test "x$SUNTAR" = "xno"; then
26635 if test "x$SUNTAR" != "x"; then
26638 cat >>confdefs.h <<_ACEOF
26639 #define SUNTAR "$SUNTAR"
26650 # Check whether --with-smbclient was given.
26651 if test "${with_smbclient+set}" = set; then :
26652 withval=$with_smbclient;
26654 /*) SAMBA_CLIENT="$withval";;
26656 n|no) SAMBA_CLIENT=no ;;
26657 *) as_fn_error $? "*** You must supply a full pathname to --with-smbclient" "$LINENO" 5;;
26665 # Check whether --with-samba-user was given.
26666 if test "${with_samba_user+set}" = set; then :
26667 withval=$with_samba_user; as_fn_error $? "--with-samba-user is no longer supported; place username in 'amandapass'" "$LINENO" 5
26672 if test "x$SAMBA_CLIENT" != "xno"; then
26673 # Extract the first word of "smbclient", so it can be a program name with args.
26674 set dummy smbclient; ac_word=$2
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26676 $as_echo_n "checking for $ac_word... " >&6; }
26677 if ${ac_cv_path_SAMBA_CLIENT+:} false; then :
26678 $as_echo_n "(cached) " >&6
26680 case $SAMBA_CLIENT in
26682 ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
26685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26686 for as_dir in $LOCSYSPATH
26689 test -z "$as_dir" && as_dir=.
26690 for ac_exec_ext in '' $ac_executable_extensions; do
26691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26692 ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
26693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26703 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
26704 if test -n "$SAMBA_CLIENT"; then
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAMBA_CLIENT" >&5
26706 $as_echo "$SAMBA_CLIENT" >&6; }
26708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26709 $as_echo "no" >&6; }
26714 if test ! -z "$SAMBA_CLIENT"; then
26715 case `"$SAMBA_CLIENT" '\\\\nosuchhost.amanda.org\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1` in
26719 *"Connection to nosuchhost.amanda.org failed"*)
26724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
26725 $as_echo "$as_me: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
26728 cat <<AAW_EOF >>config.warnings
26729 $SAMBA_CLIENT does not seem to be smbclient, so it will not be used.
26736 if test -n "$SAMBA_CLIENT"; then
26738 cat >>confdefs.h <<_ACEOF
26739 #define SAMBA_CLIENT "$SAMBA_CLIENT"
26743 cat >>confdefs.h <<_ACEOF
26744 #define SAMBA_VERSION $smbversion
26751 if test -n "$SAMBA_CLIENT"; then
26753 WANT_SAMBA_FALSE='#'
26755 WANT_SAMBA_TRUE='#'
26763 # some systems require rundump unconditionally
26765 *-ultrix*) USE_RUNDUMP=yes ;;
26766 *-dg-*) USE_RUNDUMP=yes ;;
26770 # Check whether --with-rundump was given.
26771 if test "${with_rundump+set}" = set; then :
26772 withval=$with_rundump;
26774 n | no) USE_RUNDUMP=no ;;
26775 y | ye | yes) USE_RUNDUMP=yes ;;
26776 *) as_fn_error $? "You must not supply an argument to --with-rundump option." "$LINENO" 5;;
26782 if test x"$USE_RUNDUMP" = x"yes"; then
26785 $as_echo "#define USE_RUNDUMP 1" >>confdefs.h
26795 # Look for other programs Amanda will use
26799 # Extract the first word of "grep", so it can be a program name with args.
26800 set dummy grep; ac_word=$2
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26802 $as_echo_n "checking for $ac_word... " >&6; }
26803 if ${ac_cv_path_GREP+:} false; then :
26804 $as_echo_n "(cached) " >&6
26808 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
26811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26812 for as_dir in $LOCSYSPATH
26815 test -z "$as_dir" && as_dir=.
26816 for ac_exec_ext in '' $ac_executable_extensions; do
26817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26818 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
26819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26826 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
26830 GREP=$ac_cv_path_GREP
26831 if test -n "$GREP"; then
26832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
26833 $as_echo "$GREP" >&6; }
26835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26836 $as_echo "no" >&6; }
26841 cat >>confdefs.h <<_ACEOF
26842 #define GREP "$GREP"
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
26847 $as_echo_n "checking for egrep... " >&6; }
26848 if ${ac_cv_path_EGREP+:} false; then :
26849 $as_echo_n "(cached) " >&6
26851 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
26852 then ac_cv_path_EGREP="$GREP -E"
26854 if test -z "$EGREP"; then
26855 ac_path_EGREP_found=false
26856 # Loop through the user's path and test for each of PROGNAME-LIST
26857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26858 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
26861 test -z "$as_dir" && as_dir=.
26862 for ac_prog in egrep; do
26863 for ac_exec_ext in '' $ac_executable_extensions; do
26864 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
26865 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
26866 # Check for GNU ac_path_EGREP and select it if it is found.
26867 # Check for GNU $ac_path_EGREP
26868 case `"$ac_path_EGREP" --version 2>&1` in
26870 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
26873 $as_echo_n 0123456789 >"conftest.in"
26876 cat "conftest.in" "conftest.in" >"conftest.tmp"
26877 mv "conftest.tmp" "conftest.in"
26878 cp "conftest.in" "conftest.nl"
26879 $as_echo 'EGREP' >> "conftest.nl"
26880 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
26881 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
26882 as_fn_arith $ac_count + 1 && ac_count=$as_val
26883 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
26884 # Best one so far, save it but keep looking for a better one
26885 ac_cv_path_EGREP="$ac_path_EGREP"
26886 ac_path_EGREP_max=$ac_count
26888 # 10*(2^10) chars as input seems more than enough
26889 test $ac_count -gt 10 && break
26891 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
26894 $ac_path_EGREP_found && break 3
26899 if test -z "$ac_cv_path_EGREP"; then
26900 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
26903 ac_cv_path_EGREP=$EGREP
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
26909 $as_echo "$ac_cv_path_EGREP" >&6; }
26910 EGREP="$ac_cv_path_EGREP"
26917 # Extract the first word of "lint", so it can be a program name with args.
26918 set dummy lint; ac_word=$2
26919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26920 $as_echo_n "checking for $ac_word... " >&6; }
26921 if ${ac_cv_path_AMLINT+:} false; then :
26922 $as_echo_n "(cached) " >&6
26926 ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
26929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26930 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
26931 for as_dir in $as_dummy
26934 test -z "$as_dir" && as_dir=.
26935 for ac_exec_ext in '' $ac_executable_extensions; do
26936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26937 ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
26938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26948 AMLINT=$ac_cv_path_AMLINT
26949 if test -n "$AMLINT"; then
26950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AMLINT" >&5
26951 $as_echo "$AMLINT" >&6; }
26953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26954 $as_echo "no" >&6; }
26958 if test ! -z "$AMLINT"; then
26959 $AMLINT -flags 2>&1 | $GREP -- '-errfmt=' > /dev/null
26960 if test $? -eq 0; then
26961 AMLINTFLAGS="-n -s -u -m -x"
26962 AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
26963 AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
26964 AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
26965 AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
26966 AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
26967 AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
26968 AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
26969 AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
26970 AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
26971 AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
26972 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
26973 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
26974 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
26975 AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
26976 AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
26977 AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
26978 AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
26979 AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
26980 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
26981 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
26982 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
26983 AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
26984 AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
26985 AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
26986 AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
26987 AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
26988 AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
26989 AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
26990 AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
26991 AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
26992 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
26993 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
26994 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
26995 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
26996 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
26997 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
26998 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
26999 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
27000 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
27001 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
27002 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
27003 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
27004 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
27005 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
27006 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
27007 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
27008 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
27009 AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
27010 AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
27011 AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
27016 # Extract the first word of "splint", so it can be a program name with args.
27017 set dummy splint; ac_word=$2
27018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27019 $as_echo_n "checking for $ac_word... " >&6; }
27020 if ${ac_cv_path_AMLINT+:} false; then :
27021 $as_echo_n "(cached) " >&6
27025 ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
27028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27029 for as_dir in $SYSLOCPATH
27032 test -z "$as_dir" && as_dir=.
27033 for ac_exec_ext in '' $ac_executable_extensions; do
27034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27035 ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
27036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27046 AMLINT=$ac_cv_path_AMLINT
27047 if test -n "$AMLINT"; then
27048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AMLINT" >&5
27049 $as_echo "$AMLINT" >&6; }
27051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27052 $as_echo "no" >&6; }
27056 if test ! -z "$AMLINT"; then
27058 AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
27060 AMLINT='echo "Error: LINT is not installed" ; false'
27066 for ac_prog in flex lex
27068 # Extract the first word of "$ac_prog", so it can be a program name with args.
27069 set dummy $ac_prog; ac_word=$2
27070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27071 $as_echo_n "checking for $ac_word... " >&6; }
27072 if ${ac_cv_prog_LEX+:} false; then :
27073 $as_echo_n "(cached) " >&6
27075 if test -n "$LEX"; then
27076 ac_cv_prog_LEX="$LEX" # Let the user override the test.
27078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27079 for as_dir in $PATH
27082 test -z "$as_dir" && as_dir=.
27083 for ac_exec_ext in '' $ac_executable_extensions; do
27084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27085 ac_cv_prog_LEX="$ac_prog"
27086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27095 LEX=$ac_cv_prog_LEX
27096 if test -n "$LEX"; then
27097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
27098 $as_echo "$LEX" >&6; }
27100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27101 $as_echo "no" >&6; }
27105 test -n "$LEX" && break
27107 test -n "$LEX" || LEX=":"
27109 if test "x$LEX" != "x:"; then
27110 cat >conftest.l <<_ACEOF
27116 e { yyless (input () != 0); }
27117 f { unput (yytext[0]); }
27118 . { BEGIN INITIAL; }
27120 #ifdef YYTEXT_POINTER
27121 extern char *yytext;
27126 return ! yylex () + ! yywrap ();
27129 { { ac_try="$LEX conftest.l"
27130 case "(($ac_try" in
27131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27132 *) ac_try_echo=$ac_try;;
27134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
27135 $as_echo "$ac_try_echo"; } >&5
27136 (eval "$LEX conftest.l") 2>&5
27138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27139 test $ac_status = 0; }
27140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
27141 $as_echo_n "checking lex output file root... " >&6; }
27142 if ${ac_cv_prog_lex_root+:} false; then :
27143 $as_echo_n "(cached) " >&6
27146 if test -f lex.yy.c; then
27147 ac_cv_prog_lex_root=lex.yy
27148 elif test -f lexyy.c; then
27149 ac_cv_prog_lex_root=lexyy
27151 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
27154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
27155 $as_echo "$ac_cv_prog_lex_root" >&6; }
27156 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
27158 if test -z "${LEXLIB+set}"; then
27159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
27160 $as_echo_n "checking lex library... " >&6; }
27161 if ${ac_cv_lib_lex+:} false; then :
27162 $as_echo_n "(cached) " >&6
27166 ac_cv_lib_lex='none needed'
27167 for ac_lib in '' -lfl -ll; do
27168 LIBS="$ac_lib $ac_save_LIBS"
27169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27170 /* end confdefs.h. */
27171 `cat $LEX_OUTPUT_ROOT.c`
27173 if ac_fn_c_try_link "$LINENO"; then :
27174 ac_cv_lib_lex=$ac_lib
27176 rm -f core conftest.err conftest.$ac_objext \
27177 conftest$ac_exeext conftest.$ac_ext
27178 test "$ac_cv_lib_lex" != 'none needed' && break
27183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
27184 $as_echo "$ac_cv_lib_lex" >&6; }
27185 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
27190 $as_echo_n "checking whether yytext is a pointer... " >&6; }
27191 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
27192 $as_echo_n "(cached) " >&6
27194 # POSIX says lex can declare yytext either as a pointer or an array; the
27195 # default is implementation-dependent. Figure out which it is, since
27196 # not all implementations provide the %pointer and %array declarations.
27197 ac_cv_prog_lex_yytext_pointer=no
27199 LIBS="$LEXLIB $ac_save_LIBS"
27200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27201 /* end confdefs.h. */
27203 #define YYTEXT_POINTER 1
27204 `cat $LEX_OUTPUT_ROOT.c`
27206 if ac_fn_c_try_link "$LINENO"; then :
27207 ac_cv_prog_lex_yytext_pointer=yes
27209 rm -f core conftest.err conftest.$ac_objext \
27210 conftest$ac_exeext conftest.$ac_ext
27214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
27215 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
27216 if test $ac_cv_prog_lex_yytext_pointer = yes; then
27218 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
27221 rm -f conftest.l $LEX_OUTPUT_ROOT.c
27224 if test "$LEX" = :; then
27225 LEX=${am_missing_run}flex
27230 if test x"$LEX" != x""; then
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lex is broken Solaris (SGU) lex" >&5
27232 $as_echo_n "checking whether lex is broken Solaris (SGU) lex... " >&6; }
27233 $LEX -V < /dev/null >/dev/null 2>conftest.out
27234 if grep SGU conftest.out >/dev/null; then
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - disabled (set LEX=/path/to/lex to use a specific binary)" >&5
27236 $as_echo "yes - disabled (set LEX=/path/to/lex to use a specific binary)" >&6; }
27237 LEX='echo no lex equivalent available; false'
27239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27240 $as_echo "no" >&6; }
27247 # Extract the first word of "ar", so it can be a program name with args.
27248 set dummy ar; ac_word=$2
27249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27250 $as_echo_n "checking for $ac_word... " >&6; }
27251 if ${ac_cv_path_AR+:} false; then :
27252 $as_echo_n "(cached) " >&6
27256 ac_cv_path_AR="$AR" # Let the user override the test with a path.
27259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27260 for as_dir in $LOCSYSPATH
27263 test -z "$as_dir" && as_dir=.
27264 for ac_exec_ext in '' $ac_executable_extensions; do
27265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27266 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
27267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27278 if test -n "$AR"; then
27279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
27280 $as_echo "$AR" >&6; }
27282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27283 $as_echo "no" >&6; }
27290 # Extract the first word of "gettext", so it can be a program name with args.
27291 set dummy gettext; ac_word=$2
27292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27293 $as_echo_n "checking for $ac_word... " >&6; }
27294 if ${ac_cv_path_GETTEXT+:} false; then :
27295 $as_echo_n "(cached) " >&6
27299 ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
27302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27303 for as_dir in $LOCSYSPATH
27306 test -z "$as_dir" && as_dir=.
27307 for ac_exec_ext in '' $ac_executable_extensions; do
27308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27309 ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
27310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27320 GETTEXT=$ac_cv_path_GETTEXT
27321 if test -n "$GETTEXT"; then
27322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETTEXT" >&5
27323 $as_echo "$GETTEXT" >&6; }
27325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27326 $as_echo "no" >&6; }
27331 for ac_prog in gawk mawk nawk awk
27333 # Extract the first word of "$ac_prog", so it can be a program name with args.
27334 set dummy $ac_prog; ac_word=$2
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27336 $as_echo_n "checking for $ac_word... " >&6; }
27337 if ${ac_cv_prog_AWK+:} false; then :
27338 $as_echo_n "(cached) " >&6
27340 if test -n "$AWK"; then
27341 ac_cv_prog_AWK="$AWK" # Let the user override the test.
27343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27344 for as_dir in $PATH
27347 test -z "$as_dir" && as_dir=.
27348 for ac_exec_ext in '' $ac_executable_extensions; do
27349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27350 ac_cv_prog_AWK="$ac_prog"
27351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27360 AWK=$ac_cv_prog_AWK
27361 if test -n "$AWK"; then
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
27363 $as_echo "$AWK" >&6; }
27365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27366 $as_echo "no" >&6; }
27370 test -n "$AWK" && break
27373 for ac_prog in 'bison -y' byacc
27375 # Extract the first word of "$ac_prog", so it can be a program name with args.
27376 set dummy $ac_prog; ac_word=$2
27377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27378 $as_echo_n "checking for $ac_word... " >&6; }
27379 if ${ac_cv_prog_YACC+:} false; then :
27380 $as_echo_n "(cached) " >&6
27382 if test -n "$YACC"; then
27383 ac_cv_prog_YACC="$YACC" # Let the user override the test.
27385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27386 for as_dir in $PATH
27389 test -z "$as_dir" && as_dir=.
27390 for ac_exec_ext in '' $ac_executable_extensions; do
27391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27392 ac_cv_prog_YACC="$ac_prog"
27393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27402 YACC=$ac_cv_prog_YACC
27403 if test -n "$YACC"; then
27404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
27405 $as_echo "$YACC" >&6; }
27407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27408 $as_echo "no" >&6; }
27412 test -n "$YACC" && break
27414 test -n "$YACC" || YACC="yacc"
27419 # Extract the first word of "dd", so it can be a program name with args.
27420 set dummy dd; ac_word=$2
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27422 $as_echo_n "checking for $ac_word... " >&6; }
27423 if ${ac_cv_path_DD+:} false; then :
27424 $as_echo_n "(cached) " >&6
27428 ac_cv_path_DD="$DD" # Let the user override the test with a path.
27431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27432 for as_dir in $LOCSYSPATH
27435 test -z "$as_dir" && as_dir=.
27436 for ac_exec_ext in '' $ac_executable_extensions; do
27437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27438 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
27439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27450 if test -n "$DD"; then
27451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
27452 $as_echo "$DD" >&6; }
27454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27455 $as_echo "no" >&6; }
27462 # Extract the first word of "bash", so it can be a program name with args.
27463 set dummy bash; ac_word=$2
27464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27465 $as_echo_n "checking for $ac_word... " >&6; }
27466 if ${ac_cv_path_BASH+:} false; then :
27467 $as_echo_n "(cached) " >&6
27471 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
27474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27475 for as_dir in $SYSPATH
27478 test -z "$as_dir" && as_dir=.
27479 for ac_exec_ext in '' $ac_executable_extensions; do
27480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27481 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
27482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27492 BASH=$ac_cv_path_BASH
27493 if test -n "$BASH"; then
27494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
27495 $as_echo "$BASH" >&6; }
27497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27498 $as_echo "no" >&6; }
27507 # Extract the first word of "sort", so it can be a program name with args.
27508 set dummy sort; ac_word=$2
27509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27510 $as_echo_n "checking for $ac_word... " >&6; }
27511 if ${ac_cv_path_SORT+:} false; then :
27512 $as_echo_n "(cached) " >&6
27516 ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
27519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27520 for as_dir in $LOCSYSPATH
27523 test -z "$as_dir" && as_dir=.
27524 for ac_exec_ext in '' $ac_executable_extensions; do
27525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27526 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
27527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27534 test -z "$ac_cv_path_SORT" && ac_cv_path_SORT="NONE"
27538 SORT=$ac_cv_path_SORT
27539 if test -n "$SORT"; then
27540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
27541 $as_echo "$SORT" >&6; }
27543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27544 $as_echo "no" >&6; }
27549 # sort is only needed in the server build
27550 if test x"$SORT" = x"NONE" && $WANT_SERVER; then
27551 as_fn_error $? "Set SORT to the path of the sort program." "$LINENO" 5
27555 cat >>confdefs.h <<_ACEOF
27556 #define SORT_PATH "$SORT"
27562 for ac_prog in Mail mailx mail
27564 # Extract the first word of "$ac_prog", so it can be a program name with args.
27565 set dummy $ac_prog; ac_word=$2
27566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27567 $as_echo_n "checking for $ac_word... " >&6; }
27568 if ${ac_cv_path_MAILER+:} false; then :
27569 $as_echo_n "(cached) " >&6
27573 ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
27576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27577 for as_dir in $PATH
27580 test -z "$as_dir" && as_dir=.
27581 for ac_exec_ext in '' $ac_executable_extensions; do
27582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27583 ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
27584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27594 MAILER=$ac_cv_path_MAILER
27595 if test -n "$MAILER"; then
27596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAILER" >&5
27597 $as_echo "$MAILER" >&6; }
27599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27600 $as_echo "no" >&6; }
27604 test -n "$MAILER" && break
27606 test -n "$MAILER" || MAILER="NONE"
27608 if test x"$MAILER" = x"NONE"; then
27610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&5
27611 $as_echo "$as_me: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&2;}
27614 cat <<AAW_EOF >>config.warnings
27615 WARNING: Amanda cannot send mail reports without a mailer.
27621 DEFAULT_MAILER="$MAILER"
27624 cat >>confdefs.h <<_ACEOF
27625 #define DEFAULT_MAILER "$DEFAULT_MAILER"
27632 # Extract the first word of "mt", so it can be a program name with args.
27633 set dummy mt; ac_word=$2
27634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27635 $as_echo_n "checking for $ac_word... " >&6; }
27636 if ${ac_cv_path_MT+:} false; then :
27637 $as_echo_n "(cached) " >&6
27641 ac_cv_path_MT="$MT" # Let the user override the test with a path.
27644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27645 for as_dir in $SYSLOCPATH
27648 test -z "$as_dir" && as_dir=.
27649 for ac_exec_ext in '' $ac_executable_extensions; do
27650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27651 ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
27652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27659 test -z "$ac_cv_path_MT" && ac_cv_path_MT="mt"
27664 if test -n "$MT"; then
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5
27666 $as_echo "$MT" >&6; }
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27669 $as_echo "no" >&6; }
27675 *-hp-*) MT_FILE_FLAG="-t" ;;
27676 *) MT_FILE_FLAG="-f" ;;
27681 cat >>confdefs.h <<_ACEOF
27682 #define MT_FILE_FLAG "$MT_FILE_FLAG"
27688 # Extract the first word of "mtx", so it can be a program name with args.
27689 set dummy mtx; ac_word=$2
27690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27691 $as_echo_n "checking for $ac_word... " >&6; }
27692 if ${ac_cv_path_MTX+:} false; then :
27693 $as_echo_n "(cached) " >&6
27697 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
27700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27701 for as_dir in $LOCSYSPATH
27704 test -z "$as_dir" && as_dir=.
27705 for ac_exec_ext in '' $ac_executable_extensions; do
27706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27707 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
27708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27715 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
27719 MTX=$ac_cv_path_MTX
27720 if test -n "$MTX"; then
27721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
27722 $as_echo "$MTX" >&6; }
27724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27725 $as_echo "no" >&6; }
27733 # Extract the first word of "mount", so it can be a program name with args.
27734 set dummy mount; ac_word=$2
27735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27736 $as_echo_n "checking for $ac_word... " >&6; }
27737 if ${ac_cv_path_MOUNT+:} false; then :
27738 $as_echo_n "(cached) " >&6
27742 ac_cv_path_MOUNT="$MOUNT" # Let the user override the test with a path.
27745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27746 for as_dir in $LOCSYSPATH
27749 test -z "$as_dir" && as_dir=.
27750 for ac_exec_ext in '' $ac_executable_extensions; do
27751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27752 ac_cv_path_MOUNT="$as_dir/$ac_word$ac_exec_ext"
27753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27760 test -z "$ac_cv_path_MOUNT" && ac_cv_path_MOUNT="mount"
27764 MOUNT=$ac_cv_path_MOUNT
27765 if test -n "$MOUNT"; then
27766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOUNT" >&5
27767 $as_echo "$MOUNT" >&6; }
27769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27770 $as_echo "no" >&6; }
27778 # Extract the first word of "umount", so it can be a program name with args.
27779 set dummy umount; ac_word=$2
27780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27781 $as_echo_n "checking for $ac_word... " >&6; }
27782 if ${ac_cv_path_UMOUNT+:} false; then :
27783 $as_echo_n "(cached) " >&6
27787 ac_cv_path_UMOUNT="$UMOUNT" # Let the user override the test with a path.
27790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27791 for as_dir in $LOCSYSPATH
27794 test -z "$as_dir" && as_dir=.
27795 for ac_exec_ext in '' $ac_executable_extensions; do
27796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27797 ac_cv_path_UMOUNT="$as_dir/$ac_word$ac_exec_ext"
27798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27805 test -z "$ac_cv_path_UMOUNT" && ac_cv_path_UMOUNT="umount"
27809 UMOUNT=$ac_cv_path_UMOUNT
27810 if test -n "$UMOUNT"; then
27811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UMOUNT" >&5
27812 $as_echo "$UMOUNT" >&6; }
27814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27815 $as_echo "no" >&6; }
27823 # Extract the first word of "uname", so it can be a program name with args.
27824 set dummy uname; ac_word=$2
27825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27826 $as_echo_n "checking for $ac_word... " >&6; }
27827 if ${ac_cv_path_UNAME+:} false; then :
27828 $as_echo_n "(cached) " >&6
27832 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
27835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27836 for as_dir in $LOCSYSPATH
27839 test -z "$as_dir" && as_dir=.
27840 for ac_exec_ext in '' $ac_executable_extensions; do
27841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27842 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
27843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27853 UNAME=$ac_cv_path_UNAME
27854 if test -n "$UNAME"; then
27855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
27856 $as_echo "$UNAME" >&6; }
27858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27859 $as_echo "no" >&6; }
27864 cat >>confdefs.h <<_ACEOF
27865 #define UNAME_PATH "$UNAME"
27872 for ac_prog in lpr lp
27874 # Extract the first word of "$ac_prog", so it can be a program name with args.
27875 set dummy $ac_prog; ac_word=$2
27876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27877 $as_echo_n "checking for $ac_word... " >&6; }
27878 if ${ac_cv_path_LPR+:} false; then :
27879 $as_echo_n "(cached) " >&6
27883 ac_cv_path_LPR="$LPR" # Let the user override the test with a path.
27886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27887 for as_dir in $PATH
27890 test -z "$as_dir" && as_dir=.
27891 for ac_exec_ext in '' $ac_executable_extensions; do
27892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27893 ac_cv_path_LPR="$as_dir/$ac_word$ac_exec_ext"
27894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27904 LPR=$ac_cv_path_LPR
27905 if test -n "$LPR"; then
27906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPR" >&5
27907 $as_echo "$LPR" >&6; }
27909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27910 $as_echo "no" >&6; }
27914 test -n "$LPR" && break
27917 if test ! -z "$LPR"; then
27919 $as_echo "#define HAVE_LPR_CMD 1" >>confdefs.h
27922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flag to use to select a printer" >&5
27923 $as_echo_n "checking which flag to use to select a printer... " >&6; }
27924 if ${amanda_cv_printer_flag+:} false; then :
27925 $as_echo_n "(cached) " >&6
27928 amanda_cv_printer_flag=$LPRFLAG
27930 lpr|*/lpr) amanda_cv_printer_flag="-P";;
27931 lp|*/lp) amanda_cv_printer_flag="-d";;
27935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_printer_flag" >&5
27936 $as_echo "$amanda_cv_printer_flag" >&6; }
27937 if test -z "$amanda_cv_printer_flag"; then
27939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: amanda will always print to the default printer" >&5
27940 $as_echo "$as_me: WARNING: WARNING: amanda will always print to the default printer" >&2;}
27943 cat <<AAW_EOF >>config.warnings
27944 WARNING: amanda will always print to the default printer
27956 # Extract the first word of "pcat", so it can be a program name with args.
27957 set dummy pcat; ac_word=$2
27958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27959 $as_echo_n "checking for $ac_word... " >&6; }
27960 if ${ac_cv_path_PCAT+:} false; then :
27961 $as_echo_n "(cached) " >&6
27965 ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
27968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27969 for as_dir in $LOCSYSPATH
27972 test -z "$as_dir" && as_dir=.
27973 for ac_exec_ext in '' $ac_executable_extensions; do
27974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27975 ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
27976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27986 PCAT=$ac_cv_path_PCAT
27987 if test -n "$PCAT"; then
27988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAT" >&5
27989 $as_echo "$PCAT" >&6; }
27991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27992 $as_echo "no" >&6; }
27999 for ac_prog in perl5 perl
28001 # Extract the first word of "$ac_prog", so it can be a program name with args.
28002 set dummy $ac_prog; ac_word=$2
28003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28004 $as_echo_n "checking for $ac_word... " >&6; }
28005 if ${ac_cv_path_PERL+:} false; then :
28006 $as_echo_n "(cached) " >&6
28010 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
28013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28014 for as_dir in $LOCSYSPATH
28017 test -z "$as_dir" && as_dir=.
28018 for ac_exec_ext in '' $ac_executable_extensions; do
28019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28020 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
28021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28031 PERL=$ac_cv_path_PERL
28032 if test -n "$PERL"; then
28033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
28034 $as_echo "$PERL" >&6; }
28036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28037 $as_echo "no" >&6; }
28041 test -n "$PERL" && break
28045 # Make sure we have perl
28046 if test -z "$PERL"; then
28047 # Extract the first word of "perl", so it can be a program name with args.
28048 set dummy perl; ac_word=$2
28049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28050 $as_echo_n "checking for $ac_word... " >&6; }
28051 if ${ac_cv_prog_PERL+:} false; then :
28052 $as_echo_n "(cached) " >&6
28054 if test -n "$PERL"; then
28055 ac_cv_prog_PERL="$PERL" # Let the user override the test.
28057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28058 for as_dir in $PATH
28061 test -z "$as_dir" && as_dir=.
28062 for ac_exec_ext in '' $ac_executable_extensions; do
28063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28064 ac_cv_prog_PERL="perl"
28065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28074 PERL=$ac_cv_prog_PERL
28075 if test -n "$PERL"; then
28076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
28077 $as_echo "$PERL" >&6; }
28079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28080 $as_echo "no" >&6; }
28086 # Check if version of Perl is sufficient
28087 ac_perl_version="5.6.0"
28089 if test "x$PERL" != "x"; then
28090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
28091 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
28092 # NB: It would be nice to log the error if there is one, but we cannot rely
28093 # on autoconf internals
28094 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
28095 if test $? -ne 0; then
28096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28097 $as_echo "no" >&6; };
28099 as_fn_error $? "Amanda requires at least perl 5.6.0" "$LINENO" 5
28102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
28103 $as_echo "ok" >&6; };
28107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
28108 $as_echo "$as_me: WARNING: could not find perl" >&2;}
28114 for ac_prog in swig
28116 # Extract the first word of "$ac_prog", so it can be a program name with args.
28117 set dummy $ac_prog; ac_word=$2
28118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28119 $as_echo_n "checking for $ac_word... " >&6; }
28120 if ${ac_cv_path_SWIG+:} false; then :
28121 $as_echo_n "(cached) " >&6
28125 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
28128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28129 for as_dir in $LOCSYSPATH
28132 test -z "$as_dir" && as_dir=.
28133 for ac_exec_ext in '' $ac_executable_extensions; do
28134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28135 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
28136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28146 SWIG=$ac_cv_path_SWIG
28147 if test -n "$SWIG"; then
28148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
28149 $as_echo "$SWIG" >&6; }
28151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28152 $as_echo "no" >&6; }
28156 test -n "$SWIG" && break
28160 # 1.3.32 introduces a change in the way empty strings are handled (old versions
28161 # returned undef in Perl, while new versions return an empty Perl string)
28162 # 1.3.39 is required for the %begin block
28164 # Extract the first word of "swig", so it can be a program name with args.
28165 set dummy swig; ac_word=$2
28166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28167 $as_echo_n "checking for $ac_word... " >&6; }
28168 if ${ac_cv_path_SWIG+:} false; then :
28169 $as_echo_n "(cached) " >&6
28173 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
28176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28177 for as_dir in $PATH
28180 test -z "$as_dir" && as_dir=.
28181 for ac_exec_ext in '' $ac_executable_extensions; do
28182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28183 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
28184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28194 SWIG=$ac_cv_path_SWIG
28195 if test -n "$SWIG"; then
28196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
28197 $as_echo "$SWIG" >&6; }
28199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28200 $as_echo "no" >&6; }
28204 if test -z "$SWIG" ; then
28205 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
28206 elif test -n "1.3.39" ; then
28207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
28208 $as_echo_n "checking for SWIG version... " >&6; }
28209 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'`
28210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
28211 $as_echo "$swig_version" >&6; }
28212 if test -n "$swig_version" ; then
28214 # Used to indicate true or false condition
28215 ax_compare_version=false
28217 # Convert the two version strings to be compared into a format that
28218 # allows a simple string comparison. The end result is that a version
28219 # string of the form 1.12.5-r617 will be converted to the form
28220 # 0001001200050617. In other words, each number is zero padded to four
28221 # digits, and non digits are removed.
28223 ax_compare_version_A=`echo "$swig_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
28224 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
28225 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
28226 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
28230 ax_compare_version_B=`echo "1.3.39" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
28231 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
28232 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
28233 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
28237 ax_compare_version=`echo "x$ax_compare_version_A
28238 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"`
28242 if test "$ax_compare_version" = "true" ; then
28244 SWIG_LIB=`$SWIG -swiglib`
28247 SWIG='echo "Error: SWIG version >= 1.3.39 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
28252 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
28259 # Extract the first word of "ps", so it can be a program name with args.
28260 set dummy ps; ac_word=$2
28261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28262 $as_echo_n "checking for $ac_word... " >&6; }
28263 if ${ac_cv_path_PS+:} false; then :
28264 $as_echo_n "(cached) " >&6
28268 ac_cv_path_PS="$PS" # Let the user override the test with a path.
28271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28272 for as_dir in $PATH
28275 test -z "$as_dir" && as_dir=.
28276 for ac_exec_ext in '' $ac_executable_extensions; do
28277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28278 ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
28279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28290 if test -n "$PS"; then
28291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5
28292 $as_echo "$PS" >&6; }
28294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28295 $as_echo "no" >&6; }
28299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ps argument to use" >&5
28300 $as_echo_n "checking ps argument to use... " >&6; }
28303 # ps is *very* non-portable, and across many systems, the same option
28304 # (e.g., -e) can mean different things. So this macro tries to
28305 # special-case most known systems, and makes an effort to detect unknown
28309 PS_ARGUMENT="-eo pid,ppid,comm"
28310 PS_ARGUMENT_ARGS="-eo pid,ppid,comm"
28314 PS_ARGUMENT="-eo pid,ppid,command"
28315 PS_ARGUMENT_ARGS="-eo pid,ppid,command"
28319 PS_ARGUMENT="-axo pid,ppid,command"
28320 PS_ARGUMENT_ARGS="-axo pid,ppid,command"
28324 PS_ARGUMENT="-aAco pid,ppid,command"
28325 PS_ARGUMENT_ARGS="-aAo pid,ppid,command"
28329 # Cygwin is special-cased in Amanda::Process
28331 PS_ARGUMENT_ARGS="-ef"
28335 # HPUX's 'PS' needs the env var UNIX95 to run in "xpg4" mode
28337 PS_ARGUMENT="-eo pid,ppid,comm"
28338 PS_ARGUMENT_ARGS="-eo pid,ppid,comm"
28343 "-axo pid,ppid,command" \
28344 "-aAco pid,ppid,command" \
28345 "-eo pid,ppid,comm"
28347 ps $try >/dev/null 2>/dev/null
28348 if test $? -eq 0; then
28354 "-axo pid,ppid,command" \
28355 "-aAo pid,ppid,command" \
28356 "-eo pid,ppid,comm"
28358 ps $try >/dev/null 2>/dev/null
28359 if test $? -eq 0; then
28360 PS_ARGUMENT_ARGS="$try"
28364 if test -z "$PS_ARGUMENT" -o -z "$PS_ARGUMENT_ARGS"; then
28365 as_fn_error $? "Can't find ps argument to use." "$LINENO" 5
28370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS_ARGUMENT" >&5
28371 $as_echo "$PS_ARGUMENT" >&6; }
28373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS_ARGUMENT_ARGS" >&5
28374 $as_echo "$PS_ARGUMENT_ARGS" >&6; }
28379 # Extract the first word of "rpcgen", so it can be a program name with args.
28380 set dummy rpcgen; ac_word=$2
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28382 $as_echo_n "checking for $ac_word... " >&6; }
28383 if ${ac_cv_path_RPCGEN+:} false; then :
28384 $as_echo_n "(cached) " >&6
28388 ac_cv_path_RPCGEN="$RPCGEN" # Let the user override the test with a path.
28391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28392 for as_dir in $LOCSYSPATH
28395 test -z "$as_dir" && as_dir=.
28396 for ac_exec_ext in '' $ac_executable_extensions; do
28397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28398 ac_cv_path_RPCGEN="$as_dir/$ac_word$ac_exec_ext"
28399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28409 RPCGEN=$ac_cv_path_RPCGEN
28410 if test -n "$RPCGEN"; then
28411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPCGEN" >&5
28412 $as_echo "$RPCGEN" >&6; }
28414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28415 $as_echo "no" >&6; }
28423 # Compiler / system characteristics
28429 if test $ac_cv_c_compiler_gnu = yes; then
28430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
28431 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
28432 if ${ac_cv_prog_gcc_traditional+:} false; then :
28433 $as_echo_n "(cached) " >&6
28435 ac_pattern="Autoconf.*'x'"
28436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28437 /* end confdefs.h. */
28441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28442 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
28443 ac_cv_prog_gcc_traditional=yes
28445 ac_cv_prog_gcc_traditional=no
28450 if test $ac_cv_prog_gcc_traditional = no; then
28451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28452 /* end confdefs.h. */
28453 #include <termio.h>
28456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28457 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
28458 ac_cv_prog_gcc_traditional=yes
28464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
28465 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
28466 if test $ac_cv_prog_gcc_traditional = yes; then
28467 CC="$CC -traditional"
28471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
28472 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
28473 if ${ac_cv_c_const+:} false; then :
28474 $as_echo_n "(cached) " >&6
28476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28477 /* end confdefs.h. */
28482 /* FIXME: Include the comments suggested by Paul. */
28483 #ifndef __cplusplus
28484 /* Ultrix mips cc rejects this. */
28485 typedef int charset[2];
28487 /* SunOS 4.1.1 cc rejects this. */
28488 char const *const *pcpcc;
28490 /* NEC SVR4.0.2 mips cc rejects this. */
28491 struct point {int x, y;};
28492 static struct point const zero = {0,0};
28493 /* AIX XL C 1.02.0.0 rejects this.
28494 It does not let you subtract one const X* pointer from another in
28495 an arm of an if-expression whose if-part is not a constant
28497 const char *g = "string";
28498 pcpcc = &g + (g ? g-g : 0);
28499 /* HPUX 7.0 cc rejects these. */
28501 ppc = (char**) pcpcc;
28502 pcpcc = (char const *const *) ppc;
28503 { /* SCO 3.2v4 cc rejects this. */
28505 char const *s = 0 ? (char *) 0 : (char const *) 0;
28510 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
28511 int x[] = {25, 17};
28512 const int *foo = &x[0];
28515 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28516 typedef const int *iptr;
28520 { /* AIX XL C 1.02.0.0 rejects this saying
28521 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28522 struct s { int j; const int *ap[3]; };
28523 struct s *b; b->j = 5;
28525 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28526 const int foo = 10;
28527 if (!foo) return 0;
28529 return !cs[0] && !zero.x;
28536 if ac_fn_c_try_compile "$LINENO"; then :
28541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
28544 $as_echo "$ac_cv_c_const" >&6; }
28545 if test $ac_cv_c_const = no; then
28547 $as_echo "#define const /**/" >>confdefs.h
28551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
28552 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
28553 if ${ac_cv_c_bigendian+:} false; then :
28554 $as_echo_n "(cached) " >&6
28556 ac_cv_c_bigendian=unknown
28557 # See if we're dealing with a universal compiler.
28558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28559 /* end confdefs.h. */
28560 #ifndef __APPLE_CC__
28561 not a universal capable compiler
28566 if ac_fn_c_try_compile "$LINENO"; then :
28568 # Check for potential -arch flags. It is not universal unless
28569 # there are at least two -arch flags with different values.
28572 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
28573 if test -n "$ac_prev"; then
28575 i?86 | x86_64 | ppc | ppc64)
28576 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
28579 ac_cv_c_bigendian=universal
28585 elif test "x$ac_word" = "x-arch"; then
28590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28591 if test $ac_cv_c_bigendian = unknown; then
28592 # See if sys/param.h defines the BYTE_ORDER macro.
28593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28594 /* end confdefs.h. */
28595 #include <sys/types.h>
28596 #include <sys/param.h>
28601 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
28602 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
28604 bogus endian macros
28611 if ac_fn_c_try_compile "$LINENO"; then :
28612 # It does; now see whether it defined to BIG_ENDIAN or not.
28613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28614 /* end confdefs.h. */
28615 #include <sys/types.h>
28616 #include <sys/param.h>
28621 #if BYTE_ORDER != BIG_ENDIAN
28629 if ac_fn_c_try_compile "$LINENO"; then :
28630 ac_cv_c_bigendian=yes
28632 ac_cv_c_bigendian=no
28634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28638 if test $ac_cv_c_bigendian = unknown; then
28639 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
28640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28641 /* end confdefs.h. */
28642 #include <limits.h>
28647 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
28648 bogus endian macros
28655 if ac_fn_c_try_compile "$LINENO"; then :
28656 # It does; now see whether it defined to _BIG_ENDIAN or not.
28657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28658 /* end confdefs.h. */
28659 #include <limits.h>
28664 #ifndef _BIG_ENDIAN
28672 if ac_fn_c_try_compile "$LINENO"; then :
28673 ac_cv_c_bigendian=yes
28675 ac_cv_c_bigendian=no
28677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28681 if test $ac_cv_c_bigendian = unknown; then
28682 # Compile a test program.
28683 if test "$cross_compiling" = yes; then :
28684 # Try to guess by grepping values from an object file.
28685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28686 /* end confdefs.h. */
28687 short int ascii_mm[] =
28688 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28689 short int ascii_ii[] =
28690 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28691 int use_ascii (int i) {
28692 return ascii_mm[i] + ascii_ii[i];
28694 short int ebcdic_ii[] =
28695 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28696 short int ebcdic_mm[] =
28697 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28698 int use_ebcdic (int i) {
28699 return ebcdic_mm[i] + ebcdic_ii[i];
28706 return use_ascii (foo) == use_ebcdic (foo);
28711 if ac_fn_c_try_compile "$LINENO"; then :
28712 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
28713 ac_cv_c_bigendian=yes
28715 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28716 if test "$ac_cv_c_bigendian" = unknown; then
28717 ac_cv_c_bigendian=no
28719 # finding both strings is unlikely to happen, but who knows?
28720 ac_cv_c_bigendian=unknown
28724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28727 /* end confdefs.h. */
28728 $ac_includes_default
28733 /* Are we little or big endian? From Harbison&Steele. */
28737 char c[sizeof (long int)];
28740 return u.c[sizeof (long int) - 1] == 1;
28746 if ac_fn_c_try_run "$LINENO"; then :
28747 ac_cv_c_bigendian=no
28749 ac_cv_c_bigendian=yes
28751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28752 conftest.$ac_objext conftest.beam conftest.$ac_ext
28757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
28758 $as_echo "$ac_cv_c_bigendian" >&6; }
28759 case $ac_cv_c_bigendian in #(
28761 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
28767 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
28771 as_fn_error $? "unknown endianness
28772 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
28776 # GCC_COMPILER is needed in the gnulib Makefile to silence errors
28777 if test "x$GCC" = "xyes"; then
28779 GCC_COMPILER_FALSE='#'
28781 GCC_COMPILER_TRUE='#'
28782 GCC_COMPILER_FALSE=
28793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wparentheses" >&5
28794 $as_echo_n "checking for gcc flag -Wparentheses... " >&6; }
28795 if test "x$GCC" = "xyes"; then
28796 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
28797 $CC -v --help 2>&1) |
28798 $EGREP -- '[^[:alnum:]]-Wparentheses[^[:alnum:]-]' 2>&1 > /dev/null
28799 if test $? -eq 0; then
28801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28802 $as_echo "yes" >&6; }
28805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28806 $as_echo "no" >&6; }
28810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
28811 $as_echo "no (not using gcc)" >&6; }
28814 if test x"$found_warning" = x"yes"; then
28815 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wparentheses"
28827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wdeclaration-after-statement" >&5
28828 $as_echo_n "checking for gcc flag -Wdeclaration-after-statement... " >&6; }
28829 if test "x$GCC" = "xyes"; then
28830 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
28831 $CC -v --help 2>&1) |
28832 $EGREP -- '[^[:alnum:]]-Wdeclaration-after-statement[^[:alnum:]-]' 2>&1 > /dev/null
28833 if test $? -eq 0; then
28835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28836 $as_echo "yes" >&6; }
28839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28840 $as_echo "no" >&6; }
28844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
28845 $as_echo "no (not using gcc)" >&6; }
28848 if test x"$found_warning" = x"yes"; then
28849 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wdeclaration-after-statement"
28861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wmissing-prototypes" >&5
28862 $as_echo_n "checking for gcc flag -Wmissing-prototypes... " >&6; }
28863 if test "x$GCC" = "xyes"; then
28864 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
28865 $CC -v --help 2>&1) |
28866 $EGREP -- '[^[:alnum:]]-Wmissing-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
28867 if test $? -eq 0; then
28869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28870 $as_echo "yes" >&6; }
28873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28874 $as_echo "no" >&6; }
28878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
28879 $as_echo "no (not using gcc)" >&6; }
28882 if test x"$found_warning" = x"yes"; then
28883 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-prototypes"
28895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wstrict-prototypes" >&5
28896 $as_echo_n "checking for gcc flag -Wstrict-prototypes... " >&6; }
28897 if test "x$GCC" = "xyes"; then
28898 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
28899 $CC -v --help 2>&1) |
28900 $EGREP -- '[^[:alnum:]]-Wstrict-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
28901 if test $? -eq 0; then
28903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28904 $as_echo "yes" >&6; }
28907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28908 $as_echo "no" >&6; }
28912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
28913 $as_echo "no (not using gcc)" >&6; }
28916 if test x"$found_warning" = x"yes"; then
28917 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wstrict-prototypes"
28929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wmissing-declarations" >&5
28930 $as_echo_n "checking for gcc flag -Wmissing-declarations... " >&6; }
28931 if test "x$GCC" = "xyes"; then
28932 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
28933 $CC -v --help 2>&1) |
28934 $EGREP -- '[^[:alnum:]]-Wmissing-declarations[^[:alnum:]-]' 2>&1 > /dev/null
28935 if test $? -eq 0; then
28937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28938 $as_echo "yes" >&6; }
28941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28942 $as_echo "no" >&6; }
28946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
28947 $as_echo "no (not using gcc)" >&6; }
28950 if test x"$found_warning" = x"yes"; then
28951 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-declarations"
28963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wformat" >&5
28964 $as_echo_n "checking for gcc flag -Wformat... " >&6; }
28965 if test "x$GCC" = "xyes"; then
28966 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
28967 $CC -v --help 2>&1) |
28968 $EGREP -- '[^[:alnum:]]-Wformat[^[:alnum:]-]' 2>&1 > /dev/null
28969 if test $? -eq 0; then
28971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28972 $as_echo "yes" >&6; }
28975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28976 $as_echo "no" >&6; }
28980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
28981 $as_echo "no (not using gcc)" >&6; }
28984 if test x"$found_warning" = x"yes"; then
28985 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat"
28997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wformat-security" >&5
28998 $as_echo_n "checking for gcc flag -Wformat-security... " >&6; }
28999 if test "x$GCC" = "xyes"; then
29000 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29001 $CC -v --help 2>&1) |
29002 $EGREP -- '[^[:alnum:]]-Wformat-security[^[:alnum:]-]' 2>&1 > /dev/null
29003 if test $? -eq 0; then
29005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29006 $as_echo "yes" >&6; }
29009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29010 $as_echo "no" >&6; }
29014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29015 $as_echo "no (not using gcc)" >&6; }
29018 if test x"$found_warning" = x"yes"; then
29019 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat-security"
29031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wsign-compare" >&5
29032 $as_echo_n "checking for gcc flag -Wsign-compare... " >&6; }
29033 if test "x$GCC" = "xyes"; then
29034 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29035 $CC -v --help 2>&1) |
29036 $EGREP -- '[^[:alnum:]]-Wsign-compare[^[:alnum:]-]' 2>&1 > /dev/null
29037 if test $? -eq 0; then
29039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29040 $as_echo "yes" >&6; }
29043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29044 $as_echo "no" >&6; }
29048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29049 $as_echo "no (not using gcc)" >&6; }
29052 if test x"$found_warning" = x"yes"; then
29053 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wsign-compare"
29065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wfloat-equal" >&5
29066 $as_echo_n "checking for gcc flag -Wfloat-equal... " >&6; }
29067 if test "x$GCC" = "xyes"; then
29068 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29069 $CC -v --help 2>&1) |
29070 $EGREP -- '[^[:alnum:]]-Wfloat-equal[^[:alnum:]-]' 2>&1 > /dev/null
29071 if test $? -eq 0; then
29073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29074 $as_echo "yes" >&6; }
29077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29078 $as_echo "no" >&6; }
29082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29083 $as_echo "no (not using gcc)" >&6; }
29086 if test x"$found_warning" = x"yes"; then
29087 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wfloat-equal"
29099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wold-style-definition" >&5
29100 $as_echo_n "checking for gcc flag -Wold-style-definition... " >&6; }
29101 if test "x$GCC" = "xyes"; then
29102 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29103 $CC -v --help 2>&1) |
29104 $EGREP -- '[^[:alnum:]]-Wold-style-definition[^[:alnum:]-]' 2>&1 > /dev/null
29105 if test $? -eq 0; then
29107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29108 $as_echo "yes" >&6; }
29111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29112 $as_echo "no" >&6; }
29116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29117 $as_echo "no (not using gcc)" >&6; }
29120 if test x"$found_warning" = x"yes"; then
29121 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wold-style-definition"
29130 # test for -W'warning', then add the 'no-' version.
29134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wstrict-aliasing" >&5
29135 $as_echo_n "checking for gcc flag -Wstrict-aliasing... " >&6; }
29136 if test "x$GCC" = "xyes"; then
29137 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29138 $CC -v --help 2>&1) |
29139 $EGREP -- '[^[:alnum:]]-Wstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
29140 if test $? -eq 0; then
29142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29143 $as_echo "yes" >&6; }
29146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29147 $as_echo "no" >&6; }
29151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29152 $as_echo "no (not using gcc)" >&6; }
29155 if test x"$found_warning" = x"yes"; then
29156 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-strict-aliasing"
29165 # test for -W'warning', then add the 'no-' version.
29169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wunknown-pragmas" >&5
29170 $as_echo_n "checking for gcc flag -Wunknown-pragmas... " >&6; }
29171 if test "x$GCC" = "xyes"; then
29172 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29173 $CC -v --help 2>&1) |
29174 $EGREP -- '[^[:alnum:]]-Wunknown-pragmas[^[:alnum:]-]' 2>&1 > /dev/null
29175 if test $? -eq 0; then
29177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29178 $as_echo "yes" >&6; }
29181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29182 $as_echo "no" >&6; }
29186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29187 $as_echo "no (not using gcc)" >&6; }
29190 if test x"$found_warning" = x"yes"; then
29191 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-unknown-pragmas"
29200 # Check whether --enable-werror was given.
29201 if test "${enable_werror+set}" = set; then :
29202 enableval=$enable_werror;
29203 case "$enableval" in
29209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Werror" >&5
29210 $as_echo_n "checking for gcc flag -Werror... " >&6; }
29211 if test "x$GCC" = "xyes"; then
29212 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29213 $CC -v --help 2>&1) |
29214 $EGREP -- '[^[:alnum:]]-Werror[^[:alnum:]-]' 2>&1 > /dev/null
29215 if test $? -eq 0; then
29217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29218 $as_echo "yes" >&6; }
29221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29222 $as_echo "no" >&6; }
29226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29227 $as_echo "no (not using gcc)" >&6; }
29230 if test x"$found_warning" = x"yes"; then
29231 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Werror"
29246 # Check whether --enable-swig-error was given.
29247 if test "${enable_swig_error+set}" = set; then :
29248 enableval=$enable_swig_error;
29249 case "$enableval" in
29251 AMANDA_SWIG_PERL_CFLAGS=-Werror
29254 AMANDA_SWIG_PERL_CFLAGS=
29268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
29269 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
29274 macro_version='2.4'
29275 macro_revision='1.3293'
29289 ltmain="$ac_aux_dir/ltmain.sh"
29291 # Backslashify metacharacters that are still active within
29292 # double-quoted strings.
29293 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
29295 # Same as above, but do not quote variable references.
29296 double_quote_subst='s/\(["`\\]\)/\\\1/g'
29298 # Sed substitution to delay expansion of an escaped shell variable in a
29299 # double_quote_subst'ed string.
29300 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
29302 # Sed substitution to delay expansion of an escaped single quote.
29303 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
29305 # Sed substitution to avoid accidental globbing in evaled expressions
29306 no_glob_subst='s/\*/\\\*/g'
29308 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29309 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
29310 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
29312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
29313 $as_echo_n "checking how to print strings... " >&6; }
29314 # Test print first, because it will be a builtin if present.
29315 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
29316 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
29318 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
29321 # Use this function as a fallback that always works.
29322 func_fallback_echo ()
29324 eval 'cat <<_LTECHO_EOF
29328 ECHO='func_fallback_echo'
29331 # func_echo_all arg...
29332 # Invoke $ECHO with all args, space-separated.
29339 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
29340 $as_echo "printf" >&6; } ;;
29341 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
29342 $as_echo "print -r" >&6; } ;;
29343 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
29344 $as_echo "cat" >&6; } ;;
29360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
29361 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
29362 if ${ac_cv_path_SED+:} false; then :
29363 $as_echo_n "(cached) " >&6
29365 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
29366 for ac_i in 1 2 3 4 5 6 7; do
29367 ac_script="$ac_script$as_nl$ac_script"
29369 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
29370 { ac_script=; unset ac_script;}
29371 if test -z "$SED"; then
29372 ac_path_SED_found=false
29373 # Loop through the user's path and test for each of PROGNAME-LIST
29374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29375 for as_dir in $PATH
29378 test -z "$as_dir" && as_dir=.
29379 for ac_prog in sed gsed; do
29380 for ac_exec_ext in '' $ac_executable_extensions; do
29381 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
29382 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
29383 # Check for GNU ac_path_SED and select it if it is found.
29384 # Check for GNU $ac_path_SED
29385 case `"$ac_path_SED" --version 2>&1` in
29387 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
29390 $as_echo_n 0123456789 >"conftest.in"
29393 cat "conftest.in" "conftest.in" >"conftest.tmp"
29394 mv "conftest.tmp" "conftest.in"
29395 cp "conftest.in" "conftest.nl"
29396 $as_echo '' >> "conftest.nl"
29397 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
29398 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
29399 as_fn_arith $ac_count + 1 && ac_count=$as_val
29400 if test $ac_count -gt ${ac_path_SED_max-0}; then
29401 # Best one so far, save it but keep looking for a better one
29402 ac_cv_path_SED="$ac_path_SED"
29403 ac_path_SED_max=$ac_count
29405 # 10*(2^10) chars as input seems more than enough
29406 test $ac_count -gt 10 && break
29408 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
29411 $ac_path_SED_found && break 3
29416 if test -z "$ac_cv_path_SED"; then
29417 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
29420 ac_cv_path_SED=$SED
29424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
29425 $as_echo "$ac_cv_path_SED" >&6; }
29426 SED="$ac_cv_path_SED"
29429 test -z "$SED" && SED=sed
29430 Xsed="$SED -e 1s/^X//"
29442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
29443 $as_echo_n "checking for fgrep... " >&6; }
29444 if ${ac_cv_path_FGREP+:} false; then :
29445 $as_echo_n "(cached) " >&6
29447 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
29448 then ac_cv_path_FGREP="$GREP -F"
29450 if test -z "$FGREP"; then
29451 ac_path_FGREP_found=false
29452 # Loop through the user's path and test for each of PROGNAME-LIST
29453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29454 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
29457 test -z "$as_dir" && as_dir=.
29458 for ac_prog in fgrep; do
29459 for ac_exec_ext in '' $ac_executable_extensions; do
29460 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
29461 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
29462 # Check for GNU ac_path_FGREP and select it if it is found.
29463 # Check for GNU $ac_path_FGREP
29464 case `"$ac_path_FGREP" --version 2>&1` in
29466 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
29469 $as_echo_n 0123456789 >"conftest.in"
29472 cat "conftest.in" "conftest.in" >"conftest.tmp"
29473 mv "conftest.tmp" "conftest.in"
29474 cp "conftest.in" "conftest.nl"
29475 $as_echo 'FGREP' >> "conftest.nl"
29476 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
29477 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
29478 as_fn_arith $ac_count + 1 && ac_count=$as_val
29479 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
29480 # Best one so far, save it but keep looking for a better one
29481 ac_cv_path_FGREP="$ac_path_FGREP"
29482 ac_path_FGREP_max=$ac_count
29484 # 10*(2^10) chars as input seems more than enough
29485 test $ac_count -gt 10 && break
29487 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
29490 $ac_path_FGREP_found && break 3
29495 if test -z "$ac_cv_path_FGREP"; then
29496 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
29499 ac_cv_path_FGREP=$FGREP
29504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
29505 $as_echo "$ac_cv_path_FGREP" >&6; }
29506 FGREP="$ac_cv_path_FGREP"
29509 test -z "$GREP" && GREP=grep
29529 # Check whether --with-gnu-ld was given.
29530 if test "${with_gnu_ld+set}" = set; then :
29531 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
29537 if test "$GCC" = yes; then
29538 # Check if gcc -print-prog-name=ld gives a path.
29539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
29540 $as_echo_n "checking for ld used by $CC... " >&6; }
29543 # gcc leaves a trailing carriage return which upsets mingw
29544 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
29546 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
29549 # Accept absolute paths.
29551 re_direlt='/[^/][^/]*/\.\./'
29552 # Canonicalize the pathname of ld
29553 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
29554 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
29555 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
29557 test -z "$LD" && LD="$ac_prog"
29560 # If it fails, then pretend we aren't using GCC.
29564 # If it is relative, then search for the first ld in PATH.
29565 with_gnu_ld=unknown
29568 elif test "$with_gnu_ld" = yes; then
29569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
29570 $as_echo_n "checking for GNU ld... " >&6; }
29572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
29573 $as_echo_n "checking for non-GNU ld... " >&6; }
29575 if ${lt_cv_path_LD+:} false; then :
29576 $as_echo_n "(cached) " >&6
29578 if test -z "$LD"; then
29579 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
29580 for ac_dir in $PATH; do
29582 test -z "$ac_dir" && ac_dir=.
29583 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
29584 lt_cv_path_LD="$ac_dir/$ac_prog"
29585 # Check to see if the program is GNU ld. I'd rather use --version,
29586 # but apparently some variants of GNU ld only accept -v.
29587 # Break only if it was the GNU/non-GNU ld that we prefer.
29588 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
29589 *GNU* | *'with BFD'*)
29590 test "$with_gnu_ld" != no && break
29593 test "$with_gnu_ld" != yes && break
29600 lt_cv_path_LD="$LD" # Let the user override the test with a path.
29604 LD="$lt_cv_path_LD"
29605 if test -n "$LD"; then
29606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
29607 $as_echo "$LD" >&6; }
29609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29610 $as_echo "no" >&6; }
29612 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
29613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
29614 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
29615 if ${lt_cv_prog_gnu_ld+:} false; then :
29616 $as_echo_n "(cached) " >&6
29618 # I'd rather use --version here, but apparently some GNU lds only accept -v.
29619 case `$LD -v 2>&1 </dev/null` in
29620 *GNU* | *'with BFD'*)
29621 lt_cv_prog_gnu_ld=yes
29624 lt_cv_prog_gnu_ld=no
29628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
29629 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
29630 with_gnu_ld=$lt_cv_prog_gnu_ld
29640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
29641 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
29642 if ${lt_cv_path_NM+:} false; then :
29643 $as_echo_n "(cached) " >&6
29645 if test -n "$NM"; then
29646 # Let the user override the test.
29647 lt_cv_path_NM="$NM"
29649 lt_nm_to_check="${ac_tool_prefix}nm"
29650 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
29651 lt_nm_to_check="$lt_nm_to_check nm"
29653 for lt_tmp_nm in $lt_nm_to_check; do
29654 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
29655 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
29657 test -z "$ac_dir" && ac_dir=.
29658 tmp_nm="$ac_dir/$lt_tmp_nm"
29659 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
29660 # Check to see if the nm accepts a BSD-compat flag.
29661 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
29662 # nm: unknown option "B" ignored
29663 # Tru64's nm complains that /dev/null is an invalid object file
29664 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
29665 */dev/null* | *'Invalid file or object type'*)
29666 lt_cv_path_NM="$tmp_nm -B"
29670 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
29672 lt_cv_path_NM="$tmp_nm -p"
29676 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
29677 continue # so that we can try to find one that supports BSD flags
29686 : ${lt_cv_path_NM=no}
29689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
29690 $as_echo "$lt_cv_path_NM" >&6; }
29691 if test "$lt_cv_path_NM" != "no"; then
29692 NM="$lt_cv_path_NM"
29694 # Didn't find any BSD compatible name lister, look for dumpbin.
29695 if test -n "$DUMPBIN"; then :
29696 # Let the user override the test.
29698 if test -n "$ac_tool_prefix"; then
29699 for ac_prog in dumpbin "link -dump"
29701 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
29702 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
29703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29704 $as_echo_n "checking for $ac_word... " >&6; }
29705 if ${ac_cv_prog_DUMPBIN+:} false; then :
29706 $as_echo_n "(cached) " >&6
29708 if test -n "$DUMPBIN"; then
29709 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
29711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29712 for as_dir in $PATH
29715 test -z "$as_dir" && as_dir=.
29716 for ac_exec_ext in '' $ac_executable_extensions; do
29717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29718 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
29719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29728 DUMPBIN=$ac_cv_prog_DUMPBIN
29729 if test -n "$DUMPBIN"; then
29730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
29731 $as_echo "$DUMPBIN" >&6; }
29733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29734 $as_echo "no" >&6; }
29738 test -n "$DUMPBIN" && break
29741 if test -z "$DUMPBIN"; then
29742 ac_ct_DUMPBIN=$DUMPBIN
29743 for ac_prog in dumpbin "link -dump"
29745 # Extract the first word of "$ac_prog", so it can be a program name with args.
29746 set dummy $ac_prog; ac_word=$2
29747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29748 $as_echo_n "checking for $ac_word... " >&6; }
29749 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
29750 $as_echo_n "(cached) " >&6
29752 if test -n "$ac_ct_DUMPBIN"; then
29753 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
29755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29756 for as_dir in $PATH
29759 test -z "$as_dir" && as_dir=.
29760 for ac_exec_ext in '' $ac_executable_extensions; do
29761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29762 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
29763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29772 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
29773 if test -n "$ac_ct_DUMPBIN"; then
29774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
29775 $as_echo "$ac_ct_DUMPBIN" >&6; }
29777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29778 $as_echo "no" >&6; }
29782 test -n "$ac_ct_DUMPBIN" && break
29785 if test "x$ac_ct_DUMPBIN" = x; then
29788 case $cross_compiling:$ac_tool_warned in
29790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29792 ac_tool_warned=yes ;;
29794 DUMPBIN=$ac_ct_DUMPBIN
29798 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
29800 DUMPBIN="$DUMPBIN -symbols"
29808 if test "$DUMPBIN" != ":"; then
29812 test -z "$NM" && NM=nm
29819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
29820 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
29821 if ${lt_cv_nm_interface+:} false; then :
29822 $as_echo_n "(cached) " >&6
29824 lt_cv_nm_interface="BSD nm"
29825 echo "int some_variable = 0;" > conftest.$ac_ext
29826 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
29827 (eval "$ac_compile" 2>conftest.err)
29828 cat conftest.err >&5
29829 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
29830 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
29831 cat conftest.err >&5
29832 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
29833 cat conftest.out >&5
29834 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
29835 lt_cv_nm_interface="MS dumpbin"
29839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
29840 $as_echo "$lt_cv_nm_interface" >&6; }
29842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
29843 $as_echo_n "checking whether ln -s works... " >&6; }
29845 if test "$LN_S" = "ln -s"; then
29846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29847 $as_echo "yes" >&6; }
29849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
29850 $as_echo "no, using $LN_S" >&6; }
29853 # find the maximum length of command line arguments
29854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
29855 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
29856 if ${lt_cv_sys_max_cmd_len+:} false; then :
29857 $as_echo_n "(cached) " >&6
29864 # On DJGPP, this test can blow up pretty badly due to problems in libc
29865 # (any single argument exceeding 2000 bytes causes a buffer overrun
29866 # during glob expansion). Even if it were fixed, the result of this
29867 # check would be larger than it should be.
29868 lt_cv_sys_max_cmd_len=12288; # 12K is about right
29872 # Under GNU Hurd, this test is not required because there is
29873 # no limit to the length of command line arguments.
29874 # Libtool will interpret -1 as no limit whatsoever
29875 lt_cv_sys_max_cmd_len=-1;
29878 cygwin* | mingw* | cegcc*)
29879 # On Win9x/ME, this test blows up -- it succeeds, but takes
29880 # about 5 minutes as the teststring grows exponentially.
29881 # Worse, since 9x/ME are not pre-emptively multitasking,
29882 # you end up with a "frozen" computer, even though with patience
29883 # the test eventually succeeds (with a max line length of 256k).
29884 # Instead, let's just punt: use the minimum linelength reported by
29885 # all of the supported platforms: 8192 (on NT/2K/XP).
29886 lt_cv_sys_max_cmd_len=8192;
29890 # On MiNT this can take a long time and run out of memory.
29891 lt_cv_sys_max_cmd_len=8192;
29895 # On AmigaOS with pdksh, this test takes hours, literally.
29896 # So we just punt and use a minimum line length of 8192.
29897 lt_cv_sys_max_cmd_len=8192;
29900 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
29901 # This has been around since 386BSD, at least. Likely further.
29902 if test -x /sbin/sysctl; then
29903 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
29904 elif test -x /usr/sbin/sysctl; then
29905 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
29907 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
29909 # And add a safety zone
29910 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
29911 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
29915 # We know the value 262144 and hardcode it with a safety zone (like BSD)
29916 lt_cv_sys_max_cmd_len=196608
29920 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
29921 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
29922 # nice to cause kernel panics so lets avoid the loop below.
29923 # First set a reasonable default.
29924 lt_cv_sys_max_cmd_len=16384
29926 if test -x /sbin/sysconfig; then
29927 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
29928 *1*) lt_cv_sys_max_cmd_len=-1 ;;
29933 lt_cv_sys_max_cmd_len=102400
29935 sysv5* | sco5v6* | sysv4.2uw2*)
29936 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
29937 if test -n "$kargmax"; then
29938 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
29940 lt_cv_sys_max_cmd_len=32768
29944 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
29945 if test -n "$lt_cv_sys_max_cmd_len"; then
29946 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
29947 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
29949 # Make teststring a little bigger before we do anything with it.
29950 # a 1K string should be a reasonable start.
29951 for i in 1 2 3 4 5 6 7 8 ; do
29952 teststring=$teststring$teststring
29954 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
29955 # If test is not a shell built-in, we'll probably end up computing a
29956 # maximum length that is only half of the actual maximum length, but
29958 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
29959 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
29960 test $i != 17 # 1/2 MB should be enough
29963 teststring=$teststring$teststring
29965 # Only check the string length outside the loop.
29966 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
29968 # Add a significant safety factor because C++ compilers can tack on
29969 # massive amounts of additional arguments before passing them to the
29970 # linker. It appears as though 1/2 is a usable value.
29971 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
29978 if test -n $lt_cv_sys_max_cmd_len ; then
29979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
29980 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
29982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
29983 $as_echo "none" >&6; }
29985 max_cmd_len=$lt_cv_sys_max_cmd_len
29996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
29997 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
29998 # Try some XSI features
30000 ( _lt_dummy="a/b/c"
30001 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
30003 && eval 'test $(( 1 + 1 )) -eq 2 \
30004 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
30006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
30007 $as_echo "$xsi_shell" >&6; }
30010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
30011 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
30013 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
30015 && lt_shell_append=yes
30016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
30017 $as_echo "$lt_shell_append" >&6; }
30020 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30030 # test EBCDIC or ASCII
30031 case `echo X|tr X '\101'` in
30032 A) # ASCII based system
30033 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
30034 lt_SP2NL='tr \040 \012'
30035 lt_NL2SP='tr \015\012 \040\040'
30037 *) # EBCDIC based system
30038 lt_SP2NL='tr \100 \n'
30039 lt_NL2SP='tr \r\n \100\100'
30051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
30052 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
30053 if ${lt_cv_to_host_file_cmd+:} false; then :
30054 $as_echo_n "(cached) " >&6
30059 *-*-mingw* ) # actually msys
30060 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
30063 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
30065 * ) # otherwise, assume *nix
30066 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
30072 *-*-mingw* ) # actually msys
30073 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
30076 lt_cv_to_host_file_cmd=func_convert_file_noop
30078 * ) # otherwise, assume *nix
30079 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
30083 * ) # unhandled hosts (and "normal" native builds)
30084 lt_cv_to_host_file_cmd=func_convert_file_noop
30090 to_host_file_cmd=$lt_cv_to_host_file_cmd
30091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
30092 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
30098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
30099 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
30100 if ${lt_cv_to_tool_file_cmd+:} false; then :
30101 $as_echo_n "(cached) " >&6
30103 #assume ordinary cross tools, or native build.
30104 lt_cv_to_tool_file_cmd=func_convert_file_noop
30108 *-*-mingw* ) # actually msys
30109 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
30117 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
30119 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
30125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
30126 $as_echo_n "checking for $LD option to reload object files... " >&6; }
30127 if ${lt_cv_ld_reload_flag+:} false; then :
30128 $as_echo_n "(cached) " >&6
30130 lt_cv_ld_reload_flag='-r'
30132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
30133 $as_echo "$lt_cv_ld_reload_flag" >&6; }
30134 reload_flag=$lt_cv_ld_reload_flag
30135 case $reload_flag in
30137 *) reload_flag=" $reload_flag" ;;
30139 reload_cmds='$LD$reload_flag -o $output$reload_objs'
30141 cygwin* | mingw* | pw32* | cegcc*)
30142 if test "$GCC" != yes; then
30147 if test "$GCC" = yes; then
30148 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
30150 reload_cmds='$LD$reload_flag -o $output$reload_objs'
30163 if test -n "$ac_tool_prefix"; then
30164 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
30165 set dummy ${ac_tool_prefix}objdump; ac_word=$2
30166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30167 $as_echo_n "checking for $ac_word... " >&6; }
30168 if ${ac_cv_prog_OBJDUMP+:} false; then :
30169 $as_echo_n "(cached) " >&6
30171 if test -n "$OBJDUMP"; then
30172 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
30174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30175 for as_dir in $PATH
30178 test -z "$as_dir" && as_dir=.
30179 for ac_exec_ext in '' $ac_executable_extensions; do
30180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30181 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
30182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30191 OBJDUMP=$ac_cv_prog_OBJDUMP
30192 if test -n "$OBJDUMP"; then
30193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
30194 $as_echo "$OBJDUMP" >&6; }
30196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30197 $as_echo "no" >&6; }
30202 if test -z "$ac_cv_prog_OBJDUMP"; then
30203 ac_ct_OBJDUMP=$OBJDUMP
30204 # Extract the first word of "objdump", so it can be a program name with args.
30205 set dummy objdump; ac_word=$2
30206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30207 $as_echo_n "checking for $ac_word... " >&6; }
30208 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
30209 $as_echo_n "(cached) " >&6
30211 if test -n "$ac_ct_OBJDUMP"; then
30212 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
30214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30215 for as_dir in $PATH
30218 test -z "$as_dir" && as_dir=.
30219 for ac_exec_ext in '' $ac_executable_extensions; do
30220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30221 ac_cv_prog_ac_ct_OBJDUMP="objdump"
30222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30231 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
30232 if test -n "$ac_ct_OBJDUMP"; then
30233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
30234 $as_echo "$ac_ct_OBJDUMP" >&6; }
30236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30237 $as_echo "no" >&6; }
30240 if test "x$ac_ct_OBJDUMP" = x; then
30243 case $cross_compiling:$ac_tool_warned in
30245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30247 ac_tool_warned=yes ;;
30249 OBJDUMP=$ac_ct_OBJDUMP
30252 OBJDUMP="$ac_cv_prog_OBJDUMP"
30255 test -z "$OBJDUMP" && OBJDUMP=objdump
30265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
30266 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
30267 if ${lt_cv_deplibs_check_method+:} false; then :
30268 $as_echo_n "(cached) " >&6
30270 lt_cv_file_magic_cmd='$MAGIC_CMD'
30271 lt_cv_file_magic_test_file=
30272 lt_cv_deplibs_check_method='unknown'
30273 # Need to set the preceding variable on all platforms that support
30274 # interlibrary dependencies.
30275 # 'none' -- dependencies not supported.
30276 # `unknown' -- same as none, but documents that we really don't know.
30277 # 'pass_all' -- all dependencies passed with no checks.
30278 # 'test_compile' -- check by making test program.
30279 # 'file_magic [[regex]]' -- check by looking for files in library path
30280 # which responds to the $file_magic_cmd with a given extended regex.
30281 # If you have `file' or equivalent on your system and you're not sure
30282 # whether `pass_all' will *always* work, you probably want this one.
30286 lt_cv_deplibs_check_method=pass_all
30290 lt_cv_deplibs_check_method=pass_all
30294 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
30295 lt_cv_file_magic_cmd='/usr/bin/file -L'
30296 lt_cv_file_magic_test_file=/shlib/libc.so
30300 # func_win32_libid is a shell function defined in ltmain.sh
30301 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
30302 lt_cv_file_magic_cmd='func_win32_libid'
30306 # Base MSYS/MinGW do not provide the 'file' command needed by
30307 # func_win32_libid shell function, so use a weaker test based on 'objdump',
30308 # unless we find 'file', for example because we are cross-compiling.
30309 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
30310 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
30311 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
30312 lt_cv_file_magic_cmd='func_win32_libid'
30314 # Keep this pattern in sync with the one in func_win32_libid.
30315 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
30316 lt_cv_file_magic_cmd='$OBJDUMP -f'
30321 # use the weaker test based on 'objdump'. See mingw*.
30322 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
30323 lt_cv_file_magic_cmd='$OBJDUMP -f'
30326 darwin* | rhapsody*)
30327 lt_cv_deplibs_check_method=pass_all
30330 freebsd* | dragonfly*)
30331 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
30334 # Not sure whether the presence of OpenBSD here was a mistake.
30335 # Let's accept both of them until this is cleared up.
30336 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
30337 lt_cv_file_magic_cmd=/usr/bin/file
30338 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
30342 lt_cv_deplibs_check_method=pass_all
30347 lt_cv_deplibs_check_method=pass_all
30351 lt_cv_deplibs_check_method=pass_all
30354 hpux10.20* | hpux11*)
30355 lt_cv_file_magic_cmd=/usr/bin/file
30358 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
30359 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
30362 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]'
30363 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
30366 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
30367 lt_cv_file_magic_test_file=/usr/lib/libc.sl
30373 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
30374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
30377 irix5* | irix6* | nonstopux*)
30379 *-32|*"-32 ") libmagic=32-bit;;
30380 *-n32|*"-n32 ") libmagic=N32;;
30381 *-64|*"-64 ") libmagic=64-bit;;
30382 *) libmagic=never-match;;
30384 lt_cv_deplibs_check_method=pass_all
30387 # This must be Linux ELF.
30388 linux* | k*bsd*-gnu | kopensolaris*-gnu)
30389 lt_cv_deplibs_check_method=pass_all
30393 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
30394 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
30396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
30401 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
30402 lt_cv_file_magic_cmd=/usr/bin/file
30403 lt_cv_file_magic_test_file=/usr/lib/libnls.so
30407 lt_cv_deplibs_check_method=pass_all
30411 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
30412 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
30414 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
30418 osf3* | osf4* | osf5*)
30419 lt_cv_deplibs_check_method=pass_all
30423 lt_cv_deplibs_check_method=pass_all
30427 lt_cv_deplibs_check_method=pass_all
30430 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
30431 lt_cv_deplibs_check_method=pass_all
30435 case $host_vendor in
30437 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]'
30438 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
30441 lt_cv_deplibs_check_method=pass_all
30444 lt_cv_file_magic_cmd='/bin/file'
30445 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
30448 lt_cv_file_magic_cmd='/bin/file'
30449 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
30450 lt_cv_file_magic_test_file=/lib/libc.so
30453 lt_cv_deplibs_check_method=pass_all
30456 lt_cv_deplibs_check_method=pass_all
30462 lt_cv_deplibs_check_method=pass_all
30467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
30468 $as_echo "$lt_cv_deplibs_check_method" >&6; }
30472 if test "$build" = "$host"; then
30475 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
30476 want_nocaseglob=yes
30478 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
30484 file_magic_cmd=$lt_cv_file_magic_cmd
30485 deplibs_check_method=$lt_cv_deplibs_check_method
30486 test -z "$deplibs_check_method" && deplibs_check_method=unknown
30509 if test -n "$ac_tool_prefix"; then
30510 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
30511 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
30512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30513 $as_echo_n "checking for $ac_word... " >&6; }
30514 if ${ac_cv_prog_DLLTOOL+:} false; then :
30515 $as_echo_n "(cached) " >&6
30517 if test -n "$DLLTOOL"; then
30518 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
30520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30521 for as_dir in $PATH
30524 test -z "$as_dir" && as_dir=.
30525 for ac_exec_ext in '' $ac_executable_extensions; do
30526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30527 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
30528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30537 DLLTOOL=$ac_cv_prog_DLLTOOL
30538 if test -n "$DLLTOOL"; then
30539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
30540 $as_echo "$DLLTOOL" >&6; }
30542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30543 $as_echo "no" >&6; }
30548 if test -z "$ac_cv_prog_DLLTOOL"; then
30549 ac_ct_DLLTOOL=$DLLTOOL
30550 # Extract the first word of "dlltool", so it can be a program name with args.
30551 set dummy dlltool; ac_word=$2
30552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30553 $as_echo_n "checking for $ac_word... " >&6; }
30554 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
30555 $as_echo_n "(cached) " >&6
30557 if test -n "$ac_ct_DLLTOOL"; then
30558 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
30560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30561 for as_dir in $PATH
30564 test -z "$as_dir" && as_dir=.
30565 for ac_exec_ext in '' $ac_executable_extensions; do
30566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30567 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
30568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30577 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
30578 if test -n "$ac_ct_DLLTOOL"; then
30579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
30580 $as_echo "$ac_ct_DLLTOOL" >&6; }
30582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30583 $as_echo "no" >&6; }
30586 if test "x$ac_ct_DLLTOOL" = x; then
30589 case $cross_compiling:$ac_tool_warned in
30591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30593 ac_tool_warned=yes ;;
30595 DLLTOOL=$ac_ct_DLLTOOL
30598 DLLTOOL="$ac_cv_prog_DLLTOOL"
30601 test -z "$DLLTOOL" && DLLTOOL=dlltool
30612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
30613 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
30614 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
30615 $as_echo_n "(cached) " >&6
30617 lt_cv_sharedlib_from_linklib_cmd='unknown'
30620 cygwin* | mingw* | pw32* | cegcc*)
30621 # two different shell functions defined in ltmain.sh
30622 # decide which to use based on capabilities of $DLLTOOL
30623 case `$DLLTOOL --help 2>&1` in
30624 *--identify-strict*)
30625 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
30628 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
30633 # fallback: assume linklib IS sharedlib
30634 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
30639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
30640 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
30641 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
30642 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
30650 if test -n "$ac_tool_prefix"; then
30653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30656 $as_echo_n "checking for $ac_word... " >&6; }
30657 if ${ac_cv_prog_AR+:} false; then :
30658 $as_echo_n "(cached) " >&6
30660 if test -n "$AR"; then
30661 ac_cv_prog_AR="$AR" # Let the user override the test.
30663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30664 for as_dir in $PATH
30667 test -z "$as_dir" && as_dir=.
30668 for ac_exec_ext in '' $ac_executable_extensions; do
30669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30670 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
30671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30681 if test -n "$AR"; then
30682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
30683 $as_echo "$AR" >&6; }
30685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30686 $as_echo "no" >&6; }
30690 test -n "$AR" && break
30693 if test -z "$AR"; then
30697 # Extract the first word of "$ac_prog", so it can be a program name with args.
30698 set dummy $ac_prog; ac_word=$2
30699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30700 $as_echo_n "checking for $ac_word... " >&6; }
30701 if ${ac_cv_prog_ac_ct_AR+:} false; then :
30702 $as_echo_n "(cached) " >&6
30704 if test -n "$ac_ct_AR"; then
30705 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
30707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30708 for as_dir in $PATH
30711 test -z "$as_dir" && as_dir=.
30712 for ac_exec_ext in '' $ac_executable_extensions; do
30713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30714 ac_cv_prog_ac_ct_AR="$ac_prog"
30715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30724 ac_ct_AR=$ac_cv_prog_ac_ct_AR
30725 if test -n "$ac_ct_AR"; then
30726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
30727 $as_echo "$ac_ct_AR" >&6; }
30729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30730 $as_echo "no" >&6; }
30734 test -n "$ac_ct_AR" && break
30737 if test "x$ac_ct_AR" = x; then
30740 case $cross_compiling:$ac_tool_warned in
30742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30744 ac_tool_warned=yes ;;
30763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
30764 $as_echo_n "checking for archiver @FILE support... " >&6; }
30765 if ${lt_cv_ar_at_file+:} false; then :
30766 $as_echo_n "(cached) " >&6
30768 lt_cv_ar_at_file=no
30769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30770 /* end confdefs.h. */
30780 if ac_fn_c_try_compile "$LINENO"; then :
30781 echo conftest.$ac_objext > conftest.lst
30782 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
30783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
30784 (eval $lt_ar_try) 2>&5
30786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30787 test $ac_status = 0; }
30788 if test "$ac_status" -eq 0; then
30789 # Ensure the archiver fails upon bogus file names.
30790 rm -f conftest.$ac_objext libconftest.a
30791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
30792 (eval $lt_ar_try) 2>&5
30794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30795 test $ac_status = 0; }
30796 if test "$ac_status" -ne 0; then
30800 rm -f conftest.* libconftest.a
30803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
30807 $as_echo "$lt_cv_ar_at_file" >&6; }
30809 if test "x$lt_cv_ar_at_file" = xno; then
30810 archiver_list_spec=
30812 archiver_list_spec=$lt_cv_ar_at_file
30821 if test -n "$ac_tool_prefix"; then
30822 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
30823 set dummy ${ac_tool_prefix}strip; ac_word=$2
30824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30825 $as_echo_n "checking for $ac_word... " >&6; }
30826 if ${ac_cv_prog_STRIP+:} false; then :
30827 $as_echo_n "(cached) " >&6
30829 if test -n "$STRIP"; then
30830 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
30832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30833 for as_dir in $PATH
30836 test -z "$as_dir" && as_dir=.
30837 for ac_exec_ext in '' $ac_executable_extensions; do
30838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30839 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
30840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30849 STRIP=$ac_cv_prog_STRIP
30850 if test -n "$STRIP"; then
30851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
30852 $as_echo "$STRIP" >&6; }
30854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30855 $as_echo "no" >&6; }
30860 if test -z "$ac_cv_prog_STRIP"; then
30862 # Extract the first word of "strip", so it can be a program name with args.
30863 set dummy strip; ac_word=$2
30864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30865 $as_echo_n "checking for $ac_word... " >&6; }
30866 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
30867 $as_echo_n "(cached) " >&6
30869 if test -n "$ac_ct_STRIP"; then
30870 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
30872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30873 for as_dir in $PATH
30876 test -z "$as_dir" && as_dir=.
30877 for ac_exec_ext in '' $ac_executable_extensions; do
30878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30879 ac_cv_prog_ac_ct_STRIP="strip"
30880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30889 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
30890 if test -n "$ac_ct_STRIP"; then
30891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
30892 $as_echo "$ac_ct_STRIP" >&6; }
30894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30895 $as_echo "no" >&6; }
30898 if test "x$ac_ct_STRIP" = x; then
30901 case $cross_compiling:$ac_tool_warned in
30903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30905 ac_tool_warned=yes ;;
30910 STRIP="$ac_cv_prog_STRIP"
30913 test -z "$STRIP" && STRIP=:
30920 if test -n "$ac_tool_prefix"; then
30921 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
30922 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
30923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30924 $as_echo_n "checking for $ac_word... " >&6; }
30925 if ${ac_cv_prog_RANLIB+:} false; then :
30926 $as_echo_n "(cached) " >&6
30928 if test -n "$RANLIB"; then
30929 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
30931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30932 for as_dir in $PATH
30935 test -z "$as_dir" && as_dir=.
30936 for ac_exec_ext in '' $ac_executable_extensions; do
30937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30938 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
30939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30948 RANLIB=$ac_cv_prog_RANLIB
30949 if test -n "$RANLIB"; then
30950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
30951 $as_echo "$RANLIB" >&6; }
30953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30954 $as_echo "no" >&6; }
30959 if test -z "$ac_cv_prog_RANLIB"; then
30960 ac_ct_RANLIB=$RANLIB
30961 # Extract the first word of "ranlib", so it can be a program name with args.
30962 set dummy ranlib; ac_word=$2
30963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30964 $as_echo_n "checking for $ac_word... " >&6; }
30965 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
30966 $as_echo_n "(cached) " >&6
30968 if test -n "$ac_ct_RANLIB"; then
30969 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
30971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30972 for as_dir in $PATH
30975 test -z "$as_dir" && as_dir=.
30976 for ac_exec_ext in '' $ac_executable_extensions; do
30977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30978 ac_cv_prog_ac_ct_RANLIB="ranlib"
30979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30988 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
30989 if test -n "$ac_ct_RANLIB"; then
30990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
30991 $as_echo "$ac_ct_RANLIB" >&6; }
30993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30994 $as_echo "no" >&6; }
30997 if test "x$ac_ct_RANLIB" = x; then
31000 case $cross_compiling:$ac_tool_warned in
31002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31004 ac_tool_warned=yes ;;
31006 RANLIB=$ac_ct_RANLIB
31009 RANLIB="$ac_cv_prog_RANLIB"
31012 test -z "$RANLIB" && RANLIB=:
31019 # Determine commands to create old-style static archives.
31020 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
31021 old_postinstall_cmds='chmod 644 $oldlib'
31022 old_postuninstall_cmds=
31024 if test -n "$RANLIB"; then
31027 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
31030 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
31033 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
31038 lock_old_archive_extraction=yes ;;
31040 lock_old_archive_extraction=no ;;
31081 # If no C compiler was specified, use CC.
31084 # If no C compiler flags were specified, use CFLAGS.
31085 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
31087 # Allow CC to be a program name with arguments.
31091 # Check for command to grab the raw symbol name followed by C symbol from nm.
31092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
31093 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
31094 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
31095 $as_echo_n "(cached) " >&6
31098 # These are sane defaults that work on at least a few old systems.
31099 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
31101 # Character class describing NM global symbol codes.
31102 symcode='[BCDEGRST]'
31104 # Regexp to match symbols that can be accessed directly from C.
31105 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
31107 # Define system-specific variables.
31112 cygwin* | mingw* | pw32* | cegcc*)
31113 symcode='[ABCDGISTW]'
31116 if test "$host_cpu" = ia64; then
31117 symcode='[ABCDEGRST]'
31120 irix* | nonstopux*)
31121 symcode='[BCDEGRST]'
31124 symcode='[BCDEGQRST]'
31135 sysv5* | sco5v6* | unixware* | OpenUNIX*)
31143 # If we're using GNU nm, then use its standard symbol codes.
31144 case `$NM -V 2>&1` in
31145 *GNU* | *'with BFD'*)
31146 symcode='[ABCDGIRSTW]' ;;
31149 # Transform an extracted symbol line into a proper C declaration.
31150 # Some systems (esp. on ia64) link data and code symbols differently,
31151 # so use this general approach.
31152 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
31154 # Transform an extracted symbol line into symbol name and symbol address
31155 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
31156 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'"
31158 # Handle CRLF in mingw tool chain
31162 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
31166 # Try without a prefix underscore, then with it.
31167 for ac_symprfx in "" "_"; do
31169 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
31170 symxfrm="\\1 $ac_symprfx\\2 \\2"
31172 # Write the raw and C identifiers.
31173 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
31174 # Fake it for dumpbin and say T for any non-static function
31175 # and D for any global variable.
31176 # Also find C++ and __fastcall symbols from MSVC++,
31177 # which start with @ or ?.
31178 lt_cv_sys_global_symbol_pipe="$AWK '"\
31179 " {last_section=section; section=\$ 3};"\
31180 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
31181 " \$ 0!~/External *\|/{next};"\
31182 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
31183 " {if(hide[section]) next};"\
31184 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
31185 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
31186 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
31187 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
31188 " ' prfx=^$ac_symprfx"
31190 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
31192 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
31194 # Check to see that the pipe works correctly.
31198 cat > conftest.$ac_ext <<_LT_EOF
31203 void nm_test_func(void);
31204 void nm_test_func(void){}
31208 int main(){nm_test_var='a';nm_test_func();return(0);}
31211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31212 (eval $ac_compile) 2>&5
31214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31215 test $ac_status = 0; }; then
31216 # Now try to grab the symbols.
31218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
31219 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
31221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31222 test $ac_status = 0; } && test -s "$nlist"; then
31223 # Try sorting and uniquifying the output.
31224 if sort "$nlist" | uniq > "$nlist"T; then
31225 mv -f "$nlist"T "$nlist"
31230 # Make sure that we snagged all the symbols we need.
31231 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
31232 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
31233 cat <<_LT_EOF > conftest.$ac_ext
31234 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
31235 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
31236 /* DATA imports from DLLs on WIN32 con't be const, because runtime
31237 relocations are performed -- see ld's documentation on pseudo-relocs. */
31238 # define LT_DLSYM_CONST
31239 #elif defined(__osf__)
31240 /* This system does not cope well with relocations in const data. */
31241 # define LT_DLSYM_CONST
31243 # define LT_DLSYM_CONST const
31251 # Now generate the symbol file.
31252 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
31254 cat <<_LT_EOF >> conftest.$ac_ext
31256 /* The mapping between symbol names and symbols. */
31257 LT_DLSYM_CONST struct {
31261 lt__PROGRAM__LTX_preloaded_symbols[] =
31263 { "@PROGRAM@", (void *) 0 },
31265 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
31266 cat <<\_LT_EOF >> conftest.$ac_ext
31270 /* This works around a problem in FreeBSD linker */
31271 #ifdef FREEBSD_WORKAROUND
31272 static const void *lt_preloaded_setup() {
31273 return lt__PROGRAM__LTX_preloaded_symbols;
31281 # Now try linking the two files.
31282 mv conftest.$ac_objext conftstm.$ac_objext
31283 lt_globsym_save_LIBS=$LIBS
31284 lt_globsym_save_CFLAGS=$CFLAGS
31285 LIBS="conftstm.$ac_objext"
31286 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
31287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
31288 (eval $ac_link) 2>&5
31290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31291 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
31294 LIBS=$lt_globsym_save_LIBS
31295 CFLAGS=$lt_globsym_save_CFLAGS
31297 echo "cannot find nm_test_func in $nlist" >&5
31300 echo "cannot find nm_test_var in $nlist" >&5
31303 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
31306 echo "$progname: failed program was:" >&5
31307 cat conftest.$ac_ext >&5
31309 rm -rf conftest* conftst*
31311 # Do not use the global_symbol_pipe unless it works.
31312 if test "$pipe_works" = yes; then
31315 lt_cv_sys_global_symbol_pipe=
31321 if test -z "$lt_cv_sys_global_symbol_pipe"; then
31322 lt_cv_sys_global_symbol_to_cdecl=
31324 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
31325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
31326 $as_echo "failed" >&6; }
31328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
31329 $as_echo "ok" >&6; }
31332 # Response file support.
31333 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
31334 nm_file_list_spec='@'
31335 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
31336 nm_file_list_spec='@'
31365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
31366 $as_echo_n "checking for sysroot... " >&6; }
31368 # Check whether --with-sysroot was given.
31369 if test "${with_sysroot+set}" = set; then :
31370 withval=$with_sysroot;
31377 case ${with_sysroot} in #(
31379 if test "$GCC" = yes; then
31380 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
31384 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
31389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
31390 $as_echo "${with_sysroot}" >&6; }
31391 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
31395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
31396 $as_echo "${lt_sysroot:-no}" >&6; }
31402 # Check whether --enable-libtool-lock was given.
31403 if test "${enable_libtool_lock+set}" = set; then :
31404 enableval=$enable_libtool_lock;
31407 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
31409 # Some flags need to be propagated to the compiler or linker for good
31413 # Find out which ABI we are using.
31414 echo 'int i;' > conftest.$ac_ext
31415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31416 (eval $ac_compile) 2>&5
31418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31419 test $ac_status = 0; }; then
31420 case `/usr/bin/file conftest.$ac_objext` in
31422 HPUX_IA64_MODE="32"
31425 HPUX_IA64_MODE="64"
31432 # Find out which ABI we are using.
31433 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
31434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31435 (eval $ac_compile) 2>&5
31437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31438 test $ac_status = 0; }; then
31439 if test "$lt_cv_prog_gnu_ld" = yes; then
31440 case `/usr/bin/file conftest.$ac_objext` in
31442 LD="${LD-ld} -melf32bsmip"
31445 LD="${LD-ld} -melf32bmipn32"
31448 LD="${LD-ld} -melf64bmip"
31452 case `/usr/bin/file conftest.$ac_objext` in
31468 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
31469 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
31470 # Find out which ABI we are using.
31471 echo 'int i;' > conftest.$ac_ext
31472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31473 (eval $ac_compile) 2>&5
31475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31476 test $ac_status = 0; }; then
31477 case `/usr/bin/file conftest.o` in
31480 x86_64-*kfreebsd*-gnu)
31481 LD="${LD-ld} -m elf_i386_fbsd"
31484 LD="${LD-ld} -m elf_i386"
31486 ppc64-*linux*|powerpc64-*linux*)
31487 LD="${LD-ld} -m elf32ppclinux"
31490 LD="${LD-ld} -m elf_s390"
31493 LD="${LD-ld} -m elf32_sparc"
31499 x86_64-*kfreebsd*-gnu)
31500 LD="${LD-ld} -m elf_x86_64_fbsd"
31503 LD="${LD-ld} -m elf_x86_64"
31505 ppc*-*linux*|powerpc*-*linux*)
31506 LD="${LD-ld} -m elf64ppc"
31508 s390*-*linux*|s390*-*tpf*)
31509 LD="${LD-ld} -m elf64_s390"
31512 LD="${LD-ld} -m elf64_sparc"
31522 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
31523 SAVE_CFLAGS="$CFLAGS"
31524 CFLAGS="$CFLAGS -belf"
31525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
31526 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
31527 if ${lt_cv_cc_needs_belf+:} false; then :
31528 $as_echo_n "(cached) " >&6
31531 ac_cpp='$CPP $CPPFLAGS'
31532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31537 /* end confdefs.h. */
31547 if ac_fn_c_try_link "$LINENO"; then :
31548 lt_cv_cc_needs_belf=yes
31550 lt_cv_cc_needs_belf=no
31552 rm -f core conftest.err conftest.$ac_objext \
31553 conftest$ac_exeext conftest.$ac_ext
31555 ac_cpp='$CPP $CPPFLAGS'
31556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
31562 $as_echo "$lt_cv_cc_needs_belf" >&6; }
31563 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
31564 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
31565 CFLAGS="$SAVE_CFLAGS"
31569 # Find out which ABI we are using.
31570 echo 'int i;' > conftest.$ac_ext
31571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31572 (eval $ac_compile) 2>&5
31574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31575 test $ac_status = 0; }; then
31576 case `/usr/bin/file conftest.o` in
31578 case $lt_cv_prog_gnu_ld in
31579 yes*) LD="${LD-ld} -m elf64_sparc" ;;
31581 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
31593 need_locks="$enable_libtool_lock"
31595 if test -n "$ac_tool_prefix"; then
31596 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
31597 set dummy ${ac_tool_prefix}mt; ac_word=$2
31598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31599 $as_echo_n "checking for $ac_word... " >&6; }
31600 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
31601 $as_echo_n "(cached) " >&6
31603 if test -n "$MANIFEST_TOOL"; then
31604 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
31606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31607 for as_dir in $PATH
31610 test -z "$as_dir" && as_dir=.
31611 for ac_exec_ext in '' $ac_executable_extensions; do
31612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31613 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
31614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31623 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
31624 if test -n "$MANIFEST_TOOL"; then
31625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
31626 $as_echo "$MANIFEST_TOOL" >&6; }
31628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31629 $as_echo "no" >&6; }
31634 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
31635 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
31636 # Extract the first word of "mt", so it can be a program name with args.
31637 set dummy mt; ac_word=$2
31638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31639 $as_echo_n "checking for $ac_word... " >&6; }
31640 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
31641 $as_echo_n "(cached) " >&6
31643 if test -n "$ac_ct_MANIFEST_TOOL"; then
31644 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
31646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31647 for as_dir in $PATH
31650 test -z "$as_dir" && as_dir=.
31651 for ac_exec_ext in '' $ac_executable_extensions; do
31652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31653 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
31654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31663 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
31664 if test -n "$ac_ct_MANIFEST_TOOL"; then
31665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
31666 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
31668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31669 $as_echo "no" >&6; }
31672 if test "x$ac_ct_MANIFEST_TOOL" = x; then
31675 case $cross_compiling:$ac_tool_warned in
31677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31679 ac_tool_warned=yes ;;
31681 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
31684 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
31687 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
31688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
31689 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
31690 if ${lt_cv_path_mainfest_tool+:} false; then :
31691 $as_echo_n "(cached) " >&6
31693 lt_cv_path_mainfest_tool=no
31694 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
31695 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
31696 cat conftest.err >&5
31697 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
31698 lt_cv_path_mainfest_tool=yes
31702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
31703 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
31704 if test "x$lt_cv_path_mainfest_tool" != xyes; then
31714 rhapsody* | darwin*)
31715 if test -n "$ac_tool_prefix"; then
31716 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
31717 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
31718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31719 $as_echo_n "checking for $ac_word... " >&6; }
31720 if ${ac_cv_prog_DSYMUTIL+:} false; then :
31721 $as_echo_n "(cached) " >&6
31723 if test -n "$DSYMUTIL"; then
31724 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
31726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31727 for as_dir in $PATH
31730 test -z "$as_dir" && as_dir=.
31731 for ac_exec_ext in '' $ac_executable_extensions; do
31732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31733 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
31734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31743 DSYMUTIL=$ac_cv_prog_DSYMUTIL
31744 if test -n "$DSYMUTIL"; then
31745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
31746 $as_echo "$DSYMUTIL" >&6; }
31748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31749 $as_echo "no" >&6; }
31754 if test -z "$ac_cv_prog_DSYMUTIL"; then
31755 ac_ct_DSYMUTIL=$DSYMUTIL
31756 # Extract the first word of "dsymutil", so it can be a program name with args.
31757 set dummy dsymutil; ac_word=$2
31758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31759 $as_echo_n "checking for $ac_word... " >&6; }
31760 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
31761 $as_echo_n "(cached) " >&6
31763 if test -n "$ac_ct_DSYMUTIL"; then
31764 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
31766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31767 for as_dir in $PATH
31770 test -z "$as_dir" && as_dir=.
31771 for ac_exec_ext in '' $ac_executable_extensions; do
31772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31773 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
31774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31783 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
31784 if test -n "$ac_ct_DSYMUTIL"; then
31785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
31786 $as_echo "$ac_ct_DSYMUTIL" >&6; }
31788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31789 $as_echo "no" >&6; }
31792 if test "x$ac_ct_DSYMUTIL" = x; then
31795 case $cross_compiling:$ac_tool_warned in
31797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31799 ac_tool_warned=yes ;;
31801 DSYMUTIL=$ac_ct_DSYMUTIL
31804 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
31807 if test -n "$ac_tool_prefix"; then
31808 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
31809 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
31810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31811 $as_echo_n "checking for $ac_word... " >&6; }
31812 if ${ac_cv_prog_NMEDIT+:} false; then :
31813 $as_echo_n "(cached) " >&6
31815 if test -n "$NMEDIT"; then
31816 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
31818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31819 for as_dir in $PATH
31822 test -z "$as_dir" && as_dir=.
31823 for ac_exec_ext in '' $ac_executable_extensions; do
31824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31825 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
31826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31835 NMEDIT=$ac_cv_prog_NMEDIT
31836 if test -n "$NMEDIT"; then
31837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
31838 $as_echo "$NMEDIT" >&6; }
31840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31841 $as_echo "no" >&6; }
31846 if test -z "$ac_cv_prog_NMEDIT"; then
31847 ac_ct_NMEDIT=$NMEDIT
31848 # Extract the first word of "nmedit", so it can be a program name with args.
31849 set dummy nmedit; ac_word=$2
31850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31851 $as_echo_n "checking for $ac_word... " >&6; }
31852 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
31853 $as_echo_n "(cached) " >&6
31855 if test -n "$ac_ct_NMEDIT"; then
31856 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
31858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31859 for as_dir in $PATH
31862 test -z "$as_dir" && as_dir=.
31863 for ac_exec_ext in '' $ac_executable_extensions; do
31864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31865 ac_cv_prog_ac_ct_NMEDIT="nmedit"
31866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31875 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
31876 if test -n "$ac_ct_NMEDIT"; then
31877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
31878 $as_echo "$ac_ct_NMEDIT" >&6; }
31880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31881 $as_echo "no" >&6; }
31884 if test "x$ac_ct_NMEDIT" = x; then
31887 case $cross_compiling:$ac_tool_warned in
31889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31891 ac_tool_warned=yes ;;
31893 NMEDIT=$ac_ct_NMEDIT
31896 NMEDIT="$ac_cv_prog_NMEDIT"
31899 if test -n "$ac_tool_prefix"; then
31900 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
31901 set dummy ${ac_tool_prefix}lipo; ac_word=$2
31902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31903 $as_echo_n "checking for $ac_word... " >&6; }
31904 if ${ac_cv_prog_LIPO+:} false; then :
31905 $as_echo_n "(cached) " >&6
31907 if test -n "$LIPO"; then
31908 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
31910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31911 for as_dir in $PATH
31914 test -z "$as_dir" && as_dir=.
31915 for ac_exec_ext in '' $ac_executable_extensions; do
31916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31917 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
31918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31927 LIPO=$ac_cv_prog_LIPO
31928 if test -n "$LIPO"; then
31929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
31930 $as_echo "$LIPO" >&6; }
31932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31933 $as_echo "no" >&6; }
31938 if test -z "$ac_cv_prog_LIPO"; then
31940 # Extract the first word of "lipo", so it can be a program name with args.
31941 set dummy lipo; ac_word=$2
31942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31943 $as_echo_n "checking for $ac_word... " >&6; }
31944 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
31945 $as_echo_n "(cached) " >&6
31947 if test -n "$ac_ct_LIPO"; then
31948 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
31950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31951 for as_dir in $PATH
31954 test -z "$as_dir" && as_dir=.
31955 for ac_exec_ext in '' $ac_executable_extensions; do
31956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31957 ac_cv_prog_ac_ct_LIPO="lipo"
31958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31967 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
31968 if test -n "$ac_ct_LIPO"; then
31969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
31970 $as_echo "$ac_ct_LIPO" >&6; }
31972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31973 $as_echo "no" >&6; }
31976 if test "x$ac_ct_LIPO" = x; then
31979 case $cross_compiling:$ac_tool_warned in
31981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31983 ac_tool_warned=yes ;;
31988 LIPO="$ac_cv_prog_LIPO"
31991 if test -n "$ac_tool_prefix"; then
31992 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
31993 set dummy ${ac_tool_prefix}otool; ac_word=$2
31994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31995 $as_echo_n "checking for $ac_word... " >&6; }
31996 if ${ac_cv_prog_OTOOL+:} false; then :
31997 $as_echo_n "(cached) " >&6
31999 if test -n "$OTOOL"; then
32000 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
32002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32003 for as_dir in $PATH
32006 test -z "$as_dir" && as_dir=.
32007 for ac_exec_ext in '' $ac_executable_extensions; do
32008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32009 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
32010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32019 OTOOL=$ac_cv_prog_OTOOL
32020 if test -n "$OTOOL"; then
32021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
32022 $as_echo "$OTOOL" >&6; }
32024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32025 $as_echo "no" >&6; }
32030 if test -z "$ac_cv_prog_OTOOL"; then
32032 # Extract the first word of "otool", so it can be a program name with args.
32033 set dummy otool; ac_word=$2
32034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32035 $as_echo_n "checking for $ac_word... " >&6; }
32036 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
32037 $as_echo_n "(cached) " >&6
32039 if test -n "$ac_ct_OTOOL"; then
32040 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
32042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32043 for as_dir in $PATH
32046 test -z "$as_dir" && as_dir=.
32047 for ac_exec_ext in '' $ac_executable_extensions; do
32048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32049 ac_cv_prog_ac_ct_OTOOL="otool"
32050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32059 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
32060 if test -n "$ac_ct_OTOOL"; then
32061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
32062 $as_echo "$ac_ct_OTOOL" >&6; }
32064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32065 $as_echo "no" >&6; }
32068 if test "x$ac_ct_OTOOL" = x; then
32071 case $cross_compiling:$ac_tool_warned in
32073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32075 ac_tool_warned=yes ;;
32080 OTOOL="$ac_cv_prog_OTOOL"
32083 if test -n "$ac_tool_prefix"; then
32084 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
32085 set dummy ${ac_tool_prefix}otool64; ac_word=$2
32086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32087 $as_echo_n "checking for $ac_word... " >&6; }
32088 if ${ac_cv_prog_OTOOL64+:} false; then :
32089 $as_echo_n "(cached) " >&6
32091 if test -n "$OTOOL64"; then
32092 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
32094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32095 for as_dir in $PATH
32098 test -z "$as_dir" && as_dir=.
32099 for ac_exec_ext in '' $ac_executable_extensions; do
32100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32101 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
32102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32111 OTOOL64=$ac_cv_prog_OTOOL64
32112 if test -n "$OTOOL64"; then
32113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
32114 $as_echo "$OTOOL64" >&6; }
32116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32117 $as_echo "no" >&6; }
32122 if test -z "$ac_cv_prog_OTOOL64"; then
32123 ac_ct_OTOOL64=$OTOOL64
32124 # Extract the first word of "otool64", so it can be a program name with args.
32125 set dummy otool64; ac_word=$2
32126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32127 $as_echo_n "checking for $ac_word... " >&6; }
32128 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
32129 $as_echo_n "(cached) " >&6
32131 if test -n "$ac_ct_OTOOL64"; then
32132 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
32134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32135 for as_dir in $PATH
32138 test -z "$as_dir" && as_dir=.
32139 for ac_exec_ext in '' $ac_executable_extensions; do
32140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32141 ac_cv_prog_ac_ct_OTOOL64="otool64"
32142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32151 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
32152 if test -n "$ac_ct_OTOOL64"; then
32153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
32154 $as_echo "$ac_ct_OTOOL64" >&6; }
32156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32157 $as_echo "no" >&6; }
32160 if test "x$ac_ct_OTOOL64" = x; then
32163 case $cross_compiling:$ac_tool_warned in
32165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32167 ac_tool_warned=yes ;;
32169 OTOOL64=$ac_ct_OTOOL64
32172 OTOOL64="$ac_cv_prog_OTOOL64"
32201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
32202 $as_echo_n "checking for -single_module linker flag... " >&6; }
32203 if ${lt_cv_apple_cc_single_mod+:} false; then :
32204 $as_echo_n "(cached) " >&6
32206 lt_cv_apple_cc_single_mod=no
32207 if test -z "${LT_MULTI_MODULE}"; then
32208 # By default we will add the -single_module flag. You can override
32209 # by either setting the environment variable LT_MULTI_MODULE
32210 # non-empty at configure time, or by adding -multi_module to the
32212 rm -rf libconftest.dylib*
32213 echo "int foo(void){return 1;}" > conftest.c
32214 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
32215 -dynamiclib -Wl,-single_module conftest.c" >&5
32216 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
32217 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
32219 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
32220 lt_cv_apple_cc_single_mod=yes
32222 cat conftest.err >&5
32224 rm -rf libconftest.dylib*
32228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
32229 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
32230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
32231 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
32232 if ${lt_cv_ld_exported_symbols_list+:} false; then :
32233 $as_echo_n "(cached) " >&6
32235 lt_cv_ld_exported_symbols_list=no
32236 save_LDFLAGS=$LDFLAGS
32237 echo "_main" > conftest.sym
32238 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
32239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32240 /* end confdefs.h. */
32250 if ac_fn_c_try_link "$LINENO"; then :
32251 lt_cv_ld_exported_symbols_list=yes
32253 lt_cv_ld_exported_symbols_list=no
32255 rm -f core conftest.err conftest.$ac_objext \
32256 conftest$ac_exeext conftest.$ac_ext
32257 LDFLAGS="$save_LDFLAGS"
32260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
32261 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
32262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
32263 $as_echo_n "checking for -force_load linker flag... " >&6; }
32264 if ${lt_cv_ld_force_load+:} false; then :
32265 $as_echo_n "(cached) " >&6
32267 lt_cv_ld_force_load=no
32268 cat > conftest.c << _LT_EOF
32269 int forced_loaded() { return 2;}
32271 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
32272 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
32273 echo "$AR cru libconftest.a conftest.o" >&5
32274 $AR cru libconftest.a conftest.o 2>&5
32275 echo "$RANLIB libconftest.a" >&5
32276 $RANLIB libconftest.a 2>&5
32277 cat > conftest.c << _LT_EOF
32278 int main() { return 0;}
32280 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
32281 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
32283 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
32284 lt_cv_ld_force_load=yes
32286 cat conftest.err >&5
32288 rm -f conftest.err libconftest.a conftest conftest.c
32289 rm -rf conftest.dSYM
32292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
32293 $as_echo "$lt_cv_ld_force_load" >&6; }
32295 rhapsody* | darwin1.[012])
32296 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
32298 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
32299 darwin*) # darwin 5.x on
32300 # if running on 10.5 or later, the deployment target defaults
32301 # to the OS version, if on x86, and 10.4, the deployment
32302 # target defaults to 10.4. Don't you love it?
32303 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
32304 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
32305 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
32307 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
32309 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
32313 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
32314 _lt_dar_single_mod='$single_module'
32316 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
32317 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
32319 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
32321 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
32322 _lt_dsymutil='~$DSYMUTIL $lib || :'
32329 for ac_header in dlfcn.h
32331 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
32333 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
32334 cat >>confdefs.h <<_ACEOF
32335 #define HAVE_DLFCN_H 1
32353 enable_win32_dll=no
32356 # Check whether --enable-shared was given.
32357 if test "${enable_shared+set}" = set; then :
32358 enableval=$enable_shared; p=${PACKAGE-default}
32360 yes) enable_shared=yes ;;
32361 no) enable_shared=no ;;
32364 # Look at the argument we got. We use all the common list separators.
32365 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32366 for pkg in $enableval; do
32368 if test "X$pkg" = "X$p"; then
32387 # Check whether --enable-static was given.
32388 if test "${enable_static+set}" = set; then :
32389 enableval=$enable_static; p=${PACKAGE-default}
32391 yes) enable_static=yes ;;
32392 no) enable_static=no ;;
32395 # Look at the argument we got. We use all the common list separators.
32396 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32397 for pkg in $enableval; do
32399 if test "X$pkg" = "X$p"; then
32419 # Check whether --with-pic was given.
32420 if test "${with_pic+set}" = set; then :
32421 withval=$with_pic; pic_mode="$withval"
32427 test -z "$pic_mode" && pic_mode=default
32435 # Check whether --enable-fast-install was given.
32436 if test "${enable_fast_install+set}" = set; then :
32437 enableval=$enable_fast_install; p=${PACKAGE-default}
32439 yes) enable_fast_install=yes ;;
32440 no) enable_fast_install=no ;;
32442 enable_fast_install=no
32443 # Look at the argument we got. We use all the common list separators.
32444 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32445 for pkg in $enableval; do
32447 if test "X$pkg" = "X$p"; then
32448 enable_fast_install=yes
32455 enable_fast_install=yes
32468 # This can be used to rebuild libtool when needed
32469 LIBTOOL_DEPS="$ltmain"
32471 # Always use our own libtool.
32472 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
32499 test -z "$LN_S" && LN_S="ln -s"
32514 if test -n "${ZSH_VERSION+set}" ; then
32515 setopt NO_GLOB_SUBST
32518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
32519 $as_echo_n "checking for objdir... " >&6; }
32520 if ${lt_cv_objdir+:} false; then :
32521 $as_echo_n "(cached) " >&6
32523 rm -f .libs 2>/dev/null
32524 mkdir .libs 2>/dev/null
32525 if test -d .libs; then
32528 # MS-DOS does not allow filenames that begin with a dot.
32531 rmdir .libs 2>/dev/null
32533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
32534 $as_echo "$lt_cv_objdir" >&6; }
32535 objdir=$lt_cv_objdir
32541 cat >>confdefs.h <<_ACEOF
32542 #define LT_OBJDIR "$lt_cv_objdir/"
32550 # AIX sometimes has problems with the GCC collect2 program. For some
32551 # reason, if we set the COLLECT_NAMES environment variable, the problems
32552 # vanish in a puff of smoke.
32553 if test "X${COLLECT_NAMES+set}" != Xset; then
32555 export COLLECT_NAMES
32560 # Global variables:
32562 can_build_shared=yes
32564 # All known linkers require a `.a' archive for static linking (except MSVC,
32565 # which needs '.lib').
32568 with_gnu_ld="$lt_cv_prog_gnu_ld"
32571 old_CFLAGS="$CFLAGS"
32573 # Set sane defaults for various variables
32574 test -z "$CC" && CC=cc
32575 test -z "$LTCC" && LTCC=$CC
32576 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
32577 test -z "$LD" && LD=ld
32578 test -z "$ac_objext" && ac_objext=o
32580 for cc_temp in $compiler""; do
32582 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
32583 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
32588 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
32591 # Only perform the check for file, if the check method requires it
32592 test -z "$MAGIC_CMD" && MAGIC_CMD=file
32593 case $deplibs_check_method in
32595 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
32596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
32597 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
32598 if ${lt_cv_path_MAGIC_CMD+:} false; then :
32599 $as_echo_n "(cached) " >&6
32603 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
32606 lt_save_MAGIC_CMD="$MAGIC_CMD"
32607 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
32608 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
32609 for ac_dir in $ac_dummy; do
32611 test -z "$ac_dir" && ac_dir=.
32612 if test -f $ac_dir/${ac_tool_prefix}file; then
32613 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
32614 if test -n "$file_magic_test_file"; then
32615 case $deplibs_check_method in
32617 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
32618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
32619 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
32620 $EGREP "$file_magic_regex" > /dev/null; then
32625 *** Warning: the command libtool uses to detect shared libraries,
32626 *** $file_magic_cmd, produces output that libtool cannot recognize.
32627 *** The result is that libtool may fail to recognize shared libraries
32628 *** as such. This will affect the creation of libtool libraries that
32629 *** depend on shared libraries, but programs linked with such libtool
32630 *** libraries will work regardless of this problem. Nevertheless, you
32631 *** may want to report the problem to your system manager and/or to
32632 *** bug-libtool@gnu.org
32642 MAGIC_CMD="$lt_save_MAGIC_CMD"
32647 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
32648 if test -n "$MAGIC_CMD"; then
32649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
32650 $as_echo "$MAGIC_CMD" >&6; }
32652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32653 $as_echo "no" >&6; }
32660 if test -z "$lt_cv_path_MAGIC_CMD"; then
32661 if test -n "$ac_tool_prefix"; then
32662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
32663 $as_echo_n "checking for file... " >&6; }
32664 if ${lt_cv_path_MAGIC_CMD+:} false; then :
32665 $as_echo_n "(cached) " >&6
32669 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
32672 lt_save_MAGIC_CMD="$MAGIC_CMD"
32673 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
32674 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
32675 for ac_dir in $ac_dummy; do
32677 test -z "$ac_dir" && ac_dir=.
32678 if test -f $ac_dir/file; then
32679 lt_cv_path_MAGIC_CMD="$ac_dir/file"
32680 if test -n "$file_magic_test_file"; then
32681 case $deplibs_check_method in
32683 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
32684 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
32685 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
32686 $EGREP "$file_magic_regex" > /dev/null; then
32691 *** Warning: the command libtool uses to detect shared libraries,
32692 *** $file_magic_cmd, produces output that libtool cannot recognize.
32693 *** The result is that libtool may fail to recognize shared libraries
32694 *** as such. This will affect the creation of libtool libraries that
32695 *** depend on shared libraries, but programs linked with such libtool
32696 *** libraries will work regardless of this problem. Nevertheless, you
32697 *** may want to report the problem to your system manager and/or to
32698 *** bug-libtool@gnu.org
32708 MAGIC_CMD="$lt_save_MAGIC_CMD"
32713 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
32714 if test -n "$MAGIC_CMD"; then
32715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
32716 $as_echo "$MAGIC_CMD" >&6; }
32718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32719 $as_echo "no" >&6; }
32732 # Use C for the default configuration in the libtool script
32736 ac_cpp='$CPP $CPPFLAGS'
32737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32742 # Source file extension for C test sources.
32745 # Object file extension for compiled C test sources.
32749 # Code to be used in simple compile tests
32750 lt_simple_compile_test_code="int some_variable = 0;"
32752 # Code to be used in simple link tests
32753 lt_simple_link_test_code='int main(){return(0);}'
32761 # If no C compiler was specified, use CC.
32764 # If no C compiler flags were specified, use CFLAGS.
32765 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
32767 # Allow CC to be a program name with arguments.
32770 # Save the default compiler, since it gets overwritten when the other
32771 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
32772 compiler_DEFAULT=$CC
32774 # save warnings/boilerplate of simple test code
32775 ac_outfile=conftest.$ac_objext
32776 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
32777 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
32778 _lt_compiler_boilerplate=`cat conftest.err`
32781 ac_outfile=conftest.$ac_objext
32782 echo "$lt_simple_link_test_code" >conftest.$ac_ext
32783 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
32784 _lt_linker_boilerplate=`cat conftest.err`
32789 ## There is no encapsulation within the following macros, do not change
32790 ## the running order or otherwise move them around unless you know exactly
32791 ## what you are doing...
32792 if test -n "$compiler"; then
32794 lt_prog_compiler_no_builtin_flag=
32796 if test "$GCC" = yes; then
32797 case $cc_basename in
32799 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
32801 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
32804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
32805 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
32806 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
32807 $as_echo_n "(cached) " >&6
32809 lt_cv_prog_compiler_rtti_exceptions=no
32810 ac_outfile=conftest.$ac_objext
32811 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
32812 lt_compiler_flag="-fno-rtti -fno-exceptions"
32813 # Insert the option either (1) after the last *FLAGS variable, or
32814 # (2) before a word containing "conftest.", or (3) at the end.
32815 # Note that $ac_compile itself does not contain backslashes and begins
32816 # with a dollar sign (not a hyphen), so the echo should work correctly.
32817 # The option is referenced via a variable to avoid confusing sed.
32818 lt_compile=`echo "$ac_compile" | $SED \
32819 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
32820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
32821 -e 's:$: $lt_compiler_flag:'`
32822 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
32823 (eval "$lt_compile" 2>conftest.err)
32825 cat conftest.err >&5
32826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827 if (exit $ac_status) && test -s "$ac_outfile"; then
32828 # The compiler can only warn and ignore the option if not recognized
32829 # So say no if there are warnings other than the usual output.
32830 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
32831 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
32832 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
32833 lt_cv_prog_compiler_rtti_exceptions=yes
32839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
32840 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
32842 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
32843 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
32855 lt_prog_compiler_wl=
32856 lt_prog_compiler_pic=
32857 lt_prog_compiler_static=
32860 if test "$GCC" = yes; then
32861 lt_prog_compiler_wl='-Wl,'
32862 lt_prog_compiler_static='-static'
32866 # All AIX code is PIC.
32867 if test "$host_cpu" = ia64; then
32868 # AIX 5 now supports IA64 processor
32869 lt_prog_compiler_static='-Bstatic'
32876 # see comment about AmigaOS4 .so support
32877 lt_prog_compiler_pic='-fPIC'
32880 # FIXME: we need at least 68020 code to build shared libraries, but
32881 # adding the `-m68020' flag to GCC prevents building anything better,
32883 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
32888 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
32889 # PIC is the default for these OSes.
32892 mingw* | cygwin* | pw32* | os2* | cegcc*)
32893 # This hack is so that the source file can tell whether it is being
32894 # built for inclusion in a dll (and should export symbols for example).
32895 # Although the cygwin gcc ignores -fPIC, still need this for old-style
32896 # (--disable-auto-import) libraries
32897 lt_prog_compiler_pic='-DDLL_EXPORT'
32900 darwin* | rhapsody*)
32901 # PIC is the default on this platform
32902 # Common symbols not allowed in MH_DYLIB files
32903 lt_prog_compiler_pic='-fno-common'
32907 # PIC is the default for Haiku.
32908 # The "-static" flag exists, but is broken.
32909 lt_prog_compiler_static=
32913 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
32914 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
32915 # sets the default TLS model and affects inlining.
32921 lt_prog_compiler_pic='-fPIC'
32927 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
32928 # Instead, we relocate shared libraries at runtime.
32932 # Just because we use GCC doesn't mean we suddenly get shared libraries
32933 # on systems that don't support them.
32934 lt_prog_compiler_can_build_shared=no
32939 # QNX uses GNU C++, but need to define -shared option too, otherwise
32940 # it will coredump.
32941 lt_prog_compiler_pic='-fPIC -shared'
32945 if test -d /usr/nec; then
32946 lt_prog_compiler_pic=-Kconform_pic
32951 lt_prog_compiler_pic='-fPIC'
32955 case $cc_basename in
32956 nvcc*) # Cuda Compiler Driver 2.2
32957 lt_prog_compiler_wl='-Xlinker '
32958 lt_prog_compiler_pic='-Xcompiler -fPIC'
32962 # PORTME Check for flag to pass linker flags through the system compiler.
32965 lt_prog_compiler_wl='-Wl,'
32966 if test "$host_cpu" = ia64; then
32967 # AIX 5 now supports IA64 processor
32968 lt_prog_compiler_static='-Bstatic'
32970 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
32974 mingw* | cygwin* | pw32* | os2* | cegcc*)
32975 # This hack is so that the source file can tell whether it is being
32976 # built for inclusion in a dll (and should export symbols for example).
32977 lt_prog_compiler_pic='-DDLL_EXPORT'
32980 hpux9* | hpux10* | hpux11*)
32981 lt_prog_compiler_wl='-Wl,'
32982 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
32983 # not for PA HP-UX.
32989 lt_prog_compiler_pic='+Z'
32992 # Is there a better lt_prog_compiler_static that works with the bundled CC?
32993 lt_prog_compiler_static='${wl}-a ${wl}archive'
32996 irix5* | irix6* | nonstopux*)
32997 lt_prog_compiler_wl='-Wl,'
32998 # PIC (with -KPIC) is the default.
32999 lt_prog_compiler_static='-non_shared'
33002 linux* | k*bsd*-gnu | kopensolaris*-gnu)
33003 case $cc_basename in
33004 # old Intel for x86_64 which still supported -KPIC.
33006 lt_prog_compiler_wl='-Wl,'
33007 lt_prog_compiler_pic='-KPIC'
33008 lt_prog_compiler_static='-static'
33010 # icc used to be incompatible with GCC.
33011 # ICC 10 doesn't accept -KPIC any more.
33013 lt_prog_compiler_wl='-Wl,'
33014 lt_prog_compiler_pic='-fPIC'
33015 lt_prog_compiler_static='-static'
33017 # Lahey Fortran 8.1.
33019 lt_prog_compiler_wl='-Wl,'
33020 lt_prog_compiler_pic='--shared'
33021 lt_prog_compiler_static='--static'
33024 # NAG Fortran compiler
33025 lt_prog_compiler_wl='-Wl,-Wl,,'
33026 lt_prog_compiler_pic='-PIC'
33027 lt_prog_compiler_static='-Bstatic'
33029 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
33030 # Portland Group compilers (*not* the Pentium gcc compiler,
33031 # which looks to be a dead project)
33032 lt_prog_compiler_wl='-Wl,'
33033 lt_prog_compiler_pic='-fpic'
33034 lt_prog_compiler_static='-Bstatic'
33037 lt_prog_compiler_wl='-Wl,'
33038 # All Alpha code is PIC.
33039 lt_prog_compiler_static='-non_shared'
33041 xl* | bgxl* | bgf* | mpixl*)
33042 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
33043 lt_prog_compiler_wl='-Wl,'
33044 lt_prog_compiler_pic='-qpic'
33045 lt_prog_compiler_static='-qstaticlink'
33048 case `$CC -V 2>&1 | sed 5q` in
33049 *Sun\ F* | *Sun*Fortran*)
33050 # Sun Fortran 8.3 passes all unrecognized flags to the linker
33051 lt_prog_compiler_pic='-KPIC'
33052 lt_prog_compiler_static='-Bstatic'
33053 lt_prog_compiler_wl=''
33057 lt_prog_compiler_pic='-KPIC'
33058 lt_prog_compiler_static='-Bstatic'
33059 lt_prog_compiler_wl='-Wl,'
33067 lt_prog_compiler_pic='-KPIC'
33068 lt_prog_compiler_static='-Bstatic'
33072 # QNX uses GNU C++, but need to define -shared option too, otherwise
33073 # it will coredump.
33074 lt_prog_compiler_pic='-fPIC -shared'
33077 osf3* | osf4* | osf5*)
33078 lt_prog_compiler_wl='-Wl,'
33079 # All OSF/1 code is PIC.
33080 lt_prog_compiler_static='-non_shared'
33084 lt_prog_compiler_static='-non_shared'
33088 lt_prog_compiler_pic='-KPIC'
33089 lt_prog_compiler_static='-Bstatic'
33090 case $cc_basename in
33091 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
33092 lt_prog_compiler_wl='-Qoption ld ';;
33094 lt_prog_compiler_wl='-Wl,';;
33099 lt_prog_compiler_wl='-Qoption ld '
33100 lt_prog_compiler_pic='-PIC'
33101 lt_prog_compiler_static='-Bstatic'
33104 sysv4 | sysv4.2uw2* | sysv4.3*)
33105 lt_prog_compiler_wl='-Wl,'
33106 lt_prog_compiler_pic='-KPIC'
33107 lt_prog_compiler_static='-Bstatic'
33111 if test -d /usr/nec ;then
33112 lt_prog_compiler_pic='-Kconform_pic'
33113 lt_prog_compiler_static='-Bstatic'
33117 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
33118 lt_prog_compiler_wl='-Wl,'
33119 lt_prog_compiler_pic='-KPIC'
33120 lt_prog_compiler_static='-Bstatic'
33124 lt_prog_compiler_wl='-Wl,'
33125 lt_prog_compiler_can_build_shared=no
33129 lt_prog_compiler_pic='-pic'
33130 lt_prog_compiler_static='-Bstatic'
33134 lt_prog_compiler_can_build_shared=no
33140 # For platforms which do not support PIC, -DPIC is meaningless:
33142 lt_prog_compiler_pic=
33145 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
33149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
33150 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
33151 if ${lt_cv_prog_compiler_pic+:} false; then :
33152 $as_echo_n "(cached) " >&6
33154 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
33156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
33157 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
33158 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
33161 # Check to make sure the PIC flag actually works.
33163 if test -n "$lt_prog_compiler_pic"; then
33164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
33165 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
33166 if ${lt_cv_prog_compiler_pic_works+:} false; then :
33167 $as_echo_n "(cached) " >&6
33169 lt_cv_prog_compiler_pic_works=no
33170 ac_outfile=conftest.$ac_objext
33171 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33172 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
33173 # Insert the option either (1) after the last *FLAGS variable, or
33174 # (2) before a word containing "conftest.", or (3) at the end.
33175 # Note that $ac_compile itself does not contain backslashes and begins
33176 # with a dollar sign (not a hyphen), so the echo should work correctly.
33177 # The option is referenced via a variable to avoid confusing sed.
33178 lt_compile=`echo "$ac_compile" | $SED \
33179 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33180 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33181 -e 's:$: $lt_compiler_flag:'`
33182 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33183 (eval "$lt_compile" 2>conftest.err)
33185 cat conftest.err >&5
33186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33187 if (exit $ac_status) && test -s "$ac_outfile"; then
33188 # The compiler can only warn and ignore the option if not recognized
33189 # So say no if there are warnings other than the usual output.
33190 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
33191 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
33192 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
33193 lt_cv_prog_compiler_pic_works=yes
33199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
33200 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
33202 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
33203 case $lt_prog_compiler_pic in
33205 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
33208 lt_prog_compiler_pic=
33209 lt_prog_compiler_can_build_shared=no
33225 # Check to make sure the static flag actually works.
33227 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
33228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
33229 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
33230 if ${lt_cv_prog_compiler_static_works+:} false; then :
33231 $as_echo_n "(cached) " >&6
33233 lt_cv_prog_compiler_static_works=no
33234 save_LDFLAGS="$LDFLAGS"
33235 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
33236 echo "$lt_simple_link_test_code" > conftest.$ac_ext
33237 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
33238 # The linker can only warn and ignore the option if not recognized
33239 # So say no if there are warnings
33240 if test -s conftest.err; then
33241 # Append any errors to the config.log.
33242 cat conftest.err 1>&5
33243 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
33244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
33245 if diff conftest.exp conftest.er2 >/dev/null; then
33246 lt_cv_prog_compiler_static_works=yes
33249 lt_cv_prog_compiler_static_works=yes
33253 LDFLAGS="$save_LDFLAGS"
33256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
33257 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
33259 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
33262 lt_prog_compiler_static=
33271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
33272 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
33273 if ${lt_cv_prog_compiler_c_o+:} false; then :
33274 $as_echo_n "(cached) " >&6
33276 lt_cv_prog_compiler_c_o=no
33277 $RM -r conftest 2>/dev/null
33281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33283 lt_compiler_flag="-o out/conftest2.$ac_objext"
33284 # Insert the option either (1) after the last *FLAGS variable, or
33285 # (2) before a word containing "conftest.", or (3) at the end.
33286 # Note that $ac_compile itself does not contain backslashes and begins
33287 # with a dollar sign (not a hyphen), so the echo should work correctly.
33288 lt_compile=`echo "$ac_compile" | $SED \
33289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33291 -e 's:$: $lt_compiler_flag:'`
33292 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33293 (eval "$lt_compile" 2>out/conftest.err)
33295 cat out/conftest.err >&5
33296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297 if (exit $ac_status) && test -s out/conftest2.$ac_objext
33299 # The compiler can only warn and ignore the option if not recognized
33300 # So say no if there are warnings
33301 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
33302 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
33303 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
33304 lt_cv_prog_compiler_c_o=yes
33309 # SGI C++ compiler will create directory out/ii_files/ for
33310 # template instantiation
33311 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
33312 $RM out/* && rmdir out
33318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
33319 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
33326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
33327 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
33328 if ${lt_cv_prog_compiler_c_o+:} false; then :
33329 $as_echo_n "(cached) " >&6
33331 lt_cv_prog_compiler_c_o=no
33332 $RM -r conftest 2>/dev/null
33336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33338 lt_compiler_flag="-o out/conftest2.$ac_objext"
33339 # Insert the option either (1) after the last *FLAGS variable, or
33340 # (2) before a word containing "conftest.", or (3) at the end.
33341 # Note that $ac_compile itself does not contain backslashes and begins
33342 # with a dollar sign (not a hyphen), so the echo should work correctly.
33343 lt_compile=`echo "$ac_compile" | $SED \
33344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33346 -e 's:$: $lt_compiler_flag:'`
33347 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33348 (eval "$lt_compile" 2>out/conftest.err)
33350 cat out/conftest.err >&5
33351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33352 if (exit $ac_status) && test -s out/conftest2.$ac_objext
33354 # The compiler can only warn and ignore the option if not recognized
33355 # So say no if there are warnings
33356 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
33357 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
33358 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
33359 lt_cv_prog_compiler_c_o=yes
33364 # SGI C++ compiler will create directory out/ii_files/ for
33365 # template instantiation
33366 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
33367 $RM out/* && rmdir out
33373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
33374 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
33379 hard_links="nottested"
33380 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
33381 # do not overwrite the value of need_locks provided by the user
33382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
33383 $as_echo_n "checking if we can lock with hard links... " >&6; }
33386 ln conftest.a conftest.b 2>/dev/null && hard_links=no
33388 ln conftest.a conftest.b 2>&5 || hard_links=no
33389 ln conftest.a conftest.b 2>/dev/null && hard_links=no
33390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
33391 $as_echo "$hard_links" >&6; }
33392 if test "$hard_links" = no; then
33393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
33394 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
33406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
33407 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
33410 allow_undefined_flag=
33411 always_export_symbols=no
33413 archive_expsym_cmds=
33414 compiler_needs_object=no
33415 enable_shared_with_static_runtimes=no
33416 export_dynamic_flag_spec=
33417 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
33418 hardcode_automatic=no
33420 hardcode_direct_absolute=no
33421 hardcode_libdir_flag_spec=
33422 hardcode_libdir_flag_spec_ld=
33423 hardcode_libdir_separator=
33424 hardcode_minus_L=no
33425 hardcode_shlibpath_var=unsupported
33427 link_all_deplibs=unknown
33429 module_expsym_cmds=
33430 old_archive_from_new_cmds=
33431 old_archive_from_expsyms_cmds=
33432 thread_safe_flag_spec=
33433 whole_archive_flag_spec=
33434 # include_expsyms should be a list of space-separated symbols to be *always*
33435 # included in the symbol list
33437 # exclude_expsyms can be an extended regexp of symbols to exclude
33438 # it will be wrapped by ` (' and `)$', so one must not match beginning or
33439 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
33440 # as well as any symbol that contains `d'.
33441 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
33442 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
33443 # platforms (ab)use it in PIC code, but their linkers get confused if
33444 # the symbol is explicitly referenced. Since portable code cannot
33445 # rely on this symbol name, it's probably fine to never include it in
33446 # preloaded symbol tables.
33447 # Exclude shared library initialization/finalization symbols.
33448 extract_expsyms_cmds=
33451 cygwin* | mingw* | pw32* | cegcc*)
33452 # FIXME: the MSVC++ port hasn't been tested in a loooong time
33453 # When not using gcc, we currently assume that we are using
33454 # Microsoft Visual C++.
33455 if test "$GCC" != yes; then
33460 # we just hope/assume this is gcc and not c89 (= MSVC++)
33470 # On some targets, GNU ld is compatible enough with the native linker
33471 # that we're better off using the native interface for both.
33472 lt_use_gnu_ld_interface=no
33473 if test "$with_gnu_ld" = yes; then
33476 # The AIX port of GNU ld has always aspired to compatibility
33477 # with the native linker. However, as the warning in the GNU ld
33478 # block says, versions before 2.19.5* couldn't really create working
33479 # shared libraries, regardless of the interface used.
33480 case `$LD -v 2>&1` in
33481 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
33482 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
33483 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
33485 lt_use_gnu_ld_interface=yes
33490 lt_use_gnu_ld_interface=yes
33495 if test "$lt_use_gnu_ld_interface" = yes; then
33496 # If archive_cmds runs LD, not CC, wlarc should be empty
33499 # Set some defaults for GNU ld with shared library support. These
33500 # are reset later if shared libraries are not supported. Putting them
33501 # here allows them to be overridden if necessary.
33502 runpath_var=LD_RUN_PATH
33503 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
33504 export_dynamic_flag_spec='${wl}--export-dynamic'
33505 # ancient GNU ld didn't support --whole-archive et. al.
33506 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
33507 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
33509 whole_archive_flag_spec=
33511 supports_anon_versioning=no
33512 case `$LD -v 2>&1` in
33513 *GNU\ gold*) supports_anon_versioning=yes ;;
33514 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
33515 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
33516 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
33517 *\ 2.11.*) ;; # other 2.11 versions
33518 *) supports_anon_versioning=yes ;;
33521 # See if GNU ld supports shared libraries.
33524 # On AIX/PPC, the GNU linker is very broken
33525 if test "$host_cpu" != ia64; then
33529 *** Warning: the GNU linker, at least up to release 2.19, is reported
33530 *** to be unable to reliably create shared libraries on AIX.
33531 *** Therefore, libtool is disabling shared libraries support. If you
33532 *** really care for shared libraries, you may want to install binutils
33533 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
33534 *** You will then need to restart the configuration process.
33543 # see comment about AmigaOS4 .so support
33544 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33545 archive_expsym_cmds=''
33548 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)'
33549 hardcode_libdir_flag_spec='-L$libdir'
33550 hardcode_minus_L=yes
33556 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33557 allow_undefined_flag=unsupported
33558 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
33559 # support --undefined. This deserves some investigation. FIXME
33560 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33566 cygwin* | mingw* | pw32* | cegcc*)
33567 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
33568 # as there is no search path for DLLs.
33569 hardcode_libdir_flag_spec='-L$libdir'
33570 export_dynamic_flag_spec='${wl}--export-all-symbols'
33571 allow_undefined_flag=unsupported
33572 always_export_symbols=no
33573 enable_shared_with_static_runtimes=yes
33574 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'
33575 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
33577 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
33578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
33579 # If the export-symbols file already is a .def file (1st line
33580 # is EXPORTS), use it as is; otherwise, prepend...
33581 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
33582 cp $export_symbols $output_objdir/$soname.def;
33584 echo EXPORTS > $output_objdir/$soname.def;
33585 cat $export_symbols >> $output_objdir/$soname.def;
33587 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
33594 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33595 link_all_deplibs=yes
33600 hardcode_shlibpath_var=no
33601 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
33602 export_dynamic_flag_spec='${wl}-E'
33603 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
33604 # Instead, shared libraries are loaded at an image base (0x10000000 by
33605 # default) and relocated if they conflict, which is a slow very memory
33606 # consuming and fragmenting process. To avoid this, we pick a random,
33607 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
33608 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
33609 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
33610 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'
33613 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
33615 if test "$host_os" = linux-dietlibc; then
33616 case $cc_basename in
33617 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
33620 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
33621 && test "$tmp_diet" = no
33623 tmp_addflag=' $pic_flag'
33624 tmp_sharedflag='-shared'
33625 case $cc_basename,$host_cpu in
33626 pgcc*) # Portland Group C compiler
33627 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'
33628 tmp_addflag=' $pic_flag'
33630 pgf77* | pgf90* | pgf95* | pgfortran*)
33631 # Portland Group f77 and f90 compilers
33632 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'
33633 tmp_addflag=' $pic_flag -Mnomain' ;;
33634 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
33635 tmp_addflag=' -i_dynamic' ;;
33636 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
33637 tmp_addflag=' -i_dynamic -nofor_main' ;;
33638 ifc* | ifort*) # Intel Fortran compiler
33639 tmp_addflag=' -nofor_main' ;;
33640 lf95*) # Lahey Fortran 8.1
33641 whole_archive_flag_spec=
33642 tmp_sharedflag='--shared' ;;
33643 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
33644 tmp_sharedflag='-qmkshrobj'
33646 nvcc*) # Cuda Compiler Driver 2.2
33647 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'
33648 compiler_needs_object=yes
33651 case `$CC -V 2>&1 | sed 5q` in
33652 *Sun\ C*) # Sun C 5.9
33653 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'
33654 compiler_needs_object=yes
33655 tmp_sharedflag='-G' ;;
33656 *Sun\ F*) # Sun Fortran 8.3
33657 tmp_sharedflag='-G' ;;
33659 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33661 if test "x$supports_anon_versioning" = xyes; then
33662 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
33663 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
33664 echo "local: *; };" >> $output_objdir/$libname.ver~
33665 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
33668 case $cc_basename in
33669 xlf* | bgf* | bgxlf* | mpixlf*)
33670 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
33671 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
33672 hardcode_libdir_flag_spec=
33673 hardcode_libdir_flag_spec_ld='-rpath $libdir'
33674 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
33675 if test "x$supports_anon_versioning" = xyes; then
33676 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
33677 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
33678 echo "local: *; };" >> $output_objdir/$libname.ver~
33679 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
33689 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
33690 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
33693 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33694 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33699 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
33703 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
33704 *** create shared libraries on Solaris systems. Therefore, libtool
33705 *** is disabling shared libraries support. We urge you to upgrade GNU
33706 *** binutils to release 2.9.1 or newer. Another option is to modify
33707 *** your PATH or compiler configuration so that the native linker is
33708 *** used, and then restart.
33711 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33712 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33713 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33719 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
33720 case `$LD -v 2>&1` in
33721 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
33725 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
33726 *** reliably create shared libraries on SCO systems. Therefore, libtool
33727 *** is disabling shared libraries support. We urge you to upgrade GNU
33728 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
33729 *** your PATH or compiler configuration so that the native linker is
33730 *** used, and then restart.
33735 # For security reasons, it is highly recommended that you always
33736 # use absolute paths for naming shared libraries, and exclude the
33737 # DT_RUNPATH tag from executables and libraries. But doing so
33738 # requires that you compile everything twice, which is a pain.
33739 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
33741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33742 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33751 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
33753 hardcode_direct=yes
33754 hardcode_shlibpath_var=no
33758 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33759 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33760 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33767 if test "$ld_shlibs" = no; then
33769 hardcode_libdir_flag_spec=
33770 export_dynamic_flag_spec=
33771 whole_archive_flag_spec=
33774 # PORTME fill in a description of your system's linker (not GNU ld)
33777 allow_undefined_flag=unsupported
33778 always_export_symbols=yes
33779 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'
33780 # Note: this linker hardcodes the directories in LIBPATH if there
33781 # are no directories specified by -L.
33782 hardcode_minus_L=yes
33783 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
33784 # Neither direct hardcoding nor static linking is supported with a
33786 hardcode_direct=unsupported
33791 if test "$host_cpu" = ia64; then
33792 # On IA64, the linker does run time linking by default, so we don't
33793 # have to do anything special.
33794 aix_use_runtimelinking=no
33795 exp_sym_flag='-Bexport'
33798 # If we're using GNU nm, then we don't want the "-C" option.
33799 # -C means demangle to AIX nm, but means don't demangle with GNU nm
33800 # Also, AIX nm treats weak defined symbols like other global
33801 # defined symbols, whereas GNU nm marks them as "W".
33802 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
33803 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'
33805 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'
33807 aix_use_runtimelinking=no
33809 # Test if we are trying to use run time linking or normal
33810 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
33811 # need to do runtime linking.
33812 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
33813 for ld_flag in $LDFLAGS; do
33814 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
33815 aix_use_runtimelinking=yes
33822 exp_sym_flag='-bexport'
33823 no_entry_flag='-bnoentry'
33826 # When large executables or shared objects are built, AIX ld can
33827 # have problems creating the table of contents. If linking a library
33828 # or program results in "error TOC overflow" add -mminimal-toc to
33829 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
33830 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
33833 hardcode_direct=yes
33834 hardcode_direct_absolute=yes
33835 hardcode_libdir_separator=':'
33836 link_all_deplibs=yes
33837 file_list_spec='${wl}-f,'
33839 if test "$GCC" = yes; then
33840 case $host_os in aix4.[012]|aix4.[012].*)
33841 # We only want to do this on AIX 4.2 and lower, the check
33842 # below for broken collect2 doesn't work under 4.3+
33843 collect2name=`${CC} -print-prog-name=collect2`
33844 if test -f "$collect2name" &&
33845 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
33847 # We have reworked collect2
33850 # We have old collect2
33851 hardcode_direct=unsupported
33852 # It fails to find uninstalled libraries when the uninstalled
33853 # path is not listed in the libpath. Setting hardcode_minus_L
33854 # to unsupported forces relinking
33855 hardcode_minus_L=yes
33856 hardcode_libdir_flag_spec='-L$libdir'
33857 hardcode_libdir_separator=
33861 shared_flag='-shared'
33862 if test "$aix_use_runtimelinking" = yes; then
33863 shared_flag="$shared_flag "'${wl}-G'
33867 if test "$host_cpu" = ia64; then
33868 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
33869 # chokes on -Wl,-G. The following line is correct:
33872 if test "$aix_use_runtimelinking" = yes; then
33873 shared_flag='${wl}-G'
33875 shared_flag='${wl}-bM:SRE'
33880 export_dynamic_flag_spec='${wl}-bexpall'
33881 # It seems that -bexpall does not export symbols beginning with
33882 # underscore (_), so it is better to generate a list of symbols to export.
33883 always_export_symbols=yes
33884 if test "$aix_use_runtimelinking" = yes; then
33885 # Warning - without using the other runtime loading flags (-brtl),
33886 # -berok will link without error, but may produce a broken library.
33887 allow_undefined_flag='-berok'
33888 # Determine the default libpath from the value encoded in an
33889 # empty executable.
33890 if test "${lt_cv_aix_libpath+set}" = set; then
33891 aix_libpath=$lt_cv_aix_libpath
33893 if ${lt_cv_aix_libpath_+:} false; then :
33894 $as_echo_n "(cached) " >&6
33896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33897 /* end confdefs.h. */
33907 if ac_fn_c_try_link "$LINENO"; then :
33909 lt_aix_libpath_sed='
33910 /Import File Strings/,/^$/ {
33912 s/^0 *\([^ ]*\) *$/\1/
33916 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
33917 # Check for a 64-bit object if we didn't find anything.
33918 if test -z "$lt_cv_aix_libpath_"; then
33919 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
33922 rm -f core conftest.err conftest.$ac_objext \
33923 conftest$ac_exeext conftest.$ac_ext
33924 if test -z "$lt_cv_aix_libpath_"; then
33925 lt_cv_aix_libpath_="/usr/lib:/lib"
33930 aix_libpath=$lt_cv_aix_libpath_
33933 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
33934 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"
33936 if test "$host_cpu" = ia64; then
33937 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
33938 allow_undefined_flag="-z nodefs"
33939 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"
33941 # Determine the default libpath from the value encoded in an
33942 # empty executable.
33943 if test "${lt_cv_aix_libpath+set}" = set; then
33944 aix_libpath=$lt_cv_aix_libpath
33946 if ${lt_cv_aix_libpath_+:} false; then :
33947 $as_echo_n "(cached) " >&6
33949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33950 /* end confdefs.h. */
33960 if ac_fn_c_try_link "$LINENO"; then :
33962 lt_aix_libpath_sed='
33963 /Import File Strings/,/^$/ {
33965 s/^0 *\([^ ]*\) *$/\1/
33969 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
33970 # Check for a 64-bit object if we didn't find anything.
33971 if test -z "$lt_cv_aix_libpath_"; then
33972 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
33975 rm -f core conftest.err conftest.$ac_objext \
33976 conftest$ac_exeext conftest.$ac_ext
33977 if test -z "$lt_cv_aix_libpath_"; then
33978 lt_cv_aix_libpath_="/usr/lib:/lib"
33983 aix_libpath=$lt_cv_aix_libpath_
33986 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
33987 # Warning - without using the other run time loading flags,
33988 # -berok will link without error, but may produce a broken library.
33989 no_undefined_flag=' ${wl}-bernotok'
33990 allow_undefined_flag=' ${wl}-berok'
33991 if test "$with_gnu_ld" = yes; then
33992 # We only use this code for GNU lds that support --whole-archive.
33993 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
33995 # Exported symbols can be pulled into shared objects from archives
33996 whole_archive_flag_spec='$convenience'
33998 archive_cmds_need_lc=yes
33999 # This is similar to how AIX traditionally builds its shared libraries.
34000 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'
34008 # see comment about AmigaOS4 .so support
34009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
34010 archive_expsym_cmds=''
34013 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)'
34014 hardcode_libdir_flag_spec='-L$libdir'
34015 hardcode_minus_L=yes
34021 export_dynamic_flag_spec=-rdynamic
34024 cygwin* | mingw* | pw32* | cegcc*)
34025 # When not using gcc, we currently assume that we are using
34026 # Microsoft Visual C++.
34027 # hardcode_libdir_flag_spec is actually meaningless, as there is
34028 # no search path for DLLs.
34029 case $cc_basename in
34032 hardcode_libdir_flag_spec=' '
34033 allow_undefined_flag=unsupported
34034 always_export_symbols=yes
34036 # Tell ltmain to make .lib files, not .a files.
34038 # Tell ltmain to make .dll files, not .so files.
34040 # FIXME: Setting linknames here is a bad hack.
34041 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
34042 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
34043 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
34045 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
34047 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
34049 # The linker will not automatically build a static lib if we build a DLL.
34050 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
34051 enable_shared_with_static_runtimes=yes
34052 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
34054 old_postinstall_cmds='chmod 644 $oldlib'
34055 postlink_cmds='lt_outputfile="@OUTPUT@"~
34056 lt_tool_outputfile="@TOOL_OUTPUT@"~
34057 case $lt_outputfile in
34060 lt_outputfile="$lt_outputfile.exe"
34061 lt_tool_outputfile="$lt_tool_outputfile.exe"
34064 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
34065 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
34066 $RM "$lt_outputfile.manifest";
34070 # Assume MSVC wrapper
34071 hardcode_libdir_flag_spec=' '
34072 allow_undefined_flag=unsupported
34073 # Tell ltmain to make .lib files, not .a files.
34075 # Tell ltmain to make .dll files, not .so files.
34077 # FIXME: Setting linknames here is a bad hack.
34078 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
34079 # The linker will automatically build a .lib file if we build a DLL.
34080 old_archive_from_new_cmds='true'
34081 # FIXME: Should let the user specify the lib program.
34082 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
34083 enable_shared_with_static_runtimes=yes
34088 darwin* | rhapsody*)
34091 archive_cmds_need_lc=no
34093 hardcode_automatic=yes
34094 hardcode_shlibpath_var=unsupported
34095 if test "$lt_cv_ld_force_load" = "yes"; then
34096 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\"`'
34098 whole_archive_flag_spec=''
34100 link_all_deplibs=yes
34101 allow_undefined_flag="$_lt_dar_allow_undefined"
34102 case $cc_basename in
34103 ifort*) _lt_dar_can_shared=yes ;;
34104 *) _lt_dar_can_shared=$GCC ;;
34106 if test "$_lt_dar_can_shared" = "yes"; then
34107 output_verbose_link_cmd=func_echo_all
34108 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
34109 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
34110 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}"
34111 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}"
34120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34121 hardcode_libdir_flag_spec='-L$libdir'
34122 hardcode_shlibpath_var=no
34129 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
34130 # support. Future versions do this automatically, but an explicit c++rt0.o
34131 # does not break anything, and helps significantly (at the cost of a little
34134 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
34135 hardcode_libdir_flag_spec='-R$libdir'
34136 hardcode_direct=yes
34137 hardcode_shlibpath_var=no
34140 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
34142 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
34143 hardcode_direct=yes
34144 hardcode_minus_L=yes
34145 hardcode_shlibpath_var=no
34148 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
34149 freebsd* | dragonfly*)
34150 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
34151 hardcode_libdir_flag_spec='-R$libdir'
34152 hardcode_direct=yes
34153 hardcode_shlibpath_var=no
34157 if test "$GCC" = yes; then
34158 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'
34160 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'
34162 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
34163 hardcode_libdir_separator=:
34164 hardcode_direct=yes
34166 # hardcode_minus_L: Not really in the search PATH,
34167 # but as the default location of the library.
34168 hardcode_minus_L=yes
34169 export_dynamic_flag_spec='${wl}-E'
34173 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
34174 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
34176 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
34178 if test "$with_gnu_ld" = no; then
34179 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
34180 hardcode_libdir_flag_spec_ld='+b $libdir'
34181 hardcode_libdir_separator=:
34182 hardcode_direct=yes
34183 hardcode_direct_absolute=yes
34184 export_dynamic_flag_spec='${wl}-E'
34185 # hardcode_minus_L: Not really in the search PATH,
34186 # but as the default location of the library.
34187 hardcode_minus_L=yes
34192 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
34195 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
34198 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
34201 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
34207 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
34210 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
34214 # Older versions of the 11.00 compiler do not understand -b yet
34215 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
34216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
34217 $as_echo_n "checking if $CC understands -b... " >&6; }
34218 if ${lt_cv_prog_compiler__b+:} false; then :
34219 $as_echo_n "(cached) " >&6
34221 lt_cv_prog_compiler__b=no
34222 save_LDFLAGS="$LDFLAGS"
34223 LDFLAGS="$LDFLAGS -b"
34224 echo "$lt_simple_link_test_code" > conftest.$ac_ext
34225 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
34226 # The linker can only warn and ignore the option if not recognized
34227 # So say no if there are warnings
34228 if test -s conftest.err; then
34229 # Append any errors to the config.log.
34230 cat conftest.err 1>&5
34231 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
34232 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
34233 if diff conftest.exp conftest.er2 >/dev/null; then
34234 lt_cv_prog_compiler__b=yes
34237 lt_cv_prog_compiler__b=yes
34241 LDFLAGS="$save_LDFLAGS"
34244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
34245 $as_echo "$lt_cv_prog_compiler__b" >&6; }
34247 if test x"$lt_cv_prog_compiler__b" = xyes; then
34248 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
34250 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
34256 if test "$with_gnu_ld" = no; then
34257 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
34258 hardcode_libdir_separator=:
34263 hardcode_shlibpath_var=no
34266 hardcode_direct=yes
34267 hardcode_direct_absolute=yes
34268 export_dynamic_flag_spec='${wl}-E'
34270 # hardcode_minus_L: Not really in the search PATH,
34271 # but as the default location of the library.
34272 hardcode_minus_L=yes
34278 irix5* | irix6* | nonstopux*)
34279 if test "$GCC" = yes; then
34280 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'
34281 # Try to use the -exported_symbol ld option, if it does not
34282 # work, assume that -exports_file does not work either and
34283 # implicitly export all symbols.
34284 # This should be the same for all languages, so no per-tag cache variable.
34285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
34286 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
34287 if ${lt_cv_irix_exported_symbol+:} false; then :
34288 $as_echo_n "(cached) " >&6
34290 save_LDFLAGS="$LDFLAGS"
34291 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
34292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34293 /* end confdefs.h. */
34294 int foo (void) { return 0; }
34296 if ac_fn_c_try_link "$LINENO"; then :
34297 lt_cv_irix_exported_symbol=yes
34299 lt_cv_irix_exported_symbol=no
34301 rm -f core conftest.err conftest.$ac_objext \
34302 conftest$ac_exeext conftest.$ac_ext
34303 LDFLAGS="$save_LDFLAGS"
34305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
34306 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
34307 if test "$lt_cv_irix_exported_symbol" = yes; then
34308 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'
34311 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'
34312 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'
34314 archive_cmds_need_lc='no'
34315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
34316 hardcode_libdir_separator=:
34318 link_all_deplibs=yes
34322 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
34323 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
34325 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
34327 hardcode_libdir_flag_spec='-R$libdir'
34328 hardcode_direct=yes
34329 hardcode_shlibpath_var=no
34333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34334 hardcode_direct=yes
34335 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
34336 hardcode_libdir_separator=:
34337 hardcode_shlibpath_var=no
34344 if test -f /usr/libexec/ld.so; then
34345 hardcode_direct=yes
34346 hardcode_shlibpath_var=no
34347 hardcode_direct_absolute=yes
34348 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
34349 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
34350 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
34351 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
34352 export_dynamic_flag_spec='${wl}-E'
34355 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
34356 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
34357 hardcode_libdir_flag_spec='-R$libdir'
34360 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
34361 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
34371 hardcode_libdir_flag_spec='-L$libdir'
34372 hardcode_minus_L=yes
34373 allow_undefined_flag=unsupported
34374 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'
34375 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
34379 if test "$GCC" = yes; then
34380 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
34381 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'
34383 allow_undefined_flag=' -expect_unresolved \*'
34384 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'
34386 archive_cmds_need_lc='no'
34387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
34388 hardcode_libdir_separator=:
34391 osf4* | osf5*) # as osf3* with the addition of -msym flag
34392 if test "$GCC" = yes; then
34393 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
34394 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'
34395 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
34397 allow_undefined_flag=' -expect_unresolved \*'
34398 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'
34399 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~
34400 $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'
34402 # Both c and cxx compiler support -rpath directly
34403 hardcode_libdir_flag_spec='-rpath $libdir'
34405 archive_cmds_need_lc='no'
34406 hardcode_libdir_separator=:
34410 no_undefined_flag=' -z defs'
34411 if test "$GCC" = yes; then
34413 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
34414 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
34415 $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'
34417 case `$CC -V 2>&1` in
34420 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
34421 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
34422 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
34426 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
34427 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
34428 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
34432 hardcode_libdir_flag_spec='-R$libdir'
34433 hardcode_shlibpath_var=no
34435 solaris2.[0-5] | solaris2.[0-5].*) ;;
34437 # The compiler driver will combine and reorder linker options,
34438 # but understands `-z linker_flag'. GCC discards it without `$wl',
34439 # but is careful enough not to reorder.
34440 # Supported since Solaris 2.6 (maybe 2.5.1?)
34441 if test "$GCC" = yes; then
34442 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
34444 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
34448 link_all_deplibs=yes
34452 if test "x$host_vendor" = xsequent; then
34453 # Use $CC to link under sequent, because it throws in some extra .o
34454 # files that make .init and .fini sections work.
34455 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
34457 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
34459 hardcode_libdir_flag_spec='-L$libdir'
34460 hardcode_direct=yes
34461 hardcode_minus_L=yes
34462 hardcode_shlibpath_var=no
34466 case $host_vendor in
34468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34469 hardcode_direct=yes # is this really true???
34472 ## LD is ld it makes a PLAMLIB
34473 ## CC just makes a GrossModule.
34474 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
34475 reload_cmds='$CC -r -o $output$reload_objs'
34479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34480 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
34483 runpath_var='LD_RUN_PATH'
34484 hardcode_shlibpath_var=no
34488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34489 hardcode_shlibpath_var=no
34490 export_dynamic_flag_spec='-Bexport'
34494 if test -d /usr/nec; then
34495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34496 hardcode_shlibpath_var=no
34497 runpath_var=LD_RUN_PATH
34498 hardcode_runpath_var=yes
34503 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
34504 no_undefined_flag='${wl}-z,text'
34505 archive_cmds_need_lc=no
34506 hardcode_shlibpath_var=no
34507 runpath_var='LD_RUN_PATH'
34509 if test "$GCC" = yes; then
34510 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34511 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34513 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34514 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34518 sysv5* | sco3.2v5* | sco5v6*)
34519 # Note: We can NOT use -z defs as we might desire, because we do not
34520 # link with -lc, and that would cause any symbols used from libc to
34521 # always be unresolved, which means just about no library would
34522 # ever link correctly. If we're not using GNU ld we use -z text
34523 # though, which does catch some bad symbols but isn't as heavy-handed
34525 no_undefined_flag='${wl}-z,text'
34526 allow_undefined_flag='${wl}-z,nodefs'
34527 archive_cmds_need_lc=no
34528 hardcode_shlibpath_var=no
34529 hardcode_libdir_flag_spec='${wl}-R,$libdir'
34530 hardcode_libdir_separator=':'
34531 link_all_deplibs=yes
34532 export_dynamic_flag_spec='${wl}-Bexport'
34533 runpath_var='LD_RUN_PATH'
34535 if test "$GCC" = yes; then
34536 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34537 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34539 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34540 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34546 hardcode_libdir_flag_spec='-L$libdir'
34547 hardcode_shlibpath_var=no
34555 if test x$host_vendor = xsni; then
34557 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
34558 export_dynamic_flag_spec='${wl}-Blargedynsym'
34564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
34565 $as_echo "$ld_shlibs" >&6; }
34566 test "$ld_shlibs" = no && can_build_shared=no
34568 with_gnu_ld=$with_gnu_ld
34585 # Do we need to explicitly link libc?
34587 case "x$archive_cmds_need_lc" in
34589 # Assume -lc should be added
34590 archive_cmds_need_lc=yes
34592 if test "$enable_shared" = yes && test "$GCC" = yes; then
34593 case $archive_cmds in
34595 # FIXME: we may have to deal with multi-command sequences.
34598 # Test whether the compiler implicitly links with -lc since on some
34599 # systems, -lgcc has to come before -lc. If gcc already passes -lc
34600 # to ld, don't add -lc before -lgcc.
34601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
34602 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
34603 if ${lt_cv_archive_cmds_need_lc+:} false; then :
34604 $as_echo_n "(cached) " >&6
34607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
34609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
34610 (eval $ac_compile) 2>&5
34612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34613 test $ac_status = 0; } 2>conftest.err; then
34616 libobjs=conftest.$ac_objext
34618 wl=$lt_prog_compiler_wl
34619 pic_flag=$lt_prog_compiler_pic
34625 lt_save_allow_undefined_flag=$allow_undefined_flag
34626 allow_undefined_flag=
34627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
34628 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
34630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34631 test $ac_status = 0; }
34633 lt_cv_archive_cmds_need_lc=no
34635 lt_cv_archive_cmds_need_lc=yes
34637 allow_undefined_flag=$lt_save_allow_undefined_flag
34639 cat conftest.err 1>&5
34644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
34645 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
34646 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
34809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
34810 $as_echo_n "checking dynamic linker characteristics... " >&6; }
34812 if test "$GCC" = yes; then
34814 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
34815 *) lt_awk_arg="/^libraries:/" ;;
34818 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
34819 *) lt_sed_strip_eq="s,=/,/,g" ;;
34821 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
34822 case $lt_search_path_spec in
34824 # if the path contains ";" then we assume it to be the separator
34825 # otherwise default to the standard path separator (i.e. ":") - it is
34826 # assumed that no part of a normal pathname contains ";" but that should
34827 # okay in the real world where ";" in dirpaths is itself problematic.
34828 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
34831 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
34834 # Ok, now we have the path, separated by spaces, we can step through it
34835 # and add multilib dir if necessary.
34836 lt_tmp_lt_search_path_spec=
34837 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
34838 for lt_sys_path in $lt_search_path_spec; do
34839 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
34840 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
34842 test -d "$lt_sys_path" && \
34843 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
34846 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
34847 BEGIN {RS=" "; FS="/|\n";} {
34850 for (lt_i = NF; lt_i > 0; lt_i--) {
34851 if ($lt_i != "" && $lt_i != ".") {
34852 if ($lt_i == "..") {
34855 if (lt_count == 0) {
34856 lt_foo="/" $lt_i lt_foo;
34863 if (lt_foo != "") { lt_freq[lt_foo]++; }
34864 if (lt_freq[lt_foo] == 1) { print lt_foo; }
34866 # AWK program above erroneously prepends '/' to C:/dos/paths
34869 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
34870 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
34872 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
34874 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
34876 library_names_spec=
34877 libname_spec='lib$name'
34881 postuninstall_cmds=
34885 shlibpath_overrides_runpath=unknown
34887 dynamic_linker="$host_os ld.so"
34888 sys_lib_dlsearch_path_spec="/lib /usr/lib"
34889 need_lib_prefix=unknown
34890 hardcode_into_libs=no
34892 # when you set need_version to no, make sure it does not cause -set_version
34893 # flags to be left without arguments
34894 need_version=unknown
34899 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
34900 shlibpath_var=LIBPATH
34902 # AIX 3 has no versioning support, so we append a major version to the name.
34903 soname_spec='${libname}${release}${shared_ext}$major'
34910 hardcode_into_libs=yes
34911 if test "$host_cpu" = ia64; then
34912 # AIX 5 supports IA64
34913 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
34914 shlibpath_var=LD_LIBRARY_PATH
34916 # With GCC up to 2.95.x, collect2 would create an import file
34917 # for dependence libraries. The import file would start with
34918 # the line `#! .'. This would cause the generated library to
34919 # depend on `.', always an invalid library. This was fixed in
34920 # development snapshots of GCC prior to 3.0.
34922 aix4 | aix4.[01] | aix4.[01].*)
34923 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
34925 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
34928 can_build_shared=no
34932 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
34933 # soname into executable. Probably we can add versioning support to
34934 # collect2, so additional links can be useful in future.
34935 if test "$aix_use_runtimelinking" = yes; then
34936 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
34937 # instead of lib<name>.a to let people know that these are not
34938 # typical AIX shared libraries.
34939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34941 # We preserve .a as extension for shared libraries through AIX4.2
34942 # and later when we are not doing run time linking.
34943 library_names_spec='${libname}${release}.a $libname.a'
34944 soname_spec='${libname}${release}${shared_ext}$major'
34946 shlibpath_var=LIBPATH
34953 # Since July 2007 AmigaOS4 officially supports .so libraries.
34954 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
34955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34958 library_names_spec='$libname.ixlibrary $libname.a'
34959 # Create ${libname}_ixlibrary.a entries in /sys/libs.
34960 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'
34966 library_names_spec='${libname}${shared_ext}'
34967 dynamic_linker="$host_os ld.so"
34968 shlibpath_var=LIBRARY_PATH
34974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34975 soname_spec='${libname}${release}${shared_ext}$major'
34976 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
34977 shlibpath_var=LD_LIBRARY_PATH
34978 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
34979 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
34980 # the default ld.so.conf also contains /usr/contrib/lib and
34981 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
34982 # libtool to hard-code these into programs
34985 cygwin* | mingw* | pw32* | cegcc*)
34986 version_type=windows
34991 case $GCC,$cc_basename in
34994 library_names_spec='$libname.dll.a'
34995 # DLL is installed to $(libdir)/../bin by postinstall_cmds
34996 postinstall_cmds='base_file=`basename \${file}`~
34997 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
34998 dldir=$destdir/`dirname \$dlpath`~
34999 test -d \$dldir || mkdir -p \$dldir~
35000 $install_prog $dir/$dlname \$dldir/$dlname~
35001 chmod a+x \$dldir/$dlname~
35002 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
35003 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
35005 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
35006 dlpath=$dir/\$dldll~
35008 shlibpath_overrides_runpath=yes
35012 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
35013 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
35015 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
35018 # MinGW DLLs use traditional 'lib' prefix
35019 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
35022 # pw32 DLLs use 'pw' prefix rather than 'lib'
35023 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
35026 dynamic_linker='Win32 ld.exe'
35031 libname_spec='$name'
35032 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
35033 library_names_spec='${libname}.dll.lib'
35037 sys_lib_search_path_spec=
35040 for lt_path in $LIB
35043 # Let DOS variable expansion print the short 8.3 style file name.
35044 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
35045 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
35048 # Convert to MSYS style.
35049 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
35052 # Convert to unix form, then to dos form, then back to unix form
35053 # but this time dos style (no spaces!) so that the unix form looks
35054 # like /cygdrive/c/PROGRA~1:/cygdr...
35055 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
35056 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
35057 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
35060 sys_lib_search_path_spec="$LIB"
35061 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
35062 # It is most probably a Windows format PATH.
35063 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
35065 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
35067 # FIXME: find the short name or the path components, as spaces are
35068 # common. (e.g. "Program Files" -> "PROGRA~1")
35072 # DLL is installed to $(libdir)/../bin by postinstall_cmds
35073 postinstall_cmds='base_file=`basename \${file}`~
35074 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
35075 dldir=$destdir/`dirname \$dlpath`~
35076 test -d \$dldir || mkdir -p \$dldir~
35077 $install_prog $dir/$dlname \$dldir/$dlname'
35078 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
35079 dlpath=$dir/\$dldll~
35081 shlibpath_overrides_runpath=yes
35082 dynamic_linker='Win32 link.exe'
35086 # Assume MSVC wrapper
35087 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
35088 dynamic_linker='Win32 ld.exe'
35091 # FIXME: first we should search . and the directory the executable is in
35095 darwin* | rhapsody*)
35096 dynamic_linker="$host_os dyld"
35097 version_type=darwin
35100 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
35101 soname_spec='${libname}${release}${major}$shared_ext'
35102 shlibpath_overrides_runpath=yes
35103 shlibpath_var=DYLD_LIBRARY_PATH
35104 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
35106 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
35107 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
35114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
35115 soname_spec='${libname}${release}${shared_ext}$major'
35116 shlibpath_var=LD_LIBRARY_PATH
35123 freebsd* | dragonfly*)
35124 # DragonFly does not have aout. When/if they implement a new
35125 # versioning mechanism, adjust this.
35126 if test -x /usr/bin/objformat; then
35127 objformat=`/usr/bin/objformat`
35130 freebsd[123]*) objformat=aout ;;
35131 *) objformat=elf ;;
35134 version_type=freebsd-$objformat
35135 case $version_type in
35137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
35142 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
35146 shlibpath_var=LD_LIBRARY_PATH
35149 shlibpath_overrides_runpath=yes
35151 freebsd3.[01]* | freebsdelf3.[01]*)
35152 shlibpath_overrides_runpath=yes
35153 hardcode_into_libs=yes
35155 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
35156 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
35157 shlibpath_overrides_runpath=no
35158 hardcode_into_libs=yes
35160 *) # from 4.6 on, and DragonFly
35161 shlibpath_overrides_runpath=yes
35162 hardcode_into_libs=yes
35171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
35172 soname_spec='${libname}${release}${shared_ext}$major'
35173 shlibpath_var=LD_LIBRARY_PATH
35174 hardcode_into_libs=yes
35181 dynamic_linker="$host_os runtime_loader"
35182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
35183 soname_spec='${libname}${release}${shared_ext}$major'
35184 shlibpath_var=LIBRARY_PATH
35185 shlibpath_overrides_runpath=yes
35186 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
35187 hardcode_into_libs=yes
35190 hpux9* | hpux10* | hpux11*)
35191 # Give a soname corresponding to the major version so that dld.sl refuses to
35192 # link against other versions.
35199 hardcode_into_libs=yes
35200 dynamic_linker="$host_os dld.so"
35201 shlibpath_var=LD_LIBRARY_PATH
35202 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
35203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35204 soname_spec='${libname}${release}${shared_ext}$major'
35205 if test "X$HPUX_IA64_MODE" = X32; then
35206 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
35208 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
35210 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
35214 hardcode_into_libs=yes
35215 dynamic_linker="$host_os dld.sl"
35216 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
35217 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
35218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35219 soname_spec='${libname}${release}${shared_ext}$major'
35220 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
35221 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
35225 dynamic_linker="$host_os dld.sl"
35226 shlibpath_var=SHLIB_PATH
35227 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
35228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35229 soname_spec='${libname}${release}${shared_ext}$major'
35232 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
35233 postinstall_cmds='chmod 555 $lib'
35234 # or fails outright, so override atomically:
35235 install_override_mode=555
35242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
35243 soname_spec='${libname}${release}${shared_ext}$major'
35244 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
35245 shlibpath_var=LD_LIBRARY_PATH
35246 shlibpath_overrides_runpath=no
35247 hardcode_into_libs=yes
35250 irix5* | irix6* | nonstopux*)
35252 nonstopux*) version_type=nonstopux ;;
35254 if test "$lt_cv_prog_gnu_ld" = yes; then
35262 soname_spec='${libname}${release}${shared_ext}$major'
35263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
35265 irix5* | nonstopux*)
35266 libsuff= shlibsuff=
35269 case $LD in # libtool.m4 will add one of these switches to LD
35270 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
35271 libsuff= shlibsuff= libmagic=32-bit;;
35272 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
35273 libsuff=32 shlibsuff=N32 libmagic=N32;;
35274 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
35275 libsuff=64 shlibsuff=64 libmagic=64-bit;;
35276 *) libsuff= shlibsuff= libmagic=never-match;;
35280 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
35281 shlibpath_overrides_runpath=no
35282 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
35283 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
35284 hardcode_into_libs=yes
35287 # No shared lib support for Linux oldld, aout, or coff.
35288 linux*oldld* | linux*aout* | linux*coff*)
35292 # This must be Linux ELF.
35293 linux* | k*bsd*-gnu | kopensolaris*-gnu)
35297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35298 soname_spec='${libname}${release}${shared_ext}$major'
35299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
35300 shlibpath_var=LD_LIBRARY_PATH
35301 shlibpath_overrides_runpath=no
35303 # Some binutils ld are patched to set DT_RUNPATH
35304 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
35305 $as_echo_n "(cached) " >&6
35307 lt_cv_shlibpath_overrides_runpath=no
35308 save_LDFLAGS=$LDFLAGS
35309 save_libdir=$libdir
35310 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
35311 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
35312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35313 /* end confdefs.h. */
35323 if ac_fn_c_try_link "$LINENO"; then :
35324 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
35325 lt_cv_shlibpath_overrides_runpath=yes
35328 rm -f core conftest.err conftest.$ac_objext \
35329 conftest$ac_exeext conftest.$ac_ext
35330 LDFLAGS=$save_LDFLAGS
35331 libdir=$save_libdir
35335 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
35337 # This implies no fast_install, which is unacceptable.
35338 # Some rework will be needed to allow for fast_install
35339 # before this can be enabled.
35340 hardcode_into_libs=yes
35342 # Add ABI-specific directories to the system library path.
35343 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
35345 # Append ld.so.conf contents to the search path
35346 if test -f /etc/ld.so.conf; then
35347 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' ' '`
35348 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
35352 # We used to test for /lib/ld.so.1 and disable shared libraries on
35353 # powerpc, because MkLinux only supported shared libraries with the
35354 # GNU dynamic linker. Since this was broken with cross compilers,
35355 # most powerpc-linux boxes support dynamic linking these days and
35356 # people can always --disable-shared, the test was removed, and we
35357 # assume the GNU/Linux dynamic linker is in use.
35358 dynamic_linker='GNU/Linux ld.so'
35365 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
35366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
35367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
35368 dynamic_linker='NetBSD (a.out) ld.so'
35370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
35371 soname_spec='${libname}${release}${shared_ext}$major'
35372 dynamic_linker='NetBSD ld.elf_so'
35374 shlibpath_var=LD_LIBRARY_PATH
35375 shlibpath_overrides_runpath=yes
35376 hardcode_into_libs=yes
35381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35382 shlibpath_var=LD_LIBRARY_PATH
35383 shlibpath_overrides_runpath=yes
35390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35391 soname_spec='${libname}${release}${shared_ext}$major'
35392 shlibpath_var=LD_LIBRARY_PATH
35393 shlibpath_overrides_runpath=no
35394 hardcode_into_libs=yes
35395 dynamic_linker='ldqnx.so'
35400 sys_lib_dlsearch_path_spec="/usr/lib"
35402 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
35404 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
35405 *) need_version=no ;;
35407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
35408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
35409 shlibpath_var=LD_LIBRARY_PATH
35410 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
35412 openbsd2.[89] | openbsd2.[89].*)
35413 shlibpath_overrides_runpath=no
35416 shlibpath_overrides_runpath=yes
35420 shlibpath_overrides_runpath=yes
35425 libname_spec='$name'
35428 library_names_spec='$libname${shared_ext} $libname.a'
35429 dynamic_linker='OS/2 ld.exe'
35430 shlibpath_var=LIBPATH
35433 osf3* | osf4* | osf5*)
35437 soname_spec='${libname}${release}${shared_ext}$major'
35438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35439 shlibpath_var=LD_LIBRARY_PATH
35440 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
35441 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
35452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35453 soname_spec='${libname}${release}${shared_ext}$major'
35454 shlibpath_var=LD_LIBRARY_PATH
35455 shlibpath_overrides_runpath=yes
35456 hardcode_into_libs=yes
35457 # ldd complains unless libraries are executable
35458 postinstall_cmds='chmod +x $lib'
35463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
35464 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
35465 shlibpath_var=LD_LIBRARY_PATH
35466 shlibpath_overrides_runpath=yes
35467 if test "$with_gnu_ld" = yes; then
35475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35476 soname_spec='${libname}${release}${shared_ext}$major'
35477 shlibpath_var=LD_LIBRARY_PATH
35478 case $host_vendor in
35480 shlibpath_overrides_runpath=no
35482 runpath_var=LD_RUN_PATH
35490 shlibpath_overrides_runpath=no
35491 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
35497 if test -d /usr/nec ;then
35499 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
35500 soname_spec='$libname${shared_ext}.$major'
35501 shlibpath_var=LD_LIBRARY_PATH
35505 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
35506 version_type=freebsd-elf
35509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
35510 soname_spec='${libname}${release}${shared_ext}$major'
35511 shlibpath_var=LD_LIBRARY_PATH
35512 shlibpath_overrides_runpath=yes
35513 hardcode_into_libs=yes
35514 if test "$with_gnu_ld" = yes; then
35515 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
35517 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
35520 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
35524 sys_lib_dlsearch_path_spec='/usr/lib'
35528 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
35532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35533 shlibpath_var=LD_LIBRARY_PATH
35534 shlibpath_overrides_runpath=no
35535 hardcode_into_libs=yes
35540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35541 soname_spec='${libname}${release}${shared_ext}$major'
35542 shlibpath_var=LD_LIBRARY_PATH
35549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
35550 $as_echo "$dynamic_linker" >&6; }
35551 test "$dynamic_linker" = no && can_build_shared=no
35553 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
35554 if test "$GCC" = yes; then
35555 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
35558 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
35559 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
35561 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
35562 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
35656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
35657 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
35659 if test -n "$hardcode_libdir_flag_spec" ||
35660 test -n "$runpath_var" ||
35661 test "X$hardcode_automatic" = "Xyes" ; then
35663 # We can hardcode non-existent directories.
35664 if test "$hardcode_direct" != no &&
35665 # If the only mechanism to avoid hardcoding is shlibpath_var, we
35666 # have to relink, otherwise we might link with an installed library
35667 # when we should be linking with a yet-to-be-installed one
35668 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
35669 test "$hardcode_minus_L" != no; then
35670 # Linking always hardcodes the temporary library directory.
35671 hardcode_action=relink
35673 # We can link without hardcoding, and we can hardcode nonexisting dirs.
35674 hardcode_action=immediate
35677 # We cannot hardcode anything, or else we can only hardcode existing
35679 hardcode_action=unsupported
35681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
35682 $as_echo "$hardcode_action" >&6; }
35684 if test "$hardcode_action" = relink ||
35685 test "$inherit_rpath" = yes; then
35686 # Fast installation is not supported
35687 enable_fast_install=no
35688 elif test "$shlibpath_overrides_runpath" = yes ||
35689 test "$enable_shared" = no; then
35690 # Fast installation is not necessary
35691 enable_fast_install=needless
35699 if test "x$enable_dlopen" != xyes; then
35700 enable_dlopen=unknown
35701 enable_dlopen_self=unknown
35702 enable_dlopen_self_static=unknown
35709 lt_cv_dlopen="load_add_on"
35711 lt_cv_dlopen_self=yes
35714 mingw* | pw32* | cegcc*)
35715 lt_cv_dlopen="LoadLibrary"
35720 lt_cv_dlopen="dlopen"
35725 # if libdl is installed we need to link against it
35726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
35727 $as_echo_n "checking for dlopen in -ldl... " >&6; }
35728 if ${ac_cv_lib_dl_dlopen+:} false; then :
35729 $as_echo_n "(cached) " >&6
35731 ac_check_lib_save_LIBS=$LIBS
35733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35734 /* end confdefs.h. */
35736 /* Override any GCC internal prototype to avoid an error.
35737 Use char because int might match the return type of a GCC
35738 builtin and then its argument prototype would still apply. */
35751 if ac_fn_c_try_link "$LINENO"; then :
35752 ac_cv_lib_dl_dlopen=yes
35754 ac_cv_lib_dl_dlopen=no
35756 rm -f core conftest.err conftest.$ac_objext \
35757 conftest$ac_exeext conftest.$ac_ext
35758 LIBS=$ac_check_lib_save_LIBS
35760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
35761 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
35762 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
35763 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
35766 lt_cv_dlopen="dyld"
35768 lt_cv_dlopen_self=yes
35775 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
35776 if test "x$ac_cv_func_shl_load" = xyes; then :
35777 lt_cv_dlopen="shl_load"
35779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
35780 $as_echo_n "checking for shl_load in -ldld... " >&6; }
35781 if ${ac_cv_lib_dld_shl_load+:} false; then :
35782 $as_echo_n "(cached) " >&6
35784 ac_check_lib_save_LIBS=$LIBS
35786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35787 /* end confdefs.h. */
35789 /* Override any GCC internal prototype to avoid an error.
35790 Use char because int might match the return type of a GCC
35791 builtin and then its argument prototype would still apply. */
35799 return shl_load ();
35804 if ac_fn_c_try_link "$LINENO"; then :
35805 ac_cv_lib_dld_shl_load=yes
35807 ac_cv_lib_dld_shl_load=no
35809 rm -f core conftest.err conftest.$ac_objext \
35810 conftest$ac_exeext conftest.$ac_ext
35811 LIBS=$ac_check_lib_save_LIBS
35813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
35814 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
35815 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
35816 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
35818 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
35819 if test "x$ac_cv_func_dlopen" = xyes; then :
35820 lt_cv_dlopen="dlopen"
35822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
35823 $as_echo_n "checking for dlopen in -ldl... " >&6; }
35824 if ${ac_cv_lib_dl_dlopen+:} false; then :
35825 $as_echo_n "(cached) " >&6
35827 ac_check_lib_save_LIBS=$LIBS
35829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35830 /* end confdefs.h. */
35832 /* Override any GCC internal prototype to avoid an error.
35833 Use char because int might match the return type of a GCC
35834 builtin and then its argument prototype would still apply. */
35847 if ac_fn_c_try_link "$LINENO"; then :
35848 ac_cv_lib_dl_dlopen=yes
35850 ac_cv_lib_dl_dlopen=no
35852 rm -f core conftest.err conftest.$ac_objext \
35853 conftest$ac_exeext conftest.$ac_ext
35854 LIBS=$ac_check_lib_save_LIBS
35856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
35857 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
35858 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
35859 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
35861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
35862 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
35863 if ${ac_cv_lib_svld_dlopen+:} false; then :
35864 $as_echo_n "(cached) " >&6
35866 ac_check_lib_save_LIBS=$LIBS
35867 LIBS="-lsvld $LIBS"
35868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35869 /* end confdefs.h. */
35871 /* Override any GCC internal prototype to avoid an error.
35872 Use char because int might match the return type of a GCC
35873 builtin and then its argument prototype would still apply. */
35886 if ac_fn_c_try_link "$LINENO"; then :
35887 ac_cv_lib_svld_dlopen=yes
35889 ac_cv_lib_svld_dlopen=no
35891 rm -f core conftest.err conftest.$ac_objext \
35892 conftest$ac_exeext conftest.$ac_ext
35893 LIBS=$ac_check_lib_save_LIBS
35895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
35896 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
35897 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
35898 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
35900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
35901 $as_echo_n "checking for dld_link in -ldld... " >&6; }
35902 if ${ac_cv_lib_dld_dld_link+:} false; then :
35903 $as_echo_n "(cached) " >&6
35905 ac_check_lib_save_LIBS=$LIBS
35907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35908 /* end confdefs.h. */
35910 /* Override any GCC internal prototype to avoid an error.
35911 Use char because int might match the return type of a GCC
35912 builtin and then its argument prototype would still apply. */
35920 return dld_link ();
35925 if ac_fn_c_try_link "$LINENO"; then :
35926 ac_cv_lib_dld_dld_link=yes
35928 ac_cv_lib_dld_dld_link=no
35930 rm -f core conftest.err conftest.$ac_objext \
35931 conftest$ac_exeext conftest.$ac_ext
35932 LIBS=$ac_check_lib_save_LIBS
35934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
35935 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
35936 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
35937 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
35958 if test "x$lt_cv_dlopen" != xno; then
35964 case $lt_cv_dlopen in
35966 save_CPPFLAGS="$CPPFLAGS"
35967 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
35969 save_LDFLAGS="$LDFLAGS"
35970 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
35973 LIBS="$lt_cv_dlopen_libs $LIBS"
35975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
35976 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
35977 if ${lt_cv_dlopen_self+:} false; then :
35978 $as_echo_n "(cached) " >&6
35980 if test "$cross_compiling" = yes; then :
35981 lt_cv_dlopen_self=cross
35983 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
35984 lt_status=$lt_dlunknown
35985 cat > conftest.$ac_ext <<_LT_EOF
35986 #line $LINENO "configure"
35987 #include "confdefs.h"
35996 # define LT_DLGLOBAL RTLD_GLOBAL
35999 # define LT_DLGLOBAL DL_GLOBAL
36001 # define LT_DLGLOBAL 0
36005 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
36006 find out it does not work in some platform. */
36007 #ifndef LT_DLLAZY_OR_NOW
36009 # define LT_DLLAZY_OR_NOW RTLD_LAZY
36012 # define LT_DLLAZY_OR_NOW DL_LAZY
36015 # define LT_DLLAZY_OR_NOW RTLD_NOW
36018 # define LT_DLLAZY_OR_NOW DL_NOW
36020 # define LT_DLLAZY_OR_NOW 0
36027 /* When -fvisbility=hidden is used, assume the code has been annotated
36028 correspondingly for the symbols needed. */
36029 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
36030 int fnord () __attribute__((visibility("default")));
36033 int fnord () { return 42; }
36036 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
36037 int status = $lt_dlunknown;
36041 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
36044 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
36045 else puts (dlerror ());
36047 /* dlclose (self); */
36055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
36056 (eval $ac_link) 2>&5
36058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36059 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
36060 (./conftest; exit; ) >&5 2>/dev/null
36062 case x$lt_status in
36063 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
36064 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
36065 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
36068 # compilation failed
36069 lt_cv_dlopen_self=no
36076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
36077 $as_echo "$lt_cv_dlopen_self" >&6; }
36079 if test "x$lt_cv_dlopen_self" = xyes; then
36080 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
36081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
36082 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
36083 if ${lt_cv_dlopen_self_static+:} false; then :
36084 $as_echo_n "(cached) " >&6
36086 if test "$cross_compiling" = yes; then :
36087 lt_cv_dlopen_self_static=cross
36089 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
36090 lt_status=$lt_dlunknown
36091 cat > conftest.$ac_ext <<_LT_EOF
36092 #line $LINENO "configure"
36093 #include "confdefs.h"
36102 # define LT_DLGLOBAL RTLD_GLOBAL
36105 # define LT_DLGLOBAL DL_GLOBAL
36107 # define LT_DLGLOBAL 0
36111 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
36112 find out it does not work in some platform. */
36113 #ifndef LT_DLLAZY_OR_NOW
36115 # define LT_DLLAZY_OR_NOW RTLD_LAZY
36118 # define LT_DLLAZY_OR_NOW DL_LAZY
36121 # define LT_DLLAZY_OR_NOW RTLD_NOW
36124 # define LT_DLLAZY_OR_NOW DL_NOW
36126 # define LT_DLLAZY_OR_NOW 0
36133 /* When -fvisbility=hidden is used, assume the code has been annotated
36134 correspondingly for the symbols needed. */
36135 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
36136 int fnord () __attribute__((visibility("default")));
36139 int fnord () { return 42; }
36142 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
36143 int status = $lt_dlunknown;
36147 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
36150 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
36151 else puts (dlerror ());
36153 /* dlclose (self); */
36161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
36162 (eval $ac_link) 2>&5
36164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36165 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
36166 (./conftest; exit; ) >&5 2>/dev/null
36168 case x$lt_status in
36169 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
36170 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
36171 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
36174 # compilation failed
36175 lt_cv_dlopen_self_static=no
36182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
36183 $as_echo "$lt_cv_dlopen_self_static" >&6; }
36186 CPPFLAGS="$save_CPPFLAGS"
36187 LDFLAGS="$save_LDFLAGS"
36192 case $lt_cv_dlopen_self in
36193 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
36194 *) enable_dlopen_self=unknown ;;
36197 case $lt_cv_dlopen_self_static in
36198 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
36199 *) enable_dlopen_self_static=unknown ;;
36221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
36222 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
36223 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
36224 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
36225 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
36226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36227 $as_echo "yes" >&6; }
36229 # FIXME - insert some real tests, host_os isn't really good enough
36232 if test -n "$STRIP" ; then
36233 striplib="$STRIP -x"
36234 old_striplib="$STRIP -S"
36235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36236 $as_echo "yes" >&6; }
36238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36239 $as_echo "no" >&6; }
36243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36244 $as_echo "no" >&6; }
36260 # Report which library types will actually be built
36261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
36262 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
36263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
36264 $as_echo "$can_build_shared" >&6; }
36266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
36267 $as_echo_n "checking whether to build shared libraries... " >&6; }
36268 test "$can_build_shared" = "no" && enable_shared=no
36270 # On AIX, shared libraries and static libraries use the same namespace, and
36271 # are all built from PIC.
36274 test "$enable_shared" = yes && enable_static=no
36275 if test -n "$RANLIB"; then
36276 archive_cmds="$archive_cmds~\$RANLIB \$lib"
36277 postinstall_cmds='$RANLIB $lib'
36282 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
36283 test "$enable_shared" = yes && enable_static=no
36287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
36288 $as_echo "$enable_shared" >&6; }
36290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
36291 $as_echo_n "checking whether to build static libraries... " >&6; }
36292 # Make sure either enable_shared or enable_static is yes.
36293 test "$enable_shared" = yes || enable_static=yes
36294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
36295 $as_echo "$enable_static" >&6; }
36302 ac_cpp='$CPP $CPPFLAGS'
36303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36321 ac_config_commands="$ac_config_commands libtool"
36326 # Only expand once:
36331 # Check whether --enable-static-binary was given.
36332 if test "${enable_static_binary+set}" = set; then :
36333 enableval=$enable_static_binary;
36334 case "$enableval" in
36336 AMANDA_STATIC_LDFLAGS=-static
36337 if test x"$enable_static" = x"no"; then
36338 as_fn_error $? "*** --enable-static-binary is incompatible with --disable-static" "$LINENO" 5
36342 AMANDA_STATIC_LDFLAGS=
36354 ac_header_dirent=no
36355 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
36356 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
36357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
36358 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
36359 if eval \${$as_ac_Header+:} false; then :
36360 $as_echo_n "(cached) " >&6
36362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36363 /* end confdefs.h. */
36364 #include <sys/types.h>
36376 if ac_fn_c_try_compile "$LINENO"; then :
36377 eval "$as_ac_Header=yes"
36379 eval "$as_ac_Header=no"
36381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36383 eval ac_res=\$$as_ac_Header
36384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36385 $as_echo "$ac_res" >&6; }
36386 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36387 cat >>confdefs.h <<_ACEOF
36388 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
36391 ac_header_dirent=$ac_hdr; break
36395 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
36396 if test $ac_header_dirent = dirent.h; then
36397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
36398 $as_echo_n "checking for library containing opendir... " >&6; }
36399 if ${ac_cv_search_opendir+:} false; then :
36400 $as_echo_n "(cached) " >&6
36402 ac_func_search_save_LIBS=$LIBS
36403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36404 /* end confdefs.h. */
36406 /* Override any GCC internal prototype to avoid an error.
36407 Use char because int might match the return type of a GCC
36408 builtin and then its argument prototype would still apply. */
36421 for ac_lib in '' dir; do
36422 if test -z "$ac_lib"; then
36423 ac_res="none required"
36426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
36428 if ac_fn_c_try_link "$LINENO"; then :
36429 ac_cv_search_opendir=$ac_res
36431 rm -f core conftest.err conftest.$ac_objext \
36433 if ${ac_cv_search_opendir+:} false; then :
36437 if ${ac_cv_search_opendir+:} false; then :
36440 ac_cv_search_opendir=no
36442 rm conftest.$ac_ext
36443 LIBS=$ac_func_search_save_LIBS
36445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
36446 $as_echo "$ac_cv_search_opendir" >&6; }
36447 ac_res=$ac_cv_search_opendir
36448 if test "$ac_res" != no; then :
36449 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
36455 $as_echo_n "checking for library containing opendir... " >&6; }
36456 if ${ac_cv_search_opendir+:} false; then :
36457 $as_echo_n "(cached) " >&6
36459 ac_func_search_save_LIBS=$LIBS
36460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36461 /* end confdefs.h. */
36463 /* Override any GCC internal prototype to avoid an error.
36464 Use char because int might match the return type of a GCC
36465 builtin and then its argument prototype would still apply. */
36478 for ac_lib in '' x; do
36479 if test -z "$ac_lib"; then
36480 ac_res="none required"
36483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
36485 if ac_fn_c_try_link "$LINENO"; then :
36486 ac_cv_search_opendir=$ac_res
36488 rm -f core conftest.err conftest.$ac_objext \
36490 if ${ac_cv_search_opendir+:} false; then :
36494 if ${ac_cv_search_opendir+:} false; then :
36497 ac_cv_search_opendir=no
36499 rm conftest.$ac_ext
36500 LIBS=$ac_func_search_save_LIBS
36502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
36503 $as_echo "$ac_cv_search_opendir" >&6; }
36504 ac_res=$ac_cv_search_opendir
36505 if test "$ac_res" != no; then :
36506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
36513 $as_echo_n "checking for ANSI C header files... " >&6; }
36514 if ${ac_cv_header_stdc+:} false; then :
36515 $as_echo_n "(cached) " >&6
36517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36518 /* end confdefs.h. */
36519 #include <stdlib.h>
36520 #include <stdarg.h>
36521 #include <string.h>
36532 if ac_fn_c_try_compile "$LINENO"; then :
36533 ac_cv_header_stdc=yes
36535 ac_cv_header_stdc=no
36537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36539 if test $ac_cv_header_stdc = yes; then
36540 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
36541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36542 /* end confdefs.h. */
36543 #include <string.h>
36546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36547 $EGREP "memchr" >/dev/null 2>&1; then :
36550 ac_cv_header_stdc=no
36556 if test $ac_cv_header_stdc = yes; then
36557 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
36558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36559 /* end confdefs.h. */
36560 #include <stdlib.h>
36563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36564 $EGREP "free" >/dev/null 2>&1; then :
36567 ac_cv_header_stdc=no
36573 if test $ac_cv_header_stdc = yes; then
36574 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
36575 if test "$cross_compiling" = yes; then :
36578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36579 /* end confdefs.h. */
36581 #include <stdlib.h>
36582 #if ((' ' & 0x0FF) == 0x020)
36583 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
36584 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
36586 # define ISLOWER(c) \
36587 (('a' <= (c) && (c) <= 'i') \
36588 || ('j' <= (c) && (c) <= 'r') \
36589 || ('s' <= (c) && (c) <= 'z'))
36590 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
36593 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
36598 for (i = 0; i < 256; i++)
36599 if (XOR (islower (i), ISLOWER (i))
36600 || toupper (i) != TOUPPER (i))
36605 if ac_fn_c_try_run "$LINENO"; then :
36608 ac_cv_header_stdc=no
36610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36611 conftest.$ac_objext conftest.beam conftest.$ac_ext
36616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
36617 $as_echo "$ac_cv_header_stdc" >&6; }
36618 if test $ac_cv_header_stdc = yes; then
36620 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
36624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
36625 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
36626 if ${ac_cv_header_time+:} false; then :
36627 $as_echo_n "(cached) " >&6
36629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36630 /* end confdefs.h. */
36631 #include <sys/types.h>
36632 #include <sys/time.h>
36638 if ((struct tm *) 0)
36644 if ac_fn_c_try_compile "$LINENO"; then :
36645 ac_cv_header_time=yes
36647 ac_cv_header_time=no
36649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
36652 $as_echo "$ac_cv_header_time" >&6; }
36653 if test $ac_cv_header_time = yes; then
36655 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
36659 for ac_header in grp.h \
36686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36687 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
36688 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36689 cat >>confdefs.h <<_ACEOF
36690 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36698 $as_echo "#define HAVE_AMANDA_H 1" >>confdefs.h
36701 $as_echo "#define HAVE_UTIL_H 1" >>confdefs.h
36705 $as_echo "#define USE_GETTEXT 1" >>confdefs.h
36711 # The cast to long int works around a bug in the HP C Compiler
36712 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36713 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36714 # This bug is HP SR number 8606223364.
36715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
36716 $as_echo_n "checking size of int... " >&6; }
36717 if ${ac_cv_sizeof_int+:} false; then :
36718 $as_echo_n "(cached) " >&6
36720 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
36723 if test "$ac_cv_type_int" = yes; then
36724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36726 as_fn_error 77 "cannot compute sizeof (int)
36727 See \`config.log' for more details" "$LINENO" 5; }
36734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
36735 $as_echo "$ac_cv_sizeof_int" >&6; }
36739 cat >>confdefs.h <<_ACEOF
36740 #define SIZEOF_INT $ac_cv_sizeof_int
36744 # The cast to long int works around a bug in the HP C Compiler
36745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36747 # This bug is HP SR number 8606223364.
36748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
36749 $as_echo_n "checking size of long... " >&6; }
36750 if ${ac_cv_sizeof_long+:} false; then :
36751 $as_echo_n "(cached) " >&6
36753 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
36756 if test "$ac_cv_type_long" = yes; then
36757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36759 as_fn_error 77 "cannot compute sizeof (long)
36760 See \`config.log' for more details" "$LINENO" 5; }
36762 ac_cv_sizeof_long=0
36767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
36768 $as_echo "$ac_cv_sizeof_long" >&6; }
36772 cat >>confdefs.h <<_ACEOF
36773 #define SIZEOF_LONG $ac_cv_sizeof_long
36777 # The cast to long int works around a bug in the HP C Compiler
36778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36780 # This bug is HP SR number 8606223364.
36781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
36782 $as_echo_n "checking size of long long... " >&6; }
36783 if ${ac_cv_sizeof_long_long+:} false; then :
36784 $as_echo_n "(cached) " >&6
36786 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
36789 if test "$ac_cv_type_long_long" = yes; then
36790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36792 as_fn_error 77 "cannot compute sizeof (long long)
36793 See \`config.log' for more details" "$LINENO" 5; }
36795 ac_cv_sizeof_long_long=0
36800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
36801 $as_echo "$ac_cv_sizeof_long_long" >&6; }
36805 cat >>confdefs.h <<_ACEOF
36806 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
36810 # The cast to long int works around a bug in the HP C Compiler
36811 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36812 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36813 # This bug is HP SR number 8606223364.
36814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
36815 $as_echo_n "checking size of intmax_t... " >&6; }
36816 if ${ac_cv_sizeof_intmax_t+:} false; then :
36817 $as_echo_n "(cached) " >&6
36819 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then :
36822 if test "$ac_cv_type_intmax_t" = yes; then
36823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36825 as_fn_error 77 "cannot compute sizeof (intmax_t)
36826 See \`config.log' for more details" "$LINENO" 5; }
36828 ac_cv_sizeof_intmax_t=0
36833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
36834 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
36838 cat >>confdefs.h <<_ACEOF
36839 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
36843 # The cast to long int works around a bug in the HP C Compiler
36844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36846 # This bug is HP SR number 8606223364.
36847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
36848 $as_echo_n "checking size of off_t... " >&6; }
36849 if ${ac_cv_sizeof_off_t+:} false; then :
36850 $as_echo_n "(cached) " >&6
36852 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
36855 if test "$ac_cv_type_off_t" = yes; then
36856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36858 as_fn_error 77 "cannot compute sizeof (off_t)
36859 See \`config.log' for more details" "$LINENO" 5; }
36861 ac_cv_sizeof_off_t=0
36866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
36867 $as_echo "$ac_cv_sizeof_off_t" >&6; }
36871 cat >>confdefs.h <<_ACEOF
36872 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
36876 # The cast to long int works around a bug in the HP C Compiler
36877 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36878 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36879 # This bug is HP SR number 8606223364.
36880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
36881 $as_echo_n "checking size of size_t... " >&6; }
36882 if ${ac_cv_sizeof_size_t+:} false; then :
36883 $as_echo_n "(cached) " >&6
36885 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
36888 if test "$ac_cv_type_size_t" = yes; then
36889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36891 as_fn_error 77 "cannot compute sizeof (size_t)
36892 See \`config.log' for more details" "$LINENO" 5; }
36894 ac_cv_sizeof_size_t=0
36899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
36900 $as_echo "$ac_cv_sizeof_size_t" >&6; }
36904 cat >>confdefs.h <<_ACEOF
36905 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
36909 # The cast to long int works around a bug in the HP C Compiler
36910 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36911 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36912 # This bug is HP SR number 8606223364.
36913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
36914 $as_echo_n "checking size of ssize_t... " >&6; }
36915 if ${ac_cv_sizeof_ssize_t+:} false; then :
36916 $as_echo_n "(cached) " >&6
36918 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
36921 if test "$ac_cv_type_ssize_t" = yes; then
36922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36924 as_fn_error 77 "cannot compute sizeof (ssize_t)
36925 See \`config.log' for more details" "$LINENO" 5; }
36927 ac_cv_sizeof_ssize_t=0
36932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
36933 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
36937 cat >>confdefs.h <<_ACEOF
36938 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
36942 # The cast to long int works around a bug in the HP C Compiler
36943 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36944 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36945 # This bug is HP SR number 8606223364.
36946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
36947 $as_echo_n "checking size of time_t... " >&6; }
36948 if ${ac_cv_sizeof_time_t+:} false; then :
36949 $as_echo_n "(cached) " >&6
36951 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
36954 if test "$ac_cv_type_time_t" = yes; then
36955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36957 as_fn_error 77 "cannot compute sizeof (time_t)
36958 See \`config.log' for more details" "$LINENO" 5; }
36960 ac_cv_sizeof_time_t=0
36965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
36966 $as_echo "$ac_cv_sizeof_time_t" >&6; }
36970 cat >>confdefs.h <<_ACEOF
36971 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
36975 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
36976 if test "x$ac_cv_type_off_t" = xyes; then :
36980 cat >>confdefs.h <<_ACEOF
36981 #define off_t long int
36986 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
36987 if test "x$ac_cv_type_pid_t" = xyes; then :
36991 cat >>confdefs.h <<_ACEOF
36997 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
36998 if test "x$ac_cv_type_size_t" = xyes; then :
37002 cat >>confdefs.h <<_ACEOF
37003 #define size_t unsigned int
37008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
37009 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
37010 if ${ac_cv_type_uid_t+:} false; then :
37011 $as_echo_n "(cached) " >&6
37013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37014 /* end confdefs.h. */
37015 #include <sys/types.h>
37018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37019 $EGREP "uid_t" >/dev/null 2>&1; then :
37020 ac_cv_type_uid_t=yes
37022 ac_cv_type_uid_t=no
37027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
37028 $as_echo "$ac_cv_type_uid_t" >&6; }
37029 if test $ac_cv_type_uid_t = no; then
37031 $as_echo "#define uid_t int" >>confdefs.h
37034 $as_echo "#define gid_t int" >>confdefs.h
37038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
37039 $as_echo_n "checking return type of signal handlers... " >&6; }
37040 if ${ac_cv_type_signal+:} false; then :
37041 $as_echo_n "(cached) " >&6
37043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37044 /* end confdefs.h. */
37045 #include <sys/types.h>
37046 #include <signal.h>
37051 return *(signal (0, 0)) (0) == 1;
37056 if ac_fn_c_try_compile "$LINENO"; then :
37057 ac_cv_type_signal=int
37059 ac_cv_type_signal=void
37061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
37064 $as_echo "$ac_cv_type_signal" >&6; }
37066 cat >>confdefs.h <<_ACEOF
37067 #define RETSIGTYPE $ac_cv_type_signal
37071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
37072 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
37073 if ${ac_cv_struct_tm+:} false; then :
37074 $as_echo_n "(cached) " >&6
37076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37077 /* end confdefs.h. */
37078 #include <sys/types.h>
37085 int *p = &tm.tm_sec;
37091 if ac_fn_c_try_compile "$LINENO"; then :
37092 ac_cv_struct_tm=time.h
37094 ac_cv_struct_tm=sys/time.h
37096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
37099 $as_echo "$ac_cv_struct_tm" >&6; }
37100 if test $ac_cv_struct_tm = sys/time.h; then
37102 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
37107 ## lifted from config/gnulib/socklen.m4
37108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
37109 $as_echo_n "checking for socklen_t equivalent... " >&6; }
37110 if ${gl_cv_socklen_t_equiv+:} false; then :
37111 $as_echo_n "(cached) " >&6
37113 # Systems have either "struct sockaddr *" or
37114 # "void *" as the second argument to getpeername
37115 gl_cv_socklen_t_equiv=
37116 for arg2 in "struct sockaddr" void; do
37117 for t in socklen_t int size_t "unsigned int" "long int" "unsigned long int"; do
37118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37119 /* end confdefs.h. */
37120 #include <sys/types.h>
37121 #include <sys/socket.h>
37123 int getpeername (int, $arg2 *, $t *);
37128 getpeername (0, 0, &len);
37133 if ac_fn_c_try_compile "$LINENO"; then :
37134 gl_cv_socklen_t_equiv="$t"
37136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37137 test "$gl_cv_socklen_t_equiv" != "" && break
37139 test "$gl_cv_socklen_t_equiv" != "" && break
37144 ## end lifting from config/gnulib/socklen.m4
37145 # fallback if the check fails
37146 if test "$gl_cv_socklen_t_equiv" = ""; then
37147 gl_cv_socklen_t_equiv=socklen_t
37149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
37150 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
37153 cat >>confdefs.h <<_ACEOF
37154 #define socklen_t_equiv $gl_cv_socklen_t_equiv
37160 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
37161 #ifdef HAVE_SYS_TYPES_H
37162 #include <sys/types.h>
37164 #ifdef STDC_HEADERS
37165 #include <stdlib.h>
37166 #include <stddef.h>
37168 #include <sys/socket.h>
37172 if test "x$ac_cv_type_sa_family_t" = xyes; then :
37177 $as_echo "#define sa_family_t unsigned short" >>confdefs.h
37185 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
37186 #ifdef HAVE_SYS_TYPES_H
37187 #include <sys/types.h>
37189 #ifdef STDC_HEADERS
37190 #include <stdlib.h>
37191 #include <stddef.h>
37193 #include <netinet/in.h>
37197 if test "x$ac_cv_type_in_port_t" = xyes; then :
37202 $as_echo "#define in_port_t unsigned short" >>confdefs.h
37210 for ac_header in sys/wait.h wait.h
37212 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37213 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
37214 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37215 cat >>confdefs.h <<_ACEOF
37216 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait uses union wait" >&5
37224 $as_echo_n "checking whether wait uses union wait... " >&6; }
37225 if ${cf_cv_arg_union_wait+:} false; then :
37226 $as_echo_n "(cached) " >&6
37229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37230 /* end confdefs.h. */
37232 #include <sys/types.h>
37234 #if HAVE_SYS_WAIT_H
37235 # include <sys/wait.h>
37243 pid_t wait(union wait *);
37250 union wait x; int i;
37251 wait(&x); i = WIFEXITED(x)
37257 if ac_fn_c_try_compile "$LINENO"; then :
37258 cf_cv_arg_union_wait=yes
37260 cf_cv_arg_union_wait=no
37262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_arg_union_wait" >&5
37265 $as_echo "$cf_cv_arg_union_wait" >&6; }
37266 if test $cf_cv_arg_union_wait = yes; then
37268 $as_echo "#define WAIT_USES_UNION 1" >>confdefs.h
37274 for ac_header in sys/wait.h wait.h
37276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37277 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
37278 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37279 cat >>confdefs.h <<_ACEOF
37280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait uses int" >&5
37288 $as_echo_n "checking whether wait uses int... " >&6; }
37289 if ${cf_cv_arg_int+:} false; then :
37290 $as_echo_n "(cached) " >&6
37293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37294 /* end confdefs.h. */
37296 #include <sys/types.h>
37298 #if HAVE_SYS_WAIT_H
37299 # include <sys/wait.h>
37315 wait(&x); i = WIFEXITED(x)
37321 if ac_fn_c_try_compile "$LINENO"; then :
37326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_arg_int" >&5
37329 $as_echo "$cf_cv_arg_int" >&6; }
37330 if test $cf_cv_arg_int = yes; then
37332 $as_echo "#define WAIT_USES_INT 1" >>confdefs.h
37340 # cur_colr is on some HP's
37341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcur_colr" >&5
37342 $as_echo_n "checking for main in -lcur_colr... " >&6; }
37343 if ${ac_cv_lib_cur_colr_main+:} false; then :
37344 $as_echo_n "(cached) " >&6
37346 ac_check_lib_save_LIBS=$LIBS
37347 LIBS="-lcur_colr $LIBS"
37348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37349 /* end confdefs.h. */
37360 if ac_fn_c_try_link "$LINENO"; then :
37361 ac_cv_lib_cur_colr_main=yes
37363 ac_cv_lib_cur_colr_main=no
37365 rm -f core conftest.err conftest.$ac_objext \
37366 conftest$ac_exeext conftest.$ac_ext
37367 LIBS=$ac_check_lib_save_LIBS
37369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_main" >&5
37370 $as_echo "$ac_cv_lib_cur_colr_main" >&6; }
37371 if test "x$ac_cv_lib_cur_colr_main" = xyes; then :
37372 cat >>confdefs.h <<_ACEOF
37373 #define HAVE_LIBCUR_COLR 1
37376 LIBS="-lcur_colr $LIBS"
37380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lintl" >&5
37381 $as_echo_n "checking for main in -lintl... " >&6; }
37382 if ${ac_cv_lib_intl_main+:} false; then :
37383 $as_echo_n "(cached) " >&6
37385 ac_check_lib_save_LIBS=$LIBS
37386 LIBS="-lintl $LIBS"
37387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37388 /* end confdefs.h. */
37399 if ac_fn_c_try_link "$LINENO"; then :
37400 ac_cv_lib_intl_main=yes
37402 ac_cv_lib_intl_main=no
37404 rm -f core conftest.err conftest.$ac_objext \
37405 conftest$ac_exeext conftest.$ac_ext
37406 LIBS=$ac_check_lib_save_LIBS
37408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_main" >&5
37409 $as_echo "$ac_cv_lib_intl_main" >&6; }
37410 if test "x$ac_cv_lib_intl_main" = xyes; then :
37411 cat >>confdefs.h <<_ACEOF
37412 #define HAVE_LIBINTL 1
37415 LIBS="-lintl $LIBS"
37420 # Make sure we don't use -lnsl and -lsun on Irix systems.
37423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
37424 $as_echo_n "checking for main in -lsocket... " >&6; }
37425 if ${ac_cv_lib_socket_main+:} false; then :
37426 $as_echo_n "(cached) " >&6
37428 ac_check_lib_save_LIBS=$LIBS
37429 LIBS="-lsocket $LIBS"
37430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37431 /* end confdefs.h. */
37442 if ac_fn_c_try_link "$LINENO"; then :
37443 ac_cv_lib_socket_main=yes
37445 ac_cv_lib_socket_main=no
37447 rm -f core conftest.err conftest.$ac_objext \
37448 conftest$ac_exeext conftest.$ac_ext
37449 LIBS=$ac_check_lib_save_LIBS
37451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
37452 $as_echo "$ac_cv_lib_socket_main" >&6; }
37453 if test "x$ac_cv_lib_socket_main" = xyes; then :
37454 cat >>confdefs.h <<_ACEOF
37455 #define HAVE_LIBSOCKET 1
37458 LIBS="-lsocket $LIBS"
37464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5
37465 $as_echo_n "checking for main in -lresolv... " >&6; }
37466 if ${ac_cv_lib_resolv_main+:} false; then :
37467 $as_echo_n "(cached) " >&6
37469 ac_check_lib_save_LIBS=$LIBS
37470 LIBS="-lresolv $LIBS"
37471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37472 /* end confdefs.h. */
37483 if ac_fn_c_try_link "$LINENO"; then :
37484 ac_cv_lib_resolv_main=yes
37486 ac_cv_lib_resolv_main=no
37488 rm -f core conftest.err conftest.$ac_objext \
37489 conftest$ac_exeext conftest.$ac_ext
37490 LIBS=$ac_check_lib_save_LIBS
37492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5
37493 $as_echo "$ac_cv_lib_resolv_main" >&6; }
37494 if test "x$ac_cv_lib_resolv_main" = xyes; then :
37495 cat >>confdefs.h <<_ACEOF
37496 #define HAVE_LIBRESOLV 1
37499 LIBS="-lresolv $LIBS"
37503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
37504 $as_echo_n "checking for main in -lnsl... " >&6; }
37505 if ${ac_cv_lib_nsl_main+:} false; then :
37506 $as_echo_n "(cached) " >&6
37508 ac_check_lib_save_LIBS=$LIBS
37510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37511 /* end confdefs.h. */
37522 if ac_fn_c_try_link "$LINENO"; then :
37523 ac_cv_lib_nsl_main=yes
37525 ac_cv_lib_nsl_main=no
37527 rm -f core conftest.err conftest.$ac_objext \
37528 conftest$ac_exeext conftest.$ac_ext
37529 LIBS=$ac_check_lib_save_LIBS
37531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
37532 $as_echo "$ac_cv_lib_nsl_main" >&6; }
37533 if test "x$ac_cv_lib_nsl_main" = xyes; then :
37534 cat >>confdefs.h <<_ACEOF
37535 #define HAVE_LIBNSL 1
37542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
37543 $as_echo_n "checking for main in -lsocket... " >&6; }
37544 if ${ac_cv_lib_socket_main+:} false; then :
37545 $as_echo_n "(cached) " >&6
37547 ac_check_lib_save_LIBS=$LIBS
37548 LIBS="-lsocket $LIBS"
37549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37550 /* end confdefs.h. */
37561 if ac_fn_c_try_link "$LINENO"; then :
37562 ac_cv_lib_socket_main=yes
37564 ac_cv_lib_socket_main=no
37566 rm -f core conftest.err conftest.$ac_objext \
37567 conftest$ac_exeext conftest.$ac_ext
37568 LIBS=$ac_check_lib_save_LIBS
37570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
37571 $as_echo "$ac_cv_lib_socket_main" >&6; }
37572 if test "x$ac_cv_lib_socket_main" = xyes; then :
37573 cat >>confdefs.h <<_ACEOF
37574 #define HAVE_LIBSOCKET 1
37577 LIBS="-lsocket $LIBS"
37581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsun" >&5
37582 $as_echo_n "checking for main in -lsun... " >&6; }
37583 if ${ac_cv_lib_sun_main+:} false; then :
37584 $as_echo_n "(cached) " >&6
37586 ac_check_lib_save_LIBS=$LIBS
37588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37589 /* end confdefs.h. */
37600 if ac_fn_c_try_link "$LINENO"; then :
37601 ac_cv_lib_sun_main=yes
37603 ac_cv_lib_sun_main=no
37605 rm -f core conftest.err conftest.$ac_objext \
37606 conftest$ac_exeext conftest.$ac_ext
37607 LIBS=$ac_check_lib_save_LIBS
37609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_main" >&5
37610 $as_echo "$ac_cv_lib_sun_main" >&6; }
37611 if test "x$ac_cv_lib_sun_main" = xyes; then :
37612 cat >>confdefs.h <<_ACEOF
37613 #define HAVE_LIBSUN 1
37630 # if any of the precious variables are set, disable the pkg-config run.
37631 # Further, if any is specified, all must be specified.
37633 test x"$GLIB_CFLAGS" = x"" || explicit_glib=yes
37634 test x"$GLIB_LIBS" = x"" || explicit_glib=yes
37635 test x"$GLIB_GENMARSHAL" = x"" || explicit_glib=yes
37636 test x"$GOBJECT_QUERY" = x"" || explicit_glib=yes
37637 test x"$GLIB_MKENUMS" = x"" || explicit_glib=yes
37639 if test x"$explicit_glib" = x"no"; then
37640 # search for pkg-config, which the glib configuration uses, adding a few
37641 # system-specific search paths.
37642 # Extract the first word of "pkg-config", so it can be a program name with args.
37643 set dummy pkg-config; ac_word=$2
37644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37645 $as_echo_n "checking for $ac_word... " >&6; }
37646 if ${ac_cv_path_PKG_CONFIG+:} false; then :
37647 $as_echo_n "(cached) " >&6
37649 case $PKG_CONFIG in
37651 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37655 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
37656 for as_dir in $as_dummy
37659 test -z "$as_dir" && as_dir=.
37660 for ac_exec_ext in '' $ac_executable_extensions; do
37661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37662 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37673 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37674 if test -n "$PKG_CONFIG"; then
37675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
37676 $as_echo "$PKG_CONFIG" >&6; }
37678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37679 $as_echo "no" >&6; }
37685 sparc-sun-solaris2.8) # Solaris 8
37686 # give the linker a runtime search path; pkg-config doesn't supply this.
37687 # Users could also specify this with LD_LIBRARY_PATH to both ./configure
37688 # and make. Adding this support here makes straight './configure; make'
37689 # "just work" on Solaris 8
37690 if test -n "$PKG_CONFIG"; then
37691 glib_R_flag=`$PKG_CONFIG glib-2.0 --libs-only-L 2>/dev/null | sed -e 's/-L/-R/g'`
37692 LDFLAGS="$LDFLAGS $glib_R_flag"
37697 # Check whether --enable-glibtest was given.
37698 if test "${enable_glibtest+set}" = set; then :
37699 enableval=$enable_glibtest;
37701 enable_glibtest=yes
37705 pkg_config_args=glib-2.0
37706 for module in . gmodule gobject gthread
37710 pkg_config_args="$pkg_config_args gmodule-2.0"
37713 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
37716 pkg_config_args="$pkg_config_args gobject-2.0"
37719 pkg_config_args="$pkg_config_args gthread-2.0"
37722 pkg_config_args="$pkg_config_args $module-2.0"
37733 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
37734 if test -n "$ac_tool_prefix"; then
37735 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
37736 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
37737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37738 $as_echo_n "checking for $ac_word... " >&6; }
37739 if ${ac_cv_path_PKG_CONFIG+:} false; then :
37740 $as_echo_n "(cached) " >&6
37742 case $PKG_CONFIG in
37744 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37748 for as_dir in $PATH
37751 test -z "$as_dir" && as_dir=.
37752 for ac_exec_ext in '' $ac_executable_extensions; do
37753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37754 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37765 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37766 if test -n "$PKG_CONFIG"; then
37767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
37768 $as_echo "$PKG_CONFIG" >&6; }
37770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37771 $as_echo "no" >&6; }
37776 if test -z "$ac_cv_path_PKG_CONFIG"; then
37777 ac_pt_PKG_CONFIG=$PKG_CONFIG
37778 # Extract the first word of "pkg-config", so it can be a program name with args.
37779 set dummy pkg-config; ac_word=$2
37780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37781 $as_echo_n "checking for $ac_word... " >&6; }
37782 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
37783 $as_echo_n "(cached) " >&6
37785 case $ac_pt_PKG_CONFIG in
37787 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
37790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37791 for as_dir in $PATH
37794 test -z "$as_dir" && as_dir=.
37795 for ac_exec_ext in '' $ac_executable_extensions; do
37796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37797 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37808 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
37809 if test -n "$ac_pt_PKG_CONFIG"; then
37810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
37811 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
37813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37814 $as_echo "no" >&6; }
37817 if test "x$ac_pt_PKG_CONFIG" = x; then
37820 case $cross_compiling:$ac_tool_warned in
37822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37824 ac_tool_warned=yes ;;
37826 PKG_CONFIG=$ac_pt_PKG_CONFIG
37829 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
37833 if test -n "$PKG_CONFIG"; then
37834 _pkg_min_version=0.7
37835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
37836 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
37837 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
37838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37839 $as_echo "yes" >&6; }
37841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37842 $as_echo "no" >&6; }
37849 if test "x$PKG_CONFIG" = x ; then
37854 min_glib_version=2.2.0
37855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
37856 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
37858 if test x$PKG_CONFIG != xno ; then
37859 ## don't try to run the test against uninstalled libtool libs
37860 if $PKG_CONFIG --uninstalled $pkg_config_args; then
37861 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
37865 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
37872 if test x"$no_glib" = x ; then
37873 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
37874 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
37875 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
37877 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
37878 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
37879 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
37880 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
37881 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
37882 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
37883 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
37884 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
37885 if test "x$enable_glibtest" = "xyes" ; then
37886 ac_save_CFLAGS="$CFLAGS"
37887 ac_save_LIBS="$LIBS"
37888 CFLAGS="$CFLAGS $GLIB_CFLAGS"
37889 LIBS="$GLIB_LIBS $LIBS"
37890 rm -f conf.glibtest
37891 if test "$cross_compiling" = yes; then :
37892 echo $ac_n "cross compiling; assumed OK... $ac_c"
37894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37895 /* end confdefs.h. */
37899 #include <stdlib.h>
37904 unsigned int major, minor, micro;
37907 fclose (fopen ("conf.glibtest", "w"));
37909 /* HP/UX 9 (%@#!) writes to sscanf strings */
37910 tmp_version = g_strdup("$min_glib_version");
37911 if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) {
37912 printf("%s, bad version string\n", "$min_glib_version");
37916 if ((glib_major_version != $glib_config_major_version) ||
37917 (glib_minor_version != $glib_config_minor_version) ||
37918 (glib_micro_version != $glib_config_micro_version))
37920 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
37921 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
37922 glib_major_version, glib_minor_version, glib_micro_version);
37923 printf ("*** was found! If pkg-config was correct, then it is best\n");
37924 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
37925 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
37926 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
37927 printf("*** required on your system.\n");
37928 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
37929 printf("*** to point to the correct configuration files\n");
37931 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
37932 (glib_minor_version != GLIB_MINOR_VERSION) ||
37933 (glib_micro_version != GLIB_MICRO_VERSION))
37935 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
37936 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
37937 printf("*** library (version %d.%d.%d)\n",
37938 glib_major_version, glib_minor_version, glib_micro_version);
37942 if ((glib_major_version > major) ||
37943 ((glib_major_version == major) && (glib_minor_version > minor)) ||
37944 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
37950 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
37951 glib_major_version, glib_minor_version, glib_micro_version);
37952 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
37953 major, minor, micro);
37954 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
37956 printf("*** If you have already installed a sufficiently new version, this error\n");
37957 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
37958 printf("*** being found. The easiest way to fix this is to remove the old version\n");
37959 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
37960 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
37961 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
37962 printf("*** so that the correct libraries are found at run-time))\n");
37969 if ac_fn_c_try_run "$LINENO"; then :
37974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37975 conftest.$ac_objext conftest.beam conftest.$ac_ext
37978 CFLAGS="$ac_save_CFLAGS"
37979 LIBS="$ac_save_LIBS"
37982 if test "x$no_glib" = x ; then
37983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
37984 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
37987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37988 $as_echo "no" >&6; }
37989 if test "$PKG_CONFIG" = "no" ; then
37990 echo "*** A new enough version of pkg-config was not found."
37991 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
37993 if test -f conf.glibtest ; then
37996 echo "*** Could not run GLIB test program, checking why..."
37997 ac_save_CFLAGS="$CFLAGS"
37998 ac_save_LIBS="$LIBS"
37999 CFLAGS="$CFLAGS $GLIB_CFLAGS"
38000 LIBS="$LIBS $GLIB_LIBS"
38001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38002 /* end confdefs.h. */
38010 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
38015 if ac_fn_c_try_link "$LINENO"; then :
38016 echo "*** The test program compiled, but did not run. This usually means"
38017 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
38018 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
38019 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
38020 echo "*** to the installed location Also, make sure you have run ldconfig if that"
38021 echo "*** is required on your system"
38023 echo "*** If you have an old version installed, it is best to remove it, although"
38024 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
38026 echo "*** The test program failed to compile or link. See the file config.log for the"
38027 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
38029 rm -f core conftest.err conftest.$ac_objext \
38030 conftest$ac_exeext conftest.$ac_ext
38031 CFLAGS="$ac_save_CFLAGS"
38032 LIBS="$ac_save_LIBS"
38041 as_fn_error $? "glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" "$LINENO" 5
38049 rm -f conf.glibtest
38052 # Confirm that all GLIB_ variables are set
38053 if test ! x"$GLIB_CFLAGS" = x"" && \
38054 test ! x"$GLIB_LIBS" = x"" && \
38055 test ! x"$GLIB_GENMARSHAL" = x"" && \
38056 test ! x"$GOBJECT_QUERY" = x"" && \
38057 test ! x"$GLIB_MKENUMS" = x""; then
38060 as_fn_error $? "Not all precious glib variables were set." "$LINENO" 5
38064 # GLIB_CPPFLAGS is not set by autoconf, yet GLIB_CFLAGS contains what GLIB_CPPFLAGS should contain.
38065 CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS"
38067 LIBS="$GLIB_LIBS $LIBS"
38072 # Check whether --with-readline was given.
38073 if test "${with_readline+set}" = set; then :
38074 withval=$with_readline;
38076 y | ye | yes | n | no) : ;;
38077 *) as_fn_error $? "*** --with-readline does not take a value" "$LINENO" 5
38079 want_readline="$withval"
38083 want_readline="maybe" # meaning "only if we can find it"
38089 # unless the user said "no", look for readline.
38090 if test x"$want_readline" != x"no"; then
38091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
38092 $as_echo_n "checking for a readline compatible library... " >&6; }
38093 if ${ax_cv_lib_readline+:} false; then :
38094 $as_echo_n "(cached) " >&6
38098 for readline_lib in readline edit editline; do
38099 for termcap_lib in "" termcap curses ncurses; do
38100 if test -z "$termcap_lib"; then
38101 TRY_LIB="-l$readline_lib"
38103 TRY_LIB="-l$readline_lib -l$termcap_lib"
38105 LIBS="$ORIG_LIBS $TRY_LIB"
38106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38107 /* end confdefs.h. */
38109 /* Override any GCC internal prototype to avoid an error.
38110 Use char because int might match the return type of a GCC
38111 builtin and then its argument prototype would still apply. */
38119 return readline ();
38124 if ac_fn_c_try_link "$LINENO"; then :
38125 ax_cv_lib_readline="$TRY_LIB"
38127 rm -f core conftest.err conftest.$ac_objext \
38128 conftest$ac_exeext conftest.$ac_ext
38129 if test -n "$ax_cv_lib_readline"; then
38133 if test -n "$ax_cv_lib_readline"; then
38137 if test -z "$ax_cv_lib_readline"; then
38138 ax_cv_lib_readline="no"
38143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
38144 $as_echo "$ax_cv_lib_readline" >&6; }
38146 if test "$ax_cv_lib_readline" != "no"; then
38148 LIBS="$LIBS $ax_cv_lib_readline"
38149 READLINE_LIBS="$ax_cv_lib_readline"
38151 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
38153 for ac_header in readline.h readline/readline.h
38155 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38156 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
38157 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38158 cat >>confdefs.h <<_ACEOF
38159 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
38167 $as_echo_n "checking whether readline supports history... " >&6; }
38168 if ${ax_cv_lib_readline_history+:} false; then :
38169 $as_echo_n "(cached) " >&6
38172 ax_cv_lib_readline_history="no"
38173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38174 /* end confdefs.h. */
38176 /* Override any GCC internal prototype to avoid an error.
38177 Use char because int might match the return type of a GCC
38178 builtin and then its argument prototype would still apply. */
38182 char add_history ();
38186 return add_history ();
38191 if ac_fn_c_try_link "$LINENO"; then :
38192 ax_cv_lib_readline_history="yes"
38194 rm -f core conftest.err conftest.$ac_objext \
38195 conftest$ac_exeext conftest.$ac_ext
38198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
38199 $as_echo "$ax_cv_lib_readline_history" >&6; }
38200 if test "$ax_cv_lib_readline_history" = "yes"; then
38202 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
38204 for ac_header in history.h readline/history.h
38206 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38207 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
38208 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38209 cat >>confdefs.h <<_ACEOF
38210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38221 # no readline. if the user *really* wanted it, bail out.
38222 if test x"$want_readline" = x"yes"; then
38223 as_fn_error $? "*** No readline implementation found. Try using --with-libraries and --with-includes" "$LINENO" 5
38230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf in -lm" >&5
38231 $as_echo_n "checking for modf in -lm... " >&6; }
38232 if ${ac_cv_lib_m_modf+:} false; then :
38233 $as_echo_n "(cached) " >&6
38235 ac_check_lib_save_LIBS=$LIBS
38237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38238 /* end confdefs.h. */
38240 /* Override any GCC internal prototype to avoid an error.
38241 Use char because int might match the return type of a GCC
38242 builtin and then its argument prototype would still apply. */
38255 if ac_fn_c_try_link "$LINENO"; then :
38256 ac_cv_lib_m_modf=yes
38258 ac_cv_lib_m_modf=no
38260 rm -f core conftest.err conftest.$ac_objext \
38261 conftest$ac_exeext conftest.$ac_ext
38262 LIBS=$ac_check_lib_save_LIBS
38264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_modf" >&5
38265 $as_echo "$ac_cv_lib_m_modf" >&6; }
38266 if test "x$ac_cv_lib_m_modf" = xyes; then :
38267 cat >>confdefs.h <<_ACEOF
38268 #define HAVE_LIBM 1
38276 ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
38277 if test "x$ac_cv_header_execinfo_h" = xyes; then :
38279 ac_fn_c_check_func "$LINENO" "backtrace_symbols_fd" "ac_cv_func_backtrace_symbols_fd"
38280 if test "x$ac_cv_func_backtrace_symbols_fd" = xyes; then :
38283 $as_echo "#define HAVE_GLIBC_BACKTRACE 1" >>confdefs.h
38297 # Checks for library functions and if the function is declared in
38298 # an appropriate header file. Functions which exist, but for which
38299 # no declaration is available, are declared in common-src/amanda.h.
38300 # It's not clear that any existing system implements but does not
38301 # declare common functions such as these.
38305 for ac_func in accept
38307 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
38308 if test "x$ac_cv_func_accept" = xyes; then :
38309 cat >>confdefs.h <<_ACEOF
38310 #define HAVE_ACCEPT 1
38312 ice_have_accept=yes
38316 if test "${ice_have_accept}" = yes; then
38317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept declaration in sys/types.h sys/socket.h" >&5
38318 $as_echo_n "checking for accept declaration in sys/types.h sys/socket.h... " >&6; }
38319 if ${ice_cv_have_accept_decl+:} false; then :
38320 $as_echo_n "(cached) " >&6
38323 ice_cv_have_accept_decl=no
38324 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38325 ice_re_word='(^|[^a-zA-Z0-9_])'
38326 for header in sys/types.h sys/socket.h; do
38327 # Check for ordinary declaration
38328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38329 /* end confdefs.h. */
38333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38334 $EGREP "${ice_re_word}accept[ ]*\(" >/dev/null 2>&1; then :
38335 ice_cv_have_accept_decl=yes
38339 if test "$ice_cv_have_accept_decl" = yes; then
38342 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38344 /* end confdefs.h. */
38348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38349 $EGREP "${ice_re_word}accept[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38350 ice_cv_have_accept_decl=yes
38354 if test "$ice_cv_have_accept_decl" = yes; then
38361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_accept_decl" >&5
38362 $as_echo "$ice_cv_have_accept_decl" >&6; }
38363 if test "$ice_cv_have_accept_decl" = yes; then
38365 cat >>confdefs.h <<_ACEOF
38366 #define HAVE_ACCEPT_DECL 1
38372 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
38373 # for constant arguments. Useless!
38374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
38375 $as_echo_n "checking for working alloca.h... " >&6; }
38376 if ${ac_cv_working_alloca_h+:} false; then :
38377 $as_echo_n "(cached) " >&6
38379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38380 /* end confdefs.h. */
38381 #include <alloca.h>
38385 char *p = (char *) alloca (2 * sizeof (int));
38391 if ac_fn_c_try_link "$LINENO"; then :
38392 ac_cv_working_alloca_h=yes
38394 ac_cv_working_alloca_h=no
38396 rm -f core conftest.err conftest.$ac_objext \
38397 conftest$ac_exeext conftest.$ac_ext
38399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
38400 $as_echo "$ac_cv_working_alloca_h" >&6; }
38401 if test $ac_cv_working_alloca_h = yes; then
38403 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
38407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
38408 $as_echo_n "checking for alloca... " >&6; }
38409 if ${ac_cv_func_alloca_works+:} false; then :
38410 $as_echo_n "(cached) " >&6
38412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38413 /* end confdefs.h. */
38415 # define alloca __builtin_alloca
38418 # include <malloc.h>
38419 # define alloca _alloca
38421 # ifdef HAVE_ALLOCA_H
38422 # include <alloca.h>
38427 # ifndef alloca /* predefined by HP cc +Olibcalls */
38428 void *alloca (size_t);
38438 char *p = (char *) alloca (1);
38444 if ac_fn_c_try_link "$LINENO"; then :
38445 ac_cv_func_alloca_works=yes
38447 ac_cv_func_alloca_works=no
38449 rm -f core conftest.err conftest.$ac_objext \
38450 conftest$ac_exeext conftest.$ac_ext
38452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
38453 $as_echo "$ac_cv_func_alloca_works" >&6; }
38455 if test $ac_cv_func_alloca_works = yes; then
38457 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
38460 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
38461 # that cause trouble. Some versions do not even contain alloca or
38462 # contain a buggy version. If you still want to use their alloca,
38463 # use ar to extract alloca.o from them instead of compiling alloca.c.
38465 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
38467 $as_echo "#define C_ALLOCA 1" >>confdefs.h
38470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
38471 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
38472 if ${ac_cv_os_cray+:} false; then :
38473 $as_echo_n "(cached) " >&6
38475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38476 /* end confdefs.h. */
38477 #if defined CRAY && ! defined CRAY2
38484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38485 $EGREP "webecray" >/dev/null 2>&1; then :
38493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
38494 $as_echo "$ac_cv_os_cray" >&6; }
38495 if test $ac_cv_os_cray = yes; then
38496 for ac_func in _getb67 GETB67 getb67; do
38497 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38498 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
38499 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
38501 cat >>confdefs.h <<_ACEOF
38502 #define CRAY_STACKSEG_END $ac_func
38511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
38512 $as_echo_n "checking stack direction for C alloca... " >&6; }
38513 if ${ac_cv_c_stack_direction+:} false; then :
38514 $as_echo_n "(cached) " >&6
38516 if test "$cross_compiling" = yes; then :
38517 ac_cv_c_stack_direction=0
38519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38520 /* end confdefs.h. */
38521 $ac_includes_default
38523 find_stack_direction ()
38525 static char *addr = 0;
38530 return find_stack_direction ();
38533 return (&dummy > addr) ? 1 : -1;
38539 return find_stack_direction () < 0;
38542 if ac_fn_c_try_run "$LINENO"; then :
38543 ac_cv_c_stack_direction=1
38545 ac_cv_c_stack_direction=-1
38547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38548 conftest.$ac_objext conftest.beam conftest.$ac_ext
38552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
38553 $as_echo "$ac_cv_c_stack_direction" >&6; }
38554 cat >>confdefs.h <<_ACEOF
38555 #define STACK_DIRECTION $ac_cv_c_stack_direction
38561 for ac_func in atexit
38563 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
38564 if test "x$ac_cv_func_atexit" = xyes; then :
38565 cat >>confdefs.h <<_ACEOF
38566 #define HAVE_ATEXIT 1
38574 for ac_func in atof
38576 ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
38577 if test "x$ac_cv_func_atof" = xyes; then :
38578 cat >>confdefs.h <<_ACEOF
38579 #define HAVE_ATOF 1
38585 if test "${ice_have_atof}" = yes; then
38586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atof declaration in stdlib.h" >&5
38587 $as_echo_n "checking for atof declaration in stdlib.h... " >&6; }
38588 if ${ice_cv_have_atof_decl+:} false; then :
38589 $as_echo_n "(cached) " >&6
38592 ice_cv_have_atof_decl=no
38593 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38594 ice_re_word='(^|[^a-zA-Z0-9_])'
38595 for header in stdlib.h; do
38596 # Check for ordinary declaration
38597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38598 /* end confdefs.h. */
38602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38603 $EGREP "${ice_re_word}atof[ ]*\(" >/dev/null 2>&1; then :
38604 ice_cv_have_atof_decl=yes
38608 if test "$ice_cv_have_atof_decl" = yes; then
38611 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38613 /* end confdefs.h. */
38617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38618 $EGREP "${ice_re_word}atof[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38619 ice_cv_have_atof_decl=yes
38623 if test "$ice_cv_have_atof_decl" = yes; then
38630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_atof_decl" >&5
38631 $as_echo "$ice_cv_have_atof_decl" >&6; }
38632 if test "$ice_cv_have_atof_decl" = yes; then
38634 cat >>confdefs.h <<_ACEOF
38635 #define HAVE_ATOF_DECL 1
38643 for ac_func in atol
38645 ac_fn_c_check_func "$LINENO" "atol" "ac_cv_func_atol"
38646 if test "x$ac_cv_func_atol" = xyes; then :
38647 cat >>confdefs.h <<_ACEOF
38648 #define HAVE_ATOL 1
38654 if test "${ice_have_atol}" = yes; then
38655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atol declaration in stdlib.h" >&5
38656 $as_echo_n "checking for atol declaration in stdlib.h... " >&6; }
38657 if ${ice_cv_have_atol_decl+:} false; then :
38658 $as_echo_n "(cached) " >&6
38661 ice_cv_have_atol_decl=no
38662 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38663 ice_re_word='(^|[^a-zA-Z0-9_])'
38664 for header in stdlib.h; do
38665 # Check for ordinary declaration
38666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38667 /* end confdefs.h. */
38671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38672 $EGREP "${ice_re_word}atol[ ]*\(" >/dev/null 2>&1; then :
38673 ice_cv_have_atol_decl=yes
38677 if test "$ice_cv_have_atol_decl" = yes; then
38680 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38682 /* end confdefs.h. */
38686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38687 $EGREP "${ice_re_word}atol[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38688 ice_cv_have_atol_decl=yes
38692 if test "$ice_cv_have_atol_decl" = yes; then
38699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_atol_decl" >&5
38700 $as_echo "$ice_cv_have_atol_decl" >&6; }
38701 if test "$ice_cv_have_atol_decl" = yes; then
38703 cat >>confdefs.h <<_ACEOF
38704 #define HAVE_ATOL_DECL 1
38712 for ac_func in atoll
38714 ac_fn_c_check_func "$LINENO" "atoll" "ac_cv_func_atoll"
38715 if test "x$ac_cv_func_atoll" = xyes; then :
38716 cat >>confdefs.h <<_ACEOF
38717 #define HAVE_ATOLL 1
38723 if test "${ice_have_atoll}" = yes; then
38724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atoll declaration in stdlib.h" >&5
38725 $as_echo_n "checking for atoll declaration in stdlib.h... " >&6; }
38726 if ${ice_cv_have_atoll_decl+:} false; then :
38727 $as_echo_n "(cached) " >&6
38730 ice_cv_have_atoll_decl=no
38731 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38732 ice_re_word='(^|[^a-zA-Z0-9_])'
38733 for header in stdlib.h; do
38734 # Check for ordinary declaration
38735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38736 /* end confdefs.h. */
38740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38741 $EGREP "${ice_re_word}atoll[ ]*\(" >/dev/null 2>&1; then :
38742 ice_cv_have_atoll_decl=yes
38746 if test "$ice_cv_have_atoll_decl" = yes; then
38749 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38751 /* end confdefs.h. */
38755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38756 $EGREP "${ice_re_word}atoll[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38757 ice_cv_have_atoll_decl=yes
38761 if test "$ice_cv_have_atoll_decl" = yes; then
38768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_atoll_decl" >&5
38769 $as_echo "$ice_cv_have_atoll_decl" >&6; }
38770 if test "$ice_cv_have_atoll_decl" = yes; then
38772 cat >>confdefs.h <<_ACEOF
38773 #define HAVE_ATOLL_DECL 1
38781 for ac_func in strtol
38783 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
38784 if test "x$ac_cv_func_strtol" = xyes; then :
38785 cat >>confdefs.h <<_ACEOF
38786 #define HAVE_STRTOL 1
38788 ice_have_strtol=yes
38792 if test "${ice_have_strtol}" = yes; then
38793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtol declaration in stdlib.h" >&5
38794 $as_echo_n "checking for strtol declaration in stdlib.h... " >&6; }
38795 if ${ice_cv_have_strtol_decl+:} false; then :
38796 $as_echo_n "(cached) " >&6
38799 ice_cv_have_strtol_decl=no
38800 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38801 ice_re_word='(^|[^a-zA-Z0-9_])'
38802 for header in stdlib.h; do
38803 # Check for ordinary declaration
38804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38805 /* end confdefs.h. */
38809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38810 $EGREP "${ice_re_word}strtol[ ]*\(" >/dev/null 2>&1; then :
38811 ice_cv_have_strtol_decl=yes
38815 if test "$ice_cv_have_strtol_decl" = yes; then
38818 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38820 /* end confdefs.h. */
38824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38825 $EGREP "${ice_re_word}strtol[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38826 ice_cv_have_strtol_decl=yes
38830 if test "$ice_cv_have_strtol_decl" = yes; then
38837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strtol_decl" >&5
38838 $as_echo "$ice_cv_have_strtol_decl" >&6; }
38839 if test "$ice_cv_have_strtol_decl" = yes; then
38841 cat >>confdefs.h <<_ACEOF
38842 #define HAVE_STRTOL_DECL 1
38849 ice_have_strtoll=no
38850 for ac_func in strtoll
38852 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
38853 if test "x$ac_cv_func_strtoll" = xyes; then :
38854 cat >>confdefs.h <<_ACEOF
38855 #define HAVE_STRTOLL 1
38857 ice_have_strtoll=yes
38861 if test "${ice_have_strtoll}" = yes; then
38862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtoll declaration in stdlib.h" >&5
38863 $as_echo_n "checking for strtoll declaration in stdlib.h... " >&6; }
38864 if ${ice_cv_have_strtoll_decl+:} false; then :
38865 $as_echo_n "(cached) " >&6
38868 ice_cv_have_strtoll_decl=no
38869 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38870 ice_re_word='(^|[^a-zA-Z0-9_])'
38871 for header in stdlib.h; do
38872 # Check for ordinary declaration
38873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38874 /* end confdefs.h. */
38878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38879 $EGREP "${ice_re_word}strtoll[ ]*\(" >/dev/null 2>&1; then :
38880 ice_cv_have_strtoll_decl=yes
38884 if test "$ice_cv_have_strtoll_decl" = yes; then
38887 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38889 /* end confdefs.h. */
38893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38894 $EGREP "${ice_re_word}strtoll[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38895 ice_cv_have_strtoll_decl=yes
38899 if test "$ice_cv_have_strtoll_decl" = yes; then
38906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strtoll_decl" >&5
38907 $as_echo "$ice_cv_have_strtoll_decl" >&6; }
38908 if test "$ice_cv_have_strtoll_decl" = yes; then
38910 cat >>confdefs.h <<_ACEOF
38911 #define HAVE_STRTOLL_DECL 1
38917 for ac_func in basename
38919 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
38920 if test "x$ac_cv_func_basename" = xyes; then :
38921 cat >>confdefs.h <<_ACEOF
38922 #define HAVE_BASENAME 1
38930 for ac_func in bind
38932 ac_fn_c_check_func "$LINENO" "bind" "ac_cv_func_bind"
38933 if test "x$ac_cv_func_bind" = xyes; then :
38934 cat >>confdefs.h <<_ACEOF
38935 #define HAVE_BIND 1
38941 if test "${ice_have_bind}" = yes; then
38942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind declaration in sys/types.h sys/socket.h" >&5
38943 $as_echo_n "checking for bind declaration in sys/types.h sys/socket.h... " >&6; }
38944 if ${ice_cv_have_bind_decl+:} false; then :
38945 $as_echo_n "(cached) " >&6
38948 ice_cv_have_bind_decl=no
38949 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38950 ice_re_word='(^|[^a-zA-Z0-9_])'
38951 for header in sys/types.h sys/socket.h; do
38952 # Check for ordinary declaration
38953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38954 /* end confdefs.h. */
38958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38959 $EGREP "${ice_re_word}bind[ ]*\(" >/dev/null 2>&1; then :
38960 ice_cv_have_bind_decl=yes
38964 if test "$ice_cv_have_bind_decl" = yes; then
38967 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38969 /* end confdefs.h. */
38973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38974 $EGREP "${ice_re_word}bind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38975 ice_cv_have_bind_decl=yes
38979 if test "$ice_cv_have_bind_decl" = yes; then
38986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_bind_decl" >&5
38987 $as_echo "$ice_cv_have_bind_decl" >&6; }
38988 if test "$ice_cv_have_bind_decl" = yes; then
38990 cat >>confdefs.h <<_ACEOF
38991 #define HAVE_BIND_DECL 1
38999 for ac_func in bcopy
39001 ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
39002 if test "x$ac_cv_func_bcopy" = xyes; then :
39003 cat >>confdefs.h <<_ACEOF
39004 #define HAVE_BCOPY 1
39010 if test "${ice_have_bcopy}" = yes; then
39011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
39012 $as_echo_n "checking for bcopy declaration in string.h strings.h stdlib.h... " >&6; }
39013 if ${ice_cv_have_bcopy_decl+:} false; then :
39014 $as_echo_n "(cached) " >&6
39017 ice_cv_have_bcopy_decl=no
39018 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39019 ice_re_word='(^|[^a-zA-Z0-9_])'
39020 for header in string.h strings.h stdlib.h; do
39021 # Check for ordinary declaration
39022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39023 /* end confdefs.h. */
39027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39028 $EGREP "${ice_re_word}bcopy[ ]*\(" >/dev/null 2>&1; then :
39029 ice_cv_have_bcopy_decl=yes
39033 if test "$ice_cv_have_bcopy_decl" = yes; then
39036 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39038 /* end confdefs.h. */
39042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39043 $EGREP "${ice_re_word}bcopy[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39044 ice_cv_have_bcopy_decl=yes
39048 if test "$ice_cv_have_bcopy_decl" = yes; then
39055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_bcopy_decl" >&5
39056 $as_echo "$ice_cv_have_bcopy_decl" >&6; }
39057 if test "$ice_cv_have_bcopy_decl" = yes; then
39059 cat >>confdefs.h <<_ACEOF
39060 #define HAVE_BCOPY_DECL 1
39068 for ac_func in bzero
39070 ac_fn_c_check_func "$LINENO" "bzero" "ac_cv_func_bzero"
39071 if test "x$ac_cv_func_bzero" = xyes; then :
39072 cat >>confdefs.h <<_ACEOF
39073 #define HAVE_BZERO 1
39079 if test "${ice_have_bzero}" = yes; then
39080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzero declaration in string.h strings.h stdlib.h" >&5
39081 $as_echo_n "checking for bzero declaration in string.h strings.h stdlib.h... " >&6; }
39082 if ${ice_cv_have_bzero_decl+:} false; then :
39083 $as_echo_n "(cached) " >&6
39086 ice_cv_have_bzero_decl=no
39087 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39088 ice_re_word='(^|[^a-zA-Z0-9_])'
39089 for header in string.h strings.h stdlib.h; do
39090 # Check for ordinary declaration
39091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39092 /* end confdefs.h. */
39096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39097 $EGREP "${ice_re_word}bzero[ ]*\(" >/dev/null 2>&1; then :
39098 ice_cv_have_bzero_decl=yes
39102 if test "$ice_cv_have_bzero_decl" = yes; then
39105 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39107 /* end confdefs.h. */
39111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39112 $EGREP "${ice_re_word}bzero[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39113 ice_cv_have_bzero_decl=yes
39117 if test "$ice_cv_have_bzero_decl" = yes; then
39124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_bzero_decl" >&5
39125 $as_echo "$ice_cv_have_bzero_decl" >&6; }
39126 if test "$ice_cv_have_bzero_decl" = yes; then
39128 cat >>confdefs.h <<_ACEOF
39129 #define HAVE_BZERO_DECL 1
39135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
39136 $as_echo_n "checking whether closedir returns void... " >&6; }
39137 if ${ac_cv_func_closedir_void+:} false; then :
39138 $as_echo_n "(cached) " >&6
39140 if test "$cross_compiling" = yes; then :
39141 ac_cv_func_closedir_void=yes
39143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39144 /* end confdefs.h. */
39145 $ac_includes_default
39146 #include <$ac_header_dirent>
39147 #ifndef __cplusplus
39154 return closedir (opendir (".")) != 0;
39159 if ac_fn_c_try_run "$LINENO"; then :
39160 ac_cv_func_closedir_void=no
39162 ac_cv_func_closedir_void=yes
39164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39165 conftest.$ac_objext conftest.beam conftest.$ac_ext
39169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
39170 $as_echo "$ac_cv_func_closedir_void" >&6; }
39171 if test $ac_cv_func_closedir_void = yes; then
39173 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
39178 ice_have_closelog=no
39179 for ac_func in closelog
39181 ac_fn_c_check_func "$LINENO" "closelog" "ac_cv_func_closelog"
39182 if test "x$ac_cv_func_closelog" = xyes; then :
39183 cat >>confdefs.h <<_ACEOF
39184 #define HAVE_CLOSELOG 1
39186 ice_have_closelog=yes
39190 if test "${ice_have_closelog}" = yes; then
39191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for closelog declaration in syslog.h" >&5
39192 $as_echo_n "checking for closelog declaration in syslog.h... " >&6; }
39193 if ${ice_cv_have_closelog_decl+:} false; then :
39194 $as_echo_n "(cached) " >&6
39197 ice_cv_have_closelog_decl=no
39198 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39199 ice_re_word='(^|[^a-zA-Z0-9_])'
39200 for header in syslog.h; do
39201 # Check for ordinary declaration
39202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39203 /* end confdefs.h. */
39207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39208 $EGREP "${ice_re_word}closelog[ ]*\(" >/dev/null 2>&1; then :
39209 ice_cv_have_closelog_decl=yes
39213 if test "$ice_cv_have_closelog_decl" = yes; then
39216 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39218 /* end confdefs.h. */
39222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39223 $EGREP "${ice_re_word}closelog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39224 ice_cv_have_closelog_decl=yes
39228 if test "$ice_cv_have_closelog_decl" = yes; then
39235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_closelog_decl" >&5
39236 $as_echo "$ice_cv_have_closelog_decl" >&6; }
39237 if test "$ice_cv_have_closelog_decl" = yes; then
39239 cat >>confdefs.h <<_ACEOF
39240 #define HAVE_CLOSELOG_DECL 1
39247 ice_have_connect=no
39248 for ac_func in connect
39250 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
39251 if test "x$ac_cv_func_connect" = xyes; then :
39252 cat >>confdefs.h <<_ACEOF
39253 #define HAVE_CONNECT 1
39255 ice_have_connect=yes
39259 if test "${ice_have_connect}" = yes; then
39260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect declaration in sys/types.h sys/socket.h" >&5
39261 $as_echo_n "checking for connect declaration in sys/types.h sys/socket.h... " >&6; }
39262 if ${ice_cv_have_connect_decl+:} false; then :
39263 $as_echo_n "(cached) " >&6
39266 ice_cv_have_connect_decl=no
39267 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39268 ice_re_word='(^|[^a-zA-Z0-9_])'
39269 for header in sys/types.h sys/socket.h; do
39270 # Check for ordinary declaration
39271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39272 /* end confdefs.h. */
39276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39277 $EGREP "${ice_re_word}connect[ ]*\(" >/dev/null 2>&1; then :
39278 ice_cv_have_connect_decl=yes
39282 if test "$ice_cv_have_connect_decl" = yes; then
39285 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39287 /* end confdefs.h. */
39291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39292 $EGREP "${ice_re_word}connect[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39293 ice_cv_have_connect_decl=yes
39297 if test "$ice_cv_have_connect_decl" = yes; then
39304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_connect_decl" >&5
39305 $as_echo "$ice_cv_have_connect_decl" >&6; }
39306 if test "$ice_cv_have_connect_decl" = yes; then
39308 cat >>confdefs.h <<_ACEOF
39309 #define HAVE_CONNECT_DECL 1
39317 for ac_func in fclose
39319 ac_fn_c_check_func "$LINENO" "fclose" "ac_cv_func_fclose"
39320 if test "x$ac_cv_func_fclose" = xyes; then :
39321 cat >>confdefs.h <<_ACEOF
39322 #define HAVE_FCLOSE 1
39324 ice_have_fclose=yes
39328 if test "${ice_have_fclose}" = yes; then
39329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fclose declaration in stdio.h" >&5
39330 $as_echo_n "checking for fclose declaration in stdio.h... " >&6; }
39331 if ${ice_cv_have_fclose_decl+:} false; then :
39332 $as_echo_n "(cached) " >&6
39335 ice_cv_have_fclose_decl=no
39336 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39337 ice_re_word='(^|[^a-zA-Z0-9_])'
39338 for header in stdio.h; do
39339 # Check for ordinary declaration
39340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39341 /* end confdefs.h. */
39345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39346 $EGREP "${ice_re_word}fclose[ ]*\(" >/dev/null 2>&1; then :
39347 ice_cv_have_fclose_decl=yes
39351 if test "$ice_cv_have_fclose_decl" = yes; then
39354 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39356 /* end confdefs.h. */
39360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39361 $EGREP "${ice_re_word}fclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39362 ice_cv_have_fclose_decl=yes
39366 if test "$ice_cv_have_fclose_decl" = yes; then
39373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fclose_decl" >&5
39374 $as_echo "$ice_cv_have_fclose_decl" >&6; }
39375 if test "$ice_cv_have_fclose_decl" = yes; then
39377 cat >>confdefs.h <<_ACEOF
39378 #define HAVE_FCLOSE_DECL 1
39386 for ac_func in fflush
39388 ac_fn_c_check_func "$LINENO" "fflush" "ac_cv_func_fflush"
39389 if test "x$ac_cv_func_fflush" = xyes; then :
39390 cat >>confdefs.h <<_ACEOF
39391 #define HAVE_FFLUSH 1
39393 ice_have_fflush=yes
39397 if test "${ice_have_fflush}" = yes; then
39398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fflush declaration in stdio.h" >&5
39399 $as_echo_n "checking for fflush declaration in stdio.h... " >&6; }
39400 if ${ice_cv_have_fflush_decl+:} false; then :
39401 $as_echo_n "(cached) " >&6
39404 ice_cv_have_fflush_decl=no
39405 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39406 ice_re_word='(^|[^a-zA-Z0-9_])'
39407 for header in stdio.h; do
39408 # Check for ordinary declaration
39409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39410 /* end confdefs.h. */
39414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39415 $EGREP "${ice_re_word}fflush[ ]*\(" >/dev/null 2>&1; then :
39416 ice_cv_have_fflush_decl=yes
39420 if test "$ice_cv_have_fflush_decl" = yes; then
39423 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39425 /* end confdefs.h. */
39429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39430 $EGREP "${ice_re_word}fflush[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39431 ice_cv_have_fflush_decl=yes
39435 if test "$ice_cv_have_fflush_decl" = yes; then
39442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fflush_decl" >&5
39443 $as_echo "$ice_cv_have_fflush_decl" >&6; }
39444 if test "$ice_cv_have_fflush_decl" = yes; then
39446 cat >>confdefs.h <<_ACEOF
39447 #define HAVE_FFLUSH_DECL 1
39454 ice_have_fprintf=no
39455 for ac_func in fprintf
39457 ac_fn_c_check_func "$LINENO" "fprintf" "ac_cv_func_fprintf"
39458 if test "x$ac_cv_func_fprintf" = xyes; then :
39459 cat >>confdefs.h <<_ACEOF
39460 #define HAVE_FPRINTF 1
39462 ice_have_fprintf=yes
39466 if test "${ice_have_fprintf}" = yes; then
39467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fprintf declaration in stdio.h" >&5
39468 $as_echo_n "checking for fprintf declaration in stdio.h... " >&6; }
39469 if ${ice_cv_have_fprintf_decl+:} false; then :
39470 $as_echo_n "(cached) " >&6
39473 ice_cv_have_fprintf_decl=no
39474 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39475 ice_re_word='(^|[^a-zA-Z0-9_])'
39476 for header in stdio.h; do
39477 # Check for ordinary declaration
39478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39479 /* end confdefs.h. */
39483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39484 $EGREP "${ice_re_word}fprintf[ ]*\(" >/dev/null 2>&1; then :
39485 ice_cv_have_fprintf_decl=yes
39489 if test "$ice_cv_have_fprintf_decl" = yes; then
39492 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39494 /* end confdefs.h. */
39498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39499 $EGREP "${ice_re_word}fprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39500 ice_cv_have_fprintf_decl=yes
39504 if test "$ice_cv_have_fprintf_decl" = yes; then
39511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fprintf_decl" >&5
39512 $as_echo "$ice_cv_have_fprintf_decl" >&6; }
39513 if test "$ice_cv_have_fprintf_decl" = yes; then
39515 cat >>confdefs.h <<_ACEOF
39516 #define HAVE_FPRINTF_DECL 1
39524 for ac_func in fputc
39526 ac_fn_c_check_func "$LINENO" "fputc" "ac_cv_func_fputc"
39527 if test "x$ac_cv_func_fputc" = xyes; then :
39528 cat >>confdefs.h <<_ACEOF
39529 #define HAVE_FPUTC 1
39535 if test "${ice_have_fputc}" = yes; then
39536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fputc declaration in stdio.h" >&5
39537 $as_echo_n "checking for fputc declaration in stdio.h... " >&6; }
39538 if ${ice_cv_have_fputc_decl+:} false; then :
39539 $as_echo_n "(cached) " >&6
39542 ice_cv_have_fputc_decl=no
39543 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39544 ice_re_word='(^|[^a-zA-Z0-9_])'
39545 for header in stdio.h; do
39546 # Check for ordinary declaration
39547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39548 /* end confdefs.h. */
39552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39553 $EGREP "${ice_re_word}fputc[ ]*\(" >/dev/null 2>&1; then :
39554 ice_cv_have_fputc_decl=yes
39558 if test "$ice_cv_have_fputc_decl" = yes; then
39561 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39563 /* end confdefs.h. */
39567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39568 $EGREP "${ice_re_word}fputc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39569 ice_cv_have_fputc_decl=yes
39573 if test "$ice_cv_have_fputc_decl" = yes; then
39580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fputc_decl" >&5
39581 $as_echo "$ice_cv_have_fputc_decl" >&6; }
39582 if test "$ice_cv_have_fputc_decl" = yes; then
39584 cat >>confdefs.h <<_ACEOF
39585 #define HAVE_FPUTC_DECL 1
39593 for ac_func in fputs
39595 ac_fn_c_check_func "$LINENO" "fputs" "ac_cv_func_fputs"
39596 if test "x$ac_cv_func_fputs" = xyes; then :
39597 cat >>confdefs.h <<_ACEOF
39598 #define HAVE_FPUTS 1
39604 if test "${ice_have_fputs}" = yes; then
39605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fputs declaration in stdio.h" >&5
39606 $as_echo_n "checking for fputs declaration in stdio.h... " >&6; }
39607 if ${ice_cv_have_fputs_decl+:} false; then :
39608 $as_echo_n "(cached) " >&6
39611 ice_cv_have_fputs_decl=no
39612 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39613 ice_re_word='(^|[^a-zA-Z0-9_])'
39614 for header in stdio.h; do
39615 # Check for ordinary declaration
39616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39617 /* end confdefs.h. */
39621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39622 $EGREP "${ice_re_word}fputs[ ]*\(" >/dev/null 2>&1; then :
39623 ice_cv_have_fputs_decl=yes
39627 if test "$ice_cv_have_fputs_decl" = yes; then
39630 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39632 /* end confdefs.h. */
39636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39637 $EGREP "${ice_re_word}fputs[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39638 ice_cv_have_fputs_decl=yes
39642 if test "$ice_cv_have_fputs_decl" = yes; then
39649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fputs_decl" >&5
39650 $as_echo "$ice_cv_have_fputs_decl" >&6; }
39651 if test "$ice_cv_have_fputs_decl" = yes; then
39653 cat >>confdefs.h <<_ACEOF
39654 #define HAVE_FPUTS_DECL 1
39662 for ac_func in fread
39664 ac_fn_c_check_func "$LINENO" "fread" "ac_cv_func_fread"
39665 if test "x$ac_cv_func_fread" = xyes; then :
39666 cat >>confdefs.h <<_ACEOF
39667 #define HAVE_FREAD 1
39673 if test "${ice_have_fread}" = yes; then
39674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fread declaration in stdio.h stdlib.h" >&5
39675 $as_echo_n "checking for fread declaration in stdio.h stdlib.h... " >&6; }
39676 if ${ice_cv_have_fread_decl+:} false; then :
39677 $as_echo_n "(cached) " >&6
39680 ice_cv_have_fread_decl=no
39681 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39682 ice_re_word='(^|[^a-zA-Z0-9_])'
39683 for header in stdio.h stdlib.h; do
39684 # Check for ordinary declaration
39685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39686 /* end confdefs.h. */
39690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39691 $EGREP "${ice_re_word}fread[ ]*\(" >/dev/null 2>&1; then :
39692 ice_cv_have_fread_decl=yes
39696 if test "$ice_cv_have_fread_decl" = yes; then
39699 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39701 /* end confdefs.h. */
39705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39706 $EGREP "${ice_re_word}fread[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39707 ice_cv_have_fread_decl=yes
39711 if test "$ice_cv_have_fread_decl" = yes; then
39718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fread_decl" >&5
39719 $as_echo "$ice_cv_have_fread_decl" >&6; }
39720 if test "$ice_cv_have_fread_decl" = yes; then
39722 cat >>confdefs.h <<_ACEOF
39723 #define HAVE_FREAD_DECL 1
39731 for ac_func in fseek
39733 ac_fn_c_check_func "$LINENO" "fseek" "ac_cv_func_fseek"
39734 if test "x$ac_cv_func_fseek" = xyes; then :
39735 cat >>confdefs.h <<_ACEOF
39736 #define HAVE_FSEEK 1
39742 if test "${ice_have_fseek}" = yes; then
39743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseek declaration in stdio.h" >&5
39744 $as_echo_n "checking for fseek declaration in stdio.h... " >&6; }
39745 if ${ice_cv_have_fseek_decl+:} false; then :
39746 $as_echo_n "(cached) " >&6
39749 ice_cv_have_fseek_decl=no
39750 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39751 ice_re_word='(^|[^a-zA-Z0-9_])'
39752 for header in stdio.h; do
39753 # Check for ordinary declaration
39754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39755 /* end confdefs.h. */
39759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39760 $EGREP "${ice_re_word}fseek[ ]*\(" >/dev/null 2>&1; then :
39761 ice_cv_have_fseek_decl=yes
39765 if test "$ice_cv_have_fseek_decl" = yes; then
39768 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39770 /* end confdefs.h. */
39774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39775 $EGREP "${ice_re_word}fseek[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39776 ice_cv_have_fseek_decl=yes
39780 if test "$ice_cv_have_fseek_decl" = yes; then
39787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fseek_decl" >&5
39788 $as_echo "$ice_cv_have_fseek_decl" >&6; }
39789 if test "$ice_cv_have_fseek_decl" = yes; then
39791 cat >>confdefs.h <<_ACEOF
39792 #define HAVE_FSEEK_DECL 1
39800 for ac_func in fwrite
39802 ac_fn_c_check_func "$LINENO" "fwrite" "ac_cv_func_fwrite"
39803 if test "x$ac_cv_func_fwrite" = xyes; then :
39804 cat >>confdefs.h <<_ACEOF
39805 #define HAVE_FWRITE 1
39807 ice_have_fwrite=yes
39811 if test "${ice_have_fwrite}" = yes; then
39812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fwrite declaration in stdio.h stdlib.h" >&5
39813 $as_echo_n "checking for fwrite declaration in stdio.h stdlib.h... " >&6; }
39814 if ${ice_cv_have_fwrite_decl+:} false; then :
39815 $as_echo_n "(cached) " >&6
39818 ice_cv_have_fwrite_decl=no
39819 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39820 ice_re_word='(^|[^a-zA-Z0-9_])'
39821 for header in stdio.h stdlib.h; do
39822 # Check for ordinary declaration
39823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39824 /* end confdefs.h. */
39828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39829 $EGREP "${ice_re_word}fwrite[ ]*\(" >/dev/null 2>&1; then :
39830 ice_cv_have_fwrite_decl=yes
39834 if test "$ice_cv_have_fwrite_decl" = yes; then
39837 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39839 /* end confdefs.h. */
39843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39844 $EGREP "${ice_re_word}fwrite[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39845 ice_cv_have_fwrite_decl=yes
39849 if test "$ice_cv_have_fwrite_decl" = yes; then
39856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fwrite_decl" >&5
39857 $as_echo "$ice_cv_have_fwrite_decl" >&6; }
39858 if test "$ice_cv_have_fwrite_decl" = yes; then
39860 cat >>confdefs.h <<_ACEOF
39861 #define HAVE_FWRITE_DECL 1
39867 for ac_func in getgrgid_r
39869 ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r"
39870 if test "x$ac_cv_func_getgrgid_r" = xyes; then :
39871 cat >>confdefs.h <<_ACEOF
39872 #define HAVE_GETGRGID_R 1
39878 for ac_func in getpwuid_r
39880 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
39881 if test "x$ac_cv_func_getpwuid_r" = xyes; then :
39882 cat >>confdefs.h <<_ACEOF
39883 #define HAVE_GETPWUID_R 1
39890 ice_have_gethostname=no
39891 for ac_func in gethostname
39893 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
39894 if test "x$ac_cv_func_gethostname" = xyes; then :
39895 cat >>confdefs.h <<_ACEOF
39896 #define HAVE_GETHOSTNAME 1
39898 ice_have_gethostname=yes
39902 if test "${ice_have_gethostname}" = yes; then
39903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname declaration in unistd.h" >&5
39904 $as_echo_n "checking for gethostname declaration in unistd.h... " >&6; }
39905 if ${ice_cv_have_gethostname_decl+:} false; then :
39906 $as_echo_n "(cached) " >&6
39909 ice_cv_have_gethostname_decl=no
39910 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39911 ice_re_word='(^|[^a-zA-Z0-9_])'
39912 for header in unistd.h; do
39913 # Check for ordinary declaration
39914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39915 /* end confdefs.h. */
39919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39920 $EGREP "${ice_re_word}gethostname[ ]*\(" >/dev/null 2>&1; then :
39921 ice_cv_have_gethostname_decl=yes
39925 if test "$ice_cv_have_gethostname_decl" = yes; then
39928 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39930 /* end confdefs.h. */
39934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39935 $EGREP "${ice_re_word}gethostname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39936 ice_cv_have_gethostname_decl=yes
39940 if test "$ice_cv_have_gethostname_decl" = yes; then
39947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_gethostname_decl" >&5
39948 $as_echo "$ice_cv_have_gethostname_decl" >&6; }
39949 if test "$ice_cv_have_gethostname_decl" = yes; then
39951 cat >>confdefs.h <<_ACEOF
39952 #define HAVE_GETHOSTNAME_DECL 1
39960 for ac_func in getopt
39962 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
39963 if test "x$ac_cv_func_getopt" = xyes; then :
39964 cat >>confdefs.h <<_ACEOF
39965 #define HAVE_GETOPT 1
39967 ice_have_getopt=yes
39971 if test "${ice_have_getopt}" = yes; then
39972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
39973 $as_echo_n "checking for getopt declaration in stdlib.h unistd.h libc.h... " >&6; }
39974 if ${ice_cv_have_getopt_decl+:} false; then :
39975 $as_echo_n "(cached) " >&6
39978 ice_cv_have_getopt_decl=no
39979 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39980 ice_re_word='(^|[^a-zA-Z0-9_])'
39981 for header in stdlib.h unistd.h libc.h; do
39982 # Check for ordinary declaration
39983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39984 /* end confdefs.h. */
39988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39989 $EGREP "${ice_re_word}getopt[ ]*\(" >/dev/null 2>&1; then :
39990 ice_cv_have_getopt_decl=yes
39994 if test "$ice_cv_have_getopt_decl" = yes; then
39997 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39999 /* end confdefs.h. */
40003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40004 $EGREP "${ice_re_word}getopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40005 ice_cv_have_getopt_decl=yes
40009 if test "$ice_cv_have_getopt_decl" = yes; then
40016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getopt_decl" >&5
40017 $as_echo "$ice_cv_have_getopt_decl" >&6; }
40018 if test "$ice_cv_have_getopt_decl" = yes; then
40020 cat >>confdefs.h <<_ACEOF
40021 #define HAVE_GETOPT_DECL 1
40028 ice_have_getpeername=no
40029 for ac_func in getpeername
40031 ac_fn_c_check_func "$LINENO" "getpeername" "ac_cv_func_getpeername"
40032 if test "x$ac_cv_func_getpeername" = xyes; then :
40033 cat >>confdefs.h <<_ACEOF
40034 #define HAVE_GETPEERNAME 1
40036 ice_have_getpeername=yes
40040 if test "${ice_have_getpeername}" = yes; then
40041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
40042 $as_echo_n "checking for getpeername declaration in sys/types.h sys/socket.h... " >&6; }
40043 if ${ice_cv_have_getpeername_decl+:} false; then :
40044 $as_echo_n "(cached) " >&6
40047 ice_cv_have_getpeername_decl=no
40048 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40049 ice_re_word='(^|[^a-zA-Z0-9_])'
40050 for header in sys/types.h sys/socket.h; do
40051 # Check for ordinary declaration
40052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40053 /* end confdefs.h. */
40057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40058 $EGREP "${ice_re_word}getpeername[ ]*\(" >/dev/null 2>&1; then :
40059 ice_cv_have_getpeername_decl=yes
40063 if test "$ice_cv_have_getpeername_decl" = yes; then
40066 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40068 /* end confdefs.h. */
40072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40073 $EGREP "${ice_re_word}getpeername[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40074 ice_cv_have_getpeername_decl=yes
40078 if test "$ice_cv_have_getpeername_decl" = yes; then
40085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getpeername_decl" >&5
40086 $as_echo "$ice_cv_have_getpeername_decl" >&6; }
40087 if test "$ice_cv_have_getpeername_decl" = yes; then
40089 cat >>confdefs.h <<_ACEOF
40090 #define HAVE_GETPEERNAME_DECL 1
40096 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
40097 if test "x$ac_cv_func_getpgrp" = xyes; then :
40101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
40102 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
40103 if ${ac_cv_func_getpgrp_void+:} false; then :
40104 $as_echo_n "(cached) " >&6
40106 # Use it with a single arg.
40107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40108 /* end confdefs.h. */
40109 $ac_includes_default
40118 if ac_fn_c_try_compile "$LINENO"; then :
40119 ac_cv_func_getpgrp_void=no
40121 ac_cv_func_getpgrp_void=yes
40123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
40127 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
40128 if test $ac_cv_func_getpgrp_void = yes; then
40130 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
40135 ice_have_getsockname=no
40136 for ac_func in getsockname
40138 ac_fn_c_check_func "$LINENO" "getsockname" "ac_cv_func_getsockname"
40139 if test "x$ac_cv_func_getsockname" = xyes; then :
40140 cat >>confdefs.h <<_ACEOF
40141 #define HAVE_GETSOCKNAME 1
40143 ice_have_getsockname=yes
40147 if test "${ice_have_getsockname}" = yes; then
40148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
40149 $as_echo_n "checking for getsockname declaration in sys/types.h sys/socket.h... " >&6; }
40150 if ${ice_cv_have_getsockname_decl+:} false; then :
40151 $as_echo_n "(cached) " >&6
40154 ice_cv_have_getsockname_decl=no
40155 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40156 ice_re_word='(^|[^a-zA-Z0-9_])'
40157 for header in sys/types.h sys/socket.h; do
40158 # Check for ordinary declaration
40159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40160 /* end confdefs.h. */
40164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40165 $EGREP "${ice_re_word}getsockname[ ]*\(" >/dev/null 2>&1; then :
40166 ice_cv_have_getsockname_decl=yes
40170 if test "$ice_cv_have_getsockname_decl" = yes; then
40173 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40175 /* end confdefs.h. */
40179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40180 $EGREP "${ice_re_word}getsockname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40181 ice_cv_have_getsockname_decl=yes
40185 if test "$ice_cv_have_getsockname_decl" = yes; then
40192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getsockname_decl" >&5
40193 $as_echo "$ice_cv_have_getsockname_decl" >&6; }
40194 if test "$ice_cv_have_getsockname_decl" = yes; then
40196 cat >>confdefs.h <<_ACEOF
40197 #define HAVE_GETSOCKNAME_DECL 1
40204 ice_have_getsockopt=no
40205 for ac_func in getsockopt
40207 ac_fn_c_check_func "$LINENO" "getsockopt" "ac_cv_func_getsockopt"
40208 if test "x$ac_cv_func_getsockopt" = xyes; then :
40209 cat >>confdefs.h <<_ACEOF
40210 #define HAVE_GETSOCKOPT 1
40212 ice_have_getsockopt=yes
40216 if test "${ice_have_getsockopt}" = yes; then
40217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
40218 $as_echo_n "checking for getsockopt declaration in sys/types.h sys/socket.h... " >&6; }
40219 if ${ice_cv_have_getsockopt_decl+:} false; then :
40220 $as_echo_n "(cached) " >&6
40223 ice_cv_have_getsockopt_decl=no
40224 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40225 ice_re_word='(^|[^a-zA-Z0-9_])'
40226 for header in sys/types.h sys/socket.h; do
40227 # Check for ordinary declaration
40228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40229 /* end confdefs.h. */
40233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40234 $EGREP "${ice_re_word}getsockopt[ ]*\(" >/dev/null 2>&1; then :
40235 ice_cv_have_getsockopt_decl=yes
40239 if test "$ice_cv_have_getsockopt_decl" = yes; then
40242 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40244 /* end confdefs.h. */
40248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40249 $EGREP "${ice_re_word}getsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40250 ice_cv_have_getsockopt_decl=yes
40254 if test "$ice_cv_have_getsockopt_decl" = yes; then
40261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getsockopt_decl" >&5
40262 $as_echo "$ice_cv_have_getsockopt_decl" >&6; }
40263 if test "$ice_cv_have_getsockopt_decl" = yes; then
40265 cat >>confdefs.h <<_ACEOF
40266 #define HAVE_GETSOCKOPT_DECL 1
40273 ice_have_initgroups=no
40274 for ac_func in initgroups
40276 ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
40277 if test "x$ac_cv_func_initgroups" = xyes; then :
40278 cat >>confdefs.h <<_ACEOF
40279 #define HAVE_INITGROUPS 1
40281 ice_have_initgroups=yes
40285 if test "${ice_have_initgroups}" = yes; then
40286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
40287 $as_echo_n "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... " >&6; }
40288 if ${ice_cv_have_initgroups_decl+:} false; then :
40289 $as_echo_n "(cached) " >&6
40292 ice_cv_have_initgroups_decl=no
40293 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40294 ice_re_word='(^|[^a-zA-Z0-9_])'
40295 for header in grp.h sys/types.h unistd.h libc.h; do
40296 # Check for ordinary declaration
40297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40298 /* end confdefs.h. */
40302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40303 $EGREP "${ice_re_word}initgroups[ ]*\(" >/dev/null 2>&1; then :
40304 ice_cv_have_initgroups_decl=yes
40308 if test "$ice_cv_have_initgroups_decl" = yes; then
40311 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40313 /* end confdefs.h. */
40317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40318 $EGREP "${ice_re_word}initgroups[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40319 ice_cv_have_initgroups_decl=yes
40323 if test "$ice_cv_have_initgroups_decl" = yes; then
40330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_initgroups_decl" >&5
40331 $as_echo "$ice_cv_have_initgroups_decl" >&6; }
40332 if test "$ice_cv_have_initgroups_decl" = yes; then
40334 cat >>confdefs.h <<_ACEOF
40335 #define HAVE_INITGROUPS_DECL 1
40343 for ac_func in ioctl
40345 ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl"
40346 if test "x$ac_cv_func_ioctl" = xyes; then :
40347 cat >>confdefs.h <<_ACEOF
40348 #define HAVE_IOCTL 1
40354 if test "${ice_have_ioctl}" = yes; then
40355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
40356 $as_echo_n "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... " >&6; }
40357 if ${ice_cv_have_ioctl_decl+:} false; then :
40358 $as_echo_n "(cached) " >&6
40361 ice_cv_have_ioctl_decl=no
40362 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40363 ice_re_word='(^|[^a-zA-Z0-9_])'
40364 for header in sys/ioctl.h unistd.h libc.h; do
40365 # Check for ordinary declaration
40366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40367 /* end confdefs.h. */
40371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40372 $EGREP "${ice_re_word}ioctl[ ]*\(" >/dev/null 2>&1; then :
40373 ice_cv_have_ioctl_decl=yes
40377 if test "$ice_cv_have_ioctl_decl" = yes; then
40380 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40382 /* end confdefs.h. */
40386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40387 $EGREP "${ice_re_word}ioctl[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40388 ice_cv_have_ioctl_decl=yes
40392 if test "$ice_cv_have_ioctl_decl" = yes; then
40399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_ioctl_decl" >&5
40400 $as_echo "$ice_cv_have_ioctl_decl" >&6; }
40401 if test "$ice_cv_have_ioctl_decl" = yes; then
40403 cat >>confdefs.h <<_ACEOF
40404 #define HAVE_IOCTL_DECL 1
40411 ice_have_isnormal=no
40412 for ac_func in isnormal
40414 ac_fn_c_check_func "$LINENO" "isnormal" "ac_cv_func_isnormal"
40415 if test "x$ac_cv_func_isnormal" = xyes; then :
40416 cat >>confdefs.h <<_ACEOF
40417 #define HAVE_ISNORMAL 1
40419 ice_have_isnormal=yes
40423 if test "${ice_have_isnormal}" = yes; then
40424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnormal declaration in math.h" >&5
40425 $as_echo_n "checking for isnormal declaration in math.h... " >&6; }
40426 if ${ice_cv_have_isnormal_decl+:} false; then :
40427 $as_echo_n "(cached) " >&6
40430 ice_cv_have_isnormal_decl=no
40431 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40432 ice_re_word='(^|[^a-zA-Z0-9_])'
40433 for header in math.h; do
40434 # Check for ordinary declaration
40435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40436 /* end confdefs.h. */
40440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40441 $EGREP "${ice_re_word}isnormal[ ]*\(" >/dev/null 2>&1; then :
40442 ice_cv_have_isnormal_decl=yes
40446 if test "$ice_cv_have_isnormal_decl" = yes; then
40449 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40451 /* end confdefs.h. */
40455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40456 $EGREP "${ice_re_word}isnormal[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40457 ice_cv_have_isnormal_decl=yes
40461 if test "$ice_cv_have_isnormal_decl" = yes; then
40468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_isnormal_decl" >&5
40469 $as_echo "$ice_cv_have_isnormal_decl" >&6; }
40470 if test "$ice_cv_have_isnormal_decl" = yes; then
40472 cat >>confdefs.h <<_ACEOF
40473 #define HAVE_ISNORMAL_DECL 1
40481 for ac_func in listen
40483 ac_fn_c_check_func "$LINENO" "listen" "ac_cv_func_listen"
40484 if test "x$ac_cv_func_listen" = xyes; then :
40485 cat >>confdefs.h <<_ACEOF
40486 #define HAVE_LISTEN 1
40488 ice_have_listen=yes
40492 if test "${ice_have_listen}" = yes; then
40493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for listen declaration in sys/types.h sys/socket.h" >&5
40494 $as_echo_n "checking for listen declaration in sys/types.h sys/socket.h... " >&6; }
40495 if ${ice_cv_have_listen_decl+:} false; then :
40496 $as_echo_n "(cached) " >&6
40499 ice_cv_have_listen_decl=no
40500 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40501 ice_re_word='(^|[^a-zA-Z0-9_])'
40502 for header in sys/types.h sys/socket.h; do
40503 # Check for ordinary declaration
40504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40505 /* end confdefs.h. */
40509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40510 $EGREP "${ice_re_word}listen[ ]*\(" >/dev/null 2>&1; then :
40511 ice_cv_have_listen_decl=yes
40515 if test "$ice_cv_have_listen_decl" = yes; then
40518 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40520 /* end confdefs.h. */
40524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40525 $EGREP "${ice_re_word}listen[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40526 ice_cv_have_listen_decl=yes
40530 if test "$ice_cv_have_listen_decl" = yes; then
40537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_listen_decl" >&5
40538 $as_echo "$ice_cv_have_listen_decl" >&6; }
40539 if test "$ice_cv_have_listen_decl" = yes; then
40541 cat >>confdefs.h <<_ACEOF
40542 #define HAVE_LISTEN_DECL 1
40550 for ac_func in lstat
40552 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
40553 if test "x$ac_cv_func_lstat" = xyes; then :
40554 cat >>confdefs.h <<_ACEOF
40555 #define HAVE_LSTAT 1
40561 if test "${ice_have_lstat}" = yes; then
40562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat declaration in sys/types.h sys/stat.h" >&5
40563 $as_echo_n "checking for lstat declaration in sys/types.h sys/stat.h... " >&6; }
40564 if ${ice_cv_have_lstat_decl+:} false; then :
40565 $as_echo_n "(cached) " >&6
40568 ice_cv_have_lstat_decl=no
40569 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40570 ice_re_word='(^|[^a-zA-Z0-9_])'
40571 for header in sys/types.h sys/stat.h; do
40572 # Check for ordinary declaration
40573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40574 /* end confdefs.h. */
40578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40579 $EGREP "${ice_re_word}lstat[ ]*\(" >/dev/null 2>&1; then :
40580 ice_cv_have_lstat_decl=yes
40584 if test "$ice_cv_have_lstat_decl" = yes; then
40587 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40589 /* end confdefs.h. */
40593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40594 $EGREP "${ice_re_word}lstat[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40595 ice_cv_have_lstat_decl=yes
40599 if test "$ice_cv_have_lstat_decl" = yes; then
40606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_lstat_decl" >&5
40607 $as_echo "$ice_cv_have_lstat_decl" >&6; }
40608 if test "$ice_cv_have_lstat_decl" = yes; then
40610 cat >>confdefs.h <<_ACEOF
40611 #define HAVE_LSTAT_DECL 1
40619 for ac_func in malloc
40621 ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
40622 if test "x$ac_cv_func_malloc" = xyes; then :
40623 cat >>confdefs.h <<_ACEOF
40624 #define HAVE_MALLOC 1
40626 ice_have_malloc=yes
40630 if test "${ice_have_malloc}" = yes; then
40631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc declaration in stdlib.h" >&5
40632 $as_echo_n "checking for malloc declaration in stdlib.h... " >&6; }
40633 if ${ice_cv_have_malloc_decl+:} false; then :
40634 $as_echo_n "(cached) " >&6
40637 ice_cv_have_malloc_decl=no
40638 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40639 ice_re_word='(^|[^a-zA-Z0-9_])'
40640 for header in stdlib.h; do
40641 # Check for ordinary declaration
40642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40643 /* end confdefs.h. */
40647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40648 $EGREP "${ice_re_word}malloc[ ]*\(" >/dev/null 2>&1; then :
40649 ice_cv_have_malloc_decl=yes
40653 if test "$ice_cv_have_malloc_decl" = yes; then
40656 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40658 /* end confdefs.h. */
40662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40663 $EGREP "${ice_re_word}malloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40664 ice_cv_have_malloc_decl=yes
40668 if test "$ice_cv_have_malloc_decl" = yes; then
40675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_malloc_decl" >&5
40676 $as_echo "$ice_cv_have_malloc_decl" >&6; }
40677 if test "$ice_cv_have_malloc_decl" = yes; then
40679 cat >>confdefs.h <<_ACEOF
40680 #define HAVE_MALLOC_DECL 1
40687 ice_have_memmove=no
40688 for ac_func in memmove
40690 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
40691 if test "x$ac_cv_func_memmove" = xyes; then :
40692 cat >>confdefs.h <<_ACEOF
40693 #define HAVE_MEMMOVE 1
40695 ice_have_memmove=yes
40699 if test "${ice_have_memmove}" = yes; then
40700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memmove declaration in string.h strings.h" >&5
40701 $as_echo_n "checking for memmove declaration in string.h strings.h... " >&6; }
40702 if ${ice_cv_have_memmove_decl+:} false; then :
40703 $as_echo_n "(cached) " >&6
40706 ice_cv_have_memmove_decl=no
40707 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40708 ice_re_word='(^|[^a-zA-Z0-9_])'
40709 for header in string.h strings.h; do
40710 # Check for ordinary declaration
40711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40712 /* end confdefs.h. */
40716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40717 $EGREP "${ice_re_word}memmove[ ]*\(" >/dev/null 2>&1; then :
40718 ice_cv_have_memmove_decl=yes
40722 if test "$ice_cv_have_memmove_decl" = yes; then
40725 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40727 /* end confdefs.h. */
40731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40732 $EGREP "${ice_re_word}memmove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40733 ice_cv_have_memmove_decl=yes
40737 if test "$ice_cv_have_memmove_decl" = yes; then
40744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_memmove_decl" >&5
40745 $as_echo "$ice_cv_have_memmove_decl" >&6; }
40746 if test "$ice_cv_have_memmove_decl" = yes; then
40748 cat >>confdefs.h <<_ACEOF
40749 #define HAVE_MEMMOVE_DECL 1
40757 for ac_func in memset
40759 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
40760 if test "x$ac_cv_func_memset" = xyes; then :
40761 cat >>confdefs.h <<_ACEOF
40762 #define HAVE_MEMSET 1
40764 ice_have_memset=yes
40768 if test "${ice_have_memset}" = yes; then
40769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memset declaration in string.h strings.h" >&5
40770 $as_echo_n "checking for memset declaration in string.h strings.h... " >&6; }
40771 if ${ice_cv_have_memset_decl+:} false; then :
40772 $as_echo_n "(cached) " >&6
40775 ice_cv_have_memset_decl=no
40776 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40777 ice_re_word='(^|[^a-zA-Z0-9_])'
40778 for header in string.h strings.h; do
40779 # Check for ordinary declaration
40780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40781 /* end confdefs.h. */
40785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40786 $EGREP "${ice_re_word}memset[ ]*\(" >/dev/null 2>&1; then :
40787 ice_cv_have_memset_decl=yes
40791 if test "$ice_cv_have_memset_decl" = yes; then
40794 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40796 /* end confdefs.h. */
40800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40801 $EGREP "${ice_re_word}memset[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40802 ice_cv_have_memset_decl=yes
40806 if test "$ice_cv_have_memset_decl" = yes; then
40813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_memset_decl" >&5
40814 $as_echo "$ice_cv_have_memset_decl" >&6; }
40815 if test "$ice_cv_have_memset_decl" = yes; then
40817 cat >>confdefs.h <<_ACEOF
40818 #define HAVE_MEMSET_DECL 1
40825 ice_have_mkstemp=no
40826 for ac_func in mkstemp
40828 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
40829 if test "x$ac_cv_func_mkstemp" = xyes; then :
40830 cat >>confdefs.h <<_ACEOF
40831 #define HAVE_MKSTEMP 1
40833 ice_have_mkstemp=yes
40837 if test "${ice_have_mkstemp}" = yes; then
40838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkstemp declaration in stdlib.h" >&5
40839 $as_echo_n "checking for mkstemp declaration in stdlib.h... " >&6; }
40840 if ${ice_cv_have_mkstemp_decl+:} false; then :
40841 $as_echo_n "(cached) " >&6
40844 ice_cv_have_mkstemp_decl=no
40845 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40846 ice_re_word='(^|[^a-zA-Z0-9_])'
40847 for header in stdlib.h; do
40848 # Check for ordinary declaration
40849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40850 /* end confdefs.h. */
40854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40855 $EGREP "${ice_re_word}mkstemp[ ]*\(" >/dev/null 2>&1; then :
40856 ice_cv_have_mkstemp_decl=yes
40860 if test "$ice_cv_have_mkstemp_decl" = yes; then
40863 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40865 /* end confdefs.h. */
40869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40870 $EGREP "${ice_re_word}mkstemp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40871 ice_cv_have_mkstemp_decl=yes
40875 if test "$ice_cv_have_mkstemp_decl" = yes; then
40882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_mkstemp_decl" >&5
40883 $as_echo "$ice_cv_have_mkstemp_decl" >&6; }
40884 if test "$ice_cv_have_mkstemp_decl" = yes; then
40886 cat >>confdefs.h <<_ACEOF
40887 #define HAVE_MKSTEMP_DECL 1
40895 for ac_func in mktemp
40897 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
40898 if test "x$ac_cv_func_mktemp" = xyes; then :
40899 cat >>confdefs.h <<_ACEOF
40900 #define HAVE_MKTEMP 1
40902 ice_have_mktemp=yes
40906 if test "${ice_have_mktemp}" = yes; then
40907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mktemp declaration in stdlib.h" >&5
40908 $as_echo_n "checking for mktemp declaration in stdlib.h... " >&6; }
40909 if ${ice_cv_have_mktemp_decl+:} false; then :
40910 $as_echo_n "(cached) " >&6
40913 ice_cv_have_mktemp_decl=no
40914 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40915 ice_re_word='(^|[^a-zA-Z0-9_])'
40916 for header in stdlib.h; do
40917 # Check for ordinary declaration
40918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40919 /* end confdefs.h. */
40923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40924 $EGREP "${ice_re_word}mktemp[ ]*\(" >/dev/null 2>&1; then :
40925 ice_cv_have_mktemp_decl=yes
40929 if test "$ice_cv_have_mktemp_decl" = yes; then
40932 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40934 /* end confdefs.h. */
40938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40939 $EGREP "${ice_re_word}mktemp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40940 ice_cv_have_mktemp_decl=yes
40944 if test "$ice_cv_have_mktemp_decl" = yes; then
40951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_mktemp_decl" >&5
40952 $as_echo "$ice_cv_have_mktemp_decl" >&6; }
40953 if test "$ice_cv_have_mktemp_decl" = yes; then
40955 cat >>confdefs.h <<_ACEOF
40956 #define HAVE_MKTEMP_DECL 1
40964 for ac_func in mktime
40966 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
40967 if test "x$ac_cv_func_mktime" = xyes; then :
40968 cat >>confdefs.h <<_ACEOF
40969 #define HAVE_MKTIME 1
40971 ice_have_mktime=yes
40975 if test "${ice_have_mktime}" = yes; then
40976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mktime declaration in time.h sys/time.h" >&5
40977 $as_echo_n "checking for mktime declaration in time.h sys/time.h... " >&6; }
40978 if ${ice_cv_have_mktime_decl+:} false; then :
40979 $as_echo_n "(cached) " >&6
40982 ice_cv_have_mktime_decl=no
40983 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40984 ice_re_word='(^|[^a-zA-Z0-9_])'
40985 for header in time.h sys/time.h; do
40986 # Check for ordinary declaration
40987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40988 /* end confdefs.h. */
40992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40993 $EGREP "${ice_re_word}mktime[ ]*\(" >/dev/null 2>&1; then :
40994 ice_cv_have_mktime_decl=yes
40998 if test "$ice_cv_have_mktime_decl" = yes; then
41001 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41003 /* end confdefs.h. */
41007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41008 $EGREP "${ice_re_word}mktime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41009 ice_cv_have_mktime_decl=yes
41013 if test "$ice_cv_have_mktime_decl" = yes; then
41020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_mktime_decl" >&5
41021 $as_echo "$ice_cv_have_mktime_decl" >&6; }
41022 if test "$ice_cv_have_mktime_decl" = yes; then
41024 cat >>confdefs.h <<_ACEOF
41025 #define HAVE_MKTIME_DECL 1
41031 for ac_func in on_exit
41033 ac_fn_c_check_func "$LINENO" "on_exit" "ac_cv_func_on_exit"
41034 if test "x$ac_cv_func_on_exit" = xyes; then :
41035 cat >>confdefs.h <<_ACEOF
41036 #define HAVE_ON_EXIT 1
41043 ice_have_openlog=no
41044 for ac_func in openlog
41046 ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
41047 if test "x$ac_cv_func_openlog" = xyes; then :
41048 cat >>confdefs.h <<_ACEOF
41049 #define HAVE_OPENLOG 1
41051 ice_have_openlog=yes
41055 if test "${ice_have_openlog}" = yes; then
41056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openlog declaration in syslog.h" >&5
41057 $as_echo_n "checking for openlog declaration in syslog.h... " >&6; }
41058 if ${ice_cv_have_openlog_decl+:} false; then :
41059 $as_echo_n "(cached) " >&6
41062 ice_cv_have_openlog_decl=no
41063 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41064 ice_re_word='(^|[^a-zA-Z0-9_])'
41065 for header in syslog.h; do
41066 # Check for ordinary declaration
41067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41068 /* end confdefs.h. */
41072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41073 $EGREP "${ice_re_word}openlog[ ]*\(" >/dev/null 2>&1; then :
41074 ice_cv_have_openlog_decl=yes
41078 if test "$ice_cv_have_openlog_decl" = yes; then
41081 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41083 /* end confdefs.h. */
41087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41088 $EGREP "${ice_re_word}openlog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41089 ice_cv_have_openlog_decl=yes
41093 if test "$ice_cv_have_openlog_decl" = yes; then
41100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_openlog_decl" >&5
41101 $as_echo "$ice_cv_have_openlog_decl" >&6; }
41102 if test "$ice_cv_have_openlog_decl" = yes; then
41104 cat >>confdefs.h <<_ACEOF
41105 #define HAVE_OPENLOG_DECL 1
41113 for ac_func in pclose
41115 ac_fn_c_check_func "$LINENO" "pclose" "ac_cv_func_pclose"
41116 if test "x$ac_cv_func_pclose" = xyes; then :
41117 cat >>confdefs.h <<_ACEOF
41118 #define HAVE_PCLOSE 1
41120 ice_have_pclose=yes
41124 if test "${ice_have_pclose}" = yes; then
41125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pclose declaration in stdio.h" >&5
41126 $as_echo_n "checking for pclose declaration in stdio.h... " >&6; }
41127 if ${ice_cv_have_pclose_decl+:} false; then :
41128 $as_echo_n "(cached) " >&6
41131 ice_cv_have_pclose_decl=no
41132 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41133 ice_re_word='(^|[^a-zA-Z0-9_])'
41134 for header in stdio.h; do
41135 # Check for ordinary declaration
41136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41137 /* end confdefs.h. */
41141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41142 $EGREP "${ice_re_word}pclose[ ]*\(" >/dev/null 2>&1; then :
41143 ice_cv_have_pclose_decl=yes
41147 if test "$ice_cv_have_pclose_decl" = yes; then
41150 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41152 /* end confdefs.h. */
41156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41157 $EGREP "${ice_re_word}pclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41158 ice_cv_have_pclose_decl=yes
41162 if test "$ice_cv_have_pclose_decl" = yes; then
41169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_pclose_decl" >&5
41170 $as_echo "$ice_cv_have_pclose_decl" >&6; }
41171 if test "$ice_cv_have_pclose_decl" = yes; then
41173 cat >>confdefs.h <<_ACEOF
41174 #define HAVE_PCLOSE_DECL 1
41182 for ac_func in perror
41184 ac_fn_c_check_func "$LINENO" "perror" "ac_cv_func_perror"
41185 if test "x$ac_cv_func_perror" = xyes; then :
41186 cat >>confdefs.h <<_ACEOF
41187 #define HAVE_PERROR 1
41189 ice_have_perror=yes
41193 if test "${ice_have_perror}" = yes; then
41194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perror declaration in stdio.h" >&5
41195 $as_echo_n "checking for perror declaration in stdio.h... " >&6; }
41196 if ${ice_cv_have_perror_decl+:} false; then :
41197 $as_echo_n "(cached) " >&6
41200 ice_cv_have_perror_decl=no
41201 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41202 ice_re_word='(^|[^a-zA-Z0-9_])'
41203 for header in stdio.h; do
41204 # Check for ordinary declaration
41205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41206 /* end confdefs.h. */
41210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41211 $EGREP "${ice_re_word}perror[ ]*\(" >/dev/null 2>&1; then :
41212 ice_cv_have_perror_decl=yes
41216 if test "$ice_cv_have_perror_decl" = yes; then
41219 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41221 /* end confdefs.h. */
41225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41226 $EGREP "${ice_re_word}perror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41227 ice_cv_have_perror_decl=yes
41231 if test "$ice_cv_have_perror_decl" = yes; then
41238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_perror_decl" >&5
41239 $as_echo "$ice_cv_have_perror_decl" >&6; }
41240 if test "$ice_cv_have_perror_decl" = yes; then
41242 cat >>confdefs.h <<_ACEOF
41243 #define HAVE_PERROR_DECL 1
41251 for ac_func in printf
41253 ac_fn_c_check_func "$LINENO" "printf" "ac_cv_func_printf"
41254 if test "x$ac_cv_func_printf" = xyes; then :
41255 cat >>confdefs.h <<_ACEOF
41256 #define HAVE_PRINTF 1
41258 ice_have_printf=yes
41262 if test "${ice_have_printf}" = yes; then
41263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf declaration in stdio.h" >&5
41264 $as_echo_n "checking for printf declaration in stdio.h... " >&6; }
41265 if ${ice_cv_have_printf_decl+:} false; then :
41266 $as_echo_n "(cached) " >&6
41269 ice_cv_have_printf_decl=no
41270 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41271 ice_re_word='(^|[^a-zA-Z0-9_])'
41272 for header in stdio.h; do
41273 # Check for ordinary declaration
41274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41275 /* end confdefs.h. */
41279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41280 $EGREP "${ice_re_word}printf[ ]*\(" >/dev/null 2>&1; then :
41281 ice_cv_have_printf_decl=yes
41285 if test "$ice_cv_have_printf_decl" = yes; then
41288 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41290 /* end confdefs.h. */
41294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41295 $EGREP "${ice_re_word}printf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41296 ice_cv_have_printf_decl=yes
41300 if test "$ice_cv_have_printf_decl" = yes; then
41307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_printf_decl" >&5
41308 $as_echo "$ice_cv_have_printf_decl" >&6; }
41309 if test "$ice_cv_have_printf_decl" = yes; then
41311 cat >>confdefs.h <<_ACEOF
41312 #define HAVE_PRINTF_DECL 1
41318 for ac_func in putenv
41320 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
41321 if test "x$ac_cv_func_putenv" = xyes; then :
41322 cat >>confdefs.h <<_ACEOF
41323 #define HAVE_PUTENV 1
41331 for ac_func in puts
41333 ac_fn_c_check_func "$LINENO" "puts" "ac_cv_func_puts"
41334 if test "x$ac_cv_func_puts" = xyes; then :
41335 cat >>confdefs.h <<_ACEOF
41336 #define HAVE_PUTS 1
41342 if test "${ice_have_puts}" = yes; then
41343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts declaration in stdio.h" >&5
41344 $as_echo_n "checking for puts declaration in stdio.h... " >&6; }
41345 if ${ice_cv_have_puts_decl+:} false; then :
41346 $as_echo_n "(cached) " >&6
41349 ice_cv_have_puts_decl=no
41350 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41351 ice_re_word='(^|[^a-zA-Z0-9_])'
41352 for header in stdio.h; do
41353 # Check for ordinary declaration
41354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41355 /* end confdefs.h. */
41359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41360 $EGREP "${ice_re_word}puts[ ]*\(" >/dev/null 2>&1; then :
41361 ice_cv_have_puts_decl=yes
41365 if test "$ice_cv_have_puts_decl" = yes; then
41368 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41370 /* end confdefs.h. */
41374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41375 $EGREP "${ice_re_word}puts[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41376 ice_cv_have_puts_decl=yes
41380 if test "$ice_cv_have_puts_decl" = yes; then
41387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_puts_decl" >&5
41388 $as_echo "$ice_cv_have_puts_decl" >&6; }
41389 if test "$ice_cv_have_puts_decl" = yes; then
41391 cat >>confdefs.h <<_ACEOF
41392 #define HAVE_PUTS_DECL 1
41399 ice_have_realloc=no
41400 for ac_func in realloc
41402 ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
41403 if test "x$ac_cv_func_realloc" = xyes; then :
41404 cat >>confdefs.h <<_ACEOF
41405 #define HAVE_REALLOC 1
41407 ice_have_realloc=yes
41411 if test "${ice_have_realloc}" = yes; then
41412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for realloc declaration in stdlib.h" >&5
41413 $as_echo_n "checking for realloc declaration in stdlib.h... " >&6; }
41414 if ${ice_cv_have_realloc_decl+:} false; then :
41415 $as_echo_n "(cached) " >&6
41418 ice_cv_have_realloc_decl=no
41419 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41420 ice_re_word='(^|[^a-zA-Z0-9_])'
41421 for header in stdlib.h; do
41422 # Check for ordinary declaration
41423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41424 /* end confdefs.h. */
41428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41429 $EGREP "${ice_re_word}realloc[ ]*\(" >/dev/null 2>&1; then :
41430 ice_cv_have_realloc_decl=yes
41434 if test "$ice_cv_have_realloc_decl" = yes; then
41437 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41439 /* end confdefs.h. */
41443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41444 $EGREP "${ice_re_word}realloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41445 ice_cv_have_realloc_decl=yes
41449 if test "$ice_cv_have_realloc_decl" = yes; then
41456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_realloc_decl" >&5
41457 $as_echo "$ice_cv_have_realloc_decl" >&6; }
41458 if test "$ice_cv_have_realloc_decl" = yes; then
41460 cat >>confdefs.h <<_ACEOF
41461 #define HAVE_REALLOC_DECL 1
41468 ice_have_recvfrom=no
41469 for ac_func in recvfrom
41471 ac_fn_c_check_func "$LINENO" "recvfrom" "ac_cv_func_recvfrom"
41472 if test "x$ac_cv_func_recvfrom" = xyes; then :
41473 cat >>confdefs.h <<_ACEOF
41474 #define HAVE_RECVFROM 1
41476 ice_have_recvfrom=yes
41480 if test "${ice_have_recvfrom}" = yes; then
41481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
41482 $as_echo_n "checking for recvfrom declaration in sys/types.h sys/socket.h... " >&6; }
41483 if ${ice_cv_have_recvfrom_decl+:} false; then :
41484 $as_echo_n "(cached) " >&6
41487 ice_cv_have_recvfrom_decl=no
41488 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41489 ice_re_word='(^|[^a-zA-Z0-9_])'
41490 for header in sys/types.h sys/socket.h; do
41491 # Check for ordinary declaration
41492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41493 /* end confdefs.h. */
41497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41498 $EGREP "${ice_re_word}recvfrom[ ]*\(" >/dev/null 2>&1; then :
41499 ice_cv_have_recvfrom_decl=yes
41503 if test "$ice_cv_have_recvfrom_decl" = yes; then
41506 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41508 /* end confdefs.h. */
41512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41513 $EGREP "${ice_re_word}recvfrom[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41514 ice_cv_have_recvfrom_decl=yes
41518 if test "$ice_cv_have_recvfrom_decl" = yes; then
41525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_recvfrom_decl" >&5
41526 $as_echo "$ice_cv_have_recvfrom_decl" >&6; }
41527 if test "$ice_cv_have_recvfrom_decl" = yes; then
41529 cat >>confdefs.h <<_ACEOF
41530 #define HAVE_RECVFROM_DECL 1
41538 for ac_func in remove
41540 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
41541 if test "x$ac_cv_func_remove" = xyes; then :
41542 cat >>confdefs.h <<_ACEOF
41543 #define HAVE_REMOVE 1
41545 ice_have_remove=yes
41549 if test "${ice_have_remove}" = yes; then
41550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove declaration in stdio.h" >&5
41551 $as_echo_n "checking for remove declaration in stdio.h... " >&6; }
41552 if ${ice_cv_have_remove_decl+:} false; then :
41553 $as_echo_n "(cached) " >&6
41556 ice_cv_have_remove_decl=no
41557 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41558 ice_re_word='(^|[^a-zA-Z0-9_])'
41559 for header in stdio.h; do
41560 # Check for ordinary declaration
41561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41562 /* end confdefs.h. */
41566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41567 $EGREP "${ice_re_word}remove[ ]*\(" >/dev/null 2>&1; then :
41568 ice_cv_have_remove_decl=yes
41572 if test "$ice_cv_have_remove_decl" = yes; then
41575 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41577 /* end confdefs.h. */
41581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41582 $EGREP "${ice_re_word}remove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41583 ice_cv_have_remove_decl=yes
41587 if test "$ice_cv_have_remove_decl" = yes; then
41594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_remove_decl" >&5
41595 $as_echo "$ice_cv_have_remove_decl" >&6; }
41596 if test "$ice_cv_have_remove_decl" = yes; then
41598 cat >>confdefs.h <<_ACEOF
41599 #define HAVE_REMOVE_DECL 1
41607 for ac_func in rename
41609 ac_fn_c_check_func "$LINENO" "rename" "ac_cv_func_rename"
41610 if test "x$ac_cv_func_rename" = xyes; then :
41611 cat >>confdefs.h <<_ACEOF
41612 #define HAVE_RENAME 1
41614 ice_have_rename=yes
41618 if test "${ice_have_rename}" = yes; then
41619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename declaration in stdio.h" >&5
41620 $as_echo_n "checking for rename declaration in stdio.h... " >&6; }
41621 if ${ice_cv_have_rename_decl+:} false; then :
41622 $as_echo_n "(cached) " >&6
41625 ice_cv_have_rename_decl=no
41626 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41627 ice_re_word='(^|[^a-zA-Z0-9_])'
41628 for header in stdio.h; do
41629 # Check for ordinary declaration
41630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41631 /* end confdefs.h. */
41635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41636 $EGREP "${ice_re_word}rename[ ]*\(" >/dev/null 2>&1; then :
41637 ice_cv_have_rename_decl=yes
41641 if test "$ice_cv_have_rename_decl" = yes; then
41644 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41646 /* end confdefs.h. */
41650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41651 $EGREP "${ice_re_word}rename[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41652 ice_cv_have_rename_decl=yes
41656 if test "$ice_cv_have_rename_decl" = yes; then
41663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_rename_decl" >&5
41664 $as_echo "$ice_cv_have_rename_decl" >&6; }
41665 if test "$ice_cv_have_rename_decl" = yes; then
41667 cat >>confdefs.h <<_ACEOF
41668 #define HAVE_RENAME_DECL 1
41676 for ac_func in rewind
41678 ac_fn_c_check_func "$LINENO" "rewind" "ac_cv_func_rewind"
41679 if test "x$ac_cv_func_rewind" = xyes; then :
41680 cat >>confdefs.h <<_ACEOF
41681 #define HAVE_REWIND 1
41683 ice_have_rewind=yes
41687 if test "${ice_have_rewind}" = yes; then
41688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rewind declaration in stdio.h" >&5
41689 $as_echo_n "checking for rewind declaration in stdio.h... " >&6; }
41690 if ${ice_cv_have_rewind_decl+:} false; then :
41691 $as_echo_n "(cached) " >&6
41694 ice_cv_have_rewind_decl=no
41695 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41696 ice_re_word='(^|[^a-zA-Z0-9_])'
41697 for header in stdio.h; do
41698 # Check for ordinary declaration
41699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41700 /* end confdefs.h. */
41704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41705 $EGREP "${ice_re_word}rewind[ ]*\(" >/dev/null 2>&1; then :
41706 ice_cv_have_rewind_decl=yes
41710 if test "$ice_cv_have_rewind_decl" = yes; then
41713 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41715 /* end confdefs.h. */
41719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41720 $EGREP "${ice_re_word}rewind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41721 ice_cv_have_rewind_decl=yes
41725 if test "$ice_cv_have_rewind_decl" = yes; then
41732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_rewind_decl" >&5
41733 $as_echo "$ice_cv_have_rewind_decl" >&6; }
41734 if test "$ice_cv_have_rewind_decl" = yes; then
41736 cat >>confdefs.h <<_ACEOF
41737 #define HAVE_REWIND_DECL 1
41744 ice_have_ruserok=no
41745 for ac_func in ruserok
41747 ac_fn_c_check_func "$LINENO" "ruserok" "ac_cv_func_ruserok"
41748 if test "x$ac_cv_func_ruserok" = xyes; then :
41749 cat >>confdefs.h <<_ACEOF
41750 #define HAVE_RUSEROK 1
41752 ice_have_ruserok=yes
41756 if test "${ice_have_ruserok}" = yes; then
41757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
41758 $as_echo_n "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... " >&6; }
41759 if ${ice_cv_have_ruserok_decl+:} false; then :
41760 $as_echo_n "(cached) " >&6
41763 ice_cv_have_ruserok_decl=no
41764 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41765 ice_re_word='(^|[^a-zA-Z0-9_])'
41766 for header in netdb.h sys/socket.h libc.h unistd.h; do
41767 # Check for ordinary declaration
41768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41769 /* end confdefs.h. */
41773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41774 $EGREP "${ice_re_word}ruserok[ ]*\(" >/dev/null 2>&1; then :
41775 ice_cv_have_ruserok_decl=yes
41779 if test "$ice_cv_have_ruserok_decl" = yes; then
41782 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41784 /* end confdefs.h. */
41788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41789 $EGREP "${ice_re_word}ruserok[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41790 ice_cv_have_ruserok_decl=yes
41794 if test "$ice_cv_have_ruserok_decl" = yes; then
41801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_ruserok_decl" >&5
41802 $as_echo "$ice_cv_have_ruserok_decl" >&6; }
41803 if test "$ice_cv_have_ruserok_decl" = yes; then
41805 cat >>confdefs.h <<_ACEOF
41806 #define HAVE_RUSEROK_DECL 1
41814 for ac_func in select
41816 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
41817 if test "x$ac_cv_func_select" = xyes; then :
41818 cat >>confdefs.h <<_ACEOF
41819 #define HAVE_SELECT 1
41821 ice_have_select=yes
41825 if test "${ice_have_select}" = yes; then
41826 { $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
41827 $as_echo_n "checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h... " >&6; }
41828 if ${ice_cv_have_select_decl+:} false; then :
41829 $as_echo_n "(cached) " >&6
41832 ice_cv_have_select_decl=no
41833 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41834 ice_re_word='(^|[^a-zA-Z0-9_])'
41835 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
41836 # Check for ordinary declaration
41837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41838 /* end confdefs.h. */
41842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41843 $EGREP "${ice_re_word}select[ ]*\(" >/dev/null 2>&1; then :
41844 ice_cv_have_select_decl=yes
41848 if test "$ice_cv_have_select_decl" = yes; then
41851 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41853 /* end confdefs.h. */
41857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41858 $EGREP "${ice_re_word}select[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41859 ice_cv_have_select_decl=yes
41863 if test "$ice_cv_have_select_decl" = yes; then
41870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_select_decl" >&5
41871 $as_echo "$ice_cv_have_select_decl" >&6; }
41872 if test "$ice_cv_have_select_decl" = yes; then
41874 cat >>confdefs.h <<_ACEOF
41875 #define HAVE_SELECT_DECL 1
41883 for ac_header in sys/time.h \
41890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41891 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
41892 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
41893 cat >>confdefs.h <<_ACEOF
41894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select() argument type" >&5
41903 $as_echo_n "checking for select() argument type... " >&6; }
41904 if ${amanda_cv_select_arg_type+:} false; then :
41905 $as_echo_n "(cached) " >&6
41909 cat <<EOF >conftest.$ac_ext
41910 #include "confdefs.h"
41911 #ifdef TIME_WITH_SYS_TIME
41912 # include <sys/time.h>
41915 # ifdef HAVE_SYS_TIME_H
41916 # include <sys/time.h>
41921 #ifdef HAVE_SYS_TYPES_H
41922 # include <sys/types.h>
41924 #ifdef HAVE_SYS_SELECT_H
41925 # include <sys/select.h>
41927 #ifdef HAVE_SYS_SOCKET_H
41928 # include <sys/socket.h>
41930 #ifdef HAVE_UNISTD_H
41931 # include <unistd.h>
41936 #ifdef FD_SET_POINTER
41937 (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
41939 (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
41945 # Figure out the select argument type by first trying to
41946 # compile with the fd_set argument. If the compile fails,
41947 # then we know to use the int. If it suceeds, then try to
41948 # use the int. If the int fails, then use fd_set. If
41949 # both suceeed, then do a line count on the number of
41950 # lines that the compiler spit out, assuming that the
41951 # compile outputing more lines had more errors.
41952 amanda_cv_select_arg_type=no
41953 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
41954 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
41955 if test $? -ne 0; then
41956 amanda_cv_select_arg_type=int
41958 if test "$amanda_cv_select_arg_type" = no; then
41959 $select_compile conftest.$ac_ext 1>conftest.int 2>&1
41960 if test $? -ne 0; then
41961 amanda_cv_select_arg_type=fd_set
41964 if test "$amanda_cv_select_arg_type" = no; then
41965 wc_fdset=`wc -l <conftest.fd_set`
41966 wc_int=`wc -l <conftest.int`
41967 if test "$wc_fdset" -le "$wc_int"; then
41968 amanda_cv_select_arg_type=fd_set
41970 amanda_cv_select_arg_type=int
41977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_select_arg_type" >&5
41978 $as_echo "$amanda_cv_select_arg_type" >&6; }
41980 cat >>confdefs.h <<_ACEOF
41981 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
41988 for ac_func in sendto
41990 ac_fn_c_check_func "$LINENO" "sendto" "ac_cv_func_sendto"
41991 if test "x$ac_cv_func_sendto" = xyes; then :
41992 cat >>confdefs.h <<_ACEOF
41993 #define HAVE_SENDTO 1
41995 ice_have_sendto=yes
41999 if test "${ice_have_sendto}" = yes; then
42000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendto declaration in sys/types.h sys/socket.h" >&5
42001 $as_echo_n "checking for sendto declaration in sys/types.h sys/socket.h... " >&6; }
42002 if ${ice_cv_have_sendto_decl+:} false; then :
42003 $as_echo_n "(cached) " >&6
42006 ice_cv_have_sendto_decl=no
42007 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42008 ice_re_word='(^|[^a-zA-Z0-9_])'
42009 for header in sys/types.h sys/socket.h; do
42010 # Check for ordinary declaration
42011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42012 /* end confdefs.h. */
42016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42017 $EGREP "${ice_re_word}sendto[ ]*\(" >/dev/null 2>&1; then :
42018 ice_cv_have_sendto_decl=yes
42022 if test "$ice_cv_have_sendto_decl" = yes; then
42025 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42027 /* end confdefs.h. */
42031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42032 $EGREP "${ice_re_word}sendto[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42033 ice_cv_have_sendto_decl=yes
42037 if test "$ice_cv_have_sendto_decl" = yes; then
42044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_sendto_decl" >&5
42045 $as_echo "$ice_cv_have_sendto_decl" >&6; }
42046 if test "$ice_cv_have_sendto_decl" = yes; then
42048 cat >>confdefs.h <<_ACEOF
42049 #define HAVE_SENDTO_DECL 1
42056 ice_have_setegid=no
42057 for ac_func in setegid
42059 ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
42060 if test "x$ac_cv_func_setegid" = xyes; then :
42061 cat >>confdefs.h <<_ACEOF
42062 #define HAVE_SETEGID 1
42064 ice_have_setegid=yes
42068 if test "${ice_have_setegid}" = yes; then
42069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setegid declaration in unistd.h" >&5
42070 $as_echo_n "checking for setegid declaration in unistd.h... " >&6; }
42071 if ${ice_cv_have_setegid_decl+:} false; then :
42072 $as_echo_n "(cached) " >&6
42075 ice_cv_have_setegid_decl=no
42076 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42077 ice_re_word='(^|[^a-zA-Z0-9_])'
42078 for header in unistd.h; do
42079 # Check for ordinary declaration
42080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42081 /* end confdefs.h. */
42085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42086 $EGREP "${ice_re_word}setegid[ ]*\(" >/dev/null 2>&1; then :
42087 ice_cv_have_setegid_decl=yes
42091 if test "$ice_cv_have_setegid_decl" = yes; then
42094 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42096 /* end confdefs.h. */
42100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42101 $EGREP "${ice_re_word}setegid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42102 ice_cv_have_setegid_decl=yes
42106 if test "$ice_cv_have_setegid_decl" = yes; then
42113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setegid_decl" >&5
42114 $as_echo "$ice_cv_have_setegid_decl" >&6; }
42115 if test "$ice_cv_have_setegid_decl" = yes; then
42117 cat >>confdefs.h <<_ACEOF
42118 #define HAVE_SETEGID_DECL 1
42125 ice_have_seteuid=no
42126 for ac_func in seteuid
42128 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
42129 if test "x$ac_cv_func_seteuid" = xyes; then :
42130 cat >>confdefs.h <<_ACEOF
42131 #define HAVE_SETEUID 1
42133 ice_have_seteuid=yes
42137 if test "${ice_have_seteuid}" = yes; then
42138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seteuid declaration in unistd.h" >&5
42139 $as_echo_n "checking for seteuid declaration in unistd.h... " >&6; }
42140 if ${ice_cv_have_seteuid_decl+:} false; then :
42141 $as_echo_n "(cached) " >&6
42144 ice_cv_have_seteuid_decl=no
42145 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42146 ice_re_word='(^|[^a-zA-Z0-9_])'
42147 for header in unistd.h; do
42148 # Check for ordinary declaration
42149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42150 /* end confdefs.h. */
42154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42155 $EGREP "${ice_re_word}seteuid[ ]*\(" >/dev/null 2>&1; then :
42156 ice_cv_have_seteuid_decl=yes
42160 if test "$ice_cv_have_seteuid_decl" = yes; then
42163 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42165 /* end confdefs.h. */
42169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42170 $EGREP "${ice_re_word}seteuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42171 ice_cv_have_seteuid_decl=yes
42175 if test "$ice_cv_have_seteuid_decl" = yes; then
42182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_seteuid_decl" >&5
42183 $as_echo "$ice_cv_have_seteuid_decl" >&6; }
42184 if test "$ice_cv_have_seteuid_decl" = yes; then
42186 cat >>confdefs.h <<_ACEOF
42187 #define HAVE_SETEUID_DECL 1
42194 ice_have_setresgid=no
42195 for ac_func in setresgid
42197 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
42198 if test "x$ac_cv_func_setresgid" = xyes; then :
42199 cat >>confdefs.h <<_ACEOF
42200 #define HAVE_SETRESGID 1
42202 ice_have_setresgid=yes
42206 if test "${ice_have_setresgid}" = yes; then
42207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setresgid declaration in unistd.h" >&5
42208 $as_echo_n "checking for setresgid declaration in unistd.h... " >&6; }
42209 if ${ice_cv_have_setresgid_decl+:} false; then :
42210 $as_echo_n "(cached) " >&6
42213 ice_cv_have_setresgid_decl=no
42214 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42215 ice_re_word='(^|[^a-zA-Z0-9_])'
42216 for header in unistd.h; do
42217 # Check for ordinary declaration
42218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42219 /* end confdefs.h. */
42223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42224 $EGREP "${ice_re_word}setresgid[ ]*\(" >/dev/null 2>&1; then :
42225 ice_cv_have_setresgid_decl=yes
42229 if test "$ice_cv_have_setresgid_decl" = yes; then
42232 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42234 /* end confdefs.h. */
42238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42239 $EGREP "${ice_re_word}setresgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42240 ice_cv_have_setresgid_decl=yes
42244 if test "$ice_cv_have_setresgid_decl" = yes; then
42251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setresgid_decl" >&5
42252 $as_echo "$ice_cv_have_setresgid_decl" >&6; }
42253 if test "$ice_cv_have_setresgid_decl" = yes; then
42255 cat >>confdefs.h <<_ACEOF
42256 #define HAVE_SETRESGID_DECL 1
42263 ice_have_setresuid=no
42264 for ac_func in setresuid
42266 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
42267 if test "x$ac_cv_func_setresuid" = xyes; then :
42268 cat >>confdefs.h <<_ACEOF
42269 #define HAVE_SETRESUID 1
42271 ice_have_setresuid=yes
42275 if test "${ice_have_setresuid}" = yes; then
42276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setresuid declaration in unistd.h" >&5
42277 $as_echo_n "checking for setresuid declaration in unistd.h... " >&6; }
42278 if ${ice_cv_have_setresuid_decl+:} false; then :
42279 $as_echo_n "(cached) " >&6
42282 ice_cv_have_setresuid_decl=no
42283 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42284 ice_re_word='(^|[^a-zA-Z0-9_])'
42285 for header in unistd.h; do
42286 # Check for ordinary declaration
42287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42288 /* end confdefs.h. */
42292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42293 $EGREP "${ice_re_word}setresuid[ ]*\(" >/dev/null 2>&1; then :
42294 ice_cv_have_setresuid_decl=yes
42298 if test "$ice_cv_have_setresuid_decl" = yes; then
42301 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42303 /* end confdefs.h. */
42307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42308 $EGREP "${ice_re_word}setresuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42309 ice_cv_have_setresuid_decl=yes
42313 if test "$ice_cv_have_setresuid_decl" = yes; then
42320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setresuid_decl" >&5
42321 $as_echo "$ice_cv_have_setresuid_decl" >&6; }
42322 if test "$ice_cv_have_setresuid_decl" = yes; then
42324 cat >>confdefs.h <<_ACEOF
42325 #define HAVE_SETRESUID_DECL 1
42332 ice_have_snprintf=no
42333 for ac_func in snprintf
42335 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
42336 if test "x$ac_cv_func_snprintf" = xyes; then :
42337 cat >>confdefs.h <<_ACEOF
42338 #define HAVE_SNPRINTF 1
42340 ice_have_snprintf=yes
42344 if test "${ice_have_snprintf}" = yes; then
42345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snprintf declaration in stdio.h" >&5
42346 $as_echo_n "checking for snprintf declaration in stdio.h... " >&6; }
42347 if ${ice_cv_have_snprintf_decl+:} false; then :
42348 $as_echo_n "(cached) " >&6
42351 ice_cv_have_snprintf_decl=no
42352 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42353 ice_re_word='(^|[^a-zA-Z0-9_])'
42354 for header in stdio.h; do
42355 # Check for ordinary declaration
42356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42357 /* end confdefs.h. */
42361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42362 $EGREP "${ice_re_word}snprintf[ ]*\(" >/dev/null 2>&1; then :
42363 ice_cv_have_snprintf_decl=yes
42367 if test "$ice_cv_have_snprintf_decl" = yes; then
42370 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42372 /* end confdefs.h. */
42376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42377 $EGREP "${ice_re_word}snprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42378 ice_cv_have_snprintf_decl=yes
42382 if test "$ice_cv_have_snprintf_decl" = yes; then
42389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_snprintf_decl" >&5
42390 $as_echo "$ice_cv_have_snprintf_decl" >&6; }
42391 if test "$ice_cv_have_snprintf_decl" = yes; then
42393 cat >>confdefs.h <<_ACEOF
42394 #define HAVE_SNPRINTF_DECL 1
42401 ice_have_vsnprintf=no
42402 for ac_func in vsnprintf
42404 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
42405 if test "x$ac_cv_func_vsnprintf" = xyes; then :
42406 cat >>confdefs.h <<_ACEOF
42407 #define HAVE_VSNPRINTF 1
42409 ice_have_vsnprintf=yes
42413 if test "${ice_have_vsnprintf}" = yes; then
42414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vsnprintf declaration in stdio.h" >&5
42415 $as_echo_n "checking for vsnprintf declaration in stdio.h... " >&6; }
42416 if ${ice_cv_have_vsnprintf_decl+:} false; then :
42417 $as_echo_n "(cached) " >&6
42420 ice_cv_have_vsnprintf_decl=no
42421 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42422 ice_re_word='(^|[^a-zA-Z0-9_])'
42423 for header in stdio.h; do
42424 # Check for ordinary declaration
42425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42426 /* end confdefs.h. */
42430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42431 $EGREP "${ice_re_word}vsnprintf[ ]*\(" >/dev/null 2>&1; then :
42432 ice_cv_have_vsnprintf_decl=yes
42436 if test "$ice_cv_have_vsnprintf_decl" = yes; then
42439 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42441 /* end confdefs.h. */
42445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42446 $EGREP "${ice_re_word}vsnprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42447 ice_cv_have_vsnprintf_decl=yes
42451 if test "$ice_cv_have_vsnprintf_decl" = yes; then
42458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_vsnprintf_decl" >&5
42459 $as_echo "$ice_cv_have_vsnprintf_decl" >&6; }
42460 if test "$ice_cv_have_vsnprintf_decl" = yes; then
42462 cat >>confdefs.h <<_ACEOF
42463 #define HAVE_VSNPRINTF_DECL 1
42470 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
42471 if test "x$ac_cv_func_setpgid" = xyes; then :
42474 $as_echo "#define HAVE_SETPGID 1" >>confdefs.h
42477 ice_have_setpgid=no
42478 for ac_func in setpgid
42480 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
42481 if test "x$ac_cv_func_setpgid" = xyes; then :
42482 cat >>confdefs.h <<_ACEOF
42483 #define HAVE_SETPGID 1
42485 ice_have_setpgid=yes
42489 if test "${ice_have_setpgid}" = yes; then
42490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setpgid declaration in sys/types.h unistd.h" >&5
42491 $as_echo_n "checking for setpgid declaration in sys/types.h unistd.h... " >&6; }
42492 if ${ice_cv_have_setpgid_decl+:} false; then :
42493 $as_echo_n "(cached) " >&6
42496 ice_cv_have_setpgid_decl=no
42497 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42498 ice_re_word='(^|[^a-zA-Z0-9_])'
42499 for header in sys/types.h unistd.h; do
42500 # Check for ordinary declaration
42501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42502 /* end confdefs.h. */
42506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42507 $EGREP "${ice_re_word}setpgid[ ]*\(" >/dev/null 2>&1; then :
42508 ice_cv_have_setpgid_decl=yes
42512 if test "$ice_cv_have_setpgid_decl" = yes; then
42515 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42517 /* end confdefs.h. */
42521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42522 $EGREP "${ice_re_word}setpgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42523 ice_cv_have_setpgid_decl=yes
42527 if test "$ice_cv_have_setpgid_decl" = yes; then
42534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setpgid_decl" >&5
42535 $as_echo "$ice_cv_have_setpgid_decl" >&6; }
42536 if test "$ice_cv_have_setpgid_decl" = yes; then
42538 cat >>confdefs.h <<_ACEOF
42539 #define HAVE_SETPGID_DECL 1
42549 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
42550 if test "x$ac_cv_func_setpgrp" = xyes; then :
42551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
42552 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
42553 if ${ac_cv_func_setpgrp_void+:} false; then :
42554 $as_echo_n "(cached) " >&6
42556 if test "$cross_compiling" = yes; then :
42557 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
42559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42560 /* end confdefs.h. */
42561 $ac_includes_default
42565 /* If this system has a BSD-style setpgrp which takes arguments,
42566 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
42567 exit successfully. */
42568 return setpgrp (1,1) != -1;
42573 if ac_fn_c_try_run "$LINENO"; then :
42574 ac_cv_func_setpgrp_void=no
42576 ac_cv_func_setpgrp_void=yes
42578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42579 conftest.$ac_objext conftest.beam conftest.$ac_ext
42583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
42584 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
42585 if test $ac_cv_func_setpgrp_void = yes; then
42587 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
42594 ice_have_setpgrp=no
42595 for ac_func in setpgrp
42597 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
42598 if test "x$ac_cv_func_setpgrp" = xyes; then :
42599 cat >>confdefs.h <<_ACEOF
42600 #define HAVE_SETPGRP 1
42602 ice_have_setpgrp=yes
42606 if test "${ice_have_setpgrp}" = yes; then
42607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
42608 $as_echo_n "checking for setpgrp declaration in sys/types.h unistd.h libc.h... " >&6; }
42609 if ${ice_cv_have_setpgrp_decl+:} false; then :
42610 $as_echo_n "(cached) " >&6
42613 ice_cv_have_setpgrp_decl=no
42614 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42615 ice_re_word='(^|[^a-zA-Z0-9_])'
42616 for header in sys/types.h unistd.h libc.h; do
42617 # Check for ordinary declaration
42618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42619 /* end confdefs.h. */
42623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42624 $EGREP "${ice_re_word}setpgrp[ ]*\(" >/dev/null 2>&1; then :
42625 ice_cv_have_setpgrp_decl=yes
42629 if test "$ice_cv_have_setpgrp_decl" = yes; then
42632 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42634 /* end confdefs.h. */
42638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42639 $EGREP "${ice_re_word}setpgrp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42640 ice_cv_have_setpgrp_decl=yes
42644 if test "$ice_cv_have_setpgrp_decl" = yes; then
42651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setpgrp_decl" >&5
42652 $as_echo "$ice_cv_have_setpgrp_decl" >&6; }
42653 if test "$ice_cv_have_setpgrp_decl" = yes; then
42655 cat >>confdefs.h <<_ACEOF
42656 #define HAVE_SETPGRP_DECL 1
42663 ice_have_setsockopt=no
42664 for ac_func in setsockopt
42666 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
42667 if test "x$ac_cv_func_setsockopt" = xyes; then :
42668 cat >>confdefs.h <<_ACEOF
42669 #define HAVE_SETSOCKOPT 1
42671 ice_have_setsockopt=yes
42675 if test "${ice_have_setsockopt}" = yes; then
42676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
42677 $as_echo_n "checking for setsockopt declaration in sys/types.h sys/socket.h... " >&6; }
42678 if ${ice_cv_have_setsockopt_decl+:} false; then :
42679 $as_echo_n "(cached) " >&6
42682 ice_cv_have_setsockopt_decl=no
42683 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42684 ice_re_word='(^|[^a-zA-Z0-9_])'
42685 for header in sys/types.h sys/socket.h; do
42686 # Check for ordinary declaration
42687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42688 /* end confdefs.h. */
42692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42693 $EGREP "${ice_re_word}setsockopt[ ]*\(" >/dev/null 2>&1; then :
42694 ice_cv_have_setsockopt_decl=yes
42698 if test "$ice_cv_have_setsockopt_decl" = yes; then
42701 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42703 /* end confdefs.h. */
42707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42708 $EGREP "${ice_re_word}setsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42709 ice_cv_have_setsockopt_decl=yes
42713 if test "$ice_cv_have_setsockopt_decl" = yes; then
42720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setsockopt_decl" >&5
42721 $as_echo "$ice_cv_have_setsockopt_decl" >&6; }
42722 if test "$ice_cv_have_setsockopt_decl" = yes; then
42724 cat >>confdefs.h <<_ACEOF
42725 #define HAVE_SETSOCKOPT_DECL 1
42731 for ac_func in sigaction sigemptyset sigvec
42733 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42734 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
42735 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
42736 cat >>confdefs.h <<_ACEOF
42737 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42745 for ac_func in socket
42747 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
42748 if test "x$ac_cv_func_socket" = xyes; then :
42749 cat >>confdefs.h <<_ACEOF
42750 #define HAVE_SOCKET 1
42752 ice_have_socket=yes
42756 if test "${ice_have_socket}" = yes; then
42757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket declaration in sys/types.h sys/socket.h" >&5
42758 $as_echo_n "checking for socket declaration in sys/types.h sys/socket.h... " >&6; }
42759 if ${ice_cv_have_socket_decl+:} false; then :
42760 $as_echo_n "(cached) " >&6
42763 ice_cv_have_socket_decl=no
42764 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42765 ice_re_word='(^|[^a-zA-Z0-9_])'
42766 for header in sys/types.h sys/socket.h; do
42767 # Check for ordinary declaration
42768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42769 /* end confdefs.h. */
42773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42774 $EGREP "${ice_re_word}socket[ ]*\(" >/dev/null 2>&1; then :
42775 ice_cv_have_socket_decl=yes
42779 if test "$ice_cv_have_socket_decl" = yes; then
42782 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42784 /* end confdefs.h. */
42788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42789 $EGREP "${ice_re_word}socket[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42790 ice_cv_have_socket_decl=yes
42794 if test "$ice_cv_have_socket_decl" = yes; then
42801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_socket_decl" >&5
42802 $as_echo "$ice_cv_have_socket_decl" >&6; }
42803 if test "$ice_cv_have_socket_decl" = yes; then
42805 cat >>confdefs.h <<_ACEOF
42806 #define HAVE_SOCKET_DECL 1
42813 ice_have_socketpair=no
42814 for ac_func in socketpair
42816 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
42817 if test "x$ac_cv_func_socketpair" = xyes; then :
42818 cat >>confdefs.h <<_ACEOF
42819 #define HAVE_SOCKETPAIR 1
42821 ice_have_socketpair=yes
42825 if test "${ice_have_socketpair}" = yes; then
42826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
42827 $as_echo_n "checking for socketpair declaration in sys/types.h sys/socket.h... " >&6; }
42828 if ${ice_cv_have_socketpair_decl+:} false; then :
42829 $as_echo_n "(cached) " >&6
42832 ice_cv_have_socketpair_decl=no
42833 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42834 ice_re_word='(^|[^a-zA-Z0-9_])'
42835 for header in sys/types.h sys/socket.h; do
42836 # Check for ordinary declaration
42837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42838 /* end confdefs.h. */
42842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42843 $EGREP "${ice_re_word}socketpair[ ]*\(" >/dev/null 2>&1; then :
42844 ice_cv_have_socketpair_decl=yes
42848 if test "$ice_cv_have_socketpair_decl" = yes; then
42851 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42853 /* end confdefs.h. */
42857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42858 $EGREP "${ice_re_word}socketpair[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42859 ice_cv_have_socketpair_decl=yes
42863 if test "$ice_cv_have_socketpair_decl" = yes; then
42870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_socketpair_decl" >&5
42871 $as_echo "$ice_cv_have_socketpair_decl" >&6; }
42872 if test "$ice_cv_have_socketpair_decl" = yes; then
42874 cat >>confdefs.h <<_ACEOF
42875 #define HAVE_SOCKETPAIR_DECL 1
42883 for ac_func in sscanf
42885 ac_fn_c_check_func "$LINENO" "sscanf" "ac_cv_func_sscanf"
42886 if test "x$ac_cv_func_sscanf" = xyes; then :
42887 cat >>confdefs.h <<_ACEOF
42888 #define HAVE_SSCANF 1
42890 ice_have_sscanf=yes
42894 if test "${ice_have_sscanf}" = yes; then
42895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sscanf declaration in stdio.h" >&5
42896 $as_echo_n "checking for sscanf declaration in stdio.h... " >&6; }
42897 if ${ice_cv_have_sscanf_decl+:} false; then :
42898 $as_echo_n "(cached) " >&6
42901 ice_cv_have_sscanf_decl=no
42902 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42903 ice_re_word='(^|[^a-zA-Z0-9_])'
42904 for header in stdio.h; do
42905 # Check for ordinary declaration
42906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42907 /* end confdefs.h. */
42911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42912 $EGREP "${ice_re_word}sscanf[ ]*\(" >/dev/null 2>&1; then :
42913 ice_cv_have_sscanf_decl=yes
42917 if test "$ice_cv_have_sscanf_decl" = yes; then
42920 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42922 /* end confdefs.h. */
42926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42927 $EGREP "${ice_re_word}sscanf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42928 ice_cv_have_sscanf_decl=yes
42932 if test "$ice_cv_have_sscanf_decl" = yes; then
42939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_sscanf_decl" >&5
42940 $as_echo "$ice_cv_have_sscanf_decl" >&6; }
42941 if test "$ice_cv_have_sscanf_decl" = yes; then
42943 cat >>confdefs.h <<_ACEOF
42944 #define HAVE_SSCANF_DECL 1
42951 ice_have_strerror=no
42952 for ac_func in strerror
42954 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
42955 if test "x$ac_cv_func_strerror" = xyes; then :
42956 cat >>confdefs.h <<_ACEOF
42957 #define HAVE_STRERROR 1
42959 ice_have_strerror=yes
42963 if test "${ice_have_strerror}" = yes; then
42964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror declaration in string.h strings.h" >&5
42965 $as_echo_n "checking for strerror declaration in string.h strings.h... " >&6; }
42966 if ${ice_cv_have_strerror_decl+:} false; then :
42967 $as_echo_n "(cached) " >&6
42970 ice_cv_have_strerror_decl=no
42971 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42972 ice_re_word='(^|[^a-zA-Z0-9_])'
42973 for header in string.h strings.h; do
42974 # Check for ordinary declaration
42975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42976 /* end confdefs.h. */
42980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42981 $EGREP "${ice_re_word}strerror[ ]*\(" >/dev/null 2>&1; then :
42982 ice_cv_have_strerror_decl=yes
42986 if test "$ice_cv_have_strerror_decl" = yes; then
42989 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42991 /* end confdefs.h. */
42995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42996 $EGREP "${ice_re_word}strerror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42997 ice_cv_have_strerror_decl=yes
43001 if test "$ice_cv_have_strerror_decl" = yes; then
43008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strerror_decl" >&5
43009 $as_echo "$ice_cv_have_strerror_decl" >&6; }
43010 if test "$ice_cv_have_strerror_decl" = yes; then
43012 cat >>confdefs.h <<_ACEOF
43013 #define HAVE_STRERROR_DECL 1
43019 for ac_func in strftime
43021 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
43022 if test "x$ac_cv_func_strftime" = xyes; then :
43023 cat >>confdefs.h <<_ACEOF
43024 #define HAVE_STRFTIME 1
43028 # strftime is in -lintl on SCO UNIX.
43029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
43030 $as_echo_n "checking for strftime in -lintl... " >&6; }
43031 if ${ac_cv_lib_intl_strftime+:} false; then :
43032 $as_echo_n "(cached) " >&6
43034 ac_check_lib_save_LIBS=$LIBS
43035 LIBS="-lintl $LIBS"
43036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43037 /* end confdefs.h. */
43039 /* Override any GCC internal prototype to avoid an error.
43040 Use char because int might match the return type of a GCC
43041 builtin and then its argument prototype would still apply. */
43049 return strftime ();
43054 if ac_fn_c_try_link "$LINENO"; then :
43055 ac_cv_lib_intl_strftime=yes
43057 ac_cv_lib_intl_strftime=no
43059 rm -f core conftest.err conftest.$ac_objext \
43060 conftest$ac_exeext conftest.$ac_ext
43061 LIBS=$ac_check_lib_save_LIBS
43063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
43064 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
43065 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
43066 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
43068 LIBS="-lintl $LIBS"
43075 ice_have_strftime=no
43076 for ac_func in strftime
43078 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
43079 if test "x$ac_cv_func_strftime" = xyes; then :
43080 cat >>confdefs.h <<_ACEOF
43081 #define HAVE_STRFTIME 1
43083 ice_have_strftime=yes
43087 if test "${ice_have_strftime}" = yes; then
43088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime declaration in time.h sys/time.h" >&5
43089 $as_echo_n "checking for strftime declaration in time.h sys/time.h... " >&6; }
43090 if ${ice_cv_have_strftime_decl+:} false; then :
43091 $as_echo_n "(cached) " >&6
43094 ice_cv_have_strftime_decl=no
43095 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43096 ice_re_word='(^|[^a-zA-Z0-9_])'
43097 for header in time.h sys/time.h; do
43098 # Check for ordinary declaration
43099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43100 /* end confdefs.h. */
43104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43105 $EGREP "${ice_re_word}strftime[ ]*\(" >/dev/null 2>&1; then :
43106 ice_cv_have_strftime_decl=yes
43110 if test "$ice_cv_have_strftime_decl" = yes; then
43113 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43115 /* end confdefs.h. */
43119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43120 $EGREP "${ice_re_word}strftime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43121 ice_cv_have_strftime_decl=yes
43125 if test "$ice_cv_have_strftime_decl" = yes; then
43132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strftime_decl" >&5
43133 $as_echo "$ice_cv_have_strftime_decl" >&6; }
43134 if test "$ice_cv_have_strftime_decl" = yes; then
43136 cat >>confdefs.h <<_ACEOF
43137 #define HAVE_STRFTIME_DECL 1
43144 ice_have_strncasecmp=no
43145 for ac_func in strncasecmp
43147 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
43148 if test "x$ac_cv_func_strncasecmp" = xyes; then :
43149 cat >>confdefs.h <<_ACEOF
43150 #define HAVE_STRNCASECMP 1
43152 ice_have_strncasecmp=yes
43156 if test "${ice_have_strncasecmp}" = yes; then
43157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strncasecmp declaration in string.h strings.h" >&5
43158 $as_echo_n "checking for strncasecmp declaration in string.h strings.h... " >&6; }
43159 if ${ice_cv_have_strncasecmp_decl+:} false; then :
43160 $as_echo_n "(cached) " >&6
43163 ice_cv_have_strncasecmp_decl=no
43164 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43165 ice_re_word='(^|[^a-zA-Z0-9_])'
43166 for header in string.h strings.h; do
43167 # Check for ordinary declaration
43168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43169 /* end confdefs.h. */
43173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43174 $EGREP "${ice_re_word}strncasecmp[ ]*\(" >/dev/null 2>&1; then :
43175 ice_cv_have_strncasecmp_decl=yes
43179 if test "$ice_cv_have_strncasecmp_decl" = yes; then
43182 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43184 /* end confdefs.h. */
43188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43189 $EGREP "${ice_re_word}strncasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43190 ice_cv_have_strncasecmp_decl=yes
43194 if test "$ice_cv_have_strncasecmp_decl" = yes; then
43201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strncasecmp_decl" >&5
43202 $as_echo "$ice_cv_have_strncasecmp_decl" >&6; }
43203 if test "$ice_cv_have_strncasecmp_decl" = yes; then
43205 cat >>confdefs.h <<_ACEOF
43206 #define HAVE_STRNCASECMP_DECL 1
43214 for ac_func in syslog
43216 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
43217 if test "x$ac_cv_func_syslog" = xyes; then :
43218 cat >>confdefs.h <<_ACEOF
43219 #define HAVE_SYSLOG 1
43221 ice_have_syslog=yes
43225 if test "${ice_have_syslog}" = yes; then
43226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog declaration in syslog.h" >&5
43227 $as_echo_n "checking for syslog declaration in syslog.h... " >&6; }
43228 if ${ice_cv_have_syslog_decl+:} false; then :
43229 $as_echo_n "(cached) " >&6
43232 ice_cv_have_syslog_decl=no
43233 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43234 ice_re_word='(^|[^a-zA-Z0-9_])'
43235 for header in syslog.h; do
43236 # Check for ordinary declaration
43237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43238 /* end confdefs.h. */
43242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43243 $EGREP "${ice_re_word}syslog[ ]*\(" >/dev/null 2>&1; then :
43244 ice_cv_have_syslog_decl=yes
43248 if test "$ice_cv_have_syslog_decl" = yes; then
43251 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43253 /* end confdefs.h. */
43257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43258 $EGREP "${ice_re_word}syslog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43259 ice_cv_have_syslog_decl=yes
43263 if test "$ice_cv_have_syslog_decl" = yes; then
43270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_syslog_decl" >&5
43271 $as_echo "$ice_cv_have_syslog_decl" >&6; }
43272 if test "$ice_cv_have_syslog_decl" = yes; then
43274 cat >>confdefs.h <<_ACEOF
43275 #define HAVE_SYSLOG_DECL 1
43283 for ac_func in system
43285 ac_fn_c_check_func "$LINENO" "system" "ac_cv_func_system"
43286 if test "x$ac_cv_func_system" = xyes; then :
43287 cat >>confdefs.h <<_ACEOF
43288 #define HAVE_SYSTEM 1
43290 ice_have_system=yes
43294 if test "${ice_have_system}" = yes; then
43295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system declaration in stdlib.h" >&5
43296 $as_echo_n "checking for system declaration in stdlib.h... " >&6; }
43297 if ${ice_cv_have_system_decl+:} false; then :
43298 $as_echo_n "(cached) " >&6
43301 ice_cv_have_system_decl=no
43302 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43303 ice_re_word='(^|[^a-zA-Z0-9_])'
43304 for header in stdlib.h; do
43305 # Check for ordinary declaration
43306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43307 /* end confdefs.h. */
43311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43312 $EGREP "${ice_re_word}system[ ]*\(" >/dev/null 2>&1; then :
43313 ice_cv_have_system_decl=yes
43317 if test "$ice_cv_have_system_decl" = yes; then
43320 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43322 /* end confdefs.h. */
43326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43327 $EGREP "${ice_re_word}system[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43328 ice_cv_have_system_decl=yes
43332 if test "$ice_cv_have_system_decl" = yes; then
43339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_system_decl" >&5
43340 $as_echo "$ice_cv_have_system_decl" >&6; }
43341 if test "$ice_cv_have_system_decl" = yes; then
43343 cat >>confdefs.h <<_ACEOF
43344 #define HAVE_SYSTEM_DECL 1
43352 for ac_func in time
43354 ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time"
43355 if test "x$ac_cv_func_time" = xyes; then :
43356 cat >>confdefs.h <<_ACEOF
43357 #define HAVE_TIME 1
43363 if test "${ice_have_time}" = yes; then
43364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time declaration in time.h sys/time.h" >&5
43365 $as_echo_n "checking for time declaration in time.h sys/time.h... " >&6; }
43366 if ${ice_cv_have_time_decl+:} false; then :
43367 $as_echo_n "(cached) " >&6
43370 ice_cv_have_time_decl=no
43371 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43372 ice_re_word='(^|[^a-zA-Z0-9_])'
43373 for header in time.h sys/time.h; do
43374 # Check for ordinary declaration
43375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43376 /* end confdefs.h. */
43380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43381 $EGREP "${ice_re_word}time[ ]*\(" >/dev/null 2>&1; then :
43382 ice_cv_have_time_decl=yes
43386 if test "$ice_cv_have_time_decl" = yes; then
43389 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43391 /* end confdefs.h. */
43395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43396 $EGREP "${ice_re_word}time[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43397 ice_cv_have_time_decl=yes
43401 if test "$ice_cv_have_time_decl" = yes; then
43408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_time_decl" >&5
43409 $as_echo "$ice_cv_have_time_decl" >&6; }
43410 if test "$ice_cv_have_time_decl" = yes; then
43412 cat >>confdefs.h <<_ACEOF
43413 #define HAVE_TIME_DECL 1
43420 ice_have_tolower=no
43421 for ac_func in tolower
43423 ac_fn_c_check_func "$LINENO" "tolower" "ac_cv_func_tolower"
43424 if test "x$ac_cv_func_tolower" = xyes; then :
43425 cat >>confdefs.h <<_ACEOF
43426 #define HAVE_TOLOWER 1
43428 ice_have_tolower=yes
43432 if test "${ice_have_tolower}" = yes; then
43433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tolower declaration in ctype.h" >&5
43434 $as_echo_n "checking for tolower declaration in ctype.h... " >&6; }
43435 if ${ice_cv_have_tolower_decl+:} false; then :
43436 $as_echo_n "(cached) " >&6
43439 ice_cv_have_tolower_decl=no
43440 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43441 ice_re_word='(^|[^a-zA-Z0-9_])'
43442 for header in ctype.h; do
43443 # Check for ordinary declaration
43444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43445 /* end confdefs.h. */
43449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43450 $EGREP "${ice_re_word}tolower[ ]*\(" >/dev/null 2>&1; then :
43451 ice_cv_have_tolower_decl=yes
43455 if test "$ice_cv_have_tolower_decl" = yes; then
43458 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43460 /* end confdefs.h. */
43464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43465 $EGREP "${ice_re_word}tolower[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43466 ice_cv_have_tolower_decl=yes
43470 if test "$ice_cv_have_tolower_decl" = yes; then
43477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_tolower_decl" >&5
43478 $as_echo "$ice_cv_have_tolower_decl" >&6; }
43479 if test "$ice_cv_have_tolower_decl" = yes; then
43481 cat >>confdefs.h <<_ACEOF
43482 #define HAVE_TOLOWER_DECL 1
43489 ice_have_toupper=no
43490 for ac_func in toupper
43492 ac_fn_c_check_func "$LINENO" "toupper" "ac_cv_func_toupper"
43493 if test "x$ac_cv_func_toupper" = xyes; then :
43494 cat >>confdefs.h <<_ACEOF
43495 #define HAVE_TOUPPER 1
43497 ice_have_toupper=yes
43501 if test "${ice_have_toupper}" = yes; then
43502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toupper declaration in ctype.h" >&5
43503 $as_echo_n "checking for toupper declaration in ctype.h... " >&6; }
43504 if ${ice_cv_have_toupper_decl+:} false; then :
43505 $as_echo_n "(cached) " >&6
43508 ice_cv_have_toupper_decl=no
43509 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43510 ice_re_word='(^|[^a-zA-Z0-9_])'
43511 for header in ctype.h; do
43512 # Check for ordinary declaration
43513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43514 /* end confdefs.h. */
43518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43519 $EGREP "${ice_re_word}toupper[ ]*\(" >/dev/null 2>&1; then :
43520 ice_cv_have_toupper_decl=yes
43524 if test "$ice_cv_have_toupper_decl" = yes; then
43527 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43529 /* end confdefs.h. */
43533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43534 $EGREP "${ice_re_word}toupper[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43535 ice_cv_have_toupper_decl=yes
43539 if test "$ice_cv_have_toupper_decl" = yes; then
43546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_toupper_decl" >&5
43547 $as_echo "$ice_cv_have_toupper_decl" >&6; }
43548 if test "$ice_cv_have_toupper_decl" = yes; then
43550 cat >>confdefs.h <<_ACEOF
43551 #define HAVE_TOUPPER_DECL 1
43559 for ac_func in ungetc
43561 ac_fn_c_check_func "$LINENO" "ungetc" "ac_cv_func_ungetc"
43562 if test "x$ac_cv_func_ungetc" = xyes; then :
43563 cat >>confdefs.h <<_ACEOF
43564 #define HAVE_UNGETC 1
43566 ice_have_ungetc=yes
43570 if test "${ice_have_ungetc}" = yes; then
43571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ungetc declaration in stdio.h" >&5
43572 $as_echo_n "checking for ungetc declaration in stdio.h... " >&6; }
43573 if ${ice_cv_have_ungetc_decl+:} false; then :
43574 $as_echo_n "(cached) " >&6
43577 ice_cv_have_ungetc_decl=no
43578 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43579 ice_re_word='(^|[^a-zA-Z0-9_])'
43580 for header in stdio.h; do
43581 # Check for ordinary declaration
43582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43583 /* end confdefs.h. */
43587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43588 $EGREP "${ice_re_word}ungetc[ ]*\(" >/dev/null 2>&1; then :
43589 ice_cv_have_ungetc_decl=yes
43593 if test "$ice_cv_have_ungetc_decl" = yes; then
43596 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43598 /* end confdefs.h. */
43602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43603 $EGREP "${ice_re_word}ungetc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43604 ice_cv_have_ungetc_decl=yes
43608 if test "$ice_cv_have_ungetc_decl" = yes; then
43615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_ungetc_decl" >&5
43616 $as_echo "$ice_cv_have_ungetc_decl" >&6; }
43617 if test "$ice_cv_have_ungetc_decl" = yes; then
43619 cat >>confdefs.h <<_ACEOF
43620 #define HAVE_UNGETC_DECL 1
43626 for ac_func in unsetenv
43628 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
43629 if test "x$ac_cv_func_unsetenv" = xyes; then :
43630 cat >>confdefs.h <<_ACEOF
43631 #define HAVE_UNSETENV 1
43638 ice_have_vfprintf=no
43639 for ac_func in vfprintf
43641 ac_fn_c_check_func "$LINENO" "vfprintf" "ac_cv_func_vfprintf"
43642 if test "x$ac_cv_func_vfprintf" = xyes; then :
43643 cat >>confdefs.h <<_ACEOF
43644 #define HAVE_VFPRINTF 1
43646 ice_have_vfprintf=yes
43650 if test "${ice_have_vfprintf}" = yes; then
43651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vfprintf declaration in stdio.h stdlib.h" >&5
43652 $as_echo_n "checking for vfprintf declaration in stdio.h stdlib.h... " >&6; }
43653 if ${ice_cv_have_vfprintf_decl+:} false; then :
43654 $as_echo_n "(cached) " >&6
43657 ice_cv_have_vfprintf_decl=no
43658 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43659 ice_re_word='(^|[^a-zA-Z0-9_])'
43660 for header in stdio.h stdlib.h; do
43661 # Check for ordinary declaration
43662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43663 /* end confdefs.h. */
43667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43668 $EGREP "${ice_re_word}vfprintf[ ]*\(" >/dev/null 2>&1; then :
43669 ice_cv_have_vfprintf_decl=yes
43673 if test "$ice_cv_have_vfprintf_decl" = yes; then
43676 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43678 /* end confdefs.h. */
43682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43683 $EGREP "${ice_re_word}vfprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43684 ice_cv_have_vfprintf_decl=yes
43688 if test "$ice_cv_have_vfprintf_decl" = yes; then
43695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_vfprintf_decl" >&5
43696 $as_echo "$ice_cv_have_vfprintf_decl" >&6; }
43697 if test "$ice_cv_have_vfprintf_decl" = yes; then
43699 cat >>confdefs.h <<_ACEOF
43700 #define HAVE_VFPRINTF_DECL 1
43707 ice_have_vprintf=no
43708 for ac_func in vprintf
43710 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
43711 if test "x$ac_cv_func_vprintf" = xyes; then :
43712 cat >>confdefs.h <<_ACEOF
43713 #define HAVE_VPRINTF 1
43715 ice_have_vprintf=yes
43719 if test "${ice_have_vprintf}" = yes; then
43720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vprintf declaration in stdio.h stdlib.h" >&5
43721 $as_echo_n "checking for vprintf declaration in stdio.h stdlib.h... " >&6; }
43722 if ${ice_cv_have_vprintf_decl+:} false; then :
43723 $as_echo_n "(cached) " >&6
43726 ice_cv_have_vprintf_decl=no
43727 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43728 ice_re_word='(^|[^a-zA-Z0-9_])'
43729 for header in stdio.h stdlib.h; do
43730 # Check for ordinary declaration
43731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43732 /* end confdefs.h. */
43736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43737 $EGREP "${ice_re_word}vprintf[ ]*\(" >/dev/null 2>&1; then :
43738 ice_cv_have_vprintf_decl=yes
43742 if test "$ice_cv_have_vprintf_decl" = yes; then
43745 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43747 /* end confdefs.h. */
43751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43752 $EGREP "${ice_re_word}vprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43753 ice_cv_have_vprintf_decl=yes
43757 if test "$ice_cv_have_vprintf_decl" = yes; then
43764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_vprintf_decl" >&5
43765 $as_echo "$ice_cv_have_vprintf_decl" >&6; }
43766 if test "$ice_cv_have_vprintf_decl" = yes; then
43768 cat >>confdefs.h <<_ACEOF
43769 #define HAVE_VPRINTF_DECL 1
43775 ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4"
43776 if test "x$ac_cv_func_wait4" = xyes; then :
43782 for ac_func in writev
43784 ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev"
43785 if test "x$ac_cv_func_writev" = xyes; then :
43786 cat >>confdefs.h <<_ACEOF
43787 #define HAVE_WRITEV 1
43789 ice_have_writev=yes
43793 if test "${ice_have_writev}" = yes; then
43794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for writev declaration in unistd.h sys/uio.h" >&5
43795 $as_echo_n "checking for writev declaration in unistd.h sys/uio.h... " >&6; }
43796 if ${ice_cv_have_writev_decl+:} false; then :
43797 $as_echo_n "(cached) " >&6
43800 ice_cv_have_writev_decl=no
43801 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43802 ice_re_word='(^|[^a-zA-Z0-9_])'
43803 for header in unistd.h sys/uio.h; do
43804 # Check for ordinary declaration
43805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43806 /* end confdefs.h. */
43810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43811 $EGREP "${ice_re_word}writev[ ]*\(" >/dev/null 2>&1; then :
43812 ice_cv_have_writev_decl=yes
43816 if test "$ice_cv_have_writev_decl" = yes; then
43819 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43821 /* end confdefs.h. */
43825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43826 $EGREP "${ice_re_word}writev[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43827 ice_cv_have_writev_decl=yes
43831 if test "$ice_cv_have_writev_decl" = yes; then
43838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_writev_decl" >&5
43839 $as_echo "$ice_cv_have_writev_decl" >&6; }
43840 if test "$ice_cv_have_writev_decl" = yes; then
43842 cat >>confdefs.h <<_ACEOF
43843 #define HAVE_WRITEV_DECL 1
43850 ice_have_strcasecmp=no
43851 for ac_func in strcasecmp
43853 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
43854 if test "x$ac_cv_func_strcasecmp" = xyes; then :
43855 cat >>confdefs.h <<_ACEOF
43856 #define HAVE_STRCASECMP 1
43858 ice_have_strcasecmp=yes
43862 if test "${ice_have_strcasecmp}" = yes; then
43863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp declaration in string.h strings.h" >&5
43864 $as_echo_n "checking for strcasecmp declaration in string.h strings.h... " >&6; }
43865 if ${ice_cv_have_strcasecmp_decl+:} false; then :
43866 $as_echo_n "(cached) " >&6
43869 ice_cv_have_strcasecmp_decl=no
43870 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43871 ice_re_word='(^|[^a-zA-Z0-9_])'
43872 for header in string.h strings.h; do
43873 # Check for ordinary declaration
43874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43875 /* end confdefs.h. */
43879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43880 $EGREP "${ice_re_word}strcasecmp[ ]*\(" >/dev/null 2>&1; then :
43881 ice_cv_have_strcasecmp_decl=yes
43885 if test "$ice_cv_have_strcasecmp_decl" = yes; then
43888 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43890 /* end confdefs.h. */
43894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43895 $EGREP "${ice_re_word}strcasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43896 ice_cv_have_strcasecmp_decl=yes
43900 if test "$ice_cv_have_strcasecmp_decl" = yes; then
43907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strcasecmp_decl" >&5
43908 $as_echo "$ice_cv_have_strcasecmp_decl" >&6; }
43909 if test "$ice_cv_have_strcasecmp_decl" = yes; then
43911 cat >>confdefs.h <<_ACEOF
43912 #define HAVE_STRCASECMP_DECL 1
43944 # Check whether --with-libcurl was given.
43945 if test "${with_libcurl+set}" = set; then :
43946 withval=$with_libcurl; _libcurl_with=$withval
43952 if test "$_libcurl_with" != "no" ; then
43954 for ac_prog in gawk mawk nawk awk
43956 # Extract the first word of "$ac_prog", so it can be a program name with args.
43957 set dummy $ac_prog; ac_word=$2
43958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43959 $as_echo_n "checking for $ac_word... " >&6; }
43960 if ${ac_cv_prog_AWK+:} false; then :
43961 $as_echo_n "(cached) " >&6
43963 if test -n "$AWK"; then
43964 ac_cv_prog_AWK="$AWK" # Let the user override the test.
43966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43967 for as_dir in $PATH
43970 test -z "$as_dir" && as_dir=.
43971 for ac_exec_ext in '' $ac_executable_extensions; do
43972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43973 ac_cv_prog_AWK="$ac_prog"
43974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43983 AWK=$ac_cv_prog_AWK
43984 if test -n "$AWK"; then
43985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
43986 $as_echo "$AWK" >&6; }
43988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43989 $as_echo "no" >&6; }
43993 test -n "$AWK" && break
43997 _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
43999 _libcurl_try_link=yes
44001 if test -d "$_libcurl_with" ; then
44002 LIBCURL_CPPFLAGS="-I$withval/include"
44003 _libcurl_ldflags="-L$withval/lib"
44004 # Extract the first word of "curl-config", so it can be a program name with args.
44005 set dummy curl-config; ac_word=$2
44006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44007 $as_echo_n "checking for $ac_word... " >&6; }
44008 if ${ac_cv_path__libcurl_config+:} false; then :
44009 $as_echo_n "(cached) " >&6
44011 case $_libcurl_config in
44013 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
44016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44017 for as_dir in "$withval/bin"
44020 test -z "$as_dir" && as_dir=.
44021 for ac_exec_ext in '' $ac_executable_extensions; do
44022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44023 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
44024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44034 _libcurl_config=$ac_cv_path__libcurl_config
44035 if test -n "$_libcurl_config"; then
44036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
44037 $as_echo "$_libcurl_config" >&6; }
44039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44040 $as_echo "no" >&6; }
44045 # Extract the first word of "curl-config", so it can be a program name with args.
44046 set dummy curl-config; ac_word=$2
44047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44048 $as_echo_n "checking for $ac_word... " >&6; }
44049 if ${ac_cv_path__libcurl_config+:} false; then :
44050 $as_echo_n "(cached) " >&6
44052 case $_libcurl_config in
44054 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
44057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44058 for as_dir in $PATH
44061 test -z "$as_dir" && as_dir=.
44062 for ac_exec_ext in '' $ac_executable_extensions; do
44063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44064 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
44065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44075 _libcurl_config=$ac_cv_path__libcurl_config
44076 if test -n "$_libcurl_config"; then
44077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
44078 $as_echo "$_libcurl_config" >&6; }
44080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44081 $as_echo "no" >&6; }
44087 if test x$_libcurl_config != "x" ; then
44088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
44089 $as_echo_n "checking for the version of libcurl... " >&6; }
44090 if ${libcurl_cv_lib_curl_version+:} false; then :
44091 $as_echo_n "(cached) " >&6
44093 libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
44095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
44096 $as_echo "$libcurl_cv_lib_curl_version" >&6; }
44098 _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
44099 _libcurl_wanted=`echo 7.10.0 | $_libcurl_version_parse`
44101 if test $_libcurl_wanted -gt 0 ; then
44102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.10.0" >&5
44103 $as_echo_n "checking for libcurl >= version 7.10.0... " >&6; }
44104 if ${libcurl_cv_lib_version_ok+:} false; then :
44105 $as_echo_n "(cached) " >&6
44108 if test $_libcurl_version -ge $_libcurl_wanted ; then
44109 libcurl_cv_lib_version_ok=yes
44111 libcurl_cv_lib_version_ok=no
44115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
44116 $as_echo "$libcurl_cv_lib_version_ok" >&6; }
44119 if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
44120 if test x"$LIBCURL_CPPFLAGS" = "x" ; then
44121 LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
44123 if test x"$LIBCURL" = "x" ; then
44124 LIBCURL=`$_libcurl_config --libs`
44126 # This is so silly, but Apple actually has a bug in their
44127 # curl-config script. Fixed in Tiger, but there are still
44128 # lots of Panther installs around.
44130 powerpc-apple-darwin7*)
44131 LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
44136 # All curl-config scripts support --feature
44137 _libcurl_features=`$_libcurl_config --feature`
44139 # Is it modern enough to have --protocols? (7.12.4)
44140 if test $_libcurl_version -ge 461828 ; then
44141 _libcurl_protocols=`$_libcurl_config --protocols`
44144 _libcurl_try_link=no
44147 unset _libcurl_wanted
44150 if test $_libcurl_try_link = yes ; then
44152 # we didn't find curl-config, so let's see if the user-supplied
44153 # link line (or failing that, "-lcurl") is enough.
44154 LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
44156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
44157 $as_echo_n "checking whether libcurl is usable... " >&6; }
44158 if ${libcurl_cv_lib_curl_usable+:} false; then :
44159 $as_echo_n "(cached) " >&6
44162 _libcurl_save_cppflags=$CPPFLAGS
44163 CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
44164 _libcurl_save_libs=$LIBS
44165 LIBS="$LIBCURL $LIBS"
44167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44168 /* end confdefs.h. */
44169 #include <curl/curl.h>
44174 /* Try and use a few common options to force a failure if we are
44175 missing symbols or can't link. */
44177 curl_easy_setopt(NULL,CURLOPT_URL,NULL);
44179 x=CURLOPT_WRITEFUNCTION;
44181 x=CURLOPT_ERRORBUFFER;
44189 if ac_fn_c_try_link "$LINENO"; then :
44190 libcurl_cv_lib_curl_usable=yes
44192 libcurl_cv_lib_curl_usable=no
44194 rm -f core conftest.err conftest.$ac_objext \
44195 conftest$ac_exeext conftest.$ac_ext
44197 CPPFLAGS=$_libcurl_save_cppflags
44198 LIBS=$_libcurl_save_libs
44199 unset _libcurl_save_cppflags
44200 unset _libcurl_save_libs
44203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
44204 $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
44206 if test $libcurl_cv_lib_curl_usable = yes ; then
44208 # Does curl_free() exist in this version of libcurl?
44209 # If not, fake it with free()
44211 _libcurl_save_cppflags=$CPPFLAGS
44212 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
44213 _libcurl_save_libs=$LIBS
44214 LIBS="$LIBS $LIBCURL"
44216 ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
44217 if test "x$ac_cv_func_curl_free" = xyes; then :
44221 $as_echo "#define curl_free free" >>confdefs.h
44226 CPPFLAGS=$_libcurl_save_cppflags
44227 LIBS=$_libcurl_save_libs
44228 unset _libcurl_save_cppflags
44229 unset _libcurl_save_libs
44232 $as_echo "#define HAVE_LIBCURL 1" >>confdefs.h
44237 for _libcurl_feature in $_libcurl_features ; do
44238 cat >>confdefs.h <<_ACEOF
44239 #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
44242 eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
44245 if test "x$_libcurl_protocols" = "x" ; then
44247 # We don't have --protocols, so just assume that all
44248 # protocols are available
44249 _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
44251 if test x$libcurl_feature_SSL = xyes ; then
44252 _libcurl_protocols="$_libcurl_protocols HTTPS"
44254 # FTPS wasn't standards-compliant until version
44256 if test $_libcurl_version -ge 461568; then
44257 _libcurl_protocols="$_libcurl_protocols FTPS"
44262 for _libcurl_protocol in $_libcurl_protocols ; do
44263 cat >>confdefs.h <<_ACEOF
44264 #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
44267 eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
44271 unset LIBCURL_CPPFLAGS
44275 unset _libcurl_try_link
44276 unset _libcurl_version_parse
44277 unset _libcurl_config
44278 unset _libcurl_feature
44279 unset _libcurl_features
44280 unset _libcurl_protocol
44281 unset _libcurl_protocols
44282 unset _libcurl_version
44283 unset _libcurl_ldflags
44286 if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
44287 # This is the IF-NO path
44290 # This is the IF-YES path
44294 unset _libcurl_with
44296 if test x"$HAVE_CURL" = x"yes"; then
44297 LIBS="$LIBCURL $LIBS"
44299 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
44304 ac_fn_c_check_type "$LINENO" "curl_off_t" "ac_cv_type_curl_off_t" "
44305 #ifdef HAVE_SYS_TYPES_H
44306 #include <sys/types.h>
44308 #ifdef STDC_HEADERS
44309 #include <stdlib.h>
44310 #include <stddef.h>
44312 #include <curl/curl.h>
44316 if test "x$ac_cv_type_curl_off_t" = xyes; then :
44321 $as_echo "#define curl_off_t off_t" >>confdefs.h
44328 *sun-solaris2*) # Solaris, all versions.
44329 # we extract the -L flags and translate them to -R flags, as required
44330 # by the runtime linker.
44331 if test -n "$_libcurl_config"; then
44332 curlflags=`$_libcurl_config --libs 2>/dev/null`
44333 for flag in curlflags; do
44335 -L*) LDFLAGS="$LDFLAGS "`echo "x$flag" | sed -e 's/^x-L/-R/'`;;
44346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
44347 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
44348 if ${ac_cv_lib_crypto_HMAC_CTX_init+:} false; then :
44349 $as_echo_n "(cached) " >&6
44351 ac_check_lib_save_LIBS=$LIBS
44352 LIBS="-lcrypto $LIBS"
44353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44354 /* end confdefs.h. */
44356 /* Override any GCC internal prototype to avoid an error.
44357 Use char because int might match the return type of a GCC
44358 builtin and then its argument prototype would still apply. */
44362 char HMAC_CTX_init ();
44366 return HMAC_CTX_init ();
44371 if ac_fn_c_try_link "$LINENO"; then :
44372 ac_cv_lib_crypto_HMAC_CTX_init=yes
44374 ac_cv_lib_crypto_HMAC_CTX_init=no
44376 rm -f core conftest.err conftest.$ac_objext \
44377 conftest$ac_exeext conftest.$ac_ext
44378 LIBS=$ac_check_lib_save_LIBS
44380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5
44381 $as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; }
44382 if test "x$ac_cv_lib_crypto_HMAC_CTX_init" = xyes; then :
44383 cat >>confdefs.h <<_ACEOF
44384 #define HAVE_LIBCRYPTO 1
44387 LIBS="-lcrypto $LIBS"
44395 for ac_header in openssl/hmac.h crypto/hmac.h hmac.h
44397 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44398 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
44399 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
44400 cat >>confdefs.h <<_ACEOF
44401 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44403 found_hmac_h=yes; break
44408 if test x"$found_hmac_h" != x"yes"; then
44416 # Check whether --enable-s3-device was given.
44417 if test "${enable_s3_device+set}" = set; then :
44418 enableval=$enable_s3_device; WANT_S3_DEVICE=$enableval
44420 WANT_S3_DEVICE=maybe
44424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include the Amazon S3 device" >&5
44425 $as_echo_n "checking whether to include the Amazon S3 device... " >&6; }
44426 # if the user didn't specify 'no', then check for support
44427 if test x"$WANT_S3_DEVICE" != x"no"; then
44428 if test x"$HAVE_CURL" = x"yes" -a x"$HAVE_HMAC" = x"yes"; then
44431 # no support -- if the user explicitly enabled the device,
44432 # then this is an error
44433 if test x"$WANT_S3_DEVICE" = x"yes"; then
44434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44435 $as_echo "no" >&6; }
44436 as_fn_error $? "Cannot build the Amazon S3 device: one or more prerequisites are missing." "$LINENO" 5
44442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_S3_DEVICE" >&5
44443 $as_echo "$WANT_S3_DEVICE" >&6; }
44445 if test x"$WANT_S3_DEVICE" = x"yes"; then
44446 WANT_S3_DEVICE_TRUE=
44447 WANT_S3_DEVICE_FALSE='#'
44449 WANT_S3_DEVICE_TRUE='#'
44450 WANT_S3_DEVICE_FALSE=
44454 # Now handle any setup for S3, if we want it.
44455 if test x"$WANT_S3_DEVICE" = x"yes"; then
44457 $as_echo "#define WANT_S3_DEVICE /**/" >>confdefs.h
44468 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44469 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
44470 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
44471 cat >>confdefs.h <<_ACEOF
44472 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44480 # check for MTIOCTOP, an indicator of POSIX tape support
44481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MTIOCTOP" >&5
44482 $as_echo_n "checking for MTIOCTOP... " >&6; }
44483 if ${amanda_cv_HAVE_MTIOCTOP+:} false; then :
44484 $as_echo_n "(cached) " >&6
44487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44488 /* end confdefs.h. */
44490 #ifdef HAVE_SYS_TAPE_H
44491 # include <sys/tape.h>
44493 #ifdef HAVE_SYS_MTIO_H
44494 # include <sys/mtio.h>
44497 #error MTIOCTOP not defined
44508 if ac_fn_c_try_compile "$LINENO"; then :
44509 amanda_cv_HAVE_MTIOCTOP=yes
44511 amanda_cv_HAVE_MTIOCTOP=no
44513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44515 HAVE_MTIOCTOP=$amanda_cv_HAVE_MTIOCTOP
44518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_HAVE_MTIOCTOP" >&5
44519 $as_echo "$amanda_cv_HAVE_MTIOCTOP" >&6; }
44521 # maybe we have no tape device at all (e.g., Mac OS X)?
44522 if test x"$HAVE_MTIOCTOP" = x"yes"; then
44523 want_tape_device=yes
44525 $as_echo "#define WANT_TAPE_DEVICE 1" >>confdefs.h
44528 if test -n "$want_tape_device"; then
44529 WANT_TAPE_DEVICE_TRUE=
44530 WANT_TAPE_DEVICE_FALSE='#'
44532 WANT_TAPE_DEVICE_TRUE='#'
44533 WANT_TAPE_DEVICE_FALSE=
44538 # Check for various "mt status" related structure elements.
44540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_flags mtget structure element" >&5
44541 $as_echo_n "checking for mt_flags mtget structure element... " >&6; }
44542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44543 /* end confdefs.h. */
44546 #include <sys/types.h>
44547 #include <sys/mtio.h>
44562 if ac_fn_c_try_compile "$LINENO"; then :
44564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44565 $as_echo "yes" >&6; }
44567 $as_echo "#define HAVE_MT_FLAGS 1" >>confdefs.h
44572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44573 $as_echo "no" >&6; }
44576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_fileno mtget structure element" >&5
44579 $as_echo_n "checking for mt_fileno mtget structure element... " >&6; }
44580 mt_fileno_result="found"
44581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44582 /* end confdefs.h. */
44585 #include <sys/types.h>
44586 #include <sys/mtio.h>
44595 ds = buf.mt_fileno;
44601 if ac_fn_c_try_compile "$LINENO"; then :
44603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44604 $as_echo "yes" >&6; }
44606 $as_echo "#define HAVE_MT_FILENO 1" >>confdefs.h
44611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44612 $as_echo "no" >&6; }
44615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_blkno mtget structure element" >&5
44618 $as_echo_n "checking for mt_blkno mtget structure element... " >&6; }
44619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44620 /* end confdefs.h. */
44623 #include <sys/types.h>
44624 #include <sys/mtio.h>
44639 if ac_fn_c_try_compile "$LINENO"; then :
44641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44642 $as_echo "yes" >&6; }
44644 $as_echo "#define HAVE_MT_BLKNO 1" >>confdefs.h
44649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44650 $as_echo "no" >&6; }
44653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_dsreg mtget structure element" >&5
44656 $as_echo_n "checking for mt_dsreg mtget structure element... " >&6; }
44657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44658 /* end confdefs.h. */
44661 #include <sys/types.h>
44662 #include <sys/mtio.h>
44677 if ac_fn_c_try_compile "$LINENO"; then :
44679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44680 $as_echo "yes" >&6; }
44682 $as_echo "#define HAVE_MT_DSREG 1" >>confdefs.h
44687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44688 $as_echo "no" >&6; }
44691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_erreg mtget structure element" >&5
44694 $as_echo_n "checking for mt_erreg mtget structure element... " >&6; }
44695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44696 /* end confdefs.h. */
44699 #include <sys/types.h>
44700 #include <sys/mtio.h>
44715 if ac_fn_c_try_compile "$LINENO"; then :
44717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44718 $as_echo "yes" >&6; }
44720 $as_echo "#define HAVE_MT_ERREG 1" >>confdefs.h
44725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44726 $as_echo "no" >&6; }
44729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44733 $as_echo "#define DEFAULT_TAPE_NON_BLOCKING_OPEN 1" >>confdefs.h
44738 # Check whether --enable-dvdrw-device was given.
44739 if test "${enable_dvdrw_device+set}" = set; then :
44740 enableval=$enable_dvdrw_device; WANT_DVDRW_DEVICE=$enableval
44742 WANT_DVDRW_DEVICE=yes
44746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include the DVD-RW device" >&5
44747 $as_echo_n "checking whether to include the DVD-RW device... " >&6; }
44748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_DVDRW_DEVICE" >&5
44749 $as_echo "$WANT_DVDRW_DEVICE" >&6; }
44751 if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
44752 WANT_DVDRW_DEVICE_TRUE=
44753 WANT_DVDRW_DEVICE_FALSE='#'
44755 WANT_DVDRW_DEVICE_TRUE='#'
44756 WANT_DVDRW_DEVICE_FALSE=
44760 # Now handle any setup for DVDRW, if we want it.
44761 if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
44763 $as_echo "#define WANT_DVDRW_DEVICE /**/" >>confdefs.h
44770 # Check whether --enable-ndmp-device was given.
44771 if test "${enable_ndmp_device+set}" = set; then :
44772 enableval=$enable_ndmp_device; WANT_NDMP_DEVICE=$enableval
44774 WANT_NDMP_DEVICE=$WANT_NDMP
44778 if test x"$WANT_NDMP" != x"true" -a x"$WANT_NDMP_DEVICE" = x"true"; then
44779 as_fn_error $? "NDMP support is required to build the ndmp device (--with-ndmp)" "$LINENO" 5
44782 if test x"$WANT_NDMP_DEVICE" = x"true"; then
44784 $as_echo "#define WANT_NDMP_DEVICE 1" >>confdefs.h
44788 if test x"$WANT_NDMP_DEVICE" = x"true"; then
44789 WANT_NDMP_DEVICE_TRUE=
44790 WANT_NDMP_DEVICE_FALSE='#'
44792 WANT_NDMP_DEVICE_TRUE='#'
44793 WANT_NDMP_DEVICE_FALSE=
44799 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"
44802 cat >confcache <<\_ACEOF
44803 # This file is a shell script that caches the results of configure
44804 # tests run on this system so they can be shared between configure
44805 # scripts and configure runs, see configure's option --config-cache.
44806 # It is not useful on other systems. If it contains results you don't
44807 # want to keep, you may remove or edit it.
44809 # config.status only pays attention to the cache file if you give it
44810 # the --recheck option to rerun configure.
44812 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44813 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44814 # following values.
44818 # The following way of writing the cache mishandles newlines in values,
44819 # but we know of no workaround that is simple, portable, and efficient.
44820 # So, we kill variables containing newlines.
44821 # Ultrix sh set writes to stderr and can't be redirected directly,
44822 # and sets the high bit in the cache file unless we assign to the vars.
44824 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
44825 eval ac_val=\$$ac_var
44829 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
44830 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
44833 _ | IFS | as_nl) ;; #(
44834 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
44835 *) { eval $ac_var=; unset $ac_var;} ;;
44841 case $as_nl`(ac_space=' '; set) 2>&1` in #(
44842 *${as_nl}ac_space=\ *)
44843 # `set' does not quote correctly, so add quotes: double-quote
44844 # substitution turns \\\\ into \\, and sed turns \\ into \.
44847 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44850 # `set' quotes correctly as required by POSIX, so do not add quotes.
44851 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
44860 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44862 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44864 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
44865 if test -w "$cache_file"; then
44866 if test "x$cache_file" != "x/dev/null"; then
44867 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
44868 $as_echo "$as_me: updating cache $cache_file" >&6;}
44869 if test ! -f "$cache_file" || test -h "$cache_file"; then
44870 cat confcache >"$cache_file"
44872 case $cache_file in #(
44874 mv -f confcache "$cache_file"$$ &&
44875 mv -f "$cache_file"$$ "$cache_file" ;; #(
44877 mv -f confcache "$cache_file" ;;
44882 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
44883 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
44888 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44889 # Let make expand exec_prefix.
44890 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44892 DEFS=-DHAVE_CONFIG_H
44897 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44898 # 1. Remove the extension, and $U if already installed.
44899 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
44900 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
44901 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
44902 # will be set to the directory where LIBOBJS objects are built.
44903 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
44904 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
44906 LIBOBJS=$ac_libobjs
44908 LTLIBOBJS=$ac_ltlibobjs
44911 if test -n "$EXEEXT"; then
44913 am__EXEEXT_FALSE='#'
44915 am__EXEEXT_TRUE='#'
44919 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
44920 as_fn_error $? "conditional \"AMDEP\" was never defined.
44921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
44923 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44924 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
44925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
44927 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
44928 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
44929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
44934 if test -n "$gl_LIBOBJS"; then
44935 # Remove the extension.
44936 sed_drop_objext='s/\.o$//;s/\.obj$//'
44937 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
44938 gl_libobjs="$gl_libobjs $i.$ac_objext"
44939 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
44942 gl_LIBOBJS=$gl_libobjs
44944 gl_LTLIBOBJS=$gl_ltlibobjs
44950 if test -n "$gltests_LIBOBJS"; then
44951 # Remove the extension.
44952 sed_drop_objext='s/\.o$//;s/\.obj$//'
44953 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
44954 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
44955 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
44958 gltests_LIBOBJS=$gltests_libobjs
44960 gltests_LTLIBOBJS=$gltests_ltlibobjs
44963 if test -z "${WANT_AS_NEEDED_TRUE}" && test -z "${WANT_AS_NEEDED_FALSE}"; then
44964 as_fn_error $? "conditional \"WANT_AS_NEEDED\" was never defined.
44965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
44967 if test -z "${CHECK_USERID_TRUE}" && test -z "${CHECK_USERID_FALSE}"; then
44968 as_fn_error $? "conditional \"CHECK_USERID\" was never defined.
44969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
44971 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
44972 as_fn_error $? "conditional \"WANT_SETUID_CLIENT\" was never defined.
44973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
44975 if test -z "${WANT_INSTALLPERMS_TRUE}" && test -z "${WANT_INSTALLPERMS_FALSE}"; then
44976 as_fn_error $? "conditional \"WANT_INSTALLPERMS\" was never defined.
44977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
44979 if test -z "${SYNTAX_CHECKS_TRUE}" && test -z "${SYNTAX_CHECKS_FALSE}"; then
44980 as_fn_error $? "conditional \"SYNTAX_CHECKS\" was never defined.
44981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
44983 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
44984 as_fn_error $? "conditional \"WANT_CLIENT\" was never defined.
44985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
44987 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
44988 as_fn_error $? "conditional \"WANT_RESTORE\" was never defined.
44989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
44991 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
44992 as_fn_error $? "conditional \"WANT_SERVER\" was never defined.
44993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
44995 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
44996 as_fn_error $? "conditional \"WANT_RECOVER\" was never defined.
44997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
44999 if test -z "${WANT_NDMP_TRUE}" && test -z "${WANT_NDMP_FALSE}"; then
45000 as_fn_error $? "conditional \"WANT_NDMP\" was never defined.
45001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45003 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
45004 as_fn_error $? "conditional \"WANT_TAPE\" was never defined.
45005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45007 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
45008 as_fn_error $? "conditional \"WANT_AMPLOT\" was never defined.
45009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45011 if test -z "${ENABLE_MANPAGE_BUILD_TRUE}" && test -z "${ENABLE_MANPAGE_BUILD_FALSE}"; then
45012 as_fn_error $? "conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
45013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45015 if test -z "${WANT_AMFLOCK_POSIX_TRUE}" && test -z "${WANT_AMFLOCK_POSIX_FALSE}"; then
45016 as_fn_error $? "conditional \"WANT_AMFLOCK_POSIX\" was never defined.
45017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45019 if test -z "${WANT_AMFLOCK_FLOCK_TRUE}" && test -z "${WANT_AMFLOCK_FLOCK_FALSE}"; then
45020 as_fn_error $? "conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
45021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45023 if test -z "${WANT_AMFLOCK_LOCKF_TRUE}" && test -z "${WANT_AMFLOCK_LOCKF_FALSE}"; then
45024 as_fn_error $? "conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
45025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45027 if test -z "${WANT_AMFLOCK_LNLOCK_TRUE}" && test -z "${WANT_AMFLOCK_LNLOCK_FALSE}"; then
45028 as_fn_error $? "conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
45029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45031 if test -z "${WANT_CYGWIN_COPY_PERL_DLL_TRUE}" && test -z "${WANT_CYGWIN_COPY_PERL_DLL_FALSE}"; then
45032 as_fn_error $? "conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
45033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45035 if test -z "${WANT_MANDATORY_THREAD_CHECK_TRUE}" && test -z "${WANT_MANDATORY_THREAD_CHECK_FALSE}"; then
45036 as_fn_error $? "conditional \"WANT_MANDATORY_THREAD_CHECK\" was never defined.
45037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45039 if test -z "${WANT_BSD_SECURITY_TRUE}" && test -z "${WANT_BSD_SECURITY_FALSE}"; then
45040 as_fn_error $? "conditional \"WANT_BSD_SECURITY\" was never defined.
45041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45043 if test -z "${WANT_BSDTCP_SECURITY_TRUE}" && test -z "${WANT_BSDTCP_SECURITY_FALSE}"; then
45044 as_fn_error $? "conditional \"WANT_BSDTCP_SECURITY\" was never defined.
45045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45047 if test -z "${WANT_BSDUDP_SECURITY_TRUE}" && test -z "${WANT_BSDUDP_SECURITY_FALSE}"; then
45048 as_fn_error $? "conditional \"WANT_BSDUDP_SECURITY\" was never defined.
45049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45051 if test -z "${WANT_RSH_SECURITY_TRUE}" && test -z "${WANT_RSH_SECURITY_FALSE}"; then
45052 as_fn_error $? "conditional \"WANT_RSH_SECURITY\" was never defined.
45053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45055 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
45056 as_fn_error $? "conditional \"WANT_SSH_SECURITY\" was never defined.
45057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45059 if test -z "${WANT_KRB5_SECURITY_TRUE}" && test -z "${WANT_KRB5_SECURITY_FALSE}"; then
45060 as_fn_error $? "conditional \"WANT_KRB5_SECURITY\" was never defined.
45061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45063 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
45064 as_fn_error $? "conditional \"WANT_SAMBA\" was never defined.
45065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45068 if test -z "${GCC_COMPILER_TRUE}" && test -z "${GCC_COMPILER_FALSE}"; then
45069 as_fn_error $? "conditional \"GCC_COMPILER\" was never defined.
45070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45072 if test -z "${WANT_S3_DEVICE_TRUE}" && test -z "${WANT_S3_DEVICE_FALSE}"; then
45073 as_fn_error $? "conditional \"WANT_S3_DEVICE\" was never defined.
45074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45076 if test -z "${WANT_TAPE_DEVICE_TRUE}" && test -z "${WANT_TAPE_DEVICE_FALSE}"; then
45077 as_fn_error $? "conditional \"WANT_TAPE_DEVICE\" was never defined.
45078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45080 if test -z "${WANT_DVDRW_DEVICE_TRUE}" && test -z "${WANT_DVDRW_DEVICE_FALSE}"; then
45081 as_fn_error $? "conditional \"WANT_DVDRW_DEVICE\" was never defined.
45082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45084 if test -z "${WANT_NDMP_DEVICE_TRUE}" && test -z "${WANT_NDMP_DEVICE_FALSE}"; then
45085 as_fn_error $? "conditional \"WANT_NDMP_DEVICE\" was never defined.
45086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45089 : "${CONFIG_STATUS=./config.status}"
45091 ac_clean_files_save=$ac_clean_files
45092 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45093 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
45094 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
45096 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
45098 # Generated by $as_me.
45099 # Run this file to recreate the current configuration.
45100 # Compiler output produced by configure, useful for debugging
45101 # configure, is in config.log if it exists.
45104 ac_cs_recheck=false
45107 SHELL=\${CONFIG_SHELL-$SHELL}
45110 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
45111 ## -------------------- ##
45112 ## M4sh Initialization. ##
45113 ## -------------------- ##
45115 # Be more Bourne compatible
45116 DUALCASE=1; export DUALCASE # for MKS sh
45117 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
45120 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
45121 # is contrary to our usage. Disable this feature.
45122 alias -g '${1+"$@"}'='"$@"'
45123 setopt NO_GLOB_SUBST
45125 case `(set -o) 2>/dev/null` in #(
45137 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45138 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45139 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45140 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45141 # Prefer a ksh shell builtin over an external printf program on Solaris,
45142 # but without wasting forks for bash or zsh.
45143 if test -z "$BASH_VERSION$ZSH_VERSION" \
45144 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45145 as_echo='print -r --'
45146 as_echo_n='print -rn --'
45147 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
45148 as_echo='printf %s\n'
45149 as_echo_n='printf %s'
45151 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
45152 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
45153 as_echo_n='/usr/ucb/echo -n'
45155 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
45156 as_echo_n_body='eval
45160 expr "X$arg" : "X\\(.*\\)$as_nl";
45161 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
45163 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
45165 export as_echo_n_body
45166 as_echo_n='sh -c $as_echo_n_body as_echo'
45168 export as_echo_body
45169 as_echo='sh -c $as_echo_body as_echo'
45172 # The user is always right.
45173 if test "${PATH_SEPARATOR+set}" != set; then
45175 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
45176 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
45183 # We need space, tab and new line, in precisely that order. Quoting is
45184 # there to prevent editors from complaining about space-tab.
45185 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
45186 # splitting by setting IFS to empty value.)
45189 # Find who we are. Look in the path if we contain no directory separator.
45192 *[\\/]* ) as_myself=$0 ;;
45193 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45194 for as_dir in $PATH
45197 test -z "$as_dir" && as_dir=.
45198 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45204 # We did not find ourselves, most probably we were run as `sh COMMAND'
45205 # in which case we are not to be found in the path.
45206 if test "x$as_myself" = x; then
45209 if test ! -f "$as_myself"; then
45210 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
45214 # Unset variables that we do not need and which cause bugs (e.g. in
45215 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
45216 # suppresses any "Segmentation fault" message there. '((' could
45217 # trigger a bug in pdksh 5.2.14.
45218 for as_var in BASH_ENV ENV MAIL MAILPATH
45219 do eval test x\${$as_var+set} = xset \
45220 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
45233 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
45236 # as_fn_error STATUS ERROR [LINENO LOG_FD]
45237 # ----------------------------------------
45238 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
45239 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
45240 # script with STATUS, using 1 if that was 0.
45243 as_status=$1; test $as_status -eq 0 && as_status=1
45245 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
45246 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
45248 $as_echo "$as_me: error: $2" >&2
45249 as_fn_exit $as_status
45253 # as_fn_set_status STATUS
45254 # -----------------------
45255 # Set $? to STATUS, without forking.
45256 as_fn_set_status ()
45259 } # as_fn_set_status
45261 # as_fn_exit STATUS
45262 # -----------------
45263 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
45267 as_fn_set_status $1
45273 # Portably unset VAR.
45276 { eval $1=; unset $1;}
45278 as_unset=as_fn_unset
45279 # as_fn_append VAR VALUE
45280 # ----------------------
45281 # Append the text in VALUE to the end of the definition contained in VAR. Take
45282 # advantage of any shell optimizations that allow amortized linear growth over
45283 # repeated appends, instead of the typical quadratic growth present in naive
45285 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
45286 eval 'as_fn_append ()
45297 # as_fn_arith ARG...
45298 # ------------------
45299 # Perform arithmetic evaluation on the ARGs, and store the result in the
45300 # global $as_val. Take advantage of shells that can avoid forks. The arguments
45301 # must be portable across $(()) and expr.
45302 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
45303 eval 'as_fn_arith ()
45310 as_val=`expr "$@" || test $? -eq 1`
45315 if expr a : '\(a\)' >/dev/null 2>&1 &&
45316 test "X`expr 00001 : '.*\(...\)'`" = X001; then
45322 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
45323 as_basename=basename
45328 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
45334 as_me=`$as_basename -- "$0" ||
45335 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45336 X"$0" : 'X\(//\)$' \| \
45337 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
45339 sed '/^.*\/\([^/][^/]*\)\/*$/{
45353 # Avoid depending upon Character Ranges.
45354 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45355 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45356 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45357 as_cr_digits='0123456789'
45358 as_cr_alnum=$as_cr_Letters$as_cr_digits
45360 ECHO_C= ECHO_N= ECHO_T=
45361 case `echo -n x` in #(((((
45363 case `echo 'xy\c'` in
45364 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
45366 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
45373 rm -f conf$$ conf$$.exe conf$$.file
45374 if test -d conf$$.dir; then
45375 rm -f conf$$.dir/conf$$.file
45378 mkdir conf$$.dir 2>/dev/null
45380 if (echo >conf$$.file) 2>/dev/null; then
45381 if ln -s conf$$.file conf$$ 2>/dev/null; then
45383 # ... but there are two gotchas:
45384 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
45385 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
45386 # In both cases, we have to default to `cp -p'.
45387 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
45389 elif ln conf$$.file conf$$ 2>/dev/null; then
45397 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
45398 rmdir conf$$.dir 2>/dev/null
45403 # Create "$as_dir" as a directory, including parents if necessary.
45408 -*) as_dir=./$as_dir;;
45410 test -d "$as_dir" || eval $as_mkdir_p || {
45414 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
45415 *) as_qdir=$as_dir;;
45417 as_dirs="'$as_qdir' $as_dirs"
45418 as_dir=`$as_dirname -- "$as_dir" ||
45419 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45420 X"$as_dir" : 'X\(//\)[^/]' \| \
45421 X"$as_dir" : 'X\(//\)$' \| \
45422 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45423 $as_echo X"$as_dir" |
45424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45428 /^X\(\/\/\)[^/].*/{
45441 test -d "$as_dir" && break
45443 test -z "$as_dirs" || eval "mkdir $as_dirs"
45444 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
45448 if mkdir -p . 2>/dev/null; then
45449 as_mkdir_p='mkdir -p "$as_dir"'
45451 test -d ./-p && rmdir ./-p
45455 if test -x / >/dev/null 2>&1; then
45456 as_test_x='test -x'
45458 if ls -dL / >/dev/null 2>&1; then
45465 if test -d "$1"; then
45471 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
45472 ???[sx]*):;;*)false;;esac;fi
45476 as_executable_p=$as_test_x
45478 # Sed expression to map a string onto a valid CPP name.
45479 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45481 # Sed expression to map a string onto a valid variable name.
45482 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45486 ## ----------------------------------- ##
45487 ## Main body of $CONFIG_STATUS script. ##
45488 ## ----------------------------------- ##
45490 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
45492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45493 # Save the log message, to keep $0 and so on meaningful, and to
45494 # report actual input values of CONFIG_FILES etc. instead of their
45495 # values after options handling.
45497 This file was extended by $as_me, which was
45498 generated by GNU Autoconf 2.68. Invocation command line was
45500 CONFIG_FILES = $CONFIG_FILES
45501 CONFIG_HEADERS = $CONFIG_HEADERS
45502 CONFIG_LINKS = $CONFIG_LINKS
45503 CONFIG_COMMANDS = $CONFIG_COMMANDS
45506 on `(hostname || uname -n) 2>/dev/null | sed 1q`
45511 case $ac_config_files in *"
45512 "*) set x $ac_config_files; shift; ac_config_files=$*;;
45515 case $ac_config_headers in *"
45516 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
45520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45521 # Files that config.status was made for.
45522 config_files="$ac_config_files"
45523 config_headers="$ac_config_headers"
45524 config_commands="$ac_config_commands"
45528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45530 \`$as_me' instantiates files and other configuration actions
45531 from templates according to the current configuration. Unless the files
45532 and actions are specified as TAGs, all are instantiated by default.
45534 Usage: $0 [OPTION]... [TAG]...
45536 -h, --help print this help, then exit
45537 -V, --version print version number and configuration settings, then exit
45538 --config print configuration, then exit
45539 -q, --quiet, --silent
45540 do not print progress messages
45541 -d, --debug don't remove temporary files
45542 --recheck update $as_me by reconfiguring in the same conditions
45543 --file=FILE[:TEMPLATE]
45544 instantiate the configuration file FILE
45545 --header=FILE[:TEMPLATE]
45546 instantiate the configuration header FILE
45548 Configuration files:
45551 Configuration headers:
45554 Configuration commands:
45557 Report bugs to the package provider."
45560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45561 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
45564 configured by $0, generated by GNU Autoconf 2.68,
45565 with options \\"\$ac_cs_config\\"
45567 Copyright (C) 2010 Free Software Foundation, Inc.
45568 This config.status script is free software; the Free Software Foundation
45569 gives unlimited permission to copy, distribute and modify it."
45576 test -n "\$AWK" || AWK=awk
45579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45580 # The default lists apply if the user does not specify any file.
45586 ac_option=`expr "X$1" : 'X\([^=]*\)='`
45587 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
45591 ac_option=`expr "X$1" : 'X\([^=]*\)='`
45603 # Handling of the options.
45604 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45606 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
45607 $as_echo "$ac_cs_version"; exit ;;
45608 --config | --confi | --conf | --con | --co | --c )
45609 $as_echo "$ac_cs_config"; exit ;;
45610 --debug | --debu | --deb | --de | --d | -d )
45612 --file | --fil | --fi | --f )
45615 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
45616 '') as_fn_error $? "missing file argument" ;;
45618 as_fn_append CONFIG_FILES " '$ac_optarg'"
45619 ac_need_defaults=false;;
45620 --header | --heade | --head | --hea )
45623 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
45625 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
45626 ac_need_defaults=false;;
45628 # Conflict between --help and --header
45629 as_fn_error $? "ambiguous option: \`$1'
45630 Try \`$0 --help' for more information.";;
45631 --help | --hel | -h )
45632 $as_echo "$ac_cs_usage"; exit ;;
45633 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45634 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45637 # This is an error.
45638 -*) as_fn_error $? "unrecognized option: \`$1'
45639 Try \`$0 --help' for more information." ;;
45641 *) as_fn_append ac_config_targets " $1"
45642 ac_need_defaults=false ;;
45648 ac_configure_extra_args=
45650 if $ac_cs_silent; then
45652 ac_configure_extra_args="$ac_configure_extra_args --silent"
45656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45657 if \$ac_cs_recheck; then
45658 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45660 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
45661 CONFIG_SHELL='$SHELL'
45662 export CONFIG_SHELL
45667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45671 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45672 ## Running $as_me. ##
45678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45682 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45683 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
45684 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
45685 # from automake < 1.5.
45686 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
45687 # Capture the value of LINGUAS because we need it to compute CATALOGS.
45688 LINGUAS="${LINGUAS-%UNSET%}"
45692 # The HP-UX ksh and POSIX shell print the target directory to stdout
45693 # if CDPATH is set.
45694 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
45696 sed_quote_subst='$sed_quote_subst'
45697 double_quote_subst='$double_quote_subst'
45698 delay_variable_subst='$delay_variable_subst'
45699 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
45700 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
45701 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
45702 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
45703 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
45704 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
45705 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
45706 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
45707 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
45708 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
45709 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
45710 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
45711 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
45712 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
45713 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
45714 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
45715 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
45716 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
45717 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
45718 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
45719 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
45720 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
45721 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
45722 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
45723 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
45724 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
45725 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
45726 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
45727 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
45728 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
45729 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
45730 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
45731 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
45732 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
45733 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
45734 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
45735 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
45736 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
45737 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
45738 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
45739 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
45740 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
45741 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
45742 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
45743 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
45744 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
45745 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
45746 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
45747 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
45748 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
45749 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
45750 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
45751 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
45752 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
45753 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
45754 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"`'
45755 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
45756 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
45757 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
45758 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
45759 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
45760 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
45761 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
45762 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
45763 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
45764 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
45765 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
45766 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
45767 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
45768 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
45769 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
45770 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
45771 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
45772 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
45773 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
45774 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
45775 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
45776 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
45777 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
45778 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
45779 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
45780 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
45781 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
45782 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
45783 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
45784 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
45785 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
45786 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
45787 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
45788 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
45789 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
45790 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
45791 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
45792 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
45793 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
45794 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
45795 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
45796 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
45797 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
45798 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
45799 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
45800 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
45801 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
45802 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
45803 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
45804 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
45805 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
45806 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
45807 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
45808 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
45809 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
45810 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
45811 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
45812 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
45813 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
45814 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
45815 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
45816 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
45817 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
45818 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
45819 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
45820 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
45821 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
45822 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
45823 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
45824 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
45825 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
45826 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
45827 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
45828 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
45831 LTCFLAGS='$LTCFLAGS'
45832 compiler='$compiler_DEFAULT'
45834 # A function that is used when there is no print builtin or printf.
45835 func_fallback_echo ()
45837 eval 'cat <<_LTECHO_EOF
45842 # Quote evaled strings.
45856 deplibs_check_method \
45861 sharedlib_from_linklib_cmd \
45864 archiver_list_spec \
45870 lt_cv_sys_global_symbol_pipe \
45871 lt_cv_sys_global_symbol_to_cdecl \
45872 lt_cv_sys_global_symbol_to_c_name_address \
45873 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
45874 nm_file_list_spec \
45875 lt_prog_compiler_no_builtin_flag \
45876 lt_prog_compiler_pic \
45877 lt_prog_compiler_wl \
45878 lt_prog_compiler_static \
45879 lt_cv_prog_compiler_c_o \
45888 export_dynamic_flag_spec \
45889 whole_archive_flag_spec \
45890 compiler_needs_object \
45892 allow_undefined_flag \
45893 no_undefined_flag \
45894 hardcode_libdir_flag_spec \
45895 hardcode_libdir_flag_spec_ld \
45896 hardcode_libdir_separator \
45900 variables_saved_for_relink \
45902 library_names_spec \
45904 install_override_mode \
45908 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
45909 *[\\\\\\\`\\"\\\$]*)
45910 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
45913 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
45918 # Double-quote double-evaled strings.
45919 for var in reload_cmds \
45920 old_postinstall_cmds \
45921 old_postuninstall_cmds \
45923 extract_expsyms_cmds \
45924 old_archive_from_new_cmds \
45925 old_archive_from_expsyms_cmds \
45927 archive_expsym_cmds \
45929 module_expsym_cmds \
45930 export_symbols_cmds \
45934 postuninstall_cmds \
45936 sys_lib_search_path_spec \
45937 sys_lib_dlsearch_path_spec; do
45938 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
45939 *[\\\\\\\`\\"\\\$]*)
45940 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
45943 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
45948 ac_aux_dir='$ac_aux_dir'
45949 xsi_shell='$xsi_shell'
45950 lt_shell_append='$lt_shell_append'
45952 # See if we are running on zsh, and set the options which allow our
45953 # commands through without removal of \ escapes INIT.
45954 if test -n "\${ZSH_VERSION+set}" ; then
45955 setopt NO_GLOB_SUBST
45961 TIMESTAMP='$TIMESTAMP'
45970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45972 # Handling of arguments.
45973 for ac_config_target in $ac_config_targets
45975 case $ac_config_target in
45976 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
45977 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
45978 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
45979 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
45980 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45981 "amandad-src/Makefile") CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
45982 "amar-src/Makefile") CONFIG_FILES="$CONFIG_FILES amar-src/Makefile" ;;
45983 "amplot/Makefile") CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
45984 "changer-src/Makefile") CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
45985 "client-src/Makefile") CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
45986 "common-src/Makefile") CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
45987 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
45988 "device-src/Makefile") CONFIG_FILES="$CONFIG_FILES device-src/Makefile" ;;
45989 "application-src/Makefile") CONFIG_FILES="$CONFIG_FILES application-src/Makefile" ;;
45990 "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
45991 "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
45992 "installcheck/Makefile") CONFIG_FILES="$CONFIG_FILES installcheck/Makefile" ;;
45993 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
45994 "ndmp-src/Makefile") CONFIG_FILES="$CONFIG_FILES ndmp-src/Makefile" ;;
45995 "oldrecover-src/Makefile") CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
45996 "packaging/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;;
45997 "perl/amglue/Makefile") CONFIG_FILES="$CONFIG_FILES perl/amglue/Makefile" ;;
45998 "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;;
45999 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
46000 "recover-src/Makefile") CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
46001 "server-src/Makefile") CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
46002 "xfer-src/Makefile") CONFIG_FILES="$CONFIG_FILES xfer-src/Makefile" ;;
46004 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
46009 # If the user did not use the arguments to specify the items to instantiate,
46010 # then the envvar interface is used. Set only those that are not.
46011 # We use the long form for the default assignment because of an extremely
46012 # bizarre bug on SunOS 4.1.3.
46013 if $ac_need_defaults; then
46014 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46015 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46016 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46019 # Have a temporary directory for convenience. Make it in the build tree
46020 # simply because there is no reason against having it here, and in addition,
46021 # creating and moving files from /tmp can sometimes cause problems.
46022 # Hook for its removal unless debugging.
46023 # Note that there is a small window in which the directory will not be cleaned:
46024 # after its creation but before its name has been assigned to `$tmp'.
46028 trap 'exit_status=$?
46029 : "${ac_tmp:=$tmp}"
46030 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
46032 trap 'as_fn_exit 1' 1 2 13 15
46034 # Create a (secure) tmp directory for tmp files.
46037 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
46041 tmp=./conf$$-$RANDOM
46042 (umask 077 && mkdir "$tmp")
46043 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
46046 # Set up the scripts for CONFIG_FILES section.
46047 # No need to generate them if there are no CONFIG_FILES.
46048 # This happens for instance with `./config.status config.h'.
46049 if test -n "$CONFIG_FILES"; then
46052 ac_cr=`echo X | tr X '\015'`
46053 # On cygwin, bash can eat \r inside `` if the user requested igncr.
46054 # But we know of no other shell where ac_cr would be empty at this
46055 # point, so we can use a bashism as a fallback.
46056 if test "x$ac_cr" = x; then
46057 eval ac_cr=\$\'\\r\'
46059 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
46060 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
46063 ac_cs_awk_cr=$ac_cr
46066 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
46071 echo "cat >conf$$subs.awk <<_ACEOF" &&
46072 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
46074 } >conf$$subs.sh ||
46075 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46076 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
46078 for ac_last_try in false false false false false :; do
46079 . ./conf$$subs.sh ||
46080 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46082 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
46083 if test $ac_delim_n = $ac_delim_num; then
46085 elif $ac_last_try; then
46086 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46088 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46091 rm -f conf$$subs.sh
46093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46094 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
46098 s/^/S["/; s/!.*/"]=/
46108 s/\(.\{148\}\)..*/\1/
46110 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
46115 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46122 s/\(.\{148\}\)..*/\1/
46124 s/["\\]/\\&/g; s/^/"/; s/$/"/
46128 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46133 ' <conf$$subs.awk | sed '
46138 ' >>$CONFIG_STATUS || ac_write_fail=1
46139 rm -f conf$$subs.awk
46140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46142 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
46143 for (key in S) S_is_set[key] = 1
46149 nfields = split(line, field, "@")
46151 len = length(field[1])
46152 for (i = 2; i < nfields; i++) {
46154 keylen = length(key)
46155 if (S_is_set[key]) {
46157 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
46158 len += length(value) + length(field[++i])
46169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46170 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
46171 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
46174 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
46175 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
46178 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
46179 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
46180 # trailing colons and then remove the whole line if VPATH becomes empty
46181 # (actually we leave an empty line to preserve line numbers).
46182 if test "x$srcdir" = x.; then
46183 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
46201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46202 fi # test -n "$CONFIG_FILES"
46204 # Set up the scripts for CONFIG_HEADERS section.
46205 # No need to generate them if there are no CONFIG_HEADERS.
46206 # This happens for instance with `./config.status Makefile'.
46207 if test -n "$CONFIG_HEADERS"; then
46208 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
46212 # Transform confdefs.h into an awk script `defines.awk', embedded as
46213 # here-document in config.status, that substitutes the proper values into
46214 # config.h.in to produce config.h.
46216 # Create a delimiter string that does not exist in confdefs.h, to ease
46217 # handling of long lines.
46219 for ac_last_try in false false :; do
46220 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
46221 if test -z "$ac_tt"; then
46223 elif $ac_last_try; then
46224 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
46226 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46230 # For the awk script, D is an array of macro values keyed by name,
46231 # likewise P contains macro parameters if any. Preserve backslash
46232 # newline sequences.
46234 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46236 s/.\{148\}/&'"$ac_delim"'/g
46239 s/^[ ]*#[ ]*define[ ][ ]*/ /
46246 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
46248 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
46252 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
46253 D["\1"]=" \3\\\\\\n"\\/p
46255 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
46260 s/.\{148\}/&'"$ac_delim"'/g
46265 s/["\\]/\\&/g; s/^/"/; s/$/"/p
46268 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
46270 ' <confdefs.h | sed '
46271 s/'"$ac_delim"'/"\\\
46272 "/g' >>$CONFIG_STATUS || ac_write_fail=1
46274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46275 for (key in D) D_is_set[key] = 1
46278 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
46280 split(line, arg, " ")
46281 if (arg[1] == "#") {
46285 defundef = substr(arg[1], 2)
46288 split(mac1, mac2, "(") #)
46290 prefix = substr(line, 1, index(line, defundef) - 1)
46291 if (D_is_set[macro]) {
46292 # Preserve the white space surrounding the "#".
46293 print prefix "define", macro P[macro] D[macro]
46296 # Replace #undef with comments. This is necessary, for example,
46297 # in the case of _POSIX_SOURCE, which is predefined and required
46298 # on some systems where configure will not decide to define it.
46299 if (defundef == "undef") {
46300 print "/*", prefix defundef, macro, "*/"
46308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46309 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
46310 fi # test -n "$CONFIG_HEADERS"
46313 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
46318 :[FHLC]) ac_mode=$ac_tag; continue;;
46320 case $ac_mode$ac_tag in
46322 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
46323 :[FH]-) ac_tag=-:-;;
46324 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
46341 -) ac_f="$ac_tmp/stdin";;
46342 *) # Look for the file first in the build tree, then in the source tree
46343 # (if the path is not absolute). The absolute path cannot be DOS-style,
46344 # because $ac_f cannot contain `:'.
46348 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
46350 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
46352 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
46353 as_fn_append ac_file_inputs " '$ac_f'"
46356 # Let's still pretend it is `configure' which instantiates (i.e., don't
46357 # use $as_me), people would be surprised to read:
46358 # /* config.h. Generated by config.status. */
46359 configure_input='Generated from '`
46360 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
46362 if test x"$ac_file" != x-; then
46363 configure_input="$ac_file. $configure_input"
46364 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
46365 $as_echo "$as_me: creating $ac_file" >&6;}
46367 # Neutralize special characters interpreted by sed in replacement strings.
46368 case $configure_input in #(
46369 *\&* | *\|* | *\\* )
46370 ac_sed_conf_input=`$as_echo "$configure_input" |
46371 sed 's/[\\\\&|]/\\\\&/g'`;; #(
46372 *) ac_sed_conf_input=$configure_input;;
46376 *:-:* | *:-) cat >"$ac_tmp/stdin" \
46377 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
46382 ac_dir=`$as_dirname -- "$ac_file" ||
46383 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46384 X"$ac_file" : 'X\(//\)[^/]' \| \
46385 X"$ac_file" : 'X\(//\)$' \| \
46386 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
46387 $as_echo X"$ac_file" |
46388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46392 /^X\(\/\/\)[^/].*/{
46405 as_dir="$ac_dir"; as_fn_mkdir_p
46409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
46411 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
46412 # A ".." for each directory in $ac_dir_suffix.
46413 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
46414 case $ac_top_builddir_sub in
46415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
46416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
46419 ac_abs_top_builddir=$ac_pwd
46420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
46421 # for backward compatibility:
46422 ac_top_builddir=$ac_top_build_prefix
46425 .) # We are building in place.
46427 ac_top_srcdir=$ac_top_builddir_sub
46428 ac_abs_top_srcdir=$ac_pwd ;;
46429 [\\/]* | ?:[\\/]* ) # Absolute name.
46430 ac_srcdir=$srcdir$ac_dir_suffix;
46431 ac_top_srcdir=$srcdir
46432 ac_abs_top_srcdir=$srcdir ;;
46433 *) # Relative name.
46434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
46435 ac_top_srcdir=$ac_top_build_prefix$srcdir
46436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
46438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
46448 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46449 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
46451 ac_MKDIR_P=$MKDIR_P
46453 [\\/$]* | ?:[\\/]* ) ;;
46454 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
46458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46459 # If the template does not know about datarootdir, expand it.
46460 # FIXME: This hack should be removed a few years after 2.60.
46461 ac_datarootdir_hack=; ac_datarootdir_seen=
46472 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
46473 *datarootdir*) ac_datarootdir_seen=yes;;
46474 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
46475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
46476 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
46478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46479 ac_datarootdir_hack='
46480 s&@datadir@&$datadir&g
46481 s&@docdir@&$docdir&g
46482 s&@infodir@&$infodir&g
46483 s&@localedir@&$localedir&g
46484 s&@mandir@&$mandir&g
46485 s&\\\${datarootdir}&$datarootdir&g' ;;
46489 # Neutralize VPATH when `$srcdir' = `.'.
46490 # Shell code in configure.ac might set extrasub.
46491 # FIXME: do we really want to maintain this feature?
46492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46493 ac_sed_extra="$ac_vpsub
46496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46498 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46499 s|@configure_input@|$ac_sed_conf_input|;t t
46500 s&@top_builddir@&$ac_top_builddir_sub&;t t
46501 s&@top_build_prefix@&$ac_top_build_prefix&;t t
46502 s&@srcdir@&$ac_srcdir&;t t
46503 s&@abs_srcdir@&$ac_abs_srcdir&;t t
46504 s&@top_srcdir@&$ac_top_srcdir&;t t
46505 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
46506 s&@builddir@&$ac_builddir&;t t
46507 s&@abs_builddir@&$ac_abs_builddir&;t t
46508 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
46509 s&@INSTALL@&$ac_INSTALL&;t t
46510 s&@MKDIR_P@&$ac_MKDIR_P&;t t
46511 $ac_datarootdir_hack
46513 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
46514 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46516 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
46517 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
46518 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
46519 "$ac_tmp/out"`; test -z "$ac_out"; } &&
46520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46521 which seems to be undefined. Please make sure it is defined" >&5
46522 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46523 which seems to be undefined. Please make sure it is defined" >&2;}
46525 rm -f "$ac_tmp/stdin"
46527 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
46528 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
46530 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46536 if test x"$ac_file" != x-; then
46538 $as_echo "/* $configure_input */" \
46539 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
46540 } >"$ac_tmp/config.h" \
46541 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46542 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
46543 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
46544 $as_echo "$as_me: $ac_file is unchanged" >&6;}
46547 mv "$ac_tmp/config.h" "$ac_file" \
46548 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46551 $as_echo "/* $configure_input */" \
46552 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
46553 || as_fn_error $? "could not create -" "$LINENO" 5
46555 # Compute "$ac_file"'s index in $config_headers.
46558 for _am_header in $config_headers :; do
46559 case $_am_header in
46560 $_am_arg | $_am_arg:* )
46563 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46566 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
46567 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46568 X"$_am_arg" : 'X\(//\)[^/]' \| \
46569 X"$_am_arg" : 'X\(//\)$' \| \
46570 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
46571 $as_echo X"$_am_arg" |
46572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46576 /^X\(\/\/\)[^/].*/{
46588 s/.*/./; q'`/stamp-h$_am_stamp_count
46591 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
46592 $as_echo "$as_me: executing $ac_file commands" >&6;}
46597 case $ac_file$ac_mode in
46598 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
46599 # Autoconf 2.62 quotes --file arguments for eval, but not when files
46600 # are listed without --file. Let's play safe and only enable the eval
46601 # if we detect the quoting.
46602 case $CONFIG_FILES in
46603 *\'*) eval set x "$CONFIG_FILES" ;;
46604 *) set x $CONFIG_FILES ;;
46609 # Strip MF so we end up with the name of the file.
46610 mf=`echo "$mf" | sed -e 's/:.*$//'`
46611 # Check whether this is an Automake generated Makefile or not.
46612 # We used to match only the files named `Makefile.in', but
46613 # some people rename them; so instead we look at the file content.
46614 # Grep'ing the first line is not enough: some people post-process
46615 # each Makefile.in and add a new line on top of each file to say so.
46616 # Grep'ing the whole file is not good either: AIX grep has a line
46617 # limit of 2048, but all sed's we know have understand at least 4000.
46618 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
46619 dirpart=`$as_dirname -- "$mf" ||
46620 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46621 X"$mf" : 'X\(//\)[^/]' \| \
46622 X"$mf" : 'X\(//\)$' \| \
46623 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
46625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46629 /^X\(\/\/\)[^/].*/{
46645 # Extract the definition of DEPDIR, am__include, and am__quote
46646 # from the Makefile without running `make'.
46647 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46648 test -z "$DEPDIR" && continue
46649 am__include=`sed -n 's/^am__include = //p' < "$mf"`
46650 test -z "am__include" && continue
46651 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46652 # When using ansi2knr, U may be empty or an underscore; expand it
46653 U=`sed -n 's/^U = //p' < "$mf"`
46654 # Find all dependency output files, they are included files with
46655 # $(DEPDIR) in their names. We invoke sed twice because it is the
46656 # simplest approach to changing $(DEPDIR) to its actual value in the
46658 for file in `sed -n "
46659 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46660 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46661 # Make sure the directory exists.
46662 test -f "$dirpart/$file" && continue
46663 fdir=`$as_dirname -- "$file" ||
46664 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46665 X"$file" : 'X\(//\)[^/]' \| \
46666 X"$file" : 'X\(//\)$' \| \
46667 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
46668 $as_echo X"$file" |
46669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46673 /^X\(\/\/\)[^/].*/{
46686 as_dir=$dirpart/$fdir; as_fn_mkdir_p
46687 # echo "creating $dirpart/$file"
46688 echo '# dummy' > "$dirpart/$file"
46693 "po-directories":C)
46694 for ac_file in $CONFIG_FILES; do
46695 # Support "outfile[:infile[:infile...]]"
46697 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
46699 # PO directories have a Makefile.in generated from Makefile.in.in.
46700 case "$ac_file" in */Makefile.in)
46701 # Adjust a relative srcdir.
46702 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46703 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
46704 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
46705 # In autoconf-2.13 it is called $ac_given_srcdir.
46706 # In autoconf-2.50 it is called $srcdir.
46707 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
46708 case "$ac_given_srcdir" in
46709 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
46710 /*) top_srcdir="$ac_given_srcdir" ;;
46711 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
46713 # Treat a directory as a PO directory if and only if it has a
46714 # POTFILES.in file. This allows packages to have multiple PO
46715 # directories under different names or in different locations.
46716 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
46717 rm -f "$ac_dir/POTFILES"
46718 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
46719 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
46720 POMAKEFILEDEPS="POTFILES.in"
46721 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
46722 # on $ac_dir but don't depend on user-specified configuration
46724 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
46725 # The LINGUAS file contains the set of available languages.
46726 if test -n "$OBSOLETE_ALL_LINGUAS"; then
46727 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
46729 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
46730 # Hide the ALL_LINGUAS assigment from automake < 1.5.
46731 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
46732 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
46734 # The set of available languages was given in configure.in.
46735 # Hide the ALL_LINGUAS assigment from automake < 1.5.
46736 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
46739 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
46740 # Compute UPDATEPOFILES
46741 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
46742 # Compute DUMMYPOFILES
46743 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
46745 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
46746 case "$ac_given_srcdir" in
46748 *) srcdirpre='$(srcdir)/' ;;
46754 for lang in $ALL_LINGUAS; do
46755 POFILES="$POFILES $srcdirpre$lang.po"
46756 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
46757 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
46758 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
46760 # CATALOGS depends on both $ac_dir and the user's LINGUAS
46761 # environment variable.
46763 if test -n "$ALL_LINGUAS"; then
46764 for presentlang in $ALL_LINGUAS; do
46766 if test "%UNSET%" != "$LINGUAS"; then
46767 desiredlanguages="$LINGUAS"
46769 desiredlanguages="$ALL_LINGUAS"
46771 for desiredlang in $desiredlanguages; do
46772 # Use the presentlang catalog if desiredlang is
46773 # a. equal to presentlang, or
46774 # b. a variant of presentlang (because in this case,
46775 # presentlang can be used as a fallback for messages
46776 # which are not translated in the desiredlang catalog).
46777 case "$desiredlang" in
46778 "$presentlang"*) useit=yes;;
46781 if test $useit = yes; then
46782 INST_LINGUAS="$INST_LINGUAS $presentlang"
46787 if test -n "$INST_LINGUAS"; then
46788 for lang in $INST_LINGUAS; do
46789 CATALOGS="$CATALOGS $lang.gmo"
46792 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
46793 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"
46794 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
46795 if test -f "$f"; then
46797 *.orig | *.bak | *~) ;;
46798 *) cat "$f" >> "$ac_dir/Makefile" ;;
46808 # See if we are running on zsh, and set the options which allow our
46809 # commands through without removal of \ escapes.
46810 if test -n "${ZSH_VERSION+set}" ; then
46811 setopt NO_GLOB_SUBST
46814 cfgfile="${ofile}T"
46815 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
46818 cat <<_LT_EOF >> "$cfgfile"
46821 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
46822 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
46823 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
46824 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
46826 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
46827 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
46829 # Written by Gordon Matzigkeit, 1996
46831 # This file is part of GNU Libtool.
46833 # GNU Libtool is free software; you can redistribute it and/or
46834 # modify it under the terms of the GNU General Public License as
46835 # published by the Free Software Foundation; either version 2 of
46836 # the License, or (at your option) any later version.
46838 # As a special exception to the GNU General Public License,
46839 # if you distribute this file as part of a program or library that
46840 # is built using GNU Libtool, you may include this file under the
46841 # same distribution terms that you use for the rest of that program.
46843 # GNU Libtool is distributed in the hope that it will be useful,
46844 # but WITHOUT ANY WARRANTY; without even the implied warranty of
46845 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46846 # GNU General Public License for more details.
46848 # You should have received a copy of the GNU General Public License
46849 # along with GNU Libtool; see the file COPYING. If not, a copy
46850 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
46851 # obtained by writing to the Free Software Foundation, Inc.,
46852 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
46855 # The names of the tagged configurations supported by this script.
46858 # ### BEGIN LIBTOOL CONFIG
46860 # Which release of libtool.m4 was used?
46861 macro_version=$macro_version
46862 macro_revision=$macro_revision
46864 # Whether or not to build shared libraries.
46865 build_libtool_libs=$enable_shared
46867 # Whether or not to build static libraries.
46868 build_old_libs=$enable_static
46870 # What type of objects to build.
46873 # Whether or not to optimize for fast installation.
46874 fast_install=$enable_fast_install
46876 # Shell to use when invoking shell scripts.
46879 # An echo program that protects backslashes.
46883 host_alias=$host_alias
46887 # The build system.
46888 build_alias=$build_alias
46892 # A sed program that does not truncate output.
46895 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
46896 Xsed="\$SED -e 1s/^X//"
46898 # A grep program that handles long lines.
46904 # A literal string matcher.
46907 # A BSD- or MS-compatible name lister.
46910 # Whether we need soft or hard links.
46913 # What is the maximum length of a command?
46914 max_cmd_len=$max_cmd_len
46916 # Object file suffix (normally "o").
46919 # Executable file suffix (normally "").
46922 # whether the shell understands "unset".
46925 # turn spaces into newlines.
46928 # turn newlines into spaces.
46931 # convert \$build file names to \$host format.
46932 to_host_file_cmd=$lt_cv_to_host_file_cmd
46934 # convert \$build files to toolchain format.
46935 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
46937 # An object symbol dumper.
46938 OBJDUMP=$lt_OBJDUMP
46940 # Method to check whether dependent libraries are shared objects.
46941 deplibs_check_method=$lt_deplibs_check_method
46943 # Command to use when deplibs_check_method = "file_magic".
46944 file_magic_cmd=$lt_file_magic_cmd
46946 # How to find potential files when deplibs_check_method = "file_magic".
46947 file_magic_glob=$lt_file_magic_glob
46949 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
46950 want_nocaseglob=$lt_want_nocaseglob
46952 # DLL creation program.
46953 DLLTOOL=$lt_DLLTOOL
46955 # Command to associate shared and link libraries.
46956 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
46961 # Flags to create an archive.
46962 AR_FLAGS=$lt_AR_FLAGS
46964 # How to feed a file listing to the archiver.
46965 archiver_list_spec=$lt_archiver_list_spec
46967 # A symbol stripping program.
46970 # Commands used to install an old-style archive.
46972 old_postinstall_cmds=$lt_old_postinstall_cmds
46973 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46975 # Whether to use a lock for old archive extraction.
46976 lock_old_archive_extraction=$lock_old_archive_extraction
46981 # LTCC compiler flags.
46982 LTCFLAGS=$lt_CFLAGS
46984 # Take the output of nm and produce a listing of raw symbols and C names.
46985 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46987 # Transform the output of nm in a proper C declaration.
46988 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46990 # Transform the output of nm in a C name address pair.
46991 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46993 # Transform the output of nm in a C name address pair when lib prefix is needed.
46994 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
46996 # Specify filename containing input files for \$NM.
46997 nm_file_list_spec=$lt_nm_file_list_spec
46999 # The root where to search for dependent libraries,and in which our libraries should be installed.
47000 lt_sysroot=$lt_sysroot
47002 # The name of the directory that contains temporary libtool files.
47005 # Used to examine libraries when file_magic_cmd begins with "file".
47006 MAGIC_CMD=$MAGIC_CMD
47008 # Must we lock files when doing compilation?
47009 need_locks=$lt_need_locks
47012 MANIFEST_TOOL=$lt_MANIFEST_TOOL
47014 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
47015 DSYMUTIL=$lt_DSYMUTIL
47017 # Tool to change global to local symbols on Mac OS X.
47020 # Tool to manipulate fat objects and archives on Mac OS X.
47023 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
47026 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
47027 OTOOL64=$lt_OTOOL64
47029 # Old archive suffix (normally "a").
47032 # Shared library suffix (normally ".so").
47033 shrext_cmds=$lt_shrext_cmds
47035 # The commands to extract the exported symbol list from a shared archive.
47036 extract_expsyms_cmds=$lt_extract_expsyms_cmds
47038 # Variables whose values should be saved in libtool wrapper scripts and
47039 # restored at link time.
47040 variables_saved_for_relink=$lt_variables_saved_for_relink
47042 # Do we need the "lib" prefix for modules?
47043 need_lib_prefix=$need_lib_prefix
47045 # Do we need a version for libraries?
47046 need_version=$need_version
47048 # Library versioning type.
47049 version_type=$version_type
47051 # Shared library runtime path variable.
47052 runpath_var=$runpath_var
47054 # Shared library path variable.
47055 shlibpath_var=$shlibpath_var
47057 # Is shlibpath searched before the hard-coded library search path?
47058 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47060 # Format of library name prefix.
47061 libname_spec=$lt_libname_spec
47063 # List of archive names. First name is the real one, the rest are links.
47064 # The last name is the one that the linker finds with -lNAME
47065 library_names_spec=$lt_library_names_spec
47067 # The coded name of the library, if different from the real name.
47068 soname_spec=$lt_soname_spec
47070 # Permission mode override for installation of shared libraries.
47071 install_override_mode=$lt_install_override_mode
47073 # Command to use after installation of a shared archive.
47074 postinstall_cmds=$lt_postinstall_cmds
47076 # Command to use after uninstallation of a shared archive.
47077 postuninstall_cmds=$lt_postuninstall_cmds
47079 # Commands used to finish a libtool library installation in a directory.
47080 finish_cmds=$lt_finish_cmds
47082 # As "finish_cmds", except a single script fragment to be evaled but
47084 finish_eval=$lt_finish_eval
47086 # Whether we should hardcode library paths into libraries.
47087 hardcode_into_libs=$hardcode_into_libs
47089 # Compile-time system search path for libraries.
47090 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47092 # Run-time system search path for libraries.
47093 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
47095 # Whether dlopen is supported.
47096 dlopen_support=$enable_dlopen
47098 # Whether dlopen of programs is supported.
47099 dlopen_self=$enable_dlopen_self
47101 # Whether dlopen of statically linked programs is supported.
47102 dlopen_self_static=$enable_dlopen_self_static
47104 # Commands to strip libraries.
47105 old_striplib=$lt_old_striplib
47106 striplib=$lt_striplib
47109 # The linker used to build libraries.
47112 # How to create reloadable object files.
47113 reload_flag=$lt_reload_flag
47114 reload_cmds=$lt_reload_cmds
47116 # Commands used to build an old-style archive.
47117 old_archive_cmds=$lt_old_archive_cmds
47119 # A language specific compiler.
47122 # Is the compiler the GNU compiler?
47125 # Compiler flag to turn off builtin functions.
47126 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
47128 # Additional compiler flags for building library objects.
47129 pic_flag=$lt_lt_prog_compiler_pic
47131 # How to pass a linker flag through the compiler.
47132 wl=$lt_lt_prog_compiler_wl
47134 # Compiler flag to prevent dynamic linking.
47135 link_static_flag=$lt_lt_prog_compiler_static
47137 # Does compiler simultaneously support -c and -o options?
47138 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
47140 # Whether or not to add -lc for building shared libraries.
47141 build_libtool_need_lc=$archive_cmds_need_lc
47143 # Whether or not to disallow shared libs when runtime libs are static.
47144 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
47146 # Compiler flag to allow reflexive dlopens.
47147 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
47149 # Compiler flag to generate shared objects directly from archives.
47150 whole_archive_flag_spec=$lt_whole_archive_flag_spec
47152 # Whether the compiler copes with passing no objects directly.
47153 compiler_needs_object=$lt_compiler_needs_object
47155 # Create an old-style archive from a shared archive.
47156 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
47158 # Create a temporary old-style archive to link instead of a shared archive.
47159 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
47161 # Commands used to build a shared archive.
47162 archive_cmds=$lt_archive_cmds
47163 archive_expsym_cmds=$lt_archive_expsym_cmds
47165 # Commands used to build a loadable module if different from building
47166 # a shared archive.
47167 module_cmds=$lt_module_cmds
47168 module_expsym_cmds=$lt_module_expsym_cmds
47170 # Whether we are building with GNU ld or not.
47171 with_gnu_ld=$lt_with_gnu_ld
47173 # Flag that allows shared libraries with undefined symbols to be built.
47174 allow_undefined_flag=$lt_allow_undefined_flag
47176 # Flag that enforces no undefined symbols.
47177 no_undefined_flag=$lt_no_undefined_flag
47179 # Flag to hardcode \$libdir into a binary during linking.
47180 # This must work even if \$libdir does not exist
47181 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
47183 # If ld is used when linking, flag to hardcode \$libdir into a binary
47184 # during linking. This must work even if \$libdir does not exist.
47185 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
47187 # Whether we need a single "-rpath" flag with a separated argument.
47188 hardcode_libdir_separator=$lt_hardcode_libdir_separator
47190 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47191 # DIR into the resulting binary.
47192 hardcode_direct=$hardcode_direct
47194 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47195 # DIR into the resulting binary and the resulting library dependency is
47196 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
47197 # library is relocated.
47198 hardcode_direct_absolute=$hardcode_direct_absolute
47200 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47201 # into the resulting binary.
47202 hardcode_minus_L=$hardcode_minus_L
47204 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47205 # into the resulting binary.
47206 hardcode_shlibpath_var=$hardcode_shlibpath_var
47208 # Set to "yes" if building a shared library automatically hardcodes DIR
47209 # into the library and all subsequent libraries and executables linked
47211 hardcode_automatic=$hardcode_automatic
47213 # Set to yes if linker adds runtime paths of dependent libraries
47214 # to runtime path list.
47215 inherit_rpath=$inherit_rpath
47217 # Whether libtool must link a program against all its dependency libraries.
47218 link_all_deplibs=$link_all_deplibs
47220 # Set to "yes" if exported symbols are required.
47221 always_export_symbols=$always_export_symbols
47223 # The commands to list exported symbols.
47224 export_symbols_cmds=$lt_export_symbols_cmds
47226 # Symbols that should not be listed in the preloaded symbols.
47227 exclude_expsyms=$lt_exclude_expsyms
47229 # Symbols that must always be exported.
47230 include_expsyms=$lt_include_expsyms
47232 # Commands necessary for linking programs (against libraries) with templates.
47233 prelink_cmds=$lt_prelink_cmds
47235 # Commands necessary for finishing linking programs.
47236 postlink_cmds=$lt_postlink_cmds
47238 # Specify filename containing input files.
47239 file_list_spec=$lt_file_list_spec
47241 # How to hardcode a shared library path into an executable.
47242 hardcode_action=$hardcode_action
47244 # ### END LIBTOOL CONFIG
47250 cat <<\_LT_EOF >> "$cfgfile"
47251 # AIX sometimes has problems with the GCC collect2 program. For some
47252 # reason, if we set the COLLECT_NAMES environment variable, the problems
47253 # vanish in a puff of smoke.
47254 if test "X${COLLECT_NAMES+set}" != Xset; then
47256 export COLLECT_NAMES
47263 ltmain="$ac_aux_dir/ltmain.sh"
47266 # We use sed instead of cat because bash on DJGPP gets confused if
47267 # if finds mixed CR/LF and LF-only lines. Since sed operates in
47268 # text mode, it properly converts lines to CR/LF. This bash problem
47269 # is reportedly fixed, but why not run on old versions too?
47270 sed '$q' "$ltmain" >> "$cfgfile" \
47271 || (rm -f "$cfgfile"; exit 1)
47273 if test x"$xsi_shell" = xyes; then
47274 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
47278 \ */*) func_dirname_result="${1%/*}${2}" ;;\
47279 \ * ) func_dirname_result="${3}" ;;\
47281 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
47282 && mv -f "$cfgfile.tmp" "$cfgfile" \
47283 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47284 test 0 -eq $? || _lt_function_replace_fail=:
47287 sed -e '/^func_basename ()$/,/^} # func_basename /c\
47290 \ func_basename_result="${1##*/}"\
47291 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
47292 && mv -f "$cfgfile.tmp" "$cfgfile" \
47293 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47294 test 0 -eq $? || _lt_function_replace_fail=:
47297 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
47298 func_dirname_and_basename ()\
47301 \ */*) func_dirname_result="${1%/*}${2}" ;;\
47302 \ * ) func_dirname_result="${3}" ;;\
47304 \ func_basename_result="${1##*/}"\
47305 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
47306 && mv -f "$cfgfile.tmp" "$cfgfile" \
47307 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47308 test 0 -eq $? || _lt_function_replace_fail=:
47311 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
47314 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
47315 \ # positional parameters, so assign one to ordinary parameter first.\
47316 \ func_stripname_result=${3}\
47317 \ func_stripname_result=${func_stripname_result#"${1}"}\
47318 \ func_stripname_result=${func_stripname_result%"${2}"}\
47319 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
47320 && mv -f "$cfgfile.tmp" "$cfgfile" \
47321 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47322 test 0 -eq $? || _lt_function_replace_fail=:
47325 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
47326 func_split_long_opt ()\
47328 \ func_split_long_opt_name=${1%%=*}\
47329 \ func_split_long_opt_arg=${1#*=}\
47330 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
47331 && mv -f "$cfgfile.tmp" "$cfgfile" \
47332 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47333 test 0 -eq $? || _lt_function_replace_fail=:
47336 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
47337 func_split_short_opt ()\
47339 \ func_split_short_opt_arg=${1#??}\
47340 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
47341 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
47342 && mv -f "$cfgfile.tmp" "$cfgfile" \
47343 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47344 test 0 -eq $? || _lt_function_replace_fail=:
47347 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
47351 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
47352 \ *) func_lo2o_result=${1} ;;\
47354 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
47355 && mv -f "$cfgfile.tmp" "$cfgfile" \
47356 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47357 test 0 -eq $? || _lt_function_replace_fail=:
47360 sed -e '/^func_xform ()$/,/^} # func_xform /c\
47363 func_xform_result=${1%.*}.lo\
47364 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
47365 && mv -f "$cfgfile.tmp" "$cfgfile" \
47366 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47367 test 0 -eq $? || _lt_function_replace_fail=:
47370 sed -e '/^func_arith ()$/,/^} # func_arith /c\
47373 func_arith_result=$(( $* ))\
47374 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
47375 && mv -f "$cfgfile.tmp" "$cfgfile" \
47376 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47377 test 0 -eq $? || _lt_function_replace_fail=:
47380 sed -e '/^func_len ()$/,/^} # func_len /c\
47383 func_len_result=${#1}\
47384 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
47385 && mv -f "$cfgfile.tmp" "$cfgfile" \
47386 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47387 test 0 -eq $? || _lt_function_replace_fail=:
47391 if test x"$lt_shell_append" = xyes; then
47392 sed -e '/^func_append ()$/,/^} # func_append /c\
47395 eval "${1}+=\\${2}"\
47396 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
47397 && mv -f "$cfgfile.tmp" "$cfgfile" \
47398 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47399 test 0 -eq $? || _lt_function_replace_fail=:
47402 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
47403 func_append_quoted ()\
47405 \ func_quote_for_eval "${2}"\
47406 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
47407 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
47408 && mv -f "$cfgfile.tmp" "$cfgfile" \
47409 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47410 test 0 -eq $? || _lt_function_replace_fail=:
47413 # Save a `func_append' function call where possible by direct use of '+='
47414 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
47415 && mv -f "$cfgfile.tmp" "$cfgfile" \
47416 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47417 test 0 -eq $? || _lt_function_replace_fail=:
47419 # Save a `func_append' function call even when '+=' is not available
47420 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
47421 && mv -f "$cfgfile.tmp" "$cfgfile" \
47422 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47423 test 0 -eq $? || _lt_function_replace_fail=:
47426 if test x"$_lt_function_replace_fail" = x":"; then
47427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
47428 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
47432 mv -f "$cfgfile" "$ofile" ||
47433 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
47444 ac_clean_files=$ac_clean_files_save
47446 test $ac_write_fail = 0 ||
47447 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
47450 # configure is writing to config.log, and then calls config.status.
47451 # config.status does its own redirection, appending to config.log.
47452 # Unfortunately, on DOS this fails, as config.log is still kept open
47453 # by configure, so config.status won't be able to write to it; its
47454 # output is simply discarded. So we exec the FD to /dev/null,
47455 # effectively closing config.log, so it can be properly (re)opened and
47456 # appended to by config.status. When coming back to configure, we
47457 # need to make the FD available again.
47458 if test "$no_create" != yes; then
47460 ac_config_status_args=
47461 test "$silent" = yes &&
47462 ac_config_status_args="$ac_config_status_args --quiet"
47464 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47466 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47467 # would make configure fail if this is the last instruction.
47468 $ac_cs_success || as_fn_exit 1
47470 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
47471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
47472 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
47477 echo "Compiler Flags:"
47478 echo " CFLAGS: ${CFLAGS-(none)}"
47479 echo " CPPFLAGS: ${CPPFLAGS-(none)}"
47480 echo " LDFLAGS: ${LDFLAGS-(none)}"
47481 echo " LIBS: ${LIBS-(none)}"
47484 echo "Amanda Components:$AMANDA_COMPONENTS$missing_components"
47487 echo "Working IPv6:" $WORKING_IPV6
47490 echo "Build documentation:" $ENABLE_MANPAGE_BUILD
47493 echo "Directories:"
47494 echo " Application: $APPLICATION_DIR"
47495 echo " Configuration: $CONFIG_DIR"
47496 echo " GNU Tar lists: $GNUTAR_LISTED_INCREMENTAL_DIR"
47497 echo " Perl modules (amperldir): $amperldir"
47498 echo " Template and example data files (amdatadir): $amdatadir"
47499 echo " Temporary: $AMANDA_TMPDIR"
47501 if test -f config.warnings; then
47503 cat config.warnings | sed -e 's/^/ /g'