2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libgnutls 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='libgnutls'
572 PACKAGE_TARNAME='libgnutls'
573 PACKAGE_VERSION='2.12.20'
574 PACKAGE_STRING='libgnutls 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>
617 ac_subst_vars='lgltests_LTLIBOBJS
644 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
646 UINT64_MAX_EQ_ULONG_MAX
647 UINT32_MAX_LT_UINTMAX_MAX
650 INT64_MAX_EQ_LONG_MAX
651 INT32_MAX_LT_INTMAX_MAX
661 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
674 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
769 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
771 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
772 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
773 TIME_H_DEFINES_STRUCT_TIMESPEC
774 NEXT_AS_FIRST_DIRECTIVE_TIME_H
783 HAVE_DECL_LOCALTIME_R
790 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
792 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
794 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
798 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
802 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
803 HAVE_STRUCT_SOCKADDR_STORAGE
820 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
822 NEXT_AS_FIRST_DIRECTIVE_STRING_H
824 HAVE_DECL_STRNCASECMP
828 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
830 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
832 GL_GENERATE_STDINT_H_FALSE
833 GL_GENERATE_STDINT_H_TRUE
842 HAVE_SIGNED_SIG_ATOMIC_T
845 BITSIZEOF_SIG_ATOMIC_T
851 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
856 HAVE_UNSIGNED_LONG_LONG_INT
858 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
860 GL_GENERATE_STDDEF_H_FALSE
861 GL_GENERATE_STDDEF_H_TRUE
866 GL_GENERATE_STDBOOL_H_FALSE
867 GL_GENERATE_STDBOOL_H_TRUE
869 GL_GENERATE_STDALIGN_H_FALSE
870 GL_GENERATE_STDALIGN_H_TRUE
875 NEXT_AS_FIRST_DIRECTIVE_NETDB_H
878 HAVE_DECL_GETNAMEINFO
879 HAVE_DECL_GETADDRINFO
880 HAVE_DECL_GAI_STRERROR
881 HAVE_DECL_FREEADDRINFO
884 APPLE_UNIVERSAL_BUILD
970 REPLACE_CANONICALIZE_FILE_NAME
975 HAVE_STRUCT_RANDOM_DATA
997 HAVE_CANONICALIZE_FILE_NAME
1010 GNULIB_REALLOC_POSIX
1027 GNULIB_CANONICALIZE_FILE_NAME
1031 HAVE_LD_VERSION_SCRIPT_FALSE
1032 HAVE_LD_VERSION_SCRIPT_TRUE
1033 HAVE_LD_OUTPUT_DEF_FALSE
1034 HAVE_LD_OUTPUT_DEF_TRUE
1035 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1069 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1070 UNISTD_H_HAVE_WINSOCK2_H
1091 REPLACE_GETDOMAINNAME
1101 HAVE_DECL_SETHOSTNAME
1102 HAVE_DECL_GETUSERSHELL
1103 HAVE_DECL_GETPAGESIZE
1104 HAVE_DECL_GETLOGIN_R
1105 HAVE_DECL_GETDOMAINNAME
1144 GNULIB_UNISTD_H_SIGPIPE
1145 GNULIB_UNISTD_H_NONBLOCKING
1171 GNULIB_GETDTABLESIZE
1172 GNULIB_GETDOMAINNAME
1195 REPLACE_STDIO_WRITE_FUNCS
1196 REPLACE_STDIO_READ_FUNCS
1205 REPLACE_OBSTACK_PRINTF
1230 HAVE_DECL_OBSTACK_PRINTF
1236 GNULIB_VSPRINTF_POSIX
1238 GNULIB_VPRINTF_POSIX
1240 GNULIB_VFPRINTF_POSIX
1247 GNULIB_STDIO_H_SIGPIPE
1248 GNULIB_STDIO_H_NONBLOCKING
1249 GNULIB_SPRINTF_POSIX
1263 GNULIB_OBSTACK_PRINTF_POSIX
1264 GNULIB_OBSTACK_PRINTF
1281 GNULIB_FPRINTF_POSIX
1291 GL_GENERATE_FLOAT_H_FALSE
1292 GL_GENERATE_FLOAT_H_TRUE
1294 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1302 GL_GENERATE_ERRNO_H_FALSE
1303 GL_GENERATE_ERRNO_H_TRUE
1305 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1308 PRAGMA_SYSTEM_HEADER
1309 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1311 GL_GENERATE_BYTESWAP_H_FALSE
1312 GL_GENERATE_BYTESWAP_H_TRUE
1314 GL_GENERATE_ALLOCA_H_FALSE
1315 GL_GENERATE_ALLOCA_H_TRUE
1318 GL_COND_LIBTOOL_FALSE
1319 GL_COND_LIBTOOL_TRUE
1324 GNUTLS_ZLIB_LIBS_PRIVATE
1325 GNUTLS_REQUIRES_PRIVATE
1345 XGETTEXT_EXTRA_OPTIONS
1353 GETTEXT_MACRO_VERSION
1355 ENABLE_SESSION_TICKET_FALSE
1356 ENABLE_SESSION_TICKET_TRUE
1357 ENABLE_OPENPGP_FALSE
1372 ENABLE_MINITASN1_FALSE
1373 ENABLE_MINITASN1_TRUE
1449 AM_DEFAULT_VERBOSITY
1460 INSTALL_STRIP_PROGRAM
1502 program_transform_name
1515 enable_option_checking
1517 enable_dependency_tracking
1528 with_libgcrypt_prefix
1529 with_libnettle_prefix
1530 with_included_libtasn1
1531 with_libtasn1_prefix
1533 enable_opaque_prf_input
1534 enable_srp_authentication
1535 enable_psk_authentication
1536 enable_anon_authentication
1539 enable_openpgp_authentication
1540 enable_session_ticket
1543 with_libiconv_prefix
1548 enable_ld_version_script
1549 with_libpthread_prefix
1551 ac_precious_vars='build_alias
1571 # Initialize some variables set by options.
1573 ac_init_version=false
1574 ac_unrecognized_opts=
1575 ac_unrecognized_sep=
1576 # The variables have the same names as the options, with
1577 # dashes changed to underlines.
1578 cache_file=/dev/null
1585 program_transform_name=s,x,x,
1593 # Installation directory options.
1594 # These are left unexpanded so users can "make install exec_prefix=/foo"
1595 # and all the variables that are supposed to be based on exec_prefix
1596 # by default will actually change.
1597 # Use braces instead of parens because sh, perl, etc. also accept them.
1598 # (The list follows the same order as the GNU Coding Standards.)
1599 bindir='${exec_prefix}/bin'
1600 sbindir='${exec_prefix}/sbin'
1601 libexecdir='${exec_prefix}/libexec'
1602 datarootdir='${prefix}/share'
1603 datadir='${datarootdir}'
1604 sysconfdir='${prefix}/etc'
1605 sharedstatedir='${prefix}/com'
1606 localstatedir='${prefix}/var'
1607 includedir='${prefix}/include'
1608 oldincludedir='/usr/include'
1609 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1610 infodir='${datarootdir}/info'
1615 libdir='${exec_prefix}/lib'
1616 localedir='${datarootdir}/locale'
1617 mandir='${datarootdir}/man'
1623 # If the previous option needs an argument, assign it.
1624 if test -n "$ac_prev"; then
1625 eval $ac_prev=\$ac_option
1631 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1636 # Accept the important Cygnus configure options, so we can diagnose typos.
1638 case $ac_dashdash$ac_option in
1642 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1644 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1645 bindir=$ac_optarg ;;
1647 -build | --build | --buil | --bui | --bu)
1648 ac_prev=build_alias ;;
1649 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1650 build_alias=$ac_optarg ;;
1652 -cache-file | --cache-file | --cache-fil | --cache-fi \
1653 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1654 ac_prev=cache_file ;;
1655 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1656 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1657 cache_file=$ac_optarg ;;
1659 --config-cache | -C)
1660 cache_file=config.cache ;;
1662 -datadir | --datadir | --datadi | --datad)
1664 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1665 datadir=$ac_optarg ;;
1667 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1668 | --dataroo | --dataro | --datar)
1669 ac_prev=datarootdir ;;
1670 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1671 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1672 datarootdir=$ac_optarg ;;
1674 -disable-* | --disable-*)
1675 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1676 # Reject names that are not valid shell variable names.
1677 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1678 as_fn_error $? "invalid feature name: $ac_useropt"
1679 ac_useropt_orig=$ac_useropt
1680 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1681 case $ac_user_opts in
1683 "enable_$ac_useropt"
1685 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1686 ac_unrecognized_sep=', ';;
1688 eval enable_$ac_useropt=no ;;
1690 -docdir | --docdir | --docdi | --doc | --do)
1692 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1693 docdir=$ac_optarg ;;
1695 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1697 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1698 dvidir=$ac_optarg ;;
1700 -enable-* | --enable-*)
1701 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1702 # Reject names that are not valid shell variable names.
1703 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1704 as_fn_error $? "invalid feature name: $ac_useropt"
1705 ac_useropt_orig=$ac_useropt
1706 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1707 case $ac_user_opts in
1709 "enable_$ac_useropt"
1711 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1712 ac_unrecognized_sep=', ';;
1714 eval enable_$ac_useropt=\$ac_optarg ;;
1716 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1717 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1718 | --exec | --exe | --ex)
1719 ac_prev=exec_prefix ;;
1720 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1721 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1722 | --exec=* | --exe=* | --ex=*)
1723 exec_prefix=$ac_optarg ;;
1725 -gas | --gas | --ga | --g)
1726 # Obsolete; use --with-gas.
1729 -help | --help | --hel | --he | -h)
1730 ac_init_help=long ;;
1731 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1732 ac_init_help=recursive ;;
1733 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1734 ac_init_help=short ;;
1736 -host | --host | --hos | --ho)
1737 ac_prev=host_alias ;;
1738 -host=* | --host=* | --hos=* | --ho=*)
1739 host_alias=$ac_optarg ;;
1741 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1743 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1745 htmldir=$ac_optarg ;;
1747 -includedir | --includedir | --includedi | --included | --include \
1748 | --includ | --inclu | --incl | --inc)
1749 ac_prev=includedir ;;
1750 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1751 | --includ=* | --inclu=* | --incl=* | --inc=*)
1752 includedir=$ac_optarg ;;
1754 -infodir | --infodir | --infodi | --infod | --info | --inf)
1756 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1757 infodir=$ac_optarg ;;
1759 -libdir | --libdir | --libdi | --libd)
1761 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1762 libdir=$ac_optarg ;;
1764 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1765 | --libexe | --libex | --libe)
1766 ac_prev=libexecdir ;;
1767 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1768 | --libexe=* | --libex=* | --libe=*)
1769 libexecdir=$ac_optarg ;;
1771 -localedir | --localedir | --localedi | --localed | --locale)
1772 ac_prev=localedir ;;
1773 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1774 localedir=$ac_optarg ;;
1776 -localstatedir | --localstatedir | --localstatedi | --localstated \
1777 | --localstate | --localstat | --localsta | --localst | --locals)
1778 ac_prev=localstatedir ;;
1779 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1780 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1781 localstatedir=$ac_optarg ;;
1783 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1785 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1786 mandir=$ac_optarg ;;
1788 -nfp | --nfp | --nf)
1789 # Obsolete; use --without-fp.
1792 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1793 | --no-cr | --no-c | -n)
1796 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1797 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1800 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1801 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1802 | --oldin | --oldi | --old | --ol | --o)
1803 ac_prev=oldincludedir ;;
1804 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1805 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1806 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1807 oldincludedir=$ac_optarg ;;
1809 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1811 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1812 prefix=$ac_optarg ;;
1814 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1815 | --program-pre | --program-pr | --program-p)
1816 ac_prev=program_prefix ;;
1817 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1818 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1819 program_prefix=$ac_optarg ;;
1821 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1822 | --program-suf | --program-su | --program-s)
1823 ac_prev=program_suffix ;;
1824 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1825 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1826 program_suffix=$ac_optarg ;;
1828 -program-transform-name | --program-transform-name \
1829 | --program-transform-nam | --program-transform-na \
1830 | --program-transform-n | --program-transform- \
1831 | --program-transform | --program-transfor \
1832 | --program-transfo | --program-transf \
1833 | --program-trans | --program-tran \
1834 | --progr-tra | --program-tr | --program-t)
1835 ac_prev=program_transform_name ;;
1836 -program-transform-name=* | --program-transform-name=* \
1837 | --program-transform-nam=* | --program-transform-na=* \
1838 | --program-transform-n=* | --program-transform-=* \
1839 | --program-transform=* | --program-transfor=* \
1840 | --program-transfo=* | --program-transf=* \
1841 | --program-trans=* | --program-tran=* \
1842 | --progr-tra=* | --program-tr=* | --program-t=*)
1843 program_transform_name=$ac_optarg ;;
1845 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1847 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1848 pdfdir=$ac_optarg ;;
1850 -psdir | --psdir | --psdi | --psd | --ps)
1852 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1855 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1856 | -silent | --silent | --silen | --sile | --sil)
1859 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1861 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1863 sbindir=$ac_optarg ;;
1865 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1866 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1867 | --sharedst | --shareds | --shared | --share | --shar \
1869 ac_prev=sharedstatedir ;;
1870 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1871 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1872 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1874 sharedstatedir=$ac_optarg ;;
1876 -site | --site | --sit)
1878 -site=* | --site=* | --sit=*)
1881 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1883 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1884 srcdir=$ac_optarg ;;
1886 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1887 | --syscon | --sysco | --sysc | --sys | --sy)
1888 ac_prev=sysconfdir ;;
1889 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1890 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1891 sysconfdir=$ac_optarg ;;
1893 -target | --target | --targe | --targ | --tar | --ta | --t)
1894 ac_prev=target_alias ;;
1895 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1896 target_alias=$ac_optarg ;;
1898 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1901 -version | --version | --versio | --versi | --vers | -V)
1902 ac_init_version=: ;;
1905 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1906 # Reject names that are not valid shell variable names.
1907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1908 as_fn_error $? "invalid package name: $ac_useropt"
1909 ac_useropt_orig=$ac_useropt
1910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1911 case $ac_user_opts in
1915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1916 ac_unrecognized_sep=', ';;
1918 eval with_$ac_useropt=\$ac_optarg ;;
1920 -without-* | --without-*)
1921 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1922 # Reject names that are not valid shell variable names.
1923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1924 as_fn_error $? "invalid package name: $ac_useropt"
1925 ac_useropt_orig=$ac_useropt
1926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1927 case $ac_user_opts in
1931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1932 ac_unrecognized_sep=', ';;
1934 eval with_$ac_useropt=no ;;
1937 # Obsolete; use --with-x.
1940 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1941 | --x-incl | --x-inc | --x-in | --x-i)
1942 ac_prev=x_includes ;;
1943 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1944 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1945 x_includes=$ac_optarg ;;
1947 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1948 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1949 ac_prev=x_libraries ;;
1950 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1951 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1952 x_libraries=$ac_optarg ;;
1954 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1955 Try \`$0 --help' for more information"
1959 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1960 # Reject names that are not valid shell variable names.
1961 case $ac_envvar in #(
1962 '' | [0-9]* | *[!_$as_cr_alnum]* )
1963 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1965 eval $ac_envvar=\$ac_optarg
1966 export $ac_envvar ;;
1969 # FIXME: should be removed in autoconf 3.0.
1970 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1971 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1972 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1973 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1979 if test -n "$ac_prev"; then
1980 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1981 as_fn_error $? "missing argument to $ac_option"
1984 if test -n "$ac_unrecognized_opts"; then
1985 case $enable_option_checking in
1987 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1988 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1992 # Check all directory arguments for consistency.
1993 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1994 datadir sysconfdir sharedstatedir localstatedir includedir \
1995 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1996 libdir localedir mandir
1998 eval ac_val=\$$ac_var
1999 # Remove trailing slashes.
2002 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2003 eval $ac_var=\$ac_val;;
2005 # Be sure to have absolute directory names.
2007 [\\/$]* | ?:[\\/]* ) continue;;
2008 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2010 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2013 # There might be people who depend on the old broken behavior: `$host'
2014 # used to hold the argument of --host etc.
2015 # FIXME: To remove some day.
2018 target=$target_alias
2020 # FIXME: To remove some day.
2021 if test "x$host_alias" != x; then
2022 if test "x$build_alias" = x; then
2023 cross_compiling=maybe
2024 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
2025 If a cross compiler is detected then cross compile mode will be used" >&2
2026 elif test "x$build_alias" != "x$host_alias"; then
2032 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2034 test "$silent" = yes && exec 6>/dev/null
2037 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2038 ac_ls_di=`ls -di .` &&
2039 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2040 as_fn_error $? "working directory cannot be determined"
2041 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2042 as_fn_error $? "pwd does not report name of working directory"
2045 # Find the source files, if location was not specified.
2046 if test -z "$srcdir"; then
2047 ac_srcdir_defaulted=yes
2048 # Try the directory containing this script, then the parent directory.
2049 ac_confdir=`$as_dirname -- "$as_myself" ||
2050 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2051 X"$as_myself" : 'X\(//\)[^/]' \| \
2052 X"$as_myself" : 'X\(//\)$' \| \
2053 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2054 $as_echo X"$as_myself" |
2055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2073 if test ! -r "$srcdir/$ac_unique_file"; then
2077 ac_srcdir_defaulted=no
2079 if test ! -r "$srcdir/$ac_unique_file"; then
2080 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2081 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2083 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2085 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2087 # When building in place, set srcdir=.
2088 if test "$ac_abs_confdir" = "$ac_pwd"; then
2091 # Remove unnecessary trailing slashes from srcdir.
2092 # Double slashes in file names in object file debugging info
2093 # mess up M-x gdb in Emacs.
2095 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2097 for ac_var in $ac_precious_vars; do
2098 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2099 eval ac_env_${ac_var}_value=\$${ac_var}
2100 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2101 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2105 # Report the --help message.
2107 if test "$ac_init_help" = "long"; then
2108 # Omit some internal or obsolete options to make the list less imposing.
2109 # This message is too long to be a string in the A/UX 3.1 sh.
2111 \`configure' configures libgnutls 2.12.20 to adapt to many kinds of systems.
2113 Usage: $0 [OPTION]... [VAR=VALUE]...
2115 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2116 VAR=VALUE. See below for descriptions of some of the useful variables.
2118 Defaults for the options are specified in brackets.
2121 -h, --help display this help and exit
2122 --help=short display options specific to this package
2123 --help=recursive display the short help of all the included packages
2124 -V, --version display version information and exit
2125 -q, --quiet, --silent do not print \`checking ...' messages
2126 --cache-file=FILE cache test results in FILE [disabled]
2127 -C, --config-cache alias for \`--cache-file=config.cache'
2128 -n, --no-create do not create output files
2129 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2131 Installation directories:
2132 --prefix=PREFIX install architecture-independent files in PREFIX
2133 [$ac_default_prefix]
2134 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2137 By default, \`make install' will install all the files in
2138 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2139 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2140 for instance \`--prefix=\$HOME'.
2142 For better control, use the options below.
2144 Fine tuning of the installation directories:
2145 --bindir=DIR user executables [EPREFIX/bin]
2146 --sbindir=DIR system admin executables [EPREFIX/sbin]
2147 --libexecdir=DIR program executables [EPREFIX/libexec]
2148 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2149 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2150 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2151 --libdir=DIR object code libraries [EPREFIX/lib]
2152 --includedir=DIR C header files [PREFIX/include]
2153 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2154 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2155 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2156 --infodir=DIR info documentation [DATAROOTDIR/info]
2157 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2158 --mandir=DIR man documentation [DATAROOTDIR/man]
2159 --docdir=DIR documentation root [DATAROOTDIR/doc/libgnutls]
2160 --htmldir=DIR html documentation [DOCDIR]
2161 --dvidir=DIR dvi documentation [DOCDIR]
2162 --pdfdir=DIR pdf documentation [DOCDIR]
2163 --psdir=DIR ps documentation [DOCDIR]
2169 --program-prefix=PREFIX prepend PREFIX to installed program names
2170 --program-suffix=SUFFIX append SUFFIX to installed program names
2171 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2174 --build=BUILD configure for building on BUILD [guessed]
2175 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2179 if test -n "$ac_init_help"; then
2180 case $ac_init_help in
2181 short | recursive ) echo "Configuration of libgnutls 2.12.20:";;
2186 --disable-option-checking ignore unrecognized --enable/--with options
2187 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2188 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2189 --enable-silent-rules less verbose build output (undo: `make V=1')
2190 --disable-silent-rules verbose build output (undo: `make V=0')
2191 --disable-dependency-tracking speeds up one-time build
2192 --enable-dependency-tracking do not reject slow dependency extractors
2193 --disable-largefile omit support for large files
2194 --enable-shared[=PKGS] build shared libraries [default=yes]
2195 --enable-static[=PKGS] build static libraries [default=yes]
2196 --enable-fast-install[=PKGS]
2197 optimize for fast installation [default=yes]
2198 --disable-libtool-lock avoid locking (might break parallel builds)
2199 --disable-rpath do not hardcode runtime library paths
2200 --enable-opaque-prf-input=DD
2201 enable Opaque PRF input using DD as extension type
2202 --disable-srp-authentication
2203 disable the SRP authentication support
2204 --disable-psk-authentication
2205 disable the PSK authentication support
2206 --disable-anon-authentication
2207 disable the anonymous authentication support
2208 --disable-camellia disable Camellia cipher
2209 --disable-extra-pki only enable the basic PKI stuff
2210 --disable-openpgp-authentication
2211 disable the OpenPGP authentication support
2212 --disable-session-ticket
2213 disable the SessionTicket extension support
2214 --enable-cryptodev enable cryptodev support
2215 --disable-nls do not use Native Language Support
2216 --enable-ld-version-script
2217 enable linker version script (default is enabled
2221 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2222 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2223 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2225 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2226 --with-sysroot=DIR Search for dependent libraries within DIR
2227 (or the compiler's sysroot if not specified).
2228 --with-libgcrypt use libgcrypt as crypto library
2229 --with-gnu-ld assume the C compiler uses GNU ld default=no
2230 --with-libgcrypt-prefix[=DIR] search for libgcrypt in DIR/include and DIR/lib
2231 --without-libgcrypt-prefix don't search for libgcrypt in includedir and libdir
2232 --with-libnettle-prefix[=DIR] search for libnettle in DIR/include and DIR/lib
2233 --without-libnettle-prefix don't search for libnettle in includedir and libdir
2234 --with-included-libtasn1
2235 use the included libtasn1
2236 --with-libtasn1-prefix[=DIR] search for libtasn1 in DIR/include and DIR/lib
2237 --without-libtasn1-prefix don't search for libtasn1 in includedir and libdir
2238 --with-lzo use experimental LZO compression
2239 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2240 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2241 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2242 --without-libintl-prefix don't search for libintl in includedir and libdir
2243 --without-zlib disable zlib compression support
2244 --with-libz-prefix[=DIR] search for libz in DIR/include and DIR/lib
2245 --without-libz-prefix don't search for libz in includedir and libdir
2246 --without-p11-kit Build without p11-kit and PKCS#11 support
2247 --with-libpthread-prefix[=DIR] search for libpthread in DIR/include and DIR/lib
2248 --without-libpthread-prefix don't search for libpthread in includedir and libdir
2250 Some influential environment variables:
2251 CC C compiler command
2252 CFLAGS C compiler flags
2253 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2254 nonstandard directory <lib dir>
2255 LIBS libraries to pass to the linker, e.g. -l<library>
2256 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2257 you have headers in a nonstandard directory <include dir>
2259 PKG_CONFIG path to pkg-config utility
2261 directories to add to pkg-config's search path
2263 path overriding pkg-config's built-in search path
2265 C compiler flags for P11_KIT, overriding pkg-config
2267 linker flags for P11_KIT, overriding pkg-config
2268 CXX C++ compiler command
2269 CXXFLAGS C++ compiler flags
2270 CXXCPP C++ preprocessor
2272 Use these variables to override the choices made by `configure' or to help
2273 it to find libraries and programs with nonstandard names/locations.
2275 Report bugs to <bug-gnutls@gnu.org>.
2280 if test "$ac_init_help" = "recursive"; then
2281 # If there are subdirs, report their specific --help.
2282 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2283 test -d "$ac_dir" ||
2284 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2289 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2291 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2292 # A ".." for each directory in $ac_dir_suffix.
2293 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2294 case $ac_top_builddir_sub in
2295 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2296 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2299 ac_abs_top_builddir=$ac_pwd
2300 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2301 # for backward compatibility:
2302 ac_top_builddir=$ac_top_build_prefix
2305 .) # We are building in place.
2307 ac_top_srcdir=$ac_top_builddir_sub
2308 ac_abs_top_srcdir=$ac_pwd ;;
2309 [\\/]* | ?:[\\/]* ) # Absolute name.
2310 ac_srcdir=$srcdir$ac_dir_suffix;
2311 ac_top_srcdir=$srcdir
2312 ac_abs_top_srcdir=$srcdir ;;
2314 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2315 ac_top_srcdir=$ac_top_build_prefix$srcdir
2316 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2318 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2320 cd "$ac_dir" || { ac_status=$?; continue; }
2321 # Check for guested configure.
2322 if test -f "$ac_srcdir/configure.gnu"; then
2324 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2325 elif test -f "$ac_srcdir/configure"; then
2327 $SHELL "$ac_srcdir/configure" --help=recursive
2329 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2331 cd "$ac_pwd" || { ac_status=$?; break; }
2335 test -n "$ac_init_help" && exit $ac_status
2336 if $ac_init_version; then
2338 libgnutls configure 2.12.20
2339 generated by GNU Autoconf 2.68
2341 Copyright (C) 2010 Free Software Foundation, Inc.
2342 This configure script is free software; the Free Software Foundation
2343 gives unlimited permission to copy, distribute and modify it.
2348 ## ------------------------ ##
2349 ## Autoconf initialization. ##
2350 ## ------------------------ ##
2352 # ac_fn_c_try_compile LINENO
2353 # --------------------------
2354 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2355 ac_fn_c_try_compile ()
2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358 rm -f conftest.$ac_objext
2359 if { { ac_try="$ac_compile"
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2365 $as_echo "$ac_try_echo"; } >&5
2366 (eval "$ac_compile") 2>conftest.err
2368 if test -s conftest.err; then
2369 grep -v '^ *+' conftest.err >conftest.er1
2370 cat conftest.er1 >&5
2371 mv -f conftest.er1 conftest.err
2373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2374 test $ac_status = 0; } && {
2375 test -z "$ac_c_werror_flag" ||
2376 test ! -s conftest.err
2377 } && test -s conftest.$ac_objext; then :
2380 $as_echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2385 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2386 as_fn_set_status $ac_retval
2388 } # ac_fn_c_try_compile
2390 # ac_fn_c_try_cpp LINENO
2391 # ----------------------
2392 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2396 if { { ac_try="$ac_cpp conftest.$ac_ext"
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2402 $as_echo "$ac_try_echo"; } >&5
2403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2405 if test -s conftest.err; then
2406 grep -v '^ *+' conftest.err >conftest.er1
2407 cat conftest.er1 >&5
2408 mv -f conftest.er1 conftest.err
2410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2411 test $ac_status = 0; } > conftest.i && {
2412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2413 test ! -s conftest.err
2417 $as_echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2422 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2423 as_fn_set_status $ac_retval
2427 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2428 # -------------------------------------------------------
2429 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2430 # the include files in INCLUDES and setting the cache variable VAR
2432 ac_fn_c_check_header_mongrel ()
2434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2435 if eval \${$3+:} false; then :
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2437 $as_echo_n "checking for $2... " >&6; }
2438 if eval \${$3+:} false; then :
2439 $as_echo_n "(cached) " >&6
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2443 $as_echo "$ac_res" >&6; }
2445 # Is the header compilable?
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2447 $as_echo_n "checking $2 usability... " >&6; }
2448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2449 /* end confdefs.h. */
2453 if ac_fn_c_try_compile "$LINENO"; then :
2454 ac_header_compiler=yes
2456 ac_header_compiler=no
2458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2460 $as_echo "$ac_header_compiler" >&6; }
2462 # Is the header present?
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2464 $as_echo_n "checking $2 presence... " >&6; }
2465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466 /* end confdefs.h. */
2469 if ac_fn_c_try_cpp "$LINENO"; then :
2470 ac_header_preproc=yes
2472 ac_header_preproc=no
2474 rm -f conftest.err conftest.i conftest.$ac_ext
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2476 $as_echo "$ac_header_preproc" >&6; }
2478 # So? What about this header?
2479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2482 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2484 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2488 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2490 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2492 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2494 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2496 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2497 ( $as_echo "## --------------------------------- ##
2498 ## Report this to bug-gnutls@gnu.org ##
2499 ## --------------------------------- ##"
2500 ) | sed "s/^/$as_me: WARNING: /" >&2
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2504 $as_echo_n "checking for $2... " >&6; }
2505 if eval \${$3+:} false; then :
2506 $as_echo_n "(cached) " >&6
2508 eval "$3=\$ac_header_compiler"
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2512 $as_echo "$ac_res" >&6; }
2514 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2516 } # ac_fn_c_check_header_mongrel
2518 # ac_fn_c_try_run LINENO
2519 # ----------------------
2520 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2521 # that executables *can* be run.
2524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2525 if { { ac_try="$ac_link"
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2531 $as_echo "$ac_try_echo"; } >&5
2532 (eval "$ac_link") 2>&5
2534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2535 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2536 { { case "(($ac_try" in
2537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2541 $as_echo "$ac_try_echo"; } >&5
2542 (eval "$ac_try") 2>&5
2544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2545 test $ac_status = 0; }; }; then :
2548 $as_echo "$as_me: program exited with status $ac_status" >&5
2549 $as_echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2552 ac_retval=$ac_status
2554 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2556 as_fn_set_status $ac_retval
2560 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2561 # -------------------------------------------------------
2562 # Tests whether HEADER exists and can be compiled using the include files in
2563 # INCLUDES, setting the cache variable VAR accordingly.
2564 ac_fn_c_check_header_compile ()
2566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2568 $as_echo_n "checking for $2... " >&6; }
2569 if eval \${$3+:} false; then :
2570 $as_echo_n "(cached) " >&6
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h. */
2577 if ac_fn_c_try_compile "$LINENO"; then :
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2586 $as_echo "$ac_res" >&6; }
2587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2589 } # ac_fn_c_check_header_compile
2591 # ac_fn_c_try_link LINENO
2592 # -----------------------
2593 # Try to link conftest.$ac_ext, and return whether this succeeded.
2596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2597 rm -f conftest.$ac_objext conftest$ac_exeext
2598 if { { ac_try="$ac_link"
2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601 *) ac_try_echo=$ac_try;;
2603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2604 $as_echo "$ac_try_echo"; } >&5
2605 (eval "$ac_link") 2>conftest.err
2607 if test -s conftest.err; then
2608 grep -v '^ *+' conftest.err >conftest.er1
2609 cat conftest.er1 >&5
2610 mv -f conftest.er1 conftest.err
2612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2613 test $ac_status = 0; } && {
2614 test -z "$ac_c_werror_flag" ||
2615 test ! -s conftest.err
2616 } && test -s conftest$ac_exeext && {
2617 test "$cross_compiling" = yes ||
2618 $as_test_x conftest$ac_exeext
2622 $as_echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2627 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2628 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2629 # interfere with the next link command; also delete a directory that is
2630 # left behind by Apple's compiler. We do this before executing the actions.
2631 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2633 as_fn_set_status $ac_retval
2635 } # ac_fn_c_try_link
2637 # ac_fn_c_check_func LINENO FUNC VAR
2638 # ----------------------------------
2639 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2640 ac_fn_c_check_func ()
2642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2644 $as_echo_n "checking for $2... " >&6; }
2645 if eval \${$3+:} false; then :
2646 $as_echo_n "(cached) " >&6
2648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649 /* end confdefs.h. */
2650 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2652 #define $2 innocuous_$2
2654 /* System header to define __stub macros and hopefully few prototypes,
2655 which can conflict with char $2 (); below.
2656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2657 <limits.h> exists even on freestanding compilers. */
2660 # include <limits.h>
2662 # include <assert.h>
2667 /* Override any GCC internal prototype to avoid an error.
2668 Use char because int might match the return type of a GCC
2669 builtin and then its argument prototype would still apply. */
2674 /* The GNU C library defines this for functions which it implements
2675 to always fail with ENOSYS. Some functions are actually named
2676 something starting with __ and the normal name is an alias. */
2677 #if defined __stub_$2 || defined __stub___$2
2689 if ac_fn_c_try_link "$LINENO"; then :
2694 rm -f core conftest.err conftest.$ac_objext \
2695 conftest$ac_exeext conftest.$ac_ext
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2699 $as_echo "$ac_res" >&6; }
2700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2702 } # ac_fn_c_check_func
2704 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2705 # --------------------------------------------
2706 # Tries to find the compile-time value of EXPR in a program that includes
2707 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2709 ac_fn_c_compute_int ()
2711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2712 if test "$cross_compiling" = yes; then
2713 # Depending upon the size, compute the lo and hi bounds.
2714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2715 /* end confdefs.h. */
2720 static int test_array [1 - 2 * !(($2) >= 0)];
2727 if ac_fn_c_try_compile "$LINENO"; then :
2730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2731 /* end confdefs.h. */
2736 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2743 if ac_fn_c_try_compile "$LINENO"; then :
2744 ac_hi=$ac_mid; break
2746 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2747 if test $ac_lo -le $ac_mid; then
2751 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2757 /* end confdefs.h. */
2762 static int test_array [1 - 2 * !(($2) < 0)];
2769 if ac_fn_c_try_compile "$LINENO"; then :
2772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2773 /* end confdefs.h. */
2778 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2785 if ac_fn_c_try_compile "$LINENO"; then :
2786 ac_lo=$ac_mid; break
2788 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2789 if test $ac_mid -le $ac_hi; then
2793 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803 # Binary search between lo and hi bounds.
2804 while test "x$ac_lo" != "x$ac_hi"; do
2805 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807 /* end confdefs.h. */
2812 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2819 if ac_fn_c_try_compile "$LINENO"; then :
2822 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2827 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2832 /* end confdefs.h. */
2834 static long int longval () { return $2; }
2835 static unsigned long int ulongval () { return $2; }
2842 FILE *f = fopen ("conftest.val", "w");
2847 long int i = longval ();
2850 fprintf (f, "%ld", i);
2854 unsigned long int i = ulongval ();
2857 fprintf (f, "%lu", i);
2859 /* Do not output a trailing newline, as this causes \r\n confusion
2860 on some platforms. */
2861 return ferror (f) || fclose (f) != 0;
2867 if ac_fn_c_try_run "$LINENO"; then :
2868 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2873 conftest.$ac_objext conftest.beam conftest.$ac_ext
2877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2878 as_fn_set_status $ac_retval
2880 } # ac_fn_c_compute_int
2882 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2883 # -------------------------------------------
2884 # Tests whether TYPE exists after having included INCLUDES, setting cache
2885 # variable VAR accordingly.
2886 ac_fn_c_check_type ()
2888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2890 $as_echo_n "checking for $2... " >&6; }
2891 if eval \${$3+:} false; then :
2892 $as_echo_n "(cached) " >&6
2895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2896 /* end confdefs.h. */
2907 if ac_fn_c_try_compile "$LINENO"; then :
2908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2909 /* end confdefs.h. */
2920 if ac_fn_c_try_compile "$LINENO"; then :
2925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2931 $as_echo "$ac_res" >&6; }
2932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2934 } # ac_fn_c_check_type
2936 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2937 # ---------------------------------------------
2938 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2940 ac_fn_c_check_decl ()
2942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2943 as_decl_name=`echo $2|sed 's/ *(.*//'`
2944 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2946 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2947 if eval \${$3+:} false; then :
2948 $as_echo_n "(cached) " >&6
2950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2951 /* end confdefs.h. */
2956 #ifndef $as_decl_name
2958 (void) $as_decl_use;
2960 (void) $as_decl_name;
2968 if ac_fn_c_try_compile "$LINENO"; then :
2973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2977 $as_echo "$ac_res" >&6; }
2978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2980 } # ac_fn_c_check_decl
2982 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2983 # ----------------------------------------------------
2984 # Tries to find if the field MEMBER exists in type AGGR, after including
2985 # INCLUDES, setting cache variable VAR accordingly.
2986 ac_fn_c_check_member ()
2988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2990 $as_echo_n "checking for $2.$3... " >&6; }
2991 if eval \${$4+:} false; then :
2992 $as_echo_n "(cached) " >&6
2994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2995 /* end confdefs.h. */
3007 if ac_fn_c_try_compile "$LINENO"; then :
3010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011 /* end confdefs.h. */
3017 if (sizeof ac_aggr.$3)
3023 if ac_fn_c_try_compile "$LINENO"; then :
3028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3034 $as_echo "$ac_res" >&6; }
3035 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3037 } # ac_fn_c_check_member
3039 # ac_fn_cxx_try_compile LINENO
3040 # ----------------------------
3041 # Try to compile conftest.$ac_ext, and return whether this succeeded.
3042 ac_fn_cxx_try_compile ()
3044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3045 rm -f conftest.$ac_objext
3046 if { { ac_try="$ac_compile"
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3052 $as_echo "$ac_try_echo"; } >&5
3053 (eval "$ac_compile") 2>conftest.err
3055 if test -s conftest.err; then
3056 grep -v '^ *+' conftest.err >conftest.er1
3057 cat conftest.er1 >&5
3058 mv -f conftest.er1 conftest.err
3060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3061 test $ac_status = 0; } && {
3062 test -z "$ac_cxx_werror_flag" ||
3063 test ! -s conftest.err
3064 } && test -s conftest.$ac_objext; then :
3067 $as_echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3073 as_fn_set_status $ac_retval
3075 } # ac_fn_cxx_try_compile
3077 # ac_fn_cxx_try_cpp LINENO
3078 # ------------------------
3079 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3080 ac_fn_cxx_try_cpp ()
3082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3083 if { { ac_try="$ac_cpp conftest.$ac_ext"
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3089 $as_echo "$ac_try_echo"; } >&5
3090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3092 if test -s conftest.err; then
3093 grep -v '^ *+' conftest.err >conftest.er1
3094 cat conftest.er1 >&5
3095 mv -f conftest.er1 conftest.err
3097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3098 test $ac_status = 0; } > conftest.i && {
3099 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3100 test ! -s conftest.err
3104 $as_echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3110 as_fn_set_status $ac_retval
3112 } # ac_fn_cxx_try_cpp
3114 # ac_fn_cxx_try_link LINENO
3115 # -------------------------
3116 # Try to link conftest.$ac_ext, and return whether this succeeded.
3117 ac_fn_cxx_try_link ()
3119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3120 rm -f conftest.$ac_objext conftest$ac_exeext
3121 if { { ac_try="$ac_link"
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127 $as_echo "$ac_try_echo"; } >&5
3128 (eval "$ac_link") 2>conftest.err
3130 if test -s conftest.err; then
3131 grep -v '^ *+' conftest.err >conftest.er1
3132 cat conftest.er1 >&5
3133 mv -f conftest.er1 conftest.err
3135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136 test $ac_status = 0; } && {
3137 test -z "$ac_cxx_werror_flag" ||
3138 test ! -s conftest.err
3139 } && test -s conftest$ac_exeext && {
3140 test "$cross_compiling" = yes ||
3141 $as_test_x conftest$ac_exeext
3145 $as_echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3150 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3151 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3152 # interfere with the next link command; also delete a directory that is
3153 # left behind by Apple's compiler. We do this before executing the actions.
3154 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3155 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3156 as_fn_set_status $ac_retval
3158 } # ac_fn_cxx_try_link
3159 cat >config.log <<_ACEOF
3160 This file contains any messages produced by compilers while
3161 running configure, to aid debugging if configure makes a mistake.
3163 It was created by libgnutls $as_me 2.12.20, which was
3164 generated by GNU Autoconf 2.68. Invocation command line was
3176 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3177 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3178 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3179 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3180 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3182 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3183 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3185 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3186 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3187 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3188 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3189 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3190 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3191 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 test -z "$as_dir" && as_dir=.
3200 $as_echo "PATH: $as_dir"
3216 # Keep a trace of the command line.
3217 # Strip out --no-create and --no-recursion so they do not pile up.
3218 # Strip out --silent because we don't want to record it for future runs.
3219 # Also quote any args containing shell meta-characters.
3220 # Make two passes to allow for proper duplicate-argument suppression.
3224 ac_must_keep_next=false
3230 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3232 | -silent | --silent | --silen | --sile | --sil)
3235 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3238 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3240 as_fn_append ac_configure_args1 " '$ac_arg'"
3241 if test $ac_must_keep_next = true; then
3242 ac_must_keep_next=false # Got value, back to normal.
3245 *=* | --config-cache | -C | -disable-* | --disable-* \
3246 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3247 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3248 | -with-* | --with-* | -without-* | --without-* | --x)
3249 case "$ac_configure_args0 " in
3250 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3253 -* ) ac_must_keep_next=true ;;
3256 as_fn_append ac_configure_args " '$ac_arg'"
3261 { ac_configure_args0=; unset ac_configure_args0;}
3262 { ac_configure_args1=; unset ac_configure_args1;}
3264 # When interrupted or exit'd, cleanup temporary files, and complete
3265 # config.log. We remove comments because anyway the quotes in there
3266 # would cause problems or look ugly.
3267 # WARNING: Use '\'' to represent an apostrophe within the trap.
3268 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3269 trap 'exit_status=$?
3270 # Save into config.log some information that might help in debugging.
3274 $as_echo "## ---------------- ##
3275 ## Cache variables. ##
3276 ## ---------------- ##"
3278 # The following way of writing the cache mishandles newlines in values,
3280 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3281 eval ac_val=\$$ac_var
3285 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3286 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3289 _ | IFS | as_nl) ;; #(
3290 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3291 *) { eval $ac_var=; unset $ac_var;} ;;
3296 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3297 *${as_nl}ac_space=\ *)
3299 "s/'\''/'\''\\\\'\'''\''/g;
3300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3303 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3310 $as_echo "## ----------------- ##
3311 ## Output variables. ##
3312 ## ----------------- ##"
3314 for ac_var in $ac_subst_vars
3316 eval ac_val=\$$ac_var
3318 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3320 $as_echo "$ac_var='\''$ac_val'\''"
3324 if test -n "$ac_subst_files"; then
3325 $as_echo "## ------------------- ##
3326 ## File substitutions. ##
3327 ## ------------------- ##"
3329 for ac_var in $ac_subst_files
3331 eval ac_val=\$$ac_var
3333 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3335 $as_echo "$ac_var='\''$ac_val'\''"
3340 if test -s confdefs.h; then
3341 $as_echo "## ----------- ##
3348 test "$ac_signal" != 0 &&
3349 $as_echo "$as_me: caught signal $ac_signal"
3350 $as_echo "$as_me: exit $exit_status"
3352 rm -f core *.core core.conftest.* &&
3353 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3356 for ac_signal in 1 2 13 15; do
3357 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3361 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3362 rm -f -r conftest* confdefs.h
3364 $as_echo "/* confdefs.h */" > confdefs.h
3366 # Predefined preprocessor variables.
3368 cat >>confdefs.h <<_ACEOF
3369 #define PACKAGE_NAME "$PACKAGE_NAME"
3372 cat >>confdefs.h <<_ACEOF
3373 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3376 cat >>confdefs.h <<_ACEOF
3377 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3380 cat >>confdefs.h <<_ACEOF
3381 #define PACKAGE_STRING "$PACKAGE_STRING"
3384 cat >>confdefs.h <<_ACEOF
3385 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3388 cat >>confdefs.h <<_ACEOF
3389 #define PACKAGE_URL "$PACKAGE_URL"
3393 # Let the site file select an alternate cache file if it wants to.
3394 # Prefer an explicitly selected file to automatically selected ones.
3397 if test -n "$CONFIG_SITE"; then
3398 # We do not want a PATH search for config.site.
3399 case $CONFIG_SITE in #((
3400 -*) ac_site_file1=./$CONFIG_SITE;;
3401 */*) ac_site_file1=$CONFIG_SITE;;
3402 *) ac_site_file1=./$CONFIG_SITE;;
3404 elif test "x$prefix" != xNONE; then
3405 ac_site_file1=$prefix/share/config.site
3406 ac_site_file2=$prefix/etc/config.site
3408 ac_site_file1=$ac_default_prefix/share/config.site
3409 ac_site_file2=$ac_default_prefix/etc/config.site
3411 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3413 test "x$ac_site_file" = xNONE && continue
3414 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3416 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3417 sed 's/^/| /' "$ac_site_file" >&5
3419 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3421 as_fn_error $? "failed to load site script $ac_site_file
3422 See \`config.log' for more details" "$LINENO" 5; }
3426 if test -r "$cache_file"; then
3427 # Some versions of bash will fail to source /dev/null (special files
3428 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3429 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3431 $as_echo "$as_me: loading cache $cache_file" >&6;}
3433 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3434 *) . "./$cache_file";;
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3439 $as_echo "$as_me: creating cache $cache_file" >&6;}
3443 gt_needs="$gt_needs "
3444 as_fn_append ac_func_list " _set_invalid_parameter_handler"
3445 as_fn_append ac_header_list " unistd.h"
3446 as_fn_append ac_header_list " sys/mman.h"
3447 as_fn_append ac_func_list " mprotect"
3448 as_fn_append ac_header_list " netdb.h"
3449 as_fn_append ac_func_list " snprintf"
3450 as_fn_append ac_header_list " sys/socket.h"
3451 as_fn_append ac_header_list " wchar.h"
3452 as_fn_append ac_header_list " stdint.h"
3453 as_fn_append ac_header_list " strings.h"
3454 as_fn_append ac_header_list " sys/stat.h"
3455 as_fn_append ac_header_list " sys/uio.h"
3456 as_fn_append ac_header_list " sys/time.h"
3457 as_fn_append ac_func_list " localtime_r"
3458 as_fn_append ac_func_list " vasnprintf"
3459 as_fn_append ac_header_list " features.h"
3460 as_fn_append ac_func_list " symlink"
3461 as_fn_append ac_header_list " inttypes.h"
3462 as_fn_append ac_func_list " shutdown"
3463 # Check that the precious variables saved in the cache have kept the same
3465 ac_cache_corrupted=false
3466 for ac_var in $ac_precious_vars; do
3467 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3468 eval ac_new_set=\$ac_env_${ac_var}_set
3469 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3470 eval ac_new_val=\$ac_env_${ac_var}_value
3471 case $ac_old_set,$ac_new_set in
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3474 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3475 ac_cache_corrupted=: ;;
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3478 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3479 ac_cache_corrupted=: ;;
3482 if test "x$ac_old_val" != "x$ac_new_val"; then
3483 # differences in whitespace do not lead to failure.
3484 ac_old_val_w=`echo x $ac_old_val`
3485 ac_new_val_w=`echo x $ac_new_val`
3486 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3488 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3489 ac_cache_corrupted=:
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3492 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3493 eval $ac_var=\$ac_old_val
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3496 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3498 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3501 # Pass precious variables to config.status.
3502 if test "$ac_new_set" = set; then
3504 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3505 *) ac_arg=$ac_var=$ac_new_val ;;
3507 case " $ac_configure_args " in
3508 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3509 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3513 if $ac_cache_corrupted; then
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3517 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3518 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3520 ## -------------------- ##
3521 ## Main body of script. ##
3522 ## -------------------- ##
3525 ac_cpp='$CPP $CPPFLAGS'
3526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532 for ac_dir in build-aux "$srcdir"/build-aux; do
3533 if test -f "$ac_dir/install-sh"; then
3535 ac_install_sh="$ac_aux_dir/install-sh -c"
3537 elif test -f "$ac_dir/install.sh"; then
3539 ac_install_sh="$ac_aux_dir/install.sh -c"
3541 elif test -f "$ac_dir/shtool"; then
3543 ac_install_sh="$ac_aux_dir/shtool install -c"
3547 if test -z "$ac_aux_dir"; then
3548 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3551 # These three variables are undocumented and unsupported,
3552 # and are intended to be withdrawn in a future Autoconf release.
3553 # They can cause serious problems if a builder's source tree is in a directory
3554 # whose full name contains unusual characters.
3555 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3556 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3557 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3562 am__api_version='1.11'
3564 # Find a good install program. We prefer a C program (faster),
3565 # so one script is as good as another. But avoid the broken or
3566 # incompatible versions:
3567 # SysV /etc/install, /usr/sbin/install
3568 # SunOS /usr/etc/install
3569 # IRIX /sbin/install
3571 # AmigaOS /C/install, which installs bootblocks on floppy discs
3572 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3573 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3574 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3575 # OS/2's system install, which has a completely different semantic
3576 # ./install, which can be erroneously created by make from ./install.sh.
3577 # Reject install programs that cannot install multiple files.
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3579 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3580 if test -z "$INSTALL"; then
3581 if ${ac_cv_path_install+:} false; then :
3582 $as_echo_n "(cached) " >&6
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 test -z "$as_dir" && as_dir=.
3589 # Account for people who put trailing slashes in PATH elements.
3590 case $as_dir/ in #((
3591 ./ | .// | /[cC]/* | \
3592 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3593 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3596 # OSF1 and SCO ODT 3.0 have their own names for install.
3597 # Don't use installbsd from OSF since it installs stuff as root
3599 for ac_prog in ginstall scoinst install; do
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3602 if test $ac_prog = install &&
3603 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3604 # AIX install. It has an incompatible calling convention.
3606 elif test $ac_prog = install &&
3607 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3608 # program-specific install script used by HP pwplus--don't use.
3611 rm -rf conftest.one conftest.two conftest.dir
3612 echo one > conftest.one
3613 echo two > conftest.two
3615 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3616 test -s conftest.one && test -s conftest.two &&
3617 test -s conftest.dir/conftest.one &&
3618 test -s conftest.dir/conftest.two
3620 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3633 rm -rf conftest.one conftest.two conftest.dir
3636 if test "${ac_cv_path_install+set}" = set; then
3637 INSTALL=$ac_cv_path_install
3639 # As a last resort, use the slow shell script. Don't cache a
3640 # value for INSTALL within a source directory, because that will
3641 # break other packages using the cache if that directory is
3642 # removed, or if the value is a relative name.
3643 INSTALL=$ac_install_sh
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3647 $as_echo "$INSTALL" >&6; }
3649 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3650 # It thinks the first close brace ends the variable substitution.
3651 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3653 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3655 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3658 $as_echo_n "checking whether build environment is sane... " >&6; }
3661 echo timestamp > conftest.file
3662 # Reject unsafe characters in $srcdir or the absolute working directory
3663 # name. Accept space and tab only in the latter.
3667 *[\\\"\#\$\&\'\`$am_lf]*)
3668 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3671 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3672 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3675 # Do `set' in a subshell so we don't clobber the current shell's
3676 # arguments. Must try -L first in case configure is actually a
3677 # symlink; some systems play weird games with the mod time of symlinks
3678 # (eg FreeBSD returns the mod time of the symlink's containing
3681 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3682 if test "$*" = "X"; then
3684 set X `ls -t "$srcdir/configure" conftest.file`
3687 if test "$*" != "X $srcdir/configure conftest.file" \
3688 && test "$*" != "X conftest.file $srcdir/configure"; then
3690 # If neither matched, then we have a broken ls. This can happen
3691 # if, for instance, CONFIG_SHELL is bash and it inherits a
3692 # broken ls alias from the environment. This has actually
3693 # happened. Such a system could not be considered "sane".
3694 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3695 alias in your environment" "$LINENO" 5
3698 test "$2" = conftest.file
3704 as_fn_error $? "newly created file is older than distributed files!
3705 Check your system clock" "$LINENO" 5
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3708 $as_echo "yes" >&6; }
3709 test "$program_prefix" != NONE &&
3710 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3711 # Use a double $ so make ignores it.
3712 test "$program_suffix" != NONE &&
3713 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3714 # Double any \ or $.
3715 # By default was `s,x,x', remove it if useless.
3716 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3717 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3719 # expand $ac_aux_dir to an absolute path
3720 am_aux_dir=`cd $ac_aux_dir && pwd`
3722 if test x"${MISSING+set}" != xset; then
3725 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3727 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3730 # Use eval to expand $SHELL
3731 if eval "$MISSING --run true"; then
3732 am_missing_run="$MISSING --run "
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3736 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3739 if test x"${install_sh}" != xset; then
3742 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3744 install_sh="\${SHELL} $am_aux_dir/install-sh"
3748 # Installed binaries are usually stripped using `strip' when the user
3749 # run `make install-strip'. However `strip' might not be the right
3750 # tool to use in cross-compilation environments, therefore Automake
3751 # will honor the `STRIP' environment variable to overrule this program.
3752 if test "$cross_compiling" != no; then
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3755 set dummy ${ac_tool_prefix}strip; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if ${ac_cv_prog_STRIP+:} false; then :
3759 $as_echo_n "(cached) " >&6
3761 if test -n "$STRIP"; then
3762 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 STRIP=$ac_cv_prog_STRIP
3782 if test -n "$STRIP"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3784 $as_echo "$STRIP" >&6; }
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3792 if test -z "$ac_cv_prog_STRIP"; then
3794 # Extract the first word of "strip", so it can be a program name with args.
3795 set dummy strip; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3799 $as_echo_n "(cached) " >&6
3801 if test -n "$ac_ct_STRIP"; then
3802 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3811 ac_cv_prog_ac_ct_STRIP="strip"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3821 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3822 if test -n "$ac_ct_STRIP"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3824 $as_echo "$ac_ct_STRIP" >&6; }
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3830 if test "x$ac_ct_STRIP" = x; then
3833 case $cross_compiling:$ac_tool_warned in
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3837 ac_tool_warned=yes ;;
3842 STRIP="$ac_cv_prog_STRIP"
3846 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3849 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3850 if test -z "$MKDIR_P"; then
3851 if ${ac_cv_path_mkdir+:} false; then :
3852 $as_echo_n "(cached) " >&6
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3858 test -z "$as_dir" && as_dir=.
3859 for ac_prog in mkdir gmkdir; do
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3862 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3863 'mkdir (GNU coreutils) '* | \
3864 'mkdir (coreutils) '* | \
3865 'mkdir (fileutils) '4.1*)
3866 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3876 test -d ./--version && rmdir ./--version
3877 if test "${ac_cv_path_mkdir+set}" = set; then
3878 MKDIR_P="$ac_cv_path_mkdir -p"
3880 # As a last resort, use the slow shell script. Don't cache a
3881 # value for MKDIR_P within a source directory, because that will
3882 # break other packages using the cache if that directory is
3883 # removed, or if the value is a relative name.
3884 MKDIR_P="$ac_install_sh -d"
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3888 $as_echo "$MKDIR_P" >&6; }
3893 [\\/$]* | ?:[\\/]*) ;;
3894 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3897 for ac_prog in gawk mawk nawk awk
3899 # Extract the first word of "$ac_prog", so it can be a program name with args.
3900 set dummy $ac_prog; ac_word=$2
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3902 $as_echo_n "checking for $ac_word... " >&6; }
3903 if ${ac_cv_prog_AWK+:} false; then :
3904 $as_echo_n "(cached) " >&6
3906 if test -n "$AWK"; then
3907 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 test -z "$as_dir" && as_dir=.
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3916 ac_cv_prog_AWK="$ac_prog"
3917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 if test -n "$AWK"; then
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3929 $as_echo "$AWK" >&6; }
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 $as_echo "no" >&6; }
3936 test -n "$AWK" && break
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3940 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3942 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3943 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3944 $as_echo_n "(cached) " >&6
3946 cat >conftest.make <<\_ACEOF
3949 @echo '@@@%%%=$(MAKE)=@@@%%%'
3951 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3952 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3954 eval ac_cv_prog_make_${ac_make}_set=yes;;
3956 eval ac_cv_prog_make_${ac_make}_set=no;;
3960 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3962 $as_echo "yes" >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3967 SET_MAKE="MAKE=${MAKE-make}"
3970 rm -rf .tst 2>/dev/null
3971 mkdir .tst 2>/dev/null
3972 if test -d .tst; then
3977 rmdir .tst 2>/dev/null
3979 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3980 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3981 # is not polluted with repeated "-I."
3982 am__isrc=' -I$(srcdir)'
3983 # test to see if srcdir already configured
3984 if test -f $srcdir/config.status; then
3985 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3989 # test whether we have cygpath
3990 if test -z "$CYGPATH_W"; then
3991 if (cygpath --version) >/dev/null 2>/dev/null; then
3992 CYGPATH_W='cygpath -w'
3999 # Define the identity of the package.
4004 cat >>confdefs.h <<_ACEOF
4005 #define PACKAGE "$PACKAGE"
4009 cat >>confdefs.h <<_ACEOF
4010 #define VERSION "$VERSION"
4013 # Some tools Automake needs.
4015 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4018 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4021 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4024 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4027 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4029 # We need awk for the "check" target. The system "awk" is bad on
4031 # Always define AMTAR for backward compatibility. Yes, it's still used
4032 # in the wild :-( We should find a proper way to deprecate it ...
4035 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4041 # Check whether --enable-silent-rules was given.
4042 if test "${enable_silent_rules+set}" = set; then :
4043 enableval=$enable_silent_rules;
4046 case $enable_silent_rules in
4047 yes) AM_DEFAULT_VERBOSITY=0;;
4048 no) AM_DEFAULT_VERBOSITY=1;;
4049 *) AM_DEFAULT_VERBOSITY=0;;
4051 am_make=${MAKE-make}
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4053 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4054 if ${am_cv_make_support_nested_variables+:} false; then :
4055 $as_echo_n "(cached) " >&6
4057 if $as_echo 'TRUE=$(BAR$(V))
4063 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4064 am_cv_make_support_nested_variables=yes
4066 am_cv_make_support_nested_variables=no
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4070 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4071 if test $am_cv_make_support_nested_variables = yes; then
4073 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4075 AM_V=$AM_DEFAULT_VERBOSITY
4076 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4080 ac_config_headers="$ac_config_headers config.h"
4084 ac_cpp='$CPP $CPPFLAGS'
4085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4088 if test -n "$ac_tool_prefix"; then
4089 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4090 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if ${ac_cv_prog_CC+:} false; then :
4094 $as_echo_n "(cached) " >&6
4096 if test -n "$CC"; then
4097 ac_cv_prog_CC="$CC" # Let the user override the test.
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 test -z "$as_dir" && as_dir=.
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4106 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 if test -n "$CC"; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4119 $as_echo "$CC" >&6; }
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4127 if test -z "$ac_cv_prog_CC"; then
4129 # Extract the first word of "gcc", so it can be a program name with args.
4130 set dummy gcc; ac_word=$2
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132 $as_echo_n "checking for $ac_word... " >&6; }
4133 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4134 $as_echo_n "(cached) " >&6
4136 if test -n "$ac_ct_CC"; then
4137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 test -z "$as_dir" && as_dir=.
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4146 ac_cv_prog_ac_ct_CC="gcc"
4147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4157 if test -n "$ac_ct_CC"; then
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4159 $as_echo "$ac_ct_CC" >&6; }
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162 $as_echo "no" >&6; }
4165 if test "x$ac_ct_CC" = x; then
4168 case $cross_compiling:$ac_tool_warned in
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4172 ac_tool_warned=yes ;;
4180 if test -z "$CC"; then
4181 if test -n "$ac_tool_prefix"; then
4182 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4183 set dummy ${ac_tool_prefix}cc; ac_word=$2
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4185 $as_echo_n "checking for $ac_word... " >&6; }
4186 if ${ac_cv_prog_CC+:} false; then :
4187 $as_echo_n "(cached) " >&6
4189 if test -n "$CC"; then
4190 ac_cv_prog_CC="$CC" # Let the user override the test.
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 test -z "$as_dir" && as_dir=.
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4199 ac_cv_prog_CC="${ac_tool_prefix}cc"
4200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 if test -n "$CC"; then
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4212 $as_echo "$CC" >&6; }
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 $as_echo "no" >&6; }
4221 if test -z "$CC"; then
4222 # Extract the first word of "cc", so it can be a program name with args.
4223 set dummy cc; ac_word=$2
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225 $as_echo_n "checking for $ac_word... " >&6; }
4226 if ${ac_cv_prog_CC+:} false; then :
4227 $as_echo_n "(cached) " >&6
4229 if test -n "$CC"; then
4230 ac_cv_prog_CC="$CC" # Let the user override the test.
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4240 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4241 ac_prog_rejected=yes
4245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4252 if test $ac_prog_rejected = yes; then
4253 # We found a bogon in the path, so make sure we never use it.
4254 set dummy $ac_cv_prog_CC
4256 if test $# != 0; then
4257 # We chose a different compiler from the bogus one.
4258 # However, it has the same basename, so the bogon will be chosen
4259 # first if we set CC to just the basename; use the full file name.
4261 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4267 if test -n "$CC"; then
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4269 $as_echo "$CC" >&6; }
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4272 $as_echo "no" >&6; }
4277 if test -z "$CC"; then
4278 if test -n "$ac_tool_prefix"; then
4279 for ac_prog in cl.exe
4281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284 $as_echo_n "checking for $ac_word... " >&6; }
4285 if ${ac_cv_prog_CC+:} false; then :
4286 $as_echo_n "(cached) " >&6
4288 if test -n "$CC"; then
4289 ac_cv_prog_CC="$CC" # Let the user override the test.
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 test -z "$as_dir" && as_dir=.
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4298 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 if test -n "$CC"; then
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4311 $as_echo "$CC" >&6; }
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4318 test -n "$CC" && break
4321 if test -z "$CC"; then
4323 for ac_prog in cl.exe
4325 # Extract the first word of "$ac_prog", so it can be a program name with args.
4326 set dummy $ac_prog; ac_word=$2
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328 $as_echo_n "checking for $ac_word... " >&6; }
4329 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4330 $as_echo_n "(cached) " >&6
4332 if test -n "$ac_ct_CC"; then
4333 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4342 ac_cv_prog_ac_ct_CC="$ac_prog"
4343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4353 if test -n "$ac_ct_CC"; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4355 $as_echo "$ac_ct_CC" >&6; }
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4362 test -n "$ac_ct_CC" && break
4365 if test "x$ac_ct_CC" = x; then
4368 case $cross_compiling:$ac_tool_warned in
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4372 ac_tool_warned=yes ;;
4381 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4383 as_fn_error $? "no acceptable C compiler found in \$PATH
4384 See \`config.log' for more details" "$LINENO" 5; }
4386 # Provide some information about the compiler.
4387 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4390 for ac_option in --version -v -V -qversion; do
4391 { { ac_try="$ac_compiler $ac_option >&5"
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4397 $as_echo "$ac_try_echo"; } >&5
4398 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4400 if test -s conftest.err; then
4402 ... rest of stderr output deleted ...
4403 10q' conftest.err >conftest.er1
4404 cat conftest.er1 >&5
4406 rm -f conftest.er1 conftest.err
4407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4408 test $ac_status = 0; }
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4422 ac_clean_files_save=$ac_clean_files
4423 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4424 # Try to create an executable without -o first, disregard a.out.
4425 # It will help us diagnose broken compilers, and finding out an intuition
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4428 $as_echo_n "checking whether the C compiler works... " >&6; }
4429 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4431 # The possible output files:
4432 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4435 for ac_file in $ac_files
4438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4439 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4444 if { { ac_try="$ac_link_default"
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4450 $as_echo "$ac_try_echo"; } >&5
4451 (eval "$ac_link_default") 2>&5
4453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4454 test $ac_status = 0; }; then :
4455 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4456 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4457 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4458 # so that the user can short-circuit this test for compilers unknown to
4460 for ac_file in $ac_files ''
4462 test -f "$ac_file" || continue
4464 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4467 # We found the default executable, but exeext='' is most
4471 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4473 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4475 # We set ac_cv_exeext here because the later test for it is not
4476 # safe: cross compilers may not add the suffix if given an `-o'
4477 # argument, so we may need to know it at that point already.
4478 # Even if this section looks crufty: it has the advantage of
4485 test "$ac_cv_exeext" = no && ac_cv_exeext=
4490 if test -z "$ac_file"; then :
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492 $as_echo "no" >&6; }
4493 $as_echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4498 as_fn_error 77 "C compiler cannot create executables
4499 See \`config.log' for more details" "$LINENO" 5; }
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4502 $as_echo "yes" >&6; }
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4505 $as_echo_n "checking for C compiler default output file name... " >&6; }
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4507 $as_echo "$ac_file" >&6; }
4508 ac_exeext=$ac_cv_exeext
4510 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4511 ac_clean_files=$ac_clean_files_save
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4513 $as_echo_n "checking for suffix of executables... " >&6; }
4514 if { { ac_try="$ac_link"
4516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517 *) ac_try_echo=$ac_try;;
4519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4520 $as_echo "$ac_try_echo"; } >&5
4521 (eval "$ac_link") 2>&5
4523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4524 test $ac_status = 0; }; then :
4525 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4526 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4527 # work properly (i.e., refer to `conftest.exe'), while it won't with
4529 for ac_file in conftest.exe conftest conftest.*; do
4530 test -f "$ac_file" || continue
4532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4533 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4541 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4542 See \`config.log' for more details" "$LINENO" 5; }
4544 rm -f conftest conftest$ac_cv_exeext
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4546 $as_echo "$ac_cv_exeext" >&6; }
4548 rm -f conftest.$ac_ext
4549 EXEEXT=$ac_cv_exeext
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4557 FILE *f = fopen ("conftest.out", "w");
4558 return ferror (f) || fclose (f) != 0;
4564 ac_clean_files="$ac_clean_files conftest.out"
4565 # Check that the compiler produces executables we can run. If not, either
4566 # the compiler is broken, or we cross compile.
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4568 $as_echo_n "checking whether we are cross compiling... " >&6; }
4569 if test "$cross_compiling" != yes; then
4570 { { ac_try="$ac_link"
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4576 $as_echo "$ac_try_echo"; } >&5
4577 (eval "$ac_link") 2>&5
4579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4580 test $ac_status = 0; }
4581 if { ac_try='./conftest$ac_cv_exeext'
4582 { { case "(($ac_try" in
4583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584 *) ac_try_echo=$ac_try;;
4586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4587 $as_echo "$ac_try_echo"; } >&5
4588 (eval "$ac_try") 2>&5
4590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4591 test $ac_status = 0; }; }; then
4594 if test "$cross_compiling" = maybe; then
4597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4599 as_fn_error $? "cannot run C compiled programs.
4600 If you meant to cross compile, use \`--host'.
4601 See \`config.log' for more details" "$LINENO" 5; }
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4606 $as_echo "$cross_compiling" >&6; }
4608 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4609 ac_clean_files=$ac_clean_files_save
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4611 $as_echo_n "checking for suffix of object files... " >&6; }
4612 if ${ac_cv_objext+:} false; then :
4613 $as_echo_n "(cached) " >&6
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4626 rm -f conftest.o conftest.obj
4627 if { { ac_try="$ac_compile"
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_compile") 2>&5
4636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4637 test $ac_status = 0; }; then :
4638 for ac_file in conftest.o conftest.obj conftest.*; do
4639 test -f "$ac_file" || continue;
4641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4642 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4647 $as_echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4652 as_fn_error $? "cannot compute suffix of object files: cannot compile
4653 See \`config.log' for more details" "$LINENO" 5; }
4655 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4658 $as_echo "$ac_cv_objext" >&6; }
4659 OBJEXT=$ac_cv_objext
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4662 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4663 if ${ac_cv_c_compiler_gnu+:} false; then :
4664 $as_echo_n "(cached) " >&6
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4680 if ac_fn_c_try_compile "$LINENO"; then :
4685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4686 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4690 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4691 if test $ac_compiler_gnu = yes; then
4696 ac_test_CFLAGS=${CFLAGS+set}
4697 ac_save_CFLAGS=$CFLAGS
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4699 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4700 if ${ac_cv_prog_cc_g+:} false; then :
4701 $as_echo_n "(cached) " >&6
4703 ac_save_c_werror_flag=$ac_c_werror_flag
4704 ac_c_werror_flag=yes
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4718 if ac_fn_c_try_compile "$LINENO"; then :
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4733 if ac_fn_c_try_compile "$LINENO"; then :
4736 ac_c_werror_flag=$ac_save_c_werror_flag
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4749 if ac_fn_c_try_compile "$LINENO"; then :
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757 ac_c_werror_flag=$ac_save_c_werror_flag
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4760 $as_echo "$ac_cv_prog_cc_g" >&6; }
4761 if test "$ac_test_CFLAGS" = set; then
4762 CFLAGS=$ac_save_CFLAGS
4763 elif test $ac_cv_prog_cc_g = yes; then
4764 if test "$GCC" = yes; then
4770 if test "$GCC" = yes; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4777 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4778 if ${ac_cv_prog_cc_c89+:} false; then :
4779 $as_echo_n "(cached) " >&6
4781 ac_cv_prog_cc_c89=no
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h. */
4787 #include <sys/types.h>
4788 #include <sys/stat.h>
4789 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4790 struct buf { int x; };
4791 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4792 static char *e (p, i)
4798 static char *f (char * (*g) (char **, int), char **p, ...)
4803 s = g (p, va_arg (v,int));
4808 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4809 function prototypes and stuff, but not '\xHH' hex character constants.
4810 These don't provoke an error unfortunately, instead are silently treated
4811 as 'x'. The following induces an error, until -std is added to get
4812 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4813 array size at least. It's necessary to write '\x00'==0 to get something
4814 that's true only with -std. */
4815 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4817 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4818 inside strings and character constants. */
4820 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4822 int test (int i, double x);
4823 struct s1 {int (*f) (int a);};
4824 struct s2 {int (*f) (double a);};
4825 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4831 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4836 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4837 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4839 CC="$ac_save_CC $ac_arg"
4840 if ac_fn_c_try_compile "$LINENO"; then :
4841 ac_cv_prog_cc_c89=$ac_arg
4843 rm -f core conftest.err conftest.$ac_objext
4844 test "x$ac_cv_prog_cc_c89" != "xno" && break
4846 rm -f conftest.$ac_ext
4851 case "x$ac_cv_prog_cc_c89" in
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4854 $as_echo "none needed" >&6; } ;;
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4857 $as_echo "unsupported" >&6; } ;;
4859 CC="$CC $ac_cv_prog_cc_c89"
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4861 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4863 if test "x$ac_cv_prog_cc_c89" != xno; then :
4868 ac_cpp='$CPP $CPPFLAGS'
4869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4872 DEPDIR="${am__leading_dot}deps"
4874 ac_config_commands="$ac_config_commands depfiles"
4877 am_make=${MAKE-make}
4878 cat > confinc << 'END'
4880 @echo this is the am__doit target
4883 # If we don't find an include directive, just comment out the code.
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4885 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4889 # First try GNU make style include.
4890 echo "include confinc" > confmf
4891 # Ignore all kinds of additional output from `make'.
4892 case `$am_make -s -f confmf 2> /dev/null` in #(
4893 *the\ am__doit\ target*)
4899 # Now try BSD make style include.
4900 if test "$am__include" = "#"; then
4901 echo '.include "confinc"' > confmf
4902 case `$am_make -s -f confmf 2> /dev/null` in #(
4903 *the\ am__doit\ target*)
4904 am__include=.include
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4913 $as_echo "$_am_result" >&6; }
4914 rm -f confinc confmf
4916 # Check whether --enable-dependency-tracking was given.
4917 if test "${enable_dependency_tracking+set}" = set; then :
4918 enableval=$enable_dependency_tracking;
4921 if test "x$enable_dependency_tracking" != xno; then
4922 am_depcomp="$ac_aux_dir/depcomp"
4926 if test "x$enable_dependency_tracking" != xno; then
4936 depcc="$CC" am_compiler_list=
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4939 $as_echo_n "checking dependency style of $depcc... " >&6; }
4940 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4941 $as_echo_n "(cached) " >&6
4943 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4944 # We make a subdir and do the tests there. Otherwise we can end up
4945 # making bogus files that we don't know about and never remove. For
4946 # instance it was reported that on HP-UX the gcc test will end up
4947 # making a dummy file named `D' -- because `-MD' means `put the output
4951 # Copy depcomp to subdir because otherwise we won't find it if we're
4952 # using a relative directory.
4953 cp "$am_depcomp" conftest.dir
4955 # We will build objects and dependencies in a subdirectory because
4956 # it helps to detect inapplicable dependency modes. For instance
4957 # both Tru64's cc and ICC support -MD to output dependencies as a
4958 # side effect of compilation, but ICC will put the dependencies in
4959 # the current directory while Tru64 will put them in the object
4963 am_cv_CC_dependencies_compiler_type=none
4964 if test "$am_compiler_list" = ""; then
4965 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4968 case " $depcc " in #(
4969 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4972 for depmode in $am_compiler_list; do
4973 # Setup a source with many dependencies, because some compilers
4974 # like to wrap large dependency lists on column 80 (with \), and
4975 # we should not choose a depcomp mode which is confused by this.
4977 # We need to recreate these files for each test, as the compiler may
4978 # overwrite some of them when testing with obscure command lines.
4979 # This happens at least with the AIX C compiler.
4981 for i in 1 2 3 4 5 6; do
4982 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4983 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4984 # Solaris 8's {/usr,}/bin/sh.
4985 touch sub/conftst$i.h
4987 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4989 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4990 # mode. It turns out that the SunPro C++ compiler does not properly
4991 # handle `-M -o', and we need to detect this. Also, some Intel
4992 # versions had trouble with output in subdirs
4993 am__obj=sub/conftest.${OBJEXT-o}
4994 am__minus_obj="-o $am__obj"
4997 # This depmode causes a compiler race in universal mode.
4998 test "$am__universal" = false || continue
5001 # after this tag, mechanisms are not by side-effect, so they'll
5002 # only be used when explicitly requested
5003 if test "x$enable_dependency_tracking" = xyes; then
5009 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5010 # This compiler won't grok `-c -o', but also, the minuso test has
5011 # not run yet. These depmodes are late enough in the game, and
5012 # so weak that their functioning should not be impacted.
5013 am__obj=conftest.${OBJEXT-o}
5018 if depmode=$depmode \
5019 source=sub/conftest.c object=$am__obj \
5020 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5021 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5022 >/dev/null 2>conftest.err &&
5023 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5024 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5025 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5026 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5027 # icc doesn't choke on unknown options, it will just issue warnings
5028 # or remarks (even with -Werror). So we grep stderr for any message
5029 # that says an option was ignored or not supported.
5030 # When given -MP, icc 7.0 and 7.1 complain thusly:
5031 # icc: Command line warning: ignoring option '-M'; no argument required
5032 # The diagnosis changed in icc 8.0:
5033 # icc: Command line remark: option '-MP' not supported
5034 if (grep 'ignoring option' conftest.err ||
5035 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5036 am_cv_CC_dependencies_compiler_type=$depmode
5045 am_cv_CC_dependencies_compiler_type=none
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5050 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5051 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5054 test "x$enable_dependency_tracking" != xno \
5055 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5057 am__fastdepCC_FALSE='#'
5059 am__fastdepCC_TRUE='#'
5060 am__fastdepCC_FALSE=
5066 ac_cpp='$CPP $CPPFLAGS'
5067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5071 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5072 # On Suns, sometimes $CPP names a directory.
5073 if test -n "$CPP" && test -d "$CPP"; then
5076 if test -z "$CPP"; then
5077 if ${ac_cv_prog_CPP+:} false; then :
5078 $as_echo_n "(cached) " >&6
5080 # Double quotes because CPP needs to be expanded
5081 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5084 for ac_c_preproc_warn_flag in '' yes
5086 # Use a header file that comes with gcc, so configuring glibc
5087 # with a fresh cross-compiler works.
5088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089 # <limits.h> exists even on freestanding compilers.
5090 # On the NeXT, cc -E runs the code through the compiler's parser,
5091 # not just through cpp. "Syntax error" is here to catch this case.
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5095 # include <limits.h>
5097 # include <assert.h>
5101 if ac_fn_c_try_cpp "$LINENO"; then :
5104 # Broken: fails on valid input.
5107 rm -f conftest.err conftest.i conftest.$ac_ext
5109 # OK, works on sane cases. Now check whether nonexistent headers
5110 # can be detected and how.
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5113 #include <ac_nonexistent.h>
5115 if ac_fn_c_try_cpp "$LINENO"; then :
5116 # Broken: success on invalid input.
5119 # Passes both tests.
5123 rm -f conftest.err conftest.i conftest.$ac_ext
5126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5127 rm -f conftest.i conftest.err conftest.$ac_ext
5128 if $ac_preproc_ok; then :
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5141 $as_echo "$CPP" >&6; }
5143 for ac_c_preproc_warn_flag in '' yes
5145 # Use a header file that comes with gcc, so configuring glibc
5146 # with a fresh cross-compiler works.
5147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5148 # <limits.h> exists even on freestanding compilers.
5149 # On the NeXT, cc -E runs the code through the compiler's parser,
5150 # not just through cpp. "Syntax error" is here to catch this case.
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5154 # include <limits.h>
5156 # include <assert.h>
5160 if ac_fn_c_try_cpp "$LINENO"; then :
5163 # Broken: fails on valid input.
5166 rm -f conftest.err conftest.i conftest.$ac_ext
5168 # OK, works on sane cases. Now check whether nonexistent headers
5169 # can be detected and how.
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5172 #include <ac_nonexistent.h>
5174 if ac_fn_c_try_cpp "$LINENO"; then :
5175 # Broken: success on invalid input.
5178 # Passes both tests.
5182 rm -f conftest.err conftest.i conftest.$ac_ext
5185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5186 rm -f conftest.i conftest.err conftest.$ac_ext
5187 if $ac_preproc_ok; then :
5190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5192 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5193 See \`config.log' for more details" "$LINENO" 5; }
5197 ac_cpp='$CPP $CPPFLAGS'
5198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5204 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5205 if ${ac_cv_path_GREP+:} false; then :
5206 $as_echo_n "(cached) " >&6
5208 if test -z "$GREP"; then
5209 ac_path_GREP_found=false
5210 # Loop through the user's path and test for each of PROGNAME-LIST
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5215 test -z "$as_dir" && as_dir=.
5216 for ac_prog in grep ggrep; do
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5219 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5220 # Check for GNU ac_path_GREP and select it if it is found.
5221 # Check for GNU $ac_path_GREP
5222 case `"$ac_path_GREP" --version 2>&1` in
5224 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5227 $as_echo_n 0123456789 >"conftest.in"
5230 cat "conftest.in" "conftest.in" >"conftest.tmp"
5231 mv "conftest.tmp" "conftest.in"
5232 cp "conftest.in" "conftest.nl"
5233 $as_echo 'GREP' >> "conftest.nl"
5234 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5235 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5236 as_fn_arith $ac_count + 1 && ac_count=$as_val
5237 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5238 # Best one so far, save it but keep looking for a better one
5239 ac_cv_path_GREP="$ac_path_GREP"
5240 ac_path_GREP_max=$ac_count
5242 # 10*(2^10) chars as input seems more than enough
5243 test $ac_count -gt 10 && break
5245 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5248 $ac_path_GREP_found && break 3
5253 if test -z "$ac_cv_path_GREP"; then
5254 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5257 ac_cv_path_GREP=$GREP
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5262 $as_echo "$ac_cv_path_GREP" >&6; }
5263 GREP="$ac_cv_path_GREP"
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5267 $as_echo_n "checking for egrep... " >&6; }
5268 if ${ac_cv_path_EGREP+:} false; then :
5269 $as_echo_n "(cached) " >&6
5271 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5272 then ac_cv_path_EGREP="$GREP -E"
5274 if test -z "$EGREP"; then
5275 ac_path_EGREP_found=false
5276 # Loop through the user's path and test for each of PROGNAME-LIST
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5281 test -z "$as_dir" && as_dir=.
5282 for ac_prog in egrep; do
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5285 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5286 # Check for GNU ac_path_EGREP and select it if it is found.
5287 # Check for GNU $ac_path_EGREP
5288 case `"$ac_path_EGREP" --version 2>&1` in
5290 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5293 $as_echo_n 0123456789 >"conftest.in"
5296 cat "conftest.in" "conftest.in" >"conftest.tmp"
5297 mv "conftest.tmp" "conftest.in"
5298 cp "conftest.in" "conftest.nl"
5299 $as_echo 'EGREP' >> "conftest.nl"
5300 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5301 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5302 as_fn_arith $ac_count + 1 && ac_count=$as_val
5303 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5304 # Best one so far, save it but keep looking for a better one
5305 ac_cv_path_EGREP="$ac_path_EGREP"
5306 ac_path_EGREP_max=$ac_count
5308 # 10*(2^10) chars as input seems more than enough
5309 test $ac_count -gt 10 && break
5311 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5314 $ac_path_EGREP_found && break 3
5319 if test -z "$ac_cv_path_EGREP"; then
5320 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5323 ac_cv_path_EGREP=$EGREP
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5329 $as_echo "$ac_cv_path_EGREP" >&6; }
5330 EGREP="$ac_cv_path_EGREP"
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5336 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5337 if ${gl_cv_c_amsterdam_compiler+:} false; then :
5338 $as_echo_n "(cached) " >&6
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5350 $EGREP "Amsterdam" >/dev/null 2>&1; then :
5351 gl_cv_c_amsterdam_compiler=yes
5353 gl_cv_c_amsterdam_compiler=no
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5360 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5361 if test -z "$AR"; then
5362 if test $gl_cv_c_amsterdam_compiler = yes; then
5364 if test -z "$ARFLAGS"; then
5368 if test -n "$ac_tool_prefix"; then
5369 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5370 set dummy ${ac_tool_prefix}ar; ac_word=$2
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5372 $as_echo_n "checking for $ac_word... " >&6; }
5373 if ${ac_cv_prog_AR+:} false; then :
5374 $as_echo_n "(cached) " >&6
5376 if test -n "$AR"; then
5377 ac_cv_prog_AR="$AR" # Let the user override the test.
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 test -z "$as_dir" && as_dir=.
5384 for ac_exec_ext in '' $ac_executable_extensions; do
5385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5386 ac_cv_prog_AR="${ac_tool_prefix}ar"
5387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5397 if test -n "$AR"; then
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5399 $as_echo "$AR" >&6; }
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402 $as_echo "no" >&6; }
5407 if test -z "$ac_cv_prog_AR"; then
5409 # Extract the first word of "ar", so it can be a program name with args.
5410 set dummy ar; ac_word=$2
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5414 $as_echo_n "(cached) " >&6
5416 if test -n "$ac_ct_AR"; then
5417 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5426 ac_cv_prog_ac_ct_AR="ar"
5427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5436 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5437 if test -n "$ac_ct_AR"; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5439 $as_echo "$ac_ct_AR" >&6; }
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 $as_echo "no" >&6; }
5445 if test "x$ac_ct_AR" = x; then
5448 case $cross_compiling:$ac_tool_warned in
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5452 ac_tool_warned=yes ;;
5460 if test -z "$ARFLAGS"; then
5465 if test -z "$ARFLAGS"; then
5471 if test -z "$RANLIB"; then
5472 if test $gl_cv_c_amsterdam_compiler = yes; then
5475 if test -n "$ac_tool_prefix"; then
5476 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5477 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_prog_RANLIB+:} false; then :
5481 $as_echo_n "(cached) " >&6
5483 if test -n "$RANLIB"; then
5484 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5493 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 RANLIB=$ac_cv_prog_RANLIB
5504 if test -n "$RANLIB"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5506 $as_echo "$RANLIB" >&6; }
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509 $as_echo "no" >&6; }
5514 if test -z "$ac_cv_prog_RANLIB"; then
5515 ac_ct_RANLIB=$RANLIB
5516 # Extract the first word of "ranlib", so it can be a program name with args.
5517 set dummy ranlib; ac_word=$2
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5519 $as_echo_n "checking for $ac_word... " >&6; }
5520 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5521 $as_echo_n "(cached) " >&6
5523 if test -n "$ac_ct_RANLIB"; then
5524 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5533 ac_cv_prog_ac_ct_RANLIB="ranlib"
5534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5544 if test -n "$ac_ct_RANLIB"; then
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5546 $as_echo "$ac_ct_RANLIB" >&6; }
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5552 if test "x$ac_ct_RANLIB" = x; then
5555 case $cross_compiling:$ac_tool_warned in
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5559 ac_tool_warned=yes ;;
5561 RANLIB=$ac_ct_RANLIB
5564 RANLIB="$ac_cv_prog_RANLIB"
5571 # Make sure we can run config.sub.
5572 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5573 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5576 $as_echo_n "checking build system type... " >&6; }
5577 if ${ac_cv_build+:} false; then :
5578 $as_echo_n "(cached) " >&6
5580 ac_build_alias=$build_alias
5581 test "x$ac_build_alias" = x &&
5582 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5583 test "x$ac_build_alias" = x &&
5584 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5585 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5586 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5590 $as_echo "$ac_cv_build" >&6; }
5591 case $ac_cv_build in
5593 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5596 ac_save_IFS=$IFS; IFS='-'
5602 # Remember, the first character of IFS is used to create $*,
5603 # except with old shells:
5606 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5610 $as_echo_n "checking host system type... " >&6; }
5611 if ${ac_cv_host+:} false; then :
5612 $as_echo_n "(cached) " >&6
5614 if test "x$host_alias" = x; then
5615 ac_cv_host=$ac_cv_build
5617 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5618 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5623 $as_echo "$ac_cv_host" >&6; }
5626 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5629 ac_save_IFS=$IFS; IFS='-'
5635 # Remember, the first character of IFS is used to create $*,
5636 # except with old shells:
5639 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5643 $as_echo_n "checking for ANSI C header files... " >&6; }
5644 if ${ac_cv_header_stdc+:} false; then :
5645 $as_echo_n "(cached) " >&6
5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648 /* end confdefs.h. */
5662 if ac_fn_c_try_compile "$LINENO"; then :
5663 ac_cv_header_stdc=yes
5665 ac_cv_header_stdc=no
5667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669 if test $ac_cv_header_stdc = yes; then
5670 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5677 $EGREP "memchr" >/dev/null 2>&1; then :
5680 ac_cv_header_stdc=no
5686 if test $ac_cv_header_stdc = yes; then
5687 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5694 $EGREP "free" >/dev/null 2>&1; then :
5697 ac_cv_header_stdc=no
5703 if test $ac_cv_header_stdc = yes; then
5704 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5705 if test "$cross_compiling" = yes; then :
5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709 /* end confdefs.h. */
5712 #if ((' ' & 0x0FF) == 0x020)
5713 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5714 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5716 # define ISLOWER(c) \
5717 (('a' <= (c) && (c) <= 'i') \
5718 || ('j' <= (c) && (c) <= 'r') \
5719 || ('s' <= (c) && (c) <= 'z'))
5720 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5723 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5728 for (i = 0; i < 256; i++)
5729 if (XOR (islower (i), ISLOWER (i))
5730 || toupper (i) != TOUPPER (i))
5735 if ac_fn_c_try_run "$LINENO"; then :
5738 ac_cv_header_stdc=no
5740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5741 conftest.$ac_objext conftest.beam conftest.$ac_ext
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5747 $as_echo "$ac_cv_header_stdc" >&6; }
5748 if test $ac_cv_header_stdc = yes; then
5750 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5754 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5755 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5756 inttypes.h stdint.h unistd.h
5758 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5759 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5761 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5762 cat >>confdefs.h <<_ACEOF
5763 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5774 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5775 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5782 if test "$MINIX" = yes; then
5784 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5787 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5790 $as_echo "#define _MINIX 1" >>confdefs.h
5797 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5804 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5805 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5806 $as_echo_n "(cached) " >&6
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5811 # define __EXTENSIONS__ 1
5812 $ac_includes_default
5821 if ac_fn_c_try_compile "$LINENO"; then :
5822 ac_cv_safe_to_define___extensions__=yes
5824 ac_cv_safe_to_define___extensions__=no
5826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5829 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5830 test $ac_cv_safe_to_define___extensions__ = yes &&
5831 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5833 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5835 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5837 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5839 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5841 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5853 # IEEE behaviour is the default on all CPUs except Alpha and SH
5854 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5855 # and the GCC 4.1.2 manual).
5858 # On Alpha systems, a compiler option provides the behaviour.
5859 # See the ieee(3) manual page, also available at
5860 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5861 if test -n "$GCC"; then
5862 # GCC has the option -mieee.
5863 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5864 CPPFLAGS="$CPPFLAGS -mieee"
5866 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5867 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5868 CPPFLAGS="$CPPFLAGS -ieee"
5872 if test -n "$GCC"; then
5873 # GCC has the option -mieee.
5874 CPPFLAGS="$CPPFLAGS -mieee"
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5880 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
5881 if ${ac_cv_sys_largefile_source+:} false; then :
5882 $as_echo_n "(cached) " >&6
5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5886 /* end confdefs.h. */
5887 #include <sys/types.h> /* for off_t */
5892 int (*fp) (FILE *, off_t, int) = fseeko;
5893 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5898 if ac_fn_c_try_link "$LINENO"; then :
5899 ac_cv_sys_largefile_source=no; break
5901 rm -f core conftest.err conftest.$ac_objext \
5902 conftest$ac_exeext conftest.$ac_ext
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5905 #define _LARGEFILE_SOURCE 1
5906 #include <sys/types.h> /* for off_t */
5911 int (*fp) (FILE *, off_t, int) = fseeko;
5912 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5917 if ac_fn_c_try_link "$LINENO"; then :
5918 ac_cv_sys_largefile_source=1; break
5920 rm -f core conftest.err conftest.$ac_objext \
5921 conftest$ac_exeext conftest.$ac_ext
5922 ac_cv_sys_largefile_source=unknown
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
5927 $as_echo "$ac_cv_sys_largefile_source" >&6; }
5928 case $ac_cv_sys_largefile_source in #(
5931 cat >>confdefs.h <<_ACEOF
5932 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5938 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5939 # in glibc 2.1.3, but that breaks too many other things.
5940 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5941 if test $ac_cv_sys_largefile_source != unknown; then
5943 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
5947 # Check whether --enable-largefile was given.
5948 if test "${enable_largefile+set}" = set; then :
5949 enableval=$enable_largefile;
5952 if test "$enable_largefile" != no; then
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5955 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5956 if ${ac_cv_sys_largefile_CC+:} false; then :
5957 $as_echo_n "(cached) " >&6
5959 ac_cv_sys_largefile_CC=no
5960 if test "$GCC" != yes; then
5963 # IRIX 6.2 and later do not support large files by default,
5964 # so use the C compiler's -n32 option if that helps.
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5967 #include <sys/types.h>
5968 /* Check that off_t can represent 2**63 - 1 correctly.
5969 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5970 since some C++ compilers masquerading as C compilers
5971 incorrectly reject 9223372036854775807. */
5972 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5973 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5974 && LARGE_OFF_T % 2147483647 == 1)
5984 if ac_fn_c_try_compile "$LINENO"; then :
5987 rm -f core conftest.err conftest.$ac_objext
5989 if ac_fn_c_try_compile "$LINENO"; then :
5990 ac_cv_sys_largefile_CC=' -n32'; break
5992 rm -f core conftest.err conftest.$ac_objext
5996 rm -f conftest.$ac_ext
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6000 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6001 if test "$ac_cv_sys_largefile_CC" != no; then
6002 CC=$CC$ac_cv_sys_largefile_CC
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6006 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6007 if ${ac_cv_sys_file_offset_bits+:} false; then :
6008 $as_echo_n "(cached) " >&6
6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6013 #include <sys/types.h>
6014 /* Check that off_t can represent 2**63 - 1 correctly.
6015 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6016 since some C++ compilers masquerading as C compilers
6017 incorrectly reject 9223372036854775807. */
6018 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6019 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6020 && LARGE_OFF_T % 2147483647 == 1)
6030 if ac_fn_c_try_compile "$LINENO"; then :
6031 ac_cv_sys_file_offset_bits=no; break
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h. */
6036 #define _FILE_OFFSET_BITS 64
6037 #include <sys/types.h>
6038 /* Check that off_t can represent 2**63 - 1 correctly.
6039 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6040 since some C++ compilers masquerading as C compilers
6041 incorrectly reject 9223372036854775807. */
6042 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6043 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6044 && LARGE_OFF_T % 2147483647 == 1)
6054 if ac_fn_c_try_compile "$LINENO"; then :
6055 ac_cv_sys_file_offset_bits=64; break
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058 ac_cv_sys_file_offset_bits=unknown
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6063 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6064 case $ac_cv_sys_file_offset_bits in #(
6067 cat >>confdefs.h <<_ACEOF
6068 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6073 if test $ac_cv_sys_file_offset_bits = unknown; then
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6075 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6076 if ${ac_cv_sys_large_files+:} false; then :
6077 $as_echo_n "(cached) " >&6
6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h. */
6082 #include <sys/types.h>
6083 /* Check that off_t can represent 2**63 - 1 correctly.
6084 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6085 since some C++ compilers masquerading as C compilers
6086 incorrectly reject 9223372036854775807. */
6087 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6088 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6089 && LARGE_OFF_T % 2147483647 == 1)
6099 if ac_fn_c_try_compile "$LINENO"; then :
6100 ac_cv_sys_large_files=no; break
6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6105 #define _LARGE_FILES 1
6106 #include <sys/types.h>
6107 /* Check that off_t can represent 2**63 - 1 correctly.
6108 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6109 since some C++ compilers masquerading as C compilers
6110 incorrectly reject 9223372036854775807. */
6111 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6112 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6113 && LARGE_OFF_T % 2147483647 == 1)
6123 if ac_fn_c_try_compile "$LINENO"; then :
6124 ac_cv_sys_large_files=1; break
6126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6127 ac_cv_sys_large_files=unknown
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6132 $as_echo "$ac_cv_sys_large_files" >&6; }
6133 case $ac_cv_sys_large_files in #(
6136 cat >>confdefs.h <<_ACEOF
6137 #define _LARGE_FILES $ac_cv_sys_large_files
6147 # Code from module alloca-opt:
6148 # Code from module alloca-opt-tests:
6149 # Code from module binary-io:
6150 # Code from module binary-io-tests:
6151 # Code from module byteswap:
6152 # Code from module byteswap-tests:
6153 # Code from module c-ctype:
6154 # Code from module c-ctype-tests:
6155 # Code from module errno:
6156 # Code from module errno-tests:
6157 # Code from module extensions:
6159 # Code from module fcntl-h:
6160 # Code from module fcntl-h-tests:
6161 # Code from module fd-hook:
6162 # Code from module fdopen:
6163 # Code from module fdopen-tests:
6164 # Code from module fgetc-tests:
6165 # Code from module float:
6166 # Code from module float-tests:
6167 # Code from module fpieee:
6169 # Code from module fpucw:
6170 # Code from module fputc-tests:
6171 # Code from module fread-tests:
6172 # Code from module fseek:
6173 # Code from module fseek-tests:
6174 # Code from module fseeko:
6176 # Code from module fseeko-tests:
6177 # Code from module fstat:
6178 # Code from module fstat-tests:
6179 # Code from module ftell:
6180 # Code from module ftell-tests:
6181 # Code from module ftello:
6183 # Code from module ftello-tests:
6184 # Code from module func:
6185 # Code from module func-tests:
6186 # Code from module fwrite-tests:
6187 # Code from module getpagesize:
6188 # Code from module gettext:
6189 # Code from module gettext-h:
6190 # Code from module havelib:
6191 # Code from module include_next:
6192 # Code from module intprops:
6193 # Code from module intprops-tests:
6194 # Code from module inttypes:
6195 # Code from module inttypes-incomplete:
6196 # Code from module inttypes-tests:
6197 # Code from module largefile:
6199 # Code from module lib-msvc-compat:
6200 # Code from module lib-symbol-versions:
6201 # Code from module lseek:
6202 # Code from module malloc-posix:
6203 # Code from module memchr:
6204 # Code from module memchr-tests:
6205 # Code from module memmem-simple:
6206 # Code from module minmax:
6207 # Code from module msvc-inval:
6208 # Code from module msvc-nothrow:
6209 # Code from module multiarch:
6210 # Code from module netdb:
6211 # Code from module netdb-tests:
6212 # Code from module read-file:
6213 # Code from module read-file-tests:
6214 # Code from module realloc-posix:
6215 # Code from module size_max:
6216 # Code from module snippet/_Noreturn:
6217 # Code from module snippet/arg-nonnull:
6218 # Code from module snippet/c++defs:
6219 # Code from module snippet/warn-on-use:
6220 # Code from module snprintf:
6221 # Code from module snprintf-tests:
6222 # Code from module socketlib:
6223 # Code from module sockets:
6224 # Code from module sockets-tests:
6225 # Code from module socklen:
6226 # Code from module ssize_t:
6227 # Code from module stdalign:
6228 # Code from module stdalign-tests:
6229 # Code from module stdbool:
6230 # Code from module stdbool-tests:
6231 # Code from module stddef:
6232 # Code from module stddef-tests:
6233 # Code from module stdint:
6234 # Code from module stdint-tests:
6235 # Code from module stdio:
6236 # Code from module stdio-tests:
6237 # Code from module stdlib:
6238 # Code from module stdlib-tests:
6239 # Code from module strcase:
6240 # Code from module string:
6241 # Code from module string-tests:
6242 # Code from module strings:
6243 # Code from module strings-tests:
6244 # Code from module strverscmp:
6245 # Code from module strverscmp-tests:
6246 # Code from module sys_socket:
6247 # Code from module sys_socket-tests:
6248 # Code from module sys_stat:
6249 # Code from module sys_stat-tests:
6250 # Code from module sys_types:
6251 # Code from module sys_types-tests:
6252 # Code from module sys_uio:
6253 # Code from module sys_uio-tests:
6254 # Code from module test-framework-sh:
6255 # Code from module test-framework-sh-tests:
6256 # Code from module time:
6257 # Code from module time-tests:
6258 # Code from module time_r:
6259 # Code from module unistd:
6260 # Code from module unistd-tests:
6261 # Code from module vasnprintf:
6262 # Code from module vasnprintf-tests:
6263 # Code from module vasprintf:
6264 # Code from module vasprintf-tests:
6265 # Code from module verify:
6266 # Code from module verify-tests:
6267 # Code from module vsnprintf:
6268 # Code from module vsnprintf-tests:
6269 # Code from module wchar:
6270 # Code from module wchar-tests:
6271 # Code from module xsize:
6274 enable_win32_dll=yes
6277 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
6278 if test -n "$ac_tool_prefix"; then
6279 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6280 set dummy ${ac_tool_prefix}as; ac_word=$2
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6282 $as_echo_n "checking for $ac_word... " >&6; }
6283 if ${ac_cv_prog_AS+:} false; then :
6284 $as_echo_n "(cached) " >&6
6286 if test -n "$AS"; then
6287 ac_cv_prog_AS="$AS" # Let the user override the test.
6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6296 ac_cv_prog_AS="${ac_tool_prefix}as"
6297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 if test -n "$AS"; then
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6309 $as_echo "$AS" >&6; }
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312 $as_echo "no" >&6; }
6317 if test -z "$ac_cv_prog_AS"; then
6319 # Extract the first word of "as", so it can be a program name with args.
6320 set dummy as; ac_word=$2
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6322 $as_echo_n "checking for $ac_word... " >&6; }
6323 if ${ac_cv_prog_ac_ct_AS+:} false; then :
6324 $as_echo_n "(cached) " >&6
6326 if test -n "$ac_ct_AS"; then
6327 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6336 ac_cv_prog_ac_ct_AS="as"
6337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6347 if test -n "$ac_ct_AS"; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6349 $as_echo "$ac_ct_AS" >&6; }
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352 $as_echo "no" >&6; }
6355 if test "x$ac_ct_AS" = x; then
6358 case $cross_compiling:$ac_tool_warned in
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6362 ac_tool_warned=yes ;;
6370 if test -n "$ac_tool_prefix"; then
6371 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6372 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374 $as_echo_n "checking for $ac_word... " >&6; }
6375 if ${ac_cv_prog_DLLTOOL+:} false; then :
6376 $as_echo_n "(cached) " >&6
6378 if test -n "$DLLTOOL"; then
6379 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6388 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 DLLTOOL=$ac_cv_prog_DLLTOOL
6399 if test -n "$DLLTOOL"; then
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6401 $as_echo "$DLLTOOL" >&6; }
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404 $as_echo "no" >&6; }
6409 if test -z "$ac_cv_prog_DLLTOOL"; then
6410 ac_ct_DLLTOOL=$DLLTOOL
6411 # Extract the first word of "dlltool", so it can be a program name with args.
6412 set dummy dlltool; ac_word=$2
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414 $as_echo_n "checking for $ac_word... " >&6; }
6415 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6416 $as_echo_n "(cached) " >&6
6418 if test -n "$ac_ct_DLLTOOL"; then
6419 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6428 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6439 if test -n "$ac_ct_DLLTOOL"; then
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6441 $as_echo "$ac_ct_DLLTOOL" >&6; }
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444 $as_echo "no" >&6; }
6447 if test "x$ac_ct_DLLTOOL" = x; then
6450 case $cross_compiling:$ac_tool_warned in
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6454 ac_tool_warned=yes ;;
6456 DLLTOOL=$ac_ct_DLLTOOL
6459 DLLTOOL="$ac_cv_prog_DLLTOOL"
6462 if test -n "$ac_tool_prefix"; then
6463 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6464 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6466 $as_echo_n "checking for $ac_word... " >&6; }
6467 if ${ac_cv_prog_OBJDUMP+:} false; then :
6468 $as_echo_n "(cached) " >&6
6470 if test -n "$OBJDUMP"; then
6471 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6480 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 OBJDUMP=$ac_cv_prog_OBJDUMP
6491 if test -n "$OBJDUMP"; then
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6493 $as_echo "$OBJDUMP" >&6; }
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496 $as_echo "no" >&6; }
6501 if test -z "$ac_cv_prog_OBJDUMP"; then
6502 ac_ct_OBJDUMP=$OBJDUMP
6503 # Extract the first word of "objdump", so it can be a program name with args.
6504 set dummy objdump; ac_word=$2
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506 $as_echo_n "checking for $ac_word... " >&6; }
6507 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6508 $as_echo_n "(cached) " >&6
6510 if test -n "$ac_ct_OBJDUMP"; then
6511 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6520 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6531 if test -n "$ac_ct_OBJDUMP"; then
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6533 $as_echo "$ac_ct_OBJDUMP" >&6; }
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536 $as_echo "no" >&6; }
6539 if test "x$ac_ct_OBJDUMP" = x; then
6542 case $cross_compiling:$ac_tool_warned in
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6546 ac_tool_warned=yes ;;
6548 OBJDUMP=$ac_ct_OBJDUMP
6551 OBJDUMP="$ac_cv_prog_OBJDUMP"
6557 test -z "$AS" && AS=as
6563 test -z "$DLLTOOL" && DLLTOOL=dlltool
6569 test -z "$OBJDUMP" && OBJDUMP=objdump
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6580 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6585 macro_version='2.4.2'
6586 macro_revision='1.3337'
6600 ltmain="$ac_aux_dir/ltmain.sh"
6602 # Backslashify metacharacters that are still active within
6603 # double-quoted strings.
6604 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6606 # Same as above, but do not quote variable references.
6607 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6609 # Sed substitution to delay expansion of an escaped shell variable in a
6610 # double_quote_subst'ed string.
6611 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6613 # Sed substitution to delay expansion of an escaped single quote.
6614 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6616 # Sed substitution to avoid accidental globbing in evaled expressions
6617 no_glob_subst='s/\*/\\\*/g'
6619 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6620 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6621 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6624 $as_echo_n "checking how to print strings... " >&6; }
6625 # Test print first, because it will be a builtin if present.
6626 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6627 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6629 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6632 # Use this function as a fallback that always works.
6633 func_fallback_echo ()
6635 eval 'cat <<_LTECHO_EOF
6639 ECHO='func_fallback_echo'
6642 # func_echo_all arg...
6643 # Invoke $ECHO with all args, space-separated.
6650 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6651 $as_echo "printf" >&6; } ;;
6652 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6653 $as_echo "print -r" >&6; } ;;
6654 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6655 $as_echo "cat" >&6; } ;;
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6672 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6673 if ${ac_cv_path_SED+:} false; then :
6674 $as_echo_n "(cached) " >&6
6676 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6677 for ac_i in 1 2 3 4 5 6 7; do
6678 ac_script="$ac_script$as_nl$ac_script"
6680 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6681 { ac_script=; unset ac_script;}
6682 if test -z "$SED"; then
6683 ac_path_SED_found=false
6684 # Loop through the user's path and test for each of PROGNAME-LIST
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 test -z "$as_dir" && as_dir=.
6690 for ac_prog in sed gsed; do
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6693 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6694 # Check for GNU ac_path_SED and select it if it is found.
6695 # Check for GNU $ac_path_SED
6696 case `"$ac_path_SED" --version 2>&1` in
6698 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6701 $as_echo_n 0123456789 >"conftest.in"
6704 cat "conftest.in" "conftest.in" >"conftest.tmp"
6705 mv "conftest.tmp" "conftest.in"
6706 cp "conftest.in" "conftest.nl"
6707 $as_echo '' >> "conftest.nl"
6708 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6709 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6710 as_fn_arith $ac_count + 1 && ac_count=$as_val
6711 if test $ac_count -gt ${ac_path_SED_max-0}; then
6712 # Best one so far, save it but keep looking for a better one
6713 ac_cv_path_SED="$ac_path_SED"
6714 ac_path_SED_max=$ac_count
6716 # 10*(2^10) chars as input seems more than enough
6717 test $ac_count -gt 10 && break
6719 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6722 $ac_path_SED_found && break 3
6727 if test -z "$ac_cv_path_SED"; then
6728 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6736 $as_echo "$ac_cv_path_SED" >&6; }
6737 SED="$ac_cv_path_SED"
6740 test -z "$SED" && SED=sed
6741 Xsed="$SED -e 1s/^X//"
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6754 $as_echo_n "checking for fgrep... " >&6; }
6755 if ${ac_cv_path_FGREP+:} false; then :
6756 $as_echo_n "(cached) " >&6
6758 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6759 then ac_cv_path_FGREP="$GREP -F"
6761 if test -z "$FGREP"; then
6762 ac_path_FGREP_found=false
6763 # Loop through the user's path and test for each of PROGNAME-LIST
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6768 test -z "$as_dir" && as_dir=.
6769 for ac_prog in fgrep; do
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6772 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6773 # Check for GNU ac_path_FGREP and select it if it is found.
6774 # Check for GNU $ac_path_FGREP
6775 case `"$ac_path_FGREP" --version 2>&1` in
6777 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6780 $as_echo_n 0123456789 >"conftest.in"
6783 cat "conftest.in" "conftest.in" >"conftest.tmp"
6784 mv "conftest.tmp" "conftest.in"
6785 cp "conftest.in" "conftest.nl"
6786 $as_echo 'FGREP' >> "conftest.nl"
6787 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6789 as_fn_arith $ac_count + 1 && ac_count=$as_val
6790 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6791 # Best one so far, save it but keep looking for a better one
6792 ac_cv_path_FGREP="$ac_path_FGREP"
6793 ac_path_FGREP_max=$ac_count
6795 # 10*(2^10) chars as input seems more than enough
6796 test $ac_count -gt 10 && break
6798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6801 $ac_path_FGREP_found && break 3
6806 if test -z "$ac_cv_path_FGREP"; then
6807 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6810 ac_cv_path_FGREP=$FGREP
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6816 $as_echo "$ac_cv_path_FGREP" >&6; }
6817 FGREP="$ac_cv_path_FGREP"
6820 test -z "$GREP" && GREP=grep
6840 # Check whether --with-gnu-ld was given.
6841 if test "${with_gnu_ld+set}" = set; then :
6842 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6848 if test "$GCC" = yes; then
6849 # Check if gcc -print-prog-name=ld gives a path.
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6851 $as_echo_n "checking for ld used by $CC... " >&6; }
6854 # gcc leaves a trailing carriage return which upsets mingw
6855 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6857 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6860 # Accept absolute paths.
6862 re_direlt='/[^/][^/]*/\.\./'
6863 # Canonicalize the pathname of ld
6864 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6865 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6866 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6868 test -z "$LD" && LD="$ac_prog"
6871 # If it fails, then pretend we aren't using GCC.
6875 # If it is relative, then search for the first ld in PATH.
6879 elif test "$with_gnu_ld" = yes; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6881 $as_echo_n "checking for GNU ld... " >&6; }
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6884 $as_echo_n "checking for non-GNU ld... " >&6; }
6886 if ${lt_cv_path_LD+:} false; then :
6887 $as_echo_n "(cached) " >&6
6889 if test -z "$LD"; then
6890 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6891 for ac_dir in $PATH; do
6893 test -z "$ac_dir" && ac_dir=.
6894 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6895 lt_cv_path_LD="$ac_dir/$ac_prog"
6896 # Check to see if the program is GNU ld. I'd rather use --version,
6897 # but apparently some variants of GNU ld only accept -v.
6898 # Break only if it was the GNU/non-GNU ld that we prefer.
6899 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6900 *GNU* | *'with BFD'*)
6901 test "$with_gnu_ld" != no && break
6904 test "$with_gnu_ld" != yes && break
6911 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6916 if test -n "$LD"; then
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6918 $as_echo "$LD" >&6; }
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921 $as_echo "no" >&6; }
6923 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6925 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6926 if ${lt_cv_prog_gnu_ld+:} false; then :
6927 $as_echo_n "(cached) " >&6
6929 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6930 case `$LD -v 2>&1 </dev/null` in
6931 *GNU* | *'with BFD'*)
6932 lt_cv_prog_gnu_ld=yes
6935 lt_cv_prog_gnu_ld=no
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6940 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6941 with_gnu_ld=$lt_cv_prog_gnu_ld
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6952 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6953 if ${lt_cv_path_NM+:} false; then :
6954 $as_echo_n "(cached) " >&6
6956 if test -n "$NM"; then
6957 # Let the user override the test.
6960 lt_nm_to_check="${ac_tool_prefix}nm"
6961 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6962 lt_nm_to_check="$lt_nm_to_check nm"
6964 for lt_tmp_nm in $lt_nm_to_check; do
6965 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6966 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6968 test -z "$ac_dir" && ac_dir=.
6969 tmp_nm="$ac_dir/$lt_tmp_nm"
6970 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6971 # Check to see if the nm accepts a BSD-compat flag.
6972 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6973 # nm: unknown option "B" ignored
6974 # Tru64's nm complains that /dev/null is an invalid object file
6975 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6976 */dev/null* | *'Invalid file or object type'*)
6977 lt_cv_path_NM="$tmp_nm -B"
6981 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6983 lt_cv_path_NM="$tmp_nm -p"
6987 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6988 continue # so that we can try to find one that supports BSD flags
6997 : ${lt_cv_path_NM=no}
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7001 $as_echo "$lt_cv_path_NM" >&6; }
7002 if test "$lt_cv_path_NM" != "no"; then
7005 # Didn't find any BSD compatible name lister, look for dumpbin.
7006 if test -n "$DUMPBIN"; then :
7007 # Let the user override the test.
7009 if test -n "$ac_tool_prefix"; then
7010 for ac_prog in dumpbin "link -dump"
7012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015 $as_echo_n "checking for $ac_word... " >&6; }
7016 if ${ac_cv_prog_DUMPBIN+:} false; then :
7017 $as_echo_n "(cached) " >&6
7019 if test -n "$DUMPBIN"; then
7020 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7029 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7039 DUMPBIN=$ac_cv_prog_DUMPBIN
7040 if test -n "$DUMPBIN"; then
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7042 $as_echo "$DUMPBIN" >&6; }
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045 $as_echo "no" >&6; }
7049 test -n "$DUMPBIN" && break
7052 if test -z "$DUMPBIN"; then
7053 ac_ct_DUMPBIN=$DUMPBIN
7054 for ac_prog in dumpbin "link -dump"
7056 # Extract the first word of "$ac_prog", so it can be a program name with args.
7057 set dummy $ac_prog; ac_word=$2
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7061 $as_echo_n "(cached) " >&6
7063 if test -n "$ac_ct_DUMPBIN"; then
7064 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7084 if test -n "$ac_ct_DUMPBIN"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7086 $as_echo "$ac_ct_DUMPBIN" >&6; }
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7093 test -n "$ac_ct_DUMPBIN" && break
7096 if test "x$ac_ct_DUMPBIN" = x; then
7099 case $cross_compiling:$ac_tool_warned in
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7103 ac_tool_warned=yes ;;
7105 DUMPBIN=$ac_ct_DUMPBIN
7109 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7111 DUMPBIN="$DUMPBIN -symbols"
7119 if test "$DUMPBIN" != ":"; then
7123 test -z "$NM" && NM=nm
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7131 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7132 if ${lt_cv_nm_interface+:} false; then :
7133 $as_echo_n "(cached) " >&6
7135 lt_cv_nm_interface="BSD nm"
7136 echo "int some_variable = 0;" > conftest.$ac_ext
7137 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7138 (eval "$ac_compile" 2>conftest.err)
7139 cat conftest.err >&5
7140 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7141 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7142 cat conftest.err >&5
7143 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7144 cat conftest.out >&5
7145 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7146 lt_cv_nm_interface="MS dumpbin"
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7151 $as_echo "$lt_cv_nm_interface" >&6; }
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7154 $as_echo_n "checking whether ln -s works... " >&6; }
7156 if test "$LN_S" = "ln -s"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7158 $as_echo "yes" >&6; }
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7161 $as_echo "no, using $LN_S" >&6; }
7164 # find the maximum length of command line arguments
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7166 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7167 if ${lt_cv_sys_max_cmd_len+:} false; then :
7168 $as_echo_n "(cached) " >&6
7175 # On DJGPP, this test can blow up pretty badly due to problems in libc
7176 # (any single argument exceeding 2000 bytes causes a buffer overrun
7177 # during glob expansion). Even if it were fixed, the result of this
7178 # check would be larger than it should be.
7179 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7183 # Under GNU Hurd, this test is not required because there is
7184 # no limit to the length of command line arguments.
7185 # Libtool will interpret -1 as no limit whatsoever
7186 lt_cv_sys_max_cmd_len=-1;
7189 cygwin* | mingw* | cegcc*)
7190 # On Win9x/ME, this test blows up -- it succeeds, but takes
7191 # about 5 minutes as the teststring grows exponentially.
7192 # Worse, since 9x/ME are not pre-emptively multitasking,
7193 # you end up with a "frozen" computer, even though with patience
7194 # the test eventually succeeds (with a max line length of 256k).
7195 # Instead, let's just punt: use the minimum linelength reported by
7196 # all of the supported platforms: 8192 (on NT/2K/XP).
7197 lt_cv_sys_max_cmd_len=8192;
7201 # On MiNT this can take a long time and run out of memory.
7202 lt_cv_sys_max_cmd_len=8192;
7206 # On AmigaOS with pdksh, this test takes hours, literally.
7207 # So we just punt and use a minimum line length of 8192.
7208 lt_cv_sys_max_cmd_len=8192;
7211 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7212 # This has been around since 386BSD, at least. Likely further.
7213 if test -x /sbin/sysctl; then
7214 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7215 elif test -x /usr/sbin/sysctl; then
7216 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7218 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7220 # And add a safety zone
7221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7222 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7226 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7227 lt_cv_sys_max_cmd_len=196608
7231 # The test takes a long time on OS/2.
7232 lt_cv_sys_max_cmd_len=8192
7236 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7237 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7238 # nice to cause kernel panics so lets avoid the loop below.
7239 # First set a reasonable default.
7240 lt_cv_sys_max_cmd_len=16384
7242 if test -x /sbin/sysconfig; then
7243 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7244 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7249 lt_cv_sys_max_cmd_len=102400
7251 sysv5* | sco5v6* | sysv4.2uw2*)
7252 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7253 if test -n "$kargmax"; then
7254 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7256 lt_cv_sys_max_cmd_len=32768
7260 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7261 if test -n "$lt_cv_sys_max_cmd_len"; then
7262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7265 # Make teststring a little bigger before we do anything with it.
7266 # a 1K string should be a reasonable start.
7267 for i in 1 2 3 4 5 6 7 8 ; do
7268 teststring=$teststring$teststring
7270 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7271 # If test is not a shell built-in, we'll probably end up computing a
7272 # maximum length that is only half of the actual maximum length, but
7274 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7275 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7276 test $i != 17 # 1/2 MB should be enough
7279 teststring=$teststring$teststring
7281 # Only check the string length outside the loop.
7282 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7284 # Add a significant safety factor because C++ compilers can tack on
7285 # massive amounts of additional arguments before passing them to the
7286 # linker. It appears as though 1/2 is a usable value.
7287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7294 if test -n $lt_cv_sys_max_cmd_len ; then
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7296 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7299 $as_echo "none" >&6; }
7301 max_cmd_len=$lt_cv_sys_max_cmd_len
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7313 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7314 # Try some XSI features
7317 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7319 && eval 'test $(( 1 + 1 )) -eq 2 \
7320 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7323 $as_echo "$xsi_shell" >&6; }
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7327 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7329 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7331 && lt_shell_append=yes
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7333 $as_echo "$lt_shell_append" >&6; }
7336 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7346 # test EBCDIC or ASCII
7347 case `echo X|tr X '\101'` in
7348 A) # ASCII based system
7349 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7350 lt_SP2NL='tr \040 \012'
7351 lt_NL2SP='tr \015\012 \040\040'
7353 *) # EBCDIC based system
7354 lt_SP2NL='tr \100 \n'
7355 lt_NL2SP='tr \r\n \100\100'
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7368 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7369 if ${lt_cv_to_host_file_cmd+:} false; then :
7370 $as_echo_n "(cached) " >&6
7375 *-*-mingw* ) # actually msys
7376 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7379 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7381 * ) # otherwise, assume *nix
7382 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7388 *-*-mingw* ) # actually msys
7389 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7392 lt_cv_to_host_file_cmd=func_convert_file_noop
7394 * ) # otherwise, assume *nix
7395 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7399 * ) # unhandled hosts (and "normal" native builds)
7400 lt_cv_to_host_file_cmd=func_convert_file_noop
7406 to_host_file_cmd=$lt_cv_to_host_file_cmd
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7408 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7415 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7416 if ${lt_cv_to_tool_file_cmd+:} false; then :
7417 $as_echo_n "(cached) " >&6
7419 #assume ordinary cross tools, or native build.
7420 lt_cv_to_tool_file_cmd=func_convert_file_noop
7424 *-*-mingw* ) # actually msys
7425 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7433 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7435 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7442 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7443 if ${lt_cv_ld_reload_flag+:} false; then :
7444 $as_echo_n "(cached) " >&6
7446 lt_cv_ld_reload_flag='-r'
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7449 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7450 reload_flag=$lt_cv_ld_reload_flag
7451 case $reload_flag in
7453 *) reload_flag=" $reload_flag" ;;
7455 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7457 cygwin* | mingw* | pw32* | cegcc*)
7458 if test "$GCC" != yes; then
7463 if test "$GCC" = yes; then
7464 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7466 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7479 if test -n "$ac_tool_prefix"; then
7480 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7481 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7483 $as_echo_n "checking for $ac_word... " >&6; }
7484 if ${ac_cv_prog_OBJDUMP+:} false; then :
7485 $as_echo_n "(cached) " >&6
7487 if test -n "$OBJDUMP"; then
7488 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7497 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 OBJDUMP=$ac_cv_prog_OBJDUMP
7508 if test -n "$OBJDUMP"; then
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7510 $as_echo "$OBJDUMP" >&6; }
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513 $as_echo "no" >&6; }
7518 if test -z "$ac_cv_prog_OBJDUMP"; then
7519 ac_ct_OBJDUMP=$OBJDUMP
7520 # Extract the first word of "objdump", so it can be a program name with args.
7521 set dummy objdump; ac_word=$2
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7523 $as_echo_n "checking for $ac_word... " >&6; }
7524 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7525 $as_echo_n "(cached) " >&6
7527 if test -n "$ac_ct_OBJDUMP"; then
7528 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534 test -z "$as_dir" && as_dir=.
7535 for ac_exec_ext in '' $ac_executable_extensions; do
7536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7537 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7548 if test -n "$ac_ct_OBJDUMP"; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7550 $as_echo "$ac_ct_OBJDUMP" >&6; }
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553 $as_echo "no" >&6; }
7556 if test "x$ac_ct_OBJDUMP" = x; then
7559 case $cross_compiling:$ac_tool_warned in
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7563 ac_tool_warned=yes ;;
7565 OBJDUMP=$ac_ct_OBJDUMP
7568 OBJDUMP="$ac_cv_prog_OBJDUMP"
7571 test -z "$OBJDUMP" && OBJDUMP=objdump
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7579 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7580 if ${lt_cv_deplibs_check_method+:} false; then :
7581 $as_echo_n "(cached) " >&6
7583 lt_cv_file_magic_cmd='$MAGIC_CMD'
7584 lt_cv_file_magic_test_file=
7585 lt_cv_deplibs_check_method='unknown'
7586 # Need to set the preceding variable on all platforms that support
7587 # interlibrary dependencies.
7588 # 'none' -- dependencies not supported.
7589 # `unknown' -- same as none, but documents that we really don't know.
7590 # 'pass_all' -- all dependencies passed with no checks.
7591 # 'test_compile' -- check by making test program.
7592 # 'file_magic [[regex]]' -- check by looking for files in library path
7593 # which responds to the $file_magic_cmd with a given extended regex.
7594 # If you have `file' or equivalent on your system and you're not sure
7595 # whether `pass_all' will *always* work, you probably want this one.
7599 lt_cv_deplibs_check_method=pass_all
7603 lt_cv_deplibs_check_method=pass_all
7607 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7608 lt_cv_file_magic_cmd='/usr/bin/file -L'
7609 lt_cv_file_magic_test_file=/shlib/libc.so
7613 # func_win32_libid is a shell function defined in ltmain.sh
7614 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7615 lt_cv_file_magic_cmd='func_win32_libid'
7619 # Base MSYS/MinGW do not provide the 'file' command needed by
7620 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7621 # unless we find 'file', for example because we are cross-compiling.
7622 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7623 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7624 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7625 lt_cv_file_magic_cmd='func_win32_libid'
7627 # Keep this pattern in sync with the one in func_win32_libid.
7628 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7629 lt_cv_file_magic_cmd='$OBJDUMP -f'
7634 # use the weaker test based on 'objdump'. See mingw*.
7635 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7636 lt_cv_file_magic_cmd='$OBJDUMP -f'
7639 darwin* | rhapsody*)
7640 lt_cv_deplibs_check_method=pass_all
7643 freebsd* | dragonfly*)
7644 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7647 # Not sure whether the presence of OpenBSD here was a mistake.
7648 # Let's accept both of them until this is cleared up.
7649 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7650 lt_cv_file_magic_cmd=/usr/bin/file
7651 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7655 lt_cv_deplibs_check_method=pass_all
7660 lt_cv_deplibs_check_method=pass_all
7664 lt_cv_deplibs_check_method=pass_all
7667 hpux10.20* | hpux11*)
7668 lt_cv_file_magic_cmd=/usr/bin/file
7671 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7672 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7675 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]'
7676 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7679 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7680 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7686 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7690 irix5* | irix6* | nonstopux*)
7692 *-32|*"-32 ") libmagic=32-bit;;
7693 *-n32|*"-n32 ") libmagic=N32;;
7694 *-64|*"-64 ") libmagic=64-bit;;
7695 *) libmagic=never-match;;
7697 lt_cv_deplibs_check_method=pass_all
7700 # This must be glibc/ELF.
7701 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7702 lt_cv_deplibs_check_method=pass_all
7705 netbsd* | netbsdelf*-gnu)
7706 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7707 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7709 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7714 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7715 lt_cv_file_magic_cmd=/usr/bin/file
7716 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7720 lt_cv_deplibs_check_method=pass_all
7724 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7725 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7727 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7731 osf3* | osf4* | osf5*)
7732 lt_cv_deplibs_check_method=pass_all
7736 lt_cv_deplibs_check_method=pass_all
7740 lt_cv_deplibs_check_method=pass_all
7743 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7744 lt_cv_deplibs_check_method=pass_all
7748 case $host_vendor in
7750 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]'
7751 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7754 lt_cv_deplibs_check_method=pass_all
7757 lt_cv_file_magic_cmd='/bin/file'
7758 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7761 lt_cv_file_magic_cmd='/bin/file'
7762 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7763 lt_cv_file_magic_test_file=/lib/libc.so
7766 lt_cv_deplibs_check_method=pass_all
7769 lt_cv_deplibs_check_method=pass_all
7775 lt_cv_deplibs_check_method=pass_all
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7781 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7785 if test "$build" = "$host"; then
7788 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7791 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7797 file_magic_cmd=$lt_cv_file_magic_cmd
7798 deplibs_check_method=$lt_cv_deplibs_check_method
7799 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7822 if test -n "$ac_tool_prefix"; then
7823 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7824 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 $as_echo_n "checking for $ac_word... " >&6; }
7827 if ${ac_cv_prog_DLLTOOL+:} false; then :
7828 $as_echo_n "(cached) " >&6
7830 if test -n "$DLLTOOL"; then
7831 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 test -z "$as_dir" && as_dir=.
7838 for ac_exec_ext in '' $ac_executable_extensions; do
7839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7840 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 DLLTOOL=$ac_cv_prog_DLLTOOL
7851 if test -n "$DLLTOOL"; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7853 $as_echo "$DLLTOOL" >&6; }
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7861 if test -z "$ac_cv_prog_DLLTOOL"; then
7862 ac_ct_DLLTOOL=$DLLTOOL
7863 # Extract the first word of "dlltool", so it can be a program name with args.
7864 set dummy dlltool; ac_word=$2
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7866 $as_echo_n "checking for $ac_word... " >&6; }
7867 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7868 $as_echo_n "(cached) " >&6
7870 if test -n "$ac_ct_DLLTOOL"; then
7871 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877 test -z "$as_dir" && as_dir=.
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7880 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7890 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7891 if test -n "$ac_ct_DLLTOOL"; then
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7893 $as_echo "$ac_ct_DLLTOOL" >&6; }
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896 $as_echo "no" >&6; }
7899 if test "x$ac_ct_DLLTOOL" = x; then
7902 case $cross_compiling:$ac_tool_warned in
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7906 ac_tool_warned=yes ;;
7908 DLLTOOL=$ac_ct_DLLTOOL
7911 DLLTOOL="$ac_cv_prog_DLLTOOL"
7914 test -z "$DLLTOOL" && DLLTOOL=dlltool
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7923 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7924 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7925 $as_echo_n "(cached) " >&6
7927 lt_cv_sharedlib_from_linklib_cmd='unknown'
7930 cygwin* | mingw* | pw32* | cegcc*)
7931 # two different shell functions defined in ltmain.sh
7932 # decide which to use based on capabilities of $DLLTOOL
7933 case `$DLLTOOL --help 2>&1` in
7934 *--identify-strict*)
7935 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7938 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7943 # fallback: assume linklib IS sharedlib
7944 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7950 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7951 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7952 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7960 if test -n "$ac_tool_prefix"; then
7963 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7964 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7966 $as_echo_n "checking for $ac_word... " >&6; }
7967 if ${ac_cv_prog_AR+:} false; then :
7968 $as_echo_n "(cached) " >&6
7970 if test -n "$AR"; then
7971 ac_cv_prog_AR="$AR" # Let the user override the test.
7973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977 test -z "$as_dir" && as_dir=.
7978 for ac_exec_ext in '' $ac_executable_extensions; do
7979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7980 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 if test -n "$AR"; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7993 $as_echo "$AR" >&6; }
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
8000 test -n "$AR" && break
8003 if test -z "$AR"; then
8007 # Extract the first word of "$ac_prog", so it can be a program name with args.
8008 set dummy $ac_prog; ac_word=$2
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8010 $as_echo_n "checking for $ac_word... " >&6; }
8011 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8012 $as_echo_n "(cached) " >&6
8014 if test -n "$ac_ct_AR"; then
8015 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 test -z "$as_dir" && as_dir=.
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8024 ac_cv_prog_ac_ct_AR="$ac_prog"
8025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8034 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8035 if test -n "$ac_ct_AR"; then
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8037 $as_echo "$ac_ct_AR" >&6; }
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8040 $as_echo "no" >&6; }
8044 test -n "$ac_ct_AR" && break
8047 if test "x$ac_ct_AR" = x; then
8050 case $cross_compiling:$ac_tool_warned in
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8054 ac_tool_warned=yes ;;
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8074 $as_echo_n "checking for archiver @FILE support... " >&6; }
8075 if ${lt_cv_ar_at_file+:} false; then :
8076 $as_echo_n "(cached) " >&6
8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h. */
8090 if ac_fn_c_try_compile "$LINENO"; then :
8091 echo conftest.$ac_objext > conftest.lst
8092 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8094 (eval $lt_ar_try) 2>&5
8096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8097 test $ac_status = 0; }
8098 if test "$ac_status" -eq 0; then
8099 # Ensure the archiver fails upon bogus file names.
8100 rm -f conftest.$ac_objext libconftest.a
8101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8102 (eval $lt_ar_try) 2>&5
8104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8105 test $ac_status = 0; }
8106 if test "$ac_status" -ne 0; then
8110 rm -f conftest.* libconftest.a
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8117 $as_echo "$lt_cv_ar_at_file" >&6; }
8119 if test "x$lt_cv_ar_at_file" = xno; then
8122 archiver_list_spec=$lt_cv_ar_at_file
8131 if test -n "$ac_tool_prefix"; then
8132 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8133 set dummy ${ac_tool_prefix}strip; ac_word=$2
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8135 $as_echo_n "checking for $ac_word... " >&6; }
8136 if ${ac_cv_prog_STRIP+:} false; then :
8137 $as_echo_n "(cached) " >&6
8139 if test -n "$STRIP"; then
8140 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146 test -z "$as_dir" && as_dir=.
8147 for ac_exec_ext in '' $ac_executable_extensions; do
8148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8149 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8159 STRIP=$ac_cv_prog_STRIP
8160 if test -n "$STRIP"; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8162 $as_echo "$STRIP" >&6; }
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165 $as_echo "no" >&6; }
8170 if test -z "$ac_cv_prog_STRIP"; then
8172 # Extract the first word of "strip", so it can be a program name with args.
8173 set dummy strip; ac_word=$2
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8177 $as_echo_n "(cached) " >&6
8179 if test -n "$ac_ct_STRIP"; then
8180 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8189 ac_cv_prog_ac_ct_STRIP="strip"
8190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8199 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8200 if test -n "$ac_ct_STRIP"; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8202 $as_echo "$ac_ct_STRIP" >&6; }
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8208 if test "x$ac_ct_STRIP" = x; then
8211 case $cross_compiling:$ac_tool_warned in
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8215 ac_tool_warned=yes ;;
8220 STRIP="$ac_cv_prog_STRIP"
8223 test -z "$STRIP" && STRIP=:
8230 if test -n "$ac_tool_prefix"; then
8231 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8232 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8234 $as_echo_n "checking for $ac_word... " >&6; }
8235 if ${ac_cv_prog_RANLIB+:} false; then :
8236 $as_echo_n "(cached) " >&6
8238 if test -n "$RANLIB"; then
8239 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245 test -z "$as_dir" && as_dir=.
8246 for ac_exec_ext in '' $ac_executable_extensions; do
8247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8248 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8258 RANLIB=$ac_cv_prog_RANLIB
8259 if test -n "$RANLIB"; then
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8261 $as_echo "$RANLIB" >&6; }
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8264 $as_echo "no" >&6; }
8269 if test -z "$ac_cv_prog_RANLIB"; then
8270 ac_ct_RANLIB=$RANLIB
8271 # Extract the first word of "ranlib", so it can be a program name with args.
8272 set dummy ranlib; ac_word=$2
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274 $as_echo_n "checking for $ac_word... " >&6; }
8275 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8276 $as_echo_n "(cached) " >&6
8278 if test -n "$ac_ct_RANLIB"; then
8279 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8288 ac_cv_prog_ac_ct_RANLIB="ranlib"
8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8298 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8299 if test -n "$ac_ct_RANLIB"; then
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8301 $as_echo "$ac_ct_RANLIB" >&6; }
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 $as_echo "no" >&6; }
8307 if test "x$ac_ct_RANLIB" = x; then
8310 case $cross_compiling:$ac_tool_warned in
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8314 ac_tool_warned=yes ;;
8316 RANLIB=$ac_ct_RANLIB
8319 RANLIB="$ac_cv_prog_RANLIB"
8322 test -z "$RANLIB" && RANLIB=:
8329 # Determine commands to create old-style static archives.
8330 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8331 old_postinstall_cmds='chmod 644 $oldlib'
8332 old_postuninstall_cmds=
8334 if test -n "$RANLIB"; then
8337 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8340 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8343 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8348 lock_old_archive_extraction=yes ;;
8350 lock_old_archive_extraction=no ;;
8391 # If no C compiler was specified, use CC.
8394 # If no C compiler flags were specified, use CFLAGS.
8395 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8397 # Allow CC to be a program name with arguments.
8401 # Check for command to grab the raw symbol name followed by C symbol from nm.
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8403 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8404 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8405 $as_echo_n "(cached) " >&6
8408 # These are sane defaults that work on at least a few old systems.
8409 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8411 # Character class describing NM global symbol codes.
8412 symcode='[BCDEGRST]'
8414 # Regexp to match symbols that can be accessed directly from C.
8415 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8417 # Define system-specific variables.
8422 cygwin* | mingw* | pw32* | cegcc*)
8423 symcode='[ABCDGISTW]'
8426 if test "$host_cpu" = ia64; then
8427 symcode='[ABCDEGRST]'
8431 symcode='[BCDEGRST]'
8434 symcode='[BCDEGQRST]'
8445 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8453 # If we're using GNU nm, then use its standard symbol codes.
8454 case `$NM -V 2>&1` in
8455 *GNU* | *'with BFD'*)
8456 symcode='[ABCDGIRSTW]' ;;
8459 # Transform an extracted symbol line into a proper C declaration.
8460 # Some systems (esp. on ia64) link data and code symbols differently,
8461 # so use this general approach.
8462 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8464 # Transform an extracted symbol line into symbol name and symbol address
8465 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8466 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'"
8468 # Handle CRLF in mingw tool chain
8472 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8476 # Try without a prefix underscore, then with it.
8477 for ac_symprfx in "" "_"; do
8479 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8480 symxfrm="\\1 $ac_symprfx\\2 \\2"
8482 # Write the raw and C identifiers.
8483 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8484 # Fake it for dumpbin and say T for any non-static function
8485 # and D for any global variable.
8486 # Also find C++ and __fastcall symbols from MSVC++,
8487 # which start with @ or ?.
8488 lt_cv_sys_global_symbol_pipe="$AWK '"\
8489 " {last_section=section; section=\$ 3};"\
8490 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8491 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8492 " \$ 0!~/External *\|/{next};"\
8493 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8494 " {if(hide[section]) next};"\
8495 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8496 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8497 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8498 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8499 " ' prfx=^$ac_symprfx"
8501 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8503 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8505 # Check to see that the pipe works correctly.
8509 cat > conftest.$ac_ext <<_LT_EOF
8514 void nm_test_func(void);
8515 void nm_test_func(void){}
8519 int main(){nm_test_var='a';nm_test_func();return(0);}
8522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8523 (eval $ac_compile) 2>&5
8525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8526 test $ac_status = 0; }; then
8527 # Now try to grab the symbols.
8529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8530 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8533 test $ac_status = 0; } && test -s "$nlist"; then
8534 # Try sorting and uniquifying the output.
8535 if sort "$nlist" | uniq > "$nlist"T; then
8536 mv -f "$nlist"T "$nlist"
8541 # Make sure that we snagged all the symbols we need.
8542 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8543 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8544 cat <<_LT_EOF > conftest.$ac_ext
8545 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8546 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8547 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8548 relocations are performed -- see ld's documentation on pseudo-relocs. */
8549 # define LT_DLSYM_CONST
8550 #elif defined(__osf__)
8551 /* This system does not cope well with relocations in const data. */
8552 # define LT_DLSYM_CONST
8554 # define LT_DLSYM_CONST const
8562 # Now generate the symbol file.
8563 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8565 cat <<_LT_EOF >> conftest.$ac_ext
8567 /* The mapping between symbol names and symbols. */
8568 LT_DLSYM_CONST struct {
8572 lt__PROGRAM__LTX_preloaded_symbols[] =
8574 { "@PROGRAM@", (void *) 0 },
8576 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8577 cat <<\_LT_EOF >> conftest.$ac_ext
8581 /* This works around a problem in FreeBSD linker */
8582 #ifdef FREEBSD_WORKAROUND
8583 static const void *lt_preloaded_setup() {
8584 return lt__PROGRAM__LTX_preloaded_symbols;
8592 # Now try linking the two files.
8593 mv conftest.$ac_objext conftstm.$ac_objext
8594 lt_globsym_save_LIBS=$LIBS
8595 lt_globsym_save_CFLAGS=$CFLAGS
8596 LIBS="conftstm.$ac_objext"
8597 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8599 (eval $ac_link) 2>&5
8601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8602 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8605 LIBS=$lt_globsym_save_LIBS
8606 CFLAGS=$lt_globsym_save_CFLAGS
8608 echo "cannot find nm_test_func in $nlist" >&5
8611 echo "cannot find nm_test_var in $nlist" >&5
8614 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8617 echo "$progname: failed program was:" >&5
8618 cat conftest.$ac_ext >&5
8620 rm -rf conftest* conftst*
8622 # Do not use the global_symbol_pipe unless it works.
8623 if test "$pipe_works" = yes; then
8626 lt_cv_sys_global_symbol_pipe=
8632 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8633 lt_cv_sys_global_symbol_to_cdecl=
8635 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8637 $as_echo "failed" >&6; }
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8640 $as_echo "ok" >&6; }
8643 # Response file support.
8644 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8645 nm_file_list_spec='@'
8646 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8647 nm_file_list_spec='@'
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8677 $as_echo_n "checking for sysroot... " >&6; }
8679 # Check whether --with-sysroot was given.
8680 if test "${with_sysroot+set}" = set; then :
8681 withval=$with_sysroot;
8688 case ${with_sysroot} in #(
8690 if test "$GCC" = yes; then
8691 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8695 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8701 $as_echo "${with_sysroot}" >&6; }
8702 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8707 $as_echo "${lt_sysroot:-no}" >&6; }
8713 # Check whether --enable-libtool-lock was given.
8714 if test "${enable_libtool_lock+set}" = set; then :
8715 enableval=$enable_libtool_lock;
8718 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8720 # Some flags need to be propagated to the compiler or linker for good
8724 # Find out which ABI we are using.
8725 echo 'int i;' > conftest.$ac_ext
8726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8727 (eval $ac_compile) 2>&5
8729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8730 test $ac_status = 0; }; then
8731 case `/usr/bin/file conftest.$ac_objext` in
8743 # Find out which ABI we are using.
8744 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8746 (eval $ac_compile) 2>&5
8748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8749 test $ac_status = 0; }; then
8750 if test "$lt_cv_prog_gnu_ld" = yes; then
8751 case `/usr/bin/file conftest.$ac_objext` in
8753 LD="${LD-ld} -melf32bsmip"
8756 LD="${LD-ld} -melf32bmipn32"
8759 LD="${LD-ld} -melf64bmip"
8763 case `/usr/bin/file conftest.$ac_objext` in
8779 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8780 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8781 # Find out which ABI we are using.
8782 echo 'int i;' > conftest.$ac_ext
8783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8784 (eval $ac_compile) 2>&5
8786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8787 test $ac_status = 0; }; then
8788 case `/usr/bin/file conftest.o` in
8791 x86_64-*kfreebsd*-gnu)
8792 LD="${LD-ld} -m elf_i386_fbsd"
8795 LD="${LD-ld} -m elf_i386"
8797 ppc64-*linux*|powerpc64-*linux*)
8798 LD="${LD-ld} -m elf32ppclinux"
8801 LD="${LD-ld} -m elf_s390"
8804 LD="${LD-ld} -m elf32_sparc"
8810 x86_64-*kfreebsd*-gnu)
8811 LD="${LD-ld} -m elf_x86_64_fbsd"
8814 LD="${LD-ld} -m elf_x86_64"
8816 ppc*-*linux*|powerpc*-*linux*)
8817 LD="${LD-ld} -m elf64ppc"
8819 s390*-*linux*|s390*-*tpf*)
8820 LD="${LD-ld} -m elf64_s390"
8823 LD="${LD-ld} -m elf64_sparc"
8833 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8834 SAVE_CFLAGS="$CFLAGS"
8835 CFLAGS="$CFLAGS -belf"
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8837 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8838 if ${lt_cv_cc_needs_belf+:} false; then :
8839 $as_echo_n "(cached) " >&6
8842 ac_cpp='$CPP $CPPFLAGS'
8843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h. */
8858 if ac_fn_c_try_link "$LINENO"; then :
8859 lt_cv_cc_needs_belf=yes
8861 lt_cv_cc_needs_belf=no
8863 rm -f core conftest.err conftest.$ac_objext \
8864 conftest$ac_exeext conftest.$ac_ext
8866 ac_cpp='$CPP $CPPFLAGS'
8867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8873 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8874 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8875 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8876 CFLAGS="$SAVE_CFLAGS"
8880 # Find out which ABI we are using.
8881 echo 'int i;' > conftest.$ac_ext
8882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8883 (eval $ac_compile) 2>&5
8885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8886 test $ac_status = 0; }; then
8887 case `/usr/bin/file conftest.o` in
8889 case $lt_cv_prog_gnu_ld in
8893 LD="${LD-ld} -m elf_x86_64"
8896 LD="${LD-ld} -m elf64_sparc"
8899 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8900 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8905 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8917 need_locks="$enable_libtool_lock"
8919 if test -n "$ac_tool_prefix"; then
8920 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8921 set dummy ${ac_tool_prefix}mt; ac_word=$2
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8923 $as_echo_n "checking for $ac_word... " >&6; }
8924 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8925 $as_echo_n "(cached) " >&6
8927 if test -n "$MANIFEST_TOOL"; then
8928 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8934 test -z "$as_dir" && as_dir=.
8935 for ac_exec_ext in '' $ac_executable_extensions; do
8936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8937 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8947 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8948 if test -n "$MANIFEST_TOOL"; then
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8950 $as_echo "$MANIFEST_TOOL" >&6; }
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953 $as_echo "no" >&6; }
8958 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8959 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8960 # Extract the first word of "mt", so it can be a program name with args.
8961 set dummy mt; ac_word=$2
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8963 $as_echo_n "checking for $ac_word... " >&6; }
8964 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8965 $as_echo_n "(cached) " >&6
8967 if test -n "$ac_ct_MANIFEST_TOOL"; then
8968 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8974 test -z "$as_dir" && as_dir=.
8975 for ac_exec_ext in '' $ac_executable_extensions; do
8976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8977 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8987 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8988 if test -n "$ac_ct_MANIFEST_TOOL"; then
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8990 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8993 $as_echo "no" >&6; }
8996 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8999 case $cross_compiling:$ac_tool_warned in
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9003 ac_tool_warned=yes ;;
9005 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9008 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9011 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9013 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9014 if ${lt_cv_path_mainfest_tool+:} false; then :
9015 $as_echo_n "(cached) " >&6
9017 lt_cv_path_mainfest_tool=no
9018 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9019 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9020 cat conftest.err >&5
9021 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9022 lt_cv_path_mainfest_tool=yes
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9027 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9028 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9038 rhapsody* | darwin*)
9039 if test -n "$ac_tool_prefix"; then
9040 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9041 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9043 $as_echo_n "checking for $ac_word... " >&6; }
9044 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9045 $as_echo_n "(cached) " >&6
9047 if test -n "$DSYMUTIL"; then
9048 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054 test -z "$as_dir" && as_dir=.
9055 for ac_exec_ext in '' $ac_executable_extensions; do
9056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9057 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9067 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9068 if test -n "$DSYMUTIL"; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9070 $as_echo "$DSYMUTIL" >&6; }
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9073 $as_echo "no" >&6; }
9078 if test -z "$ac_cv_prog_DSYMUTIL"; then
9079 ac_ct_DSYMUTIL=$DSYMUTIL
9080 # Extract the first word of "dsymutil", so it can be a program name with args.
9081 set dummy dsymutil; ac_word=$2
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9083 $as_echo_n "checking for $ac_word... " >&6; }
9084 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9085 $as_echo_n "(cached) " >&6
9087 if test -n "$ac_ct_DSYMUTIL"; then
9088 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094 test -z "$as_dir" && as_dir=.
9095 for ac_exec_ext in '' $ac_executable_extensions; do
9096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9097 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9107 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9108 if test -n "$ac_ct_DSYMUTIL"; then
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9110 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9113 $as_echo "no" >&6; }
9116 if test "x$ac_ct_DSYMUTIL" = x; then
9119 case $cross_compiling:$ac_tool_warned in
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9123 ac_tool_warned=yes ;;
9125 DSYMUTIL=$ac_ct_DSYMUTIL
9128 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9131 if test -n "$ac_tool_prefix"; then
9132 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9133 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9135 $as_echo_n "checking for $ac_word... " >&6; }
9136 if ${ac_cv_prog_NMEDIT+:} false; then :
9137 $as_echo_n "(cached) " >&6
9139 if test -n "$NMEDIT"; then
9140 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9146 test -z "$as_dir" && as_dir=.
9147 for ac_exec_ext in '' $ac_executable_extensions; do
9148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9149 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9159 NMEDIT=$ac_cv_prog_NMEDIT
9160 if test -n "$NMEDIT"; then
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9162 $as_echo "$NMEDIT" >&6; }
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9165 $as_echo "no" >&6; }
9170 if test -z "$ac_cv_prog_NMEDIT"; then
9171 ac_ct_NMEDIT=$NMEDIT
9172 # Extract the first word of "nmedit", so it can be a program name with args.
9173 set dummy nmedit; ac_word=$2
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9175 $as_echo_n "checking for $ac_word... " >&6; }
9176 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9177 $as_echo_n "(cached) " >&6
9179 if test -n "$ac_ct_NMEDIT"; then
9180 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9186 test -z "$as_dir" && as_dir=.
9187 for ac_exec_ext in '' $ac_executable_extensions; do
9188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9189 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9199 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9200 if test -n "$ac_ct_NMEDIT"; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9202 $as_echo "$ac_ct_NMEDIT" >&6; }
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9205 $as_echo "no" >&6; }
9208 if test "x$ac_ct_NMEDIT" = x; then
9211 case $cross_compiling:$ac_tool_warned in
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9215 ac_tool_warned=yes ;;
9217 NMEDIT=$ac_ct_NMEDIT
9220 NMEDIT="$ac_cv_prog_NMEDIT"
9223 if test -n "$ac_tool_prefix"; then
9224 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9225 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9227 $as_echo_n "checking for $ac_word... " >&6; }
9228 if ${ac_cv_prog_LIPO+:} false; then :
9229 $as_echo_n "(cached) " >&6
9231 if test -n "$LIPO"; then
9232 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9238 test -z "$as_dir" && as_dir=.
9239 for ac_exec_ext in '' $ac_executable_extensions; do
9240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9241 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9251 LIPO=$ac_cv_prog_LIPO
9252 if test -n "$LIPO"; then
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9254 $as_echo "$LIPO" >&6; }
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9257 $as_echo "no" >&6; }
9262 if test -z "$ac_cv_prog_LIPO"; then
9264 # Extract the first word of "lipo", so it can be a program name with args.
9265 set dummy lipo; ac_word=$2
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9267 $as_echo_n "checking for $ac_word... " >&6; }
9268 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9269 $as_echo_n "(cached) " >&6
9271 if test -n "$ac_ct_LIPO"; then
9272 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9278 test -z "$as_dir" && as_dir=.
9279 for ac_exec_ext in '' $ac_executable_extensions; do
9280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9281 ac_cv_prog_ac_ct_LIPO="lipo"
9282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9291 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9292 if test -n "$ac_ct_LIPO"; then
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9294 $as_echo "$ac_ct_LIPO" >&6; }
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9297 $as_echo "no" >&6; }
9300 if test "x$ac_ct_LIPO" = x; then
9303 case $cross_compiling:$ac_tool_warned in
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9307 ac_tool_warned=yes ;;
9312 LIPO="$ac_cv_prog_LIPO"
9315 if test -n "$ac_tool_prefix"; then
9316 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9317 set dummy ${ac_tool_prefix}otool; ac_word=$2
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9319 $as_echo_n "checking for $ac_word... " >&6; }
9320 if ${ac_cv_prog_OTOOL+:} false; then :
9321 $as_echo_n "(cached) " >&6
9323 if test -n "$OTOOL"; then
9324 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9330 test -z "$as_dir" && as_dir=.
9331 for ac_exec_ext in '' $ac_executable_extensions; do
9332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9333 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9343 OTOOL=$ac_cv_prog_OTOOL
9344 if test -n "$OTOOL"; then
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9346 $as_echo "$OTOOL" >&6; }
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9349 $as_echo "no" >&6; }
9354 if test -z "$ac_cv_prog_OTOOL"; then
9356 # Extract the first word of "otool", so it can be a program name with args.
9357 set dummy otool; ac_word=$2
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9359 $as_echo_n "checking for $ac_word... " >&6; }
9360 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9361 $as_echo_n "(cached) " >&6
9363 if test -n "$ac_ct_OTOOL"; then
9364 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9370 test -z "$as_dir" && as_dir=.
9371 for ac_exec_ext in '' $ac_executable_extensions; do
9372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9373 ac_cv_prog_ac_ct_OTOOL="otool"
9374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9383 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9384 if test -n "$ac_ct_OTOOL"; then
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9386 $as_echo "$ac_ct_OTOOL" >&6; }
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9389 $as_echo "no" >&6; }
9392 if test "x$ac_ct_OTOOL" = x; then
9395 case $cross_compiling:$ac_tool_warned in
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9399 ac_tool_warned=yes ;;
9404 OTOOL="$ac_cv_prog_OTOOL"
9407 if test -n "$ac_tool_prefix"; then
9408 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9409 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9411 $as_echo_n "checking for $ac_word... " >&6; }
9412 if ${ac_cv_prog_OTOOL64+:} false; then :
9413 $as_echo_n "(cached) " >&6
9415 if test -n "$OTOOL64"; then
9416 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9422 test -z "$as_dir" && as_dir=.
9423 for ac_exec_ext in '' $ac_executable_extensions; do
9424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9425 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9435 OTOOL64=$ac_cv_prog_OTOOL64
9436 if test -n "$OTOOL64"; then
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9438 $as_echo "$OTOOL64" >&6; }
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9441 $as_echo "no" >&6; }
9446 if test -z "$ac_cv_prog_OTOOL64"; then
9447 ac_ct_OTOOL64=$OTOOL64
9448 # Extract the first word of "otool64", so it can be a program name with args.
9449 set dummy otool64; ac_word=$2
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9451 $as_echo_n "checking for $ac_word... " >&6; }
9452 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9453 $as_echo_n "(cached) " >&6
9455 if test -n "$ac_ct_OTOOL64"; then
9456 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9462 test -z "$as_dir" && as_dir=.
9463 for ac_exec_ext in '' $ac_executable_extensions; do
9464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9465 ac_cv_prog_ac_ct_OTOOL64="otool64"
9466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9475 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9476 if test -n "$ac_ct_OTOOL64"; then
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9478 $as_echo "$ac_ct_OTOOL64" >&6; }
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9481 $as_echo "no" >&6; }
9484 if test "x$ac_ct_OTOOL64" = x; then
9487 case $cross_compiling:$ac_tool_warned in
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9491 ac_tool_warned=yes ;;
9493 OTOOL64=$ac_ct_OTOOL64
9496 OTOOL64="$ac_cv_prog_OTOOL64"
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9526 $as_echo_n "checking for -single_module linker flag... " >&6; }
9527 if ${lt_cv_apple_cc_single_mod+:} false; then :
9528 $as_echo_n "(cached) " >&6
9530 lt_cv_apple_cc_single_mod=no
9531 if test -z "${LT_MULTI_MODULE}"; then
9532 # By default we will add the -single_module flag. You can override
9533 # by either setting the environment variable LT_MULTI_MODULE
9534 # non-empty at configure time, or by adding -multi_module to the
9536 rm -rf libconftest.dylib*
9537 echo "int foo(void){return 1;}" > conftest.c
9538 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9539 -dynamiclib -Wl,-single_module conftest.c" >&5
9540 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9541 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9543 # If there is a non-empty error log, and "single_module"
9544 # appears in it, assume the flag caused a linker warning
9545 if test -s conftest.err && $GREP single_module conftest.err; then
9546 cat conftest.err >&5
9547 # Otherwise, if the output was created with a 0 exit code from
9548 # the compiler, it worked.
9549 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9550 lt_cv_apple_cc_single_mod=yes
9552 cat conftest.err >&5
9554 rm -rf libconftest.dylib*
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9559 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9562 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9563 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9564 $as_echo_n "(cached) " >&6
9566 lt_cv_ld_exported_symbols_list=no
9567 save_LDFLAGS=$LDFLAGS
9568 echo "_main" > conftest.sym
9569 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9581 if ac_fn_c_try_link "$LINENO"; then :
9582 lt_cv_ld_exported_symbols_list=yes
9584 lt_cv_ld_exported_symbols_list=no
9586 rm -f core conftest.err conftest.$ac_objext \
9587 conftest$ac_exeext conftest.$ac_ext
9588 LDFLAGS="$save_LDFLAGS"
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9592 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9595 $as_echo_n "checking for -force_load linker flag... " >&6; }
9596 if ${lt_cv_ld_force_load+:} false; then :
9597 $as_echo_n "(cached) " >&6
9599 lt_cv_ld_force_load=no
9600 cat > conftest.c << _LT_EOF
9601 int forced_loaded() { return 2;}
9603 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9604 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9605 echo "$AR cru libconftest.a conftest.o" >&5
9606 $AR cru libconftest.a conftest.o 2>&5
9607 echo "$RANLIB libconftest.a" >&5
9608 $RANLIB libconftest.a 2>&5
9609 cat > conftest.c << _LT_EOF
9610 int main() { return 0;}
9612 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9613 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9615 if test -s conftest.err && $GREP force_load conftest.err; then
9616 cat conftest.err >&5
9617 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9618 lt_cv_ld_force_load=yes
9620 cat conftest.err >&5
9622 rm -f conftest.err libconftest.a conftest conftest.c
9623 rm -rf conftest.dSYM
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9627 $as_echo "$lt_cv_ld_force_load" >&6; }
9629 rhapsody* | darwin1.[012])
9630 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9632 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9633 darwin*) # darwin 5.x on
9634 # if running on 10.5 or later, the deployment target defaults
9635 # to the OS version, if on x86, and 10.4, the deployment
9636 # target defaults to 10.4. Don't you love it?
9637 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9638 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9639 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9641 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9643 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9647 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9648 _lt_dar_single_mod='$single_module'
9650 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9651 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9653 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9655 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9656 _lt_dsymutil='~$DSYMUTIL $lib || :'
9663 for ac_header in dlfcn.h
9665 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9667 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9668 cat >>confdefs.h <<_ACEOF
9669 #define HAVE_DLFCN_H 1
9688 # Check whether --enable-shared was given.
9689 if test "${enable_shared+set}" = set; then :
9690 enableval=$enable_shared; p=${PACKAGE-default}
9692 yes) enable_shared=yes ;;
9693 no) enable_shared=no ;;
9696 # Look at the argument we got. We use all the common list separators.
9697 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9698 for pkg in $enableval; do
9700 if test "X$pkg" = "X$p"; then
9719 # Check whether --enable-static was given.
9720 if test "${enable_static+set}" = set; then :
9721 enableval=$enable_static; p=${PACKAGE-default}
9723 yes) enable_static=yes ;;
9724 no) enable_static=no ;;
9727 # Look at the argument we got. We use all the common list separators.
9728 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9729 for pkg in $enableval; do
9731 if test "X$pkg" = "X$p"; then
9751 # Check whether --with-pic was given.
9752 if test "${with_pic+set}" = set; then :
9753 withval=$with_pic; lt_p=${PACKAGE-default}
9755 yes|no) pic_mode=$withval ;;
9758 # Look at the argument we got. We use all the common list separators.
9759 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9760 for lt_pkg in $withval; do
9762 if test "X$lt_pkg" = "X$lt_p"; then
9774 test -z "$pic_mode" && pic_mode=default
9782 # Check whether --enable-fast-install was given.
9783 if test "${enable_fast_install+set}" = set; then :
9784 enableval=$enable_fast_install; p=${PACKAGE-default}
9786 yes) enable_fast_install=yes ;;
9787 no) enable_fast_install=no ;;
9789 enable_fast_install=no
9790 # Look at the argument we got. We use all the common list separators.
9791 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9792 for pkg in $enableval; do
9794 if test "X$pkg" = "X$p"; then
9795 enable_fast_install=yes
9802 enable_fast_install=yes
9815 # This can be used to rebuild libtool when needed
9816 LIBTOOL_DEPS="$ltmain"
9818 # Always use our own libtool.
9819 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9850 test -z "$LN_S" && LN_S="ln -s"
9865 if test -n "${ZSH_VERSION+set}" ; then
9866 setopt NO_GLOB_SUBST
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9870 $as_echo_n "checking for objdir... " >&6; }
9871 if ${lt_cv_objdir+:} false; then :
9872 $as_echo_n "(cached) " >&6
9874 rm -f .libs 2>/dev/null
9875 mkdir .libs 2>/dev/null
9876 if test -d .libs; then
9879 # MS-DOS does not allow filenames that begin with a dot.
9882 rmdir .libs 2>/dev/null
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9885 $as_echo "$lt_cv_objdir" >&6; }
9886 objdir=$lt_cv_objdir
9892 cat >>confdefs.h <<_ACEOF
9893 #define LT_OBJDIR "$lt_cv_objdir/"
9901 # AIX sometimes has problems with the GCC collect2 program. For some
9902 # reason, if we set the COLLECT_NAMES environment variable, the problems
9903 # vanish in a puff of smoke.
9904 if test "X${COLLECT_NAMES+set}" != Xset; then
9906 export COLLECT_NAMES
9913 can_build_shared=yes
9915 # All known linkers require a `.a' archive for static linking (except MSVC,
9916 # which needs '.lib').
9919 with_gnu_ld="$lt_cv_prog_gnu_ld"
9922 old_CFLAGS="$CFLAGS"
9924 # Set sane defaults for various variables
9925 test -z "$CC" && CC=cc
9926 test -z "$LTCC" && LTCC=$CC
9927 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9928 test -z "$LD" && LD=ld
9929 test -z "$ac_objext" && ac_objext=o
9931 for cc_temp in $compiler""; do
9933 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9934 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9939 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9942 # Only perform the check for file, if the check method requires it
9943 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9944 case $deplibs_check_method in
9946 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9948 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9949 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9950 $as_echo_n "(cached) " >&6
9954 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9957 lt_save_MAGIC_CMD="$MAGIC_CMD"
9958 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9959 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9960 for ac_dir in $ac_dummy; do
9962 test -z "$ac_dir" && ac_dir=.
9963 if test -f $ac_dir/${ac_tool_prefix}file; then
9964 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9965 if test -n "$file_magic_test_file"; then
9966 case $deplibs_check_method in
9968 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9969 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9970 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9971 $EGREP "$file_magic_regex" > /dev/null; then
9976 *** Warning: the command libtool uses to detect shared libraries,
9977 *** $file_magic_cmd, produces output that libtool cannot recognize.
9978 *** The result is that libtool may fail to recognize shared libraries
9979 *** as such. This will affect the creation of libtool libraries that
9980 *** depend on shared libraries, but programs linked with such libtool
9981 *** libraries will work regardless of this problem. Nevertheless, you
9982 *** may want to report the problem to your system manager and/or to
9983 *** bug-libtool@gnu.org
9993 MAGIC_CMD="$lt_save_MAGIC_CMD"
9998 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9999 if test -n "$MAGIC_CMD"; then
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10001 $as_echo "$MAGIC_CMD" >&6; }
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10004 $as_echo "no" >&6; }
10011 if test -z "$lt_cv_path_MAGIC_CMD"; then
10012 if test -n "$ac_tool_prefix"; then
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10014 $as_echo_n "checking for file... " >&6; }
10015 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10016 $as_echo_n "(cached) " >&6
10020 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10023 lt_save_MAGIC_CMD="$MAGIC_CMD"
10024 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10025 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10026 for ac_dir in $ac_dummy; do
10028 test -z "$ac_dir" && ac_dir=.
10029 if test -f $ac_dir/file; then
10030 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10031 if test -n "$file_magic_test_file"; then
10032 case $deplibs_check_method in
10034 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10035 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10036 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10037 $EGREP "$file_magic_regex" > /dev/null; then
10042 *** Warning: the command libtool uses to detect shared libraries,
10043 *** $file_magic_cmd, produces output that libtool cannot recognize.
10044 *** The result is that libtool may fail to recognize shared libraries
10045 *** as such. This will affect the creation of libtool libraries that
10046 *** depend on shared libraries, but programs linked with such libtool
10047 *** libraries will work regardless of this problem. Nevertheless, you
10048 *** may want to report the problem to your system manager and/or to
10049 *** bug-libtool@gnu.org
10059 MAGIC_CMD="$lt_save_MAGIC_CMD"
10064 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10065 if test -n "$MAGIC_CMD"; then
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10067 $as_echo "$MAGIC_CMD" >&6; }
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10070 $as_echo "no" >&6; }
10083 # Use C for the default configuration in the libtool script
10087 ac_cpp='$CPP $CPPFLAGS'
10088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10093 # Source file extension for C test sources.
10096 # Object file extension for compiled C test sources.
10100 # Code to be used in simple compile tests
10101 lt_simple_compile_test_code="int some_variable = 0;"
10103 # Code to be used in simple link tests
10104 lt_simple_link_test_code='int main(){return(0);}'
10112 # If no C compiler was specified, use CC.
10115 # If no C compiler flags were specified, use CFLAGS.
10116 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10118 # Allow CC to be a program name with arguments.
10121 # Save the default compiler, since it gets overwritten when the other
10122 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10123 compiler_DEFAULT=$CC
10125 # save warnings/boilerplate of simple test code
10126 ac_outfile=conftest.$ac_objext
10127 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10128 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10129 _lt_compiler_boilerplate=`cat conftest.err`
10132 ac_outfile=conftest.$ac_objext
10133 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10134 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10135 _lt_linker_boilerplate=`cat conftest.err`
10140 ## There is no encapsulation within the following macros, do not change
10141 ## the running order or otherwise move them around unless you know exactly
10142 ## what you are doing...
10143 if test -n "$compiler"; then
10145 lt_prog_compiler_no_builtin_flag=
10147 if test "$GCC" = yes; then
10148 case $cc_basename in
10150 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10152 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10156 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10157 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10158 $as_echo_n "(cached) " >&6
10160 lt_cv_prog_compiler_rtti_exceptions=no
10161 ac_outfile=conftest.$ac_objext
10162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10163 lt_compiler_flag="-fno-rtti -fno-exceptions"
10164 # Insert the option either (1) after the last *FLAGS variable, or
10165 # (2) before a word containing "conftest.", or (3) at the end.
10166 # Note that $ac_compile itself does not contain backslashes and begins
10167 # with a dollar sign (not a hyphen), so the echo should work correctly.
10168 # The option is referenced via a variable to avoid confusing sed.
10169 lt_compile=`echo "$ac_compile" | $SED \
10170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10172 -e 's:$: $lt_compiler_flag:'`
10173 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10174 (eval "$lt_compile" 2>conftest.err)
10176 cat conftest.err >&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 if (exit $ac_status) && test -s "$ac_outfile"; then
10179 # The compiler can only warn and ignore the option if not recognized
10180 # So say no if there are warnings other than the usual output.
10181 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10183 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10184 lt_cv_prog_compiler_rtti_exceptions=yes
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10191 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10193 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10194 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10206 lt_prog_compiler_wl=
10207 lt_prog_compiler_pic=
10208 lt_prog_compiler_static=
10211 if test "$GCC" = yes; then
10212 lt_prog_compiler_wl='-Wl,'
10213 lt_prog_compiler_static='-static'
10217 # All AIX code is PIC.
10218 if test "$host_cpu" = ia64; then
10219 # AIX 5 now supports IA64 processor
10220 lt_prog_compiler_static='-Bstatic'
10227 # see comment about AmigaOS4 .so support
10228 lt_prog_compiler_pic='-fPIC'
10231 # FIXME: we need at least 68020 code to build shared libraries, but
10232 # adding the `-m68020' flag to GCC prevents building anything better,
10234 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10239 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10240 # PIC is the default for these OSes.
10243 mingw* | cygwin* | pw32* | os2* | cegcc*)
10244 # This hack is so that the source file can tell whether it is being
10245 # built for inclusion in a dll (and should export symbols for example).
10246 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10247 # (--disable-auto-import) libraries
10248 lt_prog_compiler_pic='-DDLL_EXPORT'
10251 darwin* | rhapsody*)
10252 # PIC is the default on this platform
10253 # Common symbols not allowed in MH_DYLIB files
10254 lt_prog_compiler_pic='-fno-common'
10258 # PIC is the default for Haiku.
10259 # The "-static" flag exists, but is broken.
10260 lt_prog_compiler_static=
10264 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10265 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10266 # sets the default TLS model and affects inlining.
10272 lt_prog_compiler_pic='-fPIC'
10278 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10279 # Instead, we relocate shared libraries at runtime.
10283 # Just because we use GCC doesn't mean we suddenly get shared libraries
10284 # on systems that don't support them.
10285 lt_prog_compiler_can_build_shared=no
10290 # QNX uses GNU C++, but need to define -shared option too, otherwise
10291 # it will coredump.
10292 lt_prog_compiler_pic='-fPIC -shared'
10296 if test -d /usr/nec; then
10297 lt_prog_compiler_pic=-Kconform_pic
10302 lt_prog_compiler_pic='-fPIC'
10306 case $cc_basename in
10307 nvcc*) # Cuda Compiler Driver 2.2
10308 lt_prog_compiler_wl='-Xlinker '
10309 if test -n "$lt_prog_compiler_pic"; then
10310 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10315 # PORTME Check for flag to pass linker flags through the system compiler.
10318 lt_prog_compiler_wl='-Wl,'
10319 if test "$host_cpu" = ia64; then
10320 # AIX 5 now supports IA64 processor
10321 lt_prog_compiler_static='-Bstatic'
10323 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10327 mingw* | cygwin* | pw32* | os2* | cegcc*)
10328 # This hack is so that the source file can tell whether it is being
10329 # built for inclusion in a dll (and should export symbols for example).
10330 lt_prog_compiler_pic='-DDLL_EXPORT'
10333 hpux9* | hpux10* | hpux11*)
10334 lt_prog_compiler_wl='-Wl,'
10335 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10336 # not for PA HP-UX.
10342 lt_prog_compiler_pic='+Z'
10345 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10346 lt_prog_compiler_static='${wl}-a ${wl}archive'
10349 irix5* | irix6* | nonstopux*)
10350 lt_prog_compiler_wl='-Wl,'
10351 # PIC (with -KPIC) is the default.
10352 lt_prog_compiler_static='-non_shared'
10355 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10356 case $cc_basename in
10357 # old Intel for x86_64 which still supported -KPIC.
10359 lt_prog_compiler_wl='-Wl,'
10360 lt_prog_compiler_pic='-KPIC'
10361 lt_prog_compiler_static='-static'
10363 # icc used to be incompatible with GCC.
10364 # ICC 10 doesn't accept -KPIC any more.
10366 lt_prog_compiler_wl='-Wl,'
10367 lt_prog_compiler_pic='-fPIC'
10368 lt_prog_compiler_static='-static'
10370 # Lahey Fortran 8.1.
10372 lt_prog_compiler_wl='-Wl,'
10373 lt_prog_compiler_pic='--shared'
10374 lt_prog_compiler_static='--static'
10377 # NAG Fortran compiler
10378 lt_prog_compiler_wl='-Wl,-Wl,,'
10379 lt_prog_compiler_pic='-PIC'
10380 lt_prog_compiler_static='-Bstatic'
10382 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10383 # Portland Group compilers (*not* the Pentium gcc compiler,
10384 # which looks to be a dead project)
10385 lt_prog_compiler_wl='-Wl,'
10386 lt_prog_compiler_pic='-fpic'
10387 lt_prog_compiler_static='-Bstatic'
10390 lt_prog_compiler_wl='-Wl,'
10391 # All Alpha code is PIC.
10392 lt_prog_compiler_static='-non_shared'
10394 xl* | bgxl* | bgf* | mpixl*)
10395 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10396 lt_prog_compiler_wl='-Wl,'
10397 lt_prog_compiler_pic='-qpic'
10398 lt_prog_compiler_static='-qstaticlink'
10401 case `$CC -V 2>&1 | sed 5q` in
10402 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10403 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10404 lt_prog_compiler_pic='-KPIC'
10405 lt_prog_compiler_static='-Bstatic'
10406 lt_prog_compiler_wl=''
10408 *Sun\ F* | *Sun*Fortran*)
10409 lt_prog_compiler_pic='-KPIC'
10410 lt_prog_compiler_static='-Bstatic'
10411 lt_prog_compiler_wl='-Qoption ld '
10415 lt_prog_compiler_pic='-KPIC'
10416 lt_prog_compiler_static='-Bstatic'
10417 lt_prog_compiler_wl='-Wl,'
10419 *Intel*\ [CF]*Compiler*)
10420 lt_prog_compiler_wl='-Wl,'
10421 lt_prog_compiler_pic='-fPIC'
10422 lt_prog_compiler_static='-static'
10425 lt_prog_compiler_wl='-Wl,'
10426 lt_prog_compiler_pic='-fpic'
10427 lt_prog_compiler_static='-Bstatic'
10435 lt_prog_compiler_pic='-KPIC'
10436 lt_prog_compiler_static='-Bstatic'
10440 # QNX uses GNU C++, but need to define -shared option too, otherwise
10441 # it will coredump.
10442 lt_prog_compiler_pic='-fPIC -shared'
10445 osf3* | osf4* | osf5*)
10446 lt_prog_compiler_wl='-Wl,'
10447 # All OSF/1 code is PIC.
10448 lt_prog_compiler_static='-non_shared'
10452 lt_prog_compiler_static='-non_shared'
10456 lt_prog_compiler_pic='-KPIC'
10457 lt_prog_compiler_static='-Bstatic'
10458 case $cc_basename in
10459 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10460 lt_prog_compiler_wl='-Qoption ld ';;
10462 lt_prog_compiler_wl='-Wl,';;
10467 lt_prog_compiler_wl='-Qoption ld '
10468 lt_prog_compiler_pic='-PIC'
10469 lt_prog_compiler_static='-Bstatic'
10472 sysv4 | sysv4.2uw2* | sysv4.3*)
10473 lt_prog_compiler_wl='-Wl,'
10474 lt_prog_compiler_pic='-KPIC'
10475 lt_prog_compiler_static='-Bstatic'
10479 if test -d /usr/nec ;then
10480 lt_prog_compiler_pic='-Kconform_pic'
10481 lt_prog_compiler_static='-Bstatic'
10485 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10486 lt_prog_compiler_wl='-Wl,'
10487 lt_prog_compiler_pic='-KPIC'
10488 lt_prog_compiler_static='-Bstatic'
10492 lt_prog_compiler_wl='-Wl,'
10493 lt_prog_compiler_can_build_shared=no
10497 lt_prog_compiler_pic='-pic'
10498 lt_prog_compiler_static='-Bstatic'
10502 lt_prog_compiler_can_build_shared=no
10508 # For platforms which do not support PIC, -DPIC is meaningless:
10510 lt_prog_compiler_pic=
10513 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10518 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10519 if ${lt_cv_prog_compiler_pic+:} false; then :
10520 $as_echo_n "(cached) " >&6
10522 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10525 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10526 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10529 # Check to make sure the PIC flag actually works.
10531 if test -n "$lt_prog_compiler_pic"; then
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10533 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10534 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10535 $as_echo_n "(cached) " >&6
10537 lt_cv_prog_compiler_pic_works=no
10538 ac_outfile=conftest.$ac_objext
10539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10540 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10541 # Insert the option either (1) after the last *FLAGS variable, or
10542 # (2) before a word containing "conftest.", or (3) at the end.
10543 # Note that $ac_compile itself does not contain backslashes and begins
10544 # with a dollar sign (not a hyphen), so the echo should work correctly.
10545 # The option is referenced via a variable to avoid confusing sed.
10546 lt_compile=`echo "$ac_compile" | $SED \
10547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10549 -e 's:$: $lt_compiler_flag:'`
10550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10551 (eval "$lt_compile" 2>conftest.err)
10553 cat conftest.err >&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 if (exit $ac_status) && test -s "$ac_outfile"; then
10556 # The compiler can only warn and ignore the option if not recognized
10557 # So say no if there are warnings other than the usual output.
10558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10560 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10561 lt_cv_prog_compiler_pic_works=yes
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10568 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10570 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10571 case $lt_prog_compiler_pic in
10573 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10576 lt_prog_compiler_pic=
10577 lt_prog_compiler_can_build_shared=no
10593 # Check to make sure the static flag actually works.
10595 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10597 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10598 if ${lt_cv_prog_compiler_static_works+:} false; then :
10599 $as_echo_n "(cached) " >&6
10601 lt_cv_prog_compiler_static_works=no
10602 save_LDFLAGS="$LDFLAGS"
10603 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10604 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10605 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10606 # The linker can only warn and ignore the option if not recognized
10607 # So say no if there are warnings
10608 if test -s conftest.err; then
10609 # Append any errors to the config.log.
10610 cat conftest.err 1>&5
10611 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10612 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10613 if diff conftest.exp conftest.er2 >/dev/null; then
10614 lt_cv_prog_compiler_static_works=yes
10617 lt_cv_prog_compiler_static_works=yes
10621 LDFLAGS="$save_LDFLAGS"
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10625 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10627 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10630 lt_prog_compiler_static=
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10640 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10641 if ${lt_cv_prog_compiler_c_o+:} false; then :
10642 $as_echo_n "(cached) " >&6
10644 lt_cv_prog_compiler_c_o=no
10645 $RM -r conftest 2>/dev/null
10649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10651 lt_compiler_flag="-o out/conftest2.$ac_objext"
10652 # Insert the option either (1) after the last *FLAGS variable, or
10653 # (2) before a word containing "conftest.", or (3) at the end.
10654 # Note that $ac_compile itself does not contain backslashes and begins
10655 # with a dollar sign (not a hyphen), so the echo should work correctly.
10656 lt_compile=`echo "$ac_compile" | $SED \
10657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10659 -e 's:$: $lt_compiler_flag:'`
10660 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10661 (eval "$lt_compile" 2>out/conftest.err)
10663 cat out/conftest.err >&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10667 # The compiler can only warn and ignore the option if not recognized
10668 # So say no if there are warnings
10669 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10670 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10671 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10672 lt_cv_prog_compiler_c_o=yes
10677 # SGI C++ compiler will create directory out/ii_files/ for
10678 # template instantiation
10679 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10680 $RM out/* && rmdir out
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10687 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10695 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10696 if ${lt_cv_prog_compiler_c_o+:} false; then :
10697 $as_echo_n "(cached) " >&6
10699 lt_cv_prog_compiler_c_o=no
10700 $RM -r conftest 2>/dev/null
10704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10706 lt_compiler_flag="-o out/conftest2.$ac_objext"
10707 # Insert the option either (1) after the last *FLAGS variable, or
10708 # (2) before a word containing "conftest.", or (3) at the end.
10709 # Note that $ac_compile itself does not contain backslashes and begins
10710 # with a dollar sign (not a hyphen), so the echo should work correctly.
10711 lt_compile=`echo "$ac_compile" | $SED \
10712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10714 -e 's:$: $lt_compiler_flag:'`
10715 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10716 (eval "$lt_compile" 2>out/conftest.err)
10718 cat out/conftest.err >&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10722 # The compiler can only warn and ignore the option if not recognized
10723 # So say no if there are warnings
10724 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10725 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10726 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10727 lt_cv_prog_compiler_c_o=yes
10732 # SGI C++ compiler will create directory out/ii_files/ for
10733 # template instantiation
10734 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10735 $RM out/* && rmdir out
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10742 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10747 hard_links="nottested"
10748 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10749 # do not overwrite the value of need_locks provided by the user
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10751 $as_echo_n "checking if we can lock with hard links... " >&6; }
10754 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10756 ln conftest.a conftest.b 2>&5 || hard_links=no
10757 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10759 $as_echo "$hard_links" >&6; }
10760 if test "$hard_links" = no; then
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10762 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10775 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10778 allow_undefined_flag=
10779 always_export_symbols=no
10781 archive_expsym_cmds=
10782 compiler_needs_object=no
10783 enable_shared_with_static_runtimes=no
10784 export_dynamic_flag_spec=
10785 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10786 hardcode_automatic=no
10788 hardcode_direct_absolute=no
10789 hardcode_libdir_flag_spec=
10790 hardcode_libdir_separator=
10791 hardcode_minus_L=no
10792 hardcode_shlibpath_var=unsupported
10794 link_all_deplibs=unknown
10796 module_expsym_cmds=
10797 old_archive_from_new_cmds=
10798 old_archive_from_expsyms_cmds=
10799 thread_safe_flag_spec=
10800 whole_archive_flag_spec=
10801 # include_expsyms should be a list of space-separated symbols to be *always*
10802 # included in the symbol list
10804 # exclude_expsyms can be an extended regexp of symbols to exclude
10805 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10806 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10807 # as well as any symbol that contains `d'.
10808 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10809 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10810 # platforms (ab)use it in PIC code, but their linkers get confused if
10811 # the symbol is explicitly referenced. Since portable code cannot
10812 # rely on this symbol name, it's probably fine to never include it in
10813 # preloaded symbol tables.
10814 # Exclude shared library initialization/finalization symbols.
10815 extract_expsyms_cmds=
10818 cygwin* | mingw* | pw32* | cegcc*)
10819 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10820 # When not using gcc, we currently assume that we are using
10821 # Microsoft Visual C++.
10822 if test "$GCC" != yes; then
10827 # we just hope/assume this is gcc and not c89 (= MSVC++)
10833 linux* | k*bsd*-gnu | gnu*)
10834 link_all_deplibs=no
10840 # On some targets, GNU ld is compatible enough with the native linker
10841 # that we're better off using the native interface for both.
10842 lt_use_gnu_ld_interface=no
10843 if test "$with_gnu_ld" = yes; then
10846 # The AIX port of GNU ld has always aspired to compatibility
10847 # with the native linker. However, as the warning in the GNU ld
10848 # block says, versions before 2.19.5* couldn't really create working
10849 # shared libraries, regardless of the interface used.
10850 case `$LD -v 2>&1` in
10851 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10852 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10853 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10855 lt_use_gnu_ld_interface=yes
10860 lt_use_gnu_ld_interface=yes
10865 if test "$lt_use_gnu_ld_interface" = yes; then
10866 # If archive_cmds runs LD, not CC, wlarc should be empty
10869 # Set some defaults for GNU ld with shared library support. These
10870 # are reset later if shared libraries are not supported. Putting them
10871 # here allows them to be overridden if necessary.
10872 runpath_var=LD_RUN_PATH
10873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10874 export_dynamic_flag_spec='${wl}--export-dynamic'
10875 # ancient GNU ld didn't support --whole-archive et. al.
10876 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10877 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10879 whole_archive_flag_spec=
10881 supports_anon_versioning=no
10882 case `$LD -v 2>&1` in
10883 *GNU\ gold*) supports_anon_versioning=yes ;;
10884 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10885 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10886 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10887 *\ 2.11.*) ;; # other 2.11 versions
10888 *) supports_anon_versioning=yes ;;
10891 # See if GNU ld supports shared libraries.
10894 # On AIX/PPC, the GNU linker is very broken
10895 if test "$host_cpu" != ia64; then
10899 *** Warning: the GNU linker, at least up to release 2.19, is reported
10900 *** to be unable to reliably create shared libraries on AIX.
10901 *** Therefore, libtool is disabling shared libraries support. If you
10902 *** really care for shared libraries, you may want to install binutils
10903 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10904 *** You will then need to restart the configuration process.
10913 # see comment about AmigaOS4 .so support
10914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10915 archive_expsym_cmds=''
10918 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)'
10919 hardcode_libdir_flag_spec='-L$libdir'
10920 hardcode_minus_L=yes
10926 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10927 allow_undefined_flag=unsupported
10928 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10929 # support --undefined. This deserves some investigation. FIXME
10930 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10936 cygwin* | mingw* | pw32* | cegcc*)
10937 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10938 # as there is no search path for DLLs.
10939 hardcode_libdir_flag_spec='-L$libdir'
10940 export_dynamic_flag_spec='${wl}--export-all-symbols'
10941 allow_undefined_flag=unsupported
10942 always_export_symbols=no
10943 enable_shared_with_static_runtimes=yes
10944 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'
10945 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10947 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10948 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10949 # If the export-symbols file already is a .def file (1st line
10950 # is EXPORTS), use it as is; otherwise, prepend...
10951 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10952 cp $export_symbols $output_objdir/$soname.def;
10954 echo EXPORTS > $output_objdir/$soname.def;
10955 cat $export_symbols >> $output_objdir/$soname.def;
10957 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10964 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10965 link_all_deplibs=yes
10970 hardcode_shlibpath_var=no
10971 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10972 export_dynamic_flag_spec='${wl}-E'
10973 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10974 # Instead, shared libraries are loaded at an image base (0x10000000 by
10975 # default) and relocated if they conflict, which is a slow very memory
10976 # consuming and fragmenting process. To avoid this, we pick a random,
10977 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10978 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10979 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10980 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'
10983 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10985 if test "$host_os" = linux-dietlibc; then
10986 case $cc_basename in
10987 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10990 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10991 && test "$tmp_diet" = no
10993 tmp_addflag=' $pic_flag'
10994 tmp_sharedflag='-shared'
10995 case $cc_basename,$host_cpu in
10996 pgcc*) # Portland Group C compiler
10997 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'
10998 tmp_addflag=' $pic_flag'
11000 pgf77* | pgf90* | pgf95* | pgfortran*)
11001 # Portland Group f77 and f90 compilers
11002 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'
11003 tmp_addflag=' $pic_flag -Mnomain' ;;
11004 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11005 tmp_addflag=' -i_dynamic' ;;
11006 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11007 tmp_addflag=' -i_dynamic -nofor_main' ;;
11008 ifc* | ifort*) # Intel Fortran compiler
11009 tmp_addflag=' -nofor_main' ;;
11010 lf95*) # Lahey Fortran 8.1
11011 whole_archive_flag_spec=
11012 tmp_sharedflag='--shared' ;;
11013 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11014 tmp_sharedflag='-qmkshrobj'
11016 nvcc*) # Cuda Compiler Driver 2.2
11017 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'
11018 compiler_needs_object=yes
11021 case `$CC -V 2>&1 | sed 5q` in
11022 *Sun\ C*) # Sun C 5.9
11023 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'
11024 compiler_needs_object=yes
11025 tmp_sharedflag='-G' ;;
11026 *Sun\ F*) # Sun Fortran 8.3
11027 tmp_sharedflag='-G' ;;
11029 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11031 if test "x$supports_anon_versioning" = xyes; then
11032 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11033 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11034 echo "local: *; };" >> $output_objdir/$libname.ver~
11035 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11038 case $cc_basename in
11039 xlf* | bgf* | bgxlf* | mpixlf*)
11040 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11041 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11043 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11044 if test "x$supports_anon_versioning" = xyes; then
11045 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11046 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11047 echo "local: *; };" >> $output_objdir/$libname.ver~
11048 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11057 netbsd* | netbsdelf*-gnu)
11058 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11059 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11062 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11063 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11068 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11072 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11073 *** create shared libraries on Solaris systems. Therefore, libtool
11074 *** is disabling shared libraries support. We urge you to upgrade GNU
11075 *** binutils to release 2.9.1 or newer. Another option is to modify
11076 *** your PATH or compiler configuration so that the native linker is
11077 *** used, and then restart.
11080 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11081 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11082 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11089 case `$LD -v 2>&1` in
11090 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11094 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11095 *** reliably create shared libraries on SCO systems. Therefore, libtool
11096 *** is disabling shared libraries support. We urge you to upgrade GNU
11097 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11098 *** your PATH or compiler configuration so that the native linker is
11099 *** used, and then restart.
11104 # For security reasons, it is highly recommended that you always
11105 # use absolute paths for naming shared libraries, and exclude the
11106 # DT_RUNPATH tag from executables and libraries. But doing so
11107 # requires that you compile everything twice, which is a pain.
11108 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11109 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11111 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11120 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11122 hardcode_direct=yes
11123 hardcode_shlibpath_var=no
11127 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11128 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11129 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11136 if test "$ld_shlibs" = no; then
11138 hardcode_libdir_flag_spec=
11139 export_dynamic_flag_spec=
11140 whole_archive_flag_spec=
11143 # PORTME fill in a description of your system's linker (not GNU ld)
11146 allow_undefined_flag=unsupported
11147 always_export_symbols=yes
11148 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'
11149 # Note: this linker hardcodes the directories in LIBPATH if there
11150 # are no directories specified by -L.
11151 hardcode_minus_L=yes
11152 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11153 # Neither direct hardcoding nor static linking is supported with a
11155 hardcode_direct=unsupported
11160 if test "$host_cpu" = ia64; then
11161 # On IA64, the linker does run time linking by default, so we don't
11162 # have to do anything special.
11163 aix_use_runtimelinking=no
11164 exp_sym_flag='-Bexport'
11167 # If we're using GNU nm, then we don't want the "-C" option.
11168 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11169 # Also, AIX nm treats weak defined symbols like other global
11170 # defined symbols, whereas GNU nm marks them as "W".
11171 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11172 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'
11174 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'
11176 aix_use_runtimelinking=no
11178 # Test if we are trying to use run time linking or normal
11179 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11180 # need to do runtime linking.
11181 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11182 for ld_flag in $LDFLAGS; do
11183 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11184 aix_use_runtimelinking=yes
11191 exp_sym_flag='-bexport'
11192 no_entry_flag='-bnoentry'
11195 # When large executables or shared objects are built, AIX ld can
11196 # have problems creating the table of contents. If linking a library
11197 # or program results in "error TOC overflow" add -mminimal-toc to
11198 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11199 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11202 hardcode_direct=yes
11203 hardcode_direct_absolute=yes
11204 hardcode_libdir_separator=':'
11205 link_all_deplibs=yes
11206 file_list_spec='${wl}-f,'
11208 if test "$GCC" = yes; then
11209 case $host_os in aix4.[012]|aix4.[012].*)
11210 # We only want to do this on AIX 4.2 and lower, the check
11211 # below for broken collect2 doesn't work under 4.3+
11212 collect2name=`${CC} -print-prog-name=collect2`
11213 if test -f "$collect2name" &&
11214 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11216 # We have reworked collect2
11219 # We have old collect2
11220 hardcode_direct=unsupported
11221 # It fails to find uninstalled libraries when the uninstalled
11222 # path is not listed in the libpath. Setting hardcode_minus_L
11223 # to unsupported forces relinking
11224 hardcode_minus_L=yes
11225 hardcode_libdir_flag_spec='-L$libdir'
11226 hardcode_libdir_separator=
11230 shared_flag='-shared'
11231 if test "$aix_use_runtimelinking" = yes; then
11232 shared_flag="$shared_flag "'${wl}-G'
11234 link_all_deplibs=no
11237 if test "$host_cpu" = ia64; then
11238 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11239 # chokes on -Wl,-G. The following line is correct:
11242 if test "$aix_use_runtimelinking" = yes; then
11243 shared_flag='${wl}-G'
11245 shared_flag='${wl}-bM:SRE'
11250 export_dynamic_flag_spec='${wl}-bexpall'
11251 # It seems that -bexpall does not export symbols beginning with
11252 # underscore (_), so it is better to generate a list of symbols to export.
11253 always_export_symbols=yes
11254 if test "$aix_use_runtimelinking" = yes; then
11255 # Warning - without using the other runtime loading flags (-brtl),
11256 # -berok will link without error, but may produce a broken library.
11257 allow_undefined_flag='-berok'
11258 # Determine the default libpath from the value encoded in an
11259 # empty executable.
11260 if test "${lt_cv_aix_libpath+set}" = set; then
11261 aix_libpath=$lt_cv_aix_libpath
11263 if ${lt_cv_aix_libpath_+:} false; then :
11264 $as_echo_n "(cached) " >&6
11266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11277 if ac_fn_c_try_link "$LINENO"; then :
11279 lt_aix_libpath_sed='
11280 /Import File Strings/,/^$/ {
11282 s/^0 *\([^ ]*\) *$/\1/
11286 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11287 # Check for a 64-bit object if we didn't find anything.
11288 if test -z "$lt_cv_aix_libpath_"; then
11289 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11292 rm -f core conftest.err conftest.$ac_objext \
11293 conftest$ac_exeext conftest.$ac_ext
11294 if test -z "$lt_cv_aix_libpath_"; then
11295 lt_cv_aix_libpath_="/usr/lib:/lib"
11300 aix_libpath=$lt_cv_aix_libpath_
11303 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11304 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"
11306 if test "$host_cpu" = ia64; then
11307 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11308 allow_undefined_flag="-z nodefs"
11309 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"
11311 # Determine the default libpath from the value encoded in an
11312 # empty executable.
11313 if test "${lt_cv_aix_libpath+set}" = set; then
11314 aix_libpath=$lt_cv_aix_libpath
11316 if ${lt_cv_aix_libpath_+:} false; then :
11317 $as_echo_n "(cached) " >&6
11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320 /* end confdefs.h. */
11330 if ac_fn_c_try_link "$LINENO"; then :
11332 lt_aix_libpath_sed='
11333 /Import File Strings/,/^$/ {
11335 s/^0 *\([^ ]*\) *$/\1/
11339 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11340 # Check for a 64-bit object if we didn't find anything.
11341 if test -z "$lt_cv_aix_libpath_"; then
11342 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11345 rm -f core conftest.err conftest.$ac_objext \
11346 conftest$ac_exeext conftest.$ac_ext
11347 if test -z "$lt_cv_aix_libpath_"; then
11348 lt_cv_aix_libpath_="/usr/lib:/lib"
11353 aix_libpath=$lt_cv_aix_libpath_
11356 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11357 # Warning - without using the other run time loading flags,
11358 # -berok will link without error, but may produce a broken library.
11359 no_undefined_flag=' ${wl}-bernotok'
11360 allow_undefined_flag=' ${wl}-berok'
11361 if test "$with_gnu_ld" = yes; then
11362 # We only use this code for GNU lds that support --whole-archive.
11363 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11365 # Exported symbols can be pulled into shared objects from archives
11366 whole_archive_flag_spec='$convenience'
11368 archive_cmds_need_lc=yes
11369 # This is similar to how AIX traditionally builds its shared libraries.
11370 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'
11378 # see comment about AmigaOS4 .so support
11379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11380 archive_expsym_cmds=''
11383 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)'
11384 hardcode_libdir_flag_spec='-L$libdir'
11385 hardcode_minus_L=yes
11391 export_dynamic_flag_spec=-rdynamic
11394 cygwin* | mingw* | pw32* | cegcc*)
11395 # When not using gcc, we currently assume that we are using
11396 # Microsoft Visual C++.
11397 # hardcode_libdir_flag_spec is actually meaningless, as there is
11398 # no search path for DLLs.
11399 case $cc_basename in
11402 hardcode_libdir_flag_spec=' '
11403 allow_undefined_flag=unsupported
11404 always_export_symbols=yes
11406 # Tell ltmain to make .lib files, not .a files.
11408 # Tell ltmain to make .dll files, not .so files.
11410 # FIXME: Setting linknames here is a bad hack.
11411 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11412 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11413 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11415 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11417 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11419 # The linker will not automatically build a static lib if we build a DLL.
11420 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11421 enable_shared_with_static_runtimes=yes
11422 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11423 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11425 old_postinstall_cmds='chmod 644 $oldlib'
11426 postlink_cmds='lt_outputfile="@OUTPUT@"~
11427 lt_tool_outputfile="@TOOL_OUTPUT@"~
11428 case $lt_outputfile in
11431 lt_outputfile="$lt_outputfile.exe"
11432 lt_tool_outputfile="$lt_tool_outputfile.exe"
11435 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11436 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11437 $RM "$lt_outputfile.manifest";
11441 # Assume MSVC wrapper
11442 hardcode_libdir_flag_spec=' '
11443 allow_undefined_flag=unsupported
11444 # Tell ltmain to make .lib files, not .a files.
11446 # Tell ltmain to make .dll files, not .so files.
11448 # FIXME: Setting linknames here is a bad hack.
11449 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11450 # The linker will automatically build a .lib file if we build a DLL.
11451 old_archive_from_new_cmds='true'
11452 # FIXME: Should let the user specify the lib program.
11453 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11454 enable_shared_with_static_runtimes=yes
11459 darwin* | rhapsody*)
11462 archive_cmds_need_lc=no
11464 hardcode_automatic=yes
11465 hardcode_shlibpath_var=unsupported
11466 if test "$lt_cv_ld_force_load" = "yes"; then
11467 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\"`'
11470 whole_archive_flag_spec=''
11472 link_all_deplibs=yes
11473 allow_undefined_flag="$_lt_dar_allow_undefined"
11474 case $cc_basename in
11475 ifort*) _lt_dar_can_shared=yes ;;
11476 *) _lt_dar_can_shared=$GCC ;;
11478 if test "$_lt_dar_can_shared" = "yes"; then
11479 output_verbose_link_cmd=func_echo_all
11480 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11481 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11482 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}"
11483 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}"
11492 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11493 hardcode_libdir_flag_spec='-L$libdir'
11494 hardcode_shlibpath_var=no
11497 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11498 # support. Future versions do this automatically, but an explicit c++rt0.o
11499 # does not break anything, and helps significantly (at the cost of a little
11502 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11503 hardcode_libdir_flag_spec='-R$libdir'
11504 hardcode_direct=yes
11505 hardcode_shlibpath_var=no
11508 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11510 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11511 hardcode_direct=yes
11512 hardcode_minus_L=yes
11513 hardcode_shlibpath_var=no
11516 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11517 freebsd* | dragonfly*)
11518 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11519 hardcode_libdir_flag_spec='-R$libdir'
11520 hardcode_direct=yes
11521 hardcode_shlibpath_var=no
11525 if test "$GCC" = yes; then
11526 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'
11528 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'
11530 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11531 hardcode_libdir_separator=:
11532 hardcode_direct=yes
11534 # hardcode_minus_L: Not really in the search PATH,
11535 # but as the default location of the library.
11536 hardcode_minus_L=yes
11537 export_dynamic_flag_spec='${wl}-E'
11541 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11542 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11544 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11546 if test "$with_gnu_ld" = no; then
11547 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11548 hardcode_libdir_separator=:
11549 hardcode_direct=yes
11550 hardcode_direct_absolute=yes
11551 export_dynamic_flag_spec='${wl}-E'
11552 # hardcode_minus_L: Not really in the search PATH,
11553 # but as the default location of the library.
11554 hardcode_minus_L=yes
11559 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11562 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11565 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11568 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11574 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11577 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11581 # Older versions of the 11.00 compiler do not understand -b yet
11582 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11584 $as_echo_n "checking if $CC understands -b... " >&6; }
11585 if ${lt_cv_prog_compiler__b+:} false; then :
11586 $as_echo_n "(cached) " >&6
11588 lt_cv_prog_compiler__b=no
11589 save_LDFLAGS="$LDFLAGS"
11590 LDFLAGS="$LDFLAGS -b"
11591 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11592 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11593 # The linker can only warn and ignore the option if not recognized
11594 # So say no if there are warnings
11595 if test -s conftest.err; then
11596 # Append any errors to the config.log.
11597 cat conftest.err 1>&5
11598 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11599 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11600 if diff conftest.exp conftest.er2 >/dev/null; then
11601 lt_cv_prog_compiler__b=yes
11604 lt_cv_prog_compiler__b=yes
11608 LDFLAGS="$save_LDFLAGS"
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11612 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11614 if test x"$lt_cv_prog_compiler__b" = xyes; then
11615 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11617 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11623 if test "$with_gnu_ld" = no; then
11624 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11625 hardcode_libdir_separator=:
11630 hardcode_shlibpath_var=no
11633 hardcode_direct=yes
11634 hardcode_direct_absolute=yes
11635 export_dynamic_flag_spec='${wl}-E'
11637 # hardcode_minus_L: Not really in the search PATH,
11638 # but as the default location of the library.
11639 hardcode_minus_L=yes
11645 irix5* | irix6* | nonstopux*)
11646 if test "$GCC" = yes; then
11647 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'
11648 # Try to use the -exported_symbol ld option, if it does not
11649 # work, assume that -exports_file does not work either and
11650 # implicitly export all symbols.
11651 # This should be the same for all languages, so no per-tag cache variable.
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11653 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11654 if ${lt_cv_irix_exported_symbol+:} false; then :
11655 $as_echo_n "(cached) " >&6
11657 save_LDFLAGS="$LDFLAGS"
11658 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11660 /* end confdefs.h. */
11661 int foo (void) { return 0; }
11663 if ac_fn_c_try_link "$LINENO"; then :
11664 lt_cv_irix_exported_symbol=yes
11666 lt_cv_irix_exported_symbol=no
11668 rm -f core conftest.err conftest.$ac_objext \
11669 conftest$ac_exeext conftest.$ac_ext
11670 LDFLAGS="$save_LDFLAGS"
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11673 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11674 if test "$lt_cv_irix_exported_symbol" = yes; then
11675 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'
11678 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'
11679 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'
11681 archive_cmds_need_lc='no'
11682 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11683 hardcode_libdir_separator=:
11685 link_all_deplibs=yes
11688 netbsd* | netbsdelf*-gnu)
11689 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11690 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11692 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11694 hardcode_libdir_flag_spec='-R$libdir'
11695 hardcode_direct=yes
11696 hardcode_shlibpath_var=no
11700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11701 hardcode_direct=yes
11702 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11703 hardcode_libdir_separator=:
11704 hardcode_shlibpath_var=no
11711 if test -f /usr/libexec/ld.so; then
11712 hardcode_direct=yes
11713 hardcode_shlibpath_var=no
11714 hardcode_direct_absolute=yes
11715 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11716 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11717 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11718 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11719 export_dynamic_flag_spec='${wl}-E'
11722 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11724 hardcode_libdir_flag_spec='-R$libdir'
11727 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11728 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11738 hardcode_libdir_flag_spec='-L$libdir'
11739 hardcode_minus_L=yes
11740 allow_undefined_flag=unsupported
11741 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'
11742 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11746 if test "$GCC" = yes; then
11747 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11748 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'
11750 allow_undefined_flag=' -expect_unresolved \*'
11751 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'
11753 archive_cmds_need_lc='no'
11754 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11755 hardcode_libdir_separator=:
11758 osf4* | osf5*) # as osf3* with the addition of -msym flag
11759 if test "$GCC" = yes; then
11760 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11761 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'
11762 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11764 allow_undefined_flag=' -expect_unresolved \*'
11765 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'
11766 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~
11767 $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'
11769 # Both c and cxx compiler support -rpath directly
11770 hardcode_libdir_flag_spec='-rpath $libdir'
11772 archive_cmds_need_lc='no'
11773 hardcode_libdir_separator=:
11777 no_undefined_flag=' -z defs'
11778 if test "$GCC" = yes; then
11780 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11781 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11782 $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'
11784 case `$CC -V 2>&1` in
11787 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11788 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11789 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11793 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11794 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11795 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11799 hardcode_libdir_flag_spec='-R$libdir'
11800 hardcode_shlibpath_var=no
11802 solaris2.[0-5] | solaris2.[0-5].*) ;;
11804 # The compiler driver will combine and reorder linker options,
11805 # but understands `-z linker_flag'. GCC discards it without `$wl',
11806 # but is careful enough not to reorder.
11807 # Supported since Solaris 2.6 (maybe 2.5.1?)
11808 if test "$GCC" = yes; then
11809 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11811 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11815 link_all_deplibs=yes
11819 if test "x$host_vendor" = xsequent; then
11820 # Use $CC to link under sequent, because it throws in some extra .o
11821 # files that make .init and .fini sections work.
11822 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11824 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11826 hardcode_libdir_flag_spec='-L$libdir'
11827 hardcode_direct=yes
11828 hardcode_minus_L=yes
11829 hardcode_shlibpath_var=no
11833 case $host_vendor in
11835 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11836 hardcode_direct=yes # is this really true???
11839 ## LD is ld it makes a PLAMLIB
11840 ## CC just makes a GrossModule.
11841 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11842 reload_cmds='$CC -r -o $output$reload_objs'
11846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11847 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11850 runpath_var='LD_RUN_PATH'
11851 hardcode_shlibpath_var=no
11855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11856 hardcode_shlibpath_var=no
11857 export_dynamic_flag_spec='-Bexport'
11861 if test -d /usr/nec; then
11862 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11863 hardcode_shlibpath_var=no
11864 runpath_var=LD_RUN_PATH
11865 hardcode_runpath_var=yes
11870 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11871 no_undefined_flag='${wl}-z,text'
11872 archive_cmds_need_lc=no
11873 hardcode_shlibpath_var=no
11874 runpath_var='LD_RUN_PATH'
11876 if test "$GCC" = yes; then
11877 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11878 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11880 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11881 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11885 sysv5* | sco3.2v5* | sco5v6*)
11886 # Note: We can NOT use -z defs as we might desire, because we do not
11887 # link with -lc, and that would cause any symbols used from libc to
11888 # always be unresolved, which means just about no library would
11889 # ever link correctly. If we're not using GNU ld we use -z text
11890 # though, which does catch some bad symbols but isn't as heavy-handed
11892 no_undefined_flag='${wl}-z,text'
11893 allow_undefined_flag='${wl}-z,nodefs'
11894 archive_cmds_need_lc=no
11895 hardcode_shlibpath_var=no
11896 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11897 hardcode_libdir_separator=':'
11898 link_all_deplibs=yes
11899 export_dynamic_flag_spec='${wl}-Bexport'
11900 runpath_var='LD_RUN_PATH'
11902 if test "$GCC" = yes; then
11903 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11904 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11906 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11907 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11913 hardcode_libdir_flag_spec='-L$libdir'
11914 hardcode_shlibpath_var=no
11922 if test x$host_vendor = xsni; then
11924 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11925 export_dynamic_flag_spec='${wl}-Blargedynsym'
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11932 $as_echo "$ld_shlibs" >&6; }
11933 test "$ld_shlibs" = no && can_build_shared=no
11935 with_gnu_ld=$with_gnu_ld
11952 # Do we need to explicitly link libc?
11954 case "x$archive_cmds_need_lc" in
11956 # Assume -lc should be added
11957 archive_cmds_need_lc=yes
11959 if test "$enable_shared" = yes && test "$GCC" = yes; then
11960 case $archive_cmds in
11962 # FIXME: we may have to deal with multi-command sequences.
11965 # Test whether the compiler implicitly links with -lc since on some
11966 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11967 # to ld, don't add -lc before -lgcc.
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11969 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11970 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11971 $as_echo_n "(cached) " >&6
11974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11977 (eval $ac_compile) 2>&5
11979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11980 test $ac_status = 0; } 2>conftest.err; then
11983 libobjs=conftest.$ac_objext
11985 wl=$lt_prog_compiler_wl
11986 pic_flag=$lt_prog_compiler_pic
11992 lt_save_allow_undefined_flag=$allow_undefined_flag
11993 allow_undefined_flag=
11994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11995 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11998 test $ac_status = 0; }
12000 lt_cv_archive_cmds_need_lc=no
12002 lt_cv_archive_cmds_need_lc=yes
12004 allow_undefined_flag=$lt_save_allow_undefined_flag
12006 cat conftest.err 1>&5
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12012 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12013 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12172 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12174 if test "$GCC" = yes; then
12176 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12177 *) lt_awk_arg="/^libraries:/" ;;
12180 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12181 *) lt_sed_strip_eq="s,=/,/,g" ;;
12183 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12184 case $lt_search_path_spec in
12186 # if the path contains ";" then we assume it to be the separator
12187 # otherwise default to the standard path separator (i.e. ":") - it is
12188 # assumed that no part of a normal pathname contains ";" but that should
12189 # okay in the real world where ";" in dirpaths is itself problematic.
12190 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12193 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12196 # Ok, now we have the path, separated by spaces, we can step through it
12197 # and add multilib dir if necessary.
12198 lt_tmp_lt_search_path_spec=
12199 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12200 for lt_sys_path in $lt_search_path_spec; do
12201 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12202 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12204 test -d "$lt_sys_path" && \
12205 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12208 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12209 BEGIN {RS=" "; FS="/|\n";} {
12212 for (lt_i = NF; lt_i > 0; lt_i--) {
12213 if ($lt_i != "" && $lt_i != ".") {
12214 if ($lt_i == "..") {
12217 if (lt_count == 0) {
12218 lt_foo="/" $lt_i lt_foo;
12225 if (lt_foo != "") { lt_freq[lt_foo]++; }
12226 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12228 # AWK program above erroneously prepends '/' to C:/dos/paths
12231 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12232 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12234 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12236 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12238 library_names_spec=
12239 libname_spec='lib$name'
12243 postuninstall_cmds=
12247 shlibpath_overrides_runpath=unknown
12249 dynamic_linker="$host_os ld.so"
12250 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12251 need_lib_prefix=unknown
12252 hardcode_into_libs=no
12254 # when you set need_version to no, make sure it does not cause -set_version
12255 # flags to be left without arguments
12256 need_version=unknown
12260 version_type=linux # correct to gnu/linux during the next big refactor
12261 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12262 shlibpath_var=LIBPATH
12264 # AIX 3 has no versioning support, so we append a major version to the name.
12265 soname_spec='${libname}${release}${shared_ext}$major'
12269 version_type=linux # correct to gnu/linux during the next big refactor
12272 hardcode_into_libs=yes
12273 if test "$host_cpu" = ia64; then
12274 # AIX 5 supports IA64
12275 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12276 shlibpath_var=LD_LIBRARY_PATH
12278 # With GCC up to 2.95.x, collect2 would create an import file
12279 # for dependence libraries. The import file would start with
12280 # the line `#! .'. This would cause the generated library to
12281 # depend on `.', always an invalid library. This was fixed in
12282 # development snapshots of GCC prior to 3.0.
12284 aix4 | aix4.[01] | aix4.[01].*)
12285 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12287 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12290 can_build_shared=no
12294 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12295 # soname into executable. Probably we can add versioning support to
12296 # collect2, so additional links can be useful in future.
12297 if test "$aix_use_runtimelinking" = yes; then
12298 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12299 # instead of lib<name>.a to let people know that these are not
12300 # typical AIX shared libraries.
12301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12303 # We preserve .a as extension for shared libraries through AIX4.2
12304 # and later when we are not doing run time linking.
12305 library_names_spec='${libname}${release}.a $libname.a'
12306 soname_spec='${libname}${release}${shared_ext}$major'
12308 shlibpath_var=LIBPATH
12315 # Since July 2007 AmigaOS4 officially supports .so libraries.
12316 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12320 library_names_spec='$libname.ixlibrary $libname.a'
12321 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12322 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'
12328 library_names_spec='${libname}${shared_ext}'
12329 dynamic_linker="$host_os ld.so"
12330 shlibpath_var=LIBRARY_PATH
12334 version_type=linux # correct to gnu/linux during the next big refactor
12336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12337 soname_spec='${libname}${release}${shared_ext}$major'
12338 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12339 shlibpath_var=LD_LIBRARY_PATH
12340 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12341 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12342 # the default ld.so.conf also contains /usr/contrib/lib and
12343 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12344 # libtool to hard-code these into programs
12347 cygwin* | mingw* | pw32* | cegcc*)
12348 version_type=windows
12353 case $GCC,$cc_basename in
12356 library_names_spec='$libname.dll.a'
12357 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12358 postinstall_cmds='base_file=`basename \${file}`~
12359 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12360 dldir=$destdir/`dirname \$dlpath`~
12361 test -d \$dldir || mkdir -p \$dldir~
12362 $install_prog $dir/$dlname \$dldir/$dlname~
12363 chmod a+x \$dldir/$dlname~
12364 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12365 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12367 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12368 dlpath=$dir/\$dldll~
12370 shlibpath_overrides_runpath=yes
12374 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12375 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12377 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12380 # MinGW DLLs use traditional 'lib' prefix
12381 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12384 # pw32 DLLs use 'pw' prefix rather than 'lib'
12385 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12388 dynamic_linker='Win32 ld.exe'
12393 libname_spec='$name'
12394 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12395 library_names_spec='${libname}.dll.lib'
12399 sys_lib_search_path_spec=
12402 for lt_path in $LIB
12405 # Let DOS variable expansion print the short 8.3 style file name.
12406 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12407 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12410 # Convert to MSYS style.
12411 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12414 # Convert to unix form, then to dos form, then back to unix form
12415 # but this time dos style (no spaces!) so that the unix form looks
12416 # like /cygdrive/c/PROGRA~1:/cygdr...
12417 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12418 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12419 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12422 sys_lib_search_path_spec="$LIB"
12423 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12424 # It is most probably a Windows format PATH.
12425 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12427 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12429 # FIXME: find the short name or the path components, as spaces are
12430 # common. (e.g. "Program Files" -> "PROGRA~1")
12434 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12435 postinstall_cmds='base_file=`basename \${file}`~
12436 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12437 dldir=$destdir/`dirname \$dlpath`~
12438 test -d \$dldir || mkdir -p \$dldir~
12439 $install_prog $dir/$dlname \$dldir/$dlname'
12440 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12441 dlpath=$dir/\$dldll~
12443 shlibpath_overrides_runpath=yes
12444 dynamic_linker='Win32 link.exe'
12448 # Assume MSVC wrapper
12449 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12450 dynamic_linker='Win32 ld.exe'
12453 # FIXME: first we should search . and the directory the executable is in
12457 darwin* | rhapsody*)
12458 dynamic_linker="$host_os dyld"
12459 version_type=darwin
12462 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12463 soname_spec='${libname}${release}${major}$shared_ext'
12464 shlibpath_overrides_runpath=yes
12465 shlibpath_var=DYLD_LIBRARY_PATH
12466 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12468 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12469 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12473 version_type=linux # correct to gnu/linux during the next big refactor
12476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12477 soname_spec='${libname}${release}${shared_ext}$major'
12478 shlibpath_var=LD_LIBRARY_PATH
12481 freebsd* | dragonfly*)
12482 # DragonFly does not have aout. When/if they implement a new
12483 # versioning mechanism, adjust this.
12484 if test -x /usr/bin/objformat; then
12485 objformat=`/usr/bin/objformat`
12488 freebsd[23].*) objformat=aout ;;
12489 *) objformat=elf ;;
12492 version_type=freebsd-$objformat
12493 case $version_type in
12495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12500 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12504 shlibpath_var=LD_LIBRARY_PATH
12507 shlibpath_overrides_runpath=yes
12509 freebsd3.[01]* | freebsdelf3.[01]*)
12510 shlibpath_overrides_runpath=yes
12511 hardcode_into_libs=yes
12513 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12514 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12515 shlibpath_overrides_runpath=no
12516 hardcode_into_libs=yes
12518 *) # from 4.6 on, and DragonFly
12519 shlibpath_overrides_runpath=yes
12520 hardcode_into_libs=yes
12526 version_type=linux # correct to gnu/linux during the next big refactor
12529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12530 soname_spec='${libname}${release}${shared_ext}$major'
12531 shlibpath_var=LD_LIBRARY_PATH
12532 shlibpath_overrides_runpath=no
12533 hardcode_into_libs=yes
12537 version_type=linux # correct to gnu/linux during the next big refactor
12540 dynamic_linker="$host_os runtime_loader"
12541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12542 soname_spec='${libname}${release}${shared_ext}$major'
12543 shlibpath_var=LIBRARY_PATH
12544 shlibpath_overrides_runpath=yes
12545 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12546 hardcode_into_libs=yes
12549 hpux9* | hpux10* | hpux11*)
12550 # Give a soname corresponding to the major version so that dld.sl refuses to
12551 # link against other versions.
12558 hardcode_into_libs=yes
12559 dynamic_linker="$host_os dld.so"
12560 shlibpath_var=LD_LIBRARY_PATH
12561 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12563 soname_spec='${libname}${release}${shared_ext}$major'
12564 if test "X$HPUX_IA64_MODE" = X32; then
12565 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12567 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12569 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12573 hardcode_into_libs=yes
12574 dynamic_linker="$host_os dld.sl"
12575 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12576 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12578 soname_spec='${libname}${release}${shared_ext}$major'
12579 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12580 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12584 dynamic_linker="$host_os dld.sl"
12585 shlibpath_var=SHLIB_PATH
12586 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12588 soname_spec='${libname}${release}${shared_ext}$major'
12591 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12592 postinstall_cmds='chmod 555 $lib'
12593 # or fails outright, so override atomically:
12594 install_override_mode=555
12598 version_type=linux # correct to gnu/linux during the next big refactor
12601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12602 soname_spec='${libname}${release}${shared_ext}$major'
12603 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12604 shlibpath_var=LD_LIBRARY_PATH
12605 shlibpath_overrides_runpath=no
12606 hardcode_into_libs=yes
12609 irix5* | irix6* | nonstopux*)
12611 nonstopux*) version_type=nonstopux ;;
12613 if test "$lt_cv_prog_gnu_ld" = yes; then
12614 version_type=linux # correct to gnu/linux during the next big refactor
12621 soname_spec='${libname}${release}${shared_ext}$major'
12622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12624 irix5* | nonstopux*)
12625 libsuff= shlibsuff=
12628 case $LD in # libtool.m4 will add one of these switches to LD
12629 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12630 libsuff= shlibsuff= libmagic=32-bit;;
12631 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12632 libsuff=32 shlibsuff=N32 libmagic=N32;;
12633 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12634 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12635 *) libsuff= shlibsuff= libmagic=never-match;;
12639 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12640 shlibpath_overrides_runpath=no
12641 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12642 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12643 hardcode_into_libs=yes
12646 # No shared lib support for Linux oldld, aout, or coff.
12647 linux*oldld* | linux*aout* | linux*coff*)
12651 # This must be glibc/ELF.
12652 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12653 version_type=linux # correct to gnu/linux during the next big refactor
12656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12657 soname_spec='${libname}${release}${shared_ext}$major'
12658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12659 shlibpath_var=LD_LIBRARY_PATH
12660 shlibpath_overrides_runpath=no
12662 # Some binutils ld are patched to set DT_RUNPATH
12663 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12664 $as_echo_n "(cached) " >&6
12666 lt_cv_shlibpath_overrides_runpath=no
12667 save_LDFLAGS=$LDFLAGS
12668 save_libdir=$libdir
12669 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12670 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12672 /* end confdefs.h. */
12682 if ac_fn_c_try_link "$LINENO"; then :
12683 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12684 lt_cv_shlibpath_overrides_runpath=yes
12687 rm -f core conftest.err conftest.$ac_objext \
12688 conftest$ac_exeext conftest.$ac_ext
12689 LDFLAGS=$save_LDFLAGS
12690 libdir=$save_libdir
12694 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12696 # This implies no fast_install, which is unacceptable.
12697 # Some rework will be needed to allow for fast_install
12698 # before this can be enabled.
12699 hardcode_into_libs=yes
12701 # Append ld.so.conf contents to the search path
12702 if test -f /etc/ld.so.conf; then
12703 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' ' '`
12704 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12707 # We used to test for /lib/ld.so.1 and disable shared libraries on
12708 # powerpc, because MkLinux only supported shared libraries with the
12709 # GNU dynamic linker. Since this was broken with cross compilers,
12710 # most powerpc-linux boxes support dynamic linking these days and
12711 # people can always --disable-shared, the test was removed, and we
12712 # assume the GNU/Linux dynamic linker is in use.
12713 dynamic_linker='GNU/Linux ld.so'
12720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12721 soname_spec='${libname}${release}${shared_ext}$major'
12722 shlibpath_var=LD_LIBRARY_PATH
12723 shlibpath_overrides_runpath=no
12724 hardcode_into_libs=yes
12725 dynamic_linker='NetBSD ld.elf_so'
12732 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12735 dynamic_linker='NetBSD (a.out) ld.so'
12737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12738 soname_spec='${libname}${release}${shared_ext}$major'
12739 dynamic_linker='NetBSD ld.elf_so'
12741 shlibpath_var=LD_LIBRARY_PATH
12742 shlibpath_overrides_runpath=yes
12743 hardcode_into_libs=yes
12747 version_type=linux # correct to gnu/linux during the next big refactor
12748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12749 shlibpath_var=LD_LIBRARY_PATH
12750 shlibpath_overrides_runpath=yes
12757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12758 soname_spec='${libname}${release}${shared_ext}$major'
12759 shlibpath_var=LD_LIBRARY_PATH
12760 shlibpath_overrides_runpath=no
12761 hardcode_into_libs=yes
12762 dynamic_linker='ldqnx.so'
12767 sys_lib_dlsearch_path_spec="/usr/lib"
12769 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12771 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12772 *) need_version=no ;;
12774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12776 shlibpath_var=LD_LIBRARY_PATH
12777 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12779 openbsd2.[89] | openbsd2.[89].*)
12780 shlibpath_overrides_runpath=no
12783 shlibpath_overrides_runpath=yes
12787 shlibpath_overrides_runpath=yes
12792 libname_spec='$name'
12795 library_names_spec='$libname${shared_ext} $libname.a'
12796 dynamic_linker='OS/2 ld.exe'
12797 shlibpath_var=LIBPATH
12800 osf3* | osf4* | osf5*)
12804 soname_spec='${libname}${release}${shared_ext}$major'
12805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12806 shlibpath_var=LD_LIBRARY_PATH
12807 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12808 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12816 version_type=linux # correct to gnu/linux during the next big refactor
12819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12820 soname_spec='${libname}${release}${shared_ext}$major'
12821 shlibpath_var=LD_LIBRARY_PATH
12822 shlibpath_overrides_runpath=yes
12823 hardcode_into_libs=yes
12824 # ldd complains unless libraries are executable
12825 postinstall_cmds='chmod +x $lib'
12830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12831 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12832 shlibpath_var=LD_LIBRARY_PATH
12833 shlibpath_overrides_runpath=yes
12834 if test "$with_gnu_ld" = yes; then
12841 version_type=linux # correct to gnu/linux during the next big refactor
12842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12843 soname_spec='${libname}${release}${shared_ext}$major'
12844 shlibpath_var=LD_LIBRARY_PATH
12845 case $host_vendor in
12847 shlibpath_overrides_runpath=no
12849 runpath_var=LD_RUN_PATH
12857 shlibpath_overrides_runpath=no
12858 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12864 if test -d /usr/nec ;then
12865 version_type=linux # correct to gnu/linux during the next big refactor
12866 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12867 soname_spec='$libname${shared_ext}.$major'
12868 shlibpath_var=LD_LIBRARY_PATH
12872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12873 version_type=freebsd-elf
12876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12877 soname_spec='${libname}${release}${shared_ext}$major'
12878 shlibpath_var=LD_LIBRARY_PATH
12879 shlibpath_overrides_runpath=yes
12880 hardcode_into_libs=yes
12881 if test "$with_gnu_ld" = yes; then
12882 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12884 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12887 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12891 sys_lib_dlsearch_path_spec='/usr/lib'
12895 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12896 version_type=linux # correct to gnu/linux during the next big refactor
12899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12900 shlibpath_var=LD_LIBRARY_PATH
12901 shlibpath_overrides_runpath=no
12902 hardcode_into_libs=yes
12906 version_type=linux # correct to gnu/linux during the next big refactor
12907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12908 soname_spec='${libname}${release}${shared_ext}$major'
12909 shlibpath_var=LD_LIBRARY_PATH
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12917 $as_echo "$dynamic_linker" >&6; }
12918 test "$dynamic_linker" = no && can_build_shared=no
12920 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12921 if test "$GCC" = yes; then
12922 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12925 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12926 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12928 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12929 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13024 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13026 if test -n "$hardcode_libdir_flag_spec" ||
13027 test -n "$runpath_var" ||
13028 test "X$hardcode_automatic" = "Xyes" ; then
13030 # We can hardcode non-existent directories.
13031 if test "$hardcode_direct" != no &&
13032 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13033 # have to relink, otherwise we might link with an installed library
13034 # when we should be linking with a yet-to-be-installed one
13035 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13036 test "$hardcode_minus_L" != no; then
13037 # Linking always hardcodes the temporary library directory.
13038 hardcode_action=relink
13040 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13041 hardcode_action=immediate
13044 # We cannot hardcode anything, or else we can only hardcode existing
13046 hardcode_action=unsupported
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13049 $as_echo "$hardcode_action" >&6; }
13051 if test "$hardcode_action" = relink ||
13052 test "$inherit_rpath" = yes; then
13053 # Fast installation is not supported
13054 enable_fast_install=no
13055 elif test "$shlibpath_overrides_runpath" = yes ||
13056 test "$enable_shared" = no; then
13057 # Fast installation is not necessary
13058 enable_fast_install=needless
13066 if test "x$enable_dlopen" != xyes; then
13067 enable_dlopen=unknown
13068 enable_dlopen_self=unknown
13069 enable_dlopen_self_static=unknown
13076 lt_cv_dlopen="load_add_on"
13078 lt_cv_dlopen_self=yes
13081 mingw* | pw32* | cegcc*)
13082 lt_cv_dlopen="LoadLibrary"
13087 lt_cv_dlopen="dlopen"
13092 # if libdl is installed we need to link against it
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13094 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13095 if ${ac_cv_lib_dl_dlopen+:} false; then :
13096 $as_echo_n "(cached) " >&6
13098 ac_check_lib_save_LIBS=$LIBS
13100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13101 /* end confdefs.h. */
13103 /* Override any GCC internal prototype to avoid an error.
13104 Use char because int might match the return type of a GCC
13105 builtin and then its argument prototype would still apply. */
13118 if ac_fn_c_try_link "$LINENO"; then :
13119 ac_cv_lib_dl_dlopen=yes
13121 ac_cv_lib_dl_dlopen=no
13123 rm -f core conftest.err conftest.$ac_objext \
13124 conftest$ac_exeext conftest.$ac_ext
13125 LIBS=$ac_check_lib_save_LIBS
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13128 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13129 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13130 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13133 lt_cv_dlopen="dyld"
13135 lt_cv_dlopen_self=yes
13142 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13143 if test "x$ac_cv_func_shl_load" = xyes; then :
13144 lt_cv_dlopen="shl_load"
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13147 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13148 if ${ac_cv_lib_dld_shl_load+:} false; then :
13149 $as_echo_n "(cached) " >&6
13151 ac_check_lib_save_LIBS=$LIBS
13153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13154 /* end confdefs.h. */
13156 /* Override any GCC internal prototype to avoid an error.
13157 Use char because int might match the return type of a GCC
13158 builtin and then its argument prototype would still apply. */
13166 return shl_load ();
13171 if ac_fn_c_try_link "$LINENO"; then :
13172 ac_cv_lib_dld_shl_load=yes
13174 ac_cv_lib_dld_shl_load=no
13176 rm -f core conftest.err conftest.$ac_objext \
13177 conftest$ac_exeext conftest.$ac_ext
13178 LIBS=$ac_check_lib_save_LIBS
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13181 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13182 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13183 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13185 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13186 if test "x$ac_cv_func_dlopen" = xyes; then :
13187 lt_cv_dlopen="dlopen"
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13190 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13191 if ${ac_cv_lib_dl_dlopen+:} false; then :
13192 $as_echo_n "(cached) " >&6
13194 ac_check_lib_save_LIBS=$LIBS
13196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13197 /* end confdefs.h. */
13199 /* Override any GCC internal prototype to avoid an error.
13200 Use char because int might match the return type of a GCC
13201 builtin and then its argument prototype would still apply. */
13214 if ac_fn_c_try_link "$LINENO"; then :
13215 ac_cv_lib_dl_dlopen=yes
13217 ac_cv_lib_dl_dlopen=no
13219 rm -f core conftest.err conftest.$ac_objext \
13220 conftest$ac_exeext conftest.$ac_ext
13221 LIBS=$ac_check_lib_save_LIBS
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13224 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13225 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13226 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13229 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13230 if ${ac_cv_lib_svld_dlopen+:} false; then :
13231 $as_echo_n "(cached) " >&6
13233 ac_check_lib_save_LIBS=$LIBS
13234 LIBS="-lsvld $LIBS"
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h. */
13238 /* Override any GCC internal prototype to avoid an error.
13239 Use char because int might match the return type of a GCC
13240 builtin and then its argument prototype would still apply. */
13253 if ac_fn_c_try_link "$LINENO"; then :
13254 ac_cv_lib_svld_dlopen=yes
13256 ac_cv_lib_svld_dlopen=no
13258 rm -f core conftest.err conftest.$ac_objext \
13259 conftest$ac_exeext conftest.$ac_ext
13260 LIBS=$ac_check_lib_save_LIBS
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13263 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13264 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13265 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13268 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13269 if ${ac_cv_lib_dld_dld_link+:} false; then :
13270 $as_echo_n "(cached) " >&6
13272 ac_check_lib_save_LIBS=$LIBS
13274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275 /* end confdefs.h. */
13277 /* Override any GCC internal prototype to avoid an error.
13278 Use char because int might match the return type of a GCC
13279 builtin and then its argument prototype would still apply. */
13287 return dld_link ();
13292 if ac_fn_c_try_link "$LINENO"; then :
13293 ac_cv_lib_dld_dld_link=yes
13295 ac_cv_lib_dld_dld_link=no
13297 rm -f core conftest.err conftest.$ac_objext \
13298 conftest$ac_exeext conftest.$ac_ext
13299 LIBS=$ac_check_lib_save_LIBS
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13302 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13303 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13304 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13325 if test "x$lt_cv_dlopen" != xno; then
13331 case $lt_cv_dlopen in
13333 save_CPPFLAGS="$CPPFLAGS"
13334 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13336 save_LDFLAGS="$LDFLAGS"
13337 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13340 LIBS="$lt_cv_dlopen_libs $LIBS"
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13343 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13344 if ${lt_cv_dlopen_self+:} false; then :
13345 $as_echo_n "(cached) " >&6
13347 if test "$cross_compiling" = yes; then :
13348 lt_cv_dlopen_self=cross
13350 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13351 lt_status=$lt_dlunknown
13352 cat > conftest.$ac_ext <<_LT_EOF
13353 #line $LINENO "configure"
13354 #include "confdefs.h"
13363 # define LT_DLGLOBAL RTLD_GLOBAL
13366 # define LT_DLGLOBAL DL_GLOBAL
13368 # define LT_DLGLOBAL 0
13372 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13373 find out it does not work in some platform. */
13374 #ifndef LT_DLLAZY_OR_NOW
13376 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13379 # define LT_DLLAZY_OR_NOW DL_LAZY
13382 # define LT_DLLAZY_OR_NOW RTLD_NOW
13385 # define LT_DLLAZY_OR_NOW DL_NOW
13387 # define LT_DLLAZY_OR_NOW 0
13394 /* When -fvisbility=hidden is used, assume the code has been annotated
13395 correspondingly for the symbols needed. */
13396 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13397 int fnord () __attribute__((visibility("default")));
13400 int fnord () { return 42; }
13403 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13404 int status = $lt_dlunknown;
13408 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13411 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13412 else puts (dlerror ());
13414 /* dlclose (self); */
13422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13423 (eval $ac_link) 2>&5
13425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13426 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13427 (./conftest; exit; ) >&5 2>/dev/null
13429 case x$lt_status in
13430 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13431 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13432 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13435 # compilation failed
13436 lt_cv_dlopen_self=no
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13444 $as_echo "$lt_cv_dlopen_self" >&6; }
13446 if test "x$lt_cv_dlopen_self" = xyes; then
13447 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13449 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13450 if ${lt_cv_dlopen_self_static+:} false; then :
13451 $as_echo_n "(cached) " >&6
13453 if test "$cross_compiling" = yes; then :
13454 lt_cv_dlopen_self_static=cross
13456 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13457 lt_status=$lt_dlunknown
13458 cat > conftest.$ac_ext <<_LT_EOF
13459 #line $LINENO "configure"
13460 #include "confdefs.h"
13469 # define LT_DLGLOBAL RTLD_GLOBAL
13472 # define LT_DLGLOBAL DL_GLOBAL
13474 # define LT_DLGLOBAL 0
13478 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13479 find out it does not work in some platform. */
13480 #ifndef LT_DLLAZY_OR_NOW
13482 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13485 # define LT_DLLAZY_OR_NOW DL_LAZY
13488 # define LT_DLLAZY_OR_NOW RTLD_NOW
13491 # define LT_DLLAZY_OR_NOW DL_NOW
13493 # define LT_DLLAZY_OR_NOW 0
13500 /* When -fvisbility=hidden is used, assume the code has been annotated
13501 correspondingly for the symbols needed. */
13502 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13503 int fnord () __attribute__((visibility("default")));
13506 int fnord () { return 42; }
13509 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13510 int status = $lt_dlunknown;
13514 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13517 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13518 else puts (dlerror ());
13520 /* dlclose (self); */
13528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13529 (eval $ac_link) 2>&5
13531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13532 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13533 (./conftest; exit; ) >&5 2>/dev/null
13535 case x$lt_status in
13536 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13537 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13538 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13541 # compilation failed
13542 lt_cv_dlopen_self_static=no
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13550 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13553 CPPFLAGS="$save_CPPFLAGS"
13554 LDFLAGS="$save_LDFLAGS"
13559 case $lt_cv_dlopen_self in
13560 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13561 *) enable_dlopen_self=unknown ;;
13564 case $lt_cv_dlopen_self_static in
13565 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13566 *) enable_dlopen_self_static=unknown ;;
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13589 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13590 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13591 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13592 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13594 $as_echo "yes" >&6; }
13596 # FIXME - insert some real tests, host_os isn't really good enough
13599 if test -n "$STRIP" ; then
13600 striplib="$STRIP -x"
13601 old_striplib="$STRIP -S"
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13603 $as_echo "yes" >&6; }
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13606 $as_echo "no" >&6; }
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13611 $as_echo "no" >&6; }
13627 # Report which library types will actually be built
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13629 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13631 $as_echo "$can_build_shared" >&6; }
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13634 $as_echo_n "checking whether to build shared libraries... " >&6; }
13635 test "$can_build_shared" = "no" && enable_shared=no
13637 # On AIX, shared libraries and static libraries use the same namespace, and
13638 # are all built from PIC.
13641 test "$enable_shared" = yes && enable_static=no
13642 if test -n "$RANLIB"; then
13643 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13644 postinstall_cmds='$RANLIB $lib'
13649 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13650 test "$enable_shared" = yes && enable_static=no
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13655 $as_echo "$enable_shared" >&6; }
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13658 $as_echo_n "checking whether to build static libraries... " >&6; }
13659 # Make sure either enable_shared or enable_static is yes.
13660 test "$enable_shared" = yes || enable_static=yes
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13662 $as_echo "$enable_static" >&6; }
13669 ac_cpp='$CPP $CPPFLAGS'
13670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13690 ac_config_commands="$ac_config_commands libtool"
13695 # Only expand once:
13700 if test "X$prefix" = "XNONE"; then
13701 acl_final_prefix="$ac_default_prefix"
13703 acl_final_prefix="$prefix"
13705 if test "X$exec_prefix" = "XNONE"; then
13706 acl_final_exec_prefix='${prefix}'
13708 acl_final_exec_prefix="$exec_prefix"
13710 acl_save_prefix="$prefix"
13711 prefix="$acl_final_prefix"
13712 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13713 prefix="$acl_save_prefix"
13716 # Check whether --with-gnu-ld was given.
13717 if test "${with_gnu_ld+set}" = set; then :
13718 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13723 # Prepare PATH_SEPARATOR.
13724 # The user is always right.
13725 if test "${PATH_SEPARATOR+set}" != set; then
13726 echo "#! /bin/sh" >conf$$.sh
13727 echo "exit 0" >>conf$$.sh
13729 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13737 if test "$GCC" = yes; then
13738 # Check if gcc -print-prog-name=ld gives a path.
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13740 $as_echo_n "checking for ld used by GCC... " >&6; }
13743 # gcc leaves a trailing carriage return which upsets mingw
13744 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13746 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13749 # Accept absolute paths.
13750 [\\/]* | [A-Za-z]:[\\/]*)
13751 re_direlt='/[^/][^/]*/\.\./'
13752 # Canonicalize the path of ld
13753 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13754 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13755 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13757 test -z "$LD" && LD="$ac_prog"
13760 # If it fails, then pretend we aren't using GCC.
13764 # If it is relative, then search for the first ld in PATH.
13765 with_gnu_ld=unknown
13768 elif test "$with_gnu_ld" = yes; then
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13770 $as_echo_n "checking for GNU ld... " >&6; }
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13773 $as_echo_n "checking for non-GNU ld... " >&6; }
13775 if ${acl_cv_path_LD+:} false; then :
13776 $as_echo_n "(cached) " >&6
13778 if test -z "$LD"; then
13779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13780 for ac_dir in $PATH; do
13781 test -z "$ac_dir" && ac_dir=.
13782 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13783 acl_cv_path_LD="$ac_dir/$ac_prog"
13784 # Check to see if the program is GNU ld. I'd rather use --version,
13785 # but apparently some GNU ld's only accept -v.
13786 # Break only if it was the GNU/non-GNU ld that we prefer.
13787 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13788 *GNU* | *'with BFD'*)
13789 test "$with_gnu_ld" != no && break ;;
13791 test "$with_gnu_ld" != yes && break ;;
13797 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13801 LD="$acl_cv_path_LD"
13802 if test -n "$LD"; then
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13804 $as_echo "$LD" >&6; }
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13807 $as_echo "no" >&6; }
13809 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13811 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13812 if ${acl_cv_prog_gnu_ld+:} false; then :
13813 $as_echo_n "(cached) " >&6
13815 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13816 case `$LD -v 2>&1 </dev/null` in
13817 *GNU* | *'with BFD'*)
13818 acl_cv_prog_gnu_ld=yes ;;
13820 acl_cv_prog_gnu_ld=no ;;
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13824 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13825 with_gnu_ld=$acl_cv_prog_gnu_ld
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13831 $as_echo_n "checking for shared library run path origin... " >&6; }
13832 if ${acl_cv_rpath+:} false; then :
13833 $as_echo_n "(cached) " >&6
13836 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13837 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13839 rm -f ./conftest.sh
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13844 $as_echo "$acl_cv_rpath" >&6; }
13846 acl_libext="$acl_cv_libext"
13847 acl_shlibext="$acl_cv_shlibext"
13848 acl_libname_spec="$acl_cv_libname_spec"
13849 acl_library_names_spec="$acl_cv_library_names_spec"
13850 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13851 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13852 acl_hardcode_direct="$acl_cv_hardcode_direct"
13853 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13854 # Check whether --enable-rpath was given.
13855 if test "${enable_rpath+set}" = set; then :
13856 enableval=$enable_rpath; :
13864 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13865 if test -n "$searchpath"; then
13866 acl_save_IFS="${IFS= }"; IFS=":"
13867 for searchdir in $searchpath; do
13868 if test -d "$searchdir"; then
13869 case "$searchdir" in
13870 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13871 *) searchdir=`cd "$searchdir" && pwd`
13872 case "$searchdir" in
13873 */lib64 ) acl_libdirstem=lib64 ;;
13878 IFS="$acl_save_IFS"
13882 # Library code modified: REVISION++
13883 # Interfaces changed/added/removed: CURRENT++ REVISION=0
13884 # Interfaces added: AGE++
13885 # Interfaces removed: AGE=0
13907 # Used when creating the Windows libgnutls-XX.def files.
13908 DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}`
13914 # Check whether --with-libgcrypt was given.
13915 if test "${with_libgcrypt+set}" = set; then :
13916 withval=$with_libgcrypt; libgcrypt=$withval
13921 if test "$libgcrypt" = "yes"; then
13922 cryptolib=libgcrypt
13924 $as_echo "#define HAVE_GCRYPT 1" >>confdefs.h
13938 acl_save_prefix="$prefix"
13939 prefix="$acl_final_prefix"
13940 acl_save_exec_prefix="$exec_prefix"
13941 exec_prefix="$acl_final_exec_prefix"
13943 eval additional_includedir=\"$includedir\"
13944 eval additional_libdir=\"$libdir\"
13946 exec_prefix="$acl_save_exec_prefix"
13947 prefix="$acl_save_prefix"
13950 # Check whether --with-libgcrypt-prefix was given.
13951 if test "${with_libgcrypt_prefix+set}" = set; then :
13952 withval=$with_libgcrypt_prefix;
13953 if test "X$withval" = "Xno"; then
13956 if test "X$withval" = "X"; then
13958 acl_save_prefix="$prefix"
13959 prefix="$acl_final_prefix"
13960 acl_save_exec_prefix="$exec_prefix"
13961 exec_prefix="$acl_final_exec_prefix"
13963 eval additional_includedir=\"$includedir\"
13964 eval additional_libdir=\"$libdir\"
13966 exec_prefix="$acl_save_exec_prefix"
13967 prefix="$acl_save_prefix"
13970 additional_includedir="$withval/include"
13971 additional_libdir="$withval/$acl_libdirstem"
13983 names_already_handled=
13984 names_next_round='gcrypt gpg-error'
13985 while test -n "$names_next_round"; do
13986 names_this_round="$names_next_round"
13988 for name in $names_this_round; do
13990 for n in $names_already_handled; do
13991 if test "$n" = "$name"; then
13992 already_handled=yes
13996 if test -z "$already_handled"; then
13997 names_already_handled="$names_already_handled $name"
13998 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13999 eval value=\"\$HAVE_LIB$uppername\"
14000 if test -n "$value"; then
14001 if test "$value" = yes; then
14002 eval value=\"\$LIB$uppername\"
14003 test -z "$value" || LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$value"
14004 eval value=\"\$LTLIB$uppername\"
14005 test -z "$value" || LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$value"
14014 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14015 if test -n "$acl_shlibext"; then
14016 shrext=".$acl_shlibext" # typically: shrext=.so
14020 if test $use_additional = yes; then
14021 dir="$additional_libdir"
14022 if test -n "$acl_shlibext"; then
14023 if test -f "$dir/$libname$shrext"; then
14025 found_so="$dir/$libname$shrext"
14027 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14028 ver=`(cd "$dir" && \
14029 for f in "$libname$shrext".*; do echo "$f"; done \
14030 | sed -e "s,^$libname$shrext\\\\.,," \
14031 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14032 | sed 1q ) 2>/dev/null`
14033 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14035 found_so="$dir/$libname$shrext.$ver"
14038 eval library_names=\"$acl_library_names_spec\"
14039 for f in $library_names; do
14040 if test -f "$dir/$f"; then
14049 if test "X$found_dir" = "X"; then
14050 if test -f "$dir/$libname.$acl_libext"; then
14052 found_a="$dir/$libname.$acl_libext"
14055 if test "X$found_dir" != "X"; then
14056 if test -f "$dir/$libname.la"; then
14057 found_la="$dir/$libname.la"
14061 if test "X$found_dir" = "X"; then
14062 for x in $LDFLAGS $LTLIBGCRYPT; do
14064 acl_save_prefix="$prefix"
14065 prefix="$acl_final_prefix"
14066 acl_save_exec_prefix="$exec_prefix"
14067 exec_prefix="$acl_final_exec_prefix"
14069 exec_prefix="$acl_save_exec_prefix"
14070 prefix="$acl_save_prefix"
14074 dir=`echo "X$x" | sed -e 's/^X-L//'`
14075 if test -n "$acl_shlibext"; then
14076 if test -f "$dir/$libname$shrext"; then
14078 found_so="$dir/$libname$shrext"
14080 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14081 ver=`(cd "$dir" && \
14082 for f in "$libname$shrext".*; do echo "$f"; done \
14083 | sed -e "s,^$libname$shrext\\\\.,," \
14084 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14085 | sed 1q ) 2>/dev/null`
14086 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14088 found_so="$dir/$libname$shrext.$ver"
14091 eval library_names=\"$acl_library_names_spec\"
14092 for f in $library_names; do
14093 if test -f "$dir/$f"; then
14102 if test "X$found_dir" = "X"; then
14103 if test -f "$dir/$libname.$acl_libext"; then
14105 found_a="$dir/$libname.$acl_libext"
14108 if test "X$found_dir" != "X"; then
14109 if test -f "$dir/$libname.la"; then
14110 found_la="$dir/$libname.la"
14115 if test "X$found_dir" != "X"; then
14120 if test "X$found_dir" != "X"; then
14121 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$found_dir -l$name"
14122 if test "X$found_so" != "X"; then
14123 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14124 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
14127 for x in $ltrpathdirs; do
14128 if test "X$x" = "X$found_dir"; then
14133 if test -z "$haveit"; then
14134 ltrpathdirs="$ltrpathdirs $found_dir"
14136 if test "$acl_hardcode_direct" = yes; then
14137 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
14139 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14140 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
14142 for x in $rpathdirs; do
14143 if test "X$x" = "X$found_dir"; then
14148 if test -z "$haveit"; then
14149 rpathdirs="$rpathdirs $found_dir"
14153 for x in $LDFLAGS $LIBGCRYPT; do
14155 acl_save_prefix="$prefix"
14156 prefix="$acl_final_prefix"
14157 acl_save_exec_prefix="$exec_prefix"
14158 exec_prefix="$acl_final_exec_prefix"
14160 exec_prefix="$acl_save_exec_prefix"
14161 prefix="$acl_save_prefix"
14163 if test "X$x" = "X-L$found_dir"; then
14168 if test -z "$haveit"; then
14169 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir"
14171 if test "$acl_hardcode_minus_L" != no; then
14172 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
14174 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name"
14180 if test "X$found_a" != "X"; then
14181 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_a"
14183 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir -l$name"
14186 additional_includedir=
14187 case "$found_dir" in
14188 */$acl_libdirstem | */$acl_libdirstem/)
14189 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14190 LIBGCRYPT_PREFIX="$basedir"
14191 additional_includedir="$basedir/include"
14194 if test "X$additional_includedir" != "X"; then
14195 if test "X$additional_includedir" != "X/usr/include"; then
14197 if test "X$additional_includedir" = "X/usr/local/include"; then
14198 if test -n "$GCC"; then
14200 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14204 if test -z "$haveit"; then
14205 for x in $CPPFLAGS $INCGCRYPT; do
14207 acl_save_prefix="$prefix"
14208 prefix="$acl_final_prefix"
14209 acl_save_exec_prefix="$exec_prefix"
14210 exec_prefix="$acl_final_exec_prefix"
14212 exec_prefix="$acl_save_exec_prefix"
14213 prefix="$acl_save_prefix"
14215 if test "X$x" = "X-I$additional_includedir"; then
14220 if test -z "$haveit"; then
14221 if test -d "$additional_includedir"; then
14222 INCGCRYPT="${INCGCRYPT}${INCGCRYPT:+ }-I$additional_includedir"
14228 if test -n "$found_la"; then
14229 save_libdir="$libdir"
14230 case "$found_la" in
14231 */* | *\\*) . "$found_la" ;;
14232 *) . "./$found_la" ;;
14234 libdir="$save_libdir"
14235 for dep in $dependency_libs; do
14238 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14239 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14241 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14242 if test -n "$GCC"; then
14244 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14248 if test -z "$haveit"; then
14250 for x in $LDFLAGS $LIBGCRYPT; do
14252 acl_save_prefix="$prefix"
14253 prefix="$acl_final_prefix"
14254 acl_save_exec_prefix="$exec_prefix"
14255 exec_prefix="$acl_final_exec_prefix"
14257 exec_prefix="$acl_save_exec_prefix"
14258 prefix="$acl_save_prefix"
14260 if test "X$x" = "X-L$additional_libdir"; then
14265 if test -z "$haveit"; then
14266 if test -d "$additional_libdir"; then
14267 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$additional_libdir"
14271 for x in $LDFLAGS $LTLIBGCRYPT; do
14273 acl_save_prefix="$prefix"
14274 prefix="$acl_final_prefix"
14275 acl_save_exec_prefix="$exec_prefix"
14276 exec_prefix="$acl_final_exec_prefix"
14278 exec_prefix="$acl_save_exec_prefix"
14279 prefix="$acl_save_prefix"
14281 if test "X$x" = "X-L$additional_libdir"; then
14286 if test -z "$haveit"; then
14287 if test -d "$additional_libdir"; then
14288 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$additional_libdir"
14295 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14296 if test "$enable_rpath" != no; then
14298 for x in $rpathdirs; do
14299 if test "X$x" = "X$dir"; then
14304 if test -z "$haveit"; then
14305 rpathdirs="$rpathdirs $dir"
14308 for x in $ltrpathdirs; do
14309 if test "X$x" = "X$dir"; then
14314 if test -z "$haveit"; then
14315 ltrpathdirs="$ltrpathdirs $dir"
14320 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14323 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14326 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$dep"
14327 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$dep"
14333 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name"
14334 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-l$name"
14340 if test "X$rpathdirs" != "X"; then
14341 if test -n "$acl_hardcode_libdir_separator"; then
14343 for found_dir in $rpathdirs; do
14344 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14346 acl_save_libdir="$libdir"
14348 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14349 libdir="$acl_save_libdir"
14350 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag"
14352 for found_dir in $rpathdirs; do
14353 acl_save_libdir="$libdir"
14354 libdir="$found_dir"
14355 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14356 libdir="$acl_save_libdir"
14357 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag"
14361 if test "X$ltrpathdirs" != "X"; then
14362 for found_dir in $ltrpathdirs; do
14363 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-R$found_dir"
14368 ac_save_CPPFLAGS="$CPPFLAGS"
14370 for element in $INCGCRYPT; do
14372 for x in $CPPFLAGS; do
14374 acl_save_prefix="$prefix"
14375 prefix="$acl_final_prefix"
14376 acl_save_exec_prefix="$exec_prefix"
14377 exec_prefix="$acl_final_exec_prefix"
14379 exec_prefix="$acl_save_exec_prefix"
14380 prefix="$acl_save_prefix"
14382 if test "X$x" = "X$element"; then
14387 if test -z "$haveit"; then
14388 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5
14394 $as_echo_n "checking for libgcrypt... " >&6; }
14395 if ${ac_cv_libgcrypt+:} false; then :
14396 $as_echo_n "(cached) " >&6
14399 ac_save_LIBS="$LIBS"
14400 LIBS="$LIBS $LIBGCRYPT"
14401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14402 /* end confdefs.h. */
14403 #include <gcrypt.h>
14407 enum gcry_cipher_algos i = GCRY_CIPHER_CAMELLIA128
14412 if ac_fn_c_try_link "$LINENO"; then :
14413 ac_cv_libgcrypt=yes
14417 rm -f core conftest.err conftest.$ac_objext \
14418 conftest$ac_exeext conftest.$ac_ext
14419 LIBS="$ac_save_LIBS"
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgcrypt" >&5
14423 $as_echo "$ac_cv_libgcrypt" >&6; }
14424 if test "$ac_cv_libgcrypt" = yes; then
14427 $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgcrypt" >&5
14430 $as_echo_n "checking how to link with libgcrypt... " >&6; }
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT" >&5
14432 $as_echo "$LIBGCRYPT" >&6; }
14435 CPPFLAGS="$ac_save_CPPFLAGS"
14447 if test "$ac_cv_libgcrypt" != yes; then
14450 *** Libgcrypt v1.4.0 or later was not found. You may want to get it from
14451 *** ftp://ftp.gnupg.org/gcrypt/libgcrypt/
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use nettle" >&5
14458 $as_echo_n "checking whether to use nettle... " >&6; }
14459 if test "$cryptolib" = "nettle";then
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14461 $as_echo "yes" >&6; }
14474 acl_save_prefix="$prefix"
14475 prefix="$acl_final_prefix"
14476 acl_save_exec_prefix="$exec_prefix"
14477 exec_prefix="$acl_final_exec_prefix"
14479 eval additional_includedir=\"$includedir\"
14480 eval additional_libdir=\"$libdir\"
14482 exec_prefix="$acl_save_exec_prefix"
14483 prefix="$acl_save_prefix"
14486 # Check whether --with-libnettle-prefix was given.
14487 if test "${with_libnettle_prefix+set}" = set; then :
14488 withval=$with_libnettle_prefix;
14489 if test "X$withval" = "Xno"; then
14492 if test "X$withval" = "X"; then
14494 acl_save_prefix="$prefix"
14495 prefix="$acl_final_prefix"
14496 acl_save_exec_prefix="$exec_prefix"
14497 exec_prefix="$acl_final_exec_prefix"
14499 eval additional_includedir=\"$includedir\"
14500 eval additional_libdir=\"$libdir\"
14502 exec_prefix="$acl_save_exec_prefix"
14503 prefix="$acl_save_prefix"
14506 additional_includedir="$withval/include"
14507 additional_libdir="$withval/$acl_libdirstem"
14519 names_already_handled=
14520 names_next_round='nettle '
14521 while test -n "$names_next_round"; do
14522 names_this_round="$names_next_round"
14524 for name in $names_this_round; do
14526 for n in $names_already_handled; do
14527 if test "$n" = "$name"; then
14528 already_handled=yes
14532 if test -z "$already_handled"; then
14533 names_already_handled="$names_already_handled $name"
14534 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14535 eval value=\"\$HAVE_LIB$uppername\"
14536 if test -n "$value"; then
14537 if test "$value" = yes; then
14538 eval value=\"\$LIB$uppername\"
14539 test -z "$value" || LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$value"
14540 eval value=\"\$LTLIB$uppername\"
14541 test -z "$value" || LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }$value"
14550 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14551 if test -n "$acl_shlibext"; then
14552 shrext=".$acl_shlibext" # typically: shrext=.so
14556 if test $use_additional = yes; then
14557 dir="$additional_libdir"
14558 if test -n "$acl_shlibext"; then
14559 if test -f "$dir/$libname$shrext"; then
14561 found_so="$dir/$libname$shrext"
14563 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14564 ver=`(cd "$dir" && \
14565 for f in "$libname$shrext".*; do echo "$f"; done \
14566 | sed -e "s,^$libname$shrext\\\\.,," \
14567 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14568 | sed 1q ) 2>/dev/null`
14569 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14571 found_so="$dir/$libname$shrext.$ver"
14574 eval library_names=\"$acl_library_names_spec\"
14575 for f in $library_names; do
14576 if test -f "$dir/$f"; then
14585 if test "X$found_dir" = "X"; then
14586 if test -f "$dir/$libname.$acl_libext"; then
14588 found_a="$dir/$libname.$acl_libext"
14591 if test "X$found_dir" != "X"; then
14592 if test -f "$dir/$libname.la"; then
14593 found_la="$dir/$libname.la"
14597 if test "X$found_dir" = "X"; then
14598 for x in $LDFLAGS $LTLIBNETTLE; do
14600 acl_save_prefix="$prefix"
14601 prefix="$acl_final_prefix"
14602 acl_save_exec_prefix="$exec_prefix"
14603 exec_prefix="$acl_final_exec_prefix"
14605 exec_prefix="$acl_save_exec_prefix"
14606 prefix="$acl_save_prefix"
14610 dir=`echo "X$x" | sed -e 's/^X-L//'`
14611 if test -n "$acl_shlibext"; then
14612 if test -f "$dir/$libname$shrext"; then
14614 found_so="$dir/$libname$shrext"
14616 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14617 ver=`(cd "$dir" && \
14618 for f in "$libname$shrext".*; do echo "$f"; done \
14619 | sed -e "s,^$libname$shrext\\\\.,," \
14620 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14621 | sed 1q ) 2>/dev/null`
14622 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14624 found_so="$dir/$libname$shrext.$ver"
14627 eval library_names=\"$acl_library_names_spec\"
14628 for f in $library_names; do
14629 if test -f "$dir/$f"; then
14638 if test "X$found_dir" = "X"; then
14639 if test -f "$dir/$libname.$acl_libext"; then
14641 found_a="$dir/$libname.$acl_libext"
14644 if test "X$found_dir" != "X"; then
14645 if test -f "$dir/$libname.la"; then
14646 found_la="$dir/$libname.la"
14651 if test "X$found_dir" != "X"; then
14656 if test "X$found_dir" != "X"; then
14657 LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-L$found_dir -l$name"
14658 if test "X$found_so" != "X"; then
14659 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14660 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
14663 for x in $ltrpathdirs; do
14664 if test "X$x" = "X$found_dir"; then
14669 if test -z "$haveit"; then
14670 ltrpathdirs="$ltrpathdirs $found_dir"
14672 if test "$acl_hardcode_direct" = yes; then
14673 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
14675 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14676 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
14678 for x in $rpathdirs; do
14679 if test "X$x" = "X$found_dir"; then
14684 if test -z "$haveit"; then
14685 rpathdirs="$rpathdirs $found_dir"
14689 for x in $LDFLAGS $LIBNETTLE; do
14691 acl_save_prefix="$prefix"
14692 prefix="$acl_final_prefix"
14693 acl_save_exec_prefix="$exec_prefix"
14694 exec_prefix="$acl_final_exec_prefix"
14696 exec_prefix="$acl_save_exec_prefix"
14697 prefix="$acl_save_prefix"
14699 if test "X$x" = "X-L$found_dir"; then
14704 if test -z "$haveit"; then
14705 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$found_dir"
14707 if test "$acl_hardcode_minus_L" != no; then
14708 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
14710 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-l$name"
14716 if test "X$found_a" != "X"; then
14717 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_a"
14719 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$found_dir -l$name"
14722 additional_includedir=
14723 case "$found_dir" in
14724 */$acl_libdirstem | */$acl_libdirstem/)
14725 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14726 LIBNETTLE_PREFIX="$basedir"
14727 additional_includedir="$basedir/include"
14730 if test "X$additional_includedir" != "X"; then
14731 if test "X$additional_includedir" != "X/usr/include"; then
14733 if test "X$additional_includedir" = "X/usr/local/include"; then
14734 if test -n "$GCC"; then
14736 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14740 if test -z "$haveit"; then
14741 for x in $CPPFLAGS $INCNETTLE; do
14743 acl_save_prefix="$prefix"
14744 prefix="$acl_final_prefix"
14745 acl_save_exec_prefix="$exec_prefix"
14746 exec_prefix="$acl_final_exec_prefix"
14748 exec_prefix="$acl_save_exec_prefix"
14749 prefix="$acl_save_prefix"
14751 if test "X$x" = "X-I$additional_includedir"; then
14756 if test -z "$haveit"; then
14757 if test -d "$additional_includedir"; then
14758 INCNETTLE="${INCNETTLE}${INCNETTLE:+ }-I$additional_includedir"
14764 if test -n "$found_la"; then
14765 save_libdir="$libdir"
14766 case "$found_la" in
14767 */* | *\\*) . "$found_la" ;;
14768 *) . "./$found_la" ;;
14770 libdir="$save_libdir"
14771 for dep in $dependency_libs; do
14774 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14775 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14777 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14778 if test -n "$GCC"; then
14780 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14784 if test -z "$haveit"; then
14786 for x in $LDFLAGS $LIBNETTLE; do
14788 acl_save_prefix="$prefix"
14789 prefix="$acl_final_prefix"
14790 acl_save_exec_prefix="$exec_prefix"
14791 exec_prefix="$acl_final_exec_prefix"
14793 exec_prefix="$acl_save_exec_prefix"
14794 prefix="$acl_save_prefix"
14796 if test "X$x" = "X-L$additional_libdir"; then
14801 if test -z "$haveit"; then
14802 if test -d "$additional_libdir"; then
14803 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$additional_libdir"
14807 for x in $LDFLAGS $LTLIBNETTLE; do
14809 acl_save_prefix="$prefix"
14810 prefix="$acl_final_prefix"
14811 acl_save_exec_prefix="$exec_prefix"
14812 exec_prefix="$acl_final_exec_prefix"
14814 exec_prefix="$acl_save_exec_prefix"
14815 prefix="$acl_save_prefix"
14817 if test "X$x" = "X-L$additional_libdir"; then
14822 if test -z "$haveit"; then
14823 if test -d "$additional_libdir"; then
14824 LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-L$additional_libdir"
14831 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14832 if test "$enable_rpath" != no; then
14834 for x in $rpathdirs; do
14835 if test "X$x" = "X$dir"; then
14840 if test -z "$haveit"; then
14841 rpathdirs="$rpathdirs $dir"
14844 for x in $ltrpathdirs; do
14845 if test "X$x" = "X$dir"; then
14850 if test -z "$haveit"; then
14851 ltrpathdirs="$ltrpathdirs $dir"
14856 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14859 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14862 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$dep"
14863 LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }$dep"
14869 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-l$name"
14870 LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-l$name"
14876 if test "X$rpathdirs" != "X"; then
14877 if test -n "$acl_hardcode_libdir_separator"; then
14879 for found_dir in $rpathdirs; do
14880 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14882 acl_save_libdir="$libdir"
14884 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14885 libdir="$acl_save_libdir"
14886 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$flag"
14888 for found_dir in $rpathdirs; do
14889 acl_save_libdir="$libdir"
14890 libdir="$found_dir"
14891 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14892 libdir="$acl_save_libdir"
14893 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$flag"
14897 if test "X$ltrpathdirs" != "X"; then
14898 for found_dir in $ltrpathdirs; do
14899 LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-R$found_dir"
14904 ac_save_CPPFLAGS="$CPPFLAGS"
14906 for element in $INCNETTLE; do
14908 for x in $CPPFLAGS; do
14910 acl_save_prefix="$prefix"
14911 prefix="$acl_final_prefix"
14912 acl_save_exec_prefix="$exec_prefix"
14913 exec_prefix="$acl_final_exec_prefix"
14915 exec_prefix="$acl_save_exec_prefix"
14916 prefix="$acl_save_prefix"
14918 if test "X$x" = "X$element"; then
14923 if test -z "$haveit"; then
14924 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnettle" >&5
14930 $as_echo_n "checking for libnettle... " >&6; }
14931 if ${ac_cv_libnettle+:} false; then :
14932 $as_echo_n "(cached) " >&6
14935 ac_save_LIBS="$LIBS"
14936 LIBS="$LIBS $LIBNETTLE"
14937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14938 /* end confdefs.h. */
14939 #include <nettle/aes.h>
14943 nettle_aes_invert_key (0, 0)
14948 if ac_fn_c_try_link "$LINENO"; then :
14949 ac_cv_libnettle=yes
14953 rm -f core conftest.err conftest.$ac_objext \
14954 conftest$ac_exeext conftest.$ac_ext
14955 LIBS="$ac_save_LIBS"
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libnettle" >&5
14959 $as_echo "$ac_cv_libnettle" >&6; }
14960 if test "$ac_cv_libnettle" = yes; then
14963 $as_echo "#define HAVE_LIBNETTLE 1" >>confdefs.h
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libnettle" >&5
14966 $as_echo_n "checking how to link with libnettle... " >&6; }
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBNETTLE" >&5
14968 $as_echo "$LIBNETTLE" >&6; }
14971 CPPFLAGS="$ac_save_CPPFLAGS"
14983 if test "$ac_cv_libnettle" != yes; then
14986 *** Libnettle 2.1 was not found.
14989 NETTLE_LIBS="-lgmp -lhogweed"
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14992 $as_echo "no" >&6; }
14995 if test "$cryptolib" = "nettle"; then
14996 ENABLE_NETTLE_TRUE=
14997 ENABLE_NETTLE_FALSE='#'
14999 ENABLE_NETTLE_TRUE='#'
15000 ENABLE_NETTLE_FALSE=
15005 # Check whether --with-included-libtasn1 was given.
15006 if test "${with_included_libtasn1+set}" = set; then :
15007 withval=$with_included_libtasn1; included_libtasn1=$withval
15009 included_libtasn1=no
15012 if test "$included_libtasn1" = "no"; then
15025 acl_save_prefix="$prefix"
15026 prefix="$acl_final_prefix"
15027 acl_save_exec_prefix="$exec_prefix"
15028 exec_prefix="$acl_final_exec_prefix"
15030 eval additional_includedir=\"$includedir\"
15031 eval additional_libdir=\"$libdir\"
15033 exec_prefix="$acl_save_exec_prefix"
15034 prefix="$acl_save_prefix"
15037 # Check whether --with-libtasn1-prefix was given.
15038 if test "${with_libtasn1_prefix+set}" = set; then :
15039 withval=$with_libtasn1_prefix;
15040 if test "X$withval" = "Xno"; then
15043 if test "X$withval" = "X"; then
15045 acl_save_prefix="$prefix"
15046 prefix="$acl_final_prefix"
15047 acl_save_exec_prefix="$exec_prefix"
15048 exec_prefix="$acl_final_exec_prefix"
15050 eval additional_includedir=\"$includedir\"
15051 eval additional_libdir=\"$libdir\"
15053 exec_prefix="$acl_save_exec_prefix"
15054 prefix="$acl_save_prefix"
15057 additional_includedir="$withval/include"
15058 additional_libdir="$withval/$acl_libdirstem"
15070 names_already_handled=
15071 names_next_round='tasn1 '
15072 while test -n "$names_next_round"; do
15073 names_this_round="$names_next_round"
15075 for name in $names_this_round; do
15077 for n in $names_already_handled; do
15078 if test "$n" = "$name"; then
15079 already_handled=yes
15083 if test -z "$already_handled"; then
15084 names_already_handled="$names_already_handled $name"
15085 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15086 eval value=\"\$HAVE_LIB$uppername\"
15087 if test -n "$value"; then
15088 if test "$value" = yes; then
15089 eval value=\"\$LIB$uppername\"
15090 test -z "$value" || LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$value"
15091 eval value=\"\$LTLIB$uppername\"
15092 test -z "$value" || LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }$value"
15101 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15102 if test -n "$acl_shlibext"; then
15103 shrext=".$acl_shlibext" # typically: shrext=.so
15107 if test $use_additional = yes; then
15108 dir="$additional_libdir"
15109 if test -n "$acl_shlibext"; then
15110 if test -f "$dir/$libname$shrext"; then
15112 found_so="$dir/$libname$shrext"
15114 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15115 ver=`(cd "$dir" && \
15116 for f in "$libname$shrext".*; do echo "$f"; done \
15117 | sed -e "s,^$libname$shrext\\\\.,," \
15118 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15119 | sed 1q ) 2>/dev/null`
15120 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15122 found_so="$dir/$libname$shrext.$ver"
15125 eval library_names=\"$acl_library_names_spec\"
15126 for f in $library_names; do
15127 if test -f "$dir/$f"; then
15136 if test "X$found_dir" = "X"; then
15137 if test -f "$dir/$libname.$acl_libext"; then
15139 found_a="$dir/$libname.$acl_libext"
15142 if test "X$found_dir" != "X"; then
15143 if test -f "$dir/$libname.la"; then
15144 found_la="$dir/$libname.la"
15148 if test "X$found_dir" = "X"; then
15149 for x in $LDFLAGS $LTLIBTASN1; do
15151 acl_save_prefix="$prefix"
15152 prefix="$acl_final_prefix"
15153 acl_save_exec_prefix="$exec_prefix"
15154 exec_prefix="$acl_final_exec_prefix"
15156 exec_prefix="$acl_save_exec_prefix"
15157 prefix="$acl_save_prefix"
15161 dir=`echo "X$x" | sed -e 's/^X-L//'`
15162 if test -n "$acl_shlibext"; then
15163 if test -f "$dir/$libname$shrext"; then
15165 found_so="$dir/$libname$shrext"
15167 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15168 ver=`(cd "$dir" && \
15169 for f in "$libname$shrext".*; do echo "$f"; done \
15170 | sed -e "s,^$libname$shrext\\\\.,," \
15171 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15172 | sed 1q ) 2>/dev/null`
15173 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15175 found_so="$dir/$libname$shrext.$ver"
15178 eval library_names=\"$acl_library_names_spec\"
15179 for f in $library_names; do
15180 if test -f "$dir/$f"; then
15189 if test "X$found_dir" = "X"; then
15190 if test -f "$dir/$libname.$acl_libext"; then
15192 found_a="$dir/$libname.$acl_libext"
15195 if test "X$found_dir" != "X"; then
15196 if test -f "$dir/$libname.la"; then
15197 found_la="$dir/$libname.la"
15202 if test "X$found_dir" != "X"; then
15207 if test "X$found_dir" != "X"; then
15208 LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-L$found_dir -l$name"
15209 if test "X$found_so" != "X"; then
15210 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15211 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
15214 for x in $ltrpathdirs; do
15215 if test "X$x" = "X$found_dir"; then
15220 if test -z "$haveit"; then
15221 ltrpathdirs="$ltrpathdirs $found_dir"
15223 if test "$acl_hardcode_direct" = yes; then
15224 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
15226 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15227 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
15229 for x in $rpathdirs; do
15230 if test "X$x" = "X$found_dir"; then
15235 if test -z "$haveit"; then
15236 rpathdirs="$rpathdirs $found_dir"
15240 for x in $LDFLAGS $LIBTASN1; do
15242 acl_save_prefix="$prefix"
15243 prefix="$acl_final_prefix"
15244 acl_save_exec_prefix="$exec_prefix"
15245 exec_prefix="$acl_final_exec_prefix"
15247 exec_prefix="$acl_save_exec_prefix"
15248 prefix="$acl_save_prefix"
15250 if test "X$x" = "X-L$found_dir"; then
15255 if test -z "$haveit"; then
15256 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-L$found_dir"
15258 if test "$acl_hardcode_minus_L" != no; then
15259 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
15261 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-l$name"
15267 if test "X$found_a" != "X"; then
15268 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_a"
15270 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-L$found_dir -l$name"
15273 additional_includedir=
15274 case "$found_dir" in
15275 */$acl_libdirstem | */$acl_libdirstem/)
15276 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15277 LIBTASN1_PREFIX="$basedir"
15278 additional_includedir="$basedir/include"
15281 if test "X$additional_includedir" != "X"; then
15282 if test "X$additional_includedir" != "X/usr/include"; then
15284 if test "X$additional_includedir" = "X/usr/local/include"; then
15285 if test -n "$GCC"; then
15287 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15291 if test -z "$haveit"; then
15292 for x in $CPPFLAGS $INCTASN1; do
15294 acl_save_prefix="$prefix"
15295 prefix="$acl_final_prefix"
15296 acl_save_exec_prefix="$exec_prefix"
15297 exec_prefix="$acl_final_exec_prefix"
15299 exec_prefix="$acl_save_exec_prefix"
15300 prefix="$acl_save_prefix"
15302 if test "X$x" = "X-I$additional_includedir"; then
15307 if test -z "$haveit"; then
15308 if test -d "$additional_includedir"; then
15309 INCTASN1="${INCTASN1}${INCTASN1:+ }-I$additional_includedir"
15315 if test -n "$found_la"; then
15316 save_libdir="$libdir"
15317 case "$found_la" in
15318 */* | *\\*) . "$found_la" ;;
15319 *) . "./$found_la" ;;
15321 libdir="$save_libdir"
15322 for dep in $dependency_libs; do
15325 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15326 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15328 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15329 if test -n "$GCC"; then
15331 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15335 if test -z "$haveit"; then
15337 for x in $LDFLAGS $LIBTASN1; do
15339 acl_save_prefix="$prefix"
15340 prefix="$acl_final_prefix"
15341 acl_save_exec_prefix="$exec_prefix"
15342 exec_prefix="$acl_final_exec_prefix"
15344 exec_prefix="$acl_save_exec_prefix"
15345 prefix="$acl_save_prefix"
15347 if test "X$x" = "X-L$additional_libdir"; then
15352 if test -z "$haveit"; then
15353 if test -d "$additional_libdir"; then
15354 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-L$additional_libdir"
15358 for x in $LDFLAGS $LTLIBTASN1; do
15360 acl_save_prefix="$prefix"
15361 prefix="$acl_final_prefix"
15362 acl_save_exec_prefix="$exec_prefix"
15363 exec_prefix="$acl_final_exec_prefix"
15365 exec_prefix="$acl_save_exec_prefix"
15366 prefix="$acl_save_prefix"
15368 if test "X$x" = "X-L$additional_libdir"; then
15373 if test -z "$haveit"; then
15374 if test -d "$additional_libdir"; then
15375 LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-L$additional_libdir"
15382 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15383 if test "$enable_rpath" != no; then
15385 for x in $rpathdirs; do
15386 if test "X$x" = "X$dir"; then
15391 if test -z "$haveit"; then
15392 rpathdirs="$rpathdirs $dir"
15395 for x in $ltrpathdirs; do
15396 if test "X$x" = "X$dir"; then
15401 if test -z "$haveit"; then
15402 ltrpathdirs="$ltrpathdirs $dir"
15407 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15410 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15413 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$dep"
15414 LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }$dep"
15420 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-l$name"
15421 LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-l$name"
15427 if test "X$rpathdirs" != "X"; then
15428 if test -n "$acl_hardcode_libdir_separator"; then
15430 for found_dir in $rpathdirs; do
15431 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15433 acl_save_libdir="$libdir"
15435 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15436 libdir="$acl_save_libdir"
15437 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$flag"
15439 for found_dir in $rpathdirs; do
15440 acl_save_libdir="$libdir"
15441 libdir="$found_dir"
15442 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15443 libdir="$acl_save_libdir"
15444 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$flag"
15448 if test "X$ltrpathdirs" != "X"; then
15449 for found_dir in $ltrpathdirs; do
15450 LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-R$found_dir"
15455 ac_save_CPPFLAGS="$CPPFLAGS"
15457 for element in $INCTASN1; do
15459 for x in $CPPFLAGS; do
15461 acl_save_prefix="$prefix"
15462 prefix="$acl_final_prefix"
15463 acl_save_exec_prefix="$exec_prefix"
15464 exec_prefix="$acl_final_exec_prefix"
15466 exec_prefix="$acl_save_exec_prefix"
15467 prefix="$acl_save_prefix"
15469 if test "X$x" = "X$element"; then
15474 if test -z "$haveit"; then
15475 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtasn1" >&5
15481 $as_echo_n "checking for libtasn1... " >&6; }
15482 if ${ac_cv_libtasn1+:} false; then :
15483 $as_echo_n "(cached) " >&6
15486 ac_save_LIBS="$LIBS"
15487 LIBS="$LIBS $LIBTASN1"
15488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h. */
15490 #include <libtasn1.h>
15494 asn1_check_version (NULL)
15499 if ac_fn_c_try_link "$LINENO"; then :
15504 rm -f core conftest.err conftest.$ac_objext \
15505 conftest$ac_exeext conftest.$ac_ext
15506 LIBS="$ac_save_LIBS"
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libtasn1" >&5
15510 $as_echo "$ac_cv_libtasn1" >&6; }
15511 if test "$ac_cv_libtasn1" = yes; then
15514 $as_echo "#define HAVE_LIBTASN1 1" >>confdefs.h
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libtasn1" >&5
15517 $as_echo_n "checking how to link with libtasn1... " >&6; }
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTASN1" >&5
15519 $as_echo "$LIBTASN1" >&6; }
15522 CPPFLAGS="$ac_save_CPPFLAGS"
15534 if test "$ac_cv_libtasn1" != yes; then
15535 included_libtasn1=yes
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15538 *** Libtasn1 was not found. Will use the included one.
15540 $as_echo "$as_me: WARNING:
15542 *** Libtasn1 was not found. Will use the included one.
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included minitasn1" >&5
15547 $as_echo_n "checking whether to use the included minitasn1... " >&6; }
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $included_libtasn1" >&5
15549 $as_echo "$included_libtasn1" >&6; }
15550 if test "$included_libtasn1" = "yes"; then
15551 ENABLE_MINITASN1_TRUE=
15552 ENABLE_MINITASN1_FALSE='#'
15554 ENABLE_MINITASN1_TRUE='#'
15555 ENABLE_MINITASN1_FALSE=
15559 if test "$included_libtasn1" = "no"; then
15560 GNUTLS_REQUIRES_PRIVATE="Requires.private: libtasn1"
15564 # Check whether --with-lzo was given.
15565 if test "${with_lzo+set}" = set; then :
15566 withval=$with_lzo; use_lzo=$withval
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include LZO compression support" >&5
15572 $as_echo_n "checking whether to include LZO compression support... " >&6; }
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lzo" >&5
15574 $as_echo "$use_lzo" >&6; }
15576 if test "$use_lzo" = "yes"; then
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
15578 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
15579 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
15580 $as_echo_n "(cached) " >&6
15582 ac_check_lib_save_LIBS=$LIBS
15583 LIBS="-llzo2 $LIBS"
15584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585 /* end confdefs.h. */
15587 /* Override any GCC internal prototype to avoid an error.
15588 Use char because int might match the return type of a GCC
15589 builtin and then its argument prototype would still apply. */
15593 char lzo1x_1_compress ();
15597 return lzo1x_1_compress ();
15602 if ac_fn_c_try_link "$LINENO"; then :
15603 ac_cv_lib_lzo2_lzo1x_1_compress=yes
15605 ac_cv_lib_lzo2_lzo1x_1_compress=no
15607 rm -f core conftest.err conftest.$ac_objext \
15608 conftest$ac_exeext conftest.$ac_ext
15609 LIBS=$ac_check_lib_save_LIBS
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
15612 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
15613 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
15617 if test "$LZO_LIBS" = ""; then
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo" >&5
15619 $as_echo_n "checking for lzo1x_1_compress in -llzo... " >&6; }
15620 if ${ac_cv_lib_lzo_lzo1x_1_compress+:} false; then :
15621 $as_echo_n "(cached) " >&6
15623 ac_check_lib_save_LIBS=$LIBS
15625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h. */
15628 /* Override any GCC internal prototype to avoid an error.
15629 Use char because int might match the return type of a GCC
15630 builtin and then its argument prototype would still apply. */
15634 char lzo1x_1_compress ();
15638 return lzo1x_1_compress ();
15643 if ac_fn_c_try_link "$LINENO"; then :
15644 ac_cv_lib_lzo_lzo1x_1_compress=yes
15646 ac_cv_lib_lzo_lzo1x_1_compress=no
15648 rm -f core conftest.err conftest.$ac_objext \
15649 conftest$ac_exeext conftest.$ac_ext
15650 LIBS=$ac_check_lib_save_LIBS
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo_lzo1x_1_compress" >&5
15653 $as_echo "$ac_cv_lib_lzo_lzo1x_1_compress" >&6; }
15654 if test "x$ac_cv_lib_lzo_lzo1x_1_compress" = xyes; then :
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***
15660 *** Could not find liblzo or liblzo2. Disabling LZO compression.
15662 $as_echo "$as_me: WARNING: ***
15663 *** Could not find liblzo or liblzo2. Disabling LZO compression.
15671 if test "$use_lzo" = "yes"; then
15673 $as_echo "#define USE_LZO 1" >>confdefs.h
15675 if test "$LZO_LIBS" = "-llzo"; then
15676 for ac_header in lzo1x.h
15678 ac_fn_c_check_header_mongrel "$LINENO" "lzo1x.h" "ac_cv_header_lzo1x_h" "$ac_includes_default"
15679 if test "x$ac_cv_header_lzo1x_h" = xyes; then :
15680 cat >>confdefs.h <<_ACEOF
15681 #define HAVE_LZO1X_H 1
15688 elif test "$LZO_LIBS" = "-llzo2"; then
15689 for ac_header in lzo/lzo1x.h
15691 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
15692 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
15693 cat >>confdefs.h <<_ACEOF
15694 #define HAVE_LZO_LZO1X_H 1
15703 if test "$use_lzo" = "yes"; then
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C99 macros are supported" >&5
15713 $as_echo_n "checking whether C99 macros are supported... " >&6; }
15714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15715 /* end confdefs.h. */
15721 #define test_mac(...)
15730 if ac_fn_c_try_compile "$LINENO"; then :
15733 $as_echo "#define C99_MACROS 1" >>confdefs.h
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15736 $as_echo "yes" >&6; }
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15741 $as_echo "no" >&6; }
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C99 macros not supported. This may affect compiling." >&5
15743 $as_echo "$as_me: WARNING: C99 macros not supported. This may affect compiling." >&2;}
15746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Opaque PRF input support" >&5
15749 $as_echo_n "checking whether to enable Opaque PRF input support... " >&6; }
15750 # Check whether --enable-opaque-prf-input was given.
15751 if test "${enable_opaque_prf_input+set}" = set; then :
15752 enableval=$enable_opaque_prf_input; ac_opaque_prf_input=$enableval
15754 ac_opaque_prf_input=no
15757 if test "$ac_opaque_prf_input" != "no"; then
15758 if ! echo $ac_opaque_prf_input | egrep -q '^[0-9]+$'; then
15759 ac_opaque_prf_input=no
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15761 *** Could not parse Opaque PRF Input extension type.
15762 *** Use --enable-opaque-prf-input=XX where XX is decimal, for example
15763 *** to use extension value 42 use --enable-opqaue-prf-input=42" >&5
15764 $as_echo "$as_me: WARNING:
15765 *** Could not parse Opaque PRF Input extension type.
15766 *** Use --enable-opaque-prf-input=XX where XX is decimal, for example
15767 *** to use extension value 42 use --enable-opqaue-prf-input=42" >&2;}
15770 if test "$ac_opaque_prf_input" != "no"; then
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (extension value $ac_opaque_prf_input)" >&5
15772 $as_echo "yes (extension value $ac_opaque_prf_input)" >&6; }
15774 cat >>confdefs.h <<_ACEOF
15775 #define ENABLE_OPRFI $ac_opaque_prf_input
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15780 $as_echo "no" >&6; }
15782 if test "$ac_opaque_prf_input" != "no"; then
15784 ENABLE_OPRFI_FALSE='#'
15786 ENABLE_OPRFI_TRUE='#'
15787 ENABLE_OPRFI_FALSE=
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable SRP authentication support" >&5
15792 $as_echo_n "checking whether to disable SRP authentication support... " >&6; }
15793 # Check whether --enable-srp-authentication was given.
15794 if test "${enable_srp_authentication+set}" = set; then :
15795 enableval=$enable_srp_authentication; ac_enable_srp=no
15798 if test x$ac_enable_srp != xno; then
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15800 $as_echo "no" >&6; }
15802 $as_echo "#define ENABLE_SRP 1" >>confdefs.h
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15807 $as_echo "yes" >&6; }
15809 if test "$ac_enable_srp" != "no"; then
15811 ENABLE_SRP_FALSE='#'
15813 ENABLE_SRP_TRUE='#'
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable PSK authentication support" >&5
15819 $as_echo_n "checking whether to disable PSK authentication support... " >&6; }
15820 # Check whether --enable-psk-authentication was given.
15821 if test "${enable_psk_authentication+set}" = set; then :
15822 enableval=$enable_psk_authentication; ac_enable_psk=no
15825 if test x$ac_enable_psk != xno; then
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15827 $as_echo "no" >&6; }
15829 $as_echo "#define ENABLE_PSK 1" >>confdefs.h
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15834 $as_echo "yes" >&6; }
15836 if test "$ac_enable_psk" != "no"; then
15838 ENABLE_PSK_FALSE='#'
15840 ENABLE_PSK_TRUE='#'
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable anonymous authentication support" >&5
15846 $as_echo_n "checking whether to disable anonymous authentication support... " >&6; }
15847 # Check whether --enable-anon-authentication was given.
15848 if test "${enable_anon_authentication+set}" = set; then :
15849 enableval=$enable_anon_authentication; ac_enable_anon=no
15852 if test x$ac_enable_anon != xno; then
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15854 $as_echo "no" >&6; }
15856 $as_echo "#define ENABLE_ANON 1" >>confdefs.h
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15861 $as_echo "yes" >&6; }
15863 if test "$ac_enable_anon" != "no"; then
15865 ENABLE_ANON_FALSE='#'
15867 ENABLE_ANON_TRUE='#'
15872 # Allow disabling Camellia
15873 if test "$nettle" != "yes";then
15874 # Check whether --enable-camellia was given.
15875 if test "${enable_camellia+set}" = set; then :
15876 enableval=$enable_camellia; enable_camellia=$enableval
15878 enable_camellia=yes
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable Camellia cipher" >&5
15886 $as_echo_n "checking whether to disable Camellia cipher... " >&6; }
15887 if test "$enable_camellia" != "no"; then
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15889 $as_echo "no" >&6; }
15891 $as_echo "#define ENABLE_CAMELLIA 1" >>confdefs.h
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15895 $as_echo "yes" >&6; }
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable extra PKI stuff" >&5
15899 $as_echo_n "checking whether to disable extra PKI stuff... " >&6; }
15900 # Check whether --enable-extra-pki was given.
15901 if test "${enable_extra_pki+set}" = set; then :
15902 enableval=$enable_extra_pki; enable_pki=$enableval
15907 if test "$enable_pki" != "yes"; then
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15910 $as_echo "yes" >&6; }
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15913 $as_echo "no" >&6; }
15915 $as_echo "#define ENABLE_PKI 1" >>confdefs.h
15918 if test "$enable_pki" = "yes"; then
15920 ENABLE_PKI_FALSE='#'
15922 ENABLE_PKI_TRUE='#'
15927 ac_enable_openpgp=yes
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable OpenPGP Certificate authentication support" >&5
15929 $as_echo_n "checking whether to disable OpenPGP Certificate authentication support... " >&6; }
15930 # Check whether --enable-openpgp-authentication was given.
15931 if test "${enable_openpgp_authentication+set}" = set; then :
15932 enableval=$enable_openpgp_authentication; ac_enable_openpgp=no
15935 if test x$ac_enable_openpgp = xno; then
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15937 $as_echo "yes" >&6; }
15941 $as_echo "#define ENABLE_OPENPGP 1" >>confdefs.h
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15944 $as_echo "no" >&6; }
15946 if test "$ac_enable_openpgp" = "yes"; then
15947 ENABLE_OPENPGP_TRUE=
15948 ENABLE_OPENPGP_FALSE='#'
15950 ENABLE_OPENPGP_TRUE='#'
15951 ENABLE_OPENPGP_FALSE=
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable SessionTicket extension support" >&5
15956 $as_echo_n "checking whether to disable SessionTicket extension support... " >&6; }
15957 # Check whether --enable-session-ticket was given.
15958 if test "${enable_session_ticket+set}" = set; then :
15959 enableval=$enable_session_ticket; ac_session_ticket=no
15962 if test x$ac_session_ticket != xno; then
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15964 $as_echo "no" >&6; }
15966 $as_echo "#define ENABLE_SESSION_TICKET 1" >>confdefs.h
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15971 $as_echo "yes" >&6; }
15973 if test "$ac_enable_session_ticket" != "no"; then
15974 ENABLE_SESSION_TICKET_TRUE=
15975 ENABLE_SESSION_TICKET_FALSE='#'
15977 ENABLE_SESSION_TICKET_TRUE='#'
15978 ENABLE_SESSION_TICKET_FALSE=
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add cryptodev support" >&5
15984 $as_echo_n "checking whether to add cryptodev support... " >&6; }
15985 # Check whether --enable-cryptodev was given.
15986 if test "${enable_cryptodev+set}" = set; then :
15987 enableval=$enable_cryptodev; enable_cryptodev=yes
15989 enable_cryptodev=no
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cryptodev" >&5
15993 $as_echo "$enable_cryptodev" >&6; }
15995 if test "$enable_cryptodev" = "yes"; then
15997 $as_echo "#define ENABLE_CRYPTODEV 1" >>confdefs.h
16001 # For storing integers in pointers without warnings
16002 # http://developer.gnome.org/doc/API/2.0/glib/glib-Type-Conversion-Macros.html#desc
16003 # The cast to long int works around a bug in the HP C Compiler
16004 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16005 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16006 # This bug is HP SR number 8606223364.
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16008 $as_echo_n "checking size of void *... " >&6; }
16009 if ${ac_cv_sizeof_void_p+:} false; then :
16010 $as_echo_n "(cached) " >&6
16012 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16015 if test "$ac_cv_type_void_p" = yes; then
16016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16018 as_fn_error 77 "cannot compute sizeof (void *)
16019 See \`config.log' for more details" "$LINENO" 5; }
16021 ac_cv_sizeof_void_p=0
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16027 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16031 cat >>confdefs.h <<_ACEOF
16032 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16036 # The cast to long int works around a bug in the HP C Compiler
16037 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16038 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16039 # This bug is HP SR number 8606223364.
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16041 $as_echo_n "checking size of long... " >&6; }
16042 if ${ac_cv_sizeof_long+:} false; then :
16043 $as_echo_n "(cached) " >&6
16045 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16048 if test "$ac_cv_type_long" = yes; then
16049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16051 as_fn_error 77 "cannot compute sizeof (long)
16052 See \`config.log' for more details" "$LINENO" 5; }
16054 ac_cv_sizeof_long=0
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16060 $as_echo "$ac_cv_sizeof_long" >&6; }
16064 cat >>confdefs.h <<_ACEOF
16065 #define SIZEOF_LONG $ac_cv_sizeof_long
16069 # The cast to long int works around a bug in the HP C Compiler
16070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16072 # This bug is HP SR number 8606223364.
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16074 $as_echo_n "checking size of int... " >&6; }
16075 if ${ac_cv_sizeof_int+:} false; then :
16076 $as_echo_n "(cached) " >&6
16078 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16081 if test "$ac_cv_type_int" = yes; then
16082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16084 as_fn_error 77 "cannot compute sizeof (int)
16085 See \`config.log' for more details" "$LINENO" 5; }
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16093 $as_echo "$ac_cv_sizeof_int" >&6; }
16097 cat >>confdefs.h <<_ACEOF
16098 #define SIZEOF_INT $ac_cv_sizeof_int
16102 case $ac_cv_sizeof_void_p in
16103 $ac_cv_sizeof_long)
16105 $as_echo "#define GNUTLS_POINTER_TO_INT_CAST (long)" >>confdefs.h
16109 $as_echo "#define GNUTLS_POINTER_TO_INT_CAST /**/" >>confdefs.h
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16117 $as_echo_n "checking whether NLS is requested... " >&6; }
16118 # Check whether --enable-nls was given.
16119 if test "${enable_nls+set}" = set; then :
16120 enableval=$enable_nls; USE_NLS=$enableval
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16126 $as_echo "$USE_NLS" >&6; }
16131 GETTEXT_MACRO_VERSION=0.17
16136 # Prepare PATH_SEPARATOR.
16137 # The user is always right.
16138 if test "${PATH_SEPARATOR+set}" != set; then
16139 echo "#! /bin/sh" >conf$$.sh
16140 echo "exit 0" >>conf$$.sh
16142 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16150 # Find out how to test for executable files. Don't use a zero-byte file,
16151 # as systems may use methods other than mode bits to determine executability.
16152 cat >conf$$.file <<_ASEOF
16156 chmod +x conf$$.file
16157 if test -x conf$$.file >/dev/null 2>&1; then
16158 ac_executable_p="test -x"
16160 ac_executable_p="test -f"
16164 # Extract the first word of "msgfmt", so it can be a program name with args.
16165 set dummy msgfmt; ac_word=$2
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16167 $as_echo_n "checking for $ac_word... " >&6; }
16168 if ${ac_cv_path_MSGFMT+:} false; then :
16169 $as_echo_n "(cached) " >&6
16173 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16176 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16177 for ac_dir in $PATH; do
16179 test -z "$ac_dir" && ac_dir=.
16180 for ac_exec_ext in '' $ac_executable_extensions; do
16181 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16182 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16183 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16184 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16185 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16192 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16196 MSGFMT="$ac_cv_path_MSGFMT"
16197 if test "$MSGFMT" != ":"; then
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16199 $as_echo "$MSGFMT" >&6; }
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16202 $as_echo "no" >&6; }
16205 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16206 set dummy gmsgfmt; ac_word=$2
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16208 $as_echo_n "checking for $ac_word... " >&6; }
16209 if ${ac_cv_path_GMSGFMT+:} false; then :
16210 $as_echo_n "(cached) " >&6
16214 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16218 for as_dir in $PATH
16221 test -z "$as_dir" && as_dir=.
16222 for ac_exec_ext in '' $ac_executable_extensions; do
16223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16224 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16232 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16236 GMSGFMT=$ac_cv_path_GMSGFMT
16237 if test -n "$GMSGFMT"; then
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16239 $as_echo "$GMSGFMT" >&6; }
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16242 $as_echo "no" >&6; }
16247 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16248 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
16249 *) MSGFMT_015=$MSGFMT ;;
16252 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16253 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
16254 *) GMSGFMT_015=$GMSGFMT ;;
16259 # Prepare PATH_SEPARATOR.
16260 # The user is always right.
16261 if test "${PATH_SEPARATOR+set}" != set; then
16262 echo "#! /bin/sh" >conf$$.sh
16263 echo "exit 0" >>conf$$.sh
16265 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16273 # Find out how to test for executable files. Don't use a zero-byte file,
16274 # as systems may use methods other than mode bits to determine executability.
16275 cat >conf$$.file <<_ASEOF
16279 chmod +x conf$$.file
16280 if test -x conf$$.file >/dev/null 2>&1; then
16281 ac_executable_p="test -x"
16283 ac_executable_p="test -f"
16287 # Extract the first word of "xgettext", so it can be a program name with args.
16288 set dummy xgettext; ac_word=$2
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16290 $as_echo_n "checking for $ac_word... " >&6; }
16291 if ${ac_cv_path_XGETTEXT+:} false; then :
16292 $as_echo_n "(cached) " >&6
16294 case "$XGETTEXT" in
16296 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16299 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16300 for ac_dir in $PATH; do
16302 test -z "$ac_dir" && ac_dir=.
16303 for ac_exec_ext in '' $ac_executable_extensions; do
16304 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16305 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16306 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16307 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16308 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16315 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16319 XGETTEXT="$ac_cv_path_XGETTEXT"
16320 if test "$XGETTEXT" != ":"; then
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16322 $as_echo "$XGETTEXT" >&6; }
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16325 $as_echo "no" >&6; }
16330 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16331 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
16332 *) XGETTEXT_015=$XGETTEXT ;;
16337 # Prepare PATH_SEPARATOR.
16338 # The user is always right.
16339 if test "${PATH_SEPARATOR+set}" != set; then
16340 echo "#! /bin/sh" >conf$$.sh
16341 echo "exit 0" >>conf$$.sh
16343 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16351 # Find out how to test for executable files. Don't use a zero-byte file,
16352 # as systems may use methods other than mode bits to determine executability.
16353 cat >conf$$.file <<_ASEOF
16357 chmod +x conf$$.file
16358 if test -x conf$$.file >/dev/null 2>&1; then
16359 ac_executable_p="test -x"
16361 ac_executable_p="test -f"
16365 # Extract the first word of "msgmerge", so it can be a program name with args.
16366 set dummy msgmerge; ac_word=$2
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16368 $as_echo_n "checking for $ac_word... " >&6; }
16369 if ${ac_cv_path_MSGMERGE+:} false; then :
16370 $as_echo_n "(cached) " >&6
16372 case "$MSGMERGE" in
16374 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16377 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16378 for ac_dir in $PATH; do
16380 test -z "$ac_dir" && ac_dir=.
16381 for ac_exec_ext in '' $ac_executable_extensions; do
16382 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16383 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16384 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16385 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16392 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16396 MSGMERGE="$ac_cv_path_MSGMERGE"
16397 if test "$MSGMERGE" != ":"; then
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16399 $as_echo "$MSGMERGE" >&6; }
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16402 $as_echo "no" >&6; }
16406 test -n "$localedir" || localedir='${datadir}/locale'
16409 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
16412 ac_config_commands="$ac_config_commands po-directories"
16425 acl_save_prefix="$prefix"
16426 prefix="$acl_final_prefix"
16427 acl_save_exec_prefix="$exec_prefix"
16428 exec_prefix="$acl_final_exec_prefix"
16430 eval additional_includedir=\"$includedir\"
16431 eval additional_libdir=\"$libdir\"
16433 exec_prefix="$acl_save_exec_prefix"
16434 prefix="$acl_save_prefix"
16437 # Check whether --with-libiconv-prefix was given.
16438 if test "${with_libiconv_prefix+set}" = set; then :
16439 withval=$with_libiconv_prefix;
16440 if test "X$withval" = "Xno"; then
16443 if test "X$withval" = "X"; then
16445 acl_save_prefix="$prefix"
16446 prefix="$acl_final_prefix"
16447 acl_save_exec_prefix="$exec_prefix"
16448 exec_prefix="$acl_final_exec_prefix"
16450 eval additional_includedir=\"$includedir\"
16451 eval additional_libdir=\"$libdir\"
16453 exec_prefix="$acl_save_exec_prefix"
16454 prefix="$acl_save_prefix"
16457 additional_includedir="$withval/include"
16458 additional_libdir="$withval/$acl_libdirstem"
16470 names_already_handled=
16471 names_next_round='iconv '
16472 while test -n "$names_next_round"; do
16473 names_this_round="$names_next_round"
16475 for name in $names_this_round; do
16477 for n in $names_already_handled; do
16478 if test "$n" = "$name"; then
16479 already_handled=yes
16483 if test -z "$already_handled"; then
16484 names_already_handled="$names_already_handled $name"
16485 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16486 eval value=\"\$HAVE_LIB$uppername\"
16487 if test -n "$value"; then
16488 if test "$value" = yes; then
16489 eval value=\"\$LIB$uppername\"
16490 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16491 eval value=\"\$LTLIB$uppername\"
16492 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16501 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
16502 if test -n "$acl_shlibext"; then
16503 shrext=".$acl_shlibext" # typically: shrext=.so
16507 if test $use_additional = yes; then
16508 dir="$additional_libdir"
16509 if test -n "$acl_shlibext"; then
16510 if test -f "$dir/$libname$shrext"; then
16512 found_so="$dir/$libname$shrext"
16514 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16515 ver=`(cd "$dir" && \
16516 for f in "$libname$shrext".*; do echo "$f"; done \
16517 | sed -e "s,^$libname$shrext\\\\.,," \
16518 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16519 | sed 1q ) 2>/dev/null`
16520 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16522 found_so="$dir/$libname$shrext.$ver"
16525 eval library_names=\"$acl_library_names_spec\"
16526 for f in $library_names; do
16527 if test -f "$dir/$f"; then
16536 if test "X$found_dir" = "X"; then
16537 if test -f "$dir/$libname.$acl_libext"; then
16539 found_a="$dir/$libname.$acl_libext"
16542 if test "X$found_dir" != "X"; then
16543 if test -f "$dir/$libname.la"; then
16544 found_la="$dir/$libname.la"
16548 if test "X$found_dir" = "X"; then
16549 for x in $LDFLAGS $LTLIBICONV; do
16551 acl_save_prefix="$prefix"
16552 prefix="$acl_final_prefix"
16553 acl_save_exec_prefix="$exec_prefix"
16554 exec_prefix="$acl_final_exec_prefix"
16556 exec_prefix="$acl_save_exec_prefix"
16557 prefix="$acl_save_prefix"
16561 dir=`echo "X$x" | sed -e 's/^X-L//'`
16562 if test -n "$acl_shlibext"; then
16563 if test -f "$dir/$libname$shrext"; then
16565 found_so="$dir/$libname$shrext"
16567 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16568 ver=`(cd "$dir" && \
16569 for f in "$libname$shrext".*; do echo "$f"; done \
16570 | sed -e "s,^$libname$shrext\\\\.,," \
16571 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16572 | sed 1q ) 2>/dev/null`
16573 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16575 found_so="$dir/$libname$shrext.$ver"
16578 eval library_names=\"$acl_library_names_spec\"
16579 for f in $library_names; do
16580 if test -f "$dir/$f"; then
16589 if test "X$found_dir" = "X"; then
16590 if test -f "$dir/$libname.$acl_libext"; then
16592 found_a="$dir/$libname.$acl_libext"
16595 if test "X$found_dir" != "X"; then
16596 if test -f "$dir/$libname.la"; then
16597 found_la="$dir/$libname.la"
16602 if test "X$found_dir" != "X"; then
16607 if test "X$found_dir" != "X"; then
16608 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16609 if test "X$found_so" != "X"; then
16610 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
16611 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16614 for x in $ltrpathdirs; do
16615 if test "X$x" = "X$found_dir"; then
16620 if test -z "$haveit"; then
16621 ltrpathdirs="$ltrpathdirs $found_dir"
16623 if test "$acl_hardcode_direct" = yes; then
16624 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16626 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16627 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16629 for x in $rpathdirs; do
16630 if test "X$x" = "X$found_dir"; then
16635 if test -z "$haveit"; then
16636 rpathdirs="$rpathdirs $found_dir"
16640 for x in $LDFLAGS $LIBICONV; do
16642 acl_save_prefix="$prefix"
16643 prefix="$acl_final_prefix"
16644 acl_save_exec_prefix="$exec_prefix"
16645 exec_prefix="$acl_final_exec_prefix"
16647 exec_prefix="$acl_save_exec_prefix"
16648 prefix="$acl_save_prefix"
16650 if test "X$x" = "X-L$found_dir"; then
16655 if test -z "$haveit"; then
16656 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16658 if test "$acl_hardcode_minus_L" != no; then
16659 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16661 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16667 if test "X$found_a" != "X"; then
16668 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16670 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16673 additional_includedir=
16674 case "$found_dir" in
16675 */$acl_libdirstem | */$acl_libdirstem/)
16676 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16677 LIBICONV_PREFIX="$basedir"
16678 additional_includedir="$basedir/include"
16681 if test "X$additional_includedir" != "X"; then
16682 if test "X$additional_includedir" != "X/usr/include"; then
16684 if test "X$additional_includedir" = "X/usr/local/include"; then
16685 if test -n "$GCC"; then
16687 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16691 if test -z "$haveit"; then
16692 for x in $CPPFLAGS $INCICONV; do
16694 acl_save_prefix="$prefix"
16695 prefix="$acl_final_prefix"
16696 acl_save_exec_prefix="$exec_prefix"
16697 exec_prefix="$acl_final_exec_prefix"
16699 exec_prefix="$acl_save_exec_prefix"
16700 prefix="$acl_save_prefix"
16702 if test "X$x" = "X-I$additional_includedir"; then
16707 if test -z "$haveit"; then
16708 if test -d "$additional_includedir"; then
16709 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16715 if test -n "$found_la"; then
16716 save_libdir="$libdir"
16717 case "$found_la" in
16718 */* | *\\*) . "$found_la" ;;
16719 *) . "./$found_la" ;;
16721 libdir="$save_libdir"
16722 for dep in $dependency_libs; do
16725 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16726 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
16728 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
16729 if test -n "$GCC"; then
16731 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16735 if test -z "$haveit"; then
16737 for x in $LDFLAGS $LIBICONV; do
16739 acl_save_prefix="$prefix"
16740 prefix="$acl_final_prefix"
16741 acl_save_exec_prefix="$exec_prefix"
16742 exec_prefix="$acl_final_exec_prefix"
16744 exec_prefix="$acl_save_exec_prefix"
16745 prefix="$acl_save_prefix"
16747 if test "X$x" = "X-L$additional_libdir"; then
16752 if test -z "$haveit"; then
16753 if test -d "$additional_libdir"; then
16754 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16758 for x in $LDFLAGS $LTLIBICONV; do
16760 acl_save_prefix="$prefix"
16761 prefix="$acl_final_prefix"
16762 acl_save_exec_prefix="$exec_prefix"
16763 exec_prefix="$acl_final_exec_prefix"
16765 exec_prefix="$acl_save_exec_prefix"
16766 prefix="$acl_save_prefix"
16768 if test "X$x" = "X-L$additional_libdir"; then
16773 if test -z "$haveit"; then
16774 if test -d "$additional_libdir"; then
16775 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16782 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16783 if test "$enable_rpath" != no; then
16785 for x in $rpathdirs; do
16786 if test "X$x" = "X$dir"; then
16791 if test -z "$haveit"; then
16792 rpathdirs="$rpathdirs $dir"
16795 for x in $ltrpathdirs; do
16796 if test "X$x" = "X$dir"; then
16801 if test -z "$haveit"; then
16802 ltrpathdirs="$ltrpathdirs $dir"
16807 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16810 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16813 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16814 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16820 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16821 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16827 if test "X$rpathdirs" != "X"; then
16828 if test -n "$acl_hardcode_libdir_separator"; then
16830 for found_dir in $rpathdirs; do
16831 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16833 acl_save_libdir="$libdir"
16835 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16836 libdir="$acl_save_libdir"
16837 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16839 for found_dir in $rpathdirs; do
16840 acl_save_libdir="$libdir"
16841 libdir="$found_dir"
16842 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16843 libdir="$acl_save_libdir"
16844 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16848 if test "X$ltrpathdirs" != "X"; then
16849 for found_dir in $ltrpathdirs; do
16850 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16879 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16880 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
16881 $as_echo_n "(cached) " >&6
16883 gt_save_LIBS="$LIBS"
16884 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
16885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16886 /* end confdefs.h. */
16887 #include <CoreFoundation/CFPreferences.h>
16891 CFPreferencesCopyAppValue(NULL, NULL)
16896 if ac_fn_c_try_link "$LINENO"; then :
16897 gt_cv_func_CFPreferencesCopyAppValue=yes
16899 gt_cv_func_CFPreferencesCopyAppValue=no
16901 rm -f core conftest.err conftest.$ac_objext \
16902 conftest$ac_exeext conftest.$ac_ext
16903 LIBS="$gt_save_LIBS"
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16906 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16907 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16909 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16913 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16914 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
16915 $as_echo_n "(cached) " >&6
16917 gt_save_LIBS="$LIBS"
16918 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
16919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16920 /* end confdefs.h. */
16921 #include <CoreFoundation/CFLocale.h>
16925 CFLocaleCopyCurrent();
16930 if ac_fn_c_try_link "$LINENO"; then :
16931 gt_cv_func_CFLocaleCopyCurrent=yes
16933 gt_cv_func_CFLocaleCopyCurrent=no
16935 rm -f core conftest.err conftest.$ac_objext \
16936 conftest$ac_exeext conftest.$ac_ext
16937 LIBS="$gt_save_LIBS"
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16940 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16941 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16943 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16947 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16948 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16960 case " $gt_needs " in
16961 *" need-formatstring-macros "*) gt_api_version=3 ;;
16962 *" need-ngettext "*) gt_api_version=2 ;;
16963 *) gt_api_version=1 ;;
16965 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
16966 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
16968 if test "$USE_NLS" = "yes"; then
16969 gt_use_preinstalled_gnugettext=no
16972 if test $gt_api_version -ge 3; then
16973 gt_revision_test_code='
16974 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16975 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
16977 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
16980 gt_revision_test_code=
16982 if test $gt_api_version -ge 2; then
16983 gt_expression_test_code=' + * ngettext ("", "", 0)'
16985 gt_expression_test_code=
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
16989 $as_echo_n "checking for GNU gettext in libc... " >&6; }
16990 if eval \${$gt_func_gnugettext_libc+:} false; then :
16991 $as_echo_n "(cached) " >&6
16993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994 /* end confdefs.h. */
16995 #include <libintl.h>
16996 $gt_revision_test_code
16997 extern int _nl_msg_cat_cntr;
16998 extern int *_nl_domain_bindings;
17002 bindtextdomain ("", "");
17003 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
17008 if ac_fn_c_try_link "$LINENO"; then :
17009 eval "$gt_func_gnugettext_libc=yes"
17011 eval "$gt_func_gnugettext_libc=no"
17013 rm -f core conftest.err conftest.$ac_objext \
17014 conftest$ac_exeext conftest.$ac_ext
17016 eval ac_res=\$$gt_func_gnugettext_libc
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17018 $as_echo "$ac_res" >&6; }
17020 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
17026 am_save_CPPFLAGS="$CPPFLAGS"
17028 for element in $INCICONV; do
17030 for x in $CPPFLAGS; do
17032 acl_save_prefix="$prefix"
17033 prefix="$acl_final_prefix"
17034 acl_save_exec_prefix="$exec_prefix"
17035 exec_prefix="$acl_final_exec_prefix"
17037 exec_prefix="$acl_save_exec_prefix"
17038 prefix="$acl_save_prefix"
17040 if test "X$x" = "X$element"; then
17045 if test -z "$haveit"; then
17046 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17052 $as_echo_n "checking for iconv... " >&6; }
17053 if ${am_cv_func_iconv+:} false; then :
17054 $as_echo_n "(cached) " >&6
17057 am_cv_func_iconv="no, consider installing GNU libiconv"
17059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17060 /* end confdefs.h. */
17061 #include <stdlib.h>
17066 iconv_t cd = iconv_open("","");
17067 iconv(cd,NULL,NULL,NULL,NULL);
17073 if ac_fn_c_try_link "$LINENO"; then :
17074 am_cv_func_iconv=yes
17076 rm -f core conftest.err conftest.$ac_objext \
17077 conftest$ac_exeext conftest.$ac_ext
17078 if test "$am_cv_func_iconv" != yes; then
17079 am_save_LIBS="$LIBS"
17080 LIBS="$LIBS $LIBICONV"
17081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082 /* end confdefs.h. */
17083 #include <stdlib.h>
17088 iconv_t cd = iconv_open("","");
17089 iconv(cd,NULL,NULL,NULL,NULL);
17095 if ac_fn_c_try_link "$LINENO"; then :
17096 am_cv_lib_iconv=yes
17097 am_cv_func_iconv=yes
17099 rm -f core conftest.err conftest.$ac_objext \
17100 conftest$ac_exeext conftest.$ac_ext
17101 LIBS="$am_save_LIBS"
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17106 $as_echo "$am_cv_func_iconv" >&6; }
17107 if test "$am_cv_func_iconv" = yes; then
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17109 $as_echo_n "checking for working iconv... " >&6; }
17110 if ${am_cv_func_iconv_works+:} false; then :
17111 $as_echo_n "(cached) " >&6
17114 am_save_LIBS="$LIBS"
17115 if test $am_cv_lib_iconv = yes; then
17116 LIBS="$LIBS $LIBICONV"
17118 if test "$cross_compiling" = yes; then :
17120 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17121 *) am_cv_func_iconv_works="guessing yes" ;;
17124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17125 /* end confdefs.h. */
17128 #include <string.h>
17131 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
17134 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17135 if (cd_utf8_to_88591 != (iconv_t)(-1))
17137 static const char input[] = "\342\202\254"; /* EURO SIGN */
17139 const char *inptr = input;
17140 size_t inbytesleft = strlen (input);
17141 char *outptr = buf;
17142 size_t outbytesleft = sizeof (buf);
17143 size_t res = iconv (cd_utf8_to_88591,
17144 (char **) &inptr, &inbytesleft,
17145 &outptr, &outbytesleft);
17150 #if 0 /* This bug could be worked around by the caller. */
17151 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
17153 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17154 if (cd_88591_to_utf8 != (iconv_t)(-1))
17156 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17158 const char *inptr = input;
17159 size_t inbytesleft = strlen (input);
17160 char *outptr = buf;
17161 size_t outbytesleft = sizeof (buf);
17162 size_t res = iconv (cd_88591_to_utf8,
17163 (char **) &inptr, &inbytesleft,
17164 &outptr, &outbytesleft);
17170 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17172 if (/* Try standardized names. */
17173 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
17174 /* Try IRIX, OSF/1 names. */
17175 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
17176 /* Try AIX names. */
17177 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
17178 /* Try HP-UX names. */
17179 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
17184 if ac_fn_c_try_run "$LINENO"; then :
17185 am_cv_func_iconv_works=yes
17187 am_cv_func_iconv_works=no
17189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17190 conftest.$ac_objext conftest.beam conftest.$ac_ext
17193 LIBS="$am_save_LIBS"
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17197 $as_echo "$am_cv_func_iconv_works" >&6; }
17198 case "$am_cv_func_iconv_works" in
17199 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17200 *) am_func_iconv=yes ;;
17203 am_func_iconv=no am_cv_lib_iconv=no
17205 if test "$am_func_iconv" = yes; then
17207 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17210 if test "$am_cv_lib_iconv" = yes; then
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17212 $as_echo_n "checking how to link with libiconv... " >&6; }
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17214 $as_echo "$LIBICONV" >&6; }
17216 CPPFLAGS="$am_save_CPPFLAGS"
17230 acl_save_prefix="$prefix"
17231 prefix="$acl_final_prefix"
17232 acl_save_exec_prefix="$exec_prefix"
17233 exec_prefix="$acl_final_exec_prefix"
17235 eval additional_includedir=\"$includedir\"
17236 eval additional_libdir=\"$libdir\"
17238 exec_prefix="$acl_save_exec_prefix"
17239 prefix="$acl_save_prefix"
17242 # Check whether --with-libintl-prefix was given.
17243 if test "${with_libintl_prefix+set}" = set; then :
17244 withval=$with_libintl_prefix;
17245 if test "X$withval" = "Xno"; then
17248 if test "X$withval" = "X"; then
17250 acl_save_prefix="$prefix"
17251 prefix="$acl_final_prefix"
17252 acl_save_exec_prefix="$exec_prefix"
17253 exec_prefix="$acl_final_exec_prefix"
17255 eval additional_includedir=\"$includedir\"
17256 eval additional_libdir=\"$libdir\"
17258 exec_prefix="$acl_save_exec_prefix"
17259 prefix="$acl_save_prefix"
17262 additional_includedir="$withval/include"
17263 additional_libdir="$withval/$acl_libdirstem"
17275 names_already_handled=
17276 names_next_round='intl '
17277 while test -n "$names_next_round"; do
17278 names_this_round="$names_next_round"
17280 for name in $names_this_round; do
17282 for n in $names_already_handled; do
17283 if test "$n" = "$name"; then
17284 already_handled=yes
17288 if test -z "$already_handled"; then
17289 names_already_handled="$names_already_handled $name"
17290 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17291 eval value=\"\$HAVE_LIB$uppername\"
17292 if test -n "$value"; then
17293 if test "$value" = yes; then
17294 eval value=\"\$LIB$uppername\"
17295 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17296 eval value=\"\$LTLIB$uppername\"
17297 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17306 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
17307 if test -n "$acl_shlibext"; then
17308 shrext=".$acl_shlibext" # typically: shrext=.so
17312 if test $use_additional = yes; then
17313 dir="$additional_libdir"
17314 if test -n "$acl_shlibext"; then
17315 if test -f "$dir/$libname$shrext"; then
17317 found_so="$dir/$libname$shrext"
17319 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17320 ver=`(cd "$dir" && \
17321 for f in "$libname$shrext".*; do echo "$f"; done \
17322 | sed -e "s,^$libname$shrext\\\\.,," \
17323 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17324 | sed 1q ) 2>/dev/null`
17325 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17327 found_so="$dir/$libname$shrext.$ver"
17330 eval library_names=\"$acl_library_names_spec\"
17331 for f in $library_names; do
17332 if test -f "$dir/$f"; then
17341 if test "X$found_dir" = "X"; then
17342 if test -f "$dir/$libname.$acl_libext"; then
17344 found_a="$dir/$libname.$acl_libext"
17347 if test "X$found_dir" != "X"; then
17348 if test -f "$dir/$libname.la"; then
17349 found_la="$dir/$libname.la"
17353 if test "X$found_dir" = "X"; then
17354 for x in $LDFLAGS $LTLIBINTL; do
17356 acl_save_prefix="$prefix"
17357 prefix="$acl_final_prefix"
17358 acl_save_exec_prefix="$exec_prefix"
17359 exec_prefix="$acl_final_exec_prefix"
17361 exec_prefix="$acl_save_exec_prefix"
17362 prefix="$acl_save_prefix"
17366 dir=`echo "X$x" | sed -e 's/^X-L//'`
17367 if test -n "$acl_shlibext"; then
17368 if test -f "$dir/$libname$shrext"; then
17370 found_so="$dir/$libname$shrext"
17372 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17373 ver=`(cd "$dir" && \
17374 for f in "$libname$shrext".*; do echo "$f"; done \
17375 | sed -e "s,^$libname$shrext\\\\.,," \
17376 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17377 | sed 1q ) 2>/dev/null`
17378 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17380 found_so="$dir/$libname$shrext.$ver"
17383 eval library_names=\"$acl_library_names_spec\"
17384 for f in $library_names; do
17385 if test -f "$dir/$f"; then
17394 if test "X$found_dir" = "X"; then
17395 if test -f "$dir/$libname.$acl_libext"; then
17397 found_a="$dir/$libname.$acl_libext"
17400 if test "X$found_dir" != "X"; then
17401 if test -f "$dir/$libname.la"; then
17402 found_la="$dir/$libname.la"
17407 if test "X$found_dir" != "X"; then
17412 if test "X$found_dir" != "X"; then
17413 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17414 if test "X$found_so" != "X"; then
17415 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
17416 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17419 for x in $ltrpathdirs; do
17420 if test "X$x" = "X$found_dir"; then
17425 if test -z "$haveit"; then
17426 ltrpathdirs="$ltrpathdirs $found_dir"
17428 if test "$acl_hardcode_direct" = yes; then
17429 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17431 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17432 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17434 for x in $rpathdirs; do
17435 if test "X$x" = "X$found_dir"; then
17440 if test -z "$haveit"; then
17441 rpathdirs="$rpathdirs $found_dir"
17445 for x in $LDFLAGS $LIBINTL; do
17447 acl_save_prefix="$prefix"
17448 prefix="$acl_final_prefix"
17449 acl_save_exec_prefix="$exec_prefix"
17450 exec_prefix="$acl_final_exec_prefix"
17452 exec_prefix="$acl_save_exec_prefix"
17453 prefix="$acl_save_prefix"
17455 if test "X$x" = "X-L$found_dir"; then
17460 if test -z "$haveit"; then
17461 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17463 if test "$acl_hardcode_minus_L" != no; then
17464 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17466 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17472 if test "X$found_a" != "X"; then
17473 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17475 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17478 additional_includedir=
17479 case "$found_dir" in
17480 */$acl_libdirstem | */$acl_libdirstem/)
17481 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17482 LIBINTL_PREFIX="$basedir"
17483 additional_includedir="$basedir/include"
17486 if test "X$additional_includedir" != "X"; then
17487 if test "X$additional_includedir" != "X/usr/include"; then
17489 if test "X$additional_includedir" = "X/usr/local/include"; then
17490 if test -n "$GCC"; then
17492 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17496 if test -z "$haveit"; then
17497 for x in $CPPFLAGS $INCINTL; do
17499 acl_save_prefix="$prefix"
17500 prefix="$acl_final_prefix"
17501 acl_save_exec_prefix="$exec_prefix"
17502 exec_prefix="$acl_final_exec_prefix"
17504 exec_prefix="$acl_save_exec_prefix"
17505 prefix="$acl_save_prefix"
17507 if test "X$x" = "X-I$additional_includedir"; then
17512 if test -z "$haveit"; then
17513 if test -d "$additional_includedir"; then
17514 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17520 if test -n "$found_la"; then
17521 save_libdir="$libdir"
17522 case "$found_la" in
17523 */* | *\\*) . "$found_la" ;;
17524 *) . "./$found_la" ;;
17526 libdir="$save_libdir"
17527 for dep in $dependency_libs; do
17530 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17531 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
17533 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
17534 if test -n "$GCC"; then
17536 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17540 if test -z "$haveit"; then
17542 for x in $LDFLAGS $LIBINTL; do
17544 acl_save_prefix="$prefix"
17545 prefix="$acl_final_prefix"
17546 acl_save_exec_prefix="$exec_prefix"
17547 exec_prefix="$acl_final_exec_prefix"
17549 exec_prefix="$acl_save_exec_prefix"
17550 prefix="$acl_save_prefix"
17552 if test "X$x" = "X-L$additional_libdir"; then
17557 if test -z "$haveit"; then
17558 if test -d "$additional_libdir"; then
17559 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17563 for x in $LDFLAGS $LTLIBINTL; do
17565 acl_save_prefix="$prefix"
17566 prefix="$acl_final_prefix"
17567 acl_save_exec_prefix="$exec_prefix"
17568 exec_prefix="$acl_final_exec_prefix"
17570 exec_prefix="$acl_save_exec_prefix"
17571 prefix="$acl_save_prefix"
17573 if test "X$x" = "X-L$additional_libdir"; then
17578 if test -z "$haveit"; then
17579 if test -d "$additional_libdir"; then
17580 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17587 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17588 if test "$enable_rpath" != no; then
17590 for x in $rpathdirs; do
17591 if test "X$x" = "X$dir"; then
17596 if test -z "$haveit"; then
17597 rpathdirs="$rpathdirs $dir"
17600 for x in $ltrpathdirs; do
17601 if test "X$x" = "X$dir"; then
17606 if test -z "$haveit"; then
17607 ltrpathdirs="$ltrpathdirs $dir"
17612 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17615 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17618 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17619 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17625 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17626 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17632 if test "X$rpathdirs" != "X"; then
17633 if test -n "$acl_hardcode_libdir_separator"; then
17635 for found_dir in $rpathdirs; do
17636 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17638 acl_save_libdir="$libdir"
17640 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17641 libdir="$acl_save_libdir"
17642 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17644 for found_dir in $rpathdirs; do
17645 acl_save_libdir="$libdir"
17646 libdir="$found_dir"
17647 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17648 libdir="$acl_save_libdir"
17649 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17653 if test "X$ltrpathdirs" != "X"; then
17654 for found_dir in $ltrpathdirs; do
17655 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17660 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17661 if eval \${$gt_func_gnugettext_libintl+:} false; then :
17662 $as_echo_n "(cached) " >&6
17664 gt_save_CPPFLAGS="$CPPFLAGS"
17665 CPPFLAGS="$CPPFLAGS $INCINTL"
17666 gt_save_LIBS="$LIBS"
17667 LIBS="$LIBS $LIBINTL"
17668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17669 /* end confdefs.h. */
17670 #include <libintl.h>
17671 $gt_revision_test_code
17672 extern int _nl_msg_cat_cntr;
17677 const char *_nl_expand_alias (const char *);
17681 bindtextdomain ("", "");
17682 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17687 if ac_fn_c_try_link "$LINENO"; then :
17688 eval "$gt_func_gnugettext_libintl=yes"
17690 eval "$gt_func_gnugettext_libintl=no"
17692 rm -f core conftest.err conftest.$ac_objext \
17693 conftest$ac_exeext conftest.$ac_ext
17694 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
17695 LIBS="$LIBS $LIBICONV"
17696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17697 /* end confdefs.h. */
17698 #include <libintl.h>
17699 $gt_revision_test_code
17700 extern int _nl_msg_cat_cntr;
17705 const char *_nl_expand_alias (const char *);
17709 bindtextdomain ("", "");
17710 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17715 if ac_fn_c_try_link "$LINENO"; then :
17716 LIBINTL="$LIBINTL $LIBICONV"
17717 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17718 eval "$gt_func_gnugettext_libintl=yes"
17721 rm -f core conftest.err conftest.$ac_objext \
17722 conftest$ac_exeext conftest.$ac_ext
17724 CPPFLAGS="$gt_save_CPPFLAGS"
17725 LIBS="$gt_save_LIBS"
17727 eval ac_res=\$$gt_func_gnugettext_libintl
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17729 $as_echo "$ac_res" >&6; }
17732 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
17733 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
17734 && test "$PACKAGE" != gettext-runtime \
17735 && test "$PACKAGE" != gettext-tools; }; then
17736 gt_use_preinstalled_gnugettext=yes
17745 if test -n "$INTL_MACOSX_LIBS"; then
17746 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17747 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17748 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17749 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17753 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17754 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17756 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17764 $as_echo_n "checking whether to use NLS... " >&6; }
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17766 $as_echo "$USE_NLS" >&6; }
17767 if test "$USE_NLS" = "yes"; then
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17769 $as_echo_n "checking where the gettext function comes from... " >&6; }
17770 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17771 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
17772 gt_source="external libintl"
17777 gt_source="included intl directory"
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17780 $as_echo "$gt_source" >&6; }
17783 if test "$USE_NLS" = "yes"; then
17785 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17786 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17788 $as_echo_n "checking how to link with libintl... " >&6; }
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17790 $as_echo "$LIBINTL" >&6; }
17792 for element in $INCINTL; do
17794 for x in $CPPFLAGS; do
17796 acl_save_prefix="$prefix"
17797 prefix="$acl_final_prefix"
17798 acl_save_exec_prefix="$exec_prefix"
17799 exec_prefix="$acl_final_exec_prefix"
17801 exec_prefix="$acl_save_exec_prefix"
17802 prefix="$acl_save_prefix"
17804 if test "X$x" = "X$element"; then
17809 if test -z "$haveit"; then
17810 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17817 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17820 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17829 INTLLIBS="$LIBINTL"
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17839 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17840 if ${ac_cv_c_bigendian+:} false; then :
17841 $as_echo_n "(cached) " >&6
17843 ac_cv_c_bigendian=unknown
17844 # See if we're dealing with a universal compiler.
17845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17846 /* end confdefs.h. */
17847 #ifndef __APPLE_CC__
17848 not a universal capable compiler
17853 if ac_fn_c_try_compile "$LINENO"; then :
17855 # Check for potential -arch flags. It is not universal unless
17856 # there are at least two -arch flags with different values.
17859 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17860 if test -n "$ac_prev"; then
17862 i?86 | x86_64 | ppc | ppc64)
17863 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17866 ac_cv_c_bigendian=universal
17872 elif test "x$ac_word" = "x-arch"; then
17877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17878 if test $ac_cv_c_bigendian = unknown; then
17879 # See if sys/param.h defines the BYTE_ORDER macro.
17880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17881 /* end confdefs.h. */
17882 #include <sys/types.h>
17883 #include <sys/param.h>
17888 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17889 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17891 bogus endian macros
17898 if ac_fn_c_try_compile "$LINENO"; then :
17899 # It does; now see whether it defined to BIG_ENDIAN or not.
17900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17901 /* end confdefs.h. */
17902 #include <sys/types.h>
17903 #include <sys/param.h>
17908 #if BYTE_ORDER != BIG_ENDIAN
17916 if ac_fn_c_try_compile "$LINENO"; then :
17917 ac_cv_c_bigendian=yes
17919 ac_cv_c_bigendian=no
17921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17925 if test $ac_cv_c_bigendian = unknown; then
17926 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17928 /* end confdefs.h. */
17929 #include <limits.h>
17934 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17935 bogus endian macros
17942 if ac_fn_c_try_compile "$LINENO"; then :
17943 # It does; now see whether it defined to _BIG_ENDIAN or not.
17944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17945 /* end confdefs.h. */
17946 #include <limits.h>
17951 #ifndef _BIG_ENDIAN
17959 if ac_fn_c_try_compile "$LINENO"; then :
17960 ac_cv_c_bigendian=yes
17962 ac_cv_c_bigendian=no
17964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17968 if test $ac_cv_c_bigendian = unknown; then
17969 # Compile a test program.
17970 if test "$cross_compiling" = yes; then :
17971 # Try to guess by grepping values from an object file.
17972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17973 /* end confdefs.h. */
17974 short int ascii_mm[] =
17975 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17976 short int ascii_ii[] =
17977 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17978 int use_ascii (int i) {
17979 return ascii_mm[i] + ascii_ii[i];
17981 short int ebcdic_ii[] =
17982 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17983 short int ebcdic_mm[] =
17984 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17985 int use_ebcdic (int i) {
17986 return ebcdic_mm[i] + ebcdic_ii[i];
17993 return use_ascii (foo) == use_ebcdic (foo);
17998 if ac_fn_c_try_compile "$LINENO"; then :
17999 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18000 ac_cv_c_bigendian=yes
18002 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18003 if test "$ac_cv_c_bigendian" = unknown; then
18004 ac_cv_c_bigendian=no
18006 # finding both strings is unlikely to happen, but who knows?
18007 ac_cv_c_bigendian=unknown
18011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18014 /* end confdefs.h. */
18015 $ac_includes_default
18020 /* Are we little or big endian? From Harbison&Steele. */
18024 char c[sizeof (long int)];
18027 return u.c[sizeof (long int) - 1] == 1;
18033 if ac_fn_c_try_run "$LINENO"; then :
18034 ac_cv_c_bigendian=no
18036 ac_cv_c_bigendian=yes
18038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18039 conftest.$ac_objext conftest.beam conftest.$ac_ext
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18045 $as_echo "$ac_cv_c_bigendian" >&6; }
18046 case $ac_cv_c_bigendian in #(
18048 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
18054 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18058 as_fn_error $? "unknown endianness
18059 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18063 # For includes/gnutls/gnutls.h.in.
18064 MAJOR_VERSION=`echo $PACKAGE_VERSION | sed 's/\(.*\)\..*\..*/\1/g'`
18066 MINOR_VERSION=`echo $PACKAGE_VERSION | sed 's/.*\.\(.*\)\..*/\1/g'`
18068 PATCH_VERSION=`echo $PACKAGE_VERSION | sed 's/.*\..*\.\(.*\)/\1/g'`
18070 NUMBER_VERSION=`printf "0x%02x%02x%02x" $MAJOR_VERSION $MINOR_VERSION $PATCH_VERSION`
18072 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "
18073 #include <sys/types.h>
18076 if test "x$ac_cv_type_ssize_t" = xyes; then :
18078 DEFINE_SSIZE_T="#include <sys/types.h>"
18084 $as_echo "#define NO_SSIZE_T 1" >>confdefs.h
18086 DEFINE_SSIZE_T="typedef int ssize_t;"
18093 # The cast to long int works around a bug in the HP C Compiler
18094 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18095 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18096 # This bug is HP SR number 8606223364.
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long int" >&5
18098 $as_echo_n "checking size of unsigned long int... " >&6; }
18099 if ${ac_cv_sizeof_unsigned_long_int+:} false; then :
18100 $as_echo_n "(cached) " >&6
18102 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int" "$ac_includes_default"; then :
18105 if test "$ac_cv_type_unsigned_long_int" = yes; then
18106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18108 as_fn_error 77 "cannot compute sizeof (unsigned long int)
18109 See \`config.log' for more details" "$LINENO" 5; }
18111 ac_cv_sizeof_unsigned_long_int=0
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_int" >&5
18117 $as_echo "$ac_cv_sizeof_unsigned_long_int" >&6; }
18121 cat >>confdefs.h <<_ACEOF
18122 #define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
18126 # The cast to long int works around a bug in the HP C Compiler
18127 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18128 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18129 # This bug is HP SR number 8606223364.
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
18131 $as_echo_n "checking size of unsigned int... " >&6; }
18132 if ${ac_cv_sizeof_unsigned_int+:} false; then :
18133 $as_echo_n "(cached) " >&6
18135 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
18138 if test "$ac_cv_type_unsigned_int" = yes; then
18139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18141 as_fn_error 77 "cannot compute sizeof (unsigned int)
18142 See \`config.log' for more details" "$LINENO" 5; }
18144 ac_cv_sizeof_unsigned_int=0
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
18150 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
18154 cat >>confdefs.h <<_ACEOF
18155 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
18161 # Check whether --with-zlib was given.
18162 if test "${with_zlib+set}" = set; then :
18163 withval=$with_zlib; ac_zlib=$withval
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include zlib compression support" >&5
18169 $as_echo_n "checking whether to include zlib compression support... " >&6; }
18170 if test x$ac_zlib != xno; then
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18172 $as_echo "yes" >&6; }
18185 acl_save_prefix="$prefix"
18186 prefix="$acl_final_prefix"
18187 acl_save_exec_prefix="$exec_prefix"
18188 exec_prefix="$acl_final_exec_prefix"
18190 eval additional_includedir=\"$includedir\"
18191 eval additional_libdir=\"$libdir\"
18193 exec_prefix="$acl_save_exec_prefix"
18194 prefix="$acl_save_prefix"
18197 # Check whether --with-libz-prefix was given.
18198 if test "${with_libz_prefix+set}" = set; then :
18199 withval=$with_libz_prefix;
18200 if test "X$withval" = "Xno"; then
18203 if test "X$withval" = "X"; then
18205 acl_save_prefix="$prefix"
18206 prefix="$acl_final_prefix"
18207 acl_save_exec_prefix="$exec_prefix"
18208 exec_prefix="$acl_final_exec_prefix"
18210 eval additional_includedir=\"$includedir\"
18211 eval additional_libdir=\"$libdir\"
18213 exec_prefix="$acl_save_exec_prefix"
18214 prefix="$acl_save_prefix"
18217 additional_includedir="$withval/include"
18218 additional_libdir="$withval/$acl_libdirstem"
18230 names_already_handled=
18231 names_next_round='z '
18232 while test -n "$names_next_round"; do
18233 names_this_round="$names_next_round"
18235 for name in $names_this_round; do
18237 for n in $names_already_handled; do
18238 if test "$n" = "$name"; then
18239 already_handled=yes
18243 if test -z "$already_handled"; then
18244 names_already_handled="$names_already_handled $name"
18245 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18246 eval value=\"\$HAVE_LIB$uppername\"
18247 if test -n "$value"; then
18248 if test "$value" = yes; then
18249 eval value=\"\$LIB$uppername\"
18250 test -z "$value" || LIBZ="${LIBZ}${LIBZ:+ }$value"
18251 eval value=\"\$LTLIB$uppername\"
18252 test -z "$value" || LTLIBZ="${LTLIBZ}${LTLIBZ:+ }$value"
18261 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
18262 if test -n "$acl_shlibext"; then
18263 shrext=".$acl_shlibext" # typically: shrext=.so
18267 if test $use_additional = yes; then
18268 dir="$additional_libdir"
18269 if test -n "$acl_shlibext"; then
18270 if test -f "$dir/$libname$shrext"; then
18272 found_so="$dir/$libname$shrext"
18274 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18275 ver=`(cd "$dir" && \
18276 for f in "$libname$shrext".*; do echo "$f"; done \
18277 | sed -e "s,^$libname$shrext\\\\.,," \
18278 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18279 | sed 1q ) 2>/dev/null`
18280 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18282 found_so="$dir/$libname$shrext.$ver"
18285 eval library_names=\"$acl_library_names_spec\"
18286 for f in $library_names; do
18287 if test -f "$dir/$f"; then
18296 if test "X$found_dir" = "X"; then
18297 if test -f "$dir/$libname.$acl_libext"; then
18299 found_a="$dir/$libname.$acl_libext"
18302 if test "X$found_dir" != "X"; then
18303 if test -f "$dir/$libname.la"; then
18304 found_la="$dir/$libname.la"
18308 if test "X$found_dir" = "X"; then
18309 for x in $LDFLAGS $LTLIBZ; do
18311 acl_save_prefix="$prefix"
18312 prefix="$acl_final_prefix"
18313 acl_save_exec_prefix="$exec_prefix"
18314 exec_prefix="$acl_final_exec_prefix"
18316 exec_prefix="$acl_save_exec_prefix"
18317 prefix="$acl_save_prefix"
18321 dir=`echo "X$x" | sed -e 's/^X-L//'`
18322 if test -n "$acl_shlibext"; then
18323 if test -f "$dir/$libname$shrext"; then
18325 found_so="$dir/$libname$shrext"
18327 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18328 ver=`(cd "$dir" && \
18329 for f in "$libname$shrext".*; do echo "$f"; done \
18330 | sed -e "s,^$libname$shrext\\\\.,," \
18331 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18332 | sed 1q ) 2>/dev/null`
18333 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18335 found_so="$dir/$libname$shrext.$ver"
18338 eval library_names=\"$acl_library_names_spec\"
18339 for f in $library_names; do
18340 if test -f "$dir/$f"; then
18349 if test "X$found_dir" = "X"; then
18350 if test -f "$dir/$libname.$acl_libext"; then
18352 found_a="$dir/$libname.$acl_libext"
18355 if test "X$found_dir" != "X"; then
18356 if test -f "$dir/$libname.la"; then
18357 found_la="$dir/$libname.la"
18362 if test "X$found_dir" != "X"; then
18367 if test "X$found_dir" != "X"; then
18368 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-L$found_dir -l$name"
18369 if test "X$found_so" != "X"; then
18370 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
18371 LIBZ="${LIBZ}${LIBZ:+ }$found_so"
18374 for x in $ltrpathdirs; do
18375 if test "X$x" = "X$found_dir"; then
18380 if test -z "$haveit"; then
18381 ltrpathdirs="$ltrpathdirs $found_dir"
18383 if test "$acl_hardcode_direct" = yes; then
18384 LIBZ="${LIBZ}${LIBZ:+ }$found_so"
18386 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18387 LIBZ="${LIBZ}${LIBZ:+ }$found_so"
18389 for x in $rpathdirs; do
18390 if test "X$x" = "X$found_dir"; then
18395 if test -z "$haveit"; then
18396 rpathdirs="$rpathdirs $found_dir"
18400 for x in $LDFLAGS $LIBZ; do
18402 acl_save_prefix="$prefix"
18403 prefix="$acl_final_prefix"
18404 acl_save_exec_prefix="$exec_prefix"
18405 exec_prefix="$acl_final_exec_prefix"
18407 exec_prefix="$acl_save_exec_prefix"
18408 prefix="$acl_save_prefix"
18410 if test "X$x" = "X-L$found_dir"; then
18415 if test -z "$haveit"; then
18416 LIBZ="${LIBZ}${LIBZ:+ }-L$found_dir"
18418 if test "$acl_hardcode_minus_L" != no; then
18419 LIBZ="${LIBZ}${LIBZ:+ }$found_so"
18421 LIBZ="${LIBZ}${LIBZ:+ }-l$name"
18427 if test "X$found_a" != "X"; then
18428 LIBZ="${LIBZ}${LIBZ:+ }$found_a"
18430 LIBZ="${LIBZ}${LIBZ:+ }-L$found_dir -l$name"
18433 additional_includedir=
18434 case "$found_dir" in
18435 */$acl_libdirstem | */$acl_libdirstem/)
18436 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18437 LIBZ_PREFIX="$basedir"
18438 additional_includedir="$basedir/include"
18441 if test "X$additional_includedir" != "X"; then
18442 if test "X$additional_includedir" != "X/usr/include"; then
18444 if test "X$additional_includedir" = "X/usr/local/include"; then
18445 if test -n "$GCC"; then
18447 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18451 if test -z "$haveit"; then
18452 for x in $CPPFLAGS $INCZ; do
18454 acl_save_prefix="$prefix"
18455 prefix="$acl_final_prefix"
18456 acl_save_exec_prefix="$exec_prefix"
18457 exec_prefix="$acl_final_exec_prefix"
18459 exec_prefix="$acl_save_exec_prefix"
18460 prefix="$acl_save_prefix"
18462 if test "X$x" = "X-I$additional_includedir"; then
18467 if test -z "$haveit"; then
18468 if test -d "$additional_includedir"; then
18469 INCZ="${INCZ}${INCZ:+ }-I$additional_includedir"
18475 if test -n "$found_la"; then
18476 save_libdir="$libdir"
18477 case "$found_la" in
18478 */* | *\\*) . "$found_la" ;;
18479 *) . "./$found_la" ;;
18481 libdir="$save_libdir"
18482 for dep in $dependency_libs; do
18485 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18486 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
18488 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
18489 if test -n "$GCC"; then
18491 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18495 if test -z "$haveit"; then
18497 for x in $LDFLAGS $LIBZ; do
18499 acl_save_prefix="$prefix"
18500 prefix="$acl_final_prefix"
18501 acl_save_exec_prefix="$exec_prefix"
18502 exec_prefix="$acl_final_exec_prefix"
18504 exec_prefix="$acl_save_exec_prefix"
18505 prefix="$acl_save_prefix"
18507 if test "X$x" = "X-L$additional_libdir"; then
18512 if test -z "$haveit"; then
18513 if test -d "$additional_libdir"; then
18514 LIBZ="${LIBZ}${LIBZ:+ }-L$additional_libdir"
18518 for x in $LDFLAGS $LTLIBZ; do
18520 acl_save_prefix="$prefix"
18521 prefix="$acl_final_prefix"
18522 acl_save_exec_prefix="$exec_prefix"
18523 exec_prefix="$acl_final_exec_prefix"
18525 exec_prefix="$acl_save_exec_prefix"
18526 prefix="$acl_save_prefix"
18528 if test "X$x" = "X-L$additional_libdir"; then
18533 if test -z "$haveit"; then
18534 if test -d "$additional_libdir"; then
18535 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-L$additional_libdir"
18542 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18543 if test "$enable_rpath" != no; then
18545 for x in $rpathdirs; do
18546 if test "X$x" = "X$dir"; then
18551 if test -z "$haveit"; then
18552 rpathdirs="$rpathdirs $dir"
18555 for x in $ltrpathdirs; do
18556 if test "X$x" = "X$dir"; then
18561 if test -z "$haveit"; then
18562 ltrpathdirs="$ltrpathdirs $dir"
18567 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18570 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18573 LIBZ="${LIBZ}${LIBZ:+ }$dep"
18574 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }$dep"
18580 LIBZ="${LIBZ}${LIBZ:+ }-l$name"
18581 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-l$name"
18587 if test "X$rpathdirs" != "X"; then
18588 if test -n "$acl_hardcode_libdir_separator"; then
18590 for found_dir in $rpathdirs; do
18591 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18593 acl_save_libdir="$libdir"
18595 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18596 libdir="$acl_save_libdir"
18597 LIBZ="${LIBZ}${LIBZ:+ }$flag"
18599 for found_dir in $rpathdirs; do
18600 acl_save_libdir="$libdir"
18601 libdir="$found_dir"
18602 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18603 libdir="$acl_save_libdir"
18604 LIBZ="${LIBZ}${LIBZ:+ }$flag"
18608 if test "X$ltrpathdirs" != "X"; then
18609 for found_dir in $ltrpathdirs; do
18610 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-R$found_dir"
18615 ac_save_CPPFLAGS="$CPPFLAGS"
18617 for element in $INCZ; do
18619 for x in $CPPFLAGS; do
18621 acl_save_prefix="$prefix"
18622 prefix="$acl_final_prefix"
18623 acl_save_exec_prefix="$exec_prefix"
18624 exec_prefix="$acl_final_exec_prefix"
18626 exec_prefix="$acl_save_exec_prefix"
18627 prefix="$acl_save_prefix"
18629 if test "X$x" = "X$element"; then
18634 if test -z "$haveit"; then
18635 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libz" >&5
18641 $as_echo_n "checking for libz... " >&6; }
18642 if ${ac_cv_libz+:} false; then :
18643 $as_echo_n "(cached) " >&6
18646 ac_save_LIBS="$LIBS"
18648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18649 /* end confdefs.h. */
18654 compress (0, 0, 0, 0);
18659 if ac_fn_c_try_link "$LINENO"; then :
18664 rm -f core conftest.err conftest.$ac_objext \
18665 conftest$ac_exeext conftest.$ac_ext
18666 LIBS="$ac_save_LIBS"
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libz" >&5
18670 $as_echo "$ac_cv_libz" >&6; }
18671 if test "$ac_cv_libz" = yes; then
18674 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libz" >&5
18677 $as_echo_n "checking how to link with libz... " >&6; }
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBZ" >&5
18679 $as_echo "$LIBZ" >&6; }
18682 CPPFLAGS="$ac_save_CPPFLAGS"
18694 if test "$ac_cv_libz" != yes; then
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***
18696 *** ZLIB was not found. You will not be able to use ZLIB compression." >&5
18697 $as_echo "$as_me: WARNING: ***
18698 *** ZLIB was not found. You will not be able to use ZLIB compression." >&2;}
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18702 $as_echo "no" >&6; }
18712 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18713 if test -n "$ac_tool_prefix"; then
18714 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18715 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18717 $as_echo_n "checking for $ac_word... " >&6; }
18718 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18719 $as_echo_n "(cached) " >&6
18721 case $PKG_CONFIG in
18723 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18727 for as_dir in $PATH
18730 test -z "$as_dir" && as_dir=.
18731 for ac_exec_ext in '' $ac_executable_extensions; do
18732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18733 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18744 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18745 if test -n "$PKG_CONFIG"; then
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18747 $as_echo "$PKG_CONFIG" >&6; }
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18750 $as_echo "no" >&6; }
18755 if test -z "$ac_cv_path_PKG_CONFIG"; then
18756 ac_pt_PKG_CONFIG=$PKG_CONFIG
18757 # Extract the first word of "pkg-config", so it can be a program name with args.
18758 set dummy pkg-config; ac_word=$2
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18760 $as_echo_n "checking for $ac_word... " >&6; }
18761 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18762 $as_echo_n "(cached) " >&6
18764 case $ac_pt_PKG_CONFIG in
18766 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18770 for as_dir in $PATH
18773 test -z "$as_dir" && as_dir=.
18774 for ac_exec_ext in '' $ac_executable_extensions; do
18775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18776 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18787 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18788 if test -n "$ac_pt_PKG_CONFIG"; then
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18790 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18793 $as_echo "no" >&6; }
18796 if test "x$ac_pt_PKG_CONFIG" = x; then
18799 case $cross_compiling:$ac_tool_warned in
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18803 ac_tool_warned=yes ;;
18805 PKG_CONFIG=$ac_pt_PKG_CONFIG
18808 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18812 if test -n "$PKG_CONFIG"; then
18813 _pkg_min_version=0.9.0
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18815 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18816 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18818 $as_echo "yes" >&6; }
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18821 $as_echo "no" >&6; }
18825 if test -n "$PKG_CONFIG" && \
18826 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
18827 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
18829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18830 test $ac_status = 0; }; then
18831 ZLIB_HAS_PKGCONFIG=y
18833 ZLIB_HAS_PKGCONFIG=n
18836 if test x$ac_zlib != xno; then
18837 if test "$ZLIB_HAS_PKGCONFIG" = "y" ; then
18838 if test "x$GNUTLS_REQUIRES_PRIVATE" = "x"; then
18839 GNUTLS_REQUIRES_PRIVATE="Requires.private: zlib"
18841 GNUTLS_REQUIRES_PRIVATE="$GNUTLS_REQUIRES_PRIVATE , zlib"
18844 GNUTLS_ZLIB_LIBS_PRIVATE="$LTLIBZ"
18851 # Check whether --with-p11-kit was given.
18852 if test "${with_p11_kit+set}" = set; then :
18853 withval=$with_p11_kit;
18856 if test "$with_p11_kit" != "no"; then
18857 ENABLE_PKCS11_TRUE=
18858 ENABLE_PKCS11_FALSE='#'
18860 ENABLE_PKCS11_TRUE='#'
18861 ENABLE_PKCS11_FALSE=
18864 if test "$with_p11_kit" != "no"; then
18867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for P11_KIT" >&5
18868 $as_echo_n "checking for P11_KIT... " >&6; }
18870 if test -n "$P11_KIT_CFLAGS"; then
18871 pkg_cv_P11_KIT_CFLAGS="$P11_KIT_CFLAGS"
18872 elif test -n "$PKG_CONFIG"; then
18873 if test -n "$PKG_CONFIG" && \
18874 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1 >= 0.4\""; } >&5
18875 ($PKG_CONFIG --exists --print-errors "p11-kit-1 >= 0.4") 2>&5
18877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18878 test $ac_status = 0; }; then
18879 pkg_cv_P11_KIT_CFLAGS=`$PKG_CONFIG --cflags "p11-kit-1 >= 0.4" 2>/dev/null`
18880 test "x$?" != "x0" && pkg_failed=yes
18887 if test -n "$P11_KIT_LIBS"; then
18888 pkg_cv_P11_KIT_LIBS="$P11_KIT_LIBS"
18889 elif test -n "$PKG_CONFIG"; then
18890 if test -n "$PKG_CONFIG" && \
18891 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1 >= 0.4\""; } >&5
18892 ($PKG_CONFIG --exists --print-errors "p11-kit-1 >= 0.4") 2>&5
18894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18895 test $ac_status = 0; }; then
18896 pkg_cv_P11_KIT_LIBS=`$PKG_CONFIG --libs "p11-kit-1 >= 0.4" 2>/dev/null`
18897 test "x$?" != "x0" && pkg_failed=yes
18907 if test $pkg_failed = yes; then
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18909 $as_echo "no" >&6; }
18911 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18912 _pkg_short_errors_supported=yes
18914 _pkg_short_errors_supported=no
18916 if test $_pkg_short_errors_supported = yes; then
18917 P11_KIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "p11-kit-1 >= 0.4" 2>&1`
18919 P11_KIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "p11-kit-1 >= 0.4" 2>&1`
18921 # Put the nasty error message in config.log where it belongs
18922 echo "$P11_KIT_PKG_ERRORS" >&5
18925 elif test $pkg_failed = untried; then
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18927 $as_echo "no" >&6; }
18930 P11_KIT_CFLAGS=$pkg_cv_P11_KIT_CFLAGS
18931 P11_KIT_LIBS=$pkg_cv_P11_KIT_LIBS
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18933 $as_echo "yes" >&6; }
18936 if test "$with_p11_kit" != "no";then
18938 $as_echo "#define ENABLE_PKCS11 1" >>confdefs.h
18940 CFLAGS="$CFLAGS $P11_KIT_CFLAGS"
18941 LIBS="$LIBS $P11_KIT_LIBS"
18942 if test "x$GNUTLS_REQUIRES_PRIVATE" = "x"; then
18943 GNUTLS_REQUIRES_PRIVATE="Requires.private: p11-kit-1"
18945 GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, p11-kit-1"
18948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18950 *** p11-kit was not found. PKCS #11 support will be disabled.
18951 *** You may get it from http://p11-glue.freedesktop.org/p11-kit.html
18953 $as_echo "$as_me: WARNING:
18955 *** p11-kit was not found. PKCS #11 support will be disabled.
18956 *** You may get it from http://p11-glue.freedesktop.org/p11-kit.html
18966 LIBC_FATAL_STDERR_=1
18967 export LIBC_FATAL_STDERR_
18969 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18970 if test "x$ac_cv_type_size_t" = xyes; then :
18974 cat >>confdefs.h <<_ACEOF
18975 #define size_t unsigned int
18980 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18981 # for constant arguments. Useless!
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18983 $as_echo_n "checking for working alloca.h... " >&6; }
18984 if ${ac_cv_working_alloca_h+:} false; then :
18985 $as_echo_n "(cached) " >&6
18987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18988 /* end confdefs.h. */
18989 #include <alloca.h>
18993 char *p = (char *) alloca (2 * sizeof (int));
18999 if ac_fn_c_try_link "$LINENO"; then :
19000 ac_cv_working_alloca_h=yes
19002 ac_cv_working_alloca_h=no
19004 rm -f core conftest.err conftest.$ac_objext \
19005 conftest$ac_exeext conftest.$ac_ext
19007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19008 $as_echo "$ac_cv_working_alloca_h" >&6; }
19009 if test $ac_cv_working_alloca_h = yes; then
19011 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19016 $as_echo_n "checking for alloca... " >&6; }
19017 if ${ac_cv_func_alloca_works+:} false; then :
19018 $as_echo_n "(cached) " >&6
19020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19021 /* end confdefs.h. */
19023 # define alloca __builtin_alloca
19026 # include <malloc.h>
19027 # define alloca _alloca
19029 # ifdef HAVE_ALLOCA_H
19030 # include <alloca.h>
19035 # ifndef alloca /* predefined by HP cc +Olibcalls */
19036 void *alloca (size_t);
19046 char *p = (char *) alloca (1);
19052 if ac_fn_c_try_link "$LINENO"; then :
19053 ac_cv_func_alloca_works=yes
19055 ac_cv_func_alloca_works=no
19057 rm -f core conftest.err conftest.$ac_objext \
19058 conftest$ac_exeext conftest.$ac_ext
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19061 $as_echo "$ac_cv_func_alloca_works" >&6; }
19063 if test $ac_cv_func_alloca_works = yes; then
19065 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19068 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19069 # that cause trouble. Some versions do not even contain alloca or
19070 # contain a buggy version. If you still want to use their alloca,
19071 # use ar to extract alloca.o from them instead of compiling alloca.c.
19077 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19079 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
19083 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
19084 if ${ac_cv_os_cray+:} false; then :
19085 $as_echo_n "(cached) " >&6
19087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19088 /* end confdefs.h. */
19089 #if defined CRAY && ! defined CRAY2
19096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19097 $EGREP "webecray" >/dev/null 2>&1; then :
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19106 $as_echo "$ac_cv_os_cray" >&6; }
19107 if test $ac_cv_os_cray = yes; then
19108 for ac_func in _getb67 GETB67 getb67; do
19109 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19110 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19111 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19113 cat >>confdefs.h <<_ACEOF
19114 #define CRAY_STACKSEG_END $ac_func
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19124 $as_echo_n "checking stack direction for C alloca... " >&6; }
19125 if ${ac_cv_c_stack_direction+:} false; then :
19126 $as_echo_n "(cached) " >&6
19128 if test "$cross_compiling" = yes; then :
19129 ac_cv_c_stack_direction=0
19131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19132 /* end confdefs.h. */
19133 $ac_includes_default
19135 find_stack_direction (int *addr, int depth)
19137 int dir, dummy = 0;
19140 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19141 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19142 return dir + dummy;
19146 main (int argc, char **argv)
19148 return find_stack_direction (0, argc + !argv + 20) < 0;
19151 if ac_fn_c_try_run "$LINENO"; then :
19152 ac_cv_c_stack_direction=1
19154 ac_cv_c_stack_direction=-1
19156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19157 conftest.$ac_objext conftest.beam conftest.$ac_ext
19161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19162 $as_echo "$ac_cv_c_stack_direction" >&6; }
19163 cat >>confdefs.h <<_ACEOF
19164 #define STACK_DIRECTION $ac_cv_c_stack_direction
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
19173 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
19174 if ${gl_cv_have_include_next+:} false; then :
19175 $as_echo_n "(cached) " >&6
19177 rm -rf conftestd1a conftestd1b conftestd2
19178 mkdir conftestd1a conftestd1b conftestd2
19179 cat <<EOF > conftestd1a/conftest.h
19180 #define DEFINED_IN_CONFTESTD1
19181 #include_next <conftest.h>
19182 #ifdef DEFINED_IN_CONFTESTD2
19185 #error "include_next doesn't work"
19188 cat <<EOF > conftestd1b/conftest.h
19189 #define DEFINED_IN_CONFTESTD1
19191 #include_next <conftest.h>
19192 #ifdef DEFINED_IN_CONFTESTD2
19195 #error "include_next doesn't work"
19198 cat <<EOF > conftestd2/conftest.h
19199 #ifndef DEFINED_IN_CONFTESTD1
19200 #error "include_next test doesn't work"
19202 #define DEFINED_IN_CONFTESTD2
19204 gl_save_CPPFLAGS="$CPPFLAGS"
19205 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
19206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19207 /* end confdefs.h. */
19208 #include <conftest.h>
19210 if ac_fn_c_try_compile "$LINENO"; then :
19211 gl_cv_have_include_next=yes
19213 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
19214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19215 /* end confdefs.h. */
19216 #include <conftest.h>
19218 if ac_fn_c_try_compile "$LINENO"; then :
19219 gl_cv_have_include_next=buggy
19221 gl_cv_have_include_next=no
19223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19227 CPPFLAGS="$gl_save_CPPFLAGS"
19228 rm -rf conftestd1a conftestd1b conftestd2
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
19232 $as_echo "$gl_cv_have_include_next" >&6; }
19233 PRAGMA_SYSTEM_HEADER=
19234 if test $gl_cv_have_include_next = yes; then
19235 INCLUDE_NEXT=include_next
19236 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
19237 if test -n "$GCC"; then
19238 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
19241 if test $gl_cv_have_include_next = buggy; then
19242 INCLUDE_NEXT=include
19243 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
19245 INCLUDE_NEXT=include
19246 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
19253 $as_echo_n "checking whether system header files limit the line length... " >&6; }
19254 if ${gl_cv_pragma_columns+:} false; then :
19255 $as_echo_n "(cached) " >&6
19257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19258 /* end confdefs.h. */
19265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19266 $EGREP "choke me" >/dev/null 2>&1; then :
19267 gl_cv_pragma_columns=yes
19269 gl_cv_pragma_columns=no
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
19276 $as_echo "$gl_cv_pragma_columns" >&6; }
19277 if test $gl_cv_pragma_columns = yes; then
19278 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
19287 $as_echo_n "checking for complete errno.h... " >&6; }
19288 if ${gl_cv_header_errno_h_complete+:} false; then :
19289 $as_echo_n "(cached) " >&6
19292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19293 /* end confdefs.h. */
19296 #if !defined ENOMSG
19302 #if !defined ENOLINK
19305 #if !defined EPROTO
19308 #if !defined EMULTIHOP
19311 #if !defined EBADMSG
19314 #if !defined EOVERFLOW
19317 #if !defined ENOTSUP
19320 #if !defined ENETRESET
19323 #if !defined ECONNABORTED
19326 #if !defined ESTALE
19329 #if !defined EDQUOT
19332 #if !defined ECANCELED
19337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19338 $EGREP "booboo" >/dev/null 2>&1; then :
19339 gl_cv_header_errno_h_complete=no
19341 gl_cv_header_errno_h_complete=yes
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
19348 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
19349 if test $gl_cv_header_errno_h_complete = yes; then
19360 if test $gl_cv_have_include_next = yes; then
19361 gl_cv_next_errno_h='<'errno.h'>'
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
19364 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
19365 if ${gl_cv_next_errno_h+:} false; then :
19366 $as_echo_n "(cached) " >&6
19369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19370 /* end confdefs.h. */
19375 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19376 *) gl_absname_cpp="$ac_cpp" ;;
19381 gl_dirsep_regex='[/\\]'
19384 gl_dirsep_regex='\/'
19387 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19389 gl_header_literal_regex=`echo 'errno.h' \
19390 | sed -e "$gl_make_literal_regex_sed"`
19391 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19392 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19397 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19398 sed -n "$gl_absolute_header_sed"`'"'
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
19403 $as_echo "$gl_cv_next_errno_h" >&6; }
19405 NEXT_ERRNO_H=$gl_cv_next_errno_h
19407 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19408 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19409 gl_next_as_first_directive='<'errno.h'>'
19411 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19412 gl_next_as_first_directive=$gl_cv_next_errno_h
19414 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
19422 if test -n "$ERRNO_H"; then
19423 GL_GENERATE_ERRNO_H_TRUE=
19424 GL_GENERATE_ERRNO_H_FALSE='#'
19426 GL_GENERATE_ERRNO_H_TRUE='#'
19427 GL_GENERATE_ERRNO_H_FALSE=
19431 if test -n "$ERRNO_H"; then
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
19433 $as_echo_n "checking for EMULTIHOP value... " >&6; }
19434 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
19435 $as_echo_n "(cached) " >&6
19438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19439 /* end confdefs.h. */
19447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19448 $EGREP "yes" >/dev/null 2>&1; then :
19449 gl_cv_header_errno_h_EMULTIHOP=yes
19451 gl_cv_header_errno_h_EMULTIHOP=no
19455 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
19456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19457 /* end confdefs.h. */
19459 #define _XOPEN_SOURCE_EXTENDED 1
19466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19467 $EGREP "yes" >/dev/null 2>&1; then :
19468 gl_cv_header_errno_h_EMULTIHOP=hidden
19472 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
19473 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
19474 #define _XOPEN_SOURCE_EXTENDED 1
19476 /* The following two lines are a workaround against an autoconf-2.52 bug. */
19478 #include <stdlib.h>
19487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
19488 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
19489 case $gl_cv_header_errno_h_EMULTIHOP in
19491 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
19494 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
19502 if test -n "$ERRNO_H"; then
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
19504 $as_echo_n "checking for ENOLINK value... " >&6; }
19505 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
19506 $as_echo_n "(cached) " >&6
19509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19510 /* end confdefs.h. */
19518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19519 $EGREP "yes" >/dev/null 2>&1; then :
19520 gl_cv_header_errno_h_ENOLINK=yes
19522 gl_cv_header_errno_h_ENOLINK=no
19526 if test $gl_cv_header_errno_h_ENOLINK = no; then
19527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19528 /* end confdefs.h. */
19530 #define _XOPEN_SOURCE_EXTENDED 1
19537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19538 $EGREP "yes" >/dev/null 2>&1; then :
19539 gl_cv_header_errno_h_ENOLINK=hidden
19543 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
19544 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
19545 #define _XOPEN_SOURCE_EXTENDED 1
19547 /* The following two lines are a workaround against an autoconf-2.52 bug. */
19549 #include <stdlib.h>
19558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
19559 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
19560 case $gl_cv_header_errno_h_ENOLINK in
19562 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
19565 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
19573 if test -n "$ERRNO_H"; then
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
19575 $as_echo_n "checking for EOVERFLOW value... " >&6; }
19576 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
19577 $as_echo_n "(cached) " >&6
19580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19581 /* end confdefs.h. */
19589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19590 $EGREP "yes" >/dev/null 2>&1; then :
19591 gl_cv_header_errno_h_EOVERFLOW=yes
19593 gl_cv_header_errno_h_EOVERFLOW=no
19597 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
19598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19599 /* end confdefs.h. */
19601 #define _XOPEN_SOURCE_EXTENDED 1
19608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19609 $EGREP "yes" >/dev/null 2>&1; then :
19610 gl_cv_header_errno_h_EOVERFLOW=hidden
19614 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
19615 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
19616 #define _XOPEN_SOURCE_EXTENDED 1
19618 /* The following two lines are a workaround against an autoconf-2.52 bug. */
19620 #include <stdlib.h>
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
19630 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
19631 case $gl_cv_header_errno_h_EOVERFLOW in
19633 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
19636 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
19653 GNULIB_FPRINTF_POSIX=0;
19670 GNULIB_OBSTACK_PRINTF=0;
19671 GNULIB_OBSTACK_PRINTF_POSIX=0;
19676 GNULIB_PRINTF_POSIX=0;
19685 GNULIB_SPRINTF_POSIX=0;
19686 GNULIB_STDIO_H_NONBLOCKING=0;
19687 GNULIB_STDIO_H_SIGPIPE=0;
19689 GNULIB_VASPRINTF=0;
19694 GNULIB_VFPRINTF_POSIX=0;
19696 GNULIB_VPRINTF_POSIX=0;
19697 GNULIB_VSNPRINTF=0;
19698 GNULIB_VSPRINTF_POSIX=0;
19699 HAVE_DECL_FPURGE=1;
19700 HAVE_DECL_FSEEKO=1;
19701 HAVE_DECL_FTELLO=1;
19702 HAVE_DECL_GETDELIM=1;
19703 HAVE_DECL_GETLINE=1;
19704 HAVE_DECL_OBSTACK_PRINTF=1;
19705 HAVE_DECL_SNPRINTF=1;
19706 HAVE_DECL_VSNPRINTF=1;
19727 REPLACE_GETDELIM=0;
19729 REPLACE_OBSTACK_PRINTF=0;
19735 REPLACE_RENAMEAT=0;
19736 REPLACE_SNPRINTF=0;
19738 REPLACE_STDIO_READ_FUNCS=0;
19739 REPLACE_STDIO_WRITE_FUNCS=0;
19741 REPLACE_VASPRINTF=0;
19742 REPLACE_VDPRINTF=0;
19743 REPLACE_VFPRINTF=0;
19745 REPLACE_VSNPRINTF=0;
19746 REPLACE_VSPRINTF=0;
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
19750 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
19751 if ${gl_cv_var_stdin_large_offset+:} false; then :
19752 $as_echo_n "(cached) " >&6
19754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19755 /* end confdefs.h. */
19760 #if defined __SL64 && defined __SCLE /* cygwin */
19761 /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
19762 fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and
19763 it is easier to do a version check than building a runtime test. */
19764 # include <cygwin/version.h>
19765 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
19773 if ac_fn_c_try_link "$LINENO"; then :
19774 gl_cv_var_stdin_large_offset=yes
19776 gl_cv_var_stdin_large_offset=no
19778 rm -f core conftest.err conftest.$ac_objext \
19779 conftest$ac_exeext conftest.$ac_ext
19781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
19782 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
19784 ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
19785 if test "x$ac_cv_have_decl_fseeko" = xyes; then :
19791 cat >>confdefs.h <<_ACEOF
19792 #define HAVE_DECL_FSEEKO $ac_have_decl
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
19803 $as_echo_n "checking for fseeko... " >&6; }
19804 if ${gl_cv_func_fseeko+:} false; then :
19805 $as_echo_n "(cached) " >&6
19808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19809 /* end confdefs.h. */
19815 fseeko (stdin, 0, 0);
19820 if ac_fn_c_try_link "$LINENO"; then :
19821 gl_cv_func_fseeko=yes
19823 gl_cv_func_fseeko=no
19825 rm -f core conftest.err conftest.$ac_objext \
19826 conftest$ac_exeext conftest.$ac_ext
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
19830 $as_echo "$gl_cv_func_fseeko" >&6; }
19833 if test $ac_cv_have_decl_fseeko = no; then
19837 if test $gl_cv_func_fseeko = no; then
19840 if test $gl_cv_var_stdin_large_offset = no; then
19854 GNULIB_EUIDACCESS=0;
19855 GNULIB_FACCESSAT=0;
19858 GNULIB_FDATASYNC=0;
19860 GNULIB_FTRUNCATE=0;
19862 GNULIB_GETDOMAINNAME=0;
19863 GNULIB_GETDTABLESIZE=0;
19864 GNULIB_GETGROUPS=0;
19865 GNULIB_GETHOSTNAME=0;
19867 GNULIB_GETLOGIN_R=0;
19868 GNULIB_GETPAGESIZE=0;
19869 GNULIB_GETUSERSHELL=0;
19870 GNULIB_GROUP_MEMBER=0;
19882 GNULIB_READLINKAT=0;
19884 GNULIB_SETHOSTNAME=0;
19887 GNULIB_SYMLINKAT=0;
19888 GNULIB_TTYNAME_R=0;
19889 GNULIB_UNISTD_H_NONBLOCKING=0;
19890 GNULIB_UNISTD_H_SIGPIPE=0;
19905 HAVE_GETDTABLESIZE=1;
19907 HAVE_GETHOSTNAME=1;
19909 HAVE_GETPAGESIZE=1;
19910 HAVE_GROUP_MEMBER=1;
19920 HAVE_SETHOSTNAME=1;
19926 HAVE_DECL_ENVIRON=1;
19927 HAVE_DECL_FCHDIR=1;
19928 HAVE_DECL_FDATASYNC=1;
19929 HAVE_DECL_GETDOMAINNAME=1;
19930 HAVE_DECL_GETLOGIN_R=1;
19931 HAVE_DECL_GETPAGESIZE=1;
19932 HAVE_DECL_GETUSERSHELL=1;
19933 HAVE_DECL_SETHOSTNAME=1;
19934 HAVE_DECL_TTYNAME_R=1;
19936 HAVE_SYS_PARAM_H=0;
19941 REPLACE_FCHOWNAT=0;
19943 REPLACE_GETDOMAINNAME=0;
19944 REPLACE_GETLOGIN_R=0;
19945 REPLACE_GETGROUPS=0;
19946 REPLACE_GETPAGESIZE=0;
19955 REPLACE_READLINK=0;
19959 REPLACE_TTYNAME_R=0;
19961 REPLACE_UNLINKAT=0;
19964 UNISTD_H_HAVE_WINSOCK2_H=0;
19965 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
19981 GNULIB_UTIMENSAT=0;
19995 REPLACE_FUTIMENS=0;
20001 REPLACE_UTIMENSAT=0;
20006 for ac_func in $ac_func_list
20008 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20009 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20010 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20011 cat >>confdefs.h <<_ACEOF
20012 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20022 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
20023 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
20025 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
20028 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
20032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
20033 $as_echo_n "checking for inline... " >&6; }
20034 if ${ac_cv_c_inline+:} false; then :
20035 $as_echo_n "(cached) " >&6
20038 for ac_kw in inline __inline__ __inline; do
20039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20040 /* end confdefs.h. */
20041 #ifndef __cplusplus
20043 static $ac_kw foo_t static_foo () {return 0; }
20044 $ac_kw foo_t foo () {return 0; }
20048 if ac_fn_c_try_compile "$LINENO"; then :
20049 ac_cv_c_inline=$ac_kw
20051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20052 test "$ac_cv_c_inline" != no && break
20056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
20057 $as_echo "$ac_cv_c_inline" >&6; }
20059 case $ac_cv_c_inline in
20062 case $ac_cv_c_inline in
20064 *) ac_val=$ac_cv_c_inline;;
20066 cat >>confdefs.h <<_ACEOF
20067 #ifndef __cplusplus
20068 #define inline $ac_val
20074 ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
20075 if test "x$ac_cv_have_decl_ftello" = xyes; then :
20081 cat >>confdefs.h <<_ACEOF
20082 #define HAVE_DECL_FTELLO $ac_have_decl
20093 if test $ac_cv_have_decl_ftello = no; then
20097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
20098 $as_echo_n "checking for ftello... " >&6; }
20099 if ${gl_cv_func_ftello+:} false; then :
20100 $as_echo_n "(cached) " >&6
20103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20104 /* end confdefs.h. */
20114 if ac_fn_c_try_link "$LINENO"; then :
20115 gl_cv_func_ftello=yes
20117 gl_cv_func_ftello=no
20119 rm -f core conftest.err conftest.$ac_objext \
20120 conftest$ac_exeext conftest.$ac_ext
20123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
20124 $as_echo "$gl_cv_func_ftello" >&6; }
20125 if test $gl_cv_func_ftello = no; then
20128 if test $gl_cv_var_stdin_large_offset = no; then
20132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
20133 $as_echo_n "checking whether ftello works... " >&6; }
20134 if ${gl_cv_func_ftello_works+:} false; then :
20135 $as_echo_n "(cached) " >&6
20139 # Guess no on Solaris.
20140 solaris*) gl_cv_func_ftello_works="guessing no" ;;
20141 # Guess yes otherwise.
20142 *) gl_cv_func_ftello_works="guessing yes" ;;
20144 if test "$cross_compiling" = yes; then :
20147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20148 /* end confdefs.h. */
20151 #include <stdlib.h>
20152 #include <string.h>
20153 #define TESTFILE "conftest.tmp"
20159 /* Create a file with some contents. */
20160 fp = fopen (TESTFILE, "w");
20163 if (fwrite ("foogarsh", 1, 8, fp) < 8)
20168 /* The file's contents is now "foogarsh". */
20170 /* Try writing after reading to EOF. */
20171 fp = fopen (TESTFILE, "r+");
20174 if (fseek (fp, -1, SEEK_END))
20176 if (!(getc (fp) == 'h'))
20178 if (!(getc (fp) == EOF))
20180 if (!(ftell (fp) == 8))
20182 if (!(ftell (fp) == 8))
20184 if (!(putc ('!', fp) == '!'))
20186 if (!(ftell (fp) == 9))
20188 if (!(fclose (fp) == 0))
20190 fp = fopen (TESTFILE, "r");
20195 if (!(fread (buf, 1, 10, fp) == 9))
20197 if (!(memcmp (buf, "foogarsh!", 9) == 0))
20200 if (!(fclose (fp) == 0))
20203 /* The file's contents is now "foogarsh!". */
20208 if ac_fn_c_try_run "$LINENO"; then :
20209 gl_cv_func_ftello_works=yes
20211 gl_cv_func_ftello_works=no
20213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20214 conftest.$ac_objext conftest.beam conftest.$ac_ext
20219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
20220 $as_echo "$gl_cv_func_ftello_works" >&6; }
20221 case "$gl_cv_func_ftello_works" in
20226 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
20236 for ac_header in $ac_header_list
20238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20239 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20241 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20242 cat >>confdefs.h <<_ACEOF
20243 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20255 GNULIB_CALLOC_POSIX=0;
20256 GNULIB_CANONICALIZE_FILE_NAME=0;
20257 GNULIB_GETLOADAVG=0;
20258 GNULIB_GETSUBOPT=0;
20260 GNULIB_MALLOC_POSIX=0;
20264 GNULIB_MKOSTEMPS=0;
20267 GNULIB_POSIX_OPENPT=0;
20269 GNULIB_PTSNAME_R=0;
20273 GNULIB_REALLOC_POSIX=0;
20280 GNULIB_SYSTEM_POSIX=0;
20286 HAVE_CANONICALIZE_FILE_NAME=1;
20287 HAVE_DECL_GETLOADAVG=1;
20295 HAVE_POSIX_OPENPT=1;
20304 HAVE_DECL_SETENV=1;
20308 HAVE_STRUCT_RANDOM_DATA=1;
20309 HAVE_SYS_LOADAVG_H=0;
20311 HAVE_DECL_UNSETENV=1;
20313 REPLACE_CANONICALIZE_FILE_NAME=0;
20317 REPLACE_PTSNAME_R=0;
20319 REPLACE_RANDOM_R=0;
20321 REPLACE_REALPATH=0;
20324 REPLACE_UNSETENV=0;
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
20329 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
20330 if ${gl_cv_func_malloc_posix+:} false; then :
20331 $as_echo_n "(cached) " >&6
20334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20335 /* end confdefs.h. */
20340 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
20348 if ac_fn_c_try_compile "$LINENO"; then :
20349 gl_cv_func_malloc_posix=yes
20351 gl_cv_func_malloc_posix=no
20353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
20357 $as_echo "$gl_cv_func_malloc_posix" >&6; }
20370 GNULIB_RAWMEMCHR=0;
20373 GNULIB_STRCHRNUL=0;
20381 GNULIB_STRCASESTR=0;
20388 GNULIB_MBSCASECMP=0;
20389 GNULIB_MBSNCASECMP=0;
20390 GNULIB_MBSPCASECMP=0;
20391 GNULIB_MBSCASESTR=0;
20398 GNULIB_STRERROR_R=0;
20399 GNULIB_STRSIGNAL=0;
20400 GNULIB_STRVERSCMP=0;
20405 HAVE_DECL_MEMMEM=1;
20407 HAVE_DECL_MEMRCHR=1;
20412 HAVE_DECL_STRDUP=1;
20413 HAVE_DECL_STRNDUP=1;
20414 HAVE_DECL_STRNLEN=1;
20418 HAVE_DECL_STRTOK_R=1;
20419 HAVE_DECL_STRERROR_R=1;
20420 HAVE_DECL_STRSIGNAL=1;
20427 REPLACE_STRCASESTR=0;
20428 REPLACE_STRCHRNUL=0;
20429 REPLACE_STRERROR=0;
20430 REPLACE_STRERROR_R=0;
20434 REPLACE_STRSIGNAL=0;
20435 REPLACE_STRTOK_R=0;
20436 UNDEFINE_STRTOK_R=0;
20442 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
20443 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
20444 # irrelevant for anonymous mappings.
20445 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
20446 if test "x$ac_cv_func_mmap" = xyes; then :
20453 # Try to allow MAP_ANONYMOUS.
20454 gl_have_mmap_anonymous=no
20455 if test $gl_have_mmap = yes; then
20456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
20457 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
20458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20459 /* end confdefs.h. */
20461 #include <sys/mman.h>
20462 #ifdef MAP_ANONYMOUS
20463 I cant identify this map
20467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20468 $EGREP "I cant identify this map" >/dev/null 2>&1; then :
20469 gl_have_mmap_anonymous=yes
20473 if test $gl_have_mmap_anonymous != yes; then
20474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20475 /* end confdefs.h. */
20477 #include <sys/mman.h>
20479 I cant identify this map
20483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20484 $EGREP "I cant identify this map" >/dev/null 2>&1; then :
20486 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
20488 gl_have_mmap_anonymous=yes
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
20494 $as_echo "$gl_have_mmap_anonymous" >&6; }
20495 if test $gl_have_mmap_anonymous = yes; then
20497 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
20507 if test $HAVE_MEMCHR = 1; then
20508 # Detect platform-specific bugs in some versions of glibc:
20509 # memchr should not dereference anything with length 0
20510 # http://bugzilla.redhat.com/499689
20511 # memchr should not dereference overestimated length after a match
20512 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
20513 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
20514 # Assume that memchr works on platforms that lack mprotect.
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
20516 $as_echo_n "checking whether memchr works... " >&6; }
20517 if ${gl_cv_func_memchr_works+:} false; then :
20518 $as_echo_n "(cached) " >&6
20520 if test "$cross_compiling" = yes; then :
20521 gl_cv_func_memchr_works="guessing no"
20523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20524 /* end confdefs.h. */
20526 #include <string.h>
20527 #if HAVE_SYS_MMAN_H
20528 # include <fcntl.h>
20529 # include <unistd.h>
20530 # include <sys/types.h>
20531 # include <sys/mman.h>
20533 # define MAP_FILE 0
20542 char *fence = NULL;
20543 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
20544 # if HAVE_MAP_ANONYMOUS
20545 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
20547 # else /* !HAVE_MAP_ANONYMOUS */
20548 const int flags = MAP_FILE | MAP_PRIVATE;
20549 int fd = open ("/dev/zero", O_RDONLY, 0666);
20553 int pagesize = getpagesize ();
20555 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
20557 if (two_pages != (char *)(-1)
20558 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
20559 fence = two_pages + pagesize;
20564 if (memchr (fence, 0, 0))
20566 strcpy (fence - 9, "12345678");
20567 if (memchr (fence - 9, 0, 79) != fence - 1)
20569 if (memchr (fence - 1, 0, 3) != fence - 1)
20578 if ac_fn_c_try_run "$LINENO"; then :
20579 gl_cv_func_memchr_works=yes
20581 gl_cv_func_memchr_works=no
20583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20584 conftest.$ac_objext conftest.beam conftest.$ac_ext
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
20589 $as_echo "$gl_cv_func_memchr_works" >&6; }
20590 if test "$gl_cv_func_memchr_works" != yes; then
20595 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
20596 if test "x$ac_cv_have_decl_memmem" = xyes; then :
20602 cat >>confdefs.h <<_ACEOF
20603 #define HAVE_DECL_MEMMEM $ac_have_decl
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
20611 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
20612 if ${gl_cv_minmax_in_limits_h+:} false; then :
20613 $as_echo_n "(cached) " >&6
20615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20616 /* end confdefs.h. */
20617 #include <limits.h>
20618 int x = MIN (42, 17);
20627 if ac_fn_c_try_compile "$LINENO"; then :
20628 gl_cv_minmax_in_limits_h=yes
20630 gl_cv_minmax_in_limits_h=no
20632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
20635 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
20636 if test $gl_cv_minmax_in_limits_h = yes; then
20638 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
20648 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
20649 if ${gl_cv_minmax_in_sys_param_h+:} false; then :
20650 $as_echo_n "(cached) " >&6
20652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20653 /* end confdefs.h. */
20654 #include <sys/param.h>
20655 int x = MIN (42, 17);
20664 if ac_fn_c_try_compile "$LINENO"; then :
20665 gl_cv_minmax_in_sys_param_h=yes
20667 gl_cv_minmax_in_sys_param_h=no
20669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
20672 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
20673 if test $gl_cv_minmax_in_sys_param_h = yes; then
20675 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
20683 gl_cv_c_multiarch=no
20684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20685 /* end confdefs.h. */
20686 #ifndef __APPLE_CC__
20687 not a universal capable compiler
20692 if ac_fn_c_try_compile "$LINENO"; then :
20696 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
20697 if test -n "$prev"; then
20699 i?86 | x86_64 | ppc | ppc64)
20700 if test -z "$arch" || test "$arch" = "$word"; then
20703 gl_cv_c_multiarch=yes
20709 if test "x$word" = "x-arch"; then
20716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20717 if test $gl_cv_c_multiarch = yes; then
20718 APPLE_UNIVERSAL_BUILD=1
20720 APPLE_UNIVERSAL_BUILD=0
20725 GNULIB_GETADDRINFO=0;
20726 HAVE_STRUCT_ADDRINFO=1;
20727 HAVE_DECL_FREEADDRINFO=1;
20728 HAVE_DECL_GAI_STRERROR=1;
20729 HAVE_DECL_GETADDRINFO=1;
20730 HAVE_DECL_GETNAMEINFO=1;
20731 REPLACE_GAI_STRERROR=0;
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
20744 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
20745 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
20746 $as_echo_n "(cached) " >&6
20749 if test "$cross_compiling" = yes; then :
20752 # Guess yes on glibc systems.
20753 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20754 # Guess yes on FreeBSD >= 5.
20755 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
20756 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20757 # Guess yes on MacOS X >= 10.3.
20758 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
20759 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20760 # Guess yes on OpenBSD >= 3.9.
20761 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
20762 gl_cv_func_snprintf_retval_c99="guessing no";;
20763 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20764 # Guess yes on Solaris >= 2.10.
20765 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
20766 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
20767 # Guess yes on AIX >= 4.
20768 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
20769 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20770 # Guess yes on NetBSD >= 3.
20771 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
20772 gl_cv_func_snprintf_retval_c99="guessing no";;
20773 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20774 # Guess yes on BeOS.
20775 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20776 # If we don't know, assume the worst.
20777 *) gl_cv_func_snprintf_retval_c99="guessing no";;
20781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20782 /* end confdefs.h. */
20785 #include <string.h>
20787 # define my_snprintf snprintf
20789 # include <stdarg.h>
20790 static int my_snprintf (char *buf, int size, const char *format, ...)
20794 va_start (args, format);
20795 ret = vsnprintf (buf, size, format, args);
20800 static char buf[100];
20803 strcpy (buf, "ABCDEF");
20804 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
20806 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
20808 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
20813 if ac_fn_c_try_run "$LINENO"; then :
20814 gl_cv_func_snprintf_retval_c99=yes
20816 gl_cv_func_snprintf_retval_c99=no
20818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20819 conftest.$ac_objext conftest.beam conftest.$ac_ext
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
20825 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
20827 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
20828 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
20834 cat >>confdefs.h <<_ACEOF
20835 #define HAVE_DECL_SNPRINTF $ac_have_decl
20841 if test $ac_cv_header_sys_socket_h = no; then
20842 for ac_header in ws2tcpip.h
20844 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
20845 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
20846 cat >>confdefs.h <<_ACEOF
20847 #define HAVE_WS2TCPIP_H 1
20856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20857 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20858 if ${ac_cv_header_stdbool_h+:} false; then :
20859 $as_echo_n "(cached) " >&6
20861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20862 /* end confdefs.h. */
20864 #include <stdbool.h>
20866 "error: bool is not defined"
20869 "error: false is not defined"
20872 "error: false is not 0"
20875 "error: true is not defined"
20878 "error: true is not 1"
20880 #ifndef __bool_true_false_are_defined
20881 "error: __bool_true_false_are_defined is not defined"
20884 struct s { _Bool s: 1; _Bool t; } s;
20886 char a[true == 1 ? 1 : -1];
20887 char b[false == 0 ? 1 : -1];
20888 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20889 char d[(bool) 0.5 == true ? 1 : -1];
20890 /* See body of main program for 'e'. */
20891 char f[(_Bool) 0.0 == false ? 1 : -1];
20893 char h[sizeof (_Bool)];
20894 char i[sizeof s.t];
20895 enum { j = false, k = true, l = false * true, m = true * 256 };
20896 /* The following fails for
20897 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20899 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20900 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20901 /* Catch a bug in an HP-UX C compiler. See
20902 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20903 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20915 /* Refer to every declared value, to avoid compiler optimizations. */
20916 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20917 + !m + !n + !o + !p + !q + !pq);
20923 if ac_fn_c_try_compile "$LINENO"; then :
20924 ac_cv_header_stdbool_h=yes
20926 ac_cv_header_stdbool_h=no
20928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20931 $as_echo "$ac_cv_header_stdbool_h" >&6; }
20932 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20933 if test "x$ac_cv_type__Bool" = xyes; then :
20935 cat >>confdefs.h <<_ACEOF
20936 #define HAVE__BOOL 1
20948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
20949 $as_echo_n "checking for wchar_t... " >&6; }
20950 if ${gt_cv_c_wchar_t+:} false; then :
20951 $as_echo_n "(cached) " >&6
20953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20954 /* end confdefs.h. */
20955 #include <stddef.h>
20956 wchar_t foo = (wchar_t)'\0';
20965 if ac_fn_c_try_compile "$LINENO"; then :
20966 gt_cv_c_wchar_t=yes
20970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
20973 $as_echo "$gt_cv_c_wchar_t" >&6; }
20974 if test $gt_cv_c_wchar_t = yes; then
20976 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
20982 $as_echo_n "checking for long long int... " >&6; }
20983 if ${ac_cv_type_long_long_int+:} false; then :
20984 $as_echo_n "(cached) " >&6
20986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20987 /* end confdefs.h. */
20989 /* Test preprocessor. */
20990 #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20991 error in preprocessor;
20993 #if ! (18446744073709551615ULL <= -1ull)
20994 error in preprocessor;
20996 /* Test literals. */
20997 long long int ll = 9223372036854775807ll;
20998 long long int nll = -9223372036854775807LL;
20999 unsigned long long int ull = 18446744073709551615ULL;
21000 /* Test constant expressions. */
21001 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
21003 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
21009 /* Test availability of runtime routines for shift and division. */
21010 long long int llmax = 9223372036854775807ll;
21011 unsigned long long int ullmax = 18446744073709551615ull;
21012 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
21013 | (llmax / ll) | (llmax % ll)
21014 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
21015 | (ullmax / ull) | (ullmax % ull));
21021 if ac_fn_c_try_link "$LINENO"; then :
21022 if test "$cross_compiling" = yes; then :
21023 ac_cv_type_long_long_int=yes
21025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21026 /* end confdefs.h. */
21027 #include <limits.h>
21030 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
21031 # define LLONG_MAX (HALF - 1 + HALF)
21036 long long int n = 1;
21040 long long int m = n << i;
21043 if (LLONG_MAX / 2 < m)
21051 if ac_fn_c_try_run "$LINENO"; then :
21052 ac_cv_type_long_long_int=yes
21054 ac_cv_type_long_long_int=no
21056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21057 conftest.$ac_objext conftest.beam conftest.$ac_ext
21061 ac_cv_type_long_long_int=no
21063 rm -f core conftest.err conftest.$ac_objext \
21064 conftest$ac_exeext conftest.$ac_ext
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
21067 $as_echo "$ac_cv_type_long_long_int" >&6; }
21068 if test $ac_cv_type_long_long_int = yes; then
21070 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
21075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
21076 $as_echo_n "checking for unsigned long long int... " >&6; }
21077 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
21078 $as_echo_n "(cached) " >&6
21080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21081 /* end confdefs.h. */
21083 /* Test preprocessor. */
21084 #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
21085 error in preprocessor;
21087 #if ! (18446744073709551615ULL <= -1ull)
21088 error in preprocessor;
21090 /* Test literals. */
21091 long long int ll = 9223372036854775807ll;
21092 long long int nll = -9223372036854775807LL;
21093 unsigned long long int ull = 18446744073709551615ULL;
21094 /* Test constant expressions. */
21095 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
21097 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
21103 /* Test availability of runtime routines for shift and division. */
21104 long long int llmax = 9223372036854775807ll;
21105 unsigned long long int ullmax = 18446744073709551615ull;
21106 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
21107 | (llmax / ll) | (llmax % ll)
21108 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
21109 | (ullmax / ull) | (ullmax % ull));
21115 if ac_fn_c_try_link "$LINENO"; then :
21116 ac_cv_type_unsigned_long_long_int=yes
21118 ac_cv_type_unsigned_long_long_int=no
21120 rm -f core conftest.err conftest.$ac_objext \
21121 conftest$ac_exeext conftest.$ac_ext
21123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
21124 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
21125 if test $ac_cv_type_unsigned_long_long_int = yes; then
21127 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
21138 if test $ac_cv_type_long_long_int = yes; then
21139 HAVE_LONG_LONG_INT=1
21141 HAVE_LONG_LONG_INT=0
21145 if test $ac_cv_type_unsigned_long_long_int = yes; then
21146 HAVE_UNSIGNED_LONG_LONG_INT=1
21148 HAVE_UNSIGNED_LONG_LONG_INT=0
21153 if test $ac_cv_header_wchar_h = yes; then
21160 if test $ac_cv_header_inttypes_h = yes; then
21167 if test $ac_cv_header_sys_types_h = yes; then
21183 if test $gl_cv_have_include_next = yes; then
21184 gl_cv_next_stdint_h='<'stdint.h'>'
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
21187 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
21188 if ${gl_cv_next_stdint_h+:} false; then :
21189 $as_echo_n "(cached) " >&6
21192 if test $ac_cv_header_stdint_h = yes; then
21195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21196 /* end confdefs.h. */
21197 #include <stdint.h>
21201 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21202 *) gl_absname_cpp="$ac_cpp" ;;
21207 gl_dirsep_regex='[/\\]'
21210 gl_dirsep_regex='\/'
21213 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21215 gl_header_literal_regex=`echo 'stdint.h' \
21216 | sed -e "$gl_make_literal_regex_sed"`
21217 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21218 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21223 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21224 sed -n "$gl_absolute_header_sed"`'"'
21226 gl_cv_next_stdint_h='<'stdint.h'>'
21231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
21232 $as_echo "$gl_cv_next_stdint_h" >&6; }
21234 NEXT_STDINT_H=$gl_cv_next_stdint_h
21236 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21237 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21238 gl_next_as_first_directive='<'stdint.h'>'
21240 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21241 gl_next_as_first_directive=$gl_cv_next_stdint_h
21243 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
21248 if test $ac_cv_header_stdint_h = yes; then
21255 if test $ac_cv_header_stdint_h = yes; then
21256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
21257 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
21258 if ${gl_cv_header_working_stdint_h+:} false; then :
21259 $as_echo_n "(cached) " >&6
21261 gl_cv_header_working_stdint_h=no
21262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21263 /* end confdefs.h. */
21266 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21267 #include <stdint.h>
21268 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
21269 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
21270 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
21274 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21275 included before <wchar.h>. */
21276 #include <stddef.h>
21277 #include <signal.h>
21279 # include <stdio.h>
21281 # include <wchar.h>
21286 int8_t a1 = INT8_MAX;
21287 int8_t a1min = INT8_MIN;
21290 int16_t a2 = INT16_MAX;
21291 int16_t a2min = INT16_MIN;
21294 int32_t a3 = INT32_MAX;
21295 int32_t a3min = INT32_MIN;
21298 int64_t a4 = INT64_MAX;
21299 int64_t a4min = INT64_MIN;
21302 uint8_t b1 = UINT8_MAX;
21304 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
21307 uint16_t b2 = UINT16_MAX;
21310 uint32_t b3 = UINT32_MAX;
21313 uint64_t b4 = UINT64_MAX;
21315 int_least8_t c1 = INT8_C (0x7f);
21316 int_least8_t c1max = INT_LEAST8_MAX;
21317 int_least8_t c1min = INT_LEAST8_MIN;
21318 int_least16_t c2 = INT16_C (0x7fff);
21319 int_least16_t c2max = INT_LEAST16_MAX;
21320 int_least16_t c2min = INT_LEAST16_MIN;
21321 int_least32_t c3 = INT32_C (0x7fffffff);
21322 int_least32_t c3max = INT_LEAST32_MAX;
21323 int_least32_t c3min = INT_LEAST32_MIN;
21324 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
21325 int_least64_t c4max = INT_LEAST64_MAX;
21326 int_least64_t c4min = INT_LEAST64_MIN;
21327 uint_least8_t d1 = UINT8_C (0xff);
21328 uint_least8_t d1max = UINT_LEAST8_MAX;
21329 uint_least16_t d2 = UINT16_C (0xffff);
21330 uint_least16_t d2max = UINT_LEAST16_MAX;
21331 uint_least32_t d3 = UINT32_C (0xffffffff);
21332 uint_least32_t d3max = UINT_LEAST32_MAX;
21333 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
21334 uint_least64_t d4max = UINT_LEAST64_MAX;
21335 int_fast8_t e1 = INT_FAST8_MAX;
21336 int_fast8_t e1min = INT_FAST8_MIN;
21337 int_fast16_t e2 = INT_FAST16_MAX;
21338 int_fast16_t e2min = INT_FAST16_MIN;
21339 int_fast32_t e3 = INT_FAST32_MAX;
21340 int_fast32_t e3min = INT_FAST32_MIN;
21341 int_fast64_t e4 = INT_FAST64_MAX;
21342 int_fast64_t e4min = INT_FAST64_MIN;
21343 uint_fast8_t f1 = UINT_FAST8_MAX;
21344 uint_fast16_t f2 = UINT_FAST16_MAX;
21345 uint_fast32_t f3 = UINT_FAST32_MAX;
21346 uint_fast64_t f4 = UINT_FAST64_MAX;
21348 intptr_t g = INTPTR_MAX;
21349 intptr_t gmin = INTPTR_MIN;
21352 uintptr_t h = UINTPTR_MAX;
21354 intmax_t i = INTMAX_MAX;
21355 uintmax_t j = UINTMAX_MAX;
21357 #include <limits.h> /* for CHAR_BIT */
21358 #define TYPE_MINIMUM(t) \
21359 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
21360 #define TYPE_MAXIMUM(t) \
21361 ((t) ((t) 0 < (t) -1 \
21363 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
21366 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
21367 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
21369 /* Detect bug in FreeBSD 6.0 / ia64. */
21370 int check_SIG_ATOMIC:
21371 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
21372 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
21374 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
21376 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
21377 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
21379 /* Detect bug in mingw. */
21381 WINT_MIN == TYPE_MINIMUM (wint_t)
21382 && WINT_MAX == TYPE_MAXIMUM (wint_t)
21385 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
21387 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
21388 int check_UINT16_C:
21389 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
21391 /* Detect bugs in OpenBSD 3.9 stdint.h. */
21393 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
21396 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
21399 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
21402 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
21404 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
21405 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
21406 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
21407 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
21408 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
21409 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
21410 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
21411 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
21412 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
21413 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
21414 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
21425 if ac_fn_c_try_compile "$LINENO"; then :
21426 if test "$cross_compiling" = yes; then :
21427 gl_cv_header_working_stdint_h=yes
21430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21431 /* end confdefs.h. */
21434 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21435 #include <stdint.h>
21438 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21439 included before <wchar.h>. */
21440 #include <stddef.h>
21441 #include <signal.h>
21443 # include <stdio.h>
21445 # include <wchar.h>
21450 #include <string.h>
21451 #define MVAL(macro) MVAL1(macro)
21452 #define MVAL1(expression) #expression
21453 static const char *macro_values[] =
21487 for (mv = macro_values; *mv != NULL; mv++)
21489 const char *value = *mv;
21490 /* Test whether it looks like a cast expression. */
21491 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
21492 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
21493 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
21494 || strncmp (value, "((int)"/*)*/, 6) == 0
21495 || strncmp (value, "((signed short)"/*)*/, 15) == 0
21496 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
21497 return mv - macro_values + 1;
21505 if ac_fn_c_try_run "$LINENO"; then :
21506 gl_cv_header_working_stdint_h=yes
21508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21509 conftest.$ac_objext conftest.beam conftest.$ac_ext
21514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
21518 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
21520 if test "$gl_cv_header_working_stdint_h" = yes; then
21523 for ac_header in sys/inttypes.h sys/bitypes.h
21525 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21526 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21527 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21528 cat >>confdefs.h <<_ACEOF
21529 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21536 if test $ac_cv_header_sys_inttypes_h = yes; then
21537 HAVE_SYS_INTTYPES_H=1
21539 HAVE_SYS_INTTYPES_H=0
21542 if test $ac_cv_header_sys_bitypes_h = yes; then
21543 HAVE_SYS_BITYPES_H=1
21545 HAVE_SYS_BITYPES_H=0
21551 if test $APPLE_UNIVERSAL_BUILD = 0; then
21554 for gltype in ptrdiff_t size_t ; do
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21556 $as_echo_n "checking for bit size of $gltype... " >&6; }
21557 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
21558 $as_echo_n "(cached) " >&6
21560 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
21561 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21562 included before <wchar.h>. */
21563 #include <stddef.h>
21564 #include <signal.h>
21566 # include <stdio.h>
21568 # include <wchar.h>
21571 #include <limits.h>"; then :
21577 eval gl_cv_bitsizeof_${gltype}=\$result
21580 eval ac_res=\$gl_cv_bitsizeof_${gltype}
21581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21582 $as_echo "$ac_res" >&6; }
21583 eval result=\$gl_cv_bitsizeof_${gltype}
21584 if test $result = unknown; then
21587 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21588 cat >>confdefs.h <<_ACEOF
21589 #define BITSIZEOF_${GLTYPE} $result
21592 eval BITSIZEOF_${GLTYPE}=\$result
21599 for gltype in sig_atomic_t wchar_t wint_t ; do
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21601 $as_echo_n "checking for bit size of $gltype... " >&6; }
21602 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
21603 $as_echo_n "(cached) " >&6
21605 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
21606 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21607 included before <wchar.h>. */
21608 #include <stddef.h>
21609 #include <signal.h>
21611 # include <stdio.h>
21613 # include <wchar.h>
21616 #include <limits.h>"; then :
21622 eval gl_cv_bitsizeof_${gltype}=\$result
21625 eval ac_res=\$gl_cv_bitsizeof_${gltype}
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21627 $as_echo "$ac_res" >&6; }
21628 eval result=\$gl_cv_bitsizeof_${gltype}
21629 if test $result = unknown; then
21632 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21633 cat >>confdefs.h <<_ACEOF
21634 #define BITSIZEOF_${GLTYPE} $result
21637 eval BITSIZEOF_${GLTYPE}=\$result
21643 for gltype in sig_atomic_t wchar_t wint_t ; do
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
21645 $as_echo_n "checking whether $gltype is signed... " >&6; }
21646 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
21647 $as_echo_n "(cached) " >&6
21649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21650 /* end confdefs.h. */
21652 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21653 included before <wchar.h>. */
21654 #include <stddef.h>
21655 #include <signal.h>
21657 # include <stdio.h>
21659 # include <wchar.h>
21662 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
21671 if ac_fn_c_try_compile "$LINENO"; then :
21676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21677 eval gl_cv_type_${gltype}_signed=\$result
21680 eval ac_res=\$gl_cv_type_${gltype}_signed
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21682 $as_echo "$ac_res" >&6; }
21683 eval result=\$gl_cv_type_${gltype}_signed
21684 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21685 if test "$result" = yes; then
21686 cat >>confdefs.h <<_ACEOF
21687 #define HAVE_SIGNED_${GLTYPE} 1
21690 eval HAVE_SIGNED_${GLTYPE}=1
21692 eval HAVE_SIGNED_${GLTYPE}=0
21697 gl_cv_type_ptrdiff_t_signed=yes
21698 gl_cv_type_size_t_signed=no
21699 if test $APPLE_UNIVERSAL_BUILD = 0; then
21702 for gltype in ptrdiff_t size_t ; do
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21704 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
21705 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
21706 $as_echo_n "(cached) " >&6
21708 eval gl_cv_type_${gltype}_suffix=no
21709 eval result=\$gl_cv_type_${gltype}_signed
21710 if test "$result" = yes; then
21715 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21717 '') gltype1='int';;
21718 l) gltype1='long int';;
21719 ll) gltype1='long long int';;
21720 i64) gltype1='__int64';;
21721 u) gltype1='unsigned int';;
21722 ul) gltype1='unsigned long int';;
21723 ull) gltype1='unsigned long long int';;
21724 ui64)gltype1='unsigned __int64';;
21726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21727 /* end confdefs.h. */
21729 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21730 included before <wchar.h>. */
21731 #include <stddef.h>
21732 #include <signal.h>
21734 # include <stdio.h>
21736 # include <wchar.h>
21739 extern $gltype foo;
21740 extern $gltype1 foo;
21749 if ac_fn_c_try_compile "$LINENO"; then :
21750 eval gl_cv_type_${gltype}_suffix=\$glsuf
21752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21753 eval result=\$gl_cv_type_${gltype}_suffix
21754 test "$result" != no && break
21757 eval ac_res=\$gl_cv_type_${gltype}_suffix
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21759 $as_echo "$ac_res" >&6; }
21760 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21761 eval result=\$gl_cv_type_${gltype}_suffix
21762 test "$result" = no && result=
21763 eval ${GLTYPE}_SUFFIX=\$result
21764 cat >>confdefs.h <<_ACEOF
21765 #define ${GLTYPE}_SUFFIX $result
21774 for gltype in sig_atomic_t wchar_t wint_t ; do
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21776 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
21777 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
21778 $as_echo_n "(cached) " >&6
21780 eval gl_cv_type_${gltype}_suffix=no
21781 eval result=\$gl_cv_type_${gltype}_signed
21782 if test "$result" = yes; then
21787 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21789 '') gltype1='int';;
21790 l) gltype1='long int';;
21791 ll) gltype1='long long int';;
21792 i64) gltype1='__int64';;
21793 u) gltype1='unsigned int';;
21794 ul) gltype1='unsigned long int';;
21795 ull) gltype1='unsigned long long int';;
21796 ui64)gltype1='unsigned __int64';;
21798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21799 /* end confdefs.h. */
21801 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21802 included before <wchar.h>. */
21803 #include <stddef.h>
21804 #include <signal.h>
21806 # include <stdio.h>
21808 # include <wchar.h>
21811 extern $gltype foo;
21812 extern $gltype1 foo;
21821 if ac_fn_c_try_compile "$LINENO"; then :
21822 eval gl_cv_type_${gltype}_suffix=\$glsuf
21824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21825 eval result=\$gl_cv_type_${gltype}_suffix
21826 test "$result" != no && break
21829 eval ac_res=\$gl_cv_type_${gltype}_suffix
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21831 $as_echo "$ac_res" >&6; }
21832 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21833 eval result=\$gl_cv_type_${gltype}_suffix
21834 test "$result" = no && result=
21835 eval ${GLTYPE}_SUFFIX=\$result
21836 cat >>confdefs.h <<_ACEOF
21837 #define ${GLTYPE}_SUFFIX $result
21844 if test $BITSIZEOF_WINT_T -lt 32; then
21845 BITSIZEOF_WINT_T=32
21851 if test -n "$STDINT_H"; then
21852 GL_GENERATE_STDINT_H_TRUE=
21853 GL_GENERATE_STDINT_H_FALSE='#'
21855 GL_GENERATE_STDINT_H_TRUE='#'
21856 GL_GENERATE_STDINT_H_FALSE=
21864 HAVE_DECL_STRNCASECMP=1;
21866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
21867 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
21868 if ${ac_cv_c_restrict+:} false; then :
21869 $as_echo_n "(cached) " >&6
21871 ac_cv_c_restrict=no
21872 # The order here caters to the fact that C++ does not require restrict.
21873 for ac_kw in __restrict __restrict__ _Restrict restrict; do
21874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21875 /* end confdefs.h. */
21876 typedef int * int_ptr;
21877 int foo (int_ptr $ac_kw ip) {
21884 int * $ac_kw t = s;
21891 if ac_fn_c_try_compile "$LINENO"; then :
21892 ac_cv_c_restrict=$ac_kw
21894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21895 test "$ac_cv_c_restrict" != no && break
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
21900 $as_echo "$ac_cv_c_restrict" >&6; }
21902 case $ac_cv_c_restrict in
21904 no) $as_echo "#define restrict /**/" >>confdefs.h
21906 *) cat >>confdefs.h <<_ACEOF
21907 #define restrict $ac_cv_c_restrict
21923 if test $gl_cv_have_include_next = yes; then
21924 gl_cv_next_string_h='<'string.h'>'
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21927 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21928 if ${gl_cv_next_string_h+:} false; then :
21929 $as_echo_n "(cached) " >&6
21932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21933 /* end confdefs.h. */
21934 #include <string.h>
21938 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21939 *) gl_absname_cpp="$ac_cpp" ;;
21944 gl_dirsep_regex='[/\\]'
21947 gl_dirsep_regex='\/'
21950 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21952 gl_header_literal_regex=`echo 'string.h' \
21953 | sed -e "$gl_make_literal_regex_sed"`
21954 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21955 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21960 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21961 sed -n "$gl_absolute_header_sed"`'"'
21965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21966 $as_echo "$gl_cv_next_string_h" >&6; }
21968 NEXT_STRING_H=$gl_cv_next_string_h
21970 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21971 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21972 gl_next_as_first_directive='<'string.h'>'
21974 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21975 gl_next_as_first_directive=$gl_cv_next_string_h
21977 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
21984 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
21985 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21987 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21988 if eval \${$as_gl_Symbol+:} false; then :
21989 $as_echo_n "(cached) " >&6
21991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21992 /* end confdefs.h. */
21993 #include <string.h>
22004 if ac_fn_c_try_compile "$LINENO"; then :
22005 eval "$as_gl_Symbol=yes"
22007 eval "$as_gl_Symbol=no"
22009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22011 eval ac_res=\$$as_gl_Symbol
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22013 $as_echo "$ac_res" >&6; }
22014 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22015 cat >>confdefs.h <<_ACEOF
22016 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22019 eval ac_cv_have_decl_$gl_func=yes
22038 if test $gl_cv_have_include_next = yes; then
22039 gl_cv_next_strings_h='<'strings.h'>'
22041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
22042 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
22043 if ${gl_cv_next_strings_h+:} false; then :
22044 $as_echo_n "(cached) " >&6
22047 if test $ac_cv_header_strings_h = yes; then
22050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22051 /* end confdefs.h. */
22052 #include <strings.h>
22056 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22057 *) gl_absname_cpp="$ac_cpp" ;;
22062 gl_dirsep_regex='[/\\]'
22065 gl_dirsep_regex='\/'
22068 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22070 gl_header_literal_regex=`echo 'strings.h' \
22071 | sed -e "$gl_make_literal_regex_sed"`
22072 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22073 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22078 gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22079 sed -n "$gl_absolute_header_sed"`'"'
22081 gl_cv_next_strings_h='<'strings.h'>'
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
22087 $as_echo "$gl_cv_next_strings_h" >&6; }
22089 NEXT_STRINGS_H=$gl_cv_next_strings_h
22091 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22092 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22093 gl_next_as_first_directive='<'strings.h'>'
22095 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22096 gl_next_as_first_directive=$gl_cv_next_strings_h
22098 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
22103 if test $ac_cv_header_strings_h = yes; then
22111 for gl_func in ffs strcasecmp strncasecmp; do
22112 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22114 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22115 if eval \${$as_gl_Symbol+:} false; then :
22116 $as_echo_n "(cached) " >&6
22118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22119 /* end confdefs.h. */
22121 /* Minix 3.1.8 has a bug: <sys/types.h> must be included before
22123 #include <sys/types.h>
22124 #include <strings.h>
22135 if ac_fn_c_try_compile "$LINENO"; then :
22136 eval "$as_gl_Symbol=yes"
22138 eval "$as_gl_Symbol=no"
22140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22142 eval ac_res=\$$as_gl_Symbol
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22144 $as_echo "$ac_res" >&6; }
22145 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22146 cat >>confdefs.h <<_ACEOF
22147 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22150 eval ac_cv_have_decl_$gl_func=yes
22160 GNULIB_GETPEERNAME=0;
22161 GNULIB_GETSOCKNAME=0;
22162 GNULIB_GETSOCKOPT=0;
22168 GNULIB_SETSOCKOPT=0;
22171 HAVE_STRUCT_SOCKADDR_STORAGE=1;
22172 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
22174 HAVE_SA_FAMILY_T=1;
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22178 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22179 if ${ac_cv_header_stat_broken+:} false; then :
22180 $as_echo_n "(cached) " >&6
22182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22183 /* end confdefs.h. */
22184 #include <sys/types.h>
22185 #include <sys/stat.h>
22187 #if defined S_ISBLK && defined S_IFDIR
22188 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22191 #if defined S_ISBLK && defined S_IFCHR
22192 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22195 #if defined S_ISLNK && defined S_IFREG
22196 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22199 #if defined S_ISSOCK && defined S_IFREG
22200 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22204 if ac_fn_c_try_compile "$LINENO"; then :
22205 ac_cv_header_stat_broken=no
22207 ac_cv_header_stat_broken=yes
22209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22212 $as_echo "$ac_cv_header_stat_broken" >&6; }
22213 if test $ac_cv_header_stat_broken = yes; then
22215 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22221 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22222 if test "x$ac_cv_type_mode_t" = xyes; then :
22226 cat >>confdefs.h <<_ACEOF
22234 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22235 if test "x$ac_cv_type_pid_t" = xyes; then :
22239 cat >>confdefs.h <<_ACEOF
22251 GNULIB_NANOSLEEP=0;
22255 HAVE_DECL_LOCALTIME_R=1;
22259 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
22260 REPLACE_MKTIME=GNULIB_PORTCHECK;
22261 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
22262 REPLACE_TIMEGM=GNULIB_PORTCHECK;
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
22269 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
22270 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
22271 $as_echo_n "(cached) " >&6
22273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22274 /* end confdefs.h. */
22280 static struct timespec x; x.tv_sec = x.tv_nsec;
22285 if ac_fn_c_try_compile "$LINENO"; then :
22286 gl_cv_sys_struct_timespec_in_time_h=yes
22288 gl_cv_sys_struct_timespec_in_time_h=no
22290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
22293 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
22295 TIME_H_DEFINES_STRUCT_TIMESPEC=0
22296 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
22297 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
22298 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
22299 TIME_H_DEFINES_STRUCT_TIMESPEC=1
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
22302 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
22303 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
22304 $as_echo_n "(cached) " >&6
22306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22307 /* end confdefs.h. */
22308 #include <sys/time.h>
22313 static struct timespec x; x.tv_sec = x.tv_nsec;
22318 if ac_fn_c_try_compile "$LINENO"; then :
22319 gl_cv_sys_struct_timespec_in_sys_time_h=yes
22321 gl_cv_sys_struct_timespec_in_sys_time_h=no
22323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
22326 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
22327 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
22328 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
22331 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
22332 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
22333 $as_echo_n "(cached) " >&6
22335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22336 /* end confdefs.h. */
22337 #include <pthread.h>
22342 static struct timespec x; x.tv_sec = x.tv_nsec;
22347 if ac_fn_c_try_compile "$LINENO"; then :
22348 gl_cv_sys_struct_timespec_in_pthread_h=yes
22350 gl_cv_sys_struct_timespec_in_pthread_h=no
22352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
22355 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
22356 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
22357 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
22376 if test $gl_cv_have_include_next = yes; then
22377 gl_cv_next_time_h='<'time.h'>'
22379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
22380 $as_echo_n "checking absolute name of <time.h>... " >&6; }
22381 if ${gl_cv_next_time_h+:} false; then :
22382 $as_echo_n "(cached) " >&6
22385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22386 /* end confdefs.h. */
22391 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22392 *) gl_absname_cpp="$ac_cpp" ;;
22397 gl_dirsep_regex='[/\\]'
22400 gl_dirsep_regex='\/'
22403 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22405 gl_header_literal_regex=`echo 'time.h' \
22406 | sed -e "$gl_make_literal_regex_sed"`
22407 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22408 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22413 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22414 sed -n "$gl_absolute_header_sed"`'"'
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
22419 $as_echo "$gl_cv_next_time_h" >&6; }
22421 NEXT_TIME_H=$gl_cv_next_time_h
22423 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22424 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22425 gl_next_as_first_directive='<'time.h'>'
22427 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22428 gl_next_as_first_directive=$gl_cv_next_time_h
22430 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
22437 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
22438 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
22444 cat >>confdefs.h <<_ACEOF
22445 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
22454 $as_echo_n "checking for wint_t... " >&6; }
22455 if ${gt_cv_c_wint_t+:} false; then :
22456 $as_echo_n "(cached) " >&6
22458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22459 /* end confdefs.h. */
22461 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22463 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
22464 before <wchar.h>. */
22465 #include <stddef.h>
22469 wint_t foo = (wchar_t)'\0';
22478 if ac_fn_c_try_compile "$LINENO"; then :
22483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
22486 $as_echo "$gt_cv_c_wint_t" >&6; }
22487 if test $gt_cv_c_wint_t = yes; then
22489 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
22497 if test $ac_cv_header_features_h = yes; then
22505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
22506 $as_echo_n "checking for inttypes.h... " >&6; }
22507 if ${gl_cv_header_inttypes_h+:} false; then :
22508 $as_echo_n "(cached) " >&6
22510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22511 /* end confdefs.h. */
22512 #include <sys/types.h>
22513 #include <inttypes.h>
22517 uintmax_t i = (uintmax_t) -1; return !i;
22522 if ac_fn_c_try_compile "$LINENO"; then :
22523 gl_cv_header_inttypes_h=yes
22525 gl_cv_header_inttypes_h=no
22527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
22530 $as_echo "$gl_cv_header_inttypes_h" >&6; }
22531 if test $gl_cv_header_inttypes_h = yes; then
22533 cat >>confdefs.h <<_ACEOF
22534 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
22541 $as_echo_n "checking for stdint.h... " >&6; }
22542 if ${gl_cv_header_stdint_h+:} false; then :
22543 $as_echo_n "(cached) " >&6
22545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22546 /* end confdefs.h. */
22547 #include <sys/types.h>
22548 #include <stdint.h>
22552 uintmax_t i = (uintmax_t) -1; return !i;
22557 if ac_fn_c_try_compile "$LINENO"; then :
22558 gl_cv_header_stdint_h=yes
22560 gl_cv_header_stdint_h=no
22562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
22565 $as_echo "$gl_cv_header_stdint_h" >&6; }
22566 if test $gl_cv_header_stdint_h = yes; then
22568 cat >>confdefs.h <<_ACEOF
22569 #define HAVE_STDINT_H_WITH_UINTMAX 1
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
22578 $as_echo_n "checking for intmax_t... " >&6; }
22579 if ${gt_cv_c_intmax_t+:} false; then :
22580 $as_echo_n "(cached) " >&6
22582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22583 /* end confdefs.h. */
22585 #include <stddef.h>
22586 #include <stdlib.h>
22587 #if HAVE_STDINT_H_WITH_UINTMAX
22588 #include <stdint.h>
22590 #if HAVE_INTTYPES_H_WITH_UINTMAX
22591 #include <inttypes.h>
22597 intmax_t x = -1; return !x;
22602 if ac_fn_c_try_compile "$LINENO"; then :
22603 gt_cv_c_intmax_t=yes
22605 gt_cv_c_intmax_t=no
22607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
22610 $as_echo "$gt_cv_c_intmax_t" >&6; }
22611 if test $gt_cv_c_intmax_t = yes; then
22613 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22617 test $ac_cv_type_long_long_int = yes \
22618 && ac_type='long long' \
22621 cat >>confdefs.h <<_ACEOF
22622 #define intmax_t $ac_type
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
22629 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
22630 if ${gl_cv_cc_double_expbit0+:} false; then :
22631 $as_echo_n "(cached) " >&6
22634 if test "$cross_compiling" = yes; then :
22636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22637 /* end confdefs.h. */
22639 #if defined arm || defined __arm || defined __arm__
22644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22645 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
22646 gl_cv_cc_double_expbit0="unknown"
22650 if ${ac_cv_c_bigendian+:} false; then :
22651 $as_echo_n "(cached) " >&6
22653 ac_cv_c_bigendian=unknown
22654 # See if we're dealing with a universal compiler.
22655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22656 /* end confdefs.h. */
22657 #ifndef __APPLE_CC__
22658 not a universal capable compiler
22663 if ac_fn_c_try_compile "$LINENO"; then :
22665 # Check for potential -arch flags. It is not universal unless
22666 # there are at least two -arch flags with different values.
22669 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22670 if test -n "$ac_prev"; then
22672 i?86 | x86_64 | ppc | ppc64)
22673 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22676 ac_cv_c_bigendian=universal
22682 elif test "x$ac_word" = "x-arch"; then
22687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22688 if test $ac_cv_c_bigendian = unknown; then
22689 # See if sys/param.h defines the BYTE_ORDER macro.
22690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22691 /* end confdefs.h. */
22692 #include <sys/types.h>
22693 #include <sys/param.h>
22698 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22699 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22701 bogus endian macros
22708 if ac_fn_c_try_compile "$LINENO"; then :
22709 # It does; now see whether it defined to BIG_ENDIAN or not.
22710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22711 /* end confdefs.h. */
22712 #include <sys/types.h>
22713 #include <sys/param.h>
22718 #if BYTE_ORDER != BIG_ENDIAN
22726 if ac_fn_c_try_compile "$LINENO"; then :
22727 ac_cv_c_bigendian=yes
22729 ac_cv_c_bigendian=no
22731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22735 if test $ac_cv_c_bigendian = unknown; then
22736 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22738 /* end confdefs.h. */
22739 #include <limits.h>
22744 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22745 bogus endian macros
22752 if ac_fn_c_try_compile "$LINENO"; then :
22753 # It does; now see whether it defined to _BIG_ENDIAN or not.
22754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22755 /* end confdefs.h. */
22756 #include <limits.h>
22761 #ifndef _BIG_ENDIAN
22769 if ac_fn_c_try_compile "$LINENO"; then :
22770 ac_cv_c_bigendian=yes
22772 ac_cv_c_bigendian=no
22774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22778 if test $ac_cv_c_bigendian = unknown; then
22779 # Compile a test program.
22780 if test "$cross_compiling" = yes; then :
22781 # Try to guess by grepping values from an object file.
22782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22783 /* end confdefs.h. */
22784 short int ascii_mm[] =
22785 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22786 short int ascii_ii[] =
22787 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22788 int use_ascii (int i) {
22789 return ascii_mm[i] + ascii_ii[i];
22791 short int ebcdic_ii[] =
22792 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22793 short int ebcdic_mm[] =
22794 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22795 int use_ebcdic (int i) {
22796 return ebcdic_mm[i] + ebcdic_ii[i];
22803 return use_ascii (foo) == use_ebcdic (foo);
22808 if ac_fn_c_try_compile "$LINENO"; then :
22809 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22810 ac_cv_c_bigendian=yes
22812 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22813 if test "$ac_cv_c_bigendian" = unknown; then
22814 ac_cv_c_bigendian=no
22816 # finding both strings is unlikely to happen, but who knows?
22817 ac_cv_c_bigendian=unknown
22821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22824 /* end confdefs.h. */
22825 $ac_includes_default
22830 /* Are we little or big endian? From Harbison&Steele. */
22834 char c[sizeof (long int)];
22837 return u.c[sizeof (long int) - 1] == 1;
22843 if ac_fn_c_try_run "$LINENO"; then :
22844 ac_cv_c_bigendian=no
22846 ac_cv_c_bigendian=yes
22848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22849 conftest.$ac_objext conftest.beam conftest.$ac_ext
22855 case $ac_cv_c_bigendian in #(
22857 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
22859 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
22862 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22866 gl_cv_cc_double_expbit0="unknown" ;;
22875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22876 /* end confdefs.h. */
22879 #include <stddef.h>
22881 #include <string.h>
22883 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
22884 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
22885 static unsigned int ored_words[NWORDS];
22886 static unsigned int anded_words[NWORDS];
22887 static void add_to_ored_words (double x)
22891 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
22892 memset (&m, 0, sizeof (memory_double));
22894 for (i = 0; i < NWORDS; i++)
22896 ored_words[i] |= m.word[i];
22897 anded_words[i] &= m.word[i];
22903 FILE *fp = fopen ("conftest.out", "w");
22906 for (j = 0; j < NWORDS; j++)
22907 anded_words[j] = ~ (unsigned int) 0;
22908 add_to_ored_words (0.25);
22909 add_to_ored_words (0.5);
22910 add_to_ored_words (1.0);
22911 add_to_ored_words (2.0);
22912 add_to_ored_words (4.0);
22913 /* Remove bits that are common (e.g. if representation of the first mantissa
22914 bit is explicit). */
22915 for (j = 0; j < NWORDS; j++)
22916 ored_words[j] &= ~anded_words[j];
22917 /* Now find the nonzero word. */
22918 for (j = 0; j < NWORDS; j++)
22919 if (ored_words[j] != 0)
22924 for (i = j + 1; i < NWORDS; i++)
22925 if (ored_words[i] != 0)
22927 fprintf (fp, "unknown");
22928 return (fclose (fp) != 0);
22931 if ((ored_words[j] >> i) & 1)
22933 fprintf (fp, "word %d bit %d", (int) j, (int) i);
22934 return (fclose (fp) != 0);
22937 fprintf (fp, "unknown");
22938 return (fclose (fp) != 0);
22942 if ac_fn_c_try_run "$LINENO"; then :
22943 gl_cv_cc_double_expbit0=`cat conftest.out`
22945 gl_cv_cc_double_expbit0="unknown"
22947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22948 conftest.$ac_objext conftest.beam conftest.$ac_ext
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
22955 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
22956 case "$gl_cv_cc_double_expbit0" in
22958 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
22959 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
22961 cat >>confdefs.h <<_ACEOF
22962 #define DBL_EXPBIT0_WORD $word
22966 cat >>confdefs.h <<_ACEOF
22967 #define DBL_EXPBIT0_BIT $bit
22979 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
22981 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22982 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22983 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22984 cat >>confdefs.h <<_ACEOF
22985 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22991 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
22993 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
22999 cat >>confdefs.h <<_ACEOF
23000 #define HAVE_DECL__SNPRINTF $ac_have_decl
23005 case "$gl_cv_func_snprintf_retval_c99" in
23008 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
23014 XGETTEXT_EXTRA_OPTIONS=
23016 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
23017 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
23023 cat >>confdefs.h <<_ACEOF
23024 #define HAVE_DECL_VSNPRINTF $ac_have_decl
23033 GNULIB_MBSRTOWCS=0;
23034 GNULIB_MBSNRTOWCS=0;
23036 GNULIB_WCSRTOMBS=0;
23037 GNULIB_WCSNRTOMBS=0;
23054 GNULIB_WCSCASECMP=0;
23055 GNULIB_WCSNCASECMP=0;
23092 HAVE_WCSNCASECMP=1;
23105 HAVE_DECL_WCWIDTH=1;
23106 REPLACE_MBSTATE_T=0;
23112 REPLACE_MBSRTOWCS=0;
23113 REPLACE_MBSNRTOWCS=0;
23115 REPLACE_WCSRTOMBS=0;
23116 REPLACE_WCSNRTOMBS=0;
23118 REPLACE_WCSWIDTH=0;
23121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
23122 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
23123 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
23124 $as_echo_n "(cached) " >&6
23126 gl_cv_header_wchar_h_correct_inline=yes
23127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23128 /* end confdefs.h. */
23130 #define wcstod renamed_wcstod
23131 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23133 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23134 included before <wchar.h>. */
23135 #include <stddef.h>
23139 extern int zero (void);
23140 int main () { return zero(); }
23143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23144 (eval $ac_compile) 2>&5
23146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23147 test $ac_status = 0; }; then
23148 mv conftest.$ac_objext conftest1.$ac_objext
23149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23150 /* end confdefs.h. */
23152 #define wcstod renamed_wcstod
23153 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23155 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23156 included before <wchar.h>. */
23157 #include <stddef.h>
23161 int zero (void) { return 0; }
23164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23165 (eval $ac_compile) 2>&5
23167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23168 test $ac_status = 0; }; then
23169 mv conftest.$ac_objext conftest2.$ac_objext
23170 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
23173 gl_cv_header_wchar_h_correct_inline=no
23177 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
23181 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
23182 if test $gl_cv_header_wchar_h_correct_inline = no; then
23183 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
23184 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
23185 C99 mode. You have four options:
23186 - Add the flag -fgnu89-inline to CC and reconfigure, or
23187 - Fix your include files, using parts of
23188 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
23189 - Use a gcc version older than 4.3, or
23190 - Don't use the flags -std=c99 or -std=gnu99.
23191 Configuration aborted." "$LINENO" 5
23196 GNULIB_NONBLOCKING=0;
23212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
23213 $as_echo_n "checking for working fcntl.h... " >&6; }
23214 if ${gl_cv_header_working_fcntl_h+:} false; then :
23215 $as_echo_n "(cached) " >&6
23217 if test "$cross_compiling" = yes; then :
23218 gl_cv_header_working_fcntl_h=cross-compiling
23220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23221 /* end confdefs.h. */
23222 #include <sys/types.h>
23223 #include <sys/stat.h>
23225 # include <unistd.h>
23226 #else /* on Windows with MSVC */
23228 # include <stdlib.h>
23229 # defined sleep(n) _sleep ((n) * 1000)
23233 #define O_NOATIME 0
23236 #define O_NOFOLLOW 0
23238 static int const constants[] =
23240 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
23241 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
23248 int result = !constants;
23251 static char const sym[] = "conftest.sym";
23252 if (symlink (".", sym) != 0)
23256 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
23267 static char const file[] = "confdefs.h";
23268 int fd = open (file, O_RDONLY | O_NOATIME);
23274 if (fstat (fd, &st0) != 0)
23280 if (read (fd, &c, 1) != 1)
23284 if (close (fd) != 0)
23289 if (stat (file, &st1) != 0)
23292 if (st0.st_atime != st1.st_atime)
23304 if ac_fn_c_try_run "$LINENO"; then :
23305 gl_cv_header_working_fcntl_h=yes
23308 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
23309 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
23310 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
23311 *) gl_cv_header_working_fcntl_h='no';;
23314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23315 conftest.$ac_objext conftest.beam conftest.$ac_ext
23319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
23320 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
23322 case $gl_cv_header_working_fcntl_h in #(
23323 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
23327 cat >>confdefs.h <<_ACEOF
23328 #define HAVE_WORKING_O_NOATIME $ac_val
23332 case $gl_cv_header_working_fcntl_h in #(
23333 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
23337 cat >>confdefs.h <<_ACEOF
23338 #define HAVE_WORKING_O_NOFOLLOW $ac_val
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ungetc works on arbitrary bytes" >&5
23346 $as_echo_n "checking whether ungetc works on arbitrary bytes... " >&6; }
23347 if ${gl_cv_func_ungetc_works+:} false; then :
23348 $as_echo_n "(cached) " >&6
23350 if test "$cross_compiling" = yes; then :
23351 gl_cv_func_ungetc_works='guessing no'
23353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23354 /* end confdefs.h. */
23362 if (!(f = fopen ("conftest.tmp", "w+"))) return 1;
23363 if (fputs ("abc", f) < 0) return 2;
23365 if (fgetc (f) != 'a') return 3;
23366 if (fgetc (f) != 'b') return 4;
23367 if (ungetc ('d', f) != 'd') return 5;
23368 if (ftell (f) != 1) return 6;
23369 if (fgetc (f) != 'd') return 7;
23370 if (ftell (f) != 2) return 8;
23371 if (fseek (f, 0, SEEK_CUR) != 0) return 9;
23372 if (ftell (f) != 2) return 10;
23373 if (fgetc (f) != 'c') return 11;
23374 fclose (f); remove ("conftest.tmp");
23379 if ac_fn_c_try_run "$LINENO"; then :
23380 gl_cv_func_ungetc_works=yes
23382 gl_cv_func_ungetc_works=no
23384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23385 conftest.$ac_objext conftest.beam conftest.$ac_ext
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ungetc_works" >&5
23391 $as_echo "$gl_cv_func_ungetc_works" >&6; }
23392 if test "$gl_cv_func_ungetc_works" != yes; then
23394 $as_echo "#define FUNC_UNGETC_BROKEN 1" >>confdefs.h
23403 GNULIB_STRTOIMAX=0;
23404 GNULIB_STRTOUMAX=0;
23405 HAVE_DECL_IMAXABS=1;
23406 HAVE_DECL_IMAXDIV=1;
23407 HAVE_DECL_STRTOIMAX=1;
23408 HAVE_DECL_STRTOUMAX=1;
23409 REPLACE_STRTOIMAX=0;
23410 INT32_MAX_LT_INTMAX_MAX=1;
23411 INT64_MAX_EQ_LONG_MAX='defined _LP64';
23412 PRI_MACROS_BROKEN=0;
23413 PRIPTR_PREFIX=__PRIPTR_PREFIX;
23414 UINT32_MAX_LT_UINTMAX_MAX=1;
23415 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
23431 if test $gl_cv_have_include_next = yes; then
23432 gl_cv_next_inttypes_h='<'inttypes.h'>'
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
23435 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
23436 if ${gl_cv_next_inttypes_h+:} false; then :
23437 $as_echo_n "(cached) " >&6
23440 if test $ac_cv_header_inttypes_h = yes; then
23443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23444 /* end confdefs.h. */
23445 #include <inttypes.h>
23449 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23450 *) gl_absname_cpp="$ac_cpp" ;;
23455 gl_dirsep_regex='[/\\]'
23458 gl_dirsep_regex='\/'
23461 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23463 gl_header_literal_regex=`echo 'inttypes.h' \
23464 | sed -e "$gl_make_literal_regex_sed"`
23465 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23466 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23471 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23472 sed -n "$gl_absolute_header_sed"`'"'
23474 gl_cv_next_inttypes_h='<'inttypes.h'>'
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
23480 $as_echo "$gl_cv_next_inttypes_h" >&6; }
23482 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
23484 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23485 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23486 gl_next_as_first_directive='<'inttypes.h'>'
23488 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23489 gl_next_as_first_directive=$gl_cv_next_inttypes_h
23491 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
23500 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
23501 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23503 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23504 if eval \${$as_gl_Symbol+:} false; then :
23505 $as_echo_n "(cached) " >&6
23507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23508 /* end confdefs.h. */
23509 #include <inttypes.h>
23520 if ac_fn_c_try_compile "$LINENO"; then :
23521 eval "$as_gl_Symbol=yes"
23523 eval "$as_gl_Symbol=no"
23525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23527 eval ac_res=\$$as_gl_Symbol
23528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23529 $as_echo "$ac_res" >&6; }
23530 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23531 cat >>confdefs.h <<_ACEOF
23532 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23535 eval ac_cv_have_decl_$gl_func=yes
23541 for ac_header in inttypes.h
23543 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23544 if test "x$ac_cv_header_inttypes_h" = xyes; then :
23545 cat >>confdefs.h <<_ACEOF
23546 #define HAVE_INTTYPES_H 1
23553 if test $ac_cv_header_inttypes_h = yes; then
23554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
23555 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
23556 if ${gt_cv_inttypes_pri_broken+:} false; then :
23557 $as_echo_n "(cached) " >&6
23560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23561 /* end confdefs.h. */
23562 #include <inttypes.h>
23575 if ac_fn_c_try_compile "$LINENO"; then :
23576 gt_cv_inttypes_pri_broken=no
23578 gt_cv_inttypes_pri_broken=yes
23580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
23584 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
23586 if test "$gt_cv_inttypes_pri_broken" = yes; then
23588 cat >>confdefs.h <<_ACEOF
23589 #define PRI_MACROS_BROKEN 1
23592 PRI_MACROS_BROKEN=1
23594 PRI_MACROS_BROKEN=0
23602 GL_COND_LIBTOOL_TRUE=
23603 GL_COND_LIBTOOL_FALSE='#'
23605 GL_COND_LIBTOOL_TRUE='#'
23606 GL_COND_LIBTOOL_FALSE=
23609 gl_cond_libtool=true
23620 gl_source_base='gl'
23623 if test $ac_cv_func_alloca_works = no; then
23627 # Define an additional variable used in the Makefile substitution.
23628 if test $ac_cv_working_alloca_h = yes; then
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
23630 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
23631 if ${gl_cv_rpl_alloca+:} false; then :
23632 $as_echo_n "(cached) " >&6
23635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23636 /* end confdefs.h. */
23638 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
23643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23644 $EGREP "Need own alloca" >/dev/null 2>&1; then :
23645 gl_cv_rpl_alloca=yes
23647 gl_cv_rpl_alloca=no
23653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
23654 $as_echo "$gl_cv_rpl_alloca" >&6; }
23655 if test $gl_cv_rpl_alloca = yes; then
23657 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
23667 if test -n "$ALLOCA_H"; then
23668 GL_GENERATE_ALLOCA_H_TRUE=
23669 GL_GENERATE_ALLOCA_H_FALSE='#'
23671 GL_GENERATE_ALLOCA_H_TRUE='#'
23672 GL_GENERATE_ALLOCA_H_FALSE=
23677 for ac_header in byteswap.h
23679 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
23680 if test "x$ac_cv_header_byteswap_h" = xyes; then :
23681 cat >>confdefs.h <<_ACEOF
23682 #define HAVE_BYTESWAP_H 1
23689 BYTESWAP_H='byteswap.h'
23696 if test -n "$BYTESWAP_H"; then
23697 GL_GENERATE_BYTESWAP_H_TRUE=
23698 GL_GENERATE_BYTESWAP_H_FALSE='#'
23700 GL_GENERATE_BYTESWAP_H_TRUE='#'
23701 GL_GENERATE_BYTESWAP_H_FALSE=
23710 REPLACE_FLOAT_LDBL=0
23712 aix* | beos* | openbsd* | mirbsd* | irix*)
23716 case "$host_cpu" in
23721 # On x86_64 systems, the C compiler may still be generating
23723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23724 /* end confdefs.h. */
23725 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
23729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23730 $EGREP "yes" >/dev/null 2>&1; then :
23741 case "$host_cpu" in
23749 aix* | freebsd* | linux*)
23750 if test -n "$FLOAT_H"; then
23751 REPLACE_FLOAT_LDBL=1
23757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
23758 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
23759 if ${gl_cv_func_itold_works+:} false; then :
23760 $as_echo_n "(cached) " >&6
23763 if test "$cross_compiling" = yes; then :
23766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23767 /* end confdefs.h. */
23768 #if defined __LP64__ || defined __arch64__
23772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23773 $EGREP "yes" >/dev/null 2>&1; then :
23774 gl_cv_func_itold_works="guessing no"
23776 gl_cv_func_itold_works="guessing yes"
23781 *) gl_cv_func_itold_works="guessing yes" ;;
23785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23786 /* end confdefs.h. */
23789 volatile long double ld;
23798 if ac_fn_c_try_run "$LINENO"; then :
23799 gl_cv_func_itold_works=yes
23801 gl_cv_func_itold_works=no
23803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23804 conftest.$ac_objext conftest.beam conftest.$ac_ext
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
23810 $as_echo "$gl_cv_func_itold_works" >&6; }
23811 case "$gl_cv_func_itold_works" in
23818 if test -n "$FLOAT_H"; then
23827 if test $gl_cv_have_include_next = yes; then
23828 gl_cv_next_float_h='<'float.h'>'
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
23831 $as_echo_n "checking absolute name of <float.h>... " >&6; }
23832 if ${gl_cv_next_float_h+:} false; then :
23833 $as_echo_n "(cached) " >&6
23836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23837 /* end confdefs.h. */
23842 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23843 *) gl_absname_cpp="$ac_cpp" ;;
23848 gl_dirsep_regex='[/\\]'
23851 gl_dirsep_regex='\/'
23854 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23856 gl_header_literal_regex=`echo 'float.h' \
23857 | sed -e "$gl_make_literal_regex_sed"`
23858 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23859 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23864 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23865 sed -n "$gl_absolute_header_sed"`'"'
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
23870 $as_echo "$gl_cv_next_float_h" >&6; }
23872 NEXT_FLOAT_H=$gl_cv_next_float_h
23874 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23875 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23876 gl_next_as_first_directive='<'float.h'>'
23878 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23879 gl_next_as_first_directive=$gl_cv_next_float_h
23881 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
23888 if test -n "$FLOAT_H"; then
23889 GL_GENERATE_FLOAT_H_TRUE=
23890 GL_GENERATE_FLOAT_H_FALSE='#'
23892 GL_GENERATE_FLOAT_H_TRUE='#'
23893 GL_GENERATE_FLOAT_H_FALSE=
23898 if test $REPLACE_FLOAT_LDBL = 1; then
23907 lgl_LIBOBJS="$lgl_LIBOBJS float.$ac_objext"
23910 if test $REPLACE_ITOLD = 1; then
23919 lgl_LIBOBJS="$lgl_LIBOBJS itold.$ac_objext"
23925 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
23929 if test $REPLACE_FSEEK = 1; then
23938 lgl_LIBOBJS="$lgl_LIBOBJS fseek.$ac_objext"
23952 $as_echo "#define GNULIB_TEST_FSEEK 1" >>confdefs.h
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
23964 $as_echo_n "checking for fseeko... " >&6; }
23965 if ${gl_cv_func_fseeko+:} false; then :
23966 $as_echo_n "(cached) " >&6
23969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23970 /* end confdefs.h. */
23976 fseeko (stdin, 0, 0);
23981 if ac_fn_c_try_link "$LINENO"; then :
23982 gl_cv_func_fseeko=yes
23984 gl_cv_func_fseeko=no
23986 rm -f core conftest.err conftest.$ac_objext \
23987 conftest$ac_exeext conftest.$ac_ext
23990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
23991 $as_echo "$gl_cv_func_fseeko" >&6; }
23994 if test $ac_cv_have_decl_fseeko = no; then
23998 if test $gl_cv_func_fseeko = no; then
24001 if test $gl_cv_var_stdin_large_offset = no; then
24007 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
24016 lgl_LIBOBJS="$lgl_LIBOBJS fseeko.$ac_objext"
24030 $as_echo "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h
24037 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24042 if test $REPLACE_FSTAT = 1; then
24051 lgl_LIBOBJS="$lgl_LIBOBJS fstat.$ac_objext"
24068 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
24075 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
24079 if test $REPLACE_FTELL = 1; then
24088 lgl_LIBOBJS="$lgl_LIBOBJS ftell.$ac_objext"
24102 $as_echo "#define GNULIB_TEST_FTELL 1" >>confdefs.h
24114 if test $ac_cv_have_decl_ftello = no; then
24118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
24119 $as_echo_n "checking for ftello... " >&6; }
24120 if ${gl_cv_func_ftello+:} false; then :
24121 $as_echo_n "(cached) " >&6
24124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24125 /* end confdefs.h. */
24135 if ac_fn_c_try_link "$LINENO"; then :
24136 gl_cv_func_ftello=yes
24138 gl_cv_func_ftello=no
24140 rm -f core conftest.err conftest.$ac_objext \
24141 conftest$ac_exeext conftest.$ac_ext
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
24145 $as_echo "$gl_cv_func_ftello" >&6; }
24146 if test $gl_cv_func_ftello = no; then
24149 if test $gl_cv_var_stdin_large_offset = no; then
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
24154 $as_echo_n "checking whether ftello works... " >&6; }
24155 if ${gl_cv_func_ftello_works+:} false; then :
24156 $as_echo_n "(cached) " >&6
24160 # Guess no on Solaris.
24161 solaris*) gl_cv_func_ftello_works="guessing no" ;;
24162 # Guess yes otherwise.
24163 *) gl_cv_func_ftello_works="guessing yes" ;;
24165 if test "$cross_compiling" = yes; then :
24168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24169 /* end confdefs.h. */
24172 #include <stdlib.h>
24173 #include <string.h>
24174 #define TESTFILE "conftest.tmp"
24180 /* Create a file with some contents. */
24181 fp = fopen (TESTFILE, "w");
24184 if (fwrite ("foogarsh", 1, 8, fp) < 8)
24189 /* The file's contents is now "foogarsh". */
24191 /* Try writing after reading to EOF. */
24192 fp = fopen (TESTFILE, "r+");
24195 if (fseek (fp, -1, SEEK_END))
24197 if (!(getc (fp) == 'h'))
24199 if (!(getc (fp) == EOF))
24201 if (!(ftell (fp) == 8))
24203 if (!(ftell (fp) == 8))
24205 if (!(putc ('!', fp) == '!'))
24207 if (!(ftell (fp) == 9))
24209 if (!(fclose (fp) == 0))
24211 fp = fopen (TESTFILE, "r");
24216 if (!(fread (buf, 1, 10, fp) == 9))
24218 if (!(memcmp (buf, "foogarsh!", 9) == 0))
24221 if (!(fclose (fp) == 0))
24224 /* The file's contents is now "foogarsh!". */
24229 if ac_fn_c_try_run "$LINENO"; then :
24230 gl_cv_func_ftello_works=yes
24232 gl_cv_func_ftello_works=no
24234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24235 conftest.$ac_objext conftest.beam conftest.$ac_ext
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
24241 $as_echo "$gl_cv_func_ftello_works" >&6; }
24242 case "$gl_cv_func_ftello_works" in
24247 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
24254 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
24263 lgl_LIBOBJS="$lgl_LIBOBJS ftello.$ac_objext"
24277 $as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __func__ is available" >&5
24283 $as_echo_n "checking whether __func__ is available... " >&6; }
24284 if ${gl_cv_var_func+:} false; then :
24285 $as_echo_n "(cached) " >&6
24287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24288 /* end confdefs.h. */
24293 const char *str = __func__;
24298 if ac_fn_c_try_compile "$LINENO"; then :
24303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_func" >&5
24306 $as_echo "$gl_cv_var_func" >&6; }
24307 if test "$gl_cv_var_func" != yes; then
24309 $as_echo "#define __func__ \"<unknown function>\"" >>confdefs.h
24317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
24318 $as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
24319 if ${gl_cv_ld_output_def+:} false; then :
24320 $as_echo_n "(cached) " >&6
24322 if test "$enable_shared" = no; then
24323 gl_cv_ld_output_def="not needed, shared libraries are disabled"
24325 gl_ldflags_save=$LDFLAGS
24326 LDFLAGS="-Wl,--output-def,conftest.def"
24327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24328 /* end confdefs.h. */
24338 if ac_fn_c_try_link "$LINENO"; then :
24339 gl_cv_ld_output_def=yes
24341 gl_cv_ld_output_def=no
24343 rm -f core conftest.err conftest.$ac_objext \
24344 conftest$ac_exeext conftest.$ac_ext
24346 LDFLAGS="$gl_ldflags_save"
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
24350 $as_echo "$gl_cv_ld_output_def" >&6; }
24351 if test "x$gl_cv_ld_output_def" = "xyes"; then
24352 HAVE_LD_OUTPUT_DEF_TRUE=
24353 HAVE_LD_OUTPUT_DEF_FALSE='#'
24355 HAVE_LD_OUTPUT_DEF_TRUE='#'
24356 HAVE_LD_OUTPUT_DEF_FALSE=
24361 # Check whether --enable-ld-version-script was given.
24362 if test "${enable_ld_version_script+set}" = set; then :
24363 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
24366 if test -z "$have_ld_version_script"; then
24367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
24368 $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
24369 save_LDFLAGS="$LDFLAGS"
24370 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
24371 cat > conftest.map <<EOF
24374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24375 /* end confdefs.h. */
24385 if ac_fn_c_try_link "$LINENO"; then :
24386 accepts_syntax_errors=yes
24388 accepts_syntax_errors=no
24390 rm -f core conftest.err conftest.$ac_objext \
24391 conftest$ac_exeext conftest.$ac_ext
24392 if test "$accepts_syntax_errors" = no; then
24393 cat > conftest.map <<EOF
24402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24403 /* end confdefs.h. */
24413 if ac_fn_c_try_link "$LINENO"; then :
24414 have_ld_version_script=yes
24416 have_ld_version_script=no
24418 rm -f core conftest.err conftest.$ac_objext \
24419 conftest$ac_exeext conftest.$ac_ext
24421 have_ld_version_script=no
24424 LDFLAGS="$save_LDFLAGS"
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
24426 $as_echo "$have_ld_version_script" >&6; }
24428 if test "$have_ld_version_script" = "yes"; then
24429 HAVE_LD_VERSION_SCRIPT_TRUE=
24430 HAVE_LD_VERSION_SCRIPT_FALSE='#'
24432 HAVE_LD_VERSION_SCRIPT_TRUE='#'
24433 HAVE_LD_VERSION_SCRIPT_FALSE=
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
24442 $as_echo_n "checking whether lseek detects pipes... " >&6; }
24443 if ${gl_cv_func_lseek_pipe+:} false; then :
24444 $as_echo_n "(cached) " >&6
24446 if test $cross_compiling = no; then
24447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24448 /* end confdefs.h. */
24450 #include <sys/types.h> /* for off_t */
24451 #include <stdio.h> /* for SEEK_CUR */
24453 # include <unistd.h>
24454 #else /* on Windows with MSVC */
24462 /* Exit with success only if stdin is seekable. */
24463 return lseek (0, (off_t)0, SEEK_CUR) < 0;
24469 if ac_fn_c_try_link "$LINENO"; then :
24470 if test -s conftest$ac_exeext \
24471 && ./conftest$ac_exeext < conftest.$ac_ext \
24472 && test 1 = "`echo hi \
24473 | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
24474 gl_cv_func_lseek_pipe=yes
24476 gl_cv_func_lseek_pipe=no
24479 gl_cv_func_lseek_pipe=no
24481 rm -f core conftest.err conftest.$ac_objext \
24482 conftest$ac_exeext conftest.$ac_ext
24484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24485 /* end confdefs.h. */
24487 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
24488 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes. */
24492 if ac_fn_c_try_compile "$LINENO"; then :
24493 gl_cv_func_lseek_pipe=yes
24495 gl_cv_func_lseek_pipe=no
24497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
24501 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
24502 if test $gl_cv_func_lseek_pipe = no; then
24505 $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
24509 if test $REPLACE_LSEEK = 1; then
24518 lgl_LIBOBJS="$lgl_LIBOBJS lseek.$ac_objext"
24532 $as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
24539 if test $gl_cv_func_malloc_posix = yes; then
24541 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
24547 if test $REPLACE_MALLOC = 1; then
24556 lgl_LIBOBJS="$lgl_LIBOBJS malloc.$ac_objext"
24564 GNULIB_MALLOC_POSIX=1
24570 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
24575 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
24584 lgl_LIBOBJS="$lgl_LIBOBJS memchr.$ac_objext"
24587 for ac_header in bp-sym.h
24589 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
24590 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
24591 cat >>confdefs.h <<_ACEOF
24592 #define HAVE_BP_SYM_H 1
24612 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
24620 for ac_func in memmem
24622 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
24623 if test "x$ac_cv_func_memmem" = xyes; then :
24624 cat >>confdefs.h <<_ACEOF
24625 #define HAVE_MEMMEM 1
24631 if test $ac_cv_func_memmem = yes; then
24637 if test $ac_cv_have_decl_memmem = no; then
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
24641 $as_echo_n "checking whether memmem works... " >&6; }
24642 if ${gl_cv_func_memmem_works_always+:} false; then :
24643 $as_echo_n "(cached) " >&6
24645 if test "$cross_compiling" = yes; then :
24646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24647 /* end confdefs.h. */
24649 #ifdef __GNU_LIBRARY__
24650 #include <features.h>
24651 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
24652 || __GLIBC_MINOR__ > 12)) \
24653 || (__GLIBC__ > 2)) \
24654 || defined __UCLIBC__
24657 #elif defined __CYGWIN__
24658 #include <cygwin/version.h>
24659 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
24667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24668 $EGREP "Lucky user" >/dev/null 2>&1; then :
24669 gl_cv_func_memmem_works_always=yes
24671 gl_cv_func_memmem_works_always="guessing no"
24677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24678 /* end confdefs.h. */
24680 #include <string.h> /* for memmem */
24681 #define P "_EF_BF_BD"
24682 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
24683 #define NEEDLE P P P P P
24690 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
24692 /* Check for empty needle behavior. */
24694 const char *haystack = "AAA";
24695 if (memmem (haystack, 3, NULL, 0) != haystack)
24704 if ac_fn_c_try_run "$LINENO"; then :
24705 gl_cv_func_memmem_works_always=yes
24707 gl_cv_func_memmem_works_always=no
24709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24710 conftest.$ac_objext conftest.beam conftest.$ac_ext
24715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
24716 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
24717 if test "$gl_cv_func_memmem_works_always" != yes; then
24723 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
24732 lgl_LIBOBJS="$lgl_LIBOBJS memmem.$ac_objext"
24746 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
24755 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
24756 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
24758 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
24761 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
24765 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24774 lgl_LIBOBJS="$lgl_LIBOBJS msvc-inval.$ac_objext"
24780 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24789 lgl_LIBOBJS="$lgl_LIBOBJS msvc-nothrow.$ac_objext"
24804 if test $gl_cv_have_include_next = yes; then
24805 gl_cv_next_netdb_h='<'netdb.h'>'
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
24808 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
24809 if ${gl_cv_next_netdb_h+:} false; then :
24810 $as_echo_n "(cached) " >&6
24813 if test $ac_cv_header_netdb_h = yes; then
24816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24817 /* end confdefs.h. */
24822 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24823 *) gl_absname_cpp="$ac_cpp" ;;
24828 gl_dirsep_regex='[/\\]'
24831 gl_dirsep_regex='\/'
24834 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24836 gl_header_literal_regex=`echo 'netdb.h' \
24837 | sed -e "$gl_make_literal_regex_sed"`
24838 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24839 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24844 gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24845 sed -n "$gl_absolute_header_sed"`'"'
24847 gl_cv_next_netdb_h='<'netdb.h'>'
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
24853 $as_echo "$gl_cv_next_netdb_h" >&6; }
24855 NEXT_NETDB_H=$gl_cv_next_netdb_h
24857 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24858 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24859 gl_next_as_first_directive='<'netdb.h'>'
24861 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24862 gl_next_as_first_directive=$gl_cv_next_netdb_h
24864 NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
24869 if test $ac_cv_header_netdb_h = yes; then
24877 for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
24878 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24880 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24881 if eval \${$as_gl_Symbol+:} false; then :
24882 $as_echo_n "(cached) " >&6
24884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24885 /* end confdefs.h. */
24896 if ac_fn_c_try_compile "$LINENO"; then :
24897 eval "$as_gl_Symbol=yes"
24899 eval "$as_gl_Symbol=no"
24901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24903 eval ac_res=\$$as_gl_Symbol
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24905 $as_echo "$ac_res" >&6; }
24906 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24907 cat >>confdefs.h <<_ACEOF
24908 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24911 eval ac_cv_have_decl_$gl_func=yes
24920 if test $gl_cv_func_malloc_posix = yes; then
24922 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
24928 if test $REPLACE_REALLOC = 1; then
24937 lgl_LIBOBJS="$lgl_LIBOBJS realloc.$ac_objext"
24945 GNULIB_REALLOC_POSIX=1
24951 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
24956 for ac_header in stdint.h
24958 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
24959 if test "x$ac_cv_header_stdint_h" = xyes; then :
24960 cat >>confdefs.h <<_ACEOF
24961 #define HAVE_STDINT_H 1
24968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
24969 $as_echo_n "checking for SIZE_MAX... " >&6; }
24970 if ${gl_cv_size_max+:} false; then :
24971 $as_echo_n "(cached) " >&6
24975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24976 /* end confdefs.h. */
24978 #include <limits.h>
24980 #include <stdint.h>
24987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24988 $EGREP "Found it" >/dev/null 2>&1; then :
24993 if test -z "$gl_cv_size_max"; then
24994 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
24995 #include <limits.h>"; then :
24998 size_t_bits_minus_1=
25001 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
25007 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
25008 if test $fits_in_uint = 1; then
25009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25010 /* end confdefs.h. */
25011 #include <stddef.h>
25013 extern unsigned long foo;
25023 if ac_fn_c_try_compile "$LINENO"; then :
25026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25028 if test $fits_in_uint = 1; then
25029 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
25031 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
25034 gl_cv_size_max='((size_t)~(size_t)0)'
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
25041 $as_echo "$gl_cv_size_max" >&6; }
25042 if test "$gl_cv_size_max" != yes; then
25044 cat >>confdefs.h <<_ACEOF
25045 #define SIZE_MAX $gl_cv_size_max
25052 gl_cv_func_snprintf_usable=no
25053 for ac_func in snprintf
25055 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
25056 if test "x$ac_cv_func_snprintf" = xyes; then :
25057 cat >>confdefs.h <<_ACEOF
25058 #define HAVE_SNPRINTF 1
25064 if test $ac_cv_func_snprintf = yes; then
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
25069 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
25070 if ${gl_cv_func_snprintf_size1+:} false; then :
25071 $as_echo_n "(cached) " >&6
25074 if test "$cross_compiling" = yes; then :
25075 gl_cv_func_snprintf_size1="guessing yes"
25077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25078 /* end confdefs.h. */
25082 # define my_snprintf snprintf
25084 # include <stdarg.h>
25085 static int my_snprintf (char *buf, int size, const char *format, ...)
25089 va_start (args, format);
25090 ret = vsnprintf (buf, size, format, args);
25097 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
25098 my_snprintf (buf, 1, "%d", 12345);
25099 return buf[1] != 'E';
25102 if ac_fn_c_try_run "$LINENO"; then :
25103 gl_cv_func_snprintf_size1=yes
25105 gl_cv_func_snprintf_size1=no
25107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25108 conftest.$ac_objext conftest.beam conftest.$ac_ext
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
25114 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
25116 case "$gl_cv_func_snprintf_size1" in
25119 case "$gl_cv_func_snprintf_retval_c99" in
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
25124 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
25125 if ${gl_cv_func_printf_positions+:} false; then :
25126 $as_echo_n "(cached) " >&6
25129 if test "$cross_compiling" = yes; then :
25132 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
25133 gl_cv_func_printf_positions="guessing no";;
25134 beos*) gl_cv_func_printf_positions="guessing no";;
25135 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
25136 *) gl_cv_func_printf_positions="guessing yes";;
25140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25141 /* end confdefs.h. */
25144 #include <string.h>
25145 /* The string "%2$d %1$d", with dollar characters protected from the shell's
25146 dollar expansion (possibly an autoconf bug). */
25147 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
25148 static char buf[100];
25151 sprintf (buf, format, 33, 55);
25152 return (strcmp (buf, "55 33") != 0);
25155 if ac_fn_c_try_run "$LINENO"; then :
25156 gl_cv_func_printf_positions=yes
25158 gl_cv_func_printf_positions=no
25160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25161 conftest.$ac_objext conftest.beam conftest.$ac_ext
25166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
25167 $as_echo "$gl_cv_func_printf_positions" >&6; }
25169 case "$gl_cv_func_printf_positions" in
25171 gl_cv_func_snprintf_usable=yes
25179 if test $gl_cv_func_snprintf_usable = no; then
25190 lgl_LIBOBJS="$lgl_LIBOBJS snprintf.$ac_objext"
25192 if test $ac_cv_func_snprintf = yes; then
25199 if test $ac_cv_have_decl_snprintf = no; then
25200 HAVE_DECL_SNPRINTF=0
25214 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
25220 cat >>confdefs.h <<_ACEOF
25221 #define GNULIB_SNPRINTF 1
25230 if test $ac_cv_header_sys_socket_h != yes; then
25231 for ac_header in winsock2.h
25233 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
25234 if test "x$ac_cv_header_winsock2_h" = xyes; then :
25235 cat >>confdefs.h <<_ACEOF
25236 #define HAVE_WINSOCK2_H 1
25244 if test "$ac_cv_header_winsock2_h" = yes; then
25246 UNISTD_H_HAVE_WINSOCK2_H=1
25247 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
25253 if test $HAVE_WINSOCK2_H = 1; then
25254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
25255 $as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
25256 if ${gl_cv_func_wsastartup+:} false; then :
25257 $as_echo_n "(cached) " >&6
25260 gl_save_LIBS="$LIBS"
25261 LIBS="$LIBS -lws2_32"
25262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25263 /* end confdefs.h. */
25265 #ifdef HAVE_WINSOCK2_H
25266 # include <winsock2.h>
25272 WORD wVersionRequested = MAKEWORD(1, 1);
25274 int err = WSAStartup(wVersionRequested, &wsaData);
25280 if ac_fn_c_try_link "$LINENO"; then :
25281 gl_cv_func_wsastartup=yes
25283 gl_cv_func_wsastartup=no
25285 rm -f core conftest.err conftest.$ac_objext \
25286 conftest$ac_exeext conftest.$ac_ext
25287 LIBS="$gl_save_LIBS"
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
25291 $as_echo "$gl_cv_func_wsastartup" >&6; }
25292 if test "$gl_cv_func_wsastartup" = "yes"; then
25294 $as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
25296 LIBSOCKET='-lws2_32'
25299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
25300 $as_echo_n "checking for library containing setsockopt... " >&6; }
25301 if ${gl_cv_lib_socket+:} false; then :
25302 $as_echo_n "(cached) " >&6
25306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25307 /* end confdefs.h. */
25321 if ac_fn_c_try_link "$LINENO"; then :
25324 gl_save_LIBS="$LIBS"
25325 LIBS="$gl_save_LIBS -lsocket"
25326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25327 /* end confdefs.h. */
25341 if ac_fn_c_try_link "$LINENO"; then :
25342 gl_cv_lib_socket="-lsocket"
25344 rm -f core conftest.err conftest.$ac_objext \
25345 conftest$ac_exeext conftest.$ac_ext
25346 if test -z "$gl_cv_lib_socket"; then
25347 LIBS="$gl_save_LIBS -lnetwork"
25348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25349 /* end confdefs.h. */
25363 if ac_fn_c_try_link "$LINENO"; then :
25364 gl_cv_lib_socket="-lnetwork"
25366 rm -f core conftest.err conftest.$ac_objext \
25367 conftest$ac_exeext conftest.$ac_ext
25368 if test -z "$gl_cv_lib_socket"; then
25369 LIBS="$gl_save_LIBS -lnet"
25370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25371 /* end confdefs.h. */
25385 if ac_fn_c_try_link "$LINENO"; then :
25386 gl_cv_lib_socket="-lnet"
25388 rm -f core conftest.err conftest.$ac_objext \
25389 conftest$ac_exeext conftest.$ac_ext
25392 LIBS="$gl_save_LIBS"
25395 rm -f core conftest.err conftest.$ac_objext \
25396 conftest$ac_exeext conftest.$ac_ext
25397 if test -z "$gl_cv_lib_socket"; then
25398 gl_cv_lib_socket="none needed"
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
25403 $as_echo "$gl_cv_lib_socket" >&6; }
25404 if test "$gl_cv_lib_socket" != "none needed"; then
25405 LIBSOCKET="$gl_cv_lib_socket"
25417 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
25418 /* <sys/types.h> is not needed according to POSIX, but the
25419 <sys/socket.h> in i386-unknown-freebsd4.10 and
25420 powerpc-apple-darwin5.5 required it. */
25421 #include <sys/types.h>
25422 #if HAVE_SYS_SOCKET_H
25423 # include <sys/socket.h>
25424 #elif HAVE_WS2TCPIP_H
25425 # include <ws2tcpip.h>
25429 if test "x$ac_cv_type_socklen_t" = xyes; then :
25432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
25433 $as_echo_n "checking for socklen_t equivalent... " >&6; }
25434 if ${gl_cv_socklen_t_equiv+:} false; then :
25435 $as_echo_n "(cached) " >&6
25437 # Systems have either "struct sockaddr *" or
25438 # "void *" as the second argument to getpeername
25439 gl_cv_socklen_t_equiv=
25440 for arg2 in "struct sockaddr" void; do
25441 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
25442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25443 /* end confdefs.h. */
25444 #include <sys/types.h>
25445 #include <sys/socket.h>
25447 int getpeername (int, $arg2 *, $t *);
25452 getpeername (0, 0, &len);
25457 if ac_fn_c_try_compile "$LINENO"; then :
25458 gl_cv_socklen_t_equiv="$t"
25460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25461 test "$gl_cv_socklen_t_equiv" != "" && break
25463 test "$gl_cv_socklen_t_equiv" != "" && break
25468 if test "$gl_cv_socklen_t_equiv" = ""; then
25469 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
25471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
25472 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
25474 cat >>confdefs.h <<_ACEOF
25475 #define socklen_t $gl_cv_socklen_t_equiv
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
25482 $as_echo_n "checking for ssize_t... " >&6; }
25483 if ${gt_cv_ssize_t+:} false; then :
25484 $as_echo_n "(cached) " >&6
25486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25487 /* end confdefs.h. */
25488 #include <sys/types.h>
25492 int x = sizeof (ssize_t *) + sizeof (ssize_t);
25498 if ac_fn_c_try_compile "$LINENO"; then :
25503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
25506 $as_echo "$gt_cv_ssize_t" >&6; }
25507 if test $gt_cv_ssize_t = no; then
25509 $as_echo "#define ssize_t int" >>confdefs.h
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
25515 $as_echo_n "checking for working stdalign.h... " >&6; }
25516 if ${gl_cv_header_working_stdalign_h+:} false; then :
25517 $as_echo_n "(cached) " >&6
25519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25520 /* end confdefs.h. */
25521 #include <stdalign.h>
25522 #include <stddef.h>
25524 /* Test that alignof yields a result consistent with offsetof.
25525 This catches GCC bug 52023
25526 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
25528 template <class t> struct alignof_helper { char a; t b; };
25529 # define ao(type) offsetof (alignof_helper<type>, b)
25531 # define ao(type) offsetof (struct { char a; type b; }, b)
25533 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
25534 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
25535 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
25537 /* Test _Alignas only on platforms where gnulib can help. */
25539 (__GNUC__ || __IBMC__ || __IBMCPP__ \
25540 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
25541 int alignas (8) alignas_int = 1;
25542 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
25553 if ac_fn_c_try_compile "$LINENO"; then :
25554 gl_cv_header_working_stdalign_h=yes
25556 gl_cv_header_working_stdalign_h=no
25558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
25561 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
25563 if test $gl_cv_header_working_stdalign_h = yes; then
25566 STDALIGN_H='stdalign.h'
25570 if test -n "$STDALIGN_H"; then
25571 GL_GENERATE_STDALIGN_H_TRUE=
25572 GL_GENERATE_STDALIGN_H_FALSE='#'
25574 GL_GENERATE_STDALIGN_H_TRUE='#'
25575 GL_GENERATE_STDALIGN_H_FALSE=
25582 # Define two additional variables used in the Makefile substitution.
25584 if test "$ac_cv_header_stdbool_h" = yes; then
25587 STDBOOL_H='stdbool.h'
25590 if test -n "$STDBOOL_H"; then
25591 GL_GENERATE_STDBOOL_H_TRUE=
25592 GL_GENERATE_STDBOOL_H_FALSE='#'
25594 GL_GENERATE_STDBOOL_H_TRUE='#'
25595 GL_GENERATE_STDBOOL_H_FALSE=
25599 if test "$ac_cv_type__Bool" = yes; then
25610 if test $gt_cv_c_wchar_t = no; then
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
25615 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
25616 if ${gl_cv_decl_null_works+:} false; then :
25617 $as_echo_n "(cached) " >&6
25619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25620 /* end confdefs.h. */
25621 #include <stddef.h>
25622 int test[2 * (sizeof NULL == sizeof (void *)) -1];
25632 if ac_fn_c_try_compile "$LINENO"; then :
25633 gl_cv_decl_null_works=yes
25635 gl_cv_decl_null_works=no
25637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
25640 $as_echo "$gl_cv_decl_null_works" >&6; }
25641 if test $gl_cv_decl_null_works = no; then
25646 if test -n "$STDDEF_H"; then
25647 GL_GENERATE_STDDEF_H_TRUE=
25648 GL_GENERATE_STDDEF_H_FALSE='#'
25650 GL_GENERATE_STDDEF_H_TRUE='#'
25651 GL_GENERATE_STDDEF_H_FALSE=
25654 if test -n "$STDDEF_H"; then
25663 if test $gl_cv_have_include_next = yes; then
25664 gl_cv_next_stddef_h='<'stddef.h'>'
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
25667 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
25668 if ${gl_cv_next_stddef_h+:} false; then :
25669 $as_echo_n "(cached) " >&6
25672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25673 /* end confdefs.h. */
25674 #include <stddef.h>
25678 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25679 *) gl_absname_cpp="$ac_cpp" ;;
25684 gl_dirsep_regex='[/\\]'
25687 gl_dirsep_regex='\/'
25690 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25692 gl_header_literal_regex=`echo 'stddef.h' \
25693 | sed -e "$gl_make_literal_regex_sed"`
25694 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25695 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25700 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25701 sed -n "$gl_absolute_header_sed"`'"'
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
25706 $as_echo "$gl_cv_next_stddef_h" >&6; }
25708 NEXT_STDDEF_H=$gl_cv_next_stddef_h
25710 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25711 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25712 gl_next_as_first_directive='<'stddef.h'>'
25714 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25715 gl_next_as_first_directive=$gl_cv_next_stddef_h
25717 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
25736 if test $gl_cv_have_include_next = yes; then
25737 gl_cv_next_stdio_h='<'stdio.h'>'
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
25740 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
25741 if ${gl_cv_next_stdio_h+:} false; then :
25742 $as_echo_n "(cached) " >&6
25745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25746 /* end confdefs.h. */
25751 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25752 *) gl_absname_cpp="$ac_cpp" ;;
25757 gl_dirsep_regex='[/\\]'
25760 gl_dirsep_regex='\/'
25763 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25765 gl_header_literal_regex=`echo 'stdio.h' \
25766 | sed -e "$gl_make_literal_regex_sed"`
25767 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25768 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25773 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25774 sed -n "$gl_absolute_header_sed"`'"'
25778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
25779 $as_echo "$gl_cv_next_stdio_h" >&6; }
25781 NEXT_STDIO_H=$gl_cv_next_stdio_h
25783 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25784 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25785 gl_next_as_first_directive='<'stdio.h'>'
25787 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25788 gl_next_as_first_directive=$gl_cv_next_stdio_h
25790 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
25820 for gl_func in dprintf fpurge fseeko ftello getdelim getline pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
25821 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25823 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25824 if eval \${$as_gl_Symbol+:} false; then :
25825 $as_echo_n "(cached) " >&6
25827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25828 /* end confdefs.h. */
25840 if ac_fn_c_try_compile "$LINENO"; then :
25841 eval "$as_gl_Symbol=yes"
25843 eval "$as_gl_Symbol=no"
25845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25847 eval ac_res=\$$as_gl_Symbol
25848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25849 $as_echo "$ac_res" >&6; }
25850 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25851 cat >>confdefs.h <<_ACEOF
25852 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25855 eval ac_cv_have_decl_$gl_func=yes
25870 if test $gl_cv_have_include_next = yes; then
25871 gl_cv_next_stdlib_h='<'stdlib.h'>'
25873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
25874 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
25875 if ${gl_cv_next_stdlib_h+:} false; then :
25876 $as_echo_n "(cached) " >&6
25879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25880 /* end confdefs.h. */
25881 #include <stdlib.h>
25885 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25886 *) gl_absname_cpp="$ac_cpp" ;;
25891 gl_dirsep_regex='[/\\]'
25894 gl_dirsep_regex='\/'
25897 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25899 gl_header_literal_regex=`echo 'stdlib.h' \
25900 | sed -e "$gl_make_literal_regex_sed"`
25901 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25902 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25907 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25908 sed -n "$gl_absolute_header_sed"`'"'
25912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
25913 $as_echo "$gl_cv_next_stdlib_h" >&6; }
25915 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
25917 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25918 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25919 gl_next_as_first_directive='<'stdlib.h'>'
25921 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25922 gl_next_as_first_directive=$gl_cv_next_stdlib_h
25924 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
25931 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
25932 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25934 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25935 if eval \${$as_gl_Symbol+:} false; then :
25936 $as_echo_n "(cached) " >&6
25938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25939 /* end confdefs.h. */
25940 #include <stdlib.h>
25941 #if HAVE_SYS_LOADAVG_H
25942 # include <sys/loadavg.h>
25945 # include <random.h>
25957 if ac_fn_c_try_compile "$LINENO"; then :
25958 eval "$as_gl_Symbol=yes"
25960 eval "$as_gl_Symbol=no"
25962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25964 eval ac_res=\$$as_gl_Symbol
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25966 $as_echo "$ac_res" >&6; }
25967 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25968 cat >>confdefs.h <<_ACEOF
25969 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25972 eval ac_cv_have_decl_$gl_func=yes
25980 for ac_func in strcasecmp
25982 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
25983 if test "x$ac_cv_func_strcasecmp" = xyes; then :
25984 cat >>confdefs.h <<_ACEOF
25985 #define HAVE_STRCASECMP 1
25991 if test $ac_cv_func_strcasecmp = no; then
25997 for ac_func in strncasecmp
25999 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
26000 if test "x$ac_cv_func_strncasecmp" = xyes; then :
26001 cat >>confdefs.h <<_ACEOF
26002 #define HAVE_STRNCASECMP 1
26008 if test $ac_cv_func_strncasecmp = yes; then
26013 ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
26014 if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
26020 cat >>confdefs.h <<_ACEOF
26021 #define HAVE_DECL_STRNCASECMP $ac_have_decl
26024 if test $ac_cv_have_decl_strncasecmp = no; then
26025 HAVE_DECL_STRNCASECMP=0
26029 if test $HAVE_STRCASECMP = 0; then
26038 lgl_LIBOBJS="$lgl_LIBOBJS strcasecmp.$ac_objext"
26044 if test $HAVE_STRNCASECMP = 0; then
26053 lgl_LIBOBJS="$lgl_LIBOBJS strncasecmp.$ac_objext"
26069 for ac_func in strverscmp
26071 ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp"
26072 if test "x$ac_cv_func_strverscmp" = xyes; then :
26073 cat >>confdefs.h <<_ACEOF
26074 #define HAVE_STRVERSCMP 1
26080 if test $ac_cv_func_strverscmp = no; then
26084 if test $HAVE_STRVERSCMP = 0; then
26093 lgl_LIBOBJS="$lgl_LIBOBJS strverscmp.$ac_objext"
26104 GNULIB_STRVERSCMP=1
26110 $as_echo "#define GNULIB_TEST_STRVERSCMP 1" >>confdefs.h
26122 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
26128 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
26129 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
26130 $as_echo_n "(cached) " >&6
26133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26134 /* end confdefs.h. */
26135 #include <sys/socket.h>
26144 if ac_fn_c_try_compile "$LINENO"; then :
26145 gl_cv_header_sys_socket_h_selfcontained=yes
26147 gl_cv_header_sys_socket_h_selfcontained=no
26149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
26153 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
26154 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
26155 for ac_func in shutdown
26157 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
26158 if test "x$ac_cv_func_shutdown" = xyes; then :
26159 cat >>confdefs.h <<_ACEOF
26160 #define HAVE_SHUTDOWN 1
26166 if test $ac_cv_func_shutdown = yes; then
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
26168 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
26169 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
26170 $as_echo_n "(cached) " >&6
26173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26174 /* end confdefs.h. */
26175 #include <sys/socket.h>
26179 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
26184 if ac_fn_c_try_compile "$LINENO"; then :
26185 gl_cv_header_sys_socket_h_shut=yes
26187 gl_cv_header_sys_socket_h_shut=no
26189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
26193 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
26194 if test $gl_cv_header_sys_socket_h_shut = no; then
26195 SYS_SOCKET_H='sys/socket.h'
26199 # We need to check for ws2tcpip.h now.
26211 if test $gl_cv_have_include_next = yes; then
26212 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
26214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
26215 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
26216 if ${gl_cv_next_sys_socket_h+:} false; then :
26217 $as_echo_n "(cached) " >&6
26220 if test $ac_cv_header_sys_socket_h = yes; then
26223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26224 /* end confdefs.h. */
26225 #include <sys/socket.h>
26229 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26230 *) gl_absname_cpp="$ac_cpp" ;;
26235 gl_dirsep_regex='[/\\]'
26238 gl_dirsep_regex='\/'
26241 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26243 gl_header_literal_regex=`echo 'sys/socket.h' \
26244 | sed -e "$gl_make_literal_regex_sed"`
26245 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26246 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26251 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26252 sed -n "$gl_absolute_header_sed"`'"'
26254 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
26260 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
26262 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
26264 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26265 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26266 gl_next_as_first_directive='<'sys/socket.h'>'
26268 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26269 gl_next_as_first_directive=$gl_cv_next_sys_socket_h
26271 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
26276 if test $ac_cv_header_sys_socket_h = yes; then
26277 HAVE_SYS_SOCKET_H=1
26280 HAVE_SYS_SOCKET_H=0
26281 if test $ac_cv_header_ws2tcpip_h = yes; then
26290 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
26291 /* sys/types.h is not needed according to POSIX, but the
26292 sys/socket.h in i386-unknown-freebsd4.10 and
26293 powerpc-apple-darwin5.5 required it. */
26294 #include <sys/types.h>
26295 #ifdef HAVE_SYS_SOCKET_H
26296 #include <sys/socket.h>
26298 #ifdef HAVE_WS2TCPIP_H
26299 #include <ws2tcpip.h>
26303 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
26305 cat >>confdefs.h <<_ACEOF
26306 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
26311 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
26312 /* sys/types.h is not needed according to POSIX, but the
26313 sys/socket.h in i386-unknown-freebsd4.10 and
26314 powerpc-apple-darwin5.5 required it. */
26315 #include <sys/types.h>
26316 #ifdef HAVE_SYS_SOCKET_H
26317 #include <sys/socket.h>
26319 #ifdef HAVE_WS2TCPIP_H
26320 #include <ws2tcpip.h>
26324 if test "x$ac_cv_type_sa_family_t" = xyes; then :
26326 cat >>confdefs.h <<_ACEOF
26327 #define HAVE_SA_FAMILY_T 1
26333 if test $ac_cv_type_struct_sockaddr_storage = no; then
26334 HAVE_STRUCT_SOCKADDR_STORAGE=0
26336 if test $ac_cv_type_sa_family_t = no; then
26339 if test $ac_cv_type_struct_sockaddr_storage != no; then
26340 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
26341 #ifdef HAVE_SYS_SOCKET_H
26342 #include <sys/socket.h>
26344 #ifdef HAVE_WS2TCPIP_H
26345 #include <ws2tcpip.h>
26349 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
26351 cat >>confdefs.h <<_ACEOF
26352 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
26357 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
26361 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
26362 || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
26363 SYS_SOCKET_H='sys/socket.h'
26369 if test $ac_cv_header_sys_socket_h != yes; then
26370 for ac_header in winsock2.h
26372 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
26373 if test "x$ac_cv_header_winsock2_h" = xyes; then :
26374 cat >>confdefs.h <<_ACEOF
26375 #define HAVE_WINSOCK2_H 1
26383 if test "$ac_cv_header_winsock2_h" = yes; then
26385 UNISTD_H_HAVE_WINSOCK2_H=1
26386 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
26394 for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do
26395 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
26397 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26398 if eval \${$as_gl_Symbol+:} false; then :
26399 $as_echo_n "(cached) " >&6
26401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26402 /* end confdefs.h. */
26404 /* Some systems require prerequisite headers. */
26405 #include <sys/types.h>
26406 #include <sys/socket.h>
26417 if ac_fn_c_try_compile "$LINENO"; then :
26418 eval "$as_gl_Symbol=yes"
26420 eval "$as_gl_Symbol=no"
26422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26424 eval ac_res=\$$as_gl_Symbol
26425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26426 $as_echo "$ac_res" >&6; }
26427 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
26428 cat >>confdefs.h <<_ACEOF
26429 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26432 eval ac_cv_have_decl_$gl_func=yes
26454 if test $gl_cv_have_include_next = yes; then
26455 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
26457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
26458 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
26459 if ${gl_cv_next_sys_stat_h+:} false; then :
26460 $as_echo_n "(cached) " >&6
26463 if test $ac_cv_header_sys_stat_h = yes; then
26466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26467 /* end confdefs.h. */
26468 #include <sys/stat.h>
26472 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26473 *) gl_absname_cpp="$ac_cpp" ;;
26478 gl_dirsep_regex='[/\\]'
26481 gl_dirsep_regex='\/'
26484 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26486 gl_header_literal_regex=`echo 'sys/stat.h' \
26487 | sed -e "$gl_make_literal_regex_sed"`
26488 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26489 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26494 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26495 sed -n "$gl_absolute_header_sed"`'"'
26497 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
26503 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
26505 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
26507 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26508 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26509 gl_next_as_first_directive='<'sys/stat.h'>'
26511 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26512 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
26514 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
26522 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
26523 #include <sys/stat.h>
26525 if test "x$ac_cv_type_nlink_t" = xyes; then :
26529 $as_echo "#define nlink_t int" >>confdefs.h
26535 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
26536 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
26538 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26539 if eval \${$as_gl_Symbol+:} false; then :
26540 $as_echo_n "(cached) " >&6
26542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26543 /* end confdefs.h. */
26544 #include <sys/stat.h>
26555 if ac_fn_c_try_compile "$LINENO"; then :
26556 eval "$as_gl_Symbol=yes"
26558 eval "$as_gl_Symbol=no"
26560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26562 eval ac_res=\$$as_gl_Symbol
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26564 $as_echo "$ac_res" >&6; }
26565 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
26566 cat >>confdefs.h <<_ACEOF
26567 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26570 eval ac_cv_have_decl_$gl_func=yes
26586 if test $gl_cv_have_include_next = yes; then
26587 gl_cv_next_sys_types_h='<'sys/types.h'>'
26589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
26590 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
26591 if ${gl_cv_next_sys_types_h+:} false; then :
26592 $as_echo_n "(cached) " >&6
26595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26596 /* end confdefs.h. */
26597 #include <sys/types.h>
26601 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26602 *) gl_absname_cpp="$ac_cpp" ;;
26607 gl_dirsep_regex='[/\\]'
26610 gl_dirsep_regex='\/'
26613 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26615 gl_header_literal_regex=`echo 'sys/types.h' \
26616 | sed -e "$gl_make_literal_regex_sed"`
26617 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26618 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26623 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26624 sed -n "$gl_absolute_header_sed"`'"'
26628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
26629 $as_echo "$gl_cv_next_sys_types_h" >&6; }
26631 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
26633 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26634 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26635 gl_next_as_first_directive='<'sys/types.h'>'
26637 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26638 gl_next_as_first_directive=$gl_cv_next_sys_types_h
26640 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
26662 if test $gl_cv_have_include_next = yes; then
26663 gl_cv_next_sys_uio_h='<'sys/uio.h'>'
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
26666 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
26667 if ${gl_cv_next_sys_uio_h+:} false; then :
26668 $as_echo_n "(cached) " >&6
26671 if test $ac_cv_header_sys_uio_h = yes; then
26674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26675 /* end confdefs.h. */
26676 #include <sys/uio.h>
26680 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26681 *) gl_absname_cpp="$ac_cpp" ;;
26686 gl_dirsep_regex='[/\\]'
26689 gl_dirsep_regex='\/'
26692 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26694 gl_header_literal_regex=`echo 'sys/uio.h' \
26695 | sed -e "$gl_make_literal_regex_sed"`
26696 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26697 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26702 gl_cv_next_sys_uio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26703 sed -n "$gl_absolute_header_sed"`'"'
26705 gl_cv_next_sys_uio_h='<'sys/uio.h'>'
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
26711 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
26713 NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
26715 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26716 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26717 gl_next_as_first_directive='<'sys/uio.h'>'
26719 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26720 gl_next_as_first_directive=$gl_cv_next_sys_uio_h
26722 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
26727 if test $ac_cv_header_sys_uio_h = yes; then
26745 if test $ac_cv_have_decl_localtime_r = no; then
26746 HAVE_DECL_LOCALTIME_R=0
26750 if test $ac_cv_func_localtime_r = yes; then
26752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
26753 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
26754 if ${gl_cv_time_r_posix+:} false; then :
26755 $as_echo_n "(cached) " >&6
26757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26758 /* end confdefs.h. */
26763 /* We don't need to append 'restrict's to the argument types,
26764 even though the POSIX signature has the 'restrict's,
26765 since C99 says they can't affect type compatibility. */
26766 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
26768 /* Check the return type is a pointer.
26769 On HP-UX 10 it is 'int'. */
26770 *localtime_r (0, 0);
26776 if ac_fn_c_try_compile "$LINENO"; then :
26777 gl_cv_time_r_posix=yes
26779 gl_cv_time_r_posix=no
26781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
26785 $as_echo "$gl_cv_time_r_posix" >&6; }
26786 if test $gl_cv_time_r_posix = yes; then
26787 REPLACE_LOCALTIME_R=0
26789 REPLACE_LOCALTIME_R=1
26795 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
26804 lgl_LIBOBJS="$lgl_LIBOBJS time_r.$ac_objext"
26821 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
26838 if test $gl_cv_have_include_next = yes; then
26839 gl_cv_next_unistd_h='<'unistd.h'>'
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
26842 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
26843 if ${gl_cv_next_unistd_h+:} false; then :
26844 $as_echo_n "(cached) " >&6
26847 if test $ac_cv_header_unistd_h = yes; then
26850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26851 /* end confdefs.h. */
26852 #include <unistd.h>
26856 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26857 *) gl_absname_cpp="$ac_cpp" ;;
26862 gl_dirsep_regex='[/\\]'
26865 gl_dirsep_regex='\/'
26868 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26870 gl_header_literal_regex=`echo 'unistd.h' \
26871 | sed -e "$gl_make_literal_regex_sed"`
26872 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26873 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26878 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26879 sed -n "$gl_absolute_header_sed"`'"'
26881 gl_cv_next_unistd_h='<'unistd.h'>'
26886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
26887 $as_echo "$gl_cv_next_unistd_h" >&6; }
26889 NEXT_UNISTD_H=$gl_cv_next_unistd_h
26891 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26892 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26893 gl_next_as_first_directive='<'unistd.h'>'
26895 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26896 gl_next_as_first_directive=$gl_cv_next_unistd_h
26898 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
26903 if test $ac_cv_header_unistd_h = yes; then
26913 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
26914 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
26916 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26917 if eval \${$as_gl_Symbol+:} false; then :
26918 $as_echo_n "(cached) " >&6
26920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26921 /* end confdefs.h. */
26924 # include <unistd.h>
26926 /* Some systems declare various items in the wrong headers. */
26927 #if !(defined __GLIBC__ && !defined __UCLIBC__)
26928 # include <fcntl.h>
26929 # include <stdio.h>
26930 # include <stdlib.h>
26931 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
26945 if ac_fn_c_try_compile "$LINENO"; then :
26946 eval "$as_gl_Symbol=yes"
26948 eval "$as_gl_Symbol=no"
26950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26952 eval ac_res=\$$as_gl_Symbol
26953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26954 $as_echo "$ac_res" >&6; }
26955 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
26956 cat >>confdefs.h <<_ACEOF
26957 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26960 eval ac_cv_have_decl_$gl_func=yes
26967 if test $ac_cv_func_vasnprintf = no; then
26978 lgl_LIBOBJS="$lgl_LIBOBJS vasnprintf.$ac_objext"
26988 lgl_LIBOBJS="$lgl_LIBOBJS printf-args.$ac_objext"
26998 lgl_LIBOBJS="$lgl_LIBOBJS printf-parse.$ac_objext"
27008 lgl_LIBOBJS="$lgl_LIBOBJS asnprintf.$ac_objext"
27010 if test $ac_cv_func_vasnprintf = yes; then
27012 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
27026 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
27027 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
27031 $as_echo "#define ptrdiff_t long" >>confdefs.h
27045 for ac_func in vasprintf
27047 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
27048 if test "x$ac_cv_func_vasprintf" = xyes; then :
27049 cat >>confdefs.h <<_ACEOF
27050 #define HAVE_VASPRINTF 1
27056 if test $ac_cv_func_vasprintf = no; then
27066 lgl_LIBOBJS="$lgl_LIBOBJS vasprintf.$ac_objext"
27076 lgl_LIBOBJS="$lgl_LIBOBJS asprintf.$ac_objext"
27079 if test $ac_cv_func_vasprintf = yes; then
27080 REPLACE_VASPRINTF=1
27105 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
27111 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
27115 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
27119 gl_cv_func_vsnprintf_usable=no
27120 for ac_func in vsnprintf
27122 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
27123 if test "x$ac_cv_func_vsnprintf" = xyes; then :
27124 cat >>confdefs.h <<_ACEOF
27125 #define HAVE_VSNPRINTF 1
27131 if test $ac_cv_func_vsnprintf = yes; then
27135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
27136 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
27137 if ${gl_cv_func_snprintf_size1+:} false; then :
27138 $as_echo_n "(cached) " >&6
27141 if test "$cross_compiling" = yes; then :
27142 gl_cv_func_snprintf_size1="guessing yes"
27144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27145 /* end confdefs.h. */
27149 # define my_snprintf snprintf
27151 # include <stdarg.h>
27152 static int my_snprintf (char *buf, int size, const char *format, ...)
27156 va_start (args, format);
27157 ret = vsnprintf (buf, size, format, args);
27164 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
27165 my_snprintf (buf, 1, "%d", 12345);
27166 return buf[1] != 'E';
27169 if ac_fn_c_try_run "$LINENO"; then :
27170 gl_cv_func_snprintf_size1=yes
27172 gl_cv_func_snprintf_size1=no
27174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27175 conftest.$ac_objext conftest.beam conftest.$ac_ext
27180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
27181 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
27183 case "$gl_cv_func_snprintf_size1" in
27186 case "$gl_cv_func_snprintf_retval_c99" in
27190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
27191 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
27192 if ${gl_cv_func_printf_positions+:} false; then :
27193 $as_echo_n "(cached) " >&6
27196 if test "$cross_compiling" = yes; then :
27199 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
27200 gl_cv_func_printf_positions="guessing no";;
27201 beos*) gl_cv_func_printf_positions="guessing no";;
27202 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
27203 *) gl_cv_func_printf_positions="guessing yes";;
27207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27208 /* end confdefs.h. */
27211 #include <string.h>
27212 /* The string "%2$d %1$d", with dollar characters protected from the shell's
27213 dollar expansion (possibly an autoconf bug). */
27214 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
27215 static char buf[100];
27218 sprintf (buf, format, 33, 55);
27219 return (strcmp (buf, "55 33") != 0);
27222 if ac_fn_c_try_run "$LINENO"; then :
27223 gl_cv_func_printf_positions=yes
27225 gl_cv_func_printf_positions=no
27227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27228 conftest.$ac_objext conftest.beam conftest.$ac_ext
27233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
27234 $as_echo "$gl_cv_func_printf_positions" >&6; }
27236 case "$gl_cv_func_printf_positions" in
27238 gl_cv_func_vsnprintf_usable=yes
27246 if test $gl_cv_func_vsnprintf_usable = no; then
27257 lgl_LIBOBJS="$lgl_LIBOBJS vsnprintf.$ac_objext"
27259 if test $ac_cv_func_vsnprintf = yes; then
27260 REPLACE_VSNPRINTF=1
27266 if test $ac_cv_have_decl_vsnprintf = no; then
27267 HAVE_DECL_VSNPRINTF=0
27281 $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
27297 if test $gl_cv_have_include_next = yes; then
27298 gl_cv_next_wchar_h='<'wchar.h'>'
27300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
27301 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
27302 if ${gl_cv_next_wchar_h+:} false; then :
27303 $as_echo_n "(cached) " >&6
27306 if test $ac_cv_header_wchar_h = yes; then
27309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27310 /* end confdefs.h. */
27315 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27316 *) gl_absname_cpp="$ac_cpp" ;;
27321 gl_dirsep_regex='[/\\]'
27324 gl_dirsep_regex='\/'
27327 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27329 gl_header_literal_regex=`echo 'wchar.h' \
27330 | sed -e "$gl_make_literal_regex_sed"`
27331 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27332 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27337 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27338 sed -n "$gl_absolute_header_sed"`'"'
27340 gl_cv_next_wchar_h='<'wchar.h'>'
27345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
27346 $as_echo "$gl_cv_next_wchar_h" >&6; }
27348 NEXT_WCHAR_H=$gl_cv_next_wchar_h
27350 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27351 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27352 gl_next_as_first_directive='<'wchar.h'>'
27354 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27355 gl_next_as_first_directive=$gl_cv_next_wchar_h
27357 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
27362 if test $ac_cv_header_wchar_h = yes; then
27372 if test $gt_cv_c_wint_t = yes; then
27380 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
27381 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27383 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27384 if eval \${$as_gl_Symbol+:} false; then :
27385 $as_echo_n "(cached) " >&6
27387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27388 /* end confdefs.h. */
27390 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
27392 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27393 included before <wchar.h>. */
27394 #if !(defined __GLIBC__ && !defined __UCLIBC__)
27395 # include <stddef.h>
27396 # include <stdio.h>
27410 if ac_fn_c_try_compile "$LINENO"; then :
27411 eval "$as_gl_Symbol=yes"
27413 eval "$as_gl_Symbol=no"
27415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27417 eval ac_res=\$$as_gl_Symbol
27418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27419 $as_echo "$ac_res" >&6; }
27420 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
27421 cat >>confdefs.h <<_ACEOF
27422 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27425 eval ac_cv_have_decl_$gl_func=yes
27433 for ac_header in stdint.h
27435 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
27436 if test "x$ac_cv_header_stdint_h" = xyes; then :
27437 cat >>confdefs.h <<_ACEOF
27438 #define HAVE_STDINT_H 1
27446 # End of code from modules
27467 gl_source_base='gl/tests'
27468 lgltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
27470 gl_module_indicator_condition=$lgltests_WITNESS
27483 if test $gl_cv_have_include_next = yes; then
27484 gl_cv_next_fcntl_h='<'fcntl.h'>'
27486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
27487 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
27488 if ${gl_cv_next_fcntl_h+:} false; then :
27489 $as_echo_n "(cached) " >&6
27492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27493 /* end confdefs.h. */
27498 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27499 *) gl_absname_cpp="$ac_cpp" ;;
27504 gl_dirsep_regex='[/\\]'
27507 gl_dirsep_regex='\/'
27510 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27512 gl_header_literal_regex=`echo 'fcntl.h' \
27513 | sed -e "$gl_make_literal_regex_sed"`
27514 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27515 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27520 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27521 sed -n "$gl_absolute_header_sed"`'"'
27525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
27526 $as_echo "$gl_cv_next_fcntl_h" >&6; }
27528 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
27530 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27531 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27532 gl_next_as_first_directive='<'fcntl.h'>'
27534 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27535 gl_next_as_first_directive=$gl_cv_next_fcntl_h
27537 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
27548 for gl_func in fcntl openat; do
27549 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27551 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27552 if eval \${$as_gl_Symbol+:} false; then :
27553 $as_echo_n "(cached) " >&6
27555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27556 /* end confdefs.h. */
27568 if ac_fn_c_try_compile "$LINENO"; then :
27569 eval "$as_gl_Symbol=yes"
27571 eval "$as_gl_Symbol=no"
27573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27575 eval ac_res=\$$as_gl_Symbol
27576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27577 $as_echo "$ac_res" >&6; }
27578 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
27579 cat >>confdefs.h <<_ACEOF
27580 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27583 eval ac_cv_have_decl_$gl_func=yes
27591 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
27594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopen sets errno" >&5
27595 $as_echo_n "checking whether fdopen sets errno... " >&6; }
27596 if ${gl_cv_func_fdopen_works+:} false; then :
27597 $as_echo_n "(cached) " >&6
27600 if test "$cross_compiling" = yes; then :
27602 mingw*) gl_cv_func_fdopen_works="guessing no" ;;
27603 *) gl_cv_func_fdopen_works="guessing yes" ;;
27607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27608 /* end confdefs.h. */
27617 fp = fdopen (-1, "r");
27625 if ac_fn_c_try_run "$LINENO"; then :
27626 gl_cv_func_fdopen_works=yes
27628 gl_cv_func_fdopen_works=no
27630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27631 conftest.$ac_objext conftest.beam conftest.$ac_ext
27636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopen_works" >&5
27637 $as_echo "$gl_cv_func_fdopen_works" >&6; }
27638 case "$gl_cv_func_fdopen_works" in
27639 *no) REPLACE_FDOPEN=1 ;;
27643 if test $REPLACE_FDOPEN = 1; then
27652 lgltests_LIBOBJS="$lgltests_LIBOBJS fdopen.$ac_objext"
27661 if test "$GNULIB_FDOPEN" != 1; then
27662 if test "$GNULIB_FDOPEN" = 0; then
27663 GNULIB_FDOPEN=$gl_module_indicator_condition
27665 GNULIB_FDOPEN="($GNULIB_FDOPEN || $gl_module_indicator_condition)"
27673 $as_echo "#define GNULIB_TEST_FDOPEN 1" >>confdefs.h
27684 for ac_func in getpagesize
27686 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
27687 if test "x$ac_cv_func_getpagesize" = xyes; then :
27688 cat >>confdefs.h <<_ACEOF
27689 #define HAVE_GETPAGESIZE 1
27695 if test $ac_cv_func_getpagesize = no; then
27697 for ac_header in OS.h
27699 ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
27700 if test "x$ac_cv_header_OS_h" = xyes; then :
27701 cat >>confdefs.h <<_ACEOF
27702 #define HAVE_OS_H 1
27709 if test $ac_cv_header_OS_h = yes; then
27712 for ac_header in sys/param.h
27714 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
27715 if test "x$ac_cv_header_sys_param_h" = xyes; then :
27716 cat >>confdefs.h <<_ACEOF
27717 #define HAVE_SYS_PARAM_H 1
27724 if test $ac_cv_header_sys_param_h = yes; then
27730 REPLACE_GETPAGESIZE=1
27733 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
27734 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
27737 HAVE_DECL_GETPAGESIZE=0
27741 if test $REPLACE_GETPAGESIZE = 1; then
27750 lgltests_LIBOBJS="$lgltests_LIBOBJS getpagesize.$ac_objext"
27758 if test "$GNULIB_GETPAGESIZE" != 1; then
27759 if test "$GNULIB_GETPAGESIZE" = 0; then
27760 GNULIB_GETPAGESIZE=$gl_module_indicator_condition
27762 GNULIB_GETPAGESIZE="($GNULIB_GETPAGESIZE || $gl_module_indicator_condition)"
27770 $as_echo "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h
27780 if test -n "$STDINT_H"; then
27781 PRIPTR_PREFIX='"l"'
27783 for glpfx in '' l ll I64; do
27785 '') gltype1='int';;
27786 l) gltype1='long int';;
27787 ll) gltype1='long long int';;
27788 I64) gltype1='__int64';;
27790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27791 /* end confdefs.h. */
27792 #include <stdint.h>
27793 extern intptr_t foo;
27794 extern $gltype1 foo;
27803 if ac_fn_c_try_compile "$LINENO"; then :
27804 PRIPTR_PREFIX='"'$glpfx'"'
27806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27807 test -n "$PRIPTR_PREFIX" && break
27813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
27814 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
27815 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
27816 $as_echo_n "(cached) " >&6
27818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27819 /* end confdefs.h. */
27820 /* Work also in C++ mode. */
27821 #define __STDC_LIMIT_MACROS 1
27823 /* Work if build is not clean. */
27824 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
27826 #include <limits.h>
27828 #include <stdint.h>
27831 #if defined INT32_MAX && defined INTMAX_MAX
27832 #define CONDITION (INT32_MAX < INTMAX_MAX)
27833 #elif HAVE_LONG_LONG_INT
27834 #define CONDITION (sizeof (int) < sizeof (long long int))
27836 #define CONDITION 0
27838 int test[CONDITION ? 1 : -1];
27847 if ac_fn_c_try_compile "$LINENO"; then :
27848 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
27850 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
27852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
27855 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
27856 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
27857 INT32_MAX_LT_INTMAX_MAX=1;
27859 INT32_MAX_LT_INTMAX_MAX=0;
27863 if test $APPLE_UNIVERSAL_BUILD = 0; then
27865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
27866 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
27867 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
27868 $as_echo_n "(cached) " >&6
27870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27871 /* end confdefs.h. */
27872 /* Work also in C++ mode. */
27873 #define __STDC_LIMIT_MACROS 1
27875 /* Work if build is not clean. */
27876 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
27878 #include <limits.h>
27880 #include <stdint.h>
27883 #if defined INT64_MAX
27884 #define CONDITION (INT64_MAX == LONG_MAX)
27885 #elif HAVE_LONG_LONG_INT
27886 #define CONDITION (sizeof (long long int) == sizeof (long int))
27888 #define CONDITION 0
27890 int test[CONDITION ? 1 : -1];
27899 if ac_fn_c_try_compile "$LINENO"; then :
27900 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
27902 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
27904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
27907 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
27908 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
27909 INT64_MAX_EQ_LONG_MAX=1;
27911 INT64_MAX_EQ_LONG_MAX=0;
27916 INT64_MAX_EQ_LONG_MAX=-1
27919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
27920 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
27921 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
27922 $as_echo_n "(cached) " >&6
27924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27925 /* end confdefs.h. */
27926 /* Work also in C++ mode. */
27927 #define __STDC_LIMIT_MACROS 1
27929 /* Work if build is not clean. */
27930 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
27932 #include <limits.h>
27934 #include <stdint.h>
27937 #if defined UINT32_MAX && defined UINTMAX_MAX
27938 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
27939 #elif HAVE_LONG_LONG_INT
27940 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
27942 #define CONDITION 0
27944 int test[CONDITION ? 1 : -1];
27953 if ac_fn_c_try_compile "$LINENO"; then :
27954 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
27956 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
27958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
27961 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
27962 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
27963 UINT32_MAX_LT_UINTMAX_MAX=1;
27965 UINT32_MAX_LT_UINTMAX_MAX=0;
27969 if test $APPLE_UNIVERSAL_BUILD = 0; then
27971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
27972 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
27973 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
27974 $as_echo_n "(cached) " >&6
27976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27977 /* end confdefs.h. */
27978 /* Work also in C++ mode. */
27979 #define __STDC_LIMIT_MACROS 1
27981 /* Work if build is not clean. */
27982 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
27984 #include <limits.h>
27986 #include <stdint.h>
27989 #if defined UINT64_MAX
27990 #define CONDITION (UINT64_MAX == ULONG_MAX)
27991 #elif HAVE_LONG_LONG_INT
27992 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
27994 #define CONDITION 0
27996 int test[CONDITION ? 1 : -1];
28005 if ac_fn_c_try_compile "$LINENO"; then :
28006 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
28008 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
28010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
28013 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
28014 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
28015 UINT64_MAX_EQ_ULONG_MAX=1;
28017 UINT64_MAX_EQ_ULONG_MAX=0;
28022 UINT64_MAX_EQ_ULONG_MAX=-1
28030 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
28031 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
28032 # irrelevant for anonymous mappings.
28033 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
28034 if test "x$ac_cv_func_mmap" = xyes; then :
28041 # Try to allow MAP_ANONYMOUS.
28042 gl_have_mmap_anonymous=no
28043 if test $gl_have_mmap = yes; then
28044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
28045 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
28046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28047 /* end confdefs.h. */
28049 #include <sys/mman.h>
28050 #ifdef MAP_ANONYMOUS
28051 I cant identify this map
28055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28056 $EGREP "I cant identify this map" >/dev/null 2>&1; then :
28057 gl_have_mmap_anonymous=yes
28061 if test $gl_have_mmap_anonymous != yes; then
28062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28063 /* end confdefs.h. */
28065 #include <sys/mman.h>
28067 I cant identify this map
28071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28072 $EGREP "I cant identify this map" >/dev/null 2>&1; then :
28074 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
28076 gl_have_mmap_anonymous=yes
28081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
28082 $as_echo "$gl_have_mmap_anonymous" >&6; }
28083 if test $gl_have_mmap_anonymous = yes; then
28085 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
28093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
28094 $as_echo_n "checking for wchar_t... " >&6; }
28095 if ${gt_cv_c_wchar_t+:} false; then :
28096 $as_echo_n "(cached) " >&6
28098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28099 /* end confdefs.h. */
28100 #include <stddef.h>
28101 wchar_t foo = (wchar_t)'\0';
28110 if ac_fn_c_try_compile "$LINENO"; then :
28111 gt_cv_c_wchar_t=yes
28115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
28118 $as_echo "$gt_cv_c_wchar_t" >&6; }
28119 if test $gt_cv_c_wchar_t = yes; then
28121 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
28126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
28127 $as_echo_n "checking for wint_t... " >&6; }
28128 if ${gt_cv_c_wint_t+:} false; then :
28129 $as_echo_n "(cached) " >&6
28131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28132 /* end confdefs.h. */
28134 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28136 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
28137 before <wchar.h>. */
28138 #include <stddef.h>
28142 wint_t foo = (wchar_t)'\0';
28151 if ac_fn_c_try_compile "$LINENO"; then :
28156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
28159 $as_echo "$gt_cv_c_wint_t" >&6; }
28160 if test $gt_cv_c_wint_t = yes; then
28162 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
28177 LIBTESTS_LIBDEPS="$gltests_libdeps"
28181 for ac_func in getrusage
28183 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
28184 if test "x$ac_cv_func_getrusage" = xyes; then :
28185 cat >>confdefs.h <<_ACEOF
28186 #define HAVE_GETRUSAGE 1
28204 acl_save_prefix="$prefix"
28205 prefix="$acl_final_prefix"
28206 acl_save_exec_prefix="$exec_prefix"
28207 exec_prefix="$acl_final_exec_prefix"
28209 eval additional_includedir=\"$includedir\"
28210 eval additional_libdir=\"$libdir\"
28212 exec_prefix="$acl_save_exec_prefix"
28213 prefix="$acl_save_prefix"
28216 # Check whether --with-libpthread-prefix was given.
28217 if test "${with_libpthread_prefix+set}" = set; then :
28218 withval=$with_libpthread_prefix;
28219 if test "X$withval" = "Xno"; then
28222 if test "X$withval" = "X"; then
28224 acl_save_prefix="$prefix"
28225 prefix="$acl_final_prefix"
28226 acl_save_exec_prefix="$exec_prefix"
28227 exec_prefix="$acl_final_exec_prefix"
28229 eval additional_includedir=\"$includedir\"
28230 eval additional_libdir=\"$libdir\"
28232 exec_prefix="$acl_save_exec_prefix"
28233 prefix="$acl_save_prefix"
28236 additional_includedir="$withval/include"
28237 additional_libdir="$withval/$acl_libdirstem"
28249 names_already_handled=
28250 names_next_round='pthread '
28251 while test -n "$names_next_round"; do
28252 names_this_round="$names_next_round"
28254 for name in $names_this_round; do
28256 for n in $names_already_handled; do
28257 if test "$n" = "$name"; then
28258 already_handled=yes
28262 if test -z "$already_handled"; then
28263 names_already_handled="$names_already_handled $name"
28264 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28265 eval value=\"\$HAVE_LIB$uppername\"
28266 if test -n "$value"; then
28267 if test "$value" = yes; then
28268 eval value=\"\$LIB$uppername\"
28269 test -z "$value" || LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$value"
28270 eval value=\"\$LTLIB$uppername\"
28271 test -z "$value" || LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }$value"
28280 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
28281 if test -n "$acl_shlibext"; then
28282 shrext=".$acl_shlibext" # typically: shrext=.so
28286 if test $use_additional = yes; then
28287 dir="$additional_libdir"
28288 if test -n "$acl_shlibext"; then
28289 if test -f "$dir/$libname$shrext"; then
28291 found_so="$dir/$libname$shrext"
28293 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
28294 ver=`(cd "$dir" && \
28295 for f in "$libname$shrext".*; do echo "$f"; done \
28296 | sed -e "s,^$libname$shrext\\\\.,," \
28297 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
28298 | sed 1q ) 2>/dev/null`
28299 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
28301 found_so="$dir/$libname$shrext.$ver"
28304 eval library_names=\"$acl_library_names_spec\"
28305 for f in $library_names; do
28306 if test -f "$dir/$f"; then
28315 if test "X$found_dir" = "X"; then
28316 if test -f "$dir/$libname.$acl_libext"; then
28318 found_a="$dir/$libname.$acl_libext"
28321 if test "X$found_dir" != "X"; then
28322 if test -f "$dir/$libname.la"; then
28323 found_la="$dir/$libname.la"
28327 if test "X$found_dir" = "X"; then
28328 for x in $LDFLAGS $LTLIBPTHREAD; do
28330 acl_save_prefix="$prefix"
28331 prefix="$acl_final_prefix"
28332 acl_save_exec_prefix="$exec_prefix"
28333 exec_prefix="$acl_final_exec_prefix"
28335 exec_prefix="$acl_save_exec_prefix"
28336 prefix="$acl_save_prefix"
28340 dir=`echo "X$x" | sed -e 's/^X-L//'`
28341 if test -n "$acl_shlibext"; then
28342 if test -f "$dir/$libname$shrext"; then
28344 found_so="$dir/$libname$shrext"
28346 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
28347 ver=`(cd "$dir" && \
28348 for f in "$libname$shrext".*; do echo "$f"; done \
28349 | sed -e "s,^$libname$shrext\\\\.,," \
28350 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
28351 | sed 1q ) 2>/dev/null`
28352 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
28354 found_so="$dir/$libname$shrext.$ver"
28357 eval library_names=\"$acl_library_names_spec\"
28358 for f in $library_names; do
28359 if test -f "$dir/$f"; then
28368 if test "X$found_dir" = "X"; then
28369 if test -f "$dir/$libname.$acl_libext"; then
28371 found_a="$dir/$libname.$acl_libext"
28374 if test "X$found_dir" != "X"; then
28375 if test -f "$dir/$libname.la"; then
28376 found_la="$dir/$libname.la"
28381 if test "X$found_dir" != "X"; then
28386 if test "X$found_dir" != "X"; then
28387 LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-L$found_dir -l$name"
28388 if test "X$found_so" != "X"; then
28389 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
28390 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
28393 for x in $ltrpathdirs; do
28394 if test "X$x" = "X$found_dir"; then
28399 if test -z "$haveit"; then
28400 ltrpathdirs="$ltrpathdirs $found_dir"
28402 if test "$acl_hardcode_direct" = yes; then
28403 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
28405 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
28406 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
28408 for x in $rpathdirs; do
28409 if test "X$x" = "X$found_dir"; then
28414 if test -z "$haveit"; then
28415 rpathdirs="$rpathdirs $found_dir"
28419 for x in $LDFLAGS $LIBPTHREAD; do
28421 acl_save_prefix="$prefix"
28422 prefix="$acl_final_prefix"
28423 acl_save_exec_prefix="$exec_prefix"
28424 exec_prefix="$acl_final_exec_prefix"
28426 exec_prefix="$acl_save_exec_prefix"
28427 prefix="$acl_save_prefix"
28429 if test "X$x" = "X-L$found_dir"; then
28434 if test -z "$haveit"; then
28435 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$found_dir"
28437 if test "$acl_hardcode_minus_L" != no; then
28438 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
28440 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-l$name"
28446 if test "X$found_a" != "X"; then
28447 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_a"
28449 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$found_dir -l$name"
28452 additional_includedir=
28453 case "$found_dir" in
28454 */$acl_libdirstem | */$acl_libdirstem/)
28455 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
28456 LIBPTHREAD_PREFIX="$basedir"
28457 additional_includedir="$basedir/include"
28460 if test "X$additional_includedir" != "X"; then
28461 if test "X$additional_includedir" != "X/usr/include"; then
28463 if test "X$additional_includedir" = "X/usr/local/include"; then
28464 if test -n "$GCC"; then
28466 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28470 if test -z "$haveit"; then
28471 for x in $CPPFLAGS $INCPTHREAD; do
28473 acl_save_prefix="$prefix"
28474 prefix="$acl_final_prefix"
28475 acl_save_exec_prefix="$exec_prefix"
28476 exec_prefix="$acl_final_exec_prefix"
28478 exec_prefix="$acl_save_exec_prefix"
28479 prefix="$acl_save_prefix"
28481 if test "X$x" = "X-I$additional_includedir"; then
28486 if test -z "$haveit"; then
28487 if test -d "$additional_includedir"; then
28488 INCPTHREAD="${INCPTHREAD}${INCPTHREAD:+ }-I$additional_includedir"
28494 if test -n "$found_la"; then
28495 save_libdir="$libdir"
28496 case "$found_la" in
28497 */* | *\\*) . "$found_la" ;;
28498 *) . "./$found_la" ;;
28500 libdir="$save_libdir"
28501 for dep in $dependency_libs; do
28504 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28505 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
28507 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
28508 if test -n "$GCC"; then
28510 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28514 if test -z "$haveit"; then
28516 for x in $LDFLAGS $LIBPTHREAD; do
28518 acl_save_prefix="$prefix"
28519 prefix="$acl_final_prefix"
28520 acl_save_exec_prefix="$exec_prefix"
28521 exec_prefix="$acl_final_exec_prefix"
28523 exec_prefix="$acl_save_exec_prefix"
28524 prefix="$acl_save_prefix"
28526 if test "X$x" = "X-L$additional_libdir"; then
28531 if test -z "$haveit"; then
28532 if test -d "$additional_libdir"; then
28533 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$additional_libdir"
28537 for x in $LDFLAGS $LTLIBPTHREAD; do
28539 acl_save_prefix="$prefix"
28540 prefix="$acl_final_prefix"
28541 acl_save_exec_prefix="$exec_prefix"
28542 exec_prefix="$acl_final_exec_prefix"
28544 exec_prefix="$acl_save_exec_prefix"
28545 prefix="$acl_save_prefix"
28547 if test "X$x" = "X-L$additional_libdir"; then
28552 if test -z "$haveit"; then
28553 if test -d "$additional_libdir"; then
28554 LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-L$additional_libdir"
28561 dir=`echo "X$dep" | sed -e 's/^X-R//'`
28562 if test "$enable_rpath" != no; then
28564 for x in $rpathdirs; do
28565 if test "X$x" = "X$dir"; then
28570 if test -z "$haveit"; then
28571 rpathdirs="$rpathdirs $dir"
28574 for x in $ltrpathdirs; do
28575 if test "X$x" = "X$dir"; then
28580 if test -z "$haveit"; then
28581 ltrpathdirs="$ltrpathdirs $dir"
28586 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28589 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28592 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$dep"
28593 LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }$dep"
28599 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-l$name"
28600 LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-l$name"
28606 if test "X$rpathdirs" != "X"; then
28607 if test -n "$acl_hardcode_libdir_separator"; then
28609 for found_dir in $rpathdirs; do
28610 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
28612 acl_save_libdir="$libdir"
28614 eval flag=\"$acl_hardcode_libdir_flag_spec\"
28615 libdir="$acl_save_libdir"
28616 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$flag"
28618 for found_dir in $rpathdirs; do
28619 acl_save_libdir="$libdir"
28620 libdir="$found_dir"
28621 eval flag=\"$acl_hardcode_libdir_flag_spec\"
28622 libdir="$acl_save_libdir"
28623 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$flag"
28627 if test "X$ltrpathdirs" != "X"; then
28628 for found_dir in $ltrpathdirs; do
28629 LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-R$found_dir"
28634 ac_save_CPPFLAGS="$CPPFLAGS"
28636 for element in $INCPTHREAD; do
28638 for x in $CPPFLAGS; do
28640 acl_save_prefix="$prefix"
28641 prefix="$acl_final_prefix"
28642 acl_save_exec_prefix="$exec_prefix"
28643 exec_prefix="$acl_final_exec_prefix"
28645 exec_prefix="$acl_save_exec_prefix"
28646 prefix="$acl_save_prefix"
28648 if test "X$x" = "X$element"; then
28653 if test -z "$haveit"; then
28654 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
28659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpthread" >&5
28660 $as_echo_n "checking for libpthread... " >&6; }
28661 if ${ac_cv_libpthread+:} false; then :
28662 $as_echo_n "(cached) " >&6
28665 ac_save_LIBS="$LIBS"
28666 LIBS="$LIBS $LIBPTHREAD"
28667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28668 /* end confdefs.h. */
28669 #include <pthread.h>
28673 pthread_mutex_lock (0);
28678 if ac_fn_c_try_link "$LINENO"; then :
28679 ac_cv_libpthread=yes
28681 ac_cv_libpthread=no
28683 rm -f core conftest.err conftest.$ac_objext \
28684 conftest$ac_exeext conftest.$ac_ext
28685 LIBS="$ac_save_LIBS"
28688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpthread" >&5
28689 $as_echo "$ac_cv_libpthread" >&6; }
28690 if test "$ac_cv_libpthread" = yes; then
28691 HAVE_LIBPTHREAD=yes
28693 $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
28695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpthread" >&5
28696 $as_echo_n "checking how to link with libpthread... " >&6; }
28697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPTHREAD" >&5
28698 $as_echo "$LIBPTHREAD" >&6; }
28701 CPPFLAGS="$ac_save_CPPFLAGS"
28714 LIBGNUTLS_LIBS="-L${libdir} -lgnutls $LIBS"
28715 LIBGNUTLS_CFLAGS="-I${includedir}"
28719 # Finish things from ../configure.ac.
28724 ac_cpp='$CXXCPP $CPPFLAGS'
28725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28728 if test -z "$CXX"; then
28729 if test -n "$CCC"; then
28732 if test -n "$ac_tool_prefix"; then
28733 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
28735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
28737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28738 $as_echo_n "checking for $ac_word... " >&6; }
28739 if ${ac_cv_prog_CXX+:} false; then :
28740 $as_echo_n "(cached) " >&6
28742 if test -n "$CXX"; then
28743 ac_cv_prog_CXX="$CXX" # Let the user override the test.
28745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28746 for as_dir in $PATH
28749 test -z "$as_dir" && as_dir=.
28750 for ac_exec_ext in '' $ac_executable_extensions; do
28751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28752 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
28753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28762 CXX=$ac_cv_prog_CXX
28763 if test -n "$CXX"; then
28764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
28765 $as_echo "$CXX" >&6; }
28767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28768 $as_echo "no" >&6; }
28772 test -n "$CXX" && break
28775 if test -z "$CXX"; then
28777 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
28779 # Extract the first word of "$ac_prog", so it can be a program name with args.
28780 set dummy $ac_prog; ac_word=$2
28781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28782 $as_echo_n "checking for $ac_word... " >&6; }
28783 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
28784 $as_echo_n "(cached) " >&6
28786 if test -n "$ac_ct_CXX"; then
28787 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
28789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28790 for as_dir in $PATH
28793 test -z "$as_dir" && as_dir=.
28794 for ac_exec_ext in '' $ac_executable_extensions; do
28795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28796 ac_cv_prog_ac_ct_CXX="$ac_prog"
28797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28806 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
28807 if test -n "$ac_ct_CXX"; then
28808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
28809 $as_echo "$ac_ct_CXX" >&6; }
28811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28812 $as_echo "no" >&6; }
28816 test -n "$ac_ct_CXX" && break
28819 if test "x$ac_ct_CXX" = x; then
28822 case $cross_compiling:$ac_tool_warned in
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28826 ac_tool_warned=yes ;;
28834 # Provide some information about the compiler.
28835 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
28838 for ac_option in --version -v -V -qversion; do
28839 { { ac_try="$ac_compiler $ac_option >&5"
28840 case "(($ac_try" in
28841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28842 *) ac_try_echo=$ac_try;;
28844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
28845 $as_echo "$ac_try_echo"; } >&5
28846 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
28848 if test -s conftest.err; then
28850 ... rest of stderr output deleted ...
28851 10q' conftest.err >conftest.er1
28852 cat conftest.er1 >&5
28854 rm -f conftest.er1 conftest.err
28855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28856 test $ac_status = 0; }
28859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
28860 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
28861 if ${ac_cv_cxx_compiler_gnu+:} false; then :
28862 $as_echo_n "(cached) " >&6
28864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28865 /* end confdefs.h. */
28878 if ac_fn_cxx_try_compile "$LINENO"; then :
28879 ac_compiler_gnu=yes
28883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28884 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
28887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
28888 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
28889 if test $ac_compiler_gnu = yes; then
28894 ac_test_CXXFLAGS=${CXXFLAGS+set}
28895 ac_save_CXXFLAGS=$CXXFLAGS
28896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
28897 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
28898 if ${ac_cv_prog_cxx_g+:} false; then :
28899 $as_echo_n "(cached) " >&6
28901 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
28902 ac_cxx_werror_flag=yes
28903 ac_cv_prog_cxx_g=no
28905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28906 /* end confdefs.h. */
28916 if ac_fn_cxx_try_compile "$LINENO"; then :
28917 ac_cv_prog_cxx_g=yes
28920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28921 /* end confdefs.h. */
28931 if ac_fn_cxx_try_compile "$LINENO"; then :
28934 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
28936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28937 /* end confdefs.h. */
28947 if ac_fn_cxx_try_compile "$LINENO"; then :
28948 ac_cv_prog_cxx_g=yes
28950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28955 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
28957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
28958 $as_echo "$ac_cv_prog_cxx_g" >&6; }
28959 if test "$ac_test_CXXFLAGS" = set; then
28960 CXXFLAGS=$ac_save_CXXFLAGS
28961 elif test $ac_cv_prog_cxx_g = yes; then
28962 if test "$GXX" = yes; then
28968 if test "$GXX" = yes; then
28975 ac_cpp='$CPP $CPPFLAGS'
28976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28980 depcc="$CXX" am_compiler_list=
28982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
28983 $as_echo_n "checking dependency style of $depcc... " >&6; }
28984 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
28985 $as_echo_n "(cached) " >&6
28987 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
28988 # We make a subdir and do the tests there. Otherwise we can end up
28989 # making bogus files that we don't know about and never remove. For
28990 # instance it was reported that on HP-UX the gcc test will end up
28991 # making a dummy file named `D' -- because `-MD' means `put the output
28993 rm -rf conftest.dir
28995 # Copy depcomp to subdir because otherwise we won't find it if we're
28996 # using a relative directory.
28997 cp "$am_depcomp" conftest.dir
28999 # We will build objects and dependencies in a subdirectory because
29000 # it helps to detect inapplicable dependency modes. For instance
29001 # both Tru64's cc and ICC support -MD to output dependencies as a
29002 # side effect of compilation, but ICC will put the dependencies in
29003 # the current directory while Tru64 will put them in the object
29007 am_cv_CXX_dependencies_compiler_type=none
29008 if test "$am_compiler_list" = ""; then
29009 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
29011 am__universal=false
29012 case " $depcc " in #(
29013 *\ -arch\ *\ -arch\ *) am__universal=true ;;
29016 for depmode in $am_compiler_list; do
29017 # Setup a source with many dependencies, because some compilers
29018 # like to wrap large dependency lists on column 80 (with \), and
29019 # we should not choose a depcomp mode which is confused by this.
29021 # We need to recreate these files for each test, as the compiler may
29022 # overwrite some of them when testing with obscure command lines.
29023 # This happens at least with the AIX C compiler.
29025 for i in 1 2 3 4 5 6; do
29026 echo '#include "conftst'$i'.h"' >> sub/conftest.c
29027 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
29028 # Solaris 8's {/usr,}/bin/sh.
29029 touch sub/conftst$i.h
29031 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
29033 # We check with `-c' and `-o' for the sake of the "dashmstdout"
29034 # mode. It turns out that the SunPro C++ compiler does not properly
29035 # handle `-M -o', and we need to detect this. Also, some Intel
29036 # versions had trouble with output in subdirs
29037 am__obj=sub/conftest.${OBJEXT-o}
29038 am__minus_obj="-o $am__obj"
29041 # This depmode causes a compiler race in universal mode.
29042 test "$am__universal" = false || continue
29045 # after this tag, mechanisms are not by side-effect, so they'll
29046 # only be used when explicitly requested
29047 if test "x$enable_dependency_tracking" = xyes; then
29053 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
29054 # This compiler won't grok `-c -o', but also, the minuso test has
29055 # not run yet. These depmodes are late enough in the game, and
29056 # so weak that their functioning should not be impacted.
29057 am__obj=conftest.${OBJEXT-o}
29062 if depmode=$depmode \
29063 source=sub/conftest.c object=$am__obj \
29064 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
29065 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
29066 >/dev/null 2>conftest.err &&
29067 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
29068 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
29069 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
29070 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
29071 # icc doesn't choke on unknown options, it will just issue warnings
29072 # or remarks (even with -Werror). So we grep stderr for any message
29073 # that says an option was ignored or not supported.
29074 # When given -MP, icc 7.0 and 7.1 complain thusly:
29075 # icc: Command line warning: ignoring option '-M'; no argument required
29076 # The diagnosis changed in icc 8.0:
29077 # icc: Command line remark: option '-MP' not supported
29078 if (grep 'ignoring option' conftest.err ||
29079 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
29080 am_cv_CXX_dependencies_compiler_type=$depmode
29087 rm -rf conftest.dir
29089 am_cv_CXX_dependencies_compiler_type=none
29093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
29094 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
29095 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
29098 test "x$enable_dependency_tracking" != xno \
29099 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
29100 am__fastdepCXX_TRUE=
29101 am__fastdepCXX_FALSE='#'
29103 am__fastdepCXX_TRUE='#'
29104 am__fastdepCXX_FALSE=
29110 func_stripname_cnf ()
29113 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
29114 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
29116 } # func_stripname_cnf
29118 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
29119 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
29120 (test "X$CXX" != "Xg++"))) ; then
29122 ac_cpp='$CXXCPP $CPPFLAGS'
29123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
29127 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
29128 if test -z "$CXXCPP"; then
29129 if ${ac_cv_prog_CXXCPP+:} false; then :
29130 $as_echo_n "(cached) " >&6
29132 # Double quotes because CXXCPP needs to be expanded
29133 for CXXCPP in "$CXX -E" "/lib/cpp"
29135 ac_preproc_ok=false
29136 for ac_cxx_preproc_warn_flag in '' yes
29138 # Use a header file that comes with gcc, so configuring glibc
29139 # with a fresh cross-compiler works.
29140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29141 # <limits.h> exists even on freestanding compilers.
29142 # On the NeXT, cc -E runs the code through the compiler's parser,
29143 # not just through cpp. "Syntax error" is here to catch this case.
29144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29145 /* end confdefs.h. */
29147 # include <limits.h>
29149 # include <assert.h>
29153 if ac_fn_cxx_try_cpp "$LINENO"; then :
29156 # Broken: fails on valid input.
29159 rm -f conftest.err conftest.i conftest.$ac_ext
29161 # OK, works on sane cases. Now check whether nonexistent headers
29162 # can be detected and how.
29163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29164 /* end confdefs.h. */
29165 #include <ac_nonexistent.h>
29167 if ac_fn_cxx_try_cpp "$LINENO"; then :
29168 # Broken: success on invalid input.
29171 # Passes both tests.
29175 rm -f conftest.err conftest.i conftest.$ac_ext
29178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
29179 rm -f conftest.i conftest.err conftest.$ac_ext
29180 if $ac_preproc_ok; then :
29185 ac_cv_prog_CXXCPP=$CXXCPP
29188 CXXCPP=$ac_cv_prog_CXXCPP
29190 ac_cv_prog_CXXCPP=$CXXCPP
29192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
29193 $as_echo "$CXXCPP" >&6; }
29194 ac_preproc_ok=false
29195 for ac_cxx_preproc_warn_flag in '' yes
29197 # Use a header file that comes with gcc, so configuring glibc
29198 # with a fresh cross-compiler works.
29199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29200 # <limits.h> exists even on freestanding compilers.
29201 # On the NeXT, cc -E runs the code through the compiler's parser,
29202 # not just through cpp. "Syntax error" is here to catch this case.
29203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29204 /* end confdefs.h. */
29206 # include <limits.h>
29208 # include <assert.h>
29212 if ac_fn_cxx_try_cpp "$LINENO"; then :
29215 # Broken: fails on valid input.
29218 rm -f conftest.err conftest.i conftest.$ac_ext
29220 # OK, works on sane cases. Now check whether nonexistent headers
29221 # can be detected and how.
29222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29223 /* end confdefs.h. */
29224 #include <ac_nonexistent.h>
29226 if ac_fn_cxx_try_cpp "$LINENO"; then :
29227 # Broken: success on invalid input.
29230 # Passes both tests.
29234 rm -f conftest.err conftest.i conftest.$ac_ext
29237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
29238 rm -f conftest.i conftest.err conftest.$ac_ext
29239 if $ac_preproc_ok; then :
29242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29244 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
29245 See \`config.log' for more details" "$LINENO" 5; }
29249 ac_cpp='$CPP $CPPFLAGS'
29250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29255 _lt_caught_CXX_error=yes
29259 ac_cpp='$CXXCPP $CPPFLAGS'
29260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29264 archive_cmds_need_lc_CXX=no
29265 allow_undefined_flag_CXX=
29266 always_export_symbols_CXX=no
29267 archive_expsym_cmds_CXX=
29268 compiler_needs_object_CXX=no
29269 export_dynamic_flag_spec_CXX=
29270 hardcode_direct_CXX=no
29271 hardcode_direct_absolute_CXX=no
29272 hardcode_libdir_flag_spec_CXX=
29273 hardcode_libdir_separator_CXX=
29274 hardcode_minus_L_CXX=no
29275 hardcode_shlibpath_var_CXX=unsupported
29276 hardcode_automatic_CXX=no
29277 inherit_rpath_CXX=no
29279 module_expsym_cmds_CXX=
29280 link_all_deplibs_CXX=unknown
29281 old_archive_cmds_CXX=$old_archive_cmds
29282 reload_flag_CXX=$reload_flag
29283 reload_cmds_CXX=$reload_cmds
29284 no_undefined_flag_CXX=
29285 whole_archive_flag_spec_CXX=
29286 enable_shared_with_static_runtimes_CXX=no
29288 # Source file extension for C++ test sources.
29291 # Object file extension for compiled C++ test sources.
29295 # No sense in running all these tests if we already determined that
29296 # the CXX compiler isn't working. Some variables (like enable_shared)
29297 # are currently assumed to apply to all compilers on this platform,
29298 # and will be corrupted by setting them based on a non-working compiler.
29299 if test "$_lt_caught_CXX_error" != yes; then
29300 # Code to be used in simple compile tests
29301 lt_simple_compile_test_code="int some_variable = 0;"
29303 # Code to be used in simple link tests
29304 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
29306 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
29313 # If no C compiler was specified, use CC.
29316 # If no C compiler flags were specified, use CFLAGS.
29317 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
29319 # Allow CC to be a program name with arguments.
29323 # save warnings/boilerplate of simple test code
29324 ac_outfile=conftest.$ac_objext
29325 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
29326 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
29327 _lt_compiler_boilerplate=`cat conftest.err`
29330 ac_outfile=conftest.$ac_objext
29331 echo "$lt_simple_link_test_code" >conftest.$ac_ext
29332 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
29333 _lt_linker_boilerplate=`cat conftest.err`
29337 # Allow CC to be a program name with arguments.
29339 lt_save_CFLAGS=$CFLAGS
29343 lt_save_with_gnu_ld=$with_gnu_ld
29344 lt_save_path_LD=$lt_cv_path_LD
29345 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
29346 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
29348 $as_unset lt_cv_prog_gnu_ld
29350 if test -n "${lt_cv_path_LDCXX+set}"; then
29351 lt_cv_path_LD=$lt_cv_path_LDCXX
29353 $as_unset lt_cv_path_LD
29355 test -z "${LDCXX+set}" || LD=$LDCXX
29360 for cc_temp in $compiler""; do
29362 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
29363 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
29368 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
29371 if test -n "$compiler"; then
29372 # We don't want -fno-exception when compiling C++ code, so set the
29373 # no_builtin_flag separately
29374 if test "$GXX" = yes; then
29375 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
29377 lt_prog_compiler_no_builtin_flag_CXX=
29380 if test "$GXX" = yes; then
29381 # Set up default GNU C++ configuration
29385 # Check whether --with-gnu-ld was given.
29386 if test "${with_gnu_ld+set}" = set; then :
29387 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
29393 if test "$GCC" = yes; then
29394 # Check if gcc -print-prog-name=ld gives a path.
29395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
29396 $as_echo_n "checking for ld used by $CC... " >&6; }
29399 # gcc leaves a trailing carriage return which upsets mingw
29400 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
29402 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
29405 # Accept absolute paths.
29407 re_direlt='/[^/][^/]*/\.\./'
29408 # Canonicalize the pathname of ld
29409 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
29410 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
29411 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
29413 test -z "$LD" && LD="$ac_prog"
29416 # If it fails, then pretend we aren't using GCC.
29420 # If it is relative, then search for the first ld in PATH.
29421 with_gnu_ld=unknown
29424 elif test "$with_gnu_ld" = yes; then
29425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
29426 $as_echo_n "checking for GNU ld... " >&6; }
29428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
29429 $as_echo_n "checking for non-GNU ld... " >&6; }
29431 if ${lt_cv_path_LD+:} false; then :
29432 $as_echo_n "(cached) " >&6
29434 if test -z "$LD"; then
29435 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
29436 for ac_dir in $PATH; do
29438 test -z "$ac_dir" && ac_dir=.
29439 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
29440 lt_cv_path_LD="$ac_dir/$ac_prog"
29441 # Check to see if the program is GNU ld. I'd rather use --version,
29442 # but apparently some variants of GNU ld only accept -v.
29443 # Break only if it was the GNU/non-GNU ld that we prefer.
29444 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
29445 *GNU* | *'with BFD'*)
29446 test "$with_gnu_ld" != no && break
29449 test "$with_gnu_ld" != yes && break
29456 lt_cv_path_LD="$LD" # Let the user override the test with a path.
29460 LD="$lt_cv_path_LD"
29461 if test -n "$LD"; then
29462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
29463 $as_echo "$LD" >&6; }
29465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29466 $as_echo "no" >&6; }
29468 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
29469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
29470 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
29471 if ${lt_cv_prog_gnu_ld+:} false; then :
29472 $as_echo_n "(cached) " >&6
29474 # I'd rather use --version here, but apparently some GNU lds only accept -v.
29475 case `$LD -v 2>&1 </dev/null` in
29476 *GNU* | *'with BFD'*)
29477 lt_cv_prog_gnu_ld=yes
29480 lt_cv_prog_gnu_ld=no
29484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
29485 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
29486 with_gnu_ld=$lt_cv_prog_gnu_ld
29494 # Check if GNU C++ uses GNU ld as the underlying linker, since the
29495 # archiving commands below assume that GNU ld is being used.
29496 if test "$with_gnu_ld" = yes; then
29497 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
29498 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'
29500 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
29501 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
29503 # If archive_cmds runs LD, not CC, wlarc should be empty
29504 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
29505 # investigate it a little bit more. (MM)
29508 # ancient GNU ld didn't support --whole-archive et. al.
29509 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
29510 $GREP 'no-whole-archive' > /dev/null; then
29511 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
29513 whole_archive_flag_spec_CXX=
29519 # A generic and very simple default shared library creation
29520 # command for GNU C++ for the case where it uses the native
29521 # linker, instead of GNU ld. If possible, this setting should
29522 # overridden to take advantage of the native linker features on
29523 # the platform it is being used on.
29524 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
29527 # Commands to make compiler produce verbose output that lists
29528 # what "hidden" libraries, object files and flags are used when
29529 # linking a shared library.
29530 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
29538 # PORTME: fill in a description of your system's C++ link characteristics
29539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
29540 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
29544 # FIXME: insert proper C++ library support
29548 if test "$host_cpu" = ia64; then
29549 # On IA64, the linker does run time linking by default, so we don't
29550 # have to do anything special.
29551 aix_use_runtimelinking=no
29552 exp_sym_flag='-Bexport'
29555 aix_use_runtimelinking=no
29557 # Test if we are trying to use run time linking or normal
29558 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
29559 # need to do runtime linking.
29560 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
29561 for ld_flag in $LDFLAGS; do
29564 aix_use_runtimelinking=yes
29572 exp_sym_flag='-bexport'
29573 no_entry_flag='-bnoentry'
29576 # When large executables or shared objects are built, AIX ld can
29577 # have problems creating the table of contents. If linking a library
29578 # or program results in "error TOC overflow" add -mminimal-toc to
29579 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
29580 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
29582 archive_cmds_CXX=''
29583 hardcode_direct_CXX=yes
29584 hardcode_direct_absolute_CXX=yes
29585 hardcode_libdir_separator_CXX=':'
29586 link_all_deplibs_CXX=yes
29587 file_list_spec_CXX='${wl}-f,'
29589 if test "$GXX" = yes; then
29590 case $host_os in aix4.[012]|aix4.[012].*)
29591 # We only want to do this on AIX 4.2 and lower, the check
29592 # below for broken collect2 doesn't work under 4.3+
29593 collect2name=`${CC} -print-prog-name=collect2`
29594 if test -f "$collect2name" &&
29595 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
29597 # We have reworked collect2
29600 # We have old collect2
29601 hardcode_direct_CXX=unsupported
29602 # It fails to find uninstalled libraries when the uninstalled
29603 # path is not listed in the libpath. Setting hardcode_minus_L
29604 # to unsupported forces relinking
29605 hardcode_minus_L_CXX=yes
29606 hardcode_libdir_flag_spec_CXX='-L$libdir'
29607 hardcode_libdir_separator_CXX=
29610 shared_flag='-shared'
29611 if test "$aix_use_runtimelinking" = yes; then
29612 shared_flag="$shared_flag "'${wl}-G'
29616 if test "$host_cpu" = ia64; then
29617 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
29618 # chokes on -Wl,-G. The following line is correct:
29621 if test "$aix_use_runtimelinking" = yes; then
29622 shared_flag='${wl}-G'
29624 shared_flag='${wl}-bM:SRE'
29629 export_dynamic_flag_spec_CXX='${wl}-bexpall'
29630 # It seems that -bexpall does not export symbols beginning with
29631 # underscore (_), so it is better to generate a list of symbols to
29633 always_export_symbols_CXX=yes
29634 if test "$aix_use_runtimelinking" = yes; then
29635 # Warning - without using the other runtime loading flags (-brtl),
29636 # -berok will link without error, but may produce a broken library.
29637 allow_undefined_flag_CXX='-berok'
29638 # Determine the default libpath from the value encoded in an empty
29640 if test "${lt_cv_aix_libpath+set}" = set; then
29641 aix_libpath=$lt_cv_aix_libpath
29643 if ${lt_cv_aix_libpath__CXX+:} false; then :
29644 $as_echo_n "(cached) " >&6
29646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29647 /* end confdefs.h. */
29657 if ac_fn_cxx_try_link "$LINENO"; then :
29659 lt_aix_libpath_sed='
29660 /Import File Strings/,/^$/ {
29662 s/^0 *\([^ ]*\) *$/\1/
29666 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
29667 # Check for a 64-bit object if we didn't find anything.
29668 if test -z "$lt_cv_aix_libpath__CXX"; then
29669 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
29672 rm -f core conftest.err conftest.$ac_objext \
29673 conftest$ac_exeext conftest.$ac_ext
29674 if test -z "$lt_cv_aix_libpath__CXX"; then
29675 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
29680 aix_libpath=$lt_cv_aix_libpath__CXX
29683 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
29685 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"
29687 if test "$host_cpu" = ia64; then
29688 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
29689 allow_undefined_flag_CXX="-z nodefs"
29690 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"
29692 # Determine the default libpath from the value encoded in an
29693 # empty executable.
29694 if test "${lt_cv_aix_libpath+set}" = set; then
29695 aix_libpath=$lt_cv_aix_libpath
29697 if ${lt_cv_aix_libpath__CXX+:} false; then :
29698 $as_echo_n "(cached) " >&6
29700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29701 /* end confdefs.h. */
29711 if ac_fn_cxx_try_link "$LINENO"; then :
29713 lt_aix_libpath_sed='
29714 /Import File Strings/,/^$/ {
29716 s/^0 *\([^ ]*\) *$/\1/
29720 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
29721 # Check for a 64-bit object if we didn't find anything.
29722 if test -z "$lt_cv_aix_libpath__CXX"; then
29723 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
29726 rm -f core conftest.err conftest.$ac_objext \
29727 conftest$ac_exeext conftest.$ac_ext
29728 if test -z "$lt_cv_aix_libpath__CXX"; then
29729 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
29734 aix_libpath=$lt_cv_aix_libpath__CXX
29737 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
29738 # Warning - without using the other run time loading flags,
29739 # -berok will link without error, but may produce a broken library.
29740 no_undefined_flag_CXX=' ${wl}-bernotok'
29741 allow_undefined_flag_CXX=' ${wl}-berok'
29742 if test "$with_gnu_ld" = yes; then
29743 # We only use this code for GNU lds that support --whole-archive.
29744 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
29746 # Exported symbols can be pulled into shared objects from archives
29747 whole_archive_flag_spec_CXX='$convenience'
29749 archive_cmds_need_lc_CXX=yes
29750 # This is similar to how AIX traditionally builds its shared
29752 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'
29758 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
29759 allow_undefined_flag_CXX=unsupported
29760 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
29761 # support --undefined. This deserves some investigation. FIXME
29762 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
29769 case $cc_basename in
29771 # FIXME: insert proper C++ library support
29777 cygwin* | mingw* | pw32* | cegcc*)
29778 case $GXX,$cc_basename in
29781 # hardcode_libdir_flag_spec is actually meaningless, as there is
29782 # no search path for DLLs.
29783 hardcode_libdir_flag_spec_CXX=' '
29784 allow_undefined_flag_CXX=unsupported
29785 always_export_symbols_CXX=yes
29786 file_list_spec_CXX='@'
29787 # Tell ltmain to make .lib files, not .a files.
29789 # Tell ltmain to make .dll files, not .so files.
29791 # FIXME: Setting linknames here is a bad hack.
29792 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
29793 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
29794 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
29796 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
29798 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
29800 # The linker will not automatically build a static lib if we build a DLL.
29801 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
29802 enable_shared_with_static_runtimes_CXX=yes
29804 old_postinstall_cmds_CXX='chmod 644 $oldlib'
29805 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
29806 lt_tool_outputfile="@TOOL_OUTPUT@"~
29807 case $lt_outputfile in
29810 lt_outputfile="$lt_outputfile.exe"
29811 lt_tool_outputfile="$lt_tool_outputfile.exe"
29814 func_to_tool_file "$lt_outputfile"~
29815 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
29816 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
29817 $RM "$lt_outputfile.manifest";
29822 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
29823 # as there is no search path for DLLs.
29824 hardcode_libdir_flag_spec_CXX='-L$libdir'
29825 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
29826 allow_undefined_flag_CXX=unsupported
29827 always_export_symbols_CXX=no
29828 enable_shared_with_static_runtimes_CXX=yes
29830 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
29831 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'
29832 # If the export-symbols file already is a .def file (1st line
29833 # is EXPORTS), use it as is; otherwise, prepend...
29834 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
29835 cp $export_symbols $output_objdir/$soname.def;
29837 echo EXPORTS > $output_objdir/$soname.def;
29838 cat $export_symbols >> $output_objdir/$soname.def;
29840 $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'
29847 darwin* | rhapsody*)
29850 archive_cmds_need_lc_CXX=no
29851 hardcode_direct_CXX=no
29852 hardcode_automatic_CXX=yes
29853 hardcode_shlibpath_var_CXX=unsupported
29854 if test "$lt_cv_ld_force_load" = "yes"; then
29855 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\"`'
29858 whole_archive_flag_spec_CXX=''
29860 link_all_deplibs_CXX=yes
29861 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
29862 case $cc_basename in
29863 ifort*) _lt_dar_can_shared=yes ;;
29864 *) _lt_dar_can_shared=$GCC ;;
29866 if test "$_lt_dar_can_shared" = "yes"; then
29867 output_verbose_link_cmd=func_echo_all
29868 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}"
29869 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
29870 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}"
29871 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}"
29872 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
29873 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}"
29874 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}"
29884 case $cc_basename in
29886 # FIXME: insert proper C++ library support
29890 # Green Hills C++ Compiler
29891 # FIXME: insert proper C++ library support
29895 # FIXME: insert proper C++ library support
29902 # C++ shared libraries reported to be fairly broken before
29908 archive_cmds_need_lc_CXX=no
29911 freebsd* | dragonfly*)
29912 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
29921 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
29922 link_all_deplibs_CXX=yes
29926 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
29927 hardcode_libdir_separator_CXX=:
29928 export_dynamic_flag_spec_CXX='${wl}-E'
29929 hardcode_direct_CXX=yes
29930 hardcode_minus_L_CXX=yes # Not in the search PATH,
29931 # but as the default
29932 # location of the library.
29934 case $cc_basename in
29936 # FIXME: insert proper C++ library support
29940 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'
29941 # Commands to make compiler produce verbose output that lists
29942 # what "hidden" libraries, object files and flags are used when
29943 # linking a shared library.
29945 # There doesn't appear to be a way to prevent this compiler from
29946 # explicitly linking system object files so we need to strip them
29947 # from the output so that they don't get included in the library
29949 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"'
29952 if test "$GXX" = yes; then
29953 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'
29955 # FIXME: insert proper C++ library support
29963 if test $with_gnu_ld = no; then
29964 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
29965 hardcode_libdir_separator_CXX=:
29971 export_dynamic_flag_spec_CXX='${wl}-E'
29977 hardcode_direct_CXX=no
29978 hardcode_shlibpath_var_CXX=no
29981 hardcode_direct_CXX=yes
29982 hardcode_direct_absolute_CXX=yes
29983 hardcode_minus_L_CXX=yes # Not in the search PATH,
29984 # but as the default
29985 # location of the library.
29989 case $cc_basename in
29991 # FIXME: insert proper C++ library support
29997 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
30000 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
30003 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
30006 # Commands to make compiler produce verbose output that lists
30007 # what "hidden" libraries, object files and flags are used when
30008 # linking a shared library.
30010 # There doesn't appear to be a way to prevent this compiler from
30011 # explicitly linking system object files so we need to strip them
30012 # from the output so that they don't get included in the library
30014 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"'
30017 if test "$GXX" = yes; then
30018 if test $with_gnu_ld = no; then
30021 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
30024 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
30027 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'
30032 # FIXME: insert proper C++ library support
30040 hardcode_direct_CXX=no
30041 hardcode_shlibpath_var_CXX=no
30042 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
30043 export_dynamic_flag_spec_CXX='${wl}-E'
30044 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
30045 # Instead, shared libraries are loaded at an image base (0x10000000 by
30046 # default) and relocated if they conflict, which is a slow very memory
30047 # consuming and fragmenting process. To avoid this, we pick a random,
30048 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
30049 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
30050 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'
30051 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'
30054 case $cc_basename in
30057 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'
30059 # Archives containing C++ object files must be created using
30060 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
30061 # necessary to make sure instantiated templates are included
30063 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
30066 if test "$GXX" = yes; then
30067 if test "$with_gnu_ld" = no; then
30068 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'
30070 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'
30073 link_all_deplibs_CXX=yes
30076 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
30077 hardcode_libdir_separator_CXX=:
30078 inherit_rpath_CXX=yes
30081 linux* | k*bsd*-gnu | kopensolaris*-gnu)
30082 case $cc_basename in
30084 # Kuck and Associates, Inc. (KAI) C++ Compiler
30086 # KCC will only create a shared library if the output file
30087 # ends with ".so" (or ".sl" for HP-UX), so rename the library
30088 # to its proper name (with version) after linking.
30089 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'
30090 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'
30091 # Commands to make compiler produce verbose output that lists
30092 # what "hidden" libraries, object files and flags are used when
30093 # linking a shared library.
30095 # There doesn't appear to be a way to prevent this compiler from
30096 # explicitly linking system object files so we need to strip them
30097 # from the output so that they don't get included in the library
30099 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"'
30101 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
30102 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
30104 # Archives containing C++ object files must be created using
30105 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
30106 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
30111 # version 8.0 and above of icpc choke on multiply defined symbols
30112 # if we add $predep_objects and $postdep_objects, however 7.1 and
30113 # earlier do not add the objects themselves.
30114 case `$CC -V 2>&1` in
30116 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
30117 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'
30119 *) # Version 8.0 or newer
30122 ia64*) tmp_idyn=' -i_dynamic';;
30124 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
30125 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'
30128 archive_cmds_need_lc_CXX=no
30129 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
30130 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
30131 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
30134 # Portland Group C++ compiler
30136 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
30137 prelink_cmds_CXX='tpldir=Template.dir~
30139 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
30140 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
30141 old_archive_cmds_CXX='tpldir=Template.dir~
30143 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
30144 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
30146 archive_cmds_CXX='tpldir=Template.dir~
30148 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
30149 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
30150 archive_expsym_cmds_CXX='tpldir=Template.dir~
30152 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
30153 $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'
30155 *) # Version 6 and above use weak symbols
30156 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
30157 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'
30161 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
30162 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
30163 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'
30167 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
30168 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'
30170 runpath_var=LD_RUN_PATH
30171 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
30172 hardcode_libdir_separator_CXX=:
30174 # Commands to make compiler produce verbose output that lists
30175 # what "hidden" libraries, object files and flags are used when
30176 # linking a shared library.
30178 # There doesn't appear to be a way to prevent this compiler from
30179 # explicitly linking system object files so we need to strip them
30180 # from the output so that they don't get included in the library
30182 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'
30184 xl* | mpixl* | bgxl*)
30185 # IBM XL 8.0 on PPC, with GNU ld
30186 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
30187 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
30188 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
30189 if test "x$supports_anon_versioning" = xyes; then
30190 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
30191 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
30192 echo "local: *; };" >> $output_objdir/$libname.ver~
30193 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
30197 case `$CC -V 2>&1 | sed 5q` in
30200 no_undefined_flag_CXX=' -zdefs'
30201 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
30202 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'
30203 hardcode_libdir_flag_spec_CXX='-R$libdir'
30204 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'
30205 compiler_needs_object_CXX=yes
30207 # Not sure whether something based on
30208 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
30210 output_verbose_link_cmd='func_echo_all'
30212 # Archives containing C++ object files must be created using
30213 # "CC -xar", where "CC" is the Sun C++ compiler. This is
30214 # necessary to make sure instantiated templates are included
30216 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
30224 # FIXME: insert proper C++ library support
30229 # FIXME: insert proper C++ library support
30234 case $cc_basename in
30236 # FIXME: insert proper C++ library support
30240 # FIXME: insert proper C++ library support
30247 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
30248 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
30250 hardcode_libdir_flag_spec_CXX='-R$libdir'
30251 hardcode_direct_CXX=yes
30252 hardcode_shlibpath_var_CXX=no
30254 # Workaround some broken pre-1.5 toolchains
30255 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
30263 # C++ shared libraries are fairly broken
30268 if test -f /usr/libexec/ld.so; then
30269 hardcode_direct_CXX=yes
30270 hardcode_shlibpath_var_CXX=no
30271 hardcode_direct_absolute_CXX=yes
30272 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
30273 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
30274 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
30275 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
30276 export_dynamic_flag_spec_CXX='${wl}-E'
30277 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
30279 output_verbose_link_cmd=func_echo_all
30285 osf3* | osf4* | osf5*)
30286 case $cc_basename in
30288 # Kuck and Associates, Inc. (KAI) C++ Compiler
30290 # KCC will only create a shared library if the output file
30291 # ends with ".so" (or ".sl" for HP-UX), so rename the library
30292 # to its proper name (with version) after linking.
30293 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'
30295 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
30296 hardcode_libdir_separator_CXX=:
30298 # Archives containing C++ object files must be created using
30299 # the KAI C++ compiler.
30301 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
30302 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
30306 # Rational C++ 2.4.1
30307 # FIXME: insert proper C++ library support
30313 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
30314 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'
30315 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
30318 allow_undefined_flag_CXX=' -expect_unresolved \*'
30319 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'
30320 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
30321 echo "-hidden">> $lib.exp~
30322 $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~
30324 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
30328 hardcode_libdir_separator_CXX=:
30330 # Commands to make compiler produce verbose output that lists
30331 # what "hidden" libraries, object files and flags are used when
30332 # linking a shared library.
30334 # There doesn't appear to be a way to prevent this compiler from
30335 # explicitly linking system object files so we need to strip them
30336 # from the output so that they don't get included in the library
30338 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"'
30341 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
30342 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
30345 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'
30348 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'
30352 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
30353 hardcode_libdir_separator_CXX=:
30355 # Commands to make compiler produce verbose output that lists
30356 # what "hidden" libraries, object files and flags are used when
30357 # linking a shared library.
30358 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
30361 # FIXME: insert proper C++ library support
30369 # FIXME: insert proper C++ library support
30374 case $cc_basename in
30377 # FIXME: insert proper C++ library support
30382 # FIXME: insert proper C++ library support
30386 # FIXME: insert proper C++ library support
30393 case $cc_basename in
30395 # Sun C++ 4.2, 5.x and Centerline C++
30396 archive_cmds_need_lc_CXX=yes
30397 no_undefined_flag_CXX=' -zdefs'
30398 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
30399 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
30400 $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'
30402 hardcode_libdir_flag_spec_CXX='-R$libdir'
30403 hardcode_shlibpath_var_CXX=no
30405 solaris2.[0-5] | solaris2.[0-5].*) ;;
30407 # The compiler driver will combine and reorder linker options,
30408 # but understands `-z linker_flag'.
30409 # Supported since Solaris 2.6 (maybe 2.5.1?)
30410 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
30413 link_all_deplibs_CXX=yes
30415 output_verbose_link_cmd='func_echo_all'
30417 # Archives containing C++ object files must be created using
30418 # "CC -xar", where "CC" is the Sun C++ compiler. This is
30419 # necessary to make sure instantiated templates are included
30421 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
30424 # Green Hills C++ Compiler
30425 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
30427 # The C++ compiler must be used to create the archive.
30428 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
30431 # GNU C++ compiler with Solaris linker
30432 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
30433 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
30434 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
30435 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
30436 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
30437 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
30439 # Commands to make compiler produce verbose output that lists
30440 # what "hidden" libraries, object files and flags are used when
30441 # linking a shared library.
30442 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
30444 # g++ 2.7 appears to require `-G' NOT `-shared' on this
30446 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
30447 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
30448 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
30450 # Commands to make compiler produce verbose output that lists
30451 # what "hidden" libraries, object files and flags are used when
30452 # linking a shared library.
30453 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
30456 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
30458 solaris2.[0-5] | solaris2.[0-5].*) ;;
30460 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
30468 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
30469 no_undefined_flag_CXX='${wl}-z,text'
30470 archive_cmds_need_lc_CXX=no
30471 hardcode_shlibpath_var_CXX=no
30472 runpath_var='LD_RUN_PATH'
30474 case $cc_basename in
30476 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
30477 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
30480 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
30481 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
30486 sysv5* | sco3.2v5* | sco5v6*)
30487 # Note: We can NOT use -z defs as we might desire, because we do not
30488 # link with -lc, and that would cause any symbols used from libc to
30489 # always be unresolved, which means just about no library would
30490 # ever link correctly. If we're not using GNU ld we use -z text
30491 # though, which does catch some bad symbols but isn't as heavy-handed
30493 no_undefined_flag_CXX='${wl}-z,text'
30494 allow_undefined_flag_CXX='${wl}-z,nodefs'
30495 archive_cmds_need_lc_CXX=no
30496 hardcode_shlibpath_var_CXX=no
30497 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
30498 hardcode_libdir_separator_CXX=':'
30499 link_all_deplibs_CXX=yes
30500 export_dynamic_flag_spec_CXX='${wl}-Bexport'
30501 runpath_var='LD_RUN_PATH'
30503 case $cc_basename in
30505 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
30506 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
30507 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
30508 '"$old_archive_cmds_CXX"
30509 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
30510 '"$reload_cmds_CXX"
30513 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
30514 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
30520 case $cc_basename in
30522 # NonStop-UX NCC 3.20
30523 # FIXME: insert proper C++ library support
30527 # FIXME: insert proper C++ library support
30534 # FIXME: insert proper C++ library support
30539 # FIXME: insert proper C++ library support
30544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
30545 $as_echo "$ld_shlibs_CXX" >&6; }
30546 test "$ld_shlibs_CXX" = no && can_build_shared=no
30552 ## There is no encapsulation within the following macros, do not change
30553 ## the running order or otherwise move them around unless you know exactly
30554 ## what you are doing...
30555 # Dependencies to place before and after the object being linked:
30556 predep_objects_CXX=
30557 postdep_objects_CXX=
30560 compiler_lib_search_path_CXX=
30562 cat > conftest.$ac_ext <<_LT_EOF
30566 Foo (void) { a = 0; }
30573 _lt_libdeps_save_CFLAGS=$CFLAGS
30574 case "$CC $CFLAGS " in #(
30575 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
30576 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
30577 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
30580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
30581 (eval $ac_compile) 2>&5
30583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30584 test $ac_status = 0; }; then
30585 # Parse the compiler output and extract the necessary
30586 # objects, libraries and library flags.
30588 # Sentinel used to keep track of whether or not we are before
30589 # the conftest object file.
30590 pre_test_object_deps_done=no
30592 for p in `eval "$output_verbose_link_cmd"`; do
30593 case ${prev}${p} in
30596 # Some compilers place space between "-{L,R}" and the path.
30597 # Remove the space.
30598 if test $p = "-L" ||
30599 test $p = "-R"; then
30604 # Expand the sysroot to ease extracting the directories later.
30605 if test -z "$prev"; then
30607 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
30608 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
30609 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
30613 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
30615 if test "$pre_test_object_deps_done" = no; then
30618 # Internal compiler library paths should come after those
30619 # provided the user. The postdeps already come after the
30620 # user supplied libs so there is no need to process them.
30621 if test -z "$compiler_lib_search_path_CXX"; then
30622 compiler_lib_search_path_CXX="${prev}${p}"
30624 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
30627 # The "-l" case would never come before the object being
30628 # linked, so don't bother handling this case.
30631 if test -z "$postdeps_CXX"; then
30632 postdeps_CXX="${prev}${p}"
30634 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
30640 *.lto.$objext) ;; # Ignore GCC LTO objects
30642 # This assumes that the test object file only shows up
30643 # once in the compiler output.
30644 if test "$p" = "conftest.$objext"; then
30645 pre_test_object_deps_done=yes
30649 if test "$pre_test_object_deps_done" = no; then
30650 if test -z "$predep_objects_CXX"; then
30651 predep_objects_CXX="$p"
30653 predep_objects_CXX="$predep_objects_CXX $p"
30656 if test -z "$postdep_objects_CXX"; then
30657 postdep_objects_CXX="$p"
30659 postdep_objects_CXX="$postdep_objects_CXX $p"
30664 *) ;; # Ignore the rest.
30672 echo "libtool.m4: error: problem compiling CXX test program"
30675 $RM -f confest.$objext
30676 CFLAGS=$_lt_libdeps_save_CFLAGS
30678 # PORTME: override above test on systems where it is broken
30681 # Interix 3.5 installs completely hosed .la files for C++, so rather than
30682 # hack all around it, let's just trust "g++" to DTRT.
30683 predep_objects_CXX=
30684 postdep_objects_CXX=
30689 case `$CC -V 2>&1 | sed 5q` in
30693 # The more standards-conforming stlport4 library is
30694 # incompatible with the Cstd library. Avoid specifying
30695 # it if it's in CXXFLAGS. Ignore libCrun as
30696 # -library=stlport4 depends on it.
30697 case " $CXX $CXXFLAGS " in
30698 *" -library=stlport4 "*)
30699 solaris_use_stlport4=yes
30703 if test "$solaris_use_stlport4" != yes; then
30704 postdeps_CXX='-library=Cstd -library=Crun'
30711 case $cc_basename in
30713 # The more standards-conforming stlport4 library is
30714 # incompatible with the Cstd library. Avoid specifying
30715 # it if it's in CXXFLAGS. Ignore libCrun as
30716 # -library=stlport4 depends on it.
30717 case " $CXX $CXXFLAGS " in
30718 *" -library=stlport4 "*)
30719 solaris_use_stlport4=yes
30723 # Adding this requires a known-good setup of shared libraries for
30724 # Sun compiler versions before 5.6, else PIC objects from an old
30725 # archive will be linked into the output, leading to subtle bugs.
30726 if test "$solaris_use_stlport4" != yes; then
30727 postdeps_CXX='-library=Cstd -library=Crun'
30735 case " $postdeps_CXX " in
30736 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
30738 compiler_lib_search_dirs_CXX=
30739 if test -n "${compiler_lib_search_path_CXX}"; then
30740 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
30773 lt_prog_compiler_wl_CXX=
30774 lt_prog_compiler_pic_CXX=
30775 lt_prog_compiler_static_CXX=
30778 # C++ specific cases for pic, static, wl, etc.
30779 if test "$GXX" = yes; then
30780 lt_prog_compiler_wl_CXX='-Wl,'
30781 lt_prog_compiler_static_CXX='-static'
30785 # All AIX code is PIC.
30786 if test "$host_cpu" = ia64; then
30787 # AIX 5 now supports IA64 processor
30788 lt_prog_compiler_static_CXX='-Bstatic'
30795 # see comment about AmigaOS4 .so support
30796 lt_prog_compiler_pic_CXX='-fPIC'
30799 # FIXME: we need at least 68020 code to build shared libraries, but
30800 # adding the `-m68020' flag to GCC prevents building anything better,
30802 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
30807 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
30808 # PIC is the default for these OSes.
30810 mingw* | cygwin* | os2* | pw32* | cegcc*)
30811 # This hack is so that the source file can tell whether it is being
30812 # built for inclusion in a dll (and should export symbols for example).
30813 # Although the cygwin gcc ignores -fPIC, still need this for old-style
30814 # (--disable-auto-import) libraries
30815 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
30817 darwin* | rhapsody*)
30818 # PIC is the default on this platform
30819 # Common symbols not allowed in MH_DYLIB files
30820 lt_prog_compiler_pic_CXX='-fno-common'
30823 # DJGPP does not support shared libraries at all
30824 lt_prog_compiler_pic_CXX=
30827 # PIC is the default for Haiku.
30828 # The "-static" flag exists, but is broken.
30829 lt_prog_compiler_static_CXX=
30832 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
30833 # Instead, we relocate shared libraries at runtime.
30836 if test -d /usr/nec; then
30837 lt_prog_compiler_pic_CXX=-Kconform_pic
30841 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
30842 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
30843 # sets the default TLS model and affects inlining.
30848 lt_prog_compiler_pic_CXX='-fPIC'
30853 # QNX uses GNU C++, but need to define -shared option too, otherwise
30854 # it will coredump.
30855 lt_prog_compiler_pic_CXX='-fPIC -shared'
30858 lt_prog_compiler_pic_CXX='-fPIC'
30864 # All AIX code is PIC.
30865 if test "$host_cpu" = ia64; then
30866 # AIX 5 now supports IA64 processor
30867 lt_prog_compiler_static_CXX='-Bstatic'
30869 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
30873 case $cc_basename in
30875 # Green Hills C++ Compiler
30876 # _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"
30880 mingw* | cygwin* | os2* | pw32* | cegcc*)
30881 # This hack is so that the source file can tell whether it is being
30882 # built for inclusion in a dll (and should export symbols for example).
30883 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
30886 case $cc_basename in
30888 lt_prog_compiler_pic_CXX='-KPIC'
30891 # Green Hills C++ Compiler
30892 lt_prog_compiler_pic_CXX='-pic'
30898 freebsd* | dragonfly*)
30899 # FreeBSD uses GNU C++
30901 hpux9* | hpux10* | hpux11*)
30902 case $cc_basename in
30904 lt_prog_compiler_wl_CXX='-Wl,'
30905 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
30906 if test "$host_cpu" != ia64; then
30907 lt_prog_compiler_pic_CXX='+Z'
30911 lt_prog_compiler_wl_CXX='-Wl,'
30912 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
30918 lt_prog_compiler_pic_CXX='+Z'
30927 # This is c89, which is MS Visual C++ (no shared libs)
30928 # Anyone wants to do a port?
30930 irix5* | irix6* | nonstopux*)
30931 case $cc_basename in
30933 lt_prog_compiler_wl_CXX='-Wl,'
30934 lt_prog_compiler_static_CXX='-non_shared'
30935 # CC pic flag -KPIC is the default.
30941 linux* | k*bsd*-gnu | kopensolaris*-gnu)
30942 case $cc_basename in
30945 lt_prog_compiler_wl_CXX='--backend -Wl,'
30946 lt_prog_compiler_pic_CXX='-fPIC'
30949 # old Intel C++ for x86_64 which still supported -KPIC.
30950 lt_prog_compiler_wl_CXX='-Wl,'
30951 lt_prog_compiler_pic_CXX='-KPIC'
30952 lt_prog_compiler_static_CXX='-static'
30955 # Intel C++, used to be incompatible with GCC.
30956 # ICC 10 doesn't accept -KPIC any more.
30957 lt_prog_compiler_wl_CXX='-Wl,'
30958 lt_prog_compiler_pic_CXX='-fPIC'
30959 lt_prog_compiler_static_CXX='-static'
30962 # Portland Group C++ compiler
30963 lt_prog_compiler_wl_CXX='-Wl,'
30964 lt_prog_compiler_pic_CXX='-fpic'
30965 lt_prog_compiler_static_CXX='-Bstatic'
30969 # Make sure the PIC flag is empty. It appears that all Alpha
30970 # Linux and Compaq Tru64 Unix objects are PIC.
30971 lt_prog_compiler_pic_CXX=
30972 lt_prog_compiler_static_CXX='-non_shared'
30974 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
30975 # IBM XL 8.0, 9.0 on PPC and BlueGene
30976 lt_prog_compiler_wl_CXX='-Wl,'
30977 lt_prog_compiler_pic_CXX='-qpic'
30978 lt_prog_compiler_static_CXX='-qstaticlink'
30981 case `$CC -V 2>&1 | sed 5q` in
30984 lt_prog_compiler_pic_CXX='-KPIC'
30985 lt_prog_compiler_static_CXX='-Bstatic'
30986 lt_prog_compiler_wl_CXX='-Qoption ld '
30997 case $cc_basename in
30999 lt_prog_compiler_pic_CXX='-W c,exportall'
31005 netbsd* | netbsdelf*-gnu)
31008 # QNX uses GNU C++, but need to define -shared option too, otherwise
31009 # it will coredump.
31010 lt_prog_compiler_pic_CXX='-fPIC -shared'
31012 osf3* | osf4* | osf5*)
31013 case $cc_basename in
31015 lt_prog_compiler_wl_CXX='--backend -Wl,'
31018 # Rational C++ 2.4.1
31019 lt_prog_compiler_pic_CXX='-pic'
31022 # Digital/Compaq C++
31023 lt_prog_compiler_wl_CXX='-Wl,'
31024 # Make sure the PIC flag is empty. It appears that all Alpha
31025 # Linux and Compaq Tru64 Unix objects are PIC.
31026 lt_prog_compiler_pic_CXX=
31027 lt_prog_compiler_static_CXX='-non_shared'
31036 case $cc_basename in
31038 # Sun C++ 4.2, 5.x and Centerline C++
31039 lt_prog_compiler_pic_CXX='-KPIC'
31040 lt_prog_compiler_static_CXX='-Bstatic'
31041 lt_prog_compiler_wl_CXX='-Qoption ld '
31044 # Green Hills C++ Compiler
31045 lt_prog_compiler_pic_CXX='-PIC'
31052 case $cc_basename in
31055 lt_prog_compiler_pic_CXX='-pic'
31056 lt_prog_compiler_static_CXX='-Bstatic'
31060 lt_prog_compiler_pic_CXX='-pic'
31066 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
31067 case $cc_basename in
31069 lt_prog_compiler_wl_CXX='-Wl,'
31070 lt_prog_compiler_pic_CXX='-KPIC'
31071 lt_prog_compiler_static_CXX='-Bstatic'
31076 case $cc_basename in
31078 # NonStop-UX NCC 3.20
31079 lt_prog_compiler_pic_CXX='-KPIC'
31088 lt_prog_compiler_can_build_shared_CXX=no
31094 # For platforms which do not support PIC, -DPIC is meaningless:
31096 lt_prog_compiler_pic_CXX=
31099 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
31103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
31104 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
31105 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
31106 $as_echo_n "(cached) " >&6
31108 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
31110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
31111 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
31112 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
31115 # Check to make sure the PIC flag actually works.
31117 if test -n "$lt_prog_compiler_pic_CXX"; then
31118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
31119 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
31120 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
31121 $as_echo_n "(cached) " >&6
31123 lt_cv_prog_compiler_pic_works_CXX=no
31124 ac_outfile=conftest.$ac_objext
31125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
31126 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
31127 # Insert the option either (1) after the last *FLAGS variable, or
31128 # (2) before a word containing "conftest.", or (3) at the end.
31129 # Note that $ac_compile itself does not contain backslashes and begins
31130 # with a dollar sign (not a hyphen), so the echo should work correctly.
31131 # The option is referenced via a variable to avoid confusing sed.
31132 lt_compile=`echo "$ac_compile" | $SED \
31133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
31134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
31135 -e 's:$: $lt_compiler_flag:'`
31136 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
31137 (eval "$lt_compile" 2>conftest.err)
31139 cat conftest.err >&5
31140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31141 if (exit $ac_status) && test -s "$ac_outfile"; then
31142 # The compiler can only warn and ignore the option if not recognized
31143 # So say no if there are warnings other than the usual output.
31144 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
31145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
31146 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
31147 lt_cv_prog_compiler_pic_works_CXX=yes
31153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
31154 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
31156 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
31157 case $lt_prog_compiler_pic_CXX in
31159 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
31162 lt_prog_compiler_pic_CXX=
31163 lt_prog_compiler_can_build_shared_CXX=no
31173 # Check to make sure the static flag actually works.
31175 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
31176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
31177 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
31178 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
31179 $as_echo_n "(cached) " >&6
31181 lt_cv_prog_compiler_static_works_CXX=no
31182 save_LDFLAGS="$LDFLAGS"
31183 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
31184 echo "$lt_simple_link_test_code" > conftest.$ac_ext
31185 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
31186 # The linker can only warn and ignore the option if not recognized
31187 # So say no if there are warnings
31188 if test -s conftest.err; then
31189 # Append any errors to the config.log.
31190 cat conftest.err 1>&5
31191 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
31192 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
31193 if diff conftest.exp conftest.er2 >/dev/null; then
31194 lt_cv_prog_compiler_static_works_CXX=yes
31197 lt_cv_prog_compiler_static_works_CXX=yes
31201 LDFLAGS="$save_LDFLAGS"
31204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
31205 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
31207 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
31210 lt_prog_compiler_static_CXX=
31216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
31217 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
31218 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
31219 $as_echo_n "(cached) " >&6
31221 lt_cv_prog_compiler_c_o_CXX=no
31222 $RM -r conftest 2>/dev/null
31226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
31228 lt_compiler_flag="-o out/conftest2.$ac_objext"
31229 # Insert the option either (1) after the last *FLAGS variable, or
31230 # (2) before a word containing "conftest.", or (3) at the end.
31231 # Note that $ac_compile itself does not contain backslashes and begins
31232 # with a dollar sign (not a hyphen), so the echo should work correctly.
31233 lt_compile=`echo "$ac_compile" | $SED \
31234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
31235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
31236 -e 's:$: $lt_compiler_flag:'`
31237 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
31238 (eval "$lt_compile" 2>out/conftest.err)
31240 cat out/conftest.err >&5
31241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242 if (exit $ac_status) && test -s out/conftest2.$ac_objext
31244 # The compiler can only warn and ignore the option if not recognized
31245 # So say no if there are warnings
31246 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
31247 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
31248 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
31249 lt_cv_prog_compiler_c_o_CXX=yes
31254 # SGI C++ compiler will create directory out/ii_files/ for
31255 # template instantiation
31256 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
31257 $RM out/* && rmdir out
31263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
31264 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
31268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
31269 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
31270 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
31271 $as_echo_n "(cached) " >&6
31273 lt_cv_prog_compiler_c_o_CXX=no
31274 $RM -r conftest 2>/dev/null
31278 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
31280 lt_compiler_flag="-o out/conftest2.$ac_objext"
31281 # Insert the option either (1) after the last *FLAGS variable, or
31282 # (2) before a word containing "conftest.", or (3) at the end.
31283 # Note that $ac_compile itself does not contain backslashes and begins
31284 # with a dollar sign (not a hyphen), so the echo should work correctly.
31285 lt_compile=`echo "$ac_compile" | $SED \
31286 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
31287 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
31288 -e 's:$: $lt_compiler_flag:'`
31289 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
31290 (eval "$lt_compile" 2>out/conftest.err)
31292 cat out/conftest.err >&5
31293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31294 if (exit $ac_status) && test -s out/conftest2.$ac_objext
31296 # The compiler can only warn and ignore the option if not recognized
31297 # So say no if there are warnings
31298 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
31299 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
31300 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
31301 lt_cv_prog_compiler_c_o_CXX=yes
31306 # SGI C++ compiler will create directory out/ii_files/ for
31307 # template instantiation
31308 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
31309 $RM out/* && rmdir out
31315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
31316 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
31321 hard_links="nottested"
31322 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
31323 # do not overwrite the value of need_locks provided by the user
31324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
31325 $as_echo_n "checking if we can lock with hard links... " >&6; }
31328 ln conftest.a conftest.b 2>/dev/null && hard_links=no
31330 ln conftest.a conftest.b 2>&5 || hard_links=no
31331 ln conftest.a conftest.b 2>/dev/null && hard_links=no
31332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
31333 $as_echo "$hard_links" >&6; }
31334 if test "$hard_links" = no; then
31335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
31336 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
31345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
31346 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
31348 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
31349 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
31352 # If we're using GNU nm, then we don't want the "-C" option.
31353 # -C means demangle to AIX nm, but means don't demangle with GNU nm
31354 # Also, AIX nm treats weak defined symbols like other global defined
31355 # symbols, whereas GNU nm marks them as "W".
31356 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
31357 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'
31359 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'
31363 export_symbols_cmds_CXX="$ltdll_cmds"
31365 cygwin* | mingw* | cegcc*)
31366 case $cc_basename in
31368 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
31371 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'
31372 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
31376 linux* | k*bsd*-gnu | gnu*)
31377 link_all_deplibs_CXX=no
31380 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
31384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
31385 $as_echo "$ld_shlibs_CXX" >&6; }
31386 test "$ld_shlibs_CXX" = no && can_build_shared=no
31388 with_gnu_ld_CXX=$with_gnu_ld
31396 # Do we need to explicitly link libc?
31398 case "x$archive_cmds_need_lc_CXX" in
31400 # Assume -lc should be added
31401 archive_cmds_need_lc_CXX=yes
31403 if test "$enable_shared" = yes && test "$GCC" = yes; then
31404 case $archive_cmds_CXX in
31406 # FIXME: we may have to deal with multi-command sequences.
31409 # Test whether the compiler implicitly links with -lc since on some
31410 # systems, -lgcc has to come before -lc. If gcc already passes -lc
31411 # to ld, don't add -lc before -lgcc.
31412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
31413 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
31414 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
31415 $as_echo_n "(cached) " >&6
31418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
31420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31421 (eval $ac_compile) 2>&5
31423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31424 test $ac_status = 0; } 2>conftest.err; then
31427 libobjs=conftest.$ac_objext
31429 wl=$lt_prog_compiler_wl_CXX
31430 pic_flag=$lt_prog_compiler_pic_CXX
31436 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
31437 allow_undefined_flag_CXX=
31438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
31439 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
31441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31442 test $ac_status = 0; }
31444 lt_cv_archive_cmds_need_lc_CXX=no
31446 lt_cv_archive_cmds_need_lc_CXX=yes
31448 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
31450 cat conftest.err 1>&5
31455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
31456 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
31457 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
31525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
31526 $as_echo_n "checking dynamic linker characteristics... " >&6; }
31528 library_names_spec=
31529 libname_spec='lib$name'
31533 postuninstall_cmds=
31537 shlibpath_overrides_runpath=unknown
31539 dynamic_linker="$host_os ld.so"
31540 sys_lib_dlsearch_path_spec="/lib /usr/lib"
31541 need_lib_prefix=unknown
31542 hardcode_into_libs=no
31544 # when you set need_version to no, make sure it does not cause -set_version
31545 # flags to be left without arguments
31546 need_version=unknown
31550 version_type=linux # correct to gnu/linux during the next big refactor
31551 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
31552 shlibpath_var=LIBPATH
31554 # AIX 3 has no versioning support, so we append a major version to the name.
31555 soname_spec='${libname}${release}${shared_ext}$major'
31559 version_type=linux # correct to gnu/linux during the next big refactor
31562 hardcode_into_libs=yes
31563 if test "$host_cpu" = ia64; then
31564 # AIX 5 supports IA64
31565 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
31566 shlibpath_var=LD_LIBRARY_PATH
31568 # With GCC up to 2.95.x, collect2 would create an import file
31569 # for dependence libraries. The import file would start with
31570 # the line `#! .'. This would cause the generated library to
31571 # depend on `.', always an invalid library. This was fixed in
31572 # development snapshots of GCC prior to 3.0.
31574 aix4 | aix4.[01] | aix4.[01].*)
31575 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
31577 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
31580 can_build_shared=no
31584 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
31585 # soname into executable. Probably we can add versioning support to
31586 # collect2, so additional links can be useful in future.
31587 if test "$aix_use_runtimelinking" = yes; then
31588 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
31589 # instead of lib<name>.a to let people know that these are not
31590 # typical AIX shared libraries.
31591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31593 # We preserve .a as extension for shared libraries through AIX4.2
31594 # and later when we are not doing run time linking.
31595 library_names_spec='${libname}${release}.a $libname.a'
31596 soname_spec='${libname}${release}${shared_ext}$major'
31598 shlibpath_var=LIBPATH
31605 # Since July 2007 AmigaOS4 officially supports .so libraries.
31606 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
31607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31610 library_names_spec='$libname.ixlibrary $libname.a'
31611 # Create ${libname}_ixlibrary.a entries in /sys/libs.
31612 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'
31618 library_names_spec='${libname}${shared_ext}'
31619 dynamic_linker="$host_os ld.so"
31620 shlibpath_var=LIBRARY_PATH
31624 version_type=linux # correct to gnu/linux during the next big refactor
31626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31627 soname_spec='${libname}${release}${shared_ext}$major'
31628 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
31629 shlibpath_var=LD_LIBRARY_PATH
31630 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
31631 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
31632 # the default ld.so.conf also contains /usr/contrib/lib and
31633 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
31634 # libtool to hard-code these into programs
31637 cygwin* | mingw* | pw32* | cegcc*)
31638 version_type=windows
31643 case $GCC,$cc_basename in
31646 library_names_spec='$libname.dll.a'
31647 # DLL is installed to $(libdir)/../bin by postinstall_cmds
31648 postinstall_cmds='base_file=`basename \${file}`~
31649 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
31650 dldir=$destdir/`dirname \$dlpath`~
31651 test -d \$dldir || mkdir -p \$dldir~
31652 $install_prog $dir/$dlname \$dldir/$dlname~
31653 chmod a+x \$dldir/$dlname~
31654 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
31655 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
31657 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
31658 dlpath=$dir/\$dldll~
31660 shlibpath_overrides_runpath=yes
31664 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
31665 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
31669 # MinGW DLLs use traditional 'lib' prefix
31670 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
31673 # pw32 DLLs use 'pw' prefix rather than 'lib'
31674 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
31677 dynamic_linker='Win32 ld.exe'
31682 libname_spec='$name'
31683 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
31684 library_names_spec='${libname}.dll.lib'
31688 sys_lib_search_path_spec=
31691 for lt_path in $LIB
31694 # Let DOS variable expansion print the short 8.3 style file name.
31695 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
31696 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
31699 # Convert to MSYS style.
31700 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
31703 # Convert to unix form, then to dos form, then back to unix form
31704 # but this time dos style (no spaces!) so that the unix form looks
31705 # like /cygdrive/c/PROGRA~1:/cygdr...
31706 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
31707 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
31708 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
31711 sys_lib_search_path_spec="$LIB"
31712 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
31713 # It is most probably a Windows format PATH.
31714 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
31716 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
31718 # FIXME: find the short name or the path components, as spaces are
31719 # common. (e.g. "Program Files" -> "PROGRA~1")
31723 # DLL is installed to $(libdir)/../bin by postinstall_cmds
31724 postinstall_cmds='base_file=`basename \${file}`~
31725 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
31726 dldir=$destdir/`dirname \$dlpath`~
31727 test -d \$dldir || mkdir -p \$dldir~
31728 $install_prog $dir/$dlname \$dldir/$dlname'
31729 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
31730 dlpath=$dir/\$dldll~
31732 shlibpath_overrides_runpath=yes
31733 dynamic_linker='Win32 link.exe'
31737 # Assume MSVC wrapper
31738 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
31739 dynamic_linker='Win32 ld.exe'
31742 # FIXME: first we should search . and the directory the executable is in
31746 darwin* | rhapsody*)
31747 dynamic_linker="$host_os dyld"
31748 version_type=darwin
31751 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
31752 soname_spec='${libname}${release}${major}$shared_ext'
31753 shlibpath_overrides_runpath=yes
31754 shlibpath_var=DYLD_LIBRARY_PATH
31755 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
31757 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
31761 version_type=linux # correct to gnu/linux during the next big refactor
31764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
31765 soname_spec='${libname}${release}${shared_ext}$major'
31766 shlibpath_var=LD_LIBRARY_PATH
31769 freebsd* | dragonfly*)
31770 # DragonFly does not have aout. When/if they implement a new
31771 # versioning mechanism, adjust this.
31772 if test -x /usr/bin/objformat; then
31773 objformat=`/usr/bin/objformat`
31776 freebsd[23].*) objformat=aout ;;
31777 *) objformat=elf ;;
31780 version_type=freebsd-$objformat
31781 case $version_type in
31783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
31788 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
31792 shlibpath_var=LD_LIBRARY_PATH
31795 shlibpath_overrides_runpath=yes
31797 freebsd3.[01]* | freebsdelf3.[01]*)
31798 shlibpath_overrides_runpath=yes
31799 hardcode_into_libs=yes
31801 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
31802 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
31803 shlibpath_overrides_runpath=no
31804 hardcode_into_libs=yes
31806 *) # from 4.6 on, and DragonFly
31807 shlibpath_overrides_runpath=yes
31808 hardcode_into_libs=yes
31814 version_type=linux # correct to gnu/linux during the next big refactor
31817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
31818 soname_spec='${libname}${release}${shared_ext}$major'
31819 shlibpath_var=LD_LIBRARY_PATH
31820 shlibpath_overrides_runpath=no
31821 hardcode_into_libs=yes
31825 version_type=linux # correct to gnu/linux during the next big refactor
31828 dynamic_linker="$host_os runtime_loader"
31829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
31830 soname_spec='${libname}${release}${shared_ext}$major'
31831 shlibpath_var=LIBRARY_PATH
31832 shlibpath_overrides_runpath=yes
31833 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
31834 hardcode_into_libs=yes
31837 hpux9* | hpux10* | hpux11*)
31838 # Give a soname corresponding to the major version so that dld.sl refuses to
31839 # link against other versions.
31846 hardcode_into_libs=yes
31847 dynamic_linker="$host_os dld.so"
31848 shlibpath_var=LD_LIBRARY_PATH
31849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
31850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31851 soname_spec='${libname}${release}${shared_ext}$major'
31852 if test "X$HPUX_IA64_MODE" = X32; then
31853 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
31855 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
31857 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
31861 hardcode_into_libs=yes
31862 dynamic_linker="$host_os dld.sl"
31863 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
31864 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
31865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31866 soname_spec='${libname}${release}${shared_ext}$major'
31867 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
31868 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
31872 dynamic_linker="$host_os dld.sl"
31873 shlibpath_var=SHLIB_PATH
31874 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
31875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31876 soname_spec='${libname}${release}${shared_ext}$major'
31879 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
31880 postinstall_cmds='chmod 555 $lib'
31881 # or fails outright, so override atomically:
31882 install_override_mode=555
31886 version_type=linux # correct to gnu/linux during the next big refactor
31889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
31890 soname_spec='${libname}${release}${shared_ext}$major'
31891 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
31892 shlibpath_var=LD_LIBRARY_PATH
31893 shlibpath_overrides_runpath=no
31894 hardcode_into_libs=yes
31897 irix5* | irix6* | nonstopux*)
31899 nonstopux*) version_type=nonstopux ;;
31901 if test "$lt_cv_prog_gnu_ld" = yes; then
31902 version_type=linux # correct to gnu/linux during the next big refactor
31909 soname_spec='${libname}${release}${shared_ext}$major'
31910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
31912 irix5* | nonstopux*)
31913 libsuff= shlibsuff=
31916 case $LD in # libtool.m4 will add one of these switches to LD
31917 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
31918 libsuff= shlibsuff= libmagic=32-bit;;
31919 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
31920 libsuff=32 shlibsuff=N32 libmagic=N32;;
31921 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
31922 libsuff=64 shlibsuff=64 libmagic=64-bit;;
31923 *) libsuff= shlibsuff= libmagic=never-match;;
31927 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
31928 shlibpath_overrides_runpath=no
31929 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
31930 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
31931 hardcode_into_libs=yes
31934 # No shared lib support for Linux oldld, aout, or coff.
31935 linux*oldld* | linux*aout* | linux*coff*)
31939 # This must be glibc/ELF.
31940 linux* | k*bsd*-gnu | kopensolaris*-gnu)
31941 version_type=linux # correct to gnu/linux during the next big refactor
31944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31945 soname_spec='${libname}${release}${shared_ext}$major'
31946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
31947 shlibpath_var=LD_LIBRARY_PATH
31948 shlibpath_overrides_runpath=no
31950 # Some binutils ld are patched to set DT_RUNPATH
31951 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
31952 $as_echo_n "(cached) " >&6
31954 lt_cv_shlibpath_overrides_runpath=no
31955 save_LDFLAGS=$LDFLAGS
31956 save_libdir=$libdir
31957 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
31958 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
31959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31960 /* end confdefs.h. */
31970 if ac_fn_cxx_try_link "$LINENO"; then :
31971 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
31972 lt_cv_shlibpath_overrides_runpath=yes
31975 rm -f core conftest.err conftest.$ac_objext \
31976 conftest$ac_exeext conftest.$ac_ext
31977 LDFLAGS=$save_LDFLAGS
31978 libdir=$save_libdir
31982 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
31984 # This implies no fast_install, which is unacceptable.
31985 # Some rework will be needed to allow for fast_install
31986 # before this can be enabled.
31987 hardcode_into_libs=yes
31989 # Append ld.so.conf contents to the search path
31990 if test -f /etc/ld.so.conf; then
31991 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' ' '`
31992 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
31995 # We used to test for /lib/ld.so.1 and disable shared libraries on
31996 # powerpc, because MkLinux only supported shared libraries with the
31997 # GNU dynamic linker. Since this was broken with cross compilers,
31998 # most powerpc-linux boxes support dynamic linking these days and
31999 # people can always --disable-shared, the test was removed, and we
32000 # assume the GNU/Linux dynamic linker is in use.
32001 dynamic_linker='GNU/Linux ld.so'
32008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
32009 soname_spec='${libname}${release}${shared_ext}$major'
32010 shlibpath_var=LD_LIBRARY_PATH
32011 shlibpath_overrides_runpath=no
32012 hardcode_into_libs=yes
32013 dynamic_linker='NetBSD ld.elf_so'
32020 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
32021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
32022 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
32023 dynamic_linker='NetBSD (a.out) ld.so'
32025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
32026 soname_spec='${libname}${release}${shared_ext}$major'
32027 dynamic_linker='NetBSD ld.elf_so'
32029 shlibpath_var=LD_LIBRARY_PATH
32030 shlibpath_overrides_runpath=yes
32031 hardcode_into_libs=yes
32035 version_type=linux # correct to gnu/linux during the next big refactor
32036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32037 shlibpath_var=LD_LIBRARY_PATH
32038 shlibpath_overrides_runpath=yes
32045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32046 soname_spec='${libname}${release}${shared_ext}$major'
32047 shlibpath_var=LD_LIBRARY_PATH
32048 shlibpath_overrides_runpath=no
32049 hardcode_into_libs=yes
32050 dynamic_linker='ldqnx.so'
32055 sys_lib_dlsearch_path_spec="/usr/lib"
32057 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
32059 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
32060 *) need_version=no ;;
32062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
32063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
32064 shlibpath_var=LD_LIBRARY_PATH
32065 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
32067 openbsd2.[89] | openbsd2.[89].*)
32068 shlibpath_overrides_runpath=no
32071 shlibpath_overrides_runpath=yes
32075 shlibpath_overrides_runpath=yes
32080 libname_spec='$name'
32083 library_names_spec='$libname${shared_ext} $libname.a'
32084 dynamic_linker='OS/2 ld.exe'
32085 shlibpath_var=LIBPATH
32088 osf3* | osf4* | osf5*)
32092 soname_spec='${libname}${release}${shared_ext}$major'
32093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32094 shlibpath_var=LD_LIBRARY_PATH
32095 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
32096 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
32104 version_type=linux # correct to gnu/linux during the next big refactor
32107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32108 soname_spec='${libname}${release}${shared_ext}$major'
32109 shlibpath_var=LD_LIBRARY_PATH
32110 shlibpath_overrides_runpath=yes
32111 hardcode_into_libs=yes
32112 # ldd complains unless libraries are executable
32113 postinstall_cmds='chmod +x $lib'
32118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
32119 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
32120 shlibpath_var=LD_LIBRARY_PATH
32121 shlibpath_overrides_runpath=yes
32122 if test "$with_gnu_ld" = yes; then
32129 version_type=linux # correct to gnu/linux during the next big refactor
32130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32131 soname_spec='${libname}${release}${shared_ext}$major'
32132 shlibpath_var=LD_LIBRARY_PATH
32133 case $host_vendor in
32135 shlibpath_overrides_runpath=no
32137 runpath_var=LD_RUN_PATH
32145 shlibpath_overrides_runpath=no
32146 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
32152 if test -d /usr/nec ;then
32153 version_type=linux # correct to gnu/linux during the next big refactor
32154 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
32155 soname_spec='$libname${shared_ext}.$major'
32156 shlibpath_var=LD_LIBRARY_PATH
32160 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
32161 version_type=freebsd-elf
32164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
32165 soname_spec='${libname}${release}${shared_ext}$major'
32166 shlibpath_var=LD_LIBRARY_PATH
32167 shlibpath_overrides_runpath=yes
32168 hardcode_into_libs=yes
32169 if test "$with_gnu_ld" = yes; then
32170 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
32172 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
32175 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
32179 sys_lib_dlsearch_path_spec='/usr/lib'
32183 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
32184 version_type=linux # correct to gnu/linux during the next big refactor
32187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32188 shlibpath_var=LD_LIBRARY_PATH
32189 shlibpath_overrides_runpath=no
32190 hardcode_into_libs=yes
32194 version_type=linux # correct to gnu/linux during the next big refactor
32195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32196 soname_spec='${libname}${release}${shared_ext}$major'
32197 shlibpath_var=LD_LIBRARY_PATH
32204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
32205 $as_echo "$dynamic_linker" >&6; }
32206 test "$dynamic_linker" = no && can_build_shared=no
32208 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
32209 if test "$GCC" = yes; then
32210 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
32213 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
32214 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
32216 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
32217 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
32257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
32258 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
32259 hardcode_action_CXX=
32260 if test -n "$hardcode_libdir_flag_spec_CXX" ||
32261 test -n "$runpath_var_CXX" ||
32262 test "X$hardcode_automatic_CXX" = "Xyes" ; then
32264 # We can hardcode non-existent directories.
32265 if test "$hardcode_direct_CXX" != no &&
32266 # If the only mechanism to avoid hardcoding is shlibpath_var, we
32267 # have to relink, otherwise we might link with an installed library
32268 # when we should be linking with a yet-to-be-installed one
32269 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
32270 test "$hardcode_minus_L_CXX" != no; then
32271 # Linking always hardcodes the temporary library directory.
32272 hardcode_action_CXX=relink
32274 # We can link without hardcoding, and we can hardcode nonexisting dirs.
32275 hardcode_action_CXX=immediate
32278 # We cannot hardcode anything, or else we can only hardcode existing
32280 hardcode_action_CXX=unsupported
32282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
32283 $as_echo "$hardcode_action_CXX" >&6; }
32285 if test "$hardcode_action_CXX" = relink ||
32286 test "$inherit_rpath_CXX" = yes; then
32287 # Fast installation is not supported
32288 enable_fast_install=no
32289 elif test "$shlibpath_overrides_runpath" = yes ||
32290 test "$enable_shared" = no; then
32291 # Fast installation is not necessary
32292 enable_fast_install=needless
32301 fi # test -n "$compiler"
32304 CFLAGS=$lt_save_CFLAGS
32308 with_gnu_ld=$lt_save_with_gnu_ld
32309 lt_cv_path_LDCXX=$lt_cv_path_LD
32310 lt_cv_path_LD=$lt_save_path_LD
32311 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
32312 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
32313 fi # test "$_lt_caught_CXX_error" != yes
32316 ac_cpp='$CPP $CPPFLAGS'
32317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32322 if test "$use_cxx" != "no"; then
32324 ENABLE_CXX_FALSE='#'
32326 ENABLE_CXX_TRUE='#'
32332 $as_echo "#define GNUTLS_INTERNAL_BUILD 1" >>confdefs.h
32335 ac_config_files="$ac_config_files Makefile gnutls.pc gl/Makefile gl/tests/Makefile includes/Makefile includes/gnutls/gnutls.h minitasn1/Makefile opencdk/Makefile openpgp/Makefile po/Makefile.in x509/Makefile gcrypt/Makefile nettle/Makefile"
32337 cat >confcache <<\_ACEOF
32338 # This file is a shell script that caches the results of configure
32339 # tests run on this system so they can be shared between configure
32340 # scripts and configure runs, see configure's option --config-cache.
32341 # It is not useful on other systems. If it contains results you don't
32342 # want to keep, you may remove or edit it.
32344 # config.status only pays attention to the cache file if you give it
32345 # the --recheck option to rerun configure.
32347 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32348 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32349 # following values.
32353 # The following way of writing the cache mishandles newlines in values,
32354 # but we know of no workaround that is simple, portable, and efficient.
32355 # So, we kill variables containing newlines.
32356 # Ultrix sh set writes to stderr and can't be redirected directly,
32357 # and sets the high bit in the cache file unless we assign to the vars.
32359 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32360 eval ac_val=\$$ac_var
32364 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32365 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32368 _ | IFS | as_nl) ;; #(
32369 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32370 *) { eval $ac_var=; unset $ac_var;} ;;
32376 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32377 *${as_nl}ac_space=\ *)
32378 # `set' does not quote correctly, so add quotes: double-quote
32379 # substitution turns \\\\ into \\, and sed turns \\ into \.
32382 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32385 # `set' quotes correctly as required by POSIX, so do not add quotes.
32386 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32395 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32397 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32399 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32400 if test -w "$cache_file"; then
32401 if test "x$cache_file" != "x/dev/null"; then
32402 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32403 $as_echo "$as_me: updating cache $cache_file" >&6;}
32404 if test ! -f "$cache_file" || test -h "$cache_file"; then
32405 cat confcache >"$cache_file"
32407 case $cache_file in #(
32409 mv -f confcache "$cache_file"$$ &&
32410 mv -f "$cache_file"$$ "$cache_file" ;; #(
32412 mv -f confcache "$cache_file" ;;
32417 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32418 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32423 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32424 # Let make expand exec_prefix.
32425 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32427 DEFS=-DHAVE_CONFIG_H
32432 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32433 # 1. Remove the extension, and $U if already installed.
32434 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32435 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32436 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32437 # will be set to the directory where LIBOBJS objects are built.
32438 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32439 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32441 LIBOBJS=$ac_libobjs
32443 LTLIBOBJS=$ac_ltlibobjs
32446 if test -n "$EXEEXT"; then
32448 am__EXEEXT_FALSE='#'
32450 am__EXEEXT_TRUE='#'
32454 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32455 as_fn_error $? "conditional \"AMDEP\" was never defined.
32456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32458 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32459 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32462 if test -z "${ENABLE_NETTLE_TRUE}" && test -z "${ENABLE_NETTLE_FALSE}"; then
32463 as_fn_error $? "conditional \"ENABLE_NETTLE\" was never defined.
32464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32466 if test -z "${ENABLE_MINITASN1_TRUE}" && test -z "${ENABLE_MINITASN1_FALSE}"; then
32467 as_fn_error $? "conditional \"ENABLE_MINITASN1\" was never defined.
32468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32470 if test -z "${USE_LZO_TRUE}" && test -z "${USE_LZO_FALSE}"; then
32471 as_fn_error $? "conditional \"USE_LZO\" was never defined.
32472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32474 if test -z "${ENABLE_OPRFI_TRUE}" && test -z "${ENABLE_OPRFI_FALSE}"; then
32475 as_fn_error $? "conditional \"ENABLE_OPRFI\" was never defined.
32476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32478 if test -z "${ENABLE_SRP_TRUE}" && test -z "${ENABLE_SRP_FALSE}"; then
32479 as_fn_error $? "conditional \"ENABLE_SRP\" was never defined.
32480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32482 if test -z "${ENABLE_PSK_TRUE}" && test -z "${ENABLE_PSK_FALSE}"; then
32483 as_fn_error $? "conditional \"ENABLE_PSK\" was never defined.
32484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32486 if test -z "${ENABLE_ANON_TRUE}" && test -z "${ENABLE_ANON_FALSE}"; then
32487 as_fn_error $? "conditional \"ENABLE_ANON\" was never defined.
32488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32490 if test -z "${ENABLE_PKI_TRUE}" && test -z "${ENABLE_PKI_FALSE}"; then
32491 as_fn_error $? "conditional \"ENABLE_PKI\" was never defined.
32492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32494 if test -z "${ENABLE_OPENPGP_TRUE}" && test -z "${ENABLE_OPENPGP_FALSE}"; then
32495 as_fn_error $? "conditional \"ENABLE_OPENPGP\" was never defined.
32496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32498 if test -z "${ENABLE_SESSION_TICKET_TRUE}" && test -z "${ENABLE_SESSION_TICKET_FALSE}"; then
32499 as_fn_error $? "conditional \"ENABLE_SESSION_TICKET\" was never defined.
32500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32503 if test -z "${ENABLE_PKCS11_TRUE}" && test -z "${ENABLE_PKCS11_FALSE}"; then
32504 as_fn_error $? "conditional \"ENABLE_PKCS11\" was never defined.
32505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32507 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
32508 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
32509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32511 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
32512 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
32513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32515 if test -z "${GL_GENERATE_BYTESWAP_H_TRUE}" && test -z "${GL_GENERATE_BYTESWAP_H_FALSE}"; then
32516 as_fn_error $? "conditional \"GL_GENERATE_BYTESWAP_H\" was never defined.
32517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32519 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
32520 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
32521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32523 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
32524 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
32525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32527 if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
32528 as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
32529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32531 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
32532 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
32533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32535 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
32536 as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
32537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32539 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
32540 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
32541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32543 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
32544 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
32545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32547 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
32548 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
32549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32555 if test -n "$lgl_LIBOBJS"; then
32556 # Remove the extension.
32557 sed_drop_objext='s/\.o$//;s/\.obj$//'
32558 for i in `for i in $lgl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
32559 lgl_libobjs="$lgl_libobjs $i.$ac_objext"
32560 lgl_ltlibobjs="$lgl_ltlibobjs $i.lo"
32563 lgl_LIBOBJS=$lgl_libobjs
32565 lgl_LTLIBOBJS=$lgl_ltlibobjs
32570 lgltests_ltlibobjs=
32571 if test -n "$lgltests_LIBOBJS"; then
32572 # Remove the extension.
32573 sed_drop_objext='s/\.o$//;s/\.obj$//'
32574 for i in `for i in $lgltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
32575 lgltests_libobjs="$lgltests_libobjs $i.$ac_objext"
32576 lgltests_ltlibobjs="$lgltests_ltlibobjs $i.lo"
32579 lgltests_LIBOBJS=$lgltests_libobjs
32581 lgltests_LTLIBOBJS=$lgltests_ltlibobjs
32584 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32585 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32588 if test -z "${ENABLE_CXX_TRUE}" && test -z "${ENABLE_CXX_FALSE}"; then
32589 as_fn_error $? "conditional \"ENABLE_CXX\" was never defined.
32590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32593 : "${CONFIG_STATUS=./config.status}"
32595 ac_clean_files_save=$ac_clean_files
32596 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32597 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32598 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32600 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32602 # Generated by $as_me.
32603 # Run this file to recreate the current configuration.
32604 # Compiler output produced by configure, useful for debugging
32605 # configure, is in config.log if it exists.
32608 ac_cs_recheck=false
32611 SHELL=\${CONFIG_SHELL-$SHELL}
32614 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32615 ## -------------------- ##
32616 ## M4sh Initialization. ##
32617 ## -------------------- ##
32619 # Be more Bourne compatible
32620 DUALCASE=1; export DUALCASE # for MKS sh
32621 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32624 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32625 # is contrary to our usage. Disable this feature.
32626 alias -g '${1+"$@"}'='"$@"'
32627 setopt NO_GLOB_SUBST
32629 case `(set -o) 2>/dev/null` in #(
32641 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32642 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32643 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32644 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32645 # Prefer a ksh shell builtin over an external printf program on Solaris,
32646 # but without wasting forks for bash or zsh.
32647 if test -z "$BASH_VERSION$ZSH_VERSION" \
32648 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32649 as_echo='print -r --'
32650 as_echo_n='print -rn --'
32651 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32652 as_echo='printf %s\n'
32653 as_echo_n='printf %s'
32655 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32656 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32657 as_echo_n='/usr/ucb/echo -n'
32659 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32660 as_echo_n_body='eval
32664 expr "X$arg" : "X\\(.*\\)$as_nl";
32665 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32667 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32669 export as_echo_n_body
32670 as_echo_n='sh -c $as_echo_n_body as_echo'
32672 export as_echo_body
32673 as_echo='sh -c $as_echo_body as_echo'
32676 # The user is always right.
32677 if test "${PATH_SEPARATOR+set}" != set; then
32679 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32680 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32687 # We need space, tab and new line, in precisely that order. Quoting is
32688 # there to prevent editors from complaining about space-tab.
32689 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32690 # splitting by setting IFS to empty value.)
32693 # Find who we are. Look in the path if we contain no directory separator.
32696 *[\\/]* ) as_myself=$0 ;;
32697 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32698 for as_dir in $PATH
32701 test -z "$as_dir" && as_dir=.
32702 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32708 # We did not find ourselves, most probably we were run as `sh COMMAND'
32709 # in which case we are not to be found in the path.
32710 if test "x$as_myself" = x; then
32713 if test ! -f "$as_myself"; then
32714 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32718 # Unset variables that we do not need and which cause bugs (e.g. in
32719 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32720 # suppresses any "Segmentation fault" message there. '((' could
32721 # trigger a bug in pdksh 5.2.14.
32722 for as_var in BASH_ENV ENV MAIL MAILPATH
32723 do eval test x\${$as_var+set} = xset \
32724 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32737 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32740 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32741 # ----------------------------------------
32742 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32743 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32744 # script with STATUS, using 1 if that was 0.
32747 as_status=$1; test $as_status -eq 0 && as_status=1
32749 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32750 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32752 $as_echo "$as_me: error: $2" >&2
32753 as_fn_exit $as_status
32757 # as_fn_set_status STATUS
32758 # -----------------------
32759 # Set $? to STATUS, without forking.
32760 as_fn_set_status ()
32763 } # as_fn_set_status
32765 # as_fn_exit STATUS
32766 # -----------------
32767 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32771 as_fn_set_status $1
32777 # Portably unset VAR.
32780 { eval $1=; unset $1;}
32782 as_unset=as_fn_unset
32783 # as_fn_append VAR VALUE
32784 # ----------------------
32785 # Append the text in VALUE to the end of the definition contained in VAR. Take
32786 # advantage of any shell optimizations that allow amortized linear growth over
32787 # repeated appends, instead of the typical quadratic growth present in naive
32789 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32790 eval 'as_fn_append ()
32801 # as_fn_arith ARG...
32802 # ------------------
32803 # Perform arithmetic evaluation on the ARGs, and store the result in the
32804 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32805 # must be portable across $(()) and expr.
32806 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32807 eval 'as_fn_arith ()
32814 as_val=`expr "$@" || test $? -eq 1`
32819 if expr a : '\(a\)' >/dev/null 2>&1 &&
32820 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32826 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32827 as_basename=basename
32832 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32838 as_me=`$as_basename -- "$0" ||
32839 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32840 X"$0" : 'X\(//\)$' \| \
32841 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32843 sed '/^.*\/\([^/][^/]*\)\/*$/{
32857 # Avoid depending upon Character Ranges.
32858 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32859 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32860 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32861 as_cr_digits='0123456789'
32862 as_cr_alnum=$as_cr_Letters$as_cr_digits
32864 ECHO_C= ECHO_N= ECHO_T=
32865 case `echo -n x` in #(((((
32867 case `echo 'xy\c'` in
32868 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32870 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32877 rm -f conf$$ conf$$.exe conf$$.file
32878 if test -d conf$$.dir; then
32879 rm -f conf$$.dir/conf$$.file
32882 mkdir conf$$.dir 2>/dev/null
32884 if (echo >conf$$.file) 2>/dev/null; then
32885 if ln -s conf$$.file conf$$ 2>/dev/null; then
32887 # ... but there are two gotchas:
32888 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32889 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32890 # In both cases, we have to default to `cp -p'.
32891 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32893 elif ln conf$$.file conf$$ 2>/dev/null; then
32901 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32902 rmdir conf$$.dir 2>/dev/null
32907 # Create "$as_dir" as a directory, including parents if necessary.
32912 -*) as_dir=./$as_dir;;
32914 test -d "$as_dir" || eval $as_mkdir_p || {
32918 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32919 *) as_qdir=$as_dir;;
32921 as_dirs="'$as_qdir' $as_dirs"
32922 as_dir=`$as_dirname -- "$as_dir" ||
32923 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32924 X"$as_dir" : 'X\(//\)[^/]' \| \
32925 X"$as_dir" : 'X\(//\)$' \| \
32926 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32927 $as_echo X"$as_dir" |
32928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32932 /^X\(\/\/\)[^/].*/{
32945 test -d "$as_dir" && break
32947 test -z "$as_dirs" || eval "mkdir $as_dirs"
32948 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32952 if mkdir -p . 2>/dev/null; then
32953 as_mkdir_p='mkdir -p "$as_dir"'
32955 test -d ./-p && rmdir ./-p
32959 if test -x / >/dev/null 2>&1; then
32960 as_test_x='test -x'
32962 if ls -dL / >/dev/null 2>&1; then
32969 if test -d "$1"; then
32975 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
32976 ???[sx]*):;;*)false;;esac;fi
32980 as_executable_p=$as_test_x
32982 # Sed expression to map a string onto a valid CPP name.
32983 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32985 # Sed expression to map a string onto a valid variable name.
32986 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32990 ## ----------------------------------- ##
32991 ## Main body of $CONFIG_STATUS script. ##
32992 ## ----------------------------------- ##
32994 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32997 # Save the log message, to keep $0 and so on meaningful, and to
32998 # report actual input values of CONFIG_FILES etc. instead of their
32999 # values after options handling.
33001 This file was extended by libgnutls $as_me 2.12.20, which was
33002 generated by GNU Autoconf 2.68. Invocation command line was
33004 CONFIG_FILES = $CONFIG_FILES
33005 CONFIG_HEADERS = $CONFIG_HEADERS
33006 CONFIG_LINKS = $CONFIG_LINKS
33007 CONFIG_COMMANDS = $CONFIG_COMMANDS
33010 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33015 case $ac_config_files in *"
33016 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33019 case $ac_config_headers in *"
33020 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33025 # Files that config.status was made for.
33026 config_files="$ac_config_files"
33027 config_headers="$ac_config_headers"
33028 config_commands="$ac_config_commands"
33032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33034 \`$as_me' instantiates files and other configuration actions
33035 from templates according to the current configuration. Unless the files
33036 and actions are specified as TAGs, all are instantiated by default.
33038 Usage: $0 [OPTION]... [TAG]...
33040 -h, --help print this help, then exit
33041 -V, --version print version number and configuration settings, then exit
33042 --config print configuration, then exit
33043 -q, --quiet, --silent
33044 do not print progress messages
33045 -d, --debug don't remove temporary files
33046 --recheck update $as_me by reconfiguring in the same conditions
33047 --file=FILE[:TEMPLATE]
33048 instantiate the configuration file FILE
33049 --header=FILE[:TEMPLATE]
33050 instantiate the configuration header FILE
33052 Configuration files:
33055 Configuration headers:
33058 Configuration commands:
33061 Report bugs to <bug-gnutls@gnu.org>."
33064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33065 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33067 libgnutls config.status 2.12.20
33068 configured by $0, generated by GNU Autoconf 2.68,
33069 with options \\"\$ac_cs_config\\"
33071 Copyright (C) 2010 Free Software Foundation, Inc.
33072 This config.status script is free software; the Free Software Foundation
33073 gives unlimited permission to copy, distribute and modify it."
33080 test -n "\$AWK" || AWK=awk
33083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33084 # The default lists apply if the user does not specify any file.
33090 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33091 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33095 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33107 # Handling of the options.
33108 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33110 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33111 $as_echo "$ac_cs_version"; exit ;;
33112 --config | --confi | --conf | --con | --co | --c )
33113 $as_echo "$ac_cs_config"; exit ;;
33114 --debug | --debu | --deb | --de | --d | -d )
33116 --file | --fil | --fi | --f )
33119 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33120 '') as_fn_error $? "missing file argument" ;;
33122 as_fn_append CONFIG_FILES " '$ac_optarg'"
33123 ac_need_defaults=false;;
33124 --header | --heade | --head | --hea )
33127 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33129 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33130 ac_need_defaults=false;;
33132 # Conflict between --help and --header
33133 as_fn_error $? "ambiguous option: \`$1'
33134 Try \`$0 --help' for more information.";;
33135 --help | --hel | -h )
33136 $as_echo "$ac_cs_usage"; exit ;;
33137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33138 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33141 # This is an error.
33142 -*) as_fn_error $? "unrecognized option: \`$1'
33143 Try \`$0 --help' for more information." ;;
33145 *) as_fn_append ac_config_targets " $1"
33146 ac_need_defaults=false ;;
33152 ac_configure_extra_args=
33154 if $ac_cs_silent; then
33156 ac_configure_extra_args="$ac_configure_extra_args --silent"
33160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33161 if \$ac_cs_recheck; then
33162 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33164 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33165 CONFIG_SHELL='$SHELL'
33166 export CONFIG_SHELL
33171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33175 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33176 ## Running $as_me. ##
33182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33186 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33189 # The HP-UX ksh and POSIX shell print the target directory to stdout
33190 # if CDPATH is set.
33191 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33193 sed_quote_subst='$sed_quote_subst'
33194 double_quote_subst='$double_quote_subst'
33195 delay_variable_subst='$delay_variable_subst'
33196 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33197 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33198 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33199 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33200 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33201 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33202 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33203 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33204 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33205 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33206 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33207 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
33208 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33209 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33210 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33211 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33212 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33213 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33214 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33215 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33216 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33217 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33218 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33219 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33220 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33221 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33222 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33223 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33224 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33225 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33226 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33227 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33228 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
33229 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
33230 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33231 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33232 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33233 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33234 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
33235 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
33236 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
33237 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33238 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33239 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
33240 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33241 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33242 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33243 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33244 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33245 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33246 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33247 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33248 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33249 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33250 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33251 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33252 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33253 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"`'
33254 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
33255 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
33256 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33257 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33258 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33259 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33260 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33261 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33262 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33263 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33264 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
33265 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33266 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33267 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33268 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33269 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33270 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33271 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33272 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33273 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33274 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33275 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33276 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33277 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33278 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33279 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33280 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33281 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33282 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33283 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33284 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33285 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33286 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33287 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33288 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33289 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33290 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33291 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33292 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33293 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33294 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33295 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33296 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33297 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33298 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33299 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33300 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33301 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
33302 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33303 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33304 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33305 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33306 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33307 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33308 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33309 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33310 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33311 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33312 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33313 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33314 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33315 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33316 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33317 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33318 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33319 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33320 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
33321 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33322 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33323 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33324 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33325 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33326 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33327 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
33328 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
33329 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
33330 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
33331 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
33332 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
33333 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
33334 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
33335 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33336 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33337 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
33338 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
33339 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
33340 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
33341 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
33342 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
33343 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
33344 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
33345 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
33346 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33347 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33348 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
33349 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33350 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33351 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33352 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33353 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33354 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33355 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
33356 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33357 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33358 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33359 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
33360 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
33361 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
33362 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
33363 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
33364 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
33365 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
33366 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
33367 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
33368 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33369 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33370 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33371 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33372 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33373 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
33374 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
33375 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
33376 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33377 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33378 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
33379 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
33380 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
33383 LTCFLAGS='$LTCFLAGS'
33384 compiler='$compiler_DEFAULT'
33386 # A function that is used when there is no print builtin or printf.
33387 func_fallback_echo ()
33389 eval 'cat <<_LTECHO_EOF
33394 # Quote evaled strings.
33411 deplibs_check_method \
33415 sharedlib_from_linklib_cmd \
33418 archiver_list_spec \
33424 lt_cv_sys_global_symbol_pipe \
33425 lt_cv_sys_global_symbol_to_cdecl \
33426 lt_cv_sys_global_symbol_to_c_name_address \
33427 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33428 nm_file_list_spec \
33429 lt_prog_compiler_no_builtin_flag \
33430 lt_prog_compiler_pic \
33431 lt_prog_compiler_wl \
33432 lt_prog_compiler_static \
33433 lt_cv_prog_compiler_c_o \
33442 export_dynamic_flag_spec \
33443 whole_archive_flag_spec \
33444 compiler_needs_object \
33446 allow_undefined_flag \
33447 no_undefined_flag \
33448 hardcode_libdir_flag_spec \
33449 hardcode_libdir_separator \
33453 variables_saved_for_relink \
33455 library_names_spec \
33457 install_override_mode \
33461 compiler_lib_search_dirs \
33466 compiler_lib_search_path \
33470 lt_prog_compiler_no_builtin_flag_CXX \
33471 lt_prog_compiler_pic_CXX \
33472 lt_prog_compiler_wl_CXX \
33473 lt_prog_compiler_static_CXX \
33474 lt_cv_prog_compiler_c_o_CXX \
33475 export_dynamic_flag_spec_CXX \
33476 whole_archive_flag_spec_CXX \
33477 compiler_needs_object_CXX \
33479 allow_undefined_flag_CXX \
33480 no_undefined_flag_CXX \
33481 hardcode_libdir_flag_spec_CXX \
33482 hardcode_libdir_separator_CXX \
33483 exclude_expsyms_CXX \
33484 include_expsyms_CXX \
33485 file_list_spec_CXX \
33486 compiler_lib_search_dirs_CXX \
33487 predep_objects_CXX \
33488 postdep_objects_CXX \
33491 compiler_lib_search_path_CXX; do
33492 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33493 *[\\\\\\\`\\"\\\$]*)
33494 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
33497 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33502 # Double-quote double-evaled strings.
33503 for var in reload_cmds \
33504 old_postinstall_cmds \
33505 old_postuninstall_cmds \
33507 extract_expsyms_cmds \
33508 old_archive_from_new_cmds \
33509 old_archive_from_expsyms_cmds \
33511 archive_expsym_cmds \
33513 module_expsym_cmds \
33514 export_symbols_cmds \
33518 postuninstall_cmds \
33520 sys_lib_search_path_spec \
33521 sys_lib_dlsearch_path_spec \
33523 old_archive_cmds_CXX \
33524 old_archive_from_new_cmds_CXX \
33525 old_archive_from_expsyms_cmds_CXX \
33527 archive_expsym_cmds_CXX \
33529 module_expsym_cmds_CXX \
33530 export_symbols_cmds_CXX \
33532 postlink_cmds_CXX; do
33533 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33534 *[\\\\\\\`\\"\\\$]*)
33535 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
33538 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33543 ac_aux_dir='$ac_aux_dir'
33544 xsi_shell='$xsi_shell'
33545 lt_shell_append='$lt_shell_append'
33547 # See if we are running on zsh, and set the options which allow our
33548 # commands through without removal of \ escapes INIT.
33549 if test -n "\${ZSH_VERSION+set}" ; then
33550 setopt NO_GLOB_SUBST
33556 TIMESTAMP='$TIMESTAMP'
33564 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
33565 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
33566 # from automake < 1.5.
33567 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
33568 # Capture the value of LINGUAS because we need it to compute CATALOGS.
33569 LINGUAS="${LINGUAS-%UNSET%}"
33574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33576 # Handling of arguments.
33577 for ac_config_target in $ac_config_targets
33579 case $ac_config_target in
33580 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
33581 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33582 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33583 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
33584 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33585 "gnutls.pc") CONFIG_FILES="$CONFIG_FILES gnutls.pc" ;;
33586 "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
33587 "gl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gl/tests/Makefile" ;;
33588 "includes/Makefile") CONFIG_FILES="$CONFIG_FILES includes/Makefile" ;;
33589 "includes/gnutls/gnutls.h") CONFIG_FILES="$CONFIG_FILES includes/gnutls/gnutls.h" ;;
33590 "minitasn1/Makefile") CONFIG_FILES="$CONFIG_FILES minitasn1/Makefile" ;;
33591 "opencdk/Makefile") CONFIG_FILES="$CONFIG_FILES opencdk/Makefile" ;;
33592 "openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES openpgp/Makefile" ;;
33593 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
33594 "x509/Makefile") CONFIG_FILES="$CONFIG_FILES x509/Makefile" ;;
33595 "gcrypt/Makefile") CONFIG_FILES="$CONFIG_FILES gcrypt/Makefile" ;;
33596 "nettle/Makefile") CONFIG_FILES="$CONFIG_FILES nettle/Makefile" ;;
33598 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33603 # If the user did not use the arguments to specify the items to instantiate,
33604 # then the envvar interface is used. Set only those that are not.
33605 # We use the long form for the default assignment because of an extremely
33606 # bizarre bug on SunOS 4.1.3.
33607 if $ac_need_defaults; then
33608 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33609 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33610 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33613 # Have a temporary directory for convenience. Make it in the build tree
33614 # simply because there is no reason against having it here, and in addition,
33615 # creating and moving files from /tmp can sometimes cause problems.
33616 # Hook for its removal unless debugging.
33617 # Note that there is a small window in which the directory will not be cleaned:
33618 # after its creation but before its name has been assigned to `$tmp'.
33622 trap 'exit_status=$?
33623 : "${ac_tmp:=$tmp}"
33624 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33626 trap 'as_fn_exit 1' 1 2 13 15
33628 # Create a (secure) tmp directory for tmp files.
33631 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33635 tmp=./conf$$-$RANDOM
33636 (umask 077 && mkdir "$tmp")
33637 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33640 # Set up the scripts for CONFIG_FILES section.
33641 # No need to generate them if there are no CONFIG_FILES.
33642 # This happens for instance with `./config.status config.h'.
33643 if test -n "$CONFIG_FILES"; then
33646 ac_cr=`echo X | tr X '\015'`
33647 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33648 # But we know of no other shell where ac_cr would be empty at this
33649 # point, so we can use a bashism as a fallback.
33650 if test "x$ac_cr" = x; then
33651 eval ac_cr=\$\'\\r\'
33653 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33654 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33657 ac_cs_awk_cr=$ac_cr
33660 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33665 echo "cat >conf$$subs.awk <<_ACEOF" &&
33666 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33668 } >conf$$subs.sh ||
33669 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33670 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33672 for ac_last_try in false false false false false :; do
33673 . ./conf$$subs.sh ||
33674 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33676 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33677 if test $ac_delim_n = $ac_delim_num; then
33679 elif $ac_last_try; then
33680 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33682 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33685 rm -f conf$$subs.sh
33687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33688 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33692 s/^/S["/; s/!.*/"]=/
33702 s/\(.\{148\}\)..*/\1/
33704 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33709 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33716 s/\(.\{148\}\)..*/\1/
33718 s/["\\]/\\&/g; s/^/"/; s/$/"/
33722 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33727 ' <conf$$subs.awk | sed '
33732 ' >>$CONFIG_STATUS || ac_write_fail=1
33733 rm -f conf$$subs.awk
33734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33736 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33737 for (key in S) S_is_set[key] = 1
33743 nfields = split(line, field, "@")
33745 len = length(field[1])
33746 for (i = 2; i < nfields; i++) {
33748 keylen = length(key)
33749 if (S_is_set[key]) {
33751 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33752 len += length(value) + length(field[++i])
33763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33764 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33765 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33768 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33769 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33772 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33773 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33774 # trailing colons and then remove the whole line if VPATH becomes empty
33775 # (actually we leave an empty line to preserve line numbers).
33776 if test "x$srcdir" = x.; then
33777 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33796 fi # test -n "$CONFIG_FILES"
33798 # Set up the scripts for CONFIG_HEADERS section.
33799 # No need to generate them if there are no CONFIG_HEADERS.
33800 # This happens for instance with `./config.status Makefile'.
33801 if test -n "$CONFIG_HEADERS"; then
33802 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33806 # Transform confdefs.h into an awk script `defines.awk', embedded as
33807 # here-document in config.status, that substitutes the proper values into
33808 # config.h.in to produce config.h.
33810 # Create a delimiter string that does not exist in confdefs.h, to ease
33811 # handling of long lines.
33813 for ac_last_try in false false :; do
33814 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33815 if test -z "$ac_tt"; then
33817 elif $ac_last_try; then
33818 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33820 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33824 # For the awk script, D is an array of macro values keyed by name,
33825 # likewise P contains macro parameters if any. Preserve backslash
33826 # newline sequences.
33828 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33830 s/.\{148\}/&'"$ac_delim"'/g
33833 s/^[ ]*#[ ]*define[ ][ ]*/ /
33840 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33842 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33846 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33847 D["\1"]=" \3\\\\\\n"\\/p
33849 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33854 s/.\{148\}/&'"$ac_delim"'/g
33859 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33862 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33864 ' <confdefs.h | sed '
33865 s/'"$ac_delim"'/"\\\
33866 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33869 for (key in D) D_is_set[key] = 1
33872 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33874 split(line, arg, " ")
33875 if (arg[1] == "#") {
33879 defundef = substr(arg[1], 2)
33882 split(mac1, mac2, "(") #)
33884 prefix = substr(line, 1, index(line, defundef) - 1)
33885 if (D_is_set[macro]) {
33886 # Preserve the white space surrounding the "#".
33887 print prefix "define", macro P[macro] D[macro]
33890 # Replace #undef with comments. This is necessary, for example,
33891 # in the case of _POSIX_SOURCE, which is predefined and required
33892 # on some systems where configure will not decide to define it.
33893 if (defundef == "undef") {
33894 print "/*", prefix defundef, macro, "*/"
33902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33903 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33904 fi # test -n "$CONFIG_HEADERS"
33907 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
33912 :[FHLC]) ac_mode=$ac_tag; continue;;
33914 case $ac_mode$ac_tag in
33916 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33917 :[FH]-) ac_tag=-:-;;
33918 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33935 -) ac_f="$ac_tmp/stdin";;
33936 *) # Look for the file first in the build tree, then in the source tree
33937 # (if the path is not absolute). The absolute path cannot be DOS-style,
33938 # because $ac_f cannot contain `:'.
33942 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33944 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33946 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33947 as_fn_append ac_file_inputs " '$ac_f'"
33950 # Let's still pretend it is `configure' which instantiates (i.e., don't
33951 # use $as_me), people would be surprised to read:
33952 # /* config.h. Generated by config.status. */
33953 configure_input='Generated from '`
33954 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33956 if test x"$ac_file" != x-; then
33957 configure_input="$ac_file. $configure_input"
33958 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33959 $as_echo "$as_me: creating $ac_file" >&6;}
33961 # Neutralize special characters interpreted by sed in replacement strings.
33962 case $configure_input in #(
33963 *\&* | *\|* | *\\* )
33964 ac_sed_conf_input=`$as_echo "$configure_input" |
33965 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33966 *) ac_sed_conf_input=$configure_input;;
33970 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33971 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33976 ac_dir=`$as_dirname -- "$ac_file" ||
33977 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33978 X"$ac_file" : 'X\(//\)[^/]' \| \
33979 X"$ac_file" : 'X\(//\)$' \| \
33980 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33981 $as_echo X"$ac_file" |
33982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33986 /^X\(\/\/\)[^/].*/{
33999 as_dir="$ac_dir"; as_fn_mkdir_p
34003 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34005 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34006 # A ".." for each directory in $ac_dir_suffix.
34007 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34008 case $ac_top_builddir_sub in
34009 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34010 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34013 ac_abs_top_builddir=$ac_pwd
34014 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34015 # for backward compatibility:
34016 ac_top_builddir=$ac_top_build_prefix
34019 .) # We are building in place.
34021 ac_top_srcdir=$ac_top_builddir_sub
34022 ac_abs_top_srcdir=$ac_pwd ;;
34023 [\\/]* | ?:[\\/]* ) # Absolute name.
34024 ac_srcdir=$srcdir$ac_dir_suffix;
34025 ac_top_srcdir=$srcdir
34026 ac_abs_top_srcdir=$srcdir ;;
34027 *) # Relative name.
34028 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34029 ac_top_srcdir=$ac_top_build_prefix$srcdir
34030 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34032 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34042 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34043 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34045 ac_MKDIR_P=$MKDIR_P
34047 [\\/$]* | ?:[\\/]* ) ;;
34048 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34053 # If the template does not know about datarootdir, expand it.
34054 # FIXME: This hack should be removed a few years after 2.60.
34055 ac_datarootdir_hack=; ac_datarootdir_seen=
34066 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34067 *datarootdir*) ac_datarootdir_seen=yes;;
34068 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34070 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34073 ac_datarootdir_hack='
34074 s&@datadir@&$datadir&g
34075 s&@docdir@&$docdir&g
34076 s&@infodir@&$infodir&g
34077 s&@localedir@&$localedir&g
34078 s&@mandir@&$mandir&g
34079 s&\\\${datarootdir}&$datarootdir&g' ;;
34083 # Neutralize VPATH when `$srcdir' = `.'.
34084 # Shell code in configure.ac might set extrasub.
34085 # FIXME: do we really want to maintain this feature?
34086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34087 ac_sed_extra="$ac_vpsub
34090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34093 s|@configure_input@|$ac_sed_conf_input|;t t
34094 s&@top_builddir@&$ac_top_builddir_sub&;t t
34095 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34096 s&@srcdir@&$ac_srcdir&;t t
34097 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34098 s&@top_srcdir@&$ac_top_srcdir&;t t
34099 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34100 s&@builddir@&$ac_builddir&;t t
34101 s&@abs_builddir@&$ac_abs_builddir&;t t
34102 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34103 s&@INSTALL@&$ac_INSTALL&;t t
34104 s&@MKDIR_P@&$ac_MKDIR_P&;t t
34105 $ac_datarootdir_hack
34107 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
34108 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34110 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34111 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
34112 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
34113 "$ac_tmp/out"`; test -z "$ac_out"; } &&
34114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34115 which seems to be undefined. Please make sure it is defined" >&5
34116 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34117 which seems to be undefined. Please make sure it is defined" >&2;}
34119 rm -f "$ac_tmp/stdin"
34121 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34122 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34124 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34130 if test x"$ac_file" != x-; then
34132 $as_echo "/* $configure_input */" \
34133 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34134 } >"$ac_tmp/config.h" \
34135 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34136 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34137 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34138 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34141 mv "$ac_tmp/config.h" "$ac_file" \
34142 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34145 $as_echo "/* $configure_input */" \
34146 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34147 || as_fn_error $? "could not create -" "$LINENO" 5
34149 # Compute "$ac_file"'s index in $config_headers.
34152 for _am_header in $config_headers :; do
34153 case $_am_header in
34154 $_am_arg | $_am_arg:* )
34157 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34160 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34161 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34162 X"$_am_arg" : 'X\(//\)[^/]' \| \
34163 X"$_am_arg" : 'X\(//\)$' \| \
34164 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34165 $as_echo X"$_am_arg" |
34166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34170 /^X\(\/\/\)[^/].*/{
34182 s/.*/./; q'`/stamp-h$_am_stamp_count
34185 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34186 $as_echo "$as_me: executing $ac_file commands" >&6;}
34191 case $ac_file$ac_mode in
34192 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34193 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34194 # are listed without --file. Let's play safe and only enable the eval
34195 # if we detect the quoting.
34196 case $CONFIG_FILES in
34197 *\'*) eval set x "$CONFIG_FILES" ;;
34198 *) set x $CONFIG_FILES ;;
34203 # Strip MF so we end up with the name of the file.
34204 mf=`echo "$mf" | sed -e 's/:.*$//'`
34205 # Check whether this is an Automake generated Makefile or not.
34206 # We used to match only the files named `Makefile.in', but
34207 # some people rename them; so instead we look at the file content.
34208 # Grep'ing the first line is not enough: some people post-process
34209 # each Makefile.in and add a new line on top of each file to say so.
34210 # Grep'ing the whole file is not good either: AIX grep has a line
34211 # limit of 2048, but all sed's we know have understand at least 4000.
34212 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34213 dirpart=`$as_dirname -- "$mf" ||
34214 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34215 X"$mf" : 'X\(//\)[^/]' \| \
34216 X"$mf" : 'X\(//\)$' \| \
34217 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34223 /^X\(\/\/\)[^/].*/{
34239 # Extract the definition of DEPDIR, am__include, and am__quote
34240 # from the Makefile without running `make'.
34241 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34242 test -z "$DEPDIR" && continue
34243 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34244 test -z "am__include" && continue
34245 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34246 # When using ansi2knr, U may be empty or an underscore; expand it
34247 U=`sed -n 's/^U = //p' < "$mf"`
34248 # Find all dependency output files, they are included files with
34249 # $(DEPDIR) in their names. We invoke sed twice because it is the
34250 # simplest approach to changing $(DEPDIR) to its actual value in the
34252 for file in `sed -n "
34253 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34254 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34255 # Make sure the directory exists.
34256 test -f "$dirpart/$file" && continue
34257 fdir=`$as_dirname -- "$file" ||
34258 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34259 X"$file" : 'X\(//\)[^/]' \| \
34260 X"$file" : 'X\(//\)$' \| \
34261 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34262 $as_echo X"$file" |
34263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34267 /^X\(\/\/\)[^/].*/{
34280 as_dir=$dirpart/$fdir; as_fn_mkdir_p
34281 # echo "creating $dirpart/$file"
34282 echo '# dummy' > "$dirpart/$file"
34289 # See if we are running on zsh, and set the options which allow our
34290 # commands through without removal of \ escapes.
34291 if test -n "${ZSH_VERSION+set}" ; then
34292 setopt NO_GLOB_SUBST
34295 cfgfile="${ofile}T"
34296 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34299 cat <<_LT_EOF >> "$cfgfile"
34302 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34303 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34304 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34305 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
34307 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34308 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
34310 # Written by Gordon Matzigkeit, 1996
34312 # This file is part of GNU Libtool.
34314 # GNU Libtool is free software; you can redistribute it and/or
34315 # modify it under the terms of the GNU General Public License as
34316 # published by the Free Software Foundation; either version 2 of
34317 # the License, or (at your option) any later version.
34319 # As a special exception to the GNU General Public License,
34320 # if you distribute this file as part of a program or library that
34321 # is built using GNU Libtool, you may include this file under the
34322 # same distribution terms that you use for the rest of that program.
34324 # GNU Libtool is distributed in the hope that it will be useful,
34325 # but WITHOUT ANY WARRANTY; without even the implied warranty of
34326 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34327 # GNU General Public License for more details.
34329 # You should have received a copy of the GNU General Public License
34330 # along with GNU Libtool; see the file COPYING. If not, a copy
34331 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34332 # obtained by writing to the Free Software Foundation, Inc.,
34333 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34336 # The names of the tagged configurations supported by this script.
34337 available_tags="CXX "
34339 # ### BEGIN LIBTOOL CONFIG
34341 # Assembler program.
34344 # DLL creation program.
34345 DLLTOOL=$lt_DLLTOOL
34347 # Object dumper program.
34348 OBJDUMP=$lt_OBJDUMP
34350 # Which release of libtool.m4 was used?
34351 macro_version=$macro_version
34352 macro_revision=$macro_revision
34354 # Whether or not to build shared libraries.
34355 build_libtool_libs=$enable_shared
34357 # Whether or not to build static libraries.
34358 build_old_libs=$enable_static
34360 # What type of objects to build.
34363 # Whether or not to optimize for fast installation.
34364 fast_install=$enable_fast_install
34366 # Shell to use when invoking shell scripts.
34369 # An echo program that protects backslashes.
34372 # The PATH separator for the build system.
34373 PATH_SEPARATOR=$lt_PATH_SEPARATOR
34376 host_alias=$host_alias
34380 # The build system.
34381 build_alias=$build_alias
34385 # A sed program that does not truncate output.
34388 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
34389 Xsed="\$SED -e 1s/^X//"
34391 # A grep program that handles long lines.
34397 # A literal string matcher.
34400 # A BSD- or MS-compatible name lister.
34403 # Whether we need soft or hard links.
34406 # What is the maximum length of a command?
34407 max_cmd_len=$max_cmd_len
34409 # Object file suffix (normally "o").
34412 # Executable file suffix (normally "").
34415 # whether the shell understands "unset".
34418 # turn spaces into newlines.
34421 # turn newlines into spaces.
34424 # convert \$build file names to \$host format.
34425 to_host_file_cmd=$lt_cv_to_host_file_cmd
34427 # convert \$build files to toolchain format.
34428 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
34430 # Method to check whether dependent libraries are shared objects.
34431 deplibs_check_method=$lt_deplibs_check_method
34433 # Command to use when deplibs_check_method = "file_magic".
34434 file_magic_cmd=$lt_file_magic_cmd
34436 # How to find potential files when deplibs_check_method = "file_magic".
34437 file_magic_glob=$lt_file_magic_glob
34439 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
34440 want_nocaseglob=$lt_want_nocaseglob
34442 # Command to associate shared and link libraries.
34443 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
34448 # Flags to create an archive.
34449 AR_FLAGS=$lt_AR_FLAGS
34451 # How to feed a file listing to the archiver.
34452 archiver_list_spec=$lt_archiver_list_spec
34454 # A symbol stripping program.
34457 # Commands used to install an old-style archive.
34459 old_postinstall_cmds=$lt_old_postinstall_cmds
34460 old_postuninstall_cmds=$lt_old_postuninstall_cmds
34462 # Whether to use a lock for old archive extraction.
34463 lock_old_archive_extraction=$lock_old_archive_extraction
34468 # LTCC compiler flags.
34469 LTCFLAGS=$lt_CFLAGS
34471 # Take the output of nm and produce a listing of raw symbols and C names.
34472 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34474 # Transform the output of nm in a proper C declaration.
34475 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34477 # Transform the output of nm in a C name address pair.
34478 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34480 # Transform the output of nm in a C name address pair when lib prefix is needed.
34481 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34483 # Specify filename containing input files for \$NM.
34484 nm_file_list_spec=$lt_nm_file_list_spec
34486 # The root where to search for dependent libraries,and in which our libraries should be installed.
34487 lt_sysroot=$lt_sysroot
34489 # The name of the directory that contains temporary libtool files.
34492 # Used to examine libraries when file_magic_cmd begins with "file".
34493 MAGIC_CMD=$MAGIC_CMD
34495 # Must we lock files when doing compilation?
34496 need_locks=$lt_need_locks
34499 MANIFEST_TOOL=$lt_MANIFEST_TOOL
34501 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34502 DSYMUTIL=$lt_DSYMUTIL
34504 # Tool to change global to local symbols on Mac OS X.
34507 # Tool to manipulate fat objects and archives on Mac OS X.
34510 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
34513 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34514 OTOOL64=$lt_OTOOL64
34516 # Old archive suffix (normally "a").
34519 # Shared library suffix (normally ".so").
34520 shrext_cmds=$lt_shrext_cmds
34522 # The commands to extract the exported symbol list from a shared archive.
34523 extract_expsyms_cmds=$lt_extract_expsyms_cmds
34525 # Variables whose values should be saved in libtool wrapper scripts and
34526 # restored at link time.
34527 variables_saved_for_relink=$lt_variables_saved_for_relink
34529 # Do we need the "lib" prefix for modules?
34530 need_lib_prefix=$need_lib_prefix
34532 # Do we need a version for libraries?
34533 need_version=$need_version
34535 # Library versioning type.
34536 version_type=$version_type
34538 # Shared library runtime path variable.
34539 runpath_var=$runpath_var
34541 # Shared library path variable.
34542 shlibpath_var=$shlibpath_var
34544 # Is shlibpath searched before the hard-coded library search path?
34545 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34547 # Format of library name prefix.
34548 libname_spec=$lt_libname_spec
34550 # List of archive names. First name is the real one, the rest are links.
34551 # The last name is the one that the linker finds with -lNAME
34552 library_names_spec=$lt_library_names_spec
34554 # The coded name of the library, if different from the real name.
34555 soname_spec=$lt_soname_spec
34557 # Permission mode override for installation of shared libraries.
34558 install_override_mode=$lt_install_override_mode
34560 # Command to use after installation of a shared archive.
34561 postinstall_cmds=$lt_postinstall_cmds
34563 # Command to use after uninstallation of a shared archive.
34564 postuninstall_cmds=$lt_postuninstall_cmds
34566 # Commands used to finish a libtool library installation in a directory.
34567 finish_cmds=$lt_finish_cmds
34569 # As "finish_cmds", except a single script fragment to be evaled but
34571 finish_eval=$lt_finish_eval
34573 # Whether we should hardcode library paths into libraries.
34574 hardcode_into_libs=$hardcode_into_libs
34576 # Compile-time system search path for libraries.
34577 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34579 # Run-time system search path for libraries.
34580 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34582 # Whether dlopen is supported.
34583 dlopen_support=$enable_dlopen
34585 # Whether dlopen of programs is supported.
34586 dlopen_self=$enable_dlopen_self
34588 # Whether dlopen of statically linked programs is supported.
34589 dlopen_self_static=$enable_dlopen_self_static
34591 # Commands to strip libraries.
34592 old_striplib=$lt_old_striplib
34593 striplib=$lt_striplib
34596 # The linker used to build libraries.
34599 # How to create reloadable object files.
34600 reload_flag=$lt_reload_flag
34601 reload_cmds=$lt_reload_cmds
34603 # Commands used to build an old-style archive.
34604 old_archive_cmds=$lt_old_archive_cmds
34606 # A language specific compiler.
34609 # Is the compiler the GNU compiler?
34612 # Compiler flag to turn off builtin functions.
34613 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34615 # Additional compiler flags for building library objects.
34616 pic_flag=$lt_lt_prog_compiler_pic
34618 # How to pass a linker flag through the compiler.
34619 wl=$lt_lt_prog_compiler_wl
34621 # Compiler flag to prevent dynamic linking.
34622 link_static_flag=$lt_lt_prog_compiler_static
34624 # Does compiler simultaneously support -c and -o options?
34625 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34627 # Whether or not to add -lc for building shared libraries.
34628 build_libtool_need_lc=$archive_cmds_need_lc
34630 # Whether or not to disallow shared libs when runtime libs are static.
34631 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34633 # Compiler flag to allow reflexive dlopens.
34634 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34636 # Compiler flag to generate shared objects directly from archives.
34637 whole_archive_flag_spec=$lt_whole_archive_flag_spec
34639 # Whether the compiler copes with passing no objects directly.
34640 compiler_needs_object=$lt_compiler_needs_object
34642 # Create an old-style archive from a shared archive.
34643 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34645 # Create a temporary old-style archive to link instead of a shared archive.
34646 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34648 # Commands used to build a shared archive.
34649 archive_cmds=$lt_archive_cmds
34650 archive_expsym_cmds=$lt_archive_expsym_cmds
34652 # Commands used to build a loadable module if different from building
34653 # a shared archive.
34654 module_cmds=$lt_module_cmds
34655 module_expsym_cmds=$lt_module_expsym_cmds
34657 # Whether we are building with GNU ld or not.
34658 with_gnu_ld=$lt_with_gnu_ld
34660 # Flag that allows shared libraries with undefined symbols to be built.
34661 allow_undefined_flag=$lt_allow_undefined_flag
34663 # Flag that enforces no undefined symbols.
34664 no_undefined_flag=$lt_no_undefined_flag
34666 # Flag to hardcode \$libdir into a binary during linking.
34667 # This must work even if \$libdir does not exist
34668 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34670 # Whether we need a single "-rpath" flag with a separated argument.
34671 hardcode_libdir_separator=$lt_hardcode_libdir_separator
34673 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34674 # DIR into the resulting binary.
34675 hardcode_direct=$hardcode_direct
34677 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34678 # DIR into the resulting binary and the resulting library dependency is
34679 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34680 # library is relocated.
34681 hardcode_direct_absolute=$hardcode_direct_absolute
34683 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34684 # into the resulting binary.
34685 hardcode_minus_L=$hardcode_minus_L
34687 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34688 # into the resulting binary.
34689 hardcode_shlibpath_var=$hardcode_shlibpath_var
34691 # Set to "yes" if building a shared library automatically hardcodes DIR
34692 # into the library and all subsequent libraries and executables linked
34694 hardcode_automatic=$hardcode_automatic
34696 # Set to yes if linker adds runtime paths of dependent libraries
34697 # to runtime path list.
34698 inherit_rpath=$inherit_rpath
34700 # Whether libtool must link a program against all its dependency libraries.
34701 link_all_deplibs=$link_all_deplibs
34703 # Set to "yes" if exported symbols are required.
34704 always_export_symbols=$always_export_symbols
34706 # The commands to list exported symbols.
34707 export_symbols_cmds=$lt_export_symbols_cmds
34709 # Symbols that should not be listed in the preloaded symbols.
34710 exclude_expsyms=$lt_exclude_expsyms
34712 # Symbols that must always be exported.
34713 include_expsyms=$lt_include_expsyms
34715 # Commands necessary for linking programs (against libraries) with templates.
34716 prelink_cmds=$lt_prelink_cmds
34718 # Commands necessary for finishing linking programs.
34719 postlink_cmds=$lt_postlink_cmds
34721 # Specify filename containing input files.
34722 file_list_spec=$lt_file_list_spec
34724 # How to hardcode a shared library path into an executable.
34725 hardcode_action=$hardcode_action
34727 # The directories searched by this compiler when creating a shared library.
34728 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
34730 # Dependencies to place before and after the objects being linked to
34731 # create a shared library.
34732 predep_objects=$lt_predep_objects
34733 postdep_objects=$lt_postdep_objects
34734 predeps=$lt_predeps
34735 postdeps=$lt_postdeps
34737 # The library search path used internally by the compiler when linking
34738 # a shared library.
34739 compiler_lib_search_path=$lt_compiler_lib_search_path
34741 # ### END LIBTOOL CONFIG
34747 cat <<\_LT_EOF >> "$cfgfile"
34748 # AIX sometimes has problems with the GCC collect2 program. For some
34749 # reason, if we set the COLLECT_NAMES environment variable, the problems
34750 # vanish in a puff of smoke.
34751 if test "X${COLLECT_NAMES+set}" != Xset; then
34753 export COLLECT_NAMES
34760 ltmain="$ac_aux_dir/ltmain.sh"
34763 # We use sed instead of cat because bash on DJGPP gets confused if
34764 # if finds mixed CR/LF and LF-only lines. Since sed operates in
34765 # text mode, it properly converts lines to CR/LF. This bash problem
34766 # is reportedly fixed, but why not run on old versions too?
34767 sed '$q' "$ltmain" >> "$cfgfile" \
34768 || (rm -f "$cfgfile"; exit 1)
34770 if test x"$xsi_shell" = xyes; then
34771 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
34775 \ */*) func_dirname_result="${1%/*}${2}" ;;\
34776 \ * ) func_dirname_result="${3}" ;;\
34778 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
34779 && mv -f "$cfgfile.tmp" "$cfgfile" \
34780 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34781 test 0 -eq $? || _lt_function_replace_fail=:
34784 sed -e '/^func_basename ()$/,/^} # func_basename /c\
34787 \ func_basename_result="${1##*/}"\
34788 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
34789 && mv -f "$cfgfile.tmp" "$cfgfile" \
34790 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34791 test 0 -eq $? || _lt_function_replace_fail=:
34794 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
34795 func_dirname_and_basename ()\
34798 \ */*) func_dirname_result="${1%/*}${2}" ;;\
34799 \ * ) func_dirname_result="${3}" ;;\
34801 \ func_basename_result="${1##*/}"\
34802 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
34803 && mv -f "$cfgfile.tmp" "$cfgfile" \
34804 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34805 test 0 -eq $? || _lt_function_replace_fail=:
34808 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
34811 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
34812 \ # positional parameters, so assign one to ordinary parameter first.\
34813 \ func_stripname_result=${3}\
34814 \ func_stripname_result=${func_stripname_result#"${1}"}\
34815 \ func_stripname_result=${func_stripname_result%"${2}"}\
34816 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
34817 && mv -f "$cfgfile.tmp" "$cfgfile" \
34818 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34819 test 0 -eq $? || _lt_function_replace_fail=:
34822 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
34823 func_split_long_opt ()\
34825 \ func_split_long_opt_name=${1%%=*}\
34826 \ func_split_long_opt_arg=${1#*=}\
34827 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
34828 && mv -f "$cfgfile.tmp" "$cfgfile" \
34829 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34830 test 0 -eq $? || _lt_function_replace_fail=:
34833 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
34834 func_split_short_opt ()\
34836 \ func_split_short_opt_arg=${1#??}\
34837 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
34838 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
34839 && mv -f "$cfgfile.tmp" "$cfgfile" \
34840 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34841 test 0 -eq $? || _lt_function_replace_fail=:
34844 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
34848 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
34849 \ *) func_lo2o_result=${1} ;;\
34851 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
34852 && mv -f "$cfgfile.tmp" "$cfgfile" \
34853 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34854 test 0 -eq $? || _lt_function_replace_fail=:
34857 sed -e '/^func_xform ()$/,/^} # func_xform /c\
34860 func_xform_result=${1%.*}.lo\
34861 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
34862 && mv -f "$cfgfile.tmp" "$cfgfile" \
34863 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34864 test 0 -eq $? || _lt_function_replace_fail=:
34867 sed -e '/^func_arith ()$/,/^} # func_arith /c\
34870 func_arith_result=$(( $* ))\
34871 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
34872 && mv -f "$cfgfile.tmp" "$cfgfile" \
34873 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34874 test 0 -eq $? || _lt_function_replace_fail=:
34877 sed -e '/^func_len ()$/,/^} # func_len /c\
34880 func_len_result=${#1}\
34881 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
34882 && mv -f "$cfgfile.tmp" "$cfgfile" \
34883 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34884 test 0 -eq $? || _lt_function_replace_fail=:
34888 if test x"$lt_shell_append" = xyes; then
34889 sed -e '/^func_append ()$/,/^} # func_append /c\
34892 eval "${1}+=\\${2}"\
34893 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
34894 && mv -f "$cfgfile.tmp" "$cfgfile" \
34895 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34896 test 0 -eq $? || _lt_function_replace_fail=:
34899 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
34900 func_append_quoted ()\
34902 \ func_quote_for_eval "${2}"\
34903 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
34904 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
34905 && mv -f "$cfgfile.tmp" "$cfgfile" \
34906 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34907 test 0 -eq $? || _lt_function_replace_fail=:
34910 # Save a `func_append' function call where possible by direct use of '+='
34911 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
34912 && mv -f "$cfgfile.tmp" "$cfgfile" \
34913 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34914 test 0 -eq $? || _lt_function_replace_fail=:
34916 # Save a `func_append' function call even when '+=' is not available
34917 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
34918 && mv -f "$cfgfile.tmp" "$cfgfile" \
34919 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34920 test 0 -eq $? || _lt_function_replace_fail=:
34923 if test x"$_lt_function_replace_fail" = x":"; then
34924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
34925 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
34929 mv -f "$cfgfile" "$ofile" ||
34930 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34934 cat <<_LT_EOF >> "$ofile"
34936 # ### BEGIN LIBTOOL TAG CONFIG: CXX
34938 # The linker used to build libraries.
34941 # How to create reloadable object files.
34942 reload_flag=$lt_reload_flag_CXX
34943 reload_cmds=$lt_reload_cmds_CXX
34945 # Commands used to build an old-style archive.
34946 old_archive_cmds=$lt_old_archive_cmds_CXX
34948 # A language specific compiler.
34949 CC=$lt_compiler_CXX
34951 # Is the compiler the GNU compiler?
34954 # Compiler flag to turn off builtin functions.
34955 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
34957 # Additional compiler flags for building library objects.
34958 pic_flag=$lt_lt_prog_compiler_pic_CXX
34960 # How to pass a linker flag through the compiler.
34961 wl=$lt_lt_prog_compiler_wl_CXX
34963 # Compiler flag to prevent dynamic linking.
34964 link_static_flag=$lt_lt_prog_compiler_static_CXX
34966 # Does compiler simultaneously support -c and -o options?
34967 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
34969 # Whether or not to add -lc for building shared libraries.
34970 build_libtool_need_lc=$archive_cmds_need_lc_CXX
34972 # Whether or not to disallow shared libs when runtime libs are static.
34973 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
34975 # Compiler flag to allow reflexive dlopens.
34976 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
34978 # Compiler flag to generate shared objects directly from archives.
34979 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
34981 # Whether the compiler copes with passing no objects directly.
34982 compiler_needs_object=$lt_compiler_needs_object_CXX
34984 # Create an old-style archive from a shared archive.
34985 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
34987 # Create a temporary old-style archive to link instead of a shared archive.
34988 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
34990 # Commands used to build a shared archive.
34991 archive_cmds=$lt_archive_cmds_CXX
34992 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
34994 # Commands used to build a loadable module if different from building
34995 # a shared archive.
34996 module_cmds=$lt_module_cmds_CXX
34997 module_expsym_cmds=$lt_module_expsym_cmds_CXX
34999 # Whether we are building with GNU ld or not.
35000 with_gnu_ld=$lt_with_gnu_ld_CXX
35002 # Flag that allows shared libraries with undefined symbols to be built.
35003 allow_undefined_flag=$lt_allow_undefined_flag_CXX
35005 # Flag that enforces no undefined symbols.
35006 no_undefined_flag=$lt_no_undefined_flag_CXX
35008 # Flag to hardcode \$libdir into a binary during linking.
35009 # This must work even if \$libdir does not exist
35010 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35012 # Whether we need a single "-rpath" flag with a separated argument.
35013 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35015 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35016 # DIR into the resulting binary.
35017 hardcode_direct=$hardcode_direct_CXX
35019 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35020 # DIR into the resulting binary and the resulting library dependency is
35021 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35022 # library is relocated.
35023 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35025 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35026 # into the resulting binary.
35027 hardcode_minus_L=$hardcode_minus_L_CXX
35029 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35030 # into the resulting binary.
35031 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35033 # Set to "yes" if building a shared library automatically hardcodes DIR
35034 # into the library and all subsequent libraries and executables linked
35036 hardcode_automatic=$hardcode_automatic_CXX
35038 # Set to yes if linker adds runtime paths of dependent libraries
35039 # to runtime path list.
35040 inherit_rpath=$inherit_rpath_CXX
35042 # Whether libtool must link a program against all its dependency libraries.
35043 link_all_deplibs=$link_all_deplibs_CXX
35045 # Set to "yes" if exported symbols are required.
35046 always_export_symbols=$always_export_symbols_CXX
35048 # The commands to list exported symbols.
35049 export_symbols_cmds=$lt_export_symbols_cmds_CXX
35051 # Symbols that should not be listed in the preloaded symbols.
35052 exclude_expsyms=$lt_exclude_expsyms_CXX
35054 # Symbols that must always be exported.
35055 include_expsyms=$lt_include_expsyms_CXX
35057 # Commands necessary for linking programs (against libraries) with templates.
35058 prelink_cmds=$lt_prelink_cmds_CXX
35060 # Commands necessary for finishing linking programs.
35061 postlink_cmds=$lt_postlink_cmds_CXX
35063 # Specify filename containing input files.
35064 file_list_spec=$lt_file_list_spec_CXX
35066 # How to hardcode a shared library path into an executable.
35067 hardcode_action=$hardcode_action_CXX
35069 # The directories searched by this compiler when creating a shared library.
35070 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35072 # Dependencies to place before and after the objects being linked to
35073 # create a shared library.
35074 predep_objects=$lt_predep_objects_CXX
35075 postdep_objects=$lt_postdep_objects_CXX
35076 predeps=$lt_predeps_CXX
35077 postdeps=$lt_postdeps_CXX
35079 # The library search path used internally by the compiler when linking
35080 # a shared library.
35081 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35083 # ### END LIBTOOL TAG CONFIG: CXX
35087 "po-directories":C)
35088 for ac_file in $CONFIG_FILES; do
35089 # Support "outfile[:infile[:infile...]]"
35091 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
35093 # PO directories have a Makefile.in generated from Makefile.in.in.
35094 case "$ac_file" in */Makefile.in)
35095 # Adjust a relative srcdir.
35096 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
35097 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
35098 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
35099 # In autoconf-2.13 it is called $ac_given_srcdir.
35100 # In autoconf-2.50 it is called $srcdir.
35101 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
35102 case "$ac_given_srcdir" in
35103 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
35104 /*) top_srcdir="$ac_given_srcdir" ;;
35105 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
35107 # Treat a directory as a PO directory if and only if it has a
35108 # POTFILES.in file. This allows packages to have multiple PO
35109 # directories under different names or in different locations.
35110 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
35111 rm -f "$ac_dir/POTFILES"
35112 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
35113 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
35114 POMAKEFILEDEPS="POTFILES.in"
35115 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
35116 # on $ac_dir but don't depend on user-specified configuration
35118 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
35119 # The LINGUAS file contains the set of available languages.
35120 if test -n "$OBSOLETE_ALL_LINGUAS"; then
35121 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
35123 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
35124 # Hide the ALL_LINGUAS assigment from automake < 1.5.
35125 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
35126 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
35128 # The set of available languages was given in configure.in.
35129 # Hide the ALL_LINGUAS assigment from automake < 1.5.
35130 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
35133 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
35134 # Compute UPDATEPOFILES
35135 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
35136 # Compute DUMMYPOFILES
35137 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
35139 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
35140 case "$ac_given_srcdir" in
35142 *) srcdirpre='$(srcdir)/' ;;
35148 for lang in $ALL_LINGUAS; do
35149 POFILES="$POFILES $srcdirpre$lang.po"
35150 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
35151 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
35152 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
35154 # CATALOGS depends on both $ac_dir and the user's LINGUAS
35155 # environment variable.
35157 if test -n "$ALL_LINGUAS"; then
35158 for presentlang in $ALL_LINGUAS; do
35160 if test "%UNSET%" != "$LINGUAS"; then
35161 desiredlanguages="$LINGUAS"
35163 desiredlanguages="$ALL_LINGUAS"
35165 for desiredlang in $desiredlanguages; do
35166 # Use the presentlang catalog if desiredlang is
35167 # a. equal to presentlang, or
35168 # b. a variant of presentlang (because in this case,
35169 # presentlang can be used as a fallback for messages
35170 # which are not translated in the desiredlang catalog).
35171 case "$desiredlang" in
35172 "$presentlang"*) useit=yes;;
35175 if test $useit = yes; then
35176 INST_LINGUAS="$INST_LINGUAS $presentlang"
35181 if test -n "$INST_LINGUAS"; then
35182 for lang in $INST_LINGUAS; do
35183 CATALOGS="$CATALOGS $lang.gmo"
35186 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
35187 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
35188 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
35189 if test -f "$f"; then
35191 *.orig | *.bak | *~) ;;
35192 *) cat "$f" >> "$ac_dir/Makefile" ;;
35207 ac_clean_files=$ac_clean_files_save
35209 test $ac_write_fail = 0 ||
35210 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35213 # configure is writing to config.log, and then calls config.status.
35214 # config.status does its own redirection, appending to config.log.
35215 # Unfortunately, on DOS this fails, as config.log is still kept open
35216 # by configure, so config.status won't be able to write to it; its
35217 # output is simply discarded. So we exec the FD to /dev/null,
35218 # effectively closing config.log, so it can be properly (re)opened and
35219 # appended to by config.status. When coming back to configure, we
35220 # need to make the FD available again.
35221 if test "$no_create" != yes; then
35223 ac_config_status_args=
35224 test "$silent" = yes &&
35225 ac_config_status_args="$ac_config_status_args --quiet"
35227 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35229 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35230 # would make configure fail if this is the last instruction.
35231 $ac_cs_success || as_fn_exit 1
35233 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35235 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}