2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for GnuTLS 2.12.20.
5 # Report bugs to <bug-gnutls@gnu.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-gnutls@gnu.org
250 $0: about your system, including any error possibly output
251 $0: before this message. Then install a modern shell, or
252 $0: manually run the script under such a shell if you do
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
571 PACKAGE_NAME='GnuTLS'
572 PACKAGE_TARNAME='gnutls'
573 PACKAGE_VERSION='2.12.20'
574 PACKAGE_STRING='GnuTLS 2.12.20'
575 PACKAGE_BUGREPORT='bug-gnutls@gnu.org'
578 # Factoring default headers for most tests.
579 ac_includes_default="\
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
591 # ifdef HAVE_STDLIB_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
614 gl_use_threads_default=
617 enable_option_checking=no
618 ac_subst_vars='gltests_LTLIBOBJS
633 NEXT_AS_FIRST_DIRECTIVE_SYS_IOCTL_H
636 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
638 UINT64_MAX_EQ_ULONG_MAX
639 UINT32_MAX_LT_UINTMAX_MAX
642 INT64_MAX_EQ_LONG_MAX
643 INT32_MAX_LT_INTMAX_MAX
653 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
666 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
762 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
764 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
765 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
766 TIME_H_DEFINES_STRUCT_TIMESPEC
767 NEXT_AS_FIRST_DIRECTIVE_TIME_H
776 HAVE_DECL_LOCALTIME_R
783 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
785 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
787 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
789 NEXT_AS_FIRST_DIRECTIVE_STRING_H
791 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
793 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
795 GL_GENERATE_STDINT_H_FALSE
796 GL_GENERATE_STDINT_H_TRUE
805 HAVE_SIGNED_SIG_ATOMIC_T
808 BITSIZEOF_SIG_ATOMIC_T
814 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
819 HAVE_UNSIGNED_LONG_LONG_INT
821 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
823 GL_GENERATE_STDDEF_H_FALSE
824 GL_GENERATE_STDDEF_H_TRUE
829 GL_GENERATE_STDBOOL_H_FALSE
830 GL_GENERATE_STDBOOL_H_TRUE
832 GL_GENERATE_STDARG_H_FALSE
833 GL_GENERATE_STDARG_H_TRUE
835 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
837 GL_GENERATE_STDALIGN_H_FALSE
838 GL_GENERATE_STDALIGN_H_TRUE
840 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
843 REPLACE_PTHREAD_SIGMASK
845 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
846 HAVE_STRUCT_SIGACTION_SA_SIGACTION
852 HAVE_POSIX_SIGNALBLOCKING
855 GNULIB_SIGNAL_H_SIGPIPE
857 GNULIB_PTHREAD_SIGMASK
860 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
870 GL_GENERATE_NETINET_IN_H_FALSE
871 GL_GENERATE_NETINET_IN_H_TRUE
874 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
876 APPLE_UNIVERSAL_BUILD
962 REPLACE_CANONICALIZE_FILE_NAME
967 HAVE_STRUCT_RANDOM_DATA
989 HAVE_CANONICALIZE_FILE_NAME
1002 GNULIB_REALLOC_POSIX
1019 GNULIB_CANONICALIZE_FILE_NAME
1031 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1033 REPLACE_STRUCT_TIMEVAL
1034 REPLACE_GETTIMEOFDAY
1046 NEXT_AS_FIRST_DIRECTIVE_NETDB_H
1048 REPLACE_GAI_STRERROR
1049 HAVE_DECL_GETNAMEINFO
1050 HAVE_DECL_GETADDRINFO
1051 HAVE_DECL_GAI_STRERROR
1052 HAVE_DECL_FREEADDRINFO
1053 HAVE_STRUCT_ADDRINFO
1095 REPLACE_STDIO_WRITE_FUNCS
1096 REPLACE_STDIO_READ_FUNCS
1105 REPLACE_OBSTACK_PRINTF
1130 HAVE_DECL_OBSTACK_PRINTF
1136 GNULIB_VSPRINTF_POSIX
1138 GNULIB_VPRINTF_POSIX
1140 GNULIB_VFPRINTF_POSIX
1147 GNULIB_STDIO_H_SIGPIPE
1148 GNULIB_STDIO_H_NONBLOCKING
1149 GNULIB_SPRINTF_POSIX
1163 GNULIB_OBSTACK_PRINTF_POSIX
1164 GNULIB_OBSTACK_PRINTF
1181 GNULIB_FPRINTF_POSIX
1191 GL_GENERATE_FLOAT_H_FALSE
1192 GL_GENERATE_FLOAT_H_TRUE
1194 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1202 GL_GENERATE_ERRNO_H_FALSE
1203 GL_GENERATE_ERRNO_H_TRUE
1205 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1207 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1210 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1219 GL_GENERATE_ALLOCA_H_FALSE
1220 GL_GENERATE_ALLOCA_H_TRUE
1226 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1229 PRAGMA_SYSTEM_HEADER
1230 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1234 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
1235 HAVE_STRUCT_SOCKADDR_STORAGE
1251 GL_COND_LIBTOOL_FALSE
1252 GL_COND_LIBTOOL_TRUE
1275 HAVE_GCC_GNU89_INLINE_OPTION_FALSE
1276 HAVE_GCC_GNU89_INLINE_OPTION_TRUE
1295 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1296 SYS_IOCTL_H_HAVE_WINSOCK2_H
1298 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1299 UNISTD_H_HAVE_WINSOCK2_H
1320 REPLACE_GETDOMAINNAME
1330 HAVE_DECL_SETHOSTNAME
1331 HAVE_DECL_GETUSERSHELL
1332 HAVE_DECL_GETPAGESIZE
1333 HAVE_DECL_GETLOGIN_R
1334 HAVE_DECL_GETDOMAINNAME
1373 GNULIB_UNISTD_H_SIGPIPE
1374 GNULIB_UNISTD_H_NONBLOCKING
1400 GNULIB_GETDTABLESIZE
1401 GNULIB_GETDOMAINNAME
1417 ENABLE_OPENSSL_FALSE
1419 ENABLE_SESSION_TICKET_FALSE
1420 ENABLE_SESSION_TICKET_TRUE
1421 ENABLE_OPENPGP_FALSE
1436 ENABLE_MINITASN1_FALSE
1437 ENABLE_MINITASN1_TRUE
1463 WANT_TEST_SUITE_FALSE
1464 WANT_TEST_SUITE_TRUE
1467 am__fastdepCXX_FALSE
1488 GTK_DOC_USE_REBASE_FALSE
1489 GTK_DOC_USE_REBASE_TRUE
1490 GTK_DOC_USE_LIBTOOL_FALSE
1491 GTK_DOC_USE_LIBTOOL_TRUE
1492 GTK_DOC_BUILD_PDF_FALSE
1493 GTK_DOC_BUILD_PDF_TRUE
1494 GTK_DOC_BUILD_HTML_FALSE
1495 GTK_DOC_BUILD_HTML_TRUE
1496 ENABLE_GTK_DOC_FALSE
1522 AM_DEFAULT_VERBOSITY
1533 INSTALL_STRIP_PROGRAM
1575 program_transform_name
1588 enable_option_checking
1590 enable_dependency_tracking
1601 with_libgcrypt_prefix
1602 with_libnettle_prefix
1603 with_included_libtasn1
1604 with_libtasn1_prefix
1606 enable_opaque_prf_input
1607 enable_srp_authentication
1608 enable_psk_authentication
1609 enable_anon_authentication
1612 enable_openpgp_authentication
1613 enable_session_ticket
1615 enable_openssl_compatibility
1618 with___with_guile_site_dir
1619 with_included_libcfg
1627 with_libreadline_prefix
1628 enable_valgrind_tests
1630 with_packager_version
1631 with_packager_bug_reports
1634 ac_precious_vars='build_alias
1653 # Initialize some variables set by options.
1655 ac_init_version=false
1656 ac_unrecognized_opts=
1657 ac_unrecognized_sep=
1658 # The variables have the same names as the options, with
1659 # dashes changed to underlines.
1660 cache_file=/dev/null
1667 program_transform_name=s,x,x,
1675 # Installation directory options.
1676 # These are left unexpanded so users can "make install exec_prefix=/foo"
1677 # and all the variables that are supposed to be based on exec_prefix
1678 # by default will actually change.
1679 # Use braces instead of parens because sh, perl, etc. also accept them.
1680 # (The list follows the same order as the GNU Coding Standards.)
1681 bindir='${exec_prefix}/bin'
1682 sbindir='${exec_prefix}/sbin'
1683 libexecdir='${exec_prefix}/libexec'
1684 datarootdir='${prefix}/share'
1685 datadir='${datarootdir}'
1686 sysconfdir='${prefix}/etc'
1687 sharedstatedir='${prefix}/com'
1688 localstatedir='${prefix}/var'
1689 includedir='${prefix}/include'
1690 oldincludedir='/usr/include'
1691 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1692 infodir='${datarootdir}/info'
1697 libdir='${exec_prefix}/lib'
1698 localedir='${datarootdir}/locale'
1699 mandir='${datarootdir}/man'
1705 # If the previous option needs an argument, assign it.
1706 if test -n "$ac_prev"; then
1707 eval $ac_prev=\$ac_option
1713 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1718 # Accept the important Cygnus configure options, so we can diagnose typos.
1720 case $ac_dashdash$ac_option in
1724 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1726 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1727 bindir=$ac_optarg ;;
1729 -build | --build | --buil | --bui | --bu)
1730 ac_prev=build_alias ;;
1731 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1732 build_alias=$ac_optarg ;;
1734 -cache-file | --cache-file | --cache-fil | --cache-fi \
1735 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1736 ac_prev=cache_file ;;
1737 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1738 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1739 cache_file=$ac_optarg ;;
1741 --config-cache | -C)
1742 cache_file=config.cache ;;
1744 -datadir | --datadir | --datadi | --datad)
1746 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1747 datadir=$ac_optarg ;;
1749 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1750 | --dataroo | --dataro | --datar)
1751 ac_prev=datarootdir ;;
1752 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1753 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1754 datarootdir=$ac_optarg ;;
1756 -disable-* | --disable-*)
1757 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1758 # Reject names that are not valid shell variable names.
1759 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1760 as_fn_error $? "invalid feature name: $ac_useropt"
1761 ac_useropt_orig=$ac_useropt
1762 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1763 case $ac_user_opts in
1765 "enable_$ac_useropt"
1767 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1768 ac_unrecognized_sep=', ';;
1770 eval enable_$ac_useropt=no ;;
1772 -docdir | --docdir | --docdi | --doc | --do)
1774 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1775 docdir=$ac_optarg ;;
1777 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1779 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1780 dvidir=$ac_optarg ;;
1782 -enable-* | --enable-*)
1783 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1784 # Reject names that are not valid shell variable names.
1785 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1786 as_fn_error $? "invalid feature name: $ac_useropt"
1787 ac_useropt_orig=$ac_useropt
1788 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1789 case $ac_user_opts in
1791 "enable_$ac_useropt"
1793 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1794 ac_unrecognized_sep=', ';;
1796 eval enable_$ac_useropt=\$ac_optarg ;;
1798 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1799 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1800 | --exec | --exe | --ex)
1801 ac_prev=exec_prefix ;;
1802 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1803 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1804 | --exec=* | --exe=* | --ex=*)
1805 exec_prefix=$ac_optarg ;;
1807 -gas | --gas | --ga | --g)
1808 # Obsolete; use --with-gas.
1811 -help | --help | --hel | --he | -h)
1812 ac_init_help=long ;;
1813 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1814 ac_init_help=recursive ;;
1815 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1816 ac_init_help=short ;;
1818 -host | --host | --hos | --ho)
1819 ac_prev=host_alias ;;
1820 -host=* | --host=* | --hos=* | --ho=*)
1821 host_alias=$ac_optarg ;;
1823 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1825 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1827 htmldir=$ac_optarg ;;
1829 -includedir | --includedir | --includedi | --included | --include \
1830 | --includ | --inclu | --incl | --inc)
1831 ac_prev=includedir ;;
1832 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1833 | --includ=* | --inclu=* | --incl=* | --inc=*)
1834 includedir=$ac_optarg ;;
1836 -infodir | --infodir | --infodi | --infod | --info | --inf)
1838 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1839 infodir=$ac_optarg ;;
1841 -libdir | --libdir | --libdi | --libd)
1843 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1844 libdir=$ac_optarg ;;
1846 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1847 | --libexe | --libex | --libe)
1848 ac_prev=libexecdir ;;
1849 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1850 | --libexe=* | --libex=* | --libe=*)
1851 libexecdir=$ac_optarg ;;
1853 -localedir | --localedir | --localedi | --localed | --locale)
1854 ac_prev=localedir ;;
1855 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1856 localedir=$ac_optarg ;;
1858 -localstatedir | --localstatedir | --localstatedi | --localstated \
1859 | --localstate | --localstat | --localsta | --localst | --locals)
1860 ac_prev=localstatedir ;;
1861 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1862 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1863 localstatedir=$ac_optarg ;;
1865 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1867 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1868 mandir=$ac_optarg ;;
1870 -nfp | --nfp | --nf)
1871 # Obsolete; use --without-fp.
1874 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1875 | --no-cr | --no-c | -n)
1878 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1879 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1882 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1883 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1884 | --oldin | --oldi | --old | --ol | --o)
1885 ac_prev=oldincludedir ;;
1886 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1887 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1888 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1889 oldincludedir=$ac_optarg ;;
1891 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1893 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1894 prefix=$ac_optarg ;;
1896 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1897 | --program-pre | --program-pr | --program-p)
1898 ac_prev=program_prefix ;;
1899 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1900 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1901 program_prefix=$ac_optarg ;;
1903 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1904 | --program-suf | --program-su | --program-s)
1905 ac_prev=program_suffix ;;
1906 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1907 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1908 program_suffix=$ac_optarg ;;
1910 -program-transform-name | --program-transform-name \
1911 | --program-transform-nam | --program-transform-na \
1912 | --program-transform-n | --program-transform- \
1913 | --program-transform | --program-transfor \
1914 | --program-transfo | --program-transf \
1915 | --program-trans | --program-tran \
1916 | --progr-tra | --program-tr | --program-t)
1917 ac_prev=program_transform_name ;;
1918 -program-transform-name=* | --program-transform-name=* \
1919 | --program-transform-nam=* | --program-transform-na=* \
1920 | --program-transform-n=* | --program-transform-=* \
1921 | --program-transform=* | --program-transfor=* \
1922 | --program-transfo=* | --program-transf=* \
1923 | --program-trans=* | --program-tran=* \
1924 | --progr-tra=* | --program-tr=* | --program-t=*)
1925 program_transform_name=$ac_optarg ;;
1927 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1929 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1930 pdfdir=$ac_optarg ;;
1932 -psdir | --psdir | --psdi | --psd | --ps)
1934 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1937 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1938 | -silent | --silent | --silen | --sile | --sil)
1941 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1943 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1945 sbindir=$ac_optarg ;;
1947 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1948 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1949 | --sharedst | --shareds | --shared | --share | --shar \
1951 ac_prev=sharedstatedir ;;
1952 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1953 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1954 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1956 sharedstatedir=$ac_optarg ;;
1958 -site | --site | --sit)
1960 -site=* | --site=* | --sit=*)
1963 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1965 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1966 srcdir=$ac_optarg ;;
1968 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1969 | --syscon | --sysco | --sysc | --sys | --sy)
1970 ac_prev=sysconfdir ;;
1971 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1972 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1973 sysconfdir=$ac_optarg ;;
1975 -target | --target | --targe | --targ | --tar | --ta | --t)
1976 ac_prev=target_alias ;;
1977 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1978 target_alias=$ac_optarg ;;
1980 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1983 -version | --version | --versio | --versi | --vers | -V)
1984 ac_init_version=: ;;
1987 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1988 # Reject names that are not valid shell variable names.
1989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1990 as_fn_error $? "invalid package name: $ac_useropt"
1991 ac_useropt_orig=$ac_useropt
1992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1993 case $ac_user_opts in
1997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1998 ac_unrecognized_sep=', ';;
2000 eval with_$ac_useropt=\$ac_optarg ;;
2002 -without-* | --without-*)
2003 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2004 # Reject names that are not valid shell variable names.
2005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2006 as_fn_error $? "invalid package name: $ac_useropt"
2007 ac_useropt_orig=$ac_useropt
2008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2009 case $ac_user_opts in
2013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2014 ac_unrecognized_sep=', ';;
2016 eval with_$ac_useropt=no ;;
2019 # Obsolete; use --with-x.
2022 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2023 | --x-incl | --x-inc | --x-in | --x-i)
2024 ac_prev=x_includes ;;
2025 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2026 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2027 x_includes=$ac_optarg ;;
2029 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2030 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2031 ac_prev=x_libraries ;;
2032 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2033 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2034 x_libraries=$ac_optarg ;;
2036 -*) as_fn_error $? "unrecognized option: \`$ac_option'
2037 Try \`$0 --help' for more information"
2041 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2042 # Reject names that are not valid shell variable names.
2043 case $ac_envvar in #(
2044 '' | [0-9]* | *[!_$as_cr_alnum]* )
2045 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2047 eval $ac_envvar=\$ac_optarg
2048 export $ac_envvar ;;
2051 # FIXME: should be removed in autoconf 3.0.
2052 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2053 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2054 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2055 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2061 if test -n "$ac_prev"; then
2062 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2063 as_fn_error $? "missing argument to $ac_option"
2066 if test -n "$ac_unrecognized_opts"; then
2067 case $enable_option_checking in
2069 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2070 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2074 # Check all directory arguments for consistency.
2075 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2076 datadir sysconfdir sharedstatedir localstatedir includedir \
2077 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2078 libdir localedir mandir
2080 eval ac_val=\$$ac_var
2081 # Remove trailing slashes.
2084 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2085 eval $ac_var=\$ac_val;;
2087 # Be sure to have absolute directory names.
2089 [\\/$]* | ?:[\\/]* ) continue;;
2090 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2092 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2095 # There might be people who depend on the old broken behavior: `$host'
2096 # used to hold the argument of --host etc.
2097 # FIXME: To remove some day.
2100 target=$target_alias
2102 # FIXME: To remove some day.
2103 if test "x$host_alias" != x; then
2104 if test "x$build_alias" = x; then
2105 cross_compiling=maybe
2106 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
2107 If a cross compiler is detected then cross compile mode will be used" >&2
2108 elif test "x$build_alias" != "x$host_alias"; then
2114 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2116 test "$silent" = yes && exec 6>/dev/null
2119 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2120 ac_ls_di=`ls -di .` &&
2121 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2122 as_fn_error $? "working directory cannot be determined"
2123 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2124 as_fn_error $? "pwd does not report name of working directory"
2127 # Find the source files, if location was not specified.
2128 if test -z "$srcdir"; then
2129 ac_srcdir_defaulted=yes
2130 # Try the directory containing this script, then the parent directory.
2131 ac_confdir=`$as_dirname -- "$as_myself" ||
2132 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2133 X"$as_myself" : 'X\(//\)[^/]' \| \
2134 X"$as_myself" : 'X\(//\)$' \| \
2135 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2136 $as_echo X"$as_myself" |
2137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2155 if test ! -r "$srcdir/$ac_unique_file"; then
2159 ac_srcdir_defaulted=no
2161 if test ! -r "$srcdir/$ac_unique_file"; then
2162 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2163 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2165 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2167 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2169 # When building in place, set srcdir=.
2170 if test "$ac_abs_confdir" = "$ac_pwd"; then
2173 # Remove unnecessary trailing slashes from srcdir.
2174 # Double slashes in file names in object file debugging info
2175 # mess up M-x gdb in Emacs.
2177 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2179 for ac_var in $ac_precious_vars; do
2180 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2181 eval ac_env_${ac_var}_value=\$${ac_var}
2182 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2183 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2187 # Report the --help message.
2189 if test "$ac_init_help" = "long"; then
2190 # Omit some internal or obsolete options to make the list less imposing.
2191 # This message is too long to be a string in the A/UX 3.1 sh.
2193 \`configure' configures GnuTLS 2.12.20 to adapt to many kinds of systems.
2195 Usage: $0 [OPTION]... [VAR=VALUE]...
2197 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2198 VAR=VALUE. See below for descriptions of some of the useful variables.
2200 Defaults for the options are specified in brackets.
2203 -h, --help display this help and exit
2204 --help=short display options specific to this package
2205 --help=recursive display the short help of all the included packages
2206 -V, --version display version information and exit
2207 -q, --quiet, --silent do not print \`checking ...' messages
2208 --cache-file=FILE cache test results in FILE [disabled]
2209 -C, --config-cache alias for \`--cache-file=config.cache'
2210 -n, --no-create do not create output files
2211 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2213 Installation directories:
2214 --prefix=PREFIX install architecture-independent files in PREFIX
2215 [$ac_default_prefix]
2216 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2219 By default, \`make install' will install all the files in
2220 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2221 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2222 for instance \`--prefix=\$HOME'.
2224 For better control, use the options below.
2226 Fine tuning of the installation directories:
2227 --bindir=DIR user executables [EPREFIX/bin]
2228 --sbindir=DIR system admin executables [EPREFIX/sbin]
2229 --libexecdir=DIR program executables [EPREFIX/libexec]
2230 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2231 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2232 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2233 --libdir=DIR object code libraries [EPREFIX/lib]
2234 --includedir=DIR C header files [PREFIX/include]
2235 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2236 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2237 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2238 --infodir=DIR info documentation [DATAROOTDIR/info]
2239 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2240 --mandir=DIR man documentation [DATAROOTDIR/man]
2241 --docdir=DIR documentation root [DATAROOTDIR/doc/gnutls]
2242 --htmldir=DIR html documentation [DOCDIR]
2243 --dvidir=DIR dvi documentation [DOCDIR]
2244 --pdfdir=DIR pdf documentation [DOCDIR]
2245 --psdir=DIR ps documentation [DOCDIR]
2251 --program-prefix=PREFIX prepend PREFIX to installed program names
2252 --program-suffix=SUFFIX append SUFFIX to installed program names
2253 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2256 --build=BUILD configure for building on BUILD [guessed]
2257 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2261 if test -n "$ac_init_help"; then
2262 case $ac_init_help in
2263 short | recursive ) echo "Configuration of GnuTLS 2.12.20:";;
2268 --disable-option-checking ignore unrecognized --enable/--with options
2269 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2270 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2271 --enable-silent-rules less verbose build output (undo: `make V=1')
2272 --disable-silent-rules verbose build output (undo: `make V=0')
2273 --disable-dependency-tracking speeds up one-time build
2274 --enable-dependency-tracking do not reject slow dependency extractors
2275 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
2276 --enable-gtk-doc-html build documentation in html format [[default=yes]]
2277 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
2278 --disable-largefile omit support for large files
2279 --enable-threads={posix|solaris|pth|windows}
2280 specify multithreading API
2281 --disable-threads build without multithread safety
2282 --disable-cxx unconditionally disable the C++ library
2283 --disable-rpath do not hardcode runtime library paths
2284 --enable-opaque-prf-input=DD
2285 enable Opaque PRF input using DD as extension type
2286 --disable-srp-authentication
2287 disable the SRP authentication support
2288 --disable-psk-authentication
2289 disable the PSK authentication support
2290 --disable-anon-authentication
2291 disable the anonymous authentication support
2292 --disable-camellia disable Camellia cipher
2293 --disable-extra-pki only enable the basic PKI stuff
2294 --disable-openpgp-authentication
2295 disable the OpenPGP authentication support
2296 --disable-session-ticket
2297 disable the SessionTicket extension support
2298 --enable-cryptodev enable cryptodev support
2299 --disable-openssl-compatibility
2300 disable the OpenSSL compatibility support
2301 --enable-guile build GNU Guile bindings
2302 --enable-shared[=PKGS] build shared libraries [default=yes]
2303 --enable-static[=PKGS] build static libraries [default=yes]
2304 --enable-fast-install[=PKGS]
2305 optimize for fast installation [default=yes]
2306 --disable-libtool-lock avoid locking (might break parallel builds)
2307 --enable-valgrind-tests run self tests under valgrind
2308 --enable-gcc-warnings turn on lots of GCC warnings (for developers)
2311 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2312 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2313 --with-html-dir=PATH path to installed docs
2314 --with-libgcrypt use libgcrypt as crypto library
2315 --with-gnu-ld assume the C compiler uses GNU ld default=no
2316 --with-libgcrypt-prefix[=DIR] search for libgcrypt in DIR/include and DIR/lib
2317 --without-libgcrypt-prefix don't search for libgcrypt in includedir and libdir
2318 --with-libnettle-prefix[=DIR] search for libnettle in DIR/include and DIR/lib
2319 --without-libnettle-prefix don't search for libnettle in includedir and libdir
2320 --with-included-libtasn1
2321 use the included libtasn1
2322 --with-libtasn1-prefix[=DIR] search for libtasn1 in DIR/include and DIR/lib
2323 --without-libtasn1-prefix don't search for libtasn1 in includedir and libdir
2324 --with-lzo use experimental LZO compression
2325 --without-p11-kit Build without p11-kit and PKCS#11 support
2326 --with-guile-site-dir use the given directory as the Guile site (use with
2328 --with-included-libcfg use the included libcfg+ (certtool only)
2329 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2331 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2332 --with-sysroot=DIR Search for dependent libraries within DIR
2333 (or the compiler's sysroot if not specified).
2334 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
2335 --without-libpth-prefix don't search for libpth in includedir and libdir
2336 --with-libreadline-prefix[=DIR] search for libreadline in DIR/include and DIR/lib
2337 --without-libreadline-prefix don't search for libreadline in includedir and libdir
2338 --with-packager String identifying the packager of this software
2339 --with-packager-version Packager-specific version information
2340 --with-packager-bug-reports
2341 Packager info for bug reports (URL/e-mail/...)
2343 Some influential environment variables:
2344 CC C compiler command
2345 CFLAGS C compiler flags
2346 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2347 nonstandard directory <lib dir>
2348 LIBS libraries to pass to the linker, e.g. -l<library>
2349 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2350 you have headers in a nonstandard directory <include dir>
2351 PKG_CONFIG path to pkg-config utility
2353 CXX C++ compiler command
2354 CXXFLAGS C++ compiler flags
2356 C compiler flags for P11_KIT, overriding pkg-config
2358 linker flags for P11_KIT, overriding pkg-config
2359 CXXCPP C++ preprocessor
2361 Use these variables to override the choices made by `configure' or to help
2362 it to find libraries and programs with nonstandard names/locations.
2364 Report bugs to <bug-gnutls@gnu.org>.
2369 if test "$ac_init_help" = "recursive"; then
2370 # If there are subdirs, report their specific --help.
2371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2372 test -d "$ac_dir" ||
2373 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2378 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2380 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2381 # A ".." for each directory in $ac_dir_suffix.
2382 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2383 case $ac_top_builddir_sub in
2384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2388 ac_abs_top_builddir=$ac_pwd
2389 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2390 # for backward compatibility:
2391 ac_top_builddir=$ac_top_build_prefix
2394 .) # We are building in place.
2396 ac_top_srcdir=$ac_top_builddir_sub
2397 ac_abs_top_srcdir=$ac_pwd ;;
2398 [\\/]* | ?:[\\/]* ) # Absolute name.
2399 ac_srcdir=$srcdir$ac_dir_suffix;
2400 ac_top_srcdir=$srcdir
2401 ac_abs_top_srcdir=$srcdir ;;
2403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2404 ac_top_srcdir=$ac_top_build_prefix$srcdir
2405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2407 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2409 cd "$ac_dir" || { ac_status=$?; continue; }
2410 # Check for guested configure.
2411 if test -f "$ac_srcdir/configure.gnu"; then
2413 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2414 elif test -f "$ac_srcdir/configure"; then
2416 $SHELL "$ac_srcdir/configure" --help=recursive
2418 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2420 cd "$ac_pwd" || { ac_status=$?; break; }
2424 test -n "$ac_init_help" && exit $ac_status
2425 if $ac_init_version; then
2427 GnuTLS configure 2.12.20
2428 generated by GNU Autoconf 2.68
2430 Copyright (C) 2010 Free Software Foundation, Inc.
2431 This configure script is free software; the Free Software Foundation
2432 gives unlimited permission to copy, distribute and modify it.
2437 ## ------------------------ ##
2438 ## Autoconf initialization. ##
2439 ## ------------------------ ##
2441 # ac_fn_c_try_compile LINENO
2442 # --------------------------
2443 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2444 ac_fn_c_try_compile ()
2446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447 rm -f conftest.$ac_objext
2448 if { { ac_try="$ac_compile"
2450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451 *) ac_try_echo=$ac_try;;
2453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2454 $as_echo "$ac_try_echo"; } >&5
2455 (eval "$ac_compile") 2>conftest.err
2457 if test -s conftest.err; then
2458 grep -v '^ *+' conftest.err >conftest.er1
2459 cat conftest.er1 >&5
2460 mv -f conftest.er1 conftest.err
2462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2463 test $ac_status = 0; } && {
2464 test -z "$ac_c_werror_flag" ||
2465 test ! -s conftest.err
2466 } && test -s conftest.$ac_objext; then :
2469 $as_echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2474 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2475 as_fn_set_status $ac_retval
2477 } # ac_fn_c_try_compile
2479 # ac_fn_c_try_cpp LINENO
2480 # ----------------------
2481 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2485 if { { ac_try="$ac_cpp conftest.$ac_ext"
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2491 $as_echo "$ac_try_echo"; } >&5
2492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2494 if test -s conftest.err; then
2495 grep -v '^ *+' conftest.err >conftest.er1
2496 cat conftest.er1 >&5
2497 mv -f conftest.er1 conftest.err
2499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2500 test $ac_status = 0; } > conftest.i && {
2501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2502 test ! -s conftest.err
2506 $as_echo "$as_me: failed program was:" >&5
2507 sed 's/^/| /' conftest.$ac_ext >&5
2511 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2512 as_fn_set_status $ac_retval
2516 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2517 # -------------------------------------------------------
2518 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2519 # the include files in INCLUDES and setting the cache variable VAR
2521 ac_fn_c_check_header_mongrel ()
2523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2524 if eval \${$3+:} false; then :
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2526 $as_echo_n "checking for $2... " >&6; }
2527 if eval \${$3+:} false; then :
2528 $as_echo_n "(cached) " >&6
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2532 $as_echo "$ac_res" >&6; }
2534 # Is the header compilable?
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2536 $as_echo_n "checking $2 usability... " >&6; }
2537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538 /* end confdefs.h. */
2542 if ac_fn_c_try_compile "$LINENO"; then :
2543 ac_header_compiler=yes
2545 ac_header_compiler=no
2547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2549 $as_echo "$ac_header_compiler" >&6; }
2551 # Is the header present?
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2553 $as_echo_n "checking $2 presence... " >&6; }
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2558 if ac_fn_c_try_cpp "$LINENO"; then :
2559 ac_header_preproc=yes
2561 ac_header_preproc=no
2563 rm -f conftest.err conftest.i conftest.$ac_ext
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2565 $as_echo "$ac_header_preproc" >&6; }
2567 # So? What about this header?
2568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2571 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2573 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2577 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2579 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2581 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2583 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2585 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2586 ( $as_echo "## --------------------------------- ##
2587 ## Report this to bug-gnutls@gnu.org ##
2588 ## --------------------------------- ##"
2589 ) | sed "s/^/$as_me: WARNING: /" >&2
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2593 $as_echo_n "checking for $2... " >&6; }
2594 if eval \${$3+:} false; then :
2595 $as_echo_n "(cached) " >&6
2597 eval "$3=\$ac_header_compiler"
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2601 $as_echo "$ac_res" >&6; }
2603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2605 } # ac_fn_c_check_header_mongrel
2607 # ac_fn_c_try_run LINENO
2608 # ----------------------
2609 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2610 # that executables *can* be run.
2613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2614 if { { ac_try="$ac_link"
2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617 *) ac_try_echo=$ac_try;;
2619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2620 $as_echo "$ac_try_echo"; } >&5
2621 (eval "$ac_link") 2>&5
2623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2624 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2625 { { case "(($ac_try" in
2626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627 *) ac_try_echo=$ac_try;;
2629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2630 $as_echo "$ac_try_echo"; } >&5
2631 (eval "$ac_try") 2>&5
2633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2634 test $ac_status = 0; }; }; then :
2637 $as_echo "$as_me: program exited with status $ac_status" >&5
2638 $as_echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2641 ac_retval=$ac_status
2643 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2645 as_fn_set_status $ac_retval
2649 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2650 # -------------------------------------------------------
2651 # Tests whether HEADER exists and can be compiled using the include files in
2652 # INCLUDES, setting the cache variable VAR accordingly.
2653 ac_fn_c_check_header_compile ()
2655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2657 $as_echo_n "checking for $2... " >&6; }
2658 if eval \${$3+:} false; then :
2659 $as_echo_n "(cached) " >&6
2661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2662 /* end confdefs.h. */
2666 if ac_fn_c_try_compile "$LINENO"; then :
2671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2675 $as_echo "$ac_res" >&6; }
2676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2678 } # ac_fn_c_check_header_compile
2680 # ac_fn_c_try_link LINENO
2681 # -----------------------
2682 # Try to link conftest.$ac_ext, and return whether this succeeded.
2685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2686 rm -f conftest.$ac_objext conftest$ac_exeext
2687 if { { ac_try="$ac_link"
2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
2692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2693 $as_echo "$ac_try_echo"; } >&5
2694 (eval "$ac_link") 2>conftest.err
2696 if test -s conftest.err; then
2697 grep -v '^ *+' conftest.err >conftest.er1
2698 cat conftest.er1 >&5
2699 mv -f conftest.er1 conftest.err
2701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2702 test $ac_status = 0; } && {
2703 test -z "$ac_c_werror_flag" ||
2704 test ! -s conftest.err
2705 } && test -s conftest$ac_exeext && {
2706 test "$cross_compiling" = yes ||
2707 $as_test_x conftest$ac_exeext
2711 $as_echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2716 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2717 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2718 # interfere with the next link command; also delete a directory that is
2719 # left behind by Apple's compiler. We do this before executing the actions.
2720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2722 as_fn_set_status $ac_retval
2724 } # ac_fn_c_try_link
2726 # ac_fn_cxx_try_compile LINENO
2727 # ----------------------------
2728 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2729 ac_fn_cxx_try_compile ()
2731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2732 rm -f conftest.$ac_objext
2733 if { { ac_try="$ac_compile"
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2739 $as_echo "$ac_try_echo"; } >&5
2740 (eval "$ac_compile") 2>conftest.err
2742 if test -s conftest.err; then
2743 grep -v '^ *+' conftest.err >conftest.er1
2744 cat conftest.er1 >&5
2745 mv -f conftest.er1 conftest.err
2747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2748 test $ac_status = 0; } && {
2749 test -z "$ac_cxx_werror_flag" ||
2750 test ! -s conftest.err
2751 } && test -s conftest.$ac_objext; then :
2754 $as_echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2760 as_fn_set_status $ac_retval
2762 } # ac_fn_cxx_try_compile
2764 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2765 # --------------------------------------------
2766 # Tries to find the compile-time value of EXPR in a program that includes
2767 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2769 ac_fn_c_compute_int ()
2771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2772 if test "$cross_compiling" = yes; then
2773 # Depending upon the size, compute the lo and hi bounds.
2774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h. */
2780 static int test_array [1 - 2 * !(($2) >= 0)];
2787 if ac_fn_c_try_compile "$LINENO"; then :
2790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791 /* end confdefs.h. */
2796 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2803 if ac_fn_c_try_compile "$LINENO"; then :
2804 ac_hi=$ac_mid; break
2806 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2807 if test $ac_lo -le $ac_mid; then
2811 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h. */
2822 static int test_array [1 - 2 * !(($2) < 0)];
2829 if ac_fn_c_try_compile "$LINENO"; then :
2832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2833 /* end confdefs.h. */
2838 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2845 if ac_fn_c_try_compile "$LINENO"; then :
2846 ac_lo=$ac_mid; break
2848 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2849 if test $ac_mid -le $ac_hi; then
2853 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863 # Binary search between lo and hi bounds.
2864 while test "x$ac_lo" != "x$ac_hi"; do
2865 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2867 /* end confdefs.h. */
2872 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2879 if ac_fn_c_try_compile "$LINENO"; then :
2882 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2887 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892 /* end confdefs.h. */
2894 static long int longval () { return $2; }
2895 static unsigned long int ulongval () { return $2; }
2902 FILE *f = fopen ("conftest.val", "w");
2907 long int i = longval ();
2910 fprintf (f, "%ld", i);
2914 unsigned long int i = ulongval ();
2917 fprintf (f, "%lu", i);
2919 /* Do not output a trailing newline, as this causes \r\n confusion
2920 on some platforms. */
2921 return ferror (f) || fclose (f) != 0;
2927 if ac_fn_c_try_run "$LINENO"; then :
2928 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2933 conftest.$ac_objext conftest.beam conftest.$ac_ext
2937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2938 as_fn_set_status $ac_retval
2940 } # ac_fn_c_compute_int
2942 # ac_fn_c_check_func LINENO FUNC VAR
2943 # ----------------------------------
2944 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2945 ac_fn_c_check_func ()
2947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2949 $as_echo_n "checking for $2... " >&6; }
2950 if eval \${$3+:} false; then :
2951 $as_echo_n "(cached) " >&6
2953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2954 /* end confdefs.h. */
2955 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2957 #define $2 innocuous_$2
2959 /* System header to define __stub macros and hopefully few prototypes,
2960 which can conflict with char $2 (); below.
2961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2962 <limits.h> exists even on freestanding compilers. */
2965 # include <limits.h>
2967 # include <assert.h>
2972 /* Override any GCC internal prototype to avoid an error.
2973 Use char because int might match the return type of a GCC
2974 builtin and then its argument prototype would still apply. */
2979 /* The GNU C library defines this for functions which it implements
2980 to always fail with ENOSYS. Some functions are actually named
2981 something starting with __ and the normal name is an alias. */
2982 #if defined __stub_$2 || defined __stub___$2
2994 if ac_fn_c_try_link "$LINENO"; then :
2999 rm -f core conftest.err conftest.$ac_objext \
3000 conftest$ac_exeext conftest.$ac_ext
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3004 $as_echo "$ac_res" >&6; }
3005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3007 } # ac_fn_c_check_func
3009 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3010 # -------------------------------------------
3011 # Tests whether TYPE exists after having included INCLUDES, setting cache
3012 # variable VAR accordingly.
3013 ac_fn_c_check_type ()
3015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3017 $as_echo_n "checking for $2... " >&6; }
3018 if eval \${$3+:} false; then :
3019 $as_echo_n "(cached) " >&6
3022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3023 /* end confdefs.h. */
3034 if ac_fn_c_try_compile "$LINENO"; then :
3035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3036 /* end confdefs.h. */
3047 if ac_fn_c_try_compile "$LINENO"; then :
3052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3058 $as_echo "$ac_res" >&6; }
3059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3061 } # ac_fn_c_check_type
3063 # ac_fn_cxx_try_cpp LINENO
3064 # ------------------------
3065 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3066 ac_fn_cxx_try_cpp ()
3068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3069 if { { ac_try="$ac_cpp conftest.$ac_ext"
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075 $as_echo "$ac_try_echo"; } >&5
3076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3078 if test -s conftest.err; then
3079 grep -v '^ *+' conftest.err >conftest.er1
3080 cat conftest.er1 >&5
3081 mv -f conftest.er1 conftest.err
3083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084 test $ac_status = 0; } > conftest.i && {
3085 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3086 test ! -s conftest.err
3090 $as_echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3096 as_fn_set_status $ac_retval
3098 } # ac_fn_cxx_try_cpp
3100 # ac_fn_cxx_try_link LINENO
3101 # -------------------------
3102 # Try to link conftest.$ac_ext, and return whether this succeeded.
3103 ac_fn_cxx_try_link ()
3105 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3106 rm -f conftest.$ac_objext conftest$ac_exeext
3107 if { { ac_try="$ac_link"
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113 $as_echo "$ac_try_echo"; } >&5
3114 (eval "$ac_link") 2>conftest.err
3116 if test -s conftest.err; then
3117 grep -v '^ *+' conftest.err >conftest.er1
3118 cat conftest.er1 >&5
3119 mv -f conftest.er1 conftest.err
3121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122 test $ac_status = 0; } && {
3123 test -z "$ac_cxx_werror_flag" ||
3124 test ! -s conftest.err
3125 } && test -s conftest$ac_exeext && {
3126 test "$cross_compiling" = yes ||
3127 $as_test_x conftest$ac_exeext
3131 $as_echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3136 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3137 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3138 # interfere with the next link command; also delete a directory that is
3139 # left behind by Apple's compiler. We do this before executing the actions.
3140 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3141 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3142 as_fn_set_status $ac_retval
3144 } # ac_fn_cxx_try_link
3146 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3147 # ----------------------------------------------------
3148 # Tries to find if the field MEMBER exists in type AGGR, after including
3149 # INCLUDES, setting cache variable VAR accordingly.
3150 ac_fn_c_check_member ()
3152 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3154 $as_echo_n "checking for $2.$3... " >&6; }
3155 if eval \${$4+:} false; then :
3156 $as_echo_n "(cached) " >&6
3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h. */
3171 if ac_fn_c_try_compile "$LINENO"; then :
3174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175 /* end confdefs.h. */
3181 if (sizeof ac_aggr.$3)
3187 if ac_fn_c_try_compile "$LINENO"; then :
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3198 $as_echo "$ac_res" >&6; }
3199 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3201 } # ac_fn_c_check_member
3203 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3204 # ---------------------------------------------
3205 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3207 ac_fn_c_check_decl ()
3209 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3210 as_decl_name=`echo $2|sed 's/ *(.*//'`
3211 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3213 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3214 if eval \${$3+:} false; then :
3215 $as_echo_n "(cached) " >&6
3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218 /* end confdefs.h. */
3223 #ifndef $as_decl_name
3225 (void) $as_decl_use;
3227 (void) $as_decl_name;
3235 if ac_fn_c_try_compile "$LINENO"; then :
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3244 $as_echo "$ac_res" >&6; }
3245 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3247 } # ac_fn_c_check_decl
3248 cat >config.log <<_ACEOF
3249 This file contains any messages produced by compilers while
3250 running configure, to aid debugging if configure makes a mistake.
3252 It was created by GnuTLS $as_me 2.12.20, which was
3253 generated by GNU Autoconf 2.68. Invocation command line was
3265 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3266 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3267 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3268 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3269 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3271 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3272 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3274 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3275 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3276 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3277 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3278 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3279 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3280 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 test -z "$as_dir" && as_dir=.
3289 $as_echo "PATH: $as_dir"
3305 # Keep a trace of the command line.
3306 # Strip out --no-create and --no-recursion so they do not pile up.
3307 # Strip out --silent because we don't want to record it for future runs.
3308 # Also quote any args containing shell meta-characters.
3309 # Make two passes to allow for proper duplicate-argument suppression.
3313 ac_must_keep_next=false
3319 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3321 | -silent | --silent | --silen | --sile | --sil)
3324 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3327 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3329 as_fn_append ac_configure_args1 " '$ac_arg'"
3330 if test $ac_must_keep_next = true; then
3331 ac_must_keep_next=false # Got value, back to normal.
3334 *=* | --config-cache | -C | -disable-* | --disable-* \
3335 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3336 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3337 | -with-* | --with-* | -without-* | --without-* | --x)
3338 case "$ac_configure_args0 " in
3339 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3342 -* ) ac_must_keep_next=true ;;
3345 as_fn_append ac_configure_args " '$ac_arg'"
3350 { ac_configure_args0=; unset ac_configure_args0;}
3351 { ac_configure_args1=; unset ac_configure_args1;}
3353 # When interrupted or exit'd, cleanup temporary files, and complete
3354 # config.log. We remove comments because anyway the quotes in there
3355 # would cause problems or look ugly.
3356 # WARNING: Use '\'' to represent an apostrophe within the trap.
3357 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3358 trap 'exit_status=$?
3359 # Save into config.log some information that might help in debugging.
3363 $as_echo "## ---------------- ##
3364 ## Cache variables. ##
3365 ## ---------------- ##"
3367 # The following way of writing the cache mishandles newlines in values,
3369 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3370 eval ac_val=\$$ac_var
3374 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3375 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3378 _ | IFS | as_nl) ;; #(
3379 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3380 *) { eval $ac_var=; unset $ac_var;} ;;
3385 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3386 *${as_nl}ac_space=\ *)
3388 "s/'\''/'\''\\\\'\'''\''/g;
3389 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3392 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3399 $as_echo "## ----------------- ##
3400 ## Output variables. ##
3401 ## ----------------- ##"
3403 for ac_var in $ac_subst_vars
3405 eval ac_val=\$$ac_var
3407 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3409 $as_echo "$ac_var='\''$ac_val'\''"
3413 if test -n "$ac_subst_files"; then
3414 $as_echo "## ------------------- ##
3415 ## File substitutions. ##
3416 ## ------------------- ##"
3418 for ac_var in $ac_subst_files
3420 eval ac_val=\$$ac_var
3422 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3424 $as_echo "$ac_var='\''$ac_val'\''"
3429 if test -s confdefs.h; then
3430 $as_echo "## ----------- ##
3437 test "$ac_signal" != 0 &&
3438 $as_echo "$as_me: caught signal $ac_signal"
3439 $as_echo "$as_me: exit $exit_status"
3441 rm -f core *.core core.conftest.* &&
3442 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3445 for ac_signal in 1 2 13 15; do
3446 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3450 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3451 rm -f -r conftest* confdefs.h
3453 $as_echo "/* confdefs.h */" > confdefs.h
3455 # Predefined preprocessor variables.
3457 cat >>confdefs.h <<_ACEOF
3458 #define PACKAGE_NAME "$PACKAGE_NAME"
3461 cat >>confdefs.h <<_ACEOF
3462 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3465 cat >>confdefs.h <<_ACEOF
3466 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3469 cat >>confdefs.h <<_ACEOF
3470 #define PACKAGE_STRING "$PACKAGE_STRING"
3473 cat >>confdefs.h <<_ACEOF
3474 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3477 cat >>confdefs.h <<_ACEOF
3478 #define PACKAGE_URL "$PACKAGE_URL"
3482 # Let the site file select an alternate cache file if it wants to.
3483 # Prefer an explicitly selected file to automatically selected ones.
3486 if test -n "$CONFIG_SITE"; then
3487 # We do not want a PATH search for config.site.
3488 case $CONFIG_SITE in #((
3489 -*) ac_site_file1=./$CONFIG_SITE;;
3490 */*) ac_site_file1=$CONFIG_SITE;;
3491 *) ac_site_file1=./$CONFIG_SITE;;
3493 elif test "x$prefix" != xNONE; then
3494 ac_site_file1=$prefix/share/config.site
3495 ac_site_file2=$prefix/etc/config.site
3497 ac_site_file1=$ac_default_prefix/share/config.site
3498 ac_site_file2=$ac_default_prefix/etc/config.site
3500 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3502 test "x$ac_site_file" = xNONE && continue
3503 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3505 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3506 sed 's/^/| /' "$ac_site_file" >&5
3508 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510 as_fn_error $? "failed to load site script $ac_site_file
3511 See \`config.log' for more details" "$LINENO" 5; }
3515 if test -r "$cache_file"; then
3516 # Some versions of bash will fail to source /dev/null (special files
3517 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3518 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3520 $as_echo "$as_me: loading cache $cache_file" >&6;}
3522 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3523 *) . "./$cache_file";;
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3528 $as_echo "$as_me: creating cache $cache_file" >&6;}
3532 gl_header_list="$gl_header_list sys/socket.h"
3533 gl_header_list="$gl_header_list arpa/inet.h"
3534 gl_header_list="$gl_header_list features.h"
3535 gl_func_list="$gl_func_list _set_invalid_parameter_handler"
3536 gl_header_list="$gl_header_list netdb.h"
3537 gl_header_list="$gl_header_list netinet/in.h"
3538 gl_func_list="$gl_func_list getdelim"
3539 gl_header_list="$gl_header_list stdio_ext.h"
3540 gl_header_list="$gl_header_list termios.h"
3541 gl_func_list="$gl_func_list __fsetlocking"
3542 gl_func_list="$gl_func_list tcgetattr"
3543 gl_func_list="$gl_func_list tcsetattr"
3544 gl_func_list="$gl_func_list gettimeofday"
3545 gl_func_list="$gl_func_list nanotime"
3546 gl_header_list="$gl_header_list sys/time.h"
3547 gl_header_list="$gl_header_list unistd.h"
3548 gl_header_list="$gl_header_list sys/mman.h"
3549 gl_func_list="$gl_func_list mprotect"
3550 gl_func_list="$gl_func_list strerror_r"
3551 gl_func_list="$gl_func_list __xpg_strerror_r"
3552 gl_header_list="$gl_header_list sys/select.h"
3553 gl_func_list="$gl_func_list snprintf"
3554 gl_header_list="$gl_header_list wchar.h"
3555 gl_header_list="$gl_header_list stdint.h"
3556 gl_func_list="$gl_func_list catgets"
3557 gl_header_list="$gl_header_list sys/stat.h"
3558 gl_header_list="$gl_header_list sys/uio.h"
3559 gl_func_list="$gl_func_list vasnprintf"
3560 gl_func_list="$gl_func_list symlink"
3561 gl_func_list="$gl_func_list ftruncate"
3562 gl_header_list="$gl_header_list inttypes.h"
3563 gl_func_list="$gl_func_list lstat"
3564 gl_header_list="$gl_header_list sys/param.h"
3565 gl_func_list="$gl_func_list pipe"
3566 gl_header_list="$gl_header_list sys/wait.h"
3567 gl_header_list="$gl_header_list sys/ioctl.h"
3568 gl_func_list="$gl_func_list shutdown"
3569 # Check that the precious variables saved in the cache have kept the same
3571 ac_cache_corrupted=false
3572 for ac_var in $ac_precious_vars; do
3573 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3574 eval ac_new_set=\$ac_env_${ac_var}_set
3575 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3576 eval ac_new_val=\$ac_env_${ac_var}_value
3577 case $ac_old_set,$ac_new_set in
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3580 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3581 ac_cache_corrupted=: ;;
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3584 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3585 ac_cache_corrupted=: ;;
3588 if test "x$ac_old_val" != "x$ac_new_val"; then
3589 # differences in whitespace do not lead to failure.
3590 ac_old_val_w=`echo x $ac_old_val`
3591 ac_new_val_w=`echo x $ac_new_val`
3592 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3594 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3595 ac_cache_corrupted=:
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3598 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3599 eval $ac_var=\$ac_old_val
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3602 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3604 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3607 # Pass precious variables to config.status.
3608 if test "$ac_new_set" = set; then
3610 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3611 *) ac_arg=$ac_var=$ac_new_val ;;
3613 case " $ac_configure_args " in
3614 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3615 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3619 if $ac_cache_corrupted; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3623 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3624 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3626 ## -------------------- ##
3627 ## Main body of script. ##
3628 ## -------------------- ##
3631 ac_cpp='$CPP $CPPFLAGS'
3632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638 for ac_dir in build-aux "$srcdir"/build-aux; do
3639 if test -f "$ac_dir/install-sh"; then
3641 ac_install_sh="$ac_aux_dir/install-sh -c"
3643 elif test -f "$ac_dir/install.sh"; then
3645 ac_install_sh="$ac_aux_dir/install.sh -c"
3647 elif test -f "$ac_dir/shtool"; then
3649 ac_install_sh="$ac_aux_dir/shtool install -c"
3653 if test -z "$ac_aux_dir"; then
3654 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3657 # These three variables are undocumented and unsupported,
3658 # and are intended to be withdrawn in a future Autoconf release.
3659 # They can cause serious problems if a builder's source tree is in a directory
3660 # whose full name contains unusual characters.
3661 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3662 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3663 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3668 am__api_version='1.11'
3670 # Find a good install program. We prefer a C program (faster),
3671 # so one script is as good as another. But avoid the broken or
3672 # incompatible versions:
3673 # SysV /etc/install, /usr/sbin/install
3674 # SunOS /usr/etc/install
3675 # IRIX /sbin/install
3677 # AmigaOS /C/install, which installs bootblocks on floppy discs
3678 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3679 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3680 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3681 # OS/2's system install, which has a completely different semantic
3682 # ./install, which can be erroneously created by make from ./install.sh.
3683 # Reject install programs that cannot install multiple files.
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3685 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3686 if test -z "$INSTALL"; then
3687 if ${ac_cv_path_install+:} false; then :
3688 $as_echo_n "(cached) " >&6
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 test -z "$as_dir" && as_dir=.
3695 # Account for people who put trailing slashes in PATH elements.
3696 case $as_dir/ in #((
3697 ./ | .// | /[cC]/* | \
3698 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3699 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3702 # OSF1 and SCO ODT 3.0 have their own names for install.
3703 # Don't use installbsd from OSF since it installs stuff as root
3705 for ac_prog in ginstall scoinst install; do
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3708 if test $ac_prog = install &&
3709 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3710 # AIX install. It has an incompatible calling convention.
3712 elif test $ac_prog = install &&
3713 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3714 # program-specific install script used by HP pwplus--don't use.
3717 rm -rf conftest.one conftest.two conftest.dir
3718 echo one > conftest.one
3719 echo two > conftest.two
3721 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3722 test -s conftest.one && test -s conftest.two &&
3723 test -s conftest.dir/conftest.one &&
3724 test -s conftest.dir/conftest.two
3726 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3739 rm -rf conftest.one conftest.two conftest.dir
3742 if test "${ac_cv_path_install+set}" = set; then
3743 INSTALL=$ac_cv_path_install
3745 # As a last resort, use the slow shell script. Don't cache a
3746 # value for INSTALL within a source directory, because that will
3747 # break other packages using the cache if that directory is
3748 # removed, or if the value is a relative name.
3749 INSTALL=$ac_install_sh
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3753 $as_echo "$INSTALL" >&6; }
3755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3756 # It thinks the first close brace ends the variable substitution.
3757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3764 $as_echo_n "checking whether build environment is sane... " >&6; }
3767 echo timestamp > conftest.file
3768 # Reject unsafe characters in $srcdir or the absolute working directory
3769 # name. Accept space and tab only in the latter.
3773 *[\\\"\#\$\&\'\`$am_lf]*)
3774 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3777 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3778 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3781 # Do `set' in a subshell so we don't clobber the current shell's
3782 # arguments. Must try -L first in case configure is actually a
3783 # symlink; some systems play weird games with the mod time of symlinks
3784 # (eg FreeBSD returns the mod time of the symlink's containing
3787 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3788 if test "$*" = "X"; then
3790 set X `ls -t "$srcdir/configure" conftest.file`
3793 if test "$*" != "X $srcdir/configure conftest.file" \
3794 && test "$*" != "X conftest.file $srcdir/configure"; then
3796 # If neither matched, then we have a broken ls. This can happen
3797 # if, for instance, CONFIG_SHELL is bash and it inherits a
3798 # broken ls alias from the environment. This has actually
3799 # happened. Such a system could not be considered "sane".
3800 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3801 alias in your environment" "$LINENO" 5
3804 test "$2" = conftest.file
3810 as_fn_error $? "newly created file is older than distributed files!
3811 Check your system clock" "$LINENO" 5
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3814 $as_echo "yes" >&6; }
3815 test "$program_prefix" != NONE &&
3816 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3817 # Use a double $ so make ignores it.
3818 test "$program_suffix" != NONE &&
3819 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3820 # Double any \ or $.
3821 # By default was `s,x,x', remove it if useless.
3822 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3823 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3825 # expand $ac_aux_dir to an absolute path
3826 am_aux_dir=`cd $ac_aux_dir && pwd`
3828 if test x"${MISSING+set}" != xset; then
3831 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3833 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3836 # Use eval to expand $SHELL
3837 if eval "$MISSING --run true"; then
3838 am_missing_run="$MISSING --run "
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3842 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3845 if test x"${install_sh}" != xset; then
3848 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3850 install_sh="\${SHELL} $am_aux_dir/install-sh"
3854 # Installed binaries are usually stripped using `strip' when the user
3855 # run `make install-strip'. However `strip' might not be the right
3856 # tool to use in cross-compilation environments, therefore Automake
3857 # will honor the `STRIP' environment variable to overrule this program.
3858 if test "$cross_compiling" != no; then
3859 if test -n "$ac_tool_prefix"; then
3860 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3861 set dummy ${ac_tool_prefix}strip; ac_word=$2
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863 $as_echo_n "checking for $ac_word... " >&6; }
3864 if ${ac_cv_prog_STRIP+:} false; then :
3865 $as_echo_n "(cached) " >&6
3867 if test -n "$STRIP"; then
3868 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3877 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 STRIP=$ac_cv_prog_STRIP
3888 if test -n "$STRIP"; then
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3890 $as_echo "$STRIP" >&6; }
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 $as_echo "no" >&6; }
3898 if test -z "$ac_cv_prog_STRIP"; then
3900 # Extract the first word of "strip", so it can be a program name with args.
3901 set dummy strip; ac_word=$2
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3903 $as_echo_n "checking for $ac_word... " >&6; }
3904 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3905 $as_echo_n "(cached) " >&6
3907 if test -n "$ac_ct_STRIP"; then
3908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 test -z "$as_dir" && as_dir=.
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3917 ac_cv_prog_ac_ct_STRIP="strip"
3918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3928 if test -n "$ac_ct_STRIP"; then
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3930 $as_echo "$ac_ct_STRIP" >&6; }
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933 $as_echo "no" >&6; }
3936 if test "x$ac_ct_STRIP" = x; then
3939 case $cross_compiling:$ac_tool_warned in
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3943 ac_tool_warned=yes ;;
3948 STRIP="$ac_cv_prog_STRIP"
3952 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3955 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3956 if test -z "$MKDIR_P"; then
3957 if ${ac_cv_path_mkdir+:} false; then :
3958 $as_echo_n "(cached) " >&6
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3964 test -z "$as_dir" && as_dir=.
3965 for ac_prog in mkdir gmkdir; do
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3968 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3969 'mkdir (GNU coreutils) '* | \
3970 'mkdir (coreutils) '* | \
3971 'mkdir (fileutils) '4.1*)
3972 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3982 test -d ./--version && rmdir ./--version
3983 if test "${ac_cv_path_mkdir+set}" = set; then
3984 MKDIR_P="$ac_cv_path_mkdir -p"
3986 # As a last resort, use the slow shell script. Don't cache a
3987 # value for MKDIR_P within a source directory, because that will
3988 # break other packages using the cache if that directory is
3989 # removed, or if the value is a relative name.
3990 MKDIR_P="$ac_install_sh -d"
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3994 $as_echo "$MKDIR_P" >&6; }
3999 [\\/$]* | ?:[\\/]*) ;;
4000 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4003 for ac_prog in gawk mawk nawk awk
4005 # Extract the first word of "$ac_prog", so it can be a program name with args.
4006 set dummy $ac_prog; ac_word=$2
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4008 $as_echo_n "checking for $ac_word... " >&6; }
4009 if ${ac_cv_prog_AWK+:} false; then :
4010 $as_echo_n "(cached) " >&6
4012 if test -n "$AWK"; then
4013 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 test -z "$as_dir" && as_dir=.
4020 for ac_exec_ext in '' $ac_executable_extensions; do
4021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4022 ac_cv_prog_AWK="$ac_prog"
4023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 if test -n "$AWK"; then
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4035 $as_echo "$AWK" >&6; }
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038 $as_echo "no" >&6; }
4042 test -n "$AWK" && break
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4046 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4048 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4049 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4050 $as_echo_n "(cached) " >&6
4052 cat >conftest.make <<\_ACEOF
4055 @echo '@@@%%%=$(MAKE)=@@@%%%'
4057 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4058 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4060 eval ac_cv_prog_make_${ac_make}_set=yes;;
4062 eval ac_cv_prog_make_${ac_make}_set=no;;
4066 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4068 $as_echo "yes" >&6; }
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4072 $as_echo "no" >&6; }
4073 SET_MAKE="MAKE=${MAKE-make}"
4076 rm -rf .tst 2>/dev/null
4077 mkdir .tst 2>/dev/null
4078 if test -d .tst; then
4083 rmdir .tst 2>/dev/null
4085 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4086 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4087 # is not polluted with repeated "-I."
4088 am__isrc=' -I$(srcdir)'
4089 # test to see if srcdir already configured
4090 if test -f $srcdir/config.status; then
4091 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4095 # test whether we have cygpath
4096 if test -z "$CYGPATH_W"; then
4097 if (cygpath --version) >/dev/null 2>/dev/null; then
4098 CYGPATH_W='cygpath -w'
4105 # Define the identity of the package.
4110 cat >>confdefs.h <<_ACEOF
4111 #define PACKAGE "$PACKAGE"
4115 cat >>confdefs.h <<_ACEOF
4116 #define VERSION "$VERSION"
4119 # Some tools Automake needs.
4121 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4124 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4127 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4130 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4133 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4135 # We need awk for the "check" target. The system "awk" is bad on
4137 # Always define AMTAR for backward compatibility. Yes, it's still used
4138 # in the wild :-( We should find a proper way to deprecate it ...
4141 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4147 # Check whether --enable-silent-rules was given.
4148 if test "${enable_silent_rules+set}" = set; then :
4149 enableval=$enable_silent_rules;
4152 case $enable_silent_rules in
4153 yes) AM_DEFAULT_VERBOSITY=0;;
4154 no) AM_DEFAULT_VERBOSITY=1;;
4155 *) AM_DEFAULT_VERBOSITY=0;;
4157 am_make=${MAKE-make}
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4159 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4160 if ${am_cv_make_support_nested_variables+:} false; then :
4161 $as_echo_n "(cached) " >&6
4163 if $as_echo 'TRUE=$(BAR$(V))
4169 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4170 am_cv_make_support_nested_variables=yes
4172 am_cv_make_support_nested_variables=no
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4176 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4177 if test $am_cv_make_support_nested_variables = yes; then
4179 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4181 AM_V=$AM_DEFAULT_VERBOSITY
4182 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4186 ac_config_headers="$ac_config_headers config.h"
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ***
4190 *** Checking for compilation programs...
4193 *** Checking for compilation programs...
4197 ac_cpp='$CPP $CPPFLAGS'
4198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201 if test -n "$ac_tool_prefix"; then
4202 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4203 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205 $as_echo_n "checking for $ac_word... " >&6; }
4206 if ${ac_cv_prog_CC+:} false; then :
4207 $as_echo_n "(cached) " >&6
4209 if test -n "$CC"; then
4210 ac_cv_prog_CC="$CC" # Let the user override the test.
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 if test -n "$CC"; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4232 $as_echo "$CC" >&6; }
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 $as_echo "no" >&6; }
4240 if test -z "$ac_cv_prog_CC"; then
4242 # Extract the first word of "gcc", so it can be a program name with args.
4243 set dummy gcc; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4247 $as_echo_n "(cached) " >&6
4249 if test -n "$ac_ct_CC"; then
4250 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4259 ac_cv_prog_ac_ct_CC="gcc"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4269 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4270 if test -n "$ac_ct_CC"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4272 $as_echo "$ac_ct_CC" >&6; }
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4278 if test "x$ac_ct_CC" = x; then
4281 case $cross_compiling:$ac_tool_warned in
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4285 ac_tool_warned=yes ;;
4293 if test -z "$CC"; then
4294 if test -n "$ac_tool_prefix"; then
4295 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4296 set dummy ${ac_tool_prefix}cc; ac_word=$2
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4298 $as_echo_n "checking for $ac_word... " >&6; }
4299 if ${ac_cv_prog_CC+:} false; then :
4300 $as_echo_n "(cached) " >&6
4302 if test -n "$CC"; then
4303 ac_cv_prog_CC="$CC" # Let the user override the test.
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4312 ac_cv_prog_CC="${ac_tool_prefix}cc"
4313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 if test -n "$CC"; then
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4325 $as_echo "$CC" >&6; }
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328 $as_echo "no" >&6; }
4334 if test -z "$CC"; then
4335 # Extract the first word of "cc", so it can be a program name with args.
4336 set dummy cc; ac_word=$2
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338 $as_echo_n "checking for $ac_word... " >&6; }
4339 if ${ac_cv_prog_CC+:} false; then :
4340 $as_echo_n "(cached) " >&6
4342 if test -n "$CC"; then
4343 ac_cv_prog_CC="$CC" # Let the user override the test.
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4353 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4354 ac_prog_rejected=yes
4358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 if test $ac_prog_rejected = yes; then
4366 # We found a bogon in the path, so make sure we never use it.
4367 set dummy $ac_cv_prog_CC
4369 if test $# != 0; then
4370 # We chose a different compiler from the bogus one.
4371 # However, it has the same basename, so the bogon will be chosen
4372 # first if we set CC to just the basename; use the full file name.
4374 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4380 if test -n "$CC"; then
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4382 $as_echo "$CC" >&6; }
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4390 if test -z "$CC"; then
4391 if test -n "$ac_tool_prefix"; then
4392 for ac_prog in cl.exe
4394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if ${ac_cv_prog_CC+:} false; then :
4399 $as_echo_n "(cached) " >&6
4401 if test -n "$CC"; then
4402 ac_cv_prog_CC="$CC" # Let the user override the test.
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 if test -n "$CC"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4424 $as_echo "$CC" >&6; }
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4431 test -n "$CC" && break
4434 if test -z "$CC"; then
4436 for ac_prog in cl.exe
4438 # Extract the first word of "$ac_prog", so it can be a program name with args.
4439 set dummy $ac_prog; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4443 $as_echo_n "(cached) " >&6
4445 if test -n "$ac_ct_CC"; then
4446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_prog_ac_ct_CC="$ac_prog"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4466 if test -n "$ac_ct_CC"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4468 $as_echo "$ac_ct_CC" >&6; }
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4475 test -n "$ac_ct_CC" && break
4478 if test "x$ac_ct_CC" = x; then
4481 case $cross_compiling:$ac_tool_warned in
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485 ac_tool_warned=yes ;;
4494 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4496 as_fn_error $? "no acceptable C compiler found in \$PATH
4497 See \`config.log' for more details" "$LINENO" 5; }
4499 # Provide some information about the compiler.
4500 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4503 for ac_option in --version -v -V -qversion; do
4504 { { ac_try="$ac_compiler $ac_option >&5"
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4510 $as_echo "$ac_try_echo"; } >&5
4511 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4513 if test -s conftest.err; then
4515 ... rest of stderr output deleted ...
4516 10q' conftest.err >conftest.er1
4517 cat conftest.er1 >&5
4519 rm -f conftest.er1 conftest.err
4520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4521 test $ac_status = 0; }
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4535 ac_clean_files_save=$ac_clean_files
4536 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4537 # Try to create an executable without -o first, disregard a.out.
4538 # It will help us diagnose broken compilers, and finding out an intuition
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4541 $as_echo_n "checking whether the C compiler works... " >&6; }
4542 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4544 # The possible output files:
4545 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4548 for ac_file in $ac_files
4551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4552 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4557 if { { ac_try="$ac_link_default"
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4563 $as_echo "$ac_try_echo"; } >&5
4564 (eval "$ac_link_default") 2>&5
4566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4567 test $ac_status = 0; }; then :
4568 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4569 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4570 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4571 # so that the user can short-circuit this test for compilers unknown to
4573 for ac_file in $ac_files ''
4575 test -f "$ac_file" || continue
4577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4580 # We found the default executable, but exeext='' is most
4584 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4586 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4588 # We set ac_cv_exeext here because the later test for it is not
4589 # safe: cross compilers may not add the suffix if given an `-o'
4590 # argument, so we may need to know it at that point already.
4591 # Even if this section looks crufty: it has the advantage of
4598 test "$ac_cv_exeext" = no && ac_cv_exeext=
4603 if test -z "$ac_file"; then :
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4606 $as_echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4611 as_fn_error 77 "C compiler cannot create executables
4612 See \`config.log' for more details" "$LINENO" 5; }
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4615 $as_echo "yes" >&6; }
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4618 $as_echo_n "checking for C compiler default output file name... " >&6; }
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4620 $as_echo "$ac_file" >&6; }
4621 ac_exeext=$ac_cv_exeext
4623 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4624 ac_clean_files=$ac_clean_files_save
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4626 $as_echo_n "checking for suffix of executables... " >&6; }
4627 if { { ac_try="$ac_link"
4629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630 *) ac_try_echo=$ac_try;;
4632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4633 $as_echo "$ac_try_echo"; } >&5
4634 (eval "$ac_link") 2>&5
4636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4637 test $ac_status = 0; }; then :
4638 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4639 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4640 # work properly (i.e., refer to `conftest.exe'), while it won't with
4642 for ac_file in conftest.exe conftest conftest.*; do
4643 test -f "$ac_file" || continue
4645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4646 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4654 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4655 See \`config.log' for more details" "$LINENO" 5; }
4657 rm -f conftest conftest$ac_cv_exeext
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4659 $as_echo "$ac_cv_exeext" >&6; }
4661 rm -f conftest.$ac_ext
4662 EXEEXT=$ac_cv_exeext
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4670 FILE *f = fopen ("conftest.out", "w");
4671 return ferror (f) || fclose (f) != 0;
4677 ac_clean_files="$ac_clean_files conftest.out"
4678 # Check that the compiler produces executables we can run. If not, either
4679 # the compiler is broken, or we cross compile.
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4681 $as_echo_n "checking whether we are cross compiling... " >&6; }
4682 if test "$cross_compiling" != yes; then
4683 { { ac_try="$ac_link"
4685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686 *) ac_try_echo=$ac_try;;
4688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4689 $as_echo "$ac_try_echo"; } >&5
4690 (eval "$ac_link") 2>&5
4692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4693 test $ac_status = 0; }
4694 if { ac_try='./conftest$ac_cv_exeext'
4695 { { case "(($ac_try" in
4696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4700 $as_echo "$ac_try_echo"; } >&5
4701 (eval "$ac_try") 2>&5
4703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4704 test $ac_status = 0; }; }; then
4707 if test "$cross_compiling" = maybe; then
4710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4712 as_fn_error $? "cannot run C compiled programs.
4713 If you meant to cross compile, use \`--host'.
4714 See \`config.log' for more details" "$LINENO" 5; }
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4719 $as_echo "$cross_compiling" >&6; }
4721 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4722 ac_clean_files=$ac_clean_files_save
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4724 $as_echo_n "checking for suffix of object files... " >&6; }
4725 if ${ac_cv_objext+:} false; then :
4726 $as_echo_n "(cached) " >&6
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4739 rm -f conftest.o conftest.obj
4740 if { { ac_try="$ac_compile"
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4746 $as_echo "$ac_try_echo"; } >&5
4747 (eval "$ac_compile") 2>&5
4749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4750 test $ac_status = 0; }; then :
4751 for ac_file in conftest.o conftest.obj conftest.*; do
4752 test -f "$ac_file" || continue;
4754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4755 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4760 $as_echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4765 as_fn_error $? "cannot compute suffix of object files: cannot compile
4766 See \`config.log' for more details" "$LINENO" 5; }
4768 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4771 $as_echo "$ac_cv_objext" >&6; }
4772 OBJEXT=$ac_cv_objext
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4775 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4776 if ${ac_cv_c_compiler_gnu+:} false; then :
4777 $as_echo_n "(cached) " >&6
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4793 if ac_fn_c_try_compile "$LINENO"; then :
4798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4803 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4804 if test $ac_compiler_gnu = yes; then
4809 ac_test_CFLAGS=${CFLAGS+set}
4810 ac_save_CFLAGS=$CFLAGS
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4812 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4813 if ${ac_cv_prog_cc_g+:} false; then :
4814 $as_echo_n "(cached) " >&6
4816 ac_save_c_werror_flag=$ac_c_werror_flag
4817 ac_c_werror_flag=yes
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4831 if ac_fn_c_try_compile "$LINENO"; then :
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h. */
4846 if ac_fn_c_try_compile "$LINENO"; then :
4849 ac_c_werror_flag=$ac_save_c_werror_flag
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4862 if ac_fn_c_try_compile "$LINENO"; then :
4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870 ac_c_werror_flag=$ac_save_c_werror_flag
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4873 $as_echo "$ac_cv_prog_cc_g" >&6; }
4874 if test "$ac_test_CFLAGS" = set; then
4875 CFLAGS=$ac_save_CFLAGS
4876 elif test $ac_cv_prog_cc_g = yes; then
4877 if test "$GCC" = yes; then
4883 if test "$GCC" = yes; then
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4890 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4891 if ${ac_cv_prog_cc_c89+:} false; then :
4892 $as_echo_n "(cached) " >&6
4894 ac_cv_prog_cc_c89=no
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h. */
4900 #include <sys/types.h>
4901 #include <sys/stat.h>
4902 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4903 struct buf { int x; };
4904 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4905 static char *e (p, i)
4911 static char *f (char * (*g) (char **, int), char **p, ...)
4916 s = g (p, va_arg (v,int));
4921 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4922 function prototypes and stuff, but not '\xHH' hex character constants.
4923 These don't provoke an error unfortunately, instead are silently treated
4924 as 'x'. The following induces an error, until -std is added to get
4925 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4926 array size at least. It's necessary to write '\x00'==0 to get something
4927 that's true only with -std. */
4928 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4930 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4931 inside strings and character constants. */
4933 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4935 int test (int i, double x);
4936 struct s1 {int (*f) (int a);};
4937 struct s2 {int (*f) (double a);};
4938 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4944 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4949 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4950 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4952 CC="$ac_save_CC $ac_arg"
4953 if ac_fn_c_try_compile "$LINENO"; then :
4954 ac_cv_prog_cc_c89=$ac_arg
4956 rm -f core conftest.err conftest.$ac_objext
4957 test "x$ac_cv_prog_cc_c89" != "xno" && break
4959 rm -f conftest.$ac_ext
4964 case "x$ac_cv_prog_cc_c89" in
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4967 $as_echo "none needed" >&6; } ;;
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4970 $as_echo "unsupported" >&6; } ;;
4972 CC="$CC $ac_cv_prog_cc_c89"
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4974 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4976 if test "x$ac_cv_prog_cc_c89" != xno; then :
4981 ac_cpp='$CPP $CPPFLAGS'
4982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4985 DEPDIR="${am__leading_dot}deps"
4987 ac_config_commands="$ac_config_commands depfiles"
4990 am_make=${MAKE-make}
4991 cat > confinc << 'END'
4993 @echo this is the am__doit target
4996 # If we don't find an include directive, just comment out the code.
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4998 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5002 # First try GNU make style include.
5003 echo "include confinc" > confmf
5004 # Ignore all kinds of additional output from `make'.
5005 case `$am_make -s -f confmf 2> /dev/null` in #(
5006 *the\ am__doit\ target*)
5012 # Now try BSD make style include.
5013 if test "$am__include" = "#"; then
5014 echo '.include "confinc"' > confmf
5015 case `$am_make -s -f confmf 2> /dev/null` in #(
5016 *the\ am__doit\ target*)
5017 am__include=.include
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5026 $as_echo "$_am_result" >&6; }
5027 rm -f confinc confmf
5029 # Check whether --enable-dependency-tracking was given.
5030 if test "${enable_dependency_tracking+set}" = set; then :
5031 enableval=$enable_dependency_tracking;
5034 if test "x$enable_dependency_tracking" != xno; then
5035 am_depcomp="$ac_aux_dir/depcomp"
5039 if test "x$enable_dependency_tracking" != xno; then
5049 depcc="$CC" am_compiler_list=
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5052 $as_echo_n "checking dependency style of $depcc... " >&6; }
5053 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5054 $as_echo_n "(cached) " >&6
5056 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5057 # We make a subdir and do the tests there. Otherwise we can end up
5058 # making bogus files that we don't know about and never remove. For
5059 # instance it was reported that on HP-UX the gcc test will end up
5060 # making a dummy file named `D' -- because `-MD' means `put the output
5064 # Copy depcomp to subdir because otherwise we won't find it if we're
5065 # using a relative directory.
5066 cp "$am_depcomp" conftest.dir
5068 # We will build objects and dependencies in a subdirectory because
5069 # it helps to detect inapplicable dependency modes. For instance
5070 # both Tru64's cc and ICC support -MD to output dependencies as a
5071 # side effect of compilation, but ICC will put the dependencies in
5072 # the current directory while Tru64 will put them in the object
5076 am_cv_CC_dependencies_compiler_type=none
5077 if test "$am_compiler_list" = ""; then
5078 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5081 case " $depcc " in #(
5082 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5085 for depmode in $am_compiler_list; do
5086 # Setup a source with many dependencies, because some compilers
5087 # like to wrap large dependency lists on column 80 (with \), and
5088 # we should not choose a depcomp mode which is confused by this.
5090 # We need to recreate these files for each test, as the compiler may
5091 # overwrite some of them when testing with obscure command lines.
5092 # This happens at least with the AIX C compiler.
5094 for i in 1 2 3 4 5 6; do
5095 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5096 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5097 # Solaris 8's {/usr,}/bin/sh.
5098 touch sub/conftst$i.h
5100 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5102 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5103 # mode. It turns out that the SunPro C++ compiler does not properly
5104 # handle `-M -o', and we need to detect this. Also, some Intel
5105 # versions had trouble with output in subdirs
5106 am__obj=sub/conftest.${OBJEXT-o}
5107 am__minus_obj="-o $am__obj"
5110 # This depmode causes a compiler race in universal mode.
5111 test "$am__universal" = false || continue
5114 # after this tag, mechanisms are not by side-effect, so they'll
5115 # only be used when explicitly requested
5116 if test "x$enable_dependency_tracking" = xyes; then
5122 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5123 # This compiler won't grok `-c -o', but also, the minuso test has
5124 # not run yet. These depmodes are late enough in the game, and
5125 # so weak that their functioning should not be impacted.
5126 am__obj=conftest.${OBJEXT-o}
5131 if depmode=$depmode \
5132 source=sub/conftest.c object=$am__obj \
5133 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5134 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5135 >/dev/null 2>conftest.err &&
5136 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5137 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5138 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5139 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5140 # icc doesn't choke on unknown options, it will just issue warnings
5141 # or remarks (even with -Werror). So we grep stderr for any message
5142 # that says an option was ignored or not supported.
5143 # When given -MP, icc 7.0 and 7.1 complain thusly:
5144 # icc: Command line warning: ignoring option '-M'; no argument required
5145 # The diagnosis changed in icc 8.0:
5146 # icc: Command line remark: option '-MP' not supported
5147 if (grep 'ignoring option' conftest.err ||
5148 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5149 am_cv_CC_dependencies_compiler_type=$depmode
5158 am_cv_CC_dependencies_compiler_type=none
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5163 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5164 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5167 test "x$enable_dependency_tracking" != xno \
5168 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5170 am__fastdepCC_FALSE='#'
5172 am__fastdepCC_TRUE='#'
5173 am__fastdepCC_FALSE=
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5178 $as_echo_n "checking whether ln -s works... " >&6; }
5180 if test "$LN_S" = "ln -s"; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5182 $as_echo "yes" >&6; }
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5185 $as_echo "no, using $LN_S" >&6; }
5190 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5191 if test -n "$ac_tool_prefix"; then
5192 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5193 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195 $as_echo_n "checking for $ac_word... " >&6; }
5196 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5197 $as_echo_n "(cached) " >&6
5201 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5211 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5223 if test -n "$PKG_CONFIG"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5225 $as_echo "$PKG_CONFIG" >&6; }
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5233 if test -z "$ac_cv_path_PKG_CONFIG"; then
5234 ac_pt_PKG_CONFIG=$PKG_CONFIG
5235 # Extract the first word of "pkg-config", so it can be a program name with args.
5236 set dummy pkg-config; ac_word=$2
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238 $as_echo_n "checking for $ac_word... " >&6; }
5239 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5240 $as_echo_n "(cached) " >&6
5242 case $ac_pt_PKG_CONFIG in
5244 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 test -z "$as_dir" && as_dir=.
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5254 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5266 if test -n "$ac_pt_PKG_CONFIG"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5268 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5274 if test "x$ac_pt_PKG_CONFIG" = x; then
5277 case $cross_compiling:$ac_tool_warned in
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5281 ac_tool_warned=yes ;;
5283 PKG_CONFIG=$ac_pt_PKG_CONFIG
5286 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5290 if test -n "$PKG_CONFIG"; then
5291 _pkg_min_version=0.9.0
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5293 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5294 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5296 $as_echo "yes" >&6; }
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5306 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
5307 set dummy gtkdoc-check; ac_word=$2
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309 $as_echo_n "checking for $ac_word... " >&6; }
5310 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
5311 $as_echo_n "(cached) " >&6
5313 case $GTKDOC_CHECK in
5315 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
5337 if test -n "$GTKDOC_CHECK"; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
5339 $as_echo "$GTKDOC_CHECK" >&6; }
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5346 for ac_prog in gtkdoc-rebase
5348 # Extract the first word of "$ac_prog", so it can be a program name with args.
5349 set dummy $ac_prog; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
5353 $as_echo_n "(cached) " >&6
5355 case $GTKDOC_REBASE in
5357 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5367 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
5368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
5379 if test -n "$GTKDOC_REBASE"; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
5381 $as_echo "$GTKDOC_REBASE" >&6; }
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5388 test -n "$GTKDOC_REBASE" && break
5390 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
5392 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
5393 set dummy gtkdoc-mkpdf; ac_word=$2
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395 $as_echo_n "checking for $ac_word... " >&6; }
5396 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
5397 $as_echo_n "(cached) " >&6
5399 case $GTKDOC_MKPDF in
5401 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5411 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
5423 if test -n "$GTKDOC_MKPDF"; then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
5425 $as_echo "$GTKDOC_MKPDF" >&6; }
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428 $as_echo "no" >&6; }
5434 # Check whether --with-html-dir was given.
5435 if test "${with_html_dir+set}" = set; then :
5436 withval=$with_html_dir;
5438 with_html_dir='${datadir}/gtk-doc/html'
5441 HTML_DIR="$with_html_dir"
5444 # Check whether --enable-gtk-doc was given.
5445 if test "${enable_gtk_doc+set}" = set; then :
5446 enableval=$enable_gtk_doc;
5452 if test x$enable_gtk_doc = xyes; then
5453 if test -n "$PKG_CONFIG" && \
5454 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.1\""; } >&5
5455 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.1") 2>&5
5457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5458 test $ac_status = 0; }; then
5461 as_fn_error $? "You need to have gtk-doc >= 1.1 installed to build $PACKAGE_NAME" "$LINENO" 5
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
5466 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
5468 $as_echo "$enable_gtk_doc" >&6; }
5470 # Check whether --enable-gtk-doc-html was given.
5471 if test "${enable_gtk_doc_html+set}" = set; then :
5472 enableval=$enable_gtk_doc_html;
5474 enable_gtk_doc_html=yes
5477 # Check whether --enable-gtk-doc-pdf was given.
5478 if test "${enable_gtk_doc_pdf+set}" = set; then :
5479 enableval=$enable_gtk_doc_pdf;
5481 enable_gtk_doc_pdf=no
5485 if test -z "$GTKDOC_MKPDF"; then
5486 enable_gtk_doc_pdf=no
5490 if test x$enable_gtk_doc = xyes; then
5491 ENABLE_GTK_DOC_TRUE=
5492 ENABLE_GTK_DOC_FALSE='#'
5494 ENABLE_GTK_DOC_TRUE='#'
5495 ENABLE_GTK_DOC_FALSE=
5498 if test x$enable_gtk_doc_html = xyes; then
5499 GTK_DOC_BUILD_HTML_TRUE=
5500 GTK_DOC_BUILD_HTML_FALSE='#'
5502 GTK_DOC_BUILD_HTML_TRUE='#'
5503 GTK_DOC_BUILD_HTML_FALSE=
5506 if test x$enable_gtk_doc_pdf = xyes; then
5507 GTK_DOC_BUILD_PDF_TRUE=
5508 GTK_DOC_BUILD_PDF_FALSE='#'
5510 GTK_DOC_BUILD_PDF_TRUE='#'
5511 GTK_DOC_BUILD_PDF_FALSE=
5514 if test -n "$LIBTOOL"; then
5515 GTK_DOC_USE_LIBTOOL_TRUE=
5516 GTK_DOC_USE_LIBTOOL_FALSE='#'
5518 GTK_DOC_USE_LIBTOOL_TRUE='#'
5519 GTK_DOC_USE_LIBTOOL_FALSE=
5522 if test -n "$GTKDOC_REBASE"; then
5523 GTK_DOC_USE_REBASE_TRUE=
5524 GTK_DOC_USE_REBASE_FALSE='#'
5526 GTK_DOC_USE_REBASE_TRUE='#'
5527 GTK_DOC_USE_REBASE_FALSE=
5531 # Extract the first word of "gaa", so it can be a program name with args.
5532 set dummy gaa; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if ${ac_cv_path_GAA+:} false; then :
5536 $as_echo_n "(cached) " >&6
5540 ac_cv_path_GAA="$GAA" # Let the user override the test with a path.
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5550 ac_cv_path_GAA="$as_dir/$ac_word$ac_exec_ext"
5551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 if test -n "$GAA"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAA" >&5
5564 $as_echo "$GAA" >&6; }
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5571 if test "x$GAA" = "x"; then
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***
5573 *** GAA was not found. It is only needed if you wish to modify
5574 *** the source code or command-line description files. In this case,
5575 *** you may want to get it from http://gaa.sourceforge.net/ and
5576 *** read doc/README.gaa.
5578 $as_echo "$as_me: WARNING: ***
5579 *** GAA was not found. It is only needed if you wish to modify
5580 *** the source code or command-line description files. In this case,
5581 *** you may want to get it from http://gaa.sourceforge.net/ and
5582 *** read doc/README.gaa.
5588 ac_cpp='$CPP $CPPFLAGS'
5589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5593 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5594 # On Suns, sometimes $CPP names a directory.
5595 if test -n "$CPP" && test -d "$CPP"; then
5598 if test -z "$CPP"; then
5599 if ${ac_cv_prog_CPP+:} false; then :
5600 $as_echo_n "(cached) " >&6
5602 # Double quotes because CPP needs to be expanded
5603 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5606 for ac_c_preproc_warn_flag in '' yes
5608 # Use a header file that comes with gcc, so configuring glibc
5609 # with a fresh cross-compiler works.
5610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5611 # <limits.h> exists even on freestanding compilers.
5612 # On the NeXT, cc -E runs the code through the compiler's parser,
5613 # not just through cpp. "Syntax error" is here to catch this case.
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5617 # include <limits.h>
5619 # include <assert.h>
5623 if ac_fn_c_try_cpp "$LINENO"; then :
5626 # Broken: fails on valid input.
5629 rm -f conftest.err conftest.i conftest.$ac_ext
5631 # OK, works on sane cases. Now check whether nonexistent headers
5632 # can be detected and how.
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 #include <ac_nonexistent.h>
5637 if ac_fn_c_try_cpp "$LINENO"; then :
5638 # Broken: success on invalid input.
5641 # Passes both tests.
5645 rm -f conftest.err conftest.i conftest.$ac_ext
5648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5649 rm -f conftest.i conftest.err conftest.$ac_ext
5650 if $ac_preproc_ok; then :
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5663 $as_echo "$CPP" >&6; }
5665 for ac_c_preproc_warn_flag in '' yes
5667 # Use a header file that comes with gcc, so configuring glibc
5668 # with a fresh cross-compiler works.
5669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5670 # <limits.h> exists even on freestanding compilers.
5671 # On the NeXT, cc -E runs the code through the compiler's parser,
5672 # not just through cpp. "Syntax error" is here to catch this case.
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5676 # include <limits.h>
5678 # include <assert.h>
5682 if ac_fn_c_try_cpp "$LINENO"; then :
5685 # Broken: fails on valid input.
5688 rm -f conftest.err conftest.i conftest.$ac_ext
5690 # OK, works on sane cases. Now check whether nonexistent headers
5691 # can be detected and how.
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694 #include <ac_nonexistent.h>
5696 if ac_fn_c_try_cpp "$LINENO"; then :
5697 # Broken: success on invalid input.
5700 # Passes both tests.
5704 rm -f conftest.err conftest.i conftest.$ac_ext
5707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5708 rm -f conftest.i conftest.err conftest.$ac_ext
5709 if $ac_preproc_ok; then :
5712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5714 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5715 See \`config.log' for more details" "$LINENO" 5; }
5719 ac_cpp='$CPP $CPPFLAGS'
5720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5726 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5727 if ${ac_cv_path_GREP+:} false; then :
5728 $as_echo_n "(cached) " >&6
5730 if test -z "$GREP"; then
5731 ac_path_GREP_found=false
5732 # Loop through the user's path and test for each of PROGNAME-LIST
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5737 test -z "$as_dir" && as_dir=.
5738 for ac_prog in grep ggrep; do
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5741 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5742 # Check for GNU ac_path_GREP and select it if it is found.
5743 # Check for GNU $ac_path_GREP
5744 case `"$ac_path_GREP" --version 2>&1` in
5746 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5749 $as_echo_n 0123456789 >"conftest.in"
5752 cat "conftest.in" "conftest.in" >"conftest.tmp"
5753 mv "conftest.tmp" "conftest.in"
5754 cp "conftest.in" "conftest.nl"
5755 $as_echo 'GREP' >> "conftest.nl"
5756 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5757 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5758 as_fn_arith $ac_count + 1 && ac_count=$as_val
5759 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5760 # Best one so far, save it but keep looking for a better one
5761 ac_cv_path_GREP="$ac_path_GREP"
5762 ac_path_GREP_max=$ac_count
5764 # 10*(2^10) chars as input seems more than enough
5765 test $ac_count -gt 10 && break
5767 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5770 $ac_path_GREP_found && break 3
5775 if test -z "$ac_cv_path_GREP"; then
5776 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5779 ac_cv_path_GREP=$GREP
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5784 $as_echo "$ac_cv_path_GREP" >&6; }
5785 GREP="$ac_cv_path_GREP"
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5789 $as_echo_n "checking for egrep... " >&6; }
5790 if ${ac_cv_path_EGREP+:} false; then :
5791 $as_echo_n "(cached) " >&6
5793 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5794 then ac_cv_path_EGREP="$GREP -E"
5796 if test -z "$EGREP"; then
5797 ac_path_EGREP_found=false
5798 # Loop through the user's path and test for each of PROGNAME-LIST
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5803 test -z "$as_dir" && as_dir=.
5804 for ac_prog in egrep; do
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5807 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5808 # Check for GNU ac_path_EGREP and select it if it is found.
5809 # Check for GNU $ac_path_EGREP
5810 case `"$ac_path_EGREP" --version 2>&1` in
5812 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5815 $as_echo_n 0123456789 >"conftest.in"
5818 cat "conftest.in" "conftest.in" >"conftest.tmp"
5819 mv "conftest.tmp" "conftest.in"
5820 cp "conftest.in" "conftest.nl"
5821 $as_echo 'EGREP' >> "conftest.nl"
5822 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5824 as_fn_arith $ac_count + 1 && ac_count=$as_val
5825 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5826 # Best one so far, save it but keep looking for a better one
5827 ac_cv_path_EGREP="$ac_path_EGREP"
5828 ac_path_EGREP_max=$ac_count
5830 # 10*(2^10) chars as input seems more than enough
5831 test $ac_count -gt 10 && break
5833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5836 $ac_path_EGREP_found && break 3
5841 if test -z "$ac_cv_path_EGREP"; then
5842 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5845 ac_cv_path_EGREP=$EGREP
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5851 $as_echo "$ac_cv_path_EGREP" >&6; }
5852 EGREP="$ac_cv_path_EGREP"
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5858 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5859 if ${gl_cv_c_amsterdam_compiler+:} false; then :
5860 $as_echo_n "(cached) " >&6
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5872 $EGREP "Amsterdam" >/dev/null 2>&1; then :
5873 gl_cv_c_amsterdam_compiler=yes
5875 gl_cv_c_amsterdam_compiler=no
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5882 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5883 if test -z "$AR"; then
5884 if test $gl_cv_c_amsterdam_compiler = yes; then
5886 if test -z "$ARFLAGS"; then
5890 if test -n "$ac_tool_prefix"; then
5891 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5892 set dummy ${ac_tool_prefix}ar; ac_word=$2
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894 $as_echo_n "checking for $ac_word... " >&6; }
5895 if ${ac_cv_prog_AR+:} false; then :
5896 $as_echo_n "(cached) " >&6
5898 if test -n "$AR"; then
5899 ac_cv_prog_AR="$AR" # Let the user override the test.
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5908 ac_cv_prog_AR="${ac_tool_prefix}ar"
5909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919 if test -n "$AR"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5921 $as_echo "$AR" >&6; }
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 $as_echo "no" >&6; }
5929 if test -z "$ac_cv_prog_AR"; then
5931 # Extract the first word of "ar", so it can be a program name with args.
5932 set dummy ar; ac_word=$2
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5934 $as_echo_n "checking for $ac_word... " >&6; }
5935 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5936 $as_echo_n "(cached) " >&6
5938 if test -n "$ac_ct_AR"; then
5939 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 test -z "$as_dir" && as_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5948 ac_cv_prog_ac_ct_AR="ar"
5949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5959 if test -n "$ac_ct_AR"; then
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5961 $as_echo "$ac_ct_AR" >&6; }
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5964 $as_echo "no" >&6; }
5967 if test "x$ac_ct_AR" = x; then
5970 case $cross_compiling:$ac_tool_warned in
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5974 ac_tool_warned=yes ;;
5982 if test -z "$ARFLAGS"; then
5987 if test -z "$ARFLAGS"; then
5993 if test -z "$RANLIB"; then
5994 if test $gl_cv_c_amsterdam_compiler = yes; then
5997 if test -n "$ac_tool_prefix"; then
5998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5999 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6001 $as_echo_n "checking for $ac_word... " >&6; }
6002 if ${ac_cv_prog_RANLIB+:} false; then :
6003 $as_echo_n "(cached) " >&6
6005 if test -n "$RANLIB"; then
6006 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 RANLIB=$ac_cv_prog_RANLIB
6026 if test -n "$RANLIB"; then
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6028 $as_echo "$RANLIB" >&6; }
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031 $as_echo "no" >&6; }
6036 if test -z "$ac_cv_prog_RANLIB"; then
6037 ac_ct_RANLIB=$RANLIB
6038 # Extract the first word of "ranlib", so it can be a program name with args.
6039 set dummy ranlib; ac_word=$2
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041 $as_echo_n "checking for $ac_word... " >&6; }
6042 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6043 $as_echo_n "(cached) " >&6
6045 if test -n "$ac_ct_RANLIB"; then
6046 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_prog_ac_ct_RANLIB="ranlib"
6056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6066 if test -n "$ac_ct_RANLIB"; then
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6068 $as_echo "$ac_ct_RANLIB" >&6; }
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 $as_echo "no" >&6; }
6074 if test "x$ac_ct_RANLIB" = x; then
6077 case $cross_compiling:$ac_tool_warned in
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6081 ac_tool_warned=yes ;;
6083 RANLIB=$ac_ct_RANLIB
6086 RANLIB="$ac_cv_prog_RANLIB"
6093 if test "x$CC" != xcc; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6095 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6098 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6100 set dummy $CC; ac_cc=`$as_echo "$2" |
6101 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6102 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
6103 $as_echo_n "(cached) " >&6
6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106 /* end confdefs.h. */
6116 # Make sure it works both with $CC and with simple cc.
6117 # We do the test twice because some compilers refuse to overwrite an
6118 # existing .o file with -o, though they will create one.
6119 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6121 if { { case "(($ac_try" in
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6126 $as_echo "$ac_try_echo"; } >&5
6127 (eval "$ac_try") 2>&5
6129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6130 test $ac_status = 0; } &&
6131 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6136 $as_echo "$ac_try_echo"; } >&5
6137 (eval "$ac_try") 2>&5
6139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6140 test $ac_status = 0; };
6142 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6143 if test "x$CC" != xcc; then
6144 # Test first that cc exists at all.
6145 if { ac_try='cc -c conftest.$ac_ext >&5'
6146 { { case "(($ac_try" in
6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6151 $as_echo "$ac_try_echo"; } >&5
6152 (eval "$ac_try") 2>&5
6154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6155 test $ac_status = 0; }; }; then
6156 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6158 if { { case "(($ac_try" in
6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6163 $as_echo "$ac_try_echo"; } >&5
6164 (eval "$ac_try") 2>&5
6166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6167 test $ac_status = 0; } &&
6168 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6173 $as_echo "$ac_try_echo"; } >&5
6174 (eval "$ac_try") 2>&5
6176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6177 test $ac_status = 0; };
6182 # cc exists but doesn't like -o.
6183 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6188 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6190 rm -f core conftest*
6193 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6195 $as_echo "yes" >&6; }
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 $as_echo "no" >&6; }
6200 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6204 # FIXME: we rely on the cache variable name because
6205 # there is no other way.
6207 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6208 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6209 if test "$am_t" != yes; then
6210 # Losing compiler, so override with the script.
6211 # FIXME: It is wrong to rewrite CC.
6212 # But if we don't then we get into trouble of one sort or another.
6213 # A longer-term fix would be to have automake use am__CC in this case,
6214 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6215 CC="$am_aux_dir/compile $CC"
6219 # Make sure we can run config.sub.
6220 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6221 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6224 $as_echo_n "checking build system type... " >&6; }
6225 if ${ac_cv_build+:} false; then :
6226 $as_echo_n "(cached) " >&6
6228 ac_build_alias=$build_alias
6229 test "x$ac_build_alias" = x &&
6230 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6231 test "x$ac_build_alias" = x &&
6232 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6233 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6234 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6238 $as_echo "$ac_cv_build" >&6; }
6239 case $ac_cv_build in
6241 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6244 ac_save_IFS=$IFS; IFS='-'
6250 # Remember, the first character of IFS is used to create $*,
6251 # except with old shells:
6254 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6258 $as_echo_n "checking host system type... " >&6; }
6259 if ${ac_cv_host+:} false; then :
6260 $as_echo_n "(cached) " >&6
6262 if test "x$host_alias" = x; then
6263 ac_cv_host=$ac_cv_build
6265 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6266 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6271 $as_echo "$ac_cv_host" >&6; }
6274 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6277 ac_save_IFS=$IFS; IFS='-'
6283 # Remember, the first character of IFS is used to create $*,
6284 # except with old shells:
6287 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6291 $as_echo_n "checking for ANSI C header files... " >&6; }
6292 if ${ac_cv_header_stdc+:} false; then :
6293 $as_echo_n "(cached) " >&6
6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h. */
6310 if ac_fn_c_try_compile "$LINENO"; then :
6311 ac_cv_header_stdc=yes
6313 ac_cv_header_stdc=no
6315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317 if test $ac_cv_header_stdc = yes; then
6318 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6325 $EGREP "memchr" >/dev/null 2>&1; then :
6328 ac_cv_header_stdc=no
6334 if test $ac_cv_header_stdc = yes; then
6335 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h. */
6341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6342 $EGREP "free" >/dev/null 2>&1; then :
6345 ac_cv_header_stdc=no
6351 if test $ac_cv_header_stdc = yes; then
6352 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6353 if test "$cross_compiling" = yes; then :
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6360 #if ((' ' & 0x0FF) == 0x020)
6361 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6362 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6364 # define ISLOWER(c) \
6365 (('a' <= (c) && (c) <= 'i') \
6366 || ('j' <= (c) && (c) <= 'r') \
6367 || ('s' <= (c) && (c) <= 'z'))
6368 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6371 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6376 for (i = 0; i < 256; i++)
6377 if (XOR (islower (i), ISLOWER (i))
6378 || toupper (i) != TOUPPER (i))
6383 if ac_fn_c_try_run "$LINENO"; then :
6386 ac_cv_header_stdc=no
6388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6389 conftest.$ac_objext conftest.beam conftest.$ac_ext
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6395 $as_echo "$ac_cv_header_stdc" >&6; }
6396 if test $ac_cv_header_stdc = yes; then
6398 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6402 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6403 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6404 inttypes.h stdint.h unistd.h
6406 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6407 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6409 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6410 cat >>confdefs.h <<_ACEOF
6411 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6422 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6423 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6430 if test "$MINIX" = yes; then
6432 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6435 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6438 $as_echo "#define _MINIX 1" >>confdefs.h
6445 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6452 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6453 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6454 $as_echo_n "(cached) " >&6
6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6459 # define __EXTENSIONS__ 1
6460 $ac_includes_default
6469 if ac_fn_c_try_compile "$LINENO"; then :
6470 ac_cv_safe_to_define___extensions__=yes
6472 ac_cv_safe_to_define___extensions__=no
6474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6477 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6478 test $ac_cv_safe_to_define___extensions__ = yes &&
6479 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6481 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6483 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6485 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6487 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6489 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6501 # IEEE behaviour is the default on all CPUs except Alpha and SH
6502 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
6503 # and the GCC 4.1.2 manual).
6506 # On Alpha systems, a compiler option provides the behaviour.
6507 # See the ieee(3) manual page, also available at
6508 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
6509 if test -n "$GCC"; then
6510 # GCC has the option -mieee.
6511 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
6512 CPPFLAGS="$CPPFLAGS -mieee"
6514 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
6515 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
6516 CPPFLAGS="$CPPFLAGS -ieee"
6520 if test -n "$GCC"; then
6521 # GCC has the option -mieee.
6522 CPPFLAGS="$CPPFLAGS -mieee"
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6528 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
6529 if ${ac_cv_sys_largefile_source+:} false; then :
6530 $as_echo_n "(cached) " >&6
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6535 #include <sys/types.h> /* for off_t */
6540 int (*fp) (FILE *, off_t, int) = fseeko;
6541 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6546 if ac_fn_c_try_link "$LINENO"; then :
6547 ac_cv_sys_largefile_source=no; break
6549 rm -f core conftest.err conftest.$ac_objext \
6550 conftest$ac_exeext conftest.$ac_ext
6551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h. */
6553 #define _LARGEFILE_SOURCE 1
6554 #include <sys/types.h> /* for off_t */
6559 int (*fp) (FILE *, off_t, int) = fseeko;
6560 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6565 if ac_fn_c_try_link "$LINENO"; then :
6566 ac_cv_sys_largefile_source=1; break
6568 rm -f core conftest.err conftest.$ac_objext \
6569 conftest$ac_exeext conftest.$ac_ext
6570 ac_cv_sys_largefile_source=unknown
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
6575 $as_echo "$ac_cv_sys_largefile_source" >&6; }
6576 case $ac_cv_sys_largefile_source in #(
6579 cat >>confdefs.h <<_ACEOF
6580 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6586 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6587 # in glibc 2.1.3, but that breaks too many other things.
6588 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6589 if test $ac_cv_sys_largefile_source != unknown; then
6591 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
6595 # Check whether --enable-largefile was given.
6596 if test "${enable_largefile+set}" = set; then :
6597 enableval=$enable_largefile;
6600 if test "$enable_largefile" != no; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6603 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6604 if ${ac_cv_sys_largefile_CC+:} false; then :
6605 $as_echo_n "(cached) " >&6
6607 ac_cv_sys_largefile_CC=no
6608 if test "$GCC" != yes; then
6611 # IRIX 6.2 and later do not support large files by default,
6612 # so use the C compiler's -n32 option if that helps.
6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614 /* end confdefs.h. */
6615 #include <sys/types.h>
6616 /* Check that off_t can represent 2**63 - 1 correctly.
6617 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6618 since some C++ compilers masquerading as C compilers
6619 incorrectly reject 9223372036854775807. */
6620 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6621 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6622 && LARGE_OFF_T % 2147483647 == 1)
6632 if ac_fn_c_try_compile "$LINENO"; then :
6635 rm -f core conftest.err conftest.$ac_objext
6637 if ac_fn_c_try_compile "$LINENO"; then :
6638 ac_cv_sys_largefile_CC=' -n32'; break
6640 rm -f core conftest.err conftest.$ac_objext
6644 rm -f conftest.$ac_ext
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6648 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6649 if test "$ac_cv_sys_largefile_CC" != no; then
6650 CC=$CC$ac_cv_sys_largefile_CC
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6654 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6655 if ${ac_cv_sys_file_offset_bits+:} false; then :
6656 $as_echo_n "(cached) " >&6
6659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h. */
6661 #include <sys/types.h>
6662 /* Check that off_t can represent 2**63 - 1 correctly.
6663 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6664 since some C++ compilers masquerading as C compilers
6665 incorrectly reject 9223372036854775807. */
6666 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6667 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6668 && LARGE_OFF_T % 2147483647 == 1)
6678 if ac_fn_c_try_compile "$LINENO"; then :
6679 ac_cv_sys_file_offset_bits=no; break
6681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6684 #define _FILE_OFFSET_BITS 64
6685 #include <sys/types.h>
6686 /* Check that off_t can represent 2**63 - 1 correctly.
6687 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6688 since some C++ compilers masquerading as C compilers
6689 incorrectly reject 9223372036854775807. */
6690 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6691 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6692 && LARGE_OFF_T % 2147483647 == 1)
6702 if ac_fn_c_try_compile "$LINENO"; then :
6703 ac_cv_sys_file_offset_bits=64; break
6705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6706 ac_cv_sys_file_offset_bits=unknown
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6711 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6712 case $ac_cv_sys_file_offset_bits in #(
6715 cat >>confdefs.h <<_ACEOF
6716 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6721 if test $ac_cv_sys_file_offset_bits = unknown; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6723 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6724 if ${ac_cv_sys_large_files+:} false; then :
6725 $as_echo_n "(cached) " >&6
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h. */
6730 #include <sys/types.h>
6731 /* Check that off_t can represent 2**63 - 1 correctly.
6732 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6733 since some C++ compilers masquerading as C compilers
6734 incorrectly reject 9223372036854775807. */
6735 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6736 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6737 && LARGE_OFF_T % 2147483647 == 1)
6747 if ac_fn_c_try_compile "$LINENO"; then :
6748 ac_cv_sys_large_files=no; break
6750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h. */
6753 #define _LARGE_FILES 1
6754 #include <sys/types.h>
6755 /* Check that off_t can represent 2**63 - 1 correctly.
6756 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6757 since some C++ compilers masquerading as C compilers
6758 incorrectly reject 9223372036854775807. */
6759 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6760 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6761 && LARGE_OFF_T % 2147483647 == 1)
6771 if ac_fn_c_try_compile "$LINENO"; then :
6772 ac_cv_sys_large_files=1; break
6774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775 ac_cv_sys_large_files=unknown
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6780 $as_echo "$ac_cv_sys_large_files" >&6; }
6781 case $ac_cv_sys_large_files in #(
6784 cat >>confdefs.h <<_ACEOF
6785 #define _LARGE_FILES $ac_cv_sys_large_files
6793 case $ac_cv_prog_cc_stdc in #(
6795 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6798 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6799 if ${ac_cv_prog_cc_c99+:} false; then :
6800 $as_echo_n "(cached) " >&6
6802 ac_cv_prog_cc_c99=no
6804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6805 /* end confdefs.h. */
6807 #include <stdbool.h>
6812 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6813 #define debug(...) fprintf (stderr, __VA_ARGS__)
6814 #define showlist(...) puts (#__VA_ARGS__)
6815 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6817 test_varargs_macros (void)
6822 debug ("X = %d\n", x);
6823 showlist (The first, second, and third items.);
6824 report (x>y, "x is %d but y is %d", x, y);
6827 // Check long long types.
6828 #define BIG64 18446744073709551615ull
6829 #define BIG32 4294967295ul
6830 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6832 your preprocessor is broken;
6836 your preprocessor is broken;
6838 static long long int bignum = -9223372036854775807LL;
6839 static unsigned long long int ubignum = BIG64;
6841 struct incomplete_array
6849 const wchar_t *name;
6853 typedef const char *ccp;
6856 test_restrict (ccp restrict text)
6858 // See if C++-style comments work.
6859 // Iterate through items via the restricted pointer.
6860 // Also check for declarations in for loops.
6861 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6866 // Check varargs and va_copy.
6868 test_varargs (const char *format, ...)
6871 va_start (args, format);
6873 va_copy (args_copy, args);
6884 str = va_arg (args_copy, const char *);
6887 number = va_arg (args_copy, int);
6890 fnumber = va_arg (args_copy, double);
6905 _Bool success = false;
6908 if (test_restrict ("String literal") == 0)
6910 char *restrict newvar = "Another string";
6913 test_varargs ("s, d' f .", "string", 65, 34.234);
6914 test_varargs_macros ();
6916 // Check flexible array members.
6917 struct incomplete_array *ia =
6918 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6920 for (int i = 0; i < ia->datasize; ++i)
6921 ia->data[i] = i * 1.234;
6923 // Check named initializers.
6924 struct named_init ni = {
6926 .name = L"Test wide string",
6927 .average = 543.34343,
6932 int dynamic_array[ni.number];
6933 dynamic_array[ni.number - 1] = 543;
6935 // work around unused variable warnings
6936 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6937 || dynamic_array[ni.number - 1] != 543);
6943 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6945 CC="$ac_save_CC $ac_arg"
6946 if ac_fn_c_try_compile "$LINENO"; then :
6947 ac_cv_prog_cc_c99=$ac_arg
6949 rm -f core conftest.err conftest.$ac_objext
6950 test "x$ac_cv_prog_cc_c99" != "xno" && break
6952 rm -f conftest.$ac_ext
6957 case "x$ac_cv_prog_cc_c99" in
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6960 $as_echo "none needed" >&6; } ;;
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6963 $as_echo "unsupported" >&6; } ;;
6965 CC="$CC $ac_cv_prog_cc_c99"
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6967 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6969 if test "x$ac_cv_prog_cc_c99" != xno; then :
6970 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6973 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6974 if ${ac_cv_prog_cc_c89+:} false; then :
6975 $as_echo_n "(cached) " >&6
6977 ac_cv_prog_cc_c89=no
6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980 /* end confdefs.h. */
6983 #include <sys/types.h>
6984 #include <sys/stat.h>
6985 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6986 struct buf { int x; };
6987 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6988 static char *e (p, i)
6994 static char *f (char * (*g) (char **, int), char **p, ...)
6999 s = g (p, va_arg (v,int));
7004 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7005 function prototypes and stuff, but not '\xHH' hex character constants.
7006 These don't provoke an error unfortunately, instead are silently treated
7007 as 'x'. The following induces an error, until -std is added to get
7008 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7009 array size at least. It's necessary to write '\x00'==0 to get something
7010 that's true only with -std. */
7011 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7013 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7014 inside strings and character constants. */
7016 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7018 int test (int i, double x);
7019 struct s1 {int (*f) (int a);};
7020 struct s2 {int (*f) (double a);};
7021 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7027 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7032 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7033 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7035 CC="$ac_save_CC $ac_arg"
7036 if ac_fn_c_try_compile "$LINENO"; then :
7037 ac_cv_prog_cc_c89=$ac_arg
7039 rm -f core conftest.err conftest.$ac_objext
7040 test "x$ac_cv_prog_cc_c89" != "xno" && break
7042 rm -f conftest.$ac_ext
7047 case "x$ac_cv_prog_cc_c89" in
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7050 $as_echo "none needed" >&6; } ;;
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7053 $as_echo "unsupported" >&6; } ;;
7055 CC="$CC $ac_cv_prog_cc_c89"
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7057 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7059 if test "x$ac_cv_prog_cc_c89" != xno; then :
7060 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7062 ac_cv_prog_cc_stdc=no
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7069 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7070 if ${ac_cv_prog_cc_stdc+:} false; then :
7071 $as_echo_n "(cached) " >&6
7074 case $ac_cv_prog_cc_stdc in #(
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7077 $as_echo "unsupported" >&6; } ;; #(
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7080 $as_echo "none needed" >&6; } ;; #(
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7083 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7091 # Check whether --enable-threads was given.
7092 if test "${enable_threads+set}" = set; then :
7093 enableval=$enable_threads; gl_use_threads=$enableval
7095 if test -n "$gl_use_threads_default"; then
7096 gl_use_threads="$gl_use_threads_default"
7099 osf*) gl_use_threads=no ;;
7102 1.[0-5].*) gl_use_threads=no ;;
7103 *) gl_use_threads=yes ;;
7106 *) gl_use_threads=yes ;;
7112 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7113 # For using <pthread.h>:
7116 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7117 # groks <pthread.h>. cc also understands the flag -pthread, but
7118 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7119 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7120 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7121 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7122 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7125 # Some systems optimize for single-threaded programs by default, and
7126 # need special flags to disable these optimizations. For example, the
7127 # definition of 'errno' in <errno.h>.
7129 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7130 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7137 # Code from module accept:
7138 # Code from module accept-tests:
7139 # Code from module alloca:
7140 # Code from module alloca-opt:
7141 # Code from module alloca-opt-tests:
7142 # Code from module arpa_inet:
7143 # Code from module arpa_inet-tests:
7144 # Code from module autobuild:
7149 if test -z "$AB_PACKAGE"; then
7150 AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE}
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... $AB_PACKAGE" >&5
7153 $as_echo "$as_me: autobuild project... $AB_PACKAGE" >&6;}
7155 if test -z "$AB_VERSION"; then
7156 AB_VERSION=${PACKAGE_VERSION:-$VERSION}
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... $AB_VERSION" >&5
7159 $as_echo "$as_me: autobuild revision... $AB_VERSION" >&6;}
7162 if test "$hostname"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
7164 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
7169 date=`TZ=UTC0 date +%Y%m%dT%H%M%SZ`
7170 if test "$?" != 0; then
7173 if test "$date"; then
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
7175 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
7178 # Code from module binary-io:
7179 # Code from module binary-io-tests:
7180 # Code from module bind:
7181 # Code from module bind-tests:
7182 # Code from module c-ctype:
7183 # Code from module c-ctype-tests:
7184 # Code from module clock-time:
7185 # Code from module close:
7186 # Code from module close-tests:
7187 # Code from module connect:
7188 # Code from module connect-tests:
7189 # Code from module dosname:
7190 # Code from module dup2:
7191 # Code from module dup2-tests:
7192 # Code from module errno:
7193 # Code from module errno-tests:
7194 # Code from module error:
7195 # Code from module extensions:
7197 # Code from module fcntl-h:
7198 # Code from module fcntl-h-tests:
7199 # Code from module fd-hook:
7200 # Code from module fdl-1.3:
7201 # Code from module fdopen:
7202 # Code from module fdopen-tests:
7203 # Code from module fgetc-tests:
7204 # Code from module float:
7205 # Code from module float-tests:
7206 # Code from module fpieee:
7208 # Code from module fpucw:
7209 # Code from module fputc-tests:
7210 # Code from module fread-tests:
7211 # Code from module fseek:
7212 # Code from module fseek-tests:
7213 # Code from module fseeko:
7215 # Code from module fseeko-tests:
7216 # Code from module fstat:
7217 # Code from module fstat-tests:
7218 # Code from module ftell:
7219 # Code from module ftell-tests:
7220 # Code from module ftello:
7222 # Code from module ftello-tests:
7223 # Code from module ftruncate:
7224 # Code from module ftruncate-tests:
7225 # Code from module fwrite-tests:
7226 # Code from module gendocs:
7227 # Code from module getaddrinfo:
7228 # Code from module getaddrinfo-tests:
7229 # Code from module getcwd-lgpl:
7230 # Code from module getcwd-lgpl-tests:
7231 # Code from module getdelim:
7232 # Code from module getdelim-tests:
7233 # Code from module getline:
7234 # Code from module getline-tests:
7235 # Code from module getpagesize:
7236 # Code from module getpass-gnu:
7237 # Code from module gettext-h:
7238 # Code from module gettime:
7239 # Code from module gettimeofday:
7240 # Code from module gettimeofday-tests:
7241 # Code from module gnumakefile:
7242 # Code from module gnupload:
7243 # Code from module gpl-3.0:
7244 # Code from module havelib:
7245 # Code from module hostent:
7246 # Code from module ignore-value:
7247 # Code from module ignore-value-tests:
7248 # Code from module include_next:
7249 # Code from module inet_ntop:
7250 # Code from module inet_ntop-tests:
7251 # Code from module inet_pton:
7252 # Code from module inet_pton-tests:
7253 # Code from module intprops:
7254 # Code from module intprops-tests:
7255 # Code from module inttypes:
7256 # Code from module inttypes-incomplete:
7257 # Code from module inttypes-tests:
7258 # Code from module ioctl:
7259 # Code from module ioctl-tests:
7260 # Code from module largefile:
7262 # Code from module lgpl-2.1:
7263 # Code from module listen:
7264 # Code from module listen-tests:
7265 # Code from module lock:
7266 # Code from module lock-tests:
7267 # Code from module lseek:
7268 # Code from module lseek-tests:
7269 # Code from module lstat:
7270 # Code from module lstat-tests:
7271 # Code from module maintainer-makefile:
7272 # Code from module malloc-posix:
7273 # Code from module manywarnings:
7274 # Code from module memchr:
7275 # Code from module memchr-tests:
7276 # Code from module minmax:
7277 # Code from module msvc-inval:
7278 # Code from module msvc-nothrow:
7279 # Code from module multiarch:
7280 # Code from module netdb:
7281 # Code from module netdb-tests:
7282 # Code from module netinet_in:
7283 # Code from module netinet_in-tests:
7284 # Code from module open:
7285 # Code from module open-tests:
7286 # Code from module pathmax:
7287 # Code from module pathmax-tests:
7288 # Code from module perror:
7289 # Code from module perror-tests:
7290 # Code from module pipe-posix:
7291 # Code from module pipe-posix-tests:
7292 # Code from module pmccabe2html:
7293 # Code from module progname:
7294 # Code from module read-file:
7295 # Code from module read-file-tests:
7296 # Code from module readline:
7297 # Code from module realloc-posix:
7298 # Code from module recv:
7299 # Code from module recv-tests:
7300 # Code from module same-inode:
7301 # Code from module select:
7302 # Code from module select-tests:
7303 # Code from module send:
7304 # Code from module send-tests:
7305 # Code from module servent:
7306 # Code from module setsockopt:
7307 # Code from module setsockopt-tests:
7308 # Code from module shutdown:
7309 # Code from module shutdown-tests:
7310 # Code from module signal-h:
7311 # Code from module signal-h-tests:
7312 # Code from module size_max:
7313 # Code from module snippet/_Noreturn:
7314 # Code from module snippet/arg-nonnull:
7315 # Code from module snippet/c++defs:
7316 # Code from module snippet/warn-on-use:
7317 # Code from module snprintf:
7318 # Code from module snprintf-tests:
7319 # Code from module socket:
7320 # Code from module socketlib:
7321 # Code from module sockets:
7322 # Code from module sockets-tests:
7323 # Code from module socklen:
7324 # Code from module ssize_t:
7325 # Code from module stat:
7326 # Code from module stat-tests:
7327 # Code from module stdalign:
7328 # Code from module stdalign-tests:
7329 # Code from module stdarg:
7333 # Code from module stdbool:
7334 # Code from module stdbool-tests:
7335 # Code from module stddef:
7336 # Code from module stddef-tests:
7337 # Code from module stdint:
7338 # Code from module stdint-tests:
7339 # Code from module stdio:
7340 # Code from module stdio-tests:
7341 # Code from module stdlib:
7342 # Code from module stdlib-tests:
7343 # Code from module strerror:
7344 # Code from module strerror-override:
7345 # Code from module strerror-tests:
7346 # Code from module strerror_r-posix:
7347 # Code from module strerror_r-posix-tests:
7348 # Code from module string:
7349 # Code from module string-tests:
7350 # Code from module symlink:
7351 # Code from module symlink-tests:
7352 # Code from module sys_ioctl:
7353 # Code from module sys_ioctl-tests:
7354 # Code from module sys_select:
7355 # Code from module sys_select-tests:
7356 # Code from module sys_socket:
7357 # Code from module sys_socket-tests:
7358 # Code from module sys_stat:
7359 # Code from module sys_stat-tests:
7360 # Code from module sys_time:
7361 # Code from module sys_time-tests:
7362 # Code from module sys_types:
7363 # Code from module sys_types-tests:
7364 # Code from module sys_uio:
7365 # Code from module sys_uio-tests:
7366 # Code from module test-framework-sh:
7367 # Code from module test-framework-sh-tests:
7368 # Code from module thread:
7369 # Code from module thread-tests:
7370 # Code from module threadlib:
7374 # Code from module time:
7375 # Code from module time-tests:
7376 # Code from module timespec:
7377 # Code from module unistd:
7378 # Code from module unistd-tests:
7379 # Code from module update-copyright:
7380 # Code from module update-copyright-tests:
7381 # Code from module useless-if-before-free:
7382 # Code from module valgrind-tests:
7383 # Code from module vasnprintf:
7384 # Code from module vasnprintf-tests:
7385 # Code from module vc-list-files:
7386 # Code from module vc-list-files-tests:
7387 # Code from module verify:
7388 # Code from module verify-tests:
7389 # Code from module version-etc:
7390 # Code from module version-etc-fsf:
7391 # Code from module version-etc-tests:
7392 # Code from module warnings:
7393 # Code from module wchar:
7394 # Code from module wchar-tests:
7395 # Code from module xsize:
7396 # Code from module yield:
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7399 $as_echo_n "checking for inline... " >&6; }
7400 if ${ac_cv_c_inline+:} false; then :
7401 $as_echo_n "(cached) " >&6
7404 for ac_kw in inline __inline__ __inline; do
7405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7406 /* end confdefs.h. */
7409 static $ac_kw foo_t static_foo () {return 0; }
7410 $ac_kw foo_t foo () {return 0; }
7414 if ac_fn_c_try_compile "$LINENO"; then :
7415 ac_cv_c_inline=$ac_kw
7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418 test "$ac_cv_c_inline" != no && break
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7423 $as_echo "$ac_cv_c_inline" >&6; }
7425 case $ac_cv_c_inline in
7428 case $ac_cv_c_inline in
7430 *) ac_val=$ac_cv_c_inline;;
7432 cat >>confdefs.h <<_ACEOF
7434 #define inline $ac_val
7443 ac_cpp='$CXXCPP $CPPFLAGS'
7444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7447 if test -z "$CXX"; then
7448 if test -n "$CCC"; then
7451 if test -n "$ac_tool_prefix"; then
7452 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7457 $as_echo_n "checking for $ac_word... " >&6; }
7458 if ${ac_cv_prog_CXX+:} false; then :
7459 $as_echo_n "(cached) " >&6
7461 if test -n "$CXX"; then
7462 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 test -z "$as_dir" && as_dir=.
7469 for ac_exec_ext in '' $ac_executable_extensions; do
7470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7471 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 if test -n "$CXX"; then
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7484 $as_echo "$CXX" >&6; }
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487 $as_echo "no" >&6; }
7491 test -n "$CXX" && break
7494 if test -z "$CXX"; then
7496 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7498 # Extract the first word of "$ac_prog", so it can be a program name with args.
7499 set dummy $ac_prog; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7503 $as_echo_n "(cached) " >&6
7505 if test -n "$ac_ct_CXX"; then
7506 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7515 ac_cv_prog_ac_ct_CXX="$ac_prog"
7516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7526 if test -n "$ac_ct_CXX"; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7528 $as_echo "$ac_ct_CXX" >&6; }
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7535 test -n "$ac_ct_CXX" && break
7538 if test "x$ac_ct_CXX" = x; then
7541 case $cross_compiling:$ac_tool_warned in
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7545 ac_tool_warned=yes ;;
7553 # Provide some information about the compiler.
7554 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7557 for ac_option in --version -v -V -qversion; do
7558 { { ac_try="$ac_compiler $ac_option >&5"
7560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561 *) ac_try_echo=$ac_try;;
7563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7564 $as_echo "$ac_try_echo"; } >&5
7565 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7567 if test -s conftest.err; then
7569 ... rest of stderr output deleted ...
7570 10q' conftest.err >conftest.er1
7571 cat conftest.er1 >&5
7573 rm -f conftest.er1 conftest.err
7574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7575 test $ac_status = 0; }
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7579 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7580 if ${ac_cv_cxx_compiler_gnu+:} false; then :
7581 $as_echo_n "(cached) " >&6
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7597 if ac_fn_cxx_try_compile "$LINENO"; then :
7602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7603 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7607 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7608 if test $ac_compiler_gnu = yes; then
7613 ac_test_CXXFLAGS=${CXXFLAGS+set}
7614 ac_save_CXXFLAGS=$CXXFLAGS
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7616 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7617 if ${ac_cv_prog_cxx_g+:} false; then :
7618 $as_echo_n "(cached) " >&6
7620 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7621 ac_cxx_werror_flag=yes
7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625 /* end confdefs.h. */
7635 if ac_fn_cxx_try_compile "$LINENO"; then :
7636 ac_cv_prog_cxx_g=yes
7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640 /* end confdefs.h. */
7650 if ac_fn_cxx_try_compile "$LINENO"; then :
7653 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7666 if ac_fn_cxx_try_compile "$LINENO"; then :
7667 ac_cv_prog_cxx_g=yes
7669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7674 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7677 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7678 if test "$ac_test_CXXFLAGS" = set; then
7679 CXXFLAGS=$ac_save_CXXFLAGS
7680 elif test $ac_cv_prog_cxx_g = yes; then
7681 if test "$GXX" = yes; then
7687 if test "$GXX" = yes; then
7694 ac_cpp='$CPP $CPPFLAGS'
7695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7699 depcc="$CXX" am_compiler_list=
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7702 $as_echo_n "checking dependency style of $depcc... " >&6; }
7703 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7704 $as_echo_n "(cached) " >&6
7706 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7707 # We make a subdir and do the tests there. Otherwise we can end up
7708 # making bogus files that we don't know about and never remove. For
7709 # instance it was reported that on HP-UX the gcc test will end up
7710 # making a dummy file named `D' -- because `-MD' means `put the output
7714 # Copy depcomp to subdir because otherwise we won't find it if we're
7715 # using a relative directory.
7716 cp "$am_depcomp" conftest.dir
7718 # We will build objects and dependencies in a subdirectory because
7719 # it helps to detect inapplicable dependency modes. For instance
7720 # both Tru64's cc and ICC support -MD to output dependencies as a
7721 # side effect of compilation, but ICC will put the dependencies in
7722 # the current directory while Tru64 will put them in the object
7726 am_cv_CXX_dependencies_compiler_type=none
7727 if test "$am_compiler_list" = ""; then
7728 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7731 case " $depcc " in #(
7732 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7735 for depmode in $am_compiler_list; do
7736 # Setup a source with many dependencies, because some compilers
7737 # like to wrap large dependency lists on column 80 (with \), and
7738 # we should not choose a depcomp mode which is confused by this.
7740 # We need to recreate these files for each test, as the compiler may
7741 # overwrite some of them when testing with obscure command lines.
7742 # This happens at least with the AIX C compiler.
7744 for i in 1 2 3 4 5 6; do
7745 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7746 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7747 # Solaris 8's {/usr,}/bin/sh.
7748 touch sub/conftst$i.h
7750 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7752 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7753 # mode. It turns out that the SunPro C++ compiler does not properly
7754 # handle `-M -o', and we need to detect this. Also, some Intel
7755 # versions had trouble with output in subdirs
7756 am__obj=sub/conftest.${OBJEXT-o}
7757 am__minus_obj="-o $am__obj"
7760 # This depmode causes a compiler race in universal mode.
7761 test "$am__universal" = false || continue
7764 # after this tag, mechanisms are not by side-effect, so they'll
7765 # only be used when explicitly requested
7766 if test "x$enable_dependency_tracking" = xyes; then
7772 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7773 # This compiler won't grok `-c -o', but also, the minuso test has
7774 # not run yet. These depmodes are late enough in the game, and
7775 # so weak that their functioning should not be impacted.
7776 am__obj=conftest.${OBJEXT-o}
7781 if depmode=$depmode \
7782 source=sub/conftest.c object=$am__obj \
7783 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7784 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7785 >/dev/null 2>conftest.err &&
7786 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7787 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7788 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7789 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7790 # icc doesn't choke on unknown options, it will just issue warnings
7791 # or remarks (even with -Werror). So we grep stderr for any message
7792 # that says an option was ignored or not supported.
7793 # When given -MP, icc 7.0 and 7.1 complain thusly:
7794 # icc: Command line warning: ignoring option '-M'; no argument required
7795 # The diagnosis changed in icc 8.0:
7796 # icc: Command line remark: option '-MP' not supported
7797 if (grep 'ignoring option' conftest.err ||
7798 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7799 am_cv_CXX_dependencies_compiler_type=$depmode
7808 am_cv_CXX_dependencies_compiler_type=none
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7813 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7814 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7817 test "x$enable_dependency_tracking" != xno \
7818 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7819 am__fastdepCXX_TRUE=
7820 am__fastdepCXX_FALSE='#'
7822 am__fastdepCXX_TRUE='#'
7823 am__fastdepCXX_FALSE=
7827 # Check whether --enable-cxx was given.
7828 if test "${enable_cxx+set}" = set; then :
7829 enableval=$enable_cxx; use_cxx=$enableval
7834 if test "$use_cxx" != "no"; then
7836 ac_cpp='$CXXCPP $CPPFLAGS'
7837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h. */
7853 if ac_fn_cxx_try_compile "$LINENO"; then :
7858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7860 ac_cpp='$CPP $CPPFLAGS'
7861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7866 if test "$use_cxx" != "no"; then
7868 ENABLE_CXX_FALSE='#'
7874 if test -f tests/suite/mini-eagain2.c; then
7875 WANT_TEST_SUITE_TRUE=
7876 WANT_TEST_SUITE_FALSE='#'
7878 WANT_TEST_SUITE_TRUE='#'
7879 WANT_TEST_SUITE_FALSE=
7884 if test "X$prefix" = "XNONE"; then
7885 acl_final_prefix="$ac_default_prefix"
7887 acl_final_prefix="$prefix"
7889 if test "X$exec_prefix" = "XNONE"; then
7890 acl_final_exec_prefix='${prefix}'
7892 acl_final_exec_prefix="$exec_prefix"
7894 acl_save_prefix="$prefix"
7895 prefix="$acl_final_prefix"
7896 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7897 prefix="$acl_save_prefix"
7900 # Check whether --with-gnu-ld was given.
7901 if test "${with_gnu_ld+set}" = set; then :
7902 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7907 # Prepare PATH_SEPARATOR.
7908 # The user is always right.
7909 if test "${PATH_SEPARATOR+set}" != set; then
7910 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7911 # contains only /bin. Note that ksh looks also at the FPATH variable,
7912 # so we have to set that as well for the test.
7914 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7915 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7916 || PATH_SEPARATOR=';'
7920 if test "$GCC" = yes; then
7921 # Check if gcc -print-prog-name=ld gives a path.
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7923 $as_echo_n "checking for ld used by GCC... " >&6; }
7926 # gcc leaves a trailing carriage return which upsets mingw
7927 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7929 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7932 # Accept absolute paths.
7933 [\\/]* | [A-Za-z]:[\\/]*)
7934 re_direlt='/[^/][^/]*/\.\./'
7935 # Canonicalize the path of ld
7936 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7937 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7938 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7940 test -z "$LD" && LD="$ac_prog"
7943 # If it fails, then pretend we aren't using GCC.
7947 # If it is relative, then search for the first ld in PATH.
7951 elif test "$with_gnu_ld" = yes; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7953 $as_echo_n "checking for GNU ld... " >&6; }
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7956 $as_echo_n "checking for non-GNU ld... " >&6; }
7958 if ${acl_cv_path_LD+:} false; then :
7959 $as_echo_n "(cached) " >&6
7961 if test -z "$LD"; then
7962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7963 for ac_dir in $PATH; do
7964 test -z "$ac_dir" && ac_dir=.
7965 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7966 acl_cv_path_LD="$ac_dir/$ac_prog"
7967 # Check to see if the program is GNU ld. I'd rather use --version,
7968 # but apparently some GNU ld's only accept -v.
7969 # Break only if it was the GNU/non-GNU ld that we prefer.
7970 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7971 *GNU* | *'with BFD'*)
7972 test "$with_gnu_ld" != no && break ;;
7974 test "$with_gnu_ld" != yes && break ;;
7980 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7984 LD="$acl_cv_path_LD"
7985 if test -n "$LD"; then
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7987 $as_echo "$LD" >&6; }
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990 $as_echo "no" >&6; }
7992 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7994 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7995 if ${acl_cv_prog_gnu_ld+:} false; then :
7996 $as_echo_n "(cached) " >&6
7998 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7999 case `$LD -v 2>&1 </dev/null` in
8000 *GNU* | *'with BFD'*)
8001 acl_cv_prog_gnu_ld=yes ;;
8003 acl_cv_prog_gnu_ld=no ;;
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8007 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8008 with_gnu_ld=$acl_cv_prog_gnu_ld
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8014 $as_echo_n "checking for shared library run path origin... " >&6; }
8015 if ${acl_cv_rpath+:} false; then :
8016 $as_echo_n "(cached) " >&6
8019 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8020 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8027 $as_echo "$acl_cv_rpath" >&6; }
8029 acl_libext="$acl_cv_libext"
8030 acl_shlibext="$acl_cv_shlibext"
8031 acl_libname_spec="$acl_cv_libname_spec"
8032 acl_library_names_spec="$acl_cv_library_names_spec"
8033 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8034 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8035 acl_hardcode_direct="$acl_cv_hardcode_direct"
8036 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8037 # Check whether --enable-rpath was given.
8038 if test "${enable_rpath+set}" = set; then :
8039 enableval=$enable_rpath; :
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
8052 $as_echo_n "checking for 64-bit host... " >&6; }
8053 if ${gl_cv_solaris_64bit+:} false; then :
8054 $as_echo_n "(cached) " >&6
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8065 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
8066 gl_cv_solaris_64bit=yes
8068 gl_cv_solaris_64bit=no
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
8075 $as_echo "$gl_cv_solaris_64bit" >&6; }
8076 if test $gl_cv_solaris_64bit = yes; then
8077 acl_libdirstem=lib/64
8079 sparc*) acl_libdirstem2=lib/sparcv9 ;;
8080 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
8085 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
8086 if test -n "$searchpath"; then
8087 acl_save_IFS="${IFS= }"; IFS=":"
8088 for searchdir in $searchpath; do
8089 if test -d "$searchdir"; then
8090 case "$searchdir" in
8091 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
8093 # Better ignore directories of this form. They are misleading.
8095 *) searchdir=`cd "$searchdir" && pwd`
8096 case "$searchdir" in
8097 */lib64 ) acl_libdirstem=lib64 ;;
8106 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
8109 # Library code modified: REVISION++
8110 # Interfaces changed/added/removed: CURRENT++ REVISION=0
8111 # Interfaces added: AGE++
8112 # Interfaces removed: AGE=0
8134 # Used when creating the Windows libgnutls-XX.def files.
8135 DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}`
8141 # Check whether --with-libgcrypt was given.
8142 if test "${with_libgcrypt+set}" = set; then :
8143 withval=$with_libgcrypt; libgcrypt=$withval
8148 if test "$libgcrypt" = "yes"; then
8151 $as_echo "#define HAVE_GCRYPT 1" >>confdefs.h
8168 acl_save_prefix="$prefix"
8169 prefix="$acl_final_prefix"
8170 acl_save_exec_prefix="$exec_prefix"
8171 exec_prefix="$acl_final_exec_prefix"
8173 eval additional_includedir=\"$includedir\"
8174 eval additional_libdir=\"$libdir\"
8176 exec_prefix="$acl_save_exec_prefix"
8177 prefix="$acl_save_prefix"
8180 # Check whether --with-libgcrypt-prefix was given.
8181 if test "${with_libgcrypt_prefix+set}" = set; then :
8182 withval=$with_libgcrypt_prefix;
8183 if test "X$withval" = "Xno"; then
8186 if test "X$withval" = "X"; then
8188 acl_save_prefix="$prefix"
8189 prefix="$acl_final_prefix"
8190 acl_save_exec_prefix="$exec_prefix"
8191 exec_prefix="$acl_final_exec_prefix"
8193 eval additional_includedir=\"$includedir\"
8194 eval additional_libdir=\"$libdir\"
8196 exec_prefix="$acl_save_exec_prefix"
8197 prefix="$acl_save_prefix"
8200 additional_includedir="$withval/include"
8201 additional_libdir="$withval/$acl_libdirstem"
8202 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8203 && ! test -d "$withval/$acl_libdirstem"; then
8204 additional_libdir="$withval/$acl_libdirstem2"
8218 names_already_handled=
8219 names_next_round='gcrypt gpg-error'
8220 while test -n "$names_next_round"; do
8221 names_this_round="$names_next_round"
8223 for name in $names_this_round; do
8225 for n in $names_already_handled; do
8226 if test "$n" = "$name"; then
8231 if test -z "$already_handled"; then
8232 names_already_handled="$names_already_handled $name"
8233 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8234 eval value=\"\$HAVE_LIB$uppername\"
8235 if test -n "$value"; then
8236 if test "$value" = yes; then
8237 eval value=\"\$LIB$uppername\"
8238 test -z "$value" || LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$value"
8239 eval value=\"\$LTLIB$uppername\"
8240 test -z "$value" || LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$value"
8249 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8250 if test -n "$acl_shlibext"; then
8251 shrext=".$acl_shlibext" # typically: shrext=.so
8255 if test $use_additional = yes; then
8256 dir="$additional_libdir"
8257 if test -n "$acl_shlibext"; then
8258 if test -f "$dir/$libname$shrext"; then
8260 found_so="$dir/$libname$shrext"
8262 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8263 ver=`(cd "$dir" && \
8264 for f in "$libname$shrext".*; do echo "$f"; done \
8265 | sed -e "s,^$libname$shrext\\\\.,," \
8266 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8267 | sed 1q ) 2>/dev/null`
8268 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8270 found_so="$dir/$libname$shrext.$ver"
8273 eval library_names=\"$acl_library_names_spec\"
8274 for f in $library_names; do
8275 if test -f "$dir/$f"; then
8284 if test "X$found_dir" = "X"; then
8285 if test -f "$dir/$libname.$acl_libext"; then
8287 found_a="$dir/$libname.$acl_libext"
8290 if test "X$found_dir" != "X"; then
8291 if test -f "$dir/$libname.la"; then
8292 found_la="$dir/$libname.la"
8296 if test "X$found_dir" = "X"; then
8297 for x in $LDFLAGS $LTLIBGCRYPT; do
8299 acl_save_prefix="$prefix"
8300 prefix="$acl_final_prefix"
8301 acl_save_exec_prefix="$exec_prefix"
8302 exec_prefix="$acl_final_exec_prefix"
8304 exec_prefix="$acl_save_exec_prefix"
8305 prefix="$acl_save_prefix"
8309 dir=`echo "X$x" | sed -e 's/^X-L//'`
8310 if test -n "$acl_shlibext"; then
8311 if test -f "$dir/$libname$shrext"; then
8313 found_so="$dir/$libname$shrext"
8315 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8316 ver=`(cd "$dir" && \
8317 for f in "$libname$shrext".*; do echo "$f"; done \
8318 | sed -e "s,^$libname$shrext\\\\.,," \
8319 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8320 | sed 1q ) 2>/dev/null`
8321 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8323 found_so="$dir/$libname$shrext.$ver"
8326 eval library_names=\"$acl_library_names_spec\"
8327 for f in $library_names; do
8328 if test -f "$dir/$f"; then
8337 if test "X$found_dir" = "X"; then
8338 if test -f "$dir/$libname.$acl_libext"; then
8340 found_a="$dir/$libname.$acl_libext"
8343 if test "X$found_dir" != "X"; then
8344 if test -f "$dir/$libname.la"; then
8345 found_la="$dir/$libname.la"
8350 if test "X$found_dir" != "X"; then
8355 if test "X$found_dir" != "X"; then
8356 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$found_dir -l$name"
8357 if test "X$found_so" != "X"; then
8358 if test "$enable_rpath" = no \
8359 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8360 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8361 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
8364 for x in $ltrpathdirs; do
8365 if test "X$x" = "X$found_dir"; then
8370 if test -z "$haveit"; then
8371 ltrpathdirs="$ltrpathdirs $found_dir"
8373 if test "$acl_hardcode_direct" = yes; then
8374 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
8376 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8377 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
8379 for x in $rpathdirs; do
8380 if test "X$x" = "X$found_dir"; then
8385 if test -z "$haveit"; then
8386 rpathdirs="$rpathdirs $found_dir"
8390 for x in $LDFLAGS $LIBGCRYPT; do
8392 acl_save_prefix="$prefix"
8393 prefix="$acl_final_prefix"
8394 acl_save_exec_prefix="$exec_prefix"
8395 exec_prefix="$acl_final_exec_prefix"
8397 exec_prefix="$acl_save_exec_prefix"
8398 prefix="$acl_save_prefix"
8400 if test "X$x" = "X-L$found_dir"; then
8405 if test -z "$haveit"; then
8406 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir"
8408 if test "$acl_hardcode_minus_L" != no; then
8409 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
8411 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name"
8417 if test "X$found_a" != "X"; then
8418 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_a"
8420 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir -l$name"
8423 additional_includedir=
8424 case "$found_dir" in
8425 */$acl_libdirstem | */$acl_libdirstem/)
8426 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8427 if test "$name" = 'gcrypt'; then
8428 LIBGCRYPT_PREFIX="$basedir"
8430 additional_includedir="$basedir/include"
8432 */$acl_libdirstem2 | */$acl_libdirstem2/)
8433 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8434 if test "$name" = 'gcrypt'; then
8435 LIBGCRYPT_PREFIX="$basedir"
8437 additional_includedir="$basedir/include"
8440 if test "X$additional_includedir" != "X"; then
8441 if test "X$additional_includedir" != "X/usr/include"; then
8443 if test "X$additional_includedir" = "X/usr/local/include"; then
8444 if test -n "$GCC"; then
8446 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8450 if test -z "$haveit"; then
8451 for x in $CPPFLAGS $INCGCRYPT; do
8453 acl_save_prefix="$prefix"
8454 prefix="$acl_final_prefix"
8455 acl_save_exec_prefix="$exec_prefix"
8456 exec_prefix="$acl_final_exec_prefix"
8458 exec_prefix="$acl_save_exec_prefix"
8459 prefix="$acl_save_prefix"
8461 if test "X$x" = "X-I$additional_includedir"; then
8466 if test -z "$haveit"; then
8467 if test -d "$additional_includedir"; then
8468 INCGCRYPT="${INCGCRYPT}${INCGCRYPT:+ }-I$additional_includedir"
8474 if test -n "$found_la"; then
8475 save_libdir="$libdir"
8477 */* | *\\*) . "$found_la" ;;
8478 *) . "./$found_la" ;;
8480 libdir="$save_libdir"
8481 for dep in $dependency_libs; do
8484 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8485 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8486 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8488 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8489 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8490 if test -n "$GCC"; then
8492 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8496 if test -z "$haveit"; then
8498 for x in $LDFLAGS $LIBGCRYPT; do
8500 acl_save_prefix="$prefix"
8501 prefix="$acl_final_prefix"
8502 acl_save_exec_prefix="$exec_prefix"
8503 exec_prefix="$acl_final_exec_prefix"
8505 exec_prefix="$acl_save_exec_prefix"
8506 prefix="$acl_save_prefix"
8508 if test "X$x" = "X-L$additional_libdir"; then
8513 if test -z "$haveit"; then
8514 if test -d "$additional_libdir"; then
8515 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$additional_libdir"
8519 for x in $LDFLAGS $LTLIBGCRYPT; do
8521 acl_save_prefix="$prefix"
8522 prefix="$acl_final_prefix"
8523 acl_save_exec_prefix="$exec_prefix"
8524 exec_prefix="$acl_final_exec_prefix"
8526 exec_prefix="$acl_save_exec_prefix"
8527 prefix="$acl_save_prefix"
8529 if test "X$x" = "X-L$additional_libdir"; then
8534 if test -z "$haveit"; then
8535 if test -d "$additional_libdir"; then
8536 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$additional_libdir"
8543 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8544 if test "$enable_rpath" != no; then
8546 for x in $rpathdirs; do
8547 if test "X$x" = "X$dir"; then
8552 if test -z "$haveit"; then
8553 rpathdirs="$rpathdirs $dir"
8556 for x in $ltrpathdirs; do
8557 if test "X$x" = "X$dir"; then
8562 if test -z "$haveit"; then
8563 ltrpathdirs="$ltrpathdirs $dir"
8568 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8571 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8574 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$dep"
8575 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$dep"
8581 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name"
8582 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-l$name"
8588 if test "X$rpathdirs" != "X"; then
8589 if test -n "$acl_hardcode_libdir_separator"; then
8591 for found_dir in $rpathdirs; do
8592 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8594 acl_save_libdir="$libdir"
8596 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8597 libdir="$acl_save_libdir"
8598 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag"
8600 for found_dir in $rpathdirs; do
8601 acl_save_libdir="$libdir"
8603 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8604 libdir="$acl_save_libdir"
8605 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag"
8609 if test "X$ltrpathdirs" != "X"; then
8610 for found_dir in $ltrpathdirs; do
8611 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-R$found_dir"
8621 ac_save_CPPFLAGS="$CPPFLAGS"
8623 for element in $INCGCRYPT; do
8625 for x in $CPPFLAGS; do
8627 acl_save_prefix="$prefix"
8628 prefix="$acl_final_prefix"
8629 acl_save_exec_prefix="$exec_prefix"
8630 exec_prefix="$acl_final_exec_prefix"
8632 exec_prefix="$acl_save_exec_prefix"
8633 prefix="$acl_save_prefix"
8635 if test "X$x" = "X$element"; then
8640 if test -z "$haveit"; then
8641 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5
8647 $as_echo_n "checking for libgcrypt... " >&6; }
8648 if ${ac_cv_libgcrypt+:} false; then :
8649 $as_echo_n "(cached) " >&6
8652 ac_save_LIBS="$LIBS"
8653 case " $LIBGCRYPT" in
8654 *" -l"*) LIBS="$LIBS $LIBGCRYPT" ;;
8655 *) LIBS="$LIBGCRYPT $LIBS" ;;
8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8663 enum gcry_cipher_algos i = GCRY_CIPHER_CAMELLIA128
8668 if ac_fn_c_try_link "$LINENO"; then :
8671 ac_cv_libgcrypt='no'
8673 rm -f core conftest.err conftest.$ac_objext \
8674 conftest$ac_exeext conftest.$ac_ext
8675 LIBS="$ac_save_LIBS"
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgcrypt" >&5
8679 $as_echo "$ac_cv_libgcrypt" >&6; }
8680 if test "$ac_cv_libgcrypt" = yes; then
8683 $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgcrypt" >&5
8686 $as_echo_n "checking how to link with libgcrypt... " >&6; }
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT" >&5
8688 $as_echo "$LIBGCRYPT" >&6; }
8691 CPPFLAGS="$ac_save_CPPFLAGS"
8703 if test "$ac_cv_libgcrypt" != yes; then
8706 *** Libgcrypt v1.4.0 or later was not found. You may want to get it from
8707 *** ftp://ftp.gnupg.org/gcrypt/libgcrypt/
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use nettle" >&5
8714 $as_echo_n "checking whether to use nettle... " >&6; }
8715 if test "$cryptolib" = "nettle";then
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8717 $as_echo "yes" >&6; }
8733 acl_save_prefix="$prefix"
8734 prefix="$acl_final_prefix"
8735 acl_save_exec_prefix="$exec_prefix"
8736 exec_prefix="$acl_final_exec_prefix"
8738 eval additional_includedir=\"$includedir\"
8739 eval additional_libdir=\"$libdir\"
8741 exec_prefix="$acl_save_exec_prefix"
8742 prefix="$acl_save_prefix"
8745 # Check whether --with-libnettle-prefix was given.
8746 if test "${with_libnettle_prefix+set}" = set; then :
8747 withval=$with_libnettle_prefix;
8748 if test "X$withval" = "Xno"; then
8751 if test "X$withval" = "X"; then
8753 acl_save_prefix="$prefix"
8754 prefix="$acl_final_prefix"
8755 acl_save_exec_prefix="$exec_prefix"
8756 exec_prefix="$acl_final_exec_prefix"
8758 eval additional_includedir=\"$includedir\"
8759 eval additional_libdir=\"$libdir\"
8761 exec_prefix="$acl_save_exec_prefix"
8762 prefix="$acl_save_prefix"
8765 additional_includedir="$withval/include"
8766 additional_libdir="$withval/$acl_libdirstem"
8767 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8768 && ! test -d "$withval/$acl_libdirstem"; then
8769 additional_libdir="$withval/$acl_libdirstem2"
8783 names_already_handled=
8784 names_next_round='nettle '
8785 while test -n "$names_next_round"; do
8786 names_this_round="$names_next_round"
8788 for name in $names_this_round; do
8790 for n in $names_already_handled; do
8791 if test "$n" = "$name"; then
8796 if test -z "$already_handled"; then
8797 names_already_handled="$names_already_handled $name"
8798 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8799 eval value=\"\$HAVE_LIB$uppername\"
8800 if test -n "$value"; then
8801 if test "$value" = yes; then
8802 eval value=\"\$LIB$uppername\"
8803 test -z "$value" || LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$value"
8804 eval value=\"\$LTLIB$uppername\"
8805 test -z "$value" || LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }$value"
8814 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8815 if test -n "$acl_shlibext"; then
8816 shrext=".$acl_shlibext" # typically: shrext=.so
8820 if test $use_additional = yes; then
8821 dir="$additional_libdir"
8822 if test -n "$acl_shlibext"; then
8823 if test -f "$dir/$libname$shrext"; then
8825 found_so="$dir/$libname$shrext"
8827 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8828 ver=`(cd "$dir" && \
8829 for f in "$libname$shrext".*; do echo "$f"; done \
8830 | sed -e "s,^$libname$shrext\\\\.,," \
8831 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8832 | sed 1q ) 2>/dev/null`
8833 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8835 found_so="$dir/$libname$shrext.$ver"
8838 eval library_names=\"$acl_library_names_spec\"
8839 for f in $library_names; do
8840 if test -f "$dir/$f"; then
8849 if test "X$found_dir" = "X"; then
8850 if test -f "$dir/$libname.$acl_libext"; then
8852 found_a="$dir/$libname.$acl_libext"
8855 if test "X$found_dir" != "X"; then
8856 if test -f "$dir/$libname.la"; then
8857 found_la="$dir/$libname.la"
8861 if test "X$found_dir" = "X"; then
8862 for x in $LDFLAGS $LTLIBNETTLE; do
8864 acl_save_prefix="$prefix"
8865 prefix="$acl_final_prefix"
8866 acl_save_exec_prefix="$exec_prefix"
8867 exec_prefix="$acl_final_exec_prefix"
8869 exec_prefix="$acl_save_exec_prefix"
8870 prefix="$acl_save_prefix"
8874 dir=`echo "X$x" | sed -e 's/^X-L//'`
8875 if test -n "$acl_shlibext"; then
8876 if test -f "$dir/$libname$shrext"; then
8878 found_so="$dir/$libname$shrext"
8880 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8881 ver=`(cd "$dir" && \
8882 for f in "$libname$shrext".*; do echo "$f"; done \
8883 | sed -e "s,^$libname$shrext\\\\.,," \
8884 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8885 | sed 1q ) 2>/dev/null`
8886 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8888 found_so="$dir/$libname$shrext.$ver"
8891 eval library_names=\"$acl_library_names_spec\"
8892 for f in $library_names; do
8893 if test -f "$dir/$f"; then
8902 if test "X$found_dir" = "X"; then
8903 if test -f "$dir/$libname.$acl_libext"; then
8905 found_a="$dir/$libname.$acl_libext"
8908 if test "X$found_dir" != "X"; then
8909 if test -f "$dir/$libname.la"; then
8910 found_la="$dir/$libname.la"
8915 if test "X$found_dir" != "X"; then
8920 if test "X$found_dir" != "X"; then
8921 LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-L$found_dir -l$name"
8922 if test "X$found_so" != "X"; then
8923 if test "$enable_rpath" = no \
8924 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8925 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8926 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
8929 for x in $ltrpathdirs; do
8930 if test "X$x" = "X$found_dir"; then
8935 if test -z "$haveit"; then
8936 ltrpathdirs="$ltrpathdirs $found_dir"
8938 if test "$acl_hardcode_direct" = yes; then
8939 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
8941 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8942 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
8944 for x in $rpathdirs; do
8945 if test "X$x" = "X$found_dir"; then
8950 if test -z "$haveit"; then
8951 rpathdirs="$rpathdirs $found_dir"
8955 for x in $LDFLAGS $LIBNETTLE; do
8957 acl_save_prefix="$prefix"
8958 prefix="$acl_final_prefix"
8959 acl_save_exec_prefix="$exec_prefix"
8960 exec_prefix="$acl_final_exec_prefix"
8962 exec_prefix="$acl_save_exec_prefix"
8963 prefix="$acl_save_prefix"
8965 if test "X$x" = "X-L$found_dir"; then
8970 if test -z "$haveit"; then
8971 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$found_dir"
8973 if test "$acl_hardcode_minus_L" != no; then
8974 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
8976 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-l$name"
8982 if test "X$found_a" != "X"; then
8983 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_a"
8985 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$found_dir -l$name"
8988 additional_includedir=
8989 case "$found_dir" in
8990 */$acl_libdirstem | */$acl_libdirstem/)
8991 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8992 if test "$name" = 'nettle'; then
8993 LIBNETTLE_PREFIX="$basedir"
8995 additional_includedir="$basedir/include"
8997 */$acl_libdirstem2 | */$acl_libdirstem2/)
8998 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8999 if test "$name" = 'nettle'; then
9000 LIBNETTLE_PREFIX="$basedir"
9002 additional_includedir="$basedir/include"
9005 if test "X$additional_includedir" != "X"; then
9006 if test "X$additional_includedir" != "X/usr/include"; then
9008 if test "X$additional_includedir" = "X/usr/local/include"; then
9009 if test -n "$GCC"; then
9011 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9015 if test -z "$haveit"; then
9016 for x in $CPPFLAGS $INCNETTLE; do
9018 acl_save_prefix="$prefix"
9019 prefix="$acl_final_prefix"
9020 acl_save_exec_prefix="$exec_prefix"
9021 exec_prefix="$acl_final_exec_prefix"
9023 exec_prefix="$acl_save_exec_prefix"
9024 prefix="$acl_save_prefix"
9026 if test "X$x" = "X-I$additional_includedir"; then
9031 if test -z "$haveit"; then
9032 if test -d "$additional_includedir"; then
9033 INCNETTLE="${INCNETTLE}${INCNETTLE:+ }-I$additional_includedir"
9039 if test -n "$found_la"; then
9040 save_libdir="$libdir"
9042 */* | *\\*) . "$found_la" ;;
9043 *) . "./$found_la" ;;
9045 libdir="$save_libdir"
9046 for dep in $dependency_libs; do
9049 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9050 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9051 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9053 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9054 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9055 if test -n "$GCC"; then
9057 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9061 if test -z "$haveit"; then
9063 for x in $LDFLAGS $LIBNETTLE; do
9065 acl_save_prefix="$prefix"
9066 prefix="$acl_final_prefix"
9067 acl_save_exec_prefix="$exec_prefix"
9068 exec_prefix="$acl_final_exec_prefix"
9070 exec_prefix="$acl_save_exec_prefix"
9071 prefix="$acl_save_prefix"
9073 if test "X$x" = "X-L$additional_libdir"; then
9078 if test -z "$haveit"; then
9079 if test -d "$additional_libdir"; then
9080 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$additional_libdir"
9084 for x in $LDFLAGS $LTLIBNETTLE; do
9086 acl_save_prefix="$prefix"
9087 prefix="$acl_final_prefix"
9088 acl_save_exec_prefix="$exec_prefix"
9089 exec_prefix="$acl_final_exec_prefix"
9091 exec_prefix="$acl_save_exec_prefix"
9092 prefix="$acl_save_prefix"
9094 if test "X$x" = "X-L$additional_libdir"; then
9099 if test -z "$haveit"; then
9100 if test -d "$additional_libdir"; then
9101 LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-L$additional_libdir"
9108 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9109 if test "$enable_rpath" != no; then
9111 for x in $rpathdirs; do
9112 if test "X$x" = "X$dir"; then
9117 if test -z "$haveit"; then
9118 rpathdirs="$rpathdirs $dir"
9121 for x in $ltrpathdirs; do
9122 if test "X$x" = "X$dir"; then
9127 if test -z "$haveit"; then
9128 ltrpathdirs="$ltrpathdirs $dir"
9133 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9136 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9139 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$dep"
9140 LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }$dep"
9146 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-l$name"
9147 LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-l$name"
9153 if test "X$rpathdirs" != "X"; then
9154 if test -n "$acl_hardcode_libdir_separator"; then
9156 for found_dir in $rpathdirs; do
9157 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9159 acl_save_libdir="$libdir"
9161 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9162 libdir="$acl_save_libdir"
9163 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$flag"
9165 for found_dir in $rpathdirs; do
9166 acl_save_libdir="$libdir"
9168 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9169 libdir="$acl_save_libdir"
9170 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$flag"
9174 if test "X$ltrpathdirs" != "X"; then
9175 for found_dir in $ltrpathdirs; do
9176 LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-R$found_dir"
9186 ac_save_CPPFLAGS="$CPPFLAGS"
9188 for element in $INCNETTLE; do
9190 for x in $CPPFLAGS; do
9192 acl_save_prefix="$prefix"
9193 prefix="$acl_final_prefix"
9194 acl_save_exec_prefix="$exec_prefix"
9195 exec_prefix="$acl_final_exec_prefix"
9197 exec_prefix="$acl_save_exec_prefix"
9198 prefix="$acl_save_prefix"
9200 if test "X$x" = "X$element"; then
9205 if test -z "$haveit"; then
9206 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnettle" >&5
9212 $as_echo_n "checking for libnettle... " >&6; }
9213 if ${ac_cv_libnettle+:} false; then :
9214 $as_echo_n "(cached) " >&6
9217 ac_save_LIBS="$LIBS"
9218 case " $LIBNETTLE" in
9219 *" -l"*) LIBS="$LIBS $LIBNETTLE" ;;
9220 *) LIBS="$LIBNETTLE $LIBS" ;;
9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9224 #include <nettle/aes.h>
9228 nettle_aes_invert_key (0, 0)
9233 if ac_fn_c_try_link "$LINENO"; then :
9236 ac_cv_libnettle='no'
9238 rm -f core conftest.err conftest.$ac_objext \
9239 conftest$ac_exeext conftest.$ac_ext
9240 LIBS="$ac_save_LIBS"
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libnettle" >&5
9244 $as_echo "$ac_cv_libnettle" >&6; }
9245 if test "$ac_cv_libnettle" = yes; then
9248 $as_echo "#define HAVE_LIBNETTLE 1" >>confdefs.h
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libnettle" >&5
9251 $as_echo_n "checking how to link with libnettle... " >&6; }
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBNETTLE" >&5
9253 $as_echo "$LIBNETTLE" >&6; }
9256 CPPFLAGS="$ac_save_CPPFLAGS"
9268 if test "$ac_cv_libnettle" != yes; then
9271 *** Libnettle 2.1 was not found.
9274 NETTLE_LIBS="-lgmp -lhogweed"
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9277 $as_echo "no" >&6; }
9280 if test "$cryptolib" = "nettle"; then
9282 ENABLE_NETTLE_FALSE='#'
9284 ENABLE_NETTLE_TRUE='#'
9285 ENABLE_NETTLE_FALSE=
9290 # Check whether --with-included-libtasn1 was given.
9291 if test "${with_included_libtasn1+set}" = set; then :
9292 withval=$with_included_libtasn1; included_libtasn1=$withval
9294 included_libtasn1=no
9297 if test "$included_libtasn1" = "no"; then
9313 acl_save_prefix="$prefix"
9314 prefix="$acl_final_prefix"
9315 acl_save_exec_prefix="$exec_prefix"
9316 exec_prefix="$acl_final_exec_prefix"
9318 eval additional_includedir=\"$includedir\"
9319 eval additional_libdir=\"$libdir\"
9321 exec_prefix="$acl_save_exec_prefix"
9322 prefix="$acl_save_prefix"
9325 # Check whether --with-libtasn1-prefix was given.
9326 if test "${with_libtasn1_prefix+set}" = set; then :
9327 withval=$with_libtasn1_prefix;
9328 if test "X$withval" = "Xno"; then
9331 if test "X$withval" = "X"; then
9333 acl_save_prefix="$prefix"
9334 prefix="$acl_final_prefix"
9335 acl_save_exec_prefix="$exec_prefix"
9336 exec_prefix="$acl_final_exec_prefix"
9338 eval additional_includedir=\"$includedir\"
9339 eval additional_libdir=\"$libdir\"
9341 exec_prefix="$acl_save_exec_prefix"
9342 prefix="$acl_save_prefix"
9345 additional_includedir="$withval/include"
9346 additional_libdir="$withval/$acl_libdirstem"
9347 if test "$acl_libdirstem2" != "$acl_libdirstem" \
9348 && ! test -d "$withval/$acl_libdirstem"; then
9349 additional_libdir="$withval/$acl_libdirstem2"
9363 names_already_handled=
9364 names_next_round='tasn1 '
9365 while test -n "$names_next_round"; do
9366 names_this_round="$names_next_round"
9368 for name in $names_this_round; do
9370 for n in $names_already_handled; do
9371 if test "$n" = "$name"; then
9376 if test -z "$already_handled"; then
9377 names_already_handled="$names_already_handled $name"
9378 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9379 eval value=\"\$HAVE_LIB$uppername\"
9380 if test -n "$value"; then
9381 if test "$value" = yes; then
9382 eval value=\"\$LIB$uppername\"
9383 test -z "$value" || LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$value"
9384 eval value=\"\$LTLIB$uppername\"
9385 test -z "$value" || LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }$value"
9394 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9395 if test -n "$acl_shlibext"; then
9396 shrext=".$acl_shlibext" # typically: shrext=.so
9400 if test $use_additional = yes; then
9401 dir="$additional_libdir"
9402 if test -n "$acl_shlibext"; then
9403 if test -f "$dir/$libname$shrext"; then
9405 found_so="$dir/$libname$shrext"
9407 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9408 ver=`(cd "$dir" && \
9409 for f in "$libname$shrext".*; do echo "$f"; done \
9410 | sed -e "s,^$libname$shrext\\\\.,," \
9411 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9412 | sed 1q ) 2>/dev/null`
9413 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9415 found_so="$dir/$libname$shrext.$ver"
9418 eval library_names=\"$acl_library_names_spec\"
9419 for f in $library_names; do
9420 if test -f "$dir/$f"; then
9429 if test "X$found_dir" = "X"; then
9430 if test -f "$dir/$libname.$acl_libext"; then
9432 found_a="$dir/$libname.$acl_libext"
9435 if test "X$found_dir" != "X"; then
9436 if test -f "$dir/$libname.la"; then
9437 found_la="$dir/$libname.la"
9441 if test "X$found_dir" = "X"; then
9442 for x in $LDFLAGS $LTLIBTASN1; do
9444 acl_save_prefix="$prefix"
9445 prefix="$acl_final_prefix"
9446 acl_save_exec_prefix="$exec_prefix"
9447 exec_prefix="$acl_final_exec_prefix"
9449 exec_prefix="$acl_save_exec_prefix"
9450 prefix="$acl_save_prefix"
9454 dir=`echo "X$x" | sed -e 's/^X-L//'`
9455 if test -n "$acl_shlibext"; then
9456 if test -f "$dir/$libname$shrext"; then
9458 found_so="$dir/$libname$shrext"
9460 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9461 ver=`(cd "$dir" && \
9462 for f in "$libname$shrext".*; do echo "$f"; done \
9463 | sed -e "s,^$libname$shrext\\\\.,," \
9464 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9465 | sed 1q ) 2>/dev/null`
9466 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9468 found_so="$dir/$libname$shrext.$ver"
9471 eval library_names=\"$acl_library_names_spec\"
9472 for f in $library_names; do
9473 if test -f "$dir/$f"; then
9482 if test "X$found_dir" = "X"; then
9483 if test -f "$dir/$libname.$acl_libext"; then
9485 found_a="$dir/$libname.$acl_libext"
9488 if test "X$found_dir" != "X"; then
9489 if test -f "$dir/$libname.la"; then
9490 found_la="$dir/$libname.la"
9495 if test "X$found_dir" != "X"; then
9500 if test "X$found_dir" != "X"; then
9501 LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-L$found_dir -l$name"
9502 if test "X$found_so" != "X"; then
9503 if test "$enable_rpath" = no \
9504 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9505 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9506 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
9509 for x in $ltrpathdirs; do
9510 if test "X$x" = "X$found_dir"; then
9515 if test -z "$haveit"; then
9516 ltrpathdirs="$ltrpathdirs $found_dir"
9518 if test "$acl_hardcode_direct" = yes; then
9519 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
9521 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9522 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
9524 for x in $rpathdirs; do
9525 if test "X$x" = "X$found_dir"; then
9530 if test -z "$haveit"; then
9531 rpathdirs="$rpathdirs $found_dir"
9535 for x in $LDFLAGS $LIBTASN1; do
9537 acl_save_prefix="$prefix"
9538 prefix="$acl_final_prefix"
9539 acl_save_exec_prefix="$exec_prefix"
9540 exec_prefix="$acl_final_exec_prefix"
9542 exec_prefix="$acl_save_exec_prefix"
9543 prefix="$acl_save_prefix"
9545 if test "X$x" = "X-L$found_dir"; then
9550 if test -z "$haveit"; then
9551 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-L$found_dir"
9553 if test "$acl_hardcode_minus_L" != no; then
9554 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
9556 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-l$name"
9562 if test "X$found_a" != "X"; then
9563 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_a"
9565 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-L$found_dir -l$name"
9568 additional_includedir=
9569 case "$found_dir" in
9570 */$acl_libdirstem | */$acl_libdirstem/)
9571 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9572 if test "$name" = 'tasn1'; then
9573 LIBTASN1_PREFIX="$basedir"
9575 additional_includedir="$basedir/include"
9577 */$acl_libdirstem2 | */$acl_libdirstem2/)
9578 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9579 if test "$name" = 'tasn1'; then
9580 LIBTASN1_PREFIX="$basedir"
9582 additional_includedir="$basedir/include"
9585 if test "X$additional_includedir" != "X"; then
9586 if test "X$additional_includedir" != "X/usr/include"; then
9588 if test "X$additional_includedir" = "X/usr/local/include"; then
9589 if test -n "$GCC"; then
9591 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9595 if test -z "$haveit"; then
9596 for x in $CPPFLAGS $INCTASN1; do
9598 acl_save_prefix="$prefix"
9599 prefix="$acl_final_prefix"
9600 acl_save_exec_prefix="$exec_prefix"
9601 exec_prefix="$acl_final_exec_prefix"
9603 exec_prefix="$acl_save_exec_prefix"
9604 prefix="$acl_save_prefix"
9606 if test "X$x" = "X-I$additional_includedir"; then
9611 if test -z "$haveit"; then
9612 if test -d "$additional_includedir"; then
9613 INCTASN1="${INCTASN1}${INCTASN1:+ }-I$additional_includedir"
9619 if test -n "$found_la"; then
9620 save_libdir="$libdir"
9622 */* | *\\*) . "$found_la" ;;
9623 *) . "./$found_la" ;;
9625 libdir="$save_libdir"
9626 for dep in $dependency_libs; do
9629 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9630 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9631 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9633 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9634 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9635 if test -n "$GCC"; then
9637 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9641 if test -z "$haveit"; then
9643 for x in $LDFLAGS $LIBTASN1; do
9645 acl_save_prefix="$prefix"
9646 prefix="$acl_final_prefix"
9647 acl_save_exec_prefix="$exec_prefix"
9648 exec_prefix="$acl_final_exec_prefix"
9650 exec_prefix="$acl_save_exec_prefix"
9651 prefix="$acl_save_prefix"
9653 if test "X$x" = "X-L$additional_libdir"; then
9658 if test -z "$haveit"; then
9659 if test -d "$additional_libdir"; then
9660 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-L$additional_libdir"
9664 for x in $LDFLAGS $LTLIBTASN1; do
9666 acl_save_prefix="$prefix"
9667 prefix="$acl_final_prefix"
9668 acl_save_exec_prefix="$exec_prefix"
9669 exec_prefix="$acl_final_exec_prefix"
9671 exec_prefix="$acl_save_exec_prefix"
9672 prefix="$acl_save_prefix"
9674 if test "X$x" = "X-L$additional_libdir"; then
9679 if test -z "$haveit"; then
9680 if test -d "$additional_libdir"; then
9681 LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-L$additional_libdir"
9688 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9689 if test "$enable_rpath" != no; then
9691 for x in $rpathdirs; do
9692 if test "X$x" = "X$dir"; then
9697 if test -z "$haveit"; then
9698 rpathdirs="$rpathdirs $dir"
9701 for x in $ltrpathdirs; do
9702 if test "X$x" = "X$dir"; then
9707 if test -z "$haveit"; then
9708 ltrpathdirs="$ltrpathdirs $dir"
9713 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9716 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9719 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$dep"
9720 LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }$dep"
9726 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-l$name"
9727 LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-l$name"
9733 if test "X$rpathdirs" != "X"; then
9734 if test -n "$acl_hardcode_libdir_separator"; then
9736 for found_dir in $rpathdirs; do
9737 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9739 acl_save_libdir="$libdir"
9741 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9742 libdir="$acl_save_libdir"
9743 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$flag"
9745 for found_dir in $rpathdirs; do
9746 acl_save_libdir="$libdir"
9748 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9749 libdir="$acl_save_libdir"
9750 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$flag"
9754 if test "X$ltrpathdirs" != "X"; then
9755 for found_dir in $ltrpathdirs; do
9756 LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-R$found_dir"
9766 ac_save_CPPFLAGS="$CPPFLAGS"
9768 for element in $INCTASN1; do
9770 for x in $CPPFLAGS; do
9772 acl_save_prefix="$prefix"
9773 prefix="$acl_final_prefix"
9774 acl_save_exec_prefix="$exec_prefix"
9775 exec_prefix="$acl_final_exec_prefix"
9777 exec_prefix="$acl_save_exec_prefix"
9778 prefix="$acl_save_prefix"
9780 if test "X$x" = "X$element"; then
9785 if test -z "$haveit"; then
9786 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtasn1" >&5
9792 $as_echo_n "checking for libtasn1... " >&6; }
9793 if ${ac_cv_libtasn1+:} false; then :
9794 $as_echo_n "(cached) " >&6
9797 ac_save_LIBS="$LIBS"
9798 case " $LIBTASN1" in
9799 *" -l"*) LIBS="$LIBS $LIBTASN1" ;;
9800 *) LIBS="$LIBTASN1 $LIBS" ;;
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9804 #include <libtasn1.h>
9808 asn1_check_version (NULL)
9813 if ac_fn_c_try_link "$LINENO"; then :
9818 rm -f core conftest.err conftest.$ac_objext \
9819 conftest$ac_exeext conftest.$ac_ext
9820 LIBS="$ac_save_LIBS"
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libtasn1" >&5
9824 $as_echo "$ac_cv_libtasn1" >&6; }
9825 if test "$ac_cv_libtasn1" = yes; then
9828 $as_echo "#define HAVE_LIBTASN1 1" >>confdefs.h
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libtasn1" >&5
9831 $as_echo_n "checking how to link with libtasn1... " >&6; }
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTASN1" >&5
9833 $as_echo "$LIBTASN1" >&6; }
9836 CPPFLAGS="$ac_save_CPPFLAGS"
9848 if test "$ac_cv_libtasn1" != yes; then
9849 included_libtasn1=yes
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9852 *** Libtasn1 was not found. Will use the included one.
9854 $as_echo "$as_me: WARNING:
9856 *** Libtasn1 was not found. Will use the included one.
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included minitasn1" >&5
9861 $as_echo_n "checking whether to use the included minitasn1... " >&6; }
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $included_libtasn1" >&5
9863 $as_echo "$included_libtasn1" >&6; }
9864 if test "$included_libtasn1" = "yes"; then
9865 ENABLE_MINITASN1_TRUE=
9866 ENABLE_MINITASN1_FALSE='#'
9868 ENABLE_MINITASN1_TRUE='#'
9869 ENABLE_MINITASN1_FALSE=
9873 if test "$included_libtasn1" = "no"; then
9874 GNUTLS_REQUIRES_PRIVATE="Requires.private: libtasn1"
9878 # Check whether --with-lzo was given.
9879 if test "${with_lzo+set}" = set; then :
9880 withval=$with_lzo; use_lzo=$withval
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include LZO compression support" >&5
9886 $as_echo_n "checking whether to include LZO compression support... " >&6; }
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lzo" >&5
9888 $as_echo "$use_lzo" >&6; }
9890 if test "$use_lzo" = "yes"; then
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
9892 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
9893 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
9894 $as_echo_n "(cached) " >&6
9896 ac_check_lib_save_LIBS=$LIBS
9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899 /* end confdefs.h. */
9901 /* Override any GCC internal prototype to avoid an error.
9902 Use char because int might match the return type of a GCC
9903 builtin and then its argument prototype would still apply. */
9907 char lzo1x_1_compress ();
9911 return lzo1x_1_compress ();
9916 if ac_fn_c_try_link "$LINENO"; then :
9917 ac_cv_lib_lzo2_lzo1x_1_compress=yes
9919 ac_cv_lib_lzo2_lzo1x_1_compress=no
9921 rm -f core conftest.err conftest.$ac_objext \
9922 conftest$ac_exeext conftest.$ac_ext
9923 LIBS=$ac_check_lib_save_LIBS
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
9926 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
9927 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
9931 if test "$LZO_LIBS" = ""; then
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo" >&5
9933 $as_echo_n "checking for lzo1x_1_compress in -llzo... " >&6; }
9934 if ${ac_cv_lib_lzo_lzo1x_1_compress+:} false; then :
9935 $as_echo_n "(cached) " >&6
9937 ac_check_lib_save_LIBS=$LIBS
9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9940 /* end confdefs.h. */
9942 /* Override any GCC internal prototype to avoid an error.
9943 Use char because int might match the return type of a GCC
9944 builtin and then its argument prototype would still apply. */
9948 char lzo1x_1_compress ();
9952 return lzo1x_1_compress ();
9957 if ac_fn_c_try_link "$LINENO"; then :
9958 ac_cv_lib_lzo_lzo1x_1_compress=yes
9960 ac_cv_lib_lzo_lzo1x_1_compress=no
9962 rm -f core conftest.err conftest.$ac_objext \
9963 conftest$ac_exeext conftest.$ac_ext
9964 LIBS=$ac_check_lib_save_LIBS
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo_lzo1x_1_compress" >&5
9967 $as_echo "$ac_cv_lib_lzo_lzo1x_1_compress" >&6; }
9968 if test "x$ac_cv_lib_lzo_lzo1x_1_compress" = xyes; then :
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***
9974 *** Could not find liblzo or liblzo2. Disabling LZO compression.
9976 $as_echo "$as_me: WARNING: ***
9977 *** Could not find liblzo or liblzo2. Disabling LZO compression.
9985 if test "$use_lzo" = "yes"; then
9987 $as_echo "#define USE_LZO 1" >>confdefs.h
9989 if test "$LZO_LIBS" = "-llzo"; then
9990 for ac_header in lzo1x.h
9992 ac_fn_c_check_header_mongrel "$LINENO" "lzo1x.h" "ac_cv_header_lzo1x_h" "$ac_includes_default"
9993 if test "x$ac_cv_header_lzo1x_h" = xyes; then :
9994 cat >>confdefs.h <<_ACEOF
9995 #define HAVE_LZO1X_H 1
10002 elif test "$LZO_LIBS" = "-llzo2"; then
10003 for ac_header in lzo/lzo1x.h
10005 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
10006 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
10007 cat >>confdefs.h <<_ACEOF
10008 #define HAVE_LZO_LZO1X_H 1
10017 if test "$use_lzo" = "yes"; then
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C99 macros are supported" >&5
10027 $as_echo_n "checking whether C99 macros are supported... " >&6; }
10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029 /* end confdefs.h. */
10035 #define test_mac(...)
10044 if ac_fn_c_try_compile "$LINENO"; then :
10047 $as_echo "#define C99_MACROS 1" >>confdefs.h
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10050 $as_echo "yes" >&6; }
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055 $as_echo "no" >&6; }
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C99 macros not supported. This may affect compiling." >&5
10057 $as_echo "$as_me: WARNING: C99 macros not supported. This may affect compiling." >&2;}
10060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Opaque PRF input support" >&5
10063 $as_echo_n "checking whether to enable Opaque PRF input support... " >&6; }
10064 # Check whether --enable-opaque-prf-input was given.
10065 if test "${enable_opaque_prf_input+set}" = set; then :
10066 enableval=$enable_opaque_prf_input; ac_opaque_prf_input=$enableval
10068 ac_opaque_prf_input=no
10071 if test "$ac_opaque_prf_input" != "no"; then
10072 if ! echo $ac_opaque_prf_input | egrep -q '^[0-9]+$'; then
10073 ac_opaque_prf_input=no
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10075 *** Could not parse Opaque PRF Input extension type.
10076 *** Use --enable-opaque-prf-input=XX where XX is decimal, for example
10077 *** to use extension value 42 use --enable-opqaue-prf-input=42" >&5
10078 $as_echo "$as_me: WARNING:
10079 *** Could not parse Opaque PRF Input extension type.
10080 *** Use --enable-opaque-prf-input=XX where XX is decimal, for example
10081 *** to use extension value 42 use --enable-opqaue-prf-input=42" >&2;}
10084 if test "$ac_opaque_prf_input" != "no"; then
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (extension value $ac_opaque_prf_input)" >&5
10086 $as_echo "yes (extension value $ac_opaque_prf_input)" >&6; }
10088 cat >>confdefs.h <<_ACEOF
10089 #define ENABLE_OPRFI $ac_opaque_prf_input
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; }
10096 if test "$ac_opaque_prf_input" != "no"; then
10098 ENABLE_OPRFI_FALSE='#'
10100 ENABLE_OPRFI_TRUE='#'
10101 ENABLE_OPRFI_FALSE=
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable SRP authentication support" >&5
10106 $as_echo_n "checking whether to disable SRP authentication support... " >&6; }
10107 # Check whether --enable-srp-authentication was given.
10108 if test "${enable_srp_authentication+set}" = set; then :
10109 enableval=$enable_srp_authentication; ac_enable_srp=no
10112 if test x$ac_enable_srp != xno; then
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114 $as_echo "no" >&6; }
10116 $as_echo "#define ENABLE_SRP 1" >>confdefs.h
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10121 $as_echo "yes" >&6; }
10123 if test "$ac_enable_srp" != "no"; then
10125 ENABLE_SRP_FALSE='#'
10127 ENABLE_SRP_TRUE='#'
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable PSK authentication support" >&5
10133 $as_echo_n "checking whether to disable PSK authentication support... " >&6; }
10134 # Check whether --enable-psk-authentication was given.
10135 if test "${enable_psk_authentication+set}" = set; then :
10136 enableval=$enable_psk_authentication; ac_enable_psk=no
10139 if test x$ac_enable_psk != xno; then
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141 $as_echo "no" >&6; }
10143 $as_echo "#define ENABLE_PSK 1" >>confdefs.h
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10148 $as_echo "yes" >&6; }
10150 if test "$ac_enable_psk" != "no"; then
10152 ENABLE_PSK_FALSE='#'
10154 ENABLE_PSK_TRUE='#'
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable anonymous authentication support" >&5
10160 $as_echo_n "checking whether to disable anonymous authentication support... " >&6; }
10161 # Check whether --enable-anon-authentication was given.
10162 if test "${enable_anon_authentication+set}" = set; then :
10163 enableval=$enable_anon_authentication; ac_enable_anon=no
10166 if test x$ac_enable_anon != xno; then
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 $as_echo "no" >&6; }
10170 $as_echo "#define ENABLE_ANON 1" >>confdefs.h
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10175 $as_echo "yes" >&6; }
10177 if test "$ac_enable_anon" != "no"; then
10179 ENABLE_ANON_FALSE='#'
10181 ENABLE_ANON_TRUE='#'
10186 # Allow disabling Camellia
10187 if test "$nettle" != "yes";then
10188 # Check whether --enable-camellia was given.
10189 if test "${enable_camellia+set}" = set; then :
10190 enableval=$enable_camellia; enable_camellia=$enableval
10192 enable_camellia=yes
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable Camellia cipher" >&5
10200 $as_echo_n "checking whether to disable Camellia cipher... " >&6; }
10201 if test "$enable_camellia" != "no"; then
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10203 $as_echo "no" >&6; }
10205 $as_echo "#define ENABLE_CAMELLIA 1" >>confdefs.h
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10209 $as_echo "yes" >&6; }
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable extra PKI stuff" >&5
10213 $as_echo_n "checking whether to disable extra PKI stuff... " >&6; }
10214 # Check whether --enable-extra-pki was given.
10215 if test "${enable_extra_pki+set}" = set; then :
10216 enableval=$enable_extra_pki; enable_pki=$enableval
10221 if test "$enable_pki" != "yes"; then
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10224 $as_echo "yes" >&6; }
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10227 $as_echo "no" >&6; }
10229 $as_echo "#define ENABLE_PKI 1" >>confdefs.h
10232 if test "$enable_pki" = "yes"; then
10234 ENABLE_PKI_FALSE='#'
10236 ENABLE_PKI_TRUE='#'
10241 ac_enable_openpgp=yes
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable OpenPGP Certificate authentication support" >&5
10243 $as_echo_n "checking whether to disable OpenPGP Certificate authentication support... " >&6; }
10244 # Check whether --enable-openpgp-authentication was given.
10245 if test "${enable_openpgp_authentication+set}" = set; then :
10246 enableval=$enable_openpgp_authentication; ac_enable_openpgp=no
10249 if test x$ac_enable_openpgp = xno; then
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10251 $as_echo "yes" >&6; }
10255 $as_echo "#define ENABLE_OPENPGP 1" >>confdefs.h
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258 $as_echo "no" >&6; }
10260 if test "$ac_enable_openpgp" = "yes"; then
10261 ENABLE_OPENPGP_TRUE=
10262 ENABLE_OPENPGP_FALSE='#'
10264 ENABLE_OPENPGP_TRUE='#'
10265 ENABLE_OPENPGP_FALSE=
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable SessionTicket extension support" >&5
10270 $as_echo_n "checking whether to disable SessionTicket extension support... " >&6; }
10271 # Check whether --enable-session-ticket was given.
10272 if test "${enable_session_ticket+set}" = set; then :
10273 enableval=$enable_session_ticket; ac_session_ticket=no
10276 if test x$ac_session_ticket != xno; then
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278 $as_echo "no" >&6; }
10280 $as_echo "#define ENABLE_SESSION_TICKET 1" >>confdefs.h
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10285 $as_echo "yes" >&6; }
10287 if test "$ac_enable_session_ticket" != "no"; then
10288 ENABLE_SESSION_TICKET_TRUE=
10289 ENABLE_SESSION_TICKET_FALSE='#'
10291 ENABLE_SESSION_TICKET_TRUE='#'
10292 ENABLE_SESSION_TICKET_FALSE=
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add cryptodev support" >&5
10298 $as_echo_n "checking whether to add cryptodev support... " >&6; }
10299 # Check whether --enable-cryptodev was given.
10300 if test "${enable_cryptodev+set}" = set; then :
10301 enableval=$enable_cryptodev; enable_cryptodev=yes
10303 enable_cryptodev=no
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cryptodev" >&5
10307 $as_echo "$enable_cryptodev" >&6; }
10309 if test "$enable_cryptodev" = "yes"; then
10311 $as_echo "#define ENABLE_CRYPTODEV 1" >>confdefs.h
10315 # For storing integers in pointers without warnings
10316 # http://developer.gnome.org/doc/API/2.0/glib/glib-Type-Conversion-Macros.html#desc
10317 # The cast to long int works around a bug in the HP C Compiler
10318 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10319 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10320 # This bug is HP SR number 8606223364.
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
10322 $as_echo_n "checking size of void *... " >&6; }
10323 if ${ac_cv_sizeof_void_p+:} false; then :
10324 $as_echo_n "(cached) " >&6
10326 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
10329 if test "$ac_cv_type_void_p" = yes; then
10330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10332 as_fn_error 77 "cannot compute sizeof (void *)
10333 See \`config.log' for more details" "$LINENO" 5; }
10335 ac_cv_sizeof_void_p=0
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
10341 $as_echo "$ac_cv_sizeof_void_p" >&6; }
10345 cat >>confdefs.h <<_ACEOF
10346 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10350 # The cast to long int works around a bug in the HP C Compiler
10351 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10352 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10353 # This bug is HP SR number 8606223364.
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10355 $as_echo_n "checking size of long... " >&6; }
10356 if ${ac_cv_sizeof_long+:} false; then :
10357 $as_echo_n "(cached) " >&6
10359 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10362 if test "$ac_cv_type_long" = yes; then
10363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10365 as_fn_error 77 "cannot compute sizeof (long)
10366 See \`config.log' for more details" "$LINENO" 5; }
10368 ac_cv_sizeof_long=0
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10374 $as_echo "$ac_cv_sizeof_long" >&6; }
10378 cat >>confdefs.h <<_ACEOF
10379 #define SIZEOF_LONG $ac_cv_sizeof_long
10383 # The cast to long int works around a bug in the HP C Compiler
10384 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10385 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10386 # This bug is HP SR number 8606223364.
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10388 $as_echo_n "checking size of int... " >&6; }
10389 if ${ac_cv_sizeof_int+:} false; then :
10390 $as_echo_n "(cached) " >&6
10392 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10395 if test "$ac_cv_type_int" = yes; then
10396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10398 as_fn_error 77 "cannot compute sizeof (int)
10399 See \`config.log' for more details" "$LINENO" 5; }
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10407 $as_echo "$ac_cv_sizeof_int" >&6; }
10411 cat >>confdefs.h <<_ACEOF
10412 #define SIZEOF_INT $ac_cv_sizeof_int
10416 case $ac_cv_sizeof_void_p in
10417 $ac_cv_sizeof_long)
10419 $as_echo "#define GNUTLS_POINTER_TO_INT_CAST (long)" >>confdefs.h
10423 $as_echo "#define GNUTLS_POINTER_TO_INT_CAST /**/" >>confdefs.h
10436 GNULIB_EUIDACCESS=0;
10437 GNULIB_FACCESSAT=0;
10440 GNULIB_FDATASYNC=0;
10442 GNULIB_FTRUNCATE=0;
10444 GNULIB_GETDOMAINNAME=0;
10445 GNULIB_GETDTABLESIZE=0;
10446 GNULIB_GETGROUPS=0;
10447 GNULIB_GETHOSTNAME=0;
10449 GNULIB_GETLOGIN_R=0;
10450 GNULIB_GETPAGESIZE=0;
10451 GNULIB_GETUSERSHELL=0;
10452 GNULIB_GROUP_MEMBER=0;
10464 GNULIB_READLINKAT=0;
10466 GNULIB_SETHOSTNAME=0;
10469 GNULIB_SYMLINKAT=0;
10470 GNULIB_TTYNAME_R=0;
10471 GNULIB_UNISTD_H_NONBLOCKING=0;
10472 GNULIB_UNISTD_H_SIGPIPE=0;
10487 HAVE_GETDTABLESIZE=1;
10489 HAVE_GETHOSTNAME=1;
10491 HAVE_GETPAGESIZE=1;
10492 HAVE_GROUP_MEMBER=1;
10502 HAVE_SETHOSTNAME=1;
10508 HAVE_DECL_ENVIRON=1;
10509 HAVE_DECL_FCHDIR=1;
10510 HAVE_DECL_FDATASYNC=1;
10511 HAVE_DECL_GETDOMAINNAME=1;
10512 HAVE_DECL_GETLOGIN_R=1;
10513 HAVE_DECL_GETPAGESIZE=1;
10514 HAVE_DECL_GETUSERSHELL=1;
10515 HAVE_DECL_SETHOSTNAME=1;
10516 HAVE_DECL_TTYNAME_R=1;
10518 HAVE_SYS_PARAM_H=0;
10523 REPLACE_FCHOWNAT=0;
10525 REPLACE_GETDOMAINNAME=0;
10526 REPLACE_GETLOGIN_R=0;
10527 REPLACE_GETGROUPS=0;
10528 REPLACE_GETPAGESIZE=0;
10537 REPLACE_READLINK=0;
10541 REPLACE_TTYNAME_R=0;
10543 REPLACE_UNLINKAT=0;
10546 UNISTD_H_HAVE_WINSOCK2_H=0;
10547 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
10552 SYS_IOCTL_H_HAVE_WINSOCK2_H=0;
10553 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
10561 for ac_header in $gl_header_list
10563 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10564 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10565 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10566 cat >>confdefs.h <<_ACEOF
10567 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10589 if test $ac_cv_header_sys_socket_h != yes; then
10590 for ac_header in winsock2.h
10592 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
10593 if test "x$ac_cv_header_winsock2_h" = xyes; then :
10594 cat >>confdefs.h <<_ACEOF
10595 #define HAVE_WINSOCK2_H 1
10603 if test "$ac_cv_header_winsock2_h" = yes; then
10605 UNISTD_H_HAVE_WINSOCK2_H=1
10606 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
10612 if test $HAVE_WINSOCK2_H = 1; then
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
10614 $as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
10615 if ${gl_cv_func_wsastartup+:} false; then :
10616 $as_echo_n "(cached) " >&6
10619 gl_save_LIBS="$LIBS"
10620 LIBS="$LIBS -lws2_32"
10621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622 /* end confdefs.h. */
10624 #ifdef HAVE_WINSOCK2_H
10625 # include <winsock2.h>
10631 WORD wVersionRequested = MAKEWORD(1, 1);
10633 int err = WSAStartup(wVersionRequested, &wsaData);
10639 if ac_fn_c_try_link "$LINENO"; then :
10640 gl_cv_func_wsastartup=yes
10642 gl_cv_func_wsastartup=no
10644 rm -f core conftest.err conftest.$ac_objext \
10645 conftest$ac_exeext conftest.$ac_ext
10646 LIBS="$gl_save_LIBS"
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
10650 $as_echo "$gl_cv_func_wsastartup" >&6; }
10651 if test "$gl_cv_func_wsastartup" = "yes"; then
10653 $as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
10655 LIBSOCKET='-lws2_32'
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
10659 $as_echo_n "checking for library containing setsockopt... " >&6; }
10660 if ${gl_cv_lib_socket+:} false; then :
10661 $as_echo_n "(cached) " >&6
10665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666 /* end confdefs.h. */
10680 if ac_fn_c_try_link "$LINENO"; then :
10683 gl_save_LIBS="$LIBS"
10684 LIBS="$gl_save_LIBS -lsocket"
10685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686 /* end confdefs.h. */
10700 if ac_fn_c_try_link "$LINENO"; then :
10701 gl_cv_lib_socket="-lsocket"
10703 rm -f core conftest.err conftest.$ac_objext \
10704 conftest$ac_exeext conftest.$ac_ext
10705 if test -z "$gl_cv_lib_socket"; then
10706 LIBS="$gl_save_LIBS -lnetwork"
10707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h. */
10722 if ac_fn_c_try_link "$LINENO"; then :
10723 gl_cv_lib_socket="-lnetwork"
10725 rm -f core conftest.err conftest.$ac_objext \
10726 conftest$ac_exeext conftest.$ac_ext
10727 if test -z "$gl_cv_lib_socket"; then
10728 LIBS="$gl_save_LIBS -lnet"
10729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730 /* end confdefs.h. */
10744 if ac_fn_c_try_link "$LINENO"; then :
10745 gl_cv_lib_socket="-lnet"
10747 rm -f core conftest.err conftest.$ac_objext \
10748 conftest$ac_exeext conftest.$ac_ext
10751 LIBS="$gl_save_LIBS"
10754 rm -f core conftest.err conftest.$ac_objext \
10755 conftest$ac_exeext conftest.$ac_ext
10756 if test -z "$gl_cv_lib_socket"; then
10757 gl_cv_lib_socket="none needed"
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
10762 $as_echo "$gl_cv_lib_socket" >&6; }
10763 if test "$gl_cv_lib_socket" != "none needed"; then
10764 LIBSOCKET="$gl_cv_lib_socket"
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build OpenSSL compatibility layer" >&5
10771 $as_echo_n "checking whether to build OpenSSL compatibility layer... " >&6; }
10772 # Check whether --enable-openssl-compatibility was given.
10773 if test "${enable_openssl_compatibility+set}" = set; then :
10774 enableval=$enable_openssl_compatibility; enable_openssl=$enableval
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
10780 $as_echo "$enable_openssl" >&6; }
10781 if test "$enable_openssl" = "yes"; then
10782 ENABLE_OPENSSL_TRUE=
10783 ENABLE_OPENSSL_FALSE='#'
10785 ENABLE_OPENSSL_TRUE='#'
10786 ENABLE_OPENSSL_FALSE=
10790 # We link to ../lib's gnulib, which needs -lws2_32 via LIBSOCKET in Makefile.am.
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10801 $as_echo_n "checking for ANSI C header files... " >&6; }
10802 if ${ac_cv_header_stdc+:} false; then :
10803 $as_echo_n "(cached) " >&6
10805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806 /* end confdefs.h. */
10807 #include <stdlib.h>
10808 #include <stdarg.h>
10809 #include <string.h>
10820 if ac_fn_c_try_compile "$LINENO"; then :
10821 ac_cv_header_stdc=yes
10823 ac_cv_header_stdc=no
10825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10827 if test $ac_cv_header_stdc = yes; then
10828 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h. */
10831 #include <string.h>
10834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10835 $EGREP "memchr" >/dev/null 2>&1; then :
10838 ac_cv_header_stdc=no
10844 if test $ac_cv_header_stdc = yes; then
10845 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10847 /* end confdefs.h. */
10848 #include <stdlib.h>
10851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10852 $EGREP "free" >/dev/null 2>&1; then :
10855 ac_cv_header_stdc=no
10861 if test $ac_cv_header_stdc = yes; then
10862 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10863 if test "$cross_compiling" = yes; then :
10866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867 /* end confdefs.h. */
10869 #include <stdlib.h>
10870 #if ((' ' & 0x0FF) == 0x020)
10871 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10872 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10874 # define ISLOWER(c) \
10875 (('a' <= (c) && (c) <= 'i') \
10876 || ('j' <= (c) && (c) <= 'r') \
10877 || ('s' <= (c) && (c) <= 'z'))
10878 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10881 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10886 for (i = 0; i < 256; i++)
10887 if (XOR (islower (i), ISLOWER (i))
10888 || toupper (i) != TOUPPER (i))
10893 if ac_fn_c_try_run "$LINENO"; then :
10896 ac_cv_header_stdc=no
10898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10899 conftest.$ac_objext conftest.beam conftest.$ac_ext
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10905 $as_echo "$ac_cv_header_stdc" >&6; }
10906 if test $ac_cv_header_stdc = yes; then
10908 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10913 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
10916 $as_echo "#define HAVE_FLOAT_H 1" >>confdefs.h
10919 $as_echo "#define HAVE_LIMITS_H 1" >>confdefs.h
10922 $as_echo "#define HAVE_MATH_H 1" >>confdefs.h
10925 $as_echo "#define HAVE_CTYPE_H 1" >>confdefs.h
10928 $as_echo "#define HAVE_ERRNO_H 1" >>confdefs.h
10931 # No fork on MinGW, disable some self-tests until we fix them.
10932 for ac_func in fork
10934 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
10935 if test "x$ac_cv_func_fork" = xyes; then :
10936 cat >>confdefs.h <<_ACEOF
10937 #define HAVE_FORK 1
10943 if test "$ac_cv_func_fork" != "no"; then
10945 HAVE_FORK_FALSE='#'
10953 # Check whether --with-p11-kit was given.
10954 if test "${with_p11_kit+set}" = set; then :
10955 withval=$with_p11_kit;
10958 if test "$with_p11_kit" != "no"; then
10959 ENABLE_PKCS11_TRUE=
10960 ENABLE_PKCS11_FALSE='#'
10962 ENABLE_PKCS11_TRUE='#'
10963 ENABLE_PKCS11_FALSE=
10966 if test "$with_p11_kit" != "no"; then
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for P11_KIT" >&5
10970 $as_echo_n "checking for P11_KIT... " >&6; }
10972 if test -n "$PKG_CONFIG"; then
10973 if test -n "$P11_KIT_CFLAGS"; then
10974 pkg_cv_P11_KIT_CFLAGS="$P11_KIT_CFLAGS"
10976 if test -n "$PKG_CONFIG" && \
10977 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1 >= 0.11\""; } >&5
10978 ($PKG_CONFIG --exists --print-errors "p11-kit-1 >= 0.11") 2>&5
10980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10981 test $ac_status = 0; }; then
10982 pkg_cv_P11_KIT_CFLAGS=`$PKG_CONFIG --cflags "p11-kit-1 >= 0.11" 2>/dev/null`
10990 if test -n "$PKG_CONFIG"; then
10991 if test -n "$P11_KIT_LIBS"; then
10992 pkg_cv_P11_KIT_LIBS="$P11_KIT_LIBS"
10994 if test -n "$PKG_CONFIG" && \
10995 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1 >= 0.11\""; } >&5
10996 ($PKG_CONFIG --exists --print-errors "p11-kit-1 >= 0.11") 2>&5
10998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10999 test $ac_status = 0; }; then
11000 pkg_cv_P11_KIT_LIBS=`$PKG_CONFIG --libs "p11-kit-1 >= 0.11" 2>/dev/null`
11011 if test $pkg_failed = yes; then
11013 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11014 _pkg_short_errors_supported=yes
11016 _pkg_short_errors_supported=no
11018 if test $_pkg_short_errors_supported = yes; then
11019 P11_KIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "p11-kit-1 >= 0.11"`
11021 P11_KIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "p11-kit-1 >= 0.11"`
11023 # Put the nasty error message in config.log where it belongs
11024 echo "$P11_KIT_PKG_ERRORS" >&5
11026 as_fn_error $? "Package requirements (p11-kit-1 >= 0.11) were not met:
11028 $P11_KIT_PKG_ERRORS
11030 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11031 installed software in a non-standard prefix.
11033 Alternatively, you may set the environment variables P11_KIT_CFLAGS
11034 and P11_KIT_LIBS to avoid the need to call pkg-config.
11035 See the pkg-config man page for more details.
11037 elif test $pkg_failed = untried; then
11038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11040 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11041 is in your PATH or set the PKG_CONFIG environment variable to the full
11042 path to pkg-config.
11044 Alternatively, you may set the environment variables P11_KIT_CFLAGS
11045 and P11_KIT_LIBS to avoid the need to call pkg-config.
11046 See the pkg-config man page for more details.
11048 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11049 See \`config.log' for more details" "$LINENO" 5; }
11051 P11_KIT_CFLAGS=$pkg_cv_P11_KIT_CFLAGS
11052 P11_KIT_LIBS=$pkg_cv_P11_KIT_LIBS
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11054 $as_echo "yes" >&6; }
11058 $as_echo "#define ENABLE_PKCS11 1" >>confdefs.h
11060 CFLAGS="$CFLAGS $P11_KIT_CFLAGS"
11061 LIBS="$LIBS $P11_KIT_LIBS"
11065 ac_fn_c_check_type "$LINENO" "uint" "ac_cv_type_uint" "
11066 # include <sys/types.h>
11069 if test "x$ac_cv_type_uint" = xyes; then :
11071 cat >>confdefs.h <<_ACEOF
11072 #define HAVE_UINT 1
11079 # For Guile bindings.
11080 opt_guile_bindings=yes
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building Guile bindings" >&5
11082 $as_echo_n "checking whether building Guile bindings... " >&6; }
11083 # Check whether --enable-guile was given.
11084 if test "${enable_guile+set}" = set; then :
11085 enableval=$enable_guile; opt_guile_bindings=$enableval
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_guile_bindings" >&5
11089 $as_echo "$opt_guile_bindings" >&6; }
11092 # Check whether --with---with-guile-site-dir was given.
11093 if test "${with___with_guile_site_dir+set}" = set; then :
11094 withval=$with___with_guile_site_dir;
11098 if test "$opt_guile_bindings" = "yes"; then
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ***
11100 *** Detecting GNU Guile...
11103 *** Detecting GNU Guile...
11106 # Extract the first word of "guile-snarf", so it can be a program name with args.
11107 set dummy guile-snarf; ac_word=$2
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11109 $as_echo_n "checking for $ac_word... " >&6; }
11110 if ${ac_cv_path_guile_snarf+:} false; then :
11111 $as_echo_n "(cached) " >&6
11113 case $guile_snarf in
11115 ac_cv_path_guile_snarf="$guile_snarf" # Let the user override the test with a path.
11118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11119 for as_dir in $PATH
11122 test -z "$as_dir" && as_dir=.
11123 for ac_exec_ext in '' $ac_executable_extensions; do
11124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11125 ac_cv_path_guile_snarf="$as_dir/$ac_word$ac_exec_ext"
11126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11136 guile_snarf=$ac_cv_path_guile_snarf
11137 if test -n "$guile_snarf"; then
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_snarf" >&5
11139 $as_echo "$guile_snarf" >&6; }
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11142 $as_echo "no" >&6; }
11146 if test "x$guile_snarf" = "x"; then
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`guile-snarf' from Guile 1.8 not found. Guile bindings not built." >&5
11148 $as_echo "$as_me: WARNING: \`guile-snarf' from Guile 1.8 not found. Guile bindings not built." >&2;}
11149 opt_guile_bindings=no
11151 # Extract the first word of "guile", so it can be a program name with args.
11152 set dummy guile; ac_word=$2
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11154 $as_echo_n "checking for $ac_word... " >&6; }
11155 if ${ac_cv_path_GUILE+:} false; then :
11156 $as_echo_n "(cached) " >&6
11160 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
11163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164 for as_dir in $PATH
11167 test -z "$as_dir" && as_dir=.
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11170 ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
11171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11181 GUILE=$ac_cv_path_GUILE
11182 if test -n "$GUILE"; then
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5
11184 $as_echo "$GUILE" >&6; }
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187 $as_echo "no" >&6; }
11191 if test "$GUILE" = "" ; then
11192 as_fn_error $? "guile required but not found" "$LINENO" 5
11195 # Extract the first word of "guile-config", so it can be a program name with args.
11196 set dummy guile-config; ac_word=$2
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11198 $as_echo_n "checking for $ac_word... " >&6; }
11199 if ${ac_cv_path_GUILE_CONFIG+:} false; then :
11200 $as_echo_n "(cached) " >&6
11202 case $GUILE_CONFIG in
11204 ac_cv_path_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test with a path.
11207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208 for as_dir in $PATH
11211 test -z "$as_dir" && as_dir=.
11212 for ac_exec_ext in '' $ac_executable_extensions; do
11213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11214 ac_cv_path_GUILE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11225 GUILE_CONFIG=$ac_cv_path_GUILE_CONFIG
11226 if test -n "$GUILE_CONFIG"; then
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5
11228 $as_echo "$GUILE_CONFIG" >&6; }
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231 $as_echo "no" >&6; }
11235 if test "$GUILE_CONFIG" = "" ; then
11236 as_fn_error $? "guile-config required but not found" "$LINENO" 5
11239 # Extract the first word of "guile-tools", so it can be a program name with args.
11240 set dummy guile-tools; ac_word=$2
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11242 $as_echo_n "checking for $ac_word... " >&6; }
11243 if ${ac_cv_path_GUILE_TOOLS+:} false; then :
11244 $as_echo_n "(cached) " >&6
11246 case $GUILE_TOOLS in
11248 ac_cv_path_GUILE_TOOLS="$GUILE_TOOLS" # Let the user override the test with a path.
11251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11252 for as_dir in $PATH
11255 test -z "$as_dir" && as_dir=.
11256 for ac_exec_ext in '' $ac_executable_extensions; do
11257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11258 ac_cv_path_GUILE_TOOLS="$as_dir/$ac_word$ac_exec_ext"
11259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11269 GUILE_TOOLS=$ac_cv_path_GUILE_TOOLS
11270 if test -n "$GUILE_TOOLS"; then
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_TOOLS" >&5
11272 $as_echo "$GUILE_TOOLS" >&6; }
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11275 $as_echo "no" >&6; }
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile compile flags" >&5
11282 $as_echo_n "checking libguile compile flags... " >&6; }
11283 GUILE_CFLAGS="`$GUILE_CONFIG compile`"
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CFLAGS" >&5
11285 $as_echo "$GUILE_CFLAGS" >&6; }
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile link flags" >&5
11287 $as_echo_n "checking libguile link flags... " >&6; }
11288 GUILE_LDFLAGS="`$GUILE_CONFIG link`"
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_LDFLAGS" >&5
11290 $as_echo "$GUILE_LDFLAGS" >&6; }
11295 save_CFLAGS="$CFLAGS"
11297 CFLAGS="$CFLAGS $GUILE_CFLAGS"
11298 LIBS="$LIBS $GUILE_LDFLAGS"
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNU Guile is recent enough" >&5
11300 $as_echo_n "checking whether GNU Guile is recent enough... " >&6; }
11301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302 /* end confdefs.h. */
11304 /* Override any GCC internal prototype to avoid an error.
11305 Use char because int might match the return type of a GCC
11306 builtin and then its argument prototype would still apply. */
11310 char scm_from_locale_string ();
11314 return scm_from_locale_string ();
11319 if ac_fn_c_try_link "$LINENO"; then :
11322 opt_guile_bindings=no
11324 rm -f core conftest.err conftest.$ac_objext \
11325 conftest$ac_exeext conftest.$ac_ext
11326 CFLAGS="$save_CFLAGS"
11329 if test "$opt_guile_bindings" = "yes"; then
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11331 $as_echo "yes" >&6; }
11332 case "x$with_guile_site_dir" in
11334 # Use the default $(GUILE_SITE).
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile site directory" >&5
11336 $as_echo_n "checking for Guile site directory... " >&6; }
11337 GUILE_SITE=`$GUILE_CONFIG info pkgdatadir`/site
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_SITE" >&5
11339 $as_echo "$GUILE_SITE" >&6; }
11344 # Automatically derive $(GUILE_SITE) from $(pkgdatadir). This
11345 # hack is used to allow `distcheck' to work (see
11346 # `DISTCHECK_CONFIGURE_FLAGS' in the top-level `Makefile.am').
11347 GUILE_SITE="\$(datadir)/guile/site"
11351 # Use the user-specified directory as $(GUILE_SITE).
11352 GUILE_SITE="$with_guile_site_dir"
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports -fgnu89-inline" >&5
11357 $as_echo_n "checking whether gcc supports -fgnu89-inline... " >&6; }
11358 _gcc_cflags_save="$CFLAGS"
11359 CFLAGS="${CFLAGS} -fgnu89-inline"
11360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h. */
11371 if ac_fn_c_try_compile "$LINENO"; then :
11376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnu89_inline" >&5
11378 $as_echo "$gnu89_inline" >&6; }
11379 CFLAGS="$_gcc_cflags_save"
11381 # Optional Guile functions.
11382 save_CFLAGS="$CFLAGS"
11384 CFLAGS="$CFLAGS $GUILE_CFLAGS"
11385 LIBS="$LIBS $GUILE_LDFLAGS"
11386 for ac_func in scm_gc_malloc_pointerless
11388 ac_fn_c_check_func "$LINENO" "scm_gc_malloc_pointerless" "ac_cv_func_scm_gc_malloc_pointerless"
11389 if test "x$ac_cv_func_scm_gc_malloc_pointerless" = xyes; then :
11390 cat >>confdefs.h <<_ACEOF
11391 #define HAVE_SCM_GC_MALLOC_POINTERLESS 1
11397 CFLAGS="$save_CFLAGS"
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11401 $as_echo "no" >&6; }
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A sufficiently recent GNU Guile not found. Guile bindings not built." >&5
11403 $as_echo "$as_me: WARNING: A sufficiently recent GNU Guile not found. Guile bindings not built." >&2;}
11404 opt_guile_bindings=no
11408 if test "$opt_guile_bindings" = "yes"; then
11410 HAVE_GUILE_FALSE='#'
11412 HAVE_GUILE_TRUE='#'
11416 if test "$gnu89_inline" = "yes"]; then
11417 HAVE_GCC_GNU89_INLINE_OPTION_TRUE=
11418 HAVE_GCC_GNU89_INLINE_OPTION_FALSE='#'
11420 HAVE_GCC_GNU89_INLINE_OPTION_TRUE='#'
11421 HAVE_GCC_GNU89_INLINE_OPTION_FALSE=
11424 if test "$GCC" = "yes"; then
11436 # Check whether --with-included-libcfg was given.
11437 if test "${with_included_libcfg+set}" = set; then :
11438 withval=$with_included_libcfg; libcfg_enabled=$withval
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cfg_get_context in -lcfg+" >&5
11442 $as_echo_n "checking for cfg_get_context in -lcfg+... " >&6; }
11443 if ${ac_cv_lib_cfgp_cfg_get_context+:} false; then :
11444 $as_echo_n "(cached) " >&6
11446 ac_check_lib_save_LIBS=$LIBS
11447 LIBS="-lcfg+ $LIBS"
11448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449 /* end confdefs.h. */
11451 /* Override any GCC internal prototype to avoid an error.
11452 Use char because int might match the return type of a GCC
11453 builtin and then its argument prototype would still apply. */
11457 char cfg_get_context ();
11461 return cfg_get_context ();
11466 if ac_fn_c_try_link "$LINENO"; then :
11467 ac_cv_lib_cfgp_cfg_get_context=yes
11469 ac_cv_lib_cfgp_cfg_get_context=no
11471 rm -f core conftest.err conftest.$ac_objext \
11472 conftest$ac_exeext conftest.$ac_ext
11473 LIBS=$ac_check_lib_save_LIBS
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfgp_cfg_get_context" >&5
11476 $as_echo "$ac_cv_lib_cfgp_cfg_get_context" >&6; }
11477 if test "x$ac_cv_lib_cfgp_cfg_get_context" = xyes; then :
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11483 *** Libcfg+ was not found. Will use the included one." >&5
11484 $as_echo "$as_me: WARNING:
11486 *** Libcfg+ was not found. Will use the included one." >&2;}
11492 if test "$libcfg_enabled" = "no"; then
11494 HAVE_LIBCFG_FALSE='#'
11496 HAVE_LIBCFG_TRUE='#'
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libcfg" >&5
11503 $as_echo_n "checking whether to use the included libcfg... " >&6; }
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcfg_enabled" >&5
11505 $as_echo "$libcfg_enabled" >&6; }
11507 enable_win32_dll=yes
11510 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11511 if test -n "$ac_tool_prefix"; then
11512 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11513 set dummy ${ac_tool_prefix}as; ac_word=$2
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11515 $as_echo_n "checking for $ac_word... " >&6; }
11516 if ${ac_cv_prog_AS+:} false; then :
11517 $as_echo_n "(cached) " >&6
11519 if test -n "$AS"; then
11520 ac_cv_prog_AS="$AS" # Let the user override the test.
11522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11523 for as_dir in $PATH
11526 test -z "$as_dir" && as_dir=.
11527 for ac_exec_ext in '' $ac_executable_extensions; do
11528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11529 ac_cv_prog_AS="${ac_tool_prefix}as"
11530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11540 if test -n "$AS"; then
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11542 $as_echo "$AS" >&6; }
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11545 $as_echo "no" >&6; }
11550 if test -z "$ac_cv_prog_AS"; then
11552 # Extract the first word of "as", so it can be a program name with args.
11553 set dummy as; ac_word=$2
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11555 $as_echo_n "checking for $ac_word... " >&6; }
11556 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11557 $as_echo_n "(cached) " >&6
11559 if test -n "$ac_ct_AS"; then
11560 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563 for as_dir in $PATH
11566 test -z "$as_dir" && as_dir=.
11567 for ac_exec_ext in '' $ac_executable_extensions; do
11568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11569 ac_cv_prog_ac_ct_AS="as"
11570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11579 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11580 if test -n "$ac_ct_AS"; then
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11582 $as_echo "$ac_ct_AS" >&6; }
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11585 $as_echo "no" >&6; }
11588 if test "x$ac_ct_AS" = x; then
11591 case $cross_compiling:$ac_tool_warned in
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11595 ac_tool_warned=yes ;;
11600 AS="$ac_cv_prog_AS"
11603 if test -n "$ac_tool_prefix"; then
11604 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11605 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11607 $as_echo_n "checking for $ac_word... " >&6; }
11608 if ${ac_cv_prog_DLLTOOL+:} false; then :
11609 $as_echo_n "(cached) " >&6
11611 if test -n "$DLLTOOL"; then
11612 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11615 for as_dir in $PATH
11618 test -z "$as_dir" && as_dir=.
11619 for ac_exec_ext in '' $ac_executable_extensions; do
11620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11621 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11631 DLLTOOL=$ac_cv_prog_DLLTOOL
11632 if test -n "$DLLTOOL"; then
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11634 $as_echo "$DLLTOOL" >&6; }
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11637 $as_echo "no" >&6; }
11642 if test -z "$ac_cv_prog_DLLTOOL"; then
11643 ac_ct_DLLTOOL=$DLLTOOL
11644 # Extract the first word of "dlltool", so it can be a program name with args.
11645 set dummy dlltool; ac_word=$2
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11647 $as_echo_n "checking for $ac_word... " >&6; }
11648 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11649 $as_echo_n "(cached) " >&6
11651 if test -n "$ac_ct_DLLTOOL"; then
11652 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655 for as_dir in $PATH
11658 test -z "$as_dir" && as_dir=.
11659 for ac_exec_ext in '' $ac_executable_extensions; do
11660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11661 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11671 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11672 if test -n "$ac_ct_DLLTOOL"; then
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11674 $as_echo "$ac_ct_DLLTOOL" >&6; }
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11677 $as_echo "no" >&6; }
11680 if test "x$ac_ct_DLLTOOL" = x; then
11683 case $cross_compiling:$ac_tool_warned in
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11687 ac_tool_warned=yes ;;
11689 DLLTOOL=$ac_ct_DLLTOOL
11692 DLLTOOL="$ac_cv_prog_DLLTOOL"
11695 if test -n "$ac_tool_prefix"; then
11696 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11697 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11699 $as_echo_n "checking for $ac_word... " >&6; }
11700 if ${ac_cv_prog_OBJDUMP+:} false; then :
11701 $as_echo_n "(cached) " >&6
11703 if test -n "$OBJDUMP"; then
11704 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707 for as_dir in $PATH
11710 test -z "$as_dir" && as_dir=.
11711 for ac_exec_ext in '' $ac_executable_extensions; do
11712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11713 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11723 OBJDUMP=$ac_cv_prog_OBJDUMP
11724 if test -n "$OBJDUMP"; then
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11726 $as_echo "$OBJDUMP" >&6; }
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11729 $as_echo "no" >&6; }
11734 if test -z "$ac_cv_prog_OBJDUMP"; then
11735 ac_ct_OBJDUMP=$OBJDUMP
11736 # Extract the first word of "objdump", so it can be a program name with args.
11737 set dummy objdump; ac_word=$2
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739 $as_echo_n "checking for $ac_word... " >&6; }
11740 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11741 $as_echo_n "(cached) " >&6
11743 if test -n "$ac_ct_OBJDUMP"; then
11744 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747 for as_dir in $PATH
11750 test -z "$as_dir" && as_dir=.
11751 for ac_exec_ext in '' $ac_executable_extensions; do
11752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11753 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11763 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11764 if test -n "$ac_ct_OBJDUMP"; then
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11766 $as_echo "$ac_ct_OBJDUMP" >&6; }
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 $as_echo "no" >&6; }
11772 if test "x$ac_ct_OBJDUMP" = x; then
11775 case $cross_compiling:$ac_tool_warned in
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11779 ac_tool_warned=yes ;;
11781 OBJDUMP=$ac_ct_OBJDUMP
11784 OBJDUMP="$ac_cv_prog_OBJDUMP"
11790 test -z "$AS" && AS=as
11796 test -z "$DLLTOOL" && DLLTOOL=dlltool
11802 test -z "$OBJDUMP" && OBJDUMP=objdump
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11813 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11818 macro_version='2.4.2'
11819 macro_revision='1.3337'
11833 ltmain="$ac_aux_dir/ltmain.sh"
11835 # Backslashify metacharacters that are still active within
11836 # double-quoted strings.
11837 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11839 # Same as above, but do not quote variable references.
11840 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11842 # Sed substitution to delay expansion of an escaped shell variable in a
11843 # double_quote_subst'ed string.
11844 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11846 # Sed substitution to delay expansion of an escaped single quote.
11847 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11849 # Sed substitution to avoid accidental globbing in evaled expressions
11850 no_glob_subst='s/\*/\\\*/g'
11852 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11853 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11854 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11857 $as_echo_n "checking how to print strings... " >&6; }
11858 # Test print first, because it will be a builtin if present.
11859 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11860 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11862 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11865 # Use this function as a fallback that always works.
11866 func_fallback_echo ()
11868 eval 'cat <<_LTECHO_EOF
11872 ECHO='func_fallback_echo'
11875 # func_echo_all arg...
11876 # Invoke $ECHO with all args, space-separated.
11883 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11884 $as_echo "printf" >&6; } ;;
11885 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11886 $as_echo "print -r" >&6; } ;;
11887 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11888 $as_echo "cat" >&6; } ;;
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11905 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11906 if ${ac_cv_path_SED+:} false; then :
11907 $as_echo_n "(cached) " >&6
11909 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11910 for ac_i in 1 2 3 4 5 6 7; do
11911 ac_script="$ac_script$as_nl$ac_script"
11913 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11914 { ac_script=; unset ac_script;}
11915 if test -z "$SED"; then
11916 ac_path_SED_found=false
11917 # Loop through the user's path and test for each of PROGNAME-LIST
11918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11919 for as_dir in $PATH
11922 test -z "$as_dir" && as_dir=.
11923 for ac_prog in sed gsed; do
11924 for ac_exec_ext in '' $ac_executable_extensions; do
11925 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11926 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11927 # Check for GNU ac_path_SED and select it if it is found.
11928 # Check for GNU $ac_path_SED
11929 case `"$ac_path_SED" --version 2>&1` in
11931 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11934 $as_echo_n 0123456789 >"conftest.in"
11937 cat "conftest.in" "conftest.in" >"conftest.tmp"
11938 mv "conftest.tmp" "conftest.in"
11939 cp "conftest.in" "conftest.nl"
11940 $as_echo '' >> "conftest.nl"
11941 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11942 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11943 as_fn_arith $ac_count + 1 && ac_count=$as_val
11944 if test $ac_count -gt ${ac_path_SED_max-0}; then
11945 # Best one so far, save it but keep looking for a better one
11946 ac_cv_path_SED="$ac_path_SED"
11947 ac_path_SED_max=$ac_count
11949 # 10*(2^10) chars as input seems more than enough
11950 test $ac_count -gt 10 && break
11952 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11955 $ac_path_SED_found && break 3
11960 if test -z "$ac_cv_path_SED"; then
11961 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11964 ac_cv_path_SED=$SED
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11969 $as_echo "$ac_cv_path_SED" >&6; }
11970 SED="$ac_cv_path_SED"
11973 test -z "$SED" && SED=sed
11974 Xsed="$SED -e 1s/^X//"
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11987 $as_echo_n "checking for fgrep... " >&6; }
11988 if ${ac_cv_path_FGREP+:} false; then :
11989 $as_echo_n "(cached) " >&6
11991 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11992 then ac_cv_path_FGREP="$GREP -F"
11994 if test -z "$FGREP"; then
11995 ac_path_FGREP_found=false
11996 # Loop through the user's path and test for each of PROGNAME-LIST
11997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12001 test -z "$as_dir" && as_dir=.
12002 for ac_prog in fgrep; do
12003 for ac_exec_ext in '' $ac_executable_extensions; do
12004 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12005 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12006 # Check for GNU ac_path_FGREP and select it if it is found.
12007 # Check for GNU $ac_path_FGREP
12008 case `"$ac_path_FGREP" --version 2>&1` in
12010 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12013 $as_echo_n 0123456789 >"conftest.in"
12016 cat "conftest.in" "conftest.in" >"conftest.tmp"
12017 mv "conftest.tmp" "conftest.in"
12018 cp "conftest.in" "conftest.nl"
12019 $as_echo 'FGREP' >> "conftest.nl"
12020 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12022 as_fn_arith $ac_count + 1 && ac_count=$as_val
12023 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12024 # Best one so far, save it but keep looking for a better one
12025 ac_cv_path_FGREP="$ac_path_FGREP"
12026 ac_path_FGREP_max=$ac_count
12028 # 10*(2^10) chars as input seems more than enough
12029 test $ac_count -gt 10 && break
12031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12034 $ac_path_FGREP_found && break 3
12039 if test -z "$ac_cv_path_FGREP"; then
12040 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12043 ac_cv_path_FGREP=$FGREP
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12049 $as_echo "$ac_cv_path_FGREP" >&6; }
12050 FGREP="$ac_cv_path_FGREP"
12053 test -z "$GREP" && GREP=grep
12073 # Check whether --with-gnu-ld was given.
12074 if test "${with_gnu_ld+set}" = set; then :
12075 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12081 if test "$GCC" = yes; then
12082 # Check if gcc -print-prog-name=ld gives a path.
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12084 $as_echo_n "checking for ld used by $CC... " >&6; }
12087 # gcc leaves a trailing carriage return which upsets mingw
12088 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12090 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12093 # Accept absolute paths.
12095 re_direlt='/[^/][^/]*/\.\./'
12096 # Canonicalize the pathname of ld
12097 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12098 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12099 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12101 test -z "$LD" && LD="$ac_prog"
12104 # If it fails, then pretend we aren't using GCC.
12108 # If it is relative, then search for the first ld in PATH.
12109 with_gnu_ld=unknown
12112 elif test "$with_gnu_ld" = yes; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12114 $as_echo_n "checking for GNU ld... " >&6; }
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12117 $as_echo_n "checking for non-GNU ld... " >&6; }
12119 if ${lt_cv_path_LD+:} false; then :
12120 $as_echo_n "(cached) " >&6
12122 if test -z "$LD"; then
12123 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12124 for ac_dir in $PATH; do
12126 test -z "$ac_dir" && ac_dir=.
12127 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12128 lt_cv_path_LD="$ac_dir/$ac_prog"
12129 # Check to see if the program is GNU ld. I'd rather use --version,
12130 # but apparently some variants of GNU ld only accept -v.
12131 # Break only if it was the GNU/non-GNU ld that we prefer.
12132 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12133 *GNU* | *'with BFD'*)
12134 test "$with_gnu_ld" != no && break
12137 test "$with_gnu_ld" != yes && break
12144 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12148 LD="$lt_cv_path_LD"
12149 if test -n "$LD"; then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12151 $as_echo "$LD" >&6; }
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12156 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12158 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12159 if ${lt_cv_prog_gnu_ld+:} false; then :
12160 $as_echo_n "(cached) " >&6
12162 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12163 case `$LD -v 2>&1 </dev/null` in
12164 *GNU* | *'with BFD'*)
12165 lt_cv_prog_gnu_ld=yes
12168 lt_cv_prog_gnu_ld=no
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12173 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12174 with_gnu_ld=$lt_cv_prog_gnu_ld
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12185 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12186 if ${lt_cv_path_NM+:} false; then :
12187 $as_echo_n "(cached) " >&6
12189 if test -n "$NM"; then
12190 # Let the user override the test.
12191 lt_cv_path_NM="$NM"
12193 lt_nm_to_check="${ac_tool_prefix}nm"
12194 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12195 lt_nm_to_check="$lt_nm_to_check nm"
12197 for lt_tmp_nm in $lt_nm_to_check; do
12198 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12199 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12201 test -z "$ac_dir" && ac_dir=.
12202 tmp_nm="$ac_dir/$lt_tmp_nm"
12203 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12204 # Check to see if the nm accepts a BSD-compat flag.
12205 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12206 # nm: unknown option "B" ignored
12207 # Tru64's nm complains that /dev/null is an invalid object file
12208 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12209 */dev/null* | *'Invalid file or object type'*)
12210 lt_cv_path_NM="$tmp_nm -B"
12214 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12216 lt_cv_path_NM="$tmp_nm -p"
12220 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12221 continue # so that we can try to find one that supports BSD flags
12230 : ${lt_cv_path_NM=no}
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12234 $as_echo "$lt_cv_path_NM" >&6; }
12235 if test "$lt_cv_path_NM" != "no"; then
12236 NM="$lt_cv_path_NM"
12238 # Didn't find any BSD compatible name lister, look for dumpbin.
12239 if test -n "$DUMPBIN"; then :
12240 # Let the user override the test.
12242 if test -n "$ac_tool_prefix"; then
12243 for ac_prog in dumpbin "link -dump"
12245 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12246 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12248 $as_echo_n "checking for $ac_word... " >&6; }
12249 if ${ac_cv_prog_DUMPBIN+:} false; then :
12250 $as_echo_n "(cached) " >&6
12252 if test -n "$DUMPBIN"; then
12253 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256 for as_dir in $PATH
12259 test -z "$as_dir" && as_dir=.
12260 for ac_exec_ext in '' $ac_executable_extensions; do
12261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12262 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12272 DUMPBIN=$ac_cv_prog_DUMPBIN
12273 if test -n "$DUMPBIN"; then
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12275 $as_echo "$DUMPBIN" >&6; }
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 $as_echo "no" >&6; }
12282 test -n "$DUMPBIN" && break
12285 if test -z "$DUMPBIN"; then
12286 ac_ct_DUMPBIN=$DUMPBIN
12287 for ac_prog in dumpbin "link -dump"
12289 # Extract the first word of "$ac_prog", so it can be a program name with args.
12290 set dummy $ac_prog; ac_word=$2
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12292 $as_echo_n "checking for $ac_word... " >&6; }
12293 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
12294 $as_echo_n "(cached) " >&6
12296 if test -n "$ac_ct_DUMPBIN"; then
12297 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12300 for as_dir in $PATH
12303 test -z "$as_dir" && as_dir=.
12304 for ac_exec_ext in '' $ac_executable_extensions; do
12305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12306 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12316 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12317 if test -n "$ac_ct_DUMPBIN"; then
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12319 $as_echo "$ac_ct_DUMPBIN" >&6; }
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12322 $as_echo "no" >&6; }
12326 test -n "$ac_ct_DUMPBIN" && break
12329 if test "x$ac_ct_DUMPBIN" = x; then
12332 case $cross_compiling:$ac_tool_warned in
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12336 ac_tool_warned=yes ;;
12338 DUMPBIN=$ac_ct_DUMPBIN
12342 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12344 DUMPBIN="$DUMPBIN -symbols"
12352 if test "$DUMPBIN" != ":"; then
12356 test -z "$NM" && NM=nm
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12364 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12365 if ${lt_cv_nm_interface+:} false; then :
12366 $as_echo_n "(cached) " >&6
12368 lt_cv_nm_interface="BSD nm"
12369 echo "int some_variable = 0;" > conftest.$ac_ext
12370 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12371 (eval "$ac_compile" 2>conftest.err)
12372 cat conftest.err >&5
12373 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12374 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12375 cat conftest.err >&5
12376 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12377 cat conftest.out >&5
12378 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12379 lt_cv_nm_interface="MS dumpbin"
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12384 $as_echo "$lt_cv_nm_interface" >&6; }
12386 # find the maximum length of command line arguments
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12388 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12389 if ${lt_cv_sys_max_cmd_len+:} false; then :
12390 $as_echo_n "(cached) " >&6
12397 # On DJGPP, this test can blow up pretty badly due to problems in libc
12398 # (any single argument exceeding 2000 bytes causes a buffer overrun
12399 # during glob expansion). Even if it were fixed, the result of this
12400 # check would be larger than it should be.
12401 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12405 # Under GNU Hurd, this test is not required because there is
12406 # no limit to the length of command line arguments.
12407 # Libtool will interpret -1 as no limit whatsoever
12408 lt_cv_sys_max_cmd_len=-1;
12411 cygwin* | mingw* | cegcc*)
12412 # On Win9x/ME, this test blows up -- it succeeds, but takes
12413 # about 5 minutes as the teststring grows exponentially.
12414 # Worse, since 9x/ME are not pre-emptively multitasking,
12415 # you end up with a "frozen" computer, even though with patience
12416 # the test eventually succeeds (with a max line length of 256k).
12417 # Instead, let's just punt: use the minimum linelength reported by
12418 # all of the supported platforms: 8192 (on NT/2K/XP).
12419 lt_cv_sys_max_cmd_len=8192;
12423 # On MiNT this can take a long time and run out of memory.
12424 lt_cv_sys_max_cmd_len=8192;
12428 # On AmigaOS with pdksh, this test takes hours, literally.
12429 # So we just punt and use a minimum line length of 8192.
12430 lt_cv_sys_max_cmd_len=8192;
12433 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12434 # This has been around since 386BSD, at least. Likely further.
12435 if test -x /sbin/sysctl; then
12436 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12437 elif test -x /usr/sbin/sysctl; then
12438 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12440 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12442 # And add a safety zone
12443 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12444 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12448 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12449 lt_cv_sys_max_cmd_len=196608
12453 # The test takes a long time on OS/2.
12454 lt_cv_sys_max_cmd_len=8192
12458 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12459 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12460 # nice to cause kernel panics so lets avoid the loop below.
12461 # First set a reasonable default.
12462 lt_cv_sys_max_cmd_len=16384
12464 if test -x /sbin/sysconfig; then
12465 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12466 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12471 lt_cv_sys_max_cmd_len=102400
12473 sysv5* | sco5v6* | sysv4.2uw2*)
12474 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12475 if test -n "$kargmax"; then
12476 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12478 lt_cv_sys_max_cmd_len=32768
12482 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12483 if test -n "$lt_cv_sys_max_cmd_len"; then
12484 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12485 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12487 # Make teststring a little bigger before we do anything with it.
12488 # a 1K string should be a reasonable start.
12489 for i in 1 2 3 4 5 6 7 8 ; do
12490 teststring=$teststring$teststring
12492 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12493 # If test is not a shell built-in, we'll probably end up computing a
12494 # maximum length that is only half of the actual maximum length, but
12496 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
12497 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12498 test $i != 17 # 1/2 MB should be enough
12501 teststring=$teststring$teststring
12503 # Only check the string length outside the loop.
12504 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12506 # Add a significant safety factor because C++ compilers can tack on
12507 # massive amounts of additional arguments before passing them to the
12508 # linker. It appears as though 1/2 is a usable value.
12509 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12516 if test -n $lt_cv_sys_max_cmd_len ; then
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12518 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12521 $as_echo "none" >&6; }
12523 max_cmd_len=$lt_cv_sys_max_cmd_len
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12535 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12536 # Try some XSI features
12538 ( _lt_dummy="a/b/c"
12539 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
12541 && eval 'test $(( 1 + 1 )) -eq 2 \
12542 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12545 $as_echo "$xsi_shell" >&6; }
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12549 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12551 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12553 && lt_shell_append=yes
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12555 $as_echo "$lt_shell_append" >&6; }
12558 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12568 # test EBCDIC or ASCII
12569 case `echo X|tr X '\101'` in
12570 A) # ASCII based system
12571 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12572 lt_SP2NL='tr \040 \012'
12573 lt_NL2SP='tr \015\012 \040\040'
12575 *) # EBCDIC based system
12576 lt_SP2NL='tr \100 \n'
12577 lt_NL2SP='tr \r\n \100\100'
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12590 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
12591 if ${lt_cv_to_host_file_cmd+:} false; then :
12592 $as_echo_n "(cached) " >&6
12597 *-*-mingw* ) # actually msys
12598 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12601 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12603 * ) # otherwise, assume *nix
12604 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12610 *-*-mingw* ) # actually msys
12611 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12614 lt_cv_to_host_file_cmd=func_convert_file_noop
12616 * ) # otherwise, assume *nix
12617 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12621 * ) # unhandled hosts (and "normal" native builds)
12622 lt_cv_to_host_file_cmd=func_convert_file_noop
12628 to_host_file_cmd=$lt_cv_to_host_file_cmd
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12630 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12637 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
12638 if ${lt_cv_to_tool_file_cmd+:} false; then :
12639 $as_echo_n "(cached) " >&6
12641 #assume ordinary cross tools, or native build.
12642 lt_cv_to_tool_file_cmd=func_convert_file_noop
12646 *-*-mingw* ) # actually msys
12647 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12655 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12657 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12664 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12665 if ${lt_cv_ld_reload_flag+:} false; then :
12666 $as_echo_n "(cached) " >&6
12668 lt_cv_ld_reload_flag='-r'
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12671 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12672 reload_flag=$lt_cv_ld_reload_flag
12673 case $reload_flag in
12675 *) reload_flag=" $reload_flag" ;;
12677 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12679 cygwin* | mingw* | pw32* | cegcc*)
12680 if test "$GCC" != yes; then
12685 if test "$GCC" = yes; then
12686 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12688 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12701 if test -n "$ac_tool_prefix"; then
12702 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12703 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12705 $as_echo_n "checking for $ac_word... " >&6; }
12706 if ${ac_cv_prog_OBJDUMP+:} false; then :
12707 $as_echo_n "(cached) " >&6
12709 if test -n "$OBJDUMP"; then
12710 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12713 for as_dir in $PATH
12716 test -z "$as_dir" && as_dir=.
12717 for ac_exec_ext in '' $ac_executable_extensions; do
12718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12719 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12729 OBJDUMP=$ac_cv_prog_OBJDUMP
12730 if test -n "$OBJDUMP"; then
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12732 $as_echo "$OBJDUMP" >&6; }
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12735 $as_echo "no" >&6; }
12740 if test -z "$ac_cv_prog_OBJDUMP"; then
12741 ac_ct_OBJDUMP=$OBJDUMP
12742 # Extract the first word of "objdump", so it can be a program name with args.
12743 set dummy objdump; ac_word=$2
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12745 $as_echo_n "checking for $ac_word... " >&6; }
12746 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12747 $as_echo_n "(cached) " >&6
12749 if test -n "$ac_ct_OBJDUMP"; then
12750 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12753 for as_dir in $PATH
12756 test -z "$as_dir" && as_dir=.
12757 for ac_exec_ext in '' $ac_executable_extensions; do
12758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12759 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12769 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12770 if test -n "$ac_ct_OBJDUMP"; then
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12772 $as_echo "$ac_ct_OBJDUMP" >&6; }
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12775 $as_echo "no" >&6; }
12778 if test "x$ac_ct_OBJDUMP" = x; then
12781 case $cross_compiling:$ac_tool_warned in
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12785 ac_tool_warned=yes ;;
12787 OBJDUMP=$ac_ct_OBJDUMP
12790 OBJDUMP="$ac_cv_prog_OBJDUMP"
12793 test -z "$OBJDUMP" && OBJDUMP=objdump
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12801 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12802 if ${lt_cv_deplibs_check_method+:} false; then :
12803 $as_echo_n "(cached) " >&6
12805 lt_cv_file_magic_cmd='$MAGIC_CMD'
12806 lt_cv_file_magic_test_file=
12807 lt_cv_deplibs_check_method='unknown'
12808 # Need to set the preceding variable on all platforms that support
12809 # interlibrary dependencies.
12810 # 'none' -- dependencies not supported.
12811 # `unknown' -- same as none, but documents that we really don't know.
12812 # 'pass_all' -- all dependencies passed with no checks.
12813 # 'test_compile' -- check by making test program.
12814 # 'file_magic [[regex]]' -- check by looking for files in library path
12815 # which responds to the $file_magic_cmd with a given extended regex.
12816 # If you have `file' or equivalent on your system and you're not sure
12817 # whether `pass_all' will *always* work, you probably want this one.
12821 lt_cv_deplibs_check_method=pass_all
12825 lt_cv_deplibs_check_method=pass_all
12829 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12830 lt_cv_file_magic_cmd='/usr/bin/file -L'
12831 lt_cv_file_magic_test_file=/shlib/libc.so
12835 # func_win32_libid is a shell function defined in ltmain.sh
12836 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12837 lt_cv_file_magic_cmd='func_win32_libid'
12841 # Base MSYS/MinGW do not provide the 'file' command needed by
12842 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12843 # unless we find 'file', for example because we are cross-compiling.
12844 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12845 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12846 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12847 lt_cv_file_magic_cmd='func_win32_libid'
12849 # Keep this pattern in sync with the one in func_win32_libid.
12850 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12851 lt_cv_file_magic_cmd='$OBJDUMP -f'
12856 # use the weaker test based on 'objdump'. See mingw*.
12857 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12858 lt_cv_file_magic_cmd='$OBJDUMP -f'
12861 darwin* | rhapsody*)
12862 lt_cv_deplibs_check_method=pass_all
12865 freebsd* | dragonfly*)
12866 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12869 # Not sure whether the presence of OpenBSD here was a mistake.
12870 # Let's accept both of them until this is cleared up.
12871 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12872 lt_cv_file_magic_cmd=/usr/bin/file
12873 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12877 lt_cv_deplibs_check_method=pass_all
12882 lt_cv_deplibs_check_method=pass_all
12886 lt_cv_deplibs_check_method=pass_all
12889 hpux10.20* | hpux11*)
12890 lt_cv_file_magic_cmd=/usr/bin/file
12893 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12894 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12897 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]'
12898 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12901 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12902 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12908 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12909 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12912 irix5* | irix6* | nonstopux*)
12914 *-32|*"-32 ") libmagic=32-bit;;
12915 *-n32|*"-n32 ") libmagic=N32;;
12916 *-64|*"-64 ") libmagic=64-bit;;
12917 *) libmagic=never-match;;
12919 lt_cv_deplibs_check_method=pass_all
12922 # This must be glibc/ELF.
12923 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12924 lt_cv_deplibs_check_method=pass_all
12927 netbsd* | netbsdelf*-gnu)
12928 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12931 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12936 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12937 lt_cv_file_magic_cmd=/usr/bin/file
12938 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12942 lt_cv_deplibs_check_method=pass_all
12946 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12949 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12953 osf3* | osf4* | osf5*)
12954 lt_cv_deplibs_check_method=pass_all
12958 lt_cv_deplibs_check_method=pass_all
12962 lt_cv_deplibs_check_method=pass_all
12965 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12966 lt_cv_deplibs_check_method=pass_all
12970 case $host_vendor in
12972 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]'
12973 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12976 lt_cv_deplibs_check_method=pass_all
12979 lt_cv_file_magic_cmd='/bin/file'
12980 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12983 lt_cv_file_magic_cmd='/bin/file'
12984 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12985 lt_cv_file_magic_test_file=/lib/libc.so
12988 lt_cv_deplibs_check_method=pass_all
12991 lt_cv_deplibs_check_method=pass_all
12997 lt_cv_deplibs_check_method=pass_all
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13003 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13007 if test "$build" = "$host"; then
13010 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
13011 want_nocaseglob=yes
13013 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
13019 file_magic_cmd=$lt_cv_file_magic_cmd
13020 deplibs_check_method=$lt_cv_deplibs_check_method
13021 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13044 if test -n "$ac_tool_prefix"; then
13045 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13046 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13048 $as_echo_n "checking for $ac_word... " >&6; }
13049 if ${ac_cv_prog_DLLTOOL+:} false; then :
13050 $as_echo_n "(cached) " >&6
13052 if test -n "$DLLTOOL"; then
13053 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13056 for as_dir in $PATH
13059 test -z "$as_dir" && as_dir=.
13060 for ac_exec_ext in '' $ac_executable_extensions; do
13061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13062 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13072 DLLTOOL=$ac_cv_prog_DLLTOOL
13073 if test -n "$DLLTOOL"; then
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13075 $as_echo "$DLLTOOL" >&6; }
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13078 $as_echo "no" >&6; }
13083 if test -z "$ac_cv_prog_DLLTOOL"; then
13084 ac_ct_DLLTOOL=$DLLTOOL
13085 # Extract the first word of "dlltool", so it can be a program name with args.
13086 set dummy dlltool; ac_word=$2
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13088 $as_echo_n "checking for $ac_word... " >&6; }
13089 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
13090 $as_echo_n "(cached) " >&6
13092 if test -n "$ac_ct_DLLTOOL"; then
13093 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13096 for as_dir in $PATH
13099 test -z "$as_dir" && as_dir=.
13100 for ac_exec_ext in '' $ac_executable_extensions; do
13101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13102 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13112 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13113 if test -n "$ac_ct_DLLTOOL"; then
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13115 $as_echo "$ac_ct_DLLTOOL" >&6; }
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118 $as_echo "no" >&6; }
13121 if test "x$ac_ct_DLLTOOL" = x; then
13124 case $cross_compiling:$ac_tool_warned in
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13128 ac_tool_warned=yes ;;
13130 DLLTOOL=$ac_ct_DLLTOOL
13133 DLLTOOL="$ac_cv_prog_DLLTOOL"
13136 test -z "$DLLTOOL" && DLLTOOL=dlltool
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
13145 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
13146 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
13147 $as_echo_n "(cached) " >&6
13149 lt_cv_sharedlib_from_linklib_cmd='unknown'
13152 cygwin* | mingw* | pw32* | cegcc*)
13153 # two different shell functions defined in ltmain.sh
13154 # decide which to use based on capabilities of $DLLTOOL
13155 case `$DLLTOOL --help 2>&1` in
13156 *--identify-strict*)
13157 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
13160 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
13165 # fallback: assume linklib IS sharedlib
13166 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
13172 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
13173 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
13174 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
13182 if test -n "$ac_tool_prefix"; then
13185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13188 $as_echo_n "checking for $ac_word... " >&6; }
13189 if ${ac_cv_prog_AR+:} false; then :
13190 $as_echo_n "(cached) " >&6
13192 if test -n "$AR"; then
13193 ac_cv_prog_AR="$AR" # Let the user override the test.
13195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13196 for as_dir in $PATH
13199 test -z "$as_dir" && as_dir=.
13200 for ac_exec_ext in '' $ac_executable_extensions; do
13201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13202 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13213 if test -n "$AR"; then
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13215 $as_echo "$AR" >&6; }
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13218 $as_echo "no" >&6; }
13222 test -n "$AR" && break
13225 if test -z "$AR"; then
13229 # Extract the first word of "$ac_prog", so it can be a program name with args.
13230 set dummy $ac_prog; ac_word=$2
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13232 $as_echo_n "checking for $ac_word... " >&6; }
13233 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13234 $as_echo_n "(cached) " >&6
13236 if test -n "$ac_ct_AR"; then
13237 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13240 for as_dir in $PATH
13243 test -z "$as_dir" && as_dir=.
13244 for ac_exec_ext in '' $ac_executable_extensions; do
13245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13246 ac_cv_prog_ac_ct_AR="$ac_prog"
13247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13256 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13257 if test -n "$ac_ct_AR"; then
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13259 $as_echo "$ac_ct_AR" >&6; }
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262 $as_echo "no" >&6; }
13266 test -n "$ac_ct_AR" && break
13269 if test "x$ac_ct_AR" = x; then
13272 case $cross_compiling:$ac_tool_warned in
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13276 ac_tool_warned=yes ;;
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13296 $as_echo_n "checking for archiver @FILE support... " >&6; }
13297 if ${lt_cv_ar_at_file+:} false; then :
13298 $as_echo_n "(cached) " >&6
13300 lt_cv_ar_at_file=no
13301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13312 if ac_fn_c_try_compile "$LINENO"; then :
13313 echo conftest.$ac_objext > conftest.lst
13314 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13316 (eval $lt_ar_try) 2>&5
13318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13319 test $ac_status = 0; }
13320 if test "$ac_status" -eq 0; then
13321 # Ensure the archiver fails upon bogus file names.
13322 rm -f conftest.$ac_objext libconftest.a
13323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13324 (eval $lt_ar_try) 2>&5
13326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13327 test $ac_status = 0; }
13328 if test "$ac_status" -ne 0; then
13332 rm -f conftest.* libconftest.a
13335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13339 $as_echo "$lt_cv_ar_at_file" >&6; }
13341 if test "x$lt_cv_ar_at_file" = xno; then
13342 archiver_list_spec=
13344 archiver_list_spec=$lt_cv_ar_at_file
13353 if test -n "$ac_tool_prefix"; then
13354 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13355 set dummy ${ac_tool_prefix}strip; ac_word=$2
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13357 $as_echo_n "checking for $ac_word... " >&6; }
13358 if ${ac_cv_prog_STRIP+:} false; then :
13359 $as_echo_n "(cached) " >&6
13361 if test -n "$STRIP"; then
13362 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13365 for as_dir in $PATH
13368 test -z "$as_dir" && as_dir=.
13369 for ac_exec_ext in '' $ac_executable_extensions; do
13370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13371 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13381 STRIP=$ac_cv_prog_STRIP
13382 if test -n "$STRIP"; then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13384 $as_echo "$STRIP" >&6; }
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13387 $as_echo "no" >&6; }
13392 if test -z "$ac_cv_prog_STRIP"; then
13394 # Extract the first word of "strip", so it can be a program name with args.
13395 set dummy strip; ac_word=$2
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13397 $as_echo_n "checking for $ac_word... " >&6; }
13398 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13399 $as_echo_n "(cached) " >&6
13401 if test -n "$ac_ct_STRIP"; then
13402 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13405 for as_dir in $PATH
13408 test -z "$as_dir" && as_dir=.
13409 for ac_exec_ext in '' $ac_executable_extensions; do
13410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13411 ac_cv_prog_ac_ct_STRIP="strip"
13412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13421 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13422 if test -n "$ac_ct_STRIP"; then
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13424 $as_echo "$ac_ct_STRIP" >&6; }
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427 $as_echo "no" >&6; }
13430 if test "x$ac_ct_STRIP" = x; then
13433 case $cross_compiling:$ac_tool_warned in
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13437 ac_tool_warned=yes ;;
13442 STRIP="$ac_cv_prog_STRIP"
13445 test -z "$STRIP" && STRIP=:
13452 if test -n "$ac_tool_prefix"; then
13453 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13454 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13456 $as_echo_n "checking for $ac_word... " >&6; }
13457 if ${ac_cv_prog_RANLIB+:} false; then :
13458 $as_echo_n "(cached) " >&6
13460 if test -n "$RANLIB"; then
13461 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13464 for as_dir in $PATH
13467 test -z "$as_dir" && as_dir=.
13468 for ac_exec_ext in '' $ac_executable_extensions; do
13469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13470 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13480 RANLIB=$ac_cv_prog_RANLIB
13481 if test -n "$RANLIB"; then
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13483 $as_echo "$RANLIB" >&6; }
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13486 $as_echo "no" >&6; }
13491 if test -z "$ac_cv_prog_RANLIB"; then
13492 ac_ct_RANLIB=$RANLIB
13493 # Extract the first word of "ranlib", so it can be a program name with args.
13494 set dummy ranlib; ac_word=$2
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13496 $as_echo_n "checking for $ac_word... " >&6; }
13497 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13498 $as_echo_n "(cached) " >&6
13500 if test -n "$ac_ct_RANLIB"; then
13501 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13504 for as_dir in $PATH
13507 test -z "$as_dir" && as_dir=.
13508 for ac_exec_ext in '' $ac_executable_extensions; do
13509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13510 ac_cv_prog_ac_ct_RANLIB="ranlib"
13511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13520 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13521 if test -n "$ac_ct_RANLIB"; then
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13523 $as_echo "$ac_ct_RANLIB" >&6; }
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526 $as_echo "no" >&6; }
13529 if test "x$ac_ct_RANLIB" = x; then
13532 case $cross_compiling:$ac_tool_warned in
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13536 ac_tool_warned=yes ;;
13538 RANLIB=$ac_ct_RANLIB
13541 RANLIB="$ac_cv_prog_RANLIB"
13544 test -z "$RANLIB" && RANLIB=:
13551 # Determine commands to create old-style static archives.
13552 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13553 old_postinstall_cmds='chmod 644 $oldlib'
13554 old_postuninstall_cmds=
13556 if test -n "$RANLIB"; then
13559 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13562 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13565 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13570 lock_old_archive_extraction=yes ;;
13572 lock_old_archive_extraction=no ;;
13613 # If no C compiler was specified, use CC.
13616 # If no C compiler flags were specified, use CFLAGS.
13617 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13619 # Allow CC to be a program name with arguments.
13623 # Check for command to grab the raw symbol name followed by C symbol from nm.
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13625 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13626 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
13627 $as_echo_n "(cached) " >&6
13630 # These are sane defaults that work on at least a few old systems.
13631 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13633 # Character class describing NM global symbol codes.
13634 symcode='[BCDEGRST]'
13636 # Regexp to match symbols that can be accessed directly from C.
13637 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13639 # Define system-specific variables.
13644 cygwin* | mingw* | pw32* | cegcc*)
13645 symcode='[ABCDGISTW]'
13648 if test "$host_cpu" = ia64; then
13649 symcode='[ABCDEGRST]'
13652 irix* | nonstopux*)
13653 symcode='[BCDEGRST]'
13656 symcode='[BCDEGQRST]'
13667 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13675 # If we're using GNU nm, then use its standard symbol codes.
13676 case `$NM -V 2>&1` in
13677 *GNU* | *'with BFD'*)
13678 symcode='[ABCDGIRSTW]' ;;
13681 # Transform an extracted symbol line into a proper C declaration.
13682 # Some systems (esp. on ia64) link data and code symbols differently,
13683 # so use this general approach.
13684 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13686 # Transform an extracted symbol line into symbol name and symbol address
13687 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13688 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'"
13690 # Handle CRLF in mingw tool chain
13694 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13698 # Try without a prefix underscore, then with it.
13699 for ac_symprfx in "" "_"; do
13701 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13702 symxfrm="\\1 $ac_symprfx\\2 \\2"
13704 # Write the raw and C identifiers.
13705 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13706 # Fake it for dumpbin and say T for any non-static function
13707 # and D for any global variable.
13708 # Also find C++ and __fastcall symbols from MSVC++,
13709 # which start with @ or ?.
13710 lt_cv_sys_global_symbol_pipe="$AWK '"\
13711 " {last_section=section; section=\$ 3};"\
13712 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13713 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13714 " \$ 0!~/External *\|/{next};"\
13715 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13716 " {if(hide[section]) next};"\
13717 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13718 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13719 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13720 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13721 " ' prfx=^$ac_symprfx"
13723 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13725 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
13727 # Check to see that the pipe works correctly.
13731 cat > conftest.$ac_ext <<_LT_EOF
13736 void nm_test_func(void);
13737 void nm_test_func(void){}
13741 int main(){nm_test_var='a';nm_test_func();return(0);}
13744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13745 (eval $ac_compile) 2>&5
13747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13748 test $ac_status = 0; }; then
13749 # Now try to grab the symbols.
13751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13752 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13755 test $ac_status = 0; } && test -s "$nlist"; then
13756 # Try sorting and uniquifying the output.
13757 if sort "$nlist" | uniq > "$nlist"T; then
13758 mv -f "$nlist"T "$nlist"
13763 # Make sure that we snagged all the symbols we need.
13764 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13765 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13766 cat <<_LT_EOF > conftest.$ac_ext
13767 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
13768 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
13769 /* DATA imports from DLLs on WIN32 con't be const, because runtime
13770 relocations are performed -- see ld's documentation on pseudo-relocs. */
13771 # define LT_DLSYM_CONST
13772 #elif defined(__osf__)
13773 /* This system does not cope well with relocations in const data. */
13774 # define LT_DLSYM_CONST
13776 # define LT_DLSYM_CONST const
13784 # Now generate the symbol file.
13785 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13787 cat <<_LT_EOF >> conftest.$ac_ext
13789 /* The mapping between symbol names and symbols. */
13790 LT_DLSYM_CONST struct {
13794 lt__PROGRAM__LTX_preloaded_symbols[] =
13796 { "@PROGRAM@", (void *) 0 },
13798 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13799 cat <<\_LT_EOF >> conftest.$ac_ext
13803 /* This works around a problem in FreeBSD linker */
13804 #ifdef FREEBSD_WORKAROUND
13805 static const void *lt_preloaded_setup() {
13806 return lt__PROGRAM__LTX_preloaded_symbols;
13814 # Now try linking the two files.
13815 mv conftest.$ac_objext conftstm.$ac_objext
13816 lt_globsym_save_LIBS=$LIBS
13817 lt_globsym_save_CFLAGS=$CFLAGS
13818 LIBS="conftstm.$ac_objext"
13819 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13821 (eval $ac_link) 2>&5
13823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13824 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13827 LIBS=$lt_globsym_save_LIBS
13828 CFLAGS=$lt_globsym_save_CFLAGS
13830 echo "cannot find nm_test_func in $nlist" >&5
13833 echo "cannot find nm_test_var in $nlist" >&5
13836 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13839 echo "$progname: failed program was:" >&5
13840 cat conftest.$ac_ext >&5
13842 rm -rf conftest* conftst*
13844 # Do not use the global_symbol_pipe unless it works.
13845 if test "$pipe_works" = yes; then
13848 lt_cv_sys_global_symbol_pipe=
13854 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13855 lt_cv_sys_global_symbol_to_cdecl=
13857 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13859 $as_echo "failed" >&6; }
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13862 $as_echo "ok" >&6; }
13865 # Response file support.
13866 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13867 nm_file_list_spec='@'
13868 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13869 nm_file_list_spec='@'
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13899 $as_echo_n "checking for sysroot... " >&6; }
13901 # Check whether --with-sysroot was given.
13902 if test "${with_sysroot+set}" = set; then :
13903 withval=$with_sysroot;
13910 case ${with_sysroot} in #(
13912 if test "$GCC" = yes; then
13913 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13917 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
13923 $as_echo "${with_sysroot}" >&6; }
13924 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13929 $as_echo "${lt_sysroot:-no}" >&6; }
13935 # Check whether --enable-libtool-lock was given.
13936 if test "${enable_libtool_lock+set}" = set; then :
13937 enableval=$enable_libtool_lock;
13940 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13942 # Some flags need to be propagated to the compiler or linker for good
13946 # Find out which ABI we are using.
13947 echo 'int i;' > conftest.$ac_ext
13948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13949 (eval $ac_compile) 2>&5
13951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13952 test $ac_status = 0; }; then
13953 case `/usr/bin/file conftest.$ac_objext` in
13955 HPUX_IA64_MODE="32"
13958 HPUX_IA64_MODE="64"
13965 # Find out which ABI we are using.
13966 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13968 (eval $ac_compile) 2>&5
13970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13971 test $ac_status = 0; }; then
13972 if test "$lt_cv_prog_gnu_ld" = yes; then
13973 case `/usr/bin/file conftest.$ac_objext` in
13975 LD="${LD-ld} -melf32bsmip"
13978 LD="${LD-ld} -melf32bmipn32"
13981 LD="${LD-ld} -melf64bmip"
13985 case `/usr/bin/file conftest.$ac_objext` in
14001 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
14002 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14003 # Find out which ABI we are using.
14004 echo 'int i;' > conftest.$ac_ext
14005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14006 (eval $ac_compile) 2>&5
14008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14009 test $ac_status = 0; }; then
14010 case `/usr/bin/file conftest.o` in
14013 x86_64-*kfreebsd*-gnu)
14014 LD="${LD-ld} -m elf_i386_fbsd"
14017 LD="${LD-ld} -m elf_i386"
14019 ppc64-*linux*|powerpc64-*linux*)
14020 LD="${LD-ld} -m elf32ppclinux"
14023 LD="${LD-ld} -m elf_s390"
14026 LD="${LD-ld} -m elf32_sparc"
14032 x86_64-*kfreebsd*-gnu)
14033 LD="${LD-ld} -m elf_x86_64_fbsd"
14036 LD="${LD-ld} -m elf_x86_64"
14038 ppc*-*linux*|powerpc*-*linux*)
14039 LD="${LD-ld} -m elf64ppc"
14041 s390*-*linux*|s390*-*tpf*)
14042 LD="${LD-ld} -m elf64_s390"
14045 LD="${LD-ld} -m elf64_sparc"
14055 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14056 SAVE_CFLAGS="$CFLAGS"
14057 CFLAGS="$CFLAGS -belf"
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14059 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14060 if ${lt_cv_cc_needs_belf+:} false; then :
14061 $as_echo_n "(cached) " >&6
14064 ac_cpp='$CPP $CPPFLAGS'
14065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14070 /* end confdefs.h. */
14080 if ac_fn_c_try_link "$LINENO"; then :
14081 lt_cv_cc_needs_belf=yes
14083 lt_cv_cc_needs_belf=no
14085 rm -f core conftest.err conftest.$ac_objext \
14086 conftest$ac_exeext conftest.$ac_ext
14088 ac_cpp='$CPP $CPPFLAGS'
14089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14095 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14096 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14097 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14098 CFLAGS="$SAVE_CFLAGS"
14102 # Find out which ABI we are using.
14103 echo 'int i;' > conftest.$ac_ext
14104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14105 (eval $ac_compile) 2>&5
14107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14108 test $ac_status = 0; }; then
14109 case `/usr/bin/file conftest.o` in
14111 case $lt_cv_prog_gnu_ld in
14115 LD="${LD-ld} -m elf_x86_64"
14118 LD="${LD-ld} -m elf64_sparc"
14121 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
14122 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14127 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14139 need_locks="$enable_libtool_lock"
14141 if test -n "$ac_tool_prefix"; then
14142 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14143 set dummy ${ac_tool_prefix}mt; ac_word=$2
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14145 $as_echo_n "checking for $ac_word... " >&6; }
14146 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
14147 $as_echo_n "(cached) " >&6
14149 if test -n "$MANIFEST_TOOL"; then
14150 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14153 for as_dir in $PATH
14156 test -z "$as_dir" && as_dir=.
14157 for ac_exec_ext in '' $ac_executable_extensions; do
14158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14159 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14169 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14170 if test -n "$MANIFEST_TOOL"; then
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14172 $as_echo "$MANIFEST_TOOL" >&6; }
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14175 $as_echo "no" >&6; }
14180 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14181 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14182 # Extract the first word of "mt", so it can be a program name with args.
14183 set dummy mt; ac_word=$2
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14185 $as_echo_n "checking for $ac_word... " >&6; }
14186 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
14187 $as_echo_n "(cached) " >&6
14189 if test -n "$ac_ct_MANIFEST_TOOL"; then
14190 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14193 for as_dir in $PATH
14196 test -z "$as_dir" && as_dir=.
14197 for ac_exec_ext in '' $ac_executable_extensions; do
14198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14199 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14209 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14210 if test -n "$ac_ct_MANIFEST_TOOL"; then
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14212 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14215 $as_echo "no" >&6; }
14218 if test "x$ac_ct_MANIFEST_TOOL" = x; then
14221 case $cross_compiling:$ac_tool_warned in
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14225 ac_tool_warned=yes ;;
14227 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14230 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14233 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14235 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14236 if ${lt_cv_path_mainfest_tool+:} false; then :
14237 $as_echo_n "(cached) " >&6
14239 lt_cv_path_mainfest_tool=no
14240 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14241 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14242 cat conftest.err >&5
14243 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14244 lt_cv_path_mainfest_tool=yes
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14249 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
14250 if test "x$lt_cv_path_mainfest_tool" != xyes; then
14260 rhapsody* | darwin*)
14261 if test -n "$ac_tool_prefix"; then
14262 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14263 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14265 $as_echo_n "checking for $ac_word... " >&6; }
14266 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14267 $as_echo_n "(cached) " >&6
14269 if test -n "$DSYMUTIL"; then
14270 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14273 for as_dir in $PATH
14276 test -z "$as_dir" && as_dir=.
14277 for ac_exec_ext in '' $ac_executable_extensions; do
14278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14279 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14289 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14290 if test -n "$DSYMUTIL"; then
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14292 $as_echo "$DSYMUTIL" >&6; }
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14295 $as_echo "no" >&6; }
14300 if test -z "$ac_cv_prog_DSYMUTIL"; then
14301 ac_ct_DSYMUTIL=$DSYMUTIL
14302 # Extract the first word of "dsymutil", so it can be a program name with args.
14303 set dummy dsymutil; ac_word=$2
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14305 $as_echo_n "checking for $ac_word... " >&6; }
14306 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14307 $as_echo_n "(cached) " >&6
14309 if test -n "$ac_ct_DSYMUTIL"; then
14310 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14313 for as_dir in $PATH
14316 test -z "$as_dir" && as_dir=.
14317 for ac_exec_ext in '' $ac_executable_extensions; do
14318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14319 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14329 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14330 if test -n "$ac_ct_DSYMUTIL"; then
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14332 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14335 $as_echo "no" >&6; }
14338 if test "x$ac_ct_DSYMUTIL" = x; then
14341 case $cross_compiling:$ac_tool_warned in
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14345 ac_tool_warned=yes ;;
14347 DSYMUTIL=$ac_ct_DSYMUTIL
14350 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14353 if test -n "$ac_tool_prefix"; then
14354 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14355 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14357 $as_echo_n "checking for $ac_word... " >&6; }
14358 if ${ac_cv_prog_NMEDIT+:} false; then :
14359 $as_echo_n "(cached) " >&6
14361 if test -n "$NMEDIT"; then
14362 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14365 for as_dir in $PATH
14368 test -z "$as_dir" && as_dir=.
14369 for ac_exec_ext in '' $ac_executable_extensions; do
14370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14371 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14381 NMEDIT=$ac_cv_prog_NMEDIT
14382 if test -n "$NMEDIT"; then
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14384 $as_echo "$NMEDIT" >&6; }
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14387 $as_echo "no" >&6; }
14392 if test -z "$ac_cv_prog_NMEDIT"; then
14393 ac_ct_NMEDIT=$NMEDIT
14394 # Extract the first word of "nmedit", so it can be a program name with args.
14395 set dummy nmedit; ac_word=$2
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14397 $as_echo_n "checking for $ac_word... " >&6; }
14398 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14399 $as_echo_n "(cached) " >&6
14401 if test -n "$ac_ct_NMEDIT"; then
14402 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14405 for as_dir in $PATH
14408 test -z "$as_dir" && as_dir=.
14409 for ac_exec_ext in '' $ac_executable_extensions; do
14410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14411 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14421 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14422 if test -n "$ac_ct_NMEDIT"; then
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14424 $as_echo "$ac_ct_NMEDIT" >&6; }
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14427 $as_echo "no" >&6; }
14430 if test "x$ac_ct_NMEDIT" = x; then
14433 case $cross_compiling:$ac_tool_warned in
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14437 ac_tool_warned=yes ;;
14439 NMEDIT=$ac_ct_NMEDIT
14442 NMEDIT="$ac_cv_prog_NMEDIT"
14445 if test -n "$ac_tool_prefix"; then
14446 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14447 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14449 $as_echo_n "checking for $ac_word... " >&6; }
14450 if ${ac_cv_prog_LIPO+:} false; then :
14451 $as_echo_n "(cached) " >&6
14453 if test -n "$LIPO"; then
14454 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14457 for as_dir in $PATH
14460 test -z "$as_dir" && as_dir=.
14461 for ac_exec_ext in '' $ac_executable_extensions; do
14462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14463 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14473 LIPO=$ac_cv_prog_LIPO
14474 if test -n "$LIPO"; then
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14476 $as_echo "$LIPO" >&6; }
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14479 $as_echo "no" >&6; }
14484 if test -z "$ac_cv_prog_LIPO"; then
14486 # Extract the first word of "lipo", so it can be a program name with args.
14487 set dummy lipo; ac_word=$2
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14489 $as_echo_n "checking for $ac_word... " >&6; }
14490 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14491 $as_echo_n "(cached) " >&6
14493 if test -n "$ac_ct_LIPO"; then
14494 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14497 for as_dir in $PATH
14500 test -z "$as_dir" && as_dir=.
14501 for ac_exec_ext in '' $ac_executable_extensions; do
14502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14503 ac_cv_prog_ac_ct_LIPO="lipo"
14504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14513 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14514 if test -n "$ac_ct_LIPO"; then
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14516 $as_echo "$ac_ct_LIPO" >&6; }
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14519 $as_echo "no" >&6; }
14522 if test "x$ac_ct_LIPO" = x; then
14525 case $cross_compiling:$ac_tool_warned in
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14529 ac_tool_warned=yes ;;
14534 LIPO="$ac_cv_prog_LIPO"
14537 if test -n "$ac_tool_prefix"; then
14538 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14539 set dummy ${ac_tool_prefix}otool; ac_word=$2
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14541 $as_echo_n "checking for $ac_word... " >&6; }
14542 if ${ac_cv_prog_OTOOL+:} false; then :
14543 $as_echo_n "(cached) " >&6
14545 if test -n "$OTOOL"; then
14546 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14549 for as_dir in $PATH
14552 test -z "$as_dir" && as_dir=.
14553 for ac_exec_ext in '' $ac_executable_extensions; do
14554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14555 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14565 OTOOL=$ac_cv_prog_OTOOL
14566 if test -n "$OTOOL"; then
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14568 $as_echo "$OTOOL" >&6; }
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14571 $as_echo "no" >&6; }
14576 if test -z "$ac_cv_prog_OTOOL"; then
14578 # Extract the first word of "otool", so it can be a program name with args.
14579 set dummy otool; ac_word=$2
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14581 $as_echo_n "checking for $ac_word... " >&6; }
14582 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14583 $as_echo_n "(cached) " >&6
14585 if test -n "$ac_ct_OTOOL"; then
14586 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14589 for as_dir in $PATH
14592 test -z "$as_dir" && as_dir=.
14593 for ac_exec_ext in '' $ac_executable_extensions; do
14594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14595 ac_cv_prog_ac_ct_OTOOL="otool"
14596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14605 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14606 if test -n "$ac_ct_OTOOL"; then
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14608 $as_echo "$ac_ct_OTOOL" >&6; }
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14611 $as_echo "no" >&6; }
14614 if test "x$ac_ct_OTOOL" = x; then
14617 case $cross_compiling:$ac_tool_warned in
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14621 ac_tool_warned=yes ;;
14626 OTOOL="$ac_cv_prog_OTOOL"
14629 if test -n "$ac_tool_prefix"; then
14630 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14631 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14633 $as_echo_n "checking for $ac_word... " >&6; }
14634 if ${ac_cv_prog_OTOOL64+:} false; then :
14635 $as_echo_n "(cached) " >&6
14637 if test -n "$OTOOL64"; then
14638 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14641 for as_dir in $PATH
14644 test -z "$as_dir" && as_dir=.
14645 for ac_exec_ext in '' $ac_executable_extensions; do
14646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14647 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14657 OTOOL64=$ac_cv_prog_OTOOL64
14658 if test -n "$OTOOL64"; then
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14660 $as_echo "$OTOOL64" >&6; }
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14663 $as_echo "no" >&6; }
14668 if test -z "$ac_cv_prog_OTOOL64"; then
14669 ac_ct_OTOOL64=$OTOOL64
14670 # Extract the first word of "otool64", so it can be a program name with args.
14671 set dummy otool64; ac_word=$2
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14673 $as_echo_n "checking for $ac_word... " >&6; }
14674 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14675 $as_echo_n "(cached) " >&6
14677 if test -n "$ac_ct_OTOOL64"; then
14678 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14681 for as_dir in $PATH
14684 test -z "$as_dir" && as_dir=.
14685 for ac_exec_ext in '' $ac_executable_extensions; do
14686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14687 ac_cv_prog_ac_ct_OTOOL64="otool64"
14688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14697 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14698 if test -n "$ac_ct_OTOOL64"; then
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14700 $as_echo "$ac_ct_OTOOL64" >&6; }
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14703 $as_echo "no" >&6; }
14706 if test "x$ac_ct_OTOOL64" = x; then
14709 case $cross_compiling:$ac_tool_warned in
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14713 ac_tool_warned=yes ;;
14715 OTOOL64=$ac_ct_OTOOL64
14718 OTOOL64="$ac_cv_prog_OTOOL64"
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14748 $as_echo_n "checking for -single_module linker flag... " >&6; }
14749 if ${lt_cv_apple_cc_single_mod+:} false; then :
14750 $as_echo_n "(cached) " >&6
14752 lt_cv_apple_cc_single_mod=no
14753 if test -z "${LT_MULTI_MODULE}"; then
14754 # By default we will add the -single_module flag. You can override
14755 # by either setting the environment variable LT_MULTI_MODULE
14756 # non-empty at configure time, or by adding -multi_module to the
14758 rm -rf libconftest.dylib*
14759 echo "int foo(void){return 1;}" > conftest.c
14760 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14761 -dynamiclib -Wl,-single_module conftest.c" >&5
14762 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14763 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14765 # If there is a non-empty error log, and "single_module"
14766 # appears in it, assume the flag caused a linker warning
14767 if test -s conftest.err && $GREP single_module conftest.err; then
14768 cat conftest.err >&5
14769 # Otherwise, if the output was created with a 0 exit code from
14770 # the compiler, it worked.
14771 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
14772 lt_cv_apple_cc_single_mod=yes
14774 cat conftest.err >&5
14776 rm -rf libconftest.dylib*
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14781 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14784 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14785 if ${lt_cv_ld_exported_symbols_list+:} false; then :
14786 $as_echo_n "(cached) " >&6
14788 lt_cv_ld_exported_symbols_list=no
14789 save_LDFLAGS=$LDFLAGS
14790 echo "_main" > conftest.sym
14791 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793 /* end confdefs.h. */
14803 if ac_fn_c_try_link "$LINENO"; then :
14804 lt_cv_ld_exported_symbols_list=yes
14806 lt_cv_ld_exported_symbols_list=no
14808 rm -f core conftest.err conftest.$ac_objext \
14809 conftest$ac_exeext conftest.$ac_ext
14810 LDFLAGS="$save_LDFLAGS"
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14814 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14817 $as_echo_n "checking for -force_load linker flag... " >&6; }
14818 if ${lt_cv_ld_force_load+:} false; then :
14819 $as_echo_n "(cached) " >&6
14821 lt_cv_ld_force_load=no
14822 cat > conftest.c << _LT_EOF
14823 int forced_loaded() { return 2;}
14825 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14826 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14827 echo "$AR cru libconftest.a conftest.o" >&5
14828 $AR cru libconftest.a conftest.o 2>&5
14829 echo "$RANLIB libconftest.a" >&5
14830 $RANLIB libconftest.a 2>&5
14831 cat > conftest.c << _LT_EOF
14832 int main() { return 0;}
14834 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14835 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14837 if test -s conftest.err && $GREP force_load conftest.err; then
14838 cat conftest.err >&5
14839 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
14840 lt_cv_ld_force_load=yes
14842 cat conftest.err >&5
14844 rm -f conftest.err libconftest.a conftest conftest.c
14845 rm -rf conftest.dSYM
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14849 $as_echo "$lt_cv_ld_force_load" >&6; }
14851 rhapsody* | darwin1.[012])
14852 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14854 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14855 darwin*) # darwin 5.x on
14856 # if running on 10.5 or later, the deployment target defaults
14857 # to the OS version, if on x86, and 10.4, the deployment
14858 # target defaults to 10.4. Don't you love it?
14859 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14860 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14861 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14863 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14865 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14869 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14870 _lt_dar_single_mod='$single_module'
14872 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14873 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14875 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14877 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14878 _lt_dsymutil='~$DSYMUTIL $lib || :'
14885 for ac_header in dlfcn.h
14887 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14889 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14890 cat >>confdefs.h <<_ACEOF
14891 #define HAVE_DLFCN_H 1
14900 func_stripname_cnf ()
14903 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14904 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14906 } # func_stripname_cnf
14920 # Check whether --enable-shared was given.
14921 if test "${enable_shared+set}" = set; then :
14922 enableval=$enable_shared; p=${PACKAGE-default}
14924 yes) enable_shared=yes ;;
14925 no) enable_shared=no ;;
14928 # Look at the argument we got. We use all the common list separators.
14929 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14930 for pkg in $enableval; do
14932 if test "X$pkg" = "X$p"; then
14951 # Check whether --enable-static was given.
14952 if test "${enable_static+set}" = set; then :
14953 enableval=$enable_static; p=${PACKAGE-default}
14955 yes) enable_static=yes ;;
14956 no) enable_static=no ;;
14959 # Look at the argument we got. We use all the common list separators.
14960 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14961 for pkg in $enableval; do
14963 if test "X$pkg" = "X$p"; then
14983 # Check whether --with-pic was given.
14984 if test "${with_pic+set}" = set; then :
14985 withval=$with_pic; lt_p=${PACKAGE-default}
14987 yes|no) pic_mode=$withval ;;
14990 # Look at the argument we got. We use all the common list separators.
14991 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14992 for lt_pkg in $withval; do
14994 if test "X$lt_pkg" = "X$lt_p"; then
15006 test -z "$pic_mode" && pic_mode=default
15014 # Check whether --enable-fast-install was given.
15015 if test "${enable_fast_install+set}" = set; then :
15016 enableval=$enable_fast_install; p=${PACKAGE-default}
15018 yes) enable_fast_install=yes ;;
15019 no) enable_fast_install=no ;;
15021 enable_fast_install=no
15022 # Look at the argument we got. We use all the common list separators.
15023 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15024 for pkg in $enableval; do
15026 if test "X$pkg" = "X$p"; then
15027 enable_fast_install=yes
15034 enable_fast_install=yes
15047 # This can be used to rebuild libtool when needed
15048 LIBTOOL_DEPS="$ltmain"
15050 # Always use our own libtool.
15051 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15082 test -z "$LN_S" && LN_S="ln -s"
15097 if test -n "${ZSH_VERSION+set}" ; then
15098 setopt NO_GLOB_SUBST
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15102 $as_echo_n "checking for objdir... " >&6; }
15103 if ${lt_cv_objdir+:} false; then :
15104 $as_echo_n "(cached) " >&6
15106 rm -f .libs 2>/dev/null
15107 mkdir .libs 2>/dev/null
15108 if test -d .libs; then
15111 # MS-DOS does not allow filenames that begin with a dot.
15114 rmdir .libs 2>/dev/null
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15117 $as_echo "$lt_cv_objdir" >&6; }
15118 objdir=$lt_cv_objdir
15124 cat >>confdefs.h <<_ACEOF
15125 #define LT_OBJDIR "$lt_cv_objdir/"
15133 # AIX sometimes has problems with the GCC collect2 program. For some
15134 # reason, if we set the COLLECT_NAMES environment variable, the problems
15135 # vanish in a puff of smoke.
15136 if test "X${COLLECT_NAMES+set}" != Xset; then
15138 export COLLECT_NAMES
15143 # Global variables:
15145 can_build_shared=yes
15147 # All known linkers require a `.a' archive for static linking (except MSVC,
15148 # which needs '.lib').
15151 with_gnu_ld="$lt_cv_prog_gnu_ld"
15154 old_CFLAGS="$CFLAGS"
15156 # Set sane defaults for various variables
15157 test -z "$CC" && CC=cc
15158 test -z "$LTCC" && LTCC=$CC
15159 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15160 test -z "$LD" && LD=ld
15161 test -z "$ac_objext" && ac_objext=o
15163 for cc_temp in $compiler""; do
15165 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15166 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15171 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15174 # Only perform the check for file, if the check method requires it
15175 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15176 case $deplibs_check_method in
15178 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15180 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15181 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15182 $as_echo_n "(cached) " >&6
15186 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15189 lt_save_MAGIC_CMD="$MAGIC_CMD"
15190 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15191 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15192 for ac_dir in $ac_dummy; do
15194 test -z "$ac_dir" && ac_dir=.
15195 if test -f $ac_dir/${ac_tool_prefix}file; then
15196 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15197 if test -n "$file_magic_test_file"; then
15198 case $deplibs_check_method in
15200 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15201 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15202 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15203 $EGREP "$file_magic_regex" > /dev/null; then
15208 *** Warning: the command libtool uses to detect shared libraries,
15209 *** $file_magic_cmd, produces output that libtool cannot recognize.
15210 *** The result is that libtool may fail to recognize shared libraries
15211 *** as such. This will affect the creation of libtool libraries that
15212 *** depend on shared libraries, but programs linked with such libtool
15213 *** libraries will work regardless of this problem. Nevertheless, you
15214 *** may want to report the problem to your system manager and/or to
15215 *** bug-libtool@gnu.org
15225 MAGIC_CMD="$lt_save_MAGIC_CMD"
15230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15231 if test -n "$MAGIC_CMD"; then
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15233 $as_echo "$MAGIC_CMD" >&6; }
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15236 $as_echo "no" >&6; }
15243 if test -z "$lt_cv_path_MAGIC_CMD"; then
15244 if test -n "$ac_tool_prefix"; then
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15246 $as_echo_n "checking for file... " >&6; }
15247 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15248 $as_echo_n "(cached) " >&6
15252 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15255 lt_save_MAGIC_CMD="$MAGIC_CMD"
15256 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15257 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15258 for ac_dir in $ac_dummy; do
15260 test -z "$ac_dir" && ac_dir=.
15261 if test -f $ac_dir/file; then
15262 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15263 if test -n "$file_magic_test_file"; then
15264 case $deplibs_check_method in
15266 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15267 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15268 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15269 $EGREP "$file_magic_regex" > /dev/null; then
15274 *** Warning: the command libtool uses to detect shared libraries,
15275 *** $file_magic_cmd, produces output that libtool cannot recognize.
15276 *** The result is that libtool may fail to recognize shared libraries
15277 *** as such. This will affect the creation of libtool libraries that
15278 *** depend on shared libraries, but programs linked with such libtool
15279 *** libraries will work regardless of this problem. Nevertheless, you
15280 *** may want to report the problem to your system manager and/or to
15281 *** bug-libtool@gnu.org
15291 MAGIC_CMD="$lt_save_MAGIC_CMD"
15296 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15297 if test -n "$MAGIC_CMD"; then
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15299 $as_echo "$MAGIC_CMD" >&6; }
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15302 $as_echo "no" >&6; }
15315 # Use C for the default configuration in the libtool script
15319 ac_cpp='$CPP $CPPFLAGS'
15320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15325 # Source file extension for C test sources.
15328 # Object file extension for compiled C test sources.
15332 # Code to be used in simple compile tests
15333 lt_simple_compile_test_code="int some_variable = 0;"
15335 # Code to be used in simple link tests
15336 lt_simple_link_test_code='int main(){return(0);}'
15344 # If no C compiler was specified, use CC.
15347 # If no C compiler flags were specified, use CFLAGS.
15348 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15350 # Allow CC to be a program name with arguments.
15353 # Save the default compiler, since it gets overwritten when the other
15354 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15355 compiler_DEFAULT=$CC
15357 # save warnings/boilerplate of simple test code
15358 ac_outfile=conftest.$ac_objext
15359 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15360 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15361 _lt_compiler_boilerplate=`cat conftest.err`
15364 ac_outfile=conftest.$ac_objext
15365 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15366 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15367 _lt_linker_boilerplate=`cat conftest.err`
15372 ## There is no encapsulation within the following macros, do not change
15373 ## the running order or otherwise move them around unless you know exactly
15374 ## what you are doing...
15375 if test -n "$compiler"; then
15377 lt_prog_compiler_no_builtin_flag=
15379 if test "$GCC" = yes; then
15380 case $cc_basename in
15382 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15384 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15388 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15389 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15390 $as_echo_n "(cached) " >&6
15392 lt_cv_prog_compiler_rtti_exceptions=no
15393 ac_outfile=conftest.$ac_objext
15394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15395 lt_compiler_flag="-fno-rtti -fno-exceptions"
15396 # Insert the option either (1) after the last *FLAGS variable, or
15397 # (2) before a word containing "conftest.", or (3) at the end.
15398 # Note that $ac_compile itself does not contain backslashes and begins
15399 # with a dollar sign (not a hyphen), so the echo should work correctly.
15400 # The option is referenced via a variable to avoid confusing sed.
15401 lt_compile=`echo "$ac_compile" | $SED \
15402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15404 -e 's:$: $lt_compiler_flag:'`
15405 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15406 (eval "$lt_compile" 2>conftest.err)
15408 cat conftest.err >&5
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 if (exit $ac_status) && test -s "$ac_outfile"; then
15411 # The compiler can only warn and ignore the option if not recognized
15412 # So say no if there are warnings other than the usual output.
15413 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15415 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15416 lt_cv_prog_compiler_rtti_exceptions=yes
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15423 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15425 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15426 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15438 lt_prog_compiler_wl=
15439 lt_prog_compiler_pic=
15440 lt_prog_compiler_static=
15443 if test "$GCC" = yes; then
15444 lt_prog_compiler_wl='-Wl,'
15445 lt_prog_compiler_static='-static'
15449 # All AIX code is PIC.
15450 if test "$host_cpu" = ia64; then
15451 # AIX 5 now supports IA64 processor
15452 lt_prog_compiler_static='-Bstatic'
15459 # see comment about AmigaOS4 .so support
15460 lt_prog_compiler_pic='-fPIC'
15463 # FIXME: we need at least 68020 code to build shared libraries, but
15464 # adding the `-m68020' flag to GCC prevents building anything better,
15466 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15471 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15472 # PIC is the default for these OSes.
15475 mingw* | cygwin* | pw32* | os2* | cegcc*)
15476 # This hack is so that the source file can tell whether it is being
15477 # built for inclusion in a dll (and should export symbols for example).
15478 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15479 # (--disable-auto-import) libraries
15480 lt_prog_compiler_pic='-DDLL_EXPORT'
15483 darwin* | rhapsody*)
15484 # PIC is the default on this platform
15485 # Common symbols not allowed in MH_DYLIB files
15486 lt_prog_compiler_pic='-fno-common'
15490 # PIC is the default for Haiku.
15491 # The "-static" flag exists, but is broken.
15492 lt_prog_compiler_static=
15496 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15497 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15498 # sets the default TLS model and affects inlining.
15504 lt_prog_compiler_pic='-fPIC'
15510 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15511 # Instead, we relocate shared libraries at runtime.
15515 # Just because we use GCC doesn't mean we suddenly get shared libraries
15516 # on systems that don't support them.
15517 lt_prog_compiler_can_build_shared=no
15522 # QNX uses GNU C++, but need to define -shared option too, otherwise
15523 # it will coredump.
15524 lt_prog_compiler_pic='-fPIC -shared'
15528 if test -d /usr/nec; then
15529 lt_prog_compiler_pic=-Kconform_pic
15534 lt_prog_compiler_pic='-fPIC'
15538 case $cc_basename in
15539 nvcc*) # Cuda Compiler Driver 2.2
15540 lt_prog_compiler_wl='-Xlinker '
15541 if test -n "$lt_prog_compiler_pic"; then
15542 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15547 # PORTME Check for flag to pass linker flags through the system compiler.
15550 lt_prog_compiler_wl='-Wl,'
15551 if test "$host_cpu" = ia64; then
15552 # AIX 5 now supports IA64 processor
15553 lt_prog_compiler_static='-Bstatic'
15555 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15559 mingw* | cygwin* | pw32* | os2* | cegcc*)
15560 # This hack is so that the source file can tell whether it is being
15561 # built for inclusion in a dll (and should export symbols for example).
15562 lt_prog_compiler_pic='-DDLL_EXPORT'
15565 hpux9* | hpux10* | hpux11*)
15566 lt_prog_compiler_wl='-Wl,'
15567 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15568 # not for PA HP-UX.
15574 lt_prog_compiler_pic='+Z'
15577 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15578 lt_prog_compiler_static='${wl}-a ${wl}archive'
15581 irix5* | irix6* | nonstopux*)
15582 lt_prog_compiler_wl='-Wl,'
15583 # PIC (with -KPIC) is the default.
15584 lt_prog_compiler_static='-non_shared'
15587 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15588 case $cc_basename in
15589 # old Intel for x86_64 which still supported -KPIC.
15591 lt_prog_compiler_wl='-Wl,'
15592 lt_prog_compiler_pic='-KPIC'
15593 lt_prog_compiler_static='-static'
15595 # icc used to be incompatible with GCC.
15596 # ICC 10 doesn't accept -KPIC any more.
15598 lt_prog_compiler_wl='-Wl,'
15599 lt_prog_compiler_pic='-fPIC'
15600 lt_prog_compiler_static='-static'
15602 # Lahey Fortran 8.1.
15604 lt_prog_compiler_wl='-Wl,'
15605 lt_prog_compiler_pic='--shared'
15606 lt_prog_compiler_static='--static'
15609 # NAG Fortran compiler
15610 lt_prog_compiler_wl='-Wl,-Wl,,'
15611 lt_prog_compiler_pic='-PIC'
15612 lt_prog_compiler_static='-Bstatic'
15614 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15615 # Portland Group compilers (*not* the Pentium gcc compiler,
15616 # which looks to be a dead project)
15617 lt_prog_compiler_wl='-Wl,'
15618 lt_prog_compiler_pic='-fpic'
15619 lt_prog_compiler_static='-Bstatic'
15622 lt_prog_compiler_wl='-Wl,'
15623 # All Alpha code is PIC.
15624 lt_prog_compiler_static='-non_shared'
15626 xl* | bgxl* | bgf* | mpixl*)
15627 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15628 lt_prog_compiler_wl='-Wl,'
15629 lt_prog_compiler_pic='-qpic'
15630 lt_prog_compiler_static='-qstaticlink'
15633 case `$CC -V 2>&1 | sed 5q` in
15634 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15635 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15636 lt_prog_compiler_pic='-KPIC'
15637 lt_prog_compiler_static='-Bstatic'
15638 lt_prog_compiler_wl=''
15640 *Sun\ F* | *Sun*Fortran*)
15641 lt_prog_compiler_pic='-KPIC'
15642 lt_prog_compiler_static='-Bstatic'
15643 lt_prog_compiler_wl='-Qoption ld '
15647 lt_prog_compiler_pic='-KPIC'
15648 lt_prog_compiler_static='-Bstatic'
15649 lt_prog_compiler_wl='-Wl,'
15651 *Intel*\ [CF]*Compiler*)
15652 lt_prog_compiler_wl='-Wl,'
15653 lt_prog_compiler_pic='-fPIC'
15654 lt_prog_compiler_static='-static'
15657 lt_prog_compiler_wl='-Wl,'
15658 lt_prog_compiler_pic='-fpic'
15659 lt_prog_compiler_static='-Bstatic'
15667 lt_prog_compiler_pic='-KPIC'
15668 lt_prog_compiler_static='-Bstatic'
15672 # QNX uses GNU C++, but need to define -shared option too, otherwise
15673 # it will coredump.
15674 lt_prog_compiler_pic='-fPIC -shared'
15677 osf3* | osf4* | osf5*)
15678 lt_prog_compiler_wl='-Wl,'
15679 # All OSF/1 code is PIC.
15680 lt_prog_compiler_static='-non_shared'
15684 lt_prog_compiler_static='-non_shared'
15688 lt_prog_compiler_pic='-KPIC'
15689 lt_prog_compiler_static='-Bstatic'
15690 case $cc_basename in
15691 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15692 lt_prog_compiler_wl='-Qoption ld ';;
15694 lt_prog_compiler_wl='-Wl,';;
15699 lt_prog_compiler_wl='-Qoption ld '
15700 lt_prog_compiler_pic='-PIC'
15701 lt_prog_compiler_static='-Bstatic'
15704 sysv4 | sysv4.2uw2* | sysv4.3*)
15705 lt_prog_compiler_wl='-Wl,'
15706 lt_prog_compiler_pic='-KPIC'
15707 lt_prog_compiler_static='-Bstatic'
15711 if test -d /usr/nec ;then
15712 lt_prog_compiler_pic='-Kconform_pic'
15713 lt_prog_compiler_static='-Bstatic'
15717 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15718 lt_prog_compiler_wl='-Wl,'
15719 lt_prog_compiler_pic='-KPIC'
15720 lt_prog_compiler_static='-Bstatic'
15724 lt_prog_compiler_wl='-Wl,'
15725 lt_prog_compiler_can_build_shared=no
15729 lt_prog_compiler_pic='-pic'
15730 lt_prog_compiler_static='-Bstatic'
15734 lt_prog_compiler_can_build_shared=no
15740 # For platforms which do not support PIC, -DPIC is meaningless:
15742 lt_prog_compiler_pic=
15745 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15750 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15751 if ${lt_cv_prog_compiler_pic+:} false; then :
15752 $as_echo_n "(cached) " >&6
15754 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15757 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
15758 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15761 # Check to make sure the PIC flag actually works.
15763 if test -n "$lt_prog_compiler_pic"; then
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15765 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15766 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15767 $as_echo_n "(cached) " >&6
15769 lt_cv_prog_compiler_pic_works=no
15770 ac_outfile=conftest.$ac_objext
15771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15772 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15773 # Insert the option either (1) after the last *FLAGS variable, or
15774 # (2) before a word containing "conftest.", or (3) at the end.
15775 # Note that $ac_compile itself does not contain backslashes and begins
15776 # with a dollar sign (not a hyphen), so the echo should work correctly.
15777 # The option is referenced via a variable to avoid confusing sed.
15778 lt_compile=`echo "$ac_compile" | $SED \
15779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15781 -e 's:$: $lt_compiler_flag:'`
15782 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15783 (eval "$lt_compile" 2>conftest.err)
15785 cat conftest.err >&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 if (exit $ac_status) && test -s "$ac_outfile"; then
15788 # The compiler can only warn and ignore the option if not recognized
15789 # So say no if there are warnings other than the usual output.
15790 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15792 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15793 lt_cv_prog_compiler_pic_works=yes
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15800 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15802 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15803 case $lt_prog_compiler_pic in
15805 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15808 lt_prog_compiler_pic=
15809 lt_prog_compiler_can_build_shared=no
15825 # Check to make sure the static flag actually works.
15827 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15829 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15830 if ${lt_cv_prog_compiler_static_works+:} false; then :
15831 $as_echo_n "(cached) " >&6
15833 lt_cv_prog_compiler_static_works=no
15834 save_LDFLAGS="$LDFLAGS"
15835 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15836 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15837 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15838 # The linker can only warn and ignore the option if not recognized
15839 # So say no if there are warnings
15840 if test -s conftest.err; then
15841 # Append any errors to the config.log.
15842 cat conftest.err 1>&5
15843 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15844 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15845 if diff conftest.exp conftest.er2 >/dev/null; then
15846 lt_cv_prog_compiler_static_works=yes
15849 lt_cv_prog_compiler_static_works=yes
15853 LDFLAGS="$save_LDFLAGS"
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15857 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15859 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15862 lt_prog_compiler_static=
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15872 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15873 if ${lt_cv_prog_compiler_c_o+:} false; then :
15874 $as_echo_n "(cached) " >&6
15876 lt_cv_prog_compiler_c_o=no
15877 $RM -r conftest 2>/dev/null
15881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15883 lt_compiler_flag="-o out/conftest2.$ac_objext"
15884 # Insert the option either (1) after the last *FLAGS variable, or
15885 # (2) before a word containing "conftest.", or (3) at the end.
15886 # Note that $ac_compile itself does not contain backslashes and begins
15887 # with a dollar sign (not a hyphen), so the echo should work correctly.
15888 lt_compile=`echo "$ac_compile" | $SED \
15889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15891 -e 's:$: $lt_compiler_flag:'`
15892 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15893 (eval "$lt_compile" 2>out/conftest.err)
15895 cat out/conftest.err >&5
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15899 # The compiler can only warn and ignore the option if not recognized
15900 # So say no if there are warnings
15901 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15902 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15903 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15904 lt_cv_prog_compiler_c_o=yes
15909 # SGI C++ compiler will create directory out/ii_files/ for
15910 # template instantiation
15911 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15912 $RM out/* && rmdir out
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15919 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15927 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15928 if ${lt_cv_prog_compiler_c_o+:} false; then :
15929 $as_echo_n "(cached) " >&6
15931 lt_cv_prog_compiler_c_o=no
15932 $RM -r conftest 2>/dev/null
15936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15938 lt_compiler_flag="-o out/conftest2.$ac_objext"
15939 # Insert the option either (1) after the last *FLAGS variable, or
15940 # (2) before a word containing "conftest.", or (3) at the end.
15941 # Note that $ac_compile itself does not contain backslashes and begins
15942 # with a dollar sign (not a hyphen), so the echo should work correctly.
15943 lt_compile=`echo "$ac_compile" | $SED \
15944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15946 -e 's:$: $lt_compiler_flag:'`
15947 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15948 (eval "$lt_compile" 2>out/conftest.err)
15950 cat out/conftest.err >&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15954 # The compiler can only warn and ignore the option if not recognized
15955 # So say no if there are warnings
15956 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15957 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15958 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15959 lt_cv_prog_compiler_c_o=yes
15964 # SGI C++ compiler will create directory out/ii_files/ for
15965 # template instantiation
15966 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15967 $RM out/* && rmdir out
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15974 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15979 hard_links="nottested"
15980 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15981 # do not overwrite the value of need_locks provided by the user
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15983 $as_echo_n "checking if we can lock with hard links... " >&6; }
15986 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15988 ln conftest.a conftest.b 2>&5 || hard_links=no
15989 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15991 $as_echo "$hard_links" >&6; }
15992 if test "$hard_links" = no; then
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15994 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16007 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16010 allow_undefined_flag=
16011 always_export_symbols=no
16013 archive_expsym_cmds=
16014 compiler_needs_object=no
16015 enable_shared_with_static_runtimes=no
16016 export_dynamic_flag_spec=
16017 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16018 hardcode_automatic=no
16020 hardcode_direct_absolute=no
16021 hardcode_libdir_flag_spec=
16022 hardcode_libdir_separator=
16023 hardcode_minus_L=no
16024 hardcode_shlibpath_var=unsupported
16026 link_all_deplibs=unknown
16028 module_expsym_cmds=
16029 old_archive_from_new_cmds=
16030 old_archive_from_expsyms_cmds=
16031 thread_safe_flag_spec=
16032 whole_archive_flag_spec=
16033 # include_expsyms should be a list of space-separated symbols to be *always*
16034 # included in the symbol list
16036 # exclude_expsyms can be an extended regexp of symbols to exclude
16037 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16038 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16039 # as well as any symbol that contains `d'.
16040 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16041 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16042 # platforms (ab)use it in PIC code, but their linkers get confused if
16043 # the symbol is explicitly referenced. Since portable code cannot
16044 # rely on this symbol name, it's probably fine to never include it in
16045 # preloaded symbol tables.
16046 # Exclude shared library initialization/finalization symbols.
16047 extract_expsyms_cmds=
16050 cygwin* | mingw* | pw32* | cegcc*)
16051 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16052 # When not using gcc, we currently assume that we are using
16053 # Microsoft Visual C++.
16054 if test "$GCC" != yes; then
16059 # we just hope/assume this is gcc and not c89 (= MSVC++)
16065 linux* | k*bsd*-gnu | gnu*)
16066 link_all_deplibs=no
16072 # On some targets, GNU ld is compatible enough with the native linker
16073 # that we're better off using the native interface for both.
16074 lt_use_gnu_ld_interface=no
16075 if test "$with_gnu_ld" = yes; then
16078 # The AIX port of GNU ld has always aspired to compatibility
16079 # with the native linker. However, as the warning in the GNU ld
16080 # block says, versions before 2.19.5* couldn't really create working
16081 # shared libraries, regardless of the interface used.
16082 case `$LD -v 2>&1` in
16083 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16084 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16085 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16087 lt_use_gnu_ld_interface=yes
16092 lt_use_gnu_ld_interface=yes
16097 if test "$lt_use_gnu_ld_interface" = yes; then
16098 # If archive_cmds runs LD, not CC, wlarc should be empty
16101 # Set some defaults for GNU ld with shared library support. These
16102 # are reset later if shared libraries are not supported. Putting them
16103 # here allows them to be overridden if necessary.
16104 runpath_var=LD_RUN_PATH
16105 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16106 export_dynamic_flag_spec='${wl}--export-dynamic'
16107 # ancient GNU ld didn't support --whole-archive et. al.
16108 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16109 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16111 whole_archive_flag_spec=
16113 supports_anon_versioning=no
16114 case `$LD -v 2>&1` in
16115 *GNU\ gold*) supports_anon_versioning=yes ;;
16116 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16117 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16118 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16119 *\ 2.11.*) ;; # other 2.11 versions
16120 *) supports_anon_versioning=yes ;;
16123 # See if GNU ld supports shared libraries.
16126 # On AIX/PPC, the GNU linker is very broken
16127 if test "$host_cpu" != ia64; then
16131 *** Warning: the GNU linker, at least up to release 2.19, is reported
16132 *** to be unable to reliably create shared libraries on AIX.
16133 *** Therefore, libtool is disabling shared libraries support. If you
16134 *** really care for shared libraries, you may want to install binutils
16135 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16136 *** You will then need to restart the configuration process.
16145 # see comment about AmigaOS4 .so support
16146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16147 archive_expsym_cmds=''
16150 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)'
16151 hardcode_libdir_flag_spec='-L$libdir'
16152 hardcode_minus_L=yes
16158 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16159 allow_undefined_flag=unsupported
16160 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16161 # support --undefined. This deserves some investigation. FIXME
16162 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16168 cygwin* | mingw* | pw32* | cegcc*)
16169 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16170 # as there is no search path for DLLs.
16171 hardcode_libdir_flag_spec='-L$libdir'
16172 export_dynamic_flag_spec='${wl}--export-all-symbols'
16173 allow_undefined_flag=unsupported
16174 always_export_symbols=no
16175 enable_shared_with_static_runtimes=yes
16176 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'
16177 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16179 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16180 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16181 # If the export-symbols file already is a .def file (1st line
16182 # is EXPORTS), use it as is; otherwise, prepend...
16183 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16184 cp $export_symbols $output_objdir/$soname.def;
16186 echo EXPORTS > $output_objdir/$soname.def;
16187 cat $export_symbols >> $output_objdir/$soname.def;
16189 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16197 link_all_deplibs=yes
16202 hardcode_shlibpath_var=no
16203 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16204 export_dynamic_flag_spec='${wl}-E'
16205 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16206 # Instead, shared libraries are loaded at an image base (0x10000000 by
16207 # default) and relocated if they conflict, which is a slow very memory
16208 # consuming and fragmenting process. To avoid this, we pick a random,
16209 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16210 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16211 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16212 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'
16215 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16217 if test "$host_os" = linux-dietlibc; then
16218 case $cc_basename in
16219 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16222 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16223 && test "$tmp_diet" = no
16225 tmp_addflag=' $pic_flag'
16226 tmp_sharedflag='-shared'
16227 case $cc_basename,$host_cpu in
16228 pgcc*) # Portland Group C compiler
16229 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'
16230 tmp_addflag=' $pic_flag'
16232 pgf77* | pgf90* | pgf95* | pgfortran*)
16233 # Portland Group f77 and f90 compilers
16234 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'
16235 tmp_addflag=' $pic_flag -Mnomain' ;;
16236 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16237 tmp_addflag=' -i_dynamic' ;;
16238 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16239 tmp_addflag=' -i_dynamic -nofor_main' ;;
16240 ifc* | ifort*) # Intel Fortran compiler
16241 tmp_addflag=' -nofor_main' ;;
16242 lf95*) # Lahey Fortran 8.1
16243 whole_archive_flag_spec=
16244 tmp_sharedflag='--shared' ;;
16245 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16246 tmp_sharedflag='-qmkshrobj'
16248 nvcc*) # Cuda Compiler Driver 2.2
16249 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'
16250 compiler_needs_object=yes
16253 case `$CC -V 2>&1 | sed 5q` in
16254 *Sun\ C*) # Sun C 5.9
16255 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'
16256 compiler_needs_object=yes
16257 tmp_sharedflag='-G' ;;
16258 *Sun\ F*) # Sun Fortran 8.3
16259 tmp_sharedflag='-G' ;;
16261 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16263 if test "x$supports_anon_versioning" = xyes; then
16264 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16265 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16266 echo "local: *; };" >> $output_objdir/$libname.ver~
16267 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16270 case $cc_basename in
16271 xlf* | bgf* | bgxlf* | mpixlf*)
16272 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16273 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16275 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16276 if test "x$supports_anon_versioning" = xyes; then
16277 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16278 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16279 echo "local: *; };" >> $output_objdir/$libname.ver~
16280 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16289 netbsd* | netbsdelf*-gnu)
16290 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16291 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16294 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16295 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16300 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16304 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16305 *** create shared libraries on Solaris systems. Therefore, libtool
16306 *** is disabling shared libraries support. We urge you to upgrade GNU
16307 *** binutils to release 2.9.1 or newer. Another option is to modify
16308 *** your PATH or compiler configuration so that the native linker is
16309 *** used, and then restart.
16312 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16313 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16314 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16320 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16321 case `$LD -v 2>&1` in
16322 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16326 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16327 *** reliably create shared libraries on SCO systems. Therefore, libtool
16328 *** is disabling shared libraries support. We urge you to upgrade GNU
16329 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16330 *** your PATH or compiler configuration so that the native linker is
16331 *** used, and then restart.
16336 # For security reasons, it is highly recommended that you always
16337 # use absolute paths for naming shared libraries, and exclude the
16338 # DT_RUNPATH tag from executables and libraries. But doing so
16339 # requires that you compile everything twice, which is a pain.
16340 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16341 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16343 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16352 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16354 hardcode_direct=yes
16355 hardcode_shlibpath_var=no
16359 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16360 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16361 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16368 if test "$ld_shlibs" = no; then
16370 hardcode_libdir_flag_spec=
16371 export_dynamic_flag_spec=
16372 whole_archive_flag_spec=
16375 # PORTME fill in a description of your system's linker (not GNU ld)
16378 allow_undefined_flag=unsupported
16379 always_export_symbols=yes
16380 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'
16381 # Note: this linker hardcodes the directories in LIBPATH if there
16382 # are no directories specified by -L.
16383 hardcode_minus_L=yes
16384 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16385 # Neither direct hardcoding nor static linking is supported with a
16387 hardcode_direct=unsupported
16392 if test "$host_cpu" = ia64; then
16393 # On IA64, the linker does run time linking by default, so we don't
16394 # have to do anything special.
16395 aix_use_runtimelinking=no
16396 exp_sym_flag='-Bexport'
16399 # If we're using GNU nm, then we don't want the "-C" option.
16400 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16401 # Also, AIX nm treats weak defined symbols like other global
16402 # defined symbols, whereas GNU nm marks them as "W".
16403 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16404 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'
16406 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'
16408 aix_use_runtimelinking=no
16410 # Test if we are trying to use run time linking or normal
16411 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16412 # need to do runtime linking.
16413 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16414 for ld_flag in $LDFLAGS; do
16415 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16416 aix_use_runtimelinking=yes
16423 exp_sym_flag='-bexport'
16424 no_entry_flag='-bnoentry'
16427 # When large executables or shared objects are built, AIX ld can
16428 # have problems creating the table of contents. If linking a library
16429 # or program results in "error TOC overflow" add -mminimal-toc to
16430 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16431 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16434 hardcode_direct=yes
16435 hardcode_direct_absolute=yes
16436 hardcode_libdir_separator=':'
16437 link_all_deplibs=yes
16438 file_list_spec='${wl}-f,'
16440 if test "$GCC" = yes; then
16441 case $host_os in aix4.[012]|aix4.[012].*)
16442 # We only want to do this on AIX 4.2 and lower, the check
16443 # below for broken collect2 doesn't work under 4.3+
16444 collect2name=`${CC} -print-prog-name=collect2`
16445 if test -f "$collect2name" &&
16446 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16448 # We have reworked collect2
16451 # We have old collect2
16452 hardcode_direct=unsupported
16453 # It fails to find uninstalled libraries when the uninstalled
16454 # path is not listed in the libpath. Setting hardcode_minus_L
16455 # to unsupported forces relinking
16456 hardcode_minus_L=yes
16457 hardcode_libdir_flag_spec='-L$libdir'
16458 hardcode_libdir_separator=
16462 shared_flag='-shared'
16463 if test "$aix_use_runtimelinking" = yes; then
16464 shared_flag="$shared_flag "'${wl}-G'
16466 link_all_deplibs=no
16469 if test "$host_cpu" = ia64; then
16470 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16471 # chokes on -Wl,-G. The following line is correct:
16474 if test "$aix_use_runtimelinking" = yes; then
16475 shared_flag='${wl}-G'
16477 shared_flag='${wl}-bM:SRE'
16482 export_dynamic_flag_spec='${wl}-bexpall'
16483 # It seems that -bexpall does not export symbols beginning with
16484 # underscore (_), so it is better to generate a list of symbols to export.
16485 always_export_symbols=yes
16486 if test "$aix_use_runtimelinking" = yes; then
16487 # Warning - without using the other runtime loading flags (-brtl),
16488 # -berok will link without error, but may produce a broken library.
16489 allow_undefined_flag='-berok'
16490 # Determine the default libpath from the value encoded in an
16491 # empty executable.
16492 if test "${lt_cv_aix_libpath+set}" = set; then
16493 aix_libpath=$lt_cv_aix_libpath
16495 if ${lt_cv_aix_libpath_+:} false; then :
16496 $as_echo_n "(cached) " >&6
16498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16499 /* end confdefs.h. */
16509 if ac_fn_c_try_link "$LINENO"; then :
16511 lt_aix_libpath_sed='
16512 /Import File Strings/,/^$/ {
16514 s/^0 *\([^ ]*\) *$/\1/
16518 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16519 # Check for a 64-bit object if we didn't find anything.
16520 if test -z "$lt_cv_aix_libpath_"; then
16521 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16524 rm -f core conftest.err conftest.$ac_objext \
16525 conftest$ac_exeext conftest.$ac_ext
16526 if test -z "$lt_cv_aix_libpath_"; then
16527 lt_cv_aix_libpath_="/usr/lib:/lib"
16532 aix_libpath=$lt_cv_aix_libpath_
16535 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16536 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"
16538 if test "$host_cpu" = ia64; then
16539 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16540 allow_undefined_flag="-z nodefs"
16541 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"
16543 # Determine the default libpath from the value encoded in an
16544 # empty executable.
16545 if test "${lt_cv_aix_libpath+set}" = set; then
16546 aix_libpath=$lt_cv_aix_libpath
16548 if ${lt_cv_aix_libpath_+:} false; then :
16549 $as_echo_n "(cached) " >&6
16551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16552 /* end confdefs.h. */
16562 if ac_fn_c_try_link "$LINENO"; then :
16564 lt_aix_libpath_sed='
16565 /Import File Strings/,/^$/ {
16567 s/^0 *\([^ ]*\) *$/\1/
16571 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16572 # Check for a 64-bit object if we didn't find anything.
16573 if test -z "$lt_cv_aix_libpath_"; then
16574 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16577 rm -f core conftest.err conftest.$ac_objext \
16578 conftest$ac_exeext conftest.$ac_ext
16579 if test -z "$lt_cv_aix_libpath_"; then
16580 lt_cv_aix_libpath_="/usr/lib:/lib"
16585 aix_libpath=$lt_cv_aix_libpath_
16588 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16589 # Warning - without using the other run time loading flags,
16590 # -berok will link without error, but may produce a broken library.
16591 no_undefined_flag=' ${wl}-bernotok'
16592 allow_undefined_flag=' ${wl}-berok'
16593 if test "$with_gnu_ld" = yes; then
16594 # We only use this code for GNU lds that support --whole-archive.
16595 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16597 # Exported symbols can be pulled into shared objects from archives
16598 whole_archive_flag_spec='$convenience'
16600 archive_cmds_need_lc=yes
16601 # This is similar to how AIX traditionally builds its shared libraries.
16602 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'
16610 # see comment about AmigaOS4 .so support
16611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16612 archive_expsym_cmds=''
16615 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)'
16616 hardcode_libdir_flag_spec='-L$libdir'
16617 hardcode_minus_L=yes
16623 export_dynamic_flag_spec=-rdynamic
16626 cygwin* | mingw* | pw32* | cegcc*)
16627 # When not using gcc, we currently assume that we are using
16628 # Microsoft Visual C++.
16629 # hardcode_libdir_flag_spec is actually meaningless, as there is
16630 # no search path for DLLs.
16631 case $cc_basename in
16634 hardcode_libdir_flag_spec=' '
16635 allow_undefined_flag=unsupported
16636 always_export_symbols=yes
16638 # Tell ltmain to make .lib files, not .a files.
16640 # Tell ltmain to make .dll files, not .so files.
16642 # FIXME: Setting linknames here is a bad hack.
16643 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16644 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16645 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16647 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16649 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16651 # The linker will not automatically build a static lib if we build a DLL.
16652 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16653 enable_shared_with_static_runtimes=yes
16654 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16655 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16657 old_postinstall_cmds='chmod 644 $oldlib'
16658 postlink_cmds='lt_outputfile="@OUTPUT@"~
16659 lt_tool_outputfile="@TOOL_OUTPUT@"~
16660 case $lt_outputfile in
16663 lt_outputfile="$lt_outputfile.exe"
16664 lt_tool_outputfile="$lt_tool_outputfile.exe"
16667 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16668 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16669 $RM "$lt_outputfile.manifest";
16673 # Assume MSVC wrapper
16674 hardcode_libdir_flag_spec=' '
16675 allow_undefined_flag=unsupported
16676 # Tell ltmain to make .lib files, not .a files.
16678 # Tell ltmain to make .dll files, not .so files.
16680 # FIXME: Setting linknames here is a bad hack.
16681 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16682 # The linker will automatically build a .lib file if we build a DLL.
16683 old_archive_from_new_cmds='true'
16684 # FIXME: Should let the user specify the lib program.
16685 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16686 enable_shared_with_static_runtimes=yes
16691 darwin* | rhapsody*)
16694 archive_cmds_need_lc=no
16696 hardcode_automatic=yes
16697 hardcode_shlibpath_var=unsupported
16698 if test "$lt_cv_ld_force_load" = "yes"; then
16699 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\"`'
16702 whole_archive_flag_spec=''
16704 link_all_deplibs=yes
16705 allow_undefined_flag="$_lt_dar_allow_undefined"
16706 case $cc_basename in
16707 ifort*) _lt_dar_can_shared=yes ;;
16708 *) _lt_dar_can_shared=$GCC ;;
16710 if test "$_lt_dar_can_shared" = "yes"; then
16711 output_verbose_link_cmd=func_echo_all
16712 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16713 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16714 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}"
16715 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}"
16724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16725 hardcode_libdir_flag_spec='-L$libdir'
16726 hardcode_shlibpath_var=no
16729 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16730 # support. Future versions do this automatically, but an explicit c++rt0.o
16731 # does not break anything, and helps significantly (at the cost of a little
16734 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16735 hardcode_libdir_flag_spec='-R$libdir'
16736 hardcode_direct=yes
16737 hardcode_shlibpath_var=no
16740 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16742 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16743 hardcode_direct=yes
16744 hardcode_minus_L=yes
16745 hardcode_shlibpath_var=no
16748 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16749 freebsd* | dragonfly*)
16750 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16751 hardcode_libdir_flag_spec='-R$libdir'
16752 hardcode_direct=yes
16753 hardcode_shlibpath_var=no
16757 if test "$GCC" = yes; then
16758 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'
16760 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'
16762 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16763 hardcode_libdir_separator=:
16764 hardcode_direct=yes
16766 # hardcode_minus_L: Not really in the search PATH,
16767 # but as the default location of the library.
16768 hardcode_minus_L=yes
16769 export_dynamic_flag_spec='${wl}-E'
16773 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16774 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16776 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16778 if test "$with_gnu_ld" = no; then
16779 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16780 hardcode_libdir_separator=:
16781 hardcode_direct=yes
16782 hardcode_direct_absolute=yes
16783 export_dynamic_flag_spec='${wl}-E'
16784 # hardcode_minus_L: Not really in the search PATH,
16785 # but as the default location of the library.
16786 hardcode_minus_L=yes
16791 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16794 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16797 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16800 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16806 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16809 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16813 # Older versions of the 11.00 compiler do not understand -b yet
16814 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16816 $as_echo_n "checking if $CC understands -b... " >&6; }
16817 if ${lt_cv_prog_compiler__b+:} false; then :
16818 $as_echo_n "(cached) " >&6
16820 lt_cv_prog_compiler__b=no
16821 save_LDFLAGS="$LDFLAGS"
16822 LDFLAGS="$LDFLAGS -b"
16823 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16824 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16825 # The linker can only warn and ignore the option if not recognized
16826 # So say no if there are warnings
16827 if test -s conftest.err; then
16828 # Append any errors to the config.log.
16829 cat conftest.err 1>&5
16830 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16831 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16832 if diff conftest.exp conftest.er2 >/dev/null; then
16833 lt_cv_prog_compiler__b=yes
16836 lt_cv_prog_compiler__b=yes
16840 LDFLAGS="$save_LDFLAGS"
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16844 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16846 if test x"$lt_cv_prog_compiler__b" = xyes; then
16847 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16849 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16855 if test "$with_gnu_ld" = no; then
16856 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16857 hardcode_libdir_separator=:
16862 hardcode_shlibpath_var=no
16865 hardcode_direct=yes
16866 hardcode_direct_absolute=yes
16867 export_dynamic_flag_spec='${wl}-E'
16869 # hardcode_minus_L: Not really in the search PATH,
16870 # but as the default location of the library.
16871 hardcode_minus_L=yes
16877 irix5* | irix6* | nonstopux*)
16878 if test "$GCC" = yes; then
16879 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'
16880 # Try to use the -exported_symbol ld option, if it does not
16881 # work, assume that -exports_file does not work either and
16882 # implicitly export all symbols.
16883 # This should be the same for all languages, so no per-tag cache variable.
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16885 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16886 if ${lt_cv_irix_exported_symbol+:} false; then :
16887 $as_echo_n "(cached) " >&6
16889 save_LDFLAGS="$LDFLAGS"
16890 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16892 /* end confdefs.h. */
16893 int foo (void) { return 0; }
16895 if ac_fn_c_try_link "$LINENO"; then :
16896 lt_cv_irix_exported_symbol=yes
16898 lt_cv_irix_exported_symbol=no
16900 rm -f core conftest.err conftest.$ac_objext \
16901 conftest$ac_exeext conftest.$ac_ext
16902 LDFLAGS="$save_LDFLAGS"
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16905 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16906 if test "$lt_cv_irix_exported_symbol" = yes; then
16907 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'
16910 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'
16911 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'
16913 archive_cmds_need_lc='no'
16914 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16915 hardcode_libdir_separator=:
16917 link_all_deplibs=yes
16920 netbsd* | netbsdelf*-gnu)
16921 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16922 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16924 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16926 hardcode_libdir_flag_spec='-R$libdir'
16927 hardcode_direct=yes
16928 hardcode_shlibpath_var=no
16932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16933 hardcode_direct=yes
16934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16935 hardcode_libdir_separator=:
16936 hardcode_shlibpath_var=no
16943 if test -f /usr/libexec/ld.so; then
16944 hardcode_direct=yes
16945 hardcode_shlibpath_var=no
16946 hardcode_direct_absolute=yes
16947 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16948 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16949 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16950 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16951 export_dynamic_flag_spec='${wl}-E'
16954 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16955 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16956 hardcode_libdir_flag_spec='-R$libdir'
16959 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16960 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16970 hardcode_libdir_flag_spec='-L$libdir'
16971 hardcode_minus_L=yes
16972 allow_undefined_flag=unsupported
16973 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'
16974 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16978 if test "$GCC" = yes; then
16979 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16980 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'
16982 allow_undefined_flag=' -expect_unresolved \*'
16983 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'
16985 archive_cmds_need_lc='no'
16986 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16987 hardcode_libdir_separator=:
16990 osf4* | osf5*) # as osf3* with the addition of -msym flag
16991 if test "$GCC" = yes; then
16992 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16993 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'
16994 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16996 allow_undefined_flag=' -expect_unresolved \*'
16997 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'
16998 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~
16999 $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'
17001 # Both c and cxx compiler support -rpath directly
17002 hardcode_libdir_flag_spec='-rpath $libdir'
17004 archive_cmds_need_lc='no'
17005 hardcode_libdir_separator=:
17009 no_undefined_flag=' -z defs'
17010 if test "$GCC" = yes; then
17012 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17013 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17014 $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'
17016 case `$CC -V 2>&1` in
17019 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17020 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17021 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17025 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17026 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17027 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17031 hardcode_libdir_flag_spec='-R$libdir'
17032 hardcode_shlibpath_var=no
17034 solaris2.[0-5] | solaris2.[0-5].*) ;;
17036 # The compiler driver will combine and reorder linker options,
17037 # but understands `-z linker_flag'. GCC discards it without `$wl',
17038 # but is careful enough not to reorder.
17039 # Supported since Solaris 2.6 (maybe 2.5.1?)
17040 if test "$GCC" = yes; then
17041 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17043 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17047 link_all_deplibs=yes
17051 if test "x$host_vendor" = xsequent; then
17052 # Use $CC to link under sequent, because it throws in some extra .o
17053 # files that make .init and .fini sections work.
17054 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17056 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17058 hardcode_libdir_flag_spec='-L$libdir'
17059 hardcode_direct=yes
17060 hardcode_minus_L=yes
17061 hardcode_shlibpath_var=no
17065 case $host_vendor in
17067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17068 hardcode_direct=yes # is this really true???
17071 ## LD is ld it makes a PLAMLIB
17072 ## CC just makes a GrossModule.
17073 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17074 reload_cmds='$CC -r -o $output$reload_objs'
17078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17079 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17082 runpath_var='LD_RUN_PATH'
17083 hardcode_shlibpath_var=no
17087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17088 hardcode_shlibpath_var=no
17089 export_dynamic_flag_spec='-Bexport'
17093 if test -d /usr/nec; then
17094 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17095 hardcode_shlibpath_var=no
17096 runpath_var=LD_RUN_PATH
17097 hardcode_runpath_var=yes
17102 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17103 no_undefined_flag='${wl}-z,text'
17104 archive_cmds_need_lc=no
17105 hardcode_shlibpath_var=no
17106 runpath_var='LD_RUN_PATH'
17108 if test "$GCC" = yes; then
17109 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17110 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17112 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17113 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17117 sysv5* | sco3.2v5* | sco5v6*)
17118 # Note: We can NOT use -z defs as we might desire, because we do not
17119 # link with -lc, and that would cause any symbols used from libc to
17120 # always be unresolved, which means just about no library would
17121 # ever link correctly. If we're not using GNU ld we use -z text
17122 # though, which does catch some bad symbols but isn't as heavy-handed
17124 no_undefined_flag='${wl}-z,text'
17125 allow_undefined_flag='${wl}-z,nodefs'
17126 archive_cmds_need_lc=no
17127 hardcode_shlibpath_var=no
17128 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17129 hardcode_libdir_separator=':'
17130 link_all_deplibs=yes
17131 export_dynamic_flag_spec='${wl}-Bexport'
17132 runpath_var='LD_RUN_PATH'
17134 if test "$GCC" = yes; then
17135 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17136 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17138 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17139 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17145 hardcode_libdir_flag_spec='-L$libdir'
17146 hardcode_shlibpath_var=no
17154 if test x$host_vendor = xsni; then
17156 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17157 export_dynamic_flag_spec='${wl}-Blargedynsym'
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17164 $as_echo "$ld_shlibs" >&6; }
17165 test "$ld_shlibs" = no && can_build_shared=no
17167 with_gnu_ld=$with_gnu_ld
17184 # Do we need to explicitly link libc?
17186 case "x$archive_cmds_need_lc" in
17188 # Assume -lc should be added
17189 archive_cmds_need_lc=yes
17191 if test "$enable_shared" = yes && test "$GCC" = yes; then
17192 case $archive_cmds in
17194 # FIXME: we may have to deal with multi-command sequences.
17197 # Test whether the compiler implicitly links with -lc since on some
17198 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17199 # to ld, don't add -lc before -lgcc.
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17201 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17202 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17203 $as_echo_n "(cached) " >&6
17206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17209 (eval $ac_compile) 2>&5
17211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17212 test $ac_status = 0; } 2>conftest.err; then
17215 libobjs=conftest.$ac_objext
17217 wl=$lt_prog_compiler_wl
17218 pic_flag=$lt_prog_compiler_pic
17224 lt_save_allow_undefined_flag=$allow_undefined_flag
17225 allow_undefined_flag=
17226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17227 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17230 test $ac_status = 0; }
17232 lt_cv_archive_cmds_need_lc=no
17234 lt_cv_archive_cmds_need_lc=yes
17236 allow_undefined_flag=$lt_save_allow_undefined_flag
17238 cat conftest.err 1>&5
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17244 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17245 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17404 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17406 if test "$GCC" = yes; then
17408 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17409 *) lt_awk_arg="/^libraries:/" ;;
17412 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17413 *) lt_sed_strip_eq="s,=/,/,g" ;;
17415 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17416 case $lt_search_path_spec in
17418 # if the path contains ";" then we assume it to be the separator
17419 # otherwise default to the standard path separator (i.e. ":") - it is
17420 # assumed that no part of a normal pathname contains ";" but that should
17421 # okay in the real world where ";" in dirpaths is itself problematic.
17422 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17425 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17428 # Ok, now we have the path, separated by spaces, we can step through it
17429 # and add multilib dir if necessary.
17430 lt_tmp_lt_search_path_spec=
17431 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17432 for lt_sys_path in $lt_search_path_spec; do
17433 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17434 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17436 test -d "$lt_sys_path" && \
17437 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17440 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17441 BEGIN {RS=" "; FS="/|\n";} {
17444 for (lt_i = NF; lt_i > 0; lt_i--) {
17445 if ($lt_i != "" && $lt_i != ".") {
17446 if ($lt_i == "..") {
17449 if (lt_count == 0) {
17450 lt_foo="/" $lt_i lt_foo;
17457 if (lt_foo != "") { lt_freq[lt_foo]++; }
17458 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17460 # AWK program above erroneously prepends '/' to C:/dos/paths
17463 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17464 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17466 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17468 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17470 library_names_spec=
17471 libname_spec='lib$name'
17475 postuninstall_cmds=
17479 shlibpath_overrides_runpath=unknown
17481 dynamic_linker="$host_os ld.so"
17482 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17483 need_lib_prefix=unknown
17484 hardcode_into_libs=no
17486 # when you set need_version to no, make sure it does not cause -set_version
17487 # flags to be left without arguments
17488 need_version=unknown
17492 version_type=linux # correct to gnu/linux during the next big refactor
17493 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17494 shlibpath_var=LIBPATH
17496 # AIX 3 has no versioning support, so we append a major version to the name.
17497 soname_spec='${libname}${release}${shared_ext}$major'
17501 version_type=linux # correct to gnu/linux during the next big refactor
17504 hardcode_into_libs=yes
17505 if test "$host_cpu" = ia64; then
17506 # AIX 5 supports IA64
17507 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17508 shlibpath_var=LD_LIBRARY_PATH
17510 # With GCC up to 2.95.x, collect2 would create an import file
17511 # for dependence libraries. The import file would start with
17512 # the line `#! .'. This would cause the generated library to
17513 # depend on `.', always an invalid library. This was fixed in
17514 # development snapshots of GCC prior to 3.0.
17516 aix4 | aix4.[01] | aix4.[01].*)
17517 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17519 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17522 can_build_shared=no
17526 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17527 # soname into executable. Probably we can add versioning support to
17528 # collect2, so additional links can be useful in future.
17529 if test "$aix_use_runtimelinking" = yes; then
17530 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17531 # instead of lib<name>.a to let people know that these are not
17532 # typical AIX shared libraries.
17533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17535 # We preserve .a as extension for shared libraries through AIX4.2
17536 # and later when we are not doing run time linking.
17537 library_names_spec='${libname}${release}.a $libname.a'
17538 soname_spec='${libname}${release}${shared_ext}$major'
17540 shlibpath_var=LIBPATH
17547 # Since July 2007 AmigaOS4 officially supports .so libraries.
17548 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17552 library_names_spec='$libname.ixlibrary $libname.a'
17553 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17554 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'
17560 library_names_spec='${libname}${shared_ext}'
17561 dynamic_linker="$host_os ld.so"
17562 shlibpath_var=LIBRARY_PATH
17566 version_type=linux # correct to gnu/linux during the next big refactor
17568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17569 soname_spec='${libname}${release}${shared_ext}$major'
17570 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17571 shlibpath_var=LD_LIBRARY_PATH
17572 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17573 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17574 # the default ld.so.conf also contains /usr/contrib/lib and
17575 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17576 # libtool to hard-code these into programs
17579 cygwin* | mingw* | pw32* | cegcc*)
17580 version_type=windows
17585 case $GCC,$cc_basename in
17588 library_names_spec='$libname.dll.a'
17589 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17590 postinstall_cmds='base_file=`basename \${file}`~
17591 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17592 dldir=$destdir/`dirname \$dlpath`~
17593 test -d \$dldir || mkdir -p \$dldir~
17594 $install_prog $dir/$dlname \$dldir/$dlname~
17595 chmod a+x \$dldir/$dlname~
17596 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17597 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17599 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17600 dlpath=$dir/\$dldll~
17602 shlibpath_overrides_runpath=yes
17606 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17607 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17609 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17612 # MinGW DLLs use traditional 'lib' prefix
17613 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17616 # pw32 DLLs use 'pw' prefix rather than 'lib'
17617 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17620 dynamic_linker='Win32 ld.exe'
17625 libname_spec='$name'
17626 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17627 library_names_spec='${libname}.dll.lib'
17631 sys_lib_search_path_spec=
17634 for lt_path in $LIB
17637 # Let DOS variable expansion print the short 8.3 style file name.
17638 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17639 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17642 # Convert to MSYS style.
17643 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17646 # Convert to unix form, then to dos form, then back to unix form
17647 # but this time dos style (no spaces!) so that the unix form looks
17648 # like /cygdrive/c/PROGRA~1:/cygdr...
17649 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17650 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17651 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17654 sys_lib_search_path_spec="$LIB"
17655 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17656 # It is most probably a Windows format PATH.
17657 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17659 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17661 # FIXME: find the short name or the path components, as spaces are
17662 # common. (e.g. "Program Files" -> "PROGRA~1")
17666 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17667 postinstall_cmds='base_file=`basename \${file}`~
17668 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17669 dldir=$destdir/`dirname \$dlpath`~
17670 test -d \$dldir || mkdir -p \$dldir~
17671 $install_prog $dir/$dlname \$dldir/$dlname'
17672 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17673 dlpath=$dir/\$dldll~
17675 shlibpath_overrides_runpath=yes
17676 dynamic_linker='Win32 link.exe'
17680 # Assume MSVC wrapper
17681 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17682 dynamic_linker='Win32 ld.exe'
17685 # FIXME: first we should search . and the directory the executable is in
17689 darwin* | rhapsody*)
17690 dynamic_linker="$host_os dyld"
17691 version_type=darwin
17694 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17695 soname_spec='${libname}${release}${major}$shared_ext'
17696 shlibpath_overrides_runpath=yes
17697 shlibpath_var=DYLD_LIBRARY_PATH
17698 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17700 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17701 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17705 version_type=linux # correct to gnu/linux during the next big refactor
17708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17709 soname_spec='${libname}${release}${shared_ext}$major'
17710 shlibpath_var=LD_LIBRARY_PATH
17713 freebsd* | dragonfly*)
17714 # DragonFly does not have aout. When/if they implement a new
17715 # versioning mechanism, adjust this.
17716 if test -x /usr/bin/objformat; then
17717 objformat=`/usr/bin/objformat`
17720 freebsd[23].*) objformat=aout ;;
17721 *) objformat=elf ;;
17724 version_type=freebsd-$objformat
17725 case $version_type in
17727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17732 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17736 shlibpath_var=LD_LIBRARY_PATH
17739 shlibpath_overrides_runpath=yes
17741 freebsd3.[01]* | freebsdelf3.[01]*)
17742 shlibpath_overrides_runpath=yes
17743 hardcode_into_libs=yes
17745 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17746 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17747 shlibpath_overrides_runpath=no
17748 hardcode_into_libs=yes
17750 *) # from 4.6 on, and DragonFly
17751 shlibpath_overrides_runpath=yes
17752 hardcode_into_libs=yes
17758 version_type=linux # correct to gnu/linux during the next big refactor
17761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17762 soname_spec='${libname}${release}${shared_ext}$major'
17763 shlibpath_var=LD_LIBRARY_PATH
17764 shlibpath_overrides_runpath=no
17765 hardcode_into_libs=yes
17769 version_type=linux # correct to gnu/linux during the next big refactor
17772 dynamic_linker="$host_os runtime_loader"
17773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17774 soname_spec='${libname}${release}${shared_ext}$major'
17775 shlibpath_var=LIBRARY_PATH
17776 shlibpath_overrides_runpath=yes
17777 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17778 hardcode_into_libs=yes
17781 hpux9* | hpux10* | hpux11*)
17782 # Give a soname corresponding to the major version so that dld.sl refuses to
17783 # link against other versions.
17790 hardcode_into_libs=yes
17791 dynamic_linker="$host_os dld.so"
17792 shlibpath_var=LD_LIBRARY_PATH
17793 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17795 soname_spec='${libname}${release}${shared_ext}$major'
17796 if test "X$HPUX_IA64_MODE" = X32; then
17797 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17799 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17805 hardcode_into_libs=yes
17806 dynamic_linker="$host_os dld.sl"
17807 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17808 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17810 soname_spec='${libname}${release}${shared_ext}$major'
17811 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17816 dynamic_linker="$host_os dld.sl"
17817 shlibpath_var=SHLIB_PATH
17818 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17820 soname_spec='${libname}${release}${shared_ext}$major'
17823 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17824 postinstall_cmds='chmod 555 $lib'
17825 # or fails outright, so override atomically:
17826 install_override_mode=555
17830 version_type=linux # correct to gnu/linux during the next big refactor
17833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17834 soname_spec='${libname}${release}${shared_ext}$major'
17835 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17836 shlibpath_var=LD_LIBRARY_PATH
17837 shlibpath_overrides_runpath=no
17838 hardcode_into_libs=yes
17841 irix5* | irix6* | nonstopux*)
17843 nonstopux*) version_type=nonstopux ;;
17845 if test "$lt_cv_prog_gnu_ld" = yes; then
17846 version_type=linux # correct to gnu/linux during the next big refactor
17853 soname_spec='${libname}${release}${shared_ext}$major'
17854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17856 irix5* | nonstopux*)
17857 libsuff= shlibsuff=
17860 case $LD in # libtool.m4 will add one of these switches to LD
17861 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17862 libsuff= shlibsuff= libmagic=32-bit;;
17863 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17864 libsuff=32 shlibsuff=N32 libmagic=N32;;
17865 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17866 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17867 *) libsuff= shlibsuff= libmagic=never-match;;
17871 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17872 shlibpath_overrides_runpath=no
17873 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17874 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17875 hardcode_into_libs=yes
17878 # No shared lib support for Linux oldld, aout, or coff.
17879 linux*oldld* | linux*aout* | linux*coff*)
17883 # This must be glibc/ELF.
17884 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17885 version_type=linux # correct to gnu/linux during the next big refactor
17888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17889 soname_spec='${libname}${release}${shared_ext}$major'
17890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17891 shlibpath_var=LD_LIBRARY_PATH
17892 shlibpath_overrides_runpath=no
17894 # Some binutils ld are patched to set DT_RUNPATH
17895 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17896 $as_echo_n "(cached) " >&6
17898 lt_cv_shlibpath_overrides_runpath=no
17899 save_LDFLAGS=$LDFLAGS
17900 save_libdir=$libdir
17901 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17902 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17904 /* end confdefs.h. */
17914 if ac_fn_c_try_link "$LINENO"; then :
17915 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17916 lt_cv_shlibpath_overrides_runpath=yes
17919 rm -f core conftest.err conftest.$ac_objext \
17920 conftest$ac_exeext conftest.$ac_ext
17921 LDFLAGS=$save_LDFLAGS
17922 libdir=$save_libdir
17926 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17928 # This implies no fast_install, which is unacceptable.
17929 # Some rework will be needed to allow for fast_install
17930 # before this can be enabled.
17931 hardcode_into_libs=yes
17933 # Append ld.so.conf contents to the search path
17934 if test -f /etc/ld.so.conf; then
17935 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' ' '`
17936 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17939 # We used to test for /lib/ld.so.1 and disable shared libraries on
17940 # powerpc, because MkLinux only supported shared libraries with the
17941 # GNU dynamic linker. Since this was broken with cross compilers,
17942 # most powerpc-linux boxes support dynamic linking these days and
17943 # people can always --disable-shared, the test was removed, and we
17944 # assume the GNU/Linux dynamic linker is in use.
17945 dynamic_linker='GNU/Linux ld.so'
17952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17953 soname_spec='${libname}${release}${shared_ext}$major'
17954 shlibpath_var=LD_LIBRARY_PATH
17955 shlibpath_overrides_runpath=no
17956 hardcode_into_libs=yes
17957 dynamic_linker='NetBSD ld.elf_so'
17964 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17967 dynamic_linker='NetBSD (a.out) ld.so'
17969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17970 soname_spec='${libname}${release}${shared_ext}$major'
17971 dynamic_linker='NetBSD ld.elf_so'
17973 shlibpath_var=LD_LIBRARY_PATH
17974 shlibpath_overrides_runpath=yes
17975 hardcode_into_libs=yes
17979 version_type=linux # correct to gnu/linux during the next big refactor
17980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17981 shlibpath_var=LD_LIBRARY_PATH
17982 shlibpath_overrides_runpath=yes
17989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17990 soname_spec='${libname}${release}${shared_ext}$major'
17991 shlibpath_var=LD_LIBRARY_PATH
17992 shlibpath_overrides_runpath=no
17993 hardcode_into_libs=yes
17994 dynamic_linker='ldqnx.so'
17999 sys_lib_dlsearch_path_spec="/usr/lib"
18001 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18003 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18004 *) need_version=no ;;
18006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18008 shlibpath_var=LD_LIBRARY_PATH
18009 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18011 openbsd2.[89] | openbsd2.[89].*)
18012 shlibpath_overrides_runpath=no
18015 shlibpath_overrides_runpath=yes
18019 shlibpath_overrides_runpath=yes
18024 libname_spec='$name'
18027 library_names_spec='$libname${shared_ext} $libname.a'
18028 dynamic_linker='OS/2 ld.exe'
18029 shlibpath_var=LIBPATH
18032 osf3* | osf4* | osf5*)
18036 soname_spec='${libname}${release}${shared_ext}$major'
18037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18038 shlibpath_var=LD_LIBRARY_PATH
18039 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18040 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18048 version_type=linux # correct to gnu/linux during the next big refactor
18051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18052 soname_spec='${libname}${release}${shared_ext}$major'
18053 shlibpath_var=LD_LIBRARY_PATH
18054 shlibpath_overrides_runpath=yes
18055 hardcode_into_libs=yes
18056 # ldd complains unless libraries are executable
18057 postinstall_cmds='chmod +x $lib'
18062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18063 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18064 shlibpath_var=LD_LIBRARY_PATH
18065 shlibpath_overrides_runpath=yes
18066 if test "$with_gnu_ld" = yes; then
18073 version_type=linux # correct to gnu/linux during the next big refactor
18074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18075 soname_spec='${libname}${release}${shared_ext}$major'
18076 shlibpath_var=LD_LIBRARY_PATH
18077 case $host_vendor in
18079 shlibpath_overrides_runpath=no
18081 runpath_var=LD_RUN_PATH
18089 shlibpath_overrides_runpath=no
18090 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18096 if test -d /usr/nec ;then
18097 version_type=linux # correct to gnu/linux during the next big refactor
18098 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18099 soname_spec='$libname${shared_ext}.$major'
18100 shlibpath_var=LD_LIBRARY_PATH
18104 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18105 version_type=freebsd-elf
18108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18109 soname_spec='${libname}${release}${shared_ext}$major'
18110 shlibpath_var=LD_LIBRARY_PATH
18111 shlibpath_overrides_runpath=yes
18112 hardcode_into_libs=yes
18113 if test "$with_gnu_ld" = yes; then
18114 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18116 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18119 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18123 sys_lib_dlsearch_path_spec='/usr/lib'
18127 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18128 version_type=linux # correct to gnu/linux during the next big refactor
18131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18132 shlibpath_var=LD_LIBRARY_PATH
18133 shlibpath_overrides_runpath=no
18134 hardcode_into_libs=yes
18138 version_type=linux # correct to gnu/linux during the next big refactor
18139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18140 soname_spec='${libname}${release}${shared_ext}$major'
18141 shlibpath_var=LD_LIBRARY_PATH
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18149 $as_echo "$dynamic_linker" >&6; }
18150 test "$dynamic_linker" = no && can_build_shared=no
18152 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18153 if test "$GCC" = yes; then
18154 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18157 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18158 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18160 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18161 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18256 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18258 if test -n "$hardcode_libdir_flag_spec" ||
18259 test -n "$runpath_var" ||
18260 test "X$hardcode_automatic" = "Xyes" ; then
18262 # We can hardcode non-existent directories.
18263 if test "$hardcode_direct" != no &&
18264 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18265 # have to relink, otherwise we might link with an installed library
18266 # when we should be linking with a yet-to-be-installed one
18267 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18268 test "$hardcode_minus_L" != no; then
18269 # Linking always hardcodes the temporary library directory.
18270 hardcode_action=relink
18272 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18273 hardcode_action=immediate
18276 # We cannot hardcode anything, or else we can only hardcode existing
18278 hardcode_action=unsupported
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18281 $as_echo "$hardcode_action" >&6; }
18283 if test "$hardcode_action" = relink ||
18284 test "$inherit_rpath" = yes; then
18285 # Fast installation is not supported
18286 enable_fast_install=no
18287 elif test "$shlibpath_overrides_runpath" = yes ||
18288 test "$enable_shared" = no; then
18289 # Fast installation is not necessary
18290 enable_fast_install=needless
18298 if test "x$enable_dlopen" != xyes; then
18299 enable_dlopen=unknown
18300 enable_dlopen_self=unknown
18301 enable_dlopen_self_static=unknown
18308 lt_cv_dlopen="load_add_on"
18310 lt_cv_dlopen_self=yes
18313 mingw* | pw32* | cegcc*)
18314 lt_cv_dlopen="LoadLibrary"
18319 lt_cv_dlopen="dlopen"
18324 # if libdl is installed we need to link against it
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18326 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18327 if ${ac_cv_lib_dl_dlopen+:} false; then :
18328 $as_echo_n "(cached) " >&6
18330 ac_check_lib_save_LIBS=$LIBS
18332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18333 /* end confdefs.h. */
18335 /* Override any GCC internal prototype to avoid an error.
18336 Use char because int might match the return type of a GCC
18337 builtin and then its argument prototype would still apply. */
18350 if ac_fn_c_try_link "$LINENO"; then :
18351 ac_cv_lib_dl_dlopen=yes
18353 ac_cv_lib_dl_dlopen=no
18355 rm -f core conftest.err conftest.$ac_objext \
18356 conftest$ac_exeext conftest.$ac_ext
18357 LIBS=$ac_check_lib_save_LIBS
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18360 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18361 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18362 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18365 lt_cv_dlopen="dyld"
18367 lt_cv_dlopen_self=yes
18374 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18375 if test "x$ac_cv_func_shl_load" = xyes; then :
18376 lt_cv_dlopen="shl_load"
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18379 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18380 if ${ac_cv_lib_dld_shl_load+:} false; then :
18381 $as_echo_n "(cached) " >&6
18383 ac_check_lib_save_LIBS=$LIBS
18385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18386 /* end confdefs.h. */
18388 /* Override any GCC internal prototype to avoid an error.
18389 Use char because int might match the return type of a GCC
18390 builtin and then its argument prototype would still apply. */
18398 return shl_load ();
18403 if ac_fn_c_try_link "$LINENO"; then :
18404 ac_cv_lib_dld_shl_load=yes
18406 ac_cv_lib_dld_shl_load=no
18408 rm -f core conftest.err conftest.$ac_objext \
18409 conftest$ac_exeext conftest.$ac_ext
18410 LIBS=$ac_check_lib_save_LIBS
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18413 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18414 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18415 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18417 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18418 if test "x$ac_cv_func_dlopen" = xyes; then :
18419 lt_cv_dlopen="dlopen"
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18422 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18423 if ${ac_cv_lib_dl_dlopen+:} false; then :
18424 $as_echo_n "(cached) " >&6
18426 ac_check_lib_save_LIBS=$LIBS
18428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429 /* end confdefs.h. */
18431 /* Override any GCC internal prototype to avoid an error.
18432 Use char because int might match the return type of a GCC
18433 builtin and then its argument prototype would still apply. */
18446 if ac_fn_c_try_link "$LINENO"; then :
18447 ac_cv_lib_dl_dlopen=yes
18449 ac_cv_lib_dl_dlopen=no
18451 rm -f core conftest.err conftest.$ac_objext \
18452 conftest$ac_exeext conftest.$ac_ext
18453 LIBS=$ac_check_lib_save_LIBS
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18456 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18457 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18458 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18461 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18462 if ${ac_cv_lib_svld_dlopen+:} false; then :
18463 $as_echo_n "(cached) " >&6
18465 ac_check_lib_save_LIBS=$LIBS
18466 LIBS="-lsvld $LIBS"
18467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18468 /* end confdefs.h. */
18470 /* Override any GCC internal prototype to avoid an error.
18471 Use char because int might match the return type of a GCC
18472 builtin and then its argument prototype would still apply. */
18485 if ac_fn_c_try_link "$LINENO"; then :
18486 ac_cv_lib_svld_dlopen=yes
18488 ac_cv_lib_svld_dlopen=no
18490 rm -f core conftest.err conftest.$ac_objext \
18491 conftest$ac_exeext conftest.$ac_ext
18492 LIBS=$ac_check_lib_save_LIBS
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18495 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18496 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18497 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18500 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18501 if ${ac_cv_lib_dld_dld_link+:} false; then :
18502 $as_echo_n "(cached) " >&6
18504 ac_check_lib_save_LIBS=$LIBS
18506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18507 /* end confdefs.h. */
18509 /* Override any GCC internal prototype to avoid an error.
18510 Use char because int might match the return type of a GCC
18511 builtin and then its argument prototype would still apply. */
18519 return dld_link ();
18524 if ac_fn_c_try_link "$LINENO"; then :
18525 ac_cv_lib_dld_dld_link=yes
18527 ac_cv_lib_dld_dld_link=no
18529 rm -f core conftest.err conftest.$ac_objext \
18530 conftest$ac_exeext conftest.$ac_ext
18531 LIBS=$ac_check_lib_save_LIBS
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18534 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18535 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18536 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18557 if test "x$lt_cv_dlopen" != xno; then
18563 case $lt_cv_dlopen in
18565 save_CPPFLAGS="$CPPFLAGS"
18566 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18568 save_LDFLAGS="$LDFLAGS"
18569 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18572 LIBS="$lt_cv_dlopen_libs $LIBS"
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18575 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18576 if ${lt_cv_dlopen_self+:} false; then :
18577 $as_echo_n "(cached) " >&6
18579 if test "$cross_compiling" = yes; then :
18580 lt_cv_dlopen_self=cross
18582 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18583 lt_status=$lt_dlunknown
18584 cat > conftest.$ac_ext <<_LT_EOF
18585 #line $LINENO "configure"
18586 #include "confdefs.h"
18595 # define LT_DLGLOBAL RTLD_GLOBAL
18598 # define LT_DLGLOBAL DL_GLOBAL
18600 # define LT_DLGLOBAL 0
18604 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18605 find out it does not work in some platform. */
18606 #ifndef LT_DLLAZY_OR_NOW
18608 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18611 # define LT_DLLAZY_OR_NOW DL_LAZY
18614 # define LT_DLLAZY_OR_NOW RTLD_NOW
18617 # define LT_DLLAZY_OR_NOW DL_NOW
18619 # define LT_DLLAZY_OR_NOW 0
18626 /* When -fvisbility=hidden is used, assume the code has been annotated
18627 correspondingly for the symbols needed. */
18628 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18629 int fnord () __attribute__((visibility("default")));
18632 int fnord () { return 42; }
18635 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18636 int status = $lt_dlunknown;
18640 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18643 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18644 else puts (dlerror ());
18646 /* dlclose (self); */
18654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18655 (eval $ac_link) 2>&5
18657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18658 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18659 (./conftest; exit; ) >&5 2>/dev/null
18661 case x$lt_status in
18662 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18663 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18664 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18667 # compilation failed
18668 lt_cv_dlopen_self=no
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18676 $as_echo "$lt_cv_dlopen_self" >&6; }
18678 if test "x$lt_cv_dlopen_self" = xyes; then
18679 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18681 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18682 if ${lt_cv_dlopen_self_static+:} false; then :
18683 $as_echo_n "(cached) " >&6
18685 if test "$cross_compiling" = yes; then :
18686 lt_cv_dlopen_self_static=cross
18688 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18689 lt_status=$lt_dlunknown
18690 cat > conftest.$ac_ext <<_LT_EOF
18691 #line $LINENO "configure"
18692 #include "confdefs.h"
18701 # define LT_DLGLOBAL RTLD_GLOBAL
18704 # define LT_DLGLOBAL DL_GLOBAL
18706 # define LT_DLGLOBAL 0
18710 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18711 find out it does not work in some platform. */
18712 #ifndef LT_DLLAZY_OR_NOW
18714 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18717 # define LT_DLLAZY_OR_NOW DL_LAZY
18720 # define LT_DLLAZY_OR_NOW RTLD_NOW
18723 # define LT_DLLAZY_OR_NOW DL_NOW
18725 # define LT_DLLAZY_OR_NOW 0
18732 /* When -fvisbility=hidden is used, assume the code has been annotated
18733 correspondingly for the symbols needed. */
18734 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18735 int fnord () __attribute__((visibility("default")));
18738 int fnord () { return 42; }
18741 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18742 int status = $lt_dlunknown;
18746 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18749 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18750 else puts (dlerror ());
18752 /* dlclose (self); */
18760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18761 (eval $ac_link) 2>&5
18763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18764 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18765 (./conftest; exit; ) >&5 2>/dev/null
18767 case x$lt_status in
18768 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18769 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18770 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18773 # compilation failed
18774 lt_cv_dlopen_self_static=no
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18782 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18785 CPPFLAGS="$save_CPPFLAGS"
18786 LDFLAGS="$save_LDFLAGS"
18791 case $lt_cv_dlopen_self in
18792 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18793 *) enable_dlopen_self=unknown ;;
18796 case $lt_cv_dlopen_self_static in
18797 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18798 *) enable_dlopen_self_static=unknown ;;
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18821 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18822 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18823 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18824 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18826 $as_echo "yes" >&6; }
18828 # FIXME - insert some real tests, host_os isn't really good enough
18831 if test -n "$STRIP" ; then
18832 striplib="$STRIP -x"
18833 old_striplib="$STRIP -S"
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18835 $as_echo "yes" >&6; }
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18838 $as_echo "no" >&6; }
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18843 $as_echo "no" >&6; }
18859 # Report which library types will actually be built
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18861 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18863 $as_echo "$can_build_shared" >&6; }
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18866 $as_echo_n "checking whether to build shared libraries... " >&6; }
18867 test "$can_build_shared" = "no" && enable_shared=no
18869 # On AIX, shared libraries and static libraries use the same namespace, and
18870 # are all built from PIC.
18873 test "$enable_shared" = yes && enable_static=no
18874 if test -n "$RANLIB"; then
18875 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18876 postinstall_cmds='$RANLIB $lib'
18881 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18882 test "$enable_shared" = yes && enable_static=no
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18887 $as_echo "$enable_shared" >&6; }
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18890 $as_echo_n "checking whether to build static libraries... " >&6; }
18891 # Make sure either enable_shared or enable_static is yes.
18892 test "$enable_shared" = yes || enable_static=yes
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18894 $as_echo "$enable_static" >&6; }
18901 ac_cpp='$CPP $CPPFLAGS'
18902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18908 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18909 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18910 (test "X$CXX" != "Xg++"))) ; then
18912 ac_cpp='$CXXCPP $CPPFLAGS'
18913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18917 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18918 if test -z "$CXXCPP"; then
18919 if ${ac_cv_prog_CXXCPP+:} false; then :
18920 $as_echo_n "(cached) " >&6
18922 # Double quotes because CXXCPP needs to be expanded
18923 for CXXCPP in "$CXX -E" "/lib/cpp"
18925 ac_preproc_ok=false
18926 for ac_cxx_preproc_warn_flag in '' yes
18928 # Use a header file that comes with gcc, so configuring glibc
18929 # with a fresh cross-compiler works.
18930 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18931 # <limits.h> exists even on freestanding compilers.
18932 # On the NeXT, cc -E runs the code through the compiler's parser,
18933 # not just through cpp. "Syntax error" is here to catch this case.
18934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18935 /* end confdefs.h. */
18937 # include <limits.h>
18939 # include <assert.h>
18943 if ac_fn_cxx_try_cpp "$LINENO"; then :
18946 # Broken: fails on valid input.
18949 rm -f conftest.err conftest.i conftest.$ac_ext
18951 # OK, works on sane cases. Now check whether nonexistent headers
18952 # can be detected and how.
18953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18954 /* end confdefs.h. */
18955 #include <ac_nonexistent.h>
18957 if ac_fn_cxx_try_cpp "$LINENO"; then :
18958 # Broken: success on invalid input.
18961 # Passes both tests.
18965 rm -f conftest.err conftest.i conftest.$ac_ext
18968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18969 rm -f conftest.i conftest.err conftest.$ac_ext
18970 if $ac_preproc_ok; then :
18975 ac_cv_prog_CXXCPP=$CXXCPP
18978 CXXCPP=$ac_cv_prog_CXXCPP
18980 ac_cv_prog_CXXCPP=$CXXCPP
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18983 $as_echo "$CXXCPP" >&6; }
18984 ac_preproc_ok=false
18985 for ac_cxx_preproc_warn_flag in '' yes
18987 # Use a header file that comes with gcc, so configuring glibc
18988 # with a fresh cross-compiler works.
18989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18990 # <limits.h> exists even on freestanding compilers.
18991 # On the NeXT, cc -E runs the code through the compiler's parser,
18992 # not just through cpp. "Syntax error" is here to catch this case.
18993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18994 /* end confdefs.h. */
18996 # include <limits.h>
18998 # include <assert.h>
19002 if ac_fn_cxx_try_cpp "$LINENO"; then :
19005 # Broken: fails on valid input.
19008 rm -f conftest.err conftest.i conftest.$ac_ext
19010 # OK, works on sane cases. Now check whether nonexistent headers
19011 # can be detected and how.
19012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19013 /* end confdefs.h. */
19014 #include <ac_nonexistent.h>
19016 if ac_fn_cxx_try_cpp "$LINENO"; then :
19017 # Broken: success on invalid input.
19020 # Passes both tests.
19024 rm -f conftest.err conftest.i conftest.$ac_ext
19027 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19028 rm -f conftest.i conftest.err conftest.$ac_ext
19029 if $ac_preproc_ok; then :
19032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19034 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19035 See \`config.log' for more details" "$LINENO" 5; }
19039 ac_cpp='$CPP $CPPFLAGS'
19040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19045 _lt_caught_CXX_error=yes
19049 ac_cpp='$CXXCPP $CPPFLAGS'
19050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19054 archive_cmds_need_lc_CXX=no
19055 allow_undefined_flag_CXX=
19056 always_export_symbols_CXX=no
19057 archive_expsym_cmds_CXX=
19058 compiler_needs_object_CXX=no
19059 export_dynamic_flag_spec_CXX=
19060 hardcode_direct_CXX=no
19061 hardcode_direct_absolute_CXX=no
19062 hardcode_libdir_flag_spec_CXX=
19063 hardcode_libdir_separator_CXX=
19064 hardcode_minus_L_CXX=no
19065 hardcode_shlibpath_var_CXX=unsupported
19066 hardcode_automatic_CXX=no
19067 inherit_rpath_CXX=no
19069 module_expsym_cmds_CXX=
19070 link_all_deplibs_CXX=unknown
19071 old_archive_cmds_CXX=$old_archive_cmds
19072 reload_flag_CXX=$reload_flag
19073 reload_cmds_CXX=$reload_cmds
19074 no_undefined_flag_CXX=
19075 whole_archive_flag_spec_CXX=
19076 enable_shared_with_static_runtimes_CXX=no
19078 # Source file extension for C++ test sources.
19081 # Object file extension for compiled C++ test sources.
19085 # No sense in running all these tests if we already determined that
19086 # the CXX compiler isn't working. Some variables (like enable_shared)
19087 # are currently assumed to apply to all compilers on this platform,
19088 # and will be corrupted by setting them based on a non-working compiler.
19089 if test "$_lt_caught_CXX_error" != yes; then
19090 # Code to be used in simple compile tests
19091 lt_simple_compile_test_code="int some_variable = 0;"
19093 # Code to be used in simple link tests
19094 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19096 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19103 # If no C compiler was specified, use CC.
19106 # If no C compiler flags were specified, use CFLAGS.
19107 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19109 # Allow CC to be a program name with arguments.
19113 # save warnings/boilerplate of simple test code
19114 ac_outfile=conftest.$ac_objext
19115 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19116 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19117 _lt_compiler_boilerplate=`cat conftest.err`
19120 ac_outfile=conftest.$ac_objext
19121 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19122 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19123 _lt_linker_boilerplate=`cat conftest.err`
19127 # Allow CC to be a program name with arguments.
19129 lt_save_CFLAGS=$CFLAGS
19133 lt_save_with_gnu_ld=$with_gnu_ld
19134 lt_save_path_LD=$lt_cv_path_LD
19135 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19136 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19138 $as_unset lt_cv_prog_gnu_ld
19140 if test -n "${lt_cv_path_LDCXX+set}"; then
19141 lt_cv_path_LD=$lt_cv_path_LDCXX
19143 $as_unset lt_cv_path_LD
19145 test -z "${LDCXX+set}" || LD=$LDCXX
19150 for cc_temp in $compiler""; do
19152 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19153 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19158 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19161 if test -n "$compiler"; then
19162 # We don't want -fno-exception when compiling C++ code, so set the
19163 # no_builtin_flag separately
19164 if test "$GXX" = yes; then
19165 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19167 lt_prog_compiler_no_builtin_flag_CXX=
19170 if test "$GXX" = yes; then
19171 # Set up default GNU C++ configuration
19175 # Check whether --with-gnu-ld was given.
19176 if test "${with_gnu_ld+set}" = set; then :
19177 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19183 if test "$GCC" = yes; then
19184 # Check if gcc -print-prog-name=ld gives a path.
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19186 $as_echo_n "checking for ld used by $CC... " >&6; }
19189 # gcc leaves a trailing carriage return which upsets mingw
19190 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19192 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19195 # Accept absolute paths.
19197 re_direlt='/[^/][^/]*/\.\./'
19198 # Canonicalize the pathname of ld
19199 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19200 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19201 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19203 test -z "$LD" && LD="$ac_prog"
19206 # If it fails, then pretend we aren't using GCC.
19210 # If it is relative, then search for the first ld in PATH.
19211 with_gnu_ld=unknown
19214 elif test "$with_gnu_ld" = yes; then
19215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19216 $as_echo_n "checking for GNU ld... " >&6; }
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19219 $as_echo_n "checking for non-GNU ld... " >&6; }
19221 if ${lt_cv_path_LD+:} false; then :
19222 $as_echo_n "(cached) " >&6
19224 if test -z "$LD"; then
19225 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19226 for ac_dir in $PATH; do
19228 test -z "$ac_dir" && ac_dir=.
19229 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19230 lt_cv_path_LD="$ac_dir/$ac_prog"
19231 # Check to see if the program is GNU ld. I'd rather use --version,
19232 # but apparently some variants of GNU ld only accept -v.
19233 # Break only if it was the GNU/non-GNU ld that we prefer.
19234 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19235 *GNU* | *'with BFD'*)
19236 test "$with_gnu_ld" != no && break
19239 test "$with_gnu_ld" != yes && break
19246 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19250 LD="$lt_cv_path_LD"
19251 if test -n "$LD"; then
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19253 $as_echo "$LD" >&6; }
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19256 $as_echo "no" >&6; }
19258 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19260 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19261 if ${lt_cv_prog_gnu_ld+:} false; then :
19262 $as_echo_n "(cached) " >&6
19264 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19265 case `$LD -v 2>&1 </dev/null` in
19266 *GNU* | *'with BFD'*)
19267 lt_cv_prog_gnu_ld=yes
19270 lt_cv_prog_gnu_ld=no
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19275 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19276 with_gnu_ld=$lt_cv_prog_gnu_ld
19284 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19285 # archiving commands below assume that GNU ld is being used.
19286 if test "$with_gnu_ld" = yes; then
19287 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19288 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19290 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19291 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19293 # If archive_cmds runs LD, not CC, wlarc should be empty
19294 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19295 # investigate it a little bit more. (MM)
19298 # ancient GNU ld didn't support --whole-archive et. al.
19299 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19300 $GREP 'no-whole-archive' > /dev/null; then
19301 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19303 whole_archive_flag_spec_CXX=
19309 # A generic and very simple default shared library creation
19310 # command for GNU C++ for the case where it uses the native
19311 # linker, instead of GNU ld. If possible, this setting should
19312 # overridden to take advantage of the native linker features on
19313 # the platform it is being used on.
19314 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19317 # Commands to make compiler produce verbose output that lists
19318 # what "hidden" libraries, object files and flags are used when
19319 # linking a shared library.
19320 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19328 # PORTME: fill in a description of your system's C++ link characteristics
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19330 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19334 # FIXME: insert proper C++ library support
19338 if test "$host_cpu" = ia64; then
19339 # On IA64, the linker does run time linking by default, so we don't
19340 # have to do anything special.
19341 aix_use_runtimelinking=no
19342 exp_sym_flag='-Bexport'
19345 aix_use_runtimelinking=no
19347 # Test if we are trying to use run time linking or normal
19348 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19349 # need to do runtime linking.
19350 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19351 for ld_flag in $LDFLAGS; do
19354 aix_use_runtimelinking=yes
19362 exp_sym_flag='-bexport'
19363 no_entry_flag='-bnoentry'
19366 # When large executables or shared objects are built, AIX ld can
19367 # have problems creating the table of contents. If linking a library
19368 # or program results in "error TOC overflow" add -mminimal-toc to
19369 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19370 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19372 archive_cmds_CXX=''
19373 hardcode_direct_CXX=yes
19374 hardcode_direct_absolute_CXX=yes
19375 hardcode_libdir_separator_CXX=':'
19376 link_all_deplibs_CXX=yes
19377 file_list_spec_CXX='${wl}-f,'
19379 if test "$GXX" = yes; then
19380 case $host_os in aix4.[012]|aix4.[012].*)
19381 # We only want to do this on AIX 4.2 and lower, the check
19382 # below for broken collect2 doesn't work under 4.3+
19383 collect2name=`${CC} -print-prog-name=collect2`
19384 if test -f "$collect2name" &&
19385 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19387 # We have reworked collect2
19390 # We have old collect2
19391 hardcode_direct_CXX=unsupported
19392 # It fails to find uninstalled libraries when the uninstalled
19393 # path is not listed in the libpath. Setting hardcode_minus_L
19394 # to unsupported forces relinking
19395 hardcode_minus_L_CXX=yes
19396 hardcode_libdir_flag_spec_CXX='-L$libdir'
19397 hardcode_libdir_separator_CXX=
19400 shared_flag='-shared'
19401 if test "$aix_use_runtimelinking" = yes; then
19402 shared_flag="$shared_flag "'${wl}-G'
19406 if test "$host_cpu" = ia64; then
19407 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19408 # chokes on -Wl,-G. The following line is correct:
19411 if test "$aix_use_runtimelinking" = yes; then
19412 shared_flag='${wl}-G'
19414 shared_flag='${wl}-bM:SRE'
19419 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19420 # It seems that -bexpall does not export symbols beginning with
19421 # underscore (_), so it is better to generate a list of symbols to
19423 always_export_symbols_CXX=yes
19424 if test "$aix_use_runtimelinking" = yes; then
19425 # Warning - without using the other runtime loading flags (-brtl),
19426 # -berok will link without error, but may produce a broken library.
19427 allow_undefined_flag_CXX='-berok'
19428 # Determine the default libpath from the value encoded in an empty
19430 if test "${lt_cv_aix_libpath+set}" = set; then
19431 aix_libpath=$lt_cv_aix_libpath
19433 if ${lt_cv_aix_libpath__CXX+:} false; then :
19434 $as_echo_n "(cached) " >&6
19436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19437 /* end confdefs.h. */
19447 if ac_fn_cxx_try_link "$LINENO"; then :
19449 lt_aix_libpath_sed='
19450 /Import File Strings/,/^$/ {
19452 s/^0 *\([^ ]*\) *$/\1/
19456 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19457 # Check for a 64-bit object if we didn't find anything.
19458 if test -z "$lt_cv_aix_libpath__CXX"; then
19459 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19462 rm -f core conftest.err conftest.$ac_objext \
19463 conftest$ac_exeext conftest.$ac_ext
19464 if test -z "$lt_cv_aix_libpath__CXX"; then
19465 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
19470 aix_libpath=$lt_cv_aix_libpath__CXX
19473 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19475 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19477 if test "$host_cpu" = ia64; then
19478 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19479 allow_undefined_flag_CXX="-z nodefs"
19480 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
19482 # Determine the default libpath from the value encoded in an
19483 # empty executable.
19484 if test "${lt_cv_aix_libpath+set}" = set; then
19485 aix_libpath=$lt_cv_aix_libpath
19487 if ${lt_cv_aix_libpath__CXX+:} false; then :
19488 $as_echo_n "(cached) " >&6
19490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19491 /* end confdefs.h. */
19501 if ac_fn_cxx_try_link "$LINENO"; then :
19503 lt_aix_libpath_sed='
19504 /Import File Strings/,/^$/ {
19506 s/^0 *\([^ ]*\) *$/\1/
19510 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19511 # Check for a 64-bit object if we didn't find anything.
19512 if test -z "$lt_cv_aix_libpath__CXX"; then
19513 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19516 rm -f core conftest.err conftest.$ac_objext \
19517 conftest$ac_exeext conftest.$ac_ext
19518 if test -z "$lt_cv_aix_libpath__CXX"; then
19519 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
19524 aix_libpath=$lt_cv_aix_libpath__CXX
19527 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19528 # Warning - without using the other run time loading flags,
19529 # -berok will link without error, but may produce a broken library.
19530 no_undefined_flag_CXX=' ${wl}-bernotok'
19531 allow_undefined_flag_CXX=' ${wl}-berok'
19532 if test "$with_gnu_ld" = yes; then
19533 # We only use this code for GNU lds that support --whole-archive.
19534 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19536 # Exported symbols can be pulled into shared objects from archives
19537 whole_archive_flag_spec_CXX='$convenience'
19539 archive_cmds_need_lc_CXX=yes
19540 # This is similar to how AIX traditionally builds its shared
19542 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19548 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19549 allow_undefined_flag_CXX=unsupported
19550 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19551 # support --undefined. This deserves some investigation. FIXME
19552 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19559 case $cc_basename in
19561 # FIXME: insert proper C++ library support
19567 cygwin* | mingw* | pw32* | cegcc*)
19568 case $GXX,$cc_basename in
19571 # hardcode_libdir_flag_spec is actually meaningless, as there is
19572 # no search path for DLLs.
19573 hardcode_libdir_flag_spec_CXX=' '
19574 allow_undefined_flag_CXX=unsupported
19575 always_export_symbols_CXX=yes
19576 file_list_spec_CXX='@'
19577 # Tell ltmain to make .lib files, not .a files.
19579 # Tell ltmain to make .dll files, not .so files.
19581 # FIXME: Setting linknames here is a bad hack.
19582 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
19583 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19584 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
19586 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
19588 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19590 # The linker will not automatically build a static lib if we build a DLL.
19591 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
19592 enable_shared_with_static_runtimes_CXX=yes
19594 old_postinstall_cmds_CXX='chmod 644 $oldlib'
19595 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
19596 lt_tool_outputfile="@TOOL_OUTPUT@"~
19597 case $lt_outputfile in
19600 lt_outputfile="$lt_outputfile.exe"
19601 lt_tool_outputfile="$lt_tool_outputfile.exe"
19604 func_to_tool_file "$lt_outputfile"~
19605 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
19606 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19607 $RM "$lt_outputfile.manifest";
19612 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19613 # as there is no search path for DLLs.
19614 hardcode_libdir_flag_spec_CXX='-L$libdir'
19615 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19616 allow_undefined_flag_CXX=unsupported
19617 always_export_symbols_CXX=no
19618 enable_shared_with_static_runtimes_CXX=yes
19620 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19621 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19622 # If the export-symbols file already is a .def file (1st line
19623 # is EXPORTS), use it as is; otherwise, prepend...
19624 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19625 cp $export_symbols $output_objdir/$soname.def;
19627 echo EXPORTS > $output_objdir/$soname.def;
19628 cat $export_symbols >> $output_objdir/$soname.def;
19630 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19637 darwin* | rhapsody*)
19640 archive_cmds_need_lc_CXX=no
19641 hardcode_direct_CXX=no
19642 hardcode_automatic_CXX=yes
19643 hardcode_shlibpath_var_CXX=unsupported
19644 if test "$lt_cv_ld_force_load" = "yes"; then
19645 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
19648 whole_archive_flag_spec_CXX=''
19650 link_all_deplibs_CXX=yes
19651 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19652 case $cc_basename in
19653 ifort*) _lt_dar_can_shared=yes ;;
19654 *) _lt_dar_can_shared=$GCC ;;
19656 if test "$_lt_dar_can_shared" = "yes"; then
19657 output_verbose_link_cmd=func_echo_all
19658 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19659 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19660 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
19661 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
19662 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19663 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
19664 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
19674 case $cc_basename in
19676 # FIXME: insert proper C++ library support
19680 # Green Hills C++ Compiler
19681 # FIXME: insert proper C++ library support
19685 # FIXME: insert proper C++ library support
19692 # C++ shared libraries reported to be fairly broken before
19698 archive_cmds_need_lc_CXX=no
19701 freebsd* | dragonfly*)
19702 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19711 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19712 link_all_deplibs_CXX=yes
19716 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19717 hardcode_libdir_separator_CXX=:
19718 export_dynamic_flag_spec_CXX='${wl}-E'
19719 hardcode_direct_CXX=yes
19720 hardcode_minus_L_CXX=yes # Not in the search PATH,
19721 # but as the default
19722 # location of the library.
19724 case $cc_basename in
19726 # FIXME: insert proper C++ library support
19730 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19731 # Commands to make compiler produce verbose output that lists
19732 # what "hidden" libraries, object files and flags are used when
19733 # linking a shared library.
19735 # There doesn't appear to be a way to prevent this compiler from
19736 # explicitly linking system object files so we need to strip them
19737 # from the output so that they don't get included in the library
19739 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19742 if test "$GXX" = yes; then
19743 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19745 # FIXME: insert proper C++ library support
19753 if test $with_gnu_ld = no; then
19754 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19755 hardcode_libdir_separator_CXX=:
19761 export_dynamic_flag_spec_CXX='${wl}-E'
19767 hardcode_direct_CXX=no
19768 hardcode_shlibpath_var_CXX=no
19771 hardcode_direct_CXX=yes
19772 hardcode_direct_absolute_CXX=yes
19773 hardcode_minus_L_CXX=yes # Not in the search PATH,
19774 # but as the default
19775 # location of the library.
19779 case $cc_basename in
19781 # FIXME: insert proper C++ library support
19787 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19790 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19793 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19796 # Commands to make compiler produce verbose output that lists
19797 # what "hidden" libraries, object files and flags are used when
19798 # linking a shared library.
19800 # There doesn't appear to be a way to prevent this compiler from
19801 # explicitly linking system object files so we need to strip them
19802 # from the output so that they don't get included in the library
19804 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19807 if test "$GXX" = yes; then
19808 if test $with_gnu_ld = no; then
19811 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19814 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19817 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19822 # FIXME: insert proper C++ library support
19830 hardcode_direct_CXX=no
19831 hardcode_shlibpath_var_CXX=no
19832 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19833 export_dynamic_flag_spec_CXX='${wl}-E'
19834 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19835 # Instead, shared libraries are loaded at an image base (0x10000000 by
19836 # default) and relocated if they conflict, which is a slow very memory
19837 # consuming and fragmenting process. To avoid this, we pick a random,
19838 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19839 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19840 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19841 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19844 case $cc_basename in
19847 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19849 # Archives containing C++ object files must be created using
19850 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19851 # necessary to make sure instantiated templates are included
19853 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19856 if test "$GXX" = yes; then
19857 if test "$with_gnu_ld" = no; then
19858 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
19860 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
19863 link_all_deplibs_CXX=yes
19866 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19867 hardcode_libdir_separator_CXX=:
19868 inherit_rpath_CXX=yes
19871 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19872 case $cc_basename in
19874 # Kuck and Associates, Inc. (KAI) C++ Compiler
19876 # KCC will only create a shared library if the output file
19877 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19878 # to its proper name (with version) after linking.
19879 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19880 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
19881 # Commands to make compiler produce verbose output that lists
19882 # what "hidden" libraries, object files and flags are used when
19883 # linking a shared library.
19885 # There doesn't appear to be a way to prevent this compiler from
19886 # explicitly linking system object files so we need to strip them
19887 # from the output so that they don't get included in the library
19889 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19891 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19892 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19894 # Archives containing C++ object files must be created using
19895 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19896 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19901 # version 8.0 and above of icpc choke on multiply defined symbols
19902 # if we add $predep_objects and $postdep_objects, however 7.1 and
19903 # earlier do not add the objects themselves.
19904 case `$CC -V 2>&1` in
19906 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19907 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19909 *) # Version 8.0 or newer
19912 ia64*) tmp_idyn=' -i_dynamic';;
19914 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19915 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19918 archive_cmds_need_lc_CXX=no
19919 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19920 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19921 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19924 # Portland Group C++ compiler
19926 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19927 prelink_cmds_CXX='tpldir=Template.dir~
19929 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19930 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19931 old_archive_cmds_CXX='tpldir=Template.dir~
19933 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19934 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19936 archive_cmds_CXX='tpldir=Template.dir~
19938 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19939 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19940 archive_expsym_cmds_CXX='tpldir=Template.dir~
19942 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19943 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19945 *) # Version 6 and above use weak symbols
19946 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19947 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19951 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19952 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19953 whole_archive_flag_spec_CXX='${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'
19957 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19958 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
19960 runpath_var=LD_RUN_PATH
19961 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19962 hardcode_libdir_separator_CXX=:
19964 # Commands to make compiler produce verbose output that lists
19965 # what "hidden" libraries, object files and flags are used when
19966 # linking a shared library.
19968 # There doesn't appear to be a way to prevent this compiler from
19969 # explicitly linking system object files so we need to strip them
19970 # from the output so that they don't get included in the library
19972 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
19974 xl* | mpixl* | bgxl*)
19975 # IBM XL 8.0 on PPC, with GNU ld
19976 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19977 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19978 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19979 if test "x$supports_anon_versioning" = xyes; then
19980 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19981 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19982 echo "local: *; };" >> $output_objdir/$libname.ver~
19983 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19987 case `$CC -V 2>&1 | sed 5q` in
19990 no_undefined_flag_CXX=' -zdefs'
19991 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19992 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
19993 hardcode_libdir_flag_spec_CXX='-R$libdir'
19994 whole_archive_flag_spec_CXX='${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'
19995 compiler_needs_object_CXX=yes
19997 # Not sure whether something based on
19998 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20000 output_verbose_link_cmd='func_echo_all'
20002 # Archives containing C++ object files must be created using
20003 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20004 # necessary to make sure instantiated templates are included
20006 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20014 # FIXME: insert proper C++ library support
20019 # FIXME: insert proper C++ library support
20024 case $cc_basename in
20026 # FIXME: insert proper C++ library support
20030 # FIXME: insert proper C++ library support
20037 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20038 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20040 hardcode_libdir_flag_spec_CXX='-R$libdir'
20041 hardcode_direct_CXX=yes
20042 hardcode_shlibpath_var_CXX=no
20044 # Workaround some broken pre-1.5 toolchains
20045 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20053 # C++ shared libraries are fairly broken
20058 if test -f /usr/libexec/ld.so; then
20059 hardcode_direct_CXX=yes
20060 hardcode_shlibpath_var_CXX=no
20061 hardcode_direct_absolute_CXX=yes
20062 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20063 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20064 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20065 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20066 export_dynamic_flag_spec_CXX='${wl}-E'
20067 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20069 output_verbose_link_cmd=func_echo_all
20075 osf3* | osf4* | osf5*)
20076 case $cc_basename in
20078 # Kuck and Associates, Inc. (KAI) C++ Compiler
20080 # KCC will only create a shared library if the output file
20081 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20082 # to its proper name (with version) after linking.
20083 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
20085 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20086 hardcode_libdir_separator_CXX=:
20088 # Archives containing C++ object files must be created using
20089 # the KAI C++ compiler.
20091 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20092 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20096 # Rational C++ 2.4.1
20097 # FIXME: insert proper C++ library support
20103 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20104 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
20105 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20108 allow_undefined_flag_CXX=' -expect_unresolved \*'
20109 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
20110 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20111 echo "-hidden">> $lib.exp~
20112 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
20114 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20118 hardcode_libdir_separator_CXX=:
20120 # Commands to make compiler produce verbose output that lists
20121 # what "hidden" libraries, object files and flags are used when
20122 # linking a shared library.
20124 # There doesn't appear to be a way to prevent this compiler from
20125 # explicitly linking system object files so we need to strip them
20126 # from the output so that they don't get included in the library
20128 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
20131 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20132 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20135 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
20138 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
20142 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20143 hardcode_libdir_separator_CXX=:
20145 # Commands to make compiler produce verbose output that lists
20146 # what "hidden" libraries, object files and flags are used when
20147 # linking a shared library.
20148 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20151 # FIXME: insert proper C++ library support
20159 # FIXME: insert proper C++ library support
20164 case $cc_basename in
20167 # FIXME: insert proper C++ library support
20172 # FIXME: insert proper C++ library support
20176 # FIXME: insert proper C++ library support
20183 case $cc_basename in
20185 # Sun C++ 4.2, 5.x and Centerline C++
20186 archive_cmds_need_lc_CXX=yes
20187 no_undefined_flag_CXX=' -zdefs'
20188 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20189 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20190 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20192 hardcode_libdir_flag_spec_CXX='-R$libdir'
20193 hardcode_shlibpath_var_CXX=no
20195 solaris2.[0-5] | solaris2.[0-5].*) ;;
20197 # The compiler driver will combine and reorder linker options,
20198 # but understands `-z linker_flag'.
20199 # Supported since Solaris 2.6 (maybe 2.5.1?)
20200 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20203 link_all_deplibs_CXX=yes
20205 output_verbose_link_cmd='func_echo_all'
20207 # Archives containing C++ object files must be created using
20208 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20209 # necessary to make sure instantiated templates are included
20211 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20214 # Green Hills C++ Compiler
20215 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20217 # The C++ compiler must be used to create the archive.
20218 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20221 # GNU C++ compiler with Solaris linker
20222 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20223 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20224 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20225 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20226 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20227 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20229 # Commands to make compiler produce verbose output that lists
20230 # what "hidden" libraries, object files and flags are used when
20231 # linking a shared library.
20232 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20234 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20236 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20237 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20238 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20240 # Commands to make compiler produce verbose output that lists
20241 # what "hidden" libraries, object files and flags are used when
20242 # linking a shared library.
20243 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20246 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20248 solaris2.[0-5] | solaris2.[0-5].*) ;;
20250 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20258 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20259 no_undefined_flag_CXX='${wl}-z,text'
20260 archive_cmds_need_lc_CXX=no
20261 hardcode_shlibpath_var_CXX=no
20262 runpath_var='LD_RUN_PATH'
20264 case $cc_basename in
20266 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20267 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20270 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20271 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20276 sysv5* | sco3.2v5* | sco5v6*)
20277 # Note: We can NOT use -z defs as we might desire, because we do not
20278 # link with -lc, and that would cause any symbols used from libc to
20279 # always be unresolved, which means just about no library would
20280 # ever link correctly. If we're not using GNU ld we use -z text
20281 # though, which does catch some bad symbols but isn't as heavy-handed
20283 no_undefined_flag_CXX='${wl}-z,text'
20284 allow_undefined_flag_CXX='${wl}-z,nodefs'
20285 archive_cmds_need_lc_CXX=no
20286 hardcode_shlibpath_var_CXX=no
20287 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20288 hardcode_libdir_separator_CXX=':'
20289 link_all_deplibs_CXX=yes
20290 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20291 runpath_var='LD_RUN_PATH'
20293 case $cc_basename in
20295 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20296 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20297 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20298 '"$old_archive_cmds_CXX"
20299 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20300 '"$reload_cmds_CXX"
20303 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20304 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20310 case $cc_basename in
20312 # NonStop-UX NCC 3.20
20313 # FIXME: insert proper C++ library support
20317 # FIXME: insert proper C++ library support
20324 # FIXME: insert proper C++ library support
20329 # FIXME: insert proper C++ library support
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20335 $as_echo "$ld_shlibs_CXX" >&6; }
20336 test "$ld_shlibs_CXX" = no && can_build_shared=no
20342 ## There is no encapsulation within the following macros, do not change
20343 ## the running order or otherwise move them around unless you know exactly
20344 ## what you are doing...
20345 # Dependencies to place before and after the object being linked:
20346 predep_objects_CXX=
20347 postdep_objects_CXX=
20350 compiler_lib_search_path_CXX=
20352 cat > conftest.$ac_ext <<_LT_EOF
20356 Foo (void) { a = 0; }
20363 _lt_libdeps_save_CFLAGS=$CFLAGS
20364 case "$CC $CFLAGS " in #(
20365 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
20366 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
20367 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
20370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20371 (eval $ac_compile) 2>&5
20373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20374 test $ac_status = 0; }; then
20375 # Parse the compiler output and extract the necessary
20376 # objects, libraries and library flags.
20378 # Sentinel used to keep track of whether or not we are before
20379 # the conftest object file.
20380 pre_test_object_deps_done=no
20382 for p in `eval "$output_verbose_link_cmd"`; do
20383 case ${prev}${p} in
20386 # Some compilers place space between "-{L,R}" and the path.
20387 # Remove the space.
20388 if test $p = "-L" ||
20389 test $p = "-R"; then
20394 # Expand the sysroot to ease extracting the directories later.
20395 if test -z "$prev"; then
20397 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
20398 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
20399 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
20403 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
20405 if test "$pre_test_object_deps_done" = no; then
20408 # Internal compiler library paths should come after those
20409 # provided the user. The postdeps already come after the
20410 # user supplied libs so there is no need to process them.
20411 if test -z "$compiler_lib_search_path_CXX"; then
20412 compiler_lib_search_path_CXX="${prev}${p}"
20414 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20417 # The "-l" case would never come before the object being
20418 # linked, so don't bother handling this case.
20421 if test -z "$postdeps_CXX"; then
20422 postdeps_CXX="${prev}${p}"
20424 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20430 *.lto.$objext) ;; # Ignore GCC LTO objects
20432 # This assumes that the test object file only shows up
20433 # once in the compiler output.
20434 if test "$p" = "conftest.$objext"; then
20435 pre_test_object_deps_done=yes
20439 if test "$pre_test_object_deps_done" = no; then
20440 if test -z "$predep_objects_CXX"; then
20441 predep_objects_CXX="$p"
20443 predep_objects_CXX="$predep_objects_CXX $p"
20446 if test -z "$postdep_objects_CXX"; then
20447 postdep_objects_CXX="$p"
20449 postdep_objects_CXX="$postdep_objects_CXX $p"
20454 *) ;; # Ignore the rest.
20462 echo "libtool.m4: error: problem compiling CXX test program"
20465 $RM -f confest.$objext
20466 CFLAGS=$_lt_libdeps_save_CFLAGS
20468 # PORTME: override above test on systems where it is broken
20471 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20472 # hack all around it, let's just trust "g++" to DTRT.
20473 predep_objects_CXX=
20474 postdep_objects_CXX=
20479 case `$CC -V 2>&1 | sed 5q` in
20483 # The more standards-conforming stlport4 library is
20484 # incompatible with the Cstd library. Avoid specifying
20485 # it if it's in CXXFLAGS. Ignore libCrun as
20486 # -library=stlport4 depends on it.
20487 case " $CXX $CXXFLAGS " in
20488 *" -library=stlport4 "*)
20489 solaris_use_stlport4=yes
20493 if test "$solaris_use_stlport4" != yes; then
20494 postdeps_CXX='-library=Cstd -library=Crun'
20501 case $cc_basename in
20503 # The more standards-conforming stlport4 library is
20504 # incompatible with the Cstd library. Avoid specifying
20505 # it if it's in CXXFLAGS. Ignore libCrun as
20506 # -library=stlport4 depends on it.
20507 case " $CXX $CXXFLAGS " in
20508 *" -library=stlport4 "*)
20509 solaris_use_stlport4=yes
20513 # Adding this requires a known-good setup of shared libraries for
20514 # Sun compiler versions before 5.6, else PIC objects from an old
20515 # archive will be linked into the output, leading to subtle bugs.
20516 if test "$solaris_use_stlport4" != yes; then
20517 postdeps_CXX='-library=Cstd -library=Crun'
20525 case " $postdeps_CXX " in
20526 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20528 compiler_lib_search_dirs_CXX=
20529 if test -n "${compiler_lib_search_path_CXX}"; then
20530 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20563 lt_prog_compiler_wl_CXX=
20564 lt_prog_compiler_pic_CXX=
20565 lt_prog_compiler_static_CXX=
20568 # C++ specific cases for pic, static, wl, etc.
20569 if test "$GXX" = yes; then
20570 lt_prog_compiler_wl_CXX='-Wl,'
20571 lt_prog_compiler_static_CXX='-static'
20575 # All AIX code is PIC.
20576 if test "$host_cpu" = ia64; then
20577 # AIX 5 now supports IA64 processor
20578 lt_prog_compiler_static_CXX='-Bstatic'
20585 # see comment about AmigaOS4 .so support
20586 lt_prog_compiler_pic_CXX='-fPIC'
20589 # FIXME: we need at least 68020 code to build shared libraries, but
20590 # adding the `-m68020' flag to GCC prevents building anything better,
20592 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20597 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20598 # PIC is the default for these OSes.
20600 mingw* | cygwin* | os2* | pw32* | cegcc*)
20601 # This hack is so that the source file can tell whether it is being
20602 # built for inclusion in a dll (and should export symbols for example).
20603 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20604 # (--disable-auto-import) libraries
20605 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20607 darwin* | rhapsody*)
20608 # PIC is the default on this platform
20609 # Common symbols not allowed in MH_DYLIB files
20610 lt_prog_compiler_pic_CXX='-fno-common'
20613 # DJGPP does not support shared libraries at all
20614 lt_prog_compiler_pic_CXX=
20617 # PIC is the default for Haiku.
20618 # The "-static" flag exists, but is broken.
20619 lt_prog_compiler_static_CXX=
20622 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20623 # Instead, we relocate shared libraries at runtime.
20626 if test -d /usr/nec; then
20627 lt_prog_compiler_pic_CXX=-Kconform_pic
20631 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20632 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20633 # sets the default TLS model and affects inlining.
20638 lt_prog_compiler_pic_CXX='-fPIC'
20643 # QNX uses GNU C++, but need to define -shared option too, otherwise
20644 # it will coredump.
20645 lt_prog_compiler_pic_CXX='-fPIC -shared'
20648 lt_prog_compiler_pic_CXX='-fPIC'
20654 # All AIX code is PIC.
20655 if test "$host_cpu" = ia64; then
20656 # AIX 5 now supports IA64 processor
20657 lt_prog_compiler_static_CXX='-Bstatic'
20659 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20663 case $cc_basename in
20665 # Green Hills C++ Compiler
20666 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
20670 mingw* | cygwin* | os2* | pw32* | cegcc*)
20671 # This hack is so that the source file can tell whether it is being
20672 # built for inclusion in a dll (and should export symbols for example).
20673 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20676 case $cc_basename in
20678 lt_prog_compiler_pic_CXX='-KPIC'
20681 # Green Hills C++ Compiler
20682 lt_prog_compiler_pic_CXX='-pic'
20688 freebsd* | dragonfly*)
20689 # FreeBSD uses GNU C++
20691 hpux9* | hpux10* | hpux11*)
20692 case $cc_basename in
20694 lt_prog_compiler_wl_CXX='-Wl,'
20695 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20696 if test "$host_cpu" != ia64; then
20697 lt_prog_compiler_pic_CXX='+Z'
20701 lt_prog_compiler_wl_CXX='-Wl,'
20702 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20708 lt_prog_compiler_pic_CXX='+Z'
20717 # This is c89, which is MS Visual C++ (no shared libs)
20718 # Anyone wants to do a port?
20720 irix5* | irix6* | nonstopux*)
20721 case $cc_basename in
20723 lt_prog_compiler_wl_CXX='-Wl,'
20724 lt_prog_compiler_static_CXX='-non_shared'
20725 # CC pic flag -KPIC is the default.
20731 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20732 case $cc_basename in
20735 lt_prog_compiler_wl_CXX='--backend -Wl,'
20736 lt_prog_compiler_pic_CXX='-fPIC'
20739 # old Intel C++ for x86_64 which still supported -KPIC.
20740 lt_prog_compiler_wl_CXX='-Wl,'
20741 lt_prog_compiler_pic_CXX='-KPIC'
20742 lt_prog_compiler_static_CXX='-static'
20745 # Intel C++, used to be incompatible with GCC.
20746 # ICC 10 doesn't accept -KPIC any more.
20747 lt_prog_compiler_wl_CXX='-Wl,'
20748 lt_prog_compiler_pic_CXX='-fPIC'
20749 lt_prog_compiler_static_CXX='-static'
20752 # Portland Group C++ compiler
20753 lt_prog_compiler_wl_CXX='-Wl,'
20754 lt_prog_compiler_pic_CXX='-fpic'
20755 lt_prog_compiler_static_CXX='-Bstatic'
20759 # Make sure the PIC flag is empty. It appears that all Alpha
20760 # Linux and Compaq Tru64 Unix objects are PIC.
20761 lt_prog_compiler_pic_CXX=
20762 lt_prog_compiler_static_CXX='-non_shared'
20764 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20765 # IBM XL 8.0, 9.0 on PPC and BlueGene
20766 lt_prog_compiler_wl_CXX='-Wl,'
20767 lt_prog_compiler_pic_CXX='-qpic'
20768 lt_prog_compiler_static_CXX='-qstaticlink'
20771 case `$CC -V 2>&1 | sed 5q` in
20774 lt_prog_compiler_pic_CXX='-KPIC'
20775 lt_prog_compiler_static_CXX='-Bstatic'
20776 lt_prog_compiler_wl_CXX='-Qoption ld '
20787 case $cc_basename in
20789 lt_prog_compiler_pic_CXX='-W c,exportall'
20795 netbsd* | netbsdelf*-gnu)
20798 # QNX uses GNU C++, but need to define -shared option too, otherwise
20799 # it will coredump.
20800 lt_prog_compiler_pic_CXX='-fPIC -shared'
20802 osf3* | osf4* | osf5*)
20803 case $cc_basename in
20805 lt_prog_compiler_wl_CXX='--backend -Wl,'
20808 # Rational C++ 2.4.1
20809 lt_prog_compiler_pic_CXX='-pic'
20812 # Digital/Compaq C++
20813 lt_prog_compiler_wl_CXX='-Wl,'
20814 # Make sure the PIC flag is empty. It appears that all Alpha
20815 # Linux and Compaq Tru64 Unix objects are PIC.
20816 lt_prog_compiler_pic_CXX=
20817 lt_prog_compiler_static_CXX='-non_shared'
20826 case $cc_basename in
20828 # Sun C++ 4.2, 5.x and Centerline C++
20829 lt_prog_compiler_pic_CXX='-KPIC'
20830 lt_prog_compiler_static_CXX='-Bstatic'
20831 lt_prog_compiler_wl_CXX='-Qoption ld '
20834 # Green Hills C++ Compiler
20835 lt_prog_compiler_pic_CXX='-PIC'
20842 case $cc_basename in
20845 lt_prog_compiler_pic_CXX='-pic'
20846 lt_prog_compiler_static_CXX='-Bstatic'
20850 lt_prog_compiler_pic_CXX='-pic'
20856 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20857 case $cc_basename in
20859 lt_prog_compiler_wl_CXX='-Wl,'
20860 lt_prog_compiler_pic_CXX='-KPIC'
20861 lt_prog_compiler_static_CXX='-Bstatic'
20866 case $cc_basename in
20868 # NonStop-UX NCC 3.20
20869 lt_prog_compiler_pic_CXX='-KPIC'
20878 lt_prog_compiler_can_build_shared_CXX=no
20884 # For platforms which do not support PIC, -DPIC is meaningless:
20886 lt_prog_compiler_pic_CXX=
20889 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20894 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20895 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20896 $as_echo_n "(cached) " >&6
20898 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20901 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20902 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
20905 # Check to make sure the PIC flag actually works.
20907 if test -n "$lt_prog_compiler_pic_CXX"; then
20908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20909 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20910 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
20911 $as_echo_n "(cached) " >&6
20913 lt_cv_prog_compiler_pic_works_CXX=no
20914 ac_outfile=conftest.$ac_objext
20915 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20916 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20917 # Insert the option either (1) after the last *FLAGS variable, or
20918 # (2) before a word containing "conftest.", or (3) at the end.
20919 # Note that $ac_compile itself does not contain backslashes and begins
20920 # with a dollar sign (not a hyphen), so the echo should work correctly.
20921 # The option is referenced via a variable to avoid confusing sed.
20922 lt_compile=`echo "$ac_compile" | $SED \
20923 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20924 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20925 -e 's:$: $lt_compiler_flag:'`
20926 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20927 (eval "$lt_compile" 2>conftest.err)
20929 cat conftest.err >&5
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 if (exit $ac_status) && test -s "$ac_outfile"; then
20932 # The compiler can only warn and ignore the option if not recognized
20933 # So say no if there are warnings other than the usual output.
20934 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20935 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20936 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20937 lt_cv_prog_compiler_pic_works_CXX=yes
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20944 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20946 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20947 case $lt_prog_compiler_pic_CXX in
20949 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20952 lt_prog_compiler_pic_CXX=
20953 lt_prog_compiler_can_build_shared_CXX=no
20963 # Check to make sure the static flag actually works.
20965 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20967 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20968 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
20969 $as_echo_n "(cached) " >&6
20971 lt_cv_prog_compiler_static_works_CXX=no
20972 save_LDFLAGS="$LDFLAGS"
20973 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20974 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20975 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20976 # The linker can only warn and ignore the option if not recognized
20977 # So say no if there are warnings
20978 if test -s conftest.err; then
20979 # Append any errors to the config.log.
20980 cat conftest.err 1>&5
20981 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20982 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20983 if diff conftest.exp conftest.er2 >/dev/null; then
20984 lt_cv_prog_compiler_static_works_CXX=yes
20987 lt_cv_prog_compiler_static_works_CXX=yes
20991 LDFLAGS="$save_LDFLAGS"
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20995 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20997 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21000 lt_prog_compiler_static_CXX=
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21007 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21008 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21009 $as_echo_n "(cached) " >&6
21011 lt_cv_prog_compiler_c_o_CXX=no
21012 $RM -r conftest 2>/dev/null
21016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21018 lt_compiler_flag="-o out/conftest2.$ac_objext"
21019 # Insert the option either (1) after the last *FLAGS variable, or
21020 # (2) before a word containing "conftest.", or (3) at the end.
21021 # Note that $ac_compile itself does not contain backslashes and begins
21022 # with a dollar sign (not a hyphen), so the echo should work correctly.
21023 lt_compile=`echo "$ac_compile" | $SED \
21024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21026 -e 's:$: $lt_compiler_flag:'`
21027 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21028 (eval "$lt_compile" 2>out/conftest.err)
21030 cat out/conftest.err >&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21034 # The compiler can only warn and ignore the option if not recognized
21035 # So say no if there are warnings
21036 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21037 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21038 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21039 lt_cv_prog_compiler_c_o_CXX=yes
21044 # SGI C++ compiler will create directory out/ii_files/ for
21045 # template instantiation
21046 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21047 $RM out/* && rmdir out
21053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21054 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21059 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21060 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21061 $as_echo_n "(cached) " >&6
21063 lt_cv_prog_compiler_c_o_CXX=no
21064 $RM -r conftest 2>/dev/null
21068 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21070 lt_compiler_flag="-o out/conftest2.$ac_objext"
21071 # Insert the option either (1) after the last *FLAGS variable, or
21072 # (2) before a word containing "conftest.", or (3) at the end.
21073 # Note that $ac_compile itself does not contain backslashes and begins
21074 # with a dollar sign (not a hyphen), so the echo should work correctly.
21075 lt_compile=`echo "$ac_compile" | $SED \
21076 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21078 -e 's:$: $lt_compiler_flag:'`
21079 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21080 (eval "$lt_compile" 2>out/conftest.err)
21082 cat out/conftest.err >&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21086 # The compiler can only warn and ignore the option if not recognized
21087 # So say no if there are warnings
21088 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21089 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21090 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21091 lt_cv_prog_compiler_c_o_CXX=yes
21096 # SGI C++ compiler will create directory out/ii_files/ for
21097 # template instantiation
21098 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21099 $RM out/* && rmdir out
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21106 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21111 hard_links="nottested"
21112 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21113 # do not overwrite the value of need_locks provided by the user
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21115 $as_echo_n "checking if we can lock with hard links... " >&6; }
21118 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21120 ln conftest.a conftest.b 2>&5 || hard_links=no
21121 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21123 $as_echo "$hard_links" >&6; }
21124 if test "$hard_links" = no; then
21125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21126 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21136 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21138 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21139 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21142 # If we're using GNU nm, then we don't want the "-C" option.
21143 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21144 # Also, AIX nm treats weak defined symbols like other global defined
21145 # symbols, whereas GNU nm marks them as "W".
21146 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21147 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
21149 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
21153 export_symbols_cmds_CXX="$ltdll_cmds"
21155 cygwin* | mingw* | cegcc*)
21156 case $cc_basename in
21158 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
21161 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
21162 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
21166 linux* | k*bsd*-gnu | gnu*)
21167 link_all_deplibs_CXX=no
21170 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21175 $as_echo "$ld_shlibs_CXX" >&6; }
21176 test "$ld_shlibs_CXX" = no && can_build_shared=no
21178 with_gnu_ld_CXX=$with_gnu_ld
21186 # Do we need to explicitly link libc?
21188 case "x$archive_cmds_need_lc_CXX" in
21190 # Assume -lc should be added
21191 archive_cmds_need_lc_CXX=yes
21193 if test "$enable_shared" = yes && test "$GCC" = yes; then
21194 case $archive_cmds_CXX in
21196 # FIXME: we may have to deal with multi-command sequences.
21199 # Test whether the compiler implicitly links with -lc since on some
21200 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21201 # to ld, don't add -lc before -lgcc.
21202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21203 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21204 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21205 $as_echo_n "(cached) " >&6
21208 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21211 (eval $ac_compile) 2>&5
21213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21214 test $ac_status = 0; } 2>conftest.err; then
21217 libobjs=conftest.$ac_objext
21219 wl=$lt_prog_compiler_wl_CXX
21220 pic_flag=$lt_prog_compiler_pic_CXX
21226 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21227 allow_undefined_flag_CXX=
21228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21229 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21232 test $ac_status = 0; }
21234 lt_cv_archive_cmds_need_lc_CXX=no
21236 lt_cv_archive_cmds_need_lc_CXX=yes
21238 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21240 cat conftest.err 1>&5
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21246 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21247 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21316 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21318 library_names_spec=
21319 libname_spec='lib$name'
21323 postuninstall_cmds=
21327 shlibpath_overrides_runpath=unknown
21329 dynamic_linker="$host_os ld.so"
21330 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21331 need_lib_prefix=unknown
21332 hardcode_into_libs=no
21334 # when you set need_version to no, make sure it does not cause -set_version
21335 # flags to be left without arguments
21336 need_version=unknown
21340 version_type=linux # correct to gnu/linux during the next big refactor
21341 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21342 shlibpath_var=LIBPATH
21344 # AIX 3 has no versioning support, so we append a major version to the name.
21345 soname_spec='${libname}${release}${shared_ext}$major'
21349 version_type=linux # correct to gnu/linux during the next big refactor
21352 hardcode_into_libs=yes
21353 if test "$host_cpu" = ia64; then
21354 # AIX 5 supports IA64
21355 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21356 shlibpath_var=LD_LIBRARY_PATH
21358 # With GCC up to 2.95.x, collect2 would create an import file
21359 # for dependence libraries. The import file would start with
21360 # the line `#! .'. This would cause the generated library to
21361 # depend on `.', always an invalid library. This was fixed in
21362 # development snapshots of GCC prior to 3.0.
21364 aix4 | aix4.[01] | aix4.[01].*)
21365 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21367 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21370 can_build_shared=no
21374 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21375 # soname into executable. Probably we can add versioning support to
21376 # collect2, so additional links can be useful in future.
21377 if test "$aix_use_runtimelinking" = yes; then
21378 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21379 # instead of lib<name>.a to let people know that these are not
21380 # typical AIX shared libraries.
21381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21383 # We preserve .a as extension for shared libraries through AIX4.2
21384 # and later when we are not doing run time linking.
21385 library_names_spec='${libname}${release}.a $libname.a'
21386 soname_spec='${libname}${release}${shared_ext}$major'
21388 shlibpath_var=LIBPATH
21395 # Since July 2007 AmigaOS4 officially supports .so libraries.
21396 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21400 library_names_spec='$libname.ixlibrary $libname.a'
21401 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21402 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'
21408 library_names_spec='${libname}${shared_ext}'
21409 dynamic_linker="$host_os ld.so"
21410 shlibpath_var=LIBRARY_PATH
21414 version_type=linux # correct to gnu/linux during the next big refactor
21416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21417 soname_spec='${libname}${release}${shared_ext}$major'
21418 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21419 shlibpath_var=LD_LIBRARY_PATH
21420 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21421 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21422 # the default ld.so.conf also contains /usr/contrib/lib and
21423 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21424 # libtool to hard-code these into programs
21427 cygwin* | mingw* | pw32* | cegcc*)
21428 version_type=windows
21433 case $GCC,$cc_basename in
21436 library_names_spec='$libname.dll.a'
21437 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21438 postinstall_cmds='base_file=`basename \${file}`~
21439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21440 dldir=$destdir/`dirname \$dlpath`~
21441 test -d \$dldir || mkdir -p \$dldir~
21442 $install_prog $dir/$dlname \$dldir/$dlname~
21443 chmod a+x \$dldir/$dlname~
21444 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21445 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21447 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21448 dlpath=$dir/\$dldll~
21450 shlibpath_overrides_runpath=yes
21454 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21455 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21459 # MinGW DLLs use traditional 'lib' prefix
21460 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21463 # pw32 DLLs use 'pw' prefix rather than 'lib'
21464 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21467 dynamic_linker='Win32 ld.exe'
21472 libname_spec='$name'
21473 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21474 library_names_spec='${libname}.dll.lib'
21478 sys_lib_search_path_spec=
21481 for lt_path in $LIB
21484 # Let DOS variable expansion print the short 8.3 style file name.
21485 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21486 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21489 # Convert to MSYS style.
21490 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21493 # Convert to unix form, then to dos form, then back to unix form
21494 # but this time dos style (no spaces!) so that the unix form looks
21495 # like /cygdrive/c/PROGRA~1:/cygdr...
21496 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21497 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21498 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21501 sys_lib_search_path_spec="$LIB"
21502 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21503 # It is most probably a Windows format PATH.
21504 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21506 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21508 # FIXME: find the short name or the path components, as spaces are
21509 # common. (e.g. "Program Files" -> "PROGRA~1")
21513 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21514 postinstall_cmds='base_file=`basename \${file}`~
21515 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21516 dldir=$destdir/`dirname \$dlpath`~
21517 test -d \$dldir || mkdir -p \$dldir~
21518 $install_prog $dir/$dlname \$dldir/$dlname'
21519 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21520 dlpath=$dir/\$dldll~
21522 shlibpath_overrides_runpath=yes
21523 dynamic_linker='Win32 link.exe'
21527 # Assume MSVC wrapper
21528 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21529 dynamic_linker='Win32 ld.exe'
21532 # FIXME: first we should search . and the directory the executable is in
21536 darwin* | rhapsody*)
21537 dynamic_linker="$host_os dyld"
21538 version_type=darwin
21541 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21542 soname_spec='${libname}${release}${major}$shared_ext'
21543 shlibpath_overrides_runpath=yes
21544 shlibpath_var=DYLD_LIBRARY_PATH
21545 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21547 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21551 version_type=linux # correct to gnu/linux during the next big refactor
21554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21555 soname_spec='${libname}${release}${shared_ext}$major'
21556 shlibpath_var=LD_LIBRARY_PATH
21559 freebsd* | dragonfly*)
21560 # DragonFly does not have aout. When/if they implement a new
21561 # versioning mechanism, adjust this.
21562 if test -x /usr/bin/objformat; then
21563 objformat=`/usr/bin/objformat`
21566 freebsd[23].*) objformat=aout ;;
21567 *) objformat=elf ;;
21570 version_type=freebsd-$objformat
21571 case $version_type in
21573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21578 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21582 shlibpath_var=LD_LIBRARY_PATH
21585 shlibpath_overrides_runpath=yes
21587 freebsd3.[01]* | freebsdelf3.[01]*)
21588 shlibpath_overrides_runpath=yes
21589 hardcode_into_libs=yes
21591 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21592 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21593 shlibpath_overrides_runpath=no
21594 hardcode_into_libs=yes
21596 *) # from 4.6 on, and DragonFly
21597 shlibpath_overrides_runpath=yes
21598 hardcode_into_libs=yes
21604 version_type=linux # correct to gnu/linux during the next big refactor
21607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21608 soname_spec='${libname}${release}${shared_ext}$major'
21609 shlibpath_var=LD_LIBRARY_PATH
21610 shlibpath_overrides_runpath=no
21611 hardcode_into_libs=yes
21615 version_type=linux # correct to gnu/linux during the next big refactor
21618 dynamic_linker="$host_os runtime_loader"
21619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21620 soname_spec='${libname}${release}${shared_ext}$major'
21621 shlibpath_var=LIBRARY_PATH
21622 shlibpath_overrides_runpath=yes
21623 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21624 hardcode_into_libs=yes
21627 hpux9* | hpux10* | hpux11*)
21628 # Give a soname corresponding to the major version so that dld.sl refuses to
21629 # link against other versions.
21636 hardcode_into_libs=yes
21637 dynamic_linker="$host_os dld.so"
21638 shlibpath_var=LD_LIBRARY_PATH
21639 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21641 soname_spec='${libname}${release}${shared_ext}$major'
21642 if test "X$HPUX_IA64_MODE" = X32; then
21643 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21645 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21647 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21651 hardcode_into_libs=yes
21652 dynamic_linker="$host_os dld.sl"
21653 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21654 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21656 soname_spec='${libname}${release}${shared_ext}$major'
21657 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21658 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21662 dynamic_linker="$host_os dld.sl"
21663 shlibpath_var=SHLIB_PATH
21664 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21666 soname_spec='${libname}${release}${shared_ext}$major'
21669 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21670 postinstall_cmds='chmod 555 $lib'
21671 # or fails outright, so override atomically:
21672 install_override_mode=555
21676 version_type=linux # correct to gnu/linux during the next big refactor
21679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21680 soname_spec='${libname}${release}${shared_ext}$major'
21681 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21682 shlibpath_var=LD_LIBRARY_PATH
21683 shlibpath_overrides_runpath=no
21684 hardcode_into_libs=yes
21687 irix5* | irix6* | nonstopux*)
21689 nonstopux*) version_type=nonstopux ;;
21691 if test "$lt_cv_prog_gnu_ld" = yes; then
21692 version_type=linux # correct to gnu/linux during the next big refactor
21699 soname_spec='${libname}${release}${shared_ext}$major'
21700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21702 irix5* | nonstopux*)
21703 libsuff= shlibsuff=
21706 case $LD in # libtool.m4 will add one of these switches to LD
21707 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21708 libsuff= shlibsuff= libmagic=32-bit;;
21709 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21710 libsuff=32 shlibsuff=N32 libmagic=N32;;
21711 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21712 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21713 *) libsuff= shlibsuff= libmagic=never-match;;
21717 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21718 shlibpath_overrides_runpath=no
21719 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21720 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21721 hardcode_into_libs=yes
21724 # No shared lib support for Linux oldld, aout, or coff.
21725 linux*oldld* | linux*aout* | linux*coff*)
21729 # This must be glibc/ELF.
21730 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21731 version_type=linux # correct to gnu/linux during the next big refactor
21734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21735 soname_spec='${libname}${release}${shared_ext}$major'
21736 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21737 shlibpath_var=LD_LIBRARY_PATH
21738 shlibpath_overrides_runpath=no
21740 # Some binutils ld are patched to set DT_RUNPATH
21741 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21742 $as_echo_n "(cached) " >&6
21744 lt_cv_shlibpath_overrides_runpath=no
21745 save_LDFLAGS=$LDFLAGS
21746 save_libdir=$libdir
21747 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21748 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21750 /* end confdefs.h. */
21760 if ac_fn_cxx_try_link "$LINENO"; then :
21761 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21762 lt_cv_shlibpath_overrides_runpath=yes
21765 rm -f core conftest.err conftest.$ac_objext \
21766 conftest$ac_exeext conftest.$ac_ext
21767 LDFLAGS=$save_LDFLAGS
21768 libdir=$save_libdir
21772 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21774 # This implies no fast_install, which is unacceptable.
21775 # Some rework will be needed to allow for fast_install
21776 # before this can be enabled.
21777 hardcode_into_libs=yes
21779 # Append ld.so.conf contents to the search path
21780 if test -f /etc/ld.so.conf; then
21781 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' ' '`
21782 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21785 # We used to test for /lib/ld.so.1 and disable shared libraries on
21786 # powerpc, because MkLinux only supported shared libraries with the
21787 # GNU dynamic linker. Since this was broken with cross compilers,
21788 # most powerpc-linux boxes support dynamic linking these days and
21789 # people can always --disable-shared, the test was removed, and we
21790 # assume the GNU/Linux dynamic linker is in use.
21791 dynamic_linker='GNU/Linux ld.so'
21798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21799 soname_spec='${libname}${release}${shared_ext}$major'
21800 shlibpath_var=LD_LIBRARY_PATH
21801 shlibpath_overrides_runpath=no
21802 hardcode_into_libs=yes
21803 dynamic_linker='NetBSD ld.elf_so'
21810 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21813 dynamic_linker='NetBSD (a.out) ld.so'
21815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21816 soname_spec='${libname}${release}${shared_ext}$major'
21817 dynamic_linker='NetBSD ld.elf_so'
21819 shlibpath_var=LD_LIBRARY_PATH
21820 shlibpath_overrides_runpath=yes
21821 hardcode_into_libs=yes
21825 version_type=linux # correct to gnu/linux during the next big refactor
21826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21827 shlibpath_var=LD_LIBRARY_PATH
21828 shlibpath_overrides_runpath=yes
21835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21836 soname_spec='${libname}${release}${shared_ext}$major'
21837 shlibpath_var=LD_LIBRARY_PATH
21838 shlibpath_overrides_runpath=no
21839 hardcode_into_libs=yes
21840 dynamic_linker='ldqnx.so'
21845 sys_lib_dlsearch_path_spec="/usr/lib"
21847 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21849 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21850 *) need_version=no ;;
21852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21853 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21854 shlibpath_var=LD_LIBRARY_PATH
21855 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21857 openbsd2.[89] | openbsd2.[89].*)
21858 shlibpath_overrides_runpath=no
21861 shlibpath_overrides_runpath=yes
21865 shlibpath_overrides_runpath=yes
21870 libname_spec='$name'
21873 library_names_spec='$libname${shared_ext} $libname.a'
21874 dynamic_linker='OS/2 ld.exe'
21875 shlibpath_var=LIBPATH
21878 osf3* | osf4* | osf5*)
21882 soname_spec='${libname}${release}${shared_ext}$major'
21883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21884 shlibpath_var=LD_LIBRARY_PATH
21885 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21886 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21894 version_type=linux # correct to gnu/linux during the next big refactor
21897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21898 soname_spec='${libname}${release}${shared_ext}$major'
21899 shlibpath_var=LD_LIBRARY_PATH
21900 shlibpath_overrides_runpath=yes
21901 hardcode_into_libs=yes
21902 # ldd complains unless libraries are executable
21903 postinstall_cmds='chmod +x $lib'
21908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21909 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21910 shlibpath_var=LD_LIBRARY_PATH
21911 shlibpath_overrides_runpath=yes
21912 if test "$with_gnu_ld" = yes; then
21919 version_type=linux # correct to gnu/linux during the next big refactor
21920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21921 soname_spec='${libname}${release}${shared_ext}$major'
21922 shlibpath_var=LD_LIBRARY_PATH
21923 case $host_vendor in
21925 shlibpath_overrides_runpath=no
21927 runpath_var=LD_RUN_PATH
21935 shlibpath_overrides_runpath=no
21936 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21942 if test -d /usr/nec ;then
21943 version_type=linux # correct to gnu/linux during the next big refactor
21944 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21945 soname_spec='$libname${shared_ext}.$major'
21946 shlibpath_var=LD_LIBRARY_PATH
21950 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21951 version_type=freebsd-elf
21954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21955 soname_spec='${libname}${release}${shared_ext}$major'
21956 shlibpath_var=LD_LIBRARY_PATH
21957 shlibpath_overrides_runpath=yes
21958 hardcode_into_libs=yes
21959 if test "$with_gnu_ld" = yes; then
21960 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21962 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21965 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21969 sys_lib_dlsearch_path_spec='/usr/lib'
21973 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21974 version_type=linux # correct to gnu/linux during the next big refactor
21977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21978 shlibpath_var=LD_LIBRARY_PATH
21979 shlibpath_overrides_runpath=no
21980 hardcode_into_libs=yes
21984 version_type=linux # correct to gnu/linux during the next big refactor
21985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21986 soname_spec='${libname}${release}${shared_ext}$major'
21987 shlibpath_var=LD_LIBRARY_PATH
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21995 $as_echo "$dynamic_linker" >&6; }
21996 test "$dynamic_linker" = no && can_build_shared=no
21998 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21999 if test "$GCC" = yes; then
22000 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22003 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22004 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22006 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22007 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22048 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22049 hardcode_action_CXX=
22050 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22051 test -n "$runpath_var_CXX" ||
22052 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22054 # We can hardcode non-existent directories.
22055 if test "$hardcode_direct_CXX" != no &&
22056 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22057 # have to relink, otherwise we might link with an installed library
22058 # when we should be linking with a yet-to-be-installed one
22059 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22060 test "$hardcode_minus_L_CXX" != no; then
22061 # Linking always hardcodes the temporary library directory.
22062 hardcode_action_CXX=relink
22064 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22065 hardcode_action_CXX=immediate
22068 # We cannot hardcode anything, or else we can only hardcode existing
22070 hardcode_action_CXX=unsupported
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22073 $as_echo "$hardcode_action_CXX" >&6; }
22075 if test "$hardcode_action_CXX" = relink ||
22076 test "$inherit_rpath_CXX" = yes; then
22077 # Fast installation is not supported
22078 enable_fast_install=no
22079 elif test "$shlibpath_overrides_runpath" = yes ||
22080 test "$enable_shared" = no; then
22081 # Fast installation is not necessary
22082 enable_fast_install=needless
22091 fi # test -n "$compiler"
22094 CFLAGS=$lt_save_CFLAGS
22098 with_gnu_ld=$lt_save_with_gnu_ld
22099 lt_cv_path_LDCXX=$lt_cv_path_LD
22100 lt_cv_path_LD=$lt_save_path_LD
22101 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22102 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22103 fi # test "$_lt_caught_CXX_error" != yes
22106 ac_cpp='$CPP $CPPFLAGS'
22107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22125 ac_config_commands="$ac_config_commands libtool"
22130 # Only expand once:
22139 LIBC_FATAL_STDERR_=1
22140 export LIBC_FATAL_STDERR_
22147 GNULIB_GETPEERNAME=0;
22148 GNULIB_GETSOCKNAME=0;
22149 GNULIB_GETSOCKOPT=0;
22155 GNULIB_SETSOCKOPT=0;
22158 HAVE_STRUCT_SOCKADDR_STORAGE=1;
22159 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
22161 HAVE_SA_FAMILY_T=1;
22171 if test $ac_cv_header_sys_socket_h = no; then
22172 for ac_header in ws2tcpip.h
22174 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
22175 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
22176 cat >>confdefs.h <<_ACEOF
22177 #define HAVE_WS2TCPIP_H 1
22188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
22189 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
22190 if ${gl_cv_have_include_next+:} false; then :
22191 $as_echo_n "(cached) " >&6
22193 rm -rf conftestd1a conftestd1b conftestd2
22194 mkdir conftestd1a conftestd1b conftestd2
22195 cat <<EOF > conftestd1a/conftest.h
22196 #define DEFINED_IN_CONFTESTD1
22197 #include_next <conftest.h>
22198 #ifdef DEFINED_IN_CONFTESTD2
22201 #error "include_next doesn't work"
22204 cat <<EOF > conftestd1b/conftest.h
22205 #define DEFINED_IN_CONFTESTD1
22207 #include_next <conftest.h>
22208 #ifdef DEFINED_IN_CONFTESTD2
22211 #error "include_next doesn't work"
22214 cat <<EOF > conftestd2/conftest.h
22215 #ifndef DEFINED_IN_CONFTESTD1
22216 #error "include_next test doesn't work"
22218 #define DEFINED_IN_CONFTESTD2
22220 gl_save_CPPFLAGS="$CPPFLAGS"
22221 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
22222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22223 /* end confdefs.h. */
22224 #include <conftest.h>
22226 if ac_fn_c_try_compile "$LINENO"; then :
22227 gl_cv_have_include_next=yes
22229 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
22230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22231 /* end confdefs.h. */
22232 #include <conftest.h>
22234 if ac_fn_c_try_compile "$LINENO"; then :
22235 gl_cv_have_include_next=buggy
22237 gl_cv_have_include_next=no
22239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22243 CPPFLAGS="$gl_save_CPPFLAGS"
22244 rm -rf conftestd1a conftestd1b conftestd2
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
22248 $as_echo "$gl_cv_have_include_next" >&6; }
22249 PRAGMA_SYSTEM_HEADER=
22250 if test $gl_cv_have_include_next = yes; then
22251 INCLUDE_NEXT=include_next
22252 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
22253 if test -n "$GCC"; then
22254 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
22257 if test $gl_cv_have_include_next = buggy; then
22258 INCLUDE_NEXT=include
22259 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
22261 INCLUDE_NEXT=include
22262 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
22269 $as_echo_n "checking whether system header files limit the line length... " >&6; }
22270 if ${gl_cv_pragma_columns+:} false; then :
22271 $as_echo_n "(cached) " >&6
22273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22274 /* end confdefs.h. */
22281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22282 $EGREP "choke me" >/dev/null 2>&1; then :
22283 gl_cv_pragma_columns=yes
22285 gl_cv_pragma_columns=no
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
22292 $as_echo "$gl_cv_pragma_columns" >&6; }
22293 if test $gl_cv_pragma_columns = yes; then
22294 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
22308 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
22314 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
22315 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
22316 $as_echo_n "(cached) " >&6
22319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22320 /* end confdefs.h. */
22321 #include <sys/socket.h>
22330 if ac_fn_c_try_compile "$LINENO"; then :
22331 gl_cv_header_sys_socket_h_selfcontained=yes
22333 gl_cv_header_sys_socket_h_selfcontained=no
22335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
22339 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
22340 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
22341 for ac_func in shutdown
22343 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
22344 if test "x$ac_cv_func_shutdown" = xyes; then :
22345 cat >>confdefs.h <<_ACEOF
22346 #define HAVE_SHUTDOWN 1
22352 if test $ac_cv_func_shutdown = yes; then
22353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
22354 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
22355 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
22356 $as_echo_n "(cached) " >&6
22359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22360 /* end confdefs.h. */
22361 #include <sys/socket.h>
22365 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
22370 if ac_fn_c_try_compile "$LINENO"; then :
22371 gl_cv_header_sys_socket_h_shut=yes
22373 gl_cv_header_sys_socket_h_shut=no
22375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
22379 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
22380 if test $gl_cv_header_sys_socket_h_shut = no; then
22381 SYS_SOCKET_H='sys/socket.h'
22385 # We need to check for ws2tcpip.h now.
22403 if test $gl_cv_have_include_next = yes; then
22404 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
22407 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
22408 if ${gl_cv_next_sys_socket_h+:} false; then :
22409 $as_echo_n "(cached) " >&6
22412 if test $ac_cv_header_sys_socket_h = yes; then
22415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22416 /* end confdefs.h. */
22417 #include <sys/socket.h>
22421 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22422 *) gl_absname_cpp="$ac_cpp" ;;
22427 gl_dirsep_regex='[/\\]'
22430 gl_dirsep_regex='\/'
22433 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22435 gl_header_literal_regex=`echo 'sys/socket.h' \
22436 | sed -e "$gl_make_literal_regex_sed"`
22437 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22438 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22443 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22444 sed -n "$gl_absolute_header_sed"`'"'
22446 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
22452 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
22454 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
22456 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22457 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22458 gl_next_as_first_directive='<'sys/socket.h'>'
22460 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22461 gl_next_as_first_directive=$gl_cv_next_sys_socket_h
22463 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
22468 if test $ac_cv_header_sys_socket_h = yes; then
22469 HAVE_SYS_SOCKET_H=1
22472 HAVE_SYS_SOCKET_H=0
22473 if test $ac_cv_header_ws2tcpip_h = yes; then
22482 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
22483 /* sys/types.h is not needed according to POSIX, but the
22484 sys/socket.h in i386-unknown-freebsd4.10 and
22485 powerpc-apple-darwin5.5 required it. */
22486 #include <sys/types.h>
22487 #ifdef HAVE_SYS_SOCKET_H
22488 #include <sys/socket.h>
22490 #ifdef HAVE_WS2TCPIP_H
22491 #include <ws2tcpip.h>
22495 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
22497 cat >>confdefs.h <<_ACEOF
22498 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
22503 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
22504 /* sys/types.h is not needed according to POSIX, but the
22505 sys/socket.h in i386-unknown-freebsd4.10 and
22506 powerpc-apple-darwin5.5 required it. */
22507 #include <sys/types.h>
22508 #ifdef HAVE_SYS_SOCKET_H
22509 #include <sys/socket.h>
22511 #ifdef HAVE_WS2TCPIP_H
22512 #include <ws2tcpip.h>
22516 if test "x$ac_cv_type_sa_family_t" = xyes; then :
22518 cat >>confdefs.h <<_ACEOF
22519 #define HAVE_SA_FAMILY_T 1
22525 if test $ac_cv_type_struct_sockaddr_storage = no; then
22526 HAVE_STRUCT_SOCKADDR_STORAGE=0
22528 if test $ac_cv_type_sa_family_t = no; then
22531 if test $ac_cv_type_struct_sockaddr_storage != no; then
22532 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
22533 #ifdef HAVE_SYS_SOCKET_H
22534 #include <sys/socket.h>
22536 #ifdef HAVE_WS2TCPIP_H
22537 #include <ws2tcpip.h>
22541 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
22543 cat >>confdefs.h <<_ACEOF
22544 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
22549 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
22553 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
22554 || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
22555 SYS_SOCKET_H='sys/socket.h'
22567 if test $ac_cv_header_sys_socket_h != yes; then
22568 for ac_header in winsock2.h
22570 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
22571 if test "x$ac_cv_header_winsock2_h" = xyes; then :
22572 cat >>confdefs.h <<_ACEOF
22573 #define HAVE_WINSOCK2_H 1
22581 if test "$ac_cv_header_winsock2_h" = yes; then
22583 UNISTD_H_HAVE_WINSOCK2_H=1
22584 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
22592 for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do
22593 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22595 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22596 if eval \${$as_gl_Symbol+:} false; then :
22597 $as_echo_n "(cached) " >&6
22599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22600 /* end confdefs.h. */
22602 /* Some systems require prerequisite headers. */
22603 #include <sys/types.h>
22604 #include <sys/socket.h>
22615 if ac_fn_c_try_compile "$LINENO"; then :
22616 eval "$as_gl_Symbol=yes"
22618 eval "$as_gl_Symbol=no"
22620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22622 eval ac_res=\$$as_gl_Symbol
22623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22624 $as_echo "$ac_res" >&6; }
22625 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22626 cat >>confdefs.h <<_ACEOF
22627 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22630 eval ac_cv_have_decl_$gl_func=yes
22635 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22636 if test "x$ac_cv_type_size_t" = xyes; then :
22640 cat >>confdefs.h <<_ACEOF
22641 #define size_t unsigned int
22646 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22647 # for constant arguments. Useless!
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
22649 $as_echo_n "checking for working alloca.h... " >&6; }
22650 if ${ac_cv_working_alloca_h+:} false; then :
22651 $as_echo_n "(cached) " >&6
22653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22654 /* end confdefs.h. */
22655 #include <alloca.h>
22659 char *p = (char *) alloca (2 * sizeof (int));
22665 if ac_fn_c_try_link "$LINENO"; then :
22666 ac_cv_working_alloca_h=yes
22668 ac_cv_working_alloca_h=no
22670 rm -f core conftest.err conftest.$ac_objext \
22671 conftest$ac_exeext conftest.$ac_ext
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
22674 $as_echo "$ac_cv_working_alloca_h" >&6; }
22675 if test $ac_cv_working_alloca_h = yes; then
22677 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
22681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
22682 $as_echo_n "checking for alloca... " >&6; }
22683 if ${ac_cv_func_alloca_works+:} false; then :
22684 $as_echo_n "(cached) " >&6
22686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22687 /* end confdefs.h. */
22689 # define alloca __builtin_alloca
22692 # include <malloc.h>
22693 # define alloca _alloca
22695 # ifdef HAVE_ALLOCA_H
22696 # include <alloca.h>
22701 # ifndef alloca /* predefined by HP cc +Olibcalls */
22702 void *alloca (size_t);
22712 char *p = (char *) alloca (1);
22718 if ac_fn_c_try_link "$LINENO"; then :
22719 ac_cv_func_alloca_works=yes
22721 ac_cv_func_alloca_works=no
22723 rm -f core conftest.err conftest.$ac_objext \
22724 conftest$ac_exeext conftest.$ac_ext
22726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
22727 $as_echo "$ac_cv_func_alloca_works" >&6; }
22729 if test $ac_cv_func_alloca_works = yes; then
22731 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
22734 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22735 # that cause trouble. Some versions do not even contain alloca or
22736 # contain a buggy version. If you still want to use their alloca,
22737 # use ar to extract alloca.o from them instead of compiling alloca.c.
22743 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
22745 $as_echo "#define C_ALLOCA 1" >>confdefs.h
22748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
22749 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
22750 if ${ac_cv_os_cray+:} false; then :
22751 $as_echo_n "(cached) " >&6
22753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22754 /* end confdefs.h. */
22755 #if defined CRAY && ! defined CRAY2
22762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22763 $EGREP "webecray" >/dev/null 2>&1; then :
22771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
22772 $as_echo "$ac_cv_os_cray" >&6; }
22773 if test $ac_cv_os_cray = yes; then
22774 for ac_func in _getb67 GETB67 getb67; do
22775 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22776 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22777 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22779 cat >>confdefs.h <<_ACEOF
22780 #define CRAY_STACKSEG_END $ac_func
22789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
22790 $as_echo_n "checking stack direction for C alloca... " >&6; }
22791 if ${ac_cv_c_stack_direction+:} false; then :
22792 $as_echo_n "(cached) " >&6
22794 if test "$cross_compiling" = yes; then :
22795 ac_cv_c_stack_direction=0
22797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22798 /* end confdefs.h. */
22799 $ac_includes_default
22801 find_stack_direction (int *addr, int depth)
22803 int dir, dummy = 0;
22806 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
22807 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
22808 return dir + dummy;
22812 main (int argc, char **argv)
22814 return find_stack_direction (0, argc + !argv + 20) < 0;
22817 if ac_fn_c_try_run "$LINENO"; then :
22818 ac_cv_c_stack_direction=1
22820 ac_cv_c_stack_direction=-1
22822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22823 conftest.$ac_objext conftest.beam conftest.$ac_ext
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
22828 $as_echo "$ac_cv_c_stack_direction" >&6; }
22829 cat >>confdefs.h <<_ACEOF
22830 #define STACK_DIRECTION $ac_cv_c_stack_direction
22837 GNULIB_INET_NTOP=0;
22838 GNULIB_INET_PTON=0;
22839 HAVE_DECL_INET_NTOP=1;
22840 HAVE_DECL_INET_PTON=1;
22841 REPLACE_INET_NTOP=0;
22842 REPLACE_INET_PTON=0;
22862 if test $ac_cv_header_features_h = yes; then
22873 for ac_func in $gl_func_list
22875 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22876 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22877 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22878 cat >>confdefs.h <<_ACEOF
22879 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22897 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
22898 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
22900 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
22903 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
22910 $as_echo_n "checking for complete errno.h... " >&6; }
22911 if ${gl_cv_header_errno_h_complete+:} false; then :
22912 $as_echo_n "(cached) " >&6
22915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22916 /* end confdefs.h. */
22919 #if !defined ENOMSG
22925 #if !defined ENOLINK
22928 #if !defined EPROTO
22931 #if !defined EMULTIHOP
22934 #if !defined EBADMSG
22937 #if !defined EOVERFLOW
22940 #if !defined ENOTSUP
22943 #if !defined ENETRESET
22946 #if !defined ECONNABORTED
22949 #if !defined ESTALE
22952 #if !defined EDQUOT
22955 #if !defined ECANCELED
22960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22961 $EGREP "booboo" >/dev/null 2>&1; then :
22962 gl_cv_header_errno_h_complete=no
22964 gl_cv_header_errno_h_complete=yes
22970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
22971 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
22972 if test $gl_cv_header_errno_h_complete = yes; then
22983 if test $gl_cv_have_include_next = yes; then
22984 gl_cv_next_errno_h='<'errno.h'>'
22986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
22987 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
22988 if ${gl_cv_next_errno_h+:} false; then :
22989 $as_echo_n "(cached) " >&6
22992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22993 /* end confdefs.h. */
22998 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22999 *) gl_absname_cpp="$ac_cpp" ;;
23004 gl_dirsep_regex='[/\\]'
23007 gl_dirsep_regex='\/'
23010 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23012 gl_header_literal_regex=`echo 'errno.h' \
23013 | sed -e "$gl_make_literal_regex_sed"`
23014 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23015 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23020 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23021 sed -n "$gl_absolute_header_sed"`'"'
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
23026 $as_echo "$gl_cv_next_errno_h" >&6; }
23028 NEXT_ERRNO_H=$gl_cv_next_errno_h
23030 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23031 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23032 gl_next_as_first_directive='<'errno.h'>'
23034 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23035 gl_next_as_first_directive=$gl_cv_next_errno_h
23037 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
23045 if test -n "$ERRNO_H"; then
23046 GL_GENERATE_ERRNO_H_TRUE=
23047 GL_GENERATE_ERRNO_H_FALSE='#'
23049 GL_GENERATE_ERRNO_H_TRUE='#'
23050 GL_GENERATE_ERRNO_H_FALSE=
23054 if test -n "$ERRNO_H"; then
23055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
23056 $as_echo_n "checking for EMULTIHOP value... " >&6; }
23057 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
23058 $as_echo_n "(cached) " >&6
23061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23062 /* end confdefs.h. */
23070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23071 $EGREP "yes" >/dev/null 2>&1; then :
23072 gl_cv_header_errno_h_EMULTIHOP=yes
23074 gl_cv_header_errno_h_EMULTIHOP=no
23078 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
23079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23080 /* end confdefs.h. */
23082 #define _XOPEN_SOURCE_EXTENDED 1
23089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23090 $EGREP "yes" >/dev/null 2>&1; then :
23091 gl_cv_header_errno_h_EMULTIHOP=hidden
23095 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
23096 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
23097 #define _XOPEN_SOURCE_EXTENDED 1
23099 /* The following two lines are a workaround against an autoconf-2.52 bug. */
23101 #include <stdlib.h>
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
23111 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
23112 case $gl_cv_header_errno_h_EMULTIHOP in
23114 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
23117 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
23125 if test -n "$ERRNO_H"; then
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
23127 $as_echo_n "checking for ENOLINK value... " >&6; }
23128 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
23129 $as_echo_n "(cached) " >&6
23132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23133 /* end confdefs.h. */
23141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23142 $EGREP "yes" >/dev/null 2>&1; then :
23143 gl_cv_header_errno_h_ENOLINK=yes
23145 gl_cv_header_errno_h_ENOLINK=no
23149 if test $gl_cv_header_errno_h_ENOLINK = no; then
23150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23151 /* end confdefs.h. */
23153 #define _XOPEN_SOURCE_EXTENDED 1
23160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23161 $EGREP "yes" >/dev/null 2>&1; then :
23162 gl_cv_header_errno_h_ENOLINK=hidden
23166 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
23167 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
23168 #define _XOPEN_SOURCE_EXTENDED 1
23170 /* The following two lines are a workaround against an autoconf-2.52 bug. */
23172 #include <stdlib.h>
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
23182 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
23183 case $gl_cv_header_errno_h_ENOLINK in
23185 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
23188 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
23196 if test -n "$ERRNO_H"; then
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
23198 $as_echo_n "checking for EOVERFLOW value... " >&6; }
23199 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
23200 $as_echo_n "(cached) " >&6
23203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23204 /* end confdefs.h. */
23212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23213 $EGREP "yes" >/dev/null 2>&1; then :
23214 gl_cv_header_errno_h_EOVERFLOW=yes
23216 gl_cv_header_errno_h_EOVERFLOW=no
23220 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
23221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23222 /* end confdefs.h. */
23224 #define _XOPEN_SOURCE_EXTENDED 1
23231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23232 $EGREP "yes" >/dev/null 2>&1; then :
23233 gl_cv_header_errno_h_EOVERFLOW=hidden
23237 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
23238 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
23239 #define _XOPEN_SOURCE_EXTENDED 1
23241 /* The following two lines are a workaround against an autoconf-2.52 bug. */
23243 #include <stdlib.h>
23252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
23253 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
23254 case $gl_cv_header_errno_h_EOVERFLOW in
23256 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
23259 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
23267 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
23268 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
23274 cat >>confdefs.h <<_ACEOF
23275 #define HAVE_DECL_STRERROR_R $ac_have_decl
23278 for ac_func in strerror_r
23280 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
23281 if test "x$ac_cv_func_strerror_r" = xyes; then :
23282 cat >>confdefs.h <<_ACEOF
23283 #define HAVE_STRERROR_R 1
23289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
23290 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
23291 if ${ac_cv_func_strerror_r_char_p+:} false; then :
23292 $as_echo_n "(cached) " >&6
23295 ac_cv_func_strerror_r_char_p=no
23296 if test $ac_cv_have_decl_strerror_r = yes; then
23297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23298 /* end confdefs.h. */
23299 $ac_includes_default
23305 char x = *strerror_r (0, buf, sizeof buf);
23306 char *p = strerror_r (0, buf, sizeof buf);
23313 if ac_fn_c_try_compile "$LINENO"; then :
23314 ac_cv_func_strerror_r_char_p=yes
23316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23318 # strerror_r is not declared. Choose between
23319 # systems that have relatively inaccessible declarations for the
23320 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
23321 # former has a strerror_r that returns char*, while the latter
23322 # has a strerror_r that returns `int'.
23323 # This test should segfault on the DEC system.
23324 if test "$cross_compiling" = yes; then :
23327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23328 /* end confdefs.h. */
23329 $ac_includes_default
23330 extern char *strerror_r ();
23335 char x = *strerror_r (0, buf, sizeof buf);
23336 return ! isalpha (x);
23341 if ac_fn_c_try_run "$LINENO"; then :
23342 ac_cv_func_strerror_r_char_p=yes
23344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23345 conftest.$ac_objext conftest.beam conftest.$ac_ext
23351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
23352 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
23353 if test $ac_cv_func_strerror_r_char_p = yes; then
23355 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
23360 XGETTEXT_EXTRA_OPTIONS=
23371 GNULIB_FPRINTF_POSIX=0;
23388 GNULIB_OBSTACK_PRINTF=0;
23389 GNULIB_OBSTACK_PRINTF_POSIX=0;
23394 GNULIB_PRINTF_POSIX=0;
23403 GNULIB_SPRINTF_POSIX=0;
23404 GNULIB_STDIO_H_NONBLOCKING=0;
23405 GNULIB_STDIO_H_SIGPIPE=0;
23407 GNULIB_VASPRINTF=0;
23412 GNULIB_VFPRINTF_POSIX=0;
23414 GNULIB_VPRINTF_POSIX=0;
23415 GNULIB_VSNPRINTF=0;
23416 GNULIB_VSPRINTF_POSIX=0;
23417 HAVE_DECL_FPURGE=1;
23418 HAVE_DECL_FSEEKO=1;
23419 HAVE_DECL_FTELLO=1;
23420 HAVE_DECL_GETDELIM=1;
23421 HAVE_DECL_GETLINE=1;
23422 HAVE_DECL_OBSTACK_PRINTF=1;
23423 HAVE_DECL_SNPRINTF=1;
23424 HAVE_DECL_VSNPRINTF=1;
23445 REPLACE_GETDELIM=0;
23447 REPLACE_OBSTACK_PRINTF=0;
23453 REPLACE_RENAMEAT=0;
23454 REPLACE_SNPRINTF=0;
23456 REPLACE_STDIO_READ_FUNCS=0;
23457 REPLACE_STDIO_WRITE_FUNCS=0;
23459 REPLACE_VASPRINTF=0;
23460 REPLACE_VDPRINTF=0;
23461 REPLACE_VFPRINTF=0;
23463 REPLACE_VSNPRINTF=0;
23464 REPLACE_VSPRINTF=0;
23467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
23468 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
23469 if ${gl_cv_var_stdin_large_offset+:} false; then :
23470 $as_echo_n "(cached) " >&6
23472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23473 /* end confdefs.h. */
23478 #if defined __SL64 && defined __SCLE /* cygwin */
23479 /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
23480 fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and
23481 it is easier to do a version check than building a runtime test. */
23482 # include <cygwin/version.h>
23483 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
23491 if ac_fn_c_try_link "$LINENO"; then :
23492 gl_cv_var_stdin_large_offset=yes
23494 gl_cv_var_stdin_large_offset=no
23496 rm -f core conftest.err conftest.$ac_objext \
23497 conftest$ac_exeext conftest.$ac_ext
23499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
23500 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
23503 ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
23504 if test "x$ac_cv_have_decl_fseeko" = xyes; then :
23510 cat >>confdefs.h <<_ACEOF
23511 #define HAVE_DECL_FSEEKO $ac_have_decl
23522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
23523 $as_echo_n "checking for fseeko... " >&6; }
23524 if ${gl_cv_func_fseeko+:} false; then :
23525 $as_echo_n "(cached) " >&6
23528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23529 /* end confdefs.h. */
23535 fseeko (stdin, 0, 0);
23540 if ac_fn_c_try_link "$LINENO"; then :
23541 gl_cv_func_fseeko=yes
23543 gl_cv_func_fseeko=no
23545 rm -f core conftest.err conftest.$ac_objext \
23546 conftest$ac_exeext conftest.$ac_ext
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
23550 $as_echo "$gl_cv_func_fseeko" >&6; }
23559 if test $ac_cv_have_decl_fseeko = no; then
23563 if test $gl_cv_func_fseeko = no; then
23566 if test $gl_cv_var_stdin_large_offset = no; then
23585 GNULIB_UTIMENSAT=0;
23599 REPLACE_FUTIMENS=0;
23605 REPLACE_UTIMENSAT=0;
23608 ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
23609 if test "x$ac_cv_have_decl_ftello" = xyes; then :
23615 cat >>confdefs.h <<_ACEOF
23616 #define HAVE_DECL_FTELLO $ac_have_decl
23634 if test $ac_cv_have_decl_ftello = no; then
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
23639 $as_echo_n "checking for ftello... " >&6; }
23640 if ${gl_cv_func_ftello+:} false; then :
23641 $as_echo_n "(cached) " >&6
23644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23645 /* end confdefs.h. */
23655 if ac_fn_c_try_link "$LINENO"; then :
23656 gl_cv_func_ftello=yes
23658 gl_cv_func_ftello=no
23660 rm -f core conftest.err conftest.$ac_objext \
23661 conftest$ac_exeext conftest.$ac_ext
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
23665 $as_echo "$gl_cv_func_ftello" >&6; }
23666 if test $gl_cv_func_ftello = no; then
23669 if test $gl_cv_var_stdin_large_offset = no; then
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
23674 $as_echo_n "checking whether ftello works... " >&6; }
23675 if ${gl_cv_func_ftello_works+:} false; then :
23676 $as_echo_n "(cached) " >&6
23680 # Guess no on Solaris.
23681 solaris*) gl_cv_func_ftello_works="guessing no" ;;
23682 # Guess yes otherwise.
23683 *) gl_cv_func_ftello_works="guessing yes" ;;
23685 if test "$cross_compiling" = yes; then :
23688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23689 /* end confdefs.h. */
23692 #include <stdlib.h>
23693 #include <string.h>
23694 #define TESTFILE "conftest.tmp"
23700 /* Create a file with some contents. */
23701 fp = fopen (TESTFILE, "w");
23704 if (fwrite ("foogarsh", 1, 8, fp) < 8)
23709 /* The file's contents is now "foogarsh". */
23711 /* Try writing after reading to EOF. */
23712 fp = fopen (TESTFILE, "r+");
23715 if (fseek (fp, -1, SEEK_END))
23717 if (!(getc (fp) == 'h'))
23719 if (!(getc (fp) == EOF))
23721 if (!(ftell (fp) == 8))
23723 if (!(ftell (fp) == 8))
23725 if (!(putc ('!', fp) == '!'))
23727 if (!(ftell (fp) == 9))
23729 if (!(fclose (fp) == 0))
23731 fp = fopen (TESTFILE, "r");
23736 if (!(fread (buf, 1, 10, fp) == 9))
23738 if (!(memcmp (buf, "foogarsh!", 9) == 0))
23741 if (!(fclose (fp) == 0))
23744 /* The file's contents is now "foogarsh!". */
23749 if ac_fn_c_try_run "$LINENO"; then :
23750 gl_cv_func_ftello_works=yes
23752 gl_cv_func_ftello_works=no
23754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23755 conftest.$ac_objext conftest.beam conftest.$ac_ext
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
23761 $as_echo "$gl_cv_func_ftello_works" >&6; }
23762 case "$gl_cv_func_ftello_works" in
23767 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
23775 GNULIB_GETADDRINFO=0;
23776 HAVE_STRUCT_ADDRINFO=1;
23777 HAVE_DECL_FREEADDRINFO=1;
23778 HAVE_DECL_GAI_STRERROR=1;
23779 HAVE_DECL_GETADDRINFO=1;
23780 HAVE_DECL_GETNAMEINFO=1;
23781 REPLACE_GAI_STRERROR=0;
23805 if test $gl_cv_have_include_next = yes; then
23806 gl_cv_next_netdb_h='<'netdb.h'>'
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
23809 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
23810 if ${gl_cv_next_netdb_h+:} false; then :
23811 $as_echo_n "(cached) " >&6
23814 if test $ac_cv_header_netdb_h = yes; then
23817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23818 /* end confdefs.h. */
23823 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23824 *) gl_absname_cpp="$ac_cpp" ;;
23829 gl_dirsep_regex='[/\\]'
23832 gl_dirsep_regex='\/'
23835 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23837 gl_header_literal_regex=`echo 'netdb.h' \
23838 | sed -e "$gl_make_literal_regex_sed"`
23839 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23840 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23845 gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23846 sed -n "$gl_absolute_header_sed"`'"'
23848 gl_cv_next_netdb_h='<'netdb.h'>'
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
23854 $as_echo "$gl_cv_next_netdb_h" >&6; }
23856 NEXT_NETDB_H=$gl_cv_next_netdb_h
23858 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23859 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23860 gl_next_as_first_directive='<'netdb.h'>'
23862 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23863 gl_next_as_first_directive=$gl_cv_next_netdb_h
23865 NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
23870 if test $ac_cv_header_netdb_h = yes; then
23878 for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
23879 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23881 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23882 if eval \${$as_gl_Symbol+:} false; then :
23883 $as_echo_n "(cached) " >&6
23885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23886 /* end confdefs.h. */
23897 if ac_fn_c_try_compile "$LINENO"; then :
23898 eval "$as_gl_Symbol=yes"
23900 eval "$as_gl_Symbol=no"
23902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23904 eval ac_res=\$$as_gl_Symbol
23905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23906 $as_echo "$ac_res" >&6; }
23907 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23908 cat >>confdefs.h <<_ACEOF
23909 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23912 eval ac_cv_have_decl_$gl_func=yes
23919 gl_saved_libs="$LIBS"
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
23921 $as_echo_n "checking for library containing gethostbyname... " >&6; }
23922 if ${ac_cv_search_gethostbyname+:} false; then :
23923 $as_echo_n "(cached) " >&6
23925 ac_func_search_save_LIBS=$LIBS
23926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23927 /* end confdefs.h. */
23929 /* Override any GCC internal prototype to avoid an error.
23930 Use char because int might match the return type of a GCC
23931 builtin and then its argument prototype would still apply. */
23935 char gethostbyname ();
23939 return gethostbyname ();
23944 for ac_lib in '' nsl network net; do
23945 if test -z "$ac_lib"; then
23946 ac_res="none required"
23949 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23951 if ac_fn_c_try_link "$LINENO"; then :
23952 ac_cv_search_gethostbyname=$ac_res
23954 rm -f core conftest.err conftest.$ac_objext \
23956 if ${ac_cv_search_gethostbyname+:} false; then :
23960 if ${ac_cv_search_gethostbyname+:} false; then :
23963 ac_cv_search_gethostbyname=no
23965 rm conftest.$ac_ext
23966 LIBS=$ac_func_search_save_LIBS
23968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
23969 $as_echo "$ac_cv_search_gethostbyname" >&6; }
23970 ac_res=$ac_cv_search_gethostbyname
23971 if test "$ac_res" != no; then :
23972 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23973 if test "$ac_cv_search_gethostbyname" != "none required"; then
23974 HOSTENT_LIB="$ac_cv_search_gethostbyname"
23978 LIBS="$gl_saved_libs"
23979 if test -z "$HOSTENT_LIB"; then
23980 for ac_func in gethostbyname
23982 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23983 if test "x$ac_cv_func_gethostbyname" = xyes; then :
23984 cat >>confdefs.h <<_ACEOF
23985 #define HAVE_GETHOSTBYNAME 1
23990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
23991 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
23992 if ${gl_cv_w32_gethostbyname+:} false; then :
23993 $as_echo_n "(cached) " >&6
23995 gl_cv_w32_gethostbyname=no
23996 gl_save_LIBS="$LIBS"
23997 LIBS="$LIBS -lws2_32"
23998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23999 /* end confdefs.h. */
24001 #ifdef HAVE_WINSOCK2_H
24002 #include <winsock2.h>
24004 #include <stddef.h>
24009 gethostbyname(NULL);
24014 if ac_fn_c_try_link "$LINENO"; then :
24015 gl_cv_w32_gethostbyname=yes
24017 rm -f core conftest.err conftest.$ac_objext \
24018 conftest$ac_exeext conftest.$ac_ext
24019 LIBS="$gl_save_LIBS"
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
24023 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
24024 if test "$gl_cv_w32_gethostbyname" = "yes"; then
24025 HOSTENT_LIB="-lws2_32"
24036 gl_saved_libs="$LIBS"
24037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
24038 $as_echo_n "checking for library containing getservbyname... " >&6; }
24039 if ${ac_cv_search_getservbyname+:} false; then :
24040 $as_echo_n "(cached) " >&6
24042 ac_func_search_save_LIBS=$LIBS
24043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24044 /* end confdefs.h. */
24046 /* Override any GCC internal prototype to avoid an error.
24047 Use char because int might match the return type of a GCC
24048 builtin and then its argument prototype would still apply. */
24052 char getservbyname ();
24056 return getservbyname ();
24061 for ac_lib in '' socket network net; do
24062 if test -z "$ac_lib"; then
24063 ac_res="none required"
24066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24068 if ac_fn_c_try_link "$LINENO"; then :
24069 ac_cv_search_getservbyname=$ac_res
24071 rm -f core conftest.err conftest.$ac_objext \
24073 if ${ac_cv_search_getservbyname+:} false; then :
24077 if ${ac_cv_search_getservbyname+:} false; then :
24080 ac_cv_search_getservbyname=no
24082 rm conftest.$ac_ext
24083 LIBS=$ac_func_search_save_LIBS
24085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
24086 $as_echo "$ac_cv_search_getservbyname" >&6; }
24087 ac_res=$ac_cv_search_getservbyname
24088 if test "$ac_res" != no; then :
24089 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24090 if test "$ac_cv_search_getservbyname" != "none required"; then
24091 SERVENT_LIB="$ac_cv_search_getservbyname"
24095 LIBS="$gl_saved_libs"
24096 if test -z "$SERVENT_LIB"; then
24097 for ac_func in getservbyname
24099 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
24100 if test "x$ac_cv_func_getservbyname" = xyes; then :
24101 cat >>confdefs.h <<_ACEOF
24102 #define HAVE_GETSERVBYNAME 1
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
24108 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
24109 if ${gl_cv_w32_getservbyname+:} false; then :
24110 $as_echo_n "(cached) " >&6
24112 gl_cv_w32_getservbyname=no
24113 gl_save_LIBS="$LIBS"
24114 LIBS="$LIBS -lws2_32"
24115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24116 /* end confdefs.h. */
24118 #ifdef HAVE_WINSOCK2_H
24119 #include <winsock2.h>
24121 #include <stddef.h>
24126 getservbyname(NULL,NULL);
24131 if ac_fn_c_try_link "$LINENO"; then :
24132 gl_cv_w32_getservbyname=yes
24134 rm -f core conftest.err conftest.$ac_objext \
24135 conftest$ac_exeext conftest.$ac_ext
24136 LIBS="$gl_save_LIBS"
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
24140 $as_echo "$gl_cv_w32_getservbyname" >&6; }
24141 if test "$gl_cv_w32_getservbyname" = "yes"; then
24142 SERVENT_LIB="-lws2_32"
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
24152 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
24153 if ${ac_cv_c_restrict+:} false; then :
24154 $as_echo_n "(cached) " >&6
24156 ac_cv_c_restrict=no
24157 # The order here caters to the fact that C++ does not require restrict.
24158 for ac_kw in __restrict __restrict__ _Restrict restrict; do
24159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24160 /* end confdefs.h. */
24161 typedef int * int_ptr;
24162 int foo (int_ptr $ac_kw ip) {
24169 int * $ac_kw t = s;
24176 if ac_fn_c_try_compile "$LINENO"; then :
24177 ac_cv_c_restrict=$ac_kw
24179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24180 test "$ac_cv_c_restrict" != no && break
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
24185 $as_echo "$ac_cv_c_restrict" >&6; }
24187 case $ac_cv_c_restrict in
24189 no) $as_echo "#define restrict /**/" >>confdefs.h
24191 *) cat >>confdefs.h <<_ACEOF
24192 #define restrict $ac_cv_c_restrict
24216 if test $ac_cv_header_sys_socket_h != yes; then
24217 for ac_header in winsock2.h
24219 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24220 if test "x$ac_cv_header_winsock2_h" = xyes; then :
24221 cat >>confdefs.h <<_ACEOF
24222 #define HAVE_WINSOCK2_H 1
24230 if test "$ac_cv_header_winsock2_h" = yes; then
24232 UNISTD_H_HAVE_WINSOCK2_H=1
24233 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
24239 if test $HAVE_WINSOCK2_H = 1; then
24240 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
24242 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
24248 cat >>confdefs.h <<_ACEOF
24249 #define HAVE_DECL_INET_NTOP $ac_have_decl
24252 if test $ac_cv_have_decl_inet_ntop = yes; then
24253 REPLACE_INET_NTOP=1
24254 INET_NTOP_LIB="-lws2_32"
24256 HAVE_DECL_INET_NTOP=0
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
24262 $as_echo_n "checking for library containing inet_ntop... " >&6; }
24263 if ${ac_cv_search_inet_ntop+:} false; then :
24264 $as_echo_n "(cached) " >&6
24266 ac_func_search_save_LIBS=$LIBS
24267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24268 /* end confdefs.h. */
24270 /* Override any GCC internal prototype to avoid an error.
24271 Use char because int might match the return type of a GCC
24272 builtin and then its argument prototype would still apply. */
24280 return inet_ntop ();
24285 for ac_lib in '' nsl resolv; do
24286 if test -z "$ac_lib"; then
24287 ac_res="none required"
24290 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24292 if ac_fn_c_try_link "$LINENO"; then :
24293 ac_cv_search_inet_ntop=$ac_res
24295 rm -f core conftest.err conftest.$ac_objext \
24297 if ${ac_cv_search_inet_ntop+:} false; then :
24301 if ${ac_cv_search_inet_ntop+:} false; then :
24304 ac_cv_search_inet_ntop=no
24306 rm conftest.$ac_ext
24307 LIBS=$ac_func_search_save_LIBS
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
24310 $as_echo "$ac_cv_search_inet_ntop" >&6; }
24311 ac_res=$ac_cv_search_inet_ntop
24312 if test "$ac_res" != no; then :
24313 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24316 for ac_func in inet_ntop
24318 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
24319 if test "x$ac_cv_func_inet_ntop" = xyes; then :
24320 cat >>confdefs.h <<_ACEOF
24321 #define HAVE_INET_NTOP 1
24327 if test $ac_cv_func_inet_ntop = no; then
24335 if test "$ac_cv_search_inet_ntop" != "no" \
24336 && test "$ac_cv_search_inet_ntop" != "none required"; then
24337 INET_NTOP_LIB="$ac_cv_search_inet_ntop"
24347 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
24349 # include <netdb.h>
24353 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
24359 cat >>confdefs.h <<_ACEOF
24360 #define HAVE_DECL_INET_NTOP $ac_have_decl
24363 if test $ac_cv_have_decl_inet_ntop = no; then
24364 HAVE_DECL_INET_NTOP=0
24384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
24385 $as_echo_n "checking for IPv4 sockets... " >&6; }
24386 if ${gl_cv_socket_ipv4+:} false; then :
24387 $as_echo_n "(cached) " >&6
24389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24390 /* end confdefs.h. */
24391 #include <sys/types.h>
24392 #ifdef HAVE_SYS_SOCKET_H
24393 #include <sys/socket.h>
24395 #ifdef HAVE_NETINET_IN_H
24396 #include <netinet/in.h>
24398 #ifdef HAVE_WINSOCK2_H
24399 #include <winsock2.h>
24404 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
24405 if (&x && &y && &z) return 0;
24410 if ac_fn_c_try_compile "$LINENO"; then :
24411 gl_cv_socket_ipv4=yes
24413 gl_cv_socket_ipv4=no
24415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
24419 $as_echo "$gl_cv_socket_ipv4" >&6; }
24420 if test $gl_cv_socket_ipv4 = yes; then
24422 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
24427 $as_echo_n "checking for IPv6 sockets... " >&6; }
24428 if ${gl_cv_socket_ipv6+:} false; then :
24429 $as_echo_n "(cached) " >&6
24431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24432 /* end confdefs.h. */
24433 #include <sys/types.h>
24434 #ifdef HAVE_SYS_SOCKET_H
24435 #include <sys/socket.h>
24437 #ifdef HAVE_NETINET_IN_H
24438 #include <netinet/in.h>
24440 #ifdef HAVE_WINSOCK2_H
24441 #include <winsock2.h>
24443 #ifdef HAVE_WS2TCPIP_H
24444 #include <ws2tcpip.h>
24449 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
24450 if (&x && &y && &z) return 0;
24455 if ac_fn_c_try_compile "$LINENO"; then :
24456 gl_cv_socket_ipv6=yes
24458 gl_cv_socket_ipv6=no
24460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
24464 $as_echo "$gl_cv_socket_ipv6" >&6; }
24465 if test $gl_cv_socket_ipv6 = yes; then
24467 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
24472 ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
24473 if test "x$ac_cv_have_decl_getdelim" = xyes; then :
24479 cat >>confdefs.h <<_ACEOF
24480 #define HAVE_DECL_GETDELIM $ac_have_decl
24490 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
24491 if test "x$ac_cv_have_decl_getline" = xyes; then :
24497 cat >>confdefs.h <<_ACEOF
24498 #define HAVE_DECL_GETLINE $ac_have_decl
24503 ac_fn_c_check_decl "$LINENO" "getpass" "ac_cv_have_decl_getpass" "$ac_includes_default"
24504 if test "x$ac_cv_have_decl_getpass" = xyes; then :
24510 cat >>confdefs.h <<_ACEOF
24511 #define HAVE_DECL_GETPASS $ac_have_decl
24541 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
24542 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
24548 cat >>confdefs.h <<_ACEOF
24549 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
24554 ac_fn_c_check_decl "$LINENO" "flockfile" "ac_cv_have_decl_flockfile" "$ac_includes_default"
24555 if test "x$ac_cv_have_decl_flockfile" = xyes; then :
24561 cat >>confdefs.h <<_ACEOF
24562 #define HAVE_DECL_FLOCKFILE $ac_have_decl
24567 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
24568 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
24574 cat >>confdefs.h <<_ACEOF
24575 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
24580 ac_fn_c_check_decl "$LINENO" "funlockfile" "ac_cv_have_decl_funlockfile" "$ac_includes_default"
24581 if test "x$ac_cv_have_decl_funlockfile" = xyes; then :
24587 cat >>confdefs.h <<_ACEOF
24588 #define HAVE_DECL_FUNLOCKFILE $ac_have_decl
24593 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
24594 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
24600 cat >>confdefs.h <<_ACEOF
24601 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
24619 GNULIB_GETTIMEOFDAY=0;
24620 HAVE_GETTIMEOFDAY=1;
24621 HAVE_STRUCT_TIMEVAL=1;
24623 REPLACE_GETTIMEOFDAY=0;
24624 REPLACE_STRUCT_TIMEVAL=0;
24656 if test $gl_cv_have_include_next = yes; then
24657 gl_cv_next_sys_time_h='<'sys/time.h'>'
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
24660 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
24661 if ${gl_cv_next_sys_time_h+:} false; then :
24662 $as_echo_n "(cached) " >&6
24665 if test $ac_cv_header_sys_time_h = yes; then
24668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24669 /* end confdefs.h. */
24670 #include <sys/time.h>
24674 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24675 *) gl_absname_cpp="$ac_cpp" ;;
24680 gl_dirsep_regex='[/\\]'
24683 gl_dirsep_regex='\/'
24686 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24688 gl_header_literal_regex=`echo 'sys/time.h' \
24689 | sed -e "$gl_make_literal_regex_sed"`
24690 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24691 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24696 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24697 sed -n "$gl_absolute_header_sed"`'"'
24699 gl_cv_next_sys_time_h='<'sys/time.h'>'
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
24705 $as_echo "$gl_cv_next_sys_time_h" >&6; }
24707 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
24709 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24710 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24711 gl_next_as_first_directive='<'sys/time.h'>'
24713 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24714 gl_next_as_first_directive=$gl_cv_next_sys_time_h
24716 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
24722 if test $ac_cv_header_sys_time_h != yes; then
24736 if test $ac_cv_header_sys_socket_h != yes; then
24737 for ac_header in winsock2.h
24739 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24740 if test "x$ac_cv_header_winsock2_h" = xyes; then :
24741 cat >>confdefs.h <<_ACEOF
24742 #define HAVE_WINSOCK2_H 1
24750 if test "$ac_cv_header_winsock2_h" = yes; then
24752 UNISTD_H_HAVE_WINSOCK2_H=1
24753 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
24760 $as_echo_n "checking for struct timeval... " >&6; }
24761 if ${gl_cv_sys_struct_timeval+:} false; then :
24762 $as_echo_n "(cached) " >&6
24764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24765 /* end confdefs.h. */
24766 #if HAVE_SYS_TIME_H
24767 #include <sys/time.h>
24770 #if HAVE_WINSOCK2_H
24771 # include <winsock2.h>
24777 static struct timeval x; x.tv_sec = x.tv_usec;
24782 if ac_fn_c_try_compile "$LINENO"; then :
24783 gl_cv_sys_struct_timeval=yes
24785 gl_cv_sys_struct_timeval=no
24787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
24791 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
24792 if test $gl_cv_sys_struct_timeval != yes; then
24793 HAVE_STRUCT_TIMEVAL=0
24795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct struct timeval.tv_sec member" >&5
24796 $as_echo_n "checking for correct struct timeval.tv_sec member... " >&6; }
24797 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
24798 $as_echo_n "(cached) " >&6
24800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24801 /* end confdefs.h. */
24802 #if HAVE_SYS_TIME_H
24803 #include <sys/time.h>
24806 #if HAVE_WINSOCK2_H
24807 # include <winsock2.h>
24813 static struct timeval x;
24814 typedef int verify_tv_sec_type[sizeof (x.tv_sec) == sizeof (time_t) ? 1 : -1];
24820 if ac_fn_c_try_compile "$LINENO"; then :
24821 gl_cv_sys_struct_timeval_tv_sec=yes
24823 gl_cv_sys_struct_timeval_tv_sec=no
24825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
24829 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
24830 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
24831 REPLACE_STRUCT_TIMEVAL=1
24836 for gl_func in gettimeofday; do
24837 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24839 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24840 if eval \${$as_gl_Symbol+:} false; then :
24841 $as_echo_n "(cached) " >&6
24843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24844 /* end confdefs.h. */
24846 #if HAVE_SYS_TIME_H
24847 # include <sys/time.h>
24860 if ac_fn_c_try_compile "$LINENO"; then :
24861 eval "$as_gl_Symbol=yes"
24863 eval "$as_gl_Symbol=no"
24865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24867 eval ac_res=\$$as_gl_Symbol
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24869 $as_echo "$ac_res" >&6; }
24870 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24871 cat >>confdefs.h <<_ACEOF
24872 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24875 eval ac_cv_have_decl_$gl_func=yes
24885 gl_threads_api=none
24890 if test "$gl_use_threads" != no; then
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
24892 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
24893 if ${gl_cv_have_weak+:} false; then :
24894 $as_echo_n "(cached) " >&6
24897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24898 /* end confdefs.h. */
24899 extern void xyzzy ();
24909 if ac_fn_c_try_link "$LINENO"; then :
24910 gl_cv_have_weak=maybe
24912 rm -f core conftest.err conftest.$ac_objext \
24913 conftest$ac_exeext conftest.$ac_ext
24914 if test $gl_cv_have_weak = maybe; then
24915 if test "$cross_compiling" = yes; then :
24916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24917 /* end confdefs.h. */
24919 Extensible Linking Format
24923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24924 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
24925 gl_cv_have_weak="guessing yes"
24927 gl_cv_have_weak="guessing no"
24933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24934 /* end confdefs.h. */
24940 return (fputs == NULL);
24943 if ac_fn_c_try_run "$LINENO"; then :
24944 gl_cv_have_weak=yes
24948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24949 conftest.$ac_objext conftest.beam conftest.$ac_ext
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
24956 $as_echo "$gl_cv_have_weak" >&6; }
24957 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
24958 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
24959 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
24960 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
24961 if test "x$ac_cv_header_pthread_h" = xyes; then :
24962 gl_have_pthread_h=yes
24964 gl_have_pthread_h=no
24968 if test "$gl_have_pthread_h" = yes; then
24969 # Other possible tests:
24970 # -lpthreads (FSU threads, PCthreads)
24973 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
24974 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
24975 # the second one only in libpthread, and lock.c needs it.
24976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24977 /* end confdefs.h. */
24978 #include <pthread.h>
24982 pthread_mutex_lock((pthread_mutex_t*)0);
24983 pthread_mutexattr_init((pthread_mutexattr_t*)0);
24988 if ac_fn_c_try_link "$LINENO"; then :
24989 gl_have_pthread=yes
24991 rm -f core conftest.err conftest.$ac_objext \
24992 conftest$ac_exeext conftest.$ac_ext
24993 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
24994 # since it is defined as a macro on OSF/1.)
24995 if test -n "$gl_have_pthread"; then
24996 # The program links fine without libpthread. But it may actually
24997 # need to link with libpthread in order to create multiple threads.
24998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
24999 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
25000 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
25001 $as_echo_n "(cached) " >&6
25003 ac_check_lib_save_LIBS=$LIBS
25004 LIBS="-lpthread $LIBS"
25005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25006 /* end confdefs.h. */
25008 /* Override any GCC internal prototype to avoid an error.
25009 Use char because int might match the return type of a GCC
25010 builtin and then its argument prototype would still apply. */
25014 char pthread_kill ();
25018 return pthread_kill ();
25023 if ac_fn_c_try_link "$LINENO"; then :
25024 ac_cv_lib_pthread_pthread_kill=yes
25026 ac_cv_lib_pthread_pthread_kill=no
25028 rm -f core conftest.err conftest.$ac_objext \
25029 conftest$ac_exeext conftest.$ac_ext
25030 LIBS=$ac_check_lib_save_LIBS
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
25033 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
25034 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
25035 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
25036 # On Solaris and HP-UX, most pthread functions exist also in libc.
25037 # Therefore pthread_in_use() needs to actually try to create a
25038 # thread: pthread_create from libc will fail, whereas
25039 # pthread_create will actually create a thread.
25043 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
25050 # Some library is needed. Try libpthread and libc_r.
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
25052 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
25053 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
25054 $as_echo_n "(cached) " >&6
25056 ac_check_lib_save_LIBS=$LIBS
25057 LIBS="-lpthread $LIBS"
25058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25059 /* end confdefs.h. */
25061 /* Override any GCC internal prototype to avoid an error.
25062 Use char because int might match the return type of a GCC
25063 builtin and then its argument prototype would still apply. */
25067 char pthread_kill ();
25071 return pthread_kill ();
25076 if ac_fn_c_try_link "$LINENO"; then :
25077 ac_cv_lib_pthread_pthread_kill=yes
25079 ac_cv_lib_pthread_pthread_kill=no
25081 rm -f core conftest.err conftest.$ac_objext \
25082 conftest$ac_exeext conftest.$ac_ext
25083 LIBS=$ac_check_lib_save_LIBS
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
25086 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
25087 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
25088 gl_have_pthread=yes
25089 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
25090 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
25093 if test -z "$gl_have_pthread"; then
25095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
25096 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
25097 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
25098 $as_echo_n "(cached) " >&6
25100 ac_check_lib_save_LIBS=$LIBS
25102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25103 /* end confdefs.h. */
25105 /* Override any GCC internal prototype to avoid an error.
25106 Use char because int might match the return type of a GCC
25107 builtin and then its argument prototype would still apply. */
25111 char pthread_kill ();
25115 return pthread_kill ();
25120 if ac_fn_c_try_link "$LINENO"; then :
25121 ac_cv_lib_c_r_pthread_kill=yes
25123 ac_cv_lib_c_r_pthread_kill=no
25125 rm -f core conftest.err conftest.$ac_objext \
25126 conftest$ac_exeext conftest.$ac_ext
25127 LIBS=$ac_check_lib_save_LIBS
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
25130 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
25131 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
25132 gl_have_pthread=yes
25133 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
25134 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
25139 if test -n "$gl_have_pthread"; then
25140 gl_threads_api=posix
25142 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
25144 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
25145 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
25147 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
25156 if test -z "$gl_have_pthread"; then
25157 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
25158 gl_have_solaristhread=
25159 gl_save_LIBS="$LIBS"
25160 LIBS="$LIBS -lthread"
25161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25162 /* end confdefs.h. */
25164 #include <thread.h>
25175 if ac_fn_c_try_link "$LINENO"; then :
25176 gl_have_solaristhread=yes
25178 rm -f core conftest.err conftest.$ac_objext \
25179 conftest$ac_exeext conftest.$ac_ext
25180 LIBS="$gl_save_LIBS"
25181 if test -n "$gl_have_solaristhread"; then
25182 gl_threads_api=solaris
25184 LTLIBTHREAD=-lthread
25185 LIBMULTITHREAD="$LIBTHREAD"
25186 LTLIBMULTITHREAD="$LTLIBTHREAD"
25188 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
25190 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
25192 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
25200 if test "$gl_use_threads" = pth; then
25201 gl_save_CPPFLAGS="$CPPFLAGS"
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
25208 $as_echo_n "checking how to link with libpth... " >&6; }
25209 if ${ac_cv_libpth_libs+:} false; then :
25210 $as_echo_n "(cached) " >&6
25222 acl_save_prefix="$prefix"
25223 prefix="$acl_final_prefix"
25224 acl_save_exec_prefix="$exec_prefix"
25225 exec_prefix="$acl_final_exec_prefix"
25227 eval additional_includedir=\"$includedir\"
25228 eval additional_libdir=\"$libdir\"
25230 exec_prefix="$acl_save_exec_prefix"
25231 prefix="$acl_save_prefix"
25234 # Check whether --with-libpth-prefix was given.
25235 if test "${with_libpth_prefix+set}" = set; then :
25236 withval=$with_libpth_prefix;
25237 if test "X$withval" = "Xno"; then
25240 if test "X$withval" = "X"; then
25242 acl_save_prefix="$prefix"
25243 prefix="$acl_final_prefix"
25244 acl_save_exec_prefix="$exec_prefix"
25245 exec_prefix="$acl_final_exec_prefix"
25247 eval additional_includedir=\"$includedir\"
25248 eval additional_libdir=\"$libdir\"
25250 exec_prefix="$acl_save_exec_prefix"
25251 prefix="$acl_save_prefix"
25254 additional_includedir="$withval/include"
25255 additional_libdir="$withval/$acl_libdirstem"
25256 if test "$acl_libdirstem2" != "$acl_libdirstem" \
25257 && ! test -d "$withval/$acl_libdirstem"; then
25258 additional_libdir="$withval/$acl_libdirstem2"
25272 names_already_handled=
25273 names_next_round='pth '
25274 while test -n "$names_next_round"; do
25275 names_this_round="$names_next_round"
25277 for name in $names_this_round; do
25279 for n in $names_already_handled; do
25280 if test "$n" = "$name"; then
25281 already_handled=yes
25285 if test -z "$already_handled"; then
25286 names_already_handled="$names_already_handled $name"
25287 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
25288 eval value=\"\$HAVE_LIB$uppername\"
25289 if test -n "$value"; then
25290 if test "$value" = yes; then
25291 eval value=\"\$LIB$uppername\"
25292 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
25293 eval value=\"\$LTLIB$uppername\"
25294 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
25303 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
25304 if test -n "$acl_shlibext"; then
25305 shrext=".$acl_shlibext" # typically: shrext=.so
25309 if test $use_additional = yes; then
25310 dir="$additional_libdir"
25311 if test -n "$acl_shlibext"; then
25312 if test -f "$dir/$libname$shrext"; then
25314 found_so="$dir/$libname$shrext"
25316 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
25317 ver=`(cd "$dir" && \
25318 for f in "$libname$shrext".*; do echo "$f"; done \
25319 | sed -e "s,^$libname$shrext\\\\.,," \
25320 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
25321 | sed 1q ) 2>/dev/null`
25322 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
25324 found_so="$dir/$libname$shrext.$ver"
25327 eval library_names=\"$acl_library_names_spec\"
25328 for f in $library_names; do
25329 if test -f "$dir/$f"; then
25338 if test "X$found_dir" = "X"; then
25339 if test -f "$dir/$libname.$acl_libext"; then
25341 found_a="$dir/$libname.$acl_libext"
25344 if test "X$found_dir" != "X"; then
25345 if test -f "$dir/$libname.la"; then
25346 found_la="$dir/$libname.la"
25350 if test "X$found_dir" = "X"; then
25351 for x in $LDFLAGS $LTLIBPTH; do
25353 acl_save_prefix="$prefix"
25354 prefix="$acl_final_prefix"
25355 acl_save_exec_prefix="$exec_prefix"
25356 exec_prefix="$acl_final_exec_prefix"
25358 exec_prefix="$acl_save_exec_prefix"
25359 prefix="$acl_save_prefix"
25363 dir=`echo "X$x" | sed -e 's/^X-L//'`
25364 if test -n "$acl_shlibext"; then
25365 if test -f "$dir/$libname$shrext"; then
25367 found_so="$dir/$libname$shrext"
25369 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
25370 ver=`(cd "$dir" && \
25371 for f in "$libname$shrext".*; do echo "$f"; done \
25372 | sed -e "s,^$libname$shrext\\\\.,," \
25373 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
25374 | sed 1q ) 2>/dev/null`
25375 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
25377 found_so="$dir/$libname$shrext.$ver"
25380 eval library_names=\"$acl_library_names_spec\"
25381 for f in $library_names; do
25382 if test -f "$dir/$f"; then
25391 if test "X$found_dir" = "X"; then
25392 if test -f "$dir/$libname.$acl_libext"; then
25394 found_a="$dir/$libname.$acl_libext"
25397 if test "X$found_dir" != "X"; then
25398 if test -f "$dir/$libname.la"; then
25399 found_la="$dir/$libname.la"
25404 if test "X$found_dir" != "X"; then
25409 if test "X$found_dir" != "X"; then
25410 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
25411 if test "X$found_so" != "X"; then
25412 if test "$enable_rpath" = no \
25413 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
25414 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
25415 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
25418 for x in $ltrpathdirs; do
25419 if test "X$x" = "X$found_dir"; then
25424 if test -z "$haveit"; then
25425 ltrpathdirs="$ltrpathdirs $found_dir"
25427 if test "$acl_hardcode_direct" = yes; then
25428 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
25430 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
25431 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
25433 for x in $rpathdirs; do
25434 if test "X$x" = "X$found_dir"; then
25439 if test -z "$haveit"; then
25440 rpathdirs="$rpathdirs $found_dir"
25444 for x in $LDFLAGS $LIBPTH; do
25446 acl_save_prefix="$prefix"
25447 prefix="$acl_final_prefix"
25448 acl_save_exec_prefix="$exec_prefix"
25449 exec_prefix="$acl_final_exec_prefix"
25451 exec_prefix="$acl_save_exec_prefix"
25452 prefix="$acl_save_prefix"
25454 if test "X$x" = "X-L$found_dir"; then
25459 if test -z "$haveit"; then
25460 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
25462 if test "$acl_hardcode_minus_L" != no; then
25463 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
25465 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
25471 if test "X$found_a" != "X"; then
25472 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
25474 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
25477 additional_includedir=
25478 case "$found_dir" in
25479 */$acl_libdirstem | */$acl_libdirstem/)
25480 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
25481 if test "$name" = 'pth'; then
25482 LIBPTH_PREFIX="$basedir"
25484 additional_includedir="$basedir/include"
25486 */$acl_libdirstem2 | */$acl_libdirstem2/)
25487 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
25488 if test "$name" = 'pth'; then
25489 LIBPTH_PREFIX="$basedir"
25491 additional_includedir="$basedir/include"
25494 if test "X$additional_includedir" != "X"; then
25495 if test "X$additional_includedir" != "X/usr/include"; then
25497 if test "X$additional_includedir" = "X/usr/local/include"; then
25498 if test -n "$GCC"; then
25500 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25504 if test -z "$haveit"; then
25505 for x in $CPPFLAGS $INCPTH; do
25507 acl_save_prefix="$prefix"
25508 prefix="$acl_final_prefix"
25509 acl_save_exec_prefix="$exec_prefix"
25510 exec_prefix="$acl_final_exec_prefix"
25512 exec_prefix="$acl_save_exec_prefix"
25513 prefix="$acl_save_prefix"
25515 if test "X$x" = "X-I$additional_includedir"; then
25520 if test -z "$haveit"; then
25521 if test -d "$additional_includedir"; then
25522 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
25528 if test -n "$found_la"; then
25529 save_libdir="$libdir"
25530 case "$found_la" in
25531 */* | *\\*) . "$found_la" ;;
25532 *) . "./$found_la" ;;
25534 libdir="$save_libdir"
25535 for dep in $dependency_libs; do
25538 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
25539 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
25540 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
25542 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
25543 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
25544 if test -n "$GCC"; then
25546 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25550 if test -z "$haveit"; then
25552 for x in $LDFLAGS $LIBPTH; do
25554 acl_save_prefix="$prefix"
25555 prefix="$acl_final_prefix"
25556 acl_save_exec_prefix="$exec_prefix"
25557 exec_prefix="$acl_final_exec_prefix"
25559 exec_prefix="$acl_save_exec_prefix"
25560 prefix="$acl_save_prefix"
25562 if test "X$x" = "X-L$additional_libdir"; then
25567 if test -z "$haveit"; then
25568 if test -d "$additional_libdir"; then
25569 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
25573 for x in $LDFLAGS $LTLIBPTH; do
25575 acl_save_prefix="$prefix"
25576 prefix="$acl_final_prefix"
25577 acl_save_exec_prefix="$exec_prefix"
25578 exec_prefix="$acl_final_exec_prefix"
25580 exec_prefix="$acl_save_exec_prefix"
25581 prefix="$acl_save_prefix"
25583 if test "X$x" = "X-L$additional_libdir"; then
25588 if test -z "$haveit"; then
25589 if test -d "$additional_libdir"; then
25590 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
25597 dir=`echo "X$dep" | sed -e 's/^X-R//'`
25598 if test "$enable_rpath" != no; then
25600 for x in $rpathdirs; do
25601 if test "X$x" = "X$dir"; then
25606 if test -z "$haveit"; then
25607 rpathdirs="$rpathdirs $dir"
25610 for x in $ltrpathdirs; do
25611 if test "X$x" = "X$dir"; then
25616 if test -z "$haveit"; then
25617 ltrpathdirs="$ltrpathdirs $dir"
25622 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
25625 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
25628 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
25629 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
25635 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
25636 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
25642 if test "X$rpathdirs" != "X"; then
25643 if test -n "$acl_hardcode_libdir_separator"; then
25645 for found_dir in $rpathdirs; do
25646 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
25648 acl_save_libdir="$libdir"
25650 eval flag=\"$acl_hardcode_libdir_flag_spec\"
25651 libdir="$acl_save_libdir"
25652 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
25654 for found_dir in $rpathdirs; do
25655 acl_save_libdir="$libdir"
25656 libdir="$found_dir"
25657 eval flag=\"$acl_hardcode_libdir_flag_spec\"
25658 libdir="$acl_save_libdir"
25659 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
25663 if test "X$ltrpathdirs" != "X"; then
25664 for found_dir in $ltrpathdirs; do
25665 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
25674 ac_cv_libpth_libs="$LIBPTH"
25675 ac_cv_libpth_ltlibs="$LTLIBPTH"
25676 ac_cv_libpth_cppflags="$INCPTH"
25677 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
25680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
25681 $as_echo "$ac_cv_libpth_libs" >&6; }
25682 LIBPTH="$ac_cv_libpth_libs"
25683 LTLIBPTH="$ac_cv_libpth_ltlibs"
25684 INCPTH="$ac_cv_libpth_cppflags"
25685 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
25687 for element in $INCPTH; do
25689 for x in $CPPFLAGS; do
25691 acl_save_prefix="$prefix"
25692 prefix="$acl_final_prefix"
25693 acl_save_exec_prefix="$exec_prefix"
25694 exec_prefix="$acl_final_exec_prefix"
25696 exec_prefix="$acl_save_exec_prefix"
25697 prefix="$acl_save_prefix"
25699 if test "X$x" = "X$element"; then
25704 if test -z "$haveit"; then
25705 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
25717 gl_save_LIBS="$LIBS"
25718 LIBS="$LIBS $LIBPTH"
25719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25720 /* end confdefs.h. */
25730 if ac_fn_c_try_link "$LINENO"; then :
25733 rm -f core conftest.err conftest.$ac_objext \
25734 conftest$ac_exeext conftest.$ac_ext
25735 LIBS="$gl_save_LIBS"
25736 if test -n "$gl_have_pth"; then
25738 LIBTHREAD="$LIBPTH"
25739 LTLIBTHREAD="$LTLIBPTH"
25740 LIBMULTITHREAD="$LIBTHREAD"
25741 LTLIBMULTITHREAD="$LTLIBTHREAD"
25743 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
25745 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
25746 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
25748 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
25755 CPPFLAGS="$gl_save_CPPFLAGS"
25758 if test -z "$gl_have_pthread"; then
25759 case "$gl_use_threads" in
25760 yes | windows | win32) # The 'win32' is for backward compatibility.
25761 if { case "$host_os" in
25766 gl_threads_api=windows
25768 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
25776 $as_echo_n "checking for multithread API to use... " >&6; }
25777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
25778 $as_echo "$gl_threads_api" >&6; }
25796 GNULIB_CALLOC_POSIX=0;
25797 GNULIB_CANONICALIZE_FILE_NAME=0;
25798 GNULIB_GETLOADAVG=0;
25799 GNULIB_GETSUBOPT=0;
25801 GNULIB_MALLOC_POSIX=0;
25805 GNULIB_MKOSTEMPS=0;
25808 GNULIB_POSIX_OPENPT=0;
25810 GNULIB_PTSNAME_R=0;
25814 GNULIB_REALLOC_POSIX=0;
25821 GNULIB_SYSTEM_POSIX=0;
25827 HAVE_CANONICALIZE_FILE_NAME=1;
25828 HAVE_DECL_GETLOADAVG=1;
25836 HAVE_POSIX_OPENPT=1;
25845 HAVE_DECL_SETENV=1;
25849 HAVE_STRUCT_RANDOM_DATA=1;
25850 HAVE_SYS_LOADAVG_H=0;
25852 HAVE_DECL_UNSETENV=1;
25854 REPLACE_CANONICALIZE_FILE_NAME=0;
25858 REPLACE_PTSNAME_R=0;
25860 REPLACE_RANDOM_R=0;
25862 REPLACE_REALPATH=0;
25865 REPLACE_UNSETENV=0;
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
25870 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
25871 if ${gl_cv_func_malloc_posix+:} false; then :
25872 $as_echo_n "(cached) " >&6
25875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25876 /* end confdefs.h. */
25881 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
25889 if ac_fn_c_try_compile "$LINENO"; then :
25890 gl_cv_func_malloc_posix=yes
25892 gl_cv_func_malloc_posix=no
25894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
25898 $as_echo "$gl_cv_func_malloc_posix" >&6; }
25917 GNULIB_RAWMEMCHR=0;
25920 GNULIB_STRCHRNUL=0;
25928 GNULIB_STRCASESTR=0;
25935 GNULIB_MBSCASECMP=0;
25936 GNULIB_MBSNCASECMP=0;
25937 GNULIB_MBSPCASECMP=0;
25938 GNULIB_MBSCASESTR=0;
25945 GNULIB_STRERROR_R=0;
25946 GNULIB_STRSIGNAL=0;
25947 GNULIB_STRVERSCMP=0;
25952 HAVE_DECL_MEMMEM=1;
25954 HAVE_DECL_MEMRCHR=1;
25959 HAVE_DECL_STRDUP=1;
25960 HAVE_DECL_STRNDUP=1;
25961 HAVE_DECL_STRNLEN=1;
25965 HAVE_DECL_STRTOK_R=1;
25966 HAVE_DECL_STRERROR_R=1;
25967 HAVE_DECL_STRSIGNAL=1;
25974 REPLACE_STRCASESTR=0;
25975 REPLACE_STRCHRNUL=0;
25976 REPLACE_STRERROR=0;
25977 REPLACE_STRERROR_R=0;
25981 REPLACE_STRSIGNAL=0;
25982 REPLACE_STRTOK_R=0;
25983 UNDEFINE_STRTOK_R=0;
25989 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
25990 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
25991 # irrelevant for anonymous mappings.
25992 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
25993 if test "x$ac_cv_func_mmap" = xyes; then :
26000 # Try to allow MAP_ANONYMOUS.
26001 gl_have_mmap_anonymous=no
26002 if test $gl_have_mmap = yes; then
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
26004 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
26005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26006 /* end confdefs.h. */
26008 #include <sys/mman.h>
26009 #ifdef MAP_ANONYMOUS
26010 I cant identify this map
26014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26015 $EGREP "I cant identify this map" >/dev/null 2>&1; then :
26016 gl_have_mmap_anonymous=yes
26020 if test $gl_have_mmap_anonymous != yes; then
26021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26022 /* end confdefs.h. */
26024 #include <sys/mman.h>
26026 I cant identify this map
26030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26031 $EGREP "I cant identify this map" >/dev/null 2>&1; then :
26033 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
26035 gl_have_mmap_anonymous=yes
26040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
26041 $as_echo "$gl_have_mmap_anonymous" >&6; }
26042 if test $gl_have_mmap_anonymous = yes; then
26044 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
26066 if test $HAVE_MEMCHR = 1; then
26067 # Detect platform-specific bugs in some versions of glibc:
26068 # memchr should not dereference anything with length 0
26069 # http://bugzilla.redhat.com/499689
26070 # memchr should not dereference overestimated length after a match
26071 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
26072 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
26073 # Assume that memchr works on platforms that lack mprotect.
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
26075 $as_echo_n "checking whether memchr works... " >&6; }
26076 if ${gl_cv_func_memchr_works+:} false; then :
26077 $as_echo_n "(cached) " >&6
26079 if test "$cross_compiling" = yes; then :
26080 gl_cv_func_memchr_works="guessing no"
26082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26083 /* end confdefs.h. */
26085 #include <string.h>
26086 #if HAVE_SYS_MMAN_H
26087 # include <fcntl.h>
26088 # include <unistd.h>
26089 # include <sys/types.h>
26090 # include <sys/mman.h>
26092 # define MAP_FILE 0
26101 char *fence = NULL;
26102 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
26103 # if HAVE_MAP_ANONYMOUS
26104 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
26106 # else /* !HAVE_MAP_ANONYMOUS */
26107 const int flags = MAP_FILE | MAP_PRIVATE;
26108 int fd = open ("/dev/zero", O_RDONLY, 0666);
26112 int pagesize = getpagesize ();
26114 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
26116 if (two_pages != (char *)(-1)
26117 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
26118 fence = two_pages + pagesize;
26123 if (memchr (fence, 0, 0))
26125 strcpy (fence - 9, "12345678");
26126 if (memchr (fence - 9, 0, 79) != fence - 1)
26128 if (memchr (fence - 1, 0, 3) != fence - 1)
26137 if ac_fn_c_try_run "$LINENO"; then :
26138 gl_cv_func_memchr_works=yes
26140 gl_cv_func_memchr_works=no
26142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26143 conftest.$ac_objext conftest.beam conftest.$ac_ext
26147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
26148 $as_echo "$gl_cv_func_memchr_works" >&6; }
26149 if test "$gl_cv_func_memchr_works" != yes; then
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
26159 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
26160 if ${gl_cv_minmax_in_limits_h+:} false; then :
26161 $as_echo_n "(cached) " >&6
26163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26164 /* end confdefs.h. */
26165 #include <limits.h>
26166 int x = MIN (42, 17);
26175 if ac_fn_c_try_compile "$LINENO"; then :
26176 gl_cv_minmax_in_limits_h=yes
26178 gl_cv_minmax_in_limits_h=no
26180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
26183 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
26184 if test $gl_cv_minmax_in_limits_h = yes; then
26186 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
26195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
26196 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
26197 if ${gl_cv_minmax_in_sys_param_h+:} false; then :
26198 $as_echo_n "(cached) " >&6
26200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26201 /* end confdefs.h. */
26202 #include <sys/param.h>
26203 int x = MIN (42, 17);
26212 if ac_fn_c_try_compile "$LINENO"; then :
26213 gl_cv_minmax_in_sys_param_h=yes
26215 gl_cv_minmax_in_sys_param_h=no
26217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
26220 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
26221 if test $gl_cv_minmax_in_sys_param_h = yes; then
26223 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
26231 gl_cv_c_multiarch=no
26232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26233 /* end confdefs.h. */
26234 #ifndef __APPLE_CC__
26235 not a universal capable compiler
26240 if ac_fn_c_try_compile "$LINENO"; then :
26244 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
26245 if test -n "$prev"; then
26247 i?86 | x86_64 | ppc | ppc64)
26248 if test -z "$arch" || test "$arch" = "$word"; then
26251 gl_cv_c_multiarch=yes
26257 if test "x$word" = "x-arch"; then
26264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26265 if test $gl_cv_c_multiarch = yes; then
26266 APPLE_UNIVERSAL_BUILD=1
26268 APPLE_UNIVERSAL_BUILD=0
26273 REPLACE_STRERROR_0=0
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
26275 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
26276 if ${gl_cv_func_strerror_0_works+:} false; then :
26277 $as_echo_n "(cached) " >&6
26279 if test "$cross_compiling" = yes; then :
26280 gl_cv_func_strerror_0_works="guessing no"
26282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26283 /* end confdefs.h. */
26284 #include <string.h>
26293 str = strerror (0);
26294 if (!*str) result |= 1;
26295 if (errno) result |= 2;
26296 if (strstr (str, "nknown") || strstr (str, "ndefined"))
26303 if ac_fn_c_try_run "$LINENO"; then :
26304 gl_cv_func_strerror_0_works=yes
26306 gl_cv_func_strerror_0_works=no
26308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26309 conftest.$ac_objext conftest.beam conftest.$ac_ext
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
26315 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
26316 if test "$gl_cv_func_strerror_0_works" != yes; then
26317 REPLACE_STRERROR_0=1
26319 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
26344 if test $ac_cv_func_strerror_r = yes; then
26345 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
26346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r with POSIX signature" >&5
26347 $as_echo_n "checking for strerror_r with POSIX signature... " >&6; }
26348 if ${gl_cv_func_strerror_r_posix_signature+:} false; then :
26349 $as_echo_n "(cached) " >&6
26351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26352 /* end confdefs.h. */
26353 #include <string.h>
26354 int strerror_r (int, char *, size_t);
26364 if ac_fn_c_try_compile "$LINENO"; then :
26365 gl_cv_func_strerror_r_posix_signature=yes
26367 gl_cv_func_strerror_r_posix_signature=no
26369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_posix_signature" >&5
26373 $as_echo "$gl_cv_func_strerror_r_posix_signature" >&6; }
26374 if test $gl_cv_func_strerror_r_posix_signature = yes; then
26375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r works" >&5
26376 $as_echo_n "checking whether strerror_r works... " >&6; }
26377 if ${gl_cv_func_strerror_r_works+:} false; then :
26378 $as_echo_n "(cached) " >&6
26380 if test "$cross_compiling" = yes; then :
26384 aix*) gl_cv_func_strerror_r_works="guessing no";;
26385 # Guess no on HP-UX.
26386 hpux*) gl_cv_func_strerror_r_works="guessing no";;
26387 # Guess no on BSD variants.
26388 *bsd*) gl_cv_func_strerror_r_works="guessing no";;
26389 # Guess yes otherwise.
26390 *) gl_cv_func_strerror_r_works="guessing yes";;
26394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26395 /* end confdefs.h. */
26397 #include <string.h>
26404 if (strerror_r (EACCES, buf, 0) < 0)
26407 if (strerror_r (EACCES, buf, sizeof buf) != 0)
26409 strcpy (buf, "Unknown");
26410 if (strerror_r (0, buf, sizeof buf) != 0)
26414 if (strstr (buf, "nknown") || strstr (buf, "ndefined"))
26418 if (strerror_r (-3, buf, sizeof buf) < 0)
26430 if ac_fn_c_try_run "$LINENO"; then :
26431 gl_cv_func_strerror_r_works=yes
26433 gl_cv_func_strerror_r_works=no
26435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26436 conftest.$ac_objext conftest.beam conftest.$ac_ext
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
26442 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
26451 if test $ac_cv_func___xpg_strerror_r = yes; then
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __xpg_strerror_r works" >&5
26453 $as_echo_n "checking whether __xpg_strerror_r works... " >&6; }
26454 if ${gl_cv_func_strerror_r_works+:} false; then :
26455 $as_echo_n "(cached) " >&6
26457 if test "$cross_compiling" = yes; then :
26458 gl_cv_func_strerror_r_works="guessing no"
26461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26462 /* end confdefs.h. */
26464 #include <string.h>
26469 int __xpg_strerror_r(int, char *, size_t);
26475 char buf[256] = "^";
26477 char *str = strerror (-1);
26478 strcpy (copy, str);
26479 if (__xpg_strerror_r (-2, buf, 1) == 0)
26483 __xpg_strerror_r (-2, buf, 256);
26484 if (strcmp (str, copy))
26492 if ac_fn_c_try_run "$LINENO"; then :
26493 gl_cv_func_strerror_r_works=yes
26495 gl_cv_func_strerror_r_works=no
26497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26498 conftest.$ac_objext conftest.beam conftest.$ac_ext
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
26504 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
26511 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
26512 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
26518 cat >>confdefs.h <<_ACEOF
26519 #define HAVE_DECL_STRERROR_R $ac_have_decl
26536 if test $ac_cv_have_decl_strerror_r = no; then
26537 HAVE_DECL_STRERROR_R=0
26540 if test $ac_cv_func_strerror_r = yes; then
26541 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
26542 if test $gl_cv_func_strerror_r_posix_signature = yes; then
26543 case "$gl_cv_func_strerror_r_works" in
26544 *no) REPLACE_STRERROR_R=1 ;;
26547 REPLACE_STRERROR_R=1
26550 REPLACE_STRERROR_R=1
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
26570 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
26571 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
26572 $as_echo_n "(cached) " >&6
26575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26576 /* end confdefs.h. */
26577 #include <sys/select.h>
26586 if ac_fn_c_try_compile "$LINENO"; then :
26587 gl_cv_header_sys_select_h_selfcontained=yes
26589 gl_cv_header_sys_select_h_selfcontained=no
26591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26592 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
26593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26594 /* end confdefs.h. */
26595 #include <sys/select.h>
26599 int memset; int bzero;
26605 if ac_fn_c_try_compile "$LINENO"; then :
26606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26607 /* end confdefs.h. */
26608 #include <sys/select.h>
26614 #define memset nonexistent_memset
26619 void *memset (void *, int, unsigned long);
26621 #define bzero nonexistent_bzero
26626 void bzero (void *, unsigned long);
26635 if ac_fn_c_try_link "$LINENO"; then :
26638 gl_cv_header_sys_select_h_selfcontained=no
26640 rm -f core conftest.err conftest.$ac_objext \
26641 conftest$ac_exeext conftest.$ac_ext
26644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
26649 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
26665 if test $gl_cv_have_include_next = yes; then
26666 gl_cv_next_sys_select_h='<'sys/select.h'>'
26668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
26669 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
26670 if ${gl_cv_next_sys_select_h+:} false; then :
26671 $as_echo_n "(cached) " >&6
26674 if test $ac_cv_header_sys_select_h = yes; then
26677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26678 /* end confdefs.h. */
26679 #include <sys/select.h>
26683 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26684 *) gl_absname_cpp="$ac_cpp" ;;
26689 gl_dirsep_regex='[/\\]'
26692 gl_dirsep_regex='\/'
26695 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26697 gl_header_literal_regex=`echo 'sys/select.h' \
26698 | sed -e "$gl_make_literal_regex_sed"`
26699 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26700 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26705 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26706 sed -n "$gl_absolute_header_sed"`'"'
26708 gl_cv_next_sys_select_h='<'sys/select.h'>'
26713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
26714 $as_echo "$gl_cv_next_sys_select_h" >&6; }
26716 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
26718 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26719 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26720 gl_next_as_first_directive='<'sys/select.h'>'
26722 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26723 gl_next_as_first_directive=$gl_cv_next_sys_select_h
26725 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
26730 if test $ac_cv_header_sys_select_h = yes; then
26731 HAVE_SYS_SELECT_H=1
26733 HAVE_SYS_SELECT_H=0
26746 if test $ac_cv_header_sys_socket_h != yes; then
26747 for ac_header in winsock2.h
26749 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
26750 if test "x$ac_cv_header_winsock2_h" = xyes; then :
26751 cat >>confdefs.h <<_ACEOF
26752 #define HAVE_WINSOCK2_H 1
26760 if test "$ac_cv_header_winsock2_h" = yes; then
26762 UNISTD_H_HAVE_WINSOCK2_H=1
26763 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
26771 for gl_func in pselect select; do
26772 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
26774 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26775 if eval \${$as_gl_Symbol+:} false; then :
26776 $as_echo_n "(cached) " >&6
26778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26779 /* end confdefs.h. */
26781 /* Some systems require prerequisite headers. */
26782 #include <sys/types.h>
26783 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
26784 # include <sys/time.h>
26786 #include <sys/select.h>
26797 if ac_fn_c_try_compile "$LINENO"; then :
26798 eval "$as_gl_Symbol=yes"
26800 eval "$as_gl_Symbol=no"
26802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26804 eval ac_res=\$$as_gl_Symbol
26805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26806 $as_echo "$ac_res" >&6; }
26807 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
26808 cat >>confdefs.h <<_ACEOF
26809 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26812 eval ac_cv_have_decl_$gl_func=yes
26818 GNULIB_PTHREAD_SIGMASK=0;
26820 GNULIB_SIGNAL_H_SIGPIPE=0;
26821 GNULIB_SIGPROCMASK=0;
26822 GNULIB_SIGACTION=0;
26823 HAVE_POSIX_SIGNALBLOCKING=1;
26824 HAVE_PTHREAD_SIGMASK=1;
26829 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
26831 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
26833 HAVE_SIGHANDLER_T=1;
26834 REPLACE_PTHREAD_SIGMASK=0;
26838 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
26839 #include <signal.h>
26840 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
26841 #include <sys/types.h>
26844 if test "x$ac_cv_type_sigset_t" = xyes; then :
26846 cat >>confdefs.h <<_ACEOF
26847 #define HAVE_SIGSET_T 1
26850 gl_cv_type_sigset_t=yes
26852 gl_cv_type_sigset_t=no
26855 if test $gl_cv_type_sigset_t != yes; then
26859 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26860 if test "x$ac_cv_type_pid_t" = xyes; then :
26864 cat >>confdefs.h <<_ACEOF
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26871 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26872 if ${ac_cv_type_uid_t+:} false; then :
26873 $as_echo_n "(cached) " >&6
26875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26876 /* end confdefs.h. */
26877 #include <sys/types.h>
26880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26881 $EGREP "uid_t" >/dev/null 2>&1; then :
26882 ac_cv_type_uid_t=yes
26884 ac_cv_type_uid_t=no
26889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26890 $as_echo "$ac_cv_type_uid_t" >&6; }
26891 if test $ac_cv_type_uid_t = no; then
26893 $as_echo "#define uid_t int" >>confdefs.h
26896 $as_echo "#define gid_t int" >>confdefs.h
26917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
26918 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
26919 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
26920 $as_echo_n "(cached) " >&6
26923 if test "$cross_compiling" = yes; then :
26926 # Guess yes on glibc systems.
26927 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
26928 # Guess yes on FreeBSD >= 5.
26929 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
26930 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
26931 # Guess yes on MacOS X >= 10.3.
26932 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
26933 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
26934 # Guess yes on OpenBSD >= 3.9.
26935 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
26936 gl_cv_func_snprintf_retval_c99="guessing no";;
26937 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
26938 # Guess yes on Solaris >= 2.10.
26939 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
26940 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
26941 # Guess yes on AIX >= 4.
26942 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
26943 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
26944 # Guess yes on NetBSD >= 3.
26945 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
26946 gl_cv_func_snprintf_retval_c99="guessing no";;
26947 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
26948 # Guess yes on BeOS.
26949 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
26950 # If we don't know, assume the worst.
26951 *) gl_cv_func_snprintf_retval_c99="guessing no";;
26955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26956 /* end confdefs.h. */
26959 #include <string.h>
26961 # define my_snprintf snprintf
26963 # include <stdarg.h>
26964 static int my_snprintf (char *buf, int size, const char *format, ...)
26968 va_start (args, format);
26969 ret = vsnprintf (buf, size, format, args);
26974 static char buf[100];
26977 strcpy (buf, "ABCDEF");
26978 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
26980 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
26982 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
26987 if ac_fn_c_try_run "$LINENO"; then :
26988 gl_cv_func_snprintf_retval_c99=yes
26990 gl_cv_func_snprintf_retval_c99=no
26992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26993 conftest.$ac_objext conftest.beam conftest.$ac_ext
26998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
26999 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
27002 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
27003 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
27009 cat >>confdefs.h <<_ACEOF
27010 #define HAVE_DECL_SNPRINTF $ac_have_decl
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
27015 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
27016 if ${ac_cv_header_stdbool_h+:} false; then :
27017 $as_echo_n "(cached) " >&6
27019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27020 /* end confdefs.h. */
27022 #include <stdbool.h>
27024 "error: bool is not defined"
27027 "error: false is not defined"
27030 "error: false is not 0"
27033 "error: true is not defined"
27036 "error: true is not 1"
27038 #ifndef __bool_true_false_are_defined
27039 "error: __bool_true_false_are_defined is not defined"
27042 struct s { _Bool s: 1; _Bool t; } s;
27044 char a[true == 1 ? 1 : -1];
27045 char b[false == 0 ? 1 : -1];
27046 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
27047 char d[(bool) 0.5 == true ? 1 : -1];
27048 /* See body of main program for 'e'. */
27049 char f[(_Bool) 0.0 == false ? 1 : -1];
27051 char h[sizeof (_Bool)];
27052 char i[sizeof s.t];
27053 enum { j = false, k = true, l = false * true, m = true * 256 };
27054 /* The following fails for
27055 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
27057 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
27058 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
27059 /* Catch a bug in an HP-UX C compiler. See
27060 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
27061 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
27073 /* Refer to every declared value, to avoid compiler optimizations. */
27074 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
27075 + !m + !n + !o + !p + !q + !pq);
27081 if ac_fn_c_try_compile "$LINENO"; then :
27082 ac_cv_header_stdbool_h=yes
27084 ac_cv_header_stdbool_h=no
27086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
27089 $as_echo "$ac_cv_header_stdbool_h" >&6; }
27090 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
27091 if test "x$ac_cv_type__Bool" = xyes; then :
27093 cat >>confdefs.h <<_ACEOF
27094 #define HAVE__BOOL 1
27106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
27107 $as_echo_n "checking for wchar_t... " >&6; }
27108 if ${gt_cv_c_wchar_t+:} false; then :
27109 $as_echo_n "(cached) " >&6
27111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27112 /* end confdefs.h. */
27113 #include <stddef.h>
27114 wchar_t foo = (wchar_t)'\0';
27123 if ac_fn_c_try_compile "$LINENO"; then :
27124 gt_cv_c_wchar_t=yes
27128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
27131 $as_echo "$gt_cv_c_wchar_t" >&6; }
27132 if test $gt_cv_c_wchar_t = yes; then
27134 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
27140 $as_echo_n "checking for unsigned long long int... " >&6; }
27141 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
27142 $as_echo_n "(cached) " >&6
27144 ac_cv_type_unsigned_long_long_int=yes
27145 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
27146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27147 /* end confdefs.h. */
27149 /* For now, do not test the preprocessor; as of 2007 there are too many
27150 implementations with broken preprocessors. Perhaps this can
27151 be revisited in 2012. In the meantime, code should not expect
27152 #if to work with literals wider than 32 bits. */
27153 /* Test literals. */
27154 long long int ll = 9223372036854775807ll;
27155 long long int nll = -9223372036854775807LL;
27156 unsigned long long int ull = 18446744073709551615ULL;
27157 /* Test constant expressions. */
27158 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
27160 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
27166 /* Test availability of runtime routines for shift and division. */
27167 long long int llmax = 9223372036854775807ll;
27168 unsigned long long int ullmax = 18446744073709551615ull;
27169 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
27170 | (llmax / ll) | (llmax % ll)
27171 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
27172 | (ullmax / ull) | (ullmax % ull));
27178 if ac_fn_c_try_link "$LINENO"; then :
27181 ac_cv_type_unsigned_long_long_int=no
27183 rm -f core conftest.err conftest.$ac_objext \
27184 conftest$ac_exeext conftest.$ac_ext
27187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
27188 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
27189 if test $ac_cv_type_unsigned_long_long_int = yes; then
27191 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
27198 $as_echo_n "checking for long long int... " >&6; }
27199 if ${ac_cv_type_long_long_int+:} false; then :
27200 $as_echo_n "(cached) " >&6
27202 ac_cv_type_long_long_int=yes
27203 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
27204 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
27205 if test $ac_cv_type_long_long_int = yes; then
27206 if test "$cross_compiling" = yes; then :
27209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27210 /* end confdefs.h. */
27211 #include <limits.h>
27214 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
27215 # define LLONG_MAX (HALF - 1 + HALF)
27220 long long int n = 1;
27224 long long int m = n << i;
27227 if (LLONG_MAX / 2 < m)
27235 if ac_fn_c_try_run "$LINENO"; then :
27238 ac_cv_type_long_long_int=no
27240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27241 conftest.$ac_objext conftest.beam conftest.$ac_ext
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
27248 $as_echo "$ac_cv_type_long_long_int" >&6; }
27249 if test $ac_cv_type_long_long_int = yes; then
27251 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
27268 if test $ac_cv_type_long_long_int = yes; then
27269 HAVE_LONG_LONG_INT=1
27271 HAVE_LONG_LONG_INT=0
27275 if test $ac_cv_type_unsigned_long_long_int = yes; then
27276 HAVE_UNSIGNED_LONG_LONG_INT=1
27278 HAVE_UNSIGNED_LONG_LONG_INT=0
27289 if test $ac_cv_header_wchar_h = yes; then
27296 if test $ac_cv_header_inttypes_h = yes; then
27303 if test $ac_cv_header_sys_types_h = yes; then
27325 if test $gl_cv_have_include_next = yes; then
27326 gl_cv_next_stdint_h='<'stdint.h'>'
27328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
27329 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
27330 if ${gl_cv_next_stdint_h+:} false; then :
27331 $as_echo_n "(cached) " >&6
27334 if test $ac_cv_header_stdint_h = yes; then
27337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27338 /* end confdefs.h. */
27339 #include <stdint.h>
27343 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27344 *) gl_absname_cpp="$ac_cpp" ;;
27349 gl_dirsep_regex='[/\\]'
27352 gl_dirsep_regex='\/'
27355 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27357 gl_header_literal_regex=`echo 'stdint.h' \
27358 | sed -e "$gl_make_literal_regex_sed"`
27359 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27360 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27365 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27366 sed -n "$gl_absolute_header_sed"`'"'
27368 gl_cv_next_stdint_h='<'stdint.h'>'
27373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
27374 $as_echo "$gl_cv_next_stdint_h" >&6; }
27376 NEXT_STDINT_H=$gl_cv_next_stdint_h
27378 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27379 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27380 gl_next_as_first_directive='<'stdint.h'>'
27382 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27383 gl_next_as_first_directive=$gl_cv_next_stdint_h
27385 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
27390 if test $ac_cv_header_stdint_h = yes; then
27397 if test $ac_cv_header_stdint_h = yes; then
27398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
27399 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
27400 if ${gl_cv_header_working_stdint_h+:} false; then :
27401 $as_echo_n "(cached) " >&6
27403 gl_cv_header_working_stdint_h=no
27404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27405 /* end confdefs.h. */
27408 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
27409 #include <stdint.h>
27410 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
27411 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
27412 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
27416 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27417 included before <wchar.h>. */
27418 #include <stddef.h>
27419 #include <signal.h>
27421 # include <stdio.h>
27423 # include <wchar.h>
27428 int8_t a1 = INT8_MAX;
27429 int8_t a1min = INT8_MIN;
27432 int16_t a2 = INT16_MAX;
27433 int16_t a2min = INT16_MIN;
27436 int32_t a3 = INT32_MAX;
27437 int32_t a3min = INT32_MIN;
27440 int64_t a4 = INT64_MAX;
27441 int64_t a4min = INT64_MIN;
27444 uint8_t b1 = UINT8_MAX;
27446 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
27449 uint16_t b2 = UINT16_MAX;
27452 uint32_t b3 = UINT32_MAX;
27455 uint64_t b4 = UINT64_MAX;
27457 int_least8_t c1 = INT8_C (0x7f);
27458 int_least8_t c1max = INT_LEAST8_MAX;
27459 int_least8_t c1min = INT_LEAST8_MIN;
27460 int_least16_t c2 = INT16_C (0x7fff);
27461 int_least16_t c2max = INT_LEAST16_MAX;
27462 int_least16_t c2min = INT_LEAST16_MIN;
27463 int_least32_t c3 = INT32_C (0x7fffffff);
27464 int_least32_t c3max = INT_LEAST32_MAX;
27465 int_least32_t c3min = INT_LEAST32_MIN;
27466 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
27467 int_least64_t c4max = INT_LEAST64_MAX;
27468 int_least64_t c4min = INT_LEAST64_MIN;
27469 uint_least8_t d1 = UINT8_C (0xff);
27470 uint_least8_t d1max = UINT_LEAST8_MAX;
27471 uint_least16_t d2 = UINT16_C (0xffff);
27472 uint_least16_t d2max = UINT_LEAST16_MAX;
27473 uint_least32_t d3 = UINT32_C (0xffffffff);
27474 uint_least32_t d3max = UINT_LEAST32_MAX;
27475 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
27476 uint_least64_t d4max = UINT_LEAST64_MAX;
27477 int_fast8_t e1 = INT_FAST8_MAX;
27478 int_fast8_t e1min = INT_FAST8_MIN;
27479 int_fast16_t e2 = INT_FAST16_MAX;
27480 int_fast16_t e2min = INT_FAST16_MIN;
27481 int_fast32_t e3 = INT_FAST32_MAX;
27482 int_fast32_t e3min = INT_FAST32_MIN;
27483 int_fast64_t e4 = INT_FAST64_MAX;
27484 int_fast64_t e4min = INT_FAST64_MIN;
27485 uint_fast8_t f1 = UINT_FAST8_MAX;
27486 uint_fast16_t f2 = UINT_FAST16_MAX;
27487 uint_fast32_t f3 = UINT_FAST32_MAX;
27488 uint_fast64_t f4 = UINT_FAST64_MAX;
27490 intptr_t g = INTPTR_MAX;
27491 intptr_t gmin = INTPTR_MIN;
27494 uintptr_t h = UINTPTR_MAX;
27496 intmax_t i = INTMAX_MAX;
27497 uintmax_t j = UINTMAX_MAX;
27499 #include <limits.h> /* for CHAR_BIT */
27500 #define TYPE_MINIMUM(t) \
27501 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
27502 #define TYPE_MAXIMUM(t) \
27503 ((t) ((t) 0 < (t) -1 \
27505 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
27508 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
27509 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
27511 /* Detect bug in FreeBSD 6.0 / ia64. */
27512 int check_SIG_ATOMIC:
27513 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
27514 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
27516 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
27518 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
27519 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
27521 /* Detect bug in mingw. */
27523 WINT_MIN == TYPE_MINIMUM (wint_t)
27524 && WINT_MAX == TYPE_MAXIMUM (wint_t)
27527 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
27529 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
27530 int check_UINT16_C:
27531 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
27533 /* Detect bugs in OpenBSD 3.9 stdint.h. */
27535 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
27538 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
27541 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
27544 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
27546 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
27547 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
27548 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
27549 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
27550 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
27551 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
27552 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
27553 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
27554 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
27555 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
27556 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
27567 if ac_fn_c_try_compile "$LINENO"; then :
27568 if test "$cross_compiling" = yes; then :
27569 gl_cv_header_working_stdint_h=yes
27572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27573 /* end confdefs.h. */
27576 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
27577 #include <stdint.h>
27580 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27581 included before <wchar.h>. */
27582 #include <stddef.h>
27583 #include <signal.h>
27585 # include <stdio.h>
27587 # include <wchar.h>
27592 #include <string.h>
27593 #define MVAL(macro) MVAL1(macro)
27594 #define MVAL1(expression) #expression
27595 static const char *macro_values[] =
27629 for (mv = macro_values; *mv != NULL; mv++)
27631 const char *value = *mv;
27632 /* Test whether it looks like a cast expression. */
27633 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
27634 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
27635 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
27636 || strncmp (value, "((int)"/*)*/, 6) == 0
27637 || strncmp (value, "((signed short)"/*)*/, 15) == 0
27638 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
27639 return mv - macro_values + 1;
27647 if ac_fn_c_try_run "$LINENO"; then :
27648 gl_cv_header_working_stdint_h=yes
27650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27651 conftest.$ac_objext conftest.beam conftest.$ac_ext
27656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
27660 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
27662 if test "$gl_cv_header_working_stdint_h" = yes; then
27665 for ac_header in sys/inttypes.h sys/bitypes.h
27667 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27668 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27669 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27670 cat >>confdefs.h <<_ACEOF
27671 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27678 if test $ac_cv_header_sys_inttypes_h = yes; then
27679 HAVE_SYS_INTTYPES_H=1
27681 HAVE_SYS_INTTYPES_H=0
27684 if test $ac_cv_header_sys_bitypes_h = yes; then
27685 HAVE_SYS_BITYPES_H=1
27687 HAVE_SYS_BITYPES_H=0
27693 if test $APPLE_UNIVERSAL_BUILD = 0; then
27696 for gltype in ptrdiff_t size_t ; do
27697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
27698 $as_echo_n "checking for bit size of $gltype... " >&6; }
27699 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
27700 $as_echo_n "(cached) " >&6
27702 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
27703 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27704 included before <wchar.h>. */
27705 #include <stddef.h>
27706 #include <signal.h>
27708 # include <stdio.h>
27710 # include <wchar.h>
27713 #include <limits.h>"; then :
27719 eval gl_cv_bitsizeof_${gltype}=\$result
27722 eval ac_res=\$gl_cv_bitsizeof_${gltype}
27723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27724 $as_echo "$ac_res" >&6; }
27725 eval result=\$gl_cv_bitsizeof_${gltype}
27726 if test $result = unknown; then
27729 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
27730 cat >>confdefs.h <<_ACEOF
27731 #define BITSIZEOF_${GLTYPE} $result
27734 eval BITSIZEOF_${GLTYPE}=\$result
27741 for gltype in sig_atomic_t wchar_t wint_t ; do
27742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
27743 $as_echo_n "checking for bit size of $gltype... " >&6; }
27744 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
27745 $as_echo_n "(cached) " >&6
27747 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
27748 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27749 included before <wchar.h>. */
27750 #include <stddef.h>
27751 #include <signal.h>
27753 # include <stdio.h>
27755 # include <wchar.h>
27758 #include <limits.h>"; then :
27764 eval gl_cv_bitsizeof_${gltype}=\$result
27767 eval ac_res=\$gl_cv_bitsizeof_${gltype}
27768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27769 $as_echo "$ac_res" >&6; }
27770 eval result=\$gl_cv_bitsizeof_${gltype}
27771 if test $result = unknown; then
27774 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
27775 cat >>confdefs.h <<_ACEOF
27776 #define BITSIZEOF_${GLTYPE} $result
27779 eval BITSIZEOF_${GLTYPE}=\$result
27785 for gltype in sig_atomic_t wchar_t wint_t ; do
27786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
27787 $as_echo_n "checking whether $gltype is signed... " >&6; }
27788 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
27789 $as_echo_n "(cached) " >&6
27791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27792 /* end confdefs.h. */
27794 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27795 included before <wchar.h>. */
27796 #include <stddef.h>
27797 #include <signal.h>
27799 # include <stdio.h>
27801 # include <wchar.h>
27804 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
27813 if ac_fn_c_try_compile "$LINENO"; then :
27818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27819 eval gl_cv_type_${gltype}_signed=\$result
27822 eval ac_res=\$gl_cv_type_${gltype}_signed
27823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27824 $as_echo "$ac_res" >&6; }
27825 eval result=\$gl_cv_type_${gltype}_signed
27826 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
27827 if test "$result" = yes; then
27828 cat >>confdefs.h <<_ACEOF
27829 #define HAVE_SIGNED_${GLTYPE} 1
27832 eval HAVE_SIGNED_${GLTYPE}=1
27834 eval HAVE_SIGNED_${GLTYPE}=0
27839 gl_cv_type_ptrdiff_t_signed=yes
27840 gl_cv_type_size_t_signed=no
27841 if test $APPLE_UNIVERSAL_BUILD = 0; then
27844 for gltype in ptrdiff_t size_t ; do
27845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
27846 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
27847 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
27848 $as_echo_n "(cached) " >&6
27850 eval gl_cv_type_${gltype}_suffix=no
27851 eval result=\$gl_cv_type_${gltype}_signed
27852 if test "$result" = yes; then
27857 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
27859 '') gltype1='int';;
27860 l) gltype1='long int';;
27861 ll) gltype1='long long int';;
27862 i64) gltype1='__int64';;
27863 u) gltype1='unsigned int';;
27864 ul) gltype1='unsigned long int';;
27865 ull) gltype1='unsigned long long int';;
27866 ui64)gltype1='unsigned __int64';;
27868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27869 /* end confdefs.h. */
27871 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27872 included before <wchar.h>. */
27873 #include <stddef.h>
27874 #include <signal.h>
27876 # include <stdio.h>
27878 # include <wchar.h>
27881 extern $gltype foo;
27882 extern $gltype1 foo;
27891 if ac_fn_c_try_compile "$LINENO"; then :
27892 eval gl_cv_type_${gltype}_suffix=\$glsuf
27894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27895 eval result=\$gl_cv_type_${gltype}_suffix
27896 test "$result" != no && break
27899 eval ac_res=\$gl_cv_type_${gltype}_suffix
27900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27901 $as_echo "$ac_res" >&6; }
27902 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
27903 eval result=\$gl_cv_type_${gltype}_suffix
27904 test "$result" = no && result=
27905 eval ${GLTYPE}_SUFFIX=\$result
27906 cat >>confdefs.h <<_ACEOF
27907 #define ${GLTYPE}_SUFFIX $result
27916 for gltype in sig_atomic_t wchar_t wint_t ; do
27917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
27918 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
27919 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
27920 $as_echo_n "(cached) " >&6
27922 eval gl_cv_type_${gltype}_suffix=no
27923 eval result=\$gl_cv_type_${gltype}_signed
27924 if test "$result" = yes; then
27929 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
27931 '') gltype1='int';;
27932 l) gltype1='long int';;
27933 ll) gltype1='long long int';;
27934 i64) gltype1='__int64';;
27935 u) gltype1='unsigned int';;
27936 ul) gltype1='unsigned long int';;
27937 ull) gltype1='unsigned long long int';;
27938 ui64)gltype1='unsigned __int64';;
27940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27941 /* end confdefs.h. */
27943 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27944 included before <wchar.h>. */
27945 #include <stddef.h>
27946 #include <signal.h>
27948 # include <stdio.h>
27950 # include <wchar.h>
27953 extern $gltype foo;
27954 extern $gltype1 foo;
27963 if ac_fn_c_try_compile "$LINENO"; then :
27964 eval gl_cv_type_${gltype}_suffix=\$glsuf
27966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27967 eval result=\$gl_cv_type_${gltype}_suffix
27968 test "$result" != no && break
27971 eval ac_res=\$gl_cv_type_${gltype}_suffix
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27973 $as_echo "$ac_res" >&6; }
27974 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
27975 eval result=\$gl_cv_type_${gltype}_suffix
27976 test "$result" = no && result=
27977 eval ${GLTYPE}_SUFFIX=\$result
27978 cat >>confdefs.h <<_ACEOF
27979 #define ${GLTYPE}_SUFFIX $result
27986 if test $BITSIZEOF_WINT_T -lt 32; then
27987 BITSIZEOF_WINT_T=32
27993 if test -n "$STDINT_H"; then
27994 GL_GENERATE_STDINT_H_TRUE=
27995 GL_GENERATE_STDINT_H_FALSE='#'
27997 GL_GENERATE_STDINT_H_TRUE='#'
27998 GL_GENERATE_STDINT_H_FALSE=
28018 if test $gl_cv_have_include_next = yes; then
28019 gl_cv_next_string_h='<'string.h'>'
28021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
28022 $as_echo_n "checking absolute name of <string.h>... " >&6; }
28023 if ${gl_cv_next_string_h+:} false; then :
28024 $as_echo_n "(cached) " >&6
28027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28028 /* end confdefs.h. */
28029 #include <string.h>
28033 aix*) gl_absname_cpp="$ac_cpp -C" ;;
28034 *) gl_absname_cpp="$ac_cpp" ;;
28039 gl_dirsep_regex='[/\\]'
28042 gl_dirsep_regex='\/'
28045 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28047 gl_header_literal_regex=`echo 'string.h' \
28048 | sed -e "$gl_make_literal_regex_sed"`
28049 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28050 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28055 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28056 sed -n "$gl_absolute_header_sed"`'"'
28060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
28061 $as_echo "$gl_cv_next_string_h" >&6; }
28063 NEXT_STRING_H=$gl_cv_next_string_h
28065 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28066 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28067 gl_next_as_first_directive='<'string.h'>'
28069 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28070 gl_next_as_first_directive=$gl_cv_next_string_h
28072 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
28079 for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do
28080 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
28081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
28082 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
28083 if eval \${$as_gl_Symbol+:} false; then :
28084 $as_echo_n "(cached) " >&6
28086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28087 /* end confdefs.h. */
28088 #include <string.h>
28099 if ac_fn_c_try_compile "$LINENO"; then :
28100 eval "$as_gl_Symbol=yes"
28102 eval "$as_gl_Symbol=no"
28104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28106 eval ac_res=\$$as_gl_Symbol
28107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28108 $as_echo "$ac_res" >&6; }
28109 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
28110 cat >>confdefs.h <<_ACEOF
28111 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
28114 eval ac_cv_have_decl_$gl_func=yes
28119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
28120 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
28121 if ${ac_cv_header_stat_broken+:} false; then :
28122 $as_echo_n "(cached) " >&6
28124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28125 /* end confdefs.h. */
28126 #include <sys/types.h>
28127 #include <sys/stat.h>
28129 #if defined S_ISBLK && defined S_IFDIR
28130 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
28133 #if defined S_ISBLK && defined S_IFCHR
28134 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
28137 #if defined S_ISLNK && defined S_IFREG
28138 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
28141 #if defined S_ISSOCK && defined S_IFREG
28142 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
28146 if ac_fn_c_try_compile "$LINENO"; then :
28147 ac_cv_header_stat_broken=no
28149 ac_cv_header_stat_broken=yes
28151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
28154 $as_echo "$ac_cv_header_stat_broken" >&6; }
28155 if test $ac_cv_header_stat_broken = yes; then
28157 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
28166 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
28167 if test "x$ac_cv_type_mode_t" = xyes; then :
28171 cat >>confdefs.h <<_ACEOF
28188 GNULIB_NANOSLEEP=0;
28192 HAVE_DECL_LOCALTIME_R=1;
28196 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
28197 REPLACE_MKTIME=GNULIB_PORTCHECK;
28198 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
28199 REPLACE_TIMEGM=GNULIB_PORTCHECK;
28209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
28210 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
28211 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
28212 $as_echo_n "(cached) " >&6
28214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28215 /* end confdefs.h. */
28221 static struct timespec x; x.tv_sec = x.tv_nsec;
28226 if ac_fn_c_try_compile "$LINENO"; then :
28227 gl_cv_sys_struct_timespec_in_time_h=yes
28229 gl_cv_sys_struct_timespec_in_time_h=no
28231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
28234 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
28236 TIME_H_DEFINES_STRUCT_TIMESPEC=0
28237 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
28238 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
28239 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
28240 TIME_H_DEFINES_STRUCT_TIMESPEC=1
28242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
28243 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
28244 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
28245 $as_echo_n "(cached) " >&6
28247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28248 /* end confdefs.h. */
28249 #include <sys/time.h>
28254 static struct timespec x; x.tv_sec = x.tv_nsec;
28259 if ac_fn_c_try_compile "$LINENO"; then :
28260 gl_cv_sys_struct_timespec_in_sys_time_h=yes
28262 gl_cv_sys_struct_timespec_in_sys_time_h=no
28264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
28267 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
28268 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
28269 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
28271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
28272 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
28273 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
28274 $as_echo_n "(cached) " >&6
28276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28277 /* end confdefs.h. */
28278 #include <pthread.h>
28283 static struct timespec x; x.tv_sec = x.tv_nsec;
28288 if ac_fn_c_try_compile "$LINENO"; then :
28289 gl_cv_sys_struct_timespec_in_pthread_h=yes
28291 gl_cv_sys_struct_timespec_in_pthread_h=no
28293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
28296 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
28297 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
28298 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
28317 if test $gl_cv_have_include_next = yes; then
28318 gl_cv_next_time_h='<'time.h'>'
28320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
28321 $as_echo_n "checking absolute name of <time.h>... " >&6; }
28322 if ${gl_cv_next_time_h+:} false; then :
28323 $as_echo_n "(cached) " >&6
28326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28327 /* end confdefs.h. */
28332 aix*) gl_absname_cpp="$ac_cpp -C" ;;
28333 *) gl_absname_cpp="$ac_cpp" ;;
28338 gl_dirsep_regex='[/\\]'
28341 gl_dirsep_regex='\/'
28344 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28346 gl_header_literal_regex=`echo 'time.h' \
28347 | sed -e "$gl_make_literal_regex_sed"`
28348 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28349 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28354 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28355 sed -n "$gl_absolute_header_sed"`'"'
28359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
28360 $as_echo "$gl_cv_next_time_h" >&6; }
28362 NEXT_TIME_H=$gl_cv_next_time_h
28364 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28365 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28366 gl_next_as_first_directive='<'time.h'>'
28368 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28369 gl_next_as_first_directive=$gl_cv_next_time_h
28371 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
28384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
28385 $as_echo_n "checking for wint_t... " >&6; }
28386 if ${gt_cv_c_wint_t+:} false; then :
28387 $as_echo_n "(cached) " >&6
28389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28390 /* end confdefs.h. */
28392 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28394 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
28395 before <wchar.h>. */
28396 #include <stddef.h>
28400 wint_t foo = (wchar_t)'\0';
28409 if ac_fn_c_try_compile "$LINENO"; then :
28414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
28417 $as_echo "$gt_cv_c_wint_t" >&6; }
28418 if test $gt_cv_c_wint_t = yes; then
28420 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
28425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
28426 $as_echo_n "checking for inttypes.h... " >&6; }
28427 if ${gl_cv_header_inttypes_h+:} false; then :
28428 $as_echo_n "(cached) " >&6
28430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28431 /* end confdefs.h. */
28433 #include <sys/types.h>
28434 #include <inttypes.h>
28439 uintmax_t i = (uintmax_t) -1; return !i;
28444 if ac_fn_c_try_compile "$LINENO"; then :
28445 gl_cv_header_inttypes_h=yes
28447 gl_cv_header_inttypes_h=no
28449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
28452 $as_echo "$gl_cv_header_inttypes_h" >&6; }
28453 if test $gl_cv_header_inttypes_h = yes; then
28455 cat >>confdefs.h <<_ACEOF
28456 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
28462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
28463 $as_echo_n "checking for stdint.h... " >&6; }
28464 if ${gl_cv_header_stdint_h+:} false; then :
28465 $as_echo_n "(cached) " >&6
28467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28468 /* end confdefs.h. */
28469 #include <sys/types.h>
28470 #include <stdint.h>
28474 uintmax_t i = (uintmax_t) -1; return !i;
28479 if ac_fn_c_try_compile "$LINENO"; then :
28480 gl_cv_header_stdint_h=yes
28482 gl_cv_header_stdint_h=no
28484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
28487 $as_echo "$gl_cv_header_stdint_h" >&6; }
28488 if test $gl_cv_header_stdint_h = yes; then
28490 cat >>confdefs.h <<_ACEOF
28491 #define HAVE_STDINT_H_WITH_UINTMAX 1
28499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
28500 $as_echo_n "checking for intmax_t... " >&6; }
28501 if ${gt_cv_c_intmax_t+:} false; then :
28502 $as_echo_n "(cached) " >&6
28504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28505 /* end confdefs.h. */
28507 #include <stddef.h>
28508 #include <stdlib.h>
28509 #if HAVE_STDINT_H_WITH_UINTMAX
28510 #include <stdint.h>
28512 #if HAVE_INTTYPES_H_WITH_UINTMAX
28513 #include <inttypes.h>
28519 intmax_t x = -1; return !x;
28524 if ac_fn_c_try_compile "$LINENO"; then :
28525 gt_cv_c_intmax_t=yes
28527 gt_cv_c_intmax_t=no
28529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
28532 $as_echo "$gt_cv_c_intmax_t" >&6; }
28533 if test $gt_cv_c_intmax_t = yes; then
28535 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
28539 test $ac_cv_type_long_long_int = yes \
28540 && ac_type='long long' \
28543 cat >>confdefs.h <<_ACEOF
28544 #define intmax_t $ac_type
28550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
28551 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
28552 if ${gl_cv_cc_double_expbit0+:} false; then :
28553 $as_echo_n "(cached) " >&6
28556 if test "$cross_compiling" = yes; then :
28558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28559 /* end confdefs.h. */
28561 #if defined arm || defined __arm || defined __arm__
28566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28567 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
28568 gl_cv_cc_double_expbit0="unknown"
28572 if ${ac_cv_c_bigendian+:} false; then :
28573 $as_echo_n "(cached) " >&6
28575 ac_cv_c_bigendian=unknown
28576 # See if we're dealing with a universal compiler.
28577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28578 /* end confdefs.h. */
28579 #ifndef __APPLE_CC__
28580 not a universal capable compiler
28585 if ac_fn_c_try_compile "$LINENO"; then :
28587 # Check for potential -arch flags. It is not universal unless
28588 # there are at least two -arch flags with different values.
28591 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
28592 if test -n "$ac_prev"; then
28594 i?86 | x86_64 | ppc | ppc64)
28595 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
28598 ac_cv_c_bigendian=universal
28604 elif test "x$ac_word" = "x-arch"; then
28609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28610 if test $ac_cv_c_bigendian = unknown; then
28611 # See if sys/param.h defines the BYTE_ORDER macro.
28612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28613 /* end confdefs.h. */
28614 #include <sys/types.h>
28615 #include <sys/param.h>
28620 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
28621 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
28623 bogus endian macros
28630 if ac_fn_c_try_compile "$LINENO"; then :
28631 # It does; now see whether it defined to BIG_ENDIAN or not.
28632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28633 /* end confdefs.h. */
28634 #include <sys/types.h>
28635 #include <sys/param.h>
28640 #if BYTE_ORDER != BIG_ENDIAN
28648 if ac_fn_c_try_compile "$LINENO"; then :
28649 ac_cv_c_bigendian=yes
28651 ac_cv_c_bigendian=no
28653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28657 if test $ac_cv_c_bigendian = unknown; then
28658 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
28659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28660 /* end confdefs.h. */
28661 #include <limits.h>
28666 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
28667 bogus endian macros
28674 if ac_fn_c_try_compile "$LINENO"; then :
28675 # It does; now see whether it defined to _BIG_ENDIAN or not.
28676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28677 /* end confdefs.h. */
28678 #include <limits.h>
28683 #ifndef _BIG_ENDIAN
28691 if ac_fn_c_try_compile "$LINENO"; then :
28692 ac_cv_c_bigendian=yes
28694 ac_cv_c_bigendian=no
28696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28700 if test $ac_cv_c_bigendian = unknown; then
28701 # Compile a test program.
28702 if test "$cross_compiling" = yes; then :
28703 # Try to guess by grepping values from an object file.
28704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28705 /* end confdefs.h. */
28706 short int ascii_mm[] =
28707 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28708 short int ascii_ii[] =
28709 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28710 int use_ascii (int i) {
28711 return ascii_mm[i] + ascii_ii[i];
28713 short int ebcdic_ii[] =
28714 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28715 short int ebcdic_mm[] =
28716 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28717 int use_ebcdic (int i) {
28718 return ebcdic_mm[i] + ebcdic_ii[i];
28725 return use_ascii (foo) == use_ebcdic (foo);
28730 if ac_fn_c_try_compile "$LINENO"; then :
28731 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
28732 ac_cv_c_bigendian=yes
28734 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28735 if test "$ac_cv_c_bigendian" = unknown; then
28736 ac_cv_c_bigendian=no
28738 # finding both strings is unlikely to happen, but who knows?
28739 ac_cv_c_bigendian=unknown
28743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28746 /* end confdefs.h. */
28747 $ac_includes_default
28752 /* Are we little or big endian? From Harbison&Steele. */
28756 char c[sizeof (long int)];
28759 return u.c[sizeof (long int) - 1] == 1;
28765 if ac_fn_c_try_run "$LINENO"; then :
28766 ac_cv_c_bigendian=no
28768 ac_cv_c_bigendian=yes
28770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28771 conftest.$ac_objext conftest.beam conftest.$ac_ext
28777 case $ac_cv_c_bigendian in #(
28779 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
28781 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
28784 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
28788 gl_cv_cc_double_expbit0="unknown" ;;
28797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28798 /* end confdefs.h. */
28801 #include <stddef.h>
28803 #include <string.h>
28805 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
28806 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
28807 static unsigned int ored_words[NWORDS];
28808 static unsigned int anded_words[NWORDS];
28809 static void add_to_ored_words (double x)
28813 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
28814 memset (&m, 0, sizeof (memory_double));
28816 for (i = 0; i < NWORDS; i++)
28818 ored_words[i] |= m.word[i];
28819 anded_words[i] &= m.word[i];
28825 FILE *fp = fopen ("conftest.out", "w");
28828 for (j = 0; j < NWORDS; j++)
28829 anded_words[j] = ~ (unsigned int) 0;
28830 add_to_ored_words (0.25);
28831 add_to_ored_words (0.5);
28832 add_to_ored_words (1.0);
28833 add_to_ored_words (2.0);
28834 add_to_ored_words (4.0);
28835 /* Remove bits that are common (e.g. if representation of the first mantissa
28836 bit is explicit). */
28837 for (j = 0; j < NWORDS; j++)
28838 ored_words[j] &= ~anded_words[j];
28839 /* Now find the nonzero word. */
28840 for (j = 0; j < NWORDS; j++)
28841 if (ored_words[j] != 0)
28846 for (i = j + 1; i < NWORDS; i++)
28847 if (ored_words[i] != 0)
28849 fprintf (fp, "unknown");
28850 return (fclose (fp) != 0);
28853 if ((ored_words[j] >> i) & 1)
28855 fprintf (fp, "word %d bit %d", (int) j, (int) i);
28856 return (fclose (fp) != 0);
28859 fprintf (fp, "unknown");
28860 return (fclose (fp) != 0);
28864 if ac_fn_c_try_run "$LINENO"; then :
28865 gl_cv_cc_double_expbit0=`cat conftest.out`
28867 gl_cv_cc_double_expbit0="unknown"
28869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28870 conftest.$ac_objext conftest.beam conftest.$ac_ext
28876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
28877 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
28878 case "$gl_cv_cc_double_expbit0" in
28880 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
28881 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
28883 cat >>confdefs.h <<_ACEOF
28884 #define DBL_EXPBIT0_WORD $word
28888 cat >>confdefs.h <<_ACEOF
28889 #define DBL_EXPBIT0_BIT $bit
28901 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
28903 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28904 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28905 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28906 cat >>confdefs.h <<_ACEOF
28907 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28913 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
28915 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
28921 cat >>confdefs.h <<_ACEOF
28922 #define HAVE_DECL__SNPRINTF $ac_have_decl
28927 case "$gl_cv_func_snprintf_retval_c99" in
28930 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
28941 GNULIB_MBSRTOWCS=0;
28942 GNULIB_MBSNRTOWCS=0;
28944 GNULIB_WCSRTOMBS=0;
28945 GNULIB_WCSNRTOMBS=0;
28962 GNULIB_WCSCASECMP=0;
28963 GNULIB_WCSNCASECMP=0;
29000 HAVE_WCSNCASECMP=1;
29013 HAVE_DECL_WCWIDTH=1;
29014 REPLACE_MBSTATE_T=0;
29020 REPLACE_MBSRTOWCS=0;
29021 REPLACE_MBSNRTOWCS=0;
29023 REPLACE_WCSRTOMBS=0;
29024 REPLACE_WCSNRTOMBS=0;
29026 REPLACE_WCSWIDTH=0;
29029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
29030 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
29031 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
29032 $as_echo_n "(cached) " >&6
29034 gl_cv_header_wchar_h_correct_inline=yes
29035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29036 /* end confdefs.h. */
29038 #define wcstod renamed_wcstod
29039 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29041 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29042 included before <wchar.h>. */
29043 #include <stddef.h>
29047 extern int zero (void);
29048 int main () { return zero(); }
29051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
29052 (eval $ac_compile) 2>&5
29054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29055 test $ac_status = 0; }; then
29056 mv conftest.$ac_objext conftest1.$ac_objext
29057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29058 /* end confdefs.h. */
29060 #define wcstod renamed_wcstod
29061 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29063 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29064 included before <wchar.h>. */
29065 #include <stddef.h>
29069 int zero (void) { return 0; }
29072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
29073 (eval $ac_compile) 2>&5
29075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29076 test $ac_status = 0; }; then
29077 mv conftest.$ac_objext conftest2.$ac_objext
29078 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
29081 gl_cv_header_wchar_h_correct_inline=no
29085 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
29088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
29089 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
29090 if test $gl_cv_header_wchar_h_correct_inline = no; then
29091 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
29092 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
29093 C99 mode. You have four options:
29094 - Add the flag -fgnu89-inline to CC and reconfigure, or
29095 - Fix your include files, using parts of
29096 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
29097 - Use a gcc version older than 4.3, or
29098 - Don't use the flags -std=c99 or -std=gnu99.
29099 Configuration aborted." "$LINENO" 5
29104 GNULIB_NONBLOCKING=0;
29135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
29136 $as_echo_n "checking for working fcntl.h... " >&6; }
29137 if ${gl_cv_header_working_fcntl_h+:} false; then :
29138 $as_echo_n "(cached) " >&6
29140 if test "$cross_compiling" = yes; then :
29141 gl_cv_header_working_fcntl_h=cross-compiling
29143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29144 /* end confdefs.h. */
29145 #include <sys/types.h>
29146 #include <sys/stat.h>
29148 # include <unistd.h>
29149 #else /* on Windows with MSVC */
29151 # include <stdlib.h>
29152 # defined sleep(n) _sleep ((n) * 1000)
29156 #define O_NOATIME 0
29159 #define O_NOFOLLOW 0
29161 static int const constants[] =
29163 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
29164 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
29171 int result = !constants;
29174 static char const sym[] = "conftest.sym";
29175 if (symlink (".", sym) != 0)
29179 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
29190 static char const file[] = "confdefs.h";
29191 int fd = open (file, O_RDONLY | O_NOATIME);
29197 if (fstat (fd, &st0) != 0)
29203 if (read (fd, &c, 1) != 1)
29207 if (close (fd) != 0)
29212 if (stat (file, &st1) != 0)
29215 if (st0.st_atime != st1.st_atime)
29227 if ac_fn_c_try_run "$LINENO"; then :
29228 gl_cv_header_working_fcntl_h=yes
29231 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
29232 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
29233 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
29234 *) gl_cv_header_working_fcntl_h='no';;
29237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29238 conftest.$ac_objext conftest.beam conftest.$ac_ext
29242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
29243 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
29245 case $gl_cv_header_working_fcntl_h in #(
29246 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
29250 cat >>confdefs.h <<_ACEOF
29251 #define HAVE_WORKING_O_NOATIME $ac_val
29255 case $gl_cv_header_working_fcntl_h in #(
29256 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
29260 cat >>confdefs.h <<_ACEOF
29261 #define HAVE_WORKING_O_NOFOLLOW $ac_val
29268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ungetc works on arbitrary bytes" >&5
29269 $as_echo_n "checking whether ungetc works on arbitrary bytes... " >&6; }
29270 if ${gl_cv_func_ungetc_works+:} false; then :
29271 $as_echo_n "(cached) " >&6
29273 if test "$cross_compiling" = yes; then :
29274 gl_cv_func_ungetc_works='guessing no'
29276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29277 /* end confdefs.h. */
29285 if (!(f = fopen ("conftest.tmp", "w+"))) return 1;
29286 if (fputs ("abc", f) < 0) return 2;
29288 if (fgetc (f) != 'a') return 3;
29289 if (fgetc (f) != 'b') return 4;
29290 if (ungetc ('d', f) != 'd') return 5;
29291 if (ftell (f) != 1) return 6;
29292 if (fgetc (f) != 'd') return 7;
29293 if (ftell (f) != 2) return 8;
29294 if (fseek (f, 0, SEEK_CUR) != 0) return 9;
29295 if (ftell (f) != 2) return 10;
29296 if (fgetc (f) != 'c') return 11;
29297 fclose (f); remove ("conftest.tmp");
29302 if ac_fn_c_try_run "$LINENO"; then :
29303 gl_cv_func_ungetc_works=yes
29305 gl_cv_func_ungetc_works=no
29307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29308 conftest.$ac_objext conftest.beam conftest.$ac_ext
29313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ungetc_works" >&5
29314 $as_echo "$gl_cv_func_ungetc_works" >&6; }
29315 if test "$gl_cv_func_ungetc_works" != yes; then
29317 $as_echo "#define FUNC_UNGETC_BROKEN 1" >>confdefs.h
29334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
29335 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
29336 if ${gl_cv_func_getcwd_null+:} false; then :
29337 $as_echo_n "(cached) " >&6
29339 if test "$cross_compiling" = yes; then :
29342 # Guess yes on glibc systems.
29343 *-gnu*) gl_cv_func_getcwd_null="guessing yes";;
29344 # Guess yes on Cygwin.
29345 cygwin*) gl_cv_func_getcwd_null="guessing yes";;
29346 # If we don't know, assume the worst.
29347 *) gl_cv_func_getcwd_null="guessing no";;
29351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29352 /* end confdefs.h. */
29355 # include <unistd.h>
29356 # else /* on Windows with MSVC */
29357 # include <direct.h>
29367 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
29368 /* mingw cwd does not start with '/', but getcwd does allocate.
29369 However, mingw fails to honor non-zero size. */
29371 if (chdir ("/") != 0)
29375 char *f = getcwd (NULL, 0);
29390 if ac_fn_c_try_run "$LINENO"; then :
29391 gl_cv_func_getcwd_null=yes
29393 gl_cv_func_getcwd_null=no
29395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29396 conftest.$ac_objext conftest.beam conftest.$ac_ext
29400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
29401 $as_echo "$gl_cv_func_getcwd_null" >&6; }
29404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
29405 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
29406 if ${gl_cv_func_getcwd_posix_signature+:} false; then :
29407 $as_echo_n "(cached) " >&6
29409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29410 /* end confdefs.h. */
29411 #include <unistd.h>
29419 char *getcwd (char *, size_t);
29426 if ac_fn_c_try_compile "$LINENO"; then :
29427 gl_cv_func_getcwd_posix_signature=yes
29429 gl_cv_func_getcwd_posix_signature=no
29431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
29435 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
29445 GNULIB_STRTOIMAX=0;
29446 GNULIB_STRTOUMAX=0;
29447 HAVE_DECL_IMAXABS=1;
29448 HAVE_DECL_IMAXDIV=1;
29449 HAVE_DECL_STRTOIMAX=1;
29450 HAVE_DECL_STRTOUMAX=1;
29451 REPLACE_STRTOIMAX=0;
29452 INT32_MAX_LT_INTMAX_MAX=1;
29453 INT64_MAX_EQ_LONG_MAX='defined _LP64';
29454 PRI_MACROS_BROKEN=0;
29455 PRIPTR_PREFIX=__PRIPTR_PREFIX;
29456 UINT32_MAX_LT_UINTMAX_MAX=1;
29457 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
29485 if test $gl_cv_have_include_next = yes; then
29486 gl_cv_next_inttypes_h='<'inttypes.h'>'
29488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
29489 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
29490 if ${gl_cv_next_inttypes_h+:} false; then :
29491 $as_echo_n "(cached) " >&6
29494 if test $ac_cv_header_inttypes_h = yes; then
29497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29498 /* end confdefs.h. */
29499 #include <inttypes.h>
29503 aix*) gl_absname_cpp="$ac_cpp -C" ;;
29504 *) gl_absname_cpp="$ac_cpp" ;;
29509 gl_dirsep_regex='[/\\]'
29512 gl_dirsep_regex='\/'
29515 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29517 gl_header_literal_regex=`echo 'inttypes.h' \
29518 | sed -e "$gl_make_literal_regex_sed"`
29519 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29520 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29525 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29526 sed -n "$gl_absolute_header_sed"`'"'
29528 gl_cv_next_inttypes_h='<'inttypes.h'>'
29533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
29534 $as_echo "$gl_cv_next_inttypes_h" >&6; }
29536 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
29538 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29539 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29540 gl_next_as_first_directive='<'inttypes.h'>'
29542 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29543 gl_next_as_first_directive=$gl_cv_next_inttypes_h
29545 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
29554 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
29555 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
29556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
29557 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
29558 if eval \${$as_gl_Symbol+:} false; then :
29559 $as_echo_n "(cached) " >&6
29561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29562 /* end confdefs.h. */
29563 #include <inttypes.h>
29574 if ac_fn_c_try_compile "$LINENO"; then :
29575 eval "$as_gl_Symbol=yes"
29577 eval "$as_gl_Symbol=no"
29579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29581 eval ac_res=\$$as_gl_Symbol
29582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29583 $as_echo "$ac_res" >&6; }
29584 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
29585 cat >>confdefs.h <<_ACEOF
29586 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
29589 eval ac_cv_have_decl_$gl_func=yes
29595 for ac_header in inttypes.h
29597 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
29598 if test "x$ac_cv_header_inttypes_h" = xyes; then :
29599 cat >>confdefs.h <<_ACEOF
29600 #define HAVE_INTTYPES_H 1
29607 if test $ac_cv_header_inttypes_h = yes; then
29608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
29609 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
29610 if ${gt_cv_inttypes_pri_broken+:} false; then :
29611 $as_echo_n "(cached) " >&6
29614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29615 /* end confdefs.h. */
29617 #include <inttypes.h>
29630 if ac_fn_c_try_compile "$LINENO"; then :
29631 gt_cv_inttypes_pri_broken=no
29633 gt_cv_inttypes_pri_broken=yes
29635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
29639 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
29641 if test "$gt_cv_inttypes_pri_broken" = yes; then
29643 cat >>confdefs.h <<_ACEOF
29644 #define PRI_MACROS_BROKEN 1
29647 PRI_MACROS_BROKEN=1
29649 PRI_MACROS_BROKEN=0
29659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
29660 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
29661 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
29662 $as_echo_n "(cached) " >&6
29664 rm -f conftest.sym conftest.file
29665 echo >conftest.file
29666 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
29667 if test "$cross_compiling" = yes; then :
29668 # When cross-compiling, be pessimistic so we will end up using the
29669 # replacement version of lstat that checks for trailing slashes and
29670 # calls lstat a second time when necessary.
29671 gl_cv_func_lstat_dereferences_slashed_symlink=no
29674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29675 /* end confdefs.h. */
29676 $ac_includes_default
29681 /* Linux will dereference the symlink and fail, as required by
29682 POSIX. That is better in the sense that it means we will not
29683 have to compile and use the lstat wrapper. */
29684 return lstat ("conftest.sym/", &sbuf) == 0;
29690 if ac_fn_c_try_run "$LINENO"; then :
29691 gl_cv_func_lstat_dereferences_slashed_symlink=yes
29693 gl_cv_func_lstat_dereferences_slashed_symlink=no
29695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29696 conftest.$ac_objext conftest.beam conftest.$ac_ext
29700 # If the 'ln -s' command failed, then we probably don't even
29701 # have an lstat function.
29702 gl_cv_func_lstat_dereferences_slashed_symlink=no
29704 rm -f conftest.sym conftest.file
29707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
29708 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
29709 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
29711 cat >>confdefs.h <<_ACEOF
29712 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
29718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
29719 $as_echo_n "checking for promoted mode_t type... " >&6; }
29720 if ${gl_cv_promoted_mode_t+:} false; then :
29721 $as_echo_n "(cached) " >&6
29724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29725 /* end confdefs.h. */
29726 #include <sys/types.h>
29730 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
29735 if ac_fn_c_try_compile "$LINENO"; then :
29736 gl_cv_promoted_mode_t='int'
29738 gl_cv_promoted_mode_t='mode_t'
29740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
29744 $as_echo "$gl_cv_promoted_mode_t" >&6; }
29746 cat >>confdefs.h <<_ACEOF
29747 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
29778 GL_COND_LIBTOOL_TRUE=
29779 GL_COND_LIBTOOL_FALSE='#'
29781 GL_COND_LIBTOOL_TRUE='#'
29782 GL_COND_LIBTOOL_FALSE=
29785 gl_cond_libtool=true
29796 gl_source_base='gl'
29798 if test "$ac_cv_header_winsock2_h" = yes; then
29807 gl_LIBOBJS="$gl_LIBOBJS accept.$ac_objext"
29821 $as_echo "#define GNULIB_TEST_ACCEPT 1" >>confdefs.h
29825 LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
29829 if test $ac_cv_func_alloca_works = no; then
29833 # Define an additional variable used in the Makefile substitution.
29834 if test $ac_cv_working_alloca_h = yes; then
29835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
29836 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
29837 if ${gl_cv_rpl_alloca+:} false; then :
29838 $as_echo_n "(cached) " >&6
29841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29842 /* end confdefs.h. */
29844 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
29849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29850 $EGREP "Need own alloca" >/dev/null 2>&1; then :
29851 gl_cv_rpl_alloca=yes
29853 gl_cv_rpl_alloca=no
29859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
29860 $as_echo "$gl_cv_rpl_alloca" >&6; }
29861 if test $gl_cv_rpl_alloca = yes; then
29863 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
29873 if test -n "$ALLOCA_H"; then
29874 GL_GENERATE_ALLOCA_H_TRUE=
29875 GL_GENERATE_ALLOCA_H_FALSE='#'
29877 GL_GENERATE_ALLOCA_H_TRUE='#'
29878 GL_GENERATE_ALLOCA_H_FALSE=
29892 if test $ac_cv_header_arpa_inet_h = yes; then
29913 if test $gl_cv_have_include_next = yes; then
29914 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
29916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
29917 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
29918 if ${gl_cv_next_arpa_inet_h+:} false; then :
29919 $as_echo_n "(cached) " >&6
29922 if test $ac_cv_header_arpa_inet_h = yes; then
29925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29926 /* end confdefs.h. */
29927 #include <arpa/inet.h>
29931 aix*) gl_absname_cpp="$ac_cpp -C" ;;
29932 *) gl_absname_cpp="$ac_cpp" ;;
29937 gl_dirsep_regex='[/\\]'
29940 gl_dirsep_regex='\/'
29943 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29945 gl_header_literal_regex=`echo 'arpa/inet.h' \
29946 | sed -e "$gl_make_literal_regex_sed"`
29947 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29948 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29953 gl_cv_next_arpa_inet_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29954 sed -n "$gl_absolute_header_sed"`'"'
29956 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
29961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
29962 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
29964 NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
29966 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29967 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29968 gl_next_as_first_directive='<'arpa/inet.h'>'
29970 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29971 gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
29973 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
29982 for gl_func in inet_ntop inet_pton; do
29983 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
29984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
29985 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
29986 if eval \${$as_gl_Symbol+:} false; then :
29987 $as_echo_n "(cached) " >&6
29989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29990 /* end confdefs.h. */
29992 /* On some systems, this header is not self-consistent. */
29993 #if !(defined __GLIBC__ || defined __UCLIBC__)
29994 # include <sys/socket.h>
29997 # include <netdb.h>
29999 #include <arpa/inet.h>
30010 if ac_fn_c_try_compile "$LINENO"; then :
30011 eval "$as_gl_Symbol=yes"
30013 eval "$as_gl_Symbol=no"
30015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30017 eval ac_res=\$$as_gl_Symbol
30018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30019 $as_echo "$ac_res" >&6; }
30020 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
30021 cat >>confdefs.h <<_ACEOF
30022 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30025 eval ac_cv_have_decl_$gl_func=yes
30032 if test "$ac_cv_header_winsock2_h" = yes; then
30041 gl_LIBOBJS="$gl_LIBOBJS bind.$ac_objext"
30055 $as_echo "#define GNULIB_TEST_BIND 1" >>confdefs.h
30062 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
30063 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
30065 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
30066 # programs in the package would end up linked with that potentially-shared
30067 # library, inducing unnecessary run-time overhead.
30070 gl_saved_libs=$LIBS
30071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
30072 $as_echo_n "checking for library containing clock_gettime... " >&6; }
30073 if ${ac_cv_search_clock_gettime+:} false; then :
30074 $as_echo_n "(cached) " >&6
30076 ac_func_search_save_LIBS=$LIBS
30077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30078 /* end confdefs.h. */
30080 /* Override any GCC internal prototype to avoid an error.
30081 Use char because int might match the return type of a GCC
30082 builtin and then its argument prototype would still apply. */
30086 char clock_gettime ();
30090 return clock_gettime ();
30095 for ac_lib in '' rt posix4; do
30096 if test -z "$ac_lib"; then
30097 ac_res="none required"
30100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30102 if ac_fn_c_try_link "$LINENO"; then :
30103 ac_cv_search_clock_gettime=$ac_res
30105 rm -f core conftest.err conftest.$ac_objext \
30107 if ${ac_cv_search_clock_gettime+:} false; then :
30111 if ${ac_cv_search_clock_gettime+:} false; then :
30114 ac_cv_search_clock_gettime=no
30116 rm conftest.$ac_ext
30117 LIBS=$ac_func_search_save_LIBS
30119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
30120 $as_echo "$ac_cv_search_clock_gettime" >&6; }
30121 ac_res=$ac_cv_search_clock_gettime
30122 if test "$ac_res" != no; then :
30123 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30124 test "$ac_cv_search_clock_gettime" = "none required" ||
30125 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
30128 for ac_func in clock_gettime clock_settime
30130 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30131 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30132 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30133 cat >>confdefs.h <<_ACEOF
30134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30140 LIBS=$gl_saved_libs
30145 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
30159 if test $ac_cv_header_sys_socket_h != yes; then
30160 for ac_header in winsock2.h
30162 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
30163 if test "x$ac_cv_header_winsock2_h" = xyes; then :
30164 cat >>confdefs.h <<_ACEOF
30165 #define HAVE_WINSOCK2_H 1
30173 if test "$ac_cv_header_winsock2_h" = yes; then
30175 UNISTD_H_HAVE_WINSOCK2_H=1
30176 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
30182 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
30188 if test $REPLACE_CLOSE = 1; then
30197 gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
30211 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
30216 if test "$ac_cv_header_winsock2_h" = yes; then
30225 gl_LIBOBJS="$gl_LIBOBJS connect.$ac_objext"
30239 $as_echo "#define GNULIB_TEST_CONNECT 1" >>confdefs.h
30245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
30246 $as_echo_n "checking for error_at_line... " >&6; }
30247 if ${ac_cv_lib_error_at_line+:} false; then :
30248 $as_echo_n "(cached) " >&6
30250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30251 /* end confdefs.h. */
30256 error_at_line (0, 0, "", 0, "an error occurred");
30261 if ac_fn_c_try_link "$LINENO"; then :
30262 ac_cv_lib_error_at_line=yes
30264 ac_cv_lib_error_at_line=no
30266 rm -f core conftest.err conftest.$ac_objext \
30267 conftest$ac_exeext conftest.$ac_ext
30269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
30270 $as_echo "$ac_cv_lib_error_at_line" >&6; }
30272 if test $ac_cv_lib_error_at_line = no; then
30281 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
30291 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
30295 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
30301 REPLACE_FLOAT_LDBL=0
30303 aix* | beos* | openbsd* | mirbsd* | irix*)
30307 case "$host_cpu" in
30312 # On x86_64 systems, the C compiler may still be generating
30314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30315 /* end confdefs.h. */
30316 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
30320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30321 $EGREP "yes" >/dev/null 2>&1; then :
30332 case "$host_cpu" in
30340 aix* | freebsd* | linux*)
30341 if test -n "$FLOAT_H"; then
30342 REPLACE_FLOAT_LDBL=1
30348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
30349 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
30350 if ${gl_cv_func_itold_works+:} false; then :
30351 $as_echo_n "(cached) " >&6
30354 if test "$cross_compiling" = yes; then :
30357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30358 /* end confdefs.h. */
30359 #if defined __LP64__ || defined __arch64__
30363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30364 $EGREP "yes" >/dev/null 2>&1; then :
30365 gl_cv_func_itold_works="guessing no"
30367 gl_cv_func_itold_works="guessing yes"
30372 *) gl_cv_func_itold_works="guessing yes" ;;
30376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30377 /* end confdefs.h. */
30380 volatile long double ld;
30389 if ac_fn_c_try_run "$LINENO"; then :
30390 gl_cv_func_itold_works=yes
30392 gl_cv_func_itold_works=no
30394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30395 conftest.$ac_objext conftest.beam conftest.$ac_ext
30400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
30401 $as_echo "$gl_cv_func_itold_works" >&6; }
30402 case "$gl_cv_func_itold_works" in
30409 if test -n "$FLOAT_H"; then
30418 if test $gl_cv_have_include_next = yes; then
30419 gl_cv_next_float_h='<'float.h'>'
30421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
30422 $as_echo_n "checking absolute name of <float.h>... " >&6; }
30423 if ${gl_cv_next_float_h+:} false; then :
30424 $as_echo_n "(cached) " >&6
30427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30428 /* end confdefs.h. */
30433 aix*) gl_absname_cpp="$ac_cpp -C" ;;
30434 *) gl_absname_cpp="$ac_cpp" ;;
30439 gl_dirsep_regex='[/\\]'
30442 gl_dirsep_regex='\/'
30445 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30447 gl_header_literal_regex=`echo 'float.h' \
30448 | sed -e "$gl_make_literal_regex_sed"`
30449 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30450 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30455 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30456 sed -n "$gl_absolute_header_sed"`'"'
30460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
30461 $as_echo "$gl_cv_next_float_h" >&6; }
30463 NEXT_FLOAT_H=$gl_cv_next_float_h
30465 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30466 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30467 gl_next_as_first_directive='<'float.h'>'
30469 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30470 gl_next_as_first_directive=$gl_cv_next_float_h
30472 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
30479 if test -n "$FLOAT_H"; then
30480 GL_GENERATE_FLOAT_H_TRUE=
30481 GL_GENERATE_FLOAT_H_FALSE='#'
30483 GL_GENERATE_FLOAT_H_TRUE='#'
30484 GL_GENERATE_FLOAT_H_FALSE=
30489 if test $REPLACE_FLOAT_LDBL = 1; then
30498 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
30501 if test $REPLACE_ITOLD = 1; then
30510 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
30516 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
30520 if test $REPLACE_FSEEK = 1; then
30529 gl_LIBOBJS="$gl_LIBOBJS fseek.$ac_objext"
30543 $as_echo "#define GNULIB_TEST_FSEEK 1" >>confdefs.h
30554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
30555 $as_echo_n "checking for fseeko... " >&6; }
30556 if ${gl_cv_func_fseeko+:} false; then :
30557 $as_echo_n "(cached) " >&6
30560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30561 /* end confdefs.h. */
30567 fseeko (stdin, 0, 0);
30572 if ac_fn_c_try_link "$LINENO"; then :
30573 gl_cv_func_fseeko=yes
30575 gl_cv_func_fseeko=no
30577 rm -f core conftest.err conftest.$ac_objext \
30578 conftest$ac_exeext conftest.$ac_ext
30581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
30582 $as_echo "$gl_cv_func_fseeko" >&6; }
30591 if test $ac_cv_have_decl_fseeko = no; then
30595 if test $gl_cv_func_fseeko = no; then
30598 if test $gl_cv_var_stdin_large_offset = no; then
30604 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
30613 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
30627 $as_echo "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h
30634 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
30639 if test $REPLACE_FSTAT = 1; then
30648 gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
30665 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
30672 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
30676 if test $REPLACE_FTELL = 1; then
30685 gl_LIBOBJS="$gl_LIBOBJS ftell.$ac_objext"
30699 $as_echo "#define GNULIB_TEST_FTELL 1" >>confdefs.h
30717 if test $ac_cv_have_decl_ftello = no; then
30721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
30722 $as_echo_n "checking for ftello... " >&6; }
30723 if ${gl_cv_func_ftello+:} false; then :
30724 $as_echo_n "(cached) " >&6
30727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30728 /* end confdefs.h. */
30738 if ac_fn_c_try_link "$LINENO"; then :
30739 gl_cv_func_ftello=yes
30741 gl_cv_func_ftello=no
30743 rm -f core conftest.err conftest.$ac_objext \
30744 conftest$ac_exeext conftest.$ac_ext
30747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
30748 $as_echo "$gl_cv_func_ftello" >&6; }
30749 if test $gl_cv_func_ftello = no; then
30752 if test $gl_cv_var_stdin_large_offset = no; then
30756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
30757 $as_echo_n "checking whether ftello works... " >&6; }
30758 if ${gl_cv_func_ftello_works+:} false; then :
30759 $as_echo_n "(cached) " >&6
30763 # Guess no on Solaris.
30764 solaris*) gl_cv_func_ftello_works="guessing no" ;;
30765 # Guess yes otherwise.
30766 *) gl_cv_func_ftello_works="guessing yes" ;;
30768 if test "$cross_compiling" = yes; then :
30771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30772 /* end confdefs.h. */
30775 #include <stdlib.h>
30776 #include <string.h>
30777 #define TESTFILE "conftest.tmp"
30783 /* Create a file with some contents. */
30784 fp = fopen (TESTFILE, "w");
30787 if (fwrite ("foogarsh", 1, 8, fp) < 8)
30792 /* The file's contents is now "foogarsh". */
30794 /* Try writing after reading to EOF. */
30795 fp = fopen (TESTFILE, "r+");
30798 if (fseek (fp, -1, SEEK_END))
30800 if (!(getc (fp) == 'h'))
30802 if (!(getc (fp) == EOF))
30804 if (!(ftell (fp) == 8))
30806 if (!(ftell (fp) == 8))
30808 if (!(putc ('!', fp) == '!'))
30810 if (!(ftell (fp) == 9))
30812 if (!(fclose (fp) == 0))
30814 fp = fopen (TESTFILE, "r");
30819 if (!(fread (buf, 1, 10, fp) == 9))
30821 if (!(memcmp (buf, "foogarsh!", 9) == 0))
30824 if (!(fclose (fp) == 0))
30827 /* The file's contents is now "foogarsh!". */
30832 if ac_fn_c_try_run "$LINENO"; then :
30833 gl_cv_func_ftello_works=yes
30835 gl_cv_func_ftello_works=no
30837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30838 conftest.$ac_objext conftest.beam conftest.$ac_ext
30843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
30844 $as_echo "$gl_cv_func_ftello_works" >&6; }
30845 case "$gl_cv_func_ftello_works" in
30850 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
30857 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
30866 gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
30880 $as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
30885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
30886 $as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
30888 gai_saved_LIBS="$LIBS"
30890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
30891 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
30892 if ${ac_cv_search_getaddrinfo+:} false; then :
30893 $as_echo_n "(cached) " >&6
30895 ac_func_search_save_LIBS=$LIBS
30896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30897 /* end confdefs.h. */
30899 /* Override any GCC internal prototype to avoid an error.
30900 Use char because int might match the return type of a GCC
30901 builtin and then its argument prototype would still apply. */
30905 char getaddrinfo ();
30909 return getaddrinfo ();
30914 for ac_lib in '' socket network net; do
30915 if test -z "$ac_lib"; then
30916 ac_res="none required"
30919 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30921 if ac_fn_c_try_link "$LINENO"; then :
30922 ac_cv_search_getaddrinfo=$ac_res
30924 rm -f core conftest.err conftest.$ac_objext \
30926 if ${ac_cv_search_getaddrinfo+:} false; then :
30930 if ${ac_cv_search_getaddrinfo+:} false; then :
30933 ac_cv_search_getaddrinfo=no
30935 rm conftest.$ac_ext
30936 LIBS=$ac_func_search_save_LIBS
30938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
30939 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
30940 ac_res=$ac_cv_search_getaddrinfo
30941 if test "$ac_res" != no; then :
30942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30943 if test "$ac_cv_search_getaddrinfo" != "none required"; then
30944 GETADDRINFO_LIB="$ac_cv_search_getaddrinfo"
30948 LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
30951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
30952 $as_echo_n "checking for getaddrinfo... " >&6; }
30953 if ${gl_cv_func_getaddrinfo+:} false; then :
30954 $as_echo_n "(cached) " >&6
30957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30958 /* end confdefs.h. */
30960 #include <sys/types.h>
30961 #ifdef HAVE_SYS_SOCKET_H
30962 #include <sys/socket.h>
30964 #ifdef HAVE_NETDB_H
30967 #include <stddef.h>
30972 getaddrinfo("", "", NULL, NULL);
30977 if ac_fn_c_try_link "$LINENO"; then :
30978 gl_cv_func_getaddrinfo=yes
30980 gl_cv_func_getaddrinfo=no
30982 rm -f core conftest.err conftest.$ac_objext \
30983 conftest$ac_exeext conftest.$ac_ext
30985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getaddrinfo" >&5
30986 $as_echo "$gl_cv_func_getaddrinfo" >&6; }
30987 if test $gl_cv_func_getaddrinfo = no; then
30988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
30989 $as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
30990 if ${gl_cv_w32_getaddrinfo+:} false; then :
30991 $as_echo_n "(cached) " >&6
30994 gl_cv_w32_getaddrinfo=no
30995 am_save_LIBS="$LIBS"
30996 LIBS="$LIBS -lws2_32"
30997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30998 /* end confdefs.h. */
31000 #ifdef HAVE_WS2TCPIP_H
31001 #include <ws2tcpip.h>
31003 #include <stddef.h>
31008 getaddrinfo(NULL, NULL, NULL, NULL);
31013 if ac_fn_c_try_link "$LINENO"; then :
31014 gl_cv_w32_getaddrinfo=yes
31016 rm -f core conftest.err conftest.$ac_objext \
31017 conftest$ac_exeext conftest.$ac_ext
31018 LIBS="$am_save_LIBS"
31021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getaddrinfo" >&5
31022 $as_echo "$gl_cv_w32_getaddrinfo" >&6; }
31023 if test "$gl_cv_w32_getaddrinfo" = "yes"; then
31024 GETADDRINFO_LIB="-lws2_32"
31025 LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
31031 # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
31032 # inline function declared in ws2tcpip.h, so we need to get that
31033 # header included somehow.
31034 ac_fn_c_check_decl "$LINENO" "gai_strerror" "ac_cv_have_decl_gai_strerror" "
31035 #include <sys/types.h>
31036 #ifdef HAVE_SYS_SOCKET_H
31037 #include <sys/socket.h>
31039 #ifdef HAVE_NETDB_H
31042 #ifdef HAVE_WS2TCPIP_H
31043 #include <ws2tcpip.h>
31045 #include <stddef.h>
31048 if test "x$ac_cv_have_decl_gai_strerror" = xyes; then :
31054 cat >>confdefs.h <<_ACEOF
31055 #define HAVE_DECL_GAI_STRERROR $ac_have_decl
31058 if test $ac_cv_have_decl_gai_strerror = yes; then
31059 ac_fn_c_check_decl "$LINENO" "gai_strerrorA" "ac_cv_have_decl_gai_strerrorA" "
31060 #include <sys/types.h>
31061 #ifdef HAVE_SYS_SOCKET_H
31062 #include <sys/socket.h>
31064 #ifdef HAVE_NETDB_H
31067 #ifdef HAVE_WS2TCPIP_H
31068 #include <ws2tcpip.h>
31070 #include <stddef.h>
31073 if test "x$ac_cv_have_decl_gai_strerrorA" = xyes; then :
31079 cat >>confdefs.h <<_ACEOF
31080 #define HAVE_DECL_GAI_STRERRORA $ac_have_decl
31083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror with POSIX signature" >&5
31084 $as_echo_n "checking for gai_strerror with POSIX signature... " >&6; }
31085 if ${gl_cv_func_gai_strerror_posix_signature+:} false; then :
31086 $as_echo_n "(cached) " >&6
31089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31090 /* end confdefs.h. */
31092 #include <sys/types.h>
31093 #ifdef HAVE_SYS_SOCKET_H
31094 #include <sys/socket.h>
31096 #ifdef HAVE_NETDB_H
31099 #ifdef HAVE_WS2TCPIP_H
31100 #include <ws2tcpip.h>
31102 #include <stddef.h>
31107 const char *gai_strerror(int);
31109 if ac_fn_c_try_compile "$LINENO"; then :
31110 gl_cv_func_gai_strerror_posix_signature=yes
31112 gl_cv_func_gai_strerror_posix_signature=no
31114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gai_strerror_posix_signature" >&5
31117 $as_echo "$gl_cv_func_gai_strerror_posix_signature" >&6; }
31118 if test $gl_cv_func_gai_strerror_posix_signature = no; then
31119 REPLACE_GAI_STRERROR=1
31123 LIBS="$gai_saved_LIBS"
31133 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
31134 #include <sys/types.h>
31135 #include <sys/socket.h>
31138 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
31140 cat >>confdefs.h <<_ACEOF
31141 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
31156 ac_fn_c_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_getaddrinfo" "
31157 /* sys/types.h is not needed according to POSIX, but the
31158 sys/socket.h in i386-unknown-freebsd4.10 and
31159 powerpc-apple-darwin5.5 required it. */
31160 #include <sys/types.h>
31161 #ifdef HAVE_SYS_SOCKET_H
31162 #include <sys/socket.h>
31164 #ifdef HAVE_NETDB_H
31167 #ifdef HAVE_WS2TCPIP_H
31168 #include <ws2tcpip.h>
31172 if test "x$ac_cv_have_decl_getaddrinfo" = xyes; then :
31178 cat >>confdefs.h <<_ACEOF
31179 #define HAVE_DECL_GETADDRINFO $ac_have_decl
31181 ac_fn_c_check_decl "$LINENO" "freeaddrinfo" "ac_cv_have_decl_freeaddrinfo" "
31182 /* sys/types.h is not needed according to POSIX, but the
31183 sys/socket.h in i386-unknown-freebsd4.10 and
31184 powerpc-apple-darwin5.5 required it. */
31185 #include <sys/types.h>
31186 #ifdef HAVE_SYS_SOCKET_H
31187 #include <sys/socket.h>
31189 #ifdef HAVE_NETDB_H
31192 #ifdef HAVE_WS2TCPIP_H
31193 #include <ws2tcpip.h>
31197 if test "x$ac_cv_have_decl_freeaddrinfo" = xyes; then :
31203 cat >>confdefs.h <<_ACEOF
31204 #define HAVE_DECL_FREEADDRINFO $ac_have_decl
31206 ac_fn_c_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_getnameinfo" "
31207 /* sys/types.h is not needed according to POSIX, but the
31208 sys/socket.h in i386-unknown-freebsd4.10 and
31209 powerpc-apple-darwin5.5 required it. */
31210 #include <sys/types.h>
31211 #ifdef HAVE_SYS_SOCKET_H
31212 #include <sys/socket.h>
31214 #ifdef HAVE_NETDB_H
31217 #ifdef HAVE_WS2TCPIP_H
31218 #include <ws2tcpip.h>
31222 if test "x$ac_cv_have_decl_getnameinfo" = xyes; then :
31228 cat >>confdefs.h <<_ACEOF
31229 #define HAVE_DECL_GETNAMEINFO $ac_have_decl
31232 if test $ac_cv_have_decl_getaddrinfo = no; then
31233 HAVE_DECL_GETADDRINFO=0
31235 if test $ac_cv_have_decl_freeaddrinfo = no; then
31236 HAVE_DECL_FREEADDRINFO=0
31238 if test $ac_cv_have_decl_gai_strerror = no; then
31239 HAVE_DECL_GAI_STRERROR=0
31241 if test $ac_cv_have_decl_getnameinfo = no; then
31242 HAVE_DECL_GETNAMEINFO=0
31245 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
31246 #include <sys/types.h>
31247 #ifdef HAVE_SYS_SOCKET_H
31248 #include <sys/socket.h>
31250 #ifdef HAVE_NETDB_H
31253 #ifdef HAVE_WS2TCPIP_H
31254 #include <ws2tcpip.h>
31258 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
31260 cat >>confdefs.h <<_ACEOF
31261 #define HAVE_STRUCT_ADDRINFO 1
31267 if test $ac_cv_type_struct_addrinfo = no; then
31268 HAVE_STRUCT_ADDRINFO=0
31271 case " $GETADDRINFO_LIB " in
31272 *" $HOSTENT_LIB "*) ;;
31273 *) GETADDRINFO_LIB="$GETADDRINFO_LIB $HOSTENT_LIB" ;;
31276 case " $GETADDRINFO_LIB " in
31277 *" $SERVENT_LIB "*) ;;
31278 *) GETADDRINFO_LIB="$GETADDRINFO_LIB $SERVENT_LIB" ;;
31281 case " $GETADDRINFO_LIB " in
31282 *" $INET_NTOP_LIB "*) ;;
31283 *) GETADDRINFO_LIB="$GETADDRINFO_LIB $INET_NTOP_LIB" ;;
31289 if test $HAVE_GETADDRINFO = 0; then
31298 gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
31301 if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
31310 gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext"
31318 GNULIB_GETADDRINFO=1
31324 $as_echo "#define GNULIB_TEST_GETADDRINFO 1" >>confdefs.h
31348 if test $ac_cv_func_getdelim = yes; then
31350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
31351 $as_echo_n "checking for working getdelim function... " >&6; }
31352 if ${gl_cv_func_working_getdelim+:} false; then :
31353 $as_echo_n "(cached) " >&6
31355 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
31356 if test "$cross_compiling" = yes; then :
31357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31358 /* end confdefs.h. */
31360 #include <features.h>
31361 #ifdef __GNU_LIBRARY__
31362 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
31368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31369 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
31370 gl_cv_func_working_getdelim=yes
31372 gl_cv_func_working_getdelim=no
31378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31379 /* end confdefs.h. */
31381 # include <stdio.h>
31382 # include <stdlib.h>
31383 # include <string.h>
31386 FILE *in = fopen ("./conftest.data", "r");
31390 /* Test result for a NULL buffer and a zero size.
31391 Based on a test program from Karl Heuer. */
31394 int len = getdelim (&line, &siz, '\n', in);
31395 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
31399 /* Test result for a NULL buffer and a non-zero size.
31400 This crashes on FreeBSD 8.0. */
31402 size_t siz = (size_t)(~0) / 4;
31403 if (getdelim (&line, &siz, '\n', in) == -1)
31410 if ac_fn_c_try_run "$LINENO"; then :
31411 gl_cv_func_working_getdelim=yes
31413 gl_cv_func_working_getdelim=no
31415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31416 conftest.$ac_objext conftest.beam conftest.$ac_ext
31420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
31421 $as_echo "$gl_cv_func_working_getdelim" >&6; }
31422 if test $gl_cv_func_working_getdelim = no; then
31429 if test $ac_cv_have_decl_getdelim = no; then
31430 HAVE_DECL_GETDELIM=0
31433 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
31442 gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
31445 for ac_func in flockfile funlockfile
31447 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31448 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31449 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31450 cat >>confdefs.h <<_ACEOF
31451 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31457 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
31458 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
31464 cat >>confdefs.h <<_ACEOF
31465 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
31481 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
31498 gl_getline_needs_run_time_check=no
31499 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
31500 if test "x$ac_cv_func_getline" = xyes; then :
31501 gl_getline_needs_run_time_check=yes
31503 am_cv_func_working_getline=no
31506 if test $gl_getline_needs_run_time_check = yes; then
31507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
31508 $as_echo_n "checking for working getline function... " >&6; }
31509 if ${am_cv_func_working_getline+:} false; then :
31510 $as_echo_n "(cached) " >&6
31512 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
31513 if test "$cross_compiling" = yes; then :
31514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31515 /* end confdefs.h. */
31517 #include <features.h>
31518 #ifdef __GNU_LIBRARY__
31519 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
31525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31526 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
31527 am_cv_func_working_getline=yes
31529 am_cv_func_working_getline=no
31535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31536 /* end confdefs.h. */
31538 # include <stdio.h>
31539 # include <stdlib.h>
31540 # include <string.h>
31543 FILE *in = fopen ("./conftest.data", "r");
31547 /* Test result for a NULL buffer and a zero size.
31548 Based on a test program from Karl Heuer. */
31551 int len = getline (&line, &siz, in);
31552 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
31556 /* Test result for a NULL buffer and a non-zero size.
31557 This crashes on FreeBSD 8.0. */
31559 size_t siz = (size_t)(~0) / 4;
31560 if (getline (&line, &siz, in) == -1)
31567 if ac_fn_c_try_run "$LINENO"; then :
31568 am_cv_func_working_getline=yes
31570 am_cv_func_working_getline=no
31572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31573 conftest.$ac_objext conftest.beam conftest.$ac_ext
31577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
31578 $as_echo "$am_cv_func_working_getline" >&6; }
31581 if test $ac_cv_have_decl_getline = no; then
31582 HAVE_DECL_GETLINE=0
31585 if test $am_cv_func_working_getline = no; then
31589 if test $REPLACE_GETLINE = 1; then
31598 gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
31615 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
31631 if test $REPLACE_GETPASS = 1; then
31633 $as_echo "#define getpass gnu_getpass" >>confdefs.h
31637 if test $REPLACE_GETPASS = 1; then
31646 gl_LIBOBJS="$gl_LIBOBJS getpass.$ac_objext"
31672 ac_fn_c_check_decl "$LINENO" "__fsetlocking" "ac_cv_have_decl___fsetlocking" "#include <stdio.h>
31673 #if HAVE_STDIO_EXT_H
31674 #include <stdio_ext.h>
31677 if test "x$ac_cv_have_decl___fsetlocking" = xyes; then :
31683 cat >>confdefs.h <<_ACEOF
31684 #define HAVE_DECL___FSETLOCKING $ac_have_decl
31753 gl_gettimeofday_timezone=void
31754 if test $ac_cv_func_gettimeofday != yes; then
31755 HAVE_GETTIMEOFDAY=0
31760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
31761 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
31762 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
31763 $as_echo_n "(cached) " >&6
31765 if test "$cross_compiling" = yes; then :
31766 gl_cv_func_gettimeofday_clobber=yes
31768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31769 /* end confdefs.h. */
31770 #include <string.h>
31771 #include <sys/time.h>
31773 #include <stdlib.h>
31781 struct tm saved_lt;
31783 lt = localtime (&t);
31785 gettimeofday (&tv, NULL);
31786 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
31792 if ac_fn_c_try_run "$LINENO"; then :
31793 gl_cv_func_gettimeofday_clobber=no
31795 gl_cv_func_gettimeofday_clobber=yes
31797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31798 conftest.$ac_objext conftest.beam conftest.$ac_ext
31802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
31803 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
31805 if test $gl_cv_func_gettimeofday_clobber = yes; then
31806 REPLACE_GETTIMEOFDAY=1
31809 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
31812 $as_echo "#define localtime rpl_localtime" >>confdefs.h
31816 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
31820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
31821 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
31822 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
31823 $as_echo_n "(cached) " >&6
31825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31826 /* end confdefs.h. */
31827 #include <sys/time.h>
31829 int gettimeofday (struct timeval *restrict, void *restrict);
31834 /* glibc uses struct timezone * rather than the POSIX void *
31835 if _GNU_SOURCE is defined. However, since the only portable
31836 use of gettimeofday uses NULL as the second parameter, and
31837 since the glibc definition is actually more typesafe, it is
31838 not worth wrapping this to get a compliant signature. */
31839 int (*f) (struct timeval *restrict, void *restrict)
31842 return !(x | c.tv_sec | c.tv_usec);
31848 if ac_fn_c_try_compile "$LINENO"; then :
31849 gl_cv_func_gettimeofday_posix_signature=yes
31851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31852 /* end confdefs.h. */
31853 #include <sys/time.h>
31854 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
31864 if ac_fn_c_try_compile "$LINENO"; then :
31865 gl_cv_func_gettimeofday_posix_signature=almost
31867 gl_cv_func_gettimeofday_posix_signature=no
31869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
31874 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
31875 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
31876 gl_gettimeofday_timezone='struct timezone'
31877 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
31878 REPLACE_GETTIMEOFDAY=1
31880 if test $REPLACE_STRUCT_TIMEVAL = 1; then
31881 REPLACE_GETTIMEOFDAY=1
31886 cat >>confdefs.h <<_ACEOF
31887 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
31891 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
31900 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
31903 for ac_header in sys/timeb.h
31905 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
31906 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
31907 cat >>confdefs.h <<_ACEOF
31908 #define HAVE_SYS_TIMEB_H 1
31915 for ac_func in _ftime
31917 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
31918 if test "x$ac_cv_func__ftime" = xyes; then :
31919 cat >>confdefs.h <<_ACEOF
31920 #define HAVE__FTIME 1
31933 GNULIB_GETTIMEOFDAY=1
31939 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
31943 # Autoconf 2.61a.99 and earlier don't support linking a file only
31944 # in VPATH builds. But since GNUmakefile is for maintainer use
31945 # only, it does not matter if we skip the link with older autoconf.
31946 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
31947 # builds, so use a shell variable to bypass this.
31948 GNUmakefile=GNUmakefile
31949 ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
31953 gl_saved_libs="$LIBS"
31954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
31955 $as_echo_n "checking for library containing gethostbyname... " >&6; }
31956 if ${ac_cv_search_gethostbyname+:} false; then :
31957 $as_echo_n "(cached) " >&6
31959 ac_func_search_save_LIBS=$LIBS
31960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31961 /* end confdefs.h. */
31963 /* Override any GCC internal prototype to avoid an error.
31964 Use char because int might match the return type of a GCC
31965 builtin and then its argument prototype would still apply. */
31969 char gethostbyname ();
31973 return gethostbyname ();
31978 for ac_lib in '' nsl network net; do
31979 if test -z "$ac_lib"; then
31980 ac_res="none required"
31983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31985 if ac_fn_c_try_link "$LINENO"; then :
31986 ac_cv_search_gethostbyname=$ac_res
31988 rm -f core conftest.err conftest.$ac_objext \
31990 if ${ac_cv_search_gethostbyname+:} false; then :
31994 if ${ac_cv_search_gethostbyname+:} false; then :
31997 ac_cv_search_gethostbyname=no
31999 rm conftest.$ac_ext
32000 LIBS=$ac_func_search_save_LIBS
32002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
32003 $as_echo "$ac_cv_search_gethostbyname" >&6; }
32004 ac_res=$ac_cv_search_gethostbyname
32005 if test "$ac_res" != no; then :
32006 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32007 if test "$ac_cv_search_gethostbyname" != "none required"; then
32008 HOSTENT_LIB="$ac_cv_search_gethostbyname"
32012 LIBS="$gl_saved_libs"
32013 if test -z "$HOSTENT_LIB"; then
32014 for ac_func in gethostbyname
32016 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
32017 if test "x$ac_cv_func_gethostbyname" = xyes; then :
32018 cat >>confdefs.h <<_ACEOF
32019 #define HAVE_GETHOSTBYNAME 1
32024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
32025 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
32026 if ${gl_cv_w32_gethostbyname+:} false; then :
32027 $as_echo_n "(cached) " >&6
32029 gl_cv_w32_gethostbyname=no
32030 gl_save_LIBS="$LIBS"
32031 LIBS="$LIBS -lws2_32"
32032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32033 /* end confdefs.h. */
32035 #ifdef HAVE_WINSOCK2_H
32036 #include <winsock2.h>
32038 #include <stddef.h>
32043 gethostbyname(NULL);
32048 if ac_fn_c_try_link "$LINENO"; then :
32049 gl_cv_w32_gethostbyname=yes
32051 rm -f core conftest.err conftest.$ac_objext \
32052 conftest$ac_exeext conftest.$ac_ext
32053 LIBS="$gl_save_LIBS"
32056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
32057 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
32058 if test "$gl_cv_w32_gethostbyname" = "yes"; then
32059 HOSTENT_LIB="-lws2_32"
32087 if test $ac_cv_header_sys_socket_h != yes; then
32088 for ac_header in winsock2.h
32090 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
32091 if test "x$ac_cv_header_winsock2_h" = xyes; then :
32092 cat >>confdefs.h <<_ACEOF
32093 #define HAVE_WINSOCK2_H 1
32101 if test "$ac_cv_header_winsock2_h" = yes; then
32103 UNISTD_H_HAVE_WINSOCK2_H=1
32104 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
32110 if test $HAVE_WINSOCK2_H = 1; then
32111 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
32113 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
32119 cat >>confdefs.h <<_ACEOF
32120 #define HAVE_DECL_INET_NTOP $ac_have_decl
32123 if test $ac_cv_have_decl_inet_ntop = yes; then
32124 REPLACE_INET_NTOP=1
32125 INET_NTOP_LIB="-lws2_32"
32127 HAVE_DECL_INET_NTOP=0
32132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
32133 $as_echo_n "checking for library containing inet_ntop... " >&6; }
32134 if ${ac_cv_search_inet_ntop+:} false; then :
32135 $as_echo_n "(cached) " >&6
32137 ac_func_search_save_LIBS=$LIBS
32138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32139 /* end confdefs.h. */
32141 /* Override any GCC internal prototype to avoid an error.
32142 Use char because int might match the return type of a GCC
32143 builtin and then its argument prototype would still apply. */
32151 return inet_ntop ();
32156 for ac_lib in '' nsl resolv; do
32157 if test -z "$ac_lib"; then
32158 ac_res="none required"
32161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32163 if ac_fn_c_try_link "$LINENO"; then :
32164 ac_cv_search_inet_ntop=$ac_res
32166 rm -f core conftest.err conftest.$ac_objext \
32168 if ${ac_cv_search_inet_ntop+:} false; then :
32172 if ${ac_cv_search_inet_ntop+:} false; then :
32175 ac_cv_search_inet_ntop=no
32177 rm conftest.$ac_ext
32178 LIBS=$ac_func_search_save_LIBS
32180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
32181 $as_echo "$ac_cv_search_inet_ntop" >&6; }
32182 ac_res=$ac_cv_search_inet_ntop
32183 if test "$ac_res" != no; then :
32184 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32187 for ac_func in inet_ntop
32189 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
32190 if test "x$ac_cv_func_inet_ntop" = xyes; then :
32191 cat >>confdefs.h <<_ACEOF
32192 #define HAVE_INET_NTOP 1
32198 if test $ac_cv_func_inet_ntop = no; then
32206 if test "$ac_cv_search_inet_ntop" != "no" \
32207 && test "$ac_cv_search_inet_ntop" != "none required"; then
32208 INET_NTOP_LIB="$ac_cv_search_inet_ntop"
32218 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
32220 # include <netdb.h>
32224 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
32230 cat >>confdefs.h <<_ACEOF
32231 #define HAVE_DECL_INET_NTOP $ac_have_decl
32234 if test $ac_cv_have_decl_inet_ntop = no; then
32235 HAVE_DECL_INET_NTOP=0
32240 if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
32249 gl_LIBOBJS="$gl_LIBOBJS inet_ntop.$ac_objext"
32284 if test $ac_cv_header_sys_socket_h != yes; then
32285 for ac_header in winsock2.h
32287 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
32288 if test "x$ac_cv_header_winsock2_h" = xyes; then :
32289 cat >>confdefs.h <<_ACEOF
32290 #define HAVE_WINSOCK2_H 1
32298 if test "$ac_cv_header_winsock2_h" = yes; then
32300 UNISTD_H_HAVE_WINSOCK2_H=1
32301 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
32307 if test $HAVE_WINSOCK2_H = 1; then
32308 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <ws2tcpip.h>
32310 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
32316 cat >>confdefs.h <<_ACEOF
32317 #define HAVE_DECL_INET_PTON $ac_have_decl
32320 if test $ac_cv_have_decl_inet_pton = yes; then
32321 REPLACE_INET_PTON=1
32322 INET_PTON_LIB="-lws2_32"
32324 HAVE_DECL_INET_PTON=0
32329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
32330 $as_echo_n "checking for library containing inet_pton... " >&6; }
32331 if ${ac_cv_search_inet_pton+:} false; then :
32332 $as_echo_n "(cached) " >&6
32334 ac_func_search_save_LIBS=$LIBS
32335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32336 /* end confdefs.h. */
32338 /* Override any GCC internal prototype to avoid an error.
32339 Use char because int might match the return type of a GCC
32340 builtin and then its argument prototype would still apply. */
32348 return inet_pton ();
32353 for ac_lib in '' nsl resolv; do
32354 if test -z "$ac_lib"; then
32355 ac_res="none required"
32358 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32360 if ac_fn_c_try_link "$LINENO"; then :
32361 ac_cv_search_inet_pton=$ac_res
32363 rm -f core conftest.err conftest.$ac_objext \
32365 if ${ac_cv_search_inet_pton+:} false; then :
32369 if ${ac_cv_search_inet_pton+:} false; then :
32372 ac_cv_search_inet_pton=no
32374 rm conftest.$ac_ext
32375 LIBS=$ac_func_search_save_LIBS
32377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
32378 $as_echo "$ac_cv_search_inet_pton" >&6; }
32379 ac_res=$ac_cv_search_inet_pton
32380 if test "$ac_res" != no; then :
32381 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32384 for ac_func in inet_pton
32386 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
32387 if test "x$ac_cv_func_inet_pton" = xyes; then :
32388 cat >>confdefs.h <<_ACEOF
32389 #define HAVE_INET_PTON 1
32395 if test $ac_cv_func_inet_pton = no; then
32403 if test "$ac_cv_search_inet_pton" != "no" \
32404 && test "$ac_cv_search_inet_pton" != "none required"; then
32405 INET_PTON_LIB="$ac_cv_search_inet_pton"
32415 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h>
32417 # include <netdb.h>
32421 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
32427 cat >>confdefs.h <<_ACEOF
32428 #define HAVE_DECL_INET_PTON $ac_have_decl
32431 if test $ac_cv_have_decl_inet_pton = no; then
32432 HAVE_DECL_INET_PTON=0
32437 if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_NTOP = 1; then
32446 gl_LIBOBJS="$gl_LIBOBJS inet_pton.$ac_objext"
32463 if test "$ac_cv_header_winsock2_h" = yes; then
32472 gl_LIBOBJS="$gl_LIBOBJS listen.$ac_objext"
32486 $as_echo "#define GNULIB_TEST_LISTEN 1" >>confdefs.h
32492 if test "$gl_threads_api" = posix; then
32493 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
32494 # pthread_rwlock_* functions.
32495 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
32497 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
32499 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
32503 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
32504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32505 /* end confdefs.h. */
32507 #include <pthread.h>
32512 #if __FreeBSD__ == 4
32513 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
32515 int x = (int)PTHREAD_MUTEX_RECURSIVE;
32523 if ac_fn_c_try_compile "$LINENO"; then :
32525 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
32528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
32545 $as_echo_n "checking whether lseek detects pipes... " >&6; }
32546 if ${gl_cv_func_lseek_pipe+:} false; then :
32547 $as_echo_n "(cached) " >&6
32549 if test $cross_compiling = no; then
32550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32551 /* end confdefs.h. */
32553 #include <sys/types.h> /* for off_t */
32554 #include <stdio.h> /* for SEEK_CUR */
32556 # include <unistd.h>
32557 #else /* on Windows with MSVC */
32565 /* Exit with success only if stdin is seekable. */
32566 return lseek (0, (off_t)0, SEEK_CUR) < 0;
32572 if ac_fn_c_try_link "$LINENO"; then :
32573 if test -s conftest$ac_exeext \
32574 && ./conftest$ac_exeext < conftest.$ac_ext \
32575 && test 1 = "`echo hi \
32576 | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
32577 gl_cv_func_lseek_pipe=yes
32579 gl_cv_func_lseek_pipe=no
32582 gl_cv_func_lseek_pipe=no
32584 rm -f core conftest.err conftest.$ac_objext \
32585 conftest$ac_exeext conftest.$ac_ext
32587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32588 /* end confdefs.h. */
32590 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
32591 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes. */
32595 if ac_fn_c_try_compile "$LINENO"; then :
32596 gl_cv_func_lseek_pipe=yes
32598 gl_cv_func_lseek_pipe=no
32600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
32604 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
32605 if test $gl_cv_func_lseek_pipe = no; then
32608 $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
32612 if test $REPLACE_LSEEK = 1; then
32621 gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
32635 $as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
32643 if test $gl_cv_func_malloc_posix = yes; then
32645 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
32651 if test $REPLACE_MALLOC = 1; then
32660 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
32668 GNULIB_MALLOC_POSIX=1
32674 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
32679 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
32688 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
32691 for ac_header in bp-sym.h
32693 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
32694 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
32695 cat >>confdefs.h <<_ACEOF
32696 #define HAVE_BP_SYM_H 1
32716 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
32731 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
32732 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
32734 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
32737 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
32741 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
32750 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
32756 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
32765 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
32786 if test $gl_cv_have_include_next = yes; then
32787 gl_cv_next_netdb_h='<'netdb.h'>'
32789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
32790 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
32791 if ${gl_cv_next_netdb_h+:} false; then :
32792 $as_echo_n "(cached) " >&6
32795 if test $ac_cv_header_netdb_h = yes; then
32798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32799 /* end confdefs.h. */
32804 aix*) gl_absname_cpp="$ac_cpp -C" ;;
32805 *) gl_absname_cpp="$ac_cpp" ;;
32810 gl_dirsep_regex='[/\\]'
32813 gl_dirsep_regex='\/'
32816 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
32818 gl_header_literal_regex=`echo 'netdb.h' \
32819 | sed -e "$gl_make_literal_regex_sed"`
32820 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
32821 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
32826 gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32827 sed -n "$gl_absolute_header_sed"`'"'
32829 gl_cv_next_netdb_h='<'netdb.h'>'
32834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
32835 $as_echo "$gl_cv_next_netdb_h" >&6; }
32837 NEXT_NETDB_H=$gl_cv_next_netdb_h
32839 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32840 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32841 gl_next_as_first_directive='<'netdb.h'>'
32843 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32844 gl_next_as_first_directive=$gl_cv_next_netdb_h
32846 NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
32851 if test $ac_cv_header_netdb_h = yes; then
32859 for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
32860 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
32861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
32862 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
32863 if eval \${$as_gl_Symbol+:} false; then :
32864 $as_echo_n "(cached) " >&6
32866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32867 /* end confdefs.h. */
32878 if ac_fn_c_try_compile "$LINENO"; then :
32879 eval "$as_gl_Symbol=yes"
32881 eval "$as_gl_Symbol=no"
32883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32885 eval ac_res=\$$as_gl_Symbol
32886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32887 $as_echo "$ac_res" >&6; }
32888 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
32889 cat >>confdefs.h <<_ACEOF
32890 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
32893 eval ac_cv_have_decl_$gl_func=yes
32899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
32900 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
32901 if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
32902 $as_echo_n "(cached) " >&6
32905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32906 /* end confdefs.h. */
32907 #include <netinet/in.h>
32916 if ac_fn_c_try_compile "$LINENO"; then :
32917 gl_cv_header_netinet_in_h_selfcontained=yes
32919 gl_cv_header_netinet_in_h_selfcontained=no
32921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
32925 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
32926 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
32929 NETINET_IN_H='netinet/in.h'
32930 for ac_header in netinet/in.h
32932 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
32933 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
32934 cat >>confdefs.h <<_ACEOF
32935 #define HAVE_NETINET_IN_H 1
32957 if test $gl_cv_have_include_next = yes; then
32958 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
32960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
32961 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
32962 if ${gl_cv_next_netinet_in_h+:} false; then :
32963 $as_echo_n "(cached) " >&6
32966 if test $ac_cv_header_netinet_in_h = yes; then
32969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32970 /* end confdefs.h. */
32971 #include <netinet/in.h>
32975 aix*) gl_absname_cpp="$ac_cpp -C" ;;
32976 *) gl_absname_cpp="$ac_cpp" ;;
32981 gl_dirsep_regex='[/\\]'
32984 gl_dirsep_regex='\/'
32987 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
32989 gl_header_literal_regex=`echo 'netinet/in.h' \
32990 | sed -e "$gl_make_literal_regex_sed"`
32991 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
32992 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
32997 gl_cv_next_netinet_in_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32998 sed -n "$gl_absolute_header_sed"`'"'
33000 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
33005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
33006 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
33008 NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
33010 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33011 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33012 gl_next_as_first_directive='<'netinet/in.h'>'
33014 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33015 gl_next_as_first_directive=$gl_cv_next_netinet_in_h
33017 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
33022 if test $ac_cv_header_netinet_in_h = yes; then
33023 HAVE_NETINET_IN_H=1
33025 HAVE_NETINET_IN_H=0
33030 if test -n "$NETINET_IN_H"; then
33031 GL_GENERATE_NETINET_IN_H_TRUE=
33032 GL_GENERATE_NETINET_IN_H_FALSE='#'
33034 GL_GENERATE_NETINET_IN_H_TRUE='#'
33035 GL_GENERATE_NETINET_IN_H_FALSE=
33045 if test "$ERRNO_H:$REPLACE_STRERROR_0" != :0; then
33048 case ${gl_cv_func_strerror_r_works-unset} in
33050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether perror matches strerror" >&5
33051 $as_echo_n "checking whether perror matches strerror... " >&6; }
33052 if ${gl_cv_func_perror_works+:} false; then :
33053 $as_echo_n "(cached) " >&6
33055 if test "$cross_compiling" = yes; then :
33056 gl_cv_func_perror_works="guessing no"
33059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33060 /* end confdefs.h. */
33063 #include <stdlib.h>
33064 #include <string.h>
33069 char *str = strerror (-1);
33070 if (!getenv("CONFTEST_OUTPUT")) return 0;
33071 if (!str) str = "";
33081 if ac_fn_c_try_run "$LINENO"; then :
33082 if CONFTEST_OUTPUT=1 ./conftest$EXEEXT >conftest.txt1 2>conftest.txt2 \
33083 && cmp conftest.txt1 conftest.txt2 >/dev/null; then
33084 gl_cv_func_perror_works=yes
33086 gl_cv_func_perror_works=no
33088 rm -rf conftest.txt1 conftest.txt2
33090 gl_cv_func_perror_works=no
33092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33093 conftest.$ac_objext conftest.beam conftest.$ac_ext
33098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_perror_works" >&5
33099 $as_echo "$gl_cv_func_perror_works" >&6; }
33100 if test "$gl_cv_func_perror_works" != yes; then
33109 if test $REPLACE_PERROR = 1; then
33118 gl_LIBOBJS="$gl_LIBOBJS perror.$ac_objext"
33132 $as_echo "#define GNULIB_TEST_PERROR 1" >>confdefs.h
33136 # Extract the first word of "pmccabe", so it can be a program name with args.
33137 set dummy pmccabe; ac_word=$2
33138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33139 $as_echo_n "checking for $ac_word... " >&6; }
33140 if ${ac_cv_path_PMCCABE+:} false; then :
33141 $as_echo_n "(cached) " >&6
33145 ac_cv_path_PMCCABE="$PMCCABE" # Let the user override the test with a path.
33148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33149 for as_dir in $PATH
33152 test -z "$as_dir" && as_dir=.
33153 for ac_exec_ext in '' $ac_executable_extensions; do
33154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33155 ac_cv_path_PMCCABE="$as_dir/$ac_word$ac_exec_ext"
33156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33163 test -z "$ac_cv_path_PMCCABE" && ac_cv_path_PMCCABE="false"
33167 PMCCABE=$ac_cv_path_PMCCABE
33168 if test -n "$PMCCABE"; then
33169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PMCCABE" >&5
33170 $as_echo "$PMCCABE" >&6; }
33172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33173 $as_echo "no" >&6; }
33177 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
33179 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
33185 cat >>confdefs.h <<_ACEOF
33186 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
33189 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
33191 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
33197 cat >>confdefs.h <<_ACEOF
33198 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
33215 acl_save_prefix="$prefix"
33216 prefix="$acl_final_prefix"
33217 acl_save_exec_prefix="$exec_prefix"
33218 exec_prefix="$acl_final_exec_prefix"
33220 eval additional_includedir=\"$includedir\"
33221 eval additional_libdir=\"$libdir\"
33223 exec_prefix="$acl_save_exec_prefix"
33224 prefix="$acl_save_prefix"
33227 # Check whether --with-libreadline-prefix was given.
33228 if test "${with_libreadline_prefix+set}" = set; then :
33229 withval=$with_libreadline_prefix;
33230 if test "X$withval" = "Xno"; then
33233 if test "X$withval" = "X"; then
33235 acl_save_prefix="$prefix"
33236 prefix="$acl_final_prefix"
33237 acl_save_exec_prefix="$exec_prefix"
33238 exec_prefix="$acl_final_exec_prefix"
33240 eval additional_includedir=\"$includedir\"
33241 eval additional_libdir=\"$libdir\"
33243 exec_prefix="$acl_save_exec_prefix"
33244 prefix="$acl_save_prefix"
33247 additional_includedir="$withval/include"
33248 additional_libdir="$withval/$acl_libdirstem"
33249 if test "$acl_libdirstem2" != "$acl_libdirstem" \
33250 && ! test -d "$withval/$acl_libdirstem"; then
33251 additional_libdir="$withval/$acl_libdirstem2"
33261 LIBREADLINE_PREFIX=
33265 names_already_handled=
33266 names_next_round='readline '
33267 while test -n "$names_next_round"; do
33268 names_this_round="$names_next_round"
33270 for name in $names_this_round; do
33272 for n in $names_already_handled; do
33273 if test "$n" = "$name"; then
33274 already_handled=yes
33278 if test -z "$already_handled"; then
33279 names_already_handled="$names_already_handled $name"
33280 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
33281 eval value=\"\$HAVE_LIB$uppername\"
33282 if test -n "$value"; then
33283 if test "$value" = yes; then
33284 eval value=\"\$LIB$uppername\"
33285 test -z "$value" || LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$value"
33286 eval value=\"\$LTLIB$uppername\"
33287 test -z "$value" || LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }$value"
33296 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
33297 if test -n "$acl_shlibext"; then
33298 shrext=".$acl_shlibext" # typically: shrext=.so
33302 if test $use_additional = yes; then
33303 dir="$additional_libdir"
33304 if test -n "$acl_shlibext"; then
33305 if test -f "$dir/$libname$shrext"; then
33307 found_so="$dir/$libname$shrext"
33309 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
33310 ver=`(cd "$dir" && \
33311 for f in "$libname$shrext".*; do echo "$f"; done \
33312 | sed -e "s,^$libname$shrext\\\\.,," \
33313 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
33314 | sed 1q ) 2>/dev/null`
33315 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
33317 found_so="$dir/$libname$shrext.$ver"
33320 eval library_names=\"$acl_library_names_spec\"
33321 for f in $library_names; do
33322 if test -f "$dir/$f"; then
33331 if test "X$found_dir" = "X"; then
33332 if test -f "$dir/$libname.$acl_libext"; then
33334 found_a="$dir/$libname.$acl_libext"
33337 if test "X$found_dir" != "X"; then
33338 if test -f "$dir/$libname.la"; then
33339 found_la="$dir/$libname.la"
33343 if test "X$found_dir" = "X"; then
33344 for x in $LDFLAGS $LTLIBREADLINE; do
33346 acl_save_prefix="$prefix"
33347 prefix="$acl_final_prefix"
33348 acl_save_exec_prefix="$exec_prefix"
33349 exec_prefix="$acl_final_exec_prefix"
33351 exec_prefix="$acl_save_exec_prefix"
33352 prefix="$acl_save_prefix"
33356 dir=`echo "X$x" | sed -e 's/^X-L//'`
33357 if test -n "$acl_shlibext"; then
33358 if test -f "$dir/$libname$shrext"; then
33360 found_so="$dir/$libname$shrext"
33362 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
33363 ver=`(cd "$dir" && \
33364 for f in "$libname$shrext".*; do echo "$f"; done \
33365 | sed -e "s,^$libname$shrext\\\\.,," \
33366 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
33367 | sed 1q ) 2>/dev/null`
33368 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
33370 found_so="$dir/$libname$shrext.$ver"
33373 eval library_names=\"$acl_library_names_spec\"
33374 for f in $library_names; do
33375 if test -f "$dir/$f"; then
33384 if test "X$found_dir" = "X"; then
33385 if test -f "$dir/$libname.$acl_libext"; then
33387 found_a="$dir/$libname.$acl_libext"
33390 if test "X$found_dir" != "X"; then
33391 if test -f "$dir/$libname.la"; then
33392 found_la="$dir/$libname.la"
33397 if test "X$found_dir" != "X"; then
33402 if test "X$found_dir" != "X"; then
33403 LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-L$found_dir -l$name"
33404 if test "X$found_so" != "X"; then
33405 if test "$enable_rpath" = no \
33406 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
33407 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
33408 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
33411 for x in $ltrpathdirs; do
33412 if test "X$x" = "X$found_dir"; then
33417 if test -z "$haveit"; then
33418 ltrpathdirs="$ltrpathdirs $found_dir"
33420 if test "$acl_hardcode_direct" = yes; then
33421 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
33423 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
33424 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
33426 for x in $rpathdirs; do
33427 if test "X$x" = "X$found_dir"; then
33432 if test -z "$haveit"; then
33433 rpathdirs="$rpathdirs $found_dir"
33437 for x in $LDFLAGS $LIBREADLINE; do
33439 acl_save_prefix="$prefix"
33440 prefix="$acl_final_prefix"
33441 acl_save_exec_prefix="$exec_prefix"
33442 exec_prefix="$acl_final_exec_prefix"
33444 exec_prefix="$acl_save_exec_prefix"
33445 prefix="$acl_save_prefix"
33447 if test "X$x" = "X-L$found_dir"; then
33452 if test -z "$haveit"; then
33453 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-L$found_dir"
33455 if test "$acl_hardcode_minus_L" != no; then
33456 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
33458 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-l$name"
33464 if test "X$found_a" != "X"; then
33465 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_a"
33467 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-L$found_dir -l$name"
33470 additional_includedir=
33471 case "$found_dir" in
33472 */$acl_libdirstem | */$acl_libdirstem/)
33473 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
33474 if test "$name" = 'readline'; then
33475 LIBREADLINE_PREFIX="$basedir"
33477 additional_includedir="$basedir/include"
33479 */$acl_libdirstem2 | */$acl_libdirstem2/)
33480 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
33481 if test "$name" = 'readline'; then
33482 LIBREADLINE_PREFIX="$basedir"
33484 additional_includedir="$basedir/include"
33487 if test "X$additional_includedir" != "X"; then
33488 if test "X$additional_includedir" != "X/usr/include"; then
33490 if test "X$additional_includedir" = "X/usr/local/include"; then
33491 if test -n "$GCC"; then
33493 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
33497 if test -z "$haveit"; then
33498 for x in $CPPFLAGS $INCREADLINE; do
33500 acl_save_prefix="$prefix"
33501 prefix="$acl_final_prefix"
33502 acl_save_exec_prefix="$exec_prefix"
33503 exec_prefix="$acl_final_exec_prefix"
33505 exec_prefix="$acl_save_exec_prefix"
33506 prefix="$acl_save_prefix"
33508 if test "X$x" = "X-I$additional_includedir"; then
33513 if test -z "$haveit"; then
33514 if test -d "$additional_includedir"; then
33515 INCREADLINE="${INCREADLINE}${INCREADLINE:+ }-I$additional_includedir"
33521 if test -n "$found_la"; then
33522 save_libdir="$libdir"
33523 case "$found_la" in
33524 */* | *\\*) . "$found_la" ;;
33525 *) . "./$found_la" ;;
33527 libdir="$save_libdir"
33528 for dep in $dependency_libs; do
33531 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
33532 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
33533 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
33535 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
33536 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
33537 if test -n "$GCC"; then
33539 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
33543 if test -z "$haveit"; then
33545 for x in $LDFLAGS $LIBREADLINE; do
33547 acl_save_prefix="$prefix"
33548 prefix="$acl_final_prefix"
33549 acl_save_exec_prefix="$exec_prefix"
33550 exec_prefix="$acl_final_exec_prefix"
33552 exec_prefix="$acl_save_exec_prefix"
33553 prefix="$acl_save_prefix"
33555 if test "X$x" = "X-L$additional_libdir"; then
33560 if test -z "$haveit"; then
33561 if test -d "$additional_libdir"; then
33562 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-L$additional_libdir"
33566 for x in $LDFLAGS $LTLIBREADLINE; do
33568 acl_save_prefix="$prefix"
33569 prefix="$acl_final_prefix"
33570 acl_save_exec_prefix="$exec_prefix"
33571 exec_prefix="$acl_final_exec_prefix"
33573 exec_prefix="$acl_save_exec_prefix"
33574 prefix="$acl_save_prefix"
33576 if test "X$x" = "X-L$additional_libdir"; then
33581 if test -z "$haveit"; then
33582 if test -d "$additional_libdir"; then
33583 LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-L$additional_libdir"
33590 dir=`echo "X$dep" | sed -e 's/^X-R//'`
33591 if test "$enable_rpath" != no; then
33593 for x in $rpathdirs; do
33594 if test "X$x" = "X$dir"; then
33599 if test -z "$haveit"; then
33600 rpathdirs="$rpathdirs $dir"
33603 for x in $ltrpathdirs; do
33604 if test "X$x" = "X$dir"; then
33609 if test -z "$haveit"; then
33610 ltrpathdirs="$ltrpathdirs $dir"
33615 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
33618 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
33621 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$dep"
33622 LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }$dep"
33628 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-l$name"
33629 LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-l$name"
33635 if test "X$rpathdirs" != "X"; then
33636 if test -n "$acl_hardcode_libdir_separator"; then
33638 for found_dir in $rpathdirs; do
33639 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
33641 acl_save_libdir="$libdir"
33643 eval flag=\"$acl_hardcode_libdir_flag_spec\"
33644 libdir="$acl_save_libdir"
33645 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$flag"
33647 for found_dir in $rpathdirs; do
33648 acl_save_libdir="$libdir"
33649 libdir="$found_dir"
33650 eval flag=\"$acl_hardcode_libdir_flag_spec\"
33651 libdir="$acl_save_libdir"
33652 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$flag"
33656 if test "X$ltrpathdirs" != "X"; then
33657 for found_dir in $ltrpathdirs; do
33658 LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-R$found_dir"
33668 am_save_CPPFLAGS="$CPPFLAGS"
33670 for element in $INCREADLINE; do
33672 for x in $CPPFLAGS; do
33674 acl_save_prefix="$prefix"
33675 prefix="$acl_final_prefix"
33676 acl_save_exec_prefix="$exec_prefix"
33677 exec_prefix="$acl_final_exec_prefix"
33679 exec_prefix="$acl_save_exec_prefix"
33680 prefix="$acl_save_prefix"
33682 if test "X$x" = "X$element"; then
33687 if test -z "$haveit"; then
33688 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
33693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
33694 $as_echo_n "checking for readline... " >&6; }
33695 if ${gl_cv_lib_readline+:} false; then :
33696 $as_echo_n "(cached) " >&6
33699 gl_cv_lib_readline=no
33700 am_save_LIBS="$LIBS"
33701 for extra_lib in "" ncurses termcap curses; do
33702 LIBS="$am_save_LIBS $LIBREADLINE"
33703 if test -n "$extra_lib"; then
33704 LIBS="$LIBS -l$extra_lib"
33706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33707 /* end confdefs.h. */
33709 #include <readline/readline.h>
33713 readline((char*)0);
33718 if ac_fn_c_try_link "$LINENO"; then :
33719 if test -n "$extra_lib"; then
33720 gl_cv_lib_readline="yes, requires -l$extra_lib"
33722 gl_cv_lib_readline="yes"
33726 rm -f core conftest.err conftest.$ac_objext \
33727 conftest$ac_exeext conftest.$ac_ext
33728 if test "$gl_cv_lib_readline" != no; then
33732 LIBS="$am_save_LIBS"
33735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_readline" >&5
33736 $as_echo "$gl_cv_lib_readline" >&6; }
33738 if test "$gl_cv_lib_readline" != no; then
33740 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
33742 extra_lib=`echo "$gl_cv_lib_readline" | sed -n -e 's/yes, requires //p'`
33743 if test -n "$extra_lib"; then
33744 LIBREADLINE="$LIBREADLINE $extra_lib"
33745 LTLIBREADLINE="$LTLIBREADLINE $extra_lib"
33747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libreadline" >&5
33748 $as_echo_n "checking how to link with libreadline... " >&6; }
33749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBREADLINE" >&5
33750 $as_echo "$LIBREADLINE" >&6; }
33752 CPPFLAGS="$am_save_CPPFLAGS"
33759 for ac_header in readline/readline.h readline/history.h
33761 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33762 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
33763 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33764 cat >>confdefs.h <<_ACEOF
33765 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33773 if test "$gl_cv_lib_readline" = no; then
33782 gl_LIBOBJS="$gl_LIBOBJS readline.$ac_objext"
33791 if test $gl_cv_func_malloc_posix = yes; then
33793 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
33799 if test $REPLACE_REALLOC = 1; then
33808 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
33816 GNULIB_REALLOC_POSIX=1
33822 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
33827 if test "$ac_cv_header_winsock2_h" = yes; then
33836 gl_LIBOBJS="$gl_LIBOBJS recv.$ac_objext"
33850 $as_echo "#define GNULIB_TEST_RECV 1" >>confdefs.h
33857 if test "$ac_cv_header_winsock2_h" = yes; then
33867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5
33868 $as_echo_n "checking whether select supports a 0 argument... " >&6; }
33869 if ${gl_cv_func_select_supports0+:} false; then :
33870 $as_echo_n "(cached) " >&6
33873 if test "$cross_compiling" = yes; then :
33876 # Guess no on Interix.
33877 interix*) gl_cv_func_select_supports0="guessing no";;
33878 # Guess yes otherwise.
33879 *) gl_cv_func_select_supports0="guessing yes";;
33883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33884 /* end confdefs.h. */
33886 #include <sys/types.h>
33887 #include <sys/time.h>
33888 #if HAVE_SYS_SELECT_H
33889 #include <sys/select.h>
33893 struct timeval timeout;
33894 timeout.tv_sec = 0;
33895 timeout.tv_usec = 5;
33896 return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0;
33899 if ac_fn_c_try_run "$LINENO"; then :
33900 gl_cv_func_select_supports0=yes
33902 gl_cv_func_select_supports0=no
33904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33905 conftest.$ac_objext conftest.beam conftest.$ac_ext
33910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5
33911 $as_echo "$gl_cv_func_select_supports0" >&6; }
33912 case "$gl_cv_func_select_supports0" in
33914 *) REPLACE_SELECT=1 ;;
33918 LIB_SELECT="$LIBSOCKET"
33919 if test $REPLACE_SELECT = 1; then
33922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33923 /* end confdefs.h. */
33925 #define WIN32_LEAN_AND_MEAN
33926 #include <windows.h>
33930 MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
33934 if ac_fn_c_try_link "$LINENO"; then :
33937 LIB_SELECT="$LIB_SELECT -luser32"
33939 rm -f core conftest.err conftest.$ac_objext \
33940 conftest$ac_exeext conftest.$ac_ext
33946 if test $REPLACE_SELECT = 1; then
33955 gl_LIBOBJS="$gl_LIBOBJS select.$ac_objext"
33969 $as_echo "#define GNULIB_TEST_SELECT 1" >>confdefs.h
33974 if test "$ac_cv_header_winsock2_h" = yes; then
33983 gl_LIBOBJS="$gl_LIBOBJS send.$ac_objext"
33997 $as_echo "#define GNULIB_TEST_SEND 1" >>confdefs.h
34003 gl_saved_libs="$LIBS"
34004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
34005 $as_echo_n "checking for library containing getservbyname... " >&6; }
34006 if ${ac_cv_search_getservbyname+:} false; then :
34007 $as_echo_n "(cached) " >&6
34009 ac_func_search_save_LIBS=$LIBS
34010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34011 /* end confdefs.h. */
34013 /* Override any GCC internal prototype to avoid an error.
34014 Use char because int might match the return type of a GCC
34015 builtin and then its argument prototype would still apply. */
34019 char getservbyname ();
34023 return getservbyname ();
34028 for ac_lib in '' socket network net; do
34029 if test -z "$ac_lib"; then
34030 ac_res="none required"
34033 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
34035 if ac_fn_c_try_link "$LINENO"; then :
34036 ac_cv_search_getservbyname=$ac_res
34038 rm -f core conftest.err conftest.$ac_objext \
34040 if ${ac_cv_search_getservbyname+:} false; then :
34044 if ${ac_cv_search_getservbyname+:} false; then :
34047 ac_cv_search_getservbyname=no
34049 rm conftest.$ac_ext
34050 LIBS=$ac_func_search_save_LIBS
34052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
34053 $as_echo "$ac_cv_search_getservbyname" >&6; }
34054 ac_res=$ac_cv_search_getservbyname
34055 if test "$ac_res" != no; then :
34056 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34057 if test "$ac_cv_search_getservbyname" != "none required"; then
34058 SERVENT_LIB="$ac_cv_search_getservbyname"
34062 LIBS="$gl_saved_libs"
34063 if test -z "$SERVENT_LIB"; then
34064 for ac_func in getservbyname
34066 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
34067 if test "x$ac_cv_func_getservbyname" = xyes; then :
34068 cat >>confdefs.h <<_ACEOF
34069 #define HAVE_GETSERVBYNAME 1
34074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
34075 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
34076 if ${gl_cv_w32_getservbyname+:} false; then :
34077 $as_echo_n "(cached) " >&6
34079 gl_cv_w32_getservbyname=no
34080 gl_save_LIBS="$LIBS"
34081 LIBS="$LIBS -lws2_32"
34082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34083 /* end confdefs.h. */
34085 #ifdef HAVE_WINSOCK2_H
34086 #include <winsock2.h>
34088 #include <stddef.h>
34093 getservbyname(NULL,NULL);
34098 if ac_fn_c_try_link "$LINENO"; then :
34099 gl_cv_w32_getservbyname=yes
34101 rm -f core conftest.err conftest.$ac_objext \
34102 conftest$ac_exeext conftest.$ac_ext
34103 LIBS="$gl_save_LIBS"
34106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
34107 $as_echo "$gl_cv_w32_getservbyname" >&6; }
34108 if test "$gl_cv_w32_getservbyname" = "yes"; then
34109 SERVENT_LIB="-lws2_32"
34119 if test "$ac_cv_header_winsock2_h" = yes; then
34128 gl_LIBOBJS="$gl_LIBOBJS setsockopt.$ac_objext"
34136 GNULIB_SETSOCKOPT=1
34142 $as_echo "#define GNULIB_TEST_SETSOCKOPT 1" >>confdefs.h
34147 if test "$ac_cv_header_winsock2_h" = yes; then
34156 gl_LIBOBJS="$gl_LIBOBJS shutdown.$ac_objext"
34170 $as_echo "#define GNULIB_TEST_SHUTDOWN 1" >>confdefs.h
34185 if test $gl_cv_have_include_next = yes; then
34186 gl_cv_next_signal_h='<'signal.h'>'
34188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
34189 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
34190 if ${gl_cv_next_signal_h+:} false; then :
34191 $as_echo_n "(cached) " >&6
34194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34195 /* end confdefs.h. */
34196 #include <signal.h>
34200 aix*) gl_absname_cpp="$ac_cpp -C" ;;
34201 *) gl_absname_cpp="$ac_cpp" ;;
34206 gl_dirsep_regex='[/\\]'
34209 gl_dirsep_regex='\/'
34212 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
34214 gl_header_literal_regex=`echo 'signal.h' \
34215 | sed -e "$gl_make_literal_regex_sed"`
34216 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
34217 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
34222 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
34223 sed -n "$gl_absolute_header_sed"`'"'
34227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
34228 $as_echo "$gl_cv_next_signal_h" >&6; }
34230 NEXT_SIGNAL_H=$gl_cv_next_signal_h
34232 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
34233 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
34234 gl_next_as_first_directive='<'signal.h'>'
34236 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
34237 gl_next_as_first_directive=$gl_cv_next_signal_h
34239 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
34245 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
34246 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
34247 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
34248 #include <signal.h>
34251 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
34254 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
34263 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
34264 #include <signal.h>
34267 if test "x$ac_cv_type_sighandler_t" = xyes; then :
34270 HAVE_SIGHANDLER_T=0
34275 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
34276 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
34277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
34278 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
34279 if eval \${$as_gl_Symbol+:} false; then :
34280 $as_echo_n "(cached) " >&6
34282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34283 /* end confdefs.h. */
34284 #include <signal.h>
34295 if ac_fn_c_try_compile "$LINENO"; then :
34296 eval "$as_gl_Symbol=yes"
34298 eval "$as_gl_Symbol=no"
34300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34302 eval ac_res=\$$as_gl_Symbol
34303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34304 $as_echo "$ac_res" >&6; }
34305 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
34306 cat >>confdefs.h <<_ACEOF
34307 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
34310 eval ac_cv_have_decl_$gl_func=yes
34316 for ac_header in stdint.h
34318 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
34319 if test "x$ac_cv_header_stdint_h" = xyes; then :
34320 cat >>confdefs.h <<_ACEOF
34321 #define HAVE_STDINT_H 1
34328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
34329 $as_echo_n "checking for SIZE_MAX... " >&6; }
34330 if ${gl_cv_size_max+:} false; then :
34331 $as_echo_n "(cached) " >&6
34335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34336 /* end confdefs.h. */
34338 #include <limits.h>
34340 #include <stdint.h>
34347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34348 $EGREP "Found it" >/dev/null 2>&1; then :
34353 if test -z "$gl_cv_size_max"; then
34354 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
34355 #include <limits.h>"; then :
34358 size_t_bits_minus_1=
34361 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
34367 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
34368 if test $fits_in_uint = 1; then
34369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34370 /* end confdefs.h. */
34371 #include <stddef.h>
34373 extern unsigned long foo;
34383 if ac_fn_c_try_compile "$LINENO"; then :
34386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34388 if test $fits_in_uint = 1; then
34389 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
34391 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
34394 gl_cv_size_max='((size_t)~(size_t)0)'
34399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
34400 $as_echo "$gl_cv_size_max" >&6; }
34401 if test "$gl_cv_size_max" != yes; then
34403 cat >>confdefs.h <<_ACEOF
34404 #define SIZE_MAX $gl_cv_size_max
34412 gl_cv_func_snprintf_usable=no
34413 for ac_func in snprintf
34415 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
34416 if test "x$ac_cv_func_snprintf" = xyes; then :
34417 cat >>confdefs.h <<_ACEOF
34418 #define HAVE_SNPRINTF 1
34424 if test $ac_cv_func_snprintf = yes; then
34428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
34429 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
34430 if ${gl_cv_func_snprintf_size1+:} false; then :
34431 $as_echo_n "(cached) " >&6
34434 if test "$cross_compiling" = yes; then :
34435 gl_cv_func_snprintf_size1="guessing yes"
34437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34438 /* end confdefs.h. */
34442 # define my_snprintf snprintf
34444 # include <stdarg.h>
34445 static int my_snprintf (char *buf, int size, const char *format, ...)
34449 va_start (args, format);
34450 ret = vsnprintf (buf, size, format, args);
34457 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
34458 my_snprintf (buf, 1, "%d", 12345);
34459 return buf[1] != 'E';
34462 if ac_fn_c_try_run "$LINENO"; then :
34463 gl_cv_func_snprintf_size1=yes
34465 gl_cv_func_snprintf_size1=no
34467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34468 conftest.$ac_objext conftest.beam conftest.$ac_ext
34473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
34474 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
34476 case "$gl_cv_func_snprintf_size1" in
34479 case "$gl_cv_func_snprintf_retval_c99" in
34483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
34484 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
34485 if ${gl_cv_func_printf_positions+:} false; then :
34486 $as_echo_n "(cached) " >&6
34489 if test "$cross_compiling" = yes; then :
34492 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
34493 gl_cv_func_printf_positions="guessing no";;
34494 beos*) gl_cv_func_printf_positions="guessing no";;
34495 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
34496 *) gl_cv_func_printf_positions="guessing yes";;
34500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34501 /* end confdefs.h. */
34504 #include <string.h>
34505 /* The string "%2$d %1$d", with dollar characters protected from the shell's
34506 dollar expansion (possibly an autoconf bug). */
34507 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
34508 static char buf[100];
34511 sprintf (buf, format, 33, 55);
34512 return (strcmp (buf, "55 33") != 0);
34515 if ac_fn_c_try_run "$LINENO"; then :
34516 gl_cv_func_printf_positions=yes
34518 gl_cv_func_printf_positions=no
34520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34521 conftest.$ac_objext conftest.beam conftest.$ac_ext
34526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
34527 $as_echo "$gl_cv_func_printf_positions" >&6; }
34529 case "$gl_cv_func_printf_positions" in
34531 gl_cv_func_snprintf_usable=yes
34539 if test $gl_cv_func_snprintf_usable = no; then
34550 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
34552 if test $ac_cv_func_snprintf = yes; then
34565 if test $ac_cv_have_decl_snprintf = no; then
34566 HAVE_DECL_SNPRINTF=0
34580 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
34586 cat >>confdefs.h <<_ACEOF
34587 #define GNULIB_SNPRINTF 1
34592 if test "$ac_cv_header_winsock2_h" = yes; then
34601 gl_LIBOBJS="$gl_LIBOBJS socket.$ac_objext"
34604 # When this module is used, sockets may actually occur as file descriptors,
34605 # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
34609 if test "$ac_cv_header_winsock2_h" = yes; then
34610 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
34611 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
34624 $as_echo "#define GNULIB_TEST_SOCKET 1" >>confdefs.h
34639 if test $ac_cv_header_sys_socket_h != yes; then
34640 for ac_header in winsock2.h
34642 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
34643 if test "x$ac_cv_header_winsock2_h" = xyes; then :
34644 cat >>confdefs.h <<_ACEOF
34645 #define HAVE_WINSOCK2_H 1
34653 if test "$ac_cv_header_winsock2_h" = yes; then
34655 UNISTD_H_HAVE_WINSOCK2_H=1
34656 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
34662 if test $HAVE_WINSOCK2_H = 1; then
34663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
34664 $as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
34665 if ${gl_cv_func_wsastartup+:} false; then :
34666 $as_echo_n "(cached) " >&6
34669 gl_save_LIBS="$LIBS"
34670 LIBS="$LIBS -lws2_32"
34671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34672 /* end confdefs.h. */
34674 #ifdef HAVE_WINSOCK2_H
34675 # include <winsock2.h>
34681 WORD wVersionRequested = MAKEWORD(1, 1);
34683 int err = WSAStartup(wVersionRequested, &wsaData);
34689 if ac_fn_c_try_link "$LINENO"; then :
34690 gl_cv_func_wsastartup=yes
34692 gl_cv_func_wsastartup=no
34694 rm -f core conftest.err conftest.$ac_objext \
34695 conftest$ac_exeext conftest.$ac_ext
34696 LIBS="$gl_save_LIBS"
34699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
34700 $as_echo "$gl_cv_func_wsastartup" >&6; }
34701 if test "$gl_cv_func_wsastartup" = "yes"; then
34703 $as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
34705 LIBSOCKET='-lws2_32'
34708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
34709 $as_echo_n "checking for library containing setsockopt... " >&6; }
34710 if ${gl_cv_lib_socket+:} false; then :
34711 $as_echo_n "(cached) " >&6
34715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34716 /* end confdefs.h. */
34730 if ac_fn_c_try_link "$LINENO"; then :
34733 gl_save_LIBS="$LIBS"
34734 LIBS="$gl_save_LIBS -lsocket"
34735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34736 /* end confdefs.h. */
34750 if ac_fn_c_try_link "$LINENO"; then :
34751 gl_cv_lib_socket="-lsocket"
34753 rm -f core conftest.err conftest.$ac_objext \
34754 conftest$ac_exeext conftest.$ac_ext
34755 if test -z "$gl_cv_lib_socket"; then
34756 LIBS="$gl_save_LIBS -lnetwork"
34757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34758 /* end confdefs.h. */
34772 if ac_fn_c_try_link "$LINENO"; then :
34773 gl_cv_lib_socket="-lnetwork"
34775 rm -f core conftest.err conftest.$ac_objext \
34776 conftest$ac_exeext conftest.$ac_ext
34777 if test -z "$gl_cv_lib_socket"; then
34778 LIBS="$gl_save_LIBS -lnet"
34779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34780 /* end confdefs.h. */
34794 if ac_fn_c_try_link "$LINENO"; then :
34795 gl_cv_lib_socket="-lnet"
34797 rm -f core conftest.err conftest.$ac_objext \
34798 conftest$ac_exeext conftest.$ac_ext
34801 LIBS="$gl_save_LIBS"
34804 rm -f core conftest.err conftest.$ac_objext \
34805 conftest$ac_exeext conftest.$ac_ext
34806 if test -z "$gl_cv_lib_socket"; then
34807 gl_cv_lib_socket="none needed"
34811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
34812 $as_echo "$gl_cv_lib_socket" >&6; }
34813 if test "$gl_cv_lib_socket" != "none needed"; then
34814 LIBSOCKET="$gl_cv_lib_socket"
34826 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
34827 /* <sys/types.h> is not needed according to POSIX, but the
34828 <sys/socket.h> in i386-unknown-freebsd4.10 and
34829 powerpc-apple-darwin5.5 required it. */
34830 #include <sys/types.h>
34831 #if HAVE_SYS_SOCKET_H
34832 # include <sys/socket.h>
34833 #elif HAVE_WS2TCPIP_H
34834 # include <ws2tcpip.h>
34838 if test "x$ac_cv_type_socklen_t" = xyes; then :
34841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
34842 $as_echo_n "checking for socklen_t equivalent... " >&6; }
34843 if ${gl_cv_socklen_t_equiv+:} false; then :
34844 $as_echo_n "(cached) " >&6
34846 # Systems have either "struct sockaddr *" or
34847 # "void *" as the second argument to getpeername
34848 gl_cv_socklen_t_equiv=
34849 for arg2 in "struct sockaddr" void; do
34850 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
34851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34852 /* end confdefs.h. */
34853 #include <sys/types.h>
34854 #include <sys/socket.h>
34856 int getpeername (int, $arg2 *, $t *);
34861 getpeername (0, 0, &len);
34866 if ac_fn_c_try_compile "$LINENO"; then :
34867 gl_cv_socklen_t_equiv="$t"
34869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34870 test "$gl_cv_socklen_t_equiv" != "" && break
34872 test "$gl_cv_socklen_t_equiv" != "" && break
34877 if test "$gl_cv_socklen_t_equiv" = ""; then
34878 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
34880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
34881 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
34883 cat >>confdefs.h <<_ACEOF
34884 #define socklen_t $gl_cv_socklen_t_equiv
34890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
34891 $as_echo_n "checking for ssize_t... " >&6; }
34892 if ${gt_cv_ssize_t+:} false; then :
34893 $as_echo_n "(cached) " >&6
34895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34896 /* end confdefs.h. */
34897 #include <sys/types.h>
34901 int x = sizeof (ssize_t *) + sizeof (ssize_t);
34907 if ac_fn_c_try_compile "$LINENO"; then :
34912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
34915 $as_echo "$gt_cv_ssize_t" >&6; }
34916 if test $gt_cv_ssize_t = no; then
34918 $as_echo "#define ssize_t int" >>confdefs.h
34923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
34924 $as_echo_n "checking for working stdalign.h... " >&6; }
34925 if ${gl_cv_header_working_stdalign_h+:} false; then :
34926 $as_echo_n "(cached) " >&6
34928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34929 /* end confdefs.h. */
34930 #include <stdalign.h>
34931 #include <stddef.h>
34933 /* Test that alignof yields a result consistent with offsetof.
34934 This catches GCC bug 52023
34935 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
34937 template <class t> struct alignof_helper { char a; t b; };
34938 # define ao(type) offsetof (alignof_helper<type>, b)
34940 # define ao(type) offsetof (struct { char a; type b; }, b)
34942 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
34943 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
34944 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
34946 /* Test _Alignas only on platforms where gnulib can help. */
34948 (__GNUC__ || __IBMC__ || __IBMCPP__ \
34949 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
34950 int alignas (8) alignas_int = 1;
34951 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
34962 if ac_fn_c_try_compile "$LINENO"; then :
34963 gl_cv_header_working_stdalign_h=yes
34965 gl_cv_header_working_stdalign_h=no
34967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
34970 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
34972 if test $gl_cv_header_working_stdalign_h = yes; then
34975 STDALIGN_H='stdalign.h'
34979 if test -n "$STDALIGN_H"; then
34980 GL_GENERATE_STDALIGN_H_TRUE=
34981 GL_GENERATE_STDALIGN_H_FALSE='#'
34983 GL_GENERATE_STDALIGN_H_TRUE='#'
34984 GL_GENERATE_STDALIGN_H_FALSE=
34990 NEXT_STDARG_H='<stdarg.h>'
34991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
34992 $as_echo_n "checking for va_copy... " >&6; }
34993 if ${gl_cv_func_va_copy+:} false; then :
34994 $as_echo_n "(cached) " >&6
34997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34998 /* end confdefs.h. */
34999 #include <stdarg.h>
35005 void (*func) (va_list, va_list) = va_copy;
35012 if ac_fn_c_try_compile "$LINENO"; then :
35013 gl_cv_func_va_copy=yes
35015 gl_cv_func_va_copy=no
35017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
35021 $as_echo "$gl_cv_func_va_copy" >&6; }
35022 if test $gl_cv_func_va_copy = no; then
35023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35024 /* end confdefs.h. */
35025 #if defined _AIX && !defined __GNUC__
35030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35031 $EGREP "vaccine" >/dev/null 2>&1; then :
35038 if test $gl_aixcc = yes; then
35048 if test $gl_cv_have_include_next = yes; then
35049 gl_cv_next_stdarg_h='<'stdarg.h'>'
35051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
35052 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
35053 if ${gl_cv_next_stdarg_h+:} false; then :
35054 $as_echo_n "(cached) " >&6
35057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35058 /* end confdefs.h. */
35059 #include <stdarg.h>
35063 aix*) gl_absname_cpp="$ac_cpp -C" ;;
35064 *) gl_absname_cpp="$ac_cpp" ;;
35069 gl_dirsep_regex='[/\\]'
35072 gl_dirsep_regex='\/'
35075 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
35077 gl_header_literal_regex=`echo 'stdarg.h' \
35078 | sed -e "$gl_make_literal_regex_sed"`
35079 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
35080 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
35085 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35086 sed -n "$gl_absolute_header_sed"`'"'
35090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
35091 $as_echo "$gl_cv_next_stdarg_h" >&6; }
35093 NEXT_STDARG_H=$gl_cv_next_stdarg_h
35095 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
35096 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
35097 gl_next_as_first_directive='<'stdarg.h'>'
35099 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
35100 gl_next_as_first_directive=$gl_cv_next_stdarg_h
35102 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
35107 if test "$gl_cv_next_stdarg_h" = '""'; then
35108 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
35109 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
35113 saved_as_echo_n="$as_echo_n"
35115 if ${gl_cv_func___va_copy+:} false; then :
35116 $as_echo_n "(cached) " >&6
35119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35120 /* end confdefs.h. */
35121 #include <stdarg.h>
35134 if ac_fn_c_try_compile "$LINENO"; then :
35135 gl_cv_func___va_copy=yes
35137 gl_cv_func___va_copy=no
35139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35142 as_echo_n="$saved_as_echo_n"
35144 if test $gl_cv_func___va_copy = yes; then
35146 $as_echo "#define va_copy __va_copy" >>confdefs.h
35151 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
35157 if test -n "$STDARG_H"; then
35158 GL_GENERATE_STDARG_H_TRUE=
35159 GL_GENERATE_STDARG_H_FALSE='#'
35161 GL_GENERATE_STDARG_H_TRUE='#'
35162 GL_GENERATE_STDARG_H_FALSE=
35170 # Define two additional variables used in the Makefile substitution.
35172 if test "$ac_cv_header_stdbool_h" = yes; then
35175 STDBOOL_H='stdbool.h'
35178 if test -n "$STDBOOL_H"; then
35179 GL_GENERATE_STDBOOL_H_TRUE=
35180 GL_GENERATE_STDBOOL_H_FALSE='#'
35182 GL_GENERATE_STDBOOL_H_TRUE='#'
35183 GL_GENERATE_STDBOOL_H_FALSE=
35187 if test "$ac_cv_type__Bool" = yes; then
35198 if test $gt_cv_c_wchar_t = no; then
35202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
35203 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
35204 if ${gl_cv_decl_null_works+:} false; then :
35205 $as_echo_n "(cached) " >&6
35207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35208 /* end confdefs.h. */
35209 #include <stddef.h>
35210 int test[2 * (sizeof NULL == sizeof (void *)) -1];
35220 if ac_fn_c_try_compile "$LINENO"; then :
35221 gl_cv_decl_null_works=yes
35223 gl_cv_decl_null_works=no
35225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
35228 $as_echo "$gl_cv_decl_null_works" >&6; }
35229 if test $gl_cv_decl_null_works = no; then
35234 if test -n "$STDDEF_H"; then
35235 GL_GENERATE_STDDEF_H_TRUE=
35236 GL_GENERATE_STDDEF_H_FALSE='#'
35238 GL_GENERATE_STDDEF_H_TRUE='#'
35239 GL_GENERATE_STDDEF_H_FALSE=
35242 if test -n "$STDDEF_H"; then
35251 if test $gl_cv_have_include_next = yes; then
35252 gl_cv_next_stddef_h='<'stddef.h'>'
35254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
35255 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
35256 if ${gl_cv_next_stddef_h+:} false; then :
35257 $as_echo_n "(cached) " >&6
35260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35261 /* end confdefs.h. */
35262 #include <stddef.h>
35266 aix*) gl_absname_cpp="$ac_cpp -C" ;;
35267 *) gl_absname_cpp="$ac_cpp" ;;
35272 gl_dirsep_regex='[/\\]'
35275 gl_dirsep_regex='\/'
35278 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
35280 gl_header_literal_regex=`echo 'stddef.h' \
35281 | sed -e "$gl_make_literal_regex_sed"`
35282 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
35283 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
35288 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35289 sed -n "$gl_absolute_header_sed"`'"'
35293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
35294 $as_echo "$gl_cv_next_stddef_h" >&6; }
35296 NEXT_STDDEF_H=$gl_cv_next_stddef_h
35298 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
35299 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
35300 gl_next_as_first_directive='<'stddef.h'>'
35302 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
35303 gl_next_as_first_directive=$gl_cv_next_stddef_h
35305 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
35324 if test $gl_cv_have_include_next = yes; then
35325 gl_cv_next_stdio_h='<'stdio.h'>'
35327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
35328 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
35329 if ${gl_cv_next_stdio_h+:} false; then :
35330 $as_echo_n "(cached) " >&6
35333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35334 /* end confdefs.h. */
35339 aix*) gl_absname_cpp="$ac_cpp -C" ;;
35340 *) gl_absname_cpp="$ac_cpp" ;;
35345 gl_dirsep_regex='[/\\]'
35348 gl_dirsep_regex='\/'
35351 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
35353 gl_header_literal_regex=`echo 'stdio.h' \
35354 | sed -e "$gl_make_literal_regex_sed"`
35355 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
35356 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
35361 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35362 sed -n "$gl_absolute_header_sed"`'"'
35366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
35367 $as_echo "$gl_cv_next_stdio_h" >&6; }
35369 NEXT_STDIO_H=$gl_cv_next_stdio_h
35371 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
35372 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
35373 gl_next_as_first_directive='<'stdio.h'>'
35375 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
35376 gl_next_as_first_directive=$gl_cv_next_stdio_h
35378 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
35408 for gl_func in dprintf fpurge fseeko ftello getdelim getline pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
35409 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
35410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
35411 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
35412 if eval \${$as_gl_Symbol+:} false; then :
35413 $as_echo_n "(cached) " >&6
35415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35416 /* end confdefs.h. */
35428 if ac_fn_c_try_compile "$LINENO"; then :
35429 eval "$as_gl_Symbol=yes"
35431 eval "$as_gl_Symbol=no"
35433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35435 eval ac_res=\$$as_gl_Symbol
35436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35437 $as_echo "$ac_res" >&6; }
35438 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
35439 cat >>confdefs.h <<_ACEOF
35440 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
35443 eval ac_cv_have_decl_$gl_func=yes
35458 if test $gl_cv_have_include_next = yes; then
35459 gl_cv_next_stdlib_h='<'stdlib.h'>'
35461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
35462 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
35463 if ${gl_cv_next_stdlib_h+:} false; then :
35464 $as_echo_n "(cached) " >&6
35467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35468 /* end confdefs.h. */
35469 #include <stdlib.h>
35473 aix*) gl_absname_cpp="$ac_cpp -C" ;;
35474 *) gl_absname_cpp="$ac_cpp" ;;
35479 gl_dirsep_regex='[/\\]'
35482 gl_dirsep_regex='\/'
35485 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
35487 gl_header_literal_regex=`echo 'stdlib.h' \
35488 | sed -e "$gl_make_literal_regex_sed"`
35489 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
35490 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
35495 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35496 sed -n "$gl_absolute_header_sed"`'"'
35500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
35501 $as_echo "$gl_cv_next_stdlib_h" >&6; }
35503 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
35505 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
35506 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
35507 gl_next_as_first_directive='<'stdlib.h'>'
35509 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
35510 gl_next_as_first_directive=$gl_cv_next_stdlib_h
35512 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
35519 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r random random_r realpath rpmatch setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
35520 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
35521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
35522 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
35523 if eval \${$as_gl_Symbol+:} false; then :
35524 $as_echo_n "(cached) " >&6
35526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35527 /* end confdefs.h. */
35528 #include <stdlib.h>
35529 #if HAVE_SYS_LOADAVG_H
35530 # include <sys/loadavg.h>
35533 # include <random.h>
35545 if ac_fn_c_try_compile "$LINENO"; then :
35546 eval "$as_gl_Symbol=yes"
35548 eval "$as_gl_Symbol=no"
35550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35552 eval ac_res=\$$as_gl_Symbol
35553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35554 $as_echo "$ac_res" >&6; }
35555 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
35556 cat >>confdefs.h <<_ACEOF
35557 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
35560 eval ac_cv_have_decl_$gl_func=yes
35572 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
35573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
35574 $as_echo_n "checking for working strerror function... " >&6; }
35575 if ${gl_cv_func_working_strerror+:} false; then :
35576 $as_echo_n "(cached) " >&6
35578 if test "$cross_compiling" = yes; then :
35579 gl_cv_func_working_strerror="guessing no"
35581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35582 /* end confdefs.h. */
35583 #include <string.h>
35588 if (!*strerror (-2)) return 1;
35593 if ac_fn_c_try_run "$LINENO"; then :
35594 gl_cv_func_working_strerror=yes
35596 gl_cv_func_working_strerror=no
35598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35599 conftest.$ac_objext conftest.beam conftest.$ac_ext
35604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
35605 $as_echo "$gl_cv_func_working_strerror" >&6; }
35606 if test "$gl_cv_func_working_strerror" != yes; then
35610 case "$gl_cv_func_strerror_r_works" in
35611 *no) REPLACE_STRERROR=1 ;;
35618 if test $REPLACE_STRERROR = 1; then
35627 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
35632 cat >>confdefs.h <<_ACEOF
35633 #define GNULIB_STRERROR 1
35648 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
35654 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
35663 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
35675 if test $ac_cv_header_sys_socket_h != yes; then
35676 for ac_header in winsock2.h
35678 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
35679 if test "x$ac_cv_header_winsock2_h" = xyes; then :
35680 cat >>confdefs.h <<_ACEOF
35681 #define HAVE_WINSOCK2_H 1
35689 if test "$ac_cv_header_winsock2_h" = yes; then
35691 UNISTD_H_HAVE_WINSOCK2_H=1
35692 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
35712 if test $ac_cv_have_decl_strerror_r = no; then
35713 HAVE_DECL_STRERROR_R=0
35716 if test $ac_cv_func_strerror_r = yes; then
35717 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
35718 if test $gl_cv_func_strerror_r_posix_signature = yes; then
35719 case "$gl_cv_func_strerror_r_works" in
35720 *no) REPLACE_STRERROR_R=1 ;;
35723 REPLACE_STRERROR_R=1
35726 REPLACE_STRERROR_R=1
35730 if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1; then
35739 gl_LIBOBJS="$gl_LIBOBJS strerror_r.$ac_objext"
35770 GNULIB_STRERROR_R=1
35776 $as_echo "#define GNULIB_TEST_STRERROR_R 1" >>confdefs.h
35786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
35787 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
35788 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
35789 $as_echo_n "(cached) " >&6
35792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35793 /* end confdefs.h. */
35794 #include <sys/select.h>
35803 if ac_fn_c_try_compile "$LINENO"; then :
35804 gl_cv_header_sys_select_h_selfcontained=yes
35806 gl_cv_header_sys_select_h_selfcontained=no
35808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35809 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
35810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35811 /* end confdefs.h. */
35812 #include <sys/select.h>
35816 int memset; int bzero;
35822 if ac_fn_c_try_compile "$LINENO"; then :
35823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35824 /* end confdefs.h. */
35825 #include <sys/select.h>
35831 #define memset nonexistent_memset
35836 void *memset (void *, int, unsigned long);
35838 #define bzero nonexistent_bzero
35843 void bzero (void *, unsigned long);
35852 if ac_fn_c_try_link "$LINENO"; then :
35855 gl_cv_header_sys_select_h_selfcontained=no
35857 rm -f core conftest.err conftest.$ac_objext \
35858 conftest$ac_exeext conftest.$ac_ext
35861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
35866 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
35882 if test $gl_cv_have_include_next = yes; then
35883 gl_cv_next_sys_select_h='<'sys/select.h'>'
35885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
35886 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
35887 if ${gl_cv_next_sys_select_h+:} false; then :
35888 $as_echo_n "(cached) " >&6
35891 if test $ac_cv_header_sys_select_h = yes; then
35894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35895 /* end confdefs.h. */
35896 #include <sys/select.h>
35900 aix*) gl_absname_cpp="$ac_cpp -C" ;;
35901 *) gl_absname_cpp="$ac_cpp" ;;
35906 gl_dirsep_regex='[/\\]'
35909 gl_dirsep_regex='\/'
35912 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
35914 gl_header_literal_regex=`echo 'sys/select.h' \
35915 | sed -e "$gl_make_literal_regex_sed"`
35916 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
35917 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
35922 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35923 sed -n "$gl_absolute_header_sed"`'"'
35925 gl_cv_next_sys_select_h='<'sys/select.h'>'
35930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
35931 $as_echo "$gl_cv_next_sys_select_h" >&6; }
35933 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
35935 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
35936 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
35937 gl_next_as_first_directive='<'sys/select.h'>'
35939 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
35940 gl_next_as_first_directive=$gl_cv_next_sys_select_h
35942 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
35947 if test $ac_cv_header_sys_select_h = yes; then
35948 HAVE_SYS_SELECT_H=1
35950 HAVE_SYS_SELECT_H=0
35963 if test $ac_cv_header_sys_socket_h != yes; then
35964 for ac_header in winsock2.h
35966 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
35967 if test "x$ac_cv_header_winsock2_h" = xyes; then :
35968 cat >>confdefs.h <<_ACEOF
35969 #define HAVE_WINSOCK2_H 1
35977 if test "$ac_cv_header_winsock2_h" = yes; then
35979 UNISTD_H_HAVE_WINSOCK2_H=1
35980 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
35988 for gl_func in pselect select; do
35989 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
35990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
35991 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
35992 if eval \${$as_gl_Symbol+:} false; then :
35993 $as_echo_n "(cached) " >&6
35995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35996 /* end confdefs.h. */
35998 /* Some systems require prerequisite headers. */
35999 #include <sys/types.h>
36000 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
36001 # include <sys/time.h>
36003 #include <sys/select.h>
36014 if ac_fn_c_try_compile "$LINENO"; then :
36015 eval "$as_gl_Symbol=yes"
36017 eval "$as_gl_Symbol=no"
36019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36021 eval ac_res=\$$as_gl_Symbol
36022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36023 $as_echo "$ac_res" >&6; }
36024 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
36025 cat >>confdefs.h <<_ACEOF
36026 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
36029 eval ac_cv_have_decl_$gl_func=yes
36043 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
36048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
36049 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
36050 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
36051 $as_echo_n "(cached) " >&6
36054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36055 /* end confdefs.h. */
36056 #include <sys/socket.h>
36065 if ac_fn_c_try_compile "$LINENO"; then :
36066 gl_cv_header_sys_socket_h_selfcontained=yes
36068 gl_cv_header_sys_socket_h_selfcontained=no
36070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
36074 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
36075 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
36076 for ac_func in shutdown
36078 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
36079 if test "x$ac_cv_func_shutdown" = xyes; then :
36080 cat >>confdefs.h <<_ACEOF
36081 #define HAVE_SHUTDOWN 1
36087 if test $ac_cv_func_shutdown = yes; then
36088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
36089 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
36090 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
36091 $as_echo_n "(cached) " >&6
36094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36095 /* end confdefs.h. */
36096 #include <sys/socket.h>
36100 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
36105 if ac_fn_c_try_compile "$LINENO"; then :
36106 gl_cv_header_sys_socket_h_shut=yes
36108 gl_cv_header_sys_socket_h_shut=no
36110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
36114 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
36115 if test $gl_cv_header_sys_socket_h_shut = no; then
36116 SYS_SOCKET_H='sys/socket.h'
36120 # We need to check for ws2tcpip.h now.
36138 if test $gl_cv_have_include_next = yes; then
36139 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
36141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
36142 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
36143 if ${gl_cv_next_sys_socket_h+:} false; then :
36144 $as_echo_n "(cached) " >&6
36147 if test $ac_cv_header_sys_socket_h = yes; then
36150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36151 /* end confdefs.h. */
36152 #include <sys/socket.h>
36156 aix*) gl_absname_cpp="$ac_cpp -C" ;;
36157 *) gl_absname_cpp="$ac_cpp" ;;
36162 gl_dirsep_regex='[/\\]'
36165 gl_dirsep_regex='\/'
36168 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
36170 gl_header_literal_regex=`echo 'sys/socket.h' \
36171 | sed -e "$gl_make_literal_regex_sed"`
36172 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
36173 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
36178 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
36179 sed -n "$gl_absolute_header_sed"`'"'
36181 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
36186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
36187 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
36189 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
36191 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
36192 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
36193 gl_next_as_first_directive='<'sys/socket.h'>'
36195 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
36196 gl_next_as_first_directive=$gl_cv_next_sys_socket_h
36198 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
36203 if test $ac_cv_header_sys_socket_h = yes; then
36204 HAVE_SYS_SOCKET_H=1
36207 HAVE_SYS_SOCKET_H=0
36208 if test $ac_cv_header_ws2tcpip_h = yes; then
36217 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
36218 /* sys/types.h is not needed according to POSIX, but the
36219 sys/socket.h in i386-unknown-freebsd4.10 and
36220 powerpc-apple-darwin5.5 required it. */
36221 #include <sys/types.h>
36222 #ifdef HAVE_SYS_SOCKET_H
36223 #include <sys/socket.h>
36225 #ifdef HAVE_WS2TCPIP_H
36226 #include <ws2tcpip.h>
36230 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
36232 cat >>confdefs.h <<_ACEOF
36233 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
36238 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
36239 /* sys/types.h is not needed according to POSIX, but the
36240 sys/socket.h in i386-unknown-freebsd4.10 and
36241 powerpc-apple-darwin5.5 required it. */
36242 #include <sys/types.h>
36243 #ifdef HAVE_SYS_SOCKET_H
36244 #include <sys/socket.h>
36246 #ifdef HAVE_WS2TCPIP_H
36247 #include <ws2tcpip.h>
36251 if test "x$ac_cv_type_sa_family_t" = xyes; then :
36253 cat >>confdefs.h <<_ACEOF
36254 #define HAVE_SA_FAMILY_T 1
36260 if test $ac_cv_type_struct_sockaddr_storage = no; then
36261 HAVE_STRUCT_SOCKADDR_STORAGE=0
36263 if test $ac_cv_type_sa_family_t = no; then
36266 if test $ac_cv_type_struct_sockaddr_storage != no; then
36267 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
36268 #ifdef HAVE_SYS_SOCKET_H
36269 #include <sys/socket.h>
36271 #ifdef HAVE_WS2TCPIP_H
36272 #include <ws2tcpip.h>
36276 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
36278 cat >>confdefs.h <<_ACEOF
36279 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
36284 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
36288 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
36289 || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
36290 SYS_SOCKET_H='sys/socket.h'
36302 if test $ac_cv_header_sys_socket_h != yes; then
36303 for ac_header in winsock2.h
36305 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
36306 if test "x$ac_cv_header_winsock2_h" = xyes; then :
36307 cat >>confdefs.h <<_ACEOF
36308 #define HAVE_WINSOCK2_H 1
36316 if test "$ac_cv_header_winsock2_h" = yes; then
36318 UNISTD_H_HAVE_WINSOCK2_H=1
36319 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
36327 for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do
36328 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
36329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
36330 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
36331 if eval \${$as_gl_Symbol+:} false; then :
36332 $as_echo_n "(cached) " >&6
36334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36335 /* end confdefs.h. */
36337 /* Some systems require prerequisite headers. */
36338 #include <sys/types.h>
36339 #include <sys/socket.h>
36350 if ac_fn_c_try_compile "$LINENO"; then :
36351 eval "$as_gl_Symbol=yes"
36353 eval "$as_gl_Symbol=no"
36355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36357 eval ac_res=\$$as_gl_Symbol
36358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36359 $as_echo "$ac_res" >&6; }
36360 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
36361 cat >>confdefs.h <<_ACEOF
36362 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
36365 eval ac_cv_have_decl_$gl_func=yes
36393 if test $gl_cv_have_include_next = yes; then
36394 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
36396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
36397 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
36398 if ${gl_cv_next_sys_stat_h+:} false; then :
36399 $as_echo_n "(cached) " >&6
36402 if test $ac_cv_header_sys_stat_h = yes; then
36405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36406 /* end confdefs.h. */
36407 #include <sys/stat.h>
36411 aix*) gl_absname_cpp="$ac_cpp -C" ;;
36412 *) gl_absname_cpp="$ac_cpp" ;;
36417 gl_dirsep_regex='[/\\]'
36420 gl_dirsep_regex='\/'
36423 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
36425 gl_header_literal_regex=`echo 'sys/stat.h' \
36426 | sed -e "$gl_make_literal_regex_sed"`
36427 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
36428 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
36433 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
36434 sed -n "$gl_absolute_header_sed"`'"'
36436 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
36441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
36442 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
36444 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
36446 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
36447 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
36448 gl_next_as_first_directive='<'sys/stat.h'>'
36450 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
36451 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
36453 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
36461 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
36462 #include <sys/stat.h>
36464 if test "x$ac_cv_type_nlink_t" = xyes; then :
36468 $as_echo "#define nlink_t int" >>confdefs.h
36474 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
36475 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
36476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
36477 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
36478 if eval \${$as_gl_Symbol+:} false; then :
36479 $as_echo_n "(cached) " >&6
36481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36482 /* end confdefs.h. */
36483 #include <sys/stat.h>
36494 if ac_fn_c_try_compile "$LINENO"; then :
36495 eval "$as_gl_Symbol=yes"
36497 eval "$as_gl_Symbol=no"
36499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36501 eval ac_res=\$$as_gl_Symbol
36502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36503 $as_echo "$ac_res" >&6; }
36504 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
36505 cat >>confdefs.h <<_ACEOF
36506 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
36509 eval ac_cv_have_decl_$gl_func=yes
36529 if test $gl_cv_have_include_next = yes; then
36530 gl_cv_next_sys_types_h='<'sys/types.h'>'
36532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
36533 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
36534 if ${gl_cv_next_sys_types_h+:} false; then :
36535 $as_echo_n "(cached) " >&6
36538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36539 /* end confdefs.h. */
36540 #include <sys/types.h>
36544 aix*) gl_absname_cpp="$ac_cpp -C" ;;
36545 *) gl_absname_cpp="$ac_cpp" ;;
36550 gl_dirsep_regex='[/\\]'
36553 gl_dirsep_regex='\/'
36556 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
36558 gl_header_literal_regex=`echo 'sys/types.h' \
36559 | sed -e "$gl_make_literal_regex_sed"`
36560 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
36561 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
36566 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
36567 sed -n "$gl_absolute_header_sed"`'"'
36571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
36572 $as_echo "$gl_cv_next_sys_types_h" >&6; }
36574 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
36576 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
36577 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
36578 gl_next_as_first_directive='<'sys/types.h'>'
36580 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
36581 gl_next_as_first_directive=$gl_cv_next_sys_types_h
36583 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
36611 if test $gl_cv_have_include_next = yes; then
36612 gl_cv_next_sys_uio_h='<'sys/uio.h'>'
36614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
36615 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
36616 if ${gl_cv_next_sys_uio_h+:} false; then :
36617 $as_echo_n "(cached) " >&6
36620 if test $ac_cv_header_sys_uio_h = yes; then
36623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36624 /* end confdefs.h. */
36625 #include <sys/uio.h>
36629 aix*) gl_absname_cpp="$ac_cpp -C" ;;
36630 *) gl_absname_cpp="$ac_cpp" ;;
36635 gl_dirsep_regex='[/\\]'
36638 gl_dirsep_regex='\/'
36641 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
36643 gl_header_literal_regex=`echo 'sys/uio.h' \
36644 | sed -e "$gl_make_literal_regex_sed"`
36645 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
36646 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
36651 gl_cv_next_sys_uio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
36652 sed -n "$gl_absolute_header_sed"`'"'
36654 gl_cv_next_sys_uio_h='<'sys/uio.h'>'
36659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
36660 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
36662 NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
36664 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
36665 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
36666 gl_next_as_first_directive='<'sys/uio.h'>'
36668 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
36669 gl_next_as_first_directive=$gl_cv_next_sys_uio_h
36671 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
36676 if test $ac_cv_header_sys_uio_h = yes; then
36713 if test $gl_cv_have_include_next = yes; then
36714 gl_cv_next_unistd_h='<'unistd.h'>'
36716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
36717 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
36718 if ${gl_cv_next_unistd_h+:} false; then :
36719 $as_echo_n "(cached) " >&6
36722 if test $ac_cv_header_unistd_h = yes; then
36725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36726 /* end confdefs.h. */
36727 #include <unistd.h>
36731 aix*) gl_absname_cpp="$ac_cpp -C" ;;
36732 *) gl_absname_cpp="$ac_cpp" ;;
36737 gl_dirsep_regex='[/\\]'
36740 gl_dirsep_regex='\/'
36743 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
36745 gl_header_literal_regex=`echo 'unistd.h' \
36746 | sed -e "$gl_make_literal_regex_sed"`
36747 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
36748 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
36753 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
36754 sed -n "$gl_absolute_header_sed"`'"'
36756 gl_cv_next_unistd_h='<'unistd.h'>'
36761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
36762 $as_echo "$gl_cv_next_unistd_h" >&6; }
36764 NEXT_UNISTD_H=$gl_cv_next_unistd_h
36766 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
36767 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
36768 gl_next_as_first_directive='<'unistd.h'>'
36770 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
36771 gl_next_as_first_directive=$gl_cv_next_unistd_h
36773 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
36778 if test $ac_cv_header_unistd_h = yes; then
36788 for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
36789 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
36790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
36791 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
36792 if eval \${$as_gl_Symbol+:} false; then :
36793 $as_echo_n "(cached) " >&6
36795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36796 /* end confdefs.h. */
36799 # include <unistd.h>
36801 /* Some systems declare various items in the wrong headers. */
36802 #if !(defined __GLIBC__ && !defined __UCLIBC__)
36803 # include <fcntl.h>
36804 # include <stdio.h>
36805 # include <stdlib.h>
36806 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
36820 if ac_fn_c_try_compile "$LINENO"; then :
36821 eval "$as_gl_Symbol=yes"
36823 eval "$as_gl_Symbol=no"
36825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36827 eval ac_res=\$$as_gl_Symbol
36828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36829 $as_echo "$ac_res" >&6; }
36830 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
36831 cat >>confdefs.h <<_ACEOF
36832 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
36835 eval ac_cv_have_decl_$gl_func=yes
36841 # Check whether --enable-valgrind-tests was given.
36842 if test "${enable_valgrind_tests+set}" = set; then :
36843 enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
36845 opt_valgrind_tests=yes
36849 # Run self-tests under valgrind?
36850 if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
36851 for ac_prog in valgrind
36853 # Extract the first word of "$ac_prog", so it can be a program name with args.
36854 set dummy $ac_prog; ac_word=$2
36855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36856 $as_echo_n "checking for $ac_word... " >&6; }
36857 if ${ac_cv_prog_VALGRIND+:} false; then :
36858 $as_echo_n "(cached) " >&6
36860 if test -n "$VALGRIND"; then
36861 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
36863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36864 for as_dir in $PATH
36867 test -z "$as_dir" && as_dir=.
36868 for ac_exec_ext in '' $ac_executable_extensions; do
36869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36870 ac_cv_prog_VALGRIND="$ac_prog"
36871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36880 VALGRIND=$ac_cv_prog_VALGRIND
36881 if test -n "$VALGRIND"; then
36882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
36883 $as_echo "$VALGRIND" >&6; }
36885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36886 $as_echo "no" >&6; }
36890 test -n "$VALGRIND" && break
36895 OPTS="-q --error-exitcode=1 --leak-check=full"
36897 if test -n "$VALGRIND" \
36898 && $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
36899 opt_valgrind_tests=yes
36900 VALGRIND="$VALGRIND $OPTS"
36902 opt_valgrind_tests=no
36906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
36907 $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
36908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
36909 $as_echo "$opt_valgrind_tests" >&6; }
36919 if test $ac_cv_func_vasnprintf = no; then
36936 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
36946 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
36956 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
36966 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
36968 if test $ac_cv_func_vasnprintf = yes; then
36970 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
36984 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
36985 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
36989 $as_echo "#define ptrdiff_t long" >>confdefs.h
37003 # Check whether --with-packager was given.
37004 if test "${with_packager+set}" = set; then :
37005 withval=$with_packager; case $withval in
37008 cat >>confdefs.h <<_ACEOF
37009 #define PACKAGE_PACKAGER "$withval"
37018 # Check whether --with-packager-version was given.
37019 if test "${with_packager_version+set}" = set; then :
37020 withval=$with_packager_version; case $withval in
37023 cat >>confdefs.h <<_ACEOF
37024 #define PACKAGE_PACKAGER_VERSION "$withval"
37033 # Check whether --with-packager-bug-reports was given.
37034 if test "${with_packager_bug_reports+set}" = set; then :
37035 withval=$with_packager_bug_reports; case $withval in
37038 cat >>confdefs.h <<_ACEOF
37039 #define PACKAGE_PACKAGER_BUG_REPORTS "$withval"
37047 if test "X$with_packager" = "X" && \
37048 test "X$with_packager_version$with_packager_bug_reports" != "X"
37050 as_fn_error $? "The --with-packager-{bug-reports,version} options require --with-packager" "$LINENO" 5
37072 if test $gl_cv_have_include_next = yes; then
37073 gl_cv_next_wchar_h='<'wchar.h'>'
37075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
37076 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
37077 if ${gl_cv_next_wchar_h+:} false; then :
37078 $as_echo_n "(cached) " >&6
37081 if test $ac_cv_header_wchar_h = yes; then
37084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37085 /* end confdefs.h. */
37090 aix*) gl_absname_cpp="$ac_cpp -C" ;;
37091 *) gl_absname_cpp="$ac_cpp" ;;
37096 gl_dirsep_regex='[/\\]'
37099 gl_dirsep_regex='\/'
37102 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
37104 gl_header_literal_regex=`echo 'wchar.h' \
37105 | sed -e "$gl_make_literal_regex_sed"`
37106 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
37107 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
37112 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
37113 sed -n "$gl_absolute_header_sed"`'"'
37115 gl_cv_next_wchar_h='<'wchar.h'>'
37120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
37121 $as_echo "$gl_cv_next_wchar_h" >&6; }
37123 NEXT_WCHAR_H=$gl_cv_next_wchar_h
37125 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
37126 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
37127 gl_next_as_first_directive='<'wchar.h'>'
37129 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
37130 gl_next_as_first_directive=$gl_cv_next_wchar_h
37132 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
37137 if test $ac_cv_header_wchar_h = yes; then
37147 if test $gt_cv_c_wint_t = yes; then
37155 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth ; do
37156 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
37157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
37158 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
37159 if eval \${$as_gl_Symbol+:} false; then :
37160 $as_echo_n "(cached) " >&6
37162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37163 /* end confdefs.h. */
37165 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
37167 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
37168 included before <wchar.h>. */
37169 #if !(defined __GLIBC__ && !defined __UCLIBC__)
37170 # include <stddef.h>
37171 # include <stdio.h>
37185 if ac_fn_c_try_compile "$LINENO"; then :
37186 eval "$as_gl_Symbol=yes"
37188 eval "$as_gl_Symbol=no"
37190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37192 eval ac_res=\$$as_gl_Symbol
37193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
37194 $as_echo "$ac_res" >&6; }
37195 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
37196 cat >>confdefs.h <<_ACEOF
37197 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
37200 eval ac_cv_have_decl_$gl_func=yes
37208 for ac_header in stdint.h
37210 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
37211 if test "x$ac_cv_header_stdint_h" = xyes; then :
37212 cat >>confdefs.h <<_ACEOF
37213 #define HAVE_STDINT_H 1
37221 # End of code from modules
37242 gl_source_base='gl/tests'
37243 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
37245 gl_module_indicator_condition=$gltests_WITNESS
37252 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
37255 if test $HAVE_DUP2 = 1; then
37256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
37257 $as_echo_n "checking whether dup2 works... " >&6; }
37258 if ${gl_cv_func_dup2_works+:} false; then :
37259 $as_echo_n "(cached) " >&6
37261 if test "$cross_compiling" = yes; then :
37263 mingw*) # on this platform, dup2 always returns 0 for success
37264 gl_cv_func_dup2_works=no;;
37265 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
37266 gl_cv_func_dup2_works=no;;
37267 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
37268 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
37269 gl_cv_func_dup2_works=no;;
37270 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
37271 gl_cv_func_dup2_works=no;;
37272 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
37273 gl_cv_func_dup2_works=no;;
37274 *) gl_cv_func_dup2_works=yes;;
37277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37278 /* end confdefs.h. */
37280 #include <unistd.h>
37288 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
37291 if (dup2 (1, 1) == 0)
37294 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
37298 if (dup2 (0, 0) != -1)
37300 /* Many gnulib modules require POSIX conformance of EBADF. */
37301 if (dup2 (2, 1000000) == -1 && errno != EBADF)
37310 if ac_fn_c_try_run "$LINENO"; then :
37311 gl_cv_func_dup2_works=yes
37313 gl_cv_func_dup2_works=no
37315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37316 conftest.$ac_objext conftest.beam conftest.$ac_ext
37321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
37322 $as_echo "$gl_cv_func_dup2_works" >&6; }
37323 if test "$gl_cv_func_dup2_works" = no; then
37329 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
37338 gltests_LIBOBJS="$gltests_LIBOBJS dup2.$ac_objext"
37347 if test "$GNULIB_DUP2" != 1; then
37348 if test "$GNULIB_DUP2" = 0; then
37349 GNULIB_DUP2=$gl_module_indicator_condition
37351 GNULIB_DUP2="($GNULIB_DUP2 || $gl_module_indicator_condition)"
37359 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
37374 if test $gl_cv_have_include_next = yes; then
37375 gl_cv_next_fcntl_h='<'fcntl.h'>'
37377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
37378 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
37379 if ${gl_cv_next_fcntl_h+:} false; then :
37380 $as_echo_n "(cached) " >&6
37383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37384 /* end confdefs.h. */
37389 aix*) gl_absname_cpp="$ac_cpp -C" ;;
37390 *) gl_absname_cpp="$ac_cpp" ;;
37395 gl_dirsep_regex='[/\\]'
37398 gl_dirsep_regex='\/'
37401 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
37403 gl_header_literal_regex=`echo 'fcntl.h' \
37404 | sed -e "$gl_make_literal_regex_sed"`
37405 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
37406 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
37411 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
37412 sed -n "$gl_absolute_header_sed"`'"'
37416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
37417 $as_echo "$gl_cv_next_fcntl_h" >&6; }
37419 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
37421 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
37422 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
37423 gl_next_as_first_directive='<'fcntl.h'>'
37425 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
37426 gl_next_as_first_directive=$gl_cv_next_fcntl_h
37428 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
37439 for gl_func in fcntl openat; do
37440 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
37441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
37442 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
37443 if eval \${$as_gl_Symbol+:} false; then :
37444 $as_echo_n "(cached) " >&6
37446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37447 /* end confdefs.h. */
37459 if ac_fn_c_try_compile "$LINENO"; then :
37460 eval "$as_gl_Symbol=yes"
37462 eval "$as_gl_Symbol=no"
37464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37466 eval ac_res=\$$as_gl_Symbol
37467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
37468 $as_echo "$ac_res" >&6; }
37469 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
37470 cat >>confdefs.h <<_ACEOF
37471 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
37474 eval ac_cv_have_decl_$gl_func=yes
37482 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
37485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopen sets errno" >&5
37486 $as_echo_n "checking whether fdopen sets errno... " >&6; }
37487 if ${gl_cv_func_fdopen_works+:} false; then :
37488 $as_echo_n "(cached) " >&6
37491 if test "$cross_compiling" = yes; then :
37493 mingw*) gl_cv_func_fdopen_works="guessing no" ;;
37494 *) gl_cv_func_fdopen_works="guessing yes" ;;
37498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37499 /* end confdefs.h. */
37508 fp = fdopen (-1, "r");
37516 if ac_fn_c_try_run "$LINENO"; then :
37517 gl_cv_func_fdopen_works=yes
37519 gl_cv_func_fdopen_works=no
37521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37522 conftest.$ac_objext conftest.beam conftest.$ac_ext
37527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopen_works" >&5
37528 $as_echo "$gl_cv_func_fdopen_works" >&6; }
37529 case "$gl_cv_func_fdopen_works" in
37530 *no) REPLACE_FDOPEN=1 ;;
37534 if test $REPLACE_FDOPEN = 1; then
37543 gltests_LIBOBJS="$gltests_LIBOBJS fdopen.$ac_objext"
37552 if test "$GNULIB_FDOPEN" != 1; then
37553 if test "$GNULIB_FDOPEN" = 0; then
37554 GNULIB_FDOPEN=$gl_module_indicator_condition
37556 GNULIB_FDOPEN="($GNULIB_FDOPEN || $gl_module_indicator_condition)"
37564 $as_echo "#define GNULIB_TEST_FDOPEN 1" >>confdefs.h
37581 if test $ac_cv_func_ftruncate = no; then
37585 if test $HAVE_FTRUNCATE = 0; then
37594 gltests_LIBOBJS="$gltests_LIBOBJS ftruncate.$ac_objext"
37598 for ac_func in chsize
37600 ac_fn_c_check_func "$LINENO" "chsize" "ac_cv_func_chsize"
37601 if test "x$ac_cv_func_chsize" = xyes; then :
37602 cat >>confdefs.h <<_ACEOF
37603 #define HAVE_CHSIZE 1
37616 if test "$GNULIB_FTRUNCATE" != 1; then
37617 if test "$GNULIB_FTRUNCATE" = 0; then
37618 GNULIB_FTRUNCATE=$gl_module_indicator_condition
37620 GNULIB_FTRUNCATE="($GNULIB_FTRUNCATE || $gl_module_indicator_condition)"
37628 $as_echo "#define GNULIB_TEST_FTRUNCATE 1" >>confdefs.h
37637 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
37644 if test $REPLACE_GETCWD = 1; then
37653 gltests_LIBOBJS="$gltests_LIBOBJS getcwd-lgpl.$ac_objext"
37661 if test "$GNULIB_GETCWD" != 1; then
37662 if test "$GNULIB_GETCWD" = 0; then
37663 GNULIB_GETCWD=$gl_module_indicator_condition
37665 GNULIB_GETCWD="($GNULIB_GETCWD || $gl_module_indicator_condition)"
37673 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
37680 for ac_func in getpagesize
37682 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
37683 if test "x$ac_cv_func_getpagesize" = xyes; then :
37684 cat >>confdefs.h <<_ACEOF
37685 #define HAVE_GETPAGESIZE 1
37691 if test $ac_cv_func_getpagesize = no; then
37693 for ac_header in OS.h
37695 ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
37696 if test "x$ac_cv_header_OS_h" = xyes; then :
37697 cat >>confdefs.h <<_ACEOF
37698 #define HAVE_OS_H 1
37705 if test $ac_cv_header_OS_h = yes; then
37708 for ac_header in sys/param.h
37710 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
37711 if test "x$ac_cv_header_sys_param_h" = xyes; then :
37712 cat >>confdefs.h <<_ACEOF
37713 #define HAVE_SYS_PARAM_H 1
37720 if test $ac_cv_header_sys_param_h = yes; then
37726 REPLACE_GETPAGESIZE=1
37729 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
37730 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
37733 HAVE_DECL_GETPAGESIZE=0
37737 if test $REPLACE_GETPAGESIZE = 1; then
37746 gltests_LIBOBJS="$gltests_LIBOBJS getpagesize.$ac_objext"
37754 if test "$GNULIB_GETPAGESIZE" != 1; then
37755 if test "$GNULIB_GETPAGESIZE" = 0; then
37756 GNULIB_GETPAGESIZE=$gl_module_indicator_condition
37758 GNULIB_GETPAGESIZE="($GNULIB_GETPAGESIZE || $gl_module_indicator_condition)"
37766 $as_echo "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h
37771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
37772 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
37773 if ${ac_cv_c_bigendian+:} false; then :
37774 $as_echo_n "(cached) " >&6
37776 ac_cv_c_bigendian=unknown
37777 # See if we're dealing with a universal compiler.
37778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37779 /* end confdefs.h. */
37780 #ifndef __APPLE_CC__
37781 not a universal capable compiler
37786 if ac_fn_c_try_compile "$LINENO"; then :
37788 # Check for potential -arch flags. It is not universal unless
37789 # there are at least two -arch flags with different values.
37792 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
37793 if test -n "$ac_prev"; then
37795 i?86 | x86_64 | ppc | ppc64)
37796 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
37799 ac_cv_c_bigendian=universal
37805 elif test "x$ac_word" = "x-arch"; then
37810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37811 if test $ac_cv_c_bigendian = unknown; then
37812 # See if sys/param.h defines the BYTE_ORDER macro.
37813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37814 /* end confdefs.h. */
37815 #include <sys/types.h>
37816 #include <sys/param.h>
37821 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
37822 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
37824 bogus endian macros
37831 if ac_fn_c_try_compile "$LINENO"; then :
37832 # It does; now see whether it defined to BIG_ENDIAN or not.
37833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37834 /* end confdefs.h. */
37835 #include <sys/types.h>
37836 #include <sys/param.h>
37841 #if BYTE_ORDER != BIG_ENDIAN
37849 if ac_fn_c_try_compile "$LINENO"; then :
37850 ac_cv_c_bigendian=yes
37852 ac_cv_c_bigendian=no
37854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37858 if test $ac_cv_c_bigendian = unknown; then
37859 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
37860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37861 /* end confdefs.h. */
37862 #include <limits.h>
37867 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
37868 bogus endian macros
37875 if ac_fn_c_try_compile "$LINENO"; then :
37876 # It does; now see whether it defined to _BIG_ENDIAN or not.
37877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37878 /* end confdefs.h. */
37879 #include <limits.h>
37884 #ifndef _BIG_ENDIAN
37892 if ac_fn_c_try_compile "$LINENO"; then :
37893 ac_cv_c_bigendian=yes
37895 ac_cv_c_bigendian=no
37897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37901 if test $ac_cv_c_bigendian = unknown; then
37902 # Compile a test program.
37903 if test "$cross_compiling" = yes; then :
37904 # Try to guess by grepping values from an object file.
37905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37906 /* end confdefs.h. */
37907 short int ascii_mm[] =
37908 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
37909 short int ascii_ii[] =
37910 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
37911 int use_ascii (int i) {
37912 return ascii_mm[i] + ascii_ii[i];
37914 short int ebcdic_ii[] =
37915 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
37916 short int ebcdic_mm[] =
37917 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
37918 int use_ebcdic (int i) {
37919 return ebcdic_mm[i] + ebcdic_ii[i];
37926 return use_ascii (foo) == use_ebcdic (foo);
37931 if ac_fn_c_try_compile "$LINENO"; then :
37932 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
37933 ac_cv_c_bigendian=yes
37935 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
37936 if test "$ac_cv_c_bigendian" = unknown; then
37937 ac_cv_c_bigendian=no
37939 # finding both strings is unlikely to happen, but who knows?
37940 ac_cv_c_bigendian=unknown
37944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37947 /* end confdefs.h. */
37948 $ac_includes_default
37953 /* Are we little or big endian? From Harbison&Steele. */
37957 char c[sizeof (long int)];
37960 return u.c[sizeof (long int) - 1] == 1;
37966 if ac_fn_c_try_run "$LINENO"; then :
37967 ac_cv_c_bigendian=no
37969 ac_cv_c_bigendian=yes
37971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37972 conftest.$ac_objext conftest.beam conftest.$ac_ext
37977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
37978 $as_echo "$ac_cv_c_bigendian" >&6; }
37979 case $ac_cv_c_bigendian in #(
37981 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
37987 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
37991 as_fn_error $? "unknown endianness
37992 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
37995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
37996 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
37997 if ${ac_cv_c_bigendian+:} false; then :
37998 $as_echo_n "(cached) " >&6
38000 ac_cv_c_bigendian=unknown
38001 # See if we're dealing with a universal compiler.
38002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38003 /* end confdefs.h. */
38004 #ifndef __APPLE_CC__
38005 not a universal capable compiler
38010 if ac_fn_c_try_compile "$LINENO"; then :
38012 # Check for potential -arch flags. It is not universal unless
38013 # there are at least two -arch flags with different values.
38016 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
38017 if test -n "$ac_prev"; then
38019 i?86 | x86_64 | ppc | ppc64)
38020 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
38023 ac_cv_c_bigendian=universal
38029 elif test "x$ac_word" = "x-arch"; then
38034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38035 if test $ac_cv_c_bigendian = unknown; then
38036 # See if sys/param.h defines the BYTE_ORDER macro.
38037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38038 /* end confdefs.h. */
38039 #include <sys/types.h>
38040 #include <sys/param.h>
38045 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
38046 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
38048 bogus endian macros
38055 if ac_fn_c_try_compile "$LINENO"; then :
38056 # It does; now see whether it defined to BIG_ENDIAN or not.
38057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38058 /* end confdefs.h. */
38059 #include <sys/types.h>
38060 #include <sys/param.h>
38065 #if BYTE_ORDER != BIG_ENDIAN
38073 if ac_fn_c_try_compile "$LINENO"; then :
38074 ac_cv_c_bigendian=yes
38076 ac_cv_c_bigendian=no
38078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38082 if test $ac_cv_c_bigendian = unknown; then
38083 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
38084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38085 /* end confdefs.h. */
38086 #include <limits.h>
38091 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
38092 bogus endian macros
38099 if ac_fn_c_try_compile "$LINENO"; then :
38100 # It does; now see whether it defined to _BIG_ENDIAN or not.
38101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38102 /* end confdefs.h. */
38103 #include <limits.h>
38108 #ifndef _BIG_ENDIAN
38116 if ac_fn_c_try_compile "$LINENO"; then :
38117 ac_cv_c_bigendian=yes
38119 ac_cv_c_bigendian=no
38121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38125 if test $ac_cv_c_bigendian = unknown; then
38126 # Compile a test program.
38127 if test "$cross_compiling" = yes; then :
38128 # Try to guess by grepping values from an object file.
38129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38130 /* end confdefs.h. */
38131 short int ascii_mm[] =
38132 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
38133 short int ascii_ii[] =
38134 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
38135 int use_ascii (int i) {
38136 return ascii_mm[i] + ascii_ii[i];
38138 short int ebcdic_ii[] =
38139 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
38140 short int ebcdic_mm[] =
38141 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
38142 int use_ebcdic (int i) {
38143 return ebcdic_mm[i] + ebcdic_ii[i];
38150 return use_ascii (foo) == use_ebcdic (foo);
38155 if ac_fn_c_try_compile "$LINENO"; then :
38156 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
38157 ac_cv_c_bigendian=yes
38159 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
38160 if test "$ac_cv_c_bigendian" = unknown; then
38161 ac_cv_c_bigendian=no
38163 # finding both strings is unlikely to happen, but who knows?
38164 ac_cv_c_bigendian=unknown
38168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38171 /* end confdefs.h. */
38172 $ac_includes_default
38177 /* Are we little or big endian? From Harbison&Steele. */
38181 char c[sizeof (long int)];
38184 return u.c[sizeof (long int) - 1] == 1;
38190 if ac_fn_c_try_run "$LINENO"; then :
38191 ac_cv_c_bigendian=no
38193 ac_cv_c_bigendian=yes
38195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38196 conftest.$ac_objext conftest.beam conftest.$ac_ext
38201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
38202 $as_echo "$ac_cv_c_bigendian" >&6; }
38203 case $ac_cv_c_bigendian in #(
38205 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
38211 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
38215 as_fn_error $? "unknown endianness
38216 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
38225 if test -n "$STDINT_H"; then
38226 PRIPTR_PREFIX='"l"'
38228 for glpfx in '' l ll I64; do
38230 '') gltype1='int';;
38231 l) gltype1='long int';;
38232 ll) gltype1='long long int';;
38233 I64) gltype1='__int64';;
38235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38236 /* end confdefs.h. */
38237 #include <stdint.h>
38238 extern intptr_t foo;
38239 extern $gltype1 foo;
38248 if ac_fn_c_try_compile "$LINENO"; then :
38249 PRIPTR_PREFIX='"'$glpfx'"'
38251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38252 test -n "$PRIPTR_PREFIX" && break
38258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
38259 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
38260 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
38261 $as_echo_n "(cached) " >&6
38263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38264 /* end confdefs.h. */
38265 /* Work also in C++ mode. */
38266 #define __STDC_LIMIT_MACROS 1
38268 /* Work if build is not clean. */
38269 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
38271 #include <limits.h>
38273 #include <stdint.h>
38276 #if defined INT32_MAX && defined INTMAX_MAX
38277 #define CONDITION (INT32_MAX < INTMAX_MAX)
38278 #elif HAVE_LONG_LONG_INT
38279 #define CONDITION (sizeof (int) < sizeof (long long int))
38281 #define CONDITION 0
38283 int test[CONDITION ? 1 : -1];
38292 if ac_fn_c_try_compile "$LINENO"; then :
38293 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
38295 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
38297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
38300 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
38301 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
38302 INT32_MAX_LT_INTMAX_MAX=1;
38304 INT32_MAX_LT_INTMAX_MAX=0;
38308 if test $APPLE_UNIVERSAL_BUILD = 0; then
38310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
38311 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
38312 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
38313 $as_echo_n "(cached) " >&6
38315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38316 /* end confdefs.h. */
38317 /* Work also in C++ mode. */
38318 #define __STDC_LIMIT_MACROS 1
38320 /* Work if build is not clean. */
38321 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
38323 #include <limits.h>
38325 #include <stdint.h>
38328 #if defined INT64_MAX
38329 #define CONDITION (INT64_MAX == LONG_MAX)
38330 #elif HAVE_LONG_LONG_INT
38331 #define CONDITION (sizeof (long long int) == sizeof (long int))
38333 #define CONDITION 0
38335 int test[CONDITION ? 1 : -1];
38344 if ac_fn_c_try_compile "$LINENO"; then :
38345 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
38347 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
38349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
38352 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
38353 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
38354 INT64_MAX_EQ_LONG_MAX=1;
38356 INT64_MAX_EQ_LONG_MAX=0;
38361 INT64_MAX_EQ_LONG_MAX=-1
38364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
38365 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
38366 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
38367 $as_echo_n "(cached) " >&6
38369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38370 /* end confdefs.h. */
38371 /* Work also in C++ mode. */
38372 #define __STDC_LIMIT_MACROS 1
38374 /* Work if build is not clean. */
38375 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
38377 #include <limits.h>
38379 #include <stdint.h>
38382 #if defined UINT32_MAX && defined UINTMAX_MAX
38383 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
38384 #elif HAVE_LONG_LONG_INT
38385 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
38387 #define CONDITION 0
38389 int test[CONDITION ? 1 : -1];
38398 if ac_fn_c_try_compile "$LINENO"; then :
38399 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
38401 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
38403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
38406 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
38407 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
38408 UINT32_MAX_LT_UINTMAX_MAX=1;
38410 UINT32_MAX_LT_UINTMAX_MAX=0;
38414 if test $APPLE_UNIVERSAL_BUILD = 0; then
38416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
38417 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
38418 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
38419 $as_echo_n "(cached) " >&6
38421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38422 /* end confdefs.h. */
38423 /* Work also in C++ mode. */
38424 #define __STDC_LIMIT_MACROS 1
38426 /* Work if build is not clean. */
38427 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
38429 #include <limits.h>
38431 #include <stdint.h>
38434 #if defined UINT64_MAX
38435 #define CONDITION (UINT64_MAX == ULONG_MAX)
38436 #elif HAVE_LONG_LONG_INT
38437 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
38439 #define CONDITION 0
38441 int test[CONDITION ? 1 : -1];
38450 if ac_fn_c_try_compile "$LINENO"; then :
38451 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
38453 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
38455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
38458 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
38459 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
38460 UINT64_MAX_EQ_ULONG_MAX=1;
38462 UINT64_MAX_EQ_ULONG_MAX=0;
38467 UINT64_MAX_EQ_ULONG_MAX=-1
38476 if test "$ac_cv_header_winsock2_h" = yes; then
38479 for ac_func in ioctl
38481 ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl"
38482 if test "x$ac_cv_func_ioctl" = xyes; then :
38483 cat >>confdefs.h <<_ACEOF
38484 #define HAVE_IOCTL 1
38490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl with POSIX signature" >&5
38491 $as_echo_n "checking for ioctl with POSIX signature... " >&6; }
38492 if ${gl_cv_func_ioctl_posix_signature+:} false; then :
38493 $as_echo_n "(cached) " >&6
38495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38496 /* end confdefs.h. */
38497 #include <sys/ioctl.h>
38505 int ioctl (int, int, ...);
38512 if ac_fn_c_try_compile "$LINENO"; then :
38513 gl_cv_func_ioctl_posix_signature=yes
38515 gl_cv_func_ioctl_posix_signature=no
38517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ioctl_posix_signature" >&5
38521 $as_echo "$gl_cv_func_ioctl_posix_signature" >&6; }
38522 if test $gl_cv_func_ioctl_posix_signature != yes; then
38527 if test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1; then
38536 gltests_LIBOBJS="$gltests_LIBOBJS ioctl.$ac_objext"
38544 if test "$GNULIB_IOCTL" != 1; then
38545 if test "$GNULIB_IOCTL" = 0; then
38546 GNULIB_IOCTL=$gl_module_indicator_condition
38548 GNULIB_IOCTL="($GNULIB_IOCTL || $gl_module_indicator_condition)"
38556 $as_echo "#define GNULIB_TEST_IOCTL 1" >>confdefs.h
38569 if test $ac_cv_func_lstat = yes; then
38571 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
38578 if test $REPLACE_LSTAT = 1; then
38587 gltests_LIBOBJS="$gltests_LIBOBJS lstat.$ac_objext"
38599 if test "$GNULIB_LSTAT" != 1; then
38600 if test "$GNULIB_LSTAT" = 0; then
38601 GNULIB_LSTAT=$gl_module_indicator_condition
38603 GNULIB_LSTAT="($GNULIB_LSTAT || $gl_module_indicator_condition)"
38611 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
38618 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
38619 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
38620 # irrelevant for anonymous mappings.
38621 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
38622 if test "x$ac_cv_func_mmap" = xyes; then :
38629 # Try to allow MAP_ANONYMOUS.
38630 gl_have_mmap_anonymous=no
38631 if test $gl_have_mmap = yes; then
38632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
38633 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
38634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38635 /* end confdefs.h. */
38637 #include <sys/mman.h>
38638 #ifdef MAP_ANONYMOUS
38639 I cant identify this map
38643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38644 $EGREP "I cant identify this map" >/dev/null 2>&1; then :
38645 gl_have_mmap_anonymous=yes
38649 if test $gl_have_mmap_anonymous != yes; then
38650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38651 /* end confdefs.h. */
38653 #include <sys/mman.h>
38655 I cant identify this map
38659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38660 $EGREP "I cant identify this map" >/dev/null 2>&1; then :
38662 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
38664 gl_have_mmap_anonymous=yes
38669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
38670 $as_echo "$gl_have_mmap_anonymous" >&6; }
38671 if test $gl_have_mmap_anonymous = yes; then
38673 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
38706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
38707 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
38708 if ${gl_cv_func_open_slash+:} false; then :
38709 $as_echo_n "(cached) " >&6
38711 # Assume that if we have lstat, we can also check symlinks.
38712 if test $ac_cv_func_lstat = yes; then
38714 ln -s conftest.tmp conftest.lnk
38716 if test "$cross_compiling" = yes; then :
38719 freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
38720 gl_cv_func_open_slash="guessing no" ;;
38722 gl_cv_func_open_slash="guessing yes" ;;
38726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38727 /* end confdefs.h. */
38731 # include <unistd.h>
38737 if (open ("conftest.lnk/", O_RDONLY) != -1)
38740 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
38745 if ac_fn_c_try_run "$LINENO"; then :
38746 gl_cv_func_open_slash=yes
38748 gl_cv_func_open_slash=no
38750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38751 conftest.$ac_objext conftest.beam conftest.$ac_ext
38754 rm -f conftest.sl conftest.tmp conftest.lnk
38757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
38758 $as_echo "$gl_cv_func_open_slash" >&6; }
38759 case "$gl_cv_func_open_slash" in
38762 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
38772 if test $REPLACE_OPEN = 1; then
38781 gltests_LIBOBJS="$gltests_LIBOBJS open.$ac_objext"
38794 if test "$GNULIB_OPEN" != 1; then
38795 if test "$GNULIB_OPEN" = 0; then
38796 GNULIB_OPEN=$gl_module_indicator_condition
38798 GNULIB_OPEN="($GNULIB_OPEN || $gl_module_indicator_condition)"
38806 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
38829 if test $ac_cv_func_pipe != yes; then
38833 if test $HAVE_PIPE = 0; then
38842 gltests_LIBOBJS="$gltests_LIBOBJS pipe.$ac_objext"
38850 if test "$GNULIB_PIPE" != 1; then
38851 if test "$GNULIB_PIPE" = 0; then
38852 GNULIB_PIPE=$gl_module_indicator_condition
38854 GNULIB_PIPE="($GNULIB_PIPE || $gl_module_indicator_condition)"
38862 $as_echo "#define GNULIB_TEST_PIPE 1" >>confdefs.h
38882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
38883 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
38884 if ${gl_cv_func_stat_dir_slash+:} false; then :
38885 $as_echo_n "(cached) " >&6
38887 if test "$cross_compiling" = yes; then :
38889 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
38890 *) gl_cv_func_stat_dir_slash="guessing yes";;
38893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38894 /* end confdefs.h. */
38895 #include <sys/stat.h>
38900 struct stat st; return stat (".", &st) != stat ("./", &st);
38905 if ac_fn_c_try_run "$LINENO"; then :
38906 gl_cv_func_stat_dir_slash=yes
38908 gl_cv_func_stat_dir_slash=no
38910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38911 conftest.$ac_objext conftest.beam conftest.$ac_ext
38915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
38916 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
38917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
38918 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
38919 if ${gl_cv_func_stat_file_slash+:} false; then :
38920 $as_echo_n "(cached) " >&6
38923 # Assume that if we have lstat, we can also check symlinks.
38924 if test $ac_cv_func_lstat = yes; then
38925 ln -s conftest.tmp conftest.lnk
38927 if test "$cross_compiling" = yes; then :
38928 gl_cv_func_stat_file_slash="guessing no"
38930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38931 /* end confdefs.h. */
38932 #include <sys/stat.h>
38939 if (!stat ("conftest.tmp/", &st))
38942 if (!stat ("conftest.lnk/", &st))
38951 if ac_fn_c_try_run "$LINENO"; then :
38952 gl_cv_func_stat_file_slash=yes
38954 gl_cv_func_stat_file_slash=no
38956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38957 conftest.$ac_objext conftest.beam conftest.$ac_ext
38960 rm -f conftest.tmp conftest.lnk
38962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
38963 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
38964 case $gl_cv_func_stat_dir_slash in
38965 *no) REPLACE_STAT=1
38967 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
38970 case $gl_cv_func_stat_file_slash in
38971 *no) REPLACE_STAT=1
38973 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
38977 if test $REPLACE_STAT = 1; then
38986 gltests_LIBOBJS="$gltests_LIBOBJS stat.$ac_objext"
38998 if test "$GNULIB_STAT" != 1; then
38999 if test "$GNULIB_STAT" = 0; then
39000 GNULIB_STAT=$gl_module_indicator_condition
39002 GNULIB_STAT="($GNULIB_STAT || $gl_module_indicator_condition)"
39010 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
39015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
39016 $as_echo_n "checking for wchar_t... " >&6; }
39017 if ${gt_cv_c_wchar_t+:} false; then :
39018 $as_echo_n "(cached) " >&6
39020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39021 /* end confdefs.h. */
39022 #include <stddef.h>
39023 wchar_t foo = (wchar_t)'\0';
39032 if ac_fn_c_try_compile "$LINENO"; then :
39033 gt_cv_c_wchar_t=yes
39037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
39040 $as_echo "$gt_cv_c_wchar_t" >&6; }
39041 if test $gt_cv_c_wchar_t = yes; then
39043 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
39048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
39049 $as_echo_n "checking for wint_t... " >&6; }
39050 if ${gt_cv_c_wint_t+:} false; then :
39051 $as_echo_n "(cached) " >&6
39053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39054 /* end confdefs.h. */
39056 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
39058 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
39059 before <wchar.h>. */
39060 #include <stddef.h>
39064 wint_t foo = (wchar_t)'\0';
39073 if ac_fn_c_try_compile "$LINENO"; then :
39078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
39081 $as_echo "$gt_cv_c_wint_t" >&6; }
39082 if test $gt_cv_c_wint_t = yes; then
39084 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
39097 if test $ac_cv_func_symlink = no; then
39100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
39101 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
39102 if ${gl_cv_func_symlink_works+:} false; then :
39103 $as_echo_n "(cached) " >&6
39105 if test "$cross_compiling" = yes; then :
39106 gl_cv_func_symlink_works="guessing no"
39108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39109 /* end confdefs.h. */
39110 #include <unistd.h>
39116 if (!symlink ("a", "conftest.link/"))
39118 if (symlink ("conftest.f", "conftest.lnk2"))
39120 else if (!symlink ("a", "conftest.lnk2/"))
39128 if ac_fn_c_try_run "$LINENO"; then :
39129 gl_cv_func_symlink_works=yes
39131 gl_cv_func_symlink_works=no
39133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39134 conftest.$ac_objext conftest.beam conftest.$ac_ext
39137 rm -f conftest.f conftest.link conftest.lnk2
39139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
39140 $as_echo "$gl_cv_func_symlink_works" >&6; }
39141 if test "$gl_cv_func_symlink_works" != yes; then
39146 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
39155 gltests_LIBOBJS="$gltests_LIBOBJS symlink.$ac_objext"
39163 if test "$GNULIB_SYMLINK" != 1; then
39164 if test "$GNULIB_SYMLINK" = 0; then
39165 GNULIB_SYMLINK=$gl_module_indicator_condition
39167 GNULIB_SYMLINK="($GNULIB_SYMLINK || $gl_module_indicator_condition)"
39175 $as_echo "#define GNULIB_TEST_SYMLINK 1" >>confdefs.h
39189 if test $ac_cv_header_sys_ioctl_h = yes; then
39191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/ioctl.h> declares ioctl" >&5
39192 $as_echo_n "checking whether <sys/ioctl.h> declares ioctl... " >&6; }
39193 if ${gl_cv_decl_ioctl_in_sys_ioctl_h+:} false; then :
39194 $as_echo_n "(cached) " >&6
39196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39197 /* end confdefs.h. */
39198 #include <sys/ioctl.h>
39208 if ac_fn_c_try_compile "$LINENO"; then :
39209 gl_cv_decl_ioctl_in_sys_ioctl_h=yes
39211 gl_cv_decl_ioctl_in_sys_ioctl_h=no
39213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_ioctl_in_sys_ioctl_h" >&5
39217 $as_echo "$gl_cv_decl_ioctl_in_sys_ioctl_h" >&6; }
39237 if test $gl_cv_have_include_next = yes; then
39238 gl_cv_next_sys_ioctl_h='<'sys/ioctl.h'>'
39240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/ioctl.h>" >&5
39241 $as_echo_n "checking absolute name of <sys/ioctl.h>... " >&6; }
39242 if ${gl_cv_next_sys_ioctl_h+:} false; then :
39243 $as_echo_n "(cached) " >&6
39246 if test $ac_cv_header_sys_ioctl_h = yes; then
39249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39250 /* end confdefs.h. */
39251 #include <sys/ioctl.h>
39255 aix*) gl_absname_cpp="$ac_cpp -C" ;;
39256 *) gl_absname_cpp="$ac_cpp" ;;
39261 gl_dirsep_regex='[/\\]'
39264 gl_dirsep_regex='\/'
39267 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
39269 gl_header_literal_regex=`echo 'sys/ioctl.h' \
39270 | sed -e "$gl_make_literal_regex_sed"`
39271 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
39272 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
39277 gl_cv_next_sys_ioctl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
39278 sed -n "$gl_absolute_header_sed"`'"'
39280 gl_cv_next_sys_ioctl_h='<'sys/ioctl.h'>'
39285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_ioctl_h" >&5
39286 $as_echo "$gl_cv_next_sys_ioctl_h" >&6; }
39288 NEXT_SYS_IOCTL_H=$gl_cv_next_sys_ioctl_h
39290 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
39291 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
39292 gl_next_as_first_directive='<'sys/ioctl.h'>'
39294 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
39295 gl_next_as_first_directive=$gl_cv_next_sys_ioctl_h
39297 NEXT_AS_FIRST_DIRECTIVE_SYS_IOCTL_H=$gl_next_as_first_directive
39304 for gl_func in ioctl; do
39305 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
39306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
39307 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
39308 if eval \${$as_gl_Symbol+:} false; then :
39309 $as_echo_n "(cached) " >&6
39311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39312 /* end confdefs.h. */
39313 #include <sys/ioctl.h>
39314 /* Some platforms declare ioctl in the wrong header. */
39315 #if !(defined __GLIBC__ && !defined __UCLIBC__)
39316 # include <unistd.h>
39328 if ac_fn_c_try_compile "$LINENO"; then :
39329 eval "$as_gl_Symbol=yes"
39331 eval "$as_gl_Symbol=no"
39333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39335 eval ac_res=\$$as_gl_Symbol
39336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
39337 $as_echo "$ac_res" >&6; }
39338 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
39339 cat >>confdefs.h <<_ACEOF
39340 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
39343 eval ac_cv_have_decl_$gl_func=yes
39360 if test $gl_threads_api = posix; then
39361 gl_save_LIBS="$LIBS"
39362 LIBS="$LIBS $LIBMULTITHREAD"
39363 for ac_func in pthread_atfork
39365 ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork"
39366 if test "x$ac_cv_func_pthread_atfork" = xyes; then :
39367 cat >>confdefs.h <<_ACEOF
39368 #define HAVE_PTHREAD_ATFORK 1
39374 LIBS="$gl_save_LIBS"
39377 abs_aux_dir=`cd "$ac_aux_dir"; pwd`
39380 # Check whether --enable-valgrind-tests was given.
39381 if test "${enable_valgrind_tests+set}" = set; then :
39382 enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
39384 opt_valgrind_tests=yes
39388 # Run self-tests under valgrind?
39389 if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
39390 for ac_prog in valgrind
39392 # Extract the first word of "$ac_prog", so it can be a program name with args.
39393 set dummy $ac_prog; ac_word=$2
39394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39395 $as_echo_n "checking for $ac_word... " >&6; }
39396 if ${ac_cv_prog_VALGRIND+:} false; then :
39397 $as_echo_n "(cached) " >&6
39399 if test -n "$VALGRIND"; then
39400 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
39402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39403 for as_dir in $PATH
39406 test -z "$as_dir" && as_dir=.
39407 for ac_exec_ext in '' $ac_executable_extensions; do
39408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39409 ac_cv_prog_VALGRIND="$ac_prog"
39410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39419 VALGRIND=$ac_cv_prog_VALGRIND
39420 if test -n "$VALGRIND"; then
39421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
39422 $as_echo "$VALGRIND" >&6; }
39424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39425 $as_echo "no" >&6; }
39429 test -n "$VALGRIND" && break
39434 OPTS="-q --error-exitcode=1 --leak-check=full"
39436 if test -n "$VALGRIND" \
39437 && $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
39438 opt_valgrind_tests=yes
39439 VALGRIND="$VALGRIND $OPTS"
39441 opt_valgrind_tests=no
39445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
39446 $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
39447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
39448 $as_echo "$opt_valgrind_tests" >&6; }
39450 abs_aux_dir=`cd "$ac_aux_dir"; pwd`
39455 if test $gl_threads_api = posix; then
39456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
39457 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
39458 if ${ac_cv_lib_rt_sched_yield+:} false; then :
39459 $as_echo_n "(cached) " >&6
39461 ac_check_lib_save_LIBS=$LIBS
39463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39464 /* end confdefs.h. */
39466 /* Override any GCC internal prototype to avoid an error.
39467 Use char because int might match the return type of a GCC
39468 builtin and then its argument prototype would still apply. */
39472 char sched_yield ();
39476 return sched_yield ();
39481 if ac_fn_c_try_link "$LINENO"; then :
39482 ac_cv_lib_rt_sched_yield=yes
39484 ac_cv_lib_rt_sched_yield=no
39486 rm -f core conftest.err conftest.$ac_objext \
39487 conftest$ac_exeext conftest.$ac_ext
39488 LIBS=$ac_check_lib_save_LIBS
39490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
39491 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
39492 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
39495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
39496 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
39497 if ${ac_cv_lib_posix4_sched_yield+:} false; then :
39498 $as_echo_n "(cached) " >&6
39500 ac_check_lib_save_LIBS=$LIBS
39501 LIBS="-lposix4 $LIBS"
39502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39503 /* end confdefs.h. */
39505 /* Override any GCC internal prototype to avoid an error.
39506 Use char because int might match the return type of a GCC
39507 builtin and then its argument prototype would still apply. */
39511 char sched_yield ();
39515 return sched_yield ();
39520 if ac_fn_c_try_link "$LINENO"; then :
39521 ac_cv_lib_posix4_sched_yield=yes
39523 ac_cv_lib_posix4_sched_yield=no
39525 rm -f core conftest.err conftest.$ac_objext \
39526 conftest$ac_exeext conftest.$ac_ext
39527 LIBS=$ac_check_lib_save_LIBS
39529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
39530 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
39531 if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then :
39550 LIBTESTS_LIBDEPS="$gltests_libdeps"
39554 # Check whether --enable-gcc-warnings was given.
39555 if test "${enable_gcc_warnings+set}" = set; then :
39556 enableval=$enable_gcc_warnings; case $enableval in
39558 *) as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
39560 gl_gcc_warnings=$enableval
39567 if test "$gl_gcc_warnings" = yes; then
39568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Werror" >&5
39569 $as_echo_n "checking whether compiler handles -Werror... " >&6; }
39570 if ${gl_cv_warn__Werror+:} false; then :
39571 $as_echo_n "(cached) " >&6
39574 gl_save_CPPFLAGS="$CPPFLAGS"
39575 CPPFLAGS="${CPPFLAGS} -Werror"
39576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39577 /* end confdefs.h. */
39587 if ac_fn_c_try_cpp "$LINENO"; then :
39588 gl_cv_warn__Werror=yes
39590 gl_cv_warn__Werror=no
39592 rm -f conftest.err conftest.i conftest.$ac_ext
39593 CPPFLAGS="$gl_save_CPPFLAGS"
39596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Werror" >&5
39597 $as_echo "$gl_cv_warn__Werror" >&6; }
39598 if test "x$gl_cv_warn__Werror" = xyes; then :
39599 as_fn_append WERROR_CFLAGS " -Werror"
39602 as_gl_Warn=`$as_echo "gl_cv_warn_-Wframe-larger-than=5120" | $as_tr_sh`
39603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wframe-larger-than=5120" >&5
39604 $as_echo_n "checking whether compiler handles -Wframe-larger-than=5120... " >&6; }
39605 if eval \${$as_gl_Warn+:} false; then :
39606 $as_echo_n "(cached) " >&6
39609 gl_save_CPPFLAGS="$CPPFLAGS"
39610 CPPFLAGS="${CPPFLAGS} -Wframe-larger-than=5120"
39611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39612 /* end confdefs.h. */
39622 if ac_fn_c_try_cpp "$LINENO"; then :
39623 eval "$as_gl_Warn=yes"
39625 eval "$as_gl_Warn=no"
39627 rm -f conftest.err conftest.i conftest.$ac_ext
39628 CPPFLAGS="$gl_save_CPPFLAGS"
39631 eval ac_res=\$$as_gl_Warn
39632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
39633 $as_echo "$ac_res" >&6; }
39634 if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
39635 as_fn_append WSTACK_CFLAGS " -Wframe-larger-than=5120"
39639 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
39640 nw="$nw -Wc++-compat" # We don't care about C++ compilers
39641 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
39642 nw="$nw -Wtraditional" # Warns on #elif which we use often
39643 nw="$nw -Wlogical-op" # Too many false positives
39644 nw="$nw -Wold-style-definition" #
39645 nw="$nw -Wpadded" # Our structs are not padded
39646 nw="$nw -Wunreachable-code" # Too many false positives
39647 nw="$nw -Wtraditional-conversion" # Too many warnings for now
39648 nw="$nw -Wcast-qual" # Too many warnings for now
39649 nw="$nw -Waggregate-return" # Too many warnings for now
39650 nw="$nw -Wshadow" # Too many warnings for now
39651 nw="$nw -Wswitch-default" # Too many warnings for now
39652 nw="$nw -Wswitch-enum" # Too many warnings for now
39653 nw="$nw -Wconversion" # Too many warnings for now
39654 nw="$nw -Wsign-conversion" # Too many warnings for now
39655 nw="$nw -Wformat-y2k" # Too many warnings for now
39656 nw="$nw -Wvla" # There is no point to avoid C99 variable length arrays
39657 nw="$nw -Wformat-nonliteral" # Incompatible with gettext _()
39658 nw="$nw -Wunsafe-loop-optimizations"
39659 nw="$nw -Wstrict-overflow"
39660 nw="$nw -Wmissing-noreturn"
39664 if test -n "$GCC"; then
39666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
39667 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
39668 if ${gl_cv_cc_nomfi_supported+:} false; then :
39669 $as_echo_n "(cached) " >&6
39672 gl_save_CFLAGS="$CFLAGS"
39673 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
39674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39675 /* end confdefs.h. */
39685 if ac_fn_c_try_compile "$LINENO"; then :
39686 gl_cv_cc_nomfi_supported=yes
39688 gl_cv_cc_nomfi_supported=no
39690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39691 CFLAGS="$gl_save_CFLAGS"
39694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
39695 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
39697 if test "$gl_cv_cc_nomfi_supported" = yes; then
39698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
39699 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
39700 if ${gl_cv_cc_nomfi_needed+:} false; then :
39701 $as_echo_n "(cached) " >&6
39704 gl_save_CFLAGS="$CFLAGS"
39705 CFLAGS="$CFLAGS -W -Werror"
39706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39707 /* end confdefs.h. */
39710 typedef struct { int a; int b; } s_t;
39722 if ac_fn_c_try_compile "$LINENO"; then :
39723 gl_cv_cc_nomfi_needed=no
39725 gl_cv_cc_nomfi_needed=yes
39727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39728 CFLAGS="$gl_save_CFLAGS"
39732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
39733 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
39738 for gl_manywarn_item in \
39742 -Wformat-nonliteral \
39743 -Wformat-security \
39745 -Wmissing-include-dirs \
39749 -Wunknown-pragmas \
39750 -Wstrict-aliasing \
39751 -Wstrict-overflow \
39755 -Wtraditional-conversion \
39756 -Wdeclaration-after-statement \
39759 -Wunsafe-loop-optimizations \
39761 -Wbad-function-cast \
39767 -Wsign-conversion \
39769 -Waggregate-return \
39770 -Wstrict-prototypes \
39771 -Wold-style-definition \
39772 -Wmissing-prototypes \
39773 -Wmissing-declarations \
39774 -Wmissing-noreturn \
39775 -Wmissing-format-attribute \
39778 -Wredundant-decls \
39780 -Wunreachable-code \
39785 -Wvolatile-register-var \
39786 -Wdisabled-optimization \
39787 -Wstack-protector \
39788 -Woverlength-strings \
39789 -Wbuiltin-macro-redefined \
39791 -Wpacked-bitfield-compat \
39794 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
39796 # The following are not documented in the manual but are included in
39797 # output from gcc --help=warnings.
39798 for gl_manywarn_item in \
39800 -Wcoverage-mismatch \
39804 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
39806 # More warnings from gcc 4.6.2 --help=warnings.
39807 for gl_manywarn_item in \
39811 -Wdeprecated-declarations \
39813 -Wdouble-promotion \
39816 -Wformat-contains-nul \
39817 -Wformat-extra-args \
39818 -Wformat-zero-length \
39823 -Wpointer-to-int-cast \
39825 -Wsuggest-attribute=const \
39826 -Wsuggest-attribute=noreturn \
39827 -Wsuggest-attribute=pure \
39830 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
39833 # Disable the missing-field-initializers warning if needed
39834 if test "$gl_cv_cc_nomfi_needed" = yes; then
39835 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
39838 ws=$gl_manywarn_set
39846 *" $gl_warn_item "*)
39849 gl_warn_set="$gl_warn_set $gl_warn_item"
39856 as_gl_Warn=`$as_echo "gl_cv_warn_$w" | $as_tr_sh`
39857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles $w" >&5
39858 $as_echo_n "checking whether compiler handles $w... " >&6; }
39859 if eval \${$as_gl_Warn+:} false; then :
39860 $as_echo_n "(cached) " >&6
39863 gl_save_CPPFLAGS="$CPPFLAGS"
39864 CPPFLAGS="${CPPFLAGS} $w"
39865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39866 /* end confdefs.h. */
39876 if ac_fn_c_try_cpp "$LINENO"; then :
39877 eval "$as_gl_Warn=yes"
39879 eval "$as_gl_Warn=no"
39881 rm -f conftest.err conftest.i conftest.$ac_ext
39882 CPPFLAGS="$gl_save_CPPFLAGS"
39885 eval ac_res=\$$as_gl_Warn
39886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
39887 $as_echo "$ac_res" >&6; }
39888 if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
39889 as_fn_append WARN_CFLAGS " $w"
39894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-missing-field-initializers" >&5
39895 $as_echo_n "checking whether compiler handles -Wno-missing-field-initializers... " >&6; }
39896 if ${gl_cv_warn__Wno_missing_field_initializers+:} false; then :
39897 $as_echo_n "(cached) " >&6
39900 gl_save_CPPFLAGS="$CPPFLAGS"
39901 CPPFLAGS="${CPPFLAGS} -Wno-missing-field-initializers"
39902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39903 /* end confdefs.h. */
39913 if ac_fn_c_try_cpp "$LINENO"; then :
39914 gl_cv_warn__Wno_missing_field_initializers=yes
39916 gl_cv_warn__Wno_missing_field_initializers=no
39918 rm -f conftest.err conftest.i conftest.$ac_ext
39919 CPPFLAGS="$gl_save_CPPFLAGS"
39922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_missing_field_initializers" >&5
39923 $as_echo "$gl_cv_warn__Wno_missing_field_initializers" >&6; }
39924 if test "x$gl_cv_warn__Wno_missing_field_initializers" = xyes; then :
39925 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
39928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-sign-compare" >&5
39929 $as_echo_n "checking whether compiler handles -Wno-sign-compare... " >&6; }
39930 if ${gl_cv_warn__Wno_sign_compare+:} false; then :
39931 $as_echo_n "(cached) " >&6
39934 gl_save_CPPFLAGS="$CPPFLAGS"
39935 CPPFLAGS="${CPPFLAGS} -Wno-sign-compare"
39936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39937 /* end confdefs.h. */
39947 if ac_fn_c_try_cpp "$LINENO"; then :
39948 gl_cv_warn__Wno_sign_compare=yes
39950 gl_cv_warn__Wno_sign_compare=no
39952 rm -f conftest.err conftest.i conftest.$ac_ext
39953 CPPFLAGS="$gl_save_CPPFLAGS"
39956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_sign_compare" >&5
39957 $as_echo "$gl_cv_warn__Wno_sign_compare" >&6; }
39958 if test "x$gl_cv_warn__Wno_sign_compare" = xyes; then :
39959 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
39961 # Too many warnings for now
39962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-pointer-sign" >&5
39963 $as_echo_n "checking whether compiler handles -Wno-pointer-sign... " >&6; }
39964 if ${gl_cv_warn__Wno_pointer_sign+:} false; then :
39965 $as_echo_n "(cached) " >&6
39968 gl_save_CPPFLAGS="$CPPFLAGS"
39969 CPPFLAGS="${CPPFLAGS} -Wno-pointer-sign"
39970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39971 /* end confdefs.h. */
39981 if ac_fn_c_try_cpp "$LINENO"; then :
39982 gl_cv_warn__Wno_pointer_sign=yes
39984 gl_cv_warn__Wno_pointer_sign=no
39986 rm -f conftest.err conftest.i conftest.$ac_ext
39987 CPPFLAGS="$gl_save_CPPFLAGS"
39990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_pointer_sign" >&5
39991 $as_echo "$gl_cv_warn__Wno_pointer_sign" >&6; }
39992 if test "x$gl_cv_warn__Wno_pointer_sign" = xyes; then :
39993 as_fn_append WARN_CFLAGS " -Wno-pointer-sign"
39995 # Too many warnings for now
39996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-unused-parameter" >&5
39997 $as_echo_n "checking whether compiler handles -Wno-unused-parameter... " >&6; }
39998 if ${gl_cv_warn__Wno_unused_parameter+:} false; then :
39999 $as_echo_n "(cached) " >&6
40002 gl_save_CPPFLAGS="$CPPFLAGS"
40003 CPPFLAGS="${CPPFLAGS} -Wno-unused-parameter"
40004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40005 /* end confdefs.h. */
40015 if ac_fn_c_try_cpp "$LINENO"; then :
40016 gl_cv_warn__Wno_unused_parameter=yes
40018 gl_cv_warn__Wno_unused_parameter=no
40020 rm -f conftest.err conftest.i conftest.$ac_ext
40021 CPPFLAGS="$gl_save_CPPFLAGS"
40024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_unused_parameter" >&5
40025 $as_echo "$gl_cv_warn__Wno_unused_parameter" >&6; }
40026 if test "x$gl_cv_warn__Wno_unused_parameter" = xyes; then :
40027 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
40029 # Too many warnings for now
40030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-unused-parameter" >&5
40031 $as_echo_n "checking whether compiler handles -Wno-unused-parameter... " >&6; }
40032 if ${gl_cv_warn__Wno_unused_parameter+:} false; then :
40033 $as_echo_n "(cached) " >&6
40036 gl_save_CPPFLAGS="$CPPFLAGS"
40037 CPPFLAGS="${CPPFLAGS} -Wno-unused-parameter"
40038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40039 /* end confdefs.h. */
40049 if ac_fn_c_try_cpp "$LINENO"; then :
40050 gl_cv_warn__Wno_unused_parameter=yes
40052 gl_cv_warn__Wno_unused_parameter=no
40054 rm -f conftest.err conftest.i conftest.$ac_ext
40055 CPPFLAGS="$gl_save_CPPFLAGS"
40058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_unused_parameter" >&5
40059 $as_echo "$gl_cv_warn__Wno_unused_parameter" >&6; }
40060 if test "x$gl_cv_warn__Wno_unused_parameter" = xyes; then :
40061 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
40063 # Too many warnings for now
40064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-stack-protector" >&5
40065 $as_echo_n "checking whether compiler handles -Wno-stack-protector... " >&6; }
40066 if ${gl_cv_warn__Wno_stack_protector+:} false; then :
40067 $as_echo_n "(cached) " >&6
40070 gl_save_CPPFLAGS="$CPPFLAGS"
40071 CPPFLAGS="${CPPFLAGS} -Wno-stack-protector"
40072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40073 /* end confdefs.h. */
40083 if ac_fn_c_try_cpp "$LINENO"; then :
40084 gl_cv_warn__Wno_stack_protector=yes
40086 gl_cv_warn__Wno_stack_protector=no
40088 rm -f conftest.err conftest.i conftest.$ac_ext
40089 CPPFLAGS="$gl_save_CPPFLAGS"
40092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_stack_protector" >&5
40093 $as_echo "$gl_cv_warn__Wno_stack_protector" >&6; }
40094 if test "x$gl_cv_warn__Wno_stack_protector" = xyes; then :
40095 as_fn_append WARN_CFLAGS " -Wno-stack-protector"
40097 # Some functions cannot be protected
40098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-int-to-pointer-cast" >&5
40099 $as_echo_n "checking whether compiler handles -Wno-int-to-pointer-cast... " >&6; }
40100 if ${gl_cv_warn__Wno_int_to_pointer_cast+:} false; then :
40101 $as_echo_n "(cached) " >&6
40104 gl_save_CPPFLAGS="$CPPFLAGS"
40105 CPPFLAGS="${CPPFLAGS} -Wno-int-to-pointer-cast"
40106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40107 /* end confdefs.h. */
40117 if ac_fn_c_try_cpp "$LINENO"; then :
40118 gl_cv_warn__Wno_int_to_pointer_cast=yes
40120 gl_cv_warn__Wno_int_to_pointer_cast=no
40122 rm -f conftest.err conftest.i conftest.$ac_ext
40123 CPPFLAGS="$gl_save_CPPFLAGS"
40126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_int_to_pointer_cast" >&5
40127 $as_echo "$gl_cv_warn__Wno_int_to_pointer_cast" >&6; }
40128 if test "x$gl_cv_warn__Wno_int_to_pointer_cast" = xyes; then :
40129 as_fn_append WARN_CFLAGS " -Wno-int-to-pointer-cast"
40131 # Some files cannot be compiled with that (gl_fd_to_handle)
40132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -fdiagnostics-show-option" >&5
40133 $as_echo_n "checking whether compiler handles -fdiagnostics-show-option... " >&6; }
40134 if ${gl_cv_warn__fdiagnostics_show_option+:} false; then :
40135 $as_echo_n "(cached) " >&6
40138 gl_save_CPPFLAGS="$CPPFLAGS"
40139 CPPFLAGS="${CPPFLAGS} -fdiagnostics-show-option"
40140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40141 /* end confdefs.h. */
40151 if ac_fn_c_try_cpp "$LINENO"; then :
40152 gl_cv_warn__fdiagnostics_show_option=yes
40154 gl_cv_warn__fdiagnostics_show_option=no
40156 rm -f conftest.err conftest.i conftest.$ac_ext
40157 CPPFLAGS="$gl_save_CPPFLAGS"
40160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__fdiagnostics_show_option" >&5
40161 $as_echo "$gl_cv_warn__fdiagnostics_show_option" >&6; }
40162 if test "x$gl_cv_warn__fdiagnostics_show_option" = xyes; then :
40163 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
40168 # Export things for */configure.ac.
40169 export WERROR_CFLAGS
40170 export WSTACK_CFLAGS
40175 $as_echo "#define GNUTLS_COMPAT_H 1" >>confdefs.h
40180 subdirs="$subdirs lib"
40182 subdirs="$subdirs libextra"
40185 ac_config_files="$ac_config_files guile/pre-inst-guile"
40187 ac_config_files="$ac_config_files Makefile doc/Makefile doc/credentials/Makefile doc/credentials/openpgp/Makefile doc/credentials/srp/Makefile doc/credentials/x509/Makefile doc/cyclo/Makefile doc/doxygen/Doxyfile doc/examples/Makefile doc/manpages/Makefile doc/reference/Makefile doc/scripts/Makefile gl/Makefile gl/tests/Makefile guile/Makefile guile/modules/Makefile guile/src/Makefile guile/tests/Makefile src/Makefile src/cfg/Makefile src/cfg/platon/Makefile src/cfg/platon/str/Makefile tests/Makefile tests/key-id/Makefile tests/dsa/Makefile tests/openpgp-certs/Makefile tests/safe-renegotiation/Makefile tests/pathlen/Makefile tests/pkcs1-padding/Makefile tests/pkcs12-decode/Makefile tests/pkcs8-decode/Makefile tests/rsa-md5-collision/Makefile tests/sha2/Makefile tests/userid/Makefile tests/suite/Makefile"
40190 cat >confcache <<\_ACEOF
40191 # This file is a shell script that caches the results of configure
40192 # tests run on this system so they can be shared between configure
40193 # scripts and configure runs, see configure's option --config-cache.
40194 # It is not useful on other systems. If it contains results you don't
40195 # want to keep, you may remove or edit it.
40197 # config.status only pays attention to the cache file if you give it
40198 # the --recheck option to rerun configure.
40200 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40201 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40202 # following values.
40206 # The following way of writing the cache mishandles newlines in values,
40207 # but we know of no workaround that is simple, portable, and efficient.
40208 # So, we kill variables containing newlines.
40209 # Ultrix sh set writes to stderr and can't be redirected directly,
40210 # and sets the high bit in the cache file unless we assign to the vars.
40212 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
40213 eval ac_val=\$$ac_var
40217 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
40218 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
40221 _ | IFS | as_nl) ;; #(
40222 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
40223 *) { eval $ac_var=; unset $ac_var;} ;;
40229 case $as_nl`(ac_space=' '; set) 2>&1` in #(
40230 *${as_nl}ac_space=\ *)
40231 # `set' does not quote correctly, so add quotes: double-quote
40232 # substitution turns \\\\ into \\, and sed turns \\ into \.
40235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40238 # `set' quotes correctly as required by POSIX, so do not add quotes.
40239 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
40248 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40250 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40252 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
40253 if test -w "$cache_file"; then
40254 if test "x$cache_file" != "x/dev/null"; then
40255 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
40256 $as_echo "$as_me: updating cache $cache_file" >&6;}
40257 if test ! -f "$cache_file" || test -h "$cache_file"; then
40258 cat confcache >"$cache_file"
40260 case $cache_file in #(
40262 mv -f confcache "$cache_file"$$ &&
40263 mv -f "$cache_file"$$ "$cache_file" ;; #(
40265 mv -f confcache "$cache_file" ;;
40270 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
40271 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
40276 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40277 # Let make expand exec_prefix.
40278 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40280 DEFS=-DHAVE_CONFIG_H
40285 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40286 # 1. Remove the extension, and $U if already installed.
40287 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
40288 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
40289 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
40290 # will be set to the directory where LIBOBJS objects are built.
40291 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
40292 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
40294 LIBOBJS=$ac_libobjs
40296 LTLIBOBJS=$ac_ltlibobjs
40299 if test -n "$EXEEXT"; then
40301 am__EXEEXT_FALSE='#'
40303 am__EXEEXT_TRUE='#'
40307 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40308 as_fn_error $? "conditional \"AMDEP\" was never defined.
40309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40311 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40312 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
40313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40315 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
40316 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
40317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40319 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
40320 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
40321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40323 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
40324 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
40325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40327 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
40328 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
40329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40331 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
40332 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
40333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40335 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
40336 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
40337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40339 if test -z "${ENABLE_CXX_TRUE}" && test -z "${ENABLE_CXX_FALSE}"; then
40340 as_fn_error $? "conditional \"ENABLE_CXX\" was never defined.
40341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40343 if test -z "${WANT_TEST_SUITE_TRUE}" && test -z "${WANT_TEST_SUITE_FALSE}"; then
40344 as_fn_error $? "conditional \"WANT_TEST_SUITE\" was never defined.
40345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40347 if test -z "${ENABLE_NETTLE_TRUE}" && test -z "${ENABLE_NETTLE_FALSE}"; then
40348 as_fn_error $? "conditional \"ENABLE_NETTLE\" was never defined.
40349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40351 if test -z "${ENABLE_MINITASN1_TRUE}" && test -z "${ENABLE_MINITASN1_FALSE}"; then
40352 as_fn_error $? "conditional \"ENABLE_MINITASN1\" was never defined.
40353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40355 if test -z "${USE_LZO_TRUE}" && test -z "${USE_LZO_FALSE}"; then
40356 as_fn_error $? "conditional \"USE_LZO\" was never defined.
40357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40359 if test -z "${ENABLE_OPRFI_TRUE}" && test -z "${ENABLE_OPRFI_FALSE}"; then
40360 as_fn_error $? "conditional \"ENABLE_OPRFI\" was never defined.
40361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40363 if test -z "${ENABLE_SRP_TRUE}" && test -z "${ENABLE_SRP_FALSE}"; then
40364 as_fn_error $? "conditional \"ENABLE_SRP\" was never defined.
40365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40367 if test -z "${ENABLE_PSK_TRUE}" && test -z "${ENABLE_PSK_FALSE}"; then
40368 as_fn_error $? "conditional \"ENABLE_PSK\" was never defined.
40369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40371 if test -z "${ENABLE_ANON_TRUE}" && test -z "${ENABLE_ANON_FALSE}"; then
40372 as_fn_error $? "conditional \"ENABLE_ANON\" was never defined.
40373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40375 if test -z "${ENABLE_PKI_TRUE}" && test -z "${ENABLE_PKI_FALSE}"; then
40376 as_fn_error $? "conditional \"ENABLE_PKI\" was never defined.
40377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40379 if test -z "${ENABLE_OPENPGP_TRUE}" && test -z "${ENABLE_OPENPGP_FALSE}"; then
40380 as_fn_error $? "conditional \"ENABLE_OPENPGP\" was never defined.
40381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40383 if test -z "${ENABLE_SESSION_TICKET_TRUE}" && test -z "${ENABLE_SESSION_TICKET_FALSE}"; then
40384 as_fn_error $? "conditional \"ENABLE_SESSION_TICKET\" was never defined.
40385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40387 if test -z "${ENABLE_OPENSSL_TRUE}" && test -z "${ENABLE_OPENSSL_FALSE}"; then
40388 as_fn_error $? "conditional \"ENABLE_OPENSSL\" was never defined.
40389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40391 if test -z "${HAVE_FORK_TRUE}" && test -z "${HAVE_FORK_FALSE}"; then
40392 as_fn_error $? "conditional \"HAVE_FORK\" was never defined.
40393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40395 if test -z "${ENABLE_PKCS11_TRUE}" && test -z "${ENABLE_PKCS11_FALSE}"; then
40396 as_fn_error $? "conditional \"ENABLE_PKCS11\" was never defined.
40397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40399 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
40400 as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
40401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40403 if test -z "${HAVE_GCC_GNU89_INLINE_OPTION_TRUE}" && test -z "${HAVE_GCC_GNU89_INLINE_OPTION_FALSE}"; then
40404 as_fn_error $? "conditional \"HAVE_GCC_GNU89_INLINE_OPTION\" was never defined.
40405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40407 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
40408 as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
40409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40411 if test -z "${HAVE_LIBCFG_TRUE}" && test -z "${HAVE_LIBCFG_FALSE}"; then
40412 as_fn_error $? "conditional \"HAVE_LIBCFG\" was never defined.
40413 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40415 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
40416 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
40417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40419 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
40420 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
40421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40423 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
40424 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
40425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40427 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
40428 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
40429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40431 CONFIG_INCLUDE=config.h
40433 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
40434 as_fn_error $? "conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
40435 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40437 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
40438 as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
40439 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40441 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
40442 as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
40443 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40445 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
40446 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
40447 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40449 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
40450 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
40451 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40453 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
40454 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
40455 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40461 if test -n "$gl_LIBOBJS"; then
40462 # Remove the extension.
40463 sed_drop_objext='s/\.o$//;s/\.obj$//'
40464 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
40465 gl_libobjs="$gl_libobjs $i.$ac_objext"
40466 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
40469 gl_LIBOBJS=$gl_libobjs
40471 gl_LTLIBOBJS=$gl_ltlibobjs
40479 if test -n "$gltests_LIBOBJS"; then
40480 # Remove the extension.
40481 sed_drop_objext='s/\.o$//;s/\.obj$//'
40482 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
40483 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
40484 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
40487 gltests_LIBOBJS=$gltests_libobjs
40489 gltests_LTLIBOBJS=$gltests_ltlibobjs
40493 : "${CONFIG_STATUS=./config.status}"
40495 ac_clean_files_save=$ac_clean_files
40496 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
40498 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
40500 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
40502 # Generated by $as_me.
40503 # Run this file to recreate the current configuration.
40504 # Compiler output produced by configure, useful for debugging
40505 # configure, is in config.log if it exists.
40508 ac_cs_recheck=false
40511 SHELL=\${CONFIG_SHELL-$SHELL}
40514 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
40515 ## -------------------- ##
40516 ## M4sh Initialization. ##
40517 ## -------------------- ##
40519 # Be more Bourne compatible
40520 DUALCASE=1; export DUALCASE # for MKS sh
40521 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
40524 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
40525 # is contrary to our usage. Disable this feature.
40526 alias -g '${1+"$@"}'='"$@"'
40527 setopt NO_GLOB_SUBST
40529 case `(set -o) 2>/dev/null` in #(
40541 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40542 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40543 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40544 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
40545 # Prefer a ksh shell builtin over an external printf program on Solaris,
40546 # but without wasting forks for bash or zsh.
40547 if test -z "$BASH_VERSION$ZSH_VERSION" \
40548 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
40549 as_echo='print -r --'
40550 as_echo_n='print -rn --'
40551 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
40552 as_echo='printf %s\n'
40553 as_echo_n='printf %s'
40555 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
40556 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
40557 as_echo_n='/usr/ucb/echo -n'
40559 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
40560 as_echo_n_body='eval
40564 expr "X$arg" : "X\\(.*\\)$as_nl";
40565 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
40567 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
40569 export as_echo_n_body
40570 as_echo_n='sh -c $as_echo_n_body as_echo'
40572 export as_echo_body
40573 as_echo='sh -c $as_echo_body as_echo'
40576 # The user is always right.
40577 if test "${PATH_SEPARATOR+set}" != set; then
40579 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
40580 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
40587 # We need space, tab and new line, in precisely that order. Quoting is
40588 # there to prevent editors from complaining about space-tab.
40589 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
40590 # splitting by setting IFS to empty value.)
40593 # Find who we are. Look in the path if we contain no directory separator.
40596 *[\\/]* ) as_myself=$0 ;;
40597 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40598 for as_dir in $PATH
40601 test -z "$as_dir" && as_dir=.
40602 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40608 # We did not find ourselves, most probably we were run as `sh COMMAND'
40609 # in which case we are not to be found in the path.
40610 if test "x$as_myself" = x; then
40613 if test ! -f "$as_myself"; then
40614 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
40618 # Unset variables that we do not need and which cause bugs (e.g. in
40619 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
40620 # suppresses any "Segmentation fault" message there. '((' could
40621 # trigger a bug in pdksh 5.2.14.
40622 for as_var in BASH_ENV ENV MAIL MAILPATH
40623 do eval test x\${$as_var+set} = xset \
40624 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
40637 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
40640 # as_fn_error STATUS ERROR [LINENO LOG_FD]
40641 # ----------------------------------------
40642 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
40643 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
40644 # script with STATUS, using 1 if that was 0.
40647 as_status=$1; test $as_status -eq 0 && as_status=1
40649 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
40650 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
40652 $as_echo "$as_me: error: $2" >&2
40653 as_fn_exit $as_status
40657 # as_fn_set_status STATUS
40658 # -----------------------
40659 # Set $? to STATUS, without forking.
40660 as_fn_set_status ()
40663 } # as_fn_set_status
40665 # as_fn_exit STATUS
40666 # -----------------
40667 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
40671 as_fn_set_status $1
40677 # Portably unset VAR.
40680 { eval $1=; unset $1;}
40682 as_unset=as_fn_unset
40683 # as_fn_append VAR VALUE
40684 # ----------------------
40685 # Append the text in VALUE to the end of the definition contained in VAR. Take
40686 # advantage of any shell optimizations that allow amortized linear growth over
40687 # repeated appends, instead of the typical quadratic growth present in naive
40689 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
40690 eval 'as_fn_append ()
40701 # as_fn_arith ARG...
40702 # ------------------
40703 # Perform arithmetic evaluation on the ARGs, and store the result in the
40704 # global $as_val. Take advantage of shells that can avoid forks. The arguments
40705 # must be portable across $(()) and expr.
40706 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
40707 eval 'as_fn_arith ()
40714 as_val=`expr "$@" || test $? -eq 1`
40719 if expr a : '\(a\)' >/dev/null 2>&1 &&
40720 test "X`expr 00001 : '.*\(...\)'`" = X001; then
40726 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
40727 as_basename=basename
40732 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
40738 as_me=`$as_basename -- "$0" ||
40739 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40740 X"$0" : 'X\(//\)$' \| \
40741 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
40743 sed '/^.*\/\([^/][^/]*\)\/*$/{
40757 # Avoid depending upon Character Ranges.
40758 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40759 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40760 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40761 as_cr_digits='0123456789'
40762 as_cr_alnum=$as_cr_Letters$as_cr_digits
40764 ECHO_C= ECHO_N= ECHO_T=
40765 case `echo -n x` in #(((((
40767 case `echo 'xy\c'` in
40768 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
40770 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
40777 rm -f conf$$ conf$$.exe conf$$.file
40778 if test -d conf$$.dir; then
40779 rm -f conf$$.dir/conf$$.file
40782 mkdir conf$$.dir 2>/dev/null
40784 if (echo >conf$$.file) 2>/dev/null; then
40785 if ln -s conf$$.file conf$$ 2>/dev/null; then
40787 # ... but there are two gotchas:
40788 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
40789 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
40790 # In both cases, we have to default to `cp -p'.
40791 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
40793 elif ln conf$$.file conf$$ 2>/dev/null; then
40801 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
40802 rmdir conf$$.dir 2>/dev/null
40807 # Create "$as_dir" as a directory, including parents if necessary.
40812 -*) as_dir=./$as_dir;;
40814 test -d "$as_dir" || eval $as_mkdir_p || {
40818 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
40819 *) as_qdir=$as_dir;;
40821 as_dirs="'$as_qdir' $as_dirs"
40822 as_dir=`$as_dirname -- "$as_dir" ||
40823 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40824 X"$as_dir" : 'X\(//\)[^/]' \| \
40825 X"$as_dir" : 'X\(//\)$' \| \
40826 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40827 $as_echo X"$as_dir" |
40828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40832 /^X\(\/\/\)[^/].*/{
40845 test -d "$as_dir" && break
40847 test -z "$as_dirs" || eval "mkdir $as_dirs"
40848 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
40852 if mkdir -p . 2>/dev/null; then
40853 as_mkdir_p='mkdir -p "$as_dir"'
40855 test -d ./-p && rmdir ./-p
40859 if test -x / >/dev/null 2>&1; then
40860 as_test_x='test -x'
40862 if ls -dL / >/dev/null 2>&1; then
40869 if test -d "$1"; then
40875 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
40876 ???[sx]*):;;*)false;;esac;fi
40880 as_executable_p=$as_test_x
40882 # Sed expression to map a string onto a valid CPP name.
40883 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
40885 # Sed expression to map a string onto a valid variable name.
40886 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
40890 ## ----------------------------------- ##
40891 ## Main body of $CONFIG_STATUS script. ##
40892 ## ----------------------------------- ##
40894 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
40896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40897 # Save the log message, to keep $0 and so on meaningful, and to
40898 # report actual input values of CONFIG_FILES etc. instead of their
40899 # values after options handling.
40901 This file was extended by GnuTLS $as_me 2.12.20, which was
40902 generated by GNU Autoconf 2.68. Invocation command line was
40904 CONFIG_FILES = $CONFIG_FILES
40905 CONFIG_HEADERS = $CONFIG_HEADERS
40906 CONFIG_LINKS = $CONFIG_LINKS
40907 CONFIG_COMMANDS = $CONFIG_COMMANDS
40910 on `(hostname || uname -n) 2>/dev/null | sed 1q`
40915 case $ac_config_files in *"
40916 "*) set x $ac_config_files; shift; ac_config_files=$*;;
40919 case $ac_config_headers in *"
40920 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
40924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40925 # Files that config.status was made for.
40926 config_files="$ac_config_files"
40927 config_headers="$ac_config_headers"
40928 config_links="$ac_config_links"
40929 config_commands="$ac_config_commands"
40933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40935 \`$as_me' instantiates files and other configuration actions
40936 from templates according to the current configuration. Unless the files
40937 and actions are specified as TAGs, all are instantiated by default.
40939 Usage: $0 [OPTION]... [TAG]...
40941 -h, --help print this help, then exit
40942 -V, --version print version number and configuration settings, then exit
40943 --config print configuration, then exit
40944 -q, --quiet, --silent
40945 do not print progress messages
40946 -d, --debug don't remove temporary files
40947 --recheck update $as_me by reconfiguring in the same conditions
40948 --file=FILE[:TEMPLATE]
40949 instantiate the configuration file FILE
40950 --header=FILE[:TEMPLATE]
40951 instantiate the configuration header FILE
40953 Configuration files:
40956 Configuration headers:
40959 Configuration links:
40962 Configuration commands:
40965 Report bugs to <bug-gnutls@gnu.org>."
40968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40969 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40971 GnuTLS config.status 2.12.20
40972 configured by $0, generated by GNU Autoconf 2.68,
40973 with options \\"\$ac_cs_config\\"
40975 Copyright (C) 2010 Free Software Foundation, Inc.
40976 This config.status script is free software; the Free Software Foundation
40977 gives unlimited permission to copy, distribute and modify it."
40984 test -n "\$AWK" || AWK=awk
40987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40988 # The default lists apply if the user does not specify any file.
40994 ac_option=`expr "X$1" : 'X\([^=]*\)='`
40995 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
40999 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41011 # Handling of the options.
41012 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41014 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41015 $as_echo "$ac_cs_version"; exit ;;
41016 --config | --confi | --conf | --con | --co | --c )
41017 $as_echo "$ac_cs_config"; exit ;;
41018 --debug | --debu | --deb | --de | --d | -d )
41020 --file | --fil | --fi | --f )
41023 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41024 '') as_fn_error $? "missing file argument" ;;
41026 as_fn_append CONFIG_FILES " '$ac_optarg'"
41027 ac_need_defaults=false;;
41028 --header | --heade | --head | --hea )
41031 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41033 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
41034 ac_need_defaults=false;;
41036 # Conflict between --help and --header
41037 as_fn_error $? "ambiguous option: \`$1'
41038 Try \`$0 --help' for more information.";;
41039 --help | --hel | -h )
41040 $as_echo "$ac_cs_usage"; exit ;;
41041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41042 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41045 # This is an error.
41046 -*) as_fn_error $? "unrecognized option: \`$1'
41047 Try \`$0 --help' for more information." ;;
41049 *) as_fn_append ac_config_targets " $1"
41050 ac_need_defaults=false ;;
41056 ac_configure_extra_args=
41058 if $ac_cs_silent; then
41060 ac_configure_extra_args="$ac_configure_extra_args --silent"
41064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41065 if \$ac_cs_recheck; then
41066 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41068 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
41069 CONFIG_SHELL='$SHELL'
41070 export CONFIG_SHELL
41075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41079 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41080 ## Running $as_me. ##
41086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41090 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41093 # The HP-UX ksh and POSIX shell print the target directory to stdout
41094 # if CDPATH is set.
41095 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41097 sed_quote_subst='$sed_quote_subst'
41098 double_quote_subst='$double_quote_subst'
41099 delay_variable_subst='$delay_variable_subst'
41100 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
41101 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
41102 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
41103 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
41104 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
41105 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
41106 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
41107 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
41108 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
41109 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
41110 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
41111 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
41112 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
41113 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
41114 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
41115 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
41116 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
41117 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
41118 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
41119 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
41120 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
41121 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
41122 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
41123 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
41124 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
41125 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
41126 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
41127 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
41128 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
41129 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
41130 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
41131 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
41132 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
41133 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
41134 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
41135 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
41136 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
41137 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
41138 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
41139 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
41140 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
41141 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
41142 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
41143 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
41144 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
41145 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
41146 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41147 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41148 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
41149 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
41150 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
41151 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
41152 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
41153 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
41154 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
41155 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
41156 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
41157 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"`'
41158 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
41159 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
41160 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
41161 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
41162 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
41163 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
41164 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
41165 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
41166 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
41167 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
41168 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
41169 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
41170 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
41171 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
41172 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
41173 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
41174 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
41175 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
41176 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41177 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
41178 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
41179 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
41180 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
41181 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
41182 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
41183 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41184 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
41185 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41186 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
41187 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41188 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
41189 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
41190 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
41191 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
41192 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
41193 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
41194 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
41195 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
41196 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
41197 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
41198 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
41199 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
41200 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
41201 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
41202 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
41203 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
41204 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
41205 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
41206 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
41207 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
41208 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
41209 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
41210 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
41211 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
41212 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
41213 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
41214 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
41215 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
41216 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
41217 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
41218 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41219 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41220 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
41221 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
41222 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
41223 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
41224 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
41225 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
41226 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
41227 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
41228 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
41229 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
41230 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
41231 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
41232 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
41233 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
41234 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
41235 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
41236 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
41237 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
41238 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
41239 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
41240 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
41241 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
41242 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
41243 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
41244 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
41245 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
41246 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
41247 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
41248 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
41249 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
41250 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
41251 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
41252 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
41253 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
41254 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
41255 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
41256 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
41257 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
41258 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
41259 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
41260 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
41261 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
41262 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
41263 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
41264 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
41265 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
41266 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
41267 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
41268 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
41269 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
41270 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
41271 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
41272 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
41273 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
41274 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
41275 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
41276 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
41277 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
41278 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
41279 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
41280 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
41281 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
41282 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
41283 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
41284 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
41287 LTCFLAGS='$LTCFLAGS'
41288 compiler='$compiler_DEFAULT'
41290 # A function that is used when there is no print builtin or printf.
41291 func_fallback_echo ()
41293 eval 'cat <<_LTECHO_EOF
41298 # Quote evaled strings.
41315 deplibs_check_method \
41319 sharedlib_from_linklib_cmd \
41322 archiver_list_spec \
41328 lt_cv_sys_global_symbol_pipe \
41329 lt_cv_sys_global_symbol_to_cdecl \
41330 lt_cv_sys_global_symbol_to_c_name_address \
41331 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
41332 nm_file_list_spec \
41333 lt_prog_compiler_no_builtin_flag \
41334 lt_prog_compiler_pic \
41335 lt_prog_compiler_wl \
41336 lt_prog_compiler_static \
41337 lt_cv_prog_compiler_c_o \
41346 export_dynamic_flag_spec \
41347 whole_archive_flag_spec \
41348 compiler_needs_object \
41350 allow_undefined_flag \
41351 no_undefined_flag \
41352 hardcode_libdir_flag_spec \
41353 hardcode_libdir_separator \
41357 variables_saved_for_relink \
41359 library_names_spec \
41361 install_override_mode \
41365 compiler_lib_search_dirs \
41370 compiler_lib_search_path \
41374 lt_prog_compiler_no_builtin_flag_CXX \
41375 lt_prog_compiler_pic_CXX \
41376 lt_prog_compiler_wl_CXX \
41377 lt_prog_compiler_static_CXX \
41378 lt_cv_prog_compiler_c_o_CXX \
41379 export_dynamic_flag_spec_CXX \
41380 whole_archive_flag_spec_CXX \
41381 compiler_needs_object_CXX \
41383 allow_undefined_flag_CXX \
41384 no_undefined_flag_CXX \
41385 hardcode_libdir_flag_spec_CXX \
41386 hardcode_libdir_separator_CXX \
41387 exclude_expsyms_CXX \
41388 include_expsyms_CXX \
41389 file_list_spec_CXX \
41390 compiler_lib_search_dirs_CXX \
41391 predep_objects_CXX \
41392 postdep_objects_CXX \
41395 compiler_lib_search_path_CXX; do
41396 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41397 *[\\\\\\\`\\"\\\$]*)
41398 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
41401 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41406 # Double-quote double-evaled strings.
41407 for var in reload_cmds \
41408 old_postinstall_cmds \
41409 old_postuninstall_cmds \
41411 extract_expsyms_cmds \
41412 old_archive_from_new_cmds \
41413 old_archive_from_expsyms_cmds \
41415 archive_expsym_cmds \
41417 module_expsym_cmds \
41418 export_symbols_cmds \
41422 postuninstall_cmds \
41424 sys_lib_search_path_spec \
41425 sys_lib_dlsearch_path_spec \
41427 old_archive_cmds_CXX \
41428 old_archive_from_new_cmds_CXX \
41429 old_archive_from_expsyms_cmds_CXX \
41431 archive_expsym_cmds_CXX \
41433 module_expsym_cmds_CXX \
41434 export_symbols_cmds_CXX \
41436 postlink_cmds_CXX; do
41437 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41438 *[\\\\\\\`\\"\\\$]*)
41439 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
41442 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41447 ac_aux_dir='$ac_aux_dir'
41448 xsi_shell='$xsi_shell'
41449 lt_shell_append='$lt_shell_append'
41451 # See if we are running on zsh, and set the options which allow our
41452 # commands through without removal of \ escapes INIT.
41453 if test -n "\${ZSH_VERSION+set}" ; then
41454 setopt NO_GLOB_SUBST
41460 TIMESTAMP='$TIMESTAMP'
41468 GNUmakefile=$GNUmakefile
41472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41474 # Handling of arguments.
41475 for ac_config_target in $ac_config_targets
41477 case $ac_config_target in
41478 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
41479 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41480 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
41481 "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
41482 "guile/pre-inst-guile") CONFIG_FILES="$CONFIG_FILES guile/pre-inst-guile" ;;
41483 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41484 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
41485 "doc/credentials/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/Makefile" ;;
41486 "doc/credentials/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/openpgp/Makefile" ;;
41487 "doc/credentials/srp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/srp/Makefile" ;;
41488 "doc/credentials/x509/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/x509/Makefile" ;;
41489 "doc/cyclo/Makefile") CONFIG_FILES="$CONFIG_FILES doc/cyclo/Makefile" ;;
41490 "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
41491 "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
41492 "doc/manpages/Makefile") CONFIG_FILES="$CONFIG_FILES doc/manpages/Makefile" ;;
41493 "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
41494 "doc/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES doc/scripts/Makefile" ;;
41495 "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
41496 "gl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gl/tests/Makefile" ;;
41497 "guile/Makefile") CONFIG_FILES="$CONFIG_FILES guile/Makefile" ;;
41498 "guile/modules/Makefile") CONFIG_FILES="$CONFIG_FILES guile/modules/Makefile" ;;
41499 "guile/src/Makefile") CONFIG_FILES="$CONFIG_FILES guile/src/Makefile" ;;
41500 "guile/tests/Makefile") CONFIG_FILES="$CONFIG_FILES guile/tests/Makefile" ;;
41501 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
41502 "src/cfg/Makefile") CONFIG_FILES="$CONFIG_FILES src/cfg/Makefile" ;;
41503 "src/cfg/platon/Makefile") CONFIG_FILES="$CONFIG_FILES src/cfg/platon/Makefile" ;;
41504 "src/cfg/platon/str/Makefile") CONFIG_FILES="$CONFIG_FILES src/cfg/platon/str/Makefile" ;;
41505 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
41506 "tests/key-id/Makefile") CONFIG_FILES="$CONFIG_FILES tests/key-id/Makefile" ;;
41507 "tests/dsa/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dsa/Makefile" ;;
41508 "tests/openpgp-certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/openpgp-certs/Makefile" ;;
41509 "tests/safe-renegotiation/Makefile") CONFIG_FILES="$CONFIG_FILES tests/safe-renegotiation/Makefile" ;;
41510 "tests/pathlen/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pathlen/Makefile" ;;
41511 "tests/pkcs1-padding/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkcs1-padding/Makefile" ;;
41512 "tests/pkcs12-decode/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkcs12-decode/Makefile" ;;
41513 "tests/pkcs8-decode/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkcs8-decode/Makefile" ;;
41514 "tests/rsa-md5-collision/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rsa-md5-collision/Makefile" ;;
41515 "tests/sha2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sha2/Makefile" ;;
41516 "tests/userid/Makefile") CONFIG_FILES="$CONFIG_FILES tests/userid/Makefile" ;;
41517 "tests/suite/Makefile") CONFIG_FILES="$CONFIG_FILES tests/suite/Makefile" ;;
41519 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
41524 # If the user did not use the arguments to specify the items to instantiate,
41525 # then the envvar interface is used. Set only those that are not.
41526 # We use the long form for the default assignment because of an extremely
41527 # bizarre bug on SunOS 4.1.3.
41528 if $ac_need_defaults; then
41529 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41530 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41531 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
41532 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41535 # Have a temporary directory for convenience. Make it in the build tree
41536 # simply because there is no reason against having it here, and in addition,
41537 # creating and moving files from /tmp can sometimes cause problems.
41538 # Hook for its removal unless debugging.
41539 # Note that there is a small window in which the directory will not be cleaned:
41540 # after its creation but before its name has been assigned to `$tmp'.
41544 trap 'exit_status=$?
41545 : "${ac_tmp:=$tmp}"
41546 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
41548 trap 'as_fn_exit 1' 1 2 13 15
41550 # Create a (secure) tmp directory for tmp files.
41553 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
41557 tmp=./conf$$-$RANDOM
41558 (umask 077 && mkdir "$tmp")
41559 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
41562 # Set up the scripts for CONFIG_FILES section.
41563 # No need to generate them if there are no CONFIG_FILES.
41564 # This happens for instance with `./config.status config.h'.
41565 if test -n "$CONFIG_FILES"; then
41568 ac_cr=`echo X | tr X '\015'`
41569 # On cygwin, bash can eat \r inside `` if the user requested igncr.
41570 # But we know of no other shell where ac_cr would be empty at this
41571 # point, so we can use a bashism as a fallback.
41572 if test "x$ac_cr" = x; then
41573 eval ac_cr=\$\'\\r\'
41575 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
41576 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
41579 ac_cs_awk_cr=$ac_cr
41582 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
41587 echo "cat >conf$$subs.awk <<_ACEOF" &&
41588 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
41590 } >conf$$subs.sh ||
41591 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
41592 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
41594 for ac_last_try in false false false false false :; do
41595 . ./conf$$subs.sh ||
41596 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
41598 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
41599 if test $ac_delim_n = $ac_delim_num; then
41601 elif $ac_last_try; then
41602 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
41604 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41607 rm -f conf$$subs.sh
41609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41610 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
41614 s/^/S["/; s/!.*/"]=/
41624 s/\(.\{148\}\)..*/\1/
41626 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
41631 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
41638 s/\(.\{148\}\)..*/\1/
41640 s/["\\]/\\&/g; s/^/"/; s/$/"/
41644 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
41649 ' <conf$$subs.awk | sed '
41654 ' >>$CONFIG_STATUS || ac_write_fail=1
41655 rm -f conf$$subs.awk
41656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41658 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
41659 for (key in S) S_is_set[key] = 1
41665 nfields = split(line, field, "@")
41667 len = length(field[1])
41668 for (i = 2; i < nfields; i++) {
41670 keylen = length(key)
41671 if (S_is_set[key]) {
41673 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
41674 len += length(value) + length(field[++i])
41685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41686 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
41687 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
41690 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
41691 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
41694 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
41695 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
41696 # trailing colons and then remove the whole line if VPATH becomes empty
41697 # (actually we leave an empty line to preserve line numbers).
41698 if test "x$srcdir" = x.; then
41699 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
41717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41718 fi # test -n "$CONFIG_FILES"
41720 # Set up the scripts for CONFIG_HEADERS section.
41721 # No need to generate them if there are no CONFIG_HEADERS.
41722 # This happens for instance with `./config.status Makefile'.
41723 if test -n "$CONFIG_HEADERS"; then
41724 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
41728 # Transform confdefs.h into an awk script `defines.awk', embedded as
41729 # here-document in config.status, that substitutes the proper values into
41730 # config.h.in to produce config.h.
41732 # Create a delimiter string that does not exist in confdefs.h, to ease
41733 # handling of long lines.
41735 for ac_last_try in false false :; do
41736 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
41737 if test -z "$ac_tt"; then
41739 elif $ac_last_try; then
41740 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
41742 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41746 # For the awk script, D is an array of macro values keyed by name,
41747 # likewise P contains macro parameters if any. Preserve backslash
41748 # newline sequences.
41750 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
41752 s/.\{148\}/&'"$ac_delim"'/g
41755 s/^[ ]*#[ ]*define[ ][ ]*/ /
41762 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
41764 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
41768 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
41769 D["\1"]=" \3\\\\\\n"\\/p
41771 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
41776 s/.\{148\}/&'"$ac_delim"'/g
41781 s/["\\]/\\&/g; s/^/"/; s/$/"/p
41784 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
41786 ' <confdefs.h | sed '
41787 s/'"$ac_delim"'/"\\\
41788 "/g' >>$CONFIG_STATUS || ac_write_fail=1
41790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41791 for (key in D) D_is_set[key] = 1
41794 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
41796 split(line, arg, " ")
41797 if (arg[1] == "#") {
41801 defundef = substr(arg[1], 2)
41804 split(mac1, mac2, "(") #)
41806 prefix = substr(line, 1, index(line, defundef) - 1)
41807 if (D_is_set[macro]) {
41808 # Preserve the white space surrounding the "#".
41809 print prefix "define", macro P[macro] D[macro]
41812 # Replace #undef with comments. This is necessary, for example,
41813 # in the case of _POSIX_SOURCE, which is predefined and required
41814 # on some systems where configure will not decide to define it.
41815 if (defundef == "undef") {
41816 print "/*", prefix defundef, macro, "*/"
41824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41825 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
41826 fi # test -n "$CONFIG_HEADERS"
41829 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
41834 :[FHLC]) ac_mode=$ac_tag; continue;;
41836 case $ac_mode$ac_tag in
41838 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
41839 :[FH]-) ac_tag=-:-;;
41840 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
41857 -) ac_f="$ac_tmp/stdin";;
41858 *) # Look for the file first in the build tree, then in the source tree
41859 # (if the path is not absolute). The absolute path cannot be DOS-style,
41860 # because $ac_f cannot contain `:'.
41864 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
41866 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
41868 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
41869 as_fn_append ac_file_inputs " '$ac_f'"
41872 # Let's still pretend it is `configure' which instantiates (i.e., don't
41873 # use $as_me), people would be surprised to read:
41874 # /* config.h. Generated by config.status. */
41875 configure_input='Generated from '`
41876 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
41878 if test x"$ac_file" != x-; then
41879 configure_input="$ac_file. $configure_input"
41880 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
41881 $as_echo "$as_me: creating $ac_file" >&6;}
41883 # Neutralize special characters interpreted by sed in replacement strings.
41884 case $configure_input in #(
41885 *\&* | *\|* | *\\* )
41886 ac_sed_conf_input=`$as_echo "$configure_input" |
41887 sed 's/[\\\\&|]/\\\\&/g'`;; #(
41888 *) ac_sed_conf_input=$configure_input;;
41892 *:-:* | *:-) cat >"$ac_tmp/stdin" \
41893 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
41898 ac_dir=`$as_dirname -- "$ac_file" ||
41899 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41900 X"$ac_file" : 'X\(//\)[^/]' \| \
41901 X"$ac_file" : 'X\(//\)$' \| \
41902 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
41903 $as_echo X"$ac_file" |
41904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41908 /^X\(\/\/\)[^/].*/{
41921 as_dir="$ac_dir"; as_fn_mkdir_p
41925 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
41927 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
41928 # A ".." for each directory in $ac_dir_suffix.
41929 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
41930 case $ac_top_builddir_sub in
41931 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
41932 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
41935 ac_abs_top_builddir=$ac_pwd
41936 ac_abs_builddir=$ac_pwd$ac_dir_suffix
41937 # for backward compatibility:
41938 ac_top_builddir=$ac_top_build_prefix
41941 .) # We are building in place.
41943 ac_top_srcdir=$ac_top_builddir_sub
41944 ac_abs_top_srcdir=$ac_pwd ;;
41945 [\\/]* | ?:[\\/]* ) # Absolute name.
41946 ac_srcdir=$srcdir$ac_dir_suffix;
41947 ac_top_srcdir=$srcdir
41948 ac_abs_top_srcdir=$srcdir ;;
41949 *) # Relative name.
41950 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
41951 ac_top_srcdir=$ac_top_build_prefix$srcdir
41952 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
41954 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
41964 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41965 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
41967 ac_MKDIR_P=$MKDIR_P
41969 [\\/$]* | ?:[\\/]* ) ;;
41970 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
41974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41975 # If the template does not know about datarootdir, expand it.
41976 # FIXME: This hack should be removed a few years after 2.60.
41977 ac_datarootdir_hack=; ac_datarootdir_seen=
41988 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
41989 *datarootdir*) ac_datarootdir_seen=yes;;
41990 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
41991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
41992 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
41994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41995 ac_datarootdir_hack='
41996 s&@datadir@&$datadir&g
41997 s&@docdir@&$docdir&g
41998 s&@infodir@&$infodir&g
41999 s&@localedir@&$localedir&g
42000 s&@mandir@&$mandir&g
42001 s&\\\${datarootdir}&$datarootdir&g' ;;
42005 # Neutralize VPATH when `$srcdir' = `.'.
42006 # Shell code in configure.ac might set extrasub.
42007 # FIXME: do we really want to maintain this feature?
42008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42009 ac_sed_extra="$ac_vpsub
42012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42014 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42015 s|@configure_input@|$ac_sed_conf_input|;t t
42016 s&@top_builddir@&$ac_top_builddir_sub&;t t
42017 s&@top_build_prefix@&$ac_top_build_prefix&;t t
42018 s&@srcdir@&$ac_srcdir&;t t
42019 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42020 s&@top_srcdir@&$ac_top_srcdir&;t t
42021 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42022 s&@builddir@&$ac_builddir&;t t
42023 s&@abs_builddir@&$ac_abs_builddir&;t t
42024 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42025 s&@INSTALL@&$ac_INSTALL&;t t
42026 s&@MKDIR_P@&$ac_MKDIR_P&;t t
42027 $ac_datarootdir_hack
42029 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
42030 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42032 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42033 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
42034 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
42035 "$ac_tmp/out"`; test -z "$ac_out"; } &&
42036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42037 which seems to be undefined. Please make sure it is defined" >&5
42038 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42039 which seems to be undefined. Please make sure it is defined" >&2;}
42041 rm -f "$ac_tmp/stdin"
42043 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
42044 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
42046 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42052 if test x"$ac_file" != x-; then
42054 $as_echo "/* $configure_input */" \
42055 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
42056 } >"$ac_tmp/config.h" \
42057 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42058 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
42059 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
42060 $as_echo "$as_me: $ac_file is unchanged" >&6;}
42063 mv "$ac_tmp/config.h" "$ac_file" \
42064 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42067 $as_echo "/* $configure_input */" \
42068 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
42069 || as_fn_error $? "could not create -" "$LINENO" 5
42071 # Compute "$ac_file"'s index in $config_headers.
42074 for _am_header in $config_headers :; do
42075 case $_am_header in
42076 $_am_arg | $_am_arg:* )
42079 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42082 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
42083 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42084 X"$_am_arg" : 'X\(//\)[^/]' \| \
42085 X"$_am_arg" : 'X\(//\)$' \| \
42086 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
42087 $as_echo X"$_am_arg" |
42088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42092 /^X\(\/\/\)[^/].*/{
42104 s/.*/./; q'`/stamp-h$_am_stamp_count
42111 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
42114 # Prefer the file from the source tree if names are identical.
42115 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
42116 ac_source=$srcdir/$ac_source
42119 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
42120 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
42122 if test ! -r "$ac_source"; then
42123 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
42127 # Try a relative symlink, then a hard link, then a copy.
42129 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
42130 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
42132 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
42133 ln "$ac_source" "$ac_file" 2>/dev/null ||
42134 cp -p "$ac_source" "$ac_file" ||
42135 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
42138 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
42139 $as_echo "$as_me: executing $ac_file commands" >&6;}
42144 case $ac_file$ac_mode in
42145 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
42146 # Autoconf 2.62 quotes --file arguments for eval, but not when files
42147 # are listed without --file. Let's play safe and only enable the eval
42148 # if we detect the quoting.
42149 case $CONFIG_FILES in
42150 *\'*) eval set x "$CONFIG_FILES" ;;
42151 *) set x $CONFIG_FILES ;;
42156 # Strip MF so we end up with the name of the file.
42157 mf=`echo "$mf" | sed -e 's/:.*$//'`
42158 # Check whether this is an Automake generated Makefile or not.
42159 # We used to match only the files named `Makefile.in', but
42160 # some people rename them; so instead we look at the file content.
42161 # Grep'ing the first line is not enough: some people post-process
42162 # each Makefile.in and add a new line on top of each file to say so.
42163 # Grep'ing the whole file is not good either: AIX grep has a line
42164 # limit of 2048, but all sed's we know have understand at least 4000.
42165 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
42166 dirpart=`$as_dirname -- "$mf" ||
42167 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42168 X"$mf" : 'X\(//\)[^/]' \| \
42169 X"$mf" : 'X\(//\)$' \| \
42170 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
42172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42176 /^X\(\/\/\)[^/].*/{
42192 # Extract the definition of DEPDIR, am__include, and am__quote
42193 # from the Makefile without running `make'.
42194 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42195 test -z "$DEPDIR" && continue
42196 am__include=`sed -n 's/^am__include = //p' < "$mf"`
42197 test -z "am__include" && continue
42198 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42199 # When using ansi2knr, U may be empty or an underscore; expand it
42200 U=`sed -n 's/^U = //p' < "$mf"`
42201 # Find all dependency output files, they are included files with
42202 # $(DEPDIR) in their names. We invoke sed twice because it is the
42203 # simplest approach to changing $(DEPDIR) to its actual value in the
42205 for file in `sed -n "
42206 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42207 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42208 # Make sure the directory exists.
42209 test -f "$dirpart/$file" && continue
42210 fdir=`$as_dirname -- "$file" ||
42211 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42212 X"$file" : 'X\(//\)[^/]' \| \
42213 X"$file" : 'X\(//\)$' \| \
42214 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
42215 $as_echo X"$file" |
42216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42220 /^X\(\/\/\)[^/].*/{
42233 as_dir=$dirpart/$fdir; as_fn_mkdir_p
42234 # echo "creating $dirpart/$file"
42235 echo '# dummy' > "$dirpart/$file"
42242 # See if we are running on zsh, and set the options which allow our
42243 # commands through without removal of \ escapes.
42244 if test -n "${ZSH_VERSION+set}" ; then
42245 setopt NO_GLOB_SUBST
42248 cfgfile="${ofile}T"
42249 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
42252 cat <<_LT_EOF >> "$cfgfile"
42255 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
42256 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
42257 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
42258 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
42260 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
42261 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
42263 # Written by Gordon Matzigkeit, 1996
42265 # This file is part of GNU Libtool.
42267 # GNU Libtool is free software; you can redistribute it and/or
42268 # modify it under the terms of the GNU General Public License as
42269 # published by the Free Software Foundation; either version 2 of
42270 # the License, or (at your option) any later version.
42272 # As a special exception to the GNU General Public License,
42273 # if you distribute this file as part of a program or library that
42274 # is built using GNU Libtool, you may include this file under the
42275 # same distribution terms that you use for the rest of that program.
42277 # GNU Libtool is distributed in the hope that it will be useful,
42278 # but WITHOUT ANY WARRANTY; without even the implied warranty of
42279 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42280 # GNU General Public License for more details.
42282 # You should have received a copy of the GNU General Public License
42283 # along with GNU Libtool; see the file COPYING. If not, a copy
42284 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
42285 # obtained by writing to the Free Software Foundation, Inc.,
42286 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
42289 # The names of the tagged configurations supported by this script.
42290 available_tags="CXX "
42292 # ### BEGIN LIBTOOL CONFIG
42294 # Assembler program.
42297 # DLL creation program.
42298 DLLTOOL=$lt_DLLTOOL
42300 # Object dumper program.
42301 OBJDUMP=$lt_OBJDUMP
42303 # Which release of libtool.m4 was used?
42304 macro_version=$macro_version
42305 macro_revision=$macro_revision
42307 # Whether or not to build shared libraries.
42308 build_libtool_libs=$enable_shared
42310 # Whether or not to build static libraries.
42311 build_old_libs=$enable_static
42313 # What type of objects to build.
42316 # Whether or not to optimize for fast installation.
42317 fast_install=$enable_fast_install
42319 # Shell to use when invoking shell scripts.
42322 # An echo program that protects backslashes.
42325 # The PATH separator for the build system.
42326 PATH_SEPARATOR=$lt_PATH_SEPARATOR
42329 host_alias=$host_alias
42333 # The build system.
42334 build_alias=$build_alias
42338 # A sed program that does not truncate output.
42341 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
42342 Xsed="\$SED -e 1s/^X//"
42344 # A grep program that handles long lines.
42350 # A literal string matcher.
42353 # A BSD- or MS-compatible name lister.
42356 # Whether we need soft or hard links.
42359 # What is the maximum length of a command?
42360 max_cmd_len=$max_cmd_len
42362 # Object file suffix (normally "o").
42365 # Executable file suffix (normally "").
42368 # whether the shell understands "unset".
42371 # turn spaces into newlines.
42374 # turn newlines into spaces.
42377 # convert \$build file names to \$host format.
42378 to_host_file_cmd=$lt_cv_to_host_file_cmd
42380 # convert \$build files to toolchain format.
42381 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
42383 # Method to check whether dependent libraries are shared objects.
42384 deplibs_check_method=$lt_deplibs_check_method
42386 # Command to use when deplibs_check_method = "file_magic".
42387 file_magic_cmd=$lt_file_magic_cmd
42389 # How to find potential files when deplibs_check_method = "file_magic".
42390 file_magic_glob=$lt_file_magic_glob
42392 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
42393 want_nocaseglob=$lt_want_nocaseglob
42395 # Command to associate shared and link libraries.
42396 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
42401 # Flags to create an archive.
42402 AR_FLAGS=$lt_AR_FLAGS
42404 # How to feed a file listing to the archiver.
42405 archiver_list_spec=$lt_archiver_list_spec
42407 # A symbol stripping program.
42410 # Commands used to install an old-style archive.
42412 old_postinstall_cmds=$lt_old_postinstall_cmds
42413 old_postuninstall_cmds=$lt_old_postuninstall_cmds
42415 # Whether to use a lock for old archive extraction.
42416 lock_old_archive_extraction=$lock_old_archive_extraction
42421 # LTCC compiler flags.
42422 LTCFLAGS=$lt_CFLAGS
42424 # Take the output of nm and produce a listing of raw symbols and C names.
42425 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
42427 # Transform the output of nm in a proper C declaration.
42428 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
42430 # Transform the output of nm in a C name address pair.
42431 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
42433 # Transform the output of nm in a C name address pair when lib prefix is needed.
42434 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
42436 # Specify filename containing input files for \$NM.
42437 nm_file_list_spec=$lt_nm_file_list_spec
42439 # The root where to search for dependent libraries,and in which our libraries should be installed.
42440 lt_sysroot=$lt_sysroot
42442 # The name of the directory that contains temporary libtool files.
42445 # Used to examine libraries when file_magic_cmd begins with "file".
42446 MAGIC_CMD=$MAGIC_CMD
42448 # Must we lock files when doing compilation?
42449 need_locks=$lt_need_locks
42452 MANIFEST_TOOL=$lt_MANIFEST_TOOL
42454 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
42455 DSYMUTIL=$lt_DSYMUTIL
42457 # Tool to change global to local symbols on Mac OS X.
42460 # Tool to manipulate fat objects and archives on Mac OS X.
42463 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
42466 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
42467 OTOOL64=$lt_OTOOL64
42469 # Old archive suffix (normally "a").
42472 # Shared library suffix (normally ".so").
42473 shrext_cmds=$lt_shrext_cmds
42475 # The commands to extract the exported symbol list from a shared archive.
42476 extract_expsyms_cmds=$lt_extract_expsyms_cmds
42478 # Variables whose values should be saved in libtool wrapper scripts and
42479 # restored at link time.
42480 variables_saved_for_relink=$lt_variables_saved_for_relink
42482 # Do we need the "lib" prefix for modules?
42483 need_lib_prefix=$need_lib_prefix
42485 # Do we need a version for libraries?
42486 need_version=$need_version
42488 # Library versioning type.
42489 version_type=$version_type
42491 # Shared library runtime path variable.
42492 runpath_var=$runpath_var
42494 # Shared library path variable.
42495 shlibpath_var=$shlibpath_var
42497 # Is shlibpath searched before the hard-coded library search path?
42498 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
42500 # Format of library name prefix.
42501 libname_spec=$lt_libname_spec
42503 # List of archive names. First name is the real one, the rest are links.
42504 # The last name is the one that the linker finds with -lNAME
42505 library_names_spec=$lt_library_names_spec
42507 # The coded name of the library, if different from the real name.
42508 soname_spec=$lt_soname_spec
42510 # Permission mode override for installation of shared libraries.
42511 install_override_mode=$lt_install_override_mode
42513 # Command to use after installation of a shared archive.
42514 postinstall_cmds=$lt_postinstall_cmds
42516 # Command to use after uninstallation of a shared archive.
42517 postuninstall_cmds=$lt_postuninstall_cmds
42519 # Commands used to finish a libtool library installation in a directory.
42520 finish_cmds=$lt_finish_cmds
42522 # As "finish_cmds", except a single script fragment to be evaled but
42524 finish_eval=$lt_finish_eval
42526 # Whether we should hardcode library paths into libraries.
42527 hardcode_into_libs=$hardcode_into_libs
42529 # Compile-time system search path for libraries.
42530 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
42532 # Run-time system search path for libraries.
42533 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
42535 # Whether dlopen is supported.
42536 dlopen_support=$enable_dlopen
42538 # Whether dlopen of programs is supported.
42539 dlopen_self=$enable_dlopen_self
42541 # Whether dlopen of statically linked programs is supported.
42542 dlopen_self_static=$enable_dlopen_self_static
42544 # Commands to strip libraries.
42545 old_striplib=$lt_old_striplib
42546 striplib=$lt_striplib
42549 # The linker used to build libraries.
42552 # How to create reloadable object files.
42553 reload_flag=$lt_reload_flag
42554 reload_cmds=$lt_reload_cmds
42556 # Commands used to build an old-style archive.
42557 old_archive_cmds=$lt_old_archive_cmds
42559 # A language specific compiler.
42562 # Is the compiler the GNU compiler?
42565 # Compiler flag to turn off builtin functions.
42566 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
42568 # Additional compiler flags for building library objects.
42569 pic_flag=$lt_lt_prog_compiler_pic
42571 # How to pass a linker flag through the compiler.
42572 wl=$lt_lt_prog_compiler_wl
42574 # Compiler flag to prevent dynamic linking.
42575 link_static_flag=$lt_lt_prog_compiler_static
42577 # Does compiler simultaneously support -c and -o options?
42578 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
42580 # Whether or not to add -lc for building shared libraries.
42581 build_libtool_need_lc=$archive_cmds_need_lc
42583 # Whether or not to disallow shared libs when runtime libs are static.
42584 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
42586 # Compiler flag to allow reflexive dlopens.
42587 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
42589 # Compiler flag to generate shared objects directly from archives.
42590 whole_archive_flag_spec=$lt_whole_archive_flag_spec
42592 # Whether the compiler copes with passing no objects directly.
42593 compiler_needs_object=$lt_compiler_needs_object
42595 # Create an old-style archive from a shared archive.
42596 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
42598 # Create a temporary old-style archive to link instead of a shared archive.
42599 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
42601 # Commands used to build a shared archive.
42602 archive_cmds=$lt_archive_cmds
42603 archive_expsym_cmds=$lt_archive_expsym_cmds
42605 # Commands used to build a loadable module if different from building
42606 # a shared archive.
42607 module_cmds=$lt_module_cmds
42608 module_expsym_cmds=$lt_module_expsym_cmds
42610 # Whether we are building with GNU ld or not.
42611 with_gnu_ld=$lt_with_gnu_ld
42613 # Flag that allows shared libraries with undefined symbols to be built.
42614 allow_undefined_flag=$lt_allow_undefined_flag
42616 # Flag that enforces no undefined symbols.
42617 no_undefined_flag=$lt_no_undefined_flag
42619 # Flag to hardcode \$libdir into a binary during linking.
42620 # This must work even if \$libdir does not exist
42621 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
42623 # Whether we need a single "-rpath" flag with a separated argument.
42624 hardcode_libdir_separator=$lt_hardcode_libdir_separator
42626 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
42627 # DIR into the resulting binary.
42628 hardcode_direct=$hardcode_direct
42630 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
42631 # DIR into the resulting binary and the resulting library dependency is
42632 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
42633 # library is relocated.
42634 hardcode_direct_absolute=$hardcode_direct_absolute
42636 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
42637 # into the resulting binary.
42638 hardcode_minus_L=$hardcode_minus_L
42640 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
42641 # into the resulting binary.
42642 hardcode_shlibpath_var=$hardcode_shlibpath_var
42644 # Set to "yes" if building a shared library automatically hardcodes DIR
42645 # into the library and all subsequent libraries and executables linked
42647 hardcode_automatic=$hardcode_automatic
42649 # Set to yes if linker adds runtime paths of dependent libraries
42650 # to runtime path list.
42651 inherit_rpath=$inherit_rpath
42653 # Whether libtool must link a program against all its dependency libraries.
42654 link_all_deplibs=$link_all_deplibs
42656 # Set to "yes" if exported symbols are required.
42657 always_export_symbols=$always_export_symbols
42659 # The commands to list exported symbols.
42660 export_symbols_cmds=$lt_export_symbols_cmds
42662 # Symbols that should not be listed in the preloaded symbols.
42663 exclude_expsyms=$lt_exclude_expsyms
42665 # Symbols that must always be exported.
42666 include_expsyms=$lt_include_expsyms
42668 # Commands necessary for linking programs (against libraries) with templates.
42669 prelink_cmds=$lt_prelink_cmds
42671 # Commands necessary for finishing linking programs.
42672 postlink_cmds=$lt_postlink_cmds
42674 # Specify filename containing input files.
42675 file_list_spec=$lt_file_list_spec
42677 # How to hardcode a shared library path into an executable.
42678 hardcode_action=$hardcode_action
42680 # The directories searched by this compiler when creating a shared library.
42681 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
42683 # Dependencies to place before and after the objects being linked to
42684 # create a shared library.
42685 predep_objects=$lt_predep_objects
42686 postdep_objects=$lt_postdep_objects
42687 predeps=$lt_predeps
42688 postdeps=$lt_postdeps
42690 # The library search path used internally by the compiler when linking
42691 # a shared library.
42692 compiler_lib_search_path=$lt_compiler_lib_search_path
42694 # ### END LIBTOOL CONFIG
42700 cat <<\_LT_EOF >> "$cfgfile"
42701 # AIX sometimes has problems with the GCC collect2 program. For some
42702 # reason, if we set the COLLECT_NAMES environment variable, the problems
42703 # vanish in a puff of smoke.
42704 if test "X${COLLECT_NAMES+set}" != Xset; then
42706 export COLLECT_NAMES
42713 ltmain="$ac_aux_dir/ltmain.sh"
42716 # We use sed instead of cat because bash on DJGPP gets confused if
42717 # if finds mixed CR/LF and LF-only lines. Since sed operates in
42718 # text mode, it properly converts lines to CR/LF. This bash problem
42719 # is reportedly fixed, but why not run on old versions too?
42720 sed '$q' "$ltmain" >> "$cfgfile" \
42721 || (rm -f "$cfgfile"; exit 1)
42723 if test x"$xsi_shell" = xyes; then
42724 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
42728 \ */*) func_dirname_result="${1%/*}${2}" ;;\
42729 \ * ) func_dirname_result="${3}" ;;\
42731 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
42732 && mv -f "$cfgfile.tmp" "$cfgfile" \
42733 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42734 test 0 -eq $? || _lt_function_replace_fail=:
42737 sed -e '/^func_basename ()$/,/^} # func_basename /c\
42740 \ func_basename_result="${1##*/}"\
42741 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
42742 && mv -f "$cfgfile.tmp" "$cfgfile" \
42743 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42744 test 0 -eq $? || _lt_function_replace_fail=:
42747 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
42748 func_dirname_and_basename ()\
42751 \ */*) func_dirname_result="${1%/*}${2}" ;;\
42752 \ * ) func_dirname_result="${3}" ;;\
42754 \ func_basename_result="${1##*/}"\
42755 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
42756 && mv -f "$cfgfile.tmp" "$cfgfile" \
42757 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42758 test 0 -eq $? || _lt_function_replace_fail=:
42761 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
42764 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
42765 \ # positional parameters, so assign one to ordinary parameter first.\
42766 \ func_stripname_result=${3}\
42767 \ func_stripname_result=${func_stripname_result#"${1}"}\
42768 \ func_stripname_result=${func_stripname_result%"${2}"}\
42769 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
42770 && mv -f "$cfgfile.tmp" "$cfgfile" \
42771 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42772 test 0 -eq $? || _lt_function_replace_fail=:
42775 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
42776 func_split_long_opt ()\
42778 \ func_split_long_opt_name=${1%%=*}\
42779 \ func_split_long_opt_arg=${1#*=}\
42780 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
42781 && mv -f "$cfgfile.tmp" "$cfgfile" \
42782 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42783 test 0 -eq $? || _lt_function_replace_fail=:
42786 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
42787 func_split_short_opt ()\
42789 \ func_split_short_opt_arg=${1#??}\
42790 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
42791 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
42792 && mv -f "$cfgfile.tmp" "$cfgfile" \
42793 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42794 test 0 -eq $? || _lt_function_replace_fail=:
42797 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
42801 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
42802 \ *) func_lo2o_result=${1} ;;\
42804 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
42805 && mv -f "$cfgfile.tmp" "$cfgfile" \
42806 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42807 test 0 -eq $? || _lt_function_replace_fail=:
42810 sed -e '/^func_xform ()$/,/^} # func_xform /c\
42813 func_xform_result=${1%.*}.lo\
42814 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
42815 && mv -f "$cfgfile.tmp" "$cfgfile" \
42816 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42817 test 0 -eq $? || _lt_function_replace_fail=:
42820 sed -e '/^func_arith ()$/,/^} # func_arith /c\
42823 func_arith_result=$(( $* ))\
42824 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
42825 && mv -f "$cfgfile.tmp" "$cfgfile" \
42826 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42827 test 0 -eq $? || _lt_function_replace_fail=:
42830 sed -e '/^func_len ()$/,/^} # func_len /c\
42833 func_len_result=${#1}\
42834 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
42835 && mv -f "$cfgfile.tmp" "$cfgfile" \
42836 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42837 test 0 -eq $? || _lt_function_replace_fail=:
42841 if test x"$lt_shell_append" = xyes; then
42842 sed -e '/^func_append ()$/,/^} # func_append /c\
42845 eval "${1}+=\\${2}"\
42846 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
42847 && mv -f "$cfgfile.tmp" "$cfgfile" \
42848 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42849 test 0 -eq $? || _lt_function_replace_fail=:
42852 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
42853 func_append_quoted ()\
42855 \ func_quote_for_eval "${2}"\
42856 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
42857 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
42858 && mv -f "$cfgfile.tmp" "$cfgfile" \
42859 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42860 test 0 -eq $? || _lt_function_replace_fail=:
42863 # Save a `func_append' function call where possible by direct use of '+='
42864 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
42865 && mv -f "$cfgfile.tmp" "$cfgfile" \
42866 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42867 test 0 -eq $? || _lt_function_replace_fail=:
42869 # Save a `func_append' function call even when '+=' is not available
42870 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
42871 && mv -f "$cfgfile.tmp" "$cfgfile" \
42872 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42873 test 0 -eq $? || _lt_function_replace_fail=:
42876 if test x"$_lt_function_replace_fail" = x":"; then
42877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
42878 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
42882 mv -f "$cfgfile" "$ofile" ||
42883 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
42887 cat <<_LT_EOF >> "$ofile"
42889 # ### BEGIN LIBTOOL TAG CONFIG: CXX
42891 # The linker used to build libraries.
42894 # How to create reloadable object files.
42895 reload_flag=$lt_reload_flag_CXX
42896 reload_cmds=$lt_reload_cmds_CXX
42898 # Commands used to build an old-style archive.
42899 old_archive_cmds=$lt_old_archive_cmds_CXX
42901 # A language specific compiler.
42902 CC=$lt_compiler_CXX
42904 # Is the compiler the GNU compiler?
42907 # Compiler flag to turn off builtin functions.
42908 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
42910 # Additional compiler flags for building library objects.
42911 pic_flag=$lt_lt_prog_compiler_pic_CXX
42913 # How to pass a linker flag through the compiler.
42914 wl=$lt_lt_prog_compiler_wl_CXX
42916 # Compiler flag to prevent dynamic linking.
42917 link_static_flag=$lt_lt_prog_compiler_static_CXX
42919 # Does compiler simultaneously support -c and -o options?
42920 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
42922 # Whether or not to add -lc for building shared libraries.
42923 build_libtool_need_lc=$archive_cmds_need_lc_CXX
42925 # Whether or not to disallow shared libs when runtime libs are static.
42926 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
42928 # Compiler flag to allow reflexive dlopens.
42929 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
42931 # Compiler flag to generate shared objects directly from archives.
42932 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
42934 # Whether the compiler copes with passing no objects directly.
42935 compiler_needs_object=$lt_compiler_needs_object_CXX
42937 # Create an old-style archive from a shared archive.
42938 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
42940 # Create a temporary old-style archive to link instead of a shared archive.
42941 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
42943 # Commands used to build a shared archive.
42944 archive_cmds=$lt_archive_cmds_CXX
42945 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
42947 # Commands used to build a loadable module if different from building
42948 # a shared archive.
42949 module_cmds=$lt_module_cmds_CXX
42950 module_expsym_cmds=$lt_module_expsym_cmds_CXX
42952 # Whether we are building with GNU ld or not.
42953 with_gnu_ld=$lt_with_gnu_ld_CXX
42955 # Flag that allows shared libraries with undefined symbols to be built.
42956 allow_undefined_flag=$lt_allow_undefined_flag_CXX
42958 # Flag that enforces no undefined symbols.
42959 no_undefined_flag=$lt_no_undefined_flag_CXX
42961 # Flag to hardcode \$libdir into a binary during linking.
42962 # This must work even if \$libdir does not exist
42963 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
42965 # Whether we need a single "-rpath" flag with a separated argument.
42966 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
42968 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
42969 # DIR into the resulting binary.
42970 hardcode_direct=$hardcode_direct_CXX
42972 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
42973 # DIR into the resulting binary and the resulting library dependency is
42974 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
42975 # library is relocated.
42976 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
42978 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
42979 # into the resulting binary.
42980 hardcode_minus_L=$hardcode_minus_L_CXX
42982 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
42983 # into the resulting binary.
42984 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
42986 # Set to "yes" if building a shared library automatically hardcodes DIR
42987 # into the library and all subsequent libraries and executables linked
42989 hardcode_automatic=$hardcode_automatic_CXX
42991 # Set to yes if linker adds runtime paths of dependent libraries
42992 # to runtime path list.
42993 inherit_rpath=$inherit_rpath_CXX
42995 # Whether libtool must link a program against all its dependency libraries.
42996 link_all_deplibs=$link_all_deplibs_CXX
42998 # Set to "yes" if exported symbols are required.
42999 always_export_symbols=$always_export_symbols_CXX
43001 # The commands to list exported symbols.
43002 export_symbols_cmds=$lt_export_symbols_cmds_CXX
43004 # Symbols that should not be listed in the preloaded symbols.
43005 exclude_expsyms=$lt_exclude_expsyms_CXX
43007 # Symbols that must always be exported.
43008 include_expsyms=$lt_include_expsyms_CXX
43010 # Commands necessary for linking programs (against libraries) with templates.
43011 prelink_cmds=$lt_prelink_cmds_CXX
43013 # Commands necessary for finishing linking programs.
43014 postlink_cmds=$lt_postlink_cmds_CXX
43016 # Specify filename containing input files.
43017 file_list_spec=$lt_file_list_spec_CXX
43019 # How to hardcode a shared library path into an executable.
43020 hardcode_action=$hardcode_action_CXX
43022 # The directories searched by this compiler when creating a shared library.
43023 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
43025 # Dependencies to place before and after the objects being linked to
43026 # create a shared library.
43027 predep_objects=$lt_predep_objects_CXX
43028 postdep_objects=$lt_postdep_objects_CXX
43029 predeps=$lt_predeps_CXX
43030 postdeps=$lt_postdeps_CXX
43032 # The library search path used internally by the compiler when linking
43033 # a shared library.
43034 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
43036 # ### END LIBTOOL TAG CONFIG: CXX
43040 "guile/pre-inst-guile":F) chmod +x guile/pre-inst-guile ;;
43048 ac_clean_files=$ac_clean_files_save
43050 test $ac_write_fail = 0 ||
43051 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43054 # configure is writing to config.log, and then calls config.status.
43055 # config.status does its own redirection, appending to config.log.
43056 # Unfortunately, on DOS this fails, as config.log is still kept open
43057 # by configure, so config.status won't be able to write to it; its
43058 # output is simply discarded. So we exec the FD to /dev/null,
43059 # effectively closing config.log, so it can be properly (re)opened and
43060 # appended to by config.status. When coming back to configure, we
43061 # need to make the FD available again.
43062 if test "$no_create" != yes; then
43064 ac_config_status_args=
43065 test "$silent" = yes &&
43066 ac_config_status_args="$ac_config_status_args --quiet"
43068 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43070 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43071 # would make configure fail if this is the last instruction.
43072 $ac_cs_success || as_fn_exit 1
43076 # CONFIG_SUBDIRS section.
43078 if test "$no_recursion" != yes; then
43080 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
43081 # so they do not pile up.
43082 ac_sub_configure_args=
43084 eval "set x $ac_configure_args"
43088 if test -n "$ac_prev"; then
43093 -cache-file | --cache-file | --cache-fil | --cache-fi \
43094 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43095 ac_prev=cache_file ;;
43096 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43097 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43100 --config-cache | -C)
43102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43106 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43108 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43110 --disable-option-checking)
43114 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43116 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
43120 # Always prepend --prefix to ensure using the same prefix
43121 # in subdir configurations.
43122 ac_arg="--prefix=$prefix"
43124 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43126 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
43129 if test "$silent" = yes; then
43130 ac_sub_configure_args="--silent $ac_sub_configure_args"
43133 # Always prepend --disable-option-checking to silence warnings, since
43134 # different subdirs can have different --enable and --with options.
43135 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
43138 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43140 # Do not complain, so a configure script can configure whichever
43141 # parts of a large source tree are present.
43142 test -d "$srcdir/$ac_dir" || continue
43144 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
43145 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
43146 $as_echo "$ac_msg" >&6
43147 as_dir="$ac_dir"; as_fn_mkdir_p
43151 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43153 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43154 # A ".." for each directory in $ac_dir_suffix.
43155 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43156 case $ac_top_builddir_sub in
43157 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43158 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43161 ac_abs_top_builddir=$ac_pwd
43162 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43163 # for backward compatibility:
43164 ac_top_builddir=$ac_top_build_prefix
43167 .) # We are building in place.
43169 ac_top_srcdir=$ac_top_builddir_sub
43170 ac_abs_top_srcdir=$ac_pwd ;;
43171 [\\/]* | ?:[\\/]* ) # Absolute name.
43172 ac_srcdir=$srcdir$ac_dir_suffix;
43173 ac_top_srcdir=$srcdir
43174 ac_abs_top_srcdir=$srcdir ;;
43175 *) # Relative name.
43176 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43177 ac_top_srcdir=$ac_top_build_prefix$srcdir
43178 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43180 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43185 # Check for guested configure; otherwise get Cygnus style configure.
43186 if test -f "$ac_srcdir/configure.gnu"; then
43187 ac_sub_configure=$ac_srcdir/configure.gnu
43188 elif test -f "$ac_srcdir/configure"; then
43189 ac_sub_configure=$ac_srcdir/configure
43190 elif test -f "$ac_srcdir/configure.in"; then
43191 # This should be Cygnus configure.
43192 ac_sub_configure=$ac_aux_dir/configure
43194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
43195 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43199 # The recursion is here.
43200 if test -n "$ac_sub_configure"; then
43201 # Make the cache file name correct relative to the subdirectory.
43202 case $cache_file in
43203 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43204 *) # Relative name.
43205 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
43208 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43209 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43210 # The eval makes quoting arguments work.
43211 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
43212 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
43213 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
43219 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
43220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
43221 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
43225 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
43227 version: ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
43229 Install prefix: ${prefix}
43231 Warning flags: errors: ${WERROR_CFLAGS} warnings: ${WARN_CFLAGS}
43232 Library types: Shared=${enable_shared}, Static=${enable_static}
43233 Valgrind: $opt_valgrind_tests ${VALGRIND}
43234 Guile wrappers: $opt_guile_bindings
43235 C++ library: $use_cxx
43236 OpenSSL library: $enable_openssl
43237 /dev/crypto: $enable_cryptodev
43238 Crypto library: $cryptolib
43239 PKCS#11 support: $with_p11_kit
43241 $as_echo "$as_me: summary of build options:
43243 version: ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
43245 Install prefix: ${prefix}
43247 Warning flags: errors: ${WERROR_CFLAGS} warnings: ${WARN_CFLAGS}
43248 Library types: Shared=${enable_shared}, Static=${enable_static}
43249 Valgrind: $opt_valgrind_tests ${VALGRIND}
43250 Guile wrappers: $opt_guile_bindings
43251 C++ library: $use_cxx
43252 OpenSSL library: $enable_openssl
43253 /dev/crypto: $enable_cryptodev
43254 Crypto library: $cryptolib
43255 PKCS#11 support: $with_p11_kit